2 # From configure.in Revision: 1.629 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20150926. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1303 if test "x$cf_cv_abi_version" != "x$withval"
1305 { echo "$as_me:1305: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1306 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1307 case $cf_cv_rel_version in
1309 cf_cv_rel_version=$withval.0
1312 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1316 cf_cv_abi_version=$withval
1319 if test -n "$cf_cv_abi_version" ; then
1320 case $cf_cv_abi_version in
1324 { { echo "$as_me:1324: error: ABI version is not a number: $cf_cv_abi_version" >&5
1325 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1326 { (exit 1); exit 1; }; }
1330 { { echo "$as_me:1330: error: ABI version value is empty" >&5
1331 echo "$as_me: error: ABI version value is empty" >&2;}
1332 { (exit 1); exit 1; }; }
1335 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1337 case $cf_cv_rel_version in
1339 cf_cv_rel_version=$with_abi_version.0
1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1350 elif test -f $ac_dir/install.sh; then
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1354 elif test -f $ac_dir/shtool; then
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:1361: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:1371: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:1384: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:1400: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1422 echo "$as_me:1422: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 # The aliases save the names the user supplied, while $host etc.
1444 # will get canonicalized.
1445 test -n "$target_alias" &&
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1448 program_prefix=${target_alias}-
1449 system_name="$host_os"
1451 system_name="`(uname -s -r) 2>/dev/null`"
1452 if test -z "$system_name" ; then
1453 system_name="`(hostname) 2>/dev/null`"
1456 test -n "$system_name" &&
1457 cat >>confdefs.h <<EOF
1458 #define SYSTEM_NAME "$system_name"
1461 if test "${cf_cv_system_name+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 cf_cv_system_name="$system_name"
1467 test -z "$system_name" && system_name="$cf_cv_system_name"
1468 test -n "$cf_cv_system_name" && echo "$as_me:1468: result: Configuring for $cf_cv_system_name" >&5
1469 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1471 if test ".$system_name" != ".$cf_cv_system_name" ; then
1472 echo "$as_me:1472: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1473 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1474 { { echo "$as_me:1474: error: \"Please remove config.cache and try again.\"" >&5
1475 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1476 { (exit 1); exit 1; }; }
1479 # Check whether --with-system-type or --without-system-type was given.
1480 if test "${with_system_type+set}" = set; then
1481 withval="$with_system_type"
1482 { echo "$as_me:1482: WARNING: overriding system type to $withval" >&5
1483 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1484 cf_cv_system_name=$withval
1489 ### Save the given $CFLAGS to allow user-override.
1490 cf_user_CFLAGS="$CFLAGS"
1492 ### Default install-location
1494 echo "$as_me:1494: checking for prefix" >&5
1495 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1496 if test "x$prefix" = "xNONE" ; then
1497 case "$cf_cv_system_name" in
1498 # non-vendor systems don't have a conflict
1499 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1502 (*) prefix=$ac_default_prefix
1506 echo "$as_me:1506: result: $prefix" >&5
1507 echo "${ECHO_T}$prefix" >&6
1509 if test "x$prefix" = "xNONE" ; then
1510 echo "$as_me:1510: checking for default include-directory" >&5
1511 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1512 test -n "$verbose" && echo 1>&6
1515 $includedir/ncurses \
1517 $prefix/include/ncurses \
1518 /usr/local/include \
1519 /usr/local/include/ncurses \
1521 /usr/include/ncurses
1523 cf_dir=`eval echo $cf_symbol`
1524 if test -f $cf_dir/curses.h ; then
1525 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1526 includedir="$cf_symbol"
1527 test -n "$verbose" && echo $ac_n " found " 1>&6
1531 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1533 echo "$as_me:1533: result: $includedir" >&5
1534 echo "${ECHO_T}$includedir" >&6
1537 ### Defaults for ncurses ABI
1539 case x$cf_cv_abi_version in
1541 cf_dft_ext_colors=yes
1542 cf_dft_ext_const=yes
1543 cf_dft_ext_mouse=yes
1544 cf_dft_ext_putwin=yes
1545 cf_dft_ext_spfuncs=yes
1546 cf_dft_filter_syms=yes
1547 cf_dft_chtype=uint32_t
1548 cf_dft_mmask_t=uint32_t
1550 cf_dft_tparm_arg=intptr_t
1551 cf_dft_with_lp64=yes
1554 cf_dft_ext_colors=no
1557 cf_dft_ext_putwin=no
1558 cf_dft_ext_spfuncs=no
1559 cf_dft_filter_syms=no
1563 cf_dft_tparm_arg=long
1568 ### Checks for programs.
1570 # Check whether --with-ada or --without-ada was given.
1571 if test "${with_ada+set}" = set; then
1573 cf_with_ada=$withval
1577 if test "x$cf_with_ada" = xyes
1579 cf_PROG_CC="gnatgcc gcc cc"
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 ac_main_return=return
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in $cf_PROG_CC
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 ac_save_IFS=$IFS; IFS=$ac_path_separator
1605 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 $as_executable_p "$ac_dir/$ac_word" || continue
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:1610: found $ac_dir/$ac_word" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:1618: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:1621: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 test -n "$CC" && break
1628 if test -z "$CC"; then
1630 for ac_prog in $cf_PROG_CC
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:1634: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 $as_executable_p "$ac_dir/$ac_word" || continue
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:1649: found $ac_dir/$ac_word" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:1657: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$ac_ct_CC" && break
1670 test -z "$CC" && { { echo "$as_me:1670: error: no acceptable cc found in \$PATH" >&5
1671 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1672 { (exit 1); exit 1; }; }
1674 # Provide some information about the compiler.
1675 echo "$as_me:1675:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:1678: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:1683: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line 1695 "configure"
1696 #include "confdefs.h"
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:1711: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:1714: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1723 ls a.out conftest 2>/dev/null;
1724 ls a.* conftest.* 2>/dev/null`; do
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1727 a.out ) # We found the default executable, but exeext='' is most
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738 echo "$as_me: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 { { echo "$as_me:1740: error: C compiler cannot create executables" >&5
1741 echo "$as_me: error: C compiler cannot create executables" >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:1746: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:1751: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:1757: \"$ac_try\"") >&5
1760 echo "$as_me:1760: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:1767: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'." >&5
1769 echo "$as_me: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'." >&2;}
1771 { (exit 1); exit 1; }; }
1775 echo "$as_me:1775: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1778 rm -f a.out a.exe conftest$ac_cv_exeext
1779 ac_clean_files=$ac_clean_files_save
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether we are cross compiling" >&5
1783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1784 echo "$as_me:1784: result: $cross_compiling" >&5
1785 echo "${ECHO_T}$cross_compiling" >&6
1787 echo "$as_me:1787: checking for executable suffix" >&5
1788 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1789 if { (eval echo "$as_me:1789: \"$ac_link\"") >&5
1790 (eval $ac_link) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1796 # work properly (i.e., refer to `conftest.exe'), while it won't with
1798 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:1808: error: cannot compute EXEEXT: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:1814: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:1820: checking for object suffix" >&5
1821 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:1853: error: cannot compute OBJEXT: cannot compile" >&5
1854 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:1864: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:1906: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:1912: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:1930: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:1936: \"$ac_try\"") >&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:1949: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 # Some people use a C++ compiler to compile C. Since we use `exit',
1967 # in C++ we need to declare it. In case someone uses the same compiler
1968 # for both compiling C and C++ we need to have the C++ compiler decide
1969 # the declaration of exit, since it's the most demanding environment.
1970 cat >conftest.$ac_ext <<_ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 for ac_declaration in \
1989 '#include <stdlib.h>' \
1990 'extern "C" void std::exit (int) throw (); using std::exit;' \
1991 'extern "C" void std::exit (int); using std::exit;' \
1992 'extern "C" void exit (int) throw ();' \
1993 'extern "C" void exit (int);' \
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 ac_main_return=return
2079 if test "$GCC" = yes ; then
2080 echo "$as_me:2080: checking version of $CC" >&5
2081 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2082 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2083 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2084 echo "$as_me:2084: result: $GCC_VERSION" >&5
2085 echo "${ECHO_T}$GCC_VERSION" >&6
2088 echo "$as_me:2088: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc=no
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2100 #include <sys/types.h>
2101 #include <sys/stat.h>
2102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2103 struct buf { int x; };
2104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2105 static char *e (p, i)
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2116 s = g (p, va_arg (v,int));
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC="$ac_save_CC $ac_arg"
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_stdc=$ac_arg
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 rm -f conftest.$ac_objext
2164 rm -f conftest.$ac_ext conftest.$ac_objext
2169 case "x$ac_cv_prog_cc_stdc" in
2171 echo "$as_me:2171: result: none needed" >&5
2172 echo "${ECHO_T}none needed" >&6 ;;
2174 echo "$as_me:2174: result: $ac_cv_prog_cc_stdc" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176 CC="$CC $ac_cv_prog_cc_stdc" ;;
2179 # This should have been defined by AC_PROG_CC
2182 echo "$as_me:2182: checking \$CC variable" >&5
2183 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2186 echo "$as_me:2186: result: broken" >&5
2187 echo "${ECHO_T}broken" >&6
2188 { echo "$as_me:2188: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2189 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2191 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2192 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_flags
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2216 elif test "${cf_tst_cflags}" = "\"'" ; then
2217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2226 case $cf_add_cflags in
2228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2230 CPPFLAGS=`echo "$CPPFLAGS" | \
2231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2241 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2251 && test -z "${cf_tst_cflags}" \
2252 && cf_fix_cppflags=no
2257 if test -n "$cf_new_cflags" ; then
2259 CFLAGS="$CFLAGS $cf_new_cflags"
2262 if test -n "$cf_new_cppflags" ; then
2264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2267 if test -n "$cf_new_extra_cppflags" ; then
2269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2274 echo "$as_me:2274: result: ok" >&5
2275 echo "${ECHO_T}ok" >&6
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 ac_main_return=return
2285 echo "$as_me:2285: checking how to run the C preprocessor" >&5
2286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2287 # On Suns, sometimes $CPP names a directory.
2288 if test -n "$CPP" && test -d "$CPP"; then
2291 if test -z "$CPP"; then
2292 if test "${ac_cv_prog_CPP+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 # Double quotes because CPP needs to be expanded
2296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 for ac_c_preproc_warn_flag in '' yes
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp. "Syntax error" is here to catch this case.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line 2306 "configure"
2307 #include "confdefs.h"
2311 if { (eval echo "$as_me:2311: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:2317: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2327 if test -z "$ac_cpp_err"; then
2330 echo "$as_me: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 # Broken: fails on valid input.
2335 rm -f conftest.err conftest.$ac_ext
2337 # OK, works on sane cases. Now check whether non-existent headers
2338 # can be detected and how.
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2340 "configure"
2341 #include "confdefs.h"
2342 #include <ac_nonexistent.h>
2344 if { (eval echo "$as_me:2344: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 egrep -v '^ *\+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:2350: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2360 if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 # Passes both tests.
2370 rm -f conftest.err conftest.$ac_ext
2373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374 rm -f conftest.err conftest.$ac_ext
2375 if $ac_preproc_ok; then
2387 echo "$as_me:2387: result: $CPP" >&5
2388 echo "${ECHO_T}$CPP" >&6
2390 for ac_c_preproc_warn_flag in '' yes
2392 # Use a header file that comes with gcc, so configuring glibc
2393 # with a fresh cross-compiler works.
2394 # On the NeXT, cc -E runs the code through the compiler's parser,
2395 # not just through cpp. "Syntax error" is here to catch this case.
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line 2397 "configure"
2398 #include "confdefs.h"
2402 if { (eval echo "$as_me:2402: \"$ac_cpp conftest.$ac_ext\"") >&5
2403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 egrep -v '^ *\+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:2408: \$? = $ac_status" >&5
2409 (exit $ac_status); } >/dev/null; then
2410 if test -s conftest.err; then
2411 ac_cpp_err=$ac_c_preproc_warn_flag
2418 if test -z "$ac_cpp_err"; then
2421 echo "$as_me: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 # Broken: fails on valid input.
2426 rm -f conftest.err conftest.$ac_ext
2428 # OK, works on sane cases. Now check whether non-existent headers
2429 # can be detected and how.
2430 cat >conftest.$ac_ext <<_ACEOF
2431 #line 2431 "configure"
2432 #include "confdefs.h"
2433 #include <ac_nonexistent.h>
2435 if { (eval echo "$as_me:2435: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 egrep -v '^ *\+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2451 if test -z "$ac_cpp_err"; then
2452 # Broken: success on invalid input.
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 # Passes both tests.
2461 rm -f conftest.err conftest.$ac_ext
2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2465 rm -f conftest.err conftest.$ac_ext
2466 if $ac_preproc_ok; then
2469 { { echo "$as_me:2469: error: C preprocessor \"$CPP\" fails sanity check" >&5
2470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2471 { (exit 1); exit 1; }; }
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_main_return=return
2481 if test $ac_cv_c_compiler_gnu = yes; then
2482 echo "$as_me:2482: checking whether $CC needs -traditional" >&5
2483 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2484 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_pattern="Autoconf.*'x'"
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2492 int Autoconf = TIOCGETP;
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "$ac_pattern" >/dev/null 2>&1; then
2496 ac_cv_prog_gcc_traditional=yes
2498 ac_cv_prog_gcc_traditional=no
2502 if test $ac_cv_prog_gcc_traditional = no; then
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2507 int Autoconf = TCGETA;
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "$ac_pattern" >/dev/null 2>&1; then
2511 ac_cv_prog_gcc_traditional=yes
2517 echo "$as_me:2517: result: $ac_cv_prog_gcc_traditional" >&5
2518 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2519 if test $ac_cv_prog_gcc_traditional = yes; then
2520 CC="$CC -traditional"
2524 echo "$as_me:2524: checking whether $CC understands -c and -o together" >&5
2525 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2526 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat > conftest.$ac_ext <<CF_EOF
2534 ${cf_cv_main_return:-return}(0);
2537 # We do the test twice because some compilers refuse to overwrite an
2538 # existing .o file with -o, though they will create one.
2539 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2540 if { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 test -f conftest2.$ac_objext && { (eval echo "$as_me:2545: \"$ac_try\"") >&5
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); };
2551 eval cf_cv_prog_CC_c_o=yes
2553 eval cf_cv_prog_CC_c_o=no
2558 if test $cf_cv_prog_CC_c_o = yes; then
2559 echo "$as_me:2559: result: yes" >&5
2560 echo "${ECHO_T}yes" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2566 if test "$cross_compiling" = yes ; then
2569 case "$cf_cv_system_name" in
2570 (dragonfly*|mirbsd*|freebsd*)
2571 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2573 (*) LDPATH=$PATH:/sbin:/usr/sbin
2574 # Extract the first word of "ldconfig", so it can be a program name with args.
2575 set dummy ldconfig; ac_word=$2
2576 echo "$as_me:2576: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2586 ac_save_IFS=$IFS; IFS=$ac_path_separator
2588 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if $as_executable_p "$ac_dir/$ac_word"; then
2592 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2593 echo "$as_me:2593: found $ac_dir/$ac_word" >&5
2601 LDCONFIG=$ac_cv_path_LDCONFIG
2603 if test -n "$LDCONFIG"; then
2604 echo "$as_me:2604: result: $LDCONFIG" >&5
2605 echo "${ECHO_T}$LDCONFIG" >&6
2607 echo "$as_me:2607: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2615 echo "$as_me:2615: checking if you want to ensure bool is consistent with C++" >&5
2616 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2618 # Check whether --with-cxx or --without-cxx was given.
2619 if test "${with_cxx+set}" = set; then
2621 cf_with_cxx=$withval
2625 echo "$as_me:2625: result: $cf_with_cxx" >&5
2626 echo "${ECHO_T}$cf_with_cxx" >&6
2627 if test "X$cf_with_cxx" = Xno ; then
2631 # with autoconf 2.13, we can change the error to a warning:
2633 ac_cpp='$CXXCPP $CPPFLAGS'
2634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2637 ac_main_return=return
2638 if test -n "$ac_tool_prefix"; then
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643 echo "$as_me:2643: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$CXX"; then
2649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2651 ac_save_IFS=$IFS; IFS=$ac_path_separator
2653 for ac_dir in $ac_dummy; do
2655 test -z "$ac_dir" && ac_dir=.
2656 $as_executable_p "$ac_dir/$ac_word" || continue
2657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:2658: found $ac_dir/$ac_word" >&5
2665 if test -n "$CXX"; then
2666 echo "$as_me:2666: result: $CXX" >&5
2667 echo "${ECHO_T}$CXX" >&6
2669 echo "$as_me:2669: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2673 test -n "$CXX" && break
2676 if test -z "$CXX"; then
2678 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:2682: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CXX"; then
2688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2690 ac_save_IFS=$IFS; IFS=$ac_path_separator
2692 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 $as_executable_p "$ac_dir/$ac_word" || continue
2696 ac_cv_prog_ac_ct_CXX="$ac_prog"
2697 echo "$as_me:2697: found $ac_dir/$ac_word" >&5
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:2705: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2708 echo "$as_me:2708: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2719 # Provide some information about the compiler.
2720 echo "$as_me:2720:" \
2721 "checking for C++ compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (eval echo "$as_me:2723: \"$ac_compiler --version </dev/null >&5\"") >&5
2724 (eval $ac_compiler --version </dev/null >&5) 2>&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (eval echo "$as_me:2728: \"$ac_compiler -v </dev/null >&5\"") >&5
2729 (eval $ac_compiler -v </dev/null >&5) 2>&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (eval echo "$as_me:2733: \"$ac_compiler -V </dev/null >&5\"") >&5
2734 (eval $ac_compiler -V </dev/null >&5) 2>&5
2736 echo "$as_me:2736: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2739 echo "$as_me:2739: checking whether we are using the GNU C++ compiler" >&5
2740 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:2760: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>&5
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2781 echo "$as_me:2781: result: $ac_cv_cxx_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2783 GXX=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CXXFLAGS=${CXXFLAGS+set}
2785 ac_save_CXXFLAGS=$CXXFLAGS
2787 echo "$as_me:2787: checking whether $CXX accepts -g" >&5
2788 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2789 if test "${ac_cv_prog_cxx_g+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:2811: \"$ac_try\"") >&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_cv_prog_cxx_g=yes
2818 echo "$as_me: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2824 echo "$as_me:2824: result: $ac_cv_prog_cxx_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2826 if test "$ac_test_CXXFLAGS" = set; then
2827 CXXFLAGS=$ac_save_CXXFLAGS
2828 elif test $ac_cv_prog_cxx_g = yes; then
2829 if test "$GXX" = yes; then
2835 if test "$GXX" = yes; then
2841 for ac_declaration in \
2843 '#include <stdlib.h>' \
2844 'extern "C" void std::exit (int) throw (); using std::exit;' \
2845 'extern "C" void std::exit (int); using std::exit;' \
2846 'extern "C" void exit (int) throw ();' \
2847 'extern "C" void exit (int);' \
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line 2851 "configure"
2852 #include "confdefs.h"
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line 2883 "configure"
2884 #include "confdefs.h"
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 rm -f conftest.$ac_objext conftest.$ac_ext
2914 if test -n "$ac_declaration"; then
2915 echo '#ifdef __cplusplus' >>confdefs.h
2916 echo $ac_declaration >>confdefs.h
2917 echo '#endif' >>confdefs.h
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 ac_main_return=return
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2934 if test "x$cf_with_cxx" != xno
2936 # Several of the C++ configurations do not work, particularly when
2937 # cross-compiling (20140913 -TD)
2938 echo "$as_me:2938: checking if $CXX works" >&5
2939 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2941 save_CPPFLAGS="$CPPFLAGS"
2942 eval cf_includedir=${includedir}
2943 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2956 printf("Hello world!\n")
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:2963: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:2969: \"$ac_try\"") >&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2980 rm -f conftest.$ac_objext conftest.$ac_ext
2981 CPPFLAGS="$save_CPPFLAGS"
2983 echo "$as_me:2983: result: $cf_cxx_works" >&5
2984 echo "${ECHO_T}$cf_cxx_works" >&6
2985 if test "x$cf_cxx_works" = xno
2987 { echo "$as_me:2987: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2988 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2989 cf_with_cxx=no; CXX=""; GXX="";
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 ac_main_return=return
2999 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3000 if test "$CXX" = "g++" ; then
3001 # Extract the first word of "g++", so it can be a program name with args.
3002 set dummy g++; ac_word=$2
3003 echo "$as_me:3003: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_path_CXX+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3013 ac_save_IFS=$IFS; IFS=$ac_path_separator
3015 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if $as_executable_p "$ac_dir/$ac_word"; then
3019 ac_cv_path_CXX="$ac_dir/$ac_word"
3020 echo "$as_me:3020: found $ac_dir/$ac_word" >&5
3030 if test -n "$CXX"; then
3031 echo "$as_me:3031: result: $CXX" >&5
3032 echo "${ECHO_T}$CXX" >&6
3034 echo "$as_me:3034: result: no" >&5
3035 echo "${ECHO_T}no" >&6
3041 { echo "$as_me:3041: WARNING: You don't have any C++ compiler, too bad" >&5
3042 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3043 cf_with_cxx=no; CXX=""; GXX="";
3049 if test "$GXX" = yes; then
3050 echo "$as_me:3050: checking version of ${CXX:-g++}" >&5
3051 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3052 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3053 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3054 echo "$as_me:3054: result: $GXX_VERSION" >&5
3055 echo "${ECHO_T}$GXX_VERSION" >&6
3058 case $GXX_VERSION in
3060 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3062 { echo "$as_me:3062: WARNING: templates do not work" >&5
3063 echo "$as_me: WARNING: templates do not work" >&2;}
3067 echo "$as_me:3067: checking if you want to build C++ binding and demo" >&5
3068 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3070 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3071 if test "${with_cxx_binding+set}" = set; then
3072 withval="$with_cxx_binding"
3073 cf_with_cxx_binding=$withval
3075 cf_with_cxx_binding=$cf_with_cxx
3077 echo "$as_me:3077: result: $cf_with_cxx_binding" >&5
3078 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3080 echo "$as_me:3080: checking if you want to build with Ada95" >&5
3081 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3082 echo "$as_me:3082: result: $cf_with_ada" >&5
3083 echo "${ECHO_T}$cf_with_ada" >&6
3085 echo "$as_me:3085: checking if you want to install terminal database" >&5
3086 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3088 # Check whether --enable-db-install or --disable-db-install was given.
3089 if test "${enable_db_install+set}" = set; then
3090 enableval="$enable_db_install"
3091 cf_with_db_install=$enableval
3093 cf_with_db_install=yes
3095 echo "$as_me:3095: result: $cf_with_db_install" >&5
3096 echo "${ECHO_T}$cf_with_db_install" >&6
3098 echo "$as_me:3098: checking if you want to install manpages" >&5
3099 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3101 # Check whether --with-manpages or --without-manpages was given.
3102 if test "${with_manpages+set}" = set; then
3103 withval="$with_manpages"
3104 cf_with_manpages=$withval
3106 cf_with_manpages=yes
3108 echo "$as_me:3108: result: $cf_with_manpages" >&5
3109 echo "${ECHO_T}$cf_with_manpages" >&6
3111 echo "$as_me:3111: checking if you want to build programs such as tic" >&5
3112 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3114 # Check whether --with-progs or --without-progs was given.
3115 if test "${with_progs+set}" = set; then
3116 withval="$with_progs"
3117 cf_with_progs=$withval
3121 echo "$as_me:3121: result: $cf_with_progs" >&5
3122 echo "${ECHO_T}$cf_with_progs" >&6
3124 echo "$as_me:3124: checking if you want to build test-programs" >&5
3125 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3127 # Check whether --with-tests or --without-tests was given.
3128 if test "${with_tests+set}" = set; then
3129 withval="$with_tests"
3130 cf_with_tests=$withval
3134 echo "$as_me:3134: result: $cf_with_tests" >&5
3135 echo "${ECHO_T}$cf_with_tests" >&6
3137 echo "$as_me:3137: checking if you wish to install curses.h" >&5
3138 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3140 # Check whether --with-curses-h or --without-curses-h was given.
3141 if test "${with_curses_h+set}" = set; then
3142 withval="$with_curses_h"
3143 with_curses_h=$withval
3147 echo "$as_me:3147: result: $with_curses_h" >&5
3148 echo "${ECHO_T}$with_curses_h" >&6
3150 modules_to_build="ncurses"
3151 if test "X$cf_with_progs" != Xno ; then
3152 modules_to_build="$modules_to_build progs tack"
3154 modules_to_build="$modules_to_build panel menu form"
3156 test "$program_prefix" != NONE &&
3157 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3158 # Use a double $ so make ignores it.
3159 test "$program_suffix" != NONE &&
3160 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3161 # Double any \ or $. echo might interpret backslashes.
3162 # By default was `s,x,x', remove it if useless.
3163 cat <<\_ACEOF >conftest.sed
3164 s/[\\$]/&&/g;s/;s,x,x,$//
3166 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3169 for ac_prog in mawk gawk nawk awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 echo "$as_me:3173: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AWK+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3181 ac_save_IFS=$IFS; IFS=$ac_path_separator
3183 for ac_dir in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir=.
3186 $as_executable_p "$ac_dir/$ac_word" || continue
3187 ac_cv_prog_AWK="$ac_prog"
3188 echo "$as_me:3188: found $ac_dir/$ac_word" >&5
3195 if test -n "$AWK"; then
3196 echo "$as_me:3196: result: $AWK" >&5
3197 echo "${ECHO_T}$AWK" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 test -n "$AWK" && break
3206 test -z "$AWK" && { { echo "$as_me:3206: error: No awk program found" >&5
3207 echo "$as_me: error: No awk program found" >&2;}
3208 { (exit 1); exit 1; }; }
3210 echo "$as_me:3210: checking for egrep" >&5
3211 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3212 if test "${ac_cv_prog_egrep+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3216 then ac_cv_prog_egrep='grep -E'
3217 else ac_cv_prog_egrep='egrep'
3220 echo "$as_me:3220: result: $ac_cv_prog_egrep" >&5
3221 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3222 EGREP=$ac_cv_prog_egrep
3224 test -z "$EGREP" && { { echo "$as_me:3224: error: No egrep program found" >&5
3225 echo "$as_me: error: No egrep program found" >&2;}
3226 { (exit 1); exit 1; }; }
3228 # Find a good install program. We prefer a C program (faster),
3229 # so one script is as good as another. But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # ./install, which can be erroneously created by make from ./install.sh.
3240 echo "$as_me:3240: checking for a BSD compatible install" >&5
3241 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3242 if test -z "$INSTALL"; then
3243 if test "${ac_cv_path_install+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 ac_save_IFS=$IFS; IFS=$ac_path_separator
3247 for ac_dir in $PATH; do
3249 # Account for people who put trailing slashes in PATH elements.
3251 / | ./ | .// | /cC/* \
3252 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3255 # OSF1 and SCO ODT 3.0 have their own names for install.
3256 # Don't use installbsd from OSF since it installs stuff as root
3258 for ac_prog in ginstall scoinst install; do
3259 if $as_executable_p "$ac_dir/$ac_prog"; then
3260 if test $ac_prog = install &&
3261 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3262 # AIX install. It has an incompatible calling convention.
3264 elif test $ac_prog = install &&
3265 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3266 # program-specific install script used by HP pwplus--don't use.
3269 ac_cv_path_install="$ac_dir/$ac_prog -c"
3279 if test "${ac_cv_path_install+set}" = set; then
3280 INSTALL=$ac_cv_path_install
3282 # As a last resort, use the slow shell script. We don't cache a
3283 # path for INSTALL within a source directory, because that will
3284 # break other packages using the cache if that directory is
3285 # removed, or if the path is relative.
3286 INSTALL=$ac_install_sh
3289 echo "$as_me:3289: result: $INSTALL" >&5
3290 echo "${ECHO_T}$INSTALL" >&6
3292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3293 # It thinks the first close brace ends the variable substitution.
3294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3304 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3305 test -z "$cf_dir" && cf_dir=.
3306 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3310 for ac_prog in tdlint lint alint splint lclint
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_LINT+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$LINT"; then
3320 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_LINT="$ac_prog"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3335 LINT=$ac_cv_prog_LINT
3336 if test -n "$LINT"; then
3337 echo "$as_me:3337: result: $LINT" >&5
3338 echo "${ECHO_T}$LINT" >&6
3340 echo "$as_me:3340: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 test -n "$LINT" && break
3347 echo "$as_me:3347: checking whether ln -s works" >&5
3348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3350 if test "$LN_S" = "ln -s"; then
3351 echo "$as_me:3351: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3354 echo "$as_me:3354: result: no, using $LN_S" >&5
3355 echo "${ECHO_T}no, using $LN_S" >&6
3358 echo "$as_me:3358: checking if $LN_S -f options work" >&5
3359 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3361 rm -f conf$$.src conf$$dst
3363 echo first >conf$$.src
3364 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3369 rm -f conf$$.dst conf$$src
3370 echo "$as_me:3370: result: $cf_prog_ln_sf" >&5
3371 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3373 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3375 echo "$as_me:3375: checking for long file names" >&5
3376 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3377 if test "${ac_cv_sys_long_file_names+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_cv_sys_long_file_names=yes
3381 # Test for long file names in all the places we know might matter:
3382 # . the current directory, where building will happen
3383 # $prefix/lib where we will be installing things
3384 # $exec_prefix/lib likewise
3385 # eval it to expand exec_prefix.
3386 # $TMPDIR if set, where it might want to write temporary files
3387 # if $TMPDIR is not set:
3388 # /tmp where it might want to write temporary files
3391 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3394 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3396 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3397 test -d $ac_dir || continue
3398 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3399 ac_xdir=$ac_dir/cf$$
3400 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3401 ac_tf1=$ac_xdir/conftest9012345
3402 ac_tf2=$ac_xdir/conftest9012346
3403 (echo 1 >$ac_tf1) 2>/dev/null
3404 (echo 2 >$ac_tf2) 2>/dev/null
3405 ac_val=`cat $ac_tf1 2>/dev/null`
3406 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3407 ac_cv_sys_long_file_names=no
3408 rm -rf $ac_xdir 2>/dev/null
3411 rm -rf $ac_xdir 2>/dev/null
3414 echo "$as_me:3414: result: $ac_cv_sys_long_file_names" >&5
3415 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3416 if test $ac_cv_sys_long_file_names = yes; then
3418 cat >>confdefs.h <<\EOF
3419 #define HAVE_LONG_FILE_NAMES 1
3424 # if we find pkg-config, check if we should install the ".pc" files.
3426 echo "$as_me:3426: checking if you want to use pkg-config" >&5
3427 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3429 # Check whether --with-pkg-config or --without-pkg-config was given.
3430 if test "${with_pkg_config+set}" = set; then
3431 withval="$with_pkg_config"
3432 cf_pkg_config=$withval
3436 echo "$as_me:3436: result: $cf_pkg_config" >&5
3437 echo "${ECHO_T}$cf_pkg_config" >&6
3439 case $cf_pkg_config in
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3448 echo "$as_me:3448: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3458 ac_save_IFS=$IFS; IFS=$ac_path_separator
3460 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if $as_executable_p "$ac_dir/$ac_word"; then
3464 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3465 echo "$as_me:3465: found $ac_dir/$ac_word" >&5
3473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3475 if test -n "$PKG_CONFIG"; then
3476 echo "$as_me:3476: result: $PKG_CONFIG" >&5
3477 echo "${ECHO_T}$PKG_CONFIG" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$ac_cv_path_PKG_CONFIG"; then
3485 ac_pt_PKG_CONFIG=$PKG_CONFIG
3486 # Extract the first word of "pkg-config", so it can be a program name with args.
3487 set dummy pkg-config; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 case $ac_pt_PKG_CONFIG in
3495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if $as_executable_p "$ac_dir/$ac_word"; then
3504 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3510 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3516 if test -n "$ac_pt_PKG_CONFIG"; then
3517 echo "$as_me:3517: result: $ac_pt_PKG_CONFIG" >&5
3518 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3520 echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 PKG_CONFIG=$ac_pt_PKG_CONFIG
3526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3535 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3536 if test "$PKG_CONFIG" != none ; then
3538 if test "x$prefix" != xNONE; then
3539 cf_path_syntax="$prefix"
3541 cf_path_syntax="$ac_default_prefix"
3544 case ".$PKG_CONFIG" in
3549 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3551 (.\${*prefix}*|.\${*dir}*)
3552 eval PKG_CONFIG="$PKG_CONFIG"
3553 case ".$PKG_CONFIG" in
3555 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3560 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3563 { { echo "$as_me:3563: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3564 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3565 { (exit 1); exit 1; }; }
3569 elif test "x$cf_pkg_config" != xno ; then
3570 { echo "$as_me:3570: WARNING: pkg-config is not installed" >&5
3571 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3576 echo "$as_me:3576: checking for pkg-config library directory" >&5
3577 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3580 echo "$as_me:3580: checking for $PKG_CONFIG library directory" >&5
3581 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3585 PKG_CONFIG_LIBDIR=no
3587 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3588 if test "${with_pkg_config_libdir+set}" = set; then
3589 withval="$with_pkg_config_libdir"
3590 PKG_CONFIG_LIBDIR=$withval
3592 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3595 case x$PKG_CONFIG_LIBDIR in
3599 # Look for the library directory using the same prefix as the executable
3600 if test "x$PKG_CONFIG" = xnone
3604 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3607 # If you don't like using the default architecture, you have to specify the
3608 # intended library directory and corresponding compiler/linker options.
3610 # This case allows for Debian's 2014-flavor of multiarch, along with the
3611 # most common variations before that point. Some other variants spell the
3612 # directory differently, e.g., "pkg-config", and put it in unusual places.
3613 # pkg-config has always been poorly standardized, which is ironic...
3614 case x`(arch) 2>/dev/null` in
3617 $cf_path/lib/*64-linux-gnu \
3625 $cf_path/lib/*-linux-gnu \
3633 test -n "$verbose" && echo " list..." 1>&6
3635 echo "${as_me:-configure}:3635: testing list... ..." 1>&5
3637 for cf_config in $cf_search_path
3639 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3641 echo "${as_me:-configure}:3641: testing checking $cf_config/pkgconfig ..." 1>&5
3643 if test -d $cf_config/pkgconfig
3645 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3646 echo "$as_me:3646: checking done" >&5
3647 echo $ECHO_N "checking done... $ECHO_C" >&6
3656 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3657 echo "$as_me:3657: result: $PKG_CONFIG_LIBDIR" >&5
3658 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3661 if test "x$PKG_CONFIG" != xnone
3663 echo "$as_me:3663: checking if we should install .pc files for $PKG_CONFIG" >&5
3664 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3666 echo "$as_me:3666: checking if we should install .pc files" >&5
3667 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3670 # Check whether --enable-pc-files or --disable-pc-files was given.
3671 if test "${enable_pc_files+set}" = set; then
3672 enableval="$enable_pc_files"
3673 enable_pc_files=$enableval
3677 echo "$as_me:3677: result: $enable_pc_files" >&5
3678 echo "${ECHO_T}$enable_pc_files" >&6
3680 if test "x$enable_pc_files" != xno
3683 case "x$PKG_CONFIG_LIBDIR" in
3685 { echo "$as_me:3685: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3686 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3690 if test "x$prefix" != xNONE; then
3691 cf_path_syntax="$prefix"
3693 cf_path_syntax="$ac_default_prefix"
3696 case ".$PKG_CONFIG_LIBDIR" in
3701 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3703 (.\${*prefix}*|.\${*dir}*)
3704 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3705 case ".$PKG_CONFIG_LIBDIR" in
3707 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3712 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3715 { { echo "$as_me:3715: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3716 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3717 { (exit 1); exit 1; }; }
3727 if test -z "$MAKE_PC_FILES"
3729 echo "$as_me:3729: checking for suffix to add to pc-files" >&5
3730 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3732 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3733 if test "${with_pc_suffix+set}" = set; then
3734 withval="$with_pc_suffix"
3739 (*) PC_MODULE_SUFFIX="$withval"
3743 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3744 echo "$as_me:3744: result: $PC_MODULE_SUFFIX" >&5
3745 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3746 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3750 echo "$as_me:3750: checking if we should assume mixed-case filenames" >&5
3751 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3753 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3754 if test "${enable_mixed_case+set}" = set; then
3755 enableval="$enable_mixed_case"
3756 enable_mixedcase=$enableval
3758 enable_mixedcase=auto
3760 echo "$as_me:3760: result: $enable_mixedcase" >&5
3761 echo "${ECHO_T}$enable_mixedcase" >&6
3762 if test "$enable_mixedcase" = "auto" ; then
3764 echo "$as_me:3764: checking if filesystem supports mixed-case filenames" >&5
3765 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3766 if test "${cf_cv_mixedcase+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if test "$cross_compiling" = yes ; then
3771 case $target_alias in
3772 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3780 rm -f conftest CONFTEST
3782 if test -f CONFTEST ; then
3787 rm -f conftest CONFTEST
3791 echo "$as_me:3791: result: $cf_cv_mixedcase" >&5
3792 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3793 test "$cf_cv_mixedcase" = yes &&
3794 cat >>confdefs.h <<\EOF
3795 #define MIXEDCASE_FILENAMES 1
3799 cf_cv_mixedcase=$enable_mixedcase
3800 if test "x$enable_mixedcase" = "xyes" ; then
3802 cat >>confdefs.h <<\EOF
3803 #define MIXEDCASE_FILENAMES 1
3809 # do this after mixed-case option (tags/TAGS is not as important as tic).
3810 echo "$as_me:3810: checking whether ${MAKE-make} sets \${MAKE}" >&5
3811 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3812 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3813 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 cat >conftest.make <<\EOF
3818 @echo 'ac_maketemp="${MAKE}"'
3820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3821 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3822 if test -n "$ac_maketemp"; then
3823 eval ac_cv_prog_make_${ac_make}_set=yes
3825 eval ac_cv_prog_make_${ac_make}_set=no
3829 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3830 echo "$as_me:3830: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3834 echo "$as_me:3834: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 SET_MAKE="MAKE=${MAKE-make}"
3839 for ac_prog in exctags ctags
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 echo "$as_me:3843: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_CTAGS+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$CTAGS"; then
3849 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3851 ac_save_IFS=$IFS; IFS=$ac_path_separator
3853 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 $as_executable_p "$ac_dir/$ac_word" || continue
3857 ac_cv_prog_CTAGS="$ac_prog"
3858 echo "$as_me:3858: found $ac_dir/$ac_word" >&5
3864 CTAGS=$ac_cv_prog_CTAGS
3865 if test -n "$CTAGS"; then
3866 echo "$as_me:3866: result: $CTAGS" >&5
3867 echo "${ECHO_T}$CTAGS" >&6
3869 echo "$as_me:3869: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 test -n "$CTAGS" && break
3876 for ac_prog in exetags etags
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:3880: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_ETAGS+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if test -n "$ETAGS"; then
3886 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3888 ac_save_IFS=$IFS; IFS=$ac_path_separator
3890 for ac_dir in $ac_dummy; do
3892 test -z "$ac_dir" && ac_dir=.
3893 $as_executable_p "$ac_dir/$ac_word" || continue
3894 ac_cv_prog_ETAGS="$ac_prog"
3895 echo "$as_me:3895: found $ac_dir/$ac_word" >&5
3901 ETAGS=$ac_cv_prog_ETAGS
3902 if test -n "$ETAGS"; then
3903 echo "$as_me:3903: result: $ETAGS" >&5
3904 echo "${ECHO_T}$ETAGS" >&6
3906 echo "$as_me:3906: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 test -n "$ETAGS" && break
3913 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3914 set dummy ${CTAGS:-ctags}; ac_word=$2
3915 echo "$as_me:3915: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$MAKE_LOWER_TAGS"; then
3921 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3923 ac_save_IFS=$IFS; IFS=$ac_path_separator
3925 for ac_dir in $ac_dummy; do
3927 test -z "$ac_dir" && ac_dir=.
3928 $as_executable_p "$ac_dir/$ac_word" || continue
3929 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3930 echo "$as_me:3930: found $ac_dir/$ac_word" >&5
3934 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3937 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3938 if test -n "$MAKE_LOWER_TAGS"; then
3939 echo "$as_me:3939: result: $MAKE_LOWER_TAGS" >&5
3940 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3942 echo "$as_me:3942: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3946 if test "$cf_cv_mixedcase" = yes ; then
3947 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3948 set dummy ${ETAGS:-etags}; ac_word=$2
3949 echo "$as_me:3949: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 if test -n "$MAKE_UPPER_TAGS"; then
3955 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3957 ac_save_IFS=$IFS; IFS=$ac_path_separator
3959 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 $as_executable_p "$ac_dir/$ac_word" || continue
3963 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3964 echo "$as_me:3964: found $ac_dir/$ac_word" >&5
3968 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3971 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3972 if test -n "$MAKE_UPPER_TAGS"; then
3973 echo "$as_me:3973: result: $MAKE_UPPER_TAGS" >&5
3974 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3976 echo "$as_me:3976: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3984 if test "$MAKE_UPPER_TAGS" = yes ; then
3990 if test "$MAKE_LOWER_TAGS" = yes ; then
3996 echo "$as_me:3996: checking for makeflags variable" >&5
3997 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3998 if test "${cf_cv_makeflags+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4005 cat >cf_makeflags.tmp <<CF_EOF
4008 @ echo '.$cf_option'
4010 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4011 case "$cf_result" in
4013 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4014 case "$cf_result" in
4015 (.*CC=*) cf_cv_makeflags=
4017 (*) cf_cv_makeflags=$cf_option
4023 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4027 rm -f cf_makeflags.tmp
4030 echo "$as_me:4030: result: $cf_cv_makeflags" >&5
4031 echo "${ECHO_T}$cf_cv_makeflags" >&6
4033 if test -n "$ac_tool_prefix"; then
4034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4036 echo "$as_me:4036: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_RANLIB+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$RANLIB"; then
4042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4044 ac_save_IFS=$IFS; IFS=$ac_path_separator
4046 for ac_dir in $ac_dummy; do
4048 test -z "$ac_dir" && ac_dir=.
4049 $as_executable_p "$ac_dir/$ac_word" || continue
4050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4051 echo "$as_me:4051: found $ac_dir/$ac_word" >&5
4057 RANLIB=$ac_cv_prog_RANLIB
4058 if test -n "$RANLIB"; then
4059 echo "$as_me:4059: result: $RANLIB" >&5
4060 echo "${ECHO_T}$RANLIB" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4067 if test -z "$ac_cv_prog_RANLIB"; then
4068 ac_ct_RANLIB=$RANLIB
4069 # Extract the first word of "ranlib", so it can be a program name with args.
4070 set dummy ranlib; ac_word=$2
4071 echo "$as_me:4071: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$ac_ct_RANLIB"; then
4077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4079 ac_save_IFS=$IFS; IFS=$ac_path_separator
4081 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 $as_executable_p "$ac_dir/$ac_word" || continue
4085 ac_cv_prog_ac_ct_RANLIB="ranlib"
4086 echo "$as_me:4086: found $ac_dir/$ac_word" >&5
4090 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4094 if test -n "$ac_ct_RANLIB"; then
4095 echo "$as_me:4095: result: $ac_ct_RANLIB" >&5
4096 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4098 echo "$as_me:4098: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4102 RANLIB=$ac_ct_RANLIB
4104 RANLIB="$ac_cv_prog_RANLIB"
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ld; ac_word=$2
4110 echo "$as_me:4110: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_LD+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$LD"; then
4116 ac_cv_prog_LD="$LD" # Let the user override the test.
4118 ac_save_IFS=$IFS; IFS=$ac_path_separator
4120 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 $as_executable_p "$ac_dir/$ac_word" || continue
4124 ac_cv_prog_LD="${ac_tool_prefix}ld"
4125 echo "$as_me:4125: found $ac_dir/$ac_word" >&5
4132 if test -n "$LD"; then
4133 echo "$as_me:4133: result: $LD" >&5
4134 echo "${ECHO_T}$LD" >&6
4136 echo "$as_me:4136: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4141 if test -z "$ac_cv_prog_LD"; then
4143 # Extract the first word of "ld", so it can be a program name with args.
4144 set dummy ld; ac_word=$2
4145 echo "$as_me:4145: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -n "$ac_ct_LD"; then
4151 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4153 ac_save_IFS=$IFS; IFS=$ac_path_separator
4155 for ac_dir in $ac_dummy; do
4157 test -z "$ac_dir" && ac_dir=.
4158 $as_executable_p "$ac_dir/$ac_word" || continue
4159 ac_cv_prog_ac_ct_LD="ld"
4160 echo "$as_me:4160: found $ac_dir/$ac_word" >&5
4164 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4167 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4168 if test -n "$ac_ct_LD"; then
4169 echo "$as_me:4169: result: $ac_ct_LD" >&5
4170 echo "${ECHO_T}$ac_ct_LD" >&6
4172 echo "$as_me:4172: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}ar; ac_word=$2
4184 echo "$as_me:4184: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_AR+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 if test -n "$AR"; then
4190 ac_cv_prog_AR="$AR" # Let the user override the test.
4192 ac_save_IFS=$IFS; IFS=$ac_path_separator
4194 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 $as_executable_p "$ac_dir/$ac_word" || continue
4198 ac_cv_prog_AR="${ac_tool_prefix}ar"
4199 echo "$as_me:4199: found $ac_dir/$ac_word" >&5
4206 if test -n "$AR"; then
4207 echo "$as_me:4207: result: $AR" >&5
4208 echo "${ECHO_T}$AR" >&6
4210 echo "$as_me:4210: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4215 if test -z "$ac_cv_prog_AR"; then
4217 # Extract the first word of "ar", so it can be a program name with args.
4218 set dummy ar; ac_word=$2
4219 echo "$as_me:4219: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$ac_ct_AR"; then
4225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4227 ac_save_IFS=$IFS; IFS=$ac_path_separator
4229 for ac_dir in $ac_dummy; do
4231 test -z "$ac_dir" && ac_dir=.
4232 $as_executable_p "$ac_dir/$ac_word" || continue
4233 ac_cv_prog_ac_ct_AR="ar"
4234 echo "$as_me:4234: found $ac_dir/$ac_word" >&5
4238 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4242 if test -n "$ac_ct_AR"; then
4243 echo "$as_me:4243: result: $ac_ct_AR" >&5
4244 echo "${ECHO_T}$ac_ct_AR" >&6
4246 echo "$as_me:4246: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}nm; ac_word=$2
4258 echo "$as_me:4258: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_NM+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$NM"; then
4264 ac_cv_prog_NM="$NM" # Let the user override the test.
4266 ac_save_IFS=$IFS; IFS=$ac_path_separator
4268 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 $as_executable_p "$ac_dir/$ac_word" || continue
4272 ac_cv_prog_NM="${ac_tool_prefix}nm"
4273 echo "$as_me:4273: found $ac_dir/$ac_word" >&5
4280 if test -n "$NM"; then
4281 echo "$as_me:4281: result: $NM" >&5
4282 echo "${ECHO_T}$NM" >&6
4284 echo "$as_me:4284: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4289 if test -z "$ac_cv_prog_NM"; then
4291 # Extract the first word of "nm", so it can be a program name with args.
4292 set dummy nm; ac_word=$2
4293 echo "$as_me:4293: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -n "$ac_ct_NM"; then
4299 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4301 ac_save_IFS=$IFS; IFS=$ac_path_separator
4303 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 $as_executable_p "$ac_dir/$ac_word" || continue
4307 ac_cv_prog_ac_ct_NM="nm"
4308 echo "$as_me:4308: found $ac_dir/$ac_word" >&5
4312 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4315 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4316 if test -n "$ac_ct_NM"; then
4317 echo "$as_me:4317: result: $ac_ct_NM" >&5
4318 echo "${ECHO_T}$ac_ct_NM" >&6
4320 echo "$as_me:4320: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4329 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4331 set dummy ${ac_tool_prefix}ar; ac_word=$2
4332 echo "$as_me:4332: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_AR+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test -n "$AR"; then
4338 ac_cv_prog_AR="$AR" # Let the user override the test.
4340 ac_save_IFS=$IFS; IFS=$ac_path_separator
4342 for ac_dir in $ac_dummy; do
4344 test -z "$ac_dir" && ac_dir=.
4345 $as_executable_p "$ac_dir/$ac_word" || continue
4346 ac_cv_prog_AR="${ac_tool_prefix}ar"
4347 echo "$as_me:4347: found $ac_dir/$ac_word" >&5
4354 if test -n "$AR"; then
4355 echo "$as_me:4355: result: $AR" >&5
4356 echo "${ECHO_T}$AR" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4363 if test -z "$ac_cv_prog_AR"; then
4365 # Extract the first word of "ar", so it can be a program name with args.
4366 set dummy ar; ac_word=$2
4367 echo "$as_me:4367: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$ac_ct_AR"; then
4373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4375 ac_save_IFS=$IFS; IFS=$ac_path_separator
4377 for ac_dir in $ac_dummy; do
4379 test -z "$ac_dir" && ac_dir=.
4380 $as_executable_p "$ac_dir/$ac_word" || continue
4381 ac_cv_prog_ac_ct_AR="ar"
4382 echo "$as_me:4382: found $ac_dir/$ac_word" >&5
4386 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4390 if test -n "$ac_ct_AR"; then
4391 echo "$as_me:4391: result: $ac_ct_AR" >&5
4392 echo "${ECHO_T}$ac_ct_AR" >&6
4394 echo "$as_me:4394: result: no" >&5
4395 echo "${ECHO_T}no" >&6
4403 echo "$as_me:4403: checking for options to update archives" >&5
4404 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4405 if test "${cf_cv_ar_flags+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 cf_cv_ar_flags=unknown
4410 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4413 # check if $ARFLAGS already contains this choice
4414 if test "x$ARFLAGS" != "x" ; then
4415 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4416 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4422 rm -f conftest.$ac_cv_objext
4425 cat >conftest.$ac_ext <<EOF
4426 #line 4426 "configure"
4427 int testdata[3] = { 123, 456, 789 };
4429 if { (eval echo "$as_me:4429: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); } ; then
4434 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4435 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4436 if test -f conftest.a ; then
4437 cf_cv_ar_flags=$cf_ar_flags
4441 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4443 echo "${as_me:-configure}:4443: testing cannot compile test-program ..." 1>&5
4448 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4451 echo "$as_me:4451: result: $cf_cv_ar_flags" >&5
4452 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4454 if test -n "$ARFLAGS" ; then
4455 if test -n "$cf_cv_ar_flags" ; then
4456 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4459 ARFLAGS=$cf_cv_ar_flags
4462 echo "$as_me:4462: checking if you have specified an install-prefix" >&5
4463 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4465 # Check whether --with-install-prefix or --without-install-prefix was given.
4466 if test "${with_install_prefix+set}" = set; then
4467 withval="$with_install_prefix"
4471 (*) DESTDIR="$withval"
4475 echo "$as_me:4475: result: $DESTDIR" >&5
4476 echo "${ECHO_T}$DESTDIR" >&6
4478 ###############################################################################
4480 # If we're cross-compiling, allow the user to override the tools and their
4481 # options. The configure script is oriented toward identifying the host
4482 # compiler, etc., but we need a build compiler to generate parts of the source.
4484 if test "$cross_compiling" = yes ; then
4486 # defaults that we might want to override
4487 : ${BUILD_CFLAGS:=''}
4488 : ${BUILD_CPPFLAGS:=''}
4489 : ${BUILD_LDFLAGS:=''}
4491 : ${BUILD_EXEEXT:='$x'}
4492 : ${BUILD_OBJEXT:='o'}
4494 # Check whether --with-build-cc or --without-build-cc was given.
4495 if test "${with_build_cc+set}" = set; then
4496 withval="$with_build_cc"
4499 for ac_prog in gcc cc cl
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:4503: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4511 ac_save_IFS=$IFS; IFS=$ac_path_separator
4513 for ac_dir in $ac_dummy; do
4515 test -z "$ac_dir" && ac_dir=.
4516 $as_executable_p "$ac_dir/$ac_word" || continue
4517 ac_cv_prog_BUILD_CC="$ac_prog"
4518 echo "$as_me:4518: found $ac_dir/$ac_word" >&5
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526 echo "$as_me:4526: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6
4529 echo "$as_me:4529: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4533 test -n "$BUILD_CC" && break
4537 echo "$as_me:4537: checking for native build C compiler" >&5
4538 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4539 echo "$as_me:4539: result: $BUILD_CC" >&5
4540 echo "${ECHO_T}$BUILD_CC" >&6
4542 echo "$as_me:4542: checking for native build C preprocessor" >&5
4543 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4545 # Check whether --with-build-cpp or --without-build-cpp was given.
4546 if test "${with_build_cpp+set}" = set; then
4547 withval="$with_build_cpp"
4548 BUILD_CPP="$withval"
4550 BUILD_CPP='${BUILD_CC} -E'
4552 echo "$as_me:4552: result: $BUILD_CPP" >&5
4553 echo "${ECHO_T}$BUILD_CPP" >&6
4555 echo "$as_me:4555: checking for native build C flags" >&5
4556 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4558 # Check whether --with-build-cflags or --without-build-cflags was given.
4559 if test "${with_build_cflags+set}" = set; then
4560 withval="$with_build_cflags"
4561 BUILD_CFLAGS="$withval"
4563 echo "$as_me:4563: result: $BUILD_CFLAGS" >&5
4564 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4566 echo "$as_me:4566: checking for native build C preprocessor-flags" >&5
4567 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4569 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4570 if test "${with_build_cppflags+set}" = set; then
4571 withval="$with_build_cppflags"
4572 BUILD_CPPFLAGS="$withval"
4574 echo "$as_me:4574: result: $BUILD_CPPFLAGS" >&5
4575 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4577 echo "$as_me:4577: checking for native build linker-flags" >&5
4578 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4580 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4581 if test "${with_build_ldflags+set}" = set; then
4582 withval="$with_build_ldflags"
4583 BUILD_LDFLAGS="$withval"
4585 echo "$as_me:4585: result: $BUILD_LDFLAGS" >&5
4586 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4588 echo "$as_me:4588: checking for native build linker-libraries" >&5
4589 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4591 # Check whether --with-build-libs or --without-build-libs was given.
4592 if test "${with_build_libs+set}" = set; then
4593 withval="$with_build_libs"
4594 BUILD_LIBS="$withval"
4596 echo "$as_me:4596: result: $BUILD_LIBS" >&5
4597 echo "${ECHO_T}$BUILD_LIBS" >&6
4599 # this assumes we're on Unix.
4603 : ${BUILD_CC:='${CC}'}
4605 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4606 { { echo "$as_me:4606: error: Cross-build requires two compilers.
4607 Use --with-build-cc to specify the native compiler." >&5
4608 echo "$as_me: error: Cross-build requires two compilers.
4609 Use --with-build-cc to specify the native compiler." >&2;}
4610 { (exit 1); exit 1; }; }
4614 : ${BUILD_CC:='${CC}'}
4615 : ${BUILD_CPP:='${CPP}'}
4616 : ${BUILD_CFLAGS:='${CFLAGS}'}
4617 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4618 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4619 : ${BUILD_LIBS:='${LIBS}'}
4620 : ${BUILD_EXEEXT:='$x'}
4621 : ${BUILD_OBJEXT:='o'}
4624 ###############################################################################
4626 ### Options to allow the user to specify the set of libraries which are used.
4627 ### Use "--without-normal --with-shared" to allow the default model to be
4628 ### shared, for example.
4631 echo "$as_me:4631: checking if libtool -version-number should be used" >&5
4632 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4634 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4635 if test "${enable_libtool_version+set}" = set; then
4636 enableval="$enable_libtool_version"
4637 test "$enableval" != no && enableval=yes
4638 if test "$enableval" != "yes" ; then
4639 cf_libtool_version=no
4641 cf_libtool_version=yes
4645 cf_libtool_version=yes
4648 echo "$as_me:4648: result: $cf_libtool_version" >&5
4649 echo "${ECHO_T}$cf_libtool_version" >&6
4651 if test "$cf_libtool_version" = yes ; then
4652 LIBTOOL_VERSION="-version-number"
4654 LIBTOOL_VERSION="-version-info"
4657 { echo "$as_me:4657: WARNING: VERSION was not set" >&5
4658 echo "$as_me: WARNING: VERSION was not set" >&2;}
4661 ABI_VERSION="$VERSION"
4662 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4664 echo "${as_me:-configure}:4664: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4668 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4669 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4671 echo "${as_me:-configure}:4671: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4675 { echo "$as_me:4675: WARNING: unexpected VERSION value: $VERSION" >&5
4676 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4683 # common library maintenance symbols that are convenient for libtool scripts:
4684 LIB_CREATE='${AR} -cr'
4685 LIB_OBJECT='${OBJECTS}'
4689 # symbols used to prop libtool up to enable it to determine what it should be
4697 echo "$as_me:4697: checking if you want to build libraries with libtool" >&5
4698 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4700 # Check whether --with-libtool or --without-libtool was given.
4701 if test "${with_libtool+set}" = set; then
4702 withval="$with_libtool"
4703 with_libtool=$withval
4707 echo "$as_me:4707: result: $with_libtool" >&5
4708 echo "${ECHO_T}$with_libtool" >&6
4709 if test "$with_libtool" != "no"; then
4711 if test "$with_libtool" != "yes" ; then
4713 if test "x$prefix" != xNONE; then
4714 cf_path_syntax="$prefix"
4716 cf_path_syntax="$ac_default_prefix"
4719 case ".$with_libtool" in
4724 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4726 (.\${*prefix}*|.\${*dir}*)
4727 eval with_libtool="$with_libtool"
4728 case ".$with_libtool" in
4730 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4735 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4738 { { echo "$as_me:4738: error: expected a pathname, not \"$with_libtool\"" >&5
4739 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4740 { (exit 1); exit 1; }; }
4744 LIBTOOL=$with_libtool
4746 if test -n "$ac_tool_prefix"; then
4747 for ac_prog in libtool glibtool
4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4751 echo "$as_me:4751: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4753 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 if test -n "$LIBTOOL"; then
4757 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4759 ac_save_IFS=$IFS; IFS=$ac_path_separator
4761 for ac_dir in $ac_dummy; do
4763 test -z "$ac_dir" && ac_dir=.
4764 $as_executable_p "$ac_dir/$ac_word" || continue
4765 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4766 echo "$as_me:4766: found $ac_dir/$ac_word" >&5
4772 LIBTOOL=$ac_cv_prog_LIBTOOL
4773 if test -n "$LIBTOOL"; then
4774 echo "$as_me:4774: result: $LIBTOOL" >&5
4775 echo "${ECHO_T}$LIBTOOL" >&6
4777 echo "$as_me:4777: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4781 test -n "$LIBTOOL" && break
4784 if test -z "$LIBTOOL"; then
4785 ac_ct_LIBTOOL=$LIBTOOL
4786 for ac_prog in libtool glibtool
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 echo "$as_me:4790: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$ac_ct_LIBTOOL"; then
4796 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4798 ac_save_IFS=$IFS; IFS=$ac_path_separator
4800 for ac_dir in $ac_dummy; do
4802 test -z "$ac_dir" && ac_dir=.
4803 $as_executable_p "$ac_dir/$ac_word" || continue
4804 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4805 echo "$as_me:4805: found $ac_dir/$ac_word" >&5
4811 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4812 if test -n "$ac_ct_LIBTOOL"; then
4813 echo "$as_me:4813: result: $ac_ct_LIBTOOL" >&5
4814 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4816 echo "$as_me:4816: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$ac_ct_LIBTOOL" && break
4822 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4824 LIBTOOL=$ac_ct_LIBTOOL
4827 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4829 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.].*//'`
4831 cf_cv_libtool_version=
4833 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4835 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4838 unset ac_cv_prog_ac_ct_LIBTOOL
4842 if test -n "$ac_tool_prefix"; then
4843 for ac_prog in glibtool
4845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4847 echo "$as_me:4847: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 if test -n "$LIBTOOL"; then
4853 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4855 ac_save_IFS=$IFS; IFS=$ac_path_separator
4857 for ac_dir in $ac_dummy; do
4859 test -z "$ac_dir" && ac_dir=.
4860 $as_executable_p "$ac_dir/$ac_word" || continue
4861 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4862 echo "$as_me:4862: found $ac_dir/$ac_word" >&5
4868 LIBTOOL=$ac_cv_prog_LIBTOOL
4869 if test -n "$LIBTOOL"; then
4870 echo "$as_me:4870: result: $LIBTOOL" >&5
4871 echo "${ECHO_T}$LIBTOOL" >&6
4873 echo "$as_me:4873: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4877 test -n "$LIBTOOL" && break
4880 if test -z "$LIBTOOL"; then
4881 ac_ct_LIBTOOL=$LIBTOOL
4882 for ac_prog in glibtool
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 echo "$as_me:4886: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test -n "$ac_ct_LIBTOOL"; then
4892 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4894 ac_save_IFS=$IFS; IFS=$ac_path_separator
4896 for ac_dir in $ac_dummy; do
4898 test -z "$ac_dir" && ac_dir=.
4899 $as_executable_p "$ac_dir/$ac_word" || continue
4900 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4901 echo "$as_me:4901: found $ac_dir/$ac_word" >&5
4907 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4908 if test -n "$ac_ct_LIBTOOL"; then
4909 echo "$as_me:4909: result: $ac_ct_LIBTOOL" >&5
4910 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4912 echo "$as_me:4912: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4916 test -n "$ac_ct_LIBTOOL" && break
4918 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4920 LIBTOOL=$ac_ct_LIBTOOL
4923 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4925 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.].*//'`
4927 cf_cv_libtool_version=
4929 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4933 if test -z "$LIBTOOL" ; then
4934 { { echo "$as_me:4934: error: Cannot find libtool" >&5
4935 echo "$as_me: error: Cannot find libtool" >&2;}
4936 { (exit 1); exit 1; }; }
4938 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4939 LIB_OBJECT='${OBJECTS:.o=.lo}'
4941 LIB_CLEAN='${LIBTOOL} --mode=clean'
4942 LIB_COMPILE='${LIBTOOL} --mode=compile'
4943 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4944 LIB_INSTALL='${LIBTOOL} --mode=install'
4945 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4948 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4950 echo "$as_me:4950: checking version of $LIBTOOL" >&5
4951 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4953 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4955 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.].*//'`
4957 cf_cv_libtool_version=
4959 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4961 echo "$as_me:4961: result: $cf_cv_libtool_version" >&5
4962 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4963 if test -z "$cf_cv_libtool_version" ; then
4964 { { echo "$as_me:4964: error: This is not GNU libtool" >&5
4965 echo "$as_me: error: This is not GNU libtool" >&2;}
4966 { (exit 1); exit 1; }; }
4969 { { echo "$as_me:4969: error: GNU libtool has not been found" >&5
4970 echo "$as_me: error: GNU libtool has not been found" >&2;}
4971 { (exit 1); exit 1; }; }
4974 # special hack to add -no-undefined (which libtool should do for itself)
4976 case "$cf_cv_system_name" in
4977 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
4978 LT_UNDEF=-no-undefined
4982 # special hack to add --tag option for C++ compiler
4983 case $cf_cv_libtool_version in
4984 (1.[5-9]*|[2-9].[0-9.a-z]*)
4985 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4986 LIBTOOL="$LIBTOOL --tag=CC"
4989 LIBTOOL_CXX="$LIBTOOL"
4997 test -z "$LIBTOOL" && ECHO_LT=
4999 if test "$with_libtool" != "no" ; then
5001 cf_list_models="$cf_list_models libtool"
5005 echo "$as_me:5005: checking if you want to build shared libraries" >&5
5006 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5008 # Check whether --with-shared or --without-shared was given.
5009 if test "${with_shared+set}" = set; then
5010 withval="$with_shared"
5011 with_shared=$withval
5015 echo "$as_me:5015: result: $with_shared" >&5
5016 echo "${ECHO_T}$with_shared" >&6
5017 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5019 echo "$as_me:5019: checking if you want to build static libraries" >&5
5020 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5022 # Check whether --with-normal or --without-normal was given.
5023 if test "${with_normal+set}" = set; then
5024 withval="$with_normal"
5025 with_normal=$withval
5029 echo "$as_me:5029: result: $with_normal" >&5
5030 echo "${ECHO_T}$with_normal" >&6
5031 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5033 echo "$as_me:5033: checking if you want to build debug libraries" >&5
5034 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5036 # Check whether --with-debug or --without-debug was given.
5037 if test "${with_debug+set}" = set; then
5038 withval="$with_debug"
5043 echo "$as_me:5043: result: $with_debug" >&5
5044 echo "${ECHO_T}$with_debug" >&6
5045 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5047 echo "$as_me:5047: checking if you want to build profiling libraries" >&5
5048 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5050 # Check whether --with-profile or --without-profile was given.
5051 if test "${with_profile+set}" = set; then
5052 withval="$with_profile"
5053 with_profile=$withval
5057 echo "$as_me:5057: result: $with_profile" >&5
5058 echo "${ECHO_T}$with_profile" >&6
5059 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5063 if test "X$cf_with_cxx_binding" != Xno; then
5064 if test "x$with_shared" = "xyes"; then
5065 echo "$as_me:5065: checking if you want to build C++ shared libraries" >&5
5066 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5068 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5069 if test "${with_cxx_shared+set}" = set; then
5070 withval="$with_cxx_shared"
5071 with_shared_cxx=$withval
5075 echo "$as_me:5075: result: $with_shared_cxx" >&5
5076 echo "${ECHO_T}$with_shared_cxx" >&6
5080 ###############################################################################
5082 echo "$as_me:5082: checking for specified models" >&5
5083 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5084 test -z "$cf_list_models" && cf_list_models=normal
5085 test "$with_libtool" != "no" && cf_list_models=libtool
5086 echo "$as_me:5086: result: $cf_list_models" >&5
5087 echo "${ECHO_T}$cf_list_models" >&6
5089 ### Use the first model as the default, and save its suffix for use in building
5090 ### up test-applications.
5091 echo "$as_me:5091: checking for default model" >&5
5092 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5093 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5094 echo "$as_me:5094: result: $DFT_LWR_MODEL" >&5
5095 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5097 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5108 echo "$as_me:5108: checking if you want to have a library-prefix" >&5
5109 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5111 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5112 if test "${with_lib_prefix+set}" = set; then
5113 withval="$with_lib_prefix"
5114 with_lib_prefix=$withval
5116 with_lib_prefix=auto
5118 echo "$as_me:5118: result: $with_lib_prefix" >&5
5119 echo "${ECHO_T}$with_lib_prefix" >&6
5121 if test $with_lib_prefix = auto
5124 case $cf_cv_system_name in
5126 if test "$DFT_LWR_MODEL" = libtool; then
5132 (*) LIB_PREFIX='lib'
5135 cf_prefix=$LIB_PREFIX
5137 elif test $with_lib_prefix = no
5141 LIB_PREFIX=$with_lib_prefix
5146 echo "$as_me:5146: checking for PATH separator" >&5
5147 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5148 case $cf_cv_system_name in
5149 (os2*) PATH_SEPARATOR=';' ;;
5150 (*) ${PATH_SEPARATOR:=':'} ;;
5153 echo "$as_me:5153: result: $PATH_SEPARATOR" >&5
5154 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5156 ###############################################################################
5158 echo "$as_me:5158: checking if you want to build a separate terminfo library" >&5
5159 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5161 # Check whether --with-termlib or --without-termlib was given.
5162 if test "${with_termlib+set}" = set; then
5163 withval="$with_termlib"
5164 with_termlib=$withval
5168 echo "$as_me:5168: result: $with_termlib" >&5
5169 echo "${ECHO_T}$with_termlib" >&6
5171 echo "$as_me:5171: checking if you want to build a separate tic library" >&5
5172 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5174 # Check whether --with-ticlib or --without-ticlib was given.
5175 if test "${with_ticlib+set}" = set; then
5176 withval="$with_ticlib"
5177 with_ticlib=$withval
5181 echo "$as_me:5181: result: $with_ticlib" >&5
5182 echo "${ECHO_T}$with_ticlib" >&6
5184 ### Checks for special libraries, must be done up-front.
5187 echo "$as_me:5187: checking if you want to link with the GPM mouse library" >&5
5188 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5190 # Check whether --with-gpm or --without-gpm was given.
5191 if test "${with_gpm+set}" = set; then
5197 echo "$as_me:5197: result: $with_gpm" >&5
5198 echo "${ECHO_T}$with_gpm" >&6
5200 if test "$with_gpm" != no ; then
5201 echo "$as_me:5201: checking for gpm.h" >&5
5202 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5203 if test "${ac_cv_header_gpm_h+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line 5207 "configure"
5208 #include "confdefs.h"
5211 if { (eval echo "$as_me:5211: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 egrep -v '^ *\+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_c_preproc_warn_flag
5227 if test -z "$ac_cpp_err"; then
5228 ac_cv_header_gpm_h=yes
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_cv_header_gpm_h=no
5234 rm -f conftest.err conftest.$ac_ext
5236 echo "$as_me:5236: result: $ac_cv_header_gpm_h" >&5
5237 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5238 if test $ac_cv_header_gpm_h = yes; then
5240 cat >>confdefs.h <<\EOF
5241 #define HAVE_GPM_H 1
5244 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5245 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5247 echo "${as_me:-configure}:5247: testing assuming we really have GPM library ..." 1>&5
5249 cat >>confdefs.h <<\EOF
5250 #define HAVE_LIBGPM 1
5254 echo "$as_me:5254: checking for Gpm_Open in -lgpm" >&5
5255 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5256 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_check_lib_save_LIBS=$LIBS
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:5284: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_lib_gpm_Gpm_Open=yes
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_gpm_Gpm_Open=no
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:5301: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5302 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5303 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5307 { { echo "$as_me:5307: error: Cannot link with GPM library" >&5
5308 echo "$as_me: error: Cannot link with GPM library" >&2;}
5309 { (exit 1); exit 1; }; }
5317 test "$with_gpm" != maybe && { echo "$as_me:5317: WARNING: Cannot find GPM header" >&5
5318 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5325 if test "$with_gpm" != no ; then
5326 echo "$as_me:5326: checking if you want to load GPM dynamically" >&5
5327 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5329 # Check whether --with-dlsym or --without-dlsym was given.
5330 if test "${with_dlsym+set}" = set; then
5331 withval="$with_dlsym"
5336 echo "$as_me:5336: result: $with_dlsym" >&5
5337 echo "${ECHO_T}$with_dlsym" >&6
5338 if test "x$with_dlsym" = xyes ; then
5341 echo "$as_me:5341: checking for dlsym" >&5
5342 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5343 if test "${ac_cv_func_dlsym+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line 5347 "configure"
5348 #include "confdefs.h"
5349 /* System header to define __stub macros and hopefully few prototypes,
5350 which can conflict with char dlsym (); below. */
5352 /* Override any gcc2 internal prototype to avoid an error. */
5356 /* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */
5364 /* The GNU C library defines this for functions which it implements
5365 to always fail with ENOSYS. Some functions are actually named
5366 something starting with __ and the normal name is an alias. */
5367 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5370 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:5378: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:5381: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest$ac_exeext'
5384 { (eval echo "$as_me:5384: \"$ac_try\"") >&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_func_dlsym=yes
5391 echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5397 echo "$as_me:5397: result: $ac_cv_func_dlsym" >&5
5398 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5399 if test $ac_cv_func_dlsym = yes; then
5404 echo "$as_me:5404: checking for dlsym in -ldl" >&5
5405 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5406 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_check_lib_save_LIBS=$LIBS
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line 5412 "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:5431: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>&5
5434 echo "$as_me:5434: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:5437: \"$ac_try\"") >&5
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_lib_dl_dlsym=yes
5444 echo "$as_me: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 ac_cv_lib_dl_dlsym=no
5448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5449 LIBS=$ac_check_lib_save_LIBS
5451 echo "$as_me:5451: result: $ac_cv_lib_dl_dlsym" >&5
5452 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5453 if test $ac_cv_lib_dl_dlsym = yes; then
5461 if test "$cf_have_dlsym" = yes ; then
5462 test "$cf_have_libdl" = yes && {
5464 # Filter out duplicates - this happens with badly-designed ".pc" files...
5465 for cf_add_1lib in $LIBS
5467 for cf_add_2lib in $cf_add_libs
5469 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5475 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5480 echo "$as_me:5480: checking whether able to link to dl*() functions" >&5
5481 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line 5483 "configure"
5484 #include "confdefs.h"
5491 if ((obj = dlopen("filename", 0)) != 0) {
5492 if (dlsym(obj, "symbolname") == 0) {
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:5501: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:5507: \"$ac_try\"") >&5
5510 echo "$as_me:5510: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5513 cat >>confdefs.h <<\EOF
5514 #define HAVE_LIBDL 1
5518 echo "$as_me: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 { { echo "$as_me:5521: error: Cannot link test program for libdl" >&5
5522 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5523 { (exit 1); exit 1; }; }
5525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 echo "$as_me:5526: result: ok" >&5
5527 echo "${ECHO_T}ok" >&6
5529 { { echo "$as_me:5529: error: Cannot find dlsym function" >&5
5530 echo "$as_me: error: Cannot find dlsym function" >&2;}
5531 { (exit 1); exit 1; }; }
5534 if test "x$with_gpm" != xyes ; then
5535 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5537 echo "${as_me:-configure}:5537: testing assuming soname for gpm is $with_gpm ..." 1>&5
5539 cf_cv_gpm_soname="$with_gpm"
5542 echo "$as_me:5542: checking for soname of gpm library" >&5
5543 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5544 if test "${cf_cv_gpm_soname+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 cf_cv_gpm_soname=unknown
5549 if test "$cross_compiling" != yes ; then
5550 cat >conftest.$ac_ext <<CF_EOF
5554 if (Gpm_Open(0,0)) Gpm_Close();
5555 ${cf_cv_main_return:-return}(0);
5558 cf_save_LIBS="$LIBS"
5561 # Filter out duplicates - this happens with badly-designed ".pc" files...
5562 for cf_add_1lib in $LIBS
5564 for cf_add_2lib in $cf_add_libs
5566 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5572 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5576 if { (eval echo "$as_me:5576: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:5579: \$? = $ac_status" >&5
5580 (exit $ac_status); } ; then
5581 if { (eval echo "$as_me:5581: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:5584: \$? = $ac_status" >&5
5585 (exit $ac_status); } ; then
5586 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5587 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5591 LIBS="$cf_save_LIBS"
5595 echo "$as_me:5595: result: $cf_cv_gpm_soname" >&5
5596 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5599 test "$cf_cv_gpm_soname" != "unknown" &&
5600 cat >>confdefs.h <<EOF
5601 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5604 SHLIB_LIST="-ldl $SHLIB_LIST"
5606 SHLIB_LIST="-lgpm $SHLIB_LIST"
5609 # Filter out duplicates - this happens with badly-designed ".pc" files...
5610 for cf_add_1lib in $TEST_LIBS
5612 for cf_add_2lib in $cf_add_libs
5614 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5620 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5622 TEST_LIBS="$cf_add_libs"
5626 cat >>confdefs.h <<\EOF
5627 #define HAVE_LIBGPM 1
5630 echo "$as_me:5630: checking for Gpm_Wgetch in -lgpm" >&5
5631 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5632 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_check_lib_save_LIBS=$LIBS
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line 5638 "configure"
5639 #include "confdefs.h"
5641 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:5657: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:5660: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:5663: \"$ac_try\"") >&5
5666 echo "$as_me:5666: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_lib_gpm_Gpm_Wgetch=yes
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_cv_lib_gpm_Gpm_Wgetch=no
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5677 echo "$as_me:5677: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5678 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5679 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5681 echo "$as_me:5681: checking if GPM is weakly bound to curses library" >&5
5682 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5683 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cf_cv_check_gpm_wgetch=unknown
5688 if test "$cross_compiling" != yes ; then
5690 cat >conftest.$ac_ext <<CF_EOF
5695 ${cf_cv_main_return:-return}(0);
5699 cf_save_LIBS="$LIBS"
5700 # This only works if we can look at the symbol table. If a shared
5701 # library is stripped for install, we cannot use that. So we're forced
5702 # to rely on the static library, noting that some packagers may not
5704 LIBS="-static -lgpm -dynamic $LIBS"
5705 if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 (exit $ac_status); } ; then
5710 if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); } ; then
5715 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5716 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5717 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5721 LIBS="$cf_save_LIBS"
5725 echo "$as_me:5725: result: $cf_cv_check_gpm_wgetch" >&5
5726 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5728 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5729 { echo "$as_me:5729: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5730 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5737 # not everyone has "test -c"
5738 if test -c /dev/sysmouse 2>/dev/null ; then
5739 echo "$as_me:5739: checking if you want to use sysmouse" >&5
5740 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5742 # Check whether --with-sysmouse or --without-sysmouse was given.
5743 if test "${with_sysmouse+set}" = set; then
5744 withval="$with_sysmouse"
5745 cf_with_sysmouse=$withval
5747 cf_with_sysmouse=maybe
5749 if test "$cf_with_sysmouse" != no ; then
5750 cat >conftest.$ac_ext <<_ACEOF
5751 #line 5751 "configure"
5752 #include "confdefs.h"
5754 #include <osreldate.h>
5755 #if (__FreeBSD_version >= 400017)
5756 #include <sys/consio.h>
5757 #include <sys/fbio.h>
5759 #include <machine/console.h>
5766 struct mouse_info the_mouse;
5767 ioctl(0, CONS_MOUSECTL, &the_mouse);
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:5774: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:5777: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:5780: \"$ac_try\"") >&5
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 cf_with_sysmouse=yes
5787 echo "$as_me: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:5793: result: $cf_with_sysmouse" >&5
5794 echo "${ECHO_T}$cf_with_sysmouse" >&6
5795 test "$cf_with_sysmouse" = yes &&
5796 cat >>confdefs.h <<\EOF
5797 #define USE_SYSMOUSE 1
5802 if test X"$CC_G_OPT" = X"" ; then
5804 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5807 if test X"$CXX_G_OPT" = X"" ; then
5809 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5812 echo "$as_me:5812: checking for default loader flags" >&5
5813 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5814 case $DFT_LWR_MODEL in
5815 (libtool) LD_MODEL='' ;;
5816 (normal) LD_MODEL='' ;;
5817 (debug) LD_MODEL=$CC_G_OPT ;;
5818 (profile) LD_MODEL='-pg';;
5819 (shared) LD_MODEL='' ;;
5821 echo "$as_me:5821: result: $LD_MODEL" >&5
5822 echo "${ECHO_T}$LD_MODEL" >&6
5824 case $DFT_LWR_MODEL in
5827 echo "$as_me:5827: checking if rpath option should be used" >&5
5828 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5830 # Check whether --enable-rpath or --disable-rpath was given.
5831 if test "${enable_rpath+set}" = set; then
5832 enableval="$enable_rpath"
5833 cf_cv_enable_rpath=$enableval
5835 cf_cv_enable_rpath=no
5837 echo "$as_me:5837: result: $cf_cv_enable_rpath" >&5
5838 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5840 echo "$as_me:5840: checking if shared libraries should be relinked during install" >&5
5841 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5843 # Check whether --enable-relink or --disable-relink was given.
5844 if test "${enable_relink+set}" = set; then
5845 enableval="$enable_relink"
5846 cf_cv_do_relink=$enableval
5850 echo "$as_me:5850: result: $cf_cv_do_relink" >&5
5851 echo "${ECHO_T}$cf_cv_do_relink" >&6
5855 # we will build libraries one-level down.
5859 echo "$as_me:5859: checking for an rpath option" >&5
5860 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5861 case $cf_cv_system_name in
5863 if test "$GCC" = yes; then
5864 LD_RPATH_OPT="-Wl,-rpath,"
5866 LD_RPATH_OPT="-rpath "
5869 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5870 LD_RPATH_OPT="-Wl,-rpath,"
5872 (openbsd[2-9].*|mirbsd*)
5873 LD_RPATH_OPT="-Wl,-rpath,"
5876 LD_RPATH_OPT="-rpath "
5879 LD_RPATH_OPT="-Wl,-rpath,"
5882 LD_RPATH_OPT="-rpath "
5890 echo "$as_me:5890: result: $LD_RPATH_OPT" >&5
5891 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5893 case "x$LD_RPATH_OPT" in
5895 echo "$as_me:5895: checking if we need a space after rpath option" >&5
5896 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5897 cf_save_LIBS="$LIBS"
5899 cf_add_libs="${LD_RPATH_OPT}$libdir"
5900 # Filter out duplicates - this happens with badly-designed ".pc" files...
5901 for cf_add_1lib in $LIBS
5903 for cf_add_2lib in $cf_add_libs
5905 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5911 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line 5916 "configure"
5917 #include "confdefs.h"
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:5928: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5931 echo "$as_me:5931: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -s conftest$ac_exeext'
5934 { (eval echo "$as_me:5934: \"$ac_try\"") >&5
5937 echo "$as_me:5937: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946 LIBS="$cf_save_LIBS"
5947 echo "$as_me:5947: result: $cf_rpath_space" >&5
5948 echo "${ECHO_T}$cf_rpath_space" >&6
5949 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5957 INSTALL_LIB="-m 644"
5958 : ${rel_builddir:=.}
5964 cf_cv_do_symlinks=no
5966 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5968 echo "$as_me:5968: checking if release/abi version should be used for shared libs" >&5
5969 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5971 # Check whether --with-shlib-version or --without-shlib-version was given.
5972 if test "${with_shlib_version+set}" = set; then
5973 withval="$with_shlib_version"
5974 test -z "$withval" && withval=auto
5977 cf_cv_shlib_version=auto
5980 cf_cv_shlib_version=$withval
5983 echo "$as_me:5983: result: $withval" >&5
5984 echo "${ECHO_T}$withval" >&6
5985 { { echo "$as_me:5985: error: option value must be one of: rel, abi, or auto" >&5
5986 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5987 { (exit 1); exit 1; }; }
5992 cf_cv_shlib_version=auto
5994 echo "$as_me:5994: result: $cf_cv_shlib_version" >&5
5995 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6000 # Some less-capable ports of gcc support only -fpic
6002 if test "$GCC" = yes
6004 echo "$as_me:6004: checking which $CC option to use" >&5
6005 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6006 cf_save_CFLAGS="$CFLAGS"
6007 for CC_SHARED_OPTS in -fPIC -fpic ''
6009 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6010 cat >conftest.$ac_ext <<_ACEOF
6011 #line 6011 "configure"
6012 #include "confdefs.h"
6022 rm -f conftest.$ac_objext
6023 if { (eval echo "$as_me:6023: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:6029: \"$ac_try\"") >&5
6032 echo "$as_me:6032: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6036 echo "$as_me: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 rm -f conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:6041: result: $CC_SHARED_OPTS" >&5
6042 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6043 CFLAGS="$cf_save_CFLAGS"
6046 cf_cv_shlib_version_infix=no
6048 case $cf_cv_system_name in
6049 (aix4.3-9*|aix[5-7]*)
6050 if test "$GCC" = yes; then
6051 CC_SHARED_OPTS='-Wl,-brtl'
6052 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6054 CC_SHARED_OPTS='-brtl'
6055 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6056 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6060 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6064 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6065 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6066 cf_cv_shlib_version=cygdll
6067 cf_cv_shlib_version_infix=cygdll
6070 cat >mk_shared_lib.sh <<-CF_EOF
6073 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6076 Linking shared library
6077 ** SHARED_LIB \$SHARED_LIB
6078 ** IMPORT_LIB \$IMPORT_LIB
6080 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6082 chmod +x mk_shared_lib.sh
6086 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6087 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6088 cf_cv_shlib_version=msysdll
6089 cf_cv_shlib_version_infix=msysdll
6092 cat >mk_shared_lib.sh <<-CF_EOF
6095 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6098 Linking shared library
6099 ** SHARED_LIB \$SHARED_LIB
6100 ** IMPORT_LIB \$IMPORT_LIB
6102 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6104 chmod +x mk_shared_lib.sh
6107 cf_try_cflags="no-cpp-precomp"
6108 CC_SHARED_OPTS="-dynamic"
6109 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6110 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6111 cf_cv_shlib_version_infix=yes
6112 echo "$as_me:6112: checking if ld -search_paths_first works" >&5
6113 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6114 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cf_save_LDFLAGS=$LDFLAGS
6119 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:6133: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:6136: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:6139: \"$ac_try\"") >&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 cf_cv_ldflags_search_paths_first=yes
6146 echo "$as_me: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 cf_cv_ldflags_search_paths_first=no
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6151 LDFLAGS=$cf_save_LDFLAGS
6153 echo "$as_me:6153: result: $cf_cv_ldflags_search_paths_first" >&5
6154 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6155 if test $cf_cv_ldflags_search_paths_first = yes; then
6156 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6160 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6161 if test "$GCC" != yes; then
6164 MK_SHARED_LIB='${LD} -b -o $@'
6165 INSTALL_LIB="-m 555"
6168 # (tested with gcc 2.7.2 -- I don't have c89)
6169 if test "$GCC" = yes; then
6170 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6173 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6175 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6176 # HP-UX shared libraries must be executable, and should be
6177 # readonly to exploit a quirk in the memory manager.
6178 INSTALL_LIB="-m 555"
6181 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6182 if test "$cf_cv_shlib_version" = rel; then
6183 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6185 cf_shared_soname='`basename `'
6188 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6191 if test "$cf_cv_enable_rpath" = yes ; then
6192 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6194 # tested with IRIX 5.2 and 'cc'.
6195 if test "$GCC" != yes; then
6196 CC_SHARED_OPTS='-KPIC'
6197 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6199 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6201 cf_cv_rm_so_locs=yes
6203 (linux*|gnu*|k*bsd*-gnu)
6204 if test "$DFT_LWR_MODEL" = "shared" ; then
6205 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6206 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6208 if test "$cf_cv_enable_rpath" = yes ; then
6209 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6212 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6213 if test "$cf_cv_shlib_version" = rel; then
6214 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6216 cf_cv_shared_soname='`basename $@`'
6219 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6222 cf_cv_shlib_version=mingw
6223 cf_cv_shlib_version_infix=mingw
6226 if test "$DFT_LWR_MODEL" = "shared" ; then
6227 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6228 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6229 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6232 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6233 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6234 cat >mk_shared_lib.sh <<-CF_EOF
6237 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6240 Linking shared library
6241 ** SHARED_LIB \$SHARED_LIB
6242 ** IMPORT_LIB \$IMPORT_LIB
6244 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6246 chmod +x mk_shared_lib.sh
6248 (openbsd[2-9].*|mirbsd*)
6249 if test "$DFT_LWR_MODEL" = "shared" ; then
6250 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6251 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6253 if test "$cf_cv_enable_rpath" = yes ; then
6254 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6256 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6258 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6259 if test "$cf_cv_shlib_version" = rel; then
6260 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6262 cf_cv_shared_soname='`basename $@`'
6265 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6267 (nto-qnx*|openbsd*|freebsd[12].*)
6268 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6269 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6270 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6272 (dragonfly*|freebsd*)
6273 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6274 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6275 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6276 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6277 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6280 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6281 if test "$cf_cv_shlib_version" = rel; then
6282 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6284 cf_cv_shared_soname='`basename $@`'
6287 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6290 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6291 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6292 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6293 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6294 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6295 if test "$cf_cv_shlib_version" = auto; then
6296 if test -f /usr/libexec/ld.elf_so; then
6297 cf_cv_shlib_version=abi
6299 cf_cv_shlib_version=rel
6303 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6304 if test "$cf_cv_shlib_version" = rel; then
6305 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6307 cf_cv_shared_soname='`basename $@`'
6310 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6312 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6316 # tested with OSF/1 V3.2 and 'cc'
6317 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6318 # link with shared libs).
6319 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6322 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6325 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6326 if test "$DFT_LWR_MODEL" = "shared" ; then
6327 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6328 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6330 cf_cv_rm_so_locs=yes
6332 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6333 # tested with osr5.0.5
6334 if test "$GCC" != yes; then
6335 CC_SHARED_OPTS='-belf -KPIC'
6337 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6338 if test "$cf_cv_enable_rpath" = yes ; then
6339 # only way is to set LD_RUN_PATH but no switch for it
6342 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6343 LINK_PROGS='LD_RUN_PATH=${libdir}'
6344 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6347 # tested with SunOS 4.1.1 and gcc 2.7.0
6348 if test "$GCC" != yes; then
6349 CC_SHARED_OPTS='-KPIC'
6351 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6352 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6355 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6356 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6357 if test "$DFT_LWR_MODEL" = "shared" ; then
6358 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6359 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6361 if test "$cf_cv_enable_rpath" = yes ; then
6362 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6365 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6366 if test "$cf_cv_shlib_version" = rel; then
6367 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6369 cf_cv_shared_soname='`basename $@`'
6372 if test "$GCC" != yes; then
6373 cf_save_CFLAGS="$CFLAGS"
6374 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6376 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line 6378 "configure"
6379 #include "confdefs.h"
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:6390: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6393 echo "$as_me:6393: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:6396: \"$ac_try\"") >&5
6399 echo "$as_me:6399: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6403 echo "$as_me: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6408 CFLAGS="$cf_save_CFLAGS"
6409 CC_SHARED_OPTS=$cf_shared_opts
6410 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6412 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6415 (sysv5uw7*|unix_sv*)
6416 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6417 if test "$GCC" != yes; then
6418 CC_SHARED_OPTS='-KPIC'
6420 MK_SHARED_LIB='${LD} -d y -G -o $@'
6423 CC_SHARED_OPTS='unknown'
6424 MK_SHARED_LIB='echo unknown'
6428 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6429 case "$cf_cv_shlib_version" in
6431 case "$MK_SHARED_LIB" in
6433 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6436 { echo "$as_me:6436: WARNING: ignored --with-shlib-version" >&5
6437 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6443 if test -n "$cf_try_cflags"
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6446 "${as_me:-configure}"
6448 int main(int argc, char *argv[])
6451 return (argv[argc-1] == 0) ;
6454 cf_save_CFLAGS="$CFLAGS"
6455 for cf_opt in $cf_try_cflags
6457 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6458 echo "$as_me:6458: checking if CFLAGS option -$cf_opt works" >&5
6459 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6460 if { (eval echo "$as_me:6460: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; then
6465 echo "$as_me:6465: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 cf_save_CFLAGS="$CFLAGS"
6469 echo "$as_me:6469: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6473 CFLAGS="$cf_save_CFLAGS"
6476 # RPATH_LIST is a colon-separated list of directories
6477 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6478 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6480 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6482 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6484 echo "${as_me:-configure}:6484: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6486 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6488 echo "${as_me:-configure}:6488: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6490 for model in $cf_list_models; do
6494 echo "$as_me:6494: checking for additional libtool options" >&5
6495 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6497 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6498 if test "${with_libtool_opts+set}" = set; then
6499 withval="$with_libtool_opts"
6500 with_libtool_opts=$withval
6502 with_libtool_opts=no
6504 echo "$as_me:6504: result: $with_libtool_opts" >&5
6505 echo "${ECHO_T}$with_libtool_opts" >&6
6507 case .$with_libtool_opts in
6511 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6515 echo "$as_me:6515: checking if exported-symbols file should be used" >&5
6516 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6518 # Check whether --with-export-syms or --without-export-syms was given.
6519 if test "${with_export_syms+set}" = set; then
6520 withval="$with_export_syms"
6521 with_export_syms=$withval
6525 if test "x$with_export_syms" = xyes
6527 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6530 echo "$as_me:6530: result: $with_export_syms" >&5
6531 echo "${ECHO_T}$with_export_syms" >&6
6532 if test "x$with_export_syms" != xno
6534 EXPORT_SYMS="-export-symbols $with_export_syms"
6540 if test "$CC_SHARED_OPTS" = "unknown"; then
6541 { { echo "$as_me:6541: error: Shared libraries are not supported in this version" >&5
6542 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6543 { (exit 1); exit 1; }; }
6545 # workaround for inept transition to PIE vs PIC...
6546 echo "$as_me:6546: checking if current CFLAGS link properly" >&5
6547 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6549 #line 6549 "configure"
6550 #include "confdefs.h"
6555 printf("Hello work\n");
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:6561: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>&5
6564 echo "$as_me:6564: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -s conftest$ac_exeext'
6567 { (eval echo "$as_me:6567: \"$ac_try\"") >&5
6570 echo "$as_me:6570: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6574 echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 echo "$as_me:6579: result: $cf_cflags_work" >&5
6580 echo "${ECHO_T}$cf_cflags_work" >&6
6581 if test "$cf_cflags_work" = no
6583 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6585 echo "${as_me:-configure}:6585: testing try to work around by appending shared-options ..." 1>&5
6587 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6590 echo "$as_me:6590: checking if versioned-symbols file should be used" >&5
6591 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6593 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6594 if test "${with_versioned_syms+set}" = set; then
6595 withval="$with_versioned_syms"
6596 with_versioned_syms=$withval
6598 with_versioned_syms=no
6600 if test "x$with_versioned_syms" = xyes
6602 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6605 echo "$as_me:6605: result: $with_versioned_syms" >&5
6606 echo "${ECHO_T}$with_versioned_syms" >&6
6612 if test "x$with_versioned_syms" != xno
6614 RESULTING_SYMS=$with_versioned_syms
6615 case "x$MK_SHARED_LIB" in
6617 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6618 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6619 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6621 echo "${as_me:-configure}:6621: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6625 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6626 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6627 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6629 echo "${as_me:-configure}:6629: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6633 { echo "$as_me:6633: WARNING: this system does not support versioned-symbols" >&5
6634 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6638 # Linux ld can selectively override scope, e.g., of symbols beginning with
6639 # "_" by first declaring some as global, and then using a wildcard to
6640 # declare the others as local. Some other loaders cannot do this. Check
6641 # by constructing a (very) simple shared library and inspecting its
6643 if test "x$VERSIONED_SYMS" != "x"
6645 echo "$as_me:6645: checking if wildcards can be used to selectively omit symbols" >&5
6646 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6652 cat >conftest.ver <<EOF
6681 cat >conftest.$ac_ext <<EOF
6682 #line 6682 "configure"
6683 int _ismissing(void) { return 1; }
6684 int _localf1(void) { return 1; }
6685 int _localf2(void) { return 2; }
6686 int globalf1(void) { return 1; }
6687 int globalf2(void) { return 2; }
6688 int _sublocalf1(void) { return 1; }
6689 int _sublocalf2(void) { return 2; }
6690 int subglobalf1(void) { return 1; }
6691 int subglobalf2(void) { return 2; }
6693 cat >conftest.mk <<EOF
6696 CPPFLAGS=${CPPFLAGS}
6699 VERSIONED_SYMS=${VERSIONED_SYMS}
6700 RESULTING_SYMS=conftest.ver
6701 MK_SHARED_LIB=${MK_SHARED_LIB}
6702 conftest.so: conftest.$ac_cv_objext
6703 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6706 # compile source, make library
6707 if make -f conftest.mk 2>&5 >/dev/null
6709 # test for missing symbol in either Data or Text section
6710 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6711 test -n "$cf_missing" && WILDCARD_SYMS=yes
6713 echo "$as_me:6713: result: $WILDCARD_SYMS" >&5
6714 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6723 # pretend that ncurses==ncursesw==ncursest
6724 echo "$as_me:6724: checking if you want to disable library suffixes" >&5
6725 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6727 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6728 if test "${enable_lib_suffixes+set}" = set; then
6729 enableval="$enable_lib_suffixes"
6730 test "$enableval" != no && enableval=yes
6731 if test "$enableval" != "yes" ; then
6732 disable_lib_suffixes=yes
6734 disable_lib_suffixes=no
6738 disable_lib_suffixes=no
6741 echo "$as_me:6741: result: $disable_lib_suffixes" >&5
6742 echo "${ECHO_T}$disable_lib_suffixes" >&6
6744 ### If we're building with rpath, try to link non-standard libs that way too.
6745 if test "$DFT_LWR_MODEL" = "shared"; then
6747 echo "$as_me:6747: checking if rpath-hack should be disabled" >&5
6748 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6750 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6751 if test "${enable_rpath_hack+set}" = set; then
6752 enableval="$enable_rpath_hack"
6753 test "$enableval" != no && enableval=yes
6754 if test "$enableval" != "yes" ; then
6755 cf_disable_rpath_hack=yes
6757 cf_disable_rpath_hack=no
6761 cf_disable_rpath_hack=no
6764 echo "$as_me:6764: result: $cf_disable_rpath_hack" >&5
6765 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6766 if test "$cf_disable_rpath_hack" = no ; then
6768 echo "$as_me:6768: checking for updated LDFLAGS" >&5
6769 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6770 if test -n "$LD_RPATH_OPT" ; then
6771 echo "$as_me:6771: result: maybe" >&5
6772 echo "${ECHO_T}maybe" >&6
6776 # Extract the first word of "$ac_prog", so it can be a program name with args.
6777 set dummy $ac_prog; ac_word=$2
6778 echo "$as_me:6778: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 if test -n "$cf_ldd_prog"; then
6784 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6786 ac_save_IFS=$IFS; IFS=$ac_path_separator
6788 for ac_dir in $ac_dummy; do
6790 test -z "$ac_dir" && ac_dir=.
6791 $as_executable_p "$ac_dir/$ac_word" || continue
6792 ac_cv_prog_cf_ldd_prog="$ac_prog"
6793 echo "$as_me:6793: found $ac_dir/$ac_word" >&5
6799 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6800 if test -n "$cf_ldd_prog"; then
6801 echo "$as_me:6801: result: $cf_ldd_prog" >&5
6802 echo "${ECHO_T}$cf_ldd_prog" >&6
6804 echo "$as_me:6804: result: no" >&5
6805 echo "${ECHO_T}no" >&6
6808 test -n "$cf_ldd_prog" && break
6810 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6812 cf_rpath_list="/usr/lib /lib"
6813 if test "$cf_ldd_prog" != no
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line 6818 "configure"
6819 #include "confdefs.h"
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (eval echo "$as_me:6830: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -s conftest$ac_exeext'
6836 { (eval echo "$as_me:6836: \"$ac_try\"") >&5
6839 echo "$as_me:6839: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6842 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6849 # If we passed the link-test, but get a "not found" on a given library,
6850 # this could be due to inept reconfiguration of gcc to make it only
6851 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6852 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6853 # /usr/local libraries.
6854 if test -n "$cf_rpath_oops"
6856 for cf_rpath_src in $cf_rpath_oops
6858 for cf_rpath_dir in \
6863 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6865 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6867 echo "${as_me:-configure}:6867: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6869 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6877 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6879 echo "${as_me:-configure}:6879: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6881 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6883 echo "${as_me:-configure}:6883: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6886 for cf_rpath_src in $LDFLAGS
6888 case $cf_rpath_src in
6891 # check if this refers to a directory which we will ignore
6893 if test -n "$cf_rpath_list"
6895 for cf_rpath_item in $cf_rpath_list
6897 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6905 if test "$cf_rpath_skip" = no
6907 # transform the option
6908 if test "$LD_RPATH_OPT" = "-R " ; then
6909 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6911 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6914 # if we have not already added this, add it now
6915 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6916 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6918 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6920 echo "${as_me:-configure}:6920: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6922 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6927 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6929 LDFLAGS=$cf_rpath_dst
6931 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6933 echo "${as_me:-configure}:6933: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6935 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6937 echo "${as_me:-configure}:6937: testing ...checking LIBS $LIBS ..." 1>&5
6940 for cf_rpath_src in $LIBS
6942 case $cf_rpath_src in
6945 # check if this refers to a directory which we will ignore
6947 if test -n "$cf_rpath_list"
6949 for cf_rpath_item in $cf_rpath_list
6951 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6959 if test "$cf_rpath_skip" = no
6961 # transform the option
6962 if test "$LD_RPATH_OPT" = "-R " ; then
6963 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6965 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6968 # if we have not already added this, add it now
6969 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6970 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6972 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6974 echo "${as_me:-configure}:6974: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6976 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6981 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6985 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6987 echo "${as_me:-configure}:6987: testing ...checked LIBS $LIBS ..." 1>&5
6989 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6991 echo "${as_me:-configure}:6991: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6994 echo "$as_me:6994: result: no" >&5
6995 echo "${ECHO_T}no" >&6
7002 ###############################################################################
7004 ### use option --with-extra-suffix to append suffix to headers and libraries
7005 echo "$as_me:7005: checking if you wish to append extra suffix to header/library paths" >&5
7006 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7009 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7010 if test "${with_extra_suffix+set}" = set; then
7011 withval="$with_extra_suffix"
7016 EXTRA_SUFFIX=$cf_cv_abi_version
7019 EXTRA_SUFFIX=$withval
7024 echo "$as_me:7024: result: $EXTRA_SUFFIX" >&5
7025 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7027 ### use option --disable-overwrite to leave out the link to -lcurses
7028 echo "$as_me:7028: checking if you wish to install ncurses overwriting curses" >&5
7029 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7031 # Check whether --enable-overwrite or --disable-overwrite was given.
7032 if test "${enable_overwrite+set}" = set; then
7033 enableval="$enable_overwrite"
7034 with_overwrite=$enableval
7036 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7038 echo "$as_me:7038: result: $with_overwrite" >&5
7039 echo "${ECHO_T}$with_overwrite" >&6
7041 echo "$as_me:7041: checking if external terminfo-database is used" >&5
7042 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7044 # Check whether --enable-database or --disable-database was given.
7045 if test "${enable_database+set}" = set; then
7046 enableval="$enable_database"
7047 use_database=$enableval
7051 echo "$as_me:7051: result: $use_database" >&5
7052 echo "${ECHO_T}$use_database" >&6
7056 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7059 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7063 NCURSES_USE_DATABASE=0
7064 if test "$use_database" != no ; then
7065 NCURSES_USE_DATABASE=1
7067 echo "$as_me:7067: checking which terminfo source-file will be installed" >&5
7068 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7070 # Check whether --with-database or --without-database was given.
7071 if test "${with_database+set}" = set; then
7072 withval="$with_database"
7073 TERMINFO_SRC=$withval
7075 echo "$as_me:7075: result: $TERMINFO_SRC" >&5
7076 echo "${ECHO_T}$TERMINFO_SRC" >&6
7078 echo "$as_me:7078: checking whether to use hashed database instead of directory/tree" >&5
7079 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7081 # Check whether --with-hashed-db or --without-hashed-db was given.
7082 if test "${with_hashed_db+set}" = set; then
7083 withval="$with_hashed_db"
7088 echo "$as_me:7088: result: $with_hashed_db" >&5
7089 echo "${ECHO_T}$with_hashed_db" >&6
7094 echo "$as_me:7094: checking for list of fallback descriptions" >&5
7095 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7097 # Check whether --with-fallbacks or --without-fallbacks was given.
7098 if test "${with_fallbacks+set}" = set; then
7099 withval="$with_fallbacks"
7100 with_fallback=$withval
7104 echo "$as_me:7104: result: $with_fallback" >&5
7105 echo "${ECHO_T}$with_fallback" >&6
7106 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7108 echo "$as_me:7108: checking if you want modern xterm or antique" >&5
7109 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7111 # Check whether --with-xterm-new or --without-xterm-new was given.
7112 if test "${with_xterm_new+set}" = set; then
7113 withval="$with_xterm_new"
7114 with_xterm_new=$withval
7118 case $with_xterm_new in
7119 (no) with_xterm_new=xterm-old;;
7120 (*) with_xterm_new=xterm-new;;
7122 echo "$as_me:7122: result: $with_xterm_new" >&5
7123 echo "${ECHO_T}$with_xterm_new" >&6
7124 WHICH_XTERM=$with_xterm_new
7126 echo "$as_me:7126: checking if xterm backspace sends BS or DEL" >&5
7127 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7129 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7130 if test "${with_xterm_kbs+set}" = set; then
7131 withval="$with_xterm_kbs"
7132 with_xterm_kbs=$withval
7136 case x$with_xterm_kbs in
7137 (xyes|xno|xBS|xbs|x8)
7144 with_xterm_kbs=$withval
7147 echo "$as_me:7147: result: $with_xterm_kbs" >&5
7148 echo "${ECHO_T}$with_xterm_kbs" >&6
7149 XTERM_KBS=$with_xterm_kbs
7152 if test "$use_database" = no ; then
7153 TERMINFO="${datadir}/terminfo"
7157 echo "$as_me:7157: checking for list of terminfo directories" >&5
7158 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7160 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7161 if test "${with_terminfo_dirs+set}" = set; then
7162 withval="$with_terminfo_dirs"
7165 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7167 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7169 for cf_src_path in $withval
7172 if test "x$prefix" != xNONE; then
7173 cf_path_syntax="$prefix"
7175 cf_path_syntax="$ac_default_prefix"
7178 case ".$cf_src_path" in
7183 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7185 (.\${*prefix}*|.\${*dir}*)
7186 eval cf_src_path="$cf_src_path"
7187 case ".$cf_src_path" in
7189 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7194 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7197 { { echo "$as_me:7197: error: expected a pathname, not \"$cf_src_path\"" >&5
7198 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7199 { (exit 1); exit 1; }; }
7203 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7204 cf_dst_path="${cf_dst_path}${cf_src_path}"
7208 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7209 # so we have to check/work around. We do prefer the result of "eval"...
7210 eval cf_dst_eval="$cf_dst_path"
7211 case "x$cf_dst_eval" in
7213 TERMINFO_DIRS=$cf_dst_path
7216 TERMINFO_DIRS="$cf_dst_eval"
7220 echo "$as_me:7220: result: $TERMINFO_DIRS" >&5
7221 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7222 test -n "$TERMINFO_DIRS" &&
7223 cat >>confdefs.h <<EOF
7224 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7227 echo "$as_me:7227: checking for default terminfo directory" >&5
7228 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7230 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7231 if test "${with_default_terminfo_dir+set}" = set; then
7232 withval="$with_default_terminfo_dir"
7235 withval="${TERMINFO:-${datadir}/terminfo}"
7236 fi; if test -n "${datadir}/terminfo" ; then
7238 if test "x$prefix" != xNONE; then
7239 cf_path_syntax="$prefix"
7241 cf_path_syntax="$ac_default_prefix"
7249 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7251 (.\${*prefix}*|.\${*dir}*)
7252 eval withval="$withval"
7255 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7260 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7263 { { echo "$as_me:7263: error: expected a pathname, not \"$withval\"" >&5
7264 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7265 { (exit 1); exit 1; }; }
7270 eval TERMINFO="$withval"
7272 echo "$as_me:7272: result: $TERMINFO" >&5
7273 echo "${ECHO_T}$TERMINFO" >&6
7275 cat >>confdefs.h <<EOF
7276 #define TERMINFO "$TERMINFO"
7281 ### use option --disable-big-core to make tic run on small machines
7282 ### We need 4Mb, check if we can allocate 50% more than that.
7283 echo "$as_me:7283: checking if big-core option selected" >&5
7284 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7286 # Check whether --enable-big-core or --disable-big-core was given.
7287 if test "${enable_big_core+set}" = set; then
7288 enableval="$enable_big_core"
7289 with_big_core=$enableval
7291 if test "$cross_compiling" = yes; then
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line 7295 "configure"
7296 #include "confdefs.h"
7301 unsigned long n = 6000000L;
7302 char *s = malloc(n);
7305 ${cf_cv_main_return:-return}(s == 0);
7308 rm -f conftest$ac_exeext
7309 if { (eval echo "$as_me:7309: \"$ac_link\"") >&5
7310 (eval $ac_link) 2>&5
7312 echo "$as_me:7312: \$? = $ac_status" >&5
7313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7314 { (eval echo "$as_me:7314: \"$ac_try\"") >&5
7317 echo "$as_me:7317: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7321 echo "$as_me: program exited with status $ac_status" >&5
7322 echo "$as_me: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7326 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me:7329: result: $with_big_core" >&5
7330 echo "${ECHO_T}$with_big_core" >&6
7331 test "x$with_big_core" = "xyes" &&
7332 cat >>confdefs.h <<\EOF
7333 #define HAVE_BIG_CORE 1
7336 ### ISO C only guarantees 512-char strings, we have tables which load faster
7337 ### when constructed using "big" strings. More than the C compiler, the awk
7338 ### program is a limit on most vendor UNIX systems. Check that we can build.
7339 echo "$as_me:7339: checking if big-strings option selected" >&5
7340 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7342 # Check whether --enable-big-strings or --disable-big-strings was given.
7343 if test "${enable_big_strings+set}" = set; then
7344 enableval="$enable_big_strings"
7345 with_big_strings=$enableval
7350 eval with_big_strings=no
7353 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7354 | $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
7355 eval with_big_strings=yes
7357 eval with_big_strings=no
7363 echo "$as_me:7363: result: $with_big_strings" >&5
7364 echo "${ECHO_T}$with_big_strings" >&6
7367 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7369 ### use option --enable-termcap to compile in the termcap fallback support
7370 echo "$as_me:7370: checking if you want termcap-fallback support" >&5
7371 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7373 # Check whether --enable-termcap or --disable-termcap was given.
7374 if test "${enable_termcap+set}" = set; then
7375 enableval="$enable_termcap"
7376 with_termcap=$enableval
7380 echo "$as_me:7380: result: $with_termcap" >&5
7381 echo "${ECHO_T}$with_termcap" >&6
7383 NCURSES_USE_TERMCAP=0
7384 if test "x$with_termcap" != "xyes" ; then
7385 if test "$use_database" = no ; then
7386 if test -z "$with_fallback" ; then
7387 { { echo "$as_me:7387: error: You have disabled the database w/o specifying fallbacks" >&5
7388 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7389 { (exit 1); exit 1; }; }
7393 cat >>confdefs.h <<\EOF
7394 #define PURE_TERMINFO 1
7399 if test "$with_ticlib" != no ; then
7400 { { echo "$as_me:7400: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7401 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7402 { (exit 1); exit 1; }; }
7405 NCURSES_USE_TERMCAP=1
7406 echo "$as_me:7406: checking for list of termcap files" >&5
7407 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7409 # Check whether --with-termpath or --without-termpath was given.
7410 if test "${with_termpath+set}" = set; then
7411 withval="$with_termpath"
7414 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7416 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7418 for cf_src_path in $withval
7421 if test "x$prefix" != xNONE; then
7422 cf_path_syntax="$prefix"
7424 cf_path_syntax="$ac_default_prefix"
7427 case ".$cf_src_path" in
7432 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7434 (.\${*prefix}*|.\${*dir}*)
7435 eval cf_src_path="$cf_src_path"
7436 case ".$cf_src_path" in
7438 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7443 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7446 { { echo "$as_me:7446: error: expected a pathname, not \"$cf_src_path\"" >&5
7447 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7448 { (exit 1); exit 1; }; }
7452 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7453 cf_dst_path="${cf_dst_path}${cf_src_path}"
7457 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7458 # so we have to check/work around. We do prefer the result of "eval"...
7459 eval cf_dst_eval="$cf_dst_path"
7460 case "x$cf_dst_eval" in
7462 TERMPATH=$cf_dst_path
7465 TERMPATH="$cf_dst_eval"
7469 echo "$as_me:7469: result: $TERMPATH" >&5
7470 echo "${ECHO_T}$TERMPATH" >&6
7471 test -n "$TERMPATH" &&
7472 cat >>confdefs.h <<EOF
7473 #define TERMPATH "$TERMPATH"
7476 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7477 echo "$as_me:7477: checking if fast termcap-loader is needed" >&5
7478 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7480 # Check whether --enable-getcap or --disable-getcap was given.
7481 if test "${enable_getcap+set}" = set; then
7482 enableval="$enable_getcap"
7483 with_getcap=$enableval
7487 echo "$as_me:7487: result: $with_getcap" >&5
7488 echo "${ECHO_T}$with_getcap" >&6
7489 test "x$with_getcap" = "xyes" &&
7490 cat >>confdefs.h <<\EOF
7491 #define USE_GETCAP 1
7494 echo "$as_me:7494: checking if translated termcaps will be cached in ~/.terminfo" >&5
7495 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7497 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7498 if test "${enable_getcap_cache+set}" = set; then
7499 enableval="$enable_getcap_cache"
7500 with_getcap_cache=$enableval
7502 with_getcap_cache=no
7504 echo "$as_me:7504: result: $with_getcap_cache" >&5
7505 echo "${ECHO_T}$with_getcap_cache" >&6
7506 test "x$with_getcap_cache" = "xyes" &&
7507 cat >>confdefs.h <<\EOF
7508 #define USE_GETCAP_CACHE 1
7513 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7514 echo "$as_me:7514: checking if ~/.terminfo is wanted" >&5
7515 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7517 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7518 if test "${enable_home_terminfo+set}" = set; then
7519 enableval="$enable_home_terminfo"
7520 with_home_terminfo=$enableval
7522 with_home_terminfo=yes
7524 echo "$as_me:7524: result: $with_home_terminfo" >&5
7525 echo "${ECHO_T}$with_home_terminfo" >&6
7526 test "x$with_home_terminfo" = "xyes" &&
7527 cat >>confdefs.h <<\EOF
7528 #define USE_HOME_TERMINFO 1
7531 echo "$as_me:7531: checking if you want to use restricted environment when running as root" >&5
7532 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7534 # Check whether --enable-root-environ or --disable-root-environ was given.
7535 if test "${enable_root_environ+set}" = set; then
7536 enableval="$enable_root_environ"
7537 with_root_environ=$enableval
7539 with_root_environ=yes
7541 echo "$as_me:7541: result: $with_root_environ" >&5
7542 echo "${ECHO_T}$with_root_environ" >&6
7543 test "x$with_root_environ" = xyes &&
7544 cat >>confdefs.h <<\EOF
7545 #define USE_ROOT_ENVIRON 1
7548 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7549 ### to reduce storage requirements for the terminfo database.
7555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7556 echo "$as_me:7556: checking for $ac_func" >&5
7557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7558 if eval "test \"\${$as_ac_var+set}\" = set"; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7562 #line 7562 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func (); below. */
7567 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7579 /* The GNU C library defines this for functions which it implements
7580 to always fail with ENOSYS. Some functions are actually named
7581 something starting with __ and the normal name is an alias. */
7582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7585 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:7593: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:7599: \"$ac_try\"") >&5
7602 echo "$as_me:7602: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 eval "$as_ac_var=yes"
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 eval "$as_ac_var=no"
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7612 echo "$as_me:7612: result: `eval echo '${'$as_ac_var'}'`" >&5
7613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7614 if test `eval echo '${'$as_ac_var'}'` = yes; then
7615 cat >>confdefs.h <<EOF
7616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7622 if test "$cross_compiling" = yes ; then
7628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7629 echo "$as_me:7629: checking for $ac_func" >&5
7630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7631 if eval "test \"\${$as_ac_var+set}\" = set"; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.$ac_ext <<_ACEOF
7635 #line 7635 "configure"
7636 #include "confdefs.h"
7637 /* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func (); below. */
7640 /* Override any gcc2 internal prototype to avoid an error. */
7644 /* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7652 /* The GNU C library defines this for functions which it implements
7653 to always fail with ENOSYS. Some functions are actually named
7654 something starting with __ and the normal name is an alias. */
7655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7658 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 eval "$as_ac_var=yes"
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 eval "$as_ac_var=no"
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7685 echo "$as_me:7685: result: `eval echo '${'$as_ac_var'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7687 if test `eval echo '${'$as_ac_var'}'` = yes; then
7688 cat >>confdefs.h <<EOF
7689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7696 echo "$as_me:7696: checking if link/symlink functions work" >&5
7697 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7698 if test "${cf_cv_link_funcs+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 for cf_func in link symlink ; do
7704 if test "$cross_compiling" = yes; then
7706 eval 'ac_cv_func_'$cf_func'=error'
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line 7709 "configure"
7710 #include "confdefs.h"
7712 #include <sys/types.h>
7713 #include <sys/stat.h>
7714 #ifdef HAVE_UNISTD_H
7720 char *src = "config.log";
7721 char *dst = "conftest.chk";
7726 fail = ($cf_func("config.log", "conftest.chk") < 0)
7727 || (stat(dst, &dst_sb) < 0)
7728 || (dst_sb.st_mtime != src_sb.st_mtime);
7734 ${cf_cv_main_return:-return} (fail);
7738 rm -f conftest$ac_exeext
7739 if { (eval echo "$as_me:7739: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7742 echo "$as_me:7742: \$? = $ac_status" >&5
7743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7744 { (eval echo "$as_me:7744: \"$ac_try\"") >&5
7747 echo "$as_me:7747: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7750 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7751 eval 'ac_cv_func_'$cf_func'=yes'
7753 echo "$as_me: program exited with status $ac_status" >&5
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 eval 'ac_cv_func_'$cf_func'=no'
7759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7762 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7765 echo "$as_me:7765: result: $cf_cv_link_funcs" >&5
7766 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7767 test "$ac_cv_func_link" = yes &&
7768 cat >>confdefs.h <<\EOF
7772 test "$ac_cv_func_symlink" = yes &&
7773 cat >>confdefs.h <<\EOF
7774 #define HAVE_SYMLINK 1
7782 # soft links (symbolic links) are useful for some systems where hard links do
7783 # not work, or to make it simpler to copy terminfo trees around.
7784 if test "x$ac_cv_func_symlink" = xyes ; then
7785 echo "$as_me:7785: checking if tic should use symbolic links" >&5
7786 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7788 # Check whether --enable-symlinks or --disable-symlinks was given.
7789 if test "${enable_symlinks+set}" = set; then
7790 enableval="$enable_symlinks"
7791 with_symlinks=$enableval
7795 echo "$as_me:7795: result: $with_symlinks" >&5
7796 echo "${ECHO_T}$with_symlinks" >&6
7799 # If we have hard links and did not choose to use soft links instead, there is
7800 # no reason to make this choice optional - use the hard links.
7801 if test "$with_symlinks" = no ; then
7802 echo "$as_me:7802: checking if tic should use hard links" >&5
7803 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7804 if test "x$ac_cv_func_link" = xyes ; then
7809 echo "$as_me:7809: result: $with_links" >&5
7810 echo "${ECHO_T}$with_links" >&6
7813 test "x$with_links" = xyes &&
7814 cat >>confdefs.h <<\EOF
7818 test "x$with_symlinks" = xyes &&
7819 cat >>confdefs.h <<\EOF
7820 #define USE_SYMLINKS 1
7823 ### use option --enable-broken-linker to force on use of broken-linker support
7824 echo "$as_me:7824: checking if you want broken-linker support code" >&5
7825 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7827 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7828 if test "${enable_broken_linker+set}" = set; then
7829 enableval="$enable_broken_linker"
7830 with_broken_linker=$enableval
7832 with_broken_linker=${BROKEN_LINKER:-no}
7834 echo "$as_me:7834: result: $with_broken_linker" >&5
7835 echo "${ECHO_T}$with_broken_linker" >&6
7838 if test "x$with_broken_linker" = xyes ; then
7840 cat >>confdefs.h <<\EOF
7841 #define BROKEN_LINKER 1
7845 elif test "$DFT_LWR_MODEL" = shared ; then
7846 case $cf_cv_system_name in
7849 cat >>confdefs.h <<\EOF
7850 #define BROKEN_LINKER 1
7854 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7856 echo "${as_me:-configure}:7856: testing cygwin linker is broken anyway ..." 1>&5
7862 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7863 echo "$as_me:7863: checking if tputs should process BSD-style prefix padding" >&5
7864 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7866 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7867 if test "${enable_bsdpad+set}" = set; then
7868 enableval="$enable_bsdpad"
7869 with_bsdpad=$enableval
7873 echo "$as_me:7873: result: $with_bsdpad" >&5
7874 echo "${ECHO_T}$with_bsdpad" >&6
7875 test "x$with_bsdpad" = xyes &&
7876 cat >>confdefs.h <<\EOF
7880 ### use option --enable-widec to turn on use of wide-character support
7889 # Check to define _XOPEN_SOURCE "automatically"
7890 CPPFLAGS_before_XOPEN="$CPPFLAGS"
7893 cf_POSIX_C_SOURCE=199506L
7898 cf_xopen_source="-D_ALL_SOURCE"
7904 cf_xopen_source="-D_APPLE_C_SOURCE"
7907 cf_xopen_source="-D_DARWIN_C_SOURCE"
7910 (freebsd*|dragonfly*)
7911 # 5.x headers associate
7912 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7913 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7914 cf_POSIX_C_SOURCE=200112L
7916 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7919 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7922 cf_xopen_source="-D_HPUX_SOURCE"
7925 cf_xopen_source="-D_SGI_SOURCE"
7928 (linux*|gnu*|mint*|k*bsd*-gnu)
7930 echo "$as_me:7930: checking if we must define _GNU_SOURCE" >&5
7931 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7932 if test "${cf_cv_gnu_source+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 cat >conftest.$ac_ext <<_ACEOF
7937 #line 7937 "configure"
7938 #include "confdefs.h"
7939 #include <sys/types.h>
7944 #ifndef _XOPEN_SOURCE
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:7952: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>&5
7955 echo "$as_me:7955: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -s conftest.$ac_objext'
7958 { (eval echo "$as_me:7958: \"$ac_try\"") >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7965 echo "$as_me: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7968 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7969 cat >conftest.$ac_ext <<_ACEOF
7970 #line 7970 "configure"
7971 #include "confdefs.h"
7972 #include <sys/types.h>
7977 #ifdef _XOPEN_SOURCE
7984 rm -f conftest.$ac_objext
7985 if { (eval echo "$as_me:7985: \"$ac_compile\"") >&5
7986 (eval $ac_compile) 2>&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (eval echo "$as_me:7991: \"$ac_try\"") >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 (exit $ac_status); }; }; then
7998 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 cf_cv_gnu_source=yes
8002 rm -f conftest.$ac_objext conftest.$ac_ext
8006 rm -f conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:8009: result: $cf_cv_gnu_source" >&5
8010 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8011 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8015 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8018 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8021 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8023 cf_save_CFLAGS="$CFLAGS"
8024 cf_save_CPPFLAGS="$CPPFLAGS"
8026 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8027 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8028 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8030 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8031 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8032 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8034 echo "$as_me:8034: checking if we should define _POSIX_C_SOURCE" >&5
8035 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8036 if test "${cf_cv_posix_c_source+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 echo "${as_me:-configure}:8040: testing if the symbol is already defined go no further ..." 1>&5
8042 cat >conftest.$ac_ext <<_ACEOF
8043 #line 8043 "configure"
8044 #include "confdefs.h"
8045 #include <sys/types.h>
8050 #ifndef _POSIX_C_SOURCE
8057 rm -f conftest.$ac_objext
8058 if { (eval echo "$as_me:8058: \"$ac_compile\"") >&5
8059 (eval $ac_compile) 2>&5
8061 echo "$as_me:8061: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest.$ac_objext'
8064 { (eval echo "$as_me:8064: \"$ac_try\"") >&5
8067 echo "$as_me:8067: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 cf_cv_posix_c_source=no
8071 echo "$as_me: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8073 cf_want_posix_source=no
8074 case .$cf_POSIX_C_SOURCE in
8076 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8079 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8080 cf_want_posix_source=yes
8083 cf_want_posix_source=yes
8086 if test "$cf_want_posix_source" = yes ; then
8087 cat >conftest.$ac_ext <<_ACEOF
8088 #line 8088 "configure"
8089 #include "confdefs.h"
8090 #include <sys/types.h>
8095 #ifdef _POSIX_SOURCE
8102 rm -f conftest.$ac_objext
8103 if { (eval echo "$as_me:8103: \"$ac_compile\"") >&5
8104 (eval $ac_compile) 2>&5
8106 echo "$as_me:8106: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:8109: \"$ac_try\"") >&5
8112 echo "$as_me:8112: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8116 echo "$as_me: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8118 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8120 rm -f conftest.$ac_objext conftest.$ac_ext
8123 echo "${as_me:-configure}:8123: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8125 CFLAGS="$cf_trim_CFLAGS"
8126 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8128 echo "${as_me:-configure}:8128: testing if the second compile does not leave our definition intact error ..." 1>&5
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line 8131 "configure"
8132 #include "confdefs.h"
8133 #include <sys/types.h>
8138 #ifndef _POSIX_C_SOURCE
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:8146: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>&5
8149 echo "$as_me:8149: \$? = $ac_status" >&5
8150 (exit $ac_status); } &&
8151 { ac_try='test -s conftest.$ac_objext'
8152 { (eval echo "$as_me:8152: \"$ac_try\"") >&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8159 echo "$as_me: failed program was:" >&5
8160 cat conftest.$ac_ext >&5
8161 cf_cv_posix_c_source=no
8163 rm -f conftest.$ac_objext conftest.$ac_ext
8164 CFLAGS="$cf_save_CFLAGS"
8165 CPPFLAGS="$cf_save_CPPFLAGS"
8168 rm -f conftest.$ac_objext conftest.$ac_ext
8171 echo "$as_me:8171: result: $cf_cv_posix_c_source" >&5
8172 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8174 if test "$cf_cv_posix_c_source" != no ; then
8175 CFLAGS="$cf_trim_CFLAGS"
8176 CPPFLAGS="$cf_trim_CPPFLAGS"
8181 cf_new_extra_cppflags=
8183 for cf_add_cflags in $cf_cv_posix_c_source
8185 case $cf_fix_cppflags in
8187 case $cf_add_cflags in
8188 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8189 case $cf_add_cflags in
8191 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8193 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8194 && test -z "${cf_tst_cflags}" \
8195 && cf_fix_cppflags=yes
8197 if test $cf_fix_cppflags = yes ; then
8198 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8200 elif test "${cf_tst_cflags}" = "\"'" ; then
8201 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8210 case $cf_add_cflags in
8212 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8214 CPPFLAGS=`echo "$CPPFLAGS" | \
8215 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8216 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8220 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8225 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8230 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8232 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8234 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8235 && test -z "${cf_tst_cflags}" \
8236 && cf_fix_cppflags=no
8241 if test -n "$cf_new_cflags" ; then
8243 CFLAGS="$CFLAGS $cf_new_cflags"
8246 if test -n "$cf_new_cppflags" ; then
8248 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8251 if test -n "$cf_new_extra_cppflags" ; then
8253 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8260 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8263 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8264 cf_xopen_source="-D_BSD_SOURCE"
8268 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8274 cf_xopen_source="-D_OSF_SOURCE"
8277 cf_xopen_source="-D_QNX_SOURCE"
8280 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8283 cf_xopen_source="-D__EXTENSIONS__"
8284 cf_cv_xopen_source=broken
8286 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8292 echo "$as_me:8292: checking if we should define _XOPEN_SOURCE" >&5
8293 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8294 if test "${cf_cv_xopen_source+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line 8299 "configure"
8300 #include "confdefs.h"
8304 #include <sys/types.h>
8310 #ifndef _XOPEN_SOURCE
8317 rm -f conftest.$ac_objext
8318 if { (eval echo "$as_me:8318: \"$ac_compile\"") >&5
8319 (eval $ac_compile) 2>&5
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:8324: \"$ac_try\"") >&5
8327 echo "$as_me:8327: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 cf_cv_xopen_source=no
8331 echo "$as_me: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8334 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8335 cat >conftest.$ac_ext <<_ACEOF
8336 #line 8336 "configure"
8337 #include "confdefs.h"
8341 #include <sys/types.h>
8347 #ifdef _XOPEN_SOURCE
8354 rm -f conftest.$ac_objext
8355 if { (eval echo "$as_me:8355: \"$ac_compile\"") >&5
8356 (eval $ac_compile) 2>&5
8358 echo "$as_me:8358: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -s conftest.$ac_objext'
8361 { (eval echo "$as_me:8361: \"$ac_try\"") >&5
8364 echo "$as_me:8364: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 cf_cv_xopen_source=no
8368 echo "$as_me: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8372 rm -f conftest.$ac_objext conftest.$ac_ext
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8379 echo "$as_me:8379: result: $cf_cv_xopen_source" >&5
8380 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8382 if test "$cf_cv_xopen_source" != no ; then
8384 CFLAGS=`echo "$CFLAGS" | \
8385 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8386 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8388 CPPFLAGS=`echo "$CPPFLAGS" | \
8389 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8390 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8392 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8397 cf_new_extra_cppflags=
8399 for cf_add_cflags in $cf_temp_xopen_source
8401 case $cf_fix_cppflags in
8403 case $cf_add_cflags in
8404 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8405 case $cf_add_cflags in
8407 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8409 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8410 && test -z "${cf_tst_cflags}" \
8411 && cf_fix_cppflags=yes
8413 if test $cf_fix_cppflags = yes ; then
8414 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8416 elif test "${cf_tst_cflags}" = "\"'" ; then
8417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8426 case $cf_add_cflags in
8428 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8430 CPPFLAGS=`echo "$CPPFLAGS" | \
8431 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8432 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8436 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8441 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8446 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8450 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8451 && test -z "${cf_tst_cflags}" \
8452 && cf_fix_cppflags=no
8457 if test -n "$cf_new_cflags" ; then
8459 CFLAGS="$CFLAGS $cf_new_cflags"
8462 if test -n "$cf_new_cppflags" ; then
8464 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8467 if test -n "$cf_new_extra_cppflags" ; then
8469 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8474 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8476 cf_save_CFLAGS="$CFLAGS"
8477 cf_save_CPPFLAGS="$CPPFLAGS"
8479 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8480 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8481 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8483 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8484 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8485 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8487 echo "$as_me:8487: checking if we should define _POSIX_C_SOURCE" >&5
8488 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8489 if test "${cf_cv_posix_c_source+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 echo "${as_me:-configure}:8493: testing if the symbol is already defined go no further ..." 1>&5
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line 8496 "configure"
8497 #include "confdefs.h"
8498 #include <sys/types.h>
8503 #ifndef _POSIX_C_SOURCE
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:8511: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>&5
8514 echo "$as_me:8514: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -s conftest.$ac_objext'
8517 { (eval echo "$as_me:8517: \"$ac_try\"") >&5
8520 echo "$as_me:8520: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 cf_cv_posix_c_source=no
8524 echo "$as_me: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8526 cf_want_posix_source=no
8527 case .$cf_POSIX_C_SOURCE in
8529 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8532 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8533 cf_want_posix_source=yes
8536 cf_want_posix_source=yes
8539 if test "$cf_want_posix_source" = yes ; then
8540 cat >conftest.$ac_ext <<_ACEOF
8541 #line 8541 "configure"
8542 #include "confdefs.h"
8543 #include <sys/types.h>
8548 #ifdef _POSIX_SOURCE
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:8556: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>&5
8559 echo "$as_me:8559: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:8562: \"$ac_try\"") >&5
8565 echo "$as_me:8565: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8573 rm -f conftest.$ac_objext conftest.$ac_ext
8576 echo "${as_me:-configure}:8576: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8578 CFLAGS="$cf_trim_CFLAGS"
8579 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8581 echo "${as_me:-configure}:8581: testing if the second compile does not leave our definition intact error ..." 1>&5
8583 cat >conftest.$ac_ext <<_ACEOF
8584 #line 8584 "configure"
8585 #include "confdefs.h"
8586 #include <sys/types.h>
8591 #ifndef _POSIX_C_SOURCE
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:8599: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>&5
8602 echo "$as_me:8602: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 { (eval echo "$as_me:8605: \"$ac_try\"") >&5
8608 echo "$as_me:8608: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8612 echo "$as_me: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8614 cf_cv_posix_c_source=no
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8617 CFLAGS="$cf_save_CFLAGS"
8618 CPPFLAGS="$cf_save_CPPFLAGS"
8621 rm -f conftest.$ac_objext conftest.$ac_ext
8624 echo "$as_me:8624: result: $cf_cv_posix_c_source" >&5
8625 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8627 if test "$cf_cv_posix_c_source" != no ; then
8628 CFLAGS="$cf_trim_CFLAGS"
8629 CPPFLAGS="$cf_trim_CPPFLAGS"
8634 cf_new_extra_cppflags=
8636 for cf_add_cflags in $cf_cv_posix_c_source
8638 case $cf_fix_cppflags in
8640 case $cf_add_cflags in
8641 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8642 case $cf_add_cflags in
8644 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8646 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8647 && test -z "${cf_tst_cflags}" \
8648 && cf_fix_cppflags=yes
8650 if test $cf_fix_cppflags = yes ; then
8651 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8653 elif test "${cf_tst_cflags}" = "\"'" ; then
8654 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8663 case $cf_add_cflags in
8665 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8667 CPPFLAGS=`echo "$CPPFLAGS" | \
8668 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8669 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8673 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8678 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8683 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8685 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8687 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8688 && test -z "${cf_tst_cflags}" \
8689 && cf_fix_cppflags=no
8694 if test -n "$cf_new_cflags" ; then
8696 CFLAGS="$CFLAGS $cf_new_cflags"
8699 if test -n "$cf_new_cppflags" ; then
8701 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8704 if test -n "$cf_new_extra_cppflags" ; then
8706 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8714 if test -n "$cf_xopen_source" ; then
8719 cf_new_extra_cppflags=
8721 for cf_add_cflags in $cf_xopen_source
8723 case $cf_fix_cppflags in
8725 case $cf_add_cflags in
8726 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8727 case $cf_add_cflags in
8729 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8731 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8732 && test -z "${cf_tst_cflags}" \
8733 && cf_fix_cppflags=yes
8735 if test $cf_fix_cppflags = yes ; then
8736 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8738 elif test "${cf_tst_cflags}" = "\"'" ; then
8739 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8748 case $cf_add_cflags in
8750 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8752 CPPFLAGS=`echo "$CPPFLAGS" | \
8753 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8754 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8758 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8763 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8768 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8770 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8772 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8773 && test -z "${cf_tst_cflags}" \
8774 && cf_fix_cppflags=no
8779 if test -n "$cf_new_cflags" ; then
8780 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8782 echo "${as_me:-configure}:8782: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8784 CFLAGS="$CFLAGS $cf_new_cflags"
8787 if test -n "$cf_new_cppflags" ; then
8788 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8790 echo "${as_me:-configure}:8790: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8792 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8795 if test -n "$cf_new_extra_cppflags" ; then
8796 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8798 echo "${as_me:-configure}:8798: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8800 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8805 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8806 echo "$as_me:8806: checking if _XOPEN_SOURCE really is set" >&5
8807 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8809 #line 8809 "configure"
8810 #include "confdefs.h"
8816 #ifndef _XOPEN_SOURCE
8823 rm -f conftest.$ac_objext
8824 if { (eval echo "$as_me:8824: \"$ac_compile\"") >&5
8825 (eval $ac_compile) 2>&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -s conftest.$ac_objext'
8830 { (eval echo "$as_me:8830: \"$ac_try\"") >&5
8833 echo "$as_me:8833: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 cf_XOPEN_SOURCE_set=yes
8837 echo "$as_me: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 cf_XOPEN_SOURCE_set=no
8841 rm -f conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:8842: result: $cf_XOPEN_SOURCE_set" >&5
8843 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8844 if test $cf_XOPEN_SOURCE_set = yes
8846 cat >conftest.$ac_ext <<_ACEOF
8847 #line 8847 "configure"
8848 #include "confdefs.h"
8854 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8861 rm -f conftest.$ac_objext
8862 if { (eval echo "$as_me:8862: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>&5
8865 echo "$as_me:8865: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try='test -s conftest.$ac_objext'
8868 { (eval echo "$as_me:8868: \"$ac_try\"") >&5
8871 echo "$as_me:8871: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 cf_XOPEN_SOURCE_set_ok=yes
8875 echo "$as_me: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8877 cf_XOPEN_SOURCE_set_ok=no
8879 rm -f conftest.$ac_objext conftest.$ac_ext
8880 if test $cf_XOPEN_SOURCE_set_ok = no
8882 { echo "$as_me:8882: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8883 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8887 echo "$as_me:8887: checking if we should define _XOPEN_SOURCE" >&5
8888 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8889 if test "${cf_cv_xopen_source+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 cat >conftest.$ac_ext <<_ACEOF
8894 #line 8894 "configure"
8895 #include "confdefs.h"
8899 #include <sys/types.h>
8905 #ifndef _XOPEN_SOURCE
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:8913: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>&5
8916 echo "$as_me:8916: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:8919: \"$ac_try\"") >&5
8922 echo "$as_me:8922: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 cf_cv_xopen_source=no
8926 echo "$as_me: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8929 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 #line 8931 "configure"
8932 #include "confdefs.h"
8936 #include <sys/types.h>
8942 #ifdef _XOPEN_SOURCE
8949 rm -f conftest.$ac_objext
8950 if { (eval echo "$as_me:8950: \"$ac_compile\"") >&5
8951 (eval $ac_compile) 2>&5
8953 echo "$as_me:8953: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:8956: \"$ac_try\"") >&5
8959 echo "$as_me:8959: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 cf_cv_xopen_source=no
8963 echo "$as_me: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8965 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8967 rm -f conftest.$ac_objext conftest.$ac_ext
8971 rm -f conftest.$ac_objext conftest.$ac_ext
8974 echo "$as_me:8974: result: $cf_cv_xopen_source" >&5
8975 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8977 if test "$cf_cv_xopen_source" != no ; then
8979 CFLAGS=`echo "$CFLAGS" | \
8980 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8981 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8983 CPPFLAGS=`echo "$CPPFLAGS" | \
8984 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8985 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8987 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8992 cf_new_extra_cppflags=
8994 for cf_add_cflags in $cf_temp_xopen_source
8996 case $cf_fix_cppflags in
8998 case $cf_add_cflags in
8999 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9000 case $cf_add_cflags in
9002 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9005 && test -z "${cf_tst_cflags}" \
9006 && cf_fix_cppflags=yes
9008 if test $cf_fix_cppflags = yes ; then
9009 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9011 elif test "${cf_tst_cflags}" = "\"'" ; then
9012 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9021 case $cf_add_cflags in
9023 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9025 CPPFLAGS=`echo "$CPPFLAGS" | \
9026 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9027 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9031 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9036 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9041 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9043 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9045 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9046 && test -z "${cf_tst_cflags}" \
9047 && cf_fix_cppflags=no
9052 if test -n "$cf_new_cflags" ; then
9054 CFLAGS="$CFLAGS $cf_new_cflags"
9057 if test -n "$cf_new_cppflags" ; then
9059 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9062 if test -n "$cf_new_extra_cppflags" ; then
9064 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9072 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9074 # Work around breakage on OS X
9076 echo "$as_me:9076: checking if SIGWINCH is defined" >&5
9077 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9078 if test "${cf_cv_define_sigwinch+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line 9083 "configure"
9084 #include "confdefs.h"
9086 #include <sys/types.h>
9087 #include <sys/signal.h>
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:9098: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9101 echo "$as_me:9101: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:9104: \"$ac_try\"") >&5
9107 echo "$as_me:9107: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 cf_cv_define_sigwinch=yes
9111 echo "$as_me: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 cat >conftest.$ac_ext <<_ACEOF
9114 #line 9114 "configure"
9115 #include "confdefs.h"
9117 #undef _XOPEN_SOURCE
9118 #undef _POSIX_SOURCE
9119 #undef _POSIX_C_SOURCE
9120 #include <sys/types.h>
9121 #include <sys/signal.h>
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:9132: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>&5
9135 echo "$as_me:9135: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:9138: \"$ac_try\"") >&5
9141 echo "$as_me:9141: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 cf_cv_define_sigwinch=maybe
9145 echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 cf_cv_define_sigwinch=no
9149 rm -f conftest.$ac_objext conftest.$ac_ext
9152 rm -f conftest.$ac_objext conftest.$ac_ext
9155 echo "$as_me:9155: result: $cf_cv_define_sigwinch" >&5
9156 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9158 if test "$cf_cv_define_sigwinch" = maybe ; then
9159 echo "$as_me:9159: checking for actual SIGWINCH definition" >&5
9160 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9161 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 cf_cv_fixup_sigwinch=unknown
9167 while test $cf_sigwinch != 1
9169 cat >conftest.$ac_ext <<_ACEOF
9170 #line 9170 "configure"
9171 #include "confdefs.h"
9173 #undef _XOPEN_SOURCE
9174 #undef _POSIX_SOURCE
9175 #undef _POSIX_C_SOURCE
9176 #include <sys/types.h>
9177 #include <sys/signal.h>
9183 #if SIGWINCH != $cf_sigwinch
9191 rm -f conftest.$ac_objext
9192 if { (eval echo "$as_me:9192: \"$ac_compile\"") >&5
9193 (eval $ac_compile) 2>&5
9195 echo "$as_me:9195: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -s conftest.$ac_objext'
9198 { (eval echo "$as_me:9198: \"$ac_try\"") >&5
9201 echo "$as_me:9201: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 cf_cv_fixup_sigwinch=$cf_sigwinch
9206 echo "$as_me: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9211 cf_sigwinch=`expr $cf_sigwinch - 1`
9215 echo "$as_me:9215: result: $cf_cv_fixup_sigwinch" >&5
9216 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9218 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9219 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9223 # Checks for CODESET support.
9225 echo "$as_me:9225: checking for nl_langinfo and CODESET" >&5
9226 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9227 if test "${am_cv_langinfo_codeset+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line 9231 "configure"
9232 #include "confdefs.h"
9233 #include <langinfo.h>
9237 char* cs = nl_langinfo(CODESET);
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:9243: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>&5
9246 echo "$as_me:9246: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:9249: \"$ac_try\"") >&5
9252 echo "$as_me:9252: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 am_cv_langinfo_codeset=yes
9256 echo "$as_me: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9258 am_cv_langinfo_codeset=no
9260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9263 echo "$as_me:9263: result: $am_cv_langinfo_codeset" >&5
9264 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9265 if test $am_cv_langinfo_codeset = yes; then
9267 cat >>confdefs.h <<\EOF
9268 #define HAVE_LANGINFO_CODESET 1
9273 # use these variables to work around a defect in gcc's fixincludes.
9277 echo "$as_me:9277: checking if you want wide-character code" >&5
9278 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9280 # Check whether --enable-widec or --disable-widec was given.
9281 if test "${enable_widec+set}" = set; then
9282 enableval="$enable_widec"
9283 with_widec=$enableval
9287 echo "$as_me:9287: result: $with_widec" >&5
9288 echo "${ECHO_T}$with_widec" >&6
9290 NCURSES_WCWIDTH_GRAPHICS=1
9292 if test "x$with_widec" = xyes ; then
9293 if test "x$disable_lib_suffixes" = xno ; then
9294 LIB_SUFFIX="w${LIB_SUFFIX}"
9297 cat >>confdefs.h <<\EOF
9298 #define USE_WIDEC_SUPPORT 1
9301 cat >>confdefs.h <<\EOF
9302 #define NCURSES_WIDECHAR 1
9305 echo "$as_me:9305: checking if wchar.h can be used as is" >&5
9306 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9307 if test "${cf_cv_wchar_h_okay+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9312 #line 9312 "configure"
9313 #include "confdefs.h"
9323 int bar = iswpunct(foo)
9328 rm -f conftest.$ac_objext
9329 if { (eval echo "$as_me:9329: \"$ac_compile\"") >&5
9330 (eval $ac_compile) 2>&5
9332 echo "$as_me:9332: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -s conftest.$ac_objext'
9335 { (eval echo "$as_me:9335: \"$ac_try\"") >&5
9338 echo "$as_me:9338: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 cf_cv_wchar_h_okay=yes
9342 echo "$as_me: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 cf_cv_wchar_h_okay=no
9346 rm -f conftest.$ac_objext conftest.$ac_ext
9348 echo "$as_me:9348: result: $cf_cv_wchar_h_okay" >&5
9349 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9351 if test $cf_cv_wchar_h_okay = no
9354 echo "$as_me:9354: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9355 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line 9357 "configure"
9358 #include "confdefs.h"
9359 #include <sys/types.h>
9365 #ifndef _XOPEN_SOURCE_EXTENDED
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:9373: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>&5
9376 echo "$as_me:9376: \$? = $ac_status" >&5
9377 (exit $ac_status); } &&
9378 { ac_try='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:9379: \"$ac_try\"") >&5
9382 echo "$as_me:9382: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9386 echo "$as_me: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9390 rm -f conftest.$ac_objext conftest.$ac_ext
9391 echo "$as_me:9391: result: $cf_result" >&5
9392 echo "${ECHO_T}$cf_result" >&6
9394 if test "$cf_result" = yes ; then
9395 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9396 elif test "x" != "x" ; then
9397 echo "$as_me:9397: checking checking for compatible value versus " >&5
9398 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9399 cat >conftest.$ac_ext <<_ACEOF
9400 #line 9400 "configure"
9401 #include "confdefs.h"
9402 #include <sys/types.h>
9408 #if _XOPEN_SOURCE_EXTENDED- < 0
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:9416: \"$ac_compile\"") >&5
9417 (eval $ac_compile) 2>&5
9419 echo "$as_me:9419: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:9422: \"$ac_try\"") >&5
9425 echo "$as_me:9425: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9429 echo "$as_me: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9433 rm -f conftest.$ac_objext conftest.$ac_ext
9434 echo "$as_me:9434: result: $cf_result" >&5
9435 echo "${ECHO_T}$cf_result" >&6
9436 if test "$cf_result" = no ; then
9437 # perhaps we can override it - try...
9438 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9444 echo "$as_me:9444: checking if wcwidth agrees graphics are single-width" >&5
9445 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9446 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 cat >conftest.in <<CF_EOF
9452 0x250c upper left corner
9453 0x2514 lower left corner
9454 0x2510 upper right corner
9455 0x2518 lower right corner
9456 0x251c tee pointing left
9457 0x2524 tee pointing right
9458 0x2534 tee pointing up
9459 0x252c tee pointing down
9460 0x2500 horizontal line
9461 0x2502 vertical line
9462 0x253c large plus or crossover
9466 0x2592 checker board (stipple)
9467 0x00b0 degree symbol
9470 - Teletype 5410v1 symbols
9471 0x2190 arrow pointing left
9472 0x2192 arrow pointing right
9473 0x2193 arrow pointing down
9474 0x2191 arrow pointing up
9475 0x2592 board of squares
9476 0x2603 lantern symbol
9477 0x25ae solid square block
9478 - these defaults were invented for ncurses
9481 0x2264 less-than-or-equal-to
9482 0x2265 greater-than-or-equal-to
9485 0x00a3 pound-sterling symbol
9486 - thick-line-drawing
9487 0x250f upper left corner
9488 0x2517 lower left corner
9489 0x2513 upper right corner
9490 0x251b lower right corner
9491 0x2523 tee pointing left
9492 0x252b tee pointing right
9493 0x253b tee pointing up
9494 0x2533 tee pointing down
9495 0x2501 horizontal line
9496 0x2503 vertical line
9497 0x254b large plus or crossover
9498 - double-line-drawing
9499 0x2554 upper left corner
9500 0x255a lower left corner
9501 0x2557 upper right corner
9502 0x255d lower right corner
9503 0x2563 tee pointing left
9504 0x2560 tee pointing right
9505 0x2569 tee pointing up
9506 0x2566 tee pointing down
9507 0x2550 horizontal line
9508 0x2551 vertical line
9509 0x256c large plus or crossover
9511 if test "$cross_compiling" = yes; then
9512 cf_cv_wcwidth_graphics=unknown
9514 cat >conftest.$ac_ext <<_ACEOF
9515 #line 9515 "configure"
9516 #include "confdefs.h"
9529 char buffer[MY_LEN + 1];
9530 char notes[MY_LEN + 1];
9534 if (setlocale(LC_ALL, "en_US.UTF8") ||
9535 setlocale(LC_ALL, "en_US.UTF-8") ||
9536 setlocale(LC_ALL, "en_US.utf8") ||
9537 setlocale(LC_ALL, "en_US.utf-8")) {
9538 if ((fp = fopen("conftest.in", "r")) != 0) {
9539 while (fgets(buffer, MY_LEN, fp) != 0) {
9540 if (*buffer == '-') {
9541 fprintf(stderr, "\t%s", buffer);
9542 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9544 if (wcwidth(value) == 1)
9546 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9548 fprintf(stderr, "?\t%s", buffer);
9553 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9554 return (totals == passed) ? 0 : 1;
9558 rm -f conftest$ac_exeext
9559 if { (eval echo "$as_me:9559: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>&5
9562 echo "$as_me:9562: \$? = $ac_status" >&5
9563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9564 { (eval echo "$as_me:9564: \"$ac_try\"") >&5
9567 echo "$as_me:9567: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 cf_cv_wcwidth_graphics=yes
9571 echo "$as_me: program exited with status $ac_status" >&5
9572 echo "$as_me: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9574 cf_cv_wcwidth_graphics=no
9576 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9580 echo "$as_me:9580: result: $cf_cv_wcwidth_graphics" >&5
9581 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9583 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9586 NCURSES_CH_T=cchar_t
9588 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9591 echo "$as_me:9591: checking for $ac_func" >&5
9592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9593 if eval "test \"\${$as_ac_var+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9597 #line 9597 "configure"
9598 #include "confdefs.h"
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char $ac_func (); below. */
9602 /* Override any gcc2 internal prototype to avoid an error. */
9606 /* We use char because int might match the return type of a gcc2
9607 builtin and then its argument prototype would still apply. */
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9620 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (eval echo "$as_me:9628: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>&5
9631 echo "$as_me:9631: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (eval echo "$as_me:9634: \"$ac_try\"") >&5
9637 echo "$as_me:9637: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 eval "$as_ac_var=yes"
9641 echo "$as_me: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 eval "$as_ac_var=no"
9645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9647 echo "$as_me:9647: result: `eval echo '${'$as_ac_var'}'`" >&5
9648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9649 if test `eval echo '${'$as_ac_var'}'` = yes; then
9650 cat >>confdefs.h <<EOF
9651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9657 if test "x$ac_cv_func_putwc" != xyes ; then
9659 echo "$as_me:9659: checking for multibyte character support" >&5
9660 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9661 if test "${cf_cv_utf8_lib+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cf_save_LIBS="$LIBS"
9666 cat >conftest.$ac_ext <<_ACEOF
9667 #line 9667 "configure"
9668 #include "confdefs.h"
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (eval echo "$as_me:9680: \"$ac_link\"") >&5
9681 (eval $ac_link) 2>&5
9683 echo "$as_me:9683: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (eval echo "$as_me:9686: \"$ac_try\"") >&5
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9693 echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9696 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9697 # will be set on completion of the AC_TRY_LINK below.
9698 cf_cv_header_path_utf8=
9699 cf_cv_library_path_utf8=
9701 echo "${as_me:-configure}:9701: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9703 cf_save_LIBS="$LIBS"
9705 cat >conftest.$ac_ext <<_ACEOF
9706 #line 9706 "configure"
9707 #include "confdefs.h"
9709 #include <libutf8.h>
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:9719: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9722 echo "$as_me:9722: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:9725: \"$ac_try\"") >&5
9728 echo "$as_me:9728: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9731 cf_cv_find_linkage_utf8=yes
9732 cf_cv_header_path_utf8=/usr/include
9733 cf_cv_library_path_utf8=/usr/lib
9736 echo "$as_me: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 LIBS="-lutf8 $cf_save_LIBS"
9741 cat >conftest.$ac_ext <<_ACEOF
9742 #line 9742 "configure"
9743 #include "confdefs.h"
9745 #include <libutf8.h>
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:9755: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>&5
9758 echo "$as_me:9758: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -s conftest$ac_exeext'
9761 { (eval echo "$as_me:9761: \"$ac_try\"") >&5
9764 echo "$as_me:9764: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9767 cf_cv_find_linkage_utf8=yes
9768 cf_cv_header_path_utf8=/usr/include
9769 cf_cv_library_path_utf8=/usr/lib
9770 cf_cv_library_file_utf8="-lutf8"
9773 echo "$as_me: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 cf_cv_find_linkage_utf8=no
9777 LIBS="$cf_save_LIBS"
9779 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9781 echo "${as_me:-configure}:9781: testing find linkage for utf8 library ..." 1>&5
9783 echo "${as_me:-configure}:9783: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9785 cf_save_CPPFLAGS="$CPPFLAGS"
9786 cf_test_CPPFLAGS="$CPPFLAGS"
9790 # collect the current set of include-directories from compiler flags
9791 cf_header_path_list=""
9792 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9793 for cf_header_path in $CPPFLAGS $CFLAGS
9795 case $cf_header_path in
9797 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9799 test "x$cf_header_path" != "xNONE" && \
9800 test -d "$cf_header_path" && \
9802 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9803 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9804 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9805 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9806 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9807 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9810 cf_header_path_list="$cf_header_path_list $cf_search"
9816 # add the variations for the package we are looking for
9820 test "x$prefix" != "xNONE" && \
9821 test -d "$prefix" && \
9823 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9824 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9825 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9826 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9827 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9828 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9831 for cf_subdir_prefix in \
9840 test "x$cf_subdir_prefix" != "x$prefix" && \
9841 test -d "$cf_subdir_prefix" && \
9842 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9843 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9844 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9845 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9846 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9847 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9848 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9853 test "$includedir" != NONE && \
9854 test "$includedir" != "/usr/include" && \
9855 test -d "$includedir" && {
9856 test -d $includedir && cf_search="$cf_search $includedir"
9857 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9860 test "$oldincludedir" != NONE && \
9861 test "$oldincludedir" != "/usr/include" && \
9862 test -d "$oldincludedir" && {
9863 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9864 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9867 cf_search="$cf_search $cf_header_path_list"
9869 for cf_cv_header_path_utf8 in $cf_search
9871 if test -d $cf_cv_header_path_utf8 ; then
9872 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9874 echo "${as_me:-configure}:9874: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9876 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9877 cat >conftest.$ac_ext <<_ACEOF
9878 #line 9878 "configure"
9879 #include "confdefs.h"
9881 #include <libutf8.h>
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:9891: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:9897: \"$ac_try\"") >&5
9900 echo "$as_me:9900: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9903 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9905 echo "${as_me:-configure}:9905: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9907 cf_cv_find_linkage_utf8=maybe
9908 cf_test_CPPFLAGS="$CPPFLAGS"
9911 echo "$as_me: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9914 CPPFLAGS="$cf_save_CPPFLAGS"
9917 rm -f conftest.$ac_objext conftest.$ac_ext
9921 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9923 echo "${as_me:-configure}:9923: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9925 cf_save_LIBS="$LIBS"
9926 cf_save_LDFLAGS="$LDFLAGS"
9928 if test "$cf_cv_find_linkage_utf8" != yes ; then
9931 cf_library_path_list=""
9932 if test -n "${LDFLAGS}${LIBS}" ; then
9933 for cf_library_path in $LDFLAGS $LIBS
9935 case $cf_library_path in
9937 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9939 test "x$cf_library_path" != "xNONE" && \
9940 test -d "$cf_library_path" && \
9942 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9943 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9944 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9945 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9946 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9947 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9950 cf_library_path_list="$cf_library_path_list $cf_search"
9958 test "x$prefix" != "xNONE" && \
9959 test -d "$prefix" && \
9961 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9962 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9963 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9964 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9965 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9966 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9969 for cf_subdir_prefix in \
9978 test "x$cf_subdir_prefix" != "x$prefix" && \
9979 test -d "$cf_subdir_prefix" && \
9980 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9981 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9982 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9983 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
9984 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
9985 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
9986 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
9991 cf_search="$cf_library_path_list $cf_search"
9993 for cf_cv_library_path_utf8 in $cf_search
9995 if test -d $cf_cv_library_path_utf8 ; then
9996 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9998 echo "${as_me:-configure}:9998: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10000 CPPFLAGS="$cf_test_CPPFLAGS"
10001 LIBS="-lutf8 $cf_save_LIBS"
10002 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10007 #include <libutf8.h>
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:10017: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>&5
10020 echo "$as_me:10020: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:10023: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:10026: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10029 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10031 echo "${as_me:-configure}:10031: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10033 cf_cv_find_linkage_utf8=yes
10034 cf_cv_library_file_utf8="-lutf8"
10037 echo "$as_me: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 CPPFLAGS="$cf_save_CPPFLAGS"
10041 LIBS="$cf_save_LIBS"
10042 LDFLAGS="$cf_save_LDFLAGS"
10045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10048 CPPFLAGS="$cf_save_CPPFLAGS"
10049 LDFLAGS="$cf_save_LDFLAGS"
10053 cf_cv_find_linkage_utf8=no
10057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10062 LIBS="$cf_save_LIBS"
10064 if test "$cf_cv_find_linkage_utf8" = yes ; then
10065 cf_cv_utf8_lib=add-on
10071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10073 echo "$as_me:10073: result: $cf_cv_utf8_lib" >&5
10074 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10076 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10077 # ncurses/ncursesw:
10078 if test "$cf_cv_utf8_lib" = "add-on" ; then
10080 cat >>confdefs.h <<\EOF
10081 #define HAVE_LIBUTF8_H 1
10084 if test -n "$cf_cv_header_path_utf8" ; then
10085 for cf_add_incdir in $cf_cv_header_path_utf8
10087 while test $cf_add_incdir != /usr/include
10089 if test -d $cf_add_incdir
10092 if test -n "$CFLAGS$CPPFLAGS" ; then
10093 # a loop is needed to ensure we can add subdirs of existing dirs
10094 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10095 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10096 cf_have_incdir=yes; break
10101 if test "$cf_have_incdir" = no ; then
10102 if test "$cf_add_incdir" = /usr/local/include ; then
10103 if test "$GCC" = yes
10105 cf_save_CPPFLAGS=$CPPFLAGS
10106 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:10120: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>&5
10123 echo "$as_me:10123: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:10126: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:10129: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10133 echo "$as_me: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10137 rm -f conftest.$ac_objext conftest.$ac_ext
10138 CPPFLAGS=$cf_save_CPPFLAGS
10143 if test "$cf_have_incdir" = no ; then
10144 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10146 echo "${as_me:-configure}:10146: testing adding $cf_add_incdir to include-path ..." 1>&5
10148 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10150 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10151 test "$cf_top_incdir" = "$cf_add_incdir" && break
10152 cf_add_incdir="$cf_top_incdir"
10163 if test -n "$cf_cv_library_path_utf8" ; then
10164 for cf_add_libdir in $cf_cv_library_path_utf8
10166 if test $cf_add_libdir = /usr/lib ; then
10168 elif test -d $cf_add_libdir
10171 if test -n "$LDFLAGS$LIBS" ; then
10172 # a loop is needed to ensure we can add subdirs of existing dirs
10173 for cf_test_libdir in $LDFLAGS $LIBS ; do
10174 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10175 cf_have_libdir=yes; break
10179 if test "$cf_have_libdir" = no ; then
10180 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10182 echo "${as_me:-configure}:10182: testing adding $cf_add_libdir to library-path ..." 1>&5
10184 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10190 cf_add_libs="$cf_cv_library_file_utf8"
10191 # Filter out duplicates - this happens with badly-designed ".pc" files...
10192 for cf_add_1lib in $LIBS
10194 for cf_add_2lib in $cf_add_libs
10196 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10202 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10204 LIBS="$cf_add_libs"
10208 if test "$cf_cv_utf8_lib" != no ; then
10213 # This is needed on Tru64 5.0 to declare mbstate_t
10214 echo "$as_me:10214: checking if we must include wchar.h to declare mbstate_t" >&5
10215 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10216 if test "${cf_cv_mbstate_t+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line 10221 "configure"
10222 #include "confdefs.h"
10224 #include <stdlib.h>
10225 #include <stdarg.h>
10227 #ifdef HAVE_LIBUTF8_H
10228 #include <libutf8.h>
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:10239: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>&5
10242 echo "$as_me:10242: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -s conftest.$ac_objext'
10245 { (eval echo "$as_me:10245: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:10248: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10252 echo "$as_me: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10258 #include <stdlib.h>
10259 #include <stdarg.h>
10262 #ifdef HAVE_LIBUTF8_H
10263 #include <libutf8.h>
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:10274: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>&5
10277 echo "$as_me:10277: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -s conftest.$ac_objext'
10280 { (eval echo "$as_me:10280: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:10283: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 cf_cv_mbstate_t=yes
10287 echo "$as_me: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 cf_cv_mbstate_t=unknown
10291 rm -f conftest.$ac_objext conftest.$ac_ext
10293 rm -f conftest.$ac_objext conftest.$ac_ext
10295 echo "$as_me:10295: result: $cf_cv_mbstate_t" >&5
10296 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10298 if test "$cf_cv_mbstate_t" = yes ; then
10300 cat >>confdefs.h <<\EOF
10301 #define NEED_WCHAR_H 1
10307 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10308 if test "$cf_cv_mbstate_t" = unknown ; then
10309 NCURSES_MBSTATE_T=1
10312 # This is needed on Tru64 5.0 to declare wchar_t
10313 echo "$as_me:10313: checking if we must include wchar.h to declare wchar_t" >&5
10314 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10315 if test "${cf_cv_wchar_t+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 cat >conftest.$ac_ext <<_ACEOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10323 #include <stdlib.h>
10324 #include <stdarg.h>
10326 #ifdef HAVE_LIBUTF8_H
10327 #include <libutf8.h>
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:10338: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10341 echo "$as_me:10341: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:10344: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:10347: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10351 echo "$as_me: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 cat >conftest.$ac_ext <<_ACEOF
10354 #line 10354 "configure"
10355 #include "confdefs.h"
10357 #include <stdlib.h>
10358 #include <stdarg.h>
10361 #ifdef HAVE_LIBUTF8_H
10362 #include <libutf8.h>
10372 rm -f conftest.$ac_objext
10373 if { (eval echo "$as_me:10373: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>&5
10376 echo "$as_me:10376: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -s conftest.$ac_objext'
10379 { (eval echo "$as_me:10379: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:10382: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10386 echo "$as_me: failed program was:" >&5
10387 cat conftest.$ac_ext >&5
10388 cf_cv_wchar_t=unknown
10390 rm -f conftest.$ac_objext conftest.$ac_ext
10392 rm -f conftest.$ac_objext conftest.$ac_ext
10394 echo "$as_me:10394: result: $cf_cv_wchar_t" >&5
10395 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10397 if test "$cf_cv_wchar_t" = yes ; then
10399 cat >>confdefs.h <<\EOF
10400 #define NEED_WCHAR_H 1
10406 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10407 if test "$cf_cv_wchar_t" = unknown ; then
10411 # if we find wchar_t in either place, use substitution to provide a fallback.
10412 if test "$cf_cv_wchar_t" != unknown ; then
10413 NCURSES_OK_WCHAR_T=1
10416 # This is needed on Tru64 5.0 to declare wint_t
10417 echo "$as_me:10417: checking if we must include wchar.h to declare wint_t" >&5
10418 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10419 if test "${cf_cv_wint_t+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10424 #line 10424 "configure"
10425 #include "confdefs.h"
10427 #include <stdlib.h>
10428 #include <stdarg.h>
10430 #ifdef HAVE_LIBUTF8_H
10431 #include <libutf8.h>
10441 rm -f conftest.$ac_objext
10442 if { (eval echo "$as_me:10442: \"$ac_compile\"") >&5
10443 (eval $ac_compile) 2>&5
10445 echo "$as_me:10445: \$? = $ac_status" >&5
10446 (exit $ac_status); } &&
10447 { ac_try='test -s conftest.$ac_objext'
10448 { (eval echo "$as_me:10448: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:10451: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10455 echo "$as_me: failed program was:" >&5
10456 cat conftest.$ac_ext >&5
10457 cat >conftest.$ac_ext <<_ACEOF
10458 #line 10458 "configure"
10459 #include "confdefs.h"
10461 #include <stdlib.h>
10462 #include <stdarg.h>
10465 #ifdef HAVE_LIBUTF8_H
10466 #include <libutf8.h>
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:10477: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10480 echo "$as_me:10480: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:10483: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:10486: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10490 echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 cf_cv_wint_t=unknown
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10496 rm -f conftest.$ac_objext conftest.$ac_ext
10498 echo "$as_me:10498: result: $cf_cv_wint_t" >&5
10499 echo "${ECHO_T}$cf_cv_wint_t" >&6
10501 if test "$cf_cv_wint_t" = yes ; then
10503 cat >>confdefs.h <<\EOF
10504 #define NEED_WCHAR_H 1
10510 # if we do not find wint_t in either place, use substitution to provide a fallback.
10511 if test "$cf_cv_wint_t" = unknown ; then
10515 # if we find wint_t in either place, use substitution to provide a fallback.
10516 if test "$cf_cv_wint_t" != unknown ; then
10517 NCURSES_OK_WINT_T=1
10520 if test "$NCURSES_MBSTATE_T" != 0; then
10522 cat >>confdefs.h <<\EOF
10523 #define NEED_MBSTATE_T_DEF 1
10529 ### use option --disable-lp64 to allow long chtype
10530 echo "$as_me:10530: checking whether to enable _LP64 definition in curses.h" >&5
10531 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10533 # Check whether --enable-lp64 or --disable-lp64 was given.
10534 if test "${enable_lp64+set}" = set; then
10535 enableval="$enable_lp64"
10536 with_lp64=$enableval
10538 with_lp64=$cf_dft_with_lp64
10540 echo "$as_me:10540: result: $with_lp64" >&5
10541 echo "${ECHO_T}$with_lp64" >&6
10543 if test "x$with_lp64" = xyes ; then
10544 cf_cv_enable_lp64=1
10546 cf_cv_enable_lp64=0
10549 # Check whether --enable-largefile or --disable-largefile was given.
10550 if test "${enable_largefile+set}" = set; then
10551 enableval="$enable_largefile"
10554 if test "$enable_largefile" != no; then
10556 echo "$as_me:10556: checking for special C compiler options needed for large files" >&5
10557 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10558 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 ac_cv_sys_largefile_CC=no
10562 if test "$GCC" != yes; then
10565 # IRIX 6.2 and later do not support large files by default,
10566 # so use the C compiler's -n32 option if that helps.
10567 cat >conftest.$ac_ext <<_ACEOF
10568 #line 10568 "configure"
10569 #include "confdefs.h"
10570 #include <sys/types.h>
10571 /* Check that off_t can represent 2**63 - 1 correctly.
10572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10573 since some C++ compilers masquerading as C compilers
10574 incorrectly reject 9223372036854775807. */
10575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10577 && LARGE_OFF_T % 2147483647 == 1)
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:10588: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>&5
10591 echo "$as_me:10591: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:10594: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:10597: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10601 echo "$as_me: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10604 rm -f conftest.$ac_objext
10606 rm -f conftest.$ac_objext
10607 if { (eval echo "$as_me:10607: \"$ac_compile\"") >&5
10608 (eval $ac_compile) 2>&5
10610 echo "$as_me:10610: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (eval echo "$as_me:10613: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:10616: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_sys_largefile_CC=' -n32'; break
10620 echo "$as_me: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10623 rm -f conftest.$ac_objext
10627 rm -f conftest.$ac_ext
10630 echo "$as_me:10630: result: $ac_cv_sys_largefile_CC" >&5
10631 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10632 if test "$ac_cv_sys_largefile_CC" != no; then
10633 CC=$CC$ac_cv_sys_largefile_CC
10636 echo "$as_me:10636: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10637 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10638 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 ac_cv_sys_file_offset_bits=no
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10646 #include <sys/types.h>
10647 /* Check that off_t can represent 2**63 - 1 correctly.
10648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10649 since some C++ compilers masquerading as C compilers
10650 incorrectly reject 9223372036854775807. */
10651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10653 && LARGE_OFF_T % 2147483647 == 1)
10663 rm -f conftest.$ac_objext
10664 if { (eval echo "$as_me:10664: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>&5
10667 echo "$as_me:10667: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (eval echo "$as_me:10670: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:10673: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10677 echo "$as_me: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10680 rm -f conftest.$ac_objext conftest.$ac_ext
10681 cat >conftest.$ac_ext <<_ACEOF
10682 #line 10682 "configure"
10683 #include "confdefs.h"
10684 #define _FILE_OFFSET_BITS 64
10685 #include <sys/types.h>
10686 /* Check that off_t can represent 2**63 - 1 correctly.
10687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10688 since some C++ compilers masquerading as C compilers
10689 incorrectly reject 9223372036854775807. */
10690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10692 && LARGE_OFF_T % 2147483647 == 1)
10702 rm -f conftest.$ac_objext
10703 if { (eval echo "$as_me:10703: \"$ac_compile\"") >&5
10704 (eval $ac_compile) 2>&5
10706 echo "$as_me:10706: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:10709: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:10712: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_sys_file_offset_bits=64; break
10716 echo "$as_me: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10719 rm -f conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:10723: result: $ac_cv_sys_file_offset_bits" >&5
10724 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10725 if test "$ac_cv_sys_file_offset_bits" != no; then
10727 cat >>confdefs.h <<EOF
10728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10733 echo "$as_me:10733: checking for _LARGE_FILES value needed for large files" >&5
10734 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10735 if test "${ac_cv_sys_large_files+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 ac_cv_sys_large_files=no
10740 cat >conftest.$ac_ext <<_ACEOF
10741 #line 10741 "configure"
10742 #include "confdefs.h"
10743 #include <sys/types.h>
10744 /* Check that off_t can represent 2**63 - 1 correctly.
10745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10746 since some C++ compilers masquerading as C compilers
10747 incorrectly reject 9223372036854775807. */
10748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10750 && LARGE_OFF_T % 2147483647 == 1)
10760 rm -f conftest.$ac_objext
10761 if { (eval echo "$as_me:10761: \"$ac_compile\"") >&5
10762 (eval $ac_compile) 2>&5
10764 echo "$as_me:10764: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -s conftest.$ac_objext'
10767 { (eval echo "$as_me:10767: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:10770: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10774 echo "$as_me: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10777 rm -f conftest.$ac_objext conftest.$ac_ext
10778 cat >conftest.$ac_ext <<_ACEOF
10779 #line 10779 "configure"
10780 #include "confdefs.h"
10781 #define _LARGE_FILES 1
10782 #include <sys/types.h>
10783 /* Check that off_t can represent 2**63 - 1 correctly.
10784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10785 since some C++ compilers masquerading as C compilers
10786 incorrectly reject 9223372036854775807. */
10787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10789 && LARGE_OFF_T % 2147483647 == 1)
10799 rm -f conftest.$ac_objext
10800 if { (eval echo "$as_me:10800: \"$ac_compile\"") >&5
10801 (eval $ac_compile) 2>&5
10803 echo "$as_me:10803: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -s conftest.$ac_objext'
10806 { (eval echo "$as_me:10806: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:10809: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_sys_large_files=1; break
10813 echo "$as_me: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10816 rm -f conftest.$ac_objext conftest.$ac_ext
10820 echo "$as_me:10820: result: $ac_cv_sys_large_files" >&5
10821 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10822 if test "$ac_cv_sys_large_files" != no; then
10824 cat >>confdefs.h <<EOF
10825 #define _LARGE_FILES $ac_cv_sys_large_files
10832 if test "$enable_largefile" != no ; then
10833 echo "$as_me:10833: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10834 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10835 if test "${ac_cv_sys_largefile_source+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 ac_cv_sys_largefile_source=no
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line 10841 "configure"
10842 #include "confdefs.h"
10852 rm -f conftest.$ac_objext
10853 if { (eval echo "$as_me:10853: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>&5
10856 echo "$as_me:10856: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -s conftest.$ac_objext'
10859 { (eval echo "$as_me:10859: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:10862: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10866 echo "$as_me: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 rm -f conftest.$ac_objext conftest.$ac_ext
10870 cat >conftest.$ac_ext <<_ACEOF
10871 #line 10871 "configure"
10872 #include "confdefs.h"
10873 #define _LARGEFILE_SOURCE 1
10883 rm -f conftest.$ac_objext
10884 if { (eval echo "$as_me:10884: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>&5
10887 echo "$as_me:10887: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:10890: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10893 echo "$as_me:10893: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_sys_largefile_source=1; break
10897 echo "$as_me: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10900 rm -f conftest.$ac_objext conftest.$ac_ext
10904 echo "$as_me:10904: result: $ac_cv_sys_largefile_source" >&5
10905 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10906 if test "$ac_cv_sys_largefile_source" != no; then
10908 cat >>confdefs.h <<EOF
10909 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10915 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10916 # in glibc 2.1.3, but that breaks too many other things.
10917 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10918 echo "$as_me:10918: checking for fseeko" >&5
10919 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10920 if test "${ac_cv_func_fseeko+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 cat >conftest.$ac_ext <<_ACEOF
10924 #line 10924 "configure"
10925 #include "confdefs.h"
10930 return fseeko && fseeko (stdin, 0, 0);
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (eval echo "$as_me:10936: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>&5
10939 echo "$as_me:10939: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -s conftest$ac_exeext'
10942 { (eval echo "$as_me:10942: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10945 echo "$as_me:10945: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 ac_cv_func_fseeko=yes
10949 echo "$as_me: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951 ac_cv_func_fseeko=no
10953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10955 echo "$as_me:10955: result: $ac_cv_func_fseeko" >&5
10956 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10957 if test $ac_cv_func_fseeko = yes; then
10959 cat >>confdefs.h <<\EOF
10960 #define HAVE_FSEEKO 1
10965 # Normally we would collect these definitions in the config.h,
10966 # but (like _XOPEN_SOURCE), some environments rely on having these
10967 # defined before any of the system headers are included. Another
10968 # case comes up with C++, e.g., on AIX the compiler compiles the
10969 # header files by themselves before looking at the body files it is
10970 # told to compile. For ncurses, those header files do not include
10972 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10973 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10974 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10976 echo "$as_me:10976: checking whether to use struct dirent64" >&5
10977 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10978 if test "${cf_cv_struct_dirent64+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 cat >conftest.$ac_ext <<_ACEOF
10983 #line 10983 "configure"
10984 #include "confdefs.h"
10986 #include <sys/types.h>
10987 #include <dirent.h>
10993 /* if transitional largefile support is setup, this is true */
10994 extern struct dirent64 * readdir(DIR *);
10995 struct dirent64 *x = readdir((DIR *)0);
10996 struct dirent *y = readdir((DIR *)0);
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:11004: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>&5
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (eval echo "$as_me:11010: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11013 echo "$as_me:11013: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11015 cf_cv_struct_dirent64=yes
11017 echo "$as_me: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 cf_cv_struct_dirent64=no
11021 rm -f conftest.$ac_objext conftest.$ac_ext
11024 echo "$as_me:11024: result: $cf_cv_struct_dirent64" >&5
11025 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
11026 test "$cf_cv_struct_dirent64" = yes &&
11027 cat >>confdefs.h <<\EOF
11028 #define HAVE_STRUCT_DIRENT64 1
11033 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
11034 echo "$as_me:11034: checking if you want tparm not to use X/Open fixed-parameter list" >&5
11035 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
11037 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
11038 if test "${enable_tparm_varargs+set}" = set; then
11039 enableval="$enable_tparm_varargs"
11040 with_tparm_varargs=$enableval
11042 with_tparm_varargs=yes
11044 echo "$as_me:11044: result: $with_tparm_varargs" >&5
11045 echo "${ECHO_T}$with_tparm_varargs" >&6
11046 NCURSES_TPARM_VARARGS=0
11047 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11049 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11050 if test "$with_ticlib" != no ; then
11051 echo "$as_me:11051: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11052 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11054 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11055 if test "${enable_tic_depends+set}" = set; then
11056 enableval="$enable_tic_depends"
11057 with_tic_depends=$enableval
11059 with_tic_depends=yes
11061 echo "$as_me:11061: result: $with_tic_depends" >&5
11062 echo "${ECHO_T}$with_tic_depends" >&6
11064 with_tic_depends=no
11067 ### use option --with-bool to override bool's type
11068 echo "$as_me:11068: checking for type of bool" >&5
11069 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11071 # Check whether --with-bool or --without-bool was given.
11072 if test "${with_bool+set}" = set; then
11073 withval="$with_bool"
11074 NCURSES_BOOL="$withval"
11078 echo "$as_me:11078: result: $NCURSES_BOOL" >&5
11079 echo "${ECHO_T}$NCURSES_BOOL" >&6
11081 echo "$as_me:11081: checking for alternate terminal capabilities file" >&5
11082 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11084 # Check whether --with-caps or --without-caps was given.
11085 if test "${with_caps+set}" = set; then
11086 withval="$with_caps"
11087 TERMINFO_CAPS=Caps.$withval
11091 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11092 echo "$as_me:11092: result: $TERMINFO_CAPS" >&5
11093 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11095 ### use option --with-chtype to override chtype's type
11096 echo "$as_me:11096: checking for type of chtype" >&5
11097 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11099 # Check whether --with-chtype or --without-chtype was given.
11100 if test "${with_chtype+set}" = set; then
11101 withval="$with_chtype"
11102 NCURSES_CHTYPE="$withval"
11104 NCURSES_CHTYPE=$cf_dft_chtype
11106 echo "$as_me:11106: result: $NCURSES_CHTYPE" >&5
11107 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11109 ### use option --with-ospeed to override ospeed's type
11110 echo "$as_me:11110: checking for type of ospeed" >&5
11111 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11113 # Check whether --with-ospeed or --without-ospeed was given.
11114 if test "${with_ospeed+set}" = set; then
11115 withval="$with_ospeed"
11116 NCURSES_OSPEED="$withval"
11118 NCURSES_OSPEED=short
11120 echo "$as_me:11120: result: $NCURSES_OSPEED" >&5
11121 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11123 ### use option --with-mmask-t to override mmask_t's type
11124 echo "$as_me:11124: checking for type of mmask_t" >&5
11125 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11127 # Check whether --with-mmask-t or --without-mmask-t was given.
11128 if test "${with_mmask_t+set}" = set; then
11129 withval="$with_mmask_t"
11130 NCURSES_MMASK_T="$withval"
11132 NCURSES_MMASK_T=$cf_dft_mmask_t
11134 echo "$as_me:11134: result: $NCURSES_MMASK_T" >&5
11135 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11137 ### use option --with-ccharw-max to override CCHARW_MAX size
11138 echo "$as_me:11138: checking for size CCHARW_MAX" >&5
11139 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11141 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11142 if test "${with_ccharw_max+set}" = set; then
11143 withval="$with_ccharw_max"
11144 NCURSES_CCHARW_MAX="$withval"
11146 NCURSES_CCHARW_MAX=5
11148 echo "$as_me:11148: result: $NCURSES_CCHARW_MAX" >&5
11149 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11151 ### use option --with-tparm-arg to override tparm's argument type
11152 echo "$as_me:11152: checking for type of tparm args" >&5
11153 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11155 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11156 if test "${with_tparm_arg+set}" = set; then
11157 withval="$with_tparm_arg"
11158 NCURSES_TPARM_ARG="$withval"
11160 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11162 echo "$as_me:11162: result: $NCURSES_TPARM_ARG" >&5
11163 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11165 ### Enable compiling-in rcs id's
11166 echo "$as_me:11166: checking if RCS identifiers should be compiled-in" >&5
11167 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11169 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11170 if test "${with_rcs_ids+set}" = set; then
11171 withval="$with_rcs_ids"
11172 with_rcs_ids=$withval
11176 echo "$as_me:11176: result: $with_rcs_ids" >&5
11177 echo "${ECHO_T}$with_rcs_ids" >&6
11178 test "x$with_rcs_ids" = xyes &&
11179 cat >>confdefs.h <<\EOF
11180 #define USE_RCS_IDS 1
11183 ###############################################################################
11185 echo "$as_me:11185: checking format of man-pages" >&5
11186 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11188 # Check whether --with-manpage-format or --without-manpage-format was given.
11189 if test "${with_manpage_format+set}" = set; then
11190 withval="$with_manpage_format"
11191 MANPAGE_FORMAT=$withval
11193 MANPAGE_FORMAT=unknown
11196 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11197 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11201 case $MANPAGE_FORMAT in
11203 if test -z "$MANPATH" ; then
11204 MANPATH="/usr/man:/usr/share/man"
11207 # look for the 'date' man-page (it's most likely to be installed!)
11213 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11214 for cf_dir in $MANPATH; do
11215 test -z "$cf_dir" && cf_dir=/usr/man
11216 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
11218 cf_test=`echo $cf_name | sed -e 's/*//'`
11219 if test "x$cf_test" = "x$cf_name" ; then
11222 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11223 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11224 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11225 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11239 # if we found a match in either man* or cat*, stop looking
11240 if test -n "$MANPAGE_FORMAT" ; then
11242 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11243 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11249 test $cf_found=yes && break
11252 # only check the first directory in $MANPATH where we find manpages
11253 if test -n "$MANPAGE_FORMAT" ; then
11257 # if we did not find the example, just assume it is normal
11258 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11262 for cf_option in $MANPAGE_FORMAT; do
11264 (gzip|compress|BSDI|normal|formatted|catonly)
11267 cf_unknown="$cf_unknown $cf_option"
11274 echo "$as_me:11274: result: $MANPAGE_FORMAT" >&5
11275 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11276 if test -n "$cf_unknown" ; then
11277 { echo "$as_me:11277: WARNING: Unexpected manpage-format $cf_unknown" >&5
11278 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11281 echo "$as_me:11281: checking for manpage renaming" >&5
11282 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11284 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11285 if test "${with_manpage_renames+set}" = set; then
11286 withval="$with_manpage_renames"
11287 MANPAGE_RENAMES=$withval
11289 MANPAGE_RENAMES=yes
11292 case ".$MANPAGE_RENAMES" in
11296 # Debian 'man' program?
11297 if test -f /etc/debian_version ; then
11298 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11305 if test "$MANPAGE_RENAMES" != no ; then
11306 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11307 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11308 elif test ! -f $MANPAGE_RENAMES ; then
11309 { { echo "$as_me:11309: error: not a filename: $MANPAGE_RENAMES" >&5
11310 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11311 { (exit 1); exit 1; }; }
11314 test ! -d man && mkdir man
11316 # Construct a sed-script to perform renaming within man-pages
11317 if test -n "$MANPAGE_RENAMES" ; then
11318 test ! -d man && mkdir man
11319 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11323 echo "$as_me:11323: result: $MANPAGE_RENAMES" >&5
11324 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11326 echo "$as_me:11326: checking if manpage aliases will be installed" >&5
11327 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11329 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11330 if test "${with_manpage_aliases+set}" = set; then
11331 withval="$with_manpage_aliases"
11332 MANPAGE_ALIASES=$withval
11334 MANPAGE_ALIASES=yes
11337 echo "$as_me:11337: result: $MANPAGE_ALIASES" >&5
11338 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11342 cf_use_symlinks=yes
11349 MANPAGE_SYMLINKS=no
11350 if test "$MANPAGE_ALIASES" = yes ; then
11351 echo "$as_me:11351: checking if manpage symlinks should be used" >&5
11352 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11354 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11355 if test "${with_manpage_symlinks+set}" = set; then
11356 withval="$with_manpage_symlinks"
11357 MANPAGE_SYMLINKS=$withval
11359 MANPAGE_SYMLINKS=$cf_use_symlinks
11362 if test "$$cf_use_symlinks" = no; then
11363 if test "$MANPAGE_SYMLINKS" = yes ; then
11364 { echo "$as_me:11364: WARNING: cannot make symlinks" >&5
11365 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11366 MANPAGE_SYMLINKS=no
11370 echo "$as_me:11370: result: $MANPAGE_SYMLINKS" >&5
11371 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11374 echo "$as_me:11374: checking for manpage tbl" >&5
11375 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11377 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11378 if test "${with_manpage_tbl+set}" = set; then
11379 withval="$with_manpage_tbl"
11380 MANPAGE_TBL=$withval
11385 echo "$as_me:11385: result: $MANPAGE_TBL" >&5
11386 echo "${ECHO_T}$MANPAGE_TBL" >&6
11388 if test "$prefix" = "NONE" ; then
11389 cf_prefix="$ac_default_prefix"
11391 cf_prefix="$prefix"
11394 case "$MANPAGE_FORMAT" in
11409 test ! -d man && mkdir man
11413 case "$MANPAGE_FORMAT" in
11416 cf_compress=compress
11424 cf_edit_man=./edit_man.sh
11425 cf_man_alias=`pwd`/man_alias.sed
11427 cat >$cf_edit_man <<CF_EOF
11429 # this script is generated by the configure-script CF_MAN_PAGES macro.
11431 prefix="$cf_prefix"
11432 datarootdir="$datarootdir"
11435 NCURSES_MAJOR="$NCURSES_MAJOR"
11436 NCURSES_MINOR="$NCURSES_MINOR"
11437 NCURSES_PATCH="$NCURSES_PATCH"
11439 NCURSES_OSPEED="$NCURSES_OSPEED"
11440 TERMINFO="$TERMINFO"
11443 INSTALL_DATA="$INSTALL_DATA"
11445 transform="$program_transform_name"
11447 TMP=\${TMPDIR:=/tmp}/man\$\$
11448 trap "rm -f \$TMP" 0 1 2 5 15
11460 top_srcdir=\$srcdir/..
11463 if test "\$form" = normal ; then
11464 if test "$cf_format" = yes ; then
11465 if test "$cf_inboth" = no ; then
11466 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11470 cf_subdir=\$mandir/man
11471 cf_tables=$MANPAGE_TBL
11473 cf_subdir=\$mandir/cat
11477 # process the list of source-files
11482 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11483 if test \$verb = installing ; then
11484 if test ! -d \$cf_subdir\${section} ; then
11485 mkdir -p \$cf_subdir\$section
11489 # replace variables in man page
11490 if test ! -f $cf_man_alias ; then
11491 cat >>$cf_man_alias <<-CF_EOF2
11492 s,@DATADIR@,\$datadir,g
11493 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11494 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11495 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11496 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11497 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11498 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11501 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
11503 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11504 cf_name=`echo $cf_name|sed "$program_transform_name"`
11505 cat >>$cf_edit_man <<-CF_EOF
11506 s,@$cf_NAME@,$cf_name,g
11510 cat >>$cf_edit_man <<CF_EOF
11512 echo "...made $cf_man_alias"
11516 cf_source=\`basename \$i\`
11517 inalias=\$cf_source
11518 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11519 if test ! -f \$inalias ; then
11520 echo .. skipped \$cf_source
11525 if test "$MANPAGE_ALIASES" != no ; then
11526 cat >>$cf_edit_man <<CF_EOF
11528 test $with_curses_h = yes && nCurses=ncurses.3x
11529 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11533 if test "$MANPAGE_RENAMES" = no ; then
11534 cat >>$cf_edit_man <<CF_EOF
11535 # perform program transformations for section 1 man pages
11536 if test \$section = 1 ; then
11537 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11539 cf_target=\$cf_subdir\${section}/\$cf_source
11543 cat >>$cf_edit_man <<CF_EOF
11544 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11545 if test -z "\$cf_target" ; then
11546 echo '? missing rename for '\$cf_source
11547 cf_target="\$cf_source"
11549 cf_target="\$cf_subdir\${section}/\${cf_target}"
11554 cat >>$cf_edit_man <<CF_EOF
11555 sed -f $cf_man_alias \\
11558 if test -f $MANPAGE_RENAMES ; then
11559 cat >>$cf_edit_man <<CF_EOF
11560 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11563 cat >>$cf_edit_man <<CF_EOF
11568 cat >>$cf_edit_man <<CF_EOF
11569 if test \$cf_tables = yes ; then
11570 tbl \$TMP >\$TMP.out
11575 if test $with_overwrite != yes ; then
11576 cat >>$cf_edit_man <<CF_EOF
11577 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11582 if test $with_curses_h != yes ; then
11583 cat >>$cf_edit_man <<CF_EOF
11584 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11589 cat >>$cf_edit_man <<CF_EOF
11590 if test \$form = format ; then
11591 nroff -man \$TMP >\$TMP.out
11596 if test -n "$cf_compress" ; then
11597 cat >>$cf_edit_man <<CF_EOF
11598 if test \$verb = installing ; then
11599 if ( $cf_compress -f \$TMP )
11601 mv \$TMP.$cf_so_strip \$TMP
11604 cf_target="\$cf_target.$cf_so_strip"
11608 case "$MANPAGE_FORMAT" in
11610 cat >>$cf_edit_man <<CF_EOF
11611 if test \$form = format ; then
11612 # BSDI installs only .0 suffixes in the cat directories
11613 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11619 cat >>$cf_edit_man <<CF_EOF
11620 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11621 if test \$verb = installing ; then
11622 echo \$verb \$cf_target
11623 \$INSTALL_DATA \$TMP \$cf_target
11624 test -d \$cf_subdir\${section} &&
11625 test -n "\$aliases" && (
11626 cd \$cf_subdir\${section} && (
11627 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11628 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11629 cf_target=\`basename \$cf_target\`
11630 for cf_alias in \$aliases
11632 if test \$section = 1 ; then
11633 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11636 if test "$MANPAGE_SYMLINKS" = yes ; then
11637 if test -f \$cf_alias\${suffix} ; then
11638 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11643 echo .. \$verb alias \$cf_alias\${suffix}
11647 cat >>$cf_edit_man <<CF_EOF
11648 $LN_S \$cf_target \$cf_alias\${suffix}
11652 cat >>$cf_edit_man <<CF_EOF
11653 rm -f \$cf_alias\${suffix}
11654 $LN_S \$cf_target \$cf_alias\${suffix}
11658 cat >>$cf_edit_man <<CF_EOF
11659 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11660 echo ".so \$cf_source" >\$TMP
11662 if test -n "$cf_compress" ; then
11663 cat >>$cf_edit_man <<CF_EOF
11664 if test -n "$cf_so_strip" ; then
11665 $cf_compress -f \$TMP
11666 mv \$TMP.$cf_so_strip \$TMP
11670 cat >>$cf_edit_man <<CF_EOF
11671 echo .. \$verb alias \$cf_alias\${suffix}
11672 rm -f \$cf_alias\${suffix}
11673 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11678 elif test \$verb = removing ; then
11679 test -f \$cf_target && (
11680 echo \$verb \$cf_target
11683 test -d \$cf_subdir\${section} &&
11684 test -n "\$aliases" && (
11685 cd \$cf_subdir\${section} && (
11686 for cf_alias in \$aliases
11688 if test \$section = 1 ; then
11689 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11692 echo .. \$verb alias \$cf_alias\${suffix}
11693 rm -f \$cf_alias\${suffix}
11705 if test $cf_inboth = yes ; then
11706 if test \$form != format ; then
11707 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11713 chmod 755 $cf_edit_man
11715 ###############################################################################
11717 ### Note that some functions (such as const) are normally disabled anyway.
11718 echo "$as_me:11718: checking if you want to build with function extensions" >&5
11719 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11721 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11722 if test "${enable_ext_funcs+set}" = set; then
11723 enableval="$enable_ext_funcs"
11724 with_ext_funcs=$enableval
11728 echo "$as_me:11728: result: $with_ext_funcs" >&5
11729 echo "${ECHO_T}$with_ext_funcs" >&6
11730 if test "x$with_ext_funcs" = xyes ; then
11731 NCURSES_EXT_FUNCS=1
11733 cat >>confdefs.h <<\EOF
11734 #define HAVE_ASSUME_DEFAULT_COLORS 1
11737 cat >>confdefs.h <<\EOF
11738 #define HAVE_CURSES_VERSION 1
11741 cat >>confdefs.h <<\EOF
11742 #define HAVE_HAS_KEY 1
11745 cat >>confdefs.h <<\EOF
11746 #define HAVE_RESIZETERM 1
11749 cat >>confdefs.h <<\EOF
11750 #define HAVE_RESIZE_TERM 1
11753 cat >>confdefs.h <<\EOF
11754 #define HAVE_TERM_ENTRY_H 1
11757 cat >>confdefs.h <<\EOF
11758 #define HAVE_USE_DEFAULT_COLORS 1
11761 cat >>confdefs.h <<\EOF
11762 #define HAVE_USE_SCREEN 1
11765 cat >>confdefs.h <<\EOF
11766 #define HAVE_USE_WINDOW 1
11769 cat >>confdefs.h <<\EOF
11770 #define HAVE_WRESIZE 1
11773 cat >>confdefs.h <<\EOF
11774 #define NCURSES_EXT_FUNCS 1
11777 GENERATED_EXT_FUNCS=generated
11779 NCURSES_EXT_FUNCS=0
11780 GENERATED_EXT_FUNCS=
11783 echo "$as_me:11783: checking if you want to build with SCREEN extensions" >&5
11784 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
11786 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11787 if test "${enable_sp_funcs+set}" = set; then
11788 enableval="$enable_sp_funcs"
11789 with_sp_funcs=$enableval
11791 with_sp_funcs=$cf_dft_ext_spfuncs
11793 echo "$as_me:11793: result: $with_sp_funcs" >&5
11794 echo "${ECHO_T}$with_sp_funcs" >&6
11795 if test "x$with_sp_funcs" = xyes ; then
11798 cat >>confdefs.h <<\EOF
11799 #define NCURSES_SP_FUNCS 1
11802 GENERATED_SP_FUNCS=generated
11805 GENERATED_SP_FUNCS=
11808 echo "$as_me:11808: checking if you want to build with terminal-driver" >&5
11809 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
11811 # Check whether --enable-term-driver or --disable-term-driver was given.
11812 if test "${enable_term_driver+set}" = set; then
11813 enableval="$enable_term_driver"
11814 with_term_driver=$enableval
11816 with_term_driver=no
11818 echo "$as_me:11818: result: $with_term_driver" >&5
11819 echo "${ECHO_T}$with_term_driver" >&6
11820 if test "x$with_term_driver" = xyes ; then
11822 cat >>confdefs.h <<\EOF
11823 #define USE_TERM_DRIVER 1
11826 if test "x$with_termlib" != xno ; then
11827 { { echo "$as_me:11827: error: The term-driver option conflicts with the termlib option" >&5
11828 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
11829 { (exit 1); exit 1; }; }
11831 if test "x$with_sp_funcs" != xyes ; then
11832 { { echo "$as_me:11832: error: The term-driver option relies upon sp-funcs" >&5
11833 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11834 { (exit 1); exit 1; }; }
11838 ### use option --enable-const to turn on use of const beyond that in XSI.
11839 echo "$as_me:11839: checking for extended use of const keyword" >&5
11840 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11842 # Check whether --enable-const or --disable-const was given.
11843 if test "${enable_const+set}" = set; then
11844 enableval="$enable_const"
11845 with_ext_const=$enableval
11847 with_ext_const=$cf_dft_ext_const
11849 echo "$as_me:11849: result: $with_ext_const" >&5
11850 echo "${ECHO_T}$with_ext_const" >&6
11851 NCURSES_CONST='/*nothing*/'
11852 if test "x$with_ext_const" = xyes ; then
11853 NCURSES_CONST=const
11856 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11857 echo "$as_me:11857: checking if you want to use extended colors" >&5
11858 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11860 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11861 if test "${enable_ext_colors+set}" = set; then
11862 enableval="$enable_ext_colors"
11863 with_ext_colors=$enableval
11865 with_ext_colors=$cf_dft_ext_colors
11867 echo "$as_me:11867: result: $with_ext_colors" >&5
11868 echo "${ECHO_T}$with_ext_colors" >&6
11869 NCURSES_EXT_COLORS=0
11870 if test "x$with_ext_colors" = xyes ; then
11871 if test "x$with_widec" != xyes ; then
11872 { echo "$as_me:11872: WARNING: This option applies only to wide-character library" >&5
11873 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
11875 # cannot be ABI 5 since it changes sizeof(cchar_t)
11877 if test "${with_abi_version+set}" != set; then
11878 case $cf_cv_rel_version in
11880 cf_cv_rel_version=6.0
11881 cf_cv_abi_version=6
11882 { echo "$as_me:11882: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11883 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11888 NCURSES_EXT_COLORS=1
11890 cat >>confdefs.h <<\EOF
11891 #define NCURSES_EXT_COLORS 1
11897 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11898 echo "$as_me:11898: checking if you want to use extended mouse encoding" >&5
11899 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11901 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11902 if test "${enable_ext_mouse+set}" = set; then
11903 enableval="$enable_ext_mouse"
11904 with_ext_mouse=$enableval
11906 with_ext_mouse=$cf_dft_ext_mouse
11908 echo "$as_me:11908: result: $with_ext_mouse" >&5
11909 echo "${ECHO_T}$with_ext_mouse" >&6
11910 NCURSES_MOUSE_VERSION=1
11911 if test "x$with_ext_mouse" = xyes ; then
11912 NCURSES_MOUSE_VERSION=2
11914 if test "${with_abi_version+set}" != set; then
11915 case $cf_cv_rel_version in
11917 cf_cv_rel_version=6.0
11918 cf_cv_abi_version=6
11919 { echo "$as_me:11919: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11920 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11927 ### use option --enable-ext-putwin to turn on extended screendumps
11928 echo "$as_me:11928: checking if you want to use extended putwin/screendump" >&5
11929 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
11931 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
11932 if test "${enable_ext_putwin+set}" = set; then
11933 enableval="$enable_ext_putwin"
11934 with_ext_putwin=$enableval
11936 with_ext_putwin=$cf_dft_ext_putwin
11938 echo "$as_me:11938: result: $with_ext_putwin" >&5
11939 echo "${ECHO_T}$with_ext_putwin" >&6
11940 if test "x$with_ext_putwin" = xyes ; then
11942 cat >>confdefs.h <<\EOF
11943 #define NCURSES_EXT_PUTWIN 1
11948 echo "$as_me:11948: checking if you want \$NCURSES_NO_PADDING code" >&5
11949 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11951 # Check whether --enable-no-padding or --disable-no-padding was given.
11952 if test "${enable_no_padding+set}" = set; then
11953 enableval="$enable_no_padding"
11954 with_no_padding=$enableval
11956 with_no_padding=$with_ext_funcs
11958 echo "$as_me:11958: result: $with_no_padding" >&5
11959 echo "${ECHO_T}$with_no_padding" >&6
11960 test "x$with_no_padding" = xyes &&
11961 cat >>confdefs.h <<\EOF
11962 #define NCURSES_NO_PADDING 1
11965 echo "$as_me:11965: checking for ANSI C header files" >&5
11966 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11967 if test "${ac_cv_header_stdc+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11971 #line 11971 "configure"
11972 #include "confdefs.h"
11973 #include <stdlib.h>
11974 #include <stdarg.h>
11975 #include <string.h>
11979 if { (eval echo "$as_me:11979: \"$ac_cpp conftest.$ac_ext\"") >&5
11980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11982 egrep -v '^ *\+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 echo "$as_me:11985: \$? = $ac_status" >&5
11986 (exit $ac_status); } >/dev/null; then
11987 if test -s conftest.err; then
11988 ac_cpp_err=$ac_c_preproc_warn_flag
11995 if test -z "$ac_cpp_err"; then
11996 ac_cv_header_stdc=yes
11998 echo "$as_me: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12000 ac_cv_header_stdc=no
12002 rm -f conftest.err conftest.$ac_ext
12004 if test $ac_cv_header_stdc = yes; then
12005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12006 cat >conftest.$ac_ext <<_ACEOF
12007 #line 12007 "configure"
12008 #include "confdefs.h"
12009 #include <string.h>
12012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12013 egrep "memchr" >/dev/null 2>&1; then
12016 ac_cv_header_stdc=no
12022 if test $ac_cv_header_stdc = yes; then
12023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12024 cat >conftest.$ac_ext <<_ACEOF
12025 #line 12025 "configure"
12026 #include "confdefs.h"
12027 #include <stdlib.h>
12030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12031 egrep "free" >/dev/null 2>&1; then
12034 ac_cv_header_stdc=no
12040 if test $ac_cv_header_stdc = yes; then
12041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12042 if test "$cross_compiling" = yes; then
12045 cat >conftest.$ac_ext <<_ACEOF
12046 #line 12046 "configure"
12047 #include "confdefs.h"
12049 #if ((' ' & 0x0FF) == 0x020)
12050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12053 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12054 || ('j' <= (c) && (c) <= 'r') \
12055 || ('s' <= (c) && (c) <= 'z'))
12056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12064 for (i = 0; i < 256; i++)
12065 if (XOR (islower (i), ISLOWER (i))
12066 || toupper (i) != TOUPPER (i))
12067 $ac_main_return(2);
12068 $ac_main_return (0);
12071 rm -f conftest$ac_exeext
12072 if { (eval echo "$as_me:12072: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>&5
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12077 { (eval echo "$as_me:12077: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:12080: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12084 echo "$as_me: program exited with status $ac_status" >&5
12085 echo "$as_me: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 ac_cv_header_stdc=no
12089 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12093 echo "$as_me:12093: result: $ac_cv_header_stdc" >&5
12094 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12095 if test $ac_cv_header_stdc = yes; then
12097 cat >>confdefs.h <<\EOF
12098 #define STDC_HEADERS 1
12103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12106 inttypes.h stdint.h unistd.h
12108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12109 echo "$as_me:12109: checking for $ac_header" >&5
12110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12115 #line 12115 "configure"
12116 #include "confdefs.h"
12117 $ac_includes_default
12118 #include <$ac_header>
12120 rm -f conftest.$ac_objext
12121 if { (eval echo "$as_me:12121: \"$ac_compile\"") >&5
12122 (eval $ac_compile) 2>&5
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -s conftest.$ac_objext'
12127 { (eval echo "$as_me:12127: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12130 echo "$as_me:12130: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_Header=yes"
12134 echo "$as_me: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 eval "$as_ac_Header=no"
12138 rm -f conftest.$ac_objext conftest.$ac_ext
12140 echo "$as_me:12140: result: `eval echo '${'$as_ac_Header'}'`" >&5
12141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 cat >>confdefs.h <<EOF
12144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 echo "$as_me:12150: checking for signed char" >&5
12151 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12152 if test "${ac_cv_type_signed_char+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12156 #line 12156 "configure"
12157 #include "confdefs.h"
12158 $ac_includes_default
12162 if ((signed char *) 0)
12164 if (sizeof (signed char))
12170 rm -f conftest.$ac_objext
12171 if { (eval echo "$as_me:12171: \"$ac_compile\"") >&5
12172 (eval $ac_compile) 2>&5
12174 echo "$as_me:12174: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -s conftest.$ac_objext'
12177 { (eval echo "$as_me:12177: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:12180: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_cv_type_signed_char=yes
12184 echo "$as_me: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 ac_cv_type_signed_char=no
12188 rm -f conftest.$ac_objext conftest.$ac_ext
12190 echo "$as_me:12190: result: $ac_cv_type_signed_char" >&5
12191 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12193 echo "$as_me:12193: checking size of signed char" >&5
12194 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12195 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 if test "$ac_cv_type_signed_char" = yes; then
12199 if test "$cross_compiling" = yes; then
12200 # Depending upon the size, compute the lo and hi bounds.
12201 cat >conftest.$ac_ext <<_ACEOF
12202 #line 12202 "configure"
12203 #include "confdefs.h"
12204 $ac_includes_default
12208 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12213 rm -f conftest.$ac_objext
12214 if { (eval echo "$as_me:12214: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>&5
12217 echo "$as_me:12217: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:12220: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:12223: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12227 cat >conftest.$ac_ext <<_ACEOF
12228 #line 12228 "configure"
12229 #include "confdefs.h"
12230 $ac_includes_default
12234 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:12240: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>&5
12243 echo "$as_me:12243: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:12246: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:12249: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_hi=$ac_mid; break
12253 echo "$as_me: failed program was:" >&5
12254 cat conftest.$ac_ext >&5
12255 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12257 rm -f conftest.$ac_objext conftest.$ac_ext
12260 echo "$as_me: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12264 cat >conftest.$ac_ext <<_ACEOF
12265 #line 12265 "configure"
12266 #include "confdefs.h"
12267 $ac_includes_default
12271 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:12277: \"$ac_compile\"") >&5
12278 (eval $ac_compile) 2>&5
12280 echo "$as_me:12280: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (eval echo "$as_me:12283: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:12286: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_lo=$ac_mid; break
12290 echo "$as_me: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12292 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12294 rm -f conftest.$ac_objext conftest.$ac_ext
12297 rm -f conftest.$ac_objext conftest.$ac_ext
12298 # Binary search between lo and hi bounds.
12299 while test "x$ac_lo" != "x$ac_hi"; do
12300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12304 $ac_includes_default
12308 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:12314: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>&5
12317 echo "$as_me:12317: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:12320: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:12323: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12327 echo "$as_me: failed program was:" >&5
12328 cat conftest.$ac_ext >&5
12329 ac_lo=`expr $ac_mid + 1`
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12333 ac_cv_sizeof_signed_char=$ac_lo
12335 if test "$cross_compiling" = yes; then
12336 { { echo "$as_me:12336: error: cannot run test program while cross compiling" >&5
12337 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12338 { (exit 1); exit 1; }; }
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line 12341 "configure"
12342 #include "confdefs.h"
12343 $ac_includes_default
12347 FILE *f = fopen ("conftest.val", "w");
12349 $ac_main_return (1);
12350 fprintf (f, "%d", (sizeof (signed char)));
12356 rm -f conftest$ac_exeext
12357 if { (eval echo "$as_me:12357: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>&5
12360 echo "$as_me:12360: \$? = $ac_status" >&5
12361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12362 { (eval echo "$as_me:12362: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12365 echo "$as_me:12365: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 ac_cv_sizeof_signed_char=`cat conftest.val`
12369 echo "$as_me: program exited with status $ac_status" >&5
12370 echo "$as_me: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12378 ac_cv_sizeof_signed_char=0
12381 echo "$as_me:12381: result: $ac_cv_sizeof_signed_char" >&5
12382 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12383 cat >>confdefs.h <<EOF
12384 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12387 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12388 NCURSES_SBOOL="signed char"
12390 NCURSES_SBOOL="char"
12392 echo "$as_me:12392: checking if you want to use signed Boolean array in term.h" >&5
12393 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12395 # Check whether --enable-signed-char or --disable-signed-char was given.
12396 if test "${enable_signed_char+set}" = set; then
12397 enableval="$enable_signed_char"
12398 with_signed_char=$enableval
12400 with_signed_char=no
12402 echo "$as_me:12402: result: $with_signed_char" >&5
12403 echo "${ECHO_T}$with_signed_char" >&6
12404 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12406 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12407 echo "$as_me:12407: checking if you want SIGWINCH handler" >&5
12408 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12410 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12411 if test "${enable_sigwinch+set}" = set; then
12412 enableval="$enable_sigwinch"
12413 with_sigwinch=$enableval
12415 with_sigwinch=$with_ext_funcs
12417 echo "$as_me:12417: result: $with_sigwinch" >&5
12418 echo "${ECHO_T}$with_sigwinch" >&6
12419 test "x$with_sigwinch" = xyes &&
12420 cat >>confdefs.h <<\EOF
12421 #define USE_SIGWINCH 1
12424 ### use option --enable-tcap-names to allow user to define new capabilities
12425 echo "$as_me:12425: checking if you want user-definable terminal capabilities like termcap" >&5
12426 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12428 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12429 if test "${enable_tcap_names+set}" = set; then
12430 enableval="$enable_tcap_names"
12431 with_tcap_names=$enableval
12433 with_tcap_names=$with_ext_funcs
12435 echo "$as_me:12435: result: $with_tcap_names" >&5
12436 echo "${ECHO_T}$with_tcap_names" >&6
12438 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12440 ###############################################################################
12441 # These options are relatively safe to experiment with.
12443 echo "$as_me:12443: checking if you want all development code" >&5
12444 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12446 # Check whether --with-develop or --without-develop was given.
12447 if test "${with_develop+set}" = set; then
12448 withval="$with_develop"
12449 with_develop=$withval
12453 echo "$as_me:12453: result: $with_develop" >&5
12454 echo "${ECHO_T}$with_develop" >&6
12456 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12457 echo "$as_me:12457: checking if you want hard-tabs code" >&5
12458 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12460 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12461 if test "${enable_hard_tabs+set}" = set; then
12462 enableval="$enable_hard_tabs"
12465 enable_hard_tabs=$with_develop
12467 echo "$as_me:12467: result: $enable_hard_tabs" >&5
12468 echo "${ECHO_T}$enable_hard_tabs" >&6
12469 test "x$enable_hard_tabs" = xyes &&
12470 cat >>confdefs.h <<\EOF
12471 #define USE_HARD_TABS 1
12474 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12475 echo "$as_me:12475: checking if you want limited support for xmc" >&5
12476 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12478 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12479 if test "${enable_xmc_glitch+set}" = set; then
12480 enableval="$enable_xmc_glitch"
12483 enable_xmc_glitch=$with_develop
12485 echo "$as_me:12485: result: $enable_xmc_glitch" >&5
12486 echo "${ECHO_T}$enable_xmc_glitch" >&6
12487 test "x$enable_xmc_glitch" = xyes &&
12488 cat >>confdefs.h <<\EOF
12489 #define USE_XMC_SUPPORT 1
12492 ###############################################################################
12493 # These are just experimental, probably should not be in a package:
12495 echo "$as_me:12495: checking if you do not want to assume colors are white-on-black" >&5
12496 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12498 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12499 if test "${enable_assumed_color+set}" = set; then
12500 enableval="$enable_assumed_color"
12501 with_assumed_color=$enableval
12503 with_assumed_color=yes
12505 echo "$as_me:12505: result: $with_assumed_color" >&5
12506 echo "${ECHO_T}$with_assumed_color" >&6
12507 test "x$with_assumed_color" = xyes &&
12508 cat >>confdefs.h <<\EOF
12509 #define USE_ASSUMED_COLOR 1
12512 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12513 echo "$as_me:12513: checking if you want hashmap scrolling-optimization code" >&5
12514 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12516 # Check whether --enable-hashmap or --disable-hashmap was given.
12517 if test "${enable_hashmap+set}" = set; then
12518 enableval="$enable_hashmap"
12519 with_hashmap=$enableval
12523 echo "$as_me:12523: result: $with_hashmap" >&5
12524 echo "${ECHO_T}$with_hashmap" >&6
12525 test "x$with_hashmap" = xyes &&
12526 cat >>confdefs.h <<\EOF
12527 #define USE_HASHMAP 1
12530 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12531 echo "$as_me:12531: checking if you want colorfgbg code" >&5
12532 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12534 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12535 if test "${enable_colorfgbg+set}" = set; then
12536 enableval="$enable_colorfgbg"
12537 with_colorfgbg=$enableval
12541 echo "$as_me:12541: result: $with_colorfgbg" >&5
12542 echo "${ECHO_T}$with_colorfgbg" >&6
12543 test "x$with_colorfgbg" = xyes &&
12544 cat >>confdefs.h <<\EOF
12545 #define USE_COLORFGBG 1
12548 ### use option --enable-interop to turn on use of bindings used for interop
12549 echo "$as_me:12549: checking if you want interop bindings" >&5
12550 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12552 # Check whether --enable-interop or --disable-interop was given.
12553 if test "${enable_interop+set}" = set; then
12554 enableval="$enable_interop"
12555 with_exp_interop=$enableval
12557 with_exp_interop=$cf_dft_interop
12559 echo "$as_me:12559: result: $with_exp_interop" >&5
12560 echo "${ECHO_T}$with_exp_interop" >&6
12562 NCURSES_INTEROP_FUNCS=0
12563 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12565 # This is still experimental (20080329), but should ultimately be moved to
12566 # the script-block --with-normal, etc.
12568 echo "$as_me:12568: checking if you want to link with the pthread library" >&5
12569 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12571 # Check whether --with-pthread or --without-pthread was given.
12572 if test "${with_pthread+set}" = set; then
12573 withval="$with_pthread"
12574 with_pthread=$withval
12578 echo "$as_me:12578: result: $with_pthread" >&5
12579 echo "${ECHO_T}$with_pthread" >&6
12581 if test "$with_pthread" != no ; then
12582 echo "$as_me:12582: checking for pthread.h" >&5
12583 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12584 if test "${ac_cv_header_pthread_h+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #line 12588 "configure"
12589 #include "confdefs.h"
12590 #include <pthread.h>
12592 if { (eval echo "$as_me:12592: \"$ac_cpp conftest.$ac_ext\"") >&5
12593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12595 egrep -v '^ *\+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 echo "$as_me:12598: \$? = $ac_status" >&5
12599 (exit $ac_status); } >/dev/null; then
12600 if test -s conftest.err; then
12601 ac_cpp_err=$ac_c_preproc_warn_flag
12608 if test -z "$ac_cpp_err"; then
12609 ac_cv_header_pthread_h=yes
12611 echo "$as_me: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12613 ac_cv_header_pthread_h=no
12615 rm -f conftest.err conftest.$ac_ext
12617 echo "$as_me:12617: result: $ac_cv_header_pthread_h" >&5
12618 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12619 if test $ac_cv_header_pthread_h = yes; then
12621 cat >>confdefs.h <<\EOF
12622 #define HAVE_PTHREADS_H 1
12625 for cf_lib_pthread in pthread c_r
12627 echo "$as_me:12627: checking if we can link with the $cf_lib_pthread library" >&5
12628 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12629 cf_save_LIBS="$LIBS"
12631 cf_add_libs="-l$cf_lib_pthread"
12632 # Filter out duplicates - this happens with badly-designed ".pc" files...
12633 for cf_add_1lib in $LIBS
12635 for cf_add_2lib in $cf_add_libs
12637 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12643 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12645 LIBS="$cf_add_libs"
12647 cat >conftest.$ac_ext <<_ACEOF
12648 #line 12648 "configure"
12649 #include "confdefs.h"
12651 #include <pthread.h>
12657 int rc = pthread_create(0,0,0,0);
12658 int r2 = pthread_mutexattr_settype(0, 0);
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:12665: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>&5
12668 echo "$as_me:12668: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:12671: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12678 echo "$as_me: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12683 LIBS="$cf_save_LIBS"
12684 echo "$as_me:12684: result: $with_pthread" >&5
12685 echo "${ECHO_T}$with_pthread" >&6
12686 test "$with_pthread" = yes && break
12689 if test "$with_pthread" = yes ; then
12691 cf_add_libs="-l$cf_lib_pthread"
12692 # Filter out duplicates - this happens with badly-designed ".pc" files...
12693 for cf_add_1lib in $LIBS
12695 for cf_add_2lib in $cf_add_libs
12697 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12703 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12705 LIBS="$cf_add_libs"
12707 cat >>confdefs.h <<\EOF
12708 #define HAVE_LIBPTHREADS 1
12712 { { echo "$as_me:12712: error: Cannot link with pthread library" >&5
12713 echo "$as_me: error: Cannot link with pthread library" >&2;}
12714 { (exit 1); exit 1; }; }
12721 if test "x$with_pthread" != xno; then
12722 echo "$as_me:12722: checking for pthread_kill" >&5
12723 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12724 if test "${ac_cv_func_pthread_kill+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12728 #line 12728 "configure"
12729 #include "confdefs.h"
12730 /* System header to define __stub macros and hopefully few prototypes,
12731 which can conflict with char pthread_kill (); below. */
12732 #include <assert.h>
12733 /* Override any gcc2 internal prototype to avoid an error. */
12737 /* We use char because int might match the return type of a gcc2
12738 builtin and then its argument prototype would still apply. */
12739 char pthread_kill ();
12745 /* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12751 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:12759: \"$ac_link\"") >&5
12760 (eval $ac_link) 2>&5
12762 echo "$as_me:12762: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -s conftest$ac_exeext'
12765 { (eval echo "$as_me:12765: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:12768: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_func_pthread_kill=yes
12772 echo "$as_me: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 ac_cv_func_pthread_kill=no
12776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12778 echo "$as_me:12778: result: $ac_cv_func_pthread_kill" >&5
12779 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12780 if test $ac_cv_func_pthread_kill = yes; then
12782 echo "$as_me:12782: checking if you want to allow EINTR in wgetch with pthreads" >&5
12783 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12785 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12786 if test "${enable_pthreads_eintr+set}" = set; then
12787 enableval="$enable_pthreads_eintr"
12788 use_pthreads_eintr=$enableval
12790 use_pthreads_eintr=no
12792 echo "$as_me:12792: result: $use_pthreads_eintr" >&5
12793 echo "${ECHO_T}$use_pthreads_eintr" >&6
12794 if test "x$use_pthreads_eintr" = xyes ; then
12796 cat >>confdefs.h <<\EOF
12797 #define USE_PTHREADS_EINTR 1
12803 echo "$as_me:12803: checking if you want to use weak-symbols for pthreads" >&5
12804 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12806 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12807 if test "${enable_weak_symbols+set}" = set; then
12808 enableval="$enable_weak_symbols"
12809 use_weak_symbols=$enableval
12811 use_weak_symbols=no
12813 echo "$as_me:12813: result: $use_weak_symbols" >&5
12814 echo "${ECHO_T}$use_weak_symbols" >&6
12815 if test "x$use_weak_symbols" = xyes ; then
12817 echo "$as_me:12817: checking if $CC supports weak symbols" >&5
12818 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12819 if test "${cf_cv_weak_symbols+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 #line 12824 "configure"
12825 #include "confdefs.h"
12832 #if defined(__GNUC__)
12833 # if defined __USE_ISOC99
12834 # define _cat_pragma(exp) _Pragma(#exp)
12835 # define _weak_pragma(exp) _cat_pragma(weak name)
12837 # define _weak_pragma(exp)
12839 # define _declare(name) __extension__ extern __typeof__(name) name
12840 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12843 weak_symbol(fopen);
12849 rm -f conftest.$ac_objext
12850 if { (eval echo "$as_me:12850: \"$ac_compile\"") >&5
12851 (eval $ac_compile) 2>&5
12853 echo "$as_me:12853: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -s conftest.$ac_objext'
12856 { (eval echo "$as_me:12856: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:12859: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 cf_cv_weak_symbols=yes
12863 echo "$as_me: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12865 cf_cv_weak_symbols=no
12867 rm -f conftest.$ac_objext conftest.$ac_ext
12870 echo "$as_me:12870: result: $cf_cv_weak_symbols" >&5
12871 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12874 cf_cv_weak_symbols=no
12877 if test "x$cf_cv_weak_symbols" = xyes ; then
12879 cat >>confdefs.h <<\EOF
12880 #define USE_WEAK_SYMBOLS 1
12887 if test "x$with_pthread" = "xyes" ; then
12889 cat >>confdefs.h <<\EOF
12890 #define USE_PTHREADS 1
12893 enable_reentrant=yes
12894 if test "x$cf_cv_weak_symbols" = xyes ; then
12899 # Reentrant code has to be opaque; there's little advantage to making ncurses
12900 # opaque outside of that, so there is no --enable-opaque option. We can use
12901 # this option without --with-pthreads, but this will be always set for
12903 echo "$as_me:12903: checking if you want reentrant code" >&5
12904 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
12906 # Check whether --enable-reentrant or --disable-reentrant was given.
12907 if test "${enable_reentrant+set}" = set; then
12908 enableval="$enable_reentrant"
12909 with_reentrant=$enableval
12913 echo "$as_me:12913: result: $with_reentrant" >&5
12914 echo "${ECHO_T}$with_reentrant" >&6
12915 if test "x$with_reentrant" = xyes ; then
12916 cf_cv_enable_reentrant=1
12917 cf_cv_enable_opaque="NCURSES_INTERNALS"
12920 if test "x$cf_cv_weak_symbols" = xyes ; then
12922 # remove pthread library from $LIBS
12923 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12925 cf_add_libs="-lpthread"
12926 # Filter out duplicates - this happens with badly-designed ".pc" files...
12927 for cf_add_1lib in $TEST_LIBS
12929 for cf_add_2lib in $cf_add_libs
12931 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12937 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12939 TEST_LIBS="$cf_add_libs"
12941 cf_add_libs="-lpthread"
12942 # Filter out duplicates - this happens with badly-designed ".pc" files...
12943 for cf_add_1lib in $TEST_LIBS2
12945 for cf_add_2lib in $cf_add_libs
12947 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12953 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12955 TEST_LIBS2="$cf_add_libs"
12958 # when not using weak symbols but with_reentrant,
12959 # add 't' to the library suffix on all platforms
12960 # except cygwin, where we only do that if ALSO
12961 # compiling with full thread support.
12963 (*cygwin* | *msys*)
12964 if test "$with_pthread" = "yes" ; then
12965 if test "x$disable_lib_suffixes" = "xno" ; then
12966 LIB_SUFFIX="t${LIB_SUFFIX}"
12970 if test "x$disable_lib_suffixes" = "xno" ; then
12971 LIB_SUFFIX="t${LIB_SUFFIX}"
12977 cat >>confdefs.h <<\EOF
12978 #define USE_REENTRANT 1
12981 if test "${with_abi_version+set}" != set; then
12982 case $cf_cv_rel_version in
12984 cf_cv_rel_version=6.0
12985 cf_cv_abi_version=6
12986 { echo "$as_me:12986: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12987 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12993 cf_cv_enable_reentrant=0
12994 cf_cv_enable_opaque="NCURSES_OPAQUE"
12996 NCURSES_SIZE_T=short
12999 ### Allow using a different wrap-prefix
13000 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13001 echo "$as_me:13001: checking for prefix used to wrap public variables" >&5
13002 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13004 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13005 if test "${with_wrap_prefix+set}" = set; then
13006 withval="$with_wrap_prefix"
13007 NCURSES_WRAP_PREFIX=$withval
13009 NCURSES_WRAP_PREFIX=_nc_
13011 echo "$as_me:13011: result: $NCURSES_WRAP_PREFIX" >&5
13012 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13014 NCURSES_WRAP_PREFIX=_nc_
13017 cat >>confdefs.h <<EOF
13018 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13021 echo "$as_me:13021: checking if you want experimental safe-sprintf code" >&5
13022 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
13024 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
13025 if test "${enable_safe_sprintf+set}" = set; then
13026 enableval="$enable_safe_sprintf"
13027 with_safe_sprintf=$enableval
13029 with_safe_sprintf=no
13031 echo "$as_me:13031: result: $with_safe_sprintf" >&5
13032 echo "${ECHO_T}$with_safe_sprintf" >&6
13033 test "x$with_safe_sprintf" = xyes &&
13034 cat >>confdefs.h <<\EOF
13035 #define USE_SAFE_SPRINTF 1
13038 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
13039 # when hashmap is used scroll hints are useless
13040 if test "$with_hashmap" = no ; then
13041 echo "$as_me:13041: checking if you want to experiment without scrolling-hints code" >&5
13042 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13044 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13045 if test "${enable_scroll_hints+set}" = set; then
13046 enableval="$enable_scroll_hints"
13047 with_scroll_hints=$enableval
13049 with_scroll_hints=yes
13051 echo "$as_me:13051: result: $with_scroll_hints" >&5
13052 echo "${ECHO_T}$with_scroll_hints" >&6
13053 test "x$with_scroll_hints" = xyes &&
13054 cat >>confdefs.h <<\EOF
13055 #define USE_SCROLL_HINTS 1
13060 echo "$as_me:13060: checking if you want wgetch-events code" >&5
13061 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13063 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13064 if test "${enable_wgetch_events+set}" = set; then
13065 enableval="$enable_wgetch_events"
13066 with_wgetch_events=$enableval
13068 with_wgetch_events=no
13070 echo "$as_me:13070: result: $with_wgetch_events" >&5
13071 echo "${ECHO_T}$with_wgetch_events" >&6
13072 test "x$with_wgetch_events" = xyes &&
13073 cat >>confdefs.h <<\EOF
13074 #define NCURSES_WGETCH_EVENTS 1
13077 ###############################################################################
13079 ### use option --disable-echo to suppress full display compiling commands
13081 echo "$as_me:13081: checking if you want to see long compiling messages" >&5
13082 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13084 # Check whether --enable-echo or --disable-echo was given.
13085 if test "${enable_echo+set}" = set; then
13086 enableval="$enable_echo"
13087 test "$enableval" != no && enableval=yes
13088 if test "$enableval" != "yes" ; then
13091 ECHO_LD='@echo linking $@;'
13092 RULE_CC='@echo compiling $<'
13093 SHOW_CC='@echo compiling $@'
13115 echo "$as_me:13115: result: $enableval" >&5
13116 echo "${ECHO_T}$enableval" >&6
13118 if test "x$enable_echo" = xyes; then
13121 ECHO_LINK='@ echo linking $@ ... ;'
13122 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13123 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13126 ### use option --enable-warnings to turn on all gcc warnings
13127 echo "$as_me:13127: checking if you want to see compiler warnings" >&5
13128 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13130 # Check whether --enable-warnings or --disable-warnings was given.
13131 if test "${enable_warnings+set}" = set; then
13132 enableval="$enable_warnings"
13133 with_warnings=$enableval
13135 echo "$as_me:13135: result: $with_warnings" >&5
13136 echo "${ECHO_T}$with_warnings" >&6
13138 if test "x$with_warnings" = "xyes"; then
13140 ADAFLAGS="$ADAFLAGS -gnatg"
13144 if test "$GCC" = yes ; then
13147 echo "$as_me:13147: checking if this is really Intel C compiler" >&5
13148 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13149 cf_save_CFLAGS="$CFLAGS"
13150 CFLAGS="$CFLAGS -no-gcc"
13151 cat >conftest.$ac_ext <<_ACEOF
13152 #line 13152 "configure"
13153 #include "confdefs.h"
13159 #ifdef __INTEL_COMPILER
13168 rm -f conftest.$ac_objext
13169 if { (eval echo "$as_me:13169: \"$ac_compile\"") >&5
13170 (eval $ac_compile) 2>&5
13172 echo "$as_me:13172: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:13175: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:13178: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13181 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13184 echo "$as_me: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 rm -f conftest.$ac_objext conftest.$ac_ext
13188 CFLAGS="$cf_save_CFLAGS"
13189 echo "$as_me:13189: result: $INTEL_COMPILER" >&5
13190 echo "${ECHO_T}$INTEL_COMPILER" >&6
13197 if test "$GCC" = yes ; then
13198 echo "$as_me:13198: checking if this is really Clang C compiler" >&5
13199 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13200 cf_save_CFLAGS="$CFLAGS"
13201 CFLAGS="$CFLAGS -Qunused-arguments"
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line 13203 "configure"
13204 #include "confdefs.h"
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:13220: \"$ac_compile\"") >&5
13221 (eval $ac_compile) 2>&5
13223 echo "$as_me:13223: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -s conftest.$ac_objext'
13226 { (eval echo "$as_me:13226: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:13229: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13232 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13235 echo "$as_me: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13238 rm -f conftest.$ac_objext conftest.$ac_ext
13239 CFLAGS="$cf_save_CFLAGS"
13240 echo "$as_me:13240: result: $CLANG_COMPILER" >&5
13241 echo "${ECHO_T}$CLANG_COMPILER" >&6
13244 cat > conftest.$ac_ext <<EOF
13245 #line 13245 "${as_me:-configure}"
13246 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13249 if test "$INTEL_COMPILER" = yes
13251 # The "-wdXXX" options suppress warnings:
13252 # remark #1419: external declaration in primary source file
13253 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13254 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13255 # remark #193: zero used for undefined preprocessing identifier
13256 # remark #593: variable "curs_sb_left_arrow" was set but never used
13257 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13258 # remark #869: parameter "tw" was never referenced
13259 # remark #981: operands are evaluated in unspecified order
13260 # warning #279: controlling expression is constant
13262 { echo "$as_me:13262: checking for $CC warning options..." >&5
13263 echo "$as_me: checking for $CC warning options..." >&6;}
13264 cf_save_CFLAGS="$CFLAGS"
13265 EXTRA_CFLAGS="-Wall"
13277 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13278 if { (eval echo "$as_me:13278: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>&5
13281 echo "$as_me:13281: \$? = $ac_status" >&5
13282 (exit $ac_status); }; then
13283 test -n "$verbose" && echo "$as_me:13283: result: ... -$cf_opt" >&5
13284 echo "${ECHO_T}... -$cf_opt" >&6
13285 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13288 CFLAGS="$cf_save_CFLAGS"
13290 elif test "$GCC" = yes
13292 { echo "$as_me:13292: checking for $CC warning options..." >&5
13293 echo "$as_me: checking for $CC warning options..." >&6;}
13294 cf_save_CFLAGS="$CFLAGS"
13297 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13298 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13299 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13300 for cf_opt in W Wall \
13301 Wbad-function-cast \
13304 Wdeclaration-after-statement \
13307 Wmissing-declarations \
13308 Wmissing-prototypes \
13312 Wstrict-prototypes \
13313 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13315 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13316 if { (eval echo "$as_me:13316: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>&5
13319 echo "$as_me:13319: \$? = $ac_status" >&5
13320 (exit $ac_status); }; then
13321 test -n "$verbose" && echo "$as_me:13321: result: ... -$cf_opt" >&5
13322 echo "${ECHO_T}... -$cf_opt" >&6
13325 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13328 case $GCC_VERSION in
13330 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13332 echo "${as_me:-configure}:13332: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13338 case $GCC_VERSION in
13340 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13342 echo "${as_me:-configure}:13342: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13348 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13351 CFLAGS="$cf_save_CFLAGS"
13355 if test "x$cf_with_cxx" = xyes ; then
13359 if test "$GCC" = yes ; then
13362 echo "$as_me:13362: checking if this is really Intel C++ compiler" >&5
13363 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13364 cf_save_CFLAGS="$CXXFLAGS"
13365 CXXFLAGS="$CXXFLAGS -no-gcc"
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line 13367 "configure"
13368 #include "confdefs.h"
13374 #ifdef __INTEL_COMPILER
13383 rm -f conftest.$ac_objext
13384 if { (eval echo "$as_me:13384: \"$ac_compile\"") >&5
13385 (eval $ac_compile) 2>&5
13387 echo "$as_me:13387: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -s conftest.$ac_objext'
13390 { (eval echo "$as_me:13390: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:13393: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 INTEL_CPLUSPLUS=yes
13396 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13399 echo "$as_me: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13402 rm -f conftest.$ac_objext conftest.$ac_ext
13403 CXXFLAGS="$cf_save_CFLAGS"
13404 echo "$as_me:13404: result: $INTEL_CPLUSPLUS" >&5
13405 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13412 if test "$GCC" = yes ; then
13413 echo "$as_me:13413: checking if this is really Clang C++ compiler" >&5
13414 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13415 cf_save_CFLAGS="$CXXFLAGS"
13416 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line 13418 "configure"
13419 #include "confdefs.h"
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:13435: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>&5
13438 echo "$as_me:13438: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -s conftest.$ac_objext'
13441 { (eval echo "$as_me:13441: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:13444: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 CLANG_CPLUSPLUS=yes
13447 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13450 echo "$as_me: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13453 rm -f conftest.$ac_objext conftest.$ac_ext
13454 CXXFLAGS="$cf_save_CFLAGS"
13455 echo "$as_me:13455: result: $CLANG_CPLUSPLUS" >&5
13456 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13460 ac_cpp='$CXXCPP $CPPFLAGS'
13461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13464 ac_main_return=return
13466 cat > conftest.$ac_ext <<EOF
13467 #line 13467 "configure"
13468 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13471 if test "$INTEL_CPLUSPLUS" = yes
13473 # The "-wdXXX" options suppress warnings:
13474 # remark #1419: external declaration in primary source file
13475 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13476 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13477 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13478 # remark #193: zero used for undefined preprocessing identifier
13479 # remark #593: variable "curs_sb_left_arrow" was set but never used
13480 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13481 # remark #869: parameter "tw" was never referenced
13482 # remark #981: operands are evaluated in unspecified order
13483 # warning #269: invalid format string conversion
13485 { echo "$as_me:13485: checking for $CC warning options..." >&5
13486 echo "$as_me: checking for $CC warning options..." >&6;}
13487 cf_save_CXXFLAGS="$CXXFLAGS"
13488 EXTRA_CXXFLAGS="-Wall"
13501 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13502 if { (eval echo "$as_me:13502: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>&5
13505 echo "$as_me:13505: \$? = $ac_status" >&5
13506 (exit $ac_status); }; then
13507 test -n "$verbose" && echo "$as_me:13507: result: ... -$cf_opt" >&5
13508 echo "${ECHO_T}... -$cf_opt" >&6
13509 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13512 CXXFLAGS="$cf_save_CXXFLAGS"
13514 elif test "$GXX" = yes
13516 { echo "$as_me:13516: checking for $CXX warning options..." >&5
13517 echo "$as_me: checking for $CXX warning options..." >&6;}
13518 cf_save_CXXFLAGS="$CXXFLAGS"
13519 EXTRA_CXXFLAGS="-W -Wall"
13520 cf_gxx_extra_warnings=""
13521 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13522 case "$GCC_VERSION" in
13526 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13533 Wignored-qualifiers \
13535 Woverloaded-virtual \
13543 Wundef $cf_gxx_extra_warnings Wno-unused
13545 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13546 if { (eval echo "$as_me:13546: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13549 echo "$as_me:13549: \$? = $ac_status" >&5
13550 (exit $ac_status); }; then
13551 test -n "$verbose" && echo "$as_me:13551: result: ... -$cf_opt" >&5
13552 echo "${ECHO_T}... -$cf_opt" >&6
13553 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13555 test -n "$verbose" && echo "$as_me:13555: result: ... no -$cf_opt" >&5
13556 echo "${ECHO_T}... no -$cf_opt" >&6
13559 CXXFLAGS="$cf_save_CXXFLAGS"
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568 ac_main_return=return
13573 if test "$GCC" = yes
13575 cat > conftest.i <<EOF
13577 #define GCC_PRINTF 0
13580 #define GCC_SCANF 0
13582 #ifndef GCC_NORETURN
13583 #define GCC_NORETURN /* nothing */
13586 #define GCC_UNUSED /* nothing */
13589 if test "$GCC" = yes
13591 { echo "$as_me:13591: checking for $CC __attribute__ directives..." >&5
13592 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13593 cat > conftest.$ac_ext <<EOF
13594 #line 13594 "${as_me:-configure}"
13595 #include "confdefs.h"
13596 #include "conftest.h"
13597 #include "conftest.i"
13599 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13601 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13604 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13606 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13608 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13609 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13610 extern void foo(void) GCC_NORETURN;
13611 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13613 cf_printf_attribute=no
13614 cf_scanf_attribute=no
13615 for cf_attribute in scanf printf unused noreturn
13618 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13620 cf_directive="__attribute__(($cf_attribute))"
13621 echo "checking for $CC $cf_directive" 1>&5
13623 case $cf_attribute in
13625 cf_printf_attribute=yes
13626 cat >conftest.h <<EOF
13627 #define GCC_$cf_ATTRIBUTE 1
13631 cf_scanf_attribute=yes
13632 cat >conftest.h <<EOF
13633 #define GCC_$cf_ATTRIBUTE 1
13637 cat >conftest.h <<EOF
13638 #define GCC_$cf_ATTRIBUTE $cf_directive
13643 if { (eval echo "$as_me:13643: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>&5
13646 echo "$as_me:13646: \$? = $ac_status" >&5
13647 (exit $ac_status); }; then
13648 test -n "$verbose" && echo "$as_me:13648: result: ... $cf_attribute" >&5
13649 echo "${ECHO_T}... $cf_attribute" >&6
13650 cat conftest.h >>confdefs.h
13651 case $cf_attribute in
13654 cat >>confdefs.h <<EOF
13655 #define GCC_NORETURN $cf_directive
13660 cf_value='/* nothing */'
13661 if test "$cf_printf_attribute" != no ; then
13662 cf_value='__attribute__((format(printf,fmt,var)))'
13664 cat >>confdefs.h <<\EOF
13665 #define GCC_PRINTF 1
13670 cat >>confdefs.h <<EOF
13671 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13676 cf_value='/* nothing */'
13677 if test "$cf_scanf_attribute" != no ; then
13678 cf_value='__attribute__((format(scanf,fmt,var)))'
13680 cat >>confdefs.h <<\EOF
13681 #define GCC_SCANF 1
13686 cat >>confdefs.h <<EOF
13687 #define GCC_SCANFLIKE(fmt,var) $cf_value
13693 cat >>confdefs.h <<EOF
13694 #define GCC_UNUSED $cf_directive
13702 fgrep define conftest.i >>confdefs.h
13707 echo "$as_me:13707: checking if you want to work around bogus compiler/loader warnings" >&5
13708 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13710 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13711 if test "${enable_string_hacks+set}" = set; then
13712 enableval="$enable_string_hacks"
13713 with_string_hacks=$enableval
13715 with_string_hacks=no
13717 echo "$as_me:13717: result: $with_string_hacks" >&5
13718 echo "${ECHO_T}$with_string_hacks" >&6
13720 if test "x$with_string_hacks" = "xyes"; then
13722 cat >>confdefs.h <<\EOF
13723 #define USE_STRING_HACKS 1
13726 { echo "$as_me:13726: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13727 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13729 for ac_func in strlcat strlcpy snprintf
13731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13732 echo "$as_me:13732: checking for $ac_func" >&5
13733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_var+set}\" = set"; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 cat >conftest.$ac_ext <<_ACEOF
13738 #line 13738 "configure"
13739 #include "confdefs.h"
13740 /* System header to define __stub macros and hopefully few prototypes,
13741 which can conflict with char $ac_func (); below. */
13742 #include <assert.h>
13743 /* Override any gcc2 internal prototype to avoid an error. */
13747 /* We use char because int might match the return type of a gcc2
13748 builtin and then its argument prototype would still apply. */
13755 /* The GNU C library defines this for functions which it implements
13756 to always fail with ENOSYS. Some functions are actually named
13757 something starting with __ and the normal name is an alias. */
13758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13761 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (eval echo "$as_me:13769: \"$ac_link\"") >&5
13770 (eval $ac_link) 2>&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -s conftest$ac_exeext'
13775 { (eval echo "$as_me:13775: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 eval "$as_ac_var=yes"
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 eval "$as_ac_var=no"
13786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13788 echo "$as_me:13788: result: `eval echo '${'$as_ac_var'}'`" >&5
13789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13790 if test `eval echo '${'$as_ac_var'}'` = yes; then
13791 cat >>confdefs.h <<EOF
13792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13800 ### use option --enable-assertions to turn on generation of assertion code
13801 echo "$as_me:13801: checking if you want to enable runtime assertions" >&5
13802 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13804 # Check whether --enable-assertions or --disable-assertions was given.
13805 if test "${enable_assertions+set}" = set; then
13806 enableval="$enable_assertions"
13807 with_assertions=$enableval
13811 echo "$as_me:13811: result: $with_assertions" >&5
13812 echo "${ECHO_T}$with_assertions" >&6
13815 if test "$with_assertions" = no
13817 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13820 ADAFLAGS="$ADAFLAGS -gnata"
13825 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13827 echo "$as_me:13827: checking if you want to use dmalloc for testing" >&5
13828 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13830 # Check whether --with-dmalloc or --without-dmalloc was given.
13831 if test "${with_dmalloc+set}" = set; then
13832 withval="$with_dmalloc"
13834 cat >>confdefs.h <<EOF
13835 #define USE_DMALLOC 1
13838 : ${with_cflags:=-g}
13839 : ${with_no_leaks:=yes}
13844 echo "$as_me:13844: result: ${with_dmalloc:-no}" >&5
13845 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13847 case .$with_cflags in
13857 cf_new_extra_cppflags=
13859 for cf_add_cflags in -g
13861 case $cf_fix_cppflags in
13863 case $cf_add_cflags in
13864 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13865 case $cf_add_cflags in
13867 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13869 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13870 && test -z "${cf_tst_cflags}" \
13871 && cf_fix_cppflags=yes
13873 if test $cf_fix_cppflags = yes ; then
13874 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13876 elif test "${cf_tst_cflags}" = "\"'" ; then
13877 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13882 case "$CPPFLAGS" in
13886 case $cf_add_cflags in
13888 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13890 CPPFLAGS=`echo "$CPPFLAGS" | \
13891 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13892 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13896 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13901 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13906 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13908 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13910 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13911 && test -z "${cf_tst_cflags}" \
13912 && cf_fix_cppflags=no
13917 if test -n "$cf_new_cflags" ; then
13919 CFLAGS="$CFLAGS $cf_new_cflags"
13922 if test -n "$cf_new_cppflags" ; then
13924 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13927 if test -n "$cf_new_extra_cppflags" ; then
13929 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13937 if test "$with_dmalloc" = yes ; then
13938 echo "$as_me:13938: checking for dmalloc.h" >&5
13939 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13940 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13944 #line 13944 "configure"
13945 #include "confdefs.h"
13946 #include <dmalloc.h>
13948 if { (eval echo "$as_me:13948: \"$ac_cpp conftest.$ac_ext\"") >&5
13949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13951 egrep -v '^ *\+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 (exit $ac_status); } >/dev/null; then
13956 if test -s conftest.err; then
13957 ac_cpp_err=$ac_c_preproc_warn_flag
13964 if test -z "$ac_cpp_err"; then
13965 ac_cv_header_dmalloc_h=yes
13967 echo "$as_me: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13969 ac_cv_header_dmalloc_h=no
13971 rm -f conftest.err conftest.$ac_ext
13973 echo "$as_me:13973: result: $ac_cv_header_dmalloc_h" >&5
13974 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13975 if test $ac_cv_header_dmalloc_h = yes; then
13977 echo "$as_me:13977: checking for dmalloc_debug in -ldmalloc" >&5
13978 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13979 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 ac_check_lib_save_LIBS=$LIBS
13983 LIBS="-ldmalloc $LIBS"
13984 cat >conftest.$ac_ext <<_ACEOF
13985 #line 13985 "configure"
13986 #include "confdefs.h"
13988 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994 char dmalloc_debug ();
14003 rm -f conftest.$ac_objext conftest$ac_exeext
14004 if { (eval echo "$as_me:14004: \"$ac_link\"") >&5
14005 (eval $ac_link) 2>&5
14007 echo "$as_me:14007: \$? = $ac_status" >&5
14008 (exit $ac_status); } &&
14009 { ac_try='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:14010: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:14013: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_cv_lib_dmalloc_dmalloc_debug=yes
14017 echo "$as_me: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14019 ac_cv_lib_dmalloc_dmalloc_debug=no
14021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14022 LIBS=$ac_check_lib_save_LIBS
14024 echo "$as_me:14024: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
14025 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
14026 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
14027 cat >>confdefs.h <<EOF
14028 #define HAVE_LIBDMALLOC 1
14031 LIBS="-ldmalloc $LIBS"
14039 echo "$as_me:14039: checking if you want to use dbmalloc for testing" >&5
14040 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
14042 # Check whether --with-dbmalloc or --without-dbmalloc was given.
14043 if test "${with_dbmalloc+set}" = set; then
14044 withval="$with_dbmalloc"
14046 cat >>confdefs.h <<EOF
14047 #define USE_DBMALLOC 1
14050 : ${with_cflags:=-g}
14051 : ${with_no_leaks:=yes}
14056 echo "$as_me:14056: result: ${with_dbmalloc:-no}" >&5
14057 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14059 case .$with_cflags in
14069 cf_new_extra_cppflags=
14071 for cf_add_cflags in -g
14073 case $cf_fix_cppflags in
14075 case $cf_add_cflags in
14076 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14077 case $cf_add_cflags in
14079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14081 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14082 && test -z "${cf_tst_cflags}" \
14083 && cf_fix_cppflags=yes
14085 if test $cf_fix_cppflags = yes ; then
14086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14088 elif test "${cf_tst_cflags}" = "\"'" ; then
14089 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14094 case "$CPPFLAGS" in
14098 case $cf_add_cflags in
14100 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14102 CPPFLAGS=`echo "$CPPFLAGS" | \
14103 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14104 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14108 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14113 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14118 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14120 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14122 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14123 && test -z "${cf_tst_cflags}" \
14124 && cf_fix_cppflags=no
14129 if test -n "$cf_new_cflags" ; then
14131 CFLAGS="$CFLAGS $cf_new_cflags"
14134 if test -n "$cf_new_cppflags" ; then
14136 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14139 if test -n "$cf_new_extra_cppflags" ; then
14141 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14149 if test "$with_dbmalloc" = yes ; then
14150 echo "$as_me:14150: checking for dbmalloc.h" >&5
14151 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14152 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line 14156 "configure"
14157 #include "confdefs.h"
14158 #include <dbmalloc.h>
14160 if { (eval echo "$as_me:14160: \"$ac_cpp conftest.$ac_ext\"") >&5
14161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14163 egrep -v '^ *\+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:14166: \$? = $ac_status" >&5
14167 (exit $ac_status); } >/dev/null; then
14168 if test -s conftest.err; then
14169 ac_cpp_err=$ac_c_preproc_warn_flag
14176 if test -z "$ac_cpp_err"; then
14177 ac_cv_header_dbmalloc_h=yes
14179 echo "$as_me: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14181 ac_cv_header_dbmalloc_h=no
14183 rm -f conftest.err conftest.$ac_ext
14185 echo "$as_me:14185: result: $ac_cv_header_dbmalloc_h" >&5
14186 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14187 if test $ac_cv_header_dbmalloc_h = yes; then
14189 echo "$as_me:14189: checking for debug_malloc in -ldbmalloc" >&5
14190 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14191 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 ac_check_lib_save_LIBS=$LIBS
14195 LIBS="-ldbmalloc $LIBS"
14196 cat >conftest.$ac_ext <<_ACEOF
14197 #line 14197 "configure"
14198 #include "confdefs.h"
14200 /* Override any gcc2 internal prototype to avoid an error. */
14204 /* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14206 char debug_malloc ();
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (eval echo "$as_me:14216: \"$ac_link\"") >&5
14217 (eval $ac_link) 2>&5
14219 echo "$as_me:14219: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (eval echo "$as_me:14222: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:14225: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_lib_dbmalloc_debug_malloc=yes
14229 echo "$as_me: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 ac_cv_lib_dbmalloc_debug_malloc=no
14233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14234 LIBS=$ac_check_lib_save_LIBS
14236 echo "$as_me:14236: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14237 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14238 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14239 cat >>confdefs.h <<EOF
14240 #define HAVE_LIBDBMALLOC 1
14243 LIBS="-ldbmalloc $LIBS"
14251 echo "$as_me:14251: checking if you want to use valgrind for testing" >&5
14252 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14254 # Check whether --with-valgrind or --without-valgrind was given.
14255 if test "${with_valgrind+set}" = set; then
14256 withval="$with_valgrind"
14258 cat >>confdefs.h <<EOF
14259 #define USE_VALGRIND 1
14262 : ${with_cflags:=-g}
14263 : ${with_no_leaks:=yes}
14268 echo "$as_me:14268: result: ${with_valgrind:-no}" >&5
14269 echo "${ECHO_T}${with_valgrind:-no}" >&6
14271 case .$with_cflags in
14281 cf_new_extra_cppflags=
14283 for cf_add_cflags in -g
14285 case $cf_fix_cppflags in
14287 case $cf_add_cflags in
14288 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14289 case $cf_add_cflags in
14291 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14293 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14294 && test -z "${cf_tst_cflags}" \
14295 && cf_fix_cppflags=yes
14297 if test $cf_fix_cppflags = yes ; then
14298 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14300 elif test "${cf_tst_cflags}" = "\"'" ; then
14301 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14306 case "$CPPFLAGS" in
14310 case $cf_add_cflags in
14312 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14314 CPPFLAGS=`echo "$CPPFLAGS" | \
14315 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14316 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14320 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14325 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14330 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14332 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14334 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14335 && test -z "${cf_tst_cflags}" \
14336 && cf_fix_cppflags=no
14341 if test -n "$cf_new_cflags" ; then
14343 CFLAGS="$CFLAGS $cf_new_cflags"
14346 if test -n "$cf_new_cppflags" ; then
14348 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14351 if test -n "$cf_new_extra_cppflags" ; then
14353 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14361 echo "$as_me:14361: checking if you want to perform memory-leak testing" >&5
14362 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14364 # Check whether --enable-leaks or --disable-leaks was given.
14365 if test "${enable_leaks+set}" = set; then
14366 enableval="$enable_leaks"
14367 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14369 : ${with_no_leaks:=no}
14371 echo "$as_me:14371: result: $with_no_leaks" >&5
14372 echo "${ECHO_T}$with_no_leaks" >&6
14374 if test "$with_no_leaks" = yes ; then
14376 cat >>confdefs.h <<\EOF
14380 cat >>confdefs.h <<\EOF
14381 #define YY_NO_LEAKS 1
14386 cat >>confdefs.h <<\EOF
14387 #define HAVE_NC_ALLOC_H 1
14390 ### use option --enable-expanded to generate certain macros as functions
14392 # Check whether --enable-expanded or --disable-expanded was given.
14393 if test "${enable_expanded+set}" = set; then
14394 enableval="$enable_expanded"
14395 test "x$enableval" = xyes &&
14396 cat >>confdefs.h <<\EOF
14397 #define NCURSES_EXPANDED 1
14402 ### use option --disable-macros to suppress macros in favor of functions
14404 # Check whether --enable-macros or --disable-macros was given.
14405 if test "${enable_macros+set}" = set; then
14406 enableval="$enable_macros"
14407 test "$enableval" = no &&
14408 cat >>confdefs.h <<\EOF
14409 #define NCURSES_NOMACROS 1
14414 # Normally we only add trace() to the debug-library. Allow this to be
14415 # extended to all models of the ncurses library:
14417 case "$CFLAGS $CPPFLAGS" in
14423 echo "$as_me:14423: checking whether to add trace feature to all models" >&5
14424 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14426 # Check whether --with-trace or --without-trace was given.
14427 if test "${with_trace+set}" = set; then
14428 withval="$with_trace"
14429 cf_with_trace=$withval
14431 cf_with_trace=$cf_all_traces
14433 echo "$as_me:14433: result: $cf_with_trace" >&5
14434 echo "${ECHO_T}$cf_with_trace" >&6
14436 if test "x$cf_with_trace" = xyes ; then
14443 cf_new_extra_cppflags=
14445 for cf_add_cflags in -DTRACE
14447 case $cf_fix_cppflags in
14449 case $cf_add_cflags in
14450 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14451 case $cf_add_cflags in
14453 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14455 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14456 && test -z "${cf_tst_cflags}" \
14457 && cf_fix_cppflags=yes
14459 if test $cf_fix_cppflags = yes ; then
14460 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14462 elif test "${cf_tst_cflags}" = "\"'" ; then
14463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14468 case "$CPPFLAGS" in
14472 case $cf_add_cflags in
14474 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14476 CPPFLAGS=`echo "$CPPFLAGS" | \
14477 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14478 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14482 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14487 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14492 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14494 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14496 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14497 && test -z "${cf_tst_cflags}" \
14498 && cf_fix_cppflags=no
14503 if test -n "$cf_new_cflags" ; then
14505 CFLAGS="$CFLAGS $cf_new_cflags"
14508 if test -n "$cf_new_cppflags" ; then
14510 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14513 if test -n "$cf_new_extra_cppflags" ; then
14515 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14523 echo "$as_me:14523: checking if we want to use GNAT projects" >&5
14524 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14526 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14527 if test "${enable_gnat_projects+set}" = set; then
14528 enableval="$enable_gnat_projects"
14529 test "$enableval" != no && enableval=yes
14530 if test "$enableval" != "yes" ; then
14531 enable_gnat_projects=no
14533 enable_gnat_projects=yes
14537 enable_gnat_projects=yes
14540 echo "$as_me:14540: result: $enable_gnat_projects" >&5
14541 echo "${ECHO_T}$enable_gnat_projects" >&6
14543 ### Checks for libraries.
14544 case $cf_cv_system_name in
14545 (*mingw32*|*mingw64*)
14546 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
14547 LIBS=" -lpsapi $LIBS"
14550 echo "$as_me:14550: checking for gettimeofday" >&5
14551 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14552 if test "${ac_cv_func_gettimeofday+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 cat >conftest.$ac_ext <<_ACEOF
14556 #line 14556 "configure"
14557 #include "confdefs.h"
14558 /* System header to define __stub macros and hopefully few prototypes,
14559 which can conflict with char gettimeofday (); below. */
14560 #include <assert.h>
14561 /* Override any gcc2 internal prototype to avoid an error. */
14565 /* We use char because int might match the return type of a gcc2
14566 builtin and then its argument prototype would still apply. */
14567 char gettimeofday ();
14573 /* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14579 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (eval echo "$as_me:14587: \"$ac_link\"") >&5
14588 (eval $ac_link) 2>&5
14590 echo "$as_me:14590: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -s conftest$ac_exeext'
14593 { (eval echo "$as_me:14593: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:14596: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_func_gettimeofday=yes
14600 echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 ac_cv_func_gettimeofday=no
14604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14606 echo "$as_me:14606: result: $ac_cv_func_gettimeofday" >&5
14607 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14608 if test $ac_cv_func_gettimeofday = yes; then
14610 cat >>confdefs.h <<\EOF
14611 #define HAVE_GETTIMEOFDAY 1
14616 echo "$as_me:14616: checking for gettimeofday in -lbsd" >&5
14617 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14618 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 ac_check_lib_save_LIBS=$LIBS
14623 cat >conftest.$ac_ext <<_ACEOF
14624 #line 14624 "configure"
14625 #include "confdefs.h"
14627 /* Override any gcc2 internal prototype to avoid an error. */
14631 /* We use char because int might match the return type of a gcc2
14632 builtin and then its argument prototype would still apply. */
14633 char gettimeofday ();
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (eval echo "$as_me:14643: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -s conftest$ac_exeext'
14649 { (eval echo "$as_me:14649: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:14652: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_cv_lib_bsd_gettimeofday=yes
14656 echo "$as_me: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 ac_cv_lib_bsd_gettimeofday=no
14660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14663 echo "$as_me:14663: result: $ac_cv_lib_bsd_gettimeofday" >&5
14664 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14665 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14667 cat >>confdefs.h <<\EOF
14668 #define HAVE_GETTIMEOFDAY 1
14671 cf_add_libs="-lbsd"
14672 # Filter out duplicates - this happens with badly-designed ".pc" files...
14673 for cf_add_1lib in $LIBS
14675 for cf_add_2lib in $cf_add_libs
14677 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14683 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14685 LIBS="$cf_add_libs"
14693 echo "$as_me:14693: checking if -lm needed for math functions" >&5
14694 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14695 if test "${cf_cv_need_libm+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14700 #line 14700 "configure"
14701 #include "confdefs.h"
14709 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14714 rm -f conftest.$ac_objext conftest$ac_exeext
14715 if { (eval echo "$as_me:14715: \"$ac_link\"") >&5
14716 (eval $ac_link) 2>&5
14718 echo "$as_me:14718: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -s conftest$ac_exeext'
14721 { (eval echo "$as_me:14721: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:14724: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14728 echo "$as_me: failed program was:" >&5
14729 cat conftest.$ac_ext >&5
14730 cf_cv_need_libm=yes
14732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14734 echo "$as_me:14734: result: $cf_cv_need_libm" >&5
14735 echo "${ECHO_T}$cf_cv_need_libm" >&6
14736 if test "$cf_cv_need_libm" = yes
14741 ### Checks for header files.
14742 echo "$as_me:14742: checking for ANSI C header files" >&5
14743 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14744 if test "${ac_cv_header_stdc+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 cat >conftest.$ac_ext <<_ACEOF
14748 #line 14748 "configure"
14749 #include "confdefs.h"
14750 #include <stdlib.h>
14751 #include <stdarg.h>
14752 #include <string.h>
14756 if { (eval echo "$as_me:14756: \"$ac_cpp conftest.$ac_ext\"") >&5
14757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14759 egrep -v '^ *\+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:14762: \$? = $ac_status" >&5
14763 (exit $ac_status); } >/dev/null; then
14764 if test -s conftest.err; then
14765 ac_cpp_err=$ac_c_preproc_warn_flag
14772 if test -z "$ac_cpp_err"; then
14773 ac_cv_header_stdc=yes
14775 echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 ac_cv_header_stdc=no
14779 rm -f conftest.err conftest.$ac_ext
14781 if test $ac_cv_header_stdc = yes; then
14782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14783 cat >conftest.$ac_ext <<_ACEOF
14784 #line 14784 "configure"
14785 #include "confdefs.h"
14786 #include <string.h>
14789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14790 egrep "memchr" >/dev/null 2>&1; then
14793 ac_cv_header_stdc=no
14799 if test $ac_cv_header_stdc = yes; then
14800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14801 cat >conftest.$ac_ext <<_ACEOF
14802 #line 14802 "configure"
14803 #include "confdefs.h"
14804 #include <stdlib.h>
14807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14808 egrep "free" >/dev/null 2>&1; then
14811 ac_cv_header_stdc=no
14817 if test $ac_cv_header_stdc = yes; then
14818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14819 if test "$cross_compiling" = yes; then
14822 cat >conftest.$ac_ext <<_ACEOF
14823 #line 14823 "configure"
14824 #include "confdefs.h"
14826 #if ((' ' & 0x0FF) == 0x020)
14827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14830 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14831 || ('j' <= (c) && (c) <= 'r') \
14832 || ('s' <= (c) && (c) <= 'z'))
14833 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14841 for (i = 0; i < 256; i++)
14842 if (XOR (islower (i), ISLOWER (i))
14843 || toupper (i) != TOUPPER (i))
14844 $ac_main_return(2);
14845 $ac_main_return (0);
14848 rm -f conftest$ac_exeext
14849 if { (eval echo "$as_me:14849: \"$ac_link\"") >&5
14850 (eval $ac_link) 2>&5
14852 echo "$as_me:14852: \$? = $ac_status" >&5
14853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14854 { (eval echo "$as_me:14854: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:14857: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14861 echo "$as_me: program exited with status $ac_status" >&5
14862 echo "$as_me: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14864 ac_cv_header_stdc=no
14866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14870 echo "$as_me:14870: result: $ac_cv_header_stdc" >&5
14871 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14872 if test $ac_cv_header_stdc = yes; then
14874 cat >>confdefs.h <<\EOF
14875 #define STDC_HEADERS 1
14880 ac_header_dirent=no
14881 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14882 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14883 echo "$as_me:14883: checking for $ac_hdr that defines DIR" >&5
14884 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 cat >conftest.$ac_ext <<_ACEOF
14889 #line 14889 "configure"
14890 #include "confdefs.h"
14891 #include <sys/types.h>
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:14904: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -s conftest.$ac_objext'
14910 { (eval echo "$as_me:14910: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:14913: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 eval "$as_ac_Header=yes"
14917 echo "$as_me: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 eval "$as_ac_Header=no"
14921 rm -f conftest.$ac_objext conftest.$ac_ext
14923 echo "$as_me:14923: result: `eval echo '${'$as_ac_Header'}'`" >&5
14924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926 cat >>confdefs.h <<EOF
14927 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14930 ac_header_dirent=$ac_hdr; break
14934 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14935 if test $ac_header_dirent = dirent.h; then
14936 echo "$as_me:14936: checking for opendir in -ldir" >&5
14937 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14938 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_check_lib_save_LIBS=$LIBS
14943 cat >conftest.$ac_ext <<_ACEOF
14944 #line 14944 "configure"
14945 #include "confdefs.h"
14947 /* Override any gcc2 internal prototype to avoid an error. */
14951 /* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (eval echo "$as_me:14963: \"$ac_link\"") >&5
14964 (eval $ac_link) 2>&5
14966 echo "$as_me:14966: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try='test -s conftest$ac_exeext'
14969 { (eval echo "$as_me:14969: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14972 echo "$as_me:14972: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 ac_cv_lib_dir_opendir=yes
14976 echo "$as_me: failed program was:" >&5
14977 cat conftest.$ac_ext >&5
14978 ac_cv_lib_dir_opendir=no
14980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14981 LIBS=$ac_check_lib_save_LIBS
14983 echo "$as_me:14983: result: $ac_cv_lib_dir_opendir" >&5
14984 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14985 if test $ac_cv_lib_dir_opendir = yes; then
14990 echo "$as_me:14990: checking for opendir in -lx" >&5
14991 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14992 if test "${ac_cv_lib_x_opendir+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 ac_check_lib_save_LIBS=$LIBS
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line 14998 "configure"
14999 #include "confdefs.h"
15001 /* Override any gcc2 internal prototype to avoid an error. */
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:15017: \"$ac_link\"") >&5
15018 (eval $ac_link) 2>&5
15020 echo "$as_me:15020: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -s conftest$ac_exeext'
15023 { (eval echo "$as_me:15023: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15026 echo "$as_me:15026: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 ac_cv_lib_x_opendir=yes
15030 echo "$as_me: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15032 ac_cv_lib_x_opendir=no
15034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15037 echo "$as_me:15037: result: $ac_cv_lib_x_opendir" >&5
15038 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15039 if test $ac_cv_lib_x_opendir = yes; then
15045 echo "$as_me:15045: checking whether time.h and sys/time.h may both be included" >&5
15046 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15047 if test "${ac_cv_header_time+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line 15051 "configure"
15052 #include "confdefs.h"
15053 #include <sys/types.h>
15054 #include <sys/time.h>
15060 if ((struct tm *) 0)
15066 rm -f conftest.$ac_objext
15067 if { (eval echo "$as_me:15067: \"$ac_compile\"") >&5
15068 (eval $ac_compile) 2>&5
15070 echo "$as_me:15070: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:15073: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:15076: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_header_time=yes
15080 echo "$as_me: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 ac_cv_header_time=no
15084 rm -f conftest.$ac_objext conftest.$ac_ext
15086 echo "$as_me:15086: result: $ac_cv_header_time" >&5
15087 echo "${ECHO_T}$ac_cv_header_time" >&6
15088 if test $ac_cv_header_time = yes; then
15090 cat >>confdefs.h <<\EOF
15091 #define TIME_WITH_SYS_TIME 1
15098 cf_regex_libs="regex re"
15101 cf_regex_libs="gnurx $cf_regex_libs"
15105 echo "$as_me:15105: checking for regcomp" >&5
15106 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15107 if test "${ac_cv_func_regcomp+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15111 #line 15111 "configure"
15112 #include "confdefs.h"
15113 /* System header to define __stub macros and hopefully few prototypes,
15114 which can conflict with char regcomp (); below. */
15115 #include <assert.h>
15116 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15128 /* The GNU C library defines this for functions which it implements
15129 to always fail with ENOSYS. Some functions are actually named
15130 something starting with __ and the normal name is an alias. */
15131 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15134 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:15142: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>&5
15145 echo "$as_me:15145: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -s conftest$ac_exeext'
15148 { (eval echo "$as_me:15148: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:15151: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_cv_func_regcomp=yes
15155 echo "$as_me: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15157 ac_cv_func_regcomp=no
15159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15161 echo "$as_me:15161: result: $ac_cv_func_regcomp" >&5
15162 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
15163 if test $ac_cv_func_regcomp = yes; then
15164 cf_regex_func=regcomp
15167 for cf_regex_lib in $cf_regex_libs
15169 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
15170 echo "$as_me:15170: checking for regcomp in -l$cf_regex_lib" >&5
15171 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
15172 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-l$cf_regex_lib $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 #line 15178 "configure"
15179 #include "confdefs.h"
15181 /* Override any gcc2 internal prototype to avoid an error. */
15185 /* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:15197: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>&5
15200 echo "$as_me:15200: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:15203: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:15206: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 eval "$as_ac_Lib=yes"
15210 echo "$as_me: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 eval "$as_ac_Lib=no"
15214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15215 LIBS=$ac_check_lib_save_LIBS
15217 echo "$as_me:15217: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15219 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15221 cf_add_libs="-l$cf_regex_lib"
15222 # Filter out duplicates - this happens with badly-designed ".pc" files...
15223 for cf_add_1lib in $LIBS
15225 for cf_add_2lib in $cf_add_libs
15227 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15233 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15235 LIBS="$cf_add_libs"
15237 cf_regex_func=regcomp
15245 if test "$cf_regex_func" = no ; then
15246 echo "$as_me:15246: checking for compile" >&5
15247 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15248 if test "${ac_cv_func_compile+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 cat >conftest.$ac_ext <<_ACEOF
15252 #line 15252 "configure"
15253 #include "confdefs.h"
15254 /* System header to define __stub macros and hopefully few prototypes,
15255 which can conflict with char compile (); below. */
15256 #include <assert.h>
15257 /* Override any gcc2 internal prototype to avoid an error. */
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15269 /* The GNU C library defines this for functions which it implements
15270 to always fail with ENOSYS. Some functions are actually named
15271 something starting with __ and the normal name is an alias. */
15272 #if defined (__stub_compile) || defined (__stub___compile)
15275 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15282 rm -f conftest.$ac_objext conftest$ac_exeext
15283 if { (eval echo "$as_me:15283: \"$ac_link\"") >&5
15284 (eval $ac_link) 2>&5
15286 echo "$as_me:15286: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -s conftest$ac_exeext'
15289 { (eval echo "$as_me:15289: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:15292: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_cv_func_compile=yes
15296 echo "$as_me: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 ac_cv_func_compile=no
15300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15302 echo "$as_me:15302: result: $ac_cv_func_compile" >&5
15303 echo "${ECHO_T}$ac_cv_func_compile" >&6
15304 if test $ac_cv_func_compile = yes; then
15305 cf_regex_func=compile
15308 echo "$as_me:15308: checking for compile in -lgen" >&5
15309 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
15310 if test "${ac_cv_lib_gen_compile+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 ac_check_lib_save_LIBS=$LIBS
15315 cat >conftest.$ac_ext <<_ACEOF
15316 #line 15316 "configure"
15317 #include "confdefs.h"
15319 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (eval echo "$as_me:15335: \"$ac_link\"") >&5
15336 (eval $ac_link) 2>&5
15338 echo "$as_me:15338: \$? = $ac_status" >&5
15339 (exit $ac_status); } &&
15340 { ac_try='test -s conftest$ac_exeext'
15341 { (eval echo "$as_me:15341: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15344 echo "$as_me:15344: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15346 ac_cv_lib_gen_compile=yes
15348 echo "$as_me: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15350 ac_cv_lib_gen_compile=no
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 LIBS=$ac_check_lib_save_LIBS
15355 echo "$as_me:15355: result: $ac_cv_lib_gen_compile" >&5
15356 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15357 if test $ac_cv_lib_gen_compile = yes; then
15359 cf_add_libs="-lgen"
15360 # Filter out duplicates - this happens with badly-designed ".pc" files...
15361 for cf_add_1lib in $LIBS
15363 for cf_add_2lib in $cf_add_libs
15365 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15371 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15373 LIBS="$cf_add_libs"
15375 cf_regex_func=compile
15382 if test "$cf_regex_func" = no ; then
15383 { echo "$as_me:15383: WARNING: cannot find regular expression library" >&5
15384 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15387 echo "$as_me:15387: checking for regular-expression headers" >&5
15388 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15389 if test "${cf_cv_regex_hdrs+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cf_cv_regex_hdrs=no
15394 case $cf_regex_func in
15396 for cf_regex_hdr in regexp.h regexpr.h
15398 cat >conftest.$ac_ext <<_ACEOF
15399 #line 15399 "configure"
15400 #include "confdefs.h"
15401 #include <$cf_regex_hdr>
15406 char *p = compile("", "", "", 0);
15407 int x = step("", "");
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (eval echo "$as_me:15414: \"$ac_link\"") >&5
15415 (eval $ac_link) 2>&5
15417 echo "$as_me:15417: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -s conftest$ac_exeext'
15420 { (eval echo "$as_me:15420: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:15423: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15426 cf_cv_regex_hdrs=$cf_regex_hdr
15430 echo "$as_me: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15437 for cf_regex_hdr in regex.h
15439 cat >conftest.$ac_ext <<_ACEOF
15440 #line 15440 "configure"
15441 #include "confdefs.h"
15442 #include <sys/types.h>
15443 #include <$cf_regex_hdr>
15449 int x = regcomp(p, "", 0);
15450 int y = regexec(p, "", 0, 0, 0);
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (eval echo "$as_me:15458: \"$ac_link\"") >&5
15459 (eval $ac_link) 2>&5
15461 echo "$as_me:15461: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:15464: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:15467: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15470 cf_cv_regex_hdrs=$cf_regex_hdr
15474 echo "$as_me: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15483 echo "$as_me:15483: result: $cf_cv_regex_hdrs" >&5
15484 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15486 case $cf_cv_regex_hdrs in
15487 (no) { echo "$as_me:15487: WARNING: no regular expression header found" >&5
15488 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
15490 cat >>confdefs.h <<\EOF
15491 #define HAVE_REGEX_H_FUNCS 1
15495 cat >>confdefs.h <<\EOF
15496 #define HAVE_REGEXP_H_FUNCS 1
15500 cat >>confdefs.h <<\EOF
15501 #define HAVE_REGEXPR_H_FUNCS 1
15525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15526 echo "$as_me:15526: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15532 #line 15532 "configure"
15533 #include "confdefs.h"
15534 #include <$ac_header>
15536 if { (eval echo "$as_me:15536: \"$ac_cpp conftest.$ac_ext\"") >&5
15537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15539 egrep -v '^ *\+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:15542: \$? = $ac_status" >&5
15543 (exit $ac_status); } >/dev/null; then
15544 if test -s conftest.err; then
15545 ac_cpp_err=$ac_c_preproc_warn_flag
15552 if test -z "$ac_cpp_err"; then
15553 eval "$as_ac_Header=yes"
15555 echo "$as_me: failed program was:" >&5
15556 cat conftest.$ac_ext >&5
15557 eval "$as_ac_Header=no"
15559 rm -f conftest.err conftest.$ac_ext
15561 echo "$as_me:15561: result: `eval echo '${'$as_ac_Header'}'`" >&5
15562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15564 cat >>confdefs.h <<EOF
15565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15571 for ac_header in unistd.h getopt.h
15573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15574 echo "$as_me:15574: checking for $ac_header" >&5
15575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 cat >conftest.$ac_ext <<_ACEOF
15580 #line 15580 "configure"
15581 #include "confdefs.h"
15582 #include <$ac_header>
15584 if { (eval echo "$as_me:15584: \"$ac_cpp conftest.$ac_ext\"") >&5
15585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15587 egrep -v '^ *\+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); } >/dev/null; then
15592 if test -s conftest.err; then
15593 ac_cpp_err=$ac_c_preproc_warn_flag
15600 if test -z "$ac_cpp_err"; then
15601 eval "$as_ac_Header=yes"
15603 echo "$as_me: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15605 eval "$as_ac_Header=no"
15607 rm -f conftest.err conftest.$ac_ext
15609 echo "$as_me:15609: result: `eval echo '${'$as_ac_Header'}'`" >&5
15610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612 cat >>confdefs.h <<EOF
15613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619 echo "$as_me:15619: checking for header declaring getopt variables" >&5
15620 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15621 if test "${cf_cv_getopt_header+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 cf_cv_getopt_header=none
15626 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15628 cat >conftest.$ac_ext <<_ACEOF
15629 #line 15629 "configure"
15630 #include "confdefs.h"
15632 #include <$cf_header>
15636 int x = optind; char *y = optarg
15641 rm -f conftest.$ac_objext
15642 if { (eval echo "$as_me:15642: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>&5
15645 echo "$as_me:15645: \$? = $ac_status" >&5
15646 (exit $ac_status); } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (eval echo "$as_me:15648: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 echo "$as_me:15651: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 cf_cv_getopt_header=$cf_header
15656 echo "$as_me: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15663 echo "$as_me:15663: result: $cf_cv_getopt_header" >&5
15664 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15665 if test $cf_cv_getopt_header != none ; then
15667 cat >>confdefs.h <<\EOF
15668 #define HAVE_GETOPT_HEADER 1
15672 if test $cf_cv_getopt_header = getopt.h ; then
15674 cat >>confdefs.h <<\EOF
15675 #define NEED_GETOPT_H 1
15680 # check for ISC (this may also define _POSIX_SOURCE)
15681 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15682 if test "x$ISC" = xyes ; then
15684 echo "$as_me:15684: checking for main in -lcposix" >&5
15685 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15686 if test "${ac_cv_lib_cposix_main+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 ac_check_lib_save_LIBS=$LIBS
15690 LIBS="-lcposix $LIBS"
15691 cat >conftest.$ac_ext <<_ACEOF
15692 #line 15692 "configure"
15693 #include "confdefs.h"
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (eval echo "$as_me:15704: \"$ac_link\"") >&5
15705 (eval $ac_link) 2>&5
15707 echo "$as_me:15707: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -s conftest$ac_exeext'
15710 { (eval echo "$as_me:15710: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:15713: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_lib_cposix_main=yes
15717 echo "$as_me: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 ac_cv_lib_cposix_main=no
15721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15722 LIBS=$ac_check_lib_save_LIBS
15724 echo "$as_me:15724: result: $ac_cv_lib_cposix_main" >&5
15725 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15726 if test $ac_cv_lib_cposix_main = yes; then
15727 cat >>confdefs.h <<EOF
15728 #define HAVE_LIBCPOSIX 1
15731 LIBS="-lcposix $LIBS"
15735 echo "$as_me:15735: checking for bzero in -linet" >&5
15736 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15737 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 ac_check_lib_save_LIBS=$LIBS
15741 LIBS="-linet $LIBS"
15742 cat >conftest.$ac_ext <<_ACEOF
15743 #line 15743 "configure"
15744 #include "confdefs.h"
15746 /* Override any gcc2 internal prototype to avoid an error. */
15750 /* We use char because int might match the return type of a gcc2
15751 builtin and then its argument prototype would still apply. */
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (eval echo "$as_me:15762: \"$ac_link\"") >&5
15763 (eval $ac_link) 2>&5
15765 echo "$as_me:15765: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -s conftest$ac_exeext'
15768 { (eval echo "$as_me:15768: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:15771: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_lib_inet_bzero=yes
15775 echo "$as_me: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 ac_cv_lib_inet_bzero=no
15779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15780 LIBS=$ac_check_lib_save_LIBS
15782 echo "$as_me:15782: result: $ac_cv_lib_inet_bzero" >&5
15783 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15784 if test $ac_cv_lib_inet_bzero = yes; then
15786 cf_add_libs="-linet"
15787 # Filter out duplicates - this happens with badly-designed ".pc" files...
15788 for cf_add_1lib in $LIBS
15790 for cf_add_2lib in $cf_add_libs
15792 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15798 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15800 LIBS="$cf_add_libs"
15805 echo "$as_me:15805: checking if sys/time.h works with sys/select.h" >&5
15806 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15807 if test "${cf_cv_sys_time_select+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 cat >conftest.$ac_ext <<_ACEOF
15812 #line 15812 "configure"
15813 #include "confdefs.h"
15815 #include <sys/types.h>
15816 #ifdef HAVE_SYS_TIME_H
15817 #include <sys/time.h>
15819 #ifdef HAVE_SYS_SELECT_H
15820 #include <sys/select.h>
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:15832: \"$ac_compile\"") >&5
15833 (eval $ac_compile) 2>&5
15835 echo "$as_me:15835: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:15838: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:15841: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 cf_cv_sys_time_select=yes
15845 echo "$as_me: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15847 cf_cv_sys_time_select=no
15849 rm -f conftest.$ac_objext conftest.$ac_ext
15853 echo "$as_me:15853: result: $cf_cv_sys_time_select" >&5
15854 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15855 test "$cf_cv_sys_time_select" = yes &&
15856 cat >>confdefs.h <<\EOF
15857 #define HAVE_SYS_TIME_SELECT 1
15860 ### checks for compiler characteristics
15862 ac_cpp='$CPP $CPPFLAGS'
15863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15866 ac_main_return=return
15868 echo "$as_me:15868: checking for an ANSI C-conforming const" >&5
15869 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15870 if test "${ac_cv_c_const+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 cat >conftest.$ac_ext <<_ACEOF
15874 #line 15874 "configure"
15875 #include "confdefs.h"
15880 /* FIXME: Include the comments suggested by Paul. */
15881 #ifndef __cplusplus
15882 /* Ultrix mips cc rejects this. */
15883 typedef int charset[2];
15885 /* SunOS 4.1.1 cc rejects this. */
15886 char const *const *ccp;
15888 /* NEC SVR4.0.2 mips cc rejects this. */
15889 struct point {int x, y;};
15890 static struct point const zero = {0,0};
15891 /* AIX XL C 1.02.0.0 rejects this.
15892 It does not let you subtract one const X* pointer from another in
15893 an arm of an if-expression whose if-part is not a constant
15895 const char *g = "string";
15896 ccp = &g + (g ? g-g : 0);
15897 /* HPUX 7.0 cc rejects these. */
15900 ccp = (char const *const *) p;
15901 { /* SCO 3.2v4 cc rejects this. */
15903 char const *s = 0 ? (char *) 0 : (char const *) 0;
15907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15908 int x[] = {25, 17};
15909 const int *foo = &x[0];
15912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15913 typedef const int *iptr;
15917 { /* AIX XL C 1.02.0.0 rejects this saying
15918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15919 struct s { int j; const int *ap[3]; };
15920 struct s *b; b->j = 5;
15922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15923 const int foo = 10;
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:15932: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>&5
15935 echo "$as_me:15935: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (eval echo "$as_me:15938: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:15941: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15945 echo "$as_me: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15949 rm -f conftest.$ac_objext conftest.$ac_ext
15951 echo "$as_me:15951: result: $ac_cv_c_const" >&5
15952 echo "${ECHO_T}$ac_cv_c_const" >&6
15953 if test $ac_cv_c_const = no; then
15955 cat >>confdefs.h <<\EOF
15961 echo "$as_me:15961: checking for inline" >&5
15962 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15963 if test "${ac_cv_c_inline+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 for ac_kw in inline __inline__ __inline; do
15968 cat >conftest.$ac_ext <<_ACEOF
15969 #line 15969 "configure"
15970 #include "confdefs.h"
15971 #ifndef __cplusplus
15972 static $ac_kw int static_foo () {return 0; }
15973 $ac_kw int foo () {return 0; }
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:15978: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:15981: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:15984: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:15987: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_cv_c_inline=$ac_kw; break
15991 echo "$as_me: failed program was:" >&5
15992 cat conftest.$ac_ext >&5
15994 rm -f conftest.$ac_objext conftest.$ac_ext
15998 echo "$as_me:15998: result: $ac_cv_c_inline" >&5
15999 echo "${ECHO_T}$ac_cv_c_inline" >&6
16000 case $ac_cv_c_inline in
16003 cat >>confdefs.h <<\EOF
16007 *) cat >>confdefs.h <<EOF
16008 #define inline $ac_cv_c_inline
16014 if test "$ac_cv_c_inline" != no ; then
16015 NCURSES_INLINE=inline
16016 if test "$INTEL_COMPILER" = yes
16019 elif test "$CLANG_COMPILER" = yes
16022 elif test "$GCC" = yes
16024 echo "$as_me:16024: checking if $CC supports options to tune inlining" >&5
16025 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
16026 if test "${cf_cv_gcc_inline+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 cf_save_CFLAGS=$CFLAGS
16031 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
16032 cat >conftest.$ac_ext <<_ACEOF
16033 #line 16033 "configure"
16034 #include "confdefs.h"
16035 inline int foo(void) { return 1; }
16039 ${cf_cv_main_return:-return} foo()
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
16056 cf_cv_gcc_inline=yes
16058 echo "$as_me: failed program was:" >&5
16059 cat conftest.$ac_ext >&5
16060 cf_cv_gcc_inline=no
16062 rm -f conftest.$ac_objext conftest.$ac_ext
16063 CFLAGS=$cf_save_CFLAGS
16066 echo "$as_me:16066: result: $cf_cv_gcc_inline" >&5
16067 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16068 if test "$cf_cv_gcc_inline" = yes ; then
16073 cf_new_extra_cppflags=
16075 for cf_add_cflags in --param max-inline-insns-single=1200
16077 case $cf_fix_cppflags in
16079 case $cf_add_cflags in
16080 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16081 case $cf_add_cflags in
16083 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16085 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16086 && test -z "${cf_tst_cflags}" \
16087 && cf_fix_cppflags=yes
16089 if test $cf_fix_cppflags = yes ; then
16090 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16092 elif test "${cf_tst_cflags}" = "\"'" ; then
16093 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16098 case "$CPPFLAGS" in
16102 case $cf_add_cflags in
16104 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16106 CPPFLAGS=`echo "$CPPFLAGS" | \
16107 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16108 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16112 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16117 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16122 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16124 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16126 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16127 && test -z "${cf_tst_cflags}" \
16128 && cf_fix_cppflags=no
16133 if test -n "$cf_new_cflags" ; then
16135 CFLAGS="$CFLAGS $cf_new_cflags"
16138 if test -n "$cf_new_cppflags" ; then
16140 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16143 if test -n "$cf_new_extra_cppflags" ; then
16145 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16152 echo "$as_me:16152: checking for signal global datatype" >&5
16153 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
16154 if test "${cf_cv_sig_atomic_t+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 "volatile sig_atomic_t" \
16163 cat >conftest.$ac_ext <<_ACEOF
16164 #line 16164 "configure"
16165 #include "confdefs.h"
16167 #include <sys/types.h>
16168 #include <signal.h>
16173 static void handler(int sig)
16180 signal(SIGINT, handler);
16186 rm -f conftest.$ac_objext
16187 if { (eval echo "$as_me:16187: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>&5
16190 echo "$as_me:16190: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try='test -s conftest.$ac_objext'
16193 { (eval echo "$as_me:16193: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 cf_cv_sig_atomic_t=$cf_type
16200 echo "$as_me: failed program was:" >&5
16201 cat conftest.$ac_ext >&5
16202 cf_cv_sig_atomic_t=no
16204 rm -f conftest.$ac_objext conftest.$ac_ext
16205 test "$cf_cv_sig_atomic_t" != no && break
16210 echo "$as_me:16210: result: $cf_cv_sig_atomic_t" >&5
16211 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16212 test "$cf_cv_sig_atomic_t" != no &&
16213 cat >>confdefs.h <<EOF
16214 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16217 if test $NCURSES_CHTYPE = auto ; then
16219 echo "$as_me:16219: checking for type of chtype" >&5
16220 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16221 if test "${cf_cv_typeof_chtype+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 if test "$cross_compiling" = yes; then
16226 cf_cv_typeof_chtype=long
16228 cat >conftest.$ac_ext <<_ACEOF
16229 #line 16229 "configure"
16230 #include "confdefs.h"
16232 #define WANT_BITS 31
16236 FILE *fp = fopen("cf_test.out", "w");
16238 char *result = "long";
16239 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16242 for (n = 0; n < WANT_BITS; n++) {
16245 if (y != 1 || x == 0) {
16251 * If x is nonzero, an int is big enough for the bits
16254 result = (x != 0) ? "int" : "long";
16259 ${cf_cv_main_return:-return}(0);
16263 rm -f conftest$ac_exeext
16264 if { (eval echo "$as_me:16264: \"$ac_link\"") >&5
16265 (eval $ac_link) 2>&5
16267 echo "$as_me:16267: \$? = $ac_status" >&5
16268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16269 { (eval echo "$as_me:16269: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:16272: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 cf_cv_typeof_chtype=`cat cf_test.out`
16276 echo "$as_me: program exited with status $ac_status" >&5
16277 echo "$as_me: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 cf_cv_typeof_chtype=long
16281 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16287 echo "$as_me:16287: result: $cf_cv_typeof_chtype" >&5
16288 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
16290 cat >>confdefs.h <<EOF
16291 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
16295 cf_cv_typeof_chtype=$NCURSES_CHTYPE
16297 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
16299 echo "$as_me:16299: checking if unsigned literals are legal" >&5
16300 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
16301 if test "${cf_cv_unsigned_literals+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16306 #line 16306 "configure"
16307 #include "confdefs.h"
16312 long x = 1L + 1UL + 1U + 1
16317 rm -f conftest.$ac_objext
16318 if { (eval echo "$as_me:16318: \"$ac_compile\"") >&5
16319 (eval $ac_compile) 2>&5
16321 echo "$as_me:16321: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -s conftest.$ac_objext'
16324 { (eval echo "$as_me:16324: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:16327: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 cf_cv_unsigned_literals=yes
16331 echo "$as_me: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 cf_cv_unsigned_literals=no
16335 rm -f conftest.$ac_objext conftest.$ac_ext
16339 echo "$as_me:16339: result: $cf_cv_unsigned_literals" >&5
16340 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16343 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16344 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16346 if test $NCURSES_MMASK_T = auto ; then
16347 cf_cv_typeof_mmask_t=long
16349 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16351 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16353 ### Checks for external-data
16355 echo "$as_me:16355: checking if external errno is declared" >&5
16356 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16357 if test "${cf_cv_dcl_errno+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16362 #line 16362 "configure"
16363 #include "confdefs.h"
16365 #ifdef HAVE_STDLIB_H
16366 #include <stdlib.h>
16369 #include <sys/types.h>
16374 int x = (int) errno
16379 rm -f conftest.$ac_objext
16380 if { (eval echo "$as_me:16380: \"$ac_compile\"") >&5
16381 (eval $ac_compile) 2>&5
16383 echo "$as_me:16383: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (eval echo "$as_me:16386: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:16389: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 cf_cv_dcl_errno=yes
16393 echo "$as_me: failed program was:" >&5
16394 cat conftest.$ac_ext >&5
16397 rm -f conftest.$ac_objext conftest.$ac_ext
16400 echo "$as_me:16400: result: $cf_cv_dcl_errno" >&5
16401 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16403 if test "$cf_cv_dcl_errno" = no ; then
16405 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16407 cat >>confdefs.h <<EOF
16408 #define $cf_result 1
16413 # It's possible (for near-UNIX clones) that the data doesn't exist
16415 echo "$as_me:16415: checking if external errno exists" >&5
16416 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16417 if test "${cf_cv_have_errno+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16422 #line 16422 "configure"
16423 #include "confdefs.h"
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (eval echo "$as_me:16437: \"$ac_link\"") >&5
16438 (eval $ac_link) 2>&5
16440 echo "$as_me:16440: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -s conftest$ac_exeext'
16443 { (eval echo "$as_me:16443: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16446 echo "$as_me:16446: \$? = $ac_status" >&5
16447 (exit $ac_status); }; }; then
16448 cf_cv_have_errno=yes
16450 echo "$as_me: failed program was:" >&5
16451 cat conftest.$ac_ext >&5
16452 cf_cv_have_errno=no
16454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16457 echo "$as_me:16457: result: $cf_cv_have_errno" >&5
16458 echo "${ECHO_T}$cf_cv_have_errno" >&6
16460 if test "$cf_cv_have_errno" = yes ; then
16462 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16464 cat >>confdefs.h <<EOF
16465 #define $cf_result 1
16470 echo "$as_me:16470: checking if data-only library module links" >&5
16471 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16472 if test "${cf_cv_link_dataonly+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 cat >conftest.$ac_ext <<EOF
16478 #line 16478 "configure"
16479 int testdata[3] = { 123, 456, 789 };
16481 if { (eval echo "$as_me:16481: \"$ac_compile\"") >&5
16482 (eval $ac_compile) 2>&5
16484 echo "$as_me:16484: \$? = $ac_status" >&5
16485 (exit $ac_status); } ; then
16486 mv conftest.o data.o && \
16487 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16489 rm -f conftest.$ac_ext data.o
16490 cat >conftest.$ac_ext <<EOF
16491 #line 16491 "configure"
16495 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16497 extern int testdata[3];
16498 return testdata[0] == 123
16499 && testdata[1] == 456
16500 && testdata[2] == 789;
16504 if { (eval echo "$as_me:16504: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>&5
16507 echo "$as_me:16507: \$? = $ac_status" >&5
16508 (exit $ac_status); }; then
16509 mv conftest.o func.o && \
16510 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16512 rm -f conftest.$ac_ext func.o
16513 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16514 cf_saveLIBS="$LIBS"
16515 LIBS="conftest.a $LIBS"
16516 if test "$cross_compiling" = yes; then
16517 cf_cv_link_dataonly=unknown
16519 cat >conftest.$ac_ext <<_ACEOF
16520 #line 16520 "configure"
16521 #include "confdefs.h"
16525 extern int testfunc();
16526 ${cf_cv_main_return:-return} (!testfunc());
16530 rm -f conftest$ac_exeext
16531 if { (eval echo "$as_me:16531: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16534 echo "$as_me:16534: \$? = $ac_status" >&5
16535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16536 { (eval echo "$as_me:16536: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:16539: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 cf_cv_link_dataonly=yes
16543 echo "$as_me: program exited with status $ac_status" >&5
16544 echo "$as_me: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 cf_cv_link_dataonly=no
16548 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16550 LIBS="$cf_saveLIBS"
16554 echo "$as_me:16554: result: $cf_cv_link_dataonly" >&5
16555 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16557 if test "$cf_cv_link_dataonly" = no ; then
16559 cat >>confdefs.h <<\EOF
16560 #define BROKEN_LINKER 1
16566 ### Checks for library functions.
16592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16593 echo "$as_me:16593: checking for $ac_func" >&5
16594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16595 if eval "test \"\${$as_ac_var+set}\" = set"; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 cat >conftest.$ac_ext <<_ACEOF
16599 #line 16599 "configure"
16600 #include "confdefs.h"
16601 /* System header to define __stub macros and hopefully few prototypes,
16602 which can conflict with char $ac_func (); below. */
16603 #include <assert.h>
16604 /* Override any gcc2 internal prototype to avoid an error. */
16608 /* We use char because int might match the return type of a gcc2
16609 builtin and then its argument prototype would still apply. */
16616 /* The GNU C library defines this for functions which it implements
16617 to always fail with ENOSYS. Some functions are actually named
16618 something starting with __ and the normal name is an alias. */
16619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16622 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16629 rm -f conftest.$ac_objext conftest$ac_exeext
16630 if { (eval echo "$as_me:16630: \"$ac_link\"") >&5
16631 (eval $ac_link) 2>&5
16633 echo "$as_me:16633: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -s conftest$ac_exeext'
16636 { (eval echo "$as_me:16636: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16639 echo "$as_me:16639: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 eval "$as_ac_var=yes"
16643 echo "$as_me: failed program was:" >&5
16644 cat conftest.$ac_ext >&5
16645 eval "$as_ac_var=no"
16647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16649 echo "$as_me:16649: result: `eval echo '${'$as_ac_var'}'`" >&5
16650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16651 if test `eval echo '${'$as_ac_var'}'` = yes; then
16652 cat >>confdefs.h <<EOF
16653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16659 if test "x$ac_cv_func_getopt" = xno &&
16660 test "x$cf_with_progs$cf_with_tests" != xnono; then
16661 { { echo "$as_me:16661: error: getopt is required for building programs" >&5
16662 echo "$as_me: error: getopt is required for building programs" >&2;}
16663 { (exit 1); exit 1; }; }
16666 if test "x$with_getcap" = "xyes" ; then
16668 echo "$as_me:16668: checking for terminal-capability database functions" >&5
16669 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16670 if test "${cf_cv_cgetent+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16675 #line 16675 "configure"
16676 #include "confdefs.h"
16678 #include <stdlib.h>
16685 char *db_array = temp;
16686 cgetent(&buf, &db_array, "vt100");
16687 cgetcap(buf, "tc", '=');
16688 cgetmatch(buf, "tc");
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (eval echo "$as_me:16695: \"$ac_link\"") >&5
16696 (eval $ac_link) 2>&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
16700 { ac_try='test -s conftest$ac_exeext'
16701 { (eval echo "$as_me:16701: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16704 echo "$as_me:16704: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16708 echo "$as_me: failed program was:" >&5
16709 cat conftest.$ac_ext >&5
16712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16715 echo "$as_me:16715: result: $cf_cv_cgetent" >&5
16716 echo "${ECHO_T}$cf_cv_cgetent" >&6
16718 if test "$cf_cv_cgetent" = yes
16721 cat >>confdefs.h <<\EOF
16722 #define HAVE_BSD_CGETENT 1
16725 echo "$as_me:16725: checking if cgetent uses const parameter" >&5
16726 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16727 if test "${cf_cv_cgetent_const+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 cat >conftest.$ac_ext <<_ACEOF
16732 #line 16732 "configure"
16733 #include "confdefs.h"
16735 #include <stdlib.h>
16742 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16743 const char *db_array = temp;
16744 cgetent(&buf, &db_array, "vt100");
16746 cgetcap(buf, "tc", '=');
16747 cgetmatch(buf, "tc");
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:16754: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>&5
16757 echo "$as_me:16757: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (eval echo "$as_me:16760: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:16763: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 cf_cv_cgetent_const=yes
16767 echo "$as_me: failed program was:" >&5
16768 cat conftest.$ac_ext >&5
16769 cf_cv_cgetent_const=no
16771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16774 echo "$as_me:16774: result: $cf_cv_cgetent_const" >&5
16775 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16776 if test "$cf_cv_cgetent_const" = yes
16779 cat >>confdefs.h <<EOF
16780 #define CGETENT_CONST const
16788 echo "$as_me:16788: checking for isascii" >&5
16789 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16790 if test "${cf_cv_have_isascii+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 cat >conftest.$ac_ext <<_ACEOF
16795 #line 16795 "configure"
16796 #include "confdefs.h"
16801 int x = isascii(' ')
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (eval echo "$as_me:16807: \"$ac_link\"") >&5
16808 (eval $ac_link) 2>&5
16810 echo "$as_me:16810: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:16813: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:16816: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 cf_cv_have_isascii=yes
16820 echo "$as_me: failed program was:" >&5
16821 cat conftest.$ac_ext >&5
16822 cf_cv_have_isascii=no
16824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16827 echo "$as_me:16827: result: $cf_cv_have_isascii" >&5
16828 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16829 test "$cf_cv_have_isascii" = yes &&
16830 cat >>confdefs.h <<\EOF
16831 #define HAVE_ISASCII 1
16834 if test "$ac_cv_func_sigaction" = yes; then
16835 echo "$as_me:16835: checking whether sigaction needs _POSIX_SOURCE" >&5
16836 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16837 cat >conftest.$ac_ext <<_ACEOF
16838 #line 16838 "configure"
16839 #include "confdefs.h"
16841 #include <sys/types.h>
16842 #include <signal.h>
16846 struct sigaction act
16851 rm -f conftest.$ac_objext
16852 if { (eval echo "$as_me:16852: \"$ac_compile\"") >&5
16853 (eval $ac_compile) 2>&5
16855 echo "$as_me:16855: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:16858: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:16861: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16865 echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16868 cat >conftest.$ac_ext <<_ACEOF
16869 #line 16869 "configure"
16870 #include "confdefs.h"
16872 #define _POSIX_SOURCE
16873 #include <sys/types.h>
16874 #include <signal.h>
16878 struct sigaction act
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:16884: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>&5
16887 echo "$as_me:16887: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:16890: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:16893: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16897 cat >>confdefs.h <<\EOF
16898 #define _POSIX_SOURCE 1
16902 echo "$as_me: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16906 rm -f conftest.$ac_objext conftest.$ac_ext
16908 rm -f conftest.$ac_objext conftest.$ac_ext
16909 echo "$as_me:16909: result: $sigact_bad" >&5
16910 echo "${ECHO_T}$sigact_bad" >&6
16913 echo "$as_me:16913: checking if nanosleep really works" >&5
16914 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16915 if test "${cf_cv_func_nanosleep+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 if test "$cross_compiling" = yes; then
16920 cf_cv_func_nanosleep=unknown
16922 cat >conftest.$ac_ext <<_ACEOF
16923 #line 16923 "configure"
16924 #include "confdefs.h"
16930 #ifdef HAVE_SYS_TIME_H
16931 #include <sys/time.h>
16935 struct timespec ts1, ts2;
16938 ts1.tv_nsec = 750000000;
16942 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16943 ${cf_cv_main_return:-return}(code != 0);
16947 rm -f conftest$ac_exeext
16948 if { (eval echo "$as_me:16948: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>&5
16951 echo "$as_me:16951: \$? = $ac_status" >&5
16952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16953 { (eval echo "$as_me:16953: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:16956: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 cf_cv_func_nanosleep=yes
16960 echo "$as_me: program exited with status $ac_status" >&5
16961 echo "$as_me: failed program was:" >&5
16962 cat conftest.$ac_ext >&5
16963 cf_cv_func_nanosleep=no
16965 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16968 echo "$as_me:16968: result: $cf_cv_func_nanosleep" >&5
16969 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16971 test "$cf_cv_func_nanosleep" = "yes" &&
16972 cat >>confdefs.h <<\EOF
16973 #define HAVE_NANOSLEEP 1
16982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16983 echo "$as_me:16983: checking for $ac_header" >&5
16984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16989 #line 16989 "configure"
16990 #include "confdefs.h"
16991 #include <$ac_header>
16993 if { (eval echo "$as_me:16993: \"$ac_cpp conftest.$ac_ext\"") >&5
16994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16996 egrep -v '^ *\+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:16999: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null; then
17001 if test -s conftest.err; then
17002 ac_cpp_err=$ac_c_preproc_warn_flag
17009 if test -z "$ac_cpp_err"; then
17010 eval "$as_ac_Header=yes"
17012 echo "$as_me: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17014 eval "$as_ac_Header=no"
17016 rm -f conftest.err conftest.$ac_ext
17018 echo "$as_me:17018: result: `eval echo '${'$as_ac_Header'}'`" >&5
17019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17021 cat >>confdefs.h <<EOF
17022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 if test "$ISC" = yes ; then
17030 for ac_header in sys/termio.h
17032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17033 echo "$as_me:17033: checking for $ac_header" >&5
17034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 cat >conftest.$ac_ext <<_ACEOF
17039 #line 17039 "configure"
17040 #include "confdefs.h"
17041 #include <$ac_header>
17043 if { (eval echo "$as_me:17043: \"$ac_cpp conftest.$ac_ext\"") >&5
17044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17046 egrep -v '^ *\+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:17049: \$? = $ac_status" >&5
17050 (exit $ac_status); } >/dev/null; then
17051 if test -s conftest.err; then
17052 ac_cpp_err=$ac_c_preproc_warn_flag
17059 if test -z "$ac_cpp_err"; then
17060 eval "$as_ac_Header=yes"
17062 echo "$as_me: failed program was:" >&5
17063 cat conftest.$ac_ext >&5
17064 eval "$as_ac_Header=no"
17066 rm -f conftest.err conftest.$ac_ext
17068 echo "$as_me:17068: result: `eval echo '${'$as_ac_Header'}'`" >&5
17069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17071 cat >>confdefs.h <<EOF
17072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17079 if test "$ac_cv_header_termios_h" = yes ; then
17080 case "$CFLAGS $CPPFLAGS" in
17081 (*-D_POSIX_SOURCE*)
17082 termios_bad=dunno ;;
17083 (*) termios_bad=maybe ;;
17085 if test "$termios_bad" = maybe ; then
17086 echo "$as_me:17086: checking whether termios.h needs _POSIX_SOURCE" >&5
17087 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17088 cat >conftest.$ac_ext <<_ACEOF
17089 #line 17089 "configure"
17090 #include "confdefs.h"
17091 #include <termios.h>
17095 struct termios foo; int x = foo.c_iflag
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:17101: \"$ac_compile\"") >&5
17102 (eval $ac_compile) 2>&5
17104 echo "$as_me:17104: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -s conftest.$ac_objext'
17107 { (eval echo "$as_me:17107: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:17110: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17114 echo "$as_me: failed program was:" >&5
17115 cat conftest.$ac_ext >&5
17117 cat >conftest.$ac_ext <<_ACEOF
17118 #line 17118 "configure"
17119 #include "confdefs.h"
17121 #define _POSIX_SOURCE
17122 #include <termios.h>
17126 struct termios foo; int x = foo.c_iflag
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:17132: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>&5
17135 echo "$as_me:17135: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:17138: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:17141: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 termios_bad=unknown
17145 echo "$as_me: failed program was:" >&5
17146 cat conftest.$ac_ext >&5
17148 cat >>confdefs.h <<\EOF
17149 #define _POSIX_SOURCE 1
17153 rm -f conftest.$ac_objext conftest.$ac_ext
17156 rm -f conftest.$ac_objext conftest.$ac_ext
17157 echo "$as_me:17157: result: $termios_bad" >&5
17158 echo "${ECHO_T}$termios_bad" >&6
17162 echo "$as_me:17162: checking for tcgetattr" >&5
17163 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
17164 if test "${cf_cv_have_tcgetattr+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line 17169 "configure"
17170 #include "confdefs.h"
17172 #include <sys/types.h>
17173 #ifdef HAVE_UNISTD_H
17174 #include <unistd.h>
17176 #ifdef HAVE_TERMIOS_H
17177 #include <termios.h>
17178 #define TTY struct termios
17180 #ifdef HAVE_TERMIO_H
17181 #include <termio.h>
17182 #define TTY struct termio
17191 tcgetattr(1, &foo);
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (eval echo "$as_me:17197: \"$ac_link\"") >&5
17198 (eval $ac_link) 2>&5
17200 echo "$as_me:17200: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -s conftest$ac_exeext'
17203 { (eval echo "$as_me:17203: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17206 echo "$as_me:17206: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 cf_cv_have_tcgetattr=yes
17210 echo "$as_me: failed program was:" >&5
17211 cat conftest.$ac_ext >&5
17212 cf_cv_have_tcgetattr=no
17214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17216 echo "$as_me:17216: result: $cf_cv_have_tcgetattr" >&5
17217 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17218 test "$cf_cv_have_tcgetattr" = yes &&
17219 cat >>confdefs.h <<\EOF
17220 #define HAVE_TCGETATTR 1
17223 echo "$as_me:17223: checking for vsscanf function or workaround" >&5
17224 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17225 if test "${cf_cv_func_vsscanf+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 cat >conftest.$ac_ext <<_ACEOF
17230 #line 17230 "configure"
17231 #include "confdefs.h"
17233 #include <stdarg.h>
17240 vsscanf("from", "%d", ap)
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (eval echo "$as_me:17246: \"$ac_link\"") >&5
17247 (eval $ac_link) 2>&5
17249 echo "$as_me:17249: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (eval echo "$as_me:17252: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:17255: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 cf_cv_func_vsscanf=vsscanf
17259 echo "$as_me: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17262 cat >conftest.$ac_ext <<_ACEOF
17263 #line 17263 "configure"
17264 #include "confdefs.h"
17266 #include <stdarg.h>
17273 char *str = "from";
17275 strbuf._flag = _IOREAD;
17276 strbuf._ptr = strbuf._base = (unsigned char *) str;
17277 strbuf._cnt = strlen(str);
17278 strbuf._file = _NFILE;
17279 return (vfscanf(&strbuf, "%d", ap))
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:17285: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>&5
17288 echo "$as_me:17288: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
17290 { ac_try='test -s conftest$ac_exeext'
17291 { (eval echo "$as_me:17291: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17294 echo "$as_me:17294: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 cf_cv_func_vsscanf=vfscanf
17298 echo "$as_me: failed program was:" >&5
17299 cat conftest.$ac_ext >&5
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line 17302 "configure"
17303 #include "confdefs.h"
17305 #include <stdarg.h>
17312 char *str = "from";
17314 strbuf._flag = _IOREAD;
17315 strbuf._ptr = strbuf._base = (unsigned char *) str;
17316 strbuf._cnt = strlen(str);
17317 strbuf._file = _NFILE;
17318 return (_doscan(&strbuf, "%d", ap))
17323 rm -f conftest.$ac_objext conftest$ac_exeext
17324 if { (eval echo "$as_me:17324: \"$ac_link\"") >&5
17325 (eval $ac_link) 2>&5
17327 echo "$as_me:17327: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:17330: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:17333: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 cf_cv_func_vsscanf=_doscan
17337 echo "$as_me: failed program was:" >&5
17338 cat conftest.$ac_ext >&5
17340 cf_cv_func_vsscanf=no
17342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17348 echo "$as_me:17348: result: $cf_cv_func_vsscanf" >&5
17349 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17351 case $cf_cv_func_vsscanf in
17353 cat >>confdefs.h <<\EOF
17354 #define HAVE_VSSCANF 1
17358 cat >>confdefs.h <<\EOF
17359 #define HAVE_VFSCANF 1
17363 cat >>confdefs.h <<\EOF
17364 #define HAVE__DOSCAN 1
17369 echo "$as_me:17369: checking for working mkstemp" >&5
17370 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17371 if test "${cf_cv_func_mkstemp+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 if test "$cross_compiling" = yes; then
17377 cf_cv_func_mkstemp=maybe
17379 cat >conftest.$ac_ext <<_ACEOF
17380 #line 17380 "configure"
17381 #include "confdefs.h"
17383 #include <sys/types.h>
17384 #include <stdlib.h>
17386 #include <string.h>
17387 #include <sys/stat.h>
17390 char *tmpl = "conftestXXXXXX";
17398 for (n = 0; n < 2; ++n) {
17399 strcpy(name[n], tmpl);
17400 if ((fd = mkstemp(name[n])) >= 0) {
17401 if (!strcmp(name[n], tmpl)
17402 || stat(name[n], &sb) != 0
17403 || (sb.st_mode & S_IFMT) != S_IFREG
17404 || (sb.st_mode & 077) != 0) {
17411 && !strcmp(name[0], name[1]))
17413 ${cf_cv_main_return:-return}(result);
17417 rm -f conftest$ac_exeext
17418 if { (eval echo "$as_me:17418: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17421 echo "$as_me:17421: \$? = $ac_status" >&5
17422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17423 { (eval echo "$as_me:17423: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:17426: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 cf_cv_func_mkstemp=yes
17431 echo "$as_me: program exited with status $ac_status" >&5
17432 echo "$as_me: failed program was:" >&5
17433 cat conftest.$ac_ext >&5
17434 cf_cv_func_mkstemp=no
17437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17441 echo "$as_me:17441: result: $cf_cv_func_mkstemp" >&5
17442 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17443 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17444 echo "$as_me:17444: checking for mkstemp" >&5
17445 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17446 if test "${ac_cv_func_mkstemp+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17450 #line 17450 "configure"
17451 #include "confdefs.h"
17452 /* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char mkstemp (); below. */
17454 #include <assert.h>
17455 /* Override any gcc2 internal prototype to avoid an error. */
17459 /* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
17467 /* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17473 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:17481: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17484 echo "$as_me:17484: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -s conftest$ac_exeext'
17487 { (eval echo "$as_me:17487: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:17490: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_func_mkstemp=yes
17494 echo "$as_me: failed program was:" >&5
17495 cat conftest.$ac_ext >&5
17496 ac_cv_func_mkstemp=no
17498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17500 echo "$as_me:17500: result: $ac_cv_func_mkstemp" >&5
17501 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17504 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17506 cat >>confdefs.h <<\EOF
17507 #define HAVE_MKSTEMP 1
17512 # setup for prototype of fallback for vsscanf()
17514 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17520 if test "x$cross_compiling" = xyes ; then
17521 { echo "$as_me:17521: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17522 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17524 echo "$as_me:17524: checking whether setvbuf arguments are reversed" >&5
17525 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17526 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 if test "$cross_compiling" = yes; then
17530 { { echo "$as_me:17530: error: cannot run test program while cross compiling" >&5
17531 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17532 { (exit 1); exit 1; }; }
17534 cat >conftest.$ac_ext <<_ACEOF
17535 #line 17535 "configure"
17536 #include "confdefs.h"
17538 /* If setvbuf has the reversed format, exit 0. */
17542 /* This call has the arguments reversed.
17543 A reversed system may check and see that the address of main
17544 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17545 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17546 $ac_main_return(1);
17547 putc('\r', stdout);
17548 $ac_main_return(0); /* Non-reversed systems segv here. */
17551 rm -f conftest$ac_exeext
17552 if { (eval echo "$as_me:17552: \"$ac_link\"") >&5
17553 (eval $ac_link) 2>&5
17555 echo "$as_me:17555: \$? = $ac_status" >&5
17556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17557 { (eval echo "$as_me:17557: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:17560: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 ac_cv_func_setvbuf_reversed=yes
17564 echo "$as_me: program exited with status $ac_status" >&5
17565 echo "$as_me: failed program was:" >&5
17566 cat conftest.$ac_ext >&5
17567 ac_cv_func_setvbuf_reversed=no
17569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17571 rm -f core core.* *.core
17573 echo "$as_me:17573: result: $ac_cv_func_setvbuf_reversed" >&5
17574 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17575 if test $ac_cv_func_setvbuf_reversed = yes; then
17577 cat >>confdefs.h <<\EOF
17578 #define SETVBUF_REVERSED 1
17584 echo "$as_me:17584: checking for intptr_t" >&5
17585 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17586 if test "${ac_cv_type_intptr_t+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 cat >conftest.$ac_ext <<_ACEOF
17590 #line 17590 "configure"
17591 #include "confdefs.h"
17592 $ac_includes_default
17596 if ((intptr_t *) 0)
17598 if (sizeof (intptr_t))
17604 rm -f conftest.$ac_objext
17605 if { (eval echo "$as_me:17605: \"$ac_compile\"") >&5
17606 (eval $ac_compile) 2>&5
17608 echo "$as_me:17608: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -s conftest.$ac_objext'
17611 { (eval echo "$as_me:17611: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:17614: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_cv_type_intptr_t=yes
17618 echo "$as_me: failed program was:" >&5
17619 cat conftest.$ac_ext >&5
17620 ac_cv_type_intptr_t=no
17622 rm -f conftest.$ac_objext conftest.$ac_ext
17624 echo "$as_me:17624: result: $ac_cv_type_intptr_t" >&5
17625 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17626 if test $ac_cv_type_intptr_t = yes; then
17630 cat >>confdefs.h <<EOF
17631 #define intptr_t long
17636 echo "$as_me:17636: checking for ssize_t" >&5
17637 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17638 if test "${ac_cv_type_ssize_t+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 cat >conftest.$ac_ext <<_ACEOF
17642 #line 17642 "configure"
17643 #include "confdefs.h"
17644 $ac_includes_default
17650 if (sizeof (ssize_t))
17656 rm -f conftest.$ac_objext
17657 if { (eval echo "$as_me:17657: \"$ac_compile\"") >&5
17658 (eval $ac_compile) 2>&5
17660 echo "$as_me:17660: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -s conftest.$ac_objext'
17663 { (eval echo "$as_me:17663: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:17666: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 ac_cv_type_ssize_t=yes
17670 echo "$as_me: failed program was:" >&5
17671 cat conftest.$ac_ext >&5
17672 ac_cv_type_ssize_t=no
17674 rm -f conftest.$ac_objext conftest.$ac_ext
17676 echo "$as_me:17676: result: $ac_cv_type_ssize_t" >&5
17677 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17678 if test $ac_cv_type_ssize_t = yes; then
17682 cat >>confdefs.h <<EOF
17683 #define ssize_t int
17688 echo "$as_me:17688: checking for type sigaction_t" >&5
17689 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17690 if test "${cf_cv_type_sigaction+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 cat >conftest.$ac_ext <<_ACEOF
17695 #line 17695 "configure"
17696 #include "confdefs.h"
17698 #include <signal.h>
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:17708: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>&5
17711 echo "$as_me:17711: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -s conftest.$ac_objext'
17714 { (eval echo "$as_me:17714: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:17717: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 cf_cv_type_sigaction=yes
17721 echo "$as_me: failed program was:" >&5
17722 cat conftest.$ac_ext >&5
17723 cf_cv_type_sigaction=no
17725 rm -f conftest.$ac_objext conftest.$ac_ext
17728 echo "$as_me:17728: result: $cf_cv_type_sigaction" >&5
17729 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17730 test "$cf_cv_type_sigaction" = yes &&
17731 cat >>confdefs.h <<\EOF
17732 #define HAVE_TYPE_SIGACTION 1
17735 echo "$as_me:17735: checking declaration of size-change" >&5
17736 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17737 if test "${cf_cv_sizechange+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 cf_cv_sizechange=unknown
17742 cf_save_CPPFLAGS="$CPPFLAGS"
17744 for cf_opts in "" "NEED_PTEM_H"
17747 CPPFLAGS="$cf_save_CPPFLAGS"
17748 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17749 cat >conftest.$ac_ext <<_ACEOF
17750 #line 17750 "configure"
17751 #include "confdefs.h"
17752 #include <sys/types.h>
17753 #ifdef HAVE_TERMIOS_H
17754 #include <termios.h>
17756 #ifdef HAVE_TERMIO_H
17757 #include <termio.h>
17761 /* This is a workaround for SCO: they neglected to define struct winsize in
17762 * termios.h -- it's only in termio.h and ptem.h
17764 #include <sys/stream.h>
17765 #include <sys/ptem.h>
17767 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17768 #include <sys/ioctl.h>
17776 struct ttysize win; /* FIXME: what system is this? */
17777 int y = win.ts_lines;
17778 int x = win.ts_cols;
17781 struct winsize win;
17782 int y = win.ws_row;
17783 int x = win.ws_col;
17785 no TIOCGSIZE or TIOCGWINSZ
17786 #endif /* TIOCGWINSZ */
17787 #endif /* TIOCGSIZE */
17793 rm -f conftest.$ac_objext
17794 if { (eval echo "$as_me:17794: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>&5
17797 echo "$as_me:17797: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:17800: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:17803: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 cf_cv_sizechange=yes
17807 echo "$as_me: failed program was:" >&5
17808 cat conftest.$ac_ext >&5
17809 cf_cv_sizechange=no
17811 rm -f conftest.$ac_objext conftest.$ac_ext
17813 CPPFLAGS="$cf_save_CPPFLAGS"
17814 if test "$cf_cv_sizechange" = yes ; then
17815 echo "size-change succeeded ($cf_opts)" >&5
17816 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17822 echo "$as_me:17822: result: $cf_cv_sizechange" >&5
17823 echo "${ECHO_T}$cf_cv_sizechange" >&6
17824 if test "$cf_cv_sizechange" != no ; then
17826 cat >>confdefs.h <<\EOF
17827 #define HAVE_SIZECHANGE 1
17830 case $cf_cv_sizechange in
17832 cat >>confdefs.h <<EOF
17833 #define $cf_cv_sizechange 1
17840 echo "$as_me:17840: checking for memmove" >&5
17841 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17842 if test "${ac_cv_func_memmove+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 cat >conftest.$ac_ext <<_ACEOF
17846 #line 17846 "configure"
17847 #include "confdefs.h"
17848 /* System header to define __stub macros and hopefully few prototypes,
17849 which can conflict with char memmove (); below. */
17850 #include <assert.h>
17851 /* Override any gcc2 internal prototype to avoid an error. */
17855 /* We use char because int might match the return type of a gcc2
17856 builtin and then its argument prototype would still apply. */
17863 /* The GNU C library defines this for functions which it implements
17864 to always fail with ENOSYS. Some functions are actually named
17865 something starting with __ and the normal name is an alias. */
17866 #if defined (__stub_memmove) || defined (__stub___memmove)
17869 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:17877: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>&5
17880 echo "$as_me:17880: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (eval echo "$as_me:17883: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:17886: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_cv_func_memmove=yes
17890 echo "$as_me: failed program was:" >&5
17891 cat conftest.$ac_ext >&5
17892 ac_cv_func_memmove=no
17894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17896 echo "$as_me:17896: result: $ac_cv_func_memmove" >&5
17897 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17898 if test $ac_cv_func_memmove = yes; then
17902 echo "$as_me:17902: checking for bcopy" >&5
17903 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17904 if test "${ac_cv_func_bcopy+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 cat >conftest.$ac_ext <<_ACEOF
17908 #line 17908 "configure"
17909 #include "confdefs.h"
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char bcopy (); below. */
17912 #include <assert.h>
17913 /* Override any gcc2 internal prototype to avoid an error. */
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17925 /* The GNU C library defines this for functions which it implements
17926 to always fail with ENOSYS. Some functions are actually named
17927 something starting with __ and the normal name is an alias. */
17928 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17931 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (eval echo "$as_me:17939: \"$ac_link\"") >&5
17940 (eval $ac_link) 2>&5
17942 echo "$as_me:17942: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (eval echo "$as_me:17945: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:17948: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_func_bcopy=yes
17952 echo "$as_me: failed program was:" >&5
17953 cat conftest.$ac_ext >&5
17954 ac_cv_func_bcopy=no
17956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17958 echo "$as_me:17958: result: $ac_cv_func_bcopy" >&5
17959 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17960 if test $ac_cv_func_bcopy = yes; then
17962 echo "$as_me:17962: checking if bcopy does overlapping moves" >&5
17963 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17964 if test "${cf_cv_good_bcopy+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 if test "$cross_compiling" = yes; then
17969 cf_cv_good_bcopy=unknown
17971 cat >conftest.$ac_ext <<_ACEOF
17972 #line 17972 "configure"
17973 #include "confdefs.h"
17976 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17978 bcopy(data, temp, sizeof(data));
17979 bcopy(temp+10, temp, 15);
17980 bcopy(temp+5, temp+15, 10);
17981 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
17985 rm -f conftest$ac_exeext
17986 if { (eval echo "$as_me:17986: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>&5
17989 echo "$as_me:17989: \$? = $ac_status" >&5
17990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17991 { (eval echo "$as_me:17991: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:17994: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 cf_cv_good_bcopy=yes
17998 echo "$as_me: program exited with status $ac_status" >&5
17999 echo "$as_me: failed program was:" >&5
18000 cat conftest.$ac_ext >&5
18001 cf_cv_good_bcopy=no
18003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18007 echo "$as_me:18007: result: $cf_cv_good_bcopy" >&5
18008 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
18011 cf_cv_good_bcopy=no
18014 if test "$cf_cv_good_bcopy" = yes ; then
18016 cat >>confdefs.h <<\EOF
18017 #define USE_OK_BCOPY 1
18022 cat >>confdefs.h <<\EOF
18023 #define USE_MY_MEMMOVE 1
18030 tty 2>&1 >/dev/null || {
18031 for ac_func in posix_openpt
18033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18034 echo "$as_me:18034: checking for $ac_func" >&5
18035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18036 if eval "test \"\${$as_ac_var+set}\" = set"; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 cat >conftest.$ac_ext <<_ACEOF
18040 #line 18040 "configure"
18041 #include "confdefs.h"
18042 /* System header to define __stub macros and hopefully few prototypes,
18043 which can conflict with char $ac_func (); below. */
18044 #include <assert.h>
18045 /* Override any gcc2 internal prototype to avoid an error. */
18049 /* We use char because int might match the return type of a gcc2
18050 builtin and then its argument prototype would still apply. */
18057 /* The GNU C library defines this for functions which it implements
18058 to always fail with ENOSYS. Some functions are actually named
18059 something starting with __ and the normal name is an alias. */
18060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18063 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18070 rm -f conftest.$ac_objext conftest$ac_exeext
18071 if { (eval echo "$as_me:18071: \"$ac_link\"") >&5
18072 (eval $ac_link) 2>&5
18074 echo "$as_me:18074: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -s conftest$ac_exeext'
18077 { (eval echo "$as_me:18077: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:18080: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 eval "$as_ac_var=yes"
18084 echo "$as_me: failed program was:" >&5
18085 cat conftest.$ac_ext >&5
18086 eval "$as_ac_var=no"
18088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18090 echo "$as_me:18090: result: `eval echo '${'$as_ac_var'}'`" >&5
18091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18092 if test `eval echo '${'$as_ac_var'}'` = yes; then
18093 cat >>confdefs.h <<EOF
18094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18100 echo "$as_me:18100: checking if poll really works" >&5
18101 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
18102 if test "${cf_cv_working_poll+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 if test "$cross_compiling" = yes; then
18107 cf_cv_working_poll=unknown
18109 cat >conftest.$ac_ext <<_ACEOF
18110 #line 18110 "configure"
18111 #include "confdefs.h"
18113 #include <stdlib.h>
18115 #include <unistd.h>
18120 #include <sys/poll.h>
18123 struct pollfd myfds;
18126 /* check for Darwin bug with respect to "devices" */
18127 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
18130 myfds.events = POLLIN;
18133 ret = poll(&myfds, 1, 100);
18135 if (ret < 0 || (myfds.revents & POLLNVAL)) {
18140 fd = open("/dev/tty", 2); /* O_RDWR */
18142 #ifdef HAVE_POSIX_OPENPT
18144 fd = posix_openpt(O_RDWR);
18149 /* also check with standard input */
18151 myfds.events = POLLIN;
18153 ret = poll(&myfds, 1, 100);
18158 ${cf_cv_main_return:-return}(ret < 0);
18161 rm -f conftest$ac_exeext
18162 if { (eval echo "$as_me:18162: \"$ac_link\"") >&5
18163 (eval $ac_link) 2>&5
18165 echo "$as_me:18165: \$? = $ac_status" >&5
18166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18167 { (eval echo "$as_me:18167: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18170 echo "$as_me:18170: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18172 cf_cv_working_poll=yes
18174 echo "$as_me: program exited with status $ac_status" >&5
18175 echo "$as_me: failed program was:" >&5
18176 cat conftest.$ac_ext >&5
18177 cf_cv_working_poll=no
18179 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18182 echo "$as_me:18182: result: $cf_cv_working_poll" >&5
18183 echo "${ECHO_T}$cf_cv_working_poll" >&6
18184 test "$cf_cv_working_poll" = "yes" &&
18185 cat >>confdefs.h <<\EOF
18186 #define HAVE_WORKING_POLL 1
18189 echo "$as_me:18189: checking for va_copy" >&5
18190 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18191 if test "${cf_cv_have_va_copy+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 cat >conftest.$ac_ext <<_ACEOF
18196 #line 18196 "configure"
18197 #include "confdefs.h"
18199 #include <stdarg.h>
18205 static va_list dst;
18206 static va_list src;
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (eval echo "$as_me:18213: \"$ac_link\"") >&5
18214 (eval $ac_link) 2>&5
18216 echo "$as_me:18216: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -s conftest$ac_exeext'
18219 { (eval echo "$as_me:18219: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:18222: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 cf_cv_have_va_copy=yes
18226 echo "$as_me: failed program was:" >&5
18227 cat conftest.$ac_ext >&5
18228 cf_cv_have_va_copy=no
18230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18232 echo "$as_me:18232: result: $cf_cv_have_va_copy" >&5
18233 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
18235 test "$cf_cv_have_va_copy" = yes &&
18236 cat >>confdefs.h <<\EOF
18237 #define HAVE_VA_COPY 1
18240 echo "$as_me:18240: checking for __va_copy" >&5
18241 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
18242 if test "${cf_cv_have___va_copy+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 cat >conftest.$ac_ext <<_ACEOF
18247 #line 18247 "configure"
18248 #include "confdefs.h"
18250 #include <stdarg.h>
18256 static va_list dst;
18257 static va_list src;
18258 __va_copy(dst, src)
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (eval echo "$as_me:18264: \"$ac_link\"") >&5
18265 (eval $ac_link) 2>&5
18267 echo "$as_me:18267: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -s conftest$ac_exeext'
18270 { (eval echo "$as_me:18270: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:18273: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 cf_cv_have___va_copy=yes
18277 echo "$as_me: failed program was:" >&5
18278 cat conftest.$ac_ext >&5
18279 cf_cv_have___va_copy=no
18281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18283 echo "$as_me:18283: result: $cf_cv_have___va_copy" >&5
18284 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
18286 test "$cf_cv_have___va_copy" = yes &&
18287 cat >>confdefs.h <<\EOF
18288 #define HAVE___VA_COPY 1
18291 echo "$as_me:18291: checking for pid_t" >&5
18292 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18293 if test "${ac_cv_type_pid_t+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 cat >conftest.$ac_ext <<_ACEOF
18297 #line 18297 "configure"
18298 #include "confdefs.h"
18299 $ac_includes_default
18305 if (sizeof (pid_t))
18311 rm -f conftest.$ac_objext
18312 if { (eval echo "$as_me:18312: \"$ac_compile\"") >&5
18313 (eval $ac_compile) 2>&5
18315 echo "$as_me:18315: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -s conftest.$ac_objext'
18318 { (eval echo "$as_me:18318: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18321 echo "$as_me:18321: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_cv_type_pid_t=yes
18325 echo "$as_me: failed program was:" >&5
18326 cat conftest.$ac_ext >&5
18327 ac_cv_type_pid_t=no
18329 rm -f conftest.$ac_objext conftest.$ac_ext
18331 echo "$as_me:18331: result: $ac_cv_type_pid_t" >&5
18332 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18333 if test $ac_cv_type_pid_t = yes; then
18337 cat >>confdefs.h <<EOF
18343 for ac_header in unistd.h vfork.h
18345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18346 echo "$as_me:18346: checking for $ac_header" >&5
18347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 cat >conftest.$ac_ext <<_ACEOF
18352 #line 18352 "configure"
18353 #include "confdefs.h"
18354 #include <$ac_header>
18356 if { (eval echo "$as_me:18356: \"$ac_cpp conftest.$ac_ext\"") >&5
18357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18359 egrep -v '^ *\+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:18362: \$? = $ac_status" >&5
18363 (exit $ac_status); } >/dev/null; then
18364 if test -s conftest.err; then
18365 ac_cpp_err=$ac_c_preproc_warn_flag
18372 if test -z "$ac_cpp_err"; then
18373 eval "$as_ac_Header=yes"
18375 echo "$as_me: failed program was:" >&5
18376 cat conftest.$ac_ext >&5
18377 eval "$as_ac_Header=no"
18379 rm -f conftest.err conftest.$ac_ext
18381 echo "$as_me:18381: result: `eval echo '${'$as_ac_Header'}'`" >&5
18382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18384 cat >>confdefs.h <<EOF
18385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18391 for ac_func in fork vfork
18393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18394 echo "$as_me:18394: checking for $ac_func" >&5
18395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18396 if eval "test \"\${$as_ac_var+set}\" = set"; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 cat >conftest.$ac_ext <<_ACEOF
18400 #line 18400 "configure"
18401 #include "confdefs.h"
18402 /* System header to define __stub macros and hopefully few prototypes,
18403 which can conflict with char $ac_func (); below. */
18404 #include <assert.h>
18405 /* Override any gcc2 internal prototype to avoid an error. */
18409 /* We use char because int might match the return type of a gcc2
18410 builtin and then its argument prototype would still apply. */
18417 /* The GNU C library defines this for functions which it implements
18418 to always fail with ENOSYS. Some functions are actually named
18419 something starting with __ and the normal name is an alias. */
18420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18423 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (eval echo "$as_me:18431: \"$ac_link\"") >&5
18432 (eval $ac_link) 2>&5
18434 echo "$as_me:18434: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -s conftest$ac_exeext'
18437 { (eval echo "$as_me:18437: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18440 echo "$as_me:18440: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 eval "$as_ac_var=yes"
18444 echo "$as_me: failed program was:" >&5
18445 cat conftest.$ac_ext >&5
18446 eval "$as_ac_var=no"
18448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18450 echo "$as_me:18450: result: `eval echo '${'$as_ac_var'}'`" >&5
18451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18452 if test `eval echo '${'$as_ac_var'}'` = yes; then
18453 cat >>confdefs.h <<EOF
18454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18460 ac_cv_func_fork_works=$ac_cv_func_fork
18461 if test "x$ac_cv_func_fork" = xyes; then
18462 echo "$as_me:18462: checking for working fork" >&5
18463 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18464 if test "${ac_cv_func_fork_works+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 if test "$cross_compiling" = yes; then
18468 ac_cv_func_fork_works=cross
18470 cat >conftest.$ac_ext <<_ACEOF
18471 /* By Rüdiger Kuhlmann. */
18472 #include <sys/types.h>
18474 # include <unistd.h>
18476 /* Some systems only have a dummy stub for fork() */
18480 $ac_main_return (1);
18481 $ac_main_return (0);
18484 rm -f conftest$ac_exeext
18485 if { (eval echo "$as_me:18485: \"$ac_link\"") >&5
18486 (eval $ac_link) 2>&5
18488 echo "$as_me:18488: \$? = $ac_status" >&5
18489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18490 { (eval echo "$as_me:18490: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18493 echo "$as_me:18493: \$? = $ac_status" >&5
18494 (exit $ac_status); }; }; then
18495 ac_cv_func_fork_works=yes
18497 echo "$as_me: program exited with status $ac_status" >&5
18498 echo "$as_me: failed program was:" >&5
18499 cat conftest.$ac_ext >&5
18500 ac_cv_func_fork_works=no
18502 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18505 echo "$as_me:18505: result: $ac_cv_func_fork_works" >&5
18506 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18509 if test "x$ac_cv_func_fork_works" = xcross; then
18511 *-*-amigaos* | *-*-msdosdjgpp*)
18512 # Override, as these systems have only a dummy fork() stub
18513 ac_cv_func_fork_works=no
18516 ac_cv_func_fork_works=yes
18519 { echo "$as_me:18519: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18520 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18522 ac_cv_func_vfork_works=$ac_cv_func_vfork
18523 if test "x$ac_cv_func_vfork" = xyes; then
18524 echo "$as_me:18524: checking for working vfork" >&5
18525 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18526 if test "${ac_cv_func_vfork_works+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 if test "$cross_compiling" = yes; then
18530 ac_cv_func_vfork_works=cross
18532 cat >conftest.$ac_ext <<_ACEOF
18533 #line 18533 "configure"
18534 #include "confdefs.h"
18535 /* Thanks to Paul Eggert for this test. */
18537 #include <sys/types.h>
18538 #include <sys/stat.h>
18540 # include <unistd.h>
18543 # include <vfork.h>
18545 /* On some sparc systems, changes by the child to local and incoming
18546 argument registers are propagated back to the parent. The compiler
18547 is told about this with #include <vfork.h>, but some compilers
18548 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18549 static variable whose address is put into a register that is
18550 clobbered by the vfork. */
18553 sparc_address_test (int arg)
18555 sparc_address_test (arg) int arg;
18558 static pid_t child;
18576 pid_t parent = getpid ();
18579 sparc_address_test ();
18584 /* Here is another test for sparc vfork register problems. This
18585 test uses lots of local variables, at least as many local
18586 variables as main has allocated so far including compiler
18587 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18588 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18589 reuse the register of parent for one of the local variables,
18590 since it will think that parent can't possibly be used any more
18591 in this routine. Assigning to the local variable will thus
18592 munge parent in the parent process. */
18594 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18595 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18596 /* Convince the compiler that p..p7 are live; otherwise, it might
18597 use the same hardware register for all 8 local variables. */
18598 if (p != p1 || p != p2 || p != p3 || p != p4
18599 || p != p5 || p != p6 || p != p7)
18602 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18603 from child file descriptors. If the child closes a descriptor
18604 before it execs or exits, this munges the parent's descriptor
18605 as well. Test for this by closing stdout in the child. */
18606 _exit(close(fileno(stdout)) != 0);
18611 while (wait(&status) != child)
18614 /* Was there some problem with vforking? */
18617 /* Did the child fail? (This shouldn't happen.) */
18620 /* Did the vfork/compiler bug occur? */
18621 || parent != getpid()
18623 /* Did the file descriptor bug occur? */
18624 || fstat(fileno(stdout), &st) != 0
18629 rm -f conftest$ac_exeext
18630 if { (eval echo "$as_me:18630: \"$ac_link\"") >&5
18631 (eval $ac_link) 2>&5
18633 echo "$as_me:18633: \$? = $ac_status" >&5
18634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18635 { (eval echo "$as_me:18635: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18638 echo "$as_me:18638: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 ac_cv_func_vfork_works=yes
18642 echo "$as_me: program exited with status $ac_status" >&5
18643 echo "$as_me: failed program was:" >&5
18644 cat conftest.$ac_ext >&5
18645 ac_cv_func_vfork_works=no
18647 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18650 echo "$as_me:18650: result: $ac_cv_func_vfork_works" >&5
18651 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18654 if test "x$ac_cv_func_fork_works" = xcross; then
18655 ac_cv_func_vfork_works=ac_cv_func_vfork
18656 { echo "$as_me:18656: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18657 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18660 if test "x$ac_cv_func_vfork_works" = xyes; then
18662 cat >>confdefs.h <<\EOF
18663 #define HAVE_WORKING_VFORK 1
18668 cat >>confdefs.h <<\EOF
18673 if test "x$ac_cv_func_fork_works" = xyes; then
18675 cat >>confdefs.h <<\EOF
18676 #define HAVE_WORKING_FORK 1
18681 # special check for test/ditto.c
18683 echo "$as_me:18683: checking for openpty in -lutil" >&5
18684 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18685 if test "${ac_cv_lib_util_openpty+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 ac_check_lib_save_LIBS=$LIBS
18689 LIBS="-lutil $LIBS"
18690 cat >conftest.$ac_ext <<_ACEOF
18691 #line 18691 "configure"
18692 #include "confdefs.h"
18694 /* Override any gcc2 internal prototype to avoid an error. */
18698 /* We use char because int might match the return type of a gcc2
18699 builtin and then its argument prototype would still apply. */
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (eval echo "$as_me:18710: \"$ac_link\"") >&5
18711 (eval $ac_link) 2>&5
18713 echo "$as_me:18713: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -s conftest$ac_exeext'
18716 { (eval echo "$as_me:18716: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:18719: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_lib_util_openpty=yes
18723 echo "$as_me: failed program was:" >&5
18724 cat conftest.$ac_ext >&5
18725 ac_cv_lib_util_openpty=no
18727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18728 LIBS=$ac_check_lib_save_LIBS
18730 echo "$as_me:18730: result: $ac_cv_lib_util_openpty" >&5
18731 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18732 if test $ac_cv_lib_util_openpty = yes; then
18738 echo "$as_me:18738: checking for openpty header" >&5
18739 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18740 if test "${cf_cv_func_openpty+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 cf_save_LIBS="$LIBS"
18745 test $cf_cv_lib_util = yes && {
18746 cf_add_libs="-lutil"
18747 # Filter out duplicates - this happens with badly-designed ".pc" files...
18748 for cf_add_1lib in $LIBS
18750 for cf_add_2lib in $cf_add_libs
18752 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18758 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18760 LIBS="$cf_add_libs"
18762 for cf_header in pty.h libutil.h util.h
18764 cat >conftest.$ac_ext <<_ACEOF
18765 #line 18765 "configure"
18766 #include "confdefs.h"
18768 #include <$cf_header>
18774 int x = openpty((int *)0, (int *)0, (char *)0,
18775 (struct termios *)0, (struct winsize *)0);
18781 rm -f conftest.$ac_objext conftest$ac_exeext
18782 if { (eval echo "$as_me:18782: \"$ac_link\"") >&5
18783 (eval $ac_link) 2>&5
18785 echo "$as_me:18785: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:18788: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:18791: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18794 cf_cv_func_openpty=$cf_header
18798 echo "$as_me: failed program was:" >&5
18799 cat conftest.$ac_ext >&5
18801 cf_cv_func_openpty=no
18804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18806 LIBS="$cf_save_LIBS"
18809 echo "$as_me:18809: result: $cf_cv_func_openpty" >&5
18810 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18812 if test "$cf_cv_func_openpty" != no ; then
18814 cat >>confdefs.h <<EOF
18815 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18818 cat >>confdefs.h <<\EOF
18819 #define USE_XTERM_PTY 1
18822 if test "x$cf_cv_lib_util" = xyes ; then
18824 cf_add_libs="-lutil"
18825 # Filter out duplicates - this happens with badly-designed ".pc" files...
18826 for cf_add_1lib in $TEST_LIBS
18828 for cf_add_2lib in $cf_add_libs
18830 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18836 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18838 TEST_LIBS="$cf_add_libs"
18843 if test "$with_hashed_db" != no ; then
18845 cat >>confdefs.h <<\EOF
18846 #define USE_HASHED_DB 1
18849 case $with_hashed_db in
18853 if test -d "$with_hashed_db" ; then
18855 if test -n "$with_hashed_db/include" ; then
18856 for cf_add_incdir in $with_hashed_db/include
18858 while test $cf_add_incdir != /usr/include
18860 if test -d $cf_add_incdir
18863 if test -n "$CFLAGS$CPPFLAGS" ; then
18864 # a loop is needed to ensure we can add subdirs of existing dirs
18865 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18866 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18867 cf_have_incdir=yes; break
18872 if test "$cf_have_incdir" = no ; then
18873 if test "$cf_add_incdir" = /usr/local/include ; then
18874 if test "$GCC" = yes
18876 cf_save_CPPFLAGS=$CPPFLAGS
18877 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18878 cat >conftest.$ac_ext <<_ACEOF
18879 #line 18879 "configure"
18880 #include "confdefs.h"
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:18891: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>&5
18894 echo "$as_me:18894: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -s conftest.$ac_objext'
18897 { (eval echo "$as_me:18897: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18900 echo "$as_me:18900: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18904 echo "$as_me: failed program was:" >&5
18905 cat conftest.$ac_ext >&5
18908 rm -f conftest.$ac_objext conftest.$ac_ext
18909 CPPFLAGS=$cf_save_CPPFLAGS
18914 if test "$cf_have_incdir" = no ; then
18915 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18917 echo "${as_me:-configure}:18917: testing adding $cf_add_incdir to include-path ..." 1>&5
18919 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18921 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18922 test "$cf_top_incdir" = "$cf_add_incdir" && break
18923 cf_add_incdir="$cf_top_incdir"
18934 if test -n "$with_hashed_db/lib" ; then
18935 for cf_add_libdir in $with_hashed_db/lib
18937 if test $cf_add_libdir = /usr/lib ; then
18939 elif test -d $cf_add_libdir
18942 if test -n "$LDFLAGS$LIBS" ; then
18943 # a loop is needed to ensure we can add subdirs of existing dirs
18944 for cf_test_libdir in $LDFLAGS $LIBS ; do
18945 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18946 cf_have_libdir=yes; break
18950 if test "$cf_have_libdir" = no ; then
18951 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18953 echo "${as_me:-configure}:18953: testing adding $cf_add_libdir to library-path ..." 1>&5
18955 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18962 case "$with_hashed_db" in
18964 { echo "$as_me:18964: WARNING: no such directory $with_hashed_db" >&5
18965 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18971 test "x$prefix" != "xNONE" && \
18972 test -d "$prefix" && \
18974 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18975 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18976 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18977 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18978 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18979 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
18982 for cf_subdir_prefix in \
18991 test "x$cf_subdir_prefix" != "x$prefix" && \
18992 test -d "$cf_subdir_prefix" && \
18993 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18994 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
18995 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
18996 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
18997 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
18998 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
18999 test -d $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db"
19004 for cf_item in $cf_search
19007 (*/$with_hashed_db)
19009 if test -n "$cf_item" ; then
19010 for cf_add_incdir in $cf_item
19012 while test $cf_add_incdir != /usr/include
19014 if test -d $cf_add_incdir
19017 if test -n "$CFLAGS$CPPFLAGS" ; then
19018 # a loop is needed to ensure we can add subdirs of existing dirs
19019 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19020 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19021 cf_have_incdir=yes; break
19026 if test "$cf_have_incdir" = no ; then
19027 if test "$cf_add_incdir" = /usr/local/include ; then
19028 if test "$GCC" = yes
19030 cf_save_CPPFLAGS=$CPPFLAGS
19031 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19032 cat >conftest.$ac_ext <<_ACEOF
19033 #line 19033 "configure"
19034 #include "confdefs.h"
19044 rm -f conftest.$ac_objext
19045 if { (eval echo "$as_me:19045: \"$ac_compile\"") >&5
19046 (eval $ac_compile) 2>&5
19048 echo "$as_me:19048: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -s conftest.$ac_objext'
19051 { (eval echo "$as_me:19051: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:19054: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19058 echo "$as_me: failed program was:" >&5
19059 cat conftest.$ac_ext >&5
19062 rm -f conftest.$ac_objext conftest.$ac_ext
19063 CPPFLAGS=$cf_save_CPPFLAGS
19068 if test "$cf_have_incdir" = no ; then
19069 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19071 echo "${as_me:-configure}:19071: testing adding $cf_add_incdir to include-path ..." 1>&5
19073 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19075 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19076 test "$cf_top_incdir" = "$cf_add_incdir" && break
19077 cf_add_incdir="$cf_top_incdir"
19094 test "x$prefix" != "xNONE" && \
19095 test -d "$prefix" && \
19097 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
19098 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
19099 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
19100 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
19101 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
19102 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
19105 for cf_subdir_prefix in \
19114 test "x$cf_subdir_prefix" != "x$prefix" && \
19115 test -d "$cf_subdir_prefix" && \
19116 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19117 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
19118 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
19119 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
19120 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
19121 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
19122 test -d $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db"
19127 for cf_item in $cf_search
19130 (*/$with_hashed_db)
19132 if test -n "$cf_item" ; then
19133 for cf_add_libdir in $cf_item
19135 if test $cf_add_libdir = /usr/lib ; then
19137 elif test -d $cf_add_libdir
19140 if test -n "$LDFLAGS$LIBS" ; then
19141 # a loop is needed to ensure we can add subdirs of existing dirs
19142 for cf_test_libdir in $LDFLAGS $LIBS ; do
19143 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19144 cf_have_libdir=yes; break
19148 if test "$cf_have_libdir" = no ; then
19149 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19151 echo "${as_me:-configure}:19151: testing adding $cf_add_libdir to library-path ..." 1>&5
19153 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19168 echo "$as_me:19168: checking for db.h" >&5
19169 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
19170 if test "${ac_cv_header_db_h+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19174 #line 19174 "configure"
19175 #include "confdefs.h"
19178 if { (eval echo "$as_me:19178: \"$ac_cpp conftest.$ac_ext\"") >&5
19179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19181 egrep -v '^ *\+' conftest.er1 >conftest.err
19183 cat conftest.err >&5
19184 echo "$as_me:19184: \$? = $ac_status" >&5
19185 (exit $ac_status); } >/dev/null; then
19186 if test -s conftest.err; then
19187 ac_cpp_err=$ac_c_preproc_warn_flag
19194 if test -z "$ac_cpp_err"; then
19195 ac_cv_header_db_h=yes
19197 echo "$as_me: failed program was:" >&5
19198 cat conftest.$ac_ext >&5
19199 ac_cv_header_db_h=no
19201 rm -f conftest.err conftest.$ac_ext
19203 echo "$as_me:19203: result: $ac_cv_header_db_h" >&5
19204 echo "${ECHO_T}$ac_cv_header_db_h" >&6
19205 if test $ac_cv_header_db_h = yes; then
19207 echo "$as_me:19207: checking for version of db" >&5
19208 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
19209 if test "${cf_cv_hashed_db_version+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 cf_cv_hashed_db_version=unknown
19215 for cf_db_version in 1 2 3 4 5 6
19218 echo "${as_me:-configure}:19218: testing checking for db version $cf_db_version ..." 1>&5
19220 cat >conftest.$ac_ext <<_ACEOF
19221 #line 19221 "configure"
19222 #include "confdefs.h"
19224 $ac_includes_default
19227 #ifdef DB_VERSION_MAJOR
19228 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
19229 #if $cf_db_version == DB_VERSION_MAJOR
19235 #if $cf_db_version == 1
19236 /* ok: assuming this is DB 1.8.5 */
19250 rm -f conftest.$ac_objext
19251 if { (eval echo "$as_me:19251: \"$ac_compile\"") >&5
19252 (eval $ac_compile) 2>&5
19254 echo "$as_me:19254: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -s conftest.$ac_objext'
19257 { (eval echo "$as_me:19257: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:19260: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19263 cf_cv_hashed_db_version=$cf_db_version
19267 echo "$as_me: failed program was:" >&5
19268 cat conftest.$ac_ext >&5
19270 rm -f conftest.$ac_objext conftest.$ac_ext
19274 echo "$as_me:19274: result: $cf_cv_hashed_db_version" >&5
19275 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
19277 if test "$cf_cv_hashed_db_version" = unknown ; then
19278 { { echo "$as_me:19278: error: Cannot determine version of db" >&5
19279 echo "$as_me: error: Cannot determine version of db" >&2;}
19280 { (exit 1); exit 1; }; }
19283 echo "$as_me:19283: checking for db libraries" >&5
19284 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
19285 if test "${cf_cv_hashed_db_libs+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 cf_cv_hashed_db_libs=unknown
19290 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
19292 cf_save_libs="$LIBS"
19293 if test -n "$cf_db_libs"; then
19295 cf_add_libs="-l$cf_db_libs"
19296 # Filter out duplicates - this happens with badly-designed ".pc" files...
19297 for cf_add_1lib in $LIBS
19299 for cf_add_2lib in $cf_add_libs
19301 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19309 LIBS="$cf_add_libs"
19313 echo "${as_me:-configure}:19313: testing checking for library "$cf_db_libs" ..." 1>&5
19315 cat >conftest.$ac_ext <<_ACEOF
19316 #line 19316 "configure"
19317 #include "confdefs.h"
19319 $ac_includes_default
19326 char *path = "/tmp/foo";
19327 #ifdef DB_VERSION_MAJOR
19328 #if DB_VERSION_MAJOR >= 4
19330 db_create(&result, NULL, 0);
19331 result->open(result,
19338 #elif DB_VERSION_MAJOR >= 3
19340 db_create(&result, NULL, 0);
19341 result->open(result,
19347 #elif DB_VERSION_MAJOR >= 2
19356 #endif /* DB_VERSION_MAJOR */
19358 DB *result = dbopen(path,
19364 ${cf_cv_main_return:-return}(result != 0)
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (eval echo "$as_me:19371: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>&5
19374 echo "$as_me:19374: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -s conftest$ac_exeext'
19377 { (eval echo "$as_me:19377: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:19380: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19383 if test -n "$cf_db_libs" ; then
19384 cf_cv_hashed_db_libs=$cf_db_libs
19386 cf_cv_hashed_db_libs=default
19388 LIBS="$cf_save_libs"
19392 echo "$as_me: failed program was:" >&5
19393 cat conftest.$ac_ext >&5
19395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19396 LIBS="$cf_save_libs"
19400 echo "$as_me:19400: result: $cf_cv_hashed_db_libs" >&5
19401 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19403 if test "$cf_cv_hashed_db_libs" = unknown ; then
19404 { { echo "$as_me:19404: error: Cannot determine library for db" >&5
19405 echo "$as_me: error: Cannot determine library for db" >&2;}
19406 { (exit 1); exit 1; }; }
19407 elif test "$cf_cv_hashed_db_libs" != default ; then
19409 cf_add_libs="-l$cf_cv_hashed_db_libs"
19410 # Filter out duplicates - this happens with badly-designed ".pc" files...
19411 for cf_add_1lib in $LIBS
19413 for cf_add_2lib in $cf_add_libs
19415 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19421 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19423 LIBS="$cf_add_libs"
19430 { { echo "$as_me:19430: error: Cannot find db.h" >&5
19431 echo "$as_me: error: Cannot find db.h" >&2;}
19432 { (exit 1); exit 1; }; }
19438 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19439 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19440 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19443 # Just in case, check if the C compiler has a bool type.
19445 echo "$as_me:19445: checking if we should include stdbool.h" >&5
19446 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19448 if test "${cf_cv_header_stdbool_h+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 cat >conftest.$ac_ext <<_ACEOF
19453 #line 19453 "configure"
19454 #include "confdefs.h"
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:19465: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>&5
19468 echo "$as_me:19468: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:19471: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:19474: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 cf_cv_header_stdbool_h=0
19478 echo "$as_me: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19480 cat >conftest.$ac_ext <<_ACEOF
19481 #line 19481 "configure"
19482 #include "confdefs.h"
19485 #include <stdbool.h>
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:19497: \"$ac_compile\"") >&5
19498 (eval $ac_compile) 2>&5
19500 echo "$as_me:19500: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (eval echo "$as_me:19503: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:19506: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 cf_cv_header_stdbool_h=1
19510 echo "$as_me: failed program was:" >&5
19511 cat conftest.$ac_ext >&5
19512 cf_cv_header_stdbool_h=0
19514 rm -f conftest.$ac_objext conftest.$ac_ext
19516 rm -f conftest.$ac_objext conftest.$ac_ext
19519 if test "$cf_cv_header_stdbool_h" = 1
19520 then echo "$as_me:19520: result: yes" >&5
19521 echo "${ECHO_T}yes" >&6
19522 else echo "$as_me:19522: result: no" >&5
19523 echo "${ECHO_T}no" >&6
19526 echo "$as_me:19526: checking for builtin bool type" >&5
19527 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19529 if test "${cf_cv_cc_bool_type+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19534 #line 19534 "configure"
19535 #include "confdefs.h"
19538 #include <sys/types.h>
19548 rm -f conftest.$ac_objext
19549 if { (eval echo "$as_me:19549: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>&5
19552 echo "$as_me:19552: \$? = $ac_status" >&5
19553 (exit $ac_status); } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:19555: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:19558: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 cf_cv_cc_bool_type=1
19562 echo "$as_me: failed program was:" >&5
19563 cat conftest.$ac_ext >&5
19564 cf_cv_cc_bool_type=0
19566 rm -f conftest.$ac_objext conftest.$ac_ext
19570 if test "$cf_cv_cc_bool_type" = 1
19571 then echo "$as_me:19571: result: yes" >&5
19572 echo "${ECHO_T}yes" >&6
19573 else echo "$as_me:19573: result: no" >&5
19574 echo "${ECHO_T}no" >&6
19577 # Check for C++ compiler characteristics (and ensure that it's there!)
19578 if test -n "$CXX" ; then
19580 ac_cpp='$CXXCPP $CPPFLAGS'
19581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19584 ac_main_return=return
19586 if test -n "$GXX" ; then
19589 LIBS="$LIBS $CXXLIBS"
19590 echo "$as_me:19590: checking if we already have C++ library" >&5
19591 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
19592 cat >conftest.$ac_ext <<_ACEOF
19593 #line 19593 "configure"
19594 #include "confdefs.h"
19596 #include <iostream>
19601 std::cout << "Hello World!" << std::endl;
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (eval echo "$as_me:19607: \"$ac_link\"") >&5
19608 (eval $ac_link) 2>&5
19610 echo "$as_me:19610: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -s conftest$ac_exeext'
19613 { (eval echo "$as_me:19613: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19616 echo "$as_me:19616: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 cf_have_libstdcpp=yes
19620 echo "$as_me: failed program was:" >&5
19621 cat conftest.$ac_ext >&5
19622 cf_have_libstdcpp=no
19624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19625 echo "$as_me:19625: result: $cf_have_libstdcpp" >&5
19626 echo "${ECHO_T}$cf_have_libstdcpp" >&6
19629 if test $cf_have_libstdcpp != yes
19631 case $cf_cv_system_name in
19633 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
19634 cf_stdcpp_libname=stdcpp
19636 cf_stdcpp_libname=stdc++
19640 cf_stdcpp_libname=stdc++
19644 echo "$as_me:19644: checking for library $cf_stdcpp_libname" >&5
19645 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19646 if test "${cf_cv_libstdcpp+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19651 LIBS="$LIBS $CXXLIBS"
19653 cf_add_libs="-l$cf_stdcpp_libname"
19654 # Filter out duplicates - this happens with badly-designed ".pc" files...
19655 for cf_add_1lib in $LIBS
19657 for cf_add_2lib in $cf_add_libs
19659 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19665 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19667 LIBS="$cf_add_libs"
19669 cat >conftest.$ac_ext <<_ACEOF
19670 #line 19670 "configure"
19671 #include "confdefs.h"
19673 #include <iostream>
19678 std::cout << "Hello World!" << std::endl;
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (eval echo "$as_me:19684: \"$ac_link\"") >&5
19685 (eval $ac_link) 2>&5
19687 echo "$as_me:19687: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -s conftest$ac_exeext'
19690 { (eval echo "$as_me:19690: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19693 echo "$as_me:19693: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 cf_cv_libstdcpp=yes
19697 echo "$as_me: failed program was:" >&5
19698 cat conftest.$ac_ext >&5
19701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19705 echo "$as_me:19705: result: $cf_cv_libstdcpp" >&5
19706 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19707 test "$cf_cv_libstdcpp" = yes && {
19708 cf_add_libs="-l$cf_stdcpp_libname"
19709 # Filter out duplicates - this happens with badly-designed ".pc" files...
19710 for cf_add_1lib in $CXXLIBS
19712 for cf_add_2lib in $cf_add_libs
19714 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19720 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19722 CXXLIBS="$cf_add_libs"
19727 echo "$as_me:19727: checking whether $CXX understands -c and -o together" >&5
19728 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19729 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 cat > conftest.$ac_ext <<CF_EOF
19737 ${cf_cv_main_return:-return}(0);
19740 # We do the test twice because some compilers refuse to overwrite an
19741 # existing .o file with -o, though they will create one.
19742 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19743 if { (eval echo "$as_me:19743: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:19746: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 test -f conftest2.$ac_objext && { (eval echo "$as_me:19748: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:19751: \$? = $ac_status" >&5
19752 (exit $ac_status); };
19754 eval cf_cv_prog_CXX_c_o=yes
19756 eval cf_cv_prog_CXX_c_o=no
19761 if test $cf_cv_prog_CXX_c_o = yes; then
19762 echo "$as_me:19762: result: yes" >&5
19763 echo "${ECHO_T}yes" >&6
19765 echo "$as_me:19765: result: no" >&5
19766 echo "${ECHO_T}no" >&6
19769 case $GXX_VERSION in
19775 cf_cxx_library=unknown
19776 case $cf_cv_system_name in
19784 if test "$GXX" = yes; then
19785 echo "$as_me:19785: checking for lib$cf_gpp_libname" >&5
19786 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19789 cf_add_libs="-l$cf_gpp_libname"
19790 # Filter out duplicates - this happens with badly-designed ".pc" files...
19791 for cf_add_1lib in $LIBS
19793 for cf_add_2lib in $cf_add_libs
19795 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19801 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19803 LIBS="$cf_add_libs"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 #line 19806 "configure"
19807 #include "confdefs.h"
19809 #include <$cf_gpp_libname/builtin.h>
19814 two_arg_error_handler_t foo2 = lib_error_handler
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:19820: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19823 echo "$as_me:19823: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:19826: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:19829: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19833 cf_add_libs="-l$cf_gpp_libname"
19834 # Filter out duplicates - this happens with badly-designed ".pc" files...
19835 for cf_add_1lib in $CXXLIBS
19837 for cf_add_2lib in $cf_add_libs
19839 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19845 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19847 CXXLIBS="$cf_add_libs"
19849 if test "$cf_gpp_libname" = cpp ; then
19851 cat >>confdefs.h <<\EOF
19852 #define HAVE_GPP_BUILTIN_H 1
19857 cat >>confdefs.h <<\EOF
19858 #define HAVE_GXX_BUILTIN_H 1
19863 echo "$as_me: failed program was:" >&5
19864 cat conftest.$ac_ext >&5
19865 cat >conftest.$ac_ext <<_ACEOF
19866 #line 19866 "configure"
19867 #include "confdefs.h"
19869 #include <builtin.h>
19874 two_arg_error_handler_t foo2 = lib_error_handler
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (eval echo "$as_me:19880: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>&5
19883 echo "$as_me:19883: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -s conftest$ac_exeext'
19886 { (eval echo "$as_me:19886: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:19889: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19893 cf_add_libs="-l$cf_gpp_libname"
19894 # Filter out duplicates - this happens with badly-designed ".pc" files...
19895 for cf_add_1lib in $CXXLIBS
19897 for cf_add_2lib in $cf_add_libs
19899 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19905 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19907 CXXLIBS="$cf_add_libs"
19909 cat >>confdefs.h <<\EOF
19910 #define HAVE_BUILTIN_H 1
19914 echo "$as_me: failed program was:" >&5
19915 cat conftest.$ac_ext >&5
19918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19922 echo "$as_me:19922: result: $cf_cxx_library" >&5
19923 echo "${ECHO_T}$cf_cxx_library" >&6
19933 ac_cpp='$CXXCPP $CPPFLAGS'
19934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19937 ac_main_return=return
19938 echo "$as_me:19938: checking how to run the C++ preprocessor" >&5
19939 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19940 if test -z "$CXXCPP"; then
19941 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 # Double quotes because CXXCPP needs to be expanded
19945 for CXXCPP in "$CXX -E" "/lib/cpp"
19947 ac_preproc_ok=false
19948 for ac_cxx_preproc_warn_flag in '' yes
19950 # Use a header file that comes with gcc, so configuring glibc
19951 # with a fresh cross-compiler works.
19952 # On the NeXT, cc -E runs the code through the compiler's parser,
19953 # not just through cpp. "Syntax error" is here to catch this case.
19954 cat >conftest.$ac_ext <<_ACEOF
19955 #line 19955 "configure"
19956 #include "confdefs.h"
19957 #include <assert.h>
19960 if { (eval echo "$as_me:19960: \"$ac_cpp conftest.$ac_ext\"") >&5
19961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19963 egrep -v '^ *\+' conftest.er1 >conftest.err
19965 cat conftest.err >&5
19966 echo "$as_me:19966: \$? = $ac_status" >&5
19967 (exit $ac_status); } >/dev/null; then
19968 if test -s conftest.err; then
19969 ac_cpp_err=$ac_cxx_preproc_warn_flag
19976 if test -z "$ac_cpp_err"; then
19979 echo "$as_me: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 # Broken: fails on valid input.
19984 rm -f conftest.err conftest.$ac_ext
19986 # OK, works on sane cases. Now check whether non-existent headers
19987 # can be detected and how.
19988 cat >conftest.$ac_ext <<_ACEOF
19989 #line 19989 "configure"
19990 #include "confdefs.h"
19991 #include <ac_nonexistent.h>
19993 if { (eval echo "$as_me:19993: \"$ac_cpp conftest.$ac_ext\"") >&5
19994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19996 egrep -v '^ *\+' conftest.er1 >conftest.err
19998 cat conftest.err >&5
19999 echo "$as_me:19999: \$? = $ac_status" >&5
20000 (exit $ac_status); } >/dev/null; then
20001 if test -s conftest.err; then
20002 ac_cpp_err=$ac_cxx_preproc_warn_flag
20009 if test -z "$ac_cpp_err"; then
20010 # Broken: success on invalid input.
20013 echo "$as_me: failed program was:" >&5
20014 cat conftest.$ac_ext >&5
20015 # Passes both tests.
20019 rm -f conftest.err conftest.$ac_ext
20022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20023 rm -f conftest.err conftest.$ac_ext
20024 if $ac_preproc_ok; then
20029 ac_cv_prog_CXXCPP=$CXXCPP
20032 CXXCPP=$ac_cv_prog_CXXCPP
20034 ac_cv_prog_CXXCPP=$CXXCPP
20036 echo "$as_me:20036: result: $CXXCPP" >&5
20037 echo "${ECHO_T}$CXXCPP" >&6
20038 ac_preproc_ok=false
20039 for ac_cxx_preproc_warn_flag in '' yes
20041 # Use a header file that comes with gcc, so configuring glibc
20042 # with a fresh cross-compiler works.
20043 # On the NeXT, cc -E runs the code through the compiler's parser,
20044 # not just through cpp. "Syntax error" is here to catch this case.
20045 cat >conftest.$ac_ext <<_ACEOF
20046 #line 20046 "configure"
20047 #include "confdefs.h"
20048 #include <assert.h>
20051 if { (eval echo "$as_me:20051: \"$ac_cpp conftest.$ac_ext\"") >&5
20052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20054 egrep -v '^ *\+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:20057: \$? = $ac_status" >&5
20058 (exit $ac_status); } >/dev/null; then
20059 if test -s conftest.err; then
20060 ac_cpp_err=$ac_cxx_preproc_warn_flag
20067 if test -z "$ac_cpp_err"; then
20070 echo "$as_me: failed program was:" >&5
20071 cat conftest.$ac_ext >&5
20072 # Broken: fails on valid input.
20075 rm -f conftest.err conftest.$ac_ext
20077 # OK, works on sane cases. Now check whether non-existent headers
20078 # can be detected and how.
20079 cat >conftest.$ac_ext <<_ACEOF
20080 #line 20080 "configure"
20081 #include "confdefs.h"
20082 #include <ac_nonexistent.h>
20084 if { (eval echo "$as_me:20084: \"$ac_cpp conftest.$ac_ext\"") >&5
20085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20087 egrep -v '^ *\+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:20090: \$? = $ac_status" >&5
20091 (exit $ac_status); } >/dev/null; then
20092 if test -s conftest.err; then
20093 ac_cpp_err=$ac_cxx_preproc_warn_flag
20100 if test -z "$ac_cpp_err"; then
20101 # Broken: success on invalid input.
20104 echo "$as_me: failed program was:" >&5
20105 cat conftest.$ac_ext >&5
20106 # Passes both tests.
20110 rm -f conftest.err conftest.$ac_ext
20113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20114 rm -f conftest.err conftest.$ac_ext
20115 if $ac_preproc_ok; then
20118 { { echo "$as_me:20118: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
20119 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
20120 { (exit 1); exit 1; }; }
20124 ac_cpp='$CXXCPP $CPPFLAGS'
20125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20128 ac_main_return=return
20130 for ac_header in typeinfo
20132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20133 echo "$as_me:20133: checking for $ac_header" >&5
20134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20139 #line 20139 "configure"
20140 #include "confdefs.h"
20141 #include <$ac_header>
20143 if { (eval echo "$as_me:20143: \"$ac_cpp conftest.$ac_ext\"") >&5
20144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20146 egrep -v '^ *\+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:20149: \$? = $ac_status" >&5
20150 (exit $ac_status); } >/dev/null; then
20151 if test -s conftest.err; then
20152 ac_cpp_err=$ac_cxx_preproc_warn_flag
20159 if test -z "$ac_cpp_err"; then
20160 eval "$as_ac_Header=yes"
20162 echo "$as_me: failed program was:" >&5
20163 cat conftest.$ac_ext >&5
20164 eval "$as_ac_Header=no"
20166 rm -f conftest.err conftest.$ac_ext
20168 echo "$as_me:20168: result: `eval echo '${'$as_ac_Header'}'`" >&5
20169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20171 cat >>confdefs.h <<EOF
20172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20178 for ac_header in iostream
20180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20181 echo "$as_me:20181: checking for $ac_header" >&5
20182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 cat >conftest.$ac_ext <<_ACEOF
20187 #line 20187 "configure"
20188 #include "confdefs.h"
20189 #include <$ac_header>
20191 if { (eval echo "$as_me:20191: \"$ac_cpp conftest.$ac_ext\"") >&5
20192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20194 egrep -v '^ *\+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 echo "$as_me:20197: \$? = $ac_status" >&5
20198 (exit $ac_status); } >/dev/null; then
20199 if test -s conftest.err; then
20200 ac_cpp_err=$ac_cxx_preproc_warn_flag
20207 if test -z "$ac_cpp_err"; then
20208 eval "$as_ac_Header=yes"
20210 echo "$as_me: failed program was:" >&5
20211 cat conftest.$ac_ext >&5
20212 eval "$as_ac_Header=no"
20214 rm -f conftest.err conftest.$ac_ext
20216 echo "$as_me:20216: result: `eval echo '${'$as_ac_Header'}'`" >&5
20217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20219 cat >>confdefs.h <<EOF
20220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20226 if test x"$ac_cv_header_iostream" = xyes ; then
20227 echo "$as_me:20227: checking if iostream uses std-namespace" >&5
20228 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
20229 cat >conftest.$ac_ext <<_ACEOF
20230 #line 20230 "configure"
20231 #include "confdefs.h"
20233 #include <iostream>
20240 cerr << "testing" << endl;
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:20247: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>&5
20250 echo "$as_me:20250: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -s conftest.$ac_objext'
20253 { (eval echo "$as_me:20253: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20256 echo "$as_me:20256: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 cf_iostream_namespace=yes
20260 echo "$as_me: failed program was:" >&5
20261 cat conftest.$ac_ext >&5
20262 cf_iostream_namespace=no
20264 rm -f conftest.$ac_objext conftest.$ac_ext
20265 echo "$as_me:20265: result: $cf_iostream_namespace" >&5
20266 echo "${ECHO_T}$cf_iostream_namespace" >&6
20267 if test "$cf_iostream_namespace" = yes ; then
20269 cat >>confdefs.h <<\EOF
20270 #define IOSTREAM_NAMESPACE 1
20276 echo "$as_me:20276: checking if we should include stdbool.h" >&5
20277 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20279 if test "${cf_cv_header_stdbool_h+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 cat >conftest.$ac_ext <<_ACEOF
20284 #line 20284 "configure"
20285 #include "confdefs.h"
20295 rm -f conftest.$ac_objext
20296 if { (eval echo "$as_me:20296: \"$ac_compile\"") >&5
20297 (eval $ac_compile) 2>&5
20299 echo "$as_me:20299: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:20302: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:20305: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 cf_cv_header_stdbool_h=0
20309 echo "$as_me: failed program was:" >&5
20310 cat conftest.$ac_ext >&5
20311 cat >conftest.$ac_ext <<_ACEOF
20312 #line 20312 "configure"
20313 #include "confdefs.h"
20316 #include <stdbool.h>
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:20328: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>&5
20331 echo "$as_me:20331: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -s conftest.$ac_objext'
20334 { (eval echo "$as_me:20334: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:20337: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 cf_cv_header_stdbool_h=1
20341 echo "$as_me: failed program was:" >&5
20342 cat conftest.$ac_ext >&5
20343 cf_cv_header_stdbool_h=0
20345 rm -f conftest.$ac_objext conftest.$ac_ext
20347 rm -f conftest.$ac_objext conftest.$ac_ext
20350 if test "$cf_cv_header_stdbool_h" = 1
20351 then echo "$as_me:20351: result: yes" >&5
20352 echo "${ECHO_T}yes" >&6
20353 else echo "$as_me:20353: result: no" >&5
20354 echo "${ECHO_T}no" >&6
20357 echo "$as_me:20357: checking for builtin bool type" >&5
20358 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20360 if test "${cf_cv_builtin_bool+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 cat >conftest.$ac_ext <<_ACEOF
20365 #line 20365 "configure"
20366 #include "confdefs.h"
20369 #include <sys/types.h>
20379 rm -f conftest.$ac_objext
20380 if { (eval echo "$as_me:20380: \"$ac_compile\"") >&5
20381 (eval $ac_compile) 2>&5
20383 echo "$as_me:20383: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:20386: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:20389: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 cf_cv_builtin_bool=1
20393 echo "$as_me: failed program was:" >&5
20394 cat conftest.$ac_ext >&5
20395 cf_cv_builtin_bool=0
20397 rm -f conftest.$ac_objext conftest.$ac_ext
20401 if test "$cf_cv_builtin_bool" = 1
20402 then echo "$as_me:20402: result: yes" >&5
20403 echo "${ECHO_T}yes" >&6
20404 else echo "$as_me:20404: result: no" >&5
20405 echo "${ECHO_T}no" >&6
20408 echo "$as_me:20408: checking for size of bool" >&5
20409 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20410 if test "${cf_cv_type_of_bool+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 if test "$cross_compiling" = yes; then
20416 cf_cv_type_of_bool=unknown
20418 cat >conftest.$ac_ext <<_ACEOF
20419 #line 20419 "configure"
20420 #include "confdefs.h"
20422 #include <stdlib.h>
20425 #if defined(__cplusplus)
20427 #ifdef HAVE_GXX_BUILTIN_H
20428 #include <g++/builtin.h>
20429 #elif HAVE_GPP_BUILTIN_H
20430 #include <gpp/builtin.h>
20431 #elif HAVE_BUILTIN_H
20432 #include <builtin.h>
20437 #if $cf_cv_header_stdbool_h
20438 #include <stdbool.h>
20445 FILE *fp = fopen("cf_test.out", "w");
20448 if ((bool)(-x) >= 0)
20449 fputs("unsigned ", fp);
20450 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20451 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20452 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20453 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20456 ${cf_cv_main_return:-return}(0);
20460 rm -f conftest$ac_exeext
20461 if { (eval echo "$as_me:20461: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>&5
20464 echo "$as_me:20464: \$? = $ac_status" >&5
20465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20466 { (eval echo "$as_me:20466: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:20469: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 cf_cv_type_of_bool=`cat cf_test.out`
20472 if test -z "$cf_cv_type_of_bool"; then
20473 cf_cv_type_of_bool=unknown
20476 echo "$as_me: program exited with status $ac_status" >&5
20477 echo "$as_me: failed program was:" >&5
20478 cat conftest.$ac_ext >&5
20479 cf_cv_type_of_bool=unknown
20481 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20487 echo "$as_me:20487: result: $cf_cv_type_of_bool" >&5
20488 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20489 if test "$cf_cv_type_of_bool" = unknown ; then
20490 case .$NCURSES_BOOL in
20491 (.auto|.) NCURSES_BOOL=unsigned;;
20493 { echo "$as_me:20493: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20494 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20495 cf_cv_type_of_bool=$NCURSES_BOOL
20498 echo "$as_me:20498: checking for special defines needed for etip.h" >&5
20499 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20500 cf_save_CXXFLAGS="$CXXFLAGS"
20503 # etip.h includes ncurses.h which includes ncurses_dll.h
20504 # But ncurses_dll.h is generated - fix here.
20505 test -d include || mkdir include
20506 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
20508 for cf_math in "" MATH_H
20510 for cf_excp in "" MATH_EXCEPTION
20512 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20513 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20514 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20515 cat >conftest.$ac_ext <<_ACEOF
20516 #line 20516 "configure"
20517 #include "confdefs.h"
20519 #include <etip.h.in>
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:20530: \"$ac_compile\"") >&5
20531 (eval $ac_compile) 2>&5
20533 echo "$as_me:20533: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
20535 { ac_try='test -s conftest.$ac_objext'
20536 { (eval echo "$as_me:20536: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20539 echo "$as_me:20539: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20542 test -n "$cf_math" && cat >>confdefs.h <<EOF
20543 #define ETIP_NEEDS_${cf_math} 1
20546 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20547 #define ETIP_NEEDS_${cf_excp} 1
20550 cf_result="$cf_math $cf_excp"
20554 echo "$as_me: failed program was:" >&5
20555 cat conftest.$ac_ext >&5
20557 rm -f conftest.$ac_objext conftest.$ac_ext
20560 echo "$as_me:20560: result: $cf_result" >&5
20561 echo "${ECHO_T}$cf_result" >&6
20562 CXXFLAGS="$cf_save_CXXFLAGS"
20564 if test -n "$CXX"; then
20565 echo "$as_me:20565: checking if $CXX accepts parameter initialization" >&5
20566 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20567 if test "${cf_cv_cpp_param_init+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 ac_cpp='$CXXCPP $CPPFLAGS'
20573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20576 ac_main_return=return
20578 if test "$cross_compiling" = yes; then
20579 cf_cv_cpp_param_init=unknown
20581 cat >conftest.$ac_ext <<_ACEOF
20582 #line 20582 "configure"
20583 #include "confdefs.h"
20593 TEST::TEST(int x = 1) // some compilers do not like second initializer
20600 rm -f conftest$ac_exeext
20601 if { (eval echo "$as_me:20601: \"$ac_link\"") >&5
20602 (eval $ac_link) 2>&5
20604 echo "$as_me:20604: \$? = $ac_status" >&5
20605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20606 { (eval echo "$as_me:20606: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20609 echo "$as_me:20609: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
20611 cf_cv_cpp_param_init=yes
20613 echo "$as_me: program exited with status $ac_status" >&5
20614 echo "$as_me: failed program was:" >&5
20615 cat conftest.$ac_ext >&5
20616 cf_cv_cpp_param_init=no
20618 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20621 ac_cpp='$CXXCPP $CPPFLAGS'
20622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20625 ac_main_return=return
20628 echo "$as_me:20628: result: $cf_cv_cpp_param_init" >&5
20629 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20631 test "$cf_cv_cpp_param_init" = yes &&
20632 cat >>confdefs.h <<\EOF
20633 #define CPP_HAS_PARAM_INIT 1
20636 if test -n "$CXX"; then
20638 echo "$as_me:20638: checking if $CXX accepts static_cast" >&5
20639 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20640 if test "${cf_cv_cpp_static_cast+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20645 ac_cpp='$CXXCPP $CPPFLAGS'
20646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20649 ac_main_return=return
20651 cat >conftest.$ac_ext <<_ACEOF
20652 #line 20652 "configure"
20653 #include "confdefs.h"
20658 NCursesPanel(int nlines,
20668 template<class T> class NCursesUserPanel : public NCursesPanel
20671 NCursesUserPanel (int nlines,
20675 const T* p_UserData = static_cast<T*>(0))
20676 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20679 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20683 virtual ~NCursesUserPanel() {};
20690 const char* p_UserData = static_cast<char*>(0)
20695 rm -f conftest.$ac_objext
20696 if { (eval echo "$as_me:20696: \"$ac_compile\"") >&5
20697 (eval $ac_compile) 2>&5
20699 echo "$as_me:20699: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try='test -s conftest.$ac_objext'
20702 { (eval echo "$as_me:20702: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:20705: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 cf_cv_cpp_static_cast=yes
20709 echo "$as_me: failed program was:" >&5
20710 cat conftest.$ac_ext >&5
20711 cf_cv_cpp_static_cast=no
20713 rm -f conftest.$ac_objext conftest.$ac_ext
20716 ac_cpp='$CXXCPP $CPPFLAGS'
20717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20720 ac_main_return=return
20723 echo "$as_me:20723: result: $cf_cv_cpp_static_cast" >&5
20724 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20728 test "$cf_cv_cpp_static_cast" = yes &&
20729 cat >>confdefs.h <<\EOF
20730 #define CPP_HAS_STATIC_CAST 1
20734 CXX_ARFLAGS='$(ARFLAGS)'
20735 case $cf_cv_system_name in
20737 if test "$GXX" != yes ; then
20739 CXX_ARFLAGS='-ar -o'
20743 CXXLDFLAGS="-u main"
20746 if test "$GXX" != yes ; then
20748 CXX_ARFLAGS='-xar -o'
20755 cf_cv_builtin_bool=1
20757 # Just because we are not configuring against C++ right now does not
20758 # mean that a user will not want to use C++. Some distributors disable
20759 # the C++ portion of this configuration as a shortcut (or just to avoid
20760 # compiling the demo in the c++ directory). So we need a reasonable
20761 # default for the 'bool' type.
20763 # Caveat: since the storage of the bool type is not standardized, it
20766 if test "$NCURSES_BOOL" != auto ; then
20767 cf_cv_type_of_bool=$NCURSES_BOOL
20768 cf_cv_header_stdbool_h=0
20770 if test "$cf_cv_header_stdbool_h" = 1 ; then
20772 echo "$as_me:20772: checking for size of bool" >&5
20773 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20774 if test "${cf_cv_type_of_bool+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 if test "$cross_compiling" = yes; then
20780 cf_cv_type_of_bool=unknown
20782 cat >conftest.$ac_ext <<_ACEOF
20783 #line 20783 "configure"
20784 #include "confdefs.h"
20786 #include <stdlib.h>
20789 #if defined(__cplusplus)
20791 #ifdef HAVE_GXX_BUILTIN_H
20792 #include <g++/builtin.h>
20793 #elif HAVE_GPP_BUILTIN_H
20794 #include <gpp/builtin.h>
20795 #elif HAVE_BUILTIN_H
20796 #include <builtin.h>
20801 #if $cf_cv_header_stdbool_h
20802 #include <stdbool.h>
20809 FILE *fp = fopen("cf_test.out", "w");
20812 if ((bool)(-x) >= 0)
20813 fputs("unsigned ", fp);
20814 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20815 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20816 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20817 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20820 ${cf_cv_main_return:-return}(0);
20824 rm -f conftest$ac_exeext
20825 if { (eval echo "$as_me:20825: \"$ac_link\"") >&5
20826 (eval $ac_link) 2>&5
20828 echo "$as_me:20828: \$? = $ac_status" >&5
20829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20830 { (eval echo "$as_me:20830: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:20833: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 cf_cv_type_of_bool=`cat cf_test.out`
20836 if test -z "$cf_cv_type_of_bool"; then
20837 cf_cv_type_of_bool=unknown
20840 echo "$as_me: program exited with status $ac_status" >&5
20841 echo "$as_me: failed program was:" >&5
20842 cat conftest.$ac_ext >&5
20843 cf_cv_type_of_bool=unknown
20845 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20851 echo "$as_me:20851: result: $cf_cv_type_of_bool" >&5
20852 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20853 if test "$cf_cv_type_of_bool" = unknown ; then
20854 case .$NCURSES_BOOL in
20855 (.auto|.) NCURSES_BOOL=unsigned;;
20857 { echo "$as_me:20857: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20858 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20859 cf_cv_type_of_bool=$NCURSES_BOOL
20863 echo "$as_me:20863: checking for fallback type of bool" >&5
20864 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20865 case "$host_cpu" in
20866 (i?86) cf_cv_type_of_bool=char ;;
20867 (*) cf_cv_type_of_bool=int ;;
20869 echo "$as_me:20869: result: $cf_cv_type_of_bool" >&5
20870 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20875 # If the C compiler did not declare bool, and we did not determine that the C++
20876 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20877 # ncurses library use the same type as C++ bool. Note that this allows one to
20878 # specify the type of bool in a configure-script option and postpone
20879 # integration with the C++ compiler provided that the types are compatible.
20881 if test $cf_cv_cc_bool_type = 1
20883 # oops: C has a bool. Unlikely, but C++ could differ.
20885 elif test $cf_cv_builtin_bool = 0
20890 # this is the normal case
20891 USE_CXX_BOOL='defined(__cplusplus)'
20894 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20896 if test "$cf_with_ada" != "no" ; then
20897 if test "$with_libtool" != "no"; then
20898 { echo "$as_me:20898: WARNING: libtool does not support Ada - disabling feature" >&5
20899 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20904 if test "$cf_with_ada" != "no" ; then
20906 cf_ada_make=gnatmake
20907 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20908 set dummy $cf_ada_make; ac_word=$2
20909 echo "$as_me:20909: checking for $ac_word" >&5
20910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20911 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 if test -n "$gnat_exists"; then
20915 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20917 ac_save_IFS=$IFS; IFS=$ac_path_separator
20919 for ac_dir in $ac_dummy; do
20921 test -z "$ac_dir" && ac_dir=.
20922 $as_executable_p "$ac_dir/$ac_word" || continue
20923 ac_cv_prog_gnat_exists="yes"
20924 echo "$as_me:20924: found $ac_dir/$ac_word" >&5
20928 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20931 gnat_exists=$ac_cv_prog_gnat_exists
20932 if test -n "$gnat_exists"; then
20933 echo "$as_me:20933: result: $gnat_exists" >&5
20934 echo "${ECHO_T}$gnat_exists" >&6
20936 echo "$as_me:20936: result: no" >&5
20937 echo "${ECHO_T}no" >&6
20940 if test "$ac_cv_prog_gnat_exists" = no; then
20942 cf_cv_prog_gnat_correct=no
20945 echo "$as_me:20945: checking for gnat version" >&5
20946 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20947 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20948 grep '[0-9].[0-9][0-9]*' |\
20949 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20950 echo "$as_me:20950: result: $cf_gnat_version" >&5
20951 echo "${ECHO_T}$cf_gnat_version" >&6
20953 case $cf_gnat_version in
20954 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
20955 cf_cv_prog_gnat_correct=yes
20958 { echo "$as_me:20958: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20959 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20960 cf_cv_prog_gnat_correct=no
20964 # Extract the first word of "m4", so it can be a program name with args.
20965 set dummy m4; ac_word=$2
20966 echo "$as_me:20966: checking for $ac_word" >&5
20967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20968 if test "${ac_cv_prog_M4_exists+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 if test -n "$M4_exists"; then
20972 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20974 ac_save_IFS=$IFS; IFS=$ac_path_separator
20976 for ac_dir in $ac_dummy; do
20978 test -z "$ac_dir" && ac_dir=.
20979 $as_executable_p "$ac_dir/$ac_word" || continue
20980 ac_cv_prog_M4_exists="yes"
20981 echo "$as_me:20981: found $ac_dir/$ac_word" >&5
20985 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
20988 M4_exists=$ac_cv_prog_M4_exists
20989 if test -n "$M4_exists"; then
20990 echo "$as_me:20990: result: $M4_exists" >&5
20991 echo "${ECHO_T}$M4_exists" >&6
20993 echo "$as_me:20993: result: no" >&5
20994 echo "${ECHO_T}no" >&6
20997 if test "$ac_cv_prog_M4_exists" = no; then
20998 cf_cv_prog_gnat_correct=no
20999 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
21001 if test "$cf_cv_prog_gnat_correct" = yes; then
21002 echo "$as_me:21002: checking if GNAT works" >&5
21003 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
21005 rm -rf conftest* *~conftest*
21006 cat >>conftest.ads <<CF_EOF
21007 procedure conftest;
21009 cat >>conftest.adb <<CF_EOF
21012 procedure conftest is
21014 Text_IO.Put ("Hello World");
21016 GNAT.OS_Lib.OS_Exit (0);
21019 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21020 if ( ./conftest 1>&5 2>&1 ) ; then
21021 cf_cv_prog_gnat_correct=yes
21023 cf_cv_prog_gnat_correct=no
21026 cf_cv_prog_gnat_correct=no
21028 rm -rf conftest* *~conftest*
21030 echo "$as_me:21030: result: $cf_cv_prog_gnat_correct" >&5
21031 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
21035 if test "x$cf_cv_prog_gnat_correct" = xyes; then
21037 ADAFLAGS="$ADAFLAGS -gnatpn"
21039 echo "$as_me:21039: checking optimization options for ADAFLAGS" >&5
21040 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21044 ADAFLAGS="$ADAFLAGS -g"
21050 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21052 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21056 echo "$as_me:21056: result: $ADAFLAGS" >&5
21057 echo "${ECHO_T}$ADAFLAGS" >&6
21059 echo "$as_me:21059: checking if GNATPREP supports -T option" >&5
21060 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21061 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 cf_cv_gnatprep_opt_t=no
21066 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21069 echo "$as_me:21069: result: $cf_cv_gnatprep_opt_t" >&5
21070 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21071 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21073 echo "$as_me:21073: checking if GNAT supports generics" >&5
21074 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21075 case $cf_gnat_version in
21077 cf_gnat_generics=yes
21080 cf_gnat_generics=no
21083 echo "$as_me:21083: result: $cf_gnat_generics" >&5
21084 echo "${ECHO_T}$cf_gnat_generics" >&6
21086 if test "$cf_gnat_generics" = yes
21088 cf_compile_generics=generics
21089 cf_generic_objects="\${GENOBJS}"
21091 cf_compile_generics=
21092 cf_generic_objects=
21095 echo "$as_me:21095: checking if GNAT supports SIGINT" >&5
21096 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
21097 if test "${cf_cv_gnat_sigint+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 rm -rf conftest* *~conftest*
21102 cat >>conftest.ads <<CF_EOF
21103 with Ada.Interrupts.Names;
21105 package ConfTest is
21107 pragma Warnings (Off); -- the next pragma exists since 3.11p
21108 pragma Unreserve_All_Interrupts;
21109 pragma Warnings (On);
21111 protected Process is
21113 function Continue return Boolean;
21114 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
21116 Done : Boolean := False;
21121 cat >>conftest.adb <<CF_EOF
21122 package body ConfTest is
21123 protected body Process is
21128 function Continue return Boolean is
21135 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21136 cf_cv_gnat_sigint=yes
21138 cf_cv_gnat_sigint=no
21140 rm -rf conftest* *~conftest*
21143 echo "$as_me:21143: result: $cf_cv_gnat_sigint" >&5
21144 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
21146 if test $cf_cv_gnat_sigint = yes ; then
21149 USE_GNAT_SIGINT="#"
21152 cf_gnat_libraries=no
21153 cf_gnat_projects=no
21155 if test "$enable_gnat_projects" != no ; then
21156 echo "$as_me:21156: checking if GNAT supports project files" >&5
21157 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
21158 case $cf_gnat_version in
21162 case $cf_cv_system_name in
21166 mkdir conftest.src conftest.bin conftest.lib
21168 rm -rf conftest* *~conftest*
21169 cat >>library.gpr <<CF_EOF
21171 Kind := External ("LIB_KIND");
21172 for Library_Name use "ConfTest";
21173 for Object_Dir use ".";
21174 for Library_ALI_Dir use External("LIBRARY_DIR");
21175 for Library_Version use External ("SONAME");
21176 for Library_Kind use Kind;
21177 for Library_Dir use External("BUILD_DIR");
21178 Source_Dir := External ("SOURCE_DIR");
21179 for Source_Dirs use (Source_Dir);
21182 cat >>confpackage.ads <<CF_EOF
21183 package ConfPackage is
21184 procedure conftest;
21187 cat >>confpackage.adb <<CF_EOF
21189 package body ConfPackage is
21190 procedure conftest is
21192 Text_IO.Put ("Hello World");
21197 if ( $cf_ada_make $ADAFLAGS \
21199 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
21200 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
21201 -XSOURCE_DIR=`pwd` \
21202 -XSONAME=libConfTest.so.1 \
21203 -XLIB_KIND=static 1>&5 2>&1 ) ; then
21204 cf_gnat_projects=yes
21207 if test -f conftest.lib/confpackage.ali
21209 cf_gnat_libraries=yes
21211 rm -rf conftest* *~conftest*
21216 echo "$as_me:21216: result: $cf_gnat_projects" >&5
21217 echo "${ECHO_T}$cf_gnat_projects" >&6
21218 fi # enable_gnat_projects
21220 if test $cf_gnat_projects = yes
21222 echo "$as_me:21222: checking if GNAT supports libraries" >&5
21223 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
21224 echo "$as_me:21224: result: $cf_gnat_libraries" >&5
21225 echo "${ECHO_T}$cf_gnat_libraries" >&6
21228 if test "$cf_gnat_projects" = yes
21230 USE_OLD_MAKERULES="#"
21231 USE_GNAT_PROJECTS=""
21233 USE_OLD_MAKERULES=""
21234 USE_GNAT_PROJECTS="#"
21237 if test "$cf_gnat_libraries" = yes
21239 USE_GNAT_LIBRARIES=""
21241 USE_GNAT_LIBRARIES="#"
21244 echo "$as_me:21244: checking for ada-compiler" >&5
21245 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
21247 # Check whether --with-ada-compiler or --without-ada-compiler was given.
21248 if test "${with_ada_compiler+set}" = set; then
21249 withval="$with_ada_compiler"
21250 cf_ada_compiler=$withval
21252 cf_ada_compiler=gnatmake
21255 echo "$as_me:21255: result: $cf_ada_compiler" >&5
21256 echo "${ECHO_T}$cf_ada_compiler" >&6
21258 cf_ada_package=terminal_interface
21260 echo "$as_me:21260: checking for ada-include" >&5
21261 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
21263 # Check whether --with-ada-include or --without-ada-include was given.
21264 if test "${with_ada_include+set}" = set; then
21265 withval="$with_ada_include"
21268 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
21269 fi; if test -n "$prefix/share/ada/adainclude" ; then
21271 if test "x$prefix" != xNONE; then
21272 cf_path_syntax="$prefix"
21274 cf_path_syntax="$ac_default_prefix"
21277 case ".$withval" in
21278 (.\$\(*\)*|.\'*\'*)
21282 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21284 (.\${*prefix}*|.\${*dir}*)
21285 eval withval="$withval"
21286 case ".$withval" in
21288 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21293 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21296 { { echo "$as_me:21296: error: expected a pathname, not \"$withval\"" >&5
21297 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21298 { (exit 1); exit 1; }; }
21303 eval ADA_INCLUDE="$withval"
21305 echo "$as_me:21305: result: $ADA_INCLUDE" >&5
21306 echo "${ECHO_T}$ADA_INCLUDE" >&6
21308 echo "$as_me:21308: checking for ada-objects" >&5
21309 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
21311 # Check whether --with-ada-objects or --without-ada-objects was given.
21312 if test "${with_ada_objects+set}" = set; then
21313 withval="$with_ada_objects"
21316 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
21317 fi; if test -n "$prefix/lib/ada/adalib" ; then
21319 if test "x$prefix" != xNONE; then
21320 cf_path_syntax="$prefix"
21322 cf_path_syntax="$ac_default_prefix"
21325 case ".$withval" in
21326 (.\$\(*\)*|.\'*\'*)
21330 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21332 (.\${*prefix}*|.\${*dir}*)
21333 eval withval="$withval"
21334 case ".$withval" in
21336 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21341 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21344 { { echo "$as_me:21344: error: expected a pathname, not \"$withval\"" >&5
21345 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21346 { (exit 1); exit 1; }; }
21351 eval ADA_OBJECTS="$withval"
21353 echo "$as_me:21353: result: $ADA_OBJECTS" >&5
21354 echo "${ECHO_T}$ADA_OBJECTS" >&6
21356 echo "$as_me:21356: checking if an Ada95 shared-library should be built" >&5
21357 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
21359 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
21360 if test "${with_ada_sharedlib+set}" = set; then
21361 withval="$with_ada_sharedlib"
21362 with_ada_sharedlib=$withval
21364 with_ada_sharedlib=no
21366 echo "$as_me:21366: result: $with_ada_sharedlib" >&5
21367 echo "${ECHO_T}$with_ada_sharedlib" >&6
21369 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
21370 MAKE_ADA_SHAREDLIB="#"
21372 if test "x$with_ada_sharedlib" != xno
21374 MAKE_ADA_SHAREDLIB=
21375 if test "x$with_ada_sharedlib" != xyes
21377 ADA_SHAREDLIB="$with_ada_sharedlib"
21387 # do this "late" to avoid conflict with header-checks
21388 if test "x$with_widec" = xyes ; then
21389 echo "$as_me:21389: checking for wchar_t" >&5
21390 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21391 if test "${ac_cv_type_wchar_t+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 cat >conftest.$ac_ext <<_ACEOF
21395 #line 21395 "configure"
21396 #include "confdefs.h"
21397 $ac_includes_default
21403 if (sizeof (wchar_t))
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:21410: \"$ac_compile\"") >&5
21411 (eval $ac_compile) 2>&5
21413 echo "$as_me:21413: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (eval echo "$as_me:21416: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21419 echo "$as_me:21419: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_cv_type_wchar_t=yes
21423 echo "$as_me: failed program was:" >&5
21424 cat conftest.$ac_ext >&5
21425 ac_cv_type_wchar_t=no
21427 rm -f conftest.$ac_objext conftest.$ac_ext
21429 echo "$as_me:21429: result: $ac_cv_type_wchar_t" >&5
21430 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21432 echo "$as_me:21432: checking size of wchar_t" >&5
21433 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21434 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 if test "$ac_cv_type_wchar_t" = yes; then
21438 if test "$cross_compiling" = yes; then
21439 # Depending upon the size, compute the lo and hi bounds.
21440 cat >conftest.$ac_ext <<_ACEOF
21441 #line 21441 "configure"
21442 #include "confdefs.h"
21443 $ac_includes_default
21447 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21452 rm -f conftest.$ac_objext
21453 if { (eval echo "$as_me:21453: \"$ac_compile\"") >&5
21454 (eval $ac_compile) 2>&5
21456 echo "$as_me:21456: \$? = $ac_status" >&5
21457 (exit $ac_status); } &&
21458 { ac_try='test -s conftest.$ac_objext'
21459 { (eval echo "$as_me:21459: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21462 echo "$as_me:21462: \$? = $ac_status" >&5
21463 (exit $ac_status); }; }; then
21466 cat >conftest.$ac_ext <<_ACEOF
21467 #line 21467 "configure"
21468 #include "confdefs.h"
21469 $ac_includes_default
21473 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21478 rm -f conftest.$ac_objext
21479 if { (eval echo "$as_me:21479: \"$ac_compile\"") >&5
21480 (eval $ac_compile) 2>&5
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
21484 { ac_try='test -s conftest.$ac_objext'
21485 { (eval echo "$as_me:21485: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21488 echo "$as_me:21488: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 ac_hi=$ac_mid; break
21492 echo "$as_me: failed program was:" >&5
21493 cat conftest.$ac_ext >&5
21494 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21496 rm -f conftest.$ac_objext conftest.$ac_ext
21499 echo "$as_me: failed program was:" >&5
21500 cat conftest.$ac_ext >&5
21503 cat >conftest.$ac_ext <<_ACEOF
21504 #line 21504 "configure"
21505 #include "confdefs.h"
21506 $ac_includes_default
21510 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21515 rm -f conftest.$ac_objext
21516 if { (eval echo "$as_me:21516: \"$ac_compile\"") >&5
21517 (eval $ac_compile) 2>&5
21519 echo "$as_me:21519: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -s conftest.$ac_objext'
21522 { (eval echo "$as_me:21522: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21525 echo "$as_me:21525: \$? = $ac_status" >&5
21526 (exit $ac_status); }; }; then
21527 ac_lo=$ac_mid; break
21529 echo "$as_me: failed program was:" >&5
21530 cat conftest.$ac_ext >&5
21531 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21533 rm -f conftest.$ac_objext conftest.$ac_ext
21536 rm -f conftest.$ac_objext conftest.$ac_ext
21537 # Binary search between lo and hi bounds.
21538 while test "x$ac_lo" != "x$ac_hi"; do
21539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21540 cat >conftest.$ac_ext <<_ACEOF
21541 #line 21541 "configure"
21542 #include "confdefs.h"
21543 $ac_includes_default
21547 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21552 rm -f conftest.$ac_objext
21553 if { (eval echo "$as_me:21553: \"$ac_compile\"") >&5
21554 (eval $ac_compile) 2>&5
21556 echo "$as_me:21556: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -s conftest.$ac_objext'
21559 { (eval echo "$as_me:21559: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:21562: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21566 echo "$as_me: failed program was:" >&5
21567 cat conftest.$ac_ext >&5
21568 ac_lo=`expr $ac_mid + 1`
21570 rm -f conftest.$ac_objext conftest.$ac_ext
21572 ac_cv_sizeof_wchar_t=$ac_lo
21574 if test "$cross_compiling" = yes; then
21575 { { echo "$as_me:21575: error: cannot run test program while cross compiling" >&5
21576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21577 { (exit 1); exit 1; }; }
21579 cat >conftest.$ac_ext <<_ACEOF
21580 #line 21580 "configure"
21581 #include "confdefs.h"
21582 $ac_includes_default
21586 FILE *f = fopen ("conftest.val", "w");
21588 $ac_main_return (1);
21589 fprintf (f, "%d", (sizeof (wchar_t)));
21595 rm -f conftest$ac_exeext
21596 if { (eval echo "$as_me:21596: \"$ac_link\"") >&5
21597 (eval $ac_link) 2>&5
21599 echo "$as_me:21599: \$? = $ac_status" >&5
21600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21601 { (eval echo "$as_me:21601: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21604 echo "$as_me:21604: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_cv_sizeof_wchar_t=`cat conftest.val`
21608 echo "$as_me: program exited with status $ac_status" >&5
21609 echo "$as_me: failed program was:" >&5
21610 cat conftest.$ac_ext >&5
21612 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21617 ac_cv_sizeof_wchar_t=0
21620 echo "$as_me:21620: result: $ac_cv_sizeof_wchar_t" >&5
21621 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21622 cat >>confdefs.h <<EOF
21623 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21628 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21629 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21631 ### ticlib modules may be a separate library, otherwise contained in termlib.
21632 ### termlib modules may be a separate library, otherwise contained in ncurses.
21634 ### The of "+" or " " between the tokens controls the way the script
21635 ### chooses to split module lists into libraries.
21637 ### (see CF_LIB_RULES).
21638 echo "$as_me:21638: checking for library subsets" >&5
21639 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21642 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21643 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21644 if test "$with_ticlib" != no ; then
21645 LIB_SUBSETS="${LIB_SUBSETS} "
21647 LIB_SUBSETS="${LIB_SUBSETS}+"
21651 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21652 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21654 if test "$with_termlib" != no ; then
21655 LIB_SUBSETS="${LIB_SUBSETS} "
21657 LIB_SUBSETS="${LIB_SUBSETS}+"
21660 LIB_SUBSETS="${LIB_SUBSETS}base"
21662 # Most term-driver calls are to tinfo, but some like init_pair are to the
21663 # base library (so it resides in base).
21664 if test "$with_term_driver" != no ; then
21665 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21666 case $cf_cv_system_name in
21667 (*mingw32*|*mingw64*)
21668 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21669 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21672 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21677 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21678 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21680 echo "$as_me:21680: result: $LIB_SUBSETS" >&5
21681 echo "${ECHO_T}$LIB_SUBSETS" >&6
21683 ### Construct the list of include-directories to be generated
21685 if test "$srcdir" != "."; then
21686 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21688 CPPFLAGS="-I../include $CPPFLAGS"
21689 if test "$srcdir" != "."; then
21690 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21692 CPPFLAGS="-I. $CPPFLAGS"
21694 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21695 if test "$srcdir" != "."; then
21696 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21698 if test "$GCC" != yes; then
21699 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21700 elif test "$includedir" != "/usr/include"; then
21701 if test "$includedir" = '${prefix}/include' ; then
21702 if test x$prefix != x/usr ; then
21703 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21706 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21710 ### Build up pieces for makefile rules
21711 echo "$as_me:21711: checking default library suffix" >&5
21712 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21714 case $DFT_LWR_MODEL in
21715 (libtool) DFT_ARG_SUFFIX='' ;;
21716 (normal) DFT_ARG_SUFFIX='' ;;
21717 (debug) DFT_ARG_SUFFIX='_g' ;;
21718 (profile) DFT_ARG_SUFFIX='_p' ;;
21719 (shared) DFT_ARG_SUFFIX='' ;;
21721 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21722 echo "$as_me:21722: result: $DFT_ARG_SUFFIX" >&5
21723 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21725 echo "$as_me:21725: checking default library-dependency suffix" >&5
21726 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21728 case X$DFT_LWR_MODEL in
21730 DFT_LIB_SUFFIX='.la'
21731 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21734 DFT_LIB_SUFFIX='_g.a'
21735 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21738 DFT_LIB_SUFFIX='_p.a'
21739 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21742 case $cf_cv_system_name in
21744 DFT_LIB_SUFFIX='.so'
21745 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21747 (cygwin*|msys*|mingw*)
21748 DFT_LIB_SUFFIX='.dll'
21749 DFT_DEP_SUFFIX='.dll.a'
21752 DFT_LIB_SUFFIX='.dylib'
21753 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21758 DFT_LIB_SUFFIX='.so'
21759 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21762 DFT_LIB_SUFFIX='.sl'
21763 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21768 DFT_LIB_SUFFIX='.so'
21769 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21774 DFT_LIB_SUFFIX='.a'
21775 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21778 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21780 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
21781 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
21783 echo "$as_me:21783: result: $DFT_DEP_SUFFIX" >&5
21784 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21786 echo "$as_me:21786: checking default object directory" >&5
21787 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21789 case $DFT_LWR_MODEL in
21790 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21791 (normal) DFT_OBJ_SUBDIR='objects' ;;
21792 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
21793 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
21795 case $cf_cv_system_name in
21797 DFT_OBJ_SUBDIR='objects' ;;
21799 DFT_OBJ_SUBDIR='obj_s' ;;
21802 echo "$as_me:21802: result: $DFT_OBJ_SUBDIR" >&5
21803 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21805 if test "x$cf_with_cxx" = xyes ; then
21806 echo "$as_me:21806: checking c++ library-dependency suffix" >&5
21807 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21808 if test "$with_libtool" != "no"; then
21809 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21810 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21811 elif test "$with_shared_cxx" != "no"; then
21812 # also for g++ users...
21813 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21815 # we normally make a static library because C/C++ library rules differ
21819 CXX_LIB_SUFFIX='.la'
21820 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21823 CXX_LIB_SUFFIX='_g.a'
21824 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21827 CXX_LIB_SUFFIX='_p.a'
21828 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21831 case $cf_cv_system_name in
21833 CXX_LIB_SUFFIX='.so'
21834 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21836 (cygwin*|msys*|mingw*)
21837 CXX_LIB_SUFFIX='.dll'
21838 CXX_DEP_SUFFIX='.dll.a'
21841 CXX_LIB_SUFFIX='.dylib'
21842 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21847 CXX_LIB_SUFFIX='.so'
21848 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21851 CXX_LIB_SUFFIX='.sl'
21852 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21857 CXX_LIB_SUFFIX='.so'
21858 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21863 CXX_LIB_SUFFIX='.a'
21864 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21867 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21869 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
21870 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
21874 echo "$as_me:21874: result: $CXX_LIB_SUFFIX" >&5
21875 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21879 # do not want -ldl in build except as needed for -lncurses dependency
21880 if test "x$with_dlsym" = xyes ; then
21881 if test $DFT_LWR_MODEL = shared || \
21882 test $DFT_LWR_MODEL = libtool ; then
21884 # remove dl library from $LIBS
21885 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21889 ### Set up low-level terminfo dependencies for makefiles.
21891 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21892 # do not need libdl
21894 if test "x$with_dlsym" = xyes ; then
21896 # remove dl library from $SHLIB_LIST
21897 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21901 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
21902 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
21903 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
21904 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
21906 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
21909 if test "$with_ticlib" != no ; then
21911 if test "x$with_ticlib" != xyes ; then
21912 TICS_NAME=$with_ticlib
21913 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21914 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21915 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21916 TICS_LIB_SUFFIX="${with_ticlib}"
21918 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21919 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
21920 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21921 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
21923 TICS_LDFLAGS="-L${LIB_DIR}"
21924 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
21926 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21927 TICS_LDFLAGS="-L${LIB_DIR}"
21928 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21931 if test "$with_termlib" != no ; then
21933 if test "x$with_termlib" != xyes ; then
21934 TINFO_NAME=$with_termlib
21935 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21936 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21937 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21938 TINFO_LIB_SUFFIX="${with_termlib}"
21940 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21941 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
21942 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21943 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
21946 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21947 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21948 if test "$DFT_LWR_MODEL" = "libtool"; then
21949 TEST_ARGS="${TEST_DEPS}"
21950 TEST_ARG2="${TEST_DEP2}"
21951 TINFO_LDFLAGS="-L${LIB_DIR}"
21952 TINFO_LIBS="$TEST_ARGS"
21953 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21954 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21956 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21957 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21958 if test "x$with_term_driver" != xno ; then
21959 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21960 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
21961 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21963 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21964 TINFO_LIBS="$TEST_ARGS"
21966 TINFO_LDFLAGS="-L${LIB_DIR}"
21967 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21970 # the next lines are needed for linking libtic over libncurses
21971 TINFO_NAME=${LIB_NAME}
21972 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21973 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
21974 if test "x$with_tic_depends" = xyes ; then
21975 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21977 TICS_LIST="$SHLIB_LIST"
21980 TINFO_LDFLAGS="-L${LIB_DIR}"
21981 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21984 if test "$DFT_LWR_MODEL" = shared ; then
21985 case $cf_cv_system_name in
21987 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
21993 if test "x$with_dlsym" = xyes ; then
21995 # remove dl library from $TICS_LIST
21996 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22000 if test "$DFT_LWR_MODEL" = "libtool"; then
22005 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
22007 case $DFT_LWR_MODEL in
22008 (normal|debug|profile)
22010 if test "$GCC" = yes ; then
22011 case $cf_cv_system_name in
22012 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
22016 (*) # normally, except when broken
22017 LDFLAGS_STATIC=-static
22018 LDFLAGS_SHARED=-dynamic
22022 case $cf_cv_system_name in
22023 (aix[4-7]*) # from ld manpage
22024 LDFLAGS_STATIC=-bstatic
22025 LDFLAGS_SHARED=-bdynamic
22027 (hpux*) # from ld manpage for hpux10.20, hpux11.11
22028 # We could also use just "archive" and "shared".
22029 LDFLAGS_STATIC=-Wl,-a,archive_shared
22030 LDFLAGS_SHARED=-Wl,-a,shared_archive
22032 (irix*) # from ld manpage IRIX64
22033 LDFLAGS_STATIC=-Bstatic
22034 LDFLAGS_SHARED=-Bdynamic
22036 (osf[45]*) # from ld manpage osf4.0d, osf5.1
22037 # alternative "-oldstyle_liblookup" (not in cc manpage)
22038 LDFLAGS_STATIC=-noso
22039 LDFLAGS_SHARED=-so_archive
22042 LDFLAGS_STATIC=-Bstatic
22043 LDFLAGS_SHARED=-Bdynamic
22048 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22050 echo "$as_me:22050: checking if linker supports switching between static/dynamic" >&5
22051 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22053 rm -f libconftest.a
22054 cat >conftest.$ac_ext <<EOF
22055 #line 22055 "configure"
22057 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22059 if { (eval echo "$as_me:22059: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>&5
22062 echo "$as_me:22062: \$? = $ac_status" >&5
22063 (exit $ac_status); } ; then
22064 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22065 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22069 cf_save_LIBS="$LIBS"
22071 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22072 cat >conftest.$ac_ext <<_ACEOF
22073 #line 22073 "configure"
22074 #include "confdefs.h"
22076 #line 22076 "configure"
22078 int cf_ldflags_static(FILE *fp);
22084 return cf_ldflags_static(stdin);
22090 rm -f conftest.$ac_objext conftest$ac_exeext
22091 if { (eval echo "$as_me:22091: \"$ac_link\"") >&5
22092 (eval $ac_link) 2>&5
22094 echo "$as_me:22094: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try='test -s conftest$ac_exeext'
22097 { (eval echo "$as_me:22097: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22100 echo "$as_me:22100: \$? = $ac_status" >&5
22101 (exit $ac_status); }; }; then
22103 # some linkers simply ignore the -dynamic
22104 case x`file conftest$ac_exeext 2>/dev/null` in
22106 cf_ldflags_static=no
22109 cf_ldflags_static=yes
22114 echo "$as_me: failed program was:" >&5
22115 cat conftest.$ac_ext >&5
22116 cf_ldflags_static=no
22118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22120 rm -f libconftest.*
22121 LIBS="$cf_save_LIBS"
22123 echo "$as_me:22123: result: $cf_ldflags_static" >&5
22124 echo "${ECHO_T}$cf_ldflags_static" >&6
22126 if test $cf_ldflags_static != yes
22139 echo "$as_me:22139: checking where we will install curses.h" >&5
22140 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
22143 if test "$with_overwrite" = no && \
22144 ( test "x$includedir" = 'x${prefix}/include' || \
22145 test "x$includedir" = "x${prefix}/include" )
22147 includesubdir="/ncurses${USE_LIB_SUFFIX}"
22149 echo "$as_me:22149: result: ${includedir}${includesubdir}" >&5
22150 echo "${ECHO_T}${includedir}${includesubdir}" >&6
22152 ### Resolve a conflict between normal and wide-curses by forcing applications
22153 ### that will need libutf8 to add it to their configure script.
22154 if test "$with_overwrite" != no ; then
22155 if test "$NCURSES_LIBUTF8" = 1 ; then
22156 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
22157 { echo "$as_me:22157: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
22158 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
22161 WITH_OVERWRITE=$with_overwrite
22163 # used to separate tack out of the tree
22166 ### predefined stuff for the test programs
22168 cat >>confdefs.h <<\EOF
22169 #define HAVE_SLK_COLOR 1
22172 ### Construct the list of subdirectories for which we'll customize makefiles
22173 ### with the appropriate compile-rules.
22175 echo "$as_me:22175: checking for src modules" >&5
22176 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
22178 # dependencies and linker-arguments for test-programs
22179 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
22180 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
22181 if test "$DFT_LWR_MODEL" = "libtool"; then
22182 TEST_ARGS="${TEST_DEPS}"
22183 TEST_ARG2="${TEST_DEP2}"
22185 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22186 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22189 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22191 for cf_dir in $modules_to_build
22193 if test -f $srcdir/$cf_dir/modules; then
22195 # We may/may not have tack in the distribution, though the
22197 if test $cf_dir = tack ; then
22198 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
22203 if test -z "$cf_cv_src_modules"; then
22204 cf_cv_src_modules=$cf_dir
22206 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
22209 # Make the ncurses_cfg.h file record the library interface files as
22210 # well. These are header files that are the same name as their
22211 # directory. Ncurses is the only library that does not follow
22213 if test $cf_dir = tack ; then
22215 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
22217 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22219 cat >>confdefs.h <<EOF
22220 #define HAVE_${cf_have_include}_H 1
22223 cat >>confdefs.h <<EOF
22224 #define HAVE_LIB${cf_have_include} 1
22227 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
22228 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
22229 if test "$DFT_LWR_MODEL" = "libtool"; then
22230 TEST_ARGS="${TEST_DEPS}"
22231 TEST_ARG2="${TEST_DEP2}"
22233 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
22234 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
22236 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
22240 echo "$as_me:22240: result: $cf_cv_src_modules" >&5
22241 echo "${ECHO_T}$cf_cv_src_modules" >&6
22243 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
22244 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
22247 if test "x$cf_with_manpages" != xno ; then
22248 SRC_SUBDIRS="$SRC_SUBDIRS man"
22250 SRC_SUBDIRS="$SRC_SUBDIRS include"
22251 for cf_dir in $cf_cv_src_modules
22253 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
22255 if test "x$cf_with_tests" != "xno" ; then
22256 SRC_SUBDIRS="$SRC_SUBDIRS test"
22258 # always make this, to install the ncurses-config script
22259 SRC_SUBDIRS="$SRC_SUBDIRS misc"
22260 if test "$cf_with_cxx_binding" != no; then
22261 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
22262 SRC_SUBDIRS="$SRC_SUBDIRS c++"
22265 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
22266 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
22269 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
22270 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
22271 ADA_SUBDIRS="gen src"
22272 if test "x$cf_with_tests" != "xno" ; then
22273 ADA_SUBDIRS="$ADA_SUBDIRS samples"
22278 for cf_dir in $SRC_SUBDIRS
22280 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
22283 if test -n "$ADA_SUBDIRS"; then
22284 for cf_dir in $ADA_SUBDIRS
22286 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
22291 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22292 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
22293 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
22297 for cf_item in $cf_list_models
22301 (libtool) cf_subdir='obj_lo' ;;
22302 (normal) cf_subdir='objects' ;;
22303 (debug) cf_subdir='obj_g' ;;
22304 (profile) cf_subdir='obj_p' ;;
22306 case $cf_cv_system_name in
22308 cf_subdir='objects' ;;
22310 cf_subdir='obj_s' ;;
22314 for cf_item2 in $DIRS_TO_MAKE
22316 test $cf_item2 = $cf_subdir && break
22318 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
22320 for cf_dir in $DIRS_TO_MAKE
22322 test ! -d $cf_dir && mkdir $cf_dir
22325 # symbols that differ when compiling Ada95 by itself.
22326 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
22328 # values to use as strings
22330 cat >>confdefs.h <<EOF
22331 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
22334 cat >>confdefs.h <<EOF
22335 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
22338 ### Now that we're done running tests, add the compiler-warnings, if any
22343 cf_new_extra_cppflags=
22345 for cf_add_cflags in $EXTRA_CFLAGS
22347 case $cf_fix_cppflags in
22349 case $cf_add_cflags in
22350 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22351 case $cf_add_cflags in
22353 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22355 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22356 && test -z "${cf_tst_cflags}" \
22357 && cf_fix_cppflags=yes
22359 if test $cf_fix_cppflags = yes ; then
22360 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22362 elif test "${cf_tst_cflags}" = "\"'" ; then
22363 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22368 case "$CPPFLAGS" in
22372 case $cf_add_cflags in
22374 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22376 CPPFLAGS=`echo "$CPPFLAGS" | \
22377 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22378 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22382 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
22387 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
22392 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22394 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
22396 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22397 && test -z "${cf_tst_cflags}" \
22398 && cf_fix_cppflags=no
22403 if test -n "$cf_new_cflags" ; then
22405 CFLAGS="$CFLAGS $cf_new_cflags"
22408 if test -n "$cf_new_cppflags" ; then
22410 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
22413 if test -n "$cf_new_extra_cppflags" ; then
22415 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
22418 ### Define substitutions for header files to avoid name-pollution
22420 if test "x$cf_cv_have_tcgetattr" = xyes ; then
22426 if test "x$ac_cv_header_stdint_h" = xyes ; then
22432 if test "x$ac_cv_header_termio_h" = xyes ; then
22438 if test "x$ac_cv_header_termios_h" = xyes ; then
22444 ################################################################################
22445 test "x$use_database" = xyes && \
22446 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
22448 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
22449 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
22451 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
22452 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
22455 # Extract the first word of "tic", so it can be a program name with args.
22456 set dummy tic; ac_word=$2
22457 echo "$as_me:22457: checking for $ac_word" >&5
22458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22459 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22467 ac_save_IFS=$IFS; IFS=$ac_path_separator
22468 ac_dummy="$PATH:/usr/local/ncurses/bin"
22469 for ac_dir in $ac_dummy; do
22471 test -z "$ac_dir" && ac_dir=.
22472 if $as_executable_p "$ac_dir/$ac_word"; then
22473 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22474 echo "$as_me:22474: found $ac_dir/$ac_word" >&5
22479 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22483 TIC_PATH=$ac_cv_path_TIC_PATH
22485 if test -n "$TIC_PATH"; then
22486 echo "$as_me:22486: result: $TIC_PATH" >&5
22487 echo "${ECHO_T}$TIC_PATH" >&6
22489 echo "$as_me:22489: result: no" >&5
22490 echo "${ECHO_T}no" >&6
22493 if test -n "$FALLBACK_LIST"
22495 if test "$TIC_PATH" = unknown
22497 { echo "$as_me:22497: WARNING: no tic program found for fallbacks" >&5
22498 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22502 if test "x$cf_with_tests" != xno ; then
22508 ADAHTML_DIR=../../doc/html/ada
22510 # these could be configurable, but are not currently
22516 # workaround for OS/2 (20151017)
22517 case $cf_cv_system_name in
22519 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
22526 # workaround for g++ versus Solaris (20131116)
22527 case $cf_cv_system_name in
22529 case "x$CPPFLAGS" in
22530 (*-D_XOPEN_SOURCE_EXTENDED*)
22531 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22533 echo "${as_me:-configure}:22533: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22535 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22536 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22542 # Help to automatically enable the extended curses features when using either
22543 # the *-config or the ".pc" files by adding defines.
22544 echo "$as_me:22544: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
22545 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
22547 for cf_loop1 in $CPPFLAGS_after_XOPEN
22550 for cf_loop2 in $CPPFLAGS_before_XOPEN
22552 if test "x$cf_loop1" = "x$cf_loop2"
22558 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
22560 echo "$as_me:22560: result: $PKG_CFLAGS" >&5
22561 echo "${ECHO_T}$PKG_CFLAGS" >&6
22563 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22564 case "x$NCURSES_OSPEED" in
22573 cat >>confdefs.h <<EOF
22574 #define NCURSES_OSPEED_COMPAT $cf_compatible
22577 case "x$cf_cv_typeof_chtype" in
22578 (xshort|xint|xlong)
22579 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22583 case "x$cf_cv_typeof_mmask_t" in
22584 (xshort|xint|xlong)
22585 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22589 # substitute into misc/Makefile to suppress
22590 # (un)install.data from the
22591 # (un)install rules.
22592 if test "x$cf_with_db_install" = "xno"; then
22594 MISC_UNINSTALL_DATA=
22596 MISC_INSTALL_DATA=install.data
22597 MISC_UNINSTALL_DATA=uninstall.data
22602 if test -n "$PACKAGE"
22604 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22606 echo "package: $PACKAGE"
22612 if test -n "$RESULTING_SYMS"
22614 cf_filter_syms=$cf_dft_filter_syms
22615 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22617 echo "${as_me:-configure}:22617: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22621 if test "x$WILDCARD_SYMS" = xno
22626 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
22628 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22629 if test $cf_filter_syms = yes
22631 RESULTING_SYMS=resulting.map
22634 if test "x$cross_compiling" = xyes ; then
22635 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
22637 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
22640 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"
22641 ac_config_commands="$ac_config_commands default"
22642 cat >confcache <<\_ACEOF
22643 # This file is a shell script that caches the results of configure
22644 # tests run on this system so they can be shared between configure
22645 # scripts and configure runs, see configure's option --config-cache.
22646 # It is not useful on other systems. If it contains results you don't
22647 # want to keep, you may remove or edit it.
22649 # config.status only pays attention to the cache file if you give it
22650 # the --recheck option to rerun configure.
22652 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22654 # following values.
22658 # The following way of writing the cache mishandles newlines in values,
22659 # but we know of no workaround that is simple, portable, and efficient.
22660 # So, don't put newlines in cache variables' values.
22661 # Ultrix sh set writes to stderr and can't be redirected directly,
22662 # and sets the high bit in the cache file unless we assign to the vars.
22665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22667 # `set' does not quote correctly, so add quotes (double-quote
22668 # substitution turns \\\\ into \\, and sed turns \\ into \).
22671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22674 # `set' quotes correctly as required by POSIX, so do not add quotes.
22676 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22685 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22687 if cmp -s $cache_file confcache; then :; else
22688 if test -w $cache_file; then
22689 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22690 cat confcache >$cache_file
22692 echo "not updating unwritable cache $cache_file"
22697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22698 # Let make expand exec_prefix.
22699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22703 # trailing colons and then remove the whole line if VPATH becomes empty
22704 # (actually we leave an empty line to preserve line numbers).
22705 if test "x$srcdir" = x.; then
22706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22707 s/:*\$(srcdir):*/:/;
22708 s/:*\${srcdir}:*/:/;
22710 s/^\([^=]*=[ ]*\):*/\1/;
22716 DEFS=-DHAVE_CONFIG_H
22718 : ${CONFIG_STATUS=./config.status}
22719 ac_clean_files_save=$ac_clean_files
22720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22721 { echo "$as_me:22721: creating $CONFIG_STATUS" >&5
22722 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22723 cat >$CONFIG_STATUS <<_ACEOF
22725 # Generated automatically by configure.
22726 # Run this file to recreate the current configuration.
22727 # Compiler output produced by configure, useful for debugging
22728 # configure, is in config.log if it exists.
22731 SHELL=\${CONFIG_SHELL-$SHELL}
22732 ac_cs_invocation="\$0 \$@"
22736 cat >>$CONFIG_STATUS <<\_ACEOF
22737 # Be Bourne compatible
22738 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22741 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22745 # Name of the executable.
22746 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22748 if expr a : '\(a\)' >/dev/null 2>&1; then
22754 rm -f conf$$ conf$$.exe conf$$.file
22756 if ln -s conf$$.file conf$$ 2>/dev/null; then
22757 # We could just check for DJGPP; but this test a) works b) is more generic
22758 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22759 if test -f conf$$.exe; then
22760 # Don't use ln at all; we don't have any links
22765 elif ln conf$$.file conf$$ 2>/dev/null; then
22770 rm -f conf$$ conf$$.exe conf$$.file
22772 as_executable_p="test -f"
22774 # Support unset when possible.
22775 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22782 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
22783 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
22784 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
22785 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
22786 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
22787 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
22788 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
22789 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
22792 # We need space, tab and new line, in precisely that order.
22798 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
22804 # Files that config.status was made for.
22805 if test -n "$ac_config_files"; then
22806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22809 if test -n "$ac_config_headers"; then
22810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22813 if test -n "$ac_config_links"; then
22814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22817 if test -n "$ac_config_commands"; then
22818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22821 cat >>$CONFIG_STATUS <<\EOF
22824 \`$as_me' instantiates files from templates according to the
22825 current configuration.
22827 Usage: $0 [OPTIONS] [FILE]...
22829 -h, --help print this help, then exit
22830 -V, --version print version number, then exit
22831 -d, --debug don't remove temporary files
22832 --recheck update $as_me by reconfiguring in the same conditions
22833 --file=FILE[:TEMPLATE]
22834 instantiate the configuration file FILE
22835 --header=FILE[:TEMPLATE]
22836 instantiate the configuration header FILE
22838 Configuration files:
22841 Configuration headers:
22844 Configuration commands:
22847 Report bugs to <dickey@invisible-island.net>."
22850 cat >>$CONFIG_STATUS <<EOF
22853 configured by $0, generated by GNU Autoconf 2.52.20150926,
22854 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22857 Free Software Foundation, Inc.
22858 This config.status script is free software; the Free Software Foundation
22859 gives unlimited permission to copy, distribute and modify it."
22864 cat >>$CONFIG_STATUS <<\EOF
22865 # If no file are specified by the user, then we need to provide default
22866 # value. By we need to know if files were specified by the user.
22872 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22873 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22875 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22879 *) # This is not an option, so the user has probably given explicit
22881 ac_need_defaults=false;;
22885 # Handling of the options.
22887 cat >>$CONFIG_STATUS <<EOF
22888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22889 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22890 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22892 cat >>$CONFIG_STATUS <<\EOF
22893 --version | --vers* | -V )
22894 echo "$ac_cs_version"; exit 0 ;;
22896 # Conflict between --help and --header
22897 { { echo "$as_me:22897: error: ambiguous option: $1
22898 Try \`$0 --help' for more information." >&5
22899 echo "$as_me: error: ambiguous option: $1
22900 Try \`$0 --help' for more information." >&2;}
22901 { (exit 1); exit 1; }; };;
22902 --help | --hel | -h )
22903 echo "$ac_cs_usage"; exit 0 ;;
22904 --debug | --d* | -d )
22906 --file | --fil | --fi | --f )
22908 CONFIG_FILES="$CONFIG_FILES $1"
22909 ac_need_defaults=false;;
22910 --header | --heade | --head | --hea )
22912 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22913 ac_need_defaults=false;;
22915 # This is an error.
22916 -*) { { echo "$as_me:22916: error: unrecognized option: $1
22917 Try \`$0 --help' for more information." >&5
22918 echo "$as_me: error: unrecognized option: $1
22919 Try \`$0 --help' for more information." >&2;}
22920 { (exit 1); exit 1; }; } ;;
22922 *) ac_config_targets="$ac_config_targets $1" ;;
22931 ## ----------------------- ##
22932 ## Running config.status. ##
22933 ## ----------------------- ##
22935 This file was extended by $as_me 2.52.20150926, executed with
22936 CONFIG_FILES = $CONFIG_FILES
22937 CONFIG_HEADERS = $CONFIG_HEADERS
22938 CONFIG_LINKS = $CONFIG_LINKS
22939 CONFIG_COMMANDS = $CONFIG_COMMANDS
22940 > $ac_cs_invocation
22941 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22946 cat >>$CONFIG_STATUS <<EOF
22948 # INIT-COMMANDS section.
22951 ### Special initialization commands, used to pass information from the
22952 ### configuration-run into config.status
22955 ALTERNATE_SYMS="$ALTERNATE_SYMS"
22956 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22957 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22959 EXTRA_SUFFIX="$EXTRA_SUFFIX"
22960 LDCONFIG="$LDCONFIG"
22961 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22962 LIB_NAME="$LIB_NAME"
22963 LIB_PREFIX="$LIB_PREFIX"
22964 LIB_SUBSETS="$LIB_SUBSETS"
22965 LIB_SUFFIX="$LIB_SUFFIX"
22966 LIB_TRACING="$LIB_TRACING"
22968 MAKE_TERMINFO="$MAKE_TERMINFO"
22969 NCURSES_MAJOR="$NCURSES_MAJOR"
22970 NCURSES_MINOR="$NCURSES_MINOR"
22971 NCURSES_OSPEED="$NCURSES_OSPEED"
22972 NCURSES_PATCH="$NCURSES_PATCH"
22973 SRC_SUBDIRS="$SRC_SUBDIRS"
22974 TERMINFO="$TERMINFO"
22975 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22976 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22977 TICS_NAME="$TICS_NAME"
22978 TICS_SUFFIX="$TICS_SUFFIX"
22979 TIC_PATH="$TIC_PATH"
22980 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22981 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22982 TINFO_NAME="$TINFO_NAME"
22983 TINFO_SUFFIX="$TINFO_SUFFIX"
22984 UNALTERED_SYMS="$UNALTERED_SYMS"
22985 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
22986 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
22987 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
22988 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
22989 WILDCARD_SYMS="$WILDCARD_SYMS"
22990 WITH_CURSES_H="$with_curses_h"
22991 WITH_ECHO="${enable_echo:=yes}"
22992 WITH_OVERWRITE="$with_overwrite"
22993 cf_LIST_MODELS="$cf_list_models"
22994 cf_cv_abi_version="$cf_cv_abi_version"
22995 cf_cv_do_relink="$cf_cv_do_relink"
22996 cf_cv_do_symlinks="$cf_cv_do_symlinks"
22997 cf_cv_enable_lp64="$cf_cv_enable_lp64"
22998 cf_cv_enable_opaque="$cf_cv_enable_opaque"
22999 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
23000 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
23001 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
23002 cf_cv_rel_version="$cf_cv_rel_version"
23003 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
23004 cf_cv_shared_soname='$cf_cv_shared_soname'
23005 cf_cv_shlib_version="$cf_cv_shlib_version"
23006 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
23007 cf_cv_system_name="$cf_cv_system_name"
23008 cf_cv_term_driver="$with_term_driver"
23009 cf_with_ada="$cf_with_ada"
23010 cf_with_cxx_binding="$cf_with_cxx_binding"
23011 cf_with_db_install="$cf_with_db_install"
23012 cf_with_manpages="$cf_with_manpages"
23013 cf_with_tests="$cf_with_tests"
23016 with_shared_cxx="$with_shared_cxx"
23020 cat >>$CONFIG_STATUS <<\EOF
23021 for ac_config_target in $ac_config_targets
23023 case "$ac_config_target" in
23024 # Handling of arguments.
23025 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
23026 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
23027 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
23028 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
23029 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
23030 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
23031 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
23032 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23033 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23034 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
23035 *) { { echo "$as_me:23035: error: invalid argument: $ac_config_target" >&5
23036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23037 { (exit 1); exit 1; }; };;
23041 # If the user did not use the arguments to specify the items to instantiate,
23042 # then the envvar interface is used. Set only those that are not.
23043 # We use the long form for the default assignment because of an extremely
23044 # bizarre bug on SunOS 4.1.3.
23045 if $ac_need_defaults; then
23046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23051 # Create a temporary directory, and hook for its removal unless debugging.
23054 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23055 trap '{ (exit 1); exit 1; }' 1 2 13 15
23058 # Create a (secure) tmp directory for tmp files.
23061 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23062 test -n "$tmp" && test -d "$tmp"
23065 tmp=$TMPDIR/cs$$-$RANDOM
23066 (umask 077 && mkdir $tmp)
23069 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23070 { (exit 1); exit 1; }
23075 cat >>$CONFIG_STATUS <<EOF
23078 # CONFIG_FILES section.
23081 # No need to generate the scripts if there are no CONFIG_FILES.
23082 # This happens for instance when ./config.status config.h
23083 if test -n "\$CONFIG_FILES"; then
23084 # Protect against being on the right side of a sed subst in config.status.
23085 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23086 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23087 s,@SHELL@,$SHELL,;t t
23088 s,@exec_prefix@,$exec_prefix,;t t
23089 s,@prefix@,$prefix,;t t
23090 s,@program_transform_name@,$program_transform_name,;t t
23091 s,@bindir@,$bindir,;t t
23092 s,@sbindir@,$sbindir,;t t
23093 s,@libexecdir@,$libexecdir,;t t
23094 s,@datarootdir@,$datarootdir,;t t
23095 s,@datadir@,$datadir,;t t
23096 s,@sysconfdir@,$sysconfdir,;t t
23097 s,@sharedstatedir@,$sharedstatedir,;t t
23098 s,@localstatedir@,$localstatedir,;t t
23099 s,@libdir@,$libdir,;t t
23100 s,@includedir@,$includedir,;t t
23101 s,@oldincludedir@,$oldincludedir,;t t
23102 s,@infodir@,$infodir,;t t
23103 s,@mandir@,$mandir,;t t
23104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23109 s,@build_alias@,$build_alias,;t t
23110 s,@host_alias@,$host_alias,;t t
23111 s,@target_alias@,$target_alias,;t t
23112 s,@ECHO_C@,$ECHO_C,;t t
23113 s,@ECHO_N@,$ECHO_N,;t t
23114 s,@ECHO_T@,$ECHO_T,;t t
23115 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23116 s,@DEFS@,$DEFS,;t t
23117 s,@LIBS@,$LIBS,;t t
23118 s,@top_builddir@,$top_builddir,;t t
23119 s,@EGREP@,$EGREP,;t t
23120 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
23121 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
23122 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
23123 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23124 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23125 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
23126 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
23127 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
23128 s,@VERSION@,$VERSION,;t t
23129 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
23130 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
23131 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
23132 s,@PACKAGE@,$PACKAGE,;t t
23133 s,@build@,$build,;t t
23134 s,@build_cpu@,$build_cpu,;t t
23135 s,@build_vendor@,$build_vendor,;t t
23136 s,@build_os@,$build_os,;t t
23137 s,@host@,$host,;t t
23138 s,@host_cpu@,$host_cpu,;t t
23139 s,@host_vendor@,$host_vendor,;t t
23140 s,@host_os@,$host_os,;t t
23141 s,@target@,$target,;t t
23142 s,@target_cpu@,$target_cpu,;t t
23143 s,@target_vendor@,$target_vendor,;t t
23144 s,@target_os@,$target_os,;t t
23146 s,@CFLAGS@,$CFLAGS,;t t
23147 s,@LDFLAGS@,$LDFLAGS,;t t
23148 s,@CPPFLAGS@,$CPPFLAGS,;t t
23149 s,@ac_ct_CC@,$ac_ct_CC,;t t
23150 s,@EXEEXT@,$EXEEXT,;t t
23151 s,@OBJEXT@,$OBJEXT,;t t
23152 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23154 s,@LDCONFIG@,$LDCONFIG,;t t
23156 s,@CXXFLAGS@,$CXXFLAGS,;t t
23157 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23159 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23160 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23161 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23162 s,@LINT@,$LINT,;t t
23163 s,@LINT_OPTS@,$LINT_OPTS,;t t
23164 s,@LN_S@,$LN_S,;t t
23165 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23166 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23167 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
23168 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
23169 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
23170 s,@SET_MAKE@,$SET_MAKE,;t t
23171 s,@CTAGS@,$CTAGS,;t t
23172 s,@ETAGS@,$ETAGS,;t t
23173 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23174 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23175 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
23176 s,@RANLIB@,$RANLIB,;t t
23177 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23179 s,@ac_ct_LD@,$ac_ct_LD,;t t
23181 s,@ac_ct_AR@,$ac_ct_AR,;t t
23183 s,@ac_ct_NM@,$ac_ct_NM,;t t
23184 s,@ARFLAGS@,$ARFLAGS,;t t
23185 s,@DESTDIR@,$DESTDIR,;t t
23186 s,@BUILD_CC@,$BUILD_CC,;t t
23187 s,@BUILD_CPP@,$BUILD_CPP,;t t
23188 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
23189 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
23190 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
23191 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
23192 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
23193 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
23194 s,@cf_list_models@,$cf_list_models,;t t
23195 s,@ABI_VERSION@,$ABI_VERSION,;t t
23196 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
23197 s,@LIBTOOL@,$LIBTOOL,;t t
23198 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
23199 s,@LT_UNDEF@,$LT_UNDEF,;t t
23200 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
23201 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23202 s,@LIB_CREATE@,$LIB_CREATE,;t t
23203 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
23204 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
23205 s,@LIB_PREP@,$LIB_PREP,;t t
23206 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23207 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23208 s,@LIB_LINK@,$LIB_LINK,;t t
23209 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
23210 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
23211 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
23212 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23213 s,@TICS_NAME@,$TICS_NAME,;t t
23214 s,@TINFO_NAME@,$TINFO_NAME,;t t
23215 s,@LIB_NAME@,$LIB_NAME,;t t
23216 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
23217 s,@CC_G_OPT@,$CC_G_OPT,;t t
23218 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
23219 s,@LD_MODEL@,$LD_MODEL,;t t
23220 s,@shlibdir@,$shlibdir,;t t
23221 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
23222 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23223 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
23224 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23225 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
23226 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
23227 s,@LINK_PROGS@,$LINK_PROGS,;t t
23228 s,@LINK_TESTS@,$LINK_TESTS,;t t
23229 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23230 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23231 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
23232 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
23233 s,@RPATH_LIST@,$RPATH_LIST,;t t
23234 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
23235 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
23236 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
23237 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
23238 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23239 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
23240 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
23241 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
23242 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
23243 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
23244 s,@XTERM_KBS@,$XTERM_KBS,;t t
23245 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
23246 s,@TERMINFO@,$TERMINFO,;t t
23247 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
23248 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
23249 s,@TERMPATH@,$TERMPATH,;t t
23250 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
23251 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
23252 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
23253 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
23254 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
23255 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
23256 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
23257 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
23258 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
23259 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
23260 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
23261 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
23262 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
23263 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
23264 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
23265 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
23266 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
23267 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
23268 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
23269 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
23270 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
23271 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
23272 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
23273 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
23274 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
23275 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
23276 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
23277 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
23278 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
23279 s,@PTHREAD@,$PTHREAD,;t t
23280 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
23281 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
23282 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
23283 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
23284 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23285 s,@ECHO_LT@,$ECHO_LT,;t t
23286 s,@ECHO_LD@,$ECHO_LD,;t t
23287 s,@RULE_CC@,$RULE_CC,;t t
23288 s,@SHOW_CC@,$SHOW_CC,;t t
23289 s,@ECHO_CC@,$ECHO_CC,;t t
23290 s,@ECHO_LINK@,$ECHO_LINK,;t t
23291 s,@ADAFLAGS@,$ADAFLAGS,;t t
23292 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23293 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
23294 s,@ADA_TRACE@,$ADA_TRACE,;t t
23295 s,@MATH_LIB@,$MATH_LIB,;t t
23296 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
23297 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
23298 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
23299 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
23300 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
23301 s,@TEST_LIBS@,$TEST_LIBS,;t t
23302 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
23303 s,@CXXCPP@,$CXXCPP,;t t
23304 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
23305 s,@CXX_AR@,$CXX_AR,;t t
23306 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
23307 s,@CXXLIBS@,$CXXLIBS,;t t
23308 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
23309 s,@gnat_exists@,$gnat_exists,;t t
23310 s,@M4_exists@,$M4_exists,;t t
23311 s,@cf_ada_make@,$cf_ada_make,;t t
23312 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
23313 s,@cf_compile_generics@,$cf_compile_generics,;t t
23314 s,@cf_generic_objects@,$cf_generic_objects,;t t
23315 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
23316 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
23317 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
23318 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
23319 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
23320 s,@cf_ada_package@,$cf_ada_package,;t t
23321 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
23322 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
23323 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
23324 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
23325 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
23326 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
23327 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23328 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23329 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
23330 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
23331 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
23332 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
23333 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
23334 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
23335 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
23336 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
23337 s,@TICS_LIBS@,$TICS_LIBS,;t t
23338 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
23339 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
23340 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
23341 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23342 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23343 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
23344 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23345 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23346 s,@includesubdir@,$includesubdir,;t t
23347 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
23348 s,@TICS_LIST@,$TICS_LIST,;t t
23349 s,@TINFO_LIST@,$TINFO_LIST,;t t
23350 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
23351 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
23352 s,@TEST_ARGS@,$TEST_ARGS,;t t
23353 s,@TEST_DEPS@,$TEST_DEPS,;t t
23354 s,@TEST_ARG2@,$TEST_ARG2,;t t
23355 s,@TEST_DEP2@,$TEST_DEP2,;t t
23356 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
23357 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
23358 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
23359 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
23360 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
23361 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
23362 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
23363 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
23364 s,@cross_compiling@,$cross_compiling,;t t
23365 s,@TIC_PATH@,$TIC_PATH,;t t
23366 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
23367 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
23368 s,@PANEL_NAME@,$PANEL_NAME,;t t
23369 s,@MENU_NAME@,$MENU_NAME,;t t
23370 s,@FORM_NAME@,$FORM_NAME,;t t
23371 s,@CXX_NAME@,$CXX_NAME,;t t
23372 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
23373 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
23374 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
23375 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
23376 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
23377 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
23382 cat >>$CONFIG_STATUS <<\EOF
23383 # Split the substitutions into bite-sized pieces for seds with
23384 # small command number limits, like on Digital OSF/1 and HP-UX.
23385 ac_max_sed_lines=48
23386 ac_sed_frag=1 # Number of current file.
23387 ac_beg=1 # First line for current file.
23388 ac_end=$ac_max_sed_lines # Line after last line for current file.
23391 while $ac_more_lines; do
23392 if test $ac_beg -gt 1; then
23393 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23395 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23397 if test ! -s $tmp/subs.frag; then
23398 ac_more_lines=false
23400 # The purpose of the label and of the branching condition is to
23401 # speed up the sed processing (if there are no `@' at all, there
23402 # is no need to browse any of the substitutions).
23403 # These are the two extra sed commands mentioned above.
23405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23406 # It is possible to make a multiline substitution using escaped newlines.
23407 # Ensure that we do not split the substitution between script fragments.
23409 ac_END=`expr $ac_end + $ac_max_sed_lines`
23410 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23411 if test -s $tmp/subs.next; then
23412 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23413 if test ! -s $tmp/subs.edit; then
23414 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23415 if test ! -s $tmp/subs.edit; then
23416 if test $ac_beg -gt 1; then
23417 ac_end=`expr $ac_end - 1`
23424 if test -z "$ac_sed_cmds"; then
23425 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23427 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23429 ac_sed_frag=`expr $ac_sed_frag + 1`
23431 ac_end=`expr $ac_end + $ac_max_sed_lines`
23434 if test -z "$ac_sed_cmds"; then
23437 fi # test -n "$CONFIG_FILES"
23440 cat >>$CONFIG_STATUS <<\EOF
23441 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23444 - | *:- | *:-:* ) # input from stdin
23446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23450 * ) ac_file_in=$ac_file.in ;;
23453 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23454 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23455 X"$ac_file" : 'X\(//\)[^/]' \| \
23456 X"$ac_file" : 'X\(//\)$' \| \
23457 X"$ac_file" : 'X\(/\)' \| \
23458 . : '\(.\)' 2>/dev/null ||
23460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23462 /^X\(\/\/\)$/{ s//\1/; q; }
23463 /^X\(\/\).*/{ s//\1/; q; }
23465 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23466 { case "$ac_dir" in
23467 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23471 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23472 case $as_mkdir_dir in
23473 # Skip DOS drivespec
23474 ?:) as_incr_dir=$as_mkdir_dir ;;
23476 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23477 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23482 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23483 # A "../" for each directory in $ac_dir_suffix.
23484 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23486 ac_dir_suffix= ac_dots=
23491 if test -z "$ac_dots"; then
23494 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
23496 [\\/]* | ?:[\\/]* )
23497 ac_srcdir=$srcdir$ac_dir_suffix;
23498 ac_top_srcdir=$srcdir ;;
23499 *) # Relative path.
23500 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
23501 ac_top_srcdir=$ac_dots$srcdir ;;
23505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23506 *) ac_INSTALL=$ac_dots$INSTALL ;;
23509 if test x"$ac_file" != x-; then
23510 { echo "$as_me:23510: creating $ac_file" >&5
23511 echo "$as_me: creating $ac_file" >&6;}
23514 # Let's still pretend it is `configure' which instantiates (i.e., don't
23515 # use $as_me), people would be surprised to read:
23516 # /* config.h. Generated automatically by config.status. */
23517 configure_input="Generated automatically from `echo $ac_file_in |
23518 sed 's,.*/,,'` by configure."
23520 # First look for the input files in the build tree, otherwise in the
23522 ac_file_inputs=`IFS=:
23523 for f in $ac_file_in; do
23525 -) echo $tmp/stdin ;;
23527 # Absolute (can't be DOS-style, as IFS=:)
23528 test -f "$f" || { { echo "$as_me:23528: error: cannot find input file: $f" >&5
23529 echo "$as_me: error: cannot find input file: $f" >&2;}
23530 { (exit 1); exit 1; }; }
23533 if test -f "$f"; then
23536 elif test -f "$srcdir/$f"; then
23541 { { echo "$as_me:23541: error: cannot find input file: $f" >&5
23542 echo "$as_me: error: cannot find input file: $f" >&2;}
23543 { (exit 1); exit 1; }; }
23546 done` || { (exit 1); exit 1; }
23548 cat >>$CONFIG_STATUS <<\EOF
23549 ac_warn_datarootdir=no
23550 if test x"$ac_file" != x-; then
23551 for ac_item in $ac_file_inputs
23553 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23554 if test -n "$ac_seen"; then
23555 ac_used=`grep '@datarootdir@' $ac_item`
23556 if test -z "$ac_used"; then
23557 { echo "$as_me:23557: WARNING: datarootdir was used implicitly but not set:
23559 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23561 ac_warn_datarootdir=yes
23564 ac_seen=`grep '${datarootdir}' $ac_item`
23565 if test -n "$ac_seen"; then
23566 { echo "$as_me:23566: WARNING: datarootdir was used explicitly but not set:
23568 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23570 ac_warn_datarootdir=yes
23575 if test "x$ac_warn_datarootdir" = xyes; then
23576 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23580 cat >>$CONFIG_STATUS <<EOF
23584 cat >>$CONFIG_STATUS <<\EOF
23586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23587 s,@configure_input@,$configure_input,;t t
23588 s,@srcdir@,$ac_srcdir,;t t
23589 s,@top_srcdir@,$ac_top_srcdir,;t t
23590 s,@INSTALL@,$ac_INSTALL,;t t
23591 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23593 if test x"$ac_file" != x-; then
23594 cp $tmp/out $ac_file
23596 for ac_name in prefix exec_prefix datarootdir
23598 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23599 if test -n "$ac_seen"; then
23600 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23601 if test -z "$ac_init"; then
23602 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23603 { echo "$as_me:23603: WARNING: Variable $ac_name is used but was not set:
23605 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23610 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23611 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23612 if test -s $tmp/out; then
23613 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23614 { echo "$as_me:23614: WARNING: Some variables may not be substituted:
23616 echo "$as_me: WARNING: Some variables may not be substituted:
23626 cat >>$CONFIG_STATUS <<\EOF
23629 # CONFIG_HEADER section.
23632 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23633 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23635 # ac_d sets the value in "#define NAME VALUE" lines.
23636 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23637 ac_dB='[ ].*$,\1#\2'
23640 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23641 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23642 ac_iB='\([ ]\),\1#\2define\3'
23645 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23646 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23647 ac_uB='$,\1#\2define\3'
23651 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23652 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23654 - | *:- | *:-:* ) # input from stdin
23656 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23657 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23658 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23660 * ) ac_file_in=$ac_file.in ;;
23663 test x"$ac_file" != x- && { echo "$as_me:23663: creating $ac_file" >&5
23664 echo "$as_me: creating $ac_file" >&6;}
23666 # First look for the input files in the build tree, otherwise in the
23668 ac_file_inputs=`IFS=:
23669 for f in $ac_file_in; do
23671 -) echo $tmp/stdin ;;
23673 # Absolute (can't be DOS-style, as IFS=:)
23674 test -f "$f" || { { echo "$as_me:23674: error: cannot find input file: $f" >&5
23675 echo "$as_me: error: cannot find input file: $f" >&2;}
23676 { (exit 1); exit 1; }; }
23679 if test -f "$f"; then
23682 elif test -f "$srcdir/$f"; then
23687 { { echo "$as_me:23687: error: cannot find input file: $f" >&5
23688 echo "$as_me: error: cannot find input file: $f" >&2;}
23689 { (exit 1); exit 1; }; }
23692 done` || { (exit 1); exit 1; }
23693 # Remove the trailing spaces.
23694 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23698 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23699 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23700 # be either 'cat' or 'sort'.
23701 cat confdefs.h | uniq >conftest.vals
23703 # Break up conftest.vals because some shells have a limit on
23704 # the size of here documents, and old seds have small limits too.
23706 rm -f conftest.tail
23707 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23708 while grep . conftest.vals >/dev/null
23710 # Write chunks of a limited-size here document to conftest.frag.
23711 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23712 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23713 echo 'CEOF' >> $CONFIG_STATUS
23714 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23715 rm -f conftest.vals
23716 mv conftest.tail conftest.vals
23718 rm -f conftest.vals
23720 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23722 echo ' cat >> conftest.edit <<CEOF
23723 /@DEFS@/r conftest.frag
23726 sed -f conftest.edit $tmp/in > $tmp/out
23728 mv $tmp/out $tmp/in
23729 rm -f conftest.edit conftest.frag
23730 ' >> $CONFIG_STATUS
23732 cat >>$CONFIG_STATUS <<\EOF
23733 # Let's still pretend it is `configure' which instantiates (i.e., don't
23734 # use $as_me), people would be surprised to read:
23735 # /* config.h. Generated automatically by config.status. */
23736 if test x"$ac_file" = x-; then
23737 echo "/* Generated automatically by configure. */" >$tmp/config.h
23739 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
23741 cat $tmp/in >>$tmp/config.h
23743 if test x"$ac_file" != x-; then
23744 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23745 { echo "$as_me:23745: $ac_file is unchanged" >&5
23746 echo "$as_me: $ac_file is unchanged" >&6;}
23748 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749 X"$ac_file" : 'X\(//\)[^/]' \| \
23750 X"$ac_file" : 'X\(//\)$' \| \
23751 X"$ac_file" : 'X\(/\)' \| \
23752 . : '\(.\)' 2>/dev/null ||
23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756 /^X\(\/\/\)$/{ s//\1/; q; }
23757 /^X\(\/\).*/{ s//\1/; q; }
23759 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23760 { case "$ac_dir" in
23761 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23765 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23766 case $as_mkdir_dir in
23767 # Skip DOS drivespec
23768 ?:) as_incr_dir=$as_mkdir_dir ;;
23770 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23771 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23778 mv $tmp/config.h $ac_file
23782 rm -f $tmp/config.h
23786 cat >>$CONFIG_STATUS <<\EOF
23788 # CONFIG_COMMANDS section.
23790 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23791 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23792 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23796 if test "x$cf_with_tests" != xno ; then
23800 if test ! -d $srcdir/$cf_dir; then
23802 elif test -f $srcdir/$cf_dir/programs; then
23803 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
23809 cf_prefix=$LIB_PREFIX
23811 case $cf_cv_shlib_version in
23812 (cygdll|msysdll|mingw)
23813 TINFO_NAME=$TINFO_ARG_SUFFIX
23818 if test -n "$TINFO_SUFFIX" ; then
23819 case $TINFO_SUFFIX in
23821 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
23822 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
23825 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
23826 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
23829 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
23830 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
23835 for cf_dir in $SRC_SUBDIRS
23837 if test ! -d $srcdir/$cf_dir ; then
23839 elif test -f $srcdir/$cf_dir/modules; then
23844 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
23846 cf_awk_program="$cf_awk_program\
23847 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
23848 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
23852 if test "x$WILDCARD_SYMS" = xno
23854 cf_awk_program="$cf_awk_program\
23855 /[ ]_\\*;/ { skip=1; next; }\
23859 if test "x$cf_awk_program" != "x"
23861 cat >>$cf_dir/Makefile <<CF_EOF
23863 # Generated by CF_LIB_RULES
23864 resulting.map: $UNALTERED_SYMS
23865 $AWK 'BEGIN { skip = 1; last=""; } \
23867 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
23868 skip = 0; last = \$\$0; } \
23869 END { print last; }' < $UNALTERED_SYMS >\$@
23872 rm -f resulting.map
23876 for cf_item in $cf_LIST_MODELS
23882 cf_depsuf=$cf_suffix
23886 cf_depsuf=$cf_suffix
23890 cf_depsuf=$cf_suffix
23893 case $cf_cv_system_name in
23896 cf_depsuf=$cf_suffix
23898 (cygwin*|msys*|mingw*)
23904 cf_depsuf=$cf_suffix
23910 cf_depsuf=$cf_suffix
23914 cf_depsuf=$cf_suffix
23920 cf_depsuf=$cf_suffix
23926 cf_depsuf=$cf_suffix
23929 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23931 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23932 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23936 test "$cf_dir" = c++ && cf_libname=ncurses++
23937 if test $cf_item = shared ; then
23938 if test -n "${LIB_SUFFIX}"
23940 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23942 cf_shared_suffix="$cf_suffix"
23944 if test "$cf_cv_do_symlinks" = yes ; then
23947 case "$cf_cv_shlib_version" in
23949 cf_version_name=REL_VERSION
23952 cf_version_name=ABI_VERSION
23956 if test -n "$cf_version_name"
23958 case "$cf_cv_system_name" in
23961 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23964 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23968 if test -n "${USE_LIB_SUFFIX}"
23970 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23972 cf_shared_suffix="$cf_suffix"
23975 # cygwin needs import library, and has unique naming convention
23976 # use autodetected ${cf_prefix} for import lib and static lib, but
23977 # use 'cyg' prefix for shared lib.
23978 case $cf_cv_shlib_version in
23980 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23981 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
23984 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23985 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
23988 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23989 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
23995 if test -n "$cf_add_lib"
23997 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24001 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
24002 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24005 if test $cf_dir = ncurses ; then
24006 cf_subsets="$LIB_SUBSETS"
24007 cf_r_parts="$cf_subsets"
24008 cf_liblist="$Libs_To_Make"
24010 while test -n "$cf_r_parts"
24012 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
24013 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
24014 if test "$cf_l_parts" != "$cf_r_parts" ; then
24016 case $cf_l_parts in
24018 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
24021 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
24027 if test -n "$cf_add_lib"; then
24028 Libs_To_Make="$cf_add_lib $Libs_To_Make"
24035 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
24038 if test $cf_dir = c++; then
24039 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
24041 for cf_item in $Libs_To_Make
24047 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24050 for cf_test in $cf_list
24052 if test "$cf_test" = "$cf_item"
24054 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
24059 test -n "$cf_item" && cf_list="$cf_list $cf_item"
24061 Libs_To_Make="$cf_list"
24065 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
24066 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
24067 $cf_dir/Makefile >$cf_dir/Makefile.out
24068 mv $cf_dir/Makefile.out $cf_dir/Makefile
24070 $AWK -f $srcdir/mk-0th.awk \
24071 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
24072 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24074 for cf_subset in $cf_subsets
24077 for cf_item in $cf_LIST_MODELS
24080 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
24082 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24085 if test "$CXX_MODEL" = SHARED; then
24086 case $cf_cv_shlib_version in
24087 (cygdll|msysdll|mingw)
24088 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
24090 echo "${as_me:-configure}:24090: testing overriding CXX_MODEL to SHARED ..." 1>&5
24092 with_shared_cxx=yes
24095 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
24103 cf_depsuf=$cf_suffix
24107 cf_depsuf=$cf_suffix
24111 cf_depsuf=$cf_suffix
24114 case $cf_cv_system_name in
24117 cf_depsuf=$cf_suffix
24119 (cygwin*|msys*|mingw*)
24125 cf_depsuf=$cf_suffix
24131 cf_depsuf=$cf_suffix
24135 cf_depsuf=$cf_suffix
24141 cf_depsuf=$cf_suffix
24147 cf_depsuf=$cf_suffix
24150 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24152 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24153 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24157 (libtool) cf_subdir='obj_lo' ;;
24158 (normal) cf_subdir='objects' ;;
24159 (debug) cf_subdir='obj_g' ;;
24160 (profile) cf_subdir='obj_p' ;;
24162 case $cf_cv_system_name in
24164 cf_subdir='objects' ;;
24166 cf_subdir='obj_s' ;;
24170 # Test for case where we build libtinfo with a different name.
24172 if test $cf_dir = ncurses ; then
24175 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24178 cf_libname=$TINFO_LIB_SUFFIX
24181 cf_libname=$TICS_LIB_SUFFIX
24184 elif test $cf_dir = c++ ; then
24185 cf_libname=ncurses++$USE_LIB_SUFFIX
24187 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24189 if test -n "${USE_ARG_SUFFIX}" ; then
24190 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
24191 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
24194 # These dependencies really are for development, not
24195 # builds, but they are useful in porting, too.
24196 cf_depend="../include/ncurses_cfg.h"
24197 if test "$srcdir" = "."; then
24200 cf_reldir="\${srcdir}"
24203 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
24204 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
24205 elif test -f $srcdir/$cf_dir/curses.priv.h; then
24206 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
24210 old_cf_suffix="$cf_suffix"
24211 if test "$cf_cv_shlib_version_infix" = yes ; then
24212 if test -n "$USE_LIB_SUFFIX" ; then
24213 case $USE_LIB_SUFFIX in
24215 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
24216 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
24217 cf_dir_suffix=tw$EXTRA_SUFFIX
24220 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
24221 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
24222 cf_dir_suffix=t$EXTRA_SUFFIX
24225 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
24226 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
24227 cf_dir_suffix=w$EXTRA_SUFFIX
24230 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
24231 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
24232 cf_dir_suffix=$EXTRA_SUFFIX
24238 $AWK -f $srcdir/mk-1st.awk \
24239 name=${cf_libname}${cf_dir_suffix} \
24240 traces=$LIB_TRACING \
24242 CXX_MODEL=$CXX_MODEL \
24244 prefix=$cf_prefix \
24245 suffix=$cf_suffix \
24246 subset=$cf_subset \
24247 driver=$cf_cv_term_driver \
24249 TermlibRoot=$TINFO_NAME \
24250 TermlibSuffix=$TINFO_SUFFIX \
24251 ShlibVer=$cf_cv_shlib_version \
24252 ShlibVerInfix=$cf_cv_shlib_version_infix \
24253 ReLink=${cf_cv_do_relink:-no} \
24254 DoLinks=$cf_cv_do_symlinks \
24255 rmSoLocs=$cf_cv_rm_so_locs \
24256 ldconfig="$LDCONFIG" \
24257 overwrite=$WITH_OVERWRITE \
24258 depend="$cf_depend" \
24260 libtool_version="$LIBTOOL_VERSION" \
24261 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24263 cf_suffix="$old_cf_suffix"
24265 for cf_subdir2 in $cf_subdirs lib
24267 test $cf_subdir = $cf_subdir2 && break
24269 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
24270 $AWK -f $srcdir/mk-2nd.awk \
24272 traces=$LIB_TRACING \
24275 subset=$cf_subset \
24278 crenames=$cf_cv_prog_CC_c_o \
24279 cxxrenames=$cf_cv_prog_CXX_c_o \
24280 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24281 cf_subdirs="$cf_subdirs $cf_subdir"
24286 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
24289 for cf_dir in $SRC_SUBDIRS
24291 if test ! -d $srcdir/$cf_dir ; then
24295 if test -f $cf_dir/Makefile ; then
24298 echo 'libs \' >> Makefile
24299 echo 'install.libs \' >> Makefile
24300 echo 'uninstall.libs ::' >> Makefile
24301 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
24306 if test -f $srcdir/$cf_dir/modules; then
24308 if test -f $srcdir/$cf_dir/headers; then
24309 cat >> Makefile <<CF_EOF
24310 install.includes \\
24311 uninstall.includes \\
24314 if test "$cf_dir" != "c++" ; then
24315 echo 'lint \' >> Makefile
24317 cat >> Makefile <<CF_EOF
24323 uninstall.$cf_dir ::
24324 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24326 elif test -f $srcdir/$cf_dir/headers; then
24327 cat >> Makefile <<CF_EOF
24332 install.includes \\
24333 uninstall.includes ::
24334 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24339 if test "x$cf_with_db_install" = xyes; then
24340 cat >> Makefile <<CF_EOF
24342 install.libs uninstall.libs \\
24343 install.data uninstall.data ::
24344 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24347 cat >> Makefile <<CF_EOF
24349 install.libs uninstall.libs ::
24350 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24354 if test "x$cf_with_manpages" = xyes; then
24355 cat >> Makefile <<CF_EOF
24359 cd man && \${MAKE} \${TOP_MFLAGS} \$@
24363 cat >> Makefile <<CF_EOF
24366 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
24367 rm -f headers.sh headers.sed mk_shared_lib.sh
24368 rm -f edit_man.* man_alias.*
24369 rm -rf \${DIRS_TO_MAKE}
24372 # Special case: tack's manpage lives in its own directory.
24373 if test "x$cf_with_manpages" = xyes; then
24374 if test -d tack ; then
24375 if test -f $srcdir/$tack.h; then
24376 cat >> Makefile <<CF_EOF
24380 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
24386 rm -f headers.sed headers.sh
24388 echo creating headers.sh
24389 cat >headers.sh <<CF_EOF
24391 # This shell script is generated by the 'configure' script. It is invoked in a
24392 # subdirectory of the build tree. It generates a sed-script in the parent
24393 # directory that is used to adjust includes for header files that reside in a
24394 # subdirectory of /usr/include, etc.
24396 while test \$# != 3
24398 PRG="\$PRG \$1"; shift
24403 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
24404 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
24405 echo installing \$SRC in \$DST
24408 if test $WITH_CURSES_H = yes; then
24409 cat >>headers.sh <<CF_EOF
24412 END=\`basename \$DST\`
24413 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24415 NAME=\`basename \$i\`
24416 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24420 echo "" >> \$TMPSED
24426 cat >>headers.sh <<CF_EOF
24429 END=\`basename \$DST\`
24430 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24432 NAME=\`basename \$i\`
24433 if test "\$NAME" = "curses.h"
24435 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24438 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24442 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24447 cat >>headers.sh <<CF_EOF
24449 sed -f \$TMPSED \$SRC > \$TMPSRC
24450 NAME=\`basename \$SRC\`
24452 if test $WITH_CURSES_H != yes; then
24453 cat >>headers.sh <<CF_EOF
24454 test "\$NAME" = "curses.h" && NAME=ncurses.h
24457 cat >>headers.sh <<CF_EOF
24458 # Just in case someone gzip'd manpages, remove the conflicting copy.
24459 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
24461 eval \$PRG \$TMPSRC \$DST/\$NAME
24462 rm -f \$TMPSRC \$TMPSED
24465 chmod 0755 headers.sh
24467 for cf_dir in $SRC_SUBDIRS
24469 if test ! -d $srcdir/$cf_dir ; then
24473 if test -f $srcdir/$cf_dir/headers; then
24474 $AWK -f $srcdir/mk-hdr.awk \
24475 subset="$LIB_SUBSETS" \
24476 compat="$WITH_CURSES_H" \
24477 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
24480 if test -f $srcdir/$cf_dir/modules; then
24481 if test "$cf_dir" != "c++" ; then
24482 cat >>$cf_dir/Makefile <<"CF_EOF"
24483 depend : ${AUTO_SRC}
24484 makedepend -- ${CPPFLAGS} -- ${C_SRC}
24486 # DO NOT DELETE THIS LINE -- make depend depends on it.
24492 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24493 if test -z "$USE_OLD_MAKERULES" ; then
24494 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
24502 cat >>$CONFIG_STATUS <<\EOF
24504 { (exit 0); exit 0; }
24506 chmod +x $CONFIG_STATUS
24507 ac_clean_files=$ac_clean_files_save
24509 # configure is writing to config.log, and then calls config.status.
24510 # config.status does its own redirection, appending to config.log.
24511 # Unfortunately, on DOS this fails, as config.log is still kept open
24512 # by configure, so config.status won't be able to write to it; its
24513 # output is simply discarded. So we exec the FD to /dev/null,
24514 # effectively closing config.log, so it can be properly (re)opened and
24515 # appended to by config.status. When coming back to configure, we
24516 # need to make the FD available again.
24517 if test "$no_create" != yes; then
24520 $SHELL $CONFIG_STATUS || ac_cs_success=false
24522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24523 # would make configure fail if this is the last instruction.
24524 $ac_cs_success || { (exit 1); exit 1; }
24526 ${MAKE:-make} preinstall