2 # From configure.in Revision: 1.643 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
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 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
777 --with-bool=TYPE override fallback type of bool variable
778 --with-caps=alt compile with alternate Caps file
779 --with-chtype=TYPE override type of chtype
780 --with-ospeed=TYPE override type of ospeed variable
781 --with-mmask-t=TYPE override type of mmask_t
782 --with-ccharw-max=XXX override size CCHARW_MAX
783 --with-tparm-arg=TYPE override parameter type of tparm
784 --with-rcs-ids compile-in RCS identifiers
785 Options to Specify How Manpages are Installed:
786 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
787 optionally formatted/catonly, e.g., gzip,formatted
788 --with-manpage-renames specify manpage-renaming
789 --with-manpage-aliases specify manpage-aliases using .so
790 --with-manpage-symlinks specify manpage-aliases using symlinks
791 --with-manpage-tbl specify manpage processing with tbl
793 --disable-ext-funcs disable function-extensions
794 --enable-sp-funcs enable SCREEN-extensions
795 --enable-term-driver enable terminal-driver
796 --enable-const compile with extra/non-standard const
797 --enable-ext-colors compile for 256-color support
798 --enable-ext-mouse compile for extended mouse-encoding
799 --enable-ext-putwin compile with extended putwin/screendump
800 --enable-no-padding compile with $NCURSES_NO_PADDING code
801 --enable-signed-char compile using signed Boolean's in term.h
802 --enable-sigwinch compile with SIGWINCH handler
803 --enable-tcap-names compile with user-definable terminal capabilities
804 --with-pthread use POSIX thread library
805 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
806 --enable-weak-symbols enable weak-symbols for pthreads
807 --enable-reentrant compile with reentrant code
808 --enable-opaque-curses make curses WINDOW, etc., "opaque"
809 --enable-opaque-form make form-library structures "opaque"
810 --enable-opaque-menu make menu-library structures "opaque"
811 --enable-opaque-panel make panel-library structures "opaque"
812 --with-wrap-prefix=XXX override prefix used for public variables
814 --without-develop disable development options
815 --enable-hard-tabs compile with hard-tabs code
816 --enable-xmc-glitch compile with support for xmc (magic-cookie)
818 --disable-assumed-color do not assume anything about default-colors
819 --disable-hashmap compile without hashmap scrolling-optimization
820 --enable-colorfgbg compile-in experimental $COLORFGBG code
821 --enable-interop compile-in interop bindings
822 --enable-safe-sprintf compile with experimental safe-sprintf code
823 --disable-scroll-hints compile without scroll-hints code
824 --enable-wgetch-events compile with wgetch-events code
825 Testing/development Options:
826 --disable-echo do not display "compiling" commands
827 --enable-warnings build: turn on GCC compiler warnings
828 --enable-string-hacks work around bogus compiler/loader warnings
829 --enable-assertions test: turn on generation of assertion code
830 --with-dmalloc test: use Gray Watson's dmalloc library
831 --with-dbmalloc test: use Conor Cahill's dbmalloc library
832 --with-valgrind test: use valgrind
833 --disable-leaks test: free permanent memory, analyze leaks
834 --enable-expanded test: generate functions for certain macros
835 --disable-macros test: use functions rather than macros
836 --with-trace test: add trace() function to all models of ncurses
837 --disable-gnat-projects test: disable GNAT projects even if usable
838 Ada95 Binding Options:
839 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
840 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
841 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
842 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
852 CXX C++ compiler command
853 CXXFLAGS C++ compiler flags
854 CXXCPP C++ preprocessor
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
865 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
867 # A "../" for each directory in /$ac_subdir.
868 ac_dots=`echo $ac_subdir |
869 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
872 .) # No --srcdir option. We are building in place.
873 ac_sub_srcdir=$srcdir ;;
874 [\\/]* | ?:[\\/]* ) # Absolute path.
875 ac_sub_srcdir=$srcdir/$ac_subdir ;;
877 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
880 # Check for guested configure; otherwise get Cygnus style configure.
881 if test -f $ac_sub_srcdir/configure.gnu; then
883 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
884 elif test -f $ac_sub_srcdir/configure; then
886 $SHELL $ac_sub_srcdir/configure --help=recursive
887 elif test -f $ac_sub_srcdir/configure.ac ||
888 test -f $ac_sub_srcdir/configure.in; then
892 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
898 test -n "$ac_init_help" && exit 0
899 if $ac_init_version; then
902 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
903 Free Software Foundation, Inc.
904 This configure script is free software; the Free Software Foundation
905 gives unlimited permission to copy, distribute and modify it.
911 This file contains any messages produced by compilers while
912 running configure, to aid debugging if configure makes a mistake.
914 It was created by $as_me, which was
915 generated by GNU Autoconf 2.52.20170501. Invocation command line was
926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
938 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
955 # Keep a trace of the command line.
956 # Strip out --no-create and --no-recursion so they do not pile up.
957 # Also quote any args containing shell meta-characters.
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c) ;;
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
967 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
968 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
969 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
971 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
974 # Get rid of the leading space.
977 # When interrupted or exit'd, cleanup temporary files, and complete
978 # config.log. We remove comments because anyway the quotes in there
979 # would cause problems or look ugly.
981 # Save into config.log some information that might help in debugging.
983 echo "## ----------------- ##" >&5
984 echo "## Cache variables. ##" >&5
985 echo "## ----------------- ##" >&5
987 # The following way of writing the cache mishandles newlines in values,
990 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
993 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
998 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1002 sed "/^$/d" confdefs.h >conftest.log
1003 if test -s conftest.log; then
1005 echo "## ------------ ##" >&5
1006 echo "## confdefs.h. ##" >&5
1007 echo "## ------------ ##" >&5
1009 cat conftest.log >&5
1012 test "$ac_signal" != 0 &&
1013 echo "$as_me: caught signal $ac_signal" >&5
1014 echo "$as_me: exit $exit_status" >&5
1015 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1018 for ac_signal in 1 2 13 15; do
1019 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1024 rm -rf conftest* confdefs.h
1025 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1028 # Let the site file select an alternate cache file if it wants to.
1029 # Prefer explicitly selected file to automatically selected ones.
1030 if test -z "$CONFIG_SITE"; then
1031 if test "x$prefix" != xNONE; then
1032 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1034 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1037 for ac_site_file in $CONFIG_SITE; do
1038 if test -r "$ac_site_file"; then
1039 { echo "$as_me:1039: loading site script $ac_site_file" >&5
1040 echo "$as_me: loading site script $ac_site_file" >&6;}
1041 cat "$ac_site_file" >&5
1046 if test -r "$cache_file"; then
1047 # Some versions of bash will fail to source /dev/null (special
1048 # files actually), so we avoid doing that.
1049 if test -f "$cache_file"; then
1050 { echo "$as_me:1050: loading cache $cache_file" >&5
1051 echo "$as_me: loading cache $cache_file" >&6;}
1053 [\\/]* | ?:[\\/]* ) . $cache_file;;
1054 *) . ./$cache_file;;
1058 { echo "$as_me:1058: creating cache $cache_file" >&5
1059 echo "$as_me: creating cache $cache_file" >&6;}
1063 # Check that the precious variables saved in the cache have kept the same
1065 ac_cache_corrupted=false
1066 for ac_var in `(set) 2>&1 |
1067 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1068 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1069 eval ac_new_set=\$ac_env_${ac_var}_set
1070 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1071 eval ac_new_val="\$ac_env_${ac_var}_value"
1072 case $ac_old_set,$ac_new_set in
1074 { echo "$as_me:1074: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1075 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1076 ac_cache_corrupted=: ;;
1078 { echo "$as_me:1078: error: \`$ac_var' was not set in the previous run" >&5
1079 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1080 ac_cache_corrupted=: ;;
1083 if test "x$ac_old_val" != "x$ac_new_val"; then
1084 { echo "$as_me:1084: error: \`$ac_var' has changed since the previous run:" >&5
1085 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1086 { echo "$as_me:1086: former value: $ac_old_val" >&5
1087 echo "$as_me: former value: $ac_old_val" >&2;}
1088 { echo "$as_me:1088: current value: $ac_new_val" >&5
1089 echo "$as_me: current value: $ac_new_val" >&2;}
1090 ac_cache_corrupted=:
1093 # Pass precious variables to config.status. It doesn't matter if
1094 # we pass some twice (in addition to the command line arguments).
1095 if test "$ac_new_set" = set; then
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1099 ac_configure_args="$ac_configure_args '$ac_arg'"
1101 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1106 if $ac_cache_corrupted; then
1107 { echo "$as_me:1107: error: changes in the environment can compromise the build" >&5
1108 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1109 { { echo "$as_me:1109: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1110 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1111 { (exit 1); exit 1; }; }
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1119 ac_main_return=return
1121 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1122 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1124 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1125 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1127 echo "#! $SHELL" >conftest.sh
1128 echo "exit 0" >>conftest.sh
1129 chmod +x conftest.sh
1130 if { (echo "$as_me:1130: PATH=\".;.\"; conftest.sh") >&5
1131 (PATH=".;."; conftest.sh) 2>&5
1133 echo "$as_me:1133: \$? = $ac_status" >&5
1134 (exit $ac_status); }; then
1135 ac_path_separator=';'
1139 PATH_SEPARATOR="$ac_path_separator"
1142 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1146 echo "$as_me:1146: checking for egrep" >&5
1147 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1148 if test "${ac_cv_prog_egrep+set}" = set; then
1149 echo $ECHO_N "(cached) $ECHO_C" >&6
1151 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1152 then ac_cv_prog_egrep='grep -E'
1153 else ac_cv_prog_egrep='egrep'
1156 echo "$as_me:1156: result: $ac_cv_prog_egrep" >&5
1157 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1158 EGREP=$ac_cv_prog_egrep
1160 test -z "$EGREP" && { { echo "$as_me:1160: error: No egrep program found" >&5
1161 echo "$as_me: error: No egrep program found" >&2;}
1162 { (exit 1); exit 1; }; }
1164 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1165 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1166 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1167 cf_cv_abi_version=${NCURSES_MAJOR}
1168 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1169 cf_cv_timestamp=`date`
1170 echo "$as_me:1170: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1171 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1173 if test -f $srcdir/VERSION ; then
1174 echo "$as_me:1174: checking for package version" >&5
1175 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1177 # if there are not enough fields, cut returns the last one...
1178 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1179 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1180 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1182 # this is how CF_BUNDLED_INTL uses $VERSION:
1183 VERSION="$cf_field1"
1185 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1186 test -z "$VERSION_MAJOR" && { { echo "$as_me:1186: error: missing major-version" >&5
1187 echo "$as_me: error: missing major-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1191 test -z "$VERSION_MINOR" && { { echo "$as_me:1191: error: missing minor-version" >&5
1192 echo "$as_me: error: missing minor-version" >&2;}
1193 { (exit 1); exit 1; }; }
1195 echo "$as_me:1195: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1196 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1198 echo "$as_me:1198: checking for package patch date" >&5
1199 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1200 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1201 case .$VERSION_PATCH in
1203 { { echo "$as_me:1203: error: missing patch-date $VERSION_PATCH" >&5
1204 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1205 { (exit 1); exit 1; }; }
1207 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1210 { { echo "$as_me:1210: error: illegal patch-date $VERSION_PATCH" >&5
1211 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1212 { (exit 1); exit 1; }; }
1215 echo "$as_me:1215: result: $VERSION_PATCH" >&5
1216 echo "${ECHO_T}$VERSION_PATCH" >&6
1218 { { echo "$as_me:1218: error: did not find $srcdir/VERSION" >&5
1219 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1220 { (exit 1); exit 1; }; }
1223 # show the actual data that we have for versions:
1224 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1226 echo "${as_me:-configure}:1226: testing ABI VERSION $VERSION ..." 1>&5
1228 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1230 echo "${as_me:-configure}:1230: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1232 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1234 echo "${as_me:-configure}:1234: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1236 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1238 echo "${as_me:-configure}:1238: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1243 cat >>confdefs.h <<EOF
1244 #define PACKAGE "$PACKAGE"
1247 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1249 cat >>confdefs.h <<EOF
1250 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1253 cat >>confdefs.h <<EOF
1254 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1257 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1259 # Check whether --with-rel-version or --without-rel-version was given.
1260 if test "${with_rel_version+set}" = set; then
1261 withval="$with_rel_version"
1262 { echo "$as_me:1262: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1263 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1264 cf_cv_rel_version=$withval
1267 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1268 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1270 if test -n "$NCURSES_MAJOR" ; then
1271 case $NCURSES_MAJOR in
1275 { { echo "$as_me:1275: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1276 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1277 { (exit 1); exit 1; }; }
1281 { { echo "$as_me:1281: error: Release major-version value is empty" >&5
1282 echo "$as_me: error: Release major-version value is empty" >&2;}
1283 { (exit 1); exit 1; }; }
1286 if test -n "$NCURSES_MINOR" ; then
1287 case $NCURSES_MINOR in
1291 { { echo "$as_me:1291: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1292 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1293 { (exit 1); exit 1; }; }
1297 { { echo "$as_me:1297: error: Release minor-version value is empty" >&5
1298 echo "$as_me: error: Release minor-version value is empty" >&2;}
1299 { (exit 1); exit 1; }; }
1302 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1304 # Check whether --with-abi-version or --without-abi-version was given.
1305 if test "${with_abi_version+set}" = set; then
1306 withval="$with_abi_version"
1308 if test "x$cf_cv_abi_version" != "x$withval"
1310 { echo "$as_me:1310: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1311 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1312 case $cf_cv_rel_version in
1314 cf_cv_rel_version=$withval.0
1317 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1321 cf_cv_abi_version=$withval
1324 if test -n "$cf_cv_abi_version" ; then
1325 case $cf_cv_abi_version in
1329 { { echo "$as_me:1329: error: ABI version is not a number: $cf_cv_abi_version" >&5
1330 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1331 { (exit 1); exit 1; }; }
1335 { { echo "$as_me:1335: error: ABI version value is empty" >&5
1336 echo "$as_me: error: ABI version value is empty" >&2;}
1337 { (exit 1); exit 1; }; }
1340 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1342 case $cf_cv_rel_version in
1344 cf_cv_rel_version=$with_abi_version.0
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:1366: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376 { { echo "$as_me:1376: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378 { (exit 1); exit 1; }; }
1380 echo "$as_me:1380: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387 ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389 { { echo "$as_me:1389: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391 { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393 { { echo "$as_me:1393: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:1398: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:1405: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:1414: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:1419: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1427 echo "$as_me:1427: checking target system type" >&5
1428 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1429 if test "${ac_cv_target+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 ac_cv_target_alias=$target_alias
1433 test "x$ac_cv_target_alias" = "x" &&
1434 ac_cv_target_alias=$ac_cv_host_alias
1435 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1436 { { echo "$as_me:1436: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1441 echo "$as_me:1441: result: $ac_cv_target" >&5
1442 echo "${ECHO_T}$ac_cv_target" >&6
1443 target=$ac_cv_target
1444 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448 # The aliases save the names the user supplied, while $host etc.
1449 # will get canonicalized.
1450 test -n "$target_alias" &&
1451 test "$program_prefix$program_suffix$program_transform_name" = \
1453 program_prefix=${target_alias}-
1454 system_name="$host_os"
1456 system_name="`(uname -s -r) 2>/dev/null`"
1457 if test -z "$system_name" ; then
1458 system_name="`(hostname) 2>/dev/null`"
1461 test -n "$system_name" &&
1462 cat >>confdefs.h <<EOF
1463 #define SYSTEM_NAME "$system_name"
1466 if test "${cf_cv_system_name+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 cf_cv_system_name="$system_name"
1472 test -z "$system_name" && system_name="$cf_cv_system_name"
1473 test -n "$cf_cv_system_name" && echo "$as_me:1473: result: Configuring for $cf_cv_system_name" >&5
1474 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1476 if test ".$system_name" != ".$cf_cv_system_name" ; then
1477 echo "$as_me:1477: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1478 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1479 { { echo "$as_me:1479: error: \"Please remove config.cache and try again.\"" >&5
1480 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1481 { (exit 1); exit 1; }; }
1484 # Check whether --with-system-type or --without-system-type was given.
1485 if test "${with_system_type+set}" = set; then
1486 withval="$with_system_type"
1487 { echo "$as_me:1487: WARNING: overriding system type to $withval" >&5
1488 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1489 cf_cv_system_name=$withval
1494 ### Save the given $CFLAGS to allow user-override.
1495 cf_user_CFLAGS="$CFLAGS"
1497 ### Default install-location
1499 echo "$as_me:1499: checking for prefix" >&5
1500 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1501 if test "x$prefix" = "xNONE" ; then
1502 case "$cf_cv_system_name" in
1503 # non-vendor systems don't have a conflict
1504 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1507 (*) prefix=$ac_default_prefix
1511 echo "$as_me:1511: result: $prefix" >&5
1512 echo "${ECHO_T}$prefix" >&6
1514 if test "x$prefix" = "xNONE" ; then
1515 echo "$as_me:1515: checking for default include-directory" >&5
1516 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1517 test -n "$verbose" && echo 1>&6
1520 $includedir/ncurses \
1522 $prefix/include/ncurses \
1523 /usr/local/include \
1524 /usr/local/include/ncurses \
1526 /usr/include/ncurses
1528 cf_dir=`eval echo $cf_symbol`
1529 if test -f $cf_dir/curses.h ; then
1530 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1531 includedir="$cf_symbol"
1532 test -n "$verbose" && echo $ac_n " found " 1>&6
1536 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1538 echo "$as_me:1538: result: $includedir" >&5
1539 echo "${ECHO_T}$includedir" >&6
1542 ### Defaults for ncurses ABI
1544 case x$cf_cv_abi_version in
1546 cf_dft_ext_colors=yes
1547 cf_dft_ext_const=yes
1548 cf_dft_ext_mouse=yes
1549 cf_dft_ext_putwin=yes
1550 cf_dft_ext_spfuncs=yes
1551 cf_dft_filter_syms=yes
1552 cf_dft_chtype=uint32_t
1553 cf_dft_mmask_t=uint32_t
1555 cf_dft_tparm_arg=intptr_t
1556 cf_dft_with_lp64=yes
1559 cf_dft_ext_colors=no
1562 cf_dft_ext_putwin=no
1563 cf_dft_ext_spfuncs=no
1564 cf_dft_filter_syms=no
1568 cf_dft_tparm_arg=long
1573 ### Checks for programs.
1575 # Check whether --with-ada or --without-ada was given.
1576 if test "${with_ada+set}" = set; then
1578 cf_with_ada=$withval
1582 if test "x$cf_with_ada" = xyes
1584 cf_PROG_CC="gnatgcc gcc cc"
1590 ac_cpp='$CPP $CPPFLAGS'
1591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594 ac_main_return=return
1595 if test -n "$ac_tool_prefix"; then
1596 for ac_prog in $cf_PROG_CC
1598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1600 echo "$as_me:1600: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 ac_save_IFS=$IFS; IFS=$ac_path_separator
1610 for ac_dir in $ac_dummy; do
1612 test -z "$ac_dir" && ac_dir=.
1613 $as_executable_p "$ac_dir/$ac_word" || continue
1614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1615 echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1622 if test -n "$CC"; then
1623 echo "$as_me:1623: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:1626: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 test -n "$CC" && break
1633 if test -z "$CC"; then
1635 for ac_prog in $cf_PROG_CC
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 ac_save_IFS=$IFS; IFS=$ac_path_separator
1649 for ac_dir in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir=.
1652 $as_executable_p "$ac_dir/$ac_word" || continue
1653 ac_cv_prog_ac_ct_CC="$ac_prog"
1654 echo "$as_me:1654: found $ac_dir/$ac_word" >&5
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:1662: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1665 echo "$as_me:1665: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 test -n "$ac_ct_CC" && break
1675 test -z "$CC" && { { echo "$as_me:1675: error: no acceptable cc found in \$PATH" >&5
1676 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1677 { (exit 1); exit 1; }; }
1679 # Provide some information about the compiler.
1680 echo "$as_me:1680:" \
1681 "checking for C compiler version" >&5
1682 ac_compiler=`set X $ac_compile; echo $2`
1683 { (eval echo "$as_me:1683: \"$ac_compiler --version </dev/null >&5\"") >&5
1684 (eval $ac_compiler --version </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); }
1693 { (eval echo "$as_me:1693: \"$ac_compiler -V </dev/null >&5\"") >&5
1694 (eval $ac_compiler -V </dev/null >&5) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1699 cat >conftest.$ac_ext <<_ACEOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1711 ac_clean_files_save=$ac_clean_files
1712 ac_clean_files="$ac_clean_files a.out a.exe"
1713 # Try to create an executable without -o first, disregard a.out.
1714 # It will help us diagnose broken compilers, and finding out an intuition
1716 echo "$as_me:1716: checking for C compiler default output" >&5
1717 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1719 if { (eval echo "$as_me:1719: \"$ac_link_default\"") >&5
1720 (eval $ac_link_default) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }; then
1724 # Find the output, starting from the most likely. This scheme is
1725 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1727 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1728 ls a.out conftest 2>/dev/null;
1729 ls a.* conftest.* 2>/dev/null`; do
1731 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1732 a.out ) # We found the default executable, but exeext='' is most
1735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1736 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1743 echo "$as_me: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 { { echo "$as_me:1745: error: C compiler cannot create executables" >&5
1746 echo "$as_me: error: C compiler cannot create executables" >&2;}
1747 { (exit 77); exit 77; }; }
1750 ac_exeext=$ac_cv_exeext
1751 echo "$as_me:1751: result: $ac_file" >&5
1752 echo "${ECHO_T}$ac_file" >&6
1754 # Check the compiler produces executables we can run. If not, either
1755 # the compiler is broken, or we cross compile.
1756 echo "$as_me:1756: checking whether the C compiler works" >&5
1757 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1758 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1759 # If not cross compiling, check that we can run a simple program.
1760 if test "$cross_compiling" != yes; then
1761 if { ac_try='./$ac_file'
1762 { (eval echo "$as_me:1762: \"$ac_try\"") >&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); }; }; then
1769 if test "$cross_compiling" = maybe; then
1772 { { echo "$as_me:1772: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'." >&5
1774 echo "$as_me: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&2;}
1776 { (exit 1); exit 1; }; }
1780 echo "$as_me:1780: result: yes" >&5
1781 echo "${ECHO_T}yes" >&6
1783 rm -f a.out a.exe conftest$ac_cv_exeext
1784 ac_clean_files=$ac_clean_files_save
1785 # Check the compiler produces executables we can run. If not, either
1786 # the compiler is broken, or we cross compile.
1787 echo "$as_me:1787: checking whether we are cross compiling" >&5
1788 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1789 echo "$as_me:1789: result: $cross_compiling" >&5
1790 echo "${ECHO_T}$cross_compiling" >&6
1792 echo "$as_me:1792: checking for executable suffix" >&5
1793 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1794 if { (eval echo "$as_me:1794: \"$ac_link\"") >&5
1795 (eval $ac_link) 2>&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1800 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1801 # work properly (i.e., refer to `conftest.exe'), while it won't with
1803 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 { { echo "$as_me:1813: error: cannot compute EXEEXT: cannot compile and link" >&5
1814 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1815 { (exit 1); exit 1; }; }
1818 rm -f conftest$ac_cv_exeext
1819 echo "$as_me:1819: result: $ac_cv_exeext" >&5
1820 echo "${ECHO_T}$ac_cv_exeext" >&6
1822 rm -f conftest.$ac_ext
1823 EXEEXT=$ac_cv_exeext
1825 echo "$as_me:1825: checking for object suffix" >&5
1826 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1827 if test "${ac_cv_objext+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 cat >conftest.$ac_ext <<_ACEOF
1831 #line 1831 "configure"
1832 #include "confdefs.h"
1842 rm -f conftest.o conftest.obj
1843 if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
1844 (eval $ac_compile) 2>&5
1846 echo "$as_me:1846: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
1848 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1850 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1856 echo "$as_me: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 { { echo "$as_me:1858: error: cannot compute OBJEXT: cannot compile" >&5
1859 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1860 { (exit 1); exit 1; }; }
1863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1865 echo "$as_me:1865: result: $ac_cv_objext" >&5
1866 echo "${ECHO_T}$ac_cv_objext" >&6
1867 OBJEXT=$ac_cv_objext
1869 echo "$as_me:1869: checking whether we are using the GNU C compiler" >&5
1870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 cat >conftest.$ac_ext <<_ACEOF
1875 #line 1875 "configure"
1876 #include "confdefs.h"
1889 rm -f conftest.$ac_objext
1890 if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>&5
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit $ac_status); } &&
1895 { ac_try='test -s conftest.$ac_objext'
1896 { (eval echo "$as_me:1896: \"$ac_try\"") >&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); }; }; then
1903 echo "$as_me: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1911 echo "$as_me:1911: result: $ac_cv_c_compiler_gnu" >&5
1912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1913 GCC=`test $ac_compiler_gnu = yes && echo yes`
1914 ac_test_CFLAGS=${CFLAGS+set}
1915 ac_save_CFLAGS=$CFLAGS
1917 echo "$as_me:1917: checking whether $CC accepts -g" >&5
1918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1919 if test "${ac_cv_prog_cc_g+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1934 rm -f conftest.$ac_objext
1935 if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1938 echo "$as_me:1938: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -s conftest.$ac_objext'
1941 { (eval echo "$as_me:1941: \"$ac_try\"") >&5
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 echo "$as_me: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1952 rm -f conftest.$ac_objext conftest.$ac_ext
1954 echo "$as_me:1954: result: $ac_cv_prog_cc_g" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956 if test "$ac_test_CFLAGS" = set; then
1957 CFLAGS=$ac_save_CFLAGS
1958 elif test $ac_cv_prog_cc_g = yes; then
1959 if test "$GCC" = yes; then
1965 if test "$GCC" = yes; then
1971 # Some people use a C++ compiler to compile C. Since we use `exit',
1972 # in C++ we need to declare it. In case someone uses the same compiler
1973 # for both compiling C and C++ we need to have the C++ compiler decide
1974 # the declaration of exit, since it's the most demanding environment.
1975 cat >conftest.$ac_ext <<_ACEOF
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:1987: \"$ac_try\"") >&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 for ac_declaration in \
1994 '#include <stdlib.h>' \
1995 'extern "C" void std::exit (int) throw (); using std::exit;' \
1996 'extern "C" void std::exit (int); using std::exit;' \
1997 'extern "C" void exit (int) throw ();' \
1998 'extern "C" void exit (int);' \
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:2021: \"$ac_try\"") >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line 2034 "configure"
2035 #include "confdefs.h"
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:2052: \"$ac_try\"") >&5
2055 echo "$as_me:2055: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 echo "$as_me: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2065 if test -n "$ac_declaration"; then
2066 echo '#ifdef __cplusplus' >>confdefs.h
2067 echo $ac_declaration >>confdefs.h
2068 echo '#endif' >>confdefs.h
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2075 rm -f conftest.$ac_objext conftest.$ac_ext
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 ac_main_return=return
2084 if test "$GCC" = yes ; then
2085 echo "$as_me:2085: checking version of $CC" >&5
2086 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2087 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.].*//'`"
2088 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2089 echo "$as_me:2089: result: $GCC_VERSION" >&5
2090 echo "${ECHO_T}$GCC_VERSION" >&6
2093 echo "$as_me:2093: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_prog_cc_stdc=no
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #line 2101 "configure"
2102 #include "confdefs.h"
2105 #include <sys/types.h>
2106 #include <sys/stat.h>
2107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2108 struct buf { int x; };
2109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2110 static char *e (p, i)
2116 static char *f (char * (*g) (char **, int), char **p, ...)
2121 s = g (p, va_arg (v,int));
2125 int test (int i, double x);
2126 struct s1 {int (*f) (int a);};
2127 struct s2 {int (*f) (double a);};
2128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139 # Don't try gcc -ansi; that turns off useful extensions and
2140 # breaks some systems' header files.
2141 # AIX -qlanglvl=ansi
2142 # Ultrix and OSF/1 -std1
2143 # HP-UX 10.20 and later -Ae
2144 # HP-UX older versions -Aa -D_HPUX_SOURCE
2145 # SVR4 -Xc -D__EXTENSIONS__
2146 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2148 CC="$ac_save_CC $ac_arg"
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:2150: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 rm -f conftest.$ac_objext
2169 rm -f conftest.$ac_ext conftest.$ac_objext
2174 case "x$ac_cv_prog_cc_stdc" in
2176 echo "$as_me:2176: result: none needed" >&5
2177 echo "${ECHO_T}none needed" >&6 ;;
2179 echo "$as_me:2179: result: $ac_cv_prog_cc_stdc" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2181 CC="$CC $ac_cv_prog_cc_stdc" ;;
2184 # This should have been defined by AC_PROG_CC
2187 echo "$as_me:2187: checking \$CC variable" >&5
2188 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2191 echo "$as_me:2191: result: broken" >&5
2192 echo "${ECHO_T}broken" >&6
2193 { echo "$as_me:2193: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2194 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2196 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2197 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2199 for cf_arg in $cf_flags
2207 cf_new_extra_cppflags=
2209 for cf_add_cflags in $cf_arg
2211 case $cf_fix_cppflags in
2213 case $cf_add_cflags in
2214 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2215 case $cf_add_cflags in
2217 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2219 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2220 && test -z "${cf_tst_cflags}" \
2221 && cf_fix_cppflags=yes
2223 if test $cf_fix_cppflags = yes ; then
2225 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2226 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2229 elif test "${cf_tst_cflags}" = "\"'" ; then
2231 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2232 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2242 case $cf_add_cflags in
2244 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2246 CPPFLAGS=`echo "$CPPFLAGS" | \
2247 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2248 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2253 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2254 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2261 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2262 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2272 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2274 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2275 && test -z "${cf_tst_cflags}" \
2276 && cf_fix_cppflags=no
2281 if test -n "$cf_new_cflags" ; then
2283 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2284 CFLAGS="${CFLAGS}$cf_new_cflags"
2288 if test -n "$cf_new_cppflags" ; then
2290 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2291 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2295 if test -n "$cf_new_extra_cppflags" ; then
2297 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2298 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2308 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2310 echo "${as_me:-configure}:2310: testing resulting CC: '$CC' ..." 1>&5
2312 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2314 echo "${as_me:-configure}:2314: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2316 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2318 echo "${as_me:-configure}:2318: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2322 echo "$as_me:2322: result: ok" >&5
2323 echo "${ECHO_T}ok" >&6
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 ac_main_return=return
2333 echo "$as_me:2333: checking how to run the C preprocessor" >&5
2334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2335 # On Suns, sometimes $CPP names a directory.
2336 if test -n "$CPP" && test -d "$CPP"; then
2339 if test -z "$CPP"; then
2340 if test "${ac_cv_prog_CPP+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 # Double quotes because CPP needs to be expanded
2344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2347 for ac_c_preproc_warn_flag in '' yes
2349 # Use a header file that comes with gcc, so configuring glibc
2350 # with a fresh cross-compiler works.
2351 # On the NeXT, cc -E runs the code through the compiler's parser,
2352 # not just through cpp. "Syntax error" is here to catch this case.
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line 2354 "configure"
2355 #include "confdefs.h"
2359 if { (eval echo "$as_me:2359: \"$ac_cpp conftest.$ac_ext\"") >&5
2360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2362 egrep -v '^ *\+' conftest.er1 >conftest.err
2364 cat conftest.err >&5
2365 echo "$as_me:2365: \$? = $ac_status" >&5
2366 (exit $ac_status); } >/dev/null; then
2367 if test -s conftest.err; then
2368 ac_cpp_err=$ac_c_preproc_warn_flag
2375 if test -z "$ac_cpp_err"; then
2378 echo "$as_me: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 # Broken: fails on valid input.
2383 rm -f conftest.err conftest.$ac_ext
2385 # OK, works on sane cases. Now check whether non-existent headers
2386 # can be detected and how.
2387 cat >conftest.$ac_ext <<_ACEOF
2388 #line 2388 "configure"
2389 #include "confdefs.h"
2390 #include <ac_nonexistent.h>
2392 if { (eval echo "$as_me:2392: \"$ac_cpp conftest.$ac_ext\"") >&5
2393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2395 egrep -v '^ *\+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:2398: \$? = $ac_status" >&5
2399 (exit $ac_status); } >/dev/null; then
2400 if test -s conftest.err; then
2401 ac_cpp_err=$ac_c_preproc_warn_flag
2408 if test -z "$ac_cpp_err"; then
2409 # Broken: success on invalid input.
2412 echo "$as_me: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 # Passes both tests.
2418 rm -f conftest.err conftest.$ac_ext
2421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2422 rm -f conftest.err conftest.$ac_ext
2423 if $ac_preproc_ok; then
2435 echo "$as_me:2435: result: $CPP" >&5
2436 echo "${ECHO_T}$CPP" >&6
2438 for ac_c_preproc_warn_flag in '' yes
2440 # Use a header file that comes with gcc, so configuring glibc
2441 # with a fresh cross-compiler works.
2442 # On the NeXT, cc -E runs the code through the compiler's parser,
2443 # not just through cpp. "Syntax error" is here to catch this case.
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line 2445 "configure"
2446 #include "confdefs.h"
2450 if { (eval echo "$as_me:2450: \"$ac_cpp conftest.$ac_ext\"") >&5
2451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2453 egrep -v '^ *\+' conftest.er1 >conftest.err
2455 cat conftest.err >&5
2456 echo "$as_me:2456: \$? = $ac_status" >&5
2457 (exit $ac_status); } >/dev/null; then
2458 if test -s conftest.err; then
2459 ac_cpp_err=$ac_c_preproc_warn_flag
2466 if test -z "$ac_cpp_err"; then
2469 echo "$as_me: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2471 # Broken: fails on valid input.
2474 rm -f conftest.err conftest.$ac_ext
2476 # OK, works on sane cases. Now check whether non-existent headers
2477 # can be detected and how.
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line 2479 "configure"
2480 #include "confdefs.h"
2481 #include <ac_nonexistent.h>
2483 if { (eval echo "$as_me:2483: \"$ac_cpp conftest.$ac_ext\"") >&5
2484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486 egrep -v '^ *\+' conftest.er1 >conftest.err
2488 cat conftest.err >&5
2489 echo "$as_me:2489: \$? = $ac_status" >&5
2490 (exit $ac_status); } >/dev/null; then
2491 if test -s conftest.err; then
2492 ac_cpp_err=$ac_c_preproc_warn_flag
2499 if test -z "$ac_cpp_err"; then
2500 # Broken: success on invalid input.
2503 echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 # Passes both tests.
2509 rm -f conftest.err conftest.$ac_ext
2512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2513 rm -f conftest.err conftest.$ac_ext
2514 if $ac_preproc_ok; then
2517 { { echo "$as_me:2517: error: C preprocessor \"$CPP\" fails sanity check" >&5
2518 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2519 { (exit 1); exit 1; }; }
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 ac_main_return=return
2529 if test $ac_cv_c_compiler_gnu = yes; then
2530 echo "$as_me:2530: checking whether $CC needs -traditional" >&5
2531 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2532 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 ac_pattern="Autoconf.*'x'"
2536 cat >conftest.$ac_ext <<_ACEOF
2537 #line 2537 "configure"
2538 #include "confdefs.h"
2540 int Autoconf = TIOCGETP;
2542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543 egrep "$ac_pattern" >/dev/null 2>&1; then
2544 ac_cv_prog_gcc_traditional=yes
2546 ac_cv_prog_gcc_traditional=no
2550 if test $ac_cv_prog_gcc_traditional = no; then
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line 2552 "configure"
2553 #include "confdefs.h"
2555 int Autoconf = TCGETA;
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 egrep "$ac_pattern" >/dev/null 2>&1; then
2559 ac_cv_prog_gcc_traditional=yes
2565 echo "$as_me:2565: result: $ac_cv_prog_gcc_traditional" >&5
2566 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2567 if test $ac_cv_prog_gcc_traditional = yes; then
2568 CC="$CC -traditional"
2572 echo "$as_me:2572: checking whether $CC understands -c and -o together" >&5
2573 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2574 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat > conftest.$ac_ext <<CF_EOF
2581 ${cf_cv_main_return:-return}(0);
2584 # We do the test twice because some compilers refuse to overwrite an
2585 # existing .o file with -o, though they will create one.
2586 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2587 if { (eval echo "$as_me:2587: \"$ac_try\"") >&5
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 test -f conftest2.$ac_objext && { (eval echo "$as_me:2592: \"$ac_try\"") >&5
2595 echo "$as_me:2595: \$? = $ac_status" >&5
2596 (exit $ac_status); };
2598 eval cf_cv_prog_CC_c_o=yes
2600 eval cf_cv_prog_CC_c_o=no
2605 if test $cf_cv_prog_CC_c_o = yes; then
2606 echo "$as_me:2606: result: yes" >&5
2607 echo "${ECHO_T}yes" >&6
2609 echo "$as_me:2609: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2613 if test "$cross_compiling" = yes ; then
2616 case "$cf_cv_system_name" in
2617 (dragonfly*|mirbsd*|freebsd*)
2618 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2620 (*) LDPATH=$PATH:/sbin:/usr/sbin
2621 # Extract the first word of "ldconfig", so it can be a program name with args.
2622 set dummy ldconfig; ac_word=$2
2623 echo "$as_me:2623: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2633 ac_save_IFS=$IFS; IFS=$ac_path_separator
2635 for ac_dir in $ac_dummy; do
2637 test -z "$ac_dir" && ac_dir=.
2638 if $as_executable_p "$ac_dir/$ac_word"; then
2639 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2640 echo "$as_me:2640: found $ac_dir/$ac_word" >&5
2648 LDCONFIG=$ac_cv_path_LDCONFIG
2650 if test -n "$LDCONFIG"; then
2651 echo "$as_me:2651: result: $LDCONFIG" >&5
2652 echo "${ECHO_T}$LDCONFIG" >&6
2654 echo "$as_me:2654: result: no" >&5
2655 echo "${ECHO_T}no" >&6
2662 echo "$as_me:2662: checking if you want to ensure bool is consistent with C++" >&5
2663 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2665 # Check whether --with-cxx or --without-cxx was given.
2666 if test "${with_cxx+set}" = set; then
2668 cf_with_cxx=$withval
2672 echo "$as_me:2672: result: $cf_with_cxx" >&5
2673 echo "${ECHO_T}$cf_with_cxx" >&6
2674 if test "X$cf_with_cxx" = Xno ; then
2678 # with autoconf 2.13, we can change the error to a warning:
2680 ac_cpp='$CXXCPP $CPPFLAGS'
2681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2684 ac_main_return=return
2685 if test -n "$ac_tool_prefix"; then
2686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2690 echo "$as_me:2690: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2692 if test "${ac_cv_prog_CXX+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 if test -n "$CXX"; then
2696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2698 ac_save_IFS=$IFS; IFS=$ac_path_separator
2700 for ac_dir in $ac_dummy; do
2702 test -z "$ac_dir" && ac_dir=.
2703 $as_executable_p "$ac_dir/$ac_word" || continue
2704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2705 echo "$as_me:2705: found $ac_dir/$ac_word" >&5
2712 if test -n "$CXX"; then
2713 echo "$as_me:2713: result: $CXX" >&5
2714 echo "${ECHO_T}$CXX" >&6
2716 echo "$as_me:2716: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2720 test -n "$CXX" && break
2723 if test -z "$CXX"; then
2725 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 echo "$as_me:2729: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 if test -n "$ac_ct_CXX"; then
2735 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2737 ac_save_IFS=$IFS; IFS=$ac_path_separator
2739 for ac_dir in $ac_dummy; do
2741 test -z "$ac_dir" && ac_dir=.
2742 $as_executable_p "$ac_dir/$ac_word" || continue
2743 ac_cv_prog_ac_ct_CXX="$ac_prog"
2744 echo "$as_me:2744: found $ac_dir/$ac_word" >&5
2750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2751 if test -n "$ac_ct_CXX"; then
2752 echo "$as_me:2752: result: $ac_ct_CXX" >&5
2753 echo "${ECHO_T}$ac_ct_CXX" >&6
2755 echo "$as_me:2755: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2759 test -n "$ac_ct_CXX" && break
2761 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2766 # Provide some information about the compiler.
2767 echo "$as_me:2767:" \
2768 "checking for C++ compiler version" >&5
2769 ac_compiler=`set X $ac_compile; echo $2`
2770 { (eval echo "$as_me:2770: \"$ac_compiler --version </dev/null >&5\"") >&5
2771 (eval $ac_compiler --version </dev/null >&5) 2>&5
2773 echo "$as_me:2773: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2775 { (eval echo "$as_me:2775: \"$ac_compiler -v </dev/null >&5\"") >&5
2776 (eval $ac_compiler -v </dev/null >&5) 2>&5
2778 echo "$as_me:2778: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2780 { (eval echo "$as_me:2780: \"$ac_compiler -V </dev/null >&5\"") >&5
2781 (eval $ac_compiler -V </dev/null >&5) 2>&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); }
2786 echo "$as_me:2786: checking whether we are using the GNU C++ compiler" >&5
2787 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2788 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 cat >conftest.$ac_ext <<_ACEOF
2792 #line 2792 "configure"
2793 #include "confdefs.h"
2806 rm -f conftest.$ac_objext
2807 if { (eval echo "$as_me:2807: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>&5
2810 echo "$as_me:2810: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -s conftest.$ac_objext'
2813 { (eval echo "$as_me:2813: \"$ac_try\"") >&5
2816 echo "$as_me:2816: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2820 echo "$as_me: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2824 rm -f conftest.$ac_objext conftest.$ac_ext
2825 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2828 echo "$as_me:2828: result: $ac_cv_cxx_compiler_gnu" >&5
2829 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2830 GXX=`test $ac_compiler_gnu = yes && echo yes`
2831 ac_test_CXXFLAGS=${CXXFLAGS+set}
2832 ac_save_CXXFLAGS=$CXXFLAGS
2834 echo "$as_me:2834: checking whether $CXX accepts -g" >&5
2835 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2836 if test "${ac_cv_prog_cxx_g+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line 2840 "configure"
2841 #include "confdefs.h"
2851 rm -f conftest.$ac_objext
2852 if { (eval echo "$as_me:2852: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:2858: \"$ac_try\"") >&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_prog_cxx_g=yes
2865 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2869 rm -f conftest.$ac_objext conftest.$ac_ext
2871 echo "$as_me:2871: result: $ac_cv_prog_cxx_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2873 if test "$ac_test_CXXFLAGS" = set; then
2874 CXXFLAGS=$ac_save_CXXFLAGS
2875 elif test $ac_cv_prog_cxx_g = yes; then
2876 if test "$GXX" = yes; then
2882 if test "$GXX" = yes; then
2888 for ac_declaration in \
2890 '#include <stdlib.h>' \
2891 'extern "C" void std::exit (int) throw (); using std::exit;' \
2892 'extern "C" void std::exit (int); using std::exit;' \
2893 'extern "C" void exit (int) throw ();' \
2894 'extern "C" void exit (int);' \
2897 cat >conftest.$ac_ext <<_ACEOF
2898 #line 2898 "configure"
2899 #include "confdefs.h"
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:2911: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:2917: \"$ac_try\"") >&5
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2924 echo "$as_me: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #line 2930 "configure"
2931 #include "confdefs.h"
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:2942: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>&5
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -s conftest.$ac_objext'
2948 { (eval echo "$as_me:2948: \"$ac_try\"") >&5
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2955 echo "$as_me: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2958 rm -f conftest.$ac_objext conftest.$ac_ext
2961 if test -n "$ac_declaration"; then
2962 echo '#ifdef __cplusplus' >>confdefs.h
2963 echo $ac_declaration >>confdefs.h
2964 echo '#endif' >>confdefs.h
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 ac_main_return=return
2975 ac_cpp='$CXXCPP $CPPFLAGS'
2976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2979 ac_main_return=return
2981 if test "x$cf_with_cxx" != xno
2983 # Several of the C++ configurations do not work, particularly when
2984 # cross-compiling (20140913 -TD)
2985 echo "$as_me:2985: checking if $CXX works" >&5
2986 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2988 save_CPPFLAGS="$CPPFLAGS"
2989 eval cf_includedir=${includedir}
2990 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #line 2993 "configure"
2994 #include "confdefs.h"
3003 printf("Hello world!\n")
3009 rm -f conftest.$ac_objext
3010 if { (eval echo "$as_me:3010: \"$ac_compile\"") >&5
3011 (eval $ac_compile) 2>&5
3013 echo "$as_me:3013: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:3016: \"$ac_try\"") >&5
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3023 echo "$as_me: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3028 CPPFLAGS="$save_CPPFLAGS"
3030 echo "$as_me:3030: result: $cf_cxx_works" >&5
3031 echo "${ECHO_T}$cf_cxx_works" >&6
3032 if test "x$cf_cxx_works" = xno
3034 { echo "$as_me:3034: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3035 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3036 cf_with_cxx=no; CXX=""; GXX="";
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 ac_main_return=return
3046 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3047 if test "$CXX" = "g++" ; then
3048 # Extract the first word of "g++", so it can be a program name with args.
3049 set dummy g++; ac_word=$2
3050 echo "$as_me:3050: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052 if test "${ac_cv_path_CXX+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3060 ac_save_IFS=$IFS; IFS=$ac_path_separator
3062 for ac_dir in $ac_dummy; do
3064 test -z "$ac_dir" && ac_dir=.
3065 if $as_executable_p "$ac_dir/$ac_word"; then
3066 ac_cv_path_CXX="$ac_dir/$ac_word"
3067 echo "$as_me:3067: found $ac_dir/$ac_word" >&5
3077 if test -n "$CXX"; then
3078 echo "$as_me:3078: result: $CXX" >&5
3079 echo "${ECHO_T}$CXX" >&6
3081 echo "$as_me:3081: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3088 { echo "$as_me:3088: WARNING: You don't have any C++ compiler, too bad" >&5
3089 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3090 cf_with_cxx=no; CXX=""; GXX="";
3096 if test "$GXX" = yes; then
3097 echo "$as_me:3097: checking version of ${CXX:-g++}" >&5
3098 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3099 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3100 if test -z "$GXX_VERSION"
3105 echo "$as_me:3105: result: $GXX_VERSION" >&5
3106 echo "${ECHO_T}$GXX_VERSION" >&6
3109 case $GXX_VERSION in
3111 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3113 { echo "$as_me:3113: WARNING: templates do not work" >&5
3114 echo "$as_me: WARNING: templates do not work" >&2;}
3118 echo "$as_me:3118: checking if you want to build C++ binding and demo" >&5
3119 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3121 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3122 if test "${with_cxx_binding+set}" = set; then
3123 withval="$with_cxx_binding"
3124 cf_with_cxx_binding=$withval
3126 cf_with_cxx_binding=$cf_with_cxx
3128 echo "$as_me:3128: result: $cf_with_cxx_binding" >&5
3129 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3131 echo "$as_me:3131: checking if you want to build with Ada95" >&5
3132 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3133 echo "$as_me:3133: result: $cf_with_ada" >&5
3134 echo "${ECHO_T}$cf_with_ada" >&6
3136 echo "$as_me:3136: checking if you want to install terminal database" >&5
3137 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3139 # Check whether --enable-db-install or --disable-db-install was given.
3140 if test "${enable_db_install+set}" = set; then
3141 enableval="$enable_db_install"
3142 cf_with_db_install=$enableval
3144 cf_with_db_install=yes
3146 echo "$as_me:3146: result: $cf_with_db_install" >&5
3147 echo "${ECHO_T}$cf_with_db_install" >&6
3149 echo "$as_me:3149: checking if you want to install manpages" >&5
3150 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3152 # Check whether --with-manpages or --without-manpages was given.
3153 if test "${with_manpages+set}" = set; then
3154 withval="$with_manpages"
3155 cf_with_manpages=$withval
3157 cf_with_manpages=yes
3159 echo "$as_me:3159: result: $cf_with_manpages" >&5
3160 echo "${ECHO_T}$cf_with_manpages" >&6
3162 echo "$as_me:3162: checking if you want to build programs such as tic" >&5
3163 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3165 # Check whether --with-progs or --without-progs was given.
3166 if test "${with_progs+set}" = set; then
3167 withval="$with_progs"
3168 cf_with_progs=$withval
3172 echo "$as_me:3172: result: $cf_with_progs" >&5
3173 echo "${ECHO_T}$cf_with_progs" >&6
3175 echo "$as_me:3175: checking if you want to build test-programs" >&5
3176 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3178 # Check whether --with-tests or --without-tests was given.
3179 if test "${with_tests+set}" = set; then
3180 withval="$with_tests"
3181 cf_with_tests=$withval
3185 echo "$as_me:3185: result: $cf_with_tests" >&5
3186 echo "${ECHO_T}$cf_with_tests" >&6
3188 echo "$as_me:3188: checking if you wish to install curses.h" >&5
3189 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3191 # Check whether --with-curses-h or --without-curses-h was given.
3192 if test "${with_curses_h+set}" = set; then
3193 withval="$with_curses_h"
3194 with_curses_h=$withval
3198 echo "$as_me:3198: result: $with_curses_h" >&5
3199 echo "${ECHO_T}$with_curses_h" >&6
3201 modules_to_build="ncurses"
3202 if test "X$cf_with_progs" != Xno ; then
3203 modules_to_build="$modules_to_build progs tack"
3205 modules_to_build="$modules_to_build panel menu form"
3207 test "$program_prefix" != NONE &&
3208 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3209 # Use a double $ so make ignores it.
3210 test "$program_suffix" != NONE &&
3211 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3212 # Double any \ or $. echo might interpret backslashes.
3213 # By default was `s,x,x', remove it if useless.
3214 cat <<\_ACEOF >conftest.sed
3215 s/[\\$]/&&/g;s/;s,x,x,$//
3217 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3220 for ac_prog in mawk gawk nawk awk
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 echo "$as_me:3224: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226 if test "${ac_cv_prog_AWK+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -n "$AWK"; then
3230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3232 ac_save_IFS=$IFS; IFS=$ac_path_separator
3234 for ac_dir in $ac_dummy; do
3236 test -z "$ac_dir" && ac_dir=.
3237 $as_executable_p "$ac_dir/$ac_word" || continue
3238 ac_cv_prog_AWK="$ac_prog"
3239 echo "$as_me:3239: found $ac_dir/$ac_word" >&5
3246 if test -n "$AWK"; then
3247 echo "$as_me:3247: result: $AWK" >&5
3248 echo "${ECHO_T}$AWK" >&6
3250 echo "$as_me:3250: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 test -n "$AWK" && break
3257 test -z "$AWK" && { { echo "$as_me:3257: error: No awk program found" >&5
3258 echo "$as_me: error: No awk program found" >&2;}
3259 { (exit 1); exit 1; }; }
3261 echo "$as_me:3261: checking for egrep" >&5
3262 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3263 if test "${ac_cv_prog_egrep+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3267 then ac_cv_prog_egrep='grep -E'
3268 else ac_cv_prog_egrep='egrep'
3271 echo "$as_me:3271: result: $ac_cv_prog_egrep" >&5
3272 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3273 EGREP=$ac_cv_prog_egrep
3275 test -z "$EGREP" && { { echo "$as_me:3275: error: No egrep program found" >&5
3276 echo "$as_me: error: No egrep program found" >&2;}
3277 { (exit 1); exit 1; }; }
3279 # Find a good install program. We prefer a C program (faster),
3280 # so one script is as good as another. But avoid the broken or
3281 # incompatible versions:
3282 # SysV /etc/install, /usr/sbin/install
3283 # SunOS /usr/etc/install
3284 # IRIX /sbin/install
3286 # AmigaOS /C/install, which installs bootblocks on floppy discs
3287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3290 # ./install, which can be erroneously created by make from ./install.sh.
3291 echo "$as_me:3291: checking for a BSD compatible install" >&5
3292 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3293 if test -z "$INSTALL"; then
3294 if test "${ac_cv_path_install+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_save_IFS=$IFS; IFS=$ac_path_separator
3298 for ac_dir in $PATH; do
3300 # Account for people who put trailing slashes in PATH elements.
3302 / | ./ | .// | /cC/* \
3303 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3306 # OSF1 and SCO ODT 3.0 have their own names for install.
3307 # Don't use installbsd from OSF since it installs stuff as root
3309 for ac_prog in ginstall scoinst install; do
3310 if $as_executable_p "$ac_dir/$ac_prog"; then
3311 if test $ac_prog = install &&
3312 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3313 # AIX install. It has an incompatible calling convention.
3315 elif test $ac_prog = install &&
3316 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3317 # program-specific install script used by HP pwplus--don't use.
3320 ac_cv_path_install="$ac_dir/$ac_prog -c"
3330 if test "${ac_cv_path_install+set}" = set; then
3331 INSTALL=$ac_cv_path_install
3333 # As a last resort, use the slow shell script. We don't cache a
3334 # path for INSTALL within a source directory, because that will
3335 # break other packages using the cache if that directory is
3336 # removed, or if the path is relative.
3337 INSTALL=$ac_install_sh
3340 echo "$as_me:3340: result: $INSTALL" >&5
3341 echo "${ECHO_T}$INSTALL" >&6
3343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3344 # It thinks the first close brace ends the variable substitution.
3345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3355 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3356 test -z "$cf_dir" && cf_dir=.
3357 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3361 for ac_prog in lint cppcheck splint
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 echo "$as_me:3365: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_LINT+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$LINT"; then
3371 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3373 ac_save_IFS=$IFS; IFS=$ac_path_separator
3375 for ac_dir in $ac_dummy; do
3377 test -z "$ac_dir" && ac_dir=.
3378 $as_executable_p "$ac_dir/$ac_word" || continue
3379 ac_cv_prog_LINT="$ac_prog"
3380 echo "$as_me:3380: found $ac_dir/$ac_word" >&5
3386 LINT=$ac_cv_prog_LINT
3387 if test -n "$LINT"; then
3388 echo "$as_me:3388: result: $LINT" >&5
3389 echo "${ECHO_T}$LINT" >&6
3391 echo "$as_me:3391: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3395 test -n "$LINT" && break
3398 echo "$as_me:3398: checking whether ln -s works" >&5
3399 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3401 if test "$LN_S" = "ln -s"; then
3402 echo "$as_me:3402: result: yes" >&5
3403 echo "${ECHO_T}yes" >&6
3405 echo "$as_me:3405: result: no, using $LN_S" >&5
3406 echo "${ECHO_T}no, using $LN_S" >&6
3409 echo "$as_me:3409: checking if $LN_S -f options work" >&5
3410 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3412 rm -f conf$$.src conf$$dst
3414 echo first >conf$$.src
3415 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3420 rm -f conf$$.dst conf$$src
3421 echo "$as_me:3421: result: $cf_prog_ln_sf" >&5
3422 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3424 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3426 echo "$as_me:3426: checking for long file names" >&5
3427 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3428 if test "${ac_cv_sys_long_file_names+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 ac_cv_sys_long_file_names=yes
3432 # Test for long file names in all the places we know might matter:
3433 # . the current directory, where building will happen
3434 # $prefix/lib where we will be installing things
3435 # $exec_prefix/lib likewise
3436 # eval it to expand exec_prefix.
3437 # $TMPDIR if set, where it might want to write temporary files
3438 # if $TMPDIR is not set:
3439 # /tmp where it might want to write temporary files
3442 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3445 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3447 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3448 test -d $ac_dir || continue
3449 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3450 ac_xdir=$ac_dir/cf$$
3451 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3452 ac_tf1=$ac_xdir/conftest9012345
3453 ac_tf2=$ac_xdir/conftest9012346
3454 (echo 1 >$ac_tf1) 2>/dev/null
3455 (echo 2 >$ac_tf2) 2>/dev/null
3456 ac_val=`cat $ac_tf1 2>/dev/null`
3457 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3458 ac_cv_sys_long_file_names=no
3459 rm -rf $ac_xdir 2>/dev/null
3462 rm -rf $ac_xdir 2>/dev/null
3465 echo "$as_me:3465: result: $ac_cv_sys_long_file_names" >&5
3466 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3467 if test $ac_cv_sys_long_file_names = yes; then
3469 cat >>confdefs.h <<\EOF
3470 #define HAVE_LONG_FILE_NAMES 1
3475 # if we find pkg-config, check if we should install the ".pc" files.
3477 echo "$as_me:3477: checking if you want to use pkg-config" >&5
3478 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3480 # Check whether --with-pkg-config or --without-pkg-config was given.
3481 if test "${with_pkg_config+set}" = set; then
3482 withval="$with_pkg_config"
3483 cf_pkg_config=$withval
3487 echo "$as_me:3487: result: $cf_pkg_config" >&5
3488 echo "${ECHO_T}$cf_pkg_config" >&6
3490 case $cf_pkg_config in
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3499 echo "$as_me:3499: checking for $ac_word" >&5
3500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3509 ac_save_IFS=$IFS; IFS=$ac_path_separator
3511 for ac_dir in $ac_dummy; do
3513 test -z "$ac_dir" && ac_dir=.
3514 if $as_executable_p "$ac_dir/$ac_word"; then
3515 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3516 echo "$as_me:3516: found $ac_dir/$ac_word" >&5
3524 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3526 if test -n "$PKG_CONFIG"; then
3527 echo "$as_me:3527: result: $PKG_CONFIG" >&5
3528 echo "${ECHO_T}$PKG_CONFIG" >&6
3530 echo "$as_me:3530: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3535 if test -z "$ac_cv_path_PKG_CONFIG"; then
3536 ac_pt_PKG_CONFIG=$PKG_CONFIG
3537 # Extract the first word of "pkg-config", so it can be a program name with args.
3538 set dummy pkg-config; ac_word=$2
3539 echo "$as_me:3539: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 case $ac_pt_PKG_CONFIG in
3546 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3549 ac_save_IFS=$IFS; IFS=$ac_path_separator
3551 for ac_dir in $ac_dummy; do
3553 test -z "$ac_dir" && ac_dir=.
3554 if $as_executable_p "$ac_dir/$ac_word"; then
3555 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3556 echo "$as_me:3556: found $ac_dir/$ac_word" >&5
3561 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3565 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3567 if test -n "$ac_pt_PKG_CONFIG"; then
3568 echo "$as_me:3568: result: $ac_pt_PKG_CONFIG" >&5
3569 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3571 echo "$as_me:3571: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 PKG_CONFIG=$ac_pt_PKG_CONFIG
3577 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3586 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3587 if test "$PKG_CONFIG" != none ; then
3589 if test "x$prefix" != xNONE; then
3590 cf_path_syntax="$prefix"
3592 cf_path_syntax="$ac_default_prefix"
3595 case ".$PKG_CONFIG" in
3600 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3602 (.\${*prefix}*|.\${*dir}*)
3603 eval PKG_CONFIG="$PKG_CONFIG"
3604 case ".$PKG_CONFIG" in
3606 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3611 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3614 { { echo "$as_me:3614: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3615 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3616 { (exit 1); exit 1; }; }
3620 elif test "x$cf_pkg_config" != xno ; then
3621 { echo "$as_me:3621: WARNING: pkg-config is not installed" >&5
3622 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3627 echo "$as_me:3627: checking for pkg-config library directory" >&5
3628 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3631 echo "$as_me:3631: checking for $PKG_CONFIG library directory" >&5
3632 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3636 PKG_CONFIG_LIBDIR=no
3638 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3639 if test "${with_pkg_config_libdir+set}" = set; then
3640 withval="$with_pkg_config_libdir"
3641 PKG_CONFIG_LIBDIR=$withval
3643 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3646 case x$PKG_CONFIG_LIBDIR in
3650 # Look for the library directory using the same prefix as the executable
3651 if test "x$PKG_CONFIG" = xnone
3655 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3658 # If you don't like using the default architecture, you have to specify the
3659 # intended library directory and corresponding compiler/linker options.
3661 # This case allows for Debian's 2014-flavor of multiarch, along with the
3662 # most common variations before that point. Some other variants spell the
3663 # directory differently, e.g., "pkg-config", and put it in unusual places.
3664 # pkg-config has always been poorly standardized, which is ironic...
3665 case x`(arch) 2>/dev/null` in
3668 $cf_path/lib/*64-linux-gnu \
3676 $cf_path/lib/*-linux-gnu \
3684 test -n "$verbose" && echo " list..." 1>&6
3686 echo "${as_me:-configure}:3686: testing list... ..." 1>&5
3688 for cf_config in $cf_search_path
3690 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3692 echo "${as_me:-configure}:3692: testing checking $cf_config/pkgconfig ..." 1>&5
3694 if test -d $cf_config/pkgconfig
3696 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3697 echo "$as_me:3697: checking done" >&5
3698 echo $ECHO_N "checking done... $ECHO_C" >&6
3707 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3708 echo "$as_me:3708: result: $PKG_CONFIG_LIBDIR" >&5
3709 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3712 if test "x$PKG_CONFIG" != xnone
3714 echo "$as_me:3714: checking if we should install .pc files for $PKG_CONFIG" >&5
3715 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3717 echo "$as_me:3717: checking if we should install .pc files" >&5
3718 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3721 # Check whether --enable-pc-files or --disable-pc-files was given.
3722 if test "${enable_pc_files+set}" = set; then
3723 enableval="$enable_pc_files"
3724 enable_pc_files=$enableval
3728 echo "$as_me:3728: result: $enable_pc_files" >&5
3729 echo "${ECHO_T}$enable_pc_files" >&6
3731 if test "x$enable_pc_files" != xno
3734 case "x$PKG_CONFIG_LIBDIR" in
3736 { echo "$as_me:3736: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3737 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3741 if test "x$prefix" != xNONE; then
3742 cf_path_syntax="$prefix"
3744 cf_path_syntax="$ac_default_prefix"
3747 case ".$PKG_CONFIG_LIBDIR" in
3752 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3754 (.\${*prefix}*|.\${*dir}*)
3755 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3756 case ".$PKG_CONFIG_LIBDIR" in
3758 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3763 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3766 { { echo "$as_me:3766: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3767 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3768 { (exit 1); exit 1; }; }
3778 if test -z "$MAKE_PC_FILES"
3780 echo "$as_me:3780: checking for suffix to add to pc-files" >&5
3781 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3783 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3784 if test "${with_pc_suffix+set}" = set; then
3785 withval="$with_pc_suffix"
3790 (*) PC_MODULE_SUFFIX="$withval"
3794 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3795 echo "$as_me:3795: result: $PC_MODULE_SUFFIX" >&5
3796 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3797 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3801 echo "$as_me:3801: checking if we should assume mixed-case filenames" >&5
3802 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3804 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3805 if test "${enable_mixed_case+set}" = set; then
3806 enableval="$enable_mixed_case"
3807 enable_mixedcase=$enableval
3809 enable_mixedcase=auto
3811 echo "$as_me:3811: result: $enable_mixedcase" >&5
3812 echo "${ECHO_T}$enable_mixedcase" >&6
3813 if test "$enable_mixedcase" = "auto" ; then
3815 echo "$as_me:3815: checking if filesystem supports mixed-case filenames" >&5
3816 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3817 if test "${cf_cv_mixedcase+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 if test "$cross_compiling" = yes ; then
3822 case $target_alias in
3823 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3831 rm -f conftest CONFTEST
3833 if test -f CONFTEST ; then
3838 rm -f conftest CONFTEST
3842 echo "$as_me:3842: result: $cf_cv_mixedcase" >&5
3843 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3844 test "$cf_cv_mixedcase" = yes &&
3845 cat >>confdefs.h <<\EOF
3846 #define MIXEDCASE_FILENAMES 1
3850 cf_cv_mixedcase=$enable_mixedcase
3851 if test "x$enable_mixedcase" = "xyes" ; then
3853 cat >>confdefs.h <<\EOF
3854 #define MIXEDCASE_FILENAMES 1
3860 # do this after mixed-case option (tags/TAGS is not as important as tic).
3861 echo "$as_me:3861: checking whether ${MAKE-make} sets \${MAKE}" >&5
3862 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3863 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3864 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 cat >conftest.make <<\EOF
3869 @echo 'ac_maketemp="${MAKE}"'
3871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3872 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3873 if test -n "$ac_maketemp"; then
3874 eval ac_cv_prog_make_${ac_make}_set=yes
3876 eval ac_cv_prog_make_${ac_make}_set=no
3880 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3881 echo "$as_me:3881: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6
3885 echo "$as_me:3885: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3887 SET_MAKE="MAKE=${MAKE-make}"
3890 for ac_prog in exctags ctags
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 echo "$as_me:3894: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_CTAGS+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 if test -n "$CTAGS"; then
3900 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3902 ac_save_IFS=$IFS; IFS=$ac_path_separator
3904 for ac_dir in $ac_dummy; do
3906 test -z "$ac_dir" && ac_dir=.
3907 $as_executable_p "$ac_dir/$ac_word" || continue
3908 ac_cv_prog_CTAGS="$ac_prog"
3909 echo "$as_me:3909: found $ac_dir/$ac_word" >&5
3915 CTAGS=$ac_cv_prog_CTAGS
3916 if test -n "$CTAGS"; then
3917 echo "$as_me:3917: result: $CTAGS" >&5
3918 echo "${ECHO_T}$CTAGS" >&6
3920 echo "$as_me:3920: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3924 test -n "$CTAGS" && break
3927 for ac_prog in exetags etags
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 echo "$as_me:3931: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ETAGS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 if test -n "$ETAGS"; then
3937 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3939 ac_save_IFS=$IFS; IFS=$ac_path_separator
3941 for ac_dir in $ac_dummy; do
3943 test -z "$ac_dir" && ac_dir=.
3944 $as_executable_p "$ac_dir/$ac_word" || continue
3945 ac_cv_prog_ETAGS="$ac_prog"
3946 echo "$as_me:3946: found $ac_dir/$ac_word" >&5
3952 ETAGS=$ac_cv_prog_ETAGS
3953 if test -n "$ETAGS"; then
3954 echo "$as_me:3954: result: $ETAGS" >&5
3955 echo "${ECHO_T}$ETAGS" >&6
3957 echo "$as_me:3957: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 test -n "$ETAGS" && break
3964 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3965 set dummy ${CTAGS:-ctags}; ac_word=$2
3966 echo "$as_me:3966: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test -n "$MAKE_LOWER_TAGS"; then
3972 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3974 ac_save_IFS=$IFS; IFS=$ac_path_separator
3976 for ac_dir in $ac_dummy; do
3978 test -z "$ac_dir" && ac_dir=.
3979 $as_executable_p "$ac_dir/$ac_word" || continue
3980 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3981 echo "$as_me:3981: found $ac_dir/$ac_word" >&5
3985 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3988 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3989 if test -n "$MAKE_LOWER_TAGS"; then
3990 echo "$as_me:3990: result: $MAKE_LOWER_TAGS" >&5
3991 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3993 echo "$as_me:3993: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3997 if test "$cf_cv_mixedcase" = yes ; then
3998 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3999 set dummy ${ETAGS:-etags}; ac_word=$2
4000 echo "$as_me:4000: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test -n "$MAKE_UPPER_TAGS"; then
4006 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4008 ac_save_IFS=$IFS; IFS=$ac_path_separator
4010 for ac_dir in $ac_dummy; do
4012 test -z "$ac_dir" && ac_dir=.
4013 $as_executable_p "$ac_dir/$ac_word" || continue
4014 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4015 echo "$as_me:4015: found $ac_dir/$ac_word" >&5
4019 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4022 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4023 if test -n "$MAKE_UPPER_TAGS"; then
4024 echo "$as_me:4024: result: $MAKE_UPPER_TAGS" >&5
4025 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4027 echo "$as_me:4027: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4035 if test "$MAKE_UPPER_TAGS" = yes ; then
4041 if test "$MAKE_LOWER_TAGS" = yes ; then
4047 echo "$as_me:4047: checking for makeflags variable" >&5
4048 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4049 if test "${cf_cv_makeflags+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4056 cat >cf_makeflags.tmp <<CF_EOF
4059 @ echo '.$cf_option'
4061 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4062 case "$cf_result" in
4064 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4065 case "$cf_result" in
4066 (.*CC=*) cf_cv_makeflags=
4068 (*) cf_cv_makeflags=$cf_option
4074 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4078 rm -f cf_makeflags.tmp
4081 echo "$as_me:4081: result: $cf_cv_makeflags" >&5
4082 echo "${ECHO_T}$cf_cv_makeflags" >&6
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4087 echo "$as_me:4087: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_RANLIB+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if test -n "$RANLIB"; then
4093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4095 ac_save_IFS=$IFS; IFS=$ac_path_separator
4097 for ac_dir in $ac_dummy; do
4099 test -z "$ac_dir" && ac_dir=.
4100 $as_executable_p "$ac_dir/$ac_word" || continue
4101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4102 echo "$as_me:4102: found $ac_dir/$ac_word" >&5
4108 RANLIB=$ac_cv_prog_RANLIB
4109 if test -n "$RANLIB"; then
4110 echo "$as_me:4110: result: $RANLIB" >&5
4111 echo "${ECHO_T}$RANLIB" >&6
4113 echo "$as_me:4113: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4118 if test -z "$ac_cv_prog_RANLIB"; then
4119 ac_ct_RANLIB=$RANLIB
4120 # Extract the first word of "ranlib", so it can be a program name with args.
4121 set dummy ranlib; ac_word=$2
4122 echo "$as_me:4122: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test -n "$ac_ct_RANLIB"; then
4128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4130 ac_save_IFS=$IFS; IFS=$ac_path_separator
4132 for ac_dir in $ac_dummy; do
4134 test -z "$ac_dir" && ac_dir=.
4135 $as_executable_p "$ac_dir/$ac_word" || continue
4136 ac_cv_prog_ac_ct_RANLIB="ranlib"
4137 echo "$as_me:4137: found $ac_dir/$ac_word" >&5
4141 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4145 if test -n "$ac_ct_RANLIB"; then
4146 echo "$as_me:4146: result: $ac_ct_RANLIB" >&5
4147 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4149 echo "$as_me:4149: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4153 RANLIB=$ac_ct_RANLIB
4155 RANLIB="$ac_cv_prog_RANLIB"
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}ld; ac_word=$2
4161 echo "$as_me:4161: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_LD+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test -n "$LD"; then
4167 ac_cv_prog_LD="$LD" # Let the user override the test.
4169 ac_save_IFS=$IFS; IFS=$ac_path_separator
4171 for ac_dir in $ac_dummy; do
4173 test -z "$ac_dir" && ac_dir=.
4174 $as_executable_p "$ac_dir/$ac_word" || continue
4175 ac_cv_prog_LD="${ac_tool_prefix}ld"
4176 echo "$as_me:4176: found $ac_dir/$ac_word" >&5
4183 if test -n "$LD"; then
4184 echo "$as_me:4184: result: $LD" >&5
4185 echo "${ECHO_T}$LD" >&6
4187 echo "$as_me:4187: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4192 if test -z "$ac_cv_prog_LD"; then
4194 # Extract the first word of "ld", so it can be a program name with args.
4195 set dummy ld; ac_word=$2
4196 echo "$as_me:4196: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -n "$ac_ct_LD"; then
4202 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4204 ac_save_IFS=$IFS; IFS=$ac_path_separator
4206 for ac_dir in $ac_dummy; do
4208 test -z "$ac_dir" && ac_dir=.
4209 $as_executable_p "$ac_dir/$ac_word" || continue
4210 ac_cv_prog_ac_ct_LD="ld"
4211 echo "$as_me:4211: found $ac_dir/$ac_word" >&5
4215 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4218 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4219 if test -n "$ac_ct_LD"; then
4220 echo "$as_me:4220: result: $ac_ct_LD" >&5
4221 echo "${ECHO_T}$ac_ct_LD" >&6
4223 echo "$as_me:4223: result: no" >&5
4224 echo "${ECHO_T}no" >&6
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}ar; ac_word=$2
4235 echo "$as_me:4235: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_prog_AR+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -n "$AR"; then
4241 ac_cv_prog_AR="$AR" # Let the user override the test.
4243 ac_save_IFS=$IFS; IFS=$ac_path_separator
4245 for ac_dir in $ac_dummy; do
4247 test -z "$ac_dir" && ac_dir=.
4248 $as_executable_p "$ac_dir/$ac_word" || continue
4249 ac_cv_prog_AR="${ac_tool_prefix}ar"
4250 echo "$as_me:4250: found $ac_dir/$ac_word" >&5
4257 if test -n "$AR"; then
4258 echo "$as_me:4258: result: $AR" >&5
4259 echo "${ECHO_T}$AR" >&6
4261 echo "$as_me:4261: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4266 if test -z "$ac_cv_prog_AR"; then
4268 # Extract the first word of "ar", so it can be a program name with args.
4269 set dummy ar; ac_word=$2
4270 echo "$as_me:4270: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 if test -n "$ac_ct_AR"; then
4276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4278 ac_save_IFS=$IFS; IFS=$ac_path_separator
4280 for ac_dir in $ac_dummy; do
4282 test -z "$ac_dir" && ac_dir=.
4283 $as_executable_p "$ac_dir/$ac_word" || continue
4284 ac_cv_prog_ac_ct_AR="ar"
4285 echo "$as_me:4285: found $ac_dir/$ac_word" >&5
4289 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4292 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4293 if test -n "$ac_ct_AR"; then
4294 echo "$as_me:4294: result: $ac_ct_AR" >&5
4295 echo "${ECHO_T}$ac_ct_AR" >&6
4297 echo "$as_me:4297: result: no" >&5
4298 echo "${ECHO_T}no" >&6
4306 if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4308 set dummy ${ac_tool_prefix}nm; ac_word=$2
4309 echo "$as_me:4309: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4311 if test "${ac_cv_prog_NM+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$NM"; then
4315 ac_cv_prog_NM="$NM" # Let the user override the test.
4317 ac_save_IFS=$IFS; IFS=$ac_path_separator
4319 for ac_dir in $ac_dummy; do
4321 test -z "$ac_dir" && ac_dir=.
4322 $as_executable_p "$ac_dir/$ac_word" || continue
4323 ac_cv_prog_NM="${ac_tool_prefix}nm"
4324 echo "$as_me:4324: found $ac_dir/$ac_word" >&5
4331 if test -n "$NM"; then
4332 echo "$as_me:4332: result: $NM" >&5
4333 echo "${ECHO_T}$NM" >&6
4335 echo "$as_me:4335: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4340 if test -z "$ac_cv_prog_NM"; then
4342 # Extract the first word of "nm", so it can be a program name with args.
4343 set dummy nm; ac_word=$2
4344 echo "$as_me:4344: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$ac_ct_NM"; then
4350 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4352 ac_save_IFS=$IFS; IFS=$ac_path_separator
4354 for ac_dir in $ac_dummy; do
4356 test -z "$ac_dir" && ac_dir=.
4357 $as_executable_p "$ac_dir/$ac_word" || continue
4358 ac_cv_prog_ac_ct_NM="nm"
4359 echo "$as_me:4359: found $ac_dir/$ac_word" >&5
4363 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4366 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4367 if test -n "$ac_ct_NM"; then
4368 echo "$as_me:4368: result: $ac_ct_NM" >&5
4369 echo "${ECHO_T}$ac_ct_NM" >&6
4371 echo "$as_me:4371: result: no" >&5
4372 echo "${ECHO_T}no" >&6
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}ar; ac_word=$2
4383 echo "$as_me:4383: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385 if test "${ac_cv_prog_AR+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 if test -n "$AR"; then
4389 ac_cv_prog_AR="$AR" # Let the user override the test.
4391 ac_save_IFS=$IFS; IFS=$ac_path_separator
4393 for ac_dir in $ac_dummy; do
4395 test -z "$ac_dir" && ac_dir=.
4396 $as_executable_p "$ac_dir/$ac_word" || continue
4397 ac_cv_prog_AR="${ac_tool_prefix}ar"
4398 echo "$as_me:4398: found $ac_dir/$ac_word" >&5
4405 if test -n "$AR"; then
4406 echo "$as_me:4406: result: $AR" >&5
4407 echo "${ECHO_T}$AR" >&6
4409 echo "$as_me:4409: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -z "$ac_cv_prog_AR"; then
4416 # Extract the first word of "ar", so it can be a program name with args.
4417 set dummy ar; ac_word=$2
4418 echo "$as_me:4418: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$ac_ct_AR"; then
4424 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4426 ac_save_IFS=$IFS; IFS=$ac_path_separator
4428 for ac_dir in $ac_dummy; do
4430 test -z "$ac_dir" && ac_dir=.
4431 $as_executable_p "$ac_dir/$ac_word" || continue
4432 ac_cv_prog_ac_ct_AR="ar"
4433 echo "$as_me:4433: found $ac_dir/$ac_word" >&5
4437 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4441 if test -n "$ac_ct_AR"; then
4442 echo "$as_me:4442: result: $ac_ct_AR" >&5
4443 echo "${ECHO_T}$ac_ct_AR" >&6
4445 echo "$as_me:4445: result: no" >&5
4446 echo "${ECHO_T}no" >&6
4454 echo "$as_me:4454: checking for options to update archives" >&5
4455 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4456 if test "${cf_cv_ar_flags+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 cf_cv_ar_flags=unknown
4461 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4464 # check if $ARFLAGS already contains this choice
4465 if test "x$ARFLAGS" != "x" ; then
4466 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4467 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4473 rm -f conftest.$ac_cv_objext
4476 cat >conftest.$ac_ext <<EOF
4477 #line 4477 "configure"
4478 int testdata[3] = { 123, 456, 789 };
4480 if { (eval echo "$as_me:4480: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4483 echo "$as_me:4483: \$? = $ac_status" >&5
4484 (exit $ac_status); } ; then
4485 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4486 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4487 if test -f conftest.a ; then
4488 cf_cv_ar_flags=$cf_ar_flags
4492 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4494 echo "${as_me:-configure}:4494: testing cannot compile test-program ..." 1>&5
4499 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4502 echo "$as_me:4502: result: $cf_cv_ar_flags" >&5
4503 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4505 if test -n "$ARFLAGS" ; then
4506 if test -n "$cf_cv_ar_flags" ; then
4507 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4510 ARFLAGS=$cf_cv_ar_flags
4513 echo "$as_me:4513: checking if you have specified an install-prefix" >&5
4514 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4516 # Check whether --with-install-prefix or --without-install-prefix was given.
4517 if test "${with_install_prefix+set}" = set; then
4518 withval="$with_install_prefix"
4522 (*) DESTDIR="$withval"
4526 echo "$as_me:4526: result: $DESTDIR" >&5
4527 echo "${ECHO_T}$DESTDIR" >&6
4529 ###############################################################################
4531 # If we're cross-compiling, allow the user to override the tools and their
4532 # options. The configure script is oriented toward identifying the host
4533 # compiler, etc., but we need a build compiler to generate parts of the source.
4535 if test "$cross_compiling" = yes ; then
4537 # defaults that we might want to override
4538 : ${BUILD_CFLAGS:=''}
4539 : ${BUILD_CPPFLAGS:=''}
4540 : ${BUILD_LDFLAGS:=''}
4542 : ${BUILD_EXEEXT:='$x'}
4543 : ${BUILD_OBJEXT:='o'}
4545 # Check whether --with-build-cc or --without-build-cc was given.
4546 if test "${with_build_cc+set}" = set; then
4547 withval="$with_build_cc"
4550 for ac_prog in gcc cc cl
4552 # Extract the first word of "$ac_prog", so it can be a program name with args.
4553 set dummy $ac_prog; ac_word=$2
4554 echo "$as_me:4554: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$BUILD_CC"; then
4560 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4562 ac_save_IFS=$IFS; IFS=$ac_path_separator
4564 for ac_dir in $ac_dummy; do
4566 test -z "$ac_dir" && ac_dir=.
4567 $as_executable_p "$ac_dir/$ac_word" || continue
4568 ac_cv_prog_BUILD_CC="$ac_prog"
4569 echo "$as_me:4569: found $ac_dir/$ac_word" >&5
4575 BUILD_CC=$ac_cv_prog_BUILD_CC
4576 if test -n "$BUILD_CC"; then
4577 echo "$as_me:4577: result: $BUILD_CC" >&5
4578 echo "${ECHO_T}$BUILD_CC" >&6
4580 echo "$as_me:4580: result: no" >&5
4581 echo "${ECHO_T}no" >&6
4584 test -n "$BUILD_CC" && break
4588 echo "$as_me:4588: checking for native build C compiler" >&5
4589 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4590 echo "$as_me:4590: result: $BUILD_CC" >&5
4591 echo "${ECHO_T}$BUILD_CC" >&6
4593 echo "$as_me:4593: checking for native build C preprocessor" >&5
4594 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4596 # Check whether --with-build-cpp or --without-build-cpp was given.
4597 if test "${with_build_cpp+set}" = set; then
4598 withval="$with_build_cpp"
4599 BUILD_CPP="$withval"
4601 BUILD_CPP='${BUILD_CC} -E'
4603 echo "$as_me:4603: result: $BUILD_CPP" >&5
4604 echo "${ECHO_T}$BUILD_CPP" >&6
4606 echo "$as_me:4606: checking for native build C flags" >&5
4607 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4609 # Check whether --with-build-cflags or --without-build-cflags was given.
4610 if test "${with_build_cflags+set}" = set; then
4611 withval="$with_build_cflags"
4612 BUILD_CFLAGS="$withval"
4614 echo "$as_me:4614: result: $BUILD_CFLAGS" >&5
4615 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4617 echo "$as_me:4617: checking for native build C preprocessor-flags" >&5
4618 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4620 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4621 if test "${with_build_cppflags+set}" = set; then
4622 withval="$with_build_cppflags"
4623 BUILD_CPPFLAGS="$withval"
4625 echo "$as_me:4625: result: $BUILD_CPPFLAGS" >&5
4626 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4628 echo "$as_me:4628: checking for native build linker-flags" >&5
4629 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4631 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4632 if test "${with_build_ldflags+set}" = set; then
4633 withval="$with_build_ldflags"
4634 BUILD_LDFLAGS="$withval"
4636 echo "$as_me:4636: result: $BUILD_LDFLAGS" >&5
4637 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4639 echo "$as_me:4639: checking for native build linker-libraries" >&5
4640 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4642 # Check whether --with-build-libs or --without-build-libs was given.
4643 if test "${with_build_libs+set}" = set; then
4644 withval="$with_build_libs"
4645 BUILD_LIBS="$withval"
4647 echo "$as_me:4647: result: $BUILD_LIBS" >&5
4648 echo "${ECHO_T}$BUILD_LIBS" >&6
4650 # this assumes we're on Unix.
4654 : ${BUILD_CC:='${CC}'}
4656 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4657 { { echo "$as_me:4657: error: Cross-build requires two compilers.
4658 Use --with-build-cc to specify the native compiler." >&5
4659 echo "$as_me: error: Cross-build requires two compilers.
4660 Use --with-build-cc to specify the native compiler." >&2;}
4661 { (exit 1); exit 1; }; }
4665 : ${BUILD_CC:='${CC}'}
4666 : ${BUILD_CPP:='${CPP}'}
4667 : ${BUILD_CFLAGS:='${CFLAGS}'}
4668 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4669 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4670 : ${BUILD_LIBS:='${LIBS}'}
4671 : ${BUILD_EXEEXT:='$x'}
4672 : ${BUILD_OBJEXT:='o'}
4675 ###############################################################################
4677 ### Options to allow the user to specify the set of libraries which are used.
4678 ### Use "--without-normal --with-shared" to allow the default model to be
4679 ### shared, for example.
4682 echo "$as_me:4682: checking if libtool -version-number should be used" >&5
4683 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4685 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4686 if test "${enable_libtool_version+set}" = set; then
4687 enableval="$enable_libtool_version"
4688 test "$enableval" != no && enableval=yes
4689 if test "$enableval" != "yes" ; then
4690 cf_libtool_version=no
4692 cf_libtool_version=yes
4696 cf_libtool_version=yes
4699 echo "$as_me:4699: result: $cf_libtool_version" >&5
4700 echo "${ECHO_T}$cf_libtool_version" >&6
4702 if test "$cf_libtool_version" = yes ; then
4703 LIBTOOL_VERSION="-version-number"
4705 LIBTOOL_VERSION="-version-info"
4708 { echo "$as_me:4708: WARNING: VERSION was not set" >&5
4709 echo "$as_me: WARNING: VERSION was not set" >&2;}
4712 ABI_VERSION="$VERSION"
4713 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4715 echo "${as_me:-configure}:4715: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4719 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4720 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4722 echo "${as_me:-configure}:4722: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4726 { echo "$as_me:4726: WARNING: unexpected VERSION value: $VERSION" >&5
4727 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4734 # common library maintenance symbols that are convenient for libtool scripts:
4735 LIB_CREATE='${AR} -cr'
4736 LIB_OBJECT='${OBJECTS}'
4740 # symbols used to prop libtool up to enable it to determine what it should be
4748 echo "$as_me:4748: checking if you want to build libraries with libtool" >&5
4749 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4751 # Check whether --with-libtool or --without-libtool was given.
4752 if test "${with_libtool+set}" = set; then
4753 withval="$with_libtool"
4754 with_libtool=$withval
4758 echo "$as_me:4758: result: $with_libtool" >&5
4759 echo "${ECHO_T}$with_libtool" >&6
4760 if test "$with_libtool" != "no"; then
4762 if test "$with_libtool" != "yes" ; then
4764 if test "x$prefix" != xNONE; then
4765 cf_path_syntax="$prefix"
4767 cf_path_syntax="$ac_default_prefix"
4770 case ".$with_libtool" in
4775 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4777 (.\${*prefix}*|.\${*dir}*)
4778 eval with_libtool="$with_libtool"
4779 case ".$with_libtool" in
4781 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4786 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4789 { { echo "$as_me:4789: error: expected a pathname, not \"$with_libtool\"" >&5
4790 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4791 { (exit 1); exit 1; }; }
4795 LIBTOOL=$with_libtool
4797 if test -n "$ac_tool_prefix"; then
4798 for ac_prog in libtool glibtool
4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 echo "$as_me:4802: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 if test -n "$LIBTOOL"; then
4808 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4810 ac_save_IFS=$IFS; IFS=$ac_path_separator
4812 for ac_dir in $ac_dummy; do
4814 test -z "$ac_dir" && ac_dir=.
4815 $as_executable_p "$ac_dir/$ac_word" || continue
4816 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4817 echo "$as_me:4817: found $ac_dir/$ac_word" >&5
4823 LIBTOOL=$ac_cv_prog_LIBTOOL
4824 if test -n "$LIBTOOL"; then
4825 echo "$as_me:4825: result: $LIBTOOL" >&5
4826 echo "${ECHO_T}$LIBTOOL" >&6
4828 echo "$as_me:4828: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4832 test -n "$LIBTOOL" && break
4835 if test -z "$LIBTOOL"; then
4836 ac_ct_LIBTOOL=$LIBTOOL
4837 for ac_prog in libtool glibtool
4839 # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 echo "$as_me:4841: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -n "$ac_ct_LIBTOOL"; then
4847 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4849 ac_save_IFS=$IFS; IFS=$ac_path_separator
4851 for ac_dir in $ac_dummy; do
4853 test -z "$ac_dir" && ac_dir=.
4854 $as_executable_p "$ac_dir/$ac_word" || continue
4855 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4856 echo "$as_me:4856: found $ac_dir/$ac_word" >&5
4862 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4863 if test -n "$ac_ct_LIBTOOL"; then
4864 echo "$as_me:4864: result: $ac_ct_LIBTOOL" >&5
4865 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4867 echo "$as_me:4867: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4871 test -n "$ac_ct_LIBTOOL" && break
4873 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4875 LIBTOOL=$ac_ct_LIBTOOL
4878 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4880 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.].*//'`
4882 cf_cv_libtool_version=
4884 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4886 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4889 unset ac_cv_prog_ac_ct_LIBTOOL
4893 if test -n "$ac_tool_prefix"; then
4894 for ac_prog in glibtool
4896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4898 echo "$as_me:4898: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$LIBTOOL"; then
4904 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4906 ac_save_IFS=$IFS; IFS=$ac_path_separator
4908 for ac_dir in $ac_dummy; do
4910 test -z "$ac_dir" && ac_dir=.
4911 $as_executable_p "$ac_dir/$ac_word" || continue
4912 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4913 echo "$as_me:4913: found $ac_dir/$ac_word" >&5
4919 LIBTOOL=$ac_cv_prog_LIBTOOL
4920 if test -n "$LIBTOOL"; then
4921 echo "$as_me:4921: result: $LIBTOOL" >&5
4922 echo "${ECHO_T}$LIBTOOL" >&6
4924 echo "$as_me:4924: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4928 test -n "$LIBTOOL" && break
4931 if test -z "$LIBTOOL"; then
4932 ac_ct_LIBTOOL=$LIBTOOL
4933 for ac_prog in glibtool
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936 set dummy $ac_prog; ac_word=$2
4937 echo "$as_me:4937: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 if test -n "$ac_ct_LIBTOOL"; then
4943 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4945 ac_save_IFS=$IFS; IFS=$ac_path_separator
4947 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 $as_executable_p "$ac_dir/$ac_word" || continue
4951 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4952 echo "$as_me:4952: found $ac_dir/$ac_word" >&5
4958 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4959 if test -n "$ac_ct_LIBTOOL"; then
4960 echo "$as_me:4960: result: $ac_ct_LIBTOOL" >&5
4961 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4963 echo "$as_me:4963: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4967 test -n "$ac_ct_LIBTOOL" && break
4969 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4971 LIBTOOL=$ac_ct_LIBTOOL
4974 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4976 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.].*//'`
4978 cf_cv_libtool_version=
4980 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4984 if test -z "$LIBTOOL" ; then
4985 { { echo "$as_me:4985: error: Cannot find libtool" >&5
4986 echo "$as_me: error: Cannot find libtool" >&2;}
4987 { (exit 1); exit 1; }; }
4989 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4990 LIB_OBJECT='${OBJECTS:.o=.lo}'
4992 LIB_CLEAN='${LIBTOOL} --mode=clean'
4993 LIB_COMPILE='${LIBTOOL} --mode=compile'
4994 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4995 LIB_INSTALL='${LIBTOOL} --mode=install'
4996 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4999 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5001 echo "$as_me:5001: checking version of $LIBTOOL" >&5
5002 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5004 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5006 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.].*//'`
5008 cf_cv_libtool_version=
5010 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5012 echo "$as_me:5012: result: $cf_cv_libtool_version" >&5
5013 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5014 if test -z "$cf_cv_libtool_version" ; then
5015 { { echo "$as_me:5015: error: This is not GNU libtool" >&5
5016 echo "$as_me: error: This is not GNU libtool" >&2;}
5017 { (exit 1); exit 1; }; }
5020 { { echo "$as_me:5020: error: GNU libtool has not been found" >&5
5021 echo "$as_me: error: GNU libtool has not been found" >&2;}
5022 { (exit 1); exit 1; }; }
5025 # special hack to add -no-undefined (which libtool should do for itself)
5027 case "$cf_cv_system_name" in
5028 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5029 LT_UNDEF=-no-undefined
5033 # special hack to add --tag option for C++ compiler
5034 case $cf_cv_libtool_version in
5035 (1.[5-9]*|[2-9].[0-9.a-z]*)
5036 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5037 LIBTOOL="$LIBTOOL --tag=CC"
5040 LIBTOOL_CXX="$LIBTOOL"
5048 test -z "$LIBTOOL" && ECHO_LT=
5050 if test "$with_libtool" != "no" ; then
5052 cf_list_models="$cf_list_models libtool"
5056 echo "$as_me:5056: checking if you want to build shared libraries" >&5
5057 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5059 # Check whether --with-shared or --without-shared was given.
5060 if test "${with_shared+set}" = set; then
5061 withval="$with_shared"
5062 with_shared=$withval
5066 echo "$as_me:5066: result: $with_shared" >&5
5067 echo "${ECHO_T}$with_shared" >&6
5068 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5070 echo "$as_me:5070: checking if you want to build static libraries" >&5
5071 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5073 # Check whether --with-normal or --without-normal was given.
5074 if test "${with_normal+set}" = set; then
5075 withval="$with_normal"
5076 with_normal=$withval
5080 echo "$as_me:5080: result: $with_normal" >&5
5081 echo "${ECHO_T}$with_normal" >&6
5082 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5084 echo "$as_me:5084: checking if you want to build debug libraries" >&5
5085 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5087 # Check whether --with-debug or --without-debug was given.
5088 if test "${with_debug+set}" = set; then
5089 withval="$with_debug"
5094 echo "$as_me:5094: result: $with_debug" >&5
5095 echo "${ECHO_T}$with_debug" >&6
5096 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5098 echo "$as_me:5098: checking if you want to build profiling libraries" >&5
5099 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5101 # Check whether --with-profile or --without-profile was given.
5102 if test "${with_profile+set}" = set; then
5103 withval="$with_profile"
5104 with_profile=$withval
5108 echo "$as_me:5108: result: $with_profile" >&5
5109 echo "${ECHO_T}$with_profile" >&6
5110 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5114 if test "X$cf_with_cxx_binding" != Xno; then
5115 if test "x$with_shared" = "xyes"; then
5116 echo "$as_me:5116: checking if you want to build C++ shared libraries" >&5
5117 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5119 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5120 if test "${with_cxx_shared+set}" = set; then
5121 withval="$with_cxx_shared"
5122 with_shared_cxx=$withval
5126 echo "$as_me:5126: result: $with_shared_cxx" >&5
5127 echo "${ECHO_T}$with_shared_cxx" >&6
5131 ###############################################################################
5133 echo "$as_me:5133: checking for specified models" >&5
5134 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5135 test -z "$cf_list_models" && cf_list_models=normal
5136 test "$with_libtool" != "no" && cf_list_models=libtool
5137 echo "$as_me:5137: result: $cf_list_models" >&5
5138 echo "${ECHO_T}$cf_list_models" >&6
5140 ### Use the first model as the default, and save its suffix for use in building
5141 ### up test-applications.
5142 echo "$as_me:5142: checking for default model" >&5
5143 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5144 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5145 echo "$as_me:5145: result: $DFT_LWR_MODEL" >&5
5146 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5148 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5159 echo "$as_me:5159: checking if you want to have a library-prefix" >&5
5160 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5162 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5163 if test "${with_lib_prefix+set}" = set; then
5164 withval="$with_lib_prefix"
5165 with_lib_prefix=$withval
5167 with_lib_prefix=auto
5169 echo "$as_me:5169: result: $with_lib_prefix" >&5
5170 echo "${ECHO_T}$with_lib_prefix" >&6
5172 if test $with_lib_prefix = auto
5175 case $cf_cv_system_name in
5177 if test "$DFT_LWR_MODEL" = libtool; then
5183 (*) LIB_PREFIX='lib'
5186 cf_prefix=$LIB_PREFIX
5188 elif test $with_lib_prefix = no
5192 LIB_PREFIX=$with_lib_prefix
5197 echo "$as_me:5197: checking for PATH separator" >&5
5198 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5199 case $cf_cv_system_name in
5200 (os2*) PATH_SEPARATOR=';' ;;
5201 (*) ${PATH_SEPARATOR:=':'} ;;
5204 echo "$as_me:5204: result: $PATH_SEPARATOR" >&5
5205 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5207 ###############################################################################
5209 echo "$as_me:5209: checking if you want to build a separate terminfo library" >&5
5210 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5212 # Check whether --with-termlib or --without-termlib was given.
5213 if test "${with_termlib+set}" = set; then
5214 withval="$with_termlib"
5215 with_termlib=$withval
5219 echo "$as_me:5219: result: $with_termlib" >&5
5220 echo "${ECHO_T}$with_termlib" >&6
5222 echo "$as_me:5222: checking if you want to build a separate tic library" >&5
5223 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5225 # Check whether --with-ticlib or --without-ticlib was given.
5226 if test "${with_ticlib+set}" = set; then
5227 withval="$with_ticlib"
5228 with_ticlib=$withval
5232 echo "$as_me:5232: result: $with_ticlib" >&5
5233 echo "${ECHO_T}$with_ticlib" >&6
5235 ### Checks for special libraries, must be done up-front.
5238 echo "$as_me:5238: checking if you want to link with the GPM mouse library" >&5
5239 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5241 # Check whether --with-gpm or --without-gpm was given.
5242 if test "${with_gpm+set}" = set; then
5248 echo "$as_me:5248: result: $with_gpm" >&5
5249 echo "${ECHO_T}$with_gpm" >&6
5251 if test "$with_gpm" != no ; then
5252 echo "$as_me:5252: checking for gpm.h" >&5
5253 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5254 if test "${ac_cv_header_gpm_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line 5258 "configure"
5259 #include "confdefs.h"
5262 if { (eval echo "$as_me:5262: \"$ac_cpp conftest.$ac_ext\"") >&5
5263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265 egrep -v '^ *\+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:5268: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5278 if test -z "$ac_cpp_err"; then
5279 ac_cv_header_gpm_h=yes
5281 echo "$as_me: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 ac_cv_header_gpm_h=no
5285 rm -f conftest.err conftest.$ac_ext
5287 echo "$as_me:5287: result: $ac_cv_header_gpm_h" >&5
5288 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5289 if test $ac_cv_header_gpm_h = yes; then
5291 cat >>confdefs.h <<\EOF
5292 #define HAVE_GPM_H 1
5295 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5296 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5298 echo "${as_me:-configure}:5298: testing assuming we really have GPM library ..." 1>&5
5300 cat >>confdefs.h <<\EOF
5301 #define HAVE_LIBGPM 1
5306 echo "$as_me:5306: checking for Gpm_Open in -lgpm" >&5
5307 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5308 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line 5314 "configure"
5315 #include "confdefs.h"
5317 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:5333: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5336 echo "$as_me:5336: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:5339: \"$ac_try\"") >&5
5342 echo "$as_me:5342: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_lib_gpm_Gpm_Open=yes
5346 echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 ac_cv_lib_gpm_Gpm_Open=no
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 LIBS=$ac_check_lib_save_LIBS
5353 echo "$as_me:5353: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5354 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5355 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5359 if test "$with_gpm" = maybe; then
5360 { echo "$as_me:5360: WARNING: Cannot link with GPM library" >&5
5361 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
5364 { { echo "$as_me:5364: error: Cannot link with GPM library" >&5
5365 echo "$as_me: error: Cannot link with GPM library" >&2;}
5366 { (exit 1); exit 1; }; }
5375 test "$with_gpm" != maybe && { echo "$as_me:5375: WARNING: Cannot find GPM header" >&5
5376 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5383 if test "$with_gpm" != no ; then
5384 echo "$as_me:5384: checking if you want to load GPM dynamically" >&5
5385 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5387 # Check whether --with-dlsym or --without-dlsym was given.
5388 if test "${with_dlsym+set}" = set; then
5389 withval="$with_dlsym"
5394 echo "$as_me:5394: result: $with_dlsym" >&5
5395 echo "${ECHO_T}$with_dlsym" >&6
5396 if test "x$with_dlsym" = xyes ; then
5399 echo "$as_me:5399: checking for dlsym" >&5
5400 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5401 if test "${ac_cv_func_dlsym+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line 5405 "configure"
5406 #include "confdefs.h"
5407 /* System header to define __stub macros and hopefully few prototypes,
5408 which can conflict with char dlsym (); below. */
5410 /* Override any gcc2 internal prototype to avoid an error. */
5414 /* We use char because int might match the return type of a gcc2
5415 builtin and then its argument prototype would still apply. */
5422 /* The GNU C library defines this for functions which it implements
5423 to always fail with ENOSYS. Some functions are actually named
5424 something starting with __ and the normal name is an alias. */
5425 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5428 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (eval echo "$as_me:5436: \"$ac_link\"") >&5
5437 (eval $ac_link) 2>&5
5439 echo "$as_me:5439: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -s conftest$ac_exeext'
5442 { (eval echo "$as_me:5442: \"$ac_try\"") >&5
5445 echo "$as_me:5445: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_func_dlsym=yes
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5455 echo "$as_me:5455: result: $ac_cv_func_dlsym" >&5
5456 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5457 if test $ac_cv_func_dlsym = yes; then
5462 echo "$as_me:5462: checking for dlsym in -ldl" >&5
5463 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5464 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 ac_check_lib_save_LIBS=$LIBS
5469 cat >conftest.$ac_ext <<_ACEOF
5470 #line 5470 "configure"
5471 #include "confdefs.h"
5473 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5488 rm -f conftest.$ac_objext conftest$ac_exeext
5489 if { (eval echo "$as_me:5489: \"$ac_link\"") >&5
5490 (eval $ac_link) 2>&5
5492 echo "$as_me:5492: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -s conftest$ac_exeext'
5495 { (eval echo "$as_me:5495: \"$ac_try\"") >&5
5498 echo "$as_me:5498: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_cv_lib_dl_dlsym=yes
5502 echo "$as_me: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5504 ac_cv_lib_dl_dlsym=no
5506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5507 LIBS=$ac_check_lib_save_LIBS
5509 echo "$as_me:5509: result: $ac_cv_lib_dl_dlsym" >&5
5510 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5511 if test $ac_cv_lib_dl_dlsym = yes; then
5519 if test "$cf_have_dlsym" = yes ; then
5520 test "$cf_have_libdl" = yes && {
5522 # Filter out duplicates - this happens with badly-designed ".pc" files...
5523 for cf_add_1lib in $LIBS
5525 for cf_add_2lib in $cf_add_libs
5527 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5533 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5538 echo "$as_me:5538: checking whether able to link to dl*() functions" >&5
5539 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5540 cat >conftest.$ac_ext <<_ACEOF
5541 #line 5541 "configure"
5542 #include "confdefs.h"
5549 if ((obj = dlopen("filename", 0)) != 0) {
5550 if (dlsym(obj, "symbolname") == 0) {
5558 rm -f conftest.$ac_objext conftest$ac_exeext
5559 if { (eval echo "$as_me:5559: \"$ac_link\"") >&5
5560 (eval $ac_link) 2>&5
5562 echo "$as_me:5562: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -s conftest$ac_exeext'
5565 { (eval echo "$as_me:5565: \"$ac_try\"") >&5
5568 echo "$as_me:5568: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5571 cat >>confdefs.h <<\EOF
5572 #define HAVE_LIBDL 1
5576 echo "$as_me: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 { { echo "$as_me:5579: error: Cannot link test program for libdl" >&5
5580 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5581 { (exit 1); exit 1; }; }
5583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5584 echo "$as_me:5584: result: ok" >&5
5585 echo "${ECHO_T}ok" >&6
5587 { { echo "$as_me:5587: error: Cannot find dlsym function" >&5
5588 echo "$as_me: error: Cannot find dlsym function" >&2;}
5589 { (exit 1); exit 1; }; }
5592 if test "x$with_gpm" != xyes ; then
5593 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5595 echo "${as_me:-configure}:5595: testing assuming soname for gpm is $with_gpm ..." 1>&5
5597 cf_cv_gpm_soname="$with_gpm"
5600 echo "$as_me:5600: checking for soname of gpm library" >&5
5601 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5602 if test "${cf_cv_gpm_soname+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 cf_cv_gpm_soname=unknown
5607 if test "$cross_compiling" != yes ; then
5608 cat >conftest.$ac_ext <<CF_EOF
5612 if (Gpm_Open(0,0)) Gpm_Close();
5613 ${cf_cv_main_return:-return}(0);
5616 cf_save_LIBS="$LIBS"
5619 # Filter out duplicates - this happens with badly-designed ".pc" files...
5620 for cf_add_1lib in $LIBS
5622 for cf_add_2lib in $cf_add_libs
5624 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5630 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5634 if { (eval echo "$as_me:5634: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>&5
5637 echo "$as_me:5637: \$? = $ac_status" >&5
5638 (exit $ac_status); } ; then
5639 if { (eval echo "$as_me:5639: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>&5
5642 echo "$as_me:5642: \$? = $ac_status" >&5
5643 (exit $ac_status); } ; then
5644 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5645 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5649 LIBS="$cf_save_LIBS"
5653 echo "$as_me:5653: result: $cf_cv_gpm_soname" >&5
5654 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5657 test "$cf_cv_gpm_soname" != "unknown" &&
5658 cat >>confdefs.h <<EOF
5659 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5662 SHLIB_LIST="-ldl $SHLIB_LIST"
5664 SHLIB_LIST="-lgpm $SHLIB_LIST"
5667 # Filter out duplicates - this happens with badly-designed ".pc" files...
5668 for cf_add_1lib in $TEST_LIBS
5670 for cf_add_2lib in $cf_add_libs
5672 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5678 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5680 TEST_LIBS="$cf_add_libs"
5684 cat >>confdefs.h <<\EOF
5685 #define HAVE_LIBGPM 1
5688 echo "$as_me:5688: checking for Gpm_Wgetch in -lgpm" >&5
5689 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5690 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 ac_check_lib_save_LIBS=$LIBS
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line 5696 "configure"
5697 #include "confdefs.h"
5699 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5714 rm -f conftest.$ac_objext conftest$ac_exeext
5715 if { (eval echo "$as_me:5715: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5718 echo "$as_me:5718: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -s conftest$ac_exeext'
5721 { (eval echo "$as_me:5721: \"$ac_try\"") >&5
5724 echo "$as_me:5724: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_lib_gpm_Gpm_Wgetch=yes
5728 echo "$as_me: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 ac_cv_lib_gpm_Gpm_Wgetch=no
5732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5733 LIBS=$ac_check_lib_save_LIBS
5735 echo "$as_me:5735: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5736 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5737 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5739 echo "$as_me:5739: checking if GPM is weakly bound to curses library" >&5
5740 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5741 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 cf_cv_check_gpm_wgetch=unknown
5746 if test "$cross_compiling" != yes ; then
5748 cat >conftest.$ac_ext <<CF_EOF
5753 ${cf_cv_main_return:-return}(0);
5757 cf_save_LIBS="$LIBS"
5758 # This only works if we can look at the symbol table. If a shared
5759 # library is stripped for install, we cannot use that. So we're forced
5760 # to rely on the static library, noting that some packagers may not
5762 LIBS="-static -lgpm -dynamic $LIBS"
5763 if { (eval echo "$as_me:5763: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>&5
5766 echo "$as_me:5766: \$? = $ac_status" >&5
5767 (exit $ac_status); } ; then
5768 if { (eval echo "$as_me:5768: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>&5
5771 echo "$as_me:5771: \$? = $ac_status" >&5
5772 (exit $ac_status); } ; then
5773 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5774 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5775 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5779 LIBS="$cf_save_LIBS"
5783 echo "$as_me:5783: result: $cf_cv_check_gpm_wgetch" >&5
5784 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5786 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5787 { echo "$as_me:5787: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5788 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5795 # not everyone has "test -c"
5796 if test -c /dev/sysmouse 2>/dev/null ; then
5797 echo "$as_me:5797: checking if you want to use sysmouse" >&5
5798 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5800 # Check whether --with-sysmouse or --without-sysmouse was given.
5801 if test "${with_sysmouse+set}" = set; then
5802 withval="$with_sysmouse"
5803 cf_with_sysmouse=$withval
5805 cf_with_sysmouse=maybe
5807 if test "$cf_with_sysmouse" != no ; then
5808 cat >conftest.$ac_ext <<_ACEOF
5809 #line 5809 "configure"
5810 #include "confdefs.h"
5812 #include <osreldate.h>
5813 #if (__FreeBSD_version >= 400017)
5814 #include <sys/consio.h>
5815 #include <sys/fbio.h>
5817 #include <machine/console.h>
5824 struct mouse_info the_mouse;
5825 ioctl(0, CONS_MOUSECTL, &the_mouse);
5831 rm -f conftest.$ac_objext
5832 if { (eval echo "$as_me:5832: \"$ac_compile\"") >&5
5833 (eval $ac_compile) 2>&5
5835 echo "$as_me:5835: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:5838: \"$ac_try\"") >&5
5841 echo "$as_me:5841: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 cf_with_sysmouse=yes
5845 echo "$as_me: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5849 rm -f conftest.$ac_objext conftest.$ac_ext
5851 echo "$as_me:5851: result: $cf_with_sysmouse" >&5
5852 echo "${ECHO_T}$cf_with_sysmouse" >&6
5853 test "$cf_with_sysmouse" = yes &&
5854 cat >>confdefs.h <<\EOF
5855 #define USE_SYSMOUSE 1
5860 if test X"$CC_G_OPT" = X"" ; then
5862 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5865 if test X"$CXX_G_OPT" = X"" ; then
5867 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5870 echo "$as_me:5870: checking for default loader flags" >&5
5871 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5872 case $DFT_LWR_MODEL in
5873 (libtool) LD_MODEL='' ;;
5874 (normal) LD_MODEL='' ;;
5875 (debug) LD_MODEL=$CC_G_OPT ;;
5876 (profile) LD_MODEL='-pg';;
5877 (shared) LD_MODEL='' ;;
5879 echo "$as_me:5879: result: $LD_MODEL" >&5
5880 echo "${ECHO_T}$LD_MODEL" >&6
5882 case $DFT_LWR_MODEL in
5885 echo "$as_me:5885: checking if rpath option should be used" >&5
5886 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5888 # Check whether --enable-rpath or --disable-rpath was given.
5889 if test "${enable_rpath+set}" = set; then
5890 enableval="$enable_rpath"
5891 cf_cv_enable_rpath=$enableval
5893 cf_cv_enable_rpath=no
5895 echo "$as_me:5895: result: $cf_cv_enable_rpath" >&5
5896 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5898 echo "$as_me:5898: checking if shared libraries should be relinked during install" >&5
5899 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5901 # Check whether --enable-relink or --disable-relink was given.
5902 if test "${enable_relink+set}" = set; then
5903 enableval="$enable_relink"
5904 cf_cv_do_relink=$enableval
5908 echo "$as_me:5908: result: $cf_cv_do_relink" >&5
5909 echo "${ECHO_T}$cf_cv_do_relink" >&6
5913 # we will build libraries one-level down.
5917 echo "$as_me:5917: checking for an rpath option" >&5
5918 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5919 case $cf_cv_system_name in
5921 if test "$GCC" = yes; then
5922 LD_RPATH_OPT="-Wl,-rpath,"
5924 LD_RPATH_OPT="-rpath "
5927 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5928 LD_RPATH_OPT="-Wl,-rpath,"
5930 (openbsd[2-9].*|mirbsd*)
5931 LD_RPATH_OPT="-Wl,-rpath,"
5934 LD_RPATH_OPT="-rpath "
5937 LD_RPATH_OPT="-Wl,-rpath,"
5940 LD_RPATH_OPT="-rpath "
5948 echo "$as_me:5948: result: $LD_RPATH_OPT" >&5
5949 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5951 case "x$LD_RPATH_OPT" in
5953 echo "$as_me:5953: checking if we need a space after rpath option" >&5
5954 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5955 cf_save_LIBS="$LIBS"
5957 cf_add_libs="${LD_RPATH_OPT}$libdir"
5958 # Filter out duplicates - this happens with badly-designed ".pc" files...
5959 for cf_add_1lib in $LIBS
5961 for cf_add_2lib in $cf_add_libs
5963 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5969 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line 5974 "configure"
5975 #include "confdefs.h"
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:5986: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>&5
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:5992: \"$ac_try\"") >&5
5995 echo "$as_me:5995: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5999 echo "$as_me: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6004 LIBS="$cf_save_LIBS"
6005 echo "$as_me:6005: result: $cf_rpath_space" >&5
6006 echo "${ECHO_T}$cf_rpath_space" >&6
6007 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6015 INSTALL_LIB="-m 644"
6016 : ${rel_builddir:=.}
6022 cf_cv_do_symlinks=no
6024 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6026 echo "$as_me:6026: checking if release/abi version should be used for shared libs" >&5
6027 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6029 # Check whether --with-shlib-version or --without-shlib-version was given.
6030 if test "${with_shlib_version+set}" = set; then
6031 withval="$with_shlib_version"
6032 test -z "$withval" && withval=auto
6035 cf_cv_shlib_version=auto
6038 cf_cv_shlib_version=$withval
6041 echo "$as_me:6041: result: $withval" >&5
6042 echo "${ECHO_T}$withval" >&6
6043 { { echo "$as_me:6043: error: option value must be one of: rel, abi, or auto" >&5
6044 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6045 { (exit 1); exit 1; }; }
6050 cf_cv_shlib_version=auto
6052 echo "$as_me:6052: result: $cf_cv_shlib_version" >&5
6053 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6058 # Some less-capable ports of gcc support only -fpic
6062 if test "$GCC" = yes
6066 case $cf_cv_system_name in
6067 (*linux*) # e.g., PGI compiler
6073 if test "$cf_try_fPIC" = yes
6075 echo "$as_me:6075: checking which $CC option to use" >&5
6076 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6077 cf_save_CFLAGS="$CFLAGS"
6078 for CC_SHARED_OPTS in -fPIC -fpic ''
6080 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line 6082 "configure"
6083 #include "confdefs.h"
6093 rm -f conftest.$ac_objext
6094 if { (eval echo "$as_me:6094: \"$ac_compile\"") >&5
6095 (eval $ac_compile) 2>&5
6097 echo "$as_me:6097: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:6100: \"$ac_try\"") >&5
6103 echo "$as_me:6103: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6107 echo "$as_me: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6110 rm -f conftest.$ac_objext conftest.$ac_ext
6112 echo "$as_me:6112: result: $CC_SHARED_OPTS" >&5
6113 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6114 CFLAGS="$cf_save_CFLAGS"
6117 cf_cv_shlib_version_infix=no
6119 case $cf_cv_system_name in
6120 (aix4.3-9*|aix[5-7]*)
6121 if test "$GCC" = yes; then
6122 CC_SHARED_OPTS='-Wl,-brtl'
6123 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6125 CC_SHARED_OPTS='-brtl'
6126 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6127 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6131 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6135 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6136 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6137 cf_cv_shlib_version=cygdll
6138 cf_cv_shlib_version_infix=cygdll
6141 cat >mk_shared_lib.sh <<-CF_EOF
6144 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6147 Linking shared library
6148 ** SHARED_LIB \$SHARED_LIB
6149 ** IMPORT_LIB \$IMPORT_LIB
6151 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6153 chmod +x mk_shared_lib.sh
6157 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6158 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6159 cf_cv_shlib_version=msysdll
6160 cf_cv_shlib_version_infix=msysdll
6163 cat >mk_shared_lib.sh <<-CF_EOF
6166 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6169 Linking shared library
6170 ** SHARED_LIB \$SHARED_LIB
6171 ** IMPORT_LIB \$IMPORT_LIB
6173 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6175 chmod +x mk_shared_lib.sh
6178 cf_try_cflags="no-cpp-precomp"
6179 CC_SHARED_OPTS="-dynamic"
6180 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6181 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6182 cf_cv_shlib_version_infix=yes
6183 echo "$as_me:6183: checking if ld -search_paths_first works" >&5
6184 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6185 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 cf_save_LDFLAGS=$LDFLAGS
6190 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line 6192 "configure"
6193 #include "confdefs.h"
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:6204: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>&5
6207 echo "$as_me:6207: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -s conftest$ac_exeext'
6210 { (eval echo "$as_me:6210: \"$ac_try\"") >&5
6213 echo "$as_me:6213: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 cf_cv_ldflags_search_paths_first=yes
6217 echo "$as_me: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6219 cf_cv_ldflags_search_paths_first=no
6221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6222 LDFLAGS=$cf_save_LDFLAGS
6224 echo "$as_me:6224: result: $cf_cv_ldflags_search_paths_first" >&5
6225 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6226 if test $cf_cv_ldflags_search_paths_first = yes; then
6227 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6231 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6232 if test "$GCC" != yes; then
6235 MK_SHARED_LIB='${LD} -b -o $@'
6236 INSTALL_LIB="-m 555"
6239 # (tested with gcc 2.7.2 -- I don't have c89)
6240 if test "$GCC" = yes; then
6241 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6244 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6246 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6247 # HP-UX shared libraries must be executable, and should be
6248 # readonly to exploit a quirk in the memory manager.
6249 INSTALL_LIB="-m 555"
6252 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6253 if test "$cf_cv_shlib_version" = rel; then
6254 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6256 cf_shared_soname='`basename `'
6259 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6262 if test "$cf_cv_enable_rpath" = yes ; then
6263 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6265 # tested with IRIX 5.2 and 'cc'.
6266 if test "$GCC" != yes; then
6267 CC_SHARED_OPTS='-KPIC'
6268 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6270 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6272 cf_cv_rm_so_locs=yes
6274 (linux*|gnu*|k*bsd*-gnu)
6275 if test "$DFT_LWR_MODEL" = "shared" ; then
6276 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6277 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6279 if test "$cf_cv_enable_rpath" = yes ; then
6280 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6283 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6284 if test "$cf_cv_shlib_version" = rel; then
6285 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6287 cf_cv_shared_soname='`basename $@`'
6290 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6293 cf_cv_shlib_version=mingw
6294 cf_cv_shlib_version_infix=mingw
6297 if test "$DFT_LWR_MODEL" = "shared" ; then
6298 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6299 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6300 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6303 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6304 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6305 cat >mk_shared_lib.sh <<-CF_EOF
6308 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6311 Linking shared library
6312 ** SHARED_LIB \$SHARED_LIB
6313 ** IMPORT_LIB \$IMPORT_LIB
6315 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6317 chmod +x mk_shared_lib.sh
6319 (openbsd[2-9].*|mirbsd*)
6320 if test "$DFT_LWR_MODEL" = "shared" ; then
6321 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6322 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6324 if test "$cf_cv_enable_rpath" = yes ; then
6325 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6327 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6329 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6330 if test "$cf_cv_shlib_version" = rel; then
6331 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6333 cf_cv_shared_soname='`basename $@`'
6336 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6338 (nto-qnx*|openbsd*|freebsd[12].*)
6339 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6340 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6341 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6343 (dragonfly*|freebsd*)
6344 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6345 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6346 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6347 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6348 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6351 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6352 if test "$cf_cv_shlib_version" = rel; then
6353 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6355 cf_cv_shared_soname='`basename $@`'
6358 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6361 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6362 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6363 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6364 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6365 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6366 if test "$cf_cv_shlib_version" = auto; then
6367 if test -f /usr/libexec/ld.elf_so; then
6368 cf_cv_shlib_version=abi
6370 cf_cv_shlib_version=rel
6374 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6375 if test "$cf_cv_shlib_version" = rel; then
6376 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6378 cf_cv_shared_soname='`basename $@`'
6381 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6383 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6387 # tested with OSF/1 V3.2 and 'cc'
6388 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6389 # link with shared libs).
6390 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6393 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6396 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6397 if test "$DFT_LWR_MODEL" = "shared" ; then
6398 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6399 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6401 cf_cv_rm_so_locs=yes
6403 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6404 # tested with osr5.0.5
6405 if test "$GCC" != yes; then
6406 CC_SHARED_OPTS='-belf -KPIC'
6408 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6409 if test "$cf_cv_enable_rpath" = yes ; then
6410 # only way is to set LD_RUN_PATH but no switch for it
6413 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6414 LINK_PROGS='LD_RUN_PATH=${libdir}'
6415 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6418 # tested with SunOS 4.1.1 and gcc 2.7.0
6419 if test "$GCC" != yes; then
6420 CC_SHARED_OPTS='-KPIC'
6422 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6423 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6426 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6427 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6428 if test "$DFT_LWR_MODEL" = "shared" ; then
6429 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6430 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6432 if test "$cf_cv_enable_rpath" = yes ; then
6433 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6436 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6437 if test "$cf_cv_shlib_version" = rel; then
6438 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6440 cf_cv_shared_soname='`basename $@`'
6443 if test "$GCC" != yes; then
6444 cf_save_CFLAGS="$CFLAGS"
6445 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6447 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6448 cat >conftest.$ac_ext <<_ACEOF
6449 #line 6449 "configure"
6450 #include "confdefs.h"
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:6461: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>&5
6464 echo "$as_me:6464: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -s conftest.$ac_objext'
6467 { (eval echo "$as_me:6467: \"$ac_try\"") >&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 rm -f conftest.$ac_objext conftest.$ac_ext
6479 CFLAGS="$cf_save_CFLAGS"
6480 CC_SHARED_OPTS=$cf_shared_opts
6481 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6483 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6486 (sysv5uw7*|unix_sv*)
6487 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6488 if test "$GCC" != yes; then
6489 CC_SHARED_OPTS='-KPIC'
6491 MK_SHARED_LIB='${LD} -d y -G -o $@'
6494 CC_SHARED_OPTS='unknown'
6495 MK_SHARED_LIB='echo unknown'
6499 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6500 case "$cf_cv_shlib_version" in
6502 case "$MK_SHARED_LIB" in
6504 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6507 { echo "$as_me:6507: WARNING: ignored --with-shlib-version" >&5
6508 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6514 if test -n "$cf_try_cflags"
6516 cat > conftest.$ac_ext <<EOF
6517 #line 6517 "${as_me:-configure}"
6519 int main(int argc, char *argv[])
6522 return (argv[argc-1] == 0) ;
6525 cf_save_CFLAGS="$CFLAGS"
6526 for cf_opt in $cf_try_cflags
6528 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6529 echo "$as_me:6529: checking if CFLAGS option -$cf_opt works" >&5
6530 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6531 if { (eval echo "$as_me:6531: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>&5
6534 echo "$as_me:6534: \$? = $ac_status" >&5
6535 (exit $ac_status); }; then
6536 echo "$as_me:6536: result: yes" >&5
6537 echo "${ECHO_T}yes" >&6
6538 cf_save_CFLAGS="$CFLAGS"
6540 echo "$as_me:6540: result: no" >&5
6541 echo "${ECHO_T}no" >&6
6544 CFLAGS="$cf_save_CFLAGS"
6547 # RPATH_LIST is a colon-separated list of directories
6548 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6549 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6551 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6553 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6555 echo "${as_me:-configure}:6555: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6557 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6559 echo "${as_me:-configure}:6559: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6561 for model in $cf_list_models; do
6565 echo "$as_me:6565: checking for additional libtool options" >&5
6566 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6568 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6569 if test "${with_libtool_opts+set}" = set; then
6570 withval="$with_libtool_opts"
6571 with_libtool_opts=$withval
6573 with_libtool_opts=no
6575 echo "$as_me:6575: result: $with_libtool_opts" >&5
6576 echo "${ECHO_T}$with_libtool_opts" >&6
6578 case .$with_libtool_opts in
6582 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6586 echo "$as_me:6586: checking if exported-symbols file should be used" >&5
6587 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6589 # Check whether --with-export-syms or --without-export-syms was given.
6590 if test "${with_export_syms+set}" = set; then
6591 withval="$with_export_syms"
6592 with_export_syms=$withval
6596 if test "x$with_export_syms" = xyes
6598 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6601 echo "$as_me:6601: result: $with_export_syms" >&5
6602 echo "${ECHO_T}$with_export_syms" >&6
6603 if test "x$with_export_syms" != xno
6605 EXPORT_SYMS="-export-symbols $with_export_syms"
6611 if test "$CC_SHARED_OPTS" = "unknown"; then
6612 { { echo "$as_me:6612: error: Shared libraries are not supported in this version" >&5
6613 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6614 { (exit 1); exit 1; }; }
6616 # workaround for inept transition to PIE vs PIC...
6617 echo "$as_me:6617: checking if current CFLAGS link properly" >&5
6618 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6620 #line 6620 "configure"
6621 #include "confdefs.h"
6626 printf("Hello work\n");
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:6632: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6635 echo "$as_me:6635: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -s conftest$ac_exeext'
6638 { (eval echo "$as_me:6638: \"$ac_try\"") >&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6645 echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650 echo "$as_me:6650: result: $cf_cflags_work" >&5
6651 echo "${ECHO_T}$cf_cflags_work" >&6
6652 if test "$cf_cflags_work" = no
6654 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6656 echo "${as_me:-configure}:6656: testing try to work around by appending shared-options ..." 1>&5
6658 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6661 echo "$as_me:6661: checking if versioned-symbols file should be used" >&5
6662 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6664 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6665 if test "${with_versioned_syms+set}" = set; then
6666 withval="$with_versioned_syms"
6667 with_versioned_syms=$withval
6669 with_versioned_syms=no
6671 if test "x$with_versioned_syms" = xyes
6673 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6676 echo "$as_me:6676: result: $with_versioned_syms" >&5
6677 echo "${ECHO_T}$with_versioned_syms" >&6
6683 if test "x$with_versioned_syms" != xno
6685 RESULTING_SYMS=$with_versioned_syms
6686 case "x$MK_SHARED_LIB" in
6688 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6689 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6690 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6692 echo "${as_me:-configure}:6692: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6696 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6697 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6698 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6700 echo "${as_me:-configure}:6700: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6704 { echo "$as_me:6704: WARNING: this system does not support versioned-symbols" >&5
6705 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6709 # Linux ld can selectively override scope, e.g., of symbols beginning with
6710 # "_" by first declaring some as global, and then using a wildcard to
6711 # declare the others as local. Some other loaders cannot do this. Check
6712 # by constructing a (very) simple shared library and inspecting its
6714 if test "x$VERSIONED_SYMS" != "x"
6716 echo "$as_me:6716: checking if wildcards can be used to selectively omit symbols" >&5
6717 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6723 cat >conftest.ver <<EOF
6752 cat >conftest.$ac_ext <<EOF
6753 #line 6753 "configure"
6754 int _ismissing(void) { return 1; }
6755 int _localf1(void) { return 1; }
6756 int _localf2(void) { return 2; }
6757 int globalf1(void) { return 1; }
6758 int globalf2(void) { return 2; }
6759 int _sublocalf1(void) { return 1; }
6760 int _sublocalf2(void) { return 2; }
6761 int subglobalf1(void) { return 1; }
6762 int subglobalf2(void) { return 2; }
6764 cat >conftest.mk <<EOF
6767 CPPFLAGS=${CPPFLAGS}
6770 VERSIONED_SYMS=${VERSIONED_SYMS}
6771 RESULTING_SYMS=conftest.ver
6772 MK_SHARED_LIB=${MK_SHARED_LIB}
6773 conftest.so: conftest.$ac_cv_objext
6774 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6777 # compile source, make library
6778 if make -f conftest.mk 2>&5 >/dev/null
6780 # test for missing symbol in either Data or Text section
6781 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6782 test -n "$cf_missing" && WILDCARD_SYMS=yes
6784 echo "$as_me:6784: result: $WILDCARD_SYMS" >&5
6785 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6794 # pretend that ncurses==ncursesw==ncursest
6795 echo "$as_me:6795: checking if you want to disable library suffixes" >&5
6796 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6798 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6799 if test "${enable_lib_suffixes+set}" = set; then
6800 enableval="$enable_lib_suffixes"
6801 test "$enableval" != no && enableval=yes
6802 if test "$enableval" != "yes" ; then
6803 disable_lib_suffixes=yes
6805 disable_lib_suffixes=no
6809 disable_lib_suffixes=no
6812 echo "$as_me:6812: result: $disable_lib_suffixes" >&5
6813 echo "${ECHO_T}$disable_lib_suffixes" >&6
6815 ### If we're building with rpath, try to link non-standard libs that way too.
6816 if test "$DFT_LWR_MODEL" = "shared"; then
6818 echo "$as_me:6818: checking if rpath-hack should be disabled" >&5
6819 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6821 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6822 if test "${enable_rpath_hack+set}" = set; then
6823 enableval="$enable_rpath_hack"
6824 test "$enableval" != no && enableval=yes
6825 if test "$enableval" != "yes" ; then
6826 cf_disable_rpath_hack=yes
6828 cf_disable_rpath_hack=no
6832 cf_disable_rpath_hack=no
6835 echo "$as_me:6835: result: $cf_disable_rpath_hack" >&5
6836 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6837 if test "$cf_disable_rpath_hack" = no ; then
6839 echo "$as_me:6839: checking for updated LDFLAGS" >&5
6840 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6841 if test -n "$LD_RPATH_OPT" ; then
6842 echo "$as_me:6842: result: maybe" >&5
6843 echo "${ECHO_T}maybe" >&6
6847 # Extract the first word of "$ac_prog", so it can be a program name with args.
6848 set dummy $ac_prog; ac_word=$2
6849 echo "$as_me:6849: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6851 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 if test -n "$cf_ldd_prog"; then
6855 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6857 ac_save_IFS=$IFS; IFS=$ac_path_separator
6859 for ac_dir in $ac_dummy; do
6861 test -z "$ac_dir" && ac_dir=.
6862 $as_executable_p "$ac_dir/$ac_word" || continue
6863 ac_cv_prog_cf_ldd_prog="$ac_prog"
6864 echo "$as_me:6864: found $ac_dir/$ac_word" >&5
6870 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6871 if test -n "$cf_ldd_prog"; then
6872 echo "$as_me:6872: result: $cf_ldd_prog" >&5
6873 echo "${ECHO_T}$cf_ldd_prog" >&6
6875 echo "$as_me:6875: result: no" >&5
6876 echo "${ECHO_T}no" >&6
6879 test -n "$cf_ldd_prog" && break
6881 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6883 cf_rpath_list="/usr/lib /lib"
6884 if test "$cf_ldd_prog" != no
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line 6889 "configure"
6890 #include "confdefs.h"
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:6901: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6904 echo "$as_me:6904: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6913 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6915 echo "$as_me: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6920 # If we passed the link-test, but get a "not found" on a given library,
6921 # this could be due to inept reconfiguration of gcc to make it only
6922 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6923 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6924 # /usr/local libraries.
6925 if test -n "$cf_rpath_oops"
6927 for cf_rpath_src in $cf_rpath_oops
6929 for cf_rpath_dir in \
6934 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6936 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6938 echo "${as_me:-configure}:6938: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6940 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6948 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6950 echo "${as_me:-configure}:6950: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6952 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6954 echo "${as_me:-configure}:6954: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6957 for cf_rpath_src in $LDFLAGS
6959 case $cf_rpath_src in
6962 # check if this refers to a directory which we will ignore
6964 if test -n "$cf_rpath_list"
6966 for cf_rpath_item in $cf_rpath_list
6968 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6976 if test "$cf_rpath_skip" = no
6978 # transform the option
6979 if test "$LD_RPATH_OPT" = "-R " ; then
6980 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6982 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6985 # if we have not already added this, add it now
6986 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6987 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6989 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6991 echo "${as_me:-configure}:6991: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6993 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6998 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7000 LDFLAGS=$cf_rpath_dst
7002 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7004 echo "${as_me:-configure}:7004: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7006 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7008 echo "${as_me:-configure}:7008: testing ...checking LIBS $LIBS ..." 1>&5
7011 for cf_rpath_src in $LIBS
7013 case $cf_rpath_src in
7016 # check if this refers to a directory which we will ignore
7018 if test -n "$cf_rpath_list"
7020 for cf_rpath_item in $cf_rpath_list
7022 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7030 if test "$cf_rpath_skip" = no
7032 # transform the option
7033 if test "$LD_RPATH_OPT" = "-R " ; then
7034 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7036 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7039 # if we have not already added this, add it now
7040 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7041 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7043 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7045 echo "${as_me:-configure}:7045: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7047 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7052 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7056 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7058 echo "${as_me:-configure}:7058: testing ...checked LIBS $LIBS ..." 1>&5
7060 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7062 echo "${as_me:-configure}:7062: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7065 echo "$as_me:7065: result: no" >&5
7066 echo "${ECHO_T}no" >&6
7073 ###############################################################################
7075 ### use option --with-extra-suffix to append suffix to headers and libraries
7076 echo "$as_me:7076: checking if you wish to append extra suffix to header/library paths" >&5
7077 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7080 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7081 if test "${with_extra_suffix+set}" = set; then
7082 withval="$with_extra_suffix"
7087 EXTRA_SUFFIX=$cf_cv_abi_version
7090 EXTRA_SUFFIX=$withval
7095 echo "$as_me:7095: result: $EXTRA_SUFFIX" >&5
7096 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7098 ### use option --disable-overwrite to leave out the link to -lcurses
7099 echo "$as_me:7099: checking if you wish to install ncurses overwriting curses" >&5
7100 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7102 # Check whether --enable-overwrite or --disable-overwrite was given.
7103 if test "${enable_overwrite+set}" = set; then
7104 enableval="$enable_overwrite"
7105 with_overwrite=$enableval
7107 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7109 echo "$as_me:7109: result: $with_overwrite" >&5
7110 echo "${ECHO_T}$with_overwrite" >&6
7112 echo "$as_me:7112: checking if external terminfo-database is used" >&5
7113 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7115 # Check whether --enable-database or --disable-database was given.
7116 if test "${enable_database+set}" = set; then
7117 enableval="$enable_database"
7118 use_database=$enableval
7122 echo "$as_me:7122: result: $use_database" >&5
7123 echo "${ECHO_T}$use_database" >&6
7127 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7130 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7134 NCURSES_USE_DATABASE=0
7135 if test "$use_database" != no ; then
7136 NCURSES_USE_DATABASE=1
7138 echo "$as_me:7138: checking which terminfo source-file will be installed" >&5
7139 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7141 # Check whether --with-database or --without-database was given.
7142 if test "${with_database+set}" = set; then
7143 withval="$with_database"
7144 TERMINFO_SRC=$withval
7146 echo "$as_me:7146: result: $TERMINFO_SRC" >&5
7147 echo "${ECHO_T}$TERMINFO_SRC" >&6
7149 echo "$as_me:7149: checking whether to use hashed database instead of directory/tree" >&5
7150 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7152 # Check whether --with-hashed-db or --without-hashed-db was given.
7153 if test "${with_hashed_db+set}" = set; then
7154 withval="$with_hashed_db"
7159 echo "$as_me:7159: result: $with_hashed_db" >&5
7160 echo "${ECHO_T}$with_hashed_db" >&6
7165 echo "$as_me:7165: checking for list of fallback descriptions" >&5
7166 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7168 # Check whether --with-fallbacks or --without-fallbacks was given.
7169 if test "${with_fallbacks+set}" = set; then
7170 withval="$with_fallbacks"
7171 with_fallback=$withval
7175 echo "$as_me:7175: result: $with_fallback" >&5
7176 echo "${ECHO_T}$with_fallback" >&6
7177 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7179 echo "$as_me:7179: checking if you want modern xterm or antique" >&5
7180 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7182 # Check whether --with-xterm-new or --without-xterm-new was given.
7183 if test "${with_xterm_new+set}" = set; then
7184 withval="$with_xterm_new"
7185 with_xterm_new=$withval
7189 case $with_xterm_new in
7190 (no) with_xterm_new=xterm-old;;
7191 (*) with_xterm_new=xterm-new;;
7193 echo "$as_me:7193: result: $with_xterm_new" >&5
7194 echo "${ECHO_T}$with_xterm_new" >&6
7195 WHICH_XTERM=$with_xterm_new
7197 echo "$as_me:7197: checking if xterm backspace sends BS or DEL" >&5
7198 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7200 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7201 if test "${with_xterm_kbs+set}" = set; then
7202 withval="$with_xterm_kbs"
7203 with_xterm_kbs=$withval
7207 case x$with_xterm_kbs in
7208 (xyes|xno|xBS|xbs|x8)
7215 with_xterm_kbs=$withval
7218 echo "$as_me:7218: result: $with_xterm_kbs" >&5
7219 echo "${ECHO_T}$with_xterm_kbs" >&6
7220 XTERM_KBS=$with_xterm_kbs
7223 if test "$use_database" = no ; then
7224 TERMINFO="${datadir}/terminfo"
7228 echo "$as_me:7228: checking for list of terminfo directories" >&5
7229 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7231 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7232 if test "${with_terminfo_dirs+set}" = set; then
7233 withval="$with_terminfo_dirs"
7236 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7238 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7240 for cf_src_path in $withval
7243 if test "x$prefix" != xNONE; then
7244 cf_path_syntax="$prefix"
7246 cf_path_syntax="$ac_default_prefix"
7249 case ".$cf_src_path" in
7254 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7256 (.\${*prefix}*|.\${*dir}*)
7257 eval cf_src_path="$cf_src_path"
7258 case ".$cf_src_path" in
7260 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7265 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7268 { { echo "$as_me:7268: error: expected a pathname, not \"$cf_src_path\"" >&5
7269 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7270 { (exit 1); exit 1; }; }
7274 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7275 cf_dst_path="${cf_dst_path}${cf_src_path}"
7279 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7280 # so we have to check/work around. We do prefer the result of "eval"...
7281 eval cf_dst_eval="$cf_dst_path"
7282 case "x$cf_dst_eval" in
7284 TERMINFO_DIRS=$cf_dst_path
7287 TERMINFO_DIRS="$cf_dst_eval"
7291 echo "$as_me:7291: result: $TERMINFO_DIRS" >&5
7292 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7293 test -n "$TERMINFO_DIRS" &&
7294 cat >>confdefs.h <<EOF
7295 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7298 echo "$as_me:7298: checking for default terminfo directory" >&5
7299 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7301 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7302 if test "${with_default_terminfo_dir+set}" = set; then
7303 withval="$with_default_terminfo_dir"
7306 withval="${TERMINFO:-${datadir}/terminfo}"
7307 fi; if test -n "${datadir}/terminfo" ; then
7309 if test "x$prefix" != xNONE; then
7310 cf_path_syntax="$prefix"
7312 cf_path_syntax="$ac_default_prefix"
7320 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7322 (.\${*prefix}*|.\${*dir}*)
7323 eval withval="$withval"
7326 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7331 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7334 { { echo "$as_me:7334: error: expected a pathname, not \"$withval\"" >&5
7335 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7336 { (exit 1); exit 1; }; }
7341 eval TERMINFO="$withval"
7343 echo "$as_me:7343: result: $TERMINFO" >&5
7344 echo "${ECHO_T}$TERMINFO" >&6
7346 cat >>confdefs.h <<EOF
7347 #define TERMINFO "$TERMINFO"
7352 ### use option --disable-big-core to make tic run on small machines
7353 ### We need 4Mb, check if we can allocate 50% more than that.
7354 echo "$as_me:7354: checking if big-core option selected" >&5
7355 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7357 # Check whether --enable-big-core or --disable-big-core was given.
7358 if test "${enable_big_core+set}" = set; then
7359 enableval="$enable_big_core"
7360 with_big_core=$enableval
7362 if test "$cross_compiling" = yes; then
7365 cat >conftest.$ac_ext <<_ACEOF
7366 #line 7366 "configure"
7367 #include "confdefs.h"
7372 unsigned long n = 6000000L;
7373 char *s = malloc(n);
7376 ${cf_cv_main_return:-return}(s == 0);
7379 rm -f conftest$ac_exeext
7380 if { (eval echo "$as_me:7380: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7383 echo "$as_me:7383: \$? = $ac_status" >&5
7384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7385 { (eval echo "$as_me:7385: \"$ac_try\"") >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7392 echo "$as_me: program exited with status $ac_status" >&5
7393 echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7397 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:7400: result: $with_big_core" >&5
7401 echo "${ECHO_T}$with_big_core" >&6
7402 test "x$with_big_core" = "xyes" &&
7403 cat >>confdefs.h <<\EOF
7404 #define HAVE_BIG_CORE 1
7407 ### ISO C only guarantees 512-char strings, we have tables which load faster
7408 ### when constructed using "big" strings. More than the C compiler, the awk
7409 ### program is a limit on most vendor UNIX systems. Check that we can build.
7410 echo "$as_me:7410: checking if big-strings option selected" >&5
7411 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7413 # Check whether --enable-big-strings or --disable-big-strings was given.
7414 if test "${enable_big_strings+set}" = set; then
7415 enableval="$enable_big_strings"
7416 with_big_strings=$enableval
7421 eval with_big_strings=no
7424 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7425 | $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
7426 eval with_big_strings=yes
7428 eval with_big_strings=no
7434 echo "$as_me:7434: result: $with_big_strings" >&5
7435 echo "${ECHO_T}$with_big_strings" >&6
7438 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7440 ### use option --enable-termcap to compile in the termcap fallback support
7441 echo "$as_me:7441: checking if you want termcap-fallback support" >&5
7442 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7444 # Check whether --enable-termcap or --disable-termcap was given.
7445 if test "${enable_termcap+set}" = set; then
7446 enableval="$enable_termcap"
7447 with_termcap=$enableval
7451 echo "$as_me:7451: result: $with_termcap" >&5
7452 echo "${ECHO_T}$with_termcap" >&6
7454 NCURSES_USE_TERMCAP=0
7455 if test "x$with_termcap" != "xyes" ; then
7456 if test "$use_database" = no ; then
7457 if test -z "$with_fallback" ; then
7458 { { echo "$as_me:7458: error: You have disabled the database w/o specifying fallbacks" >&5
7459 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7460 { (exit 1); exit 1; }; }
7464 cat >>confdefs.h <<\EOF
7465 #define PURE_TERMINFO 1
7470 if test "$with_ticlib" != no ; then
7471 { { echo "$as_me:7471: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7472 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7473 { (exit 1); exit 1; }; }
7476 NCURSES_USE_TERMCAP=1
7477 echo "$as_me:7477: checking for list of termcap files" >&5
7478 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7480 # Check whether --with-termpath or --without-termpath was given.
7481 if test "${with_termpath+set}" = set; then
7482 withval="$with_termpath"
7485 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7487 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7489 for cf_src_path in $withval
7492 if test "x$prefix" != xNONE; then
7493 cf_path_syntax="$prefix"
7495 cf_path_syntax="$ac_default_prefix"
7498 case ".$cf_src_path" in
7503 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7505 (.\${*prefix}*|.\${*dir}*)
7506 eval cf_src_path="$cf_src_path"
7507 case ".$cf_src_path" in
7509 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7514 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7517 { { echo "$as_me:7517: error: expected a pathname, not \"$cf_src_path\"" >&5
7518 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7519 { (exit 1); exit 1; }; }
7523 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7524 cf_dst_path="${cf_dst_path}${cf_src_path}"
7528 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7529 # so we have to check/work around. We do prefer the result of "eval"...
7530 eval cf_dst_eval="$cf_dst_path"
7531 case "x$cf_dst_eval" in
7533 TERMPATH=$cf_dst_path
7536 TERMPATH="$cf_dst_eval"
7540 echo "$as_me:7540: result: $TERMPATH" >&5
7541 echo "${ECHO_T}$TERMPATH" >&6
7542 test -n "$TERMPATH" &&
7543 cat >>confdefs.h <<EOF
7544 #define TERMPATH "$TERMPATH"
7547 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7548 echo "$as_me:7548: checking if fast termcap-loader is needed" >&5
7549 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7551 # Check whether --enable-getcap or --disable-getcap was given.
7552 if test "${enable_getcap+set}" = set; then
7553 enableval="$enable_getcap"
7554 with_getcap=$enableval
7558 echo "$as_me:7558: result: $with_getcap" >&5
7559 echo "${ECHO_T}$with_getcap" >&6
7560 test "x$with_getcap" = "xyes" &&
7561 cat >>confdefs.h <<\EOF
7562 #define USE_GETCAP 1
7565 echo "$as_me:7565: checking if translated termcaps will be cached in ~/.terminfo" >&5
7566 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7568 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7569 if test "${enable_getcap_cache+set}" = set; then
7570 enableval="$enable_getcap_cache"
7571 with_getcap_cache=$enableval
7573 with_getcap_cache=no
7575 echo "$as_me:7575: result: $with_getcap_cache" >&5
7576 echo "${ECHO_T}$with_getcap_cache" >&6
7577 test "x$with_getcap_cache" = "xyes" &&
7578 cat >>confdefs.h <<\EOF
7579 #define USE_GETCAP_CACHE 1
7584 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7585 echo "$as_me:7585: checking if ~/.terminfo is wanted" >&5
7586 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7588 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7589 if test "${enable_home_terminfo+set}" = set; then
7590 enableval="$enable_home_terminfo"
7591 with_home_terminfo=$enableval
7593 with_home_terminfo=yes
7595 echo "$as_me:7595: result: $with_home_terminfo" >&5
7596 echo "${ECHO_T}$with_home_terminfo" >&6
7597 test "x$with_home_terminfo" = "xyes" &&
7598 cat >>confdefs.h <<\EOF
7599 #define USE_HOME_TERMINFO 1
7602 echo "$as_me:7602: checking if you want to use restricted environment when running as root" >&5
7603 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7605 # Check whether --enable-root-environ or --disable-root-environ was given.
7606 if test "${enable_root_environ+set}" = set; then
7607 enableval="$enable_root_environ"
7608 with_root_environ=$enableval
7610 with_root_environ=yes
7612 echo "$as_me:7612: result: $with_root_environ" >&5
7613 echo "${ECHO_T}$with_root_environ" >&6
7614 test "x$with_root_environ" = xyes &&
7615 cat >>confdefs.h <<\EOF
7616 #define USE_ROOT_ENVIRON 1
7619 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7620 ### to reduce storage requirements for the terminfo database.
7626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7627 echo "$as_me:7627: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7633 #line 7633 "configure"
7634 #include "confdefs.h"
7635 #include <$ac_header>
7637 if { (eval echo "$as_me:7637: \"$ac_cpp conftest.$ac_ext\"") >&5
7638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7640 egrep -v '^ *\+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:7643: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev/null; then
7645 if test -s conftest.err; then
7646 ac_cpp_err=$ac_c_preproc_warn_flag
7653 if test -z "$ac_cpp_err"; then
7654 eval "$as_ac_Header=yes"
7656 echo "$as_me: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 eval "$as_ac_Header=no"
7660 rm -f conftest.err conftest.$ac_ext
7662 echo "$as_me:7662: result: `eval echo '${'$as_ac_Header'}'`" >&5
7663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7665 cat >>confdefs.h <<EOF
7666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7677 echo "$as_me:7677: checking for $ac_func" >&5
7678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7679 if eval "test \"\${$as_ac_var+set}\" = set"; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line 7683 "configure"
7684 #include "confdefs.h"
7685 /* System header to define __stub macros and hopefully few prototypes,
7686 which can conflict with char $ac_func (); below. */
7688 /* Override any gcc2 internal prototype to avoid an error. */
7692 /* We use char because int might match the return type of a gcc2
7693 builtin and then its argument prototype would still apply. */
7700 /* The GNU C library defines this for functions which it implements
7701 to always fail with ENOSYS. Some functions are actually named
7702 something starting with __ and the normal name is an alias. */
7703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7706 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (eval echo "$as_me:7714: \"$ac_link\"") >&5
7715 (eval $ac_link) 2>&5
7717 echo "$as_me:7717: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -s conftest$ac_exeext'
7720 { (eval echo "$as_me:7720: \"$ac_try\"") >&5
7723 echo "$as_me:7723: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 eval "$as_ac_var=yes"
7727 echo "$as_me: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7729 eval "$as_ac_var=no"
7731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7733 echo "$as_me:7733: result: `eval echo '${'$as_ac_var'}'`" >&5
7734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7735 if test `eval echo '${'$as_ac_var'}'` = yes; then
7736 cat >>confdefs.h <<EOF
7737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7743 if test "$cross_compiling" = yes ; then
7749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7750 echo "$as_me:7750: checking for $ac_func" >&5
7751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7752 if eval "test \"\${$as_ac_var+set}\" = set"; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line 7756 "configure"
7757 #include "confdefs.h"
7758 /* System header to define __stub macros and hopefully few prototypes,
7759 which can conflict with char $ac_func (); below. */
7761 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7773 /* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7779 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7786 rm -f conftest.$ac_objext conftest$ac_exeext
7787 if { (eval echo "$as_me:7787: \"$ac_link\"") >&5
7788 (eval $ac_link) 2>&5
7790 echo "$as_me:7790: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:7793: \"$ac_try\"") >&5
7796 echo "$as_me:7796: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 eval "$as_ac_var=yes"
7800 echo "$as_me: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7802 eval "$as_ac_var=no"
7804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7806 echo "$as_me:7806: result: `eval echo '${'$as_ac_var'}'`" >&5
7807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7808 if test `eval echo '${'$as_ac_var'}'` = yes; then
7809 cat >>confdefs.h <<EOF
7810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7817 echo "$as_me:7817: checking if link/symlink functions work" >&5
7818 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7819 if test "${cf_cv_link_funcs+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 for cf_func in link symlink ; do
7825 if test "$cross_compiling" = yes; then
7827 eval 'ac_cv_func_'$cf_func'=error'
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line 7830 "configure"
7831 #include "confdefs.h"
7833 #include <sys/types.h>
7834 #include <sys/stat.h>
7835 #ifdef HAVE_UNISTD_H
7841 char *src = "config.log";
7842 char *dst = "conftest.chk";
7847 fail = ($cf_func("config.log", "conftest.chk") < 0)
7848 || (stat(dst, &dst_sb) < 0)
7849 || (dst_sb.st_mtime != src_sb.st_mtime);
7855 ${cf_cv_main_return:-return} (fail);
7859 rm -f conftest$ac_exeext
7860 if { (eval echo "$as_me:7860: \"$ac_link\"") >&5
7861 (eval $ac_link) 2>&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7865 { (eval echo "$as_me:7865: \"$ac_try\"") >&5
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7871 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7872 eval 'ac_cv_func_'$cf_func'=yes'
7874 echo "$as_me: program exited with status $ac_status" >&5
7875 echo "$as_me: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 eval 'ac_cv_func_'$cf_func'=no'
7880 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7883 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7886 echo "$as_me:7886: result: $cf_cv_link_funcs" >&5
7887 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7888 test "$ac_cv_func_link" = yes &&
7889 cat >>confdefs.h <<\EOF
7893 test "$ac_cv_func_symlink" = yes &&
7894 cat >>confdefs.h <<\EOF
7895 #define HAVE_SYMLINK 1
7903 # soft links (symbolic links) are useful for some systems where hard links do
7904 # not work, or to make it simpler to copy terminfo trees around.
7905 if test "x$ac_cv_func_symlink" = xyes ; then
7906 echo "$as_me:7906: checking if tic should use symbolic links" >&5
7907 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7909 # Check whether --enable-symlinks or --disable-symlinks was given.
7910 if test "${enable_symlinks+set}" = set; then
7911 enableval="$enable_symlinks"
7912 with_symlinks=$enableval
7916 echo "$as_me:7916: result: $with_symlinks" >&5
7917 echo "${ECHO_T}$with_symlinks" >&6
7920 # If we have hard links and did not choose to use soft links instead, there is
7921 # no reason to make this choice optional - use the hard links.
7922 if test "$with_symlinks" = no ; then
7923 echo "$as_me:7923: checking if tic should use hard links" >&5
7924 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7925 if test "x$ac_cv_func_link" = xyes ; then
7930 echo "$as_me:7930: result: $with_links" >&5
7931 echo "${ECHO_T}$with_links" >&6
7934 test "x$with_links" = xyes &&
7935 cat >>confdefs.h <<\EOF
7939 test "x$with_symlinks" = xyes &&
7940 cat >>confdefs.h <<\EOF
7941 #define USE_SYMLINKS 1
7944 ### use option --enable-broken-linker to force on use of broken-linker support
7945 echo "$as_me:7945: checking if you want broken-linker support code" >&5
7946 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7948 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7949 if test "${enable_broken_linker+set}" = set; then
7950 enableval="$enable_broken_linker"
7951 with_broken_linker=$enableval
7953 with_broken_linker=${BROKEN_LINKER:-no}
7955 echo "$as_me:7955: result: $with_broken_linker" >&5
7956 echo "${ECHO_T}$with_broken_linker" >&6
7959 if test "x$with_broken_linker" = xyes ; then
7961 cat >>confdefs.h <<\EOF
7962 #define BROKEN_LINKER 1
7966 elif test "$DFT_LWR_MODEL" = shared ; then
7967 case $cf_cv_system_name in
7970 cat >>confdefs.h <<\EOF
7971 #define BROKEN_LINKER 1
7975 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7977 echo "${as_me:-configure}:7977: testing cygwin linker is broken anyway ..." 1>&5
7983 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7984 echo "$as_me:7984: checking if tputs should process BSD-style prefix padding" >&5
7985 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7987 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7988 if test "${enable_bsdpad+set}" = set; then
7989 enableval="$enable_bsdpad"
7990 with_bsdpad=$enableval
7994 echo "$as_me:7994: result: $with_bsdpad" >&5
7995 echo "${ECHO_T}$with_bsdpad" >&6
7996 test "x$with_bsdpad" = xyes &&
7997 cat >>confdefs.h <<\EOF
8001 ### use option --enable-widec to turn on use of wide-character support
8010 # Check to define _XOPEN_SOURCE "automatically"
8011 CPPFLAGS_before_XOPEN="$CPPFLAGS"
8014 cf_POSIX_C_SOURCE=199506L
8019 cf_xopen_source="-D_ALL_SOURCE"
8025 cf_xopen_source="-D_APPLE_C_SOURCE"
8028 cf_xopen_source="-D_DARWIN_C_SOURCE"
8031 (freebsd*|dragonfly*)
8032 # 5.x headers associate
8033 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
8034 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
8035 cf_POSIX_C_SOURCE=200112L
8037 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8040 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8043 cf_xopen_source="-D_HPUX_SOURCE"
8046 cf_xopen_source="-D_SGI_SOURCE"
8049 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
8051 echo "$as_me:8051: checking if we must define _GNU_SOURCE" >&5
8052 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
8053 if test "${cf_cv_gnu_source+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line 8058 "configure"
8059 #include "confdefs.h"
8060 #include <sys/types.h>
8065 #ifndef _XOPEN_SOURCE
8072 rm -f conftest.$ac_objext
8073 if { (eval echo "$as_me:8073: \"$ac_compile\"") >&5
8074 (eval $ac_compile) 2>&5
8076 echo "$as_me:8076: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:8079: \"$ac_try\"") >&5
8082 echo "$as_me:8082: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8086 echo "$as_me: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8089 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line 8091 "configure"
8092 #include "confdefs.h"
8093 #include <sys/types.h>
8098 #ifdef _XOPEN_SOURCE
8105 rm -f conftest.$ac_objext
8106 if { (eval echo "$as_me:8106: \"$ac_compile\"") >&5
8107 (eval $ac_compile) 2>&5
8109 echo "$as_me:8109: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (eval echo "$as_me:8112: \"$ac_try\"") >&5
8115 echo "$as_me:8115: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8119 echo "$as_me: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8121 cf_cv_gnu_source=yes
8123 rm -f conftest.$ac_objext conftest.$ac_ext
8127 rm -f conftest.$ac_objext conftest.$ac_ext
8130 echo "$as_me:8130: result: $cf_cv_gnu_source" >&5
8131 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8133 if test "$cf_cv_gnu_source" = yes
8135 echo "$as_me:8135: checking if we should also define _DEFAULT_SOURCE" >&5
8136 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
8137 if test "${cf_cv_default_source+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8142 cat >conftest.$ac_ext <<_ACEOF
8143 #line 8143 "configure"
8144 #include "confdefs.h"
8145 #include <sys/types.h>
8150 #ifdef _DEFAULT_SOURCE
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:8158: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -s conftest.$ac_objext'
8164 { (eval echo "$as_me:8164: \"$ac_try\"") >&5
8167 echo "$as_me:8167: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 cf_cv_default_source=no
8171 echo "$as_me: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8173 cf_cv_default_source=yes
8175 rm -f conftest.$ac_objext conftest.$ac_ext
8178 echo "$as_me:8178: result: $cf_cv_default_source" >&5
8179 echo "${ECHO_T}$cf_cv_default_source" >&6
8180 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
8185 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8188 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8191 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8193 cf_save_CFLAGS="$CFLAGS"
8194 cf_save_CPPFLAGS="$CPPFLAGS"
8196 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8197 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8198 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8200 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8201 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8202 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8204 echo "$as_me:8204: checking if we should define _POSIX_C_SOURCE" >&5
8205 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8206 if test "${cf_cv_posix_c_source+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 echo "${as_me:-configure}:8210: testing if the symbol is already defined go no further ..." 1>&5
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line 8213 "configure"
8214 #include "confdefs.h"
8215 #include <sys/types.h>
8220 #ifndef _POSIX_C_SOURCE
8227 rm -f conftest.$ac_objext
8228 if { (eval echo "$as_me:8228: \"$ac_compile\"") >&5
8229 (eval $ac_compile) 2>&5
8231 echo "$as_me:8231: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -s conftest.$ac_objext'
8234 { (eval echo "$as_me:8234: \"$ac_try\"") >&5
8237 echo "$as_me:8237: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 cf_cv_posix_c_source=no
8241 echo "$as_me: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8243 cf_want_posix_source=no
8244 case .$cf_POSIX_C_SOURCE in
8246 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8249 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8250 cf_want_posix_source=yes
8253 cf_want_posix_source=yes
8256 if test "$cf_want_posix_source" = yes ; then
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line 8258 "configure"
8259 #include "confdefs.h"
8260 #include <sys/types.h>
8265 #ifdef _POSIX_SOURCE
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:8273: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>&5
8276 echo "$as_me:8276: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest.$ac_objext'
8279 { (eval echo "$as_me:8279: \"$ac_try\"") >&5
8282 echo "$as_me:8282: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8286 echo "$as_me: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8290 rm -f conftest.$ac_objext conftest.$ac_ext
8293 echo "${as_me:-configure}:8293: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8295 CFLAGS="$cf_trim_CFLAGS"
8296 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8298 echo "${as_me:-configure}:8298: testing if the second compile does not leave our definition intact error ..." 1>&5
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line 8301 "configure"
8302 #include "confdefs.h"
8303 #include <sys/types.h>
8308 #ifndef _POSIX_C_SOURCE
8315 rm -f conftest.$ac_objext
8316 if { (eval echo "$as_me:8316: \"$ac_compile\"") >&5
8317 (eval $ac_compile) 2>&5
8319 echo "$as_me:8319: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -s conftest.$ac_objext'
8322 { (eval echo "$as_me:8322: \"$ac_try\"") >&5
8325 echo "$as_me:8325: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8329 echo "$as_me: failed program was:" >&5
8330 cat conftest.$ac_ext >&5
8331 cf_cv_posix_c_source=no
8333 rm -f conftest.$ac_objext conftest.$ac_ext
8334 CFLAGS="$cf_save_CFLAGS"
8335 CPPFLAGS="$cf_save_CPPFLAGS"
8338 rm -f conftest.$ac_objext conftest.$ac_ext
8341 echo "$as_me:8341: result: $cf_cv_posix_c_source" >&5
8342 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8344 if test "$cf_cv_posix_c_source" != no ; then
8345 CFLAGS="$cf_trim_CFLAGS"
8346 CPPFLAGS="$cf_trim_CPPFLAGS"
8351 cf_new_extra_cppflags=
8353 for cf_add_cflags in $cf_cv_posix_c_source
8355 case $cf_fix_cppflags in
8357 case $cf_add_cflags in
8358 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8359 case $cf_add_cflags in
8361 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8363 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8364 && test -z "${cf_tst_cflags}" \
8365 && cf_fix_cppflags=yes
8367 if test $cf_fix_cppflags = yes ; then
8369 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8370 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8373 elif test "${cf_tst_cflags}" = "\"'" ; then
8375 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8376 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8386 case $cf_add_cflags in
8388 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8390 CPPFLAGS=`echo "$CPPFLAGS" | \
8391 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8392 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8397 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8398 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8405 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8406 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8413 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8414 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8416 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8418 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8419 && test -z "${cf_tst_cflags}" \
8420 && cf_fix_cppflags=no
8425 if test -n "$cf_new_cflags" ; then
8427 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8428 CFLAGS="${CFLAGS}$cf_new_cflags"
8432 if test -n "$cf_new_cppflags" ; then
8434 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8435 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8439 if test -n "$cf_new_extra_cppflags" ; then
8441 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8442 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8450 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8453 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8454 cf_xopen_source="-D_BSD_SOURCE"
8458 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8461 cf_xopen_source="-D_OSF_SOURCE"
8464 cf_xopen_source="-D_QNX_SOURCE"
8467 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8470 cf_xopen_source="-D__EXTENSIONS__"
8471 cf_cv_xopen_source=broken
8473 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8479 echo "$as_me:8479: checking if we should define _XOPEN_SOURCE" >&5
8480 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8481 if test "${cf_cv_xopen_source+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line 8486 "configure"
8487 #include "confdefs.h"
8491 #include <sys/types.h>
8497 #ifndef _XOPEN_SOURCE
8504 rm -f conftest.$ac_objext
8505 if { (eval echo "$as_me:8505: \"$ac_compile\"") >&5
8506 (eval $ac_compile) 2>&5
8508 echo "$as_me:8508: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (eval echo "$as_me:8511: \"$ac_try\"") >&5
8514 echo "$as_me:8514: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 cf_cv_xopen_source=no
8518 echo "$as_me: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8521 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 #line 8523 "configure"
8524 #include "confdefs.h"
8528 #include <sys/types.h>
8534 #ifdef _XOPEN_SOURCE
8541 rm -f conftest.$ac_objext
8542 if { (eval echo "$as_me:8542: \"$ac_compile\"") >&5
8543 (eval $ac_compile) 2>&5
8545 echo "$as_me:8545: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -s conftest.$ac_objext'
8548 { (eval echo "$as_me:8548: \"$ac_try\"") >&5
8551 echo "$as_me:8551: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 cf_cv_xopen_source=no
8555 echo "$as_me: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8557 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8559 rm -f conftest.$ac_objext conftest.$ac_ext
8563 rm -f conftest.$ac_objext conftest.$ac_ext
8566 echo "$as_me:8566: result: $cf_cv_xopen_source" >&5
8567 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8569 if test "$cf_cv_xopen_source" != no ; then
8571 CFLAGS=`echo "$CFLAGS" | \
8572 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8573 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8575 CPPFLAGS=`echo "$CPPFLAGS" | \
8576 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8577 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8579 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8584 cf_new_extra_cppflags=
8586 for cf_add_cflags in $cf_temp_xopen_source
8588 case $cf_fix_cppflags in
8590 case $cf_add_cflags in
8591 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8592 case $cf_add_cflags in
8594 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8596 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8597 && test -z "${cf_tst_cflags}" \
8598 && cf_fix_cppflags=yes
8600 if test $cf_fix_cppflags = yes ; then
8602 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8603 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8606 elif test "${cf_tst_cflags}" = "\"'" ; then
8608 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8609 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8619 case $cf_add_cflags in
8621 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8623 CPPFLAGS=`echo "$CPPFLAGS" | \
8624 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8625 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8630 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8631 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8638 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8639 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8646 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8647 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8649 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8651 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8652 && test -z "${cf_tst_cflags}" \
8653 && cf_fix_cppflags=no
8658 if test -n "$cf_new_cflags" ; then
8660 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8661 CFLAGS="${CFLAGS}$cf_new_cflags"
8665 if test -n "$cf_new_cppflags" ; then
8667 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8668 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8672 if test -n "$cf_new_extra_cppflags" ; then
8674 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8675 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8681 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8683 cf_save_CFLAGS="$CFLAGS"
8684 cf_save_CPPFLAGS="$CPPFLAGS"
8686 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8687 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8688 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8690 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8691 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8692 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8694 echo "$as_me:8694: checking if we should define _POSIX_C_SOURCE" >&5
8695 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8696 if test "${cf_cv_posix_c_source+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 echo "${as_me:-configure}:8700: testing if the symbol is already defined go no further ..." 1>&5
8702 cat >conftest.$ac_ext <<_ACEOF
8703 #line 8703 "configure"
8704 #include "confdefs.h"
8705 #include <sys/types.h>
8710 #ifndef _POSIX_C_SOURCE
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:8718: \"$ac_compile\"") >&5
8719 (eval $ac_compile) 2>&5
8721 echo "$as_me:8721: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (eval echo "$as_me:8724: \"$ac_try\"") >&5
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 cf_cv_posix_c_source=no
8731 echo "$as_me: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 cf_want_posix_source=no
8734 case .$cf_POSIX_C_SOURCE in
8736 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8739 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8740 cf_want_posix_source=yes
8743 cf_want_posix_source=yes
8746 if test "$cf_want_posix_source" = yes ; then
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line 8748 "configure"
8749 #include "confdefs.h"
8750 #include <sys/types.h>
8755 #ifdef _POSIX_SOURCE
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:8763: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:8769: \"$ac_try\"") >&5
8772 echo "$as_me:8772: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8776 echo "$as_me: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8780 rm -f conftest.$ac_objext conftest.$ac_ext
8783 echo "${as_me:-configure}:8783: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8785 CFLAGS="$cf_trim_CFLAGS"
8786 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8788 echo "${as_me:-configure}:8788: testing if the second compile does not leave our definition intact error ..." 1>&5
8790 cat >conftest.$ac_ext <<_ACEOF
8791 #line 8791 "configure"
8792 #include "confdefs.h"
8793 #include <sys/types.h>
8798 #ifndef _POSIX_C_SOURCE
8805 rm -f conftest.$ac_objext
8806 if { (eval echo "$as_me:8806: \"$ac_compile\"") >&5
8807 (eval $ac_compile) 2>&5
8809 echo "$as_me:8809: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try='test -s conftest.$ac_objext'
8812 { (eval echo "$as_me:8812: \"$ac_try\"") >&5
8815 echo "$as_me:8815: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8819 echo "$as_me: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 cf_cv_posix_c_source=no
8823 rm -f conftest.$ac_objext conftest.$ac_ext
8824 CFLAGS="$cf_save_CFLAGS"
8825 CPPFLAGS="$cf_save_CPPFLAGS"
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8831 echo "$as_me:8831: result: $cf_cv_posix_c_source" >&5
8832 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8834 if test "$cf_cv_posix_c_source" != no ; then
8835 CFLAGS="$cf_trim_CFLAGS"
8836 CPPFLAGS="$cf_trim_CPPFLAGS"
8841 cf_new_extra_cppflags=
8843 for cf_add_cflags in $cf_cv_posix_c_source
8845 case $cf_fix_cppflags in
8847 case $cf_add_cflags in
8848 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8849 case $cf_add_cflags in
8851 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8853 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8854 && test -z "${cf_tst_cflags}" \
8855 && cf_fix_cppflags=yes
8857 if test $cf_fix_cppflags = yes ; then
8859 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8860 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8863 elif test "${cf_tst_cflags}" = "\"'" ; then
8865 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8866 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8876 case $cf_add_cflags in
8878 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8880 CPPFLAGS=`echo "$CPPFLAGS" | \
8881 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8882 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8887 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8888 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8895 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8896 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8903 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8904 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8906 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8908 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8909 && test -z "${cf_tst_cflags}" \
8910 && cf_fix_cppflags=no
8915 if test -n "$cf_new_cflags" ; then
8917 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8918 CFLAGS="${CFLAGS}$cf_new_cflags"
8922 if test -n "$cf_new_cppflags" ; then
8924 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8925 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8929 if test -n "$cf_new_extra_cppflags" ; then
8931 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8932 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8941 if test -n "$cf_xopen_source" ; then
8946 cf_new_extra_cppflags=
8948 for cf_add_cflags in $cf_xopen_source
8950 case $cf_fix_cppflags in
8952 case $cf_add_cflags in
8953 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8954 case $cf_add_cflags in
8956 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8958 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8959 && test -z "${cf_tst_cflags}" \
8960 && cf_fix_cppflags=yes
8962 if test $cf_fix_cppflags = yes ; then
8964 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8965 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8968 elif test "${cf_tst_cflags}" = "\"'" ; then
8970 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8971 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8981 case $cf_add_cflags in
8983 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8985 CPPFLAGS=`echo "$CPPFLAGS" | \
8986 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8987 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8992 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8993 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9000 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9001 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9008 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9009 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9011 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9013 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9014 && test -z "${cf_tst_cflags}" \
9015 && cf_fix_cppflags=no
9020 if test -n "$cf_new_cflags" ; then
9021 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
9023 echo "${as_me:-configure}:9023: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
9025 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9026 CFLAGS="${CFLAGS}$cf_new_cflags"
9030 if test -n "$cf_new_cppflags" ; then
9031 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
9033 echo "${as_me:-configure}:9033: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
9035 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9036 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9040 if test -n "$cf_new_extra_cppflags" ; then
9041 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
9043 echo "${as_me:-configure}:9043: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
9045 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9046 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9052 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
9053 echo "$as_me:9053: checking if _XOPEN_SOURCE really is set" >&5
9054 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
9055 cat >conftest.$ac_ext <<_ACEOF
9056 #line 9056 "configure"
9057 #include "confdefs.h"
9063 #ifndef _XOPEN_SOURCE
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:9071: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>&5
9074 echo "$as_me:9074: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -s conftest.$ac_objext'
9077 { (eval echo "$as_me:9077: \"$ac_try\"") >&5
9080 echo "$as_me:9080: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 cf_XOPEN_SOURCE_set=yes
9084 echo "$as_me: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 cf_XOPEN_SOURCE_set=no
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:9089: result: $cf_XOPEN_SOURCE_set" >&5
9090 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
9091 if test $cf_XOPEN_SOURCE_set = yes
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line 9094 "configure"
9095 #include "confdefs.h"
9101 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:9109: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>&5
9112 echo "$as_me:9112: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:9115: \"$ac_try\"") >&5
9118 echo "$as_me:9118: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 cf_XOPEN_SOURCE_set_ok=yes
9122 echo "$as_me: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 cf_XOPEN_SOURCE_set_ok=no
9126 rm -f conftest.$ac_objext conftest.$ac_ext
9127 if test $cf_XOPEN_SOURCE_set_ok = no
9129 { echo "$as_me:9129: WARNING: _XOPEN_SOURCE is lower than requested" >&5
9130 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
9134 echo "$as_me:9134: checking if we should define _XOPEN_SOURCE" >&5
9135 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9136 if test "${cf_cv_xopen_source+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9146 #include <sys/types.h>
9152 #ifndef _XOPEN_SOURCE
9159 rm -f conftest.$ac_objext
9160 if { (eval echo "$as_me:9160: \"$ac_compile\"") >&5
9161 (eval $ac_compile) 2>&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -s conftest.$ac_objext'
9166 { (eval echo "$as_me:9166: \"$ac_try\"") >&5
9169 echo "$as_me:9169: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 cf_cv_xopen_source=no
9173 echo "$as_me: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 #line 9178 "configure"
9179 #include "confdefs.h"
9183 #include <sys/types.h>
9189 #ifdef _XOPEN_SOURCE
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:9197: \"$ac_compile\"") >&5
9198 (eval $ac_compile) 2>&5
9200 echo "$as_me:9200: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:9203: \"$ac_try\"") >&5
9206 echo "$as_me:9206: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 cf_cv_xopen_source=no
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9214 rm -f conftest.$ac_objext conftest.$ac_ext
9218 rm -f conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:9221: result: $cf_cv_xopen_source" >&5
9222 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9224 if test "$cf_cv_xopen_source" != no ; then
9226 CFLAGS=`echo "$CFLAGS" | \
9227 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9228 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9230 CPPFLAGS=`echo "$CPPFLAGS" | \
9231 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9232 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9234 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9239 cf_new_extra_cppflags=
9241 for cf_add_cflags in $cf_temp_xopen_source
9243 case $cf_fix_cppflags in
9245 case $cf_add_cflags in
9246 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9247 case $cf_add_cflags in
9249 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9251 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9252 && test -z "${cf_tst_cflags}" \
9253 && cf_fix_cppflags=yes
9255 if test $cf_fix_cppflags = yes ; then
9257 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9258 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9261 elif test "${cf_tst_cflags}" = "\"'" ; then
9263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9274 case $cf_add_cflags in
9276 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9278 CPPFLAGS=`echo "$CPPFLAGS" | \
9279 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9280 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9285 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9286 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9293 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9294 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9304 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9306 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9307 && test -z "${cf_tst_cflags}" \
9308 && cf_fix_cppflags=no
9313 if test -n "$cf_new_cflags" ; then
9315 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9316 CFLAGS="${CFLAGS}$cf_new_cflags"
9320 if test -n "$cf_new_cppflags" ; then
9322 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9323 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9327 if test -n "$cf_new_extra_cppflags" ; then
9329 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9330 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9339 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9341 # Work around breakage on OS X
9343 echo "$as_me:9343: checking if SIGWINCH is defined" >&5
9344 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9345 if test "${cf_cv_define_sigwinch+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 cat >conftest.$ac_ext <<_ACEOF
9350 #line 9350 "configure"
9351 #include "confdefs.h"
9353 #include <sys/types.h>
9354 #include <sys/signal.h>
9364 rm -f conftest.$ac_objext
9365 if { (eval echo "$as_me:9365: \"$ac_compile\"") >&5
9366 (eval $ac_compile) 2>&5
9368 echo "$as_me:9368: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:9371: \"$ac_try\"") >&5
9374 echo "$as_me:9374: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 cf_cv_define_sigwinch=yes
9378 echo "$as_me: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9384 #undef _XOPEN_SOURCE
9385 #undef _POSIX_SOURCE
9386 #undef _POSIX_C_SOURCE
9387 #include <sys/types.h>
9388 #include <sys/signal.h>
9398 rm -f conftest.$ac_objext
9399 if { (eval echo "$as_me:9399: \"$ac_compile\"") >&5
9400 (eval $ac_compile) 2>&5
9402 echo "$as_me:9402: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -s conftest.$ac_objext'
9405 { (eval echo "$as_me:9405: \"$ac_try\"") >&5
9408 echo "$as_me:9408: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 cf_cv_define_sigwinch=maybe
9412 echo "$as_me: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 cf_cv_define_sigwinch=no
9416 rm -f conftest.$ac_objext conftest.$ac_ext
9419 rm -f conftest.$ac_objext conftest.$ac_ext
9422 echo "$as_me:9422: result: $cf_cv_define_sigwinch" >&5
9423 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9425 if test "$cf_cv_define_sigwinch" = maybe ; then
9426 echo "$as_me:9426: checking for actual SIGWINCH definition" >&5
9427 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9428 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 cf_cv_fixup_sigwinch=unknown
9434 while test $cf_sigwinch != 1
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line 9437 "configure"
9438 #include "confdefs.h"
9440 #undef _XOPEN_SOURCE
9441 #undef _POSIX_SOURCE
9442 #undef _POSIX_C_SOURCE
9443 #include <sys/types.h>
9444 #include <sys/signal.h>
9450 #if SIGWINCH != $cf_sigwinch
9458 rm -f conftest.$ac_objext
9459 if { (eval echo "$as_me:9459: \"$ac_compile\"") >&5
9460 (eval $ac_compile) 2>&5
9462 echo "$as_me:9462: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -s conftest.$ac_objext'
9465 { (eval echo "$as_me:9465: \"$ac_try\"") >&5
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 cf_cv_fixup_sigwinch=$cf_sigwinch
9473 echo "$as_me: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9476 rm -f conftest.$ac_objext conftest.$ac_ext
9478 cf_sigwinch=`expr $cf_sigwinch - 1`
9482 echo "$as_me:9482: result: $cf_cv_fixup_sigwinch" >&5
9483 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9485 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9486 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9490 # Checks for CODESET support.
9492 echo "$as_me:9492: checking for nl_langinfo and CODESET" >&5
9493 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9494 if test "${am_cv_langinfo_codeset+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9498 #line 9498 "configure"
9499 #include "confdefs.h"
9500 #include <langinfo.h>
9504 char* cs = nl_langinfo(CODESET);
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:9510: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>&5
9513 echo "$as_me:9513: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:9516: \"$ac_try\"") >&5
9519 echo "$as_me:9519: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 am_cv_langinfo_codeset=yes
9523 echo "$as_me: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 am_cv_langinfo_codeset=no
9527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9530 echo "$as_me:9530: result: $am_cv_langinfo_codeset" >&5
9531 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9532 if test $am_cv_langinfo_codeset = yes; then
9534 cat >>confdefs.h <<\EOF
9535 #define HAVE_LANGINFO_CODESET 1
9540 # use these variables to work around a defect in gcc's fixincludes.
9544 echo "$as_me:9544: checking if you want wide-character code" >&5
9545 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9547 # Check whether --enable-widec or --disable-widec was given.
9548 if test "${enable_widec+set}" = set; then
9549 enableval="$enable_widec"
9550 with_widec=$enableval
9554 echo "$as_me:9554: result: $with_widec" >&5
9555 echo "${ECHO_T}$with_widec" >&6
9557 NCURSES_WCWIDTH_GRAPHICS=1
9559 if test "x$with_widec" = xyes ; then
9560 if test "x$disable_lib_suffixes" = xno ; then
9561 LIB_SUFFIX="w${LIB_SUFFIX}"
9564 cat >>confdefs.h <<\EOF
9565 #define USE_WIDEC_SUPPORT 1
9568 cat >>confdefs.h <<\EOF
9569 #define NCURSES_WIDECHAR 1
9577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9578 echo "$as_me:9578: checking for $ac_header" >&5
9579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line 9584 "configure"
9585 #include "confdefs.h"
9586 #include <$ac_header>
9588 if { (eval echo "$as_me:9588: \"$ac_cpp conftest.$ac_ext\"") >&5
9589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9591 egrep -v '^ *\+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 echo "$as_me:9594: \$? = $ac_status" >&5
9595 (exit $ac_status); } >/dev/null; then
9596 if test -s conftest.err; then
9597 ac_cpp_err=$ac_c_preproc_warn_flag
9604 if test -z "$ac_cpp_err"; then
9605 eval "$as_ac_Header=yes"
9607 echo "$as_me: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 eval "$as_ac_Header=no"
9611 rm -f conftest.err conftest.$ac_ext
9613 echo "$as_me:9613: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9616 cat >>confdefs.h <<EOF
9617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9623 echo "$as_me:9623: checking if wchar.h can be used as is" >&5
9624 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9625 if test "${cf_cv_wchar_h_okay+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9630 #line 9630 "configure"
9631 #include "confdefs.h"
9637 #ifdef HAVE_WCTYPE_H
9646 int bar = iswpunct(foo)
9651 rm -f conftest.$ac_objext
9652 if { (eval echo "$as_me:9652: \"$ac_compile\"") >&5
9653 (eval $ac_compile) 2>&5
9655 echo "$as_me:9655: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:9658: \"$ac_try\"") >&5
9661 echo "$as_me:9661: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 cf_cv_wchar_h_okay=yes
9665 echo "$as_me: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9667 cf_cv_wchar_h_okay=no
9669 rm -f conftest.$ac_objext conftest.$ac_ext
9671 echo "$as_me:9671: result: $cf_cv_wchar_h_okay" >&5
9672 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9674 if test $cf_cv_wchar_h_okay = no
9677 echo "$as_me:9677: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9678 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line 9680 "configure"
9681 #include "confdefs.h"
9682 #include <sys/types.h>
9688 #ifndef _XOPEN_SOURCE_EXTENDED
9695 rm -f conftest.$ac_objext
9696 if { (eval echo "$as_me:9696: \"$ac_compile\"") >&5
9697 (eval $ac_compile) 2>&5
9699 echo "$as_me:9699: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -s conftest.$ac_objext'
9702 { (eval echo "$as_me:9702: \"$ac_try\"") >&5
9705 echo "$as_me:9705: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9709 echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9713 rm -f conftest.$ac_objext conftest.$ac_ext
9714 echo "$as_me:9714: result: $cf_result" >&5
9715 echo "${ECHO_T}$cf_result" >&6
9717 if test "$cf_result" = yes ; then
9718 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9719 elif test "x" != "x" ; then
9720 echo "$as_me:9720: checking checking for compatible value versus " >&5
9721 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line 9723 "configure"
9724 #include "confdefs.h"
9725 #include <sys/types.h>
9731 #if _XOPEN_SOURCE_EXTENDED- < 0
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:9739: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>&5
9742 echo "$as_me:9742: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:9745: \"$ac_try\"") >&5
9748 echo "$as_me:9748: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9752 echo "$as_me: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9756 rm -f conftest.$ac_objext conftest.$ac_ext
9757 echo "$as_me:9757: result: $cf_result" >&5
9758 echo "${ECHO_T}$cf_result" >&6
9759 if test "$cf_result" = no ; then
9760 # perhaps we can override it - try...
9761 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9767 echo "$as_me:9767: checking if wcwidth agrees graphics are single-width" >&5
9768 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9769 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 cat >conftest.in <<CF_EOF
9775 0x250c upper left corner
9776 0x2514 lower left corner
9777 0x2510 upper right corner
9778 0x2518 lower right corner
9779 0x251c tee pointing left
9780 0x2524 tee pointing right
9781 0x2534 tee pointing up
9782 0x252c tee pointing down
9783 0x2500 horizontal line
9784 0x2502 vertical line
9785 0x253c large plus or crossover
9789 0x2592 checker board (stipple)
9790 0x00b0 degree symbol
9793 - Teletype 5410v1 symbols
9794 0x2190 arrow pointing left
9795 0x2192 arrow pointing right
9796 0x2193 arrow pointing down
9797 0x2191 arrow pointing up
9798 0x2592 board of squares
9799 0x2603 lantern symbol
9800 0x25ae solid square block
9801 - these defaults were invented for ncurses
9804 0x2264 less-than-or-equal-to
9805 0x2265 greater-than-or-equal-to
9808 0x00a3 pound-sterling symbol
9809 - thick-line-drawing
9810 0x250f upper left corner
9811 0x2517 lower left corner
9812 0x2513 upper right corner
9813 0x251b lower right corner
9814 0x2523 tee pointing left
9815 0x252b tee pointing right
9816 0x253b tee pointing up
9817 0x2533 tee pointing down
9818 0x2501 horizontal line
9819 0x2503 vertical line
9820 0x254b large plus or crossover
9821 - double-line-drawing
9822 0x2554 upper left corner
9823 0x255a lower left corner
9824 0x2557 upper right corner
9825 0x255d lower right corner
9826 0x2563 tee pointing left
9827 0x2560 tee pointing right
9828 0x2569 tee pointing up
9829 0x2566 tee pointing down
9830 0x2550 horizontal line
9831 0x2551 vertical line
9832 0x256c large plus or crossover
9834 if test "$cross_compiling" = yes; then
9835 cf_cv_wcwidth_graphics=unknown
9837 cat >conftest.$ac_ext <<_ACEOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9852 char buffer[MY_LEN + 1];
9853 char notes[MY_LEN + 1];
9857 if (setlocale(LC_ALL, "en_US.UTF8") ||
9858 setlocale(LC_ALL, "en_US.UTF-8") ||
9859 setlocale(LC_ALL, "en_US.utf8") ||
9860 setlocale(LC_ALL, "en_US.utf-8")) {
9861 if ((fp = fopen("conftest.in", "r")) != 0) {
9862 while (fgets(buffer, MY_LEN, fp) != 0) {
9863 if (*buffer == '-') {
9864 fprintf(stderr, "\t%s", buffer);
9865 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9867 if (wcwidth(value) == 1)
9869 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9871 fprintf(stderr, "?\t%s", buffer);
9876 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9877 return (totals == passed) ? 0 : 1;
9881 rm -f conftest$ac_exeext
9882 if { (eval echo "$as_me:9882: \"$ac_link\"") >&5
9883 (eval $ac_link) 2>&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9887 { (eval echo "$as_me:9887: \"$ac_try\"") >&5
9890 echo "$as_me:9890: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 cf_cv_wcwidth_graphics=yes
9894 echo "$as_me: program exited with status $ac_status" >&5
9895 echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 cf_cv_wcwidth_graphics=no
9899 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9903 echo "$as_me:9903: result: $cf_cv_wcwidth_graphics" >&5
9904 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9906 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9909 NCURSES_CH_T=cchar_t
9911 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9914 echo "$as_me:9914: checking for $ac_func" >&5
9915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9916 if eval "test \"\${$as_ac_var+set}\" = set"; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line 9920 "configure"
9921 #include "confdefs.h"
9922 /* System header to define __stub macros and hopefully few prototypes,
9923 which can conflict with char $ac_func (); below. */
9925 /* Override any gcc2 internal prototype to avoid an error. */
9929 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9937 /* The GNU C library defines this for functions which it implements
9938 to always fail with ENOSYS. Some functions are actually named
9939 something starting with __ and the normal name is an alias. */
9940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9943 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:9951: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>&5
9954 echo "$as_me:9954: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:9957: \"$ac_try\"") >&5
9960 echo "$as_me:9960: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 eval "$as_ac_var=yes"
9964 echo "$as_me: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 eval "$as_ac_var=no"
9968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9970 echo "$as_me:9970: result: `eval echo '${'$as_ac_var'}'`" >&5
9971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9972 if test `eval echo '${'$as_ac_var'}'` = yes; then
9973 cat >>confdefs.h <<EOF
9974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9980 if test "x$ac_cv_func_putwc" != xyes ; then
9982 echo "$as_me:9982: checking for multibyte character support" >&5
9983 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9984 if test "${cf_cv_utf8_lib+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 cf_save_LIBS="$LIBS"
9989 cat >conftest.$ac_ext <<_ACEOF
9990 #line 9990 "configure"
9991 #include "confdefs.h"
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:10003: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10006 echo "$as_me:10006: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:10009: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:10012: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10016 echo "$as_me: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10019 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
10020 # will be set on completion of the AC_TRY_LINK below.
10021 cf_cv_header_path_utf8=
10022 cf_cv_library_path_utf8=
10024 echo "${as_me:-configure}:10024: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
10026 cf_save_LIBS="$LIBS"
10028 cat >conftest.$ac_ext <<_ACEOF
10029 #line 10029 "configure"
10030 #include "confdefs.h"
10032 #include <libutf8.h>
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:10042: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10045 echo "$as_me:10045: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:10048: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:10051: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10054 cf_cv_find_linkage_utf8=yes
10055 cf_cv_header_path_utf8=/usr/include
10056 cf_cv_library_path_utf8=/usr/lib
10059 echo "$as_me: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10062 LIBS="-lutf8 $cf_save_LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line 10065 "configure"
10066 #include "confdefs.h"
10068 #include <libutf8.h>
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:10078: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>&5
10081 echo "$as_me:10081: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -s conftest$ac_exeext'
10084 { (eval echo "$as_me:10084: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:10087: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10090 cf_cv_find_linkage_utf8=yes
10091 cf_cv_header_path_utf8=/usr/include
10092 cf_cv_library_path_utf8=/usr/lib
10093 cf_cv_library_file_utf8="-lutf8"
10096 echo "$as_me: failed program was:" >&5
10097 cat conftest.$ac_ext >&5
10099 cf_cv_find_linkage_utf8=no
10100 LIBS="$cf_save_LIBS"
10102 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
10104 echo "${as_me:-configure}:10104: testing find linkage for utf8 library ..." 1>&5
10106 echo "${as_me:-configure}:10106: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
10108 cf_save_CPPFLAGS="$CPPFLAGS"
10109 cf_test_CPPFLAGS="$CPPFLAGS"
10113 # collect the current set of include-directories from compiler flags
10114 cf_header_path_list=""
10115 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10116 for cf_header_path in $CPPFLAGS $CFLAGS
10118 case $cf_header_path in
10120 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10122 test "x$cf_header_path" != "xNONE" && \
10123 test -d "$cf_header_path" && \
10125 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10126 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
10127 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
10128 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
10129 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
10130 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
10133 cf_header_path_list="$cf_header_path_list $cf_search"
10139 # add the variations for the package we are looking for
10143 test "x$prefix" != "xNONE" && \
10144 test -d "$prefix" && \
10146 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10147 test -d $prefix/include && cf_search="$cf_search $prefix/include"
10148 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
10149 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
10150 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
10151 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
10154 for cf_subdir_prefix in \
10163 test "x$cf_subdir_prefix" != "x$prefix" && \
10164 test -d "$cf_subdir_prefix" && \
10165 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10166 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
10167 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
10168 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
10169 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
10170 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
10171 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
10176 test "$includedir" != NONE && \
10177 test "$includedir" != "/usr/include" && \
10178 test -d "$includedir" && {
10179 test -d $includedir && cf_search="$cf_search $includedir"
10180 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
10183 test "$oldincludedir" != NONE && \
10184 test "$oldincludedir" != "/usr/include" && \
10185 test -d "$oldincludedir" && {
10186 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
10187 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
10190 cf_search="$cf_search $cf_header_path_list"
10192 for cf_cv_header_path_utf8 in $cf_search
10194 if test -d $cf_cv_header_path_utf8 ; then
10195 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
10197 echo "${as_me:-configure}:10197: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
10199 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
10200 cat >conftest.$ac_ext <<_ACEOF
10201 #line 10201 "configure"
10202 #include "confdefs.h"
10204 #include <libutf8.h>
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:10214: \"$ac_compile\"") >&5
10215 (eval $ac_compile) 2>&5
10217 echo "$as_me:10217: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -s conftest.$ac_objext'
10220 { (eval echo "$as_me:10220: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:10223: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10226 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
10228 echo "${as_me:-configure}:10228: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
10230 cf_cv_find_linkage_utf8=maybe
10231 cf_test_CPPFLAGS="$CPPFLAGS"
10234 echo "$as_me: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10237 CPPFLAGS="$cf_save_CPPFLAGS"
10240 rm -f conftest.$ac_objext conftest.$ac_ext
10244 if test "$cf_cv_find_linkage_utf8" = maybe ; then
10246 echo "${as_me:-configure}:10246: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
10248 cf_save_LIBS="$LIBS"
10249 cf_save_LDFLAGS="$LDFLAGS"
10251 if test "$cf_cv_find_linkage_utf8" != yes ; then
10254 cf_library_path_list=""
10255 if test -n "${LDFLAGS}${LIBS}" ; then
10256 for cf_library_path in $LDFLAGS $LIBS
10258 case $cf_library_path in
10260 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10262 test "x$cf_library_path" != "xNONE" && \
10263 test -d "$cf_library_path" && \
10265 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10266 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10267 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
10268 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
10269 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
10270 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
10273 cf_library_path_list="$cf_library_path_list $cf_search"
10281 test "x$prefix" != "xNONE" && \
10282 test -d "$prefix" && \
10284 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10285 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10286 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
10287 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
10288 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
10289 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
10292 for cf_subdir_prefix in \
10301 test "x$cf_subdir_prefix" != "x$prefix" && \
10302 test -d "$cf_subdir_prefix" && \
10303 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10304 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10305 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
10306 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
10307 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
10308 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
10309 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
10314 cf_search="$cf_library_path_list $cf_search"
10316 for cf_cv_library_path_utf8 in $cf_search
10318 if test -d $cf_cv_library_path_utf8 ; then
10319 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
10321 echo "${as_me:-configure}:10321: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10323 CPPFLAGS="$cf_test_CPPFLAGS"
10324 LIBS="-lutf8 $cf_save_LIBS"
10325 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10326 cat >conftest.$ac_ext <<_ACEOF
10327 #line 10327 "configure"
10328 #include "confdefs.h"
10330 #include <libutf8.h>
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (eval echo "$as_me:10340: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>&5
10343 echo "$as_me:10343: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:10346: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:10349: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10352 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10354 echo "${as_me:-configure}:10354: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10356 cf_cv_find_linkage_utf8=yes
10357 cf_cv_library_file_utf8="-lutf8"
10360 echo "$as_me: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10363 CPPFLAGS="$cf_save_CPPFLAGS"
10364 LIBS="$cf_save_LIBS"
10365 LDFLAGS="$cf_save_LDFLAGS"
10368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10371 CPPFLAGS="$cf_save_CPPFLAGS"
10372 LDFLAGS="$cf_save_LDFLAGS"
10376 cf_cv_find_linkage_utf8=no
10380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10385 LIBS="$cf_save_LIBS"
10387 if test "$cf_cv_find_linkage_utf8" = yes ; then
10388 cf_cv_utf8_lib=add-on
10394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10396 echo "$as_me:10396: result: $cf_cv_utf8_lib" >&5
10397 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10399 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10400 # ncurses/ncursesw:
10401 if test "$cf_cv_utf8_lib" = "add-on" ; then
10403 cat >>confdefs.h <<\EOF
10404 #define HAVE_LIBUTF8_H 1
10407 if test -n "$cf_cv_header_path_utf8" ; then
10408 for cf_add_incdir in $cf_cv_header_path_utf8
10410 while test $cf_add_incdir != /usr/include
10412 if test -d $cf_add_incdir
10415 if test -n "$CFLAGS$CPPFLAGS" ; then
10416 # a loop is needed to ensure we can add subdirs of existing dirs
10417 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10418 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10419 cf_have_incdir=yes; break
10424 if test "$cf_have_incdir" = no ; then
10425 if test "$cf_add_incdir" = /usr/local/include ; then
10426 if test "$GCC" = yes
10428 cf_save_CPPFLAGS=$CPPFLAGS
10429 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line 10431 "configure"
10432 #include "confdefs.h"
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:10443: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -s conftest.$ac_objext'
10449 { (eval echo "$as_me:10449: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10456 echo "$as_me: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10460 rm -f conftest.$ac_objext conftest.$ac_ext
10461 CPPFLAGS=$cf_save_CPPFLAGS
10466 if test "$cf_have_incdir" = no ; then
10467 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10469 echo "${as_me:-configure}:10469: testing adding $cf_add_incdir to include-path ..." 1>&5
10471 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10473 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10474 test "$cf_top_incdir" = "$cf_add_incdir" && break
10475 cf_add_incdir="$cf_top_incdir"
10486 if test -n "$cf_cv_library_path_utf8" ; then
10487 for cf_add_libdir in $cf_cv_library_path_utf8
10489 if test $cf_add_libdir = /usr/lib ; then
10491 elif test -d $cf_add_libdir
10494 if test -n "$LDFLAGS$LIBS" ; then
10495 # a loop is needed to ensure we can add subdirs of existing dirs
10496 for cf_test_libdir in $LDFLAGS $LIBS ; do
10497 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10498 cf_have_libdir=yes; break
10502 if test "$cf_have_libdir" = no ; then
10503 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10505 echo "${as_me:-configure}:10505: testing adding $cf_add_libdir to library-path ..." 1>&5
10507 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10513 cf_add_libs="$cf_cv_library_file_utf8"
10514 # Filter out duplicates - this happens with badly-designed ".pc" files...
10515 for cf_add_1lib in $LIBS
10517 for cf_add_2lib in $cf_add_libs
10519 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10525 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10527 LIBS="$cf_add_libs"
10531 if test "$cf_cv_utf8_lib" != no ; then
10536 # This is needed on Tru64 5.0 to declare mbstate_t
10537 echo "$as_me:10537: checking if we must include wchar.h to declare mbstate_t" >&5
10538 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10539 if test "${cf_cv_mbstate_t+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line 10544 "configure"
10545 #include "confdefs.h"
10547 #include <stdlib.h>
10548 #include <stdarg.h>
10550 #ifdef HAVE_LIBUTF8_H
10551 #include <libutf8.h>
10561 rm -f conftest.$ac_objext
10562 if { (eval echo "$as_me:10562: \"$ac_compile\"") >&5
10563 (eval $ac_compile) 2>&5
10565 echo "$as_me:10565: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (eval echo "$as_me:10568: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:10571: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10575 echo "$as_me: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line 10578 "configure"
10579 #include "confdefs.h"
10581 #include <stdlib.h>
10582 #include <stdarg.h>
10585 #ifdef HAVE_LIBUTF8_H
10586 #include <libutf8.h>
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:10597: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10600 echo "$as_me:10600: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -s conftest.$ac_objext'
10603 { (eval echo "$as_me:10603: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 cf_cv_mbstate_t=yes
10610 echo "$as_me: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 cf_cv_mbstate_t=unknown
10614 rm -f conftest.$ac_objext conftest.$ac_ext
10616 rm -f conftest.$ac_objext conftest.$ac_ext
10618 echo "$as_me:10618: result: $cf_cv_mbstate_t" >&5
10619 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10621 if test "$cf_cv_mbstate_t" = yes ; then
10623 cat >>confdefs.h <<\EOF
10624 #define NEED_WCHAR_H 1
10630 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10631 if test "$cf_cv_mbstate_t" = unknown ; then
10632 NCURSES_MBSTATE_T=1
10635 # This is needed on Tru64 5.0 to declare wchar_t
10636 echo "$as_me:10636: checking if we must include wchar.h to declare wchar_t" >&5
10637 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10638 if test "${cf_cv_wchar_t+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 cat >conftest.$ac_ext <<_ACEOF
10643 #line 10643 "configure"
10644 #include "confdefs.h"
10646 #include <stdlib.h>
10647 #include <stdarg.h>
10649 #ifdef HAVE_LIBUTF8_H
10650 #include <libutf8.h>
10660 rm -f conftest.$ac_objext
10661 if { (eval echo "$as_me:10661: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -s conftest.$ac_objext'
10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10674 echo "$as_me: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 cat >conftest.$ac_ext <<_ACEOF
10677 #line 10677 "configure"
10678 #include "confdefs.h"
10680 #include <stdlib.h>
10681 #include <stdarg.h>
10684 #ifdef HAVE_LIBUTF8_H
10685 #include <libutf8.h>
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:10696: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>&5
10699 echo "$as_me:10699: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -s conftest.$ac_objext'
10702 { (eval echo "$as_me:10702: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10705 echo "$as_me:10705: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10709 echo "$as_me: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10711 cf_cv_wchar_t=unknown
10713 rm -f conftest.$ac_objext conftest.$ac_ext
10715 rm -f conftest.$ac_objext conftest.$ac_ext
10717 echo "$as_me:10717: result: $cf_cv_wchar_t" >&5
10718 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10720 if test "$cf_cv_wchar_t" = yes ; then
10722 cat >>confdefs.h <<\EOF
10723 #define NEED_WCHAR_H 1
10729 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10730 if test "$cf_cv_wchar_t" = unknown ; then
10734 # if we find wchar_t in either place, use substitution to provide a fallback.
10735 if test "$cf_cv_wchar_t" != unknown ; then
10736 NCURSES_OK_WCHAR_T=1
10739 # This is needed on Tru64 5.0 to declare wint_t
10740 echo "$as_me:10740: checking if we must include wchar.h to declare wint_t" >&5
10741 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10742 if test "${cf_cv_wint_t+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 cat >conftest.$ac_ext <<_ACEOF
10747 #line 10747 "configure"
10748 #include "confdefs.h"
10750 #include <stdlib.h>
10751 #include <stdarg.h>
10753 #ifdef HAVE_LIBUTF8_H
10754 #include <libutf8.h>
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:10765: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>&5
10768 echo "$as_me:10768: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -s conftest.$ac_objext'
10771 { (eval echo "$as_me:10771: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:10774: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10778 echo "$as_me: failed program was:" >&5
10779 cat conftest.$ac_ext >&5
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line 10781 "configure"
10782 #include "confdefs.h"
10784 #include <stdlib.h>
10785 #include <stdarg.h>
10788 #ifdef HAVE_LIBUTF8_H
10789 #include <libutf8.h>
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
10813 echo "$as_me: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 cf_cv_wint_t=unknown
10817 rm -f conftest.$ac_objext conftest.$ac_ext
10819 rm -f conftest.$ac_objext conftest.$ac_ext
10821 echo "$as_me:10821: result: $cf_cv_wint_t" >&5
10822 echo "${ECHO_T}$cf_cv_wint_t" >&6
10824 if test "$cf_cv_wint_t" = yes ; then
10826 cat >>confdefs.h <<\EOF
10827 #define NEED_WCHAR_H 1
10833 # if we do not find wint_t in either place, use substitution to provide a fallback.
10834 if test "$cf_cv_wint_t" = unknown ; then
10838 # if we find wint_t in either place, use substitution to provide a fallback.
10839 if test "$cf_cv_wint_t" != unknown ; then
10840 NCURSES_OK_WINT_T=1
10843 if test "$NCURSES_MBSTATE_T" != 0; then
10845 cat >>confdefs.h <<\EOF
10846 #define NEED_MBSTATE_T_DEF 1
10852 ### use option --disable-lp64 to allow long chtype
10853 echo "$as_me:10853: checking whether to enable _LP64 definition in curses.h" >&5
10854 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10856 # Check whether --enable-lp64 or --disable-lp64 was given.
10857 if test "${enable_lp64+set}" = set; then
10858 enableval="$enable_lp64"
10859 with_lp64=$enableval
10861 with_lp64=$cf_dft_with_lp64
10863 echo "$as_me:10863: result: $with_lp64" >&5
10864 echo "${ECHO_T}$with_lp64" >&6
10866 if test "x$with_lp64" = xyes ; then
10867 cf_cv_enable_lp64=1
10869 cf_cv_enable_lp64=0
10872 # Check whether --enable-largefile or --disable-largefile was given.
10873 if test "${enable_largefile+set}" = set; then
10874 enableval="$enable_largefile"
10877 if test "$enable_largefile" != no; then
10879 echo "$as_me:10879: checking for special C compiler options needed for large files" >&5
10880 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10881 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 ac_cv_sys_largefile_CC=no
10885 if test "$GCC" != yes; then
10888 # IRIX 6.2 and later do not support large files by default,
10889 # so use the C compiler's -n32 option if that helps.
10890 cat >conftest.$ac_ext <<_ACEOF
10891 #line 10891 "configure"
10892 #include "confdefs.h"
10893 #include <sys/types.h>
10894 /* Check that off_t can represent 2**63 - 1 correctly.
10895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10896 since some C++ compilers masquerading as C compilers
10897 incorrectly reject 9223372036854775807. */
10898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10900 && LARGE_OFF_T % 2147483647 == 1)
10910 rm -f conftest.$ac_objext
10911 if { (eval echo "$as_me:10911: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>&5
10914 echo "$as_me:10914: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (eval echo "$as_me:10917: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:10920: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10924 echo "$as_me: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 rm -f conftest.$ac_objext
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:10930: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>&5
10933 echo "$as_me:10933: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (eval echo "$as_me:10936: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10939 echo "$as_me:10939: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 ac_cv_sys_largefile_CC=' -n32'; break
10943 echo "$as_me: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10946 rm -f conftest.$ac_objext
10950 rm -f conftest.$ac_ext
10953 echo "$as_me:10953: result: $ac_cv_sys_largefile_CC" >&5
10954 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10955 if test "$ac_cv_sys_largefile_CC" != no; then
10956 CC=$CC$ac_cv_sys_largefile_CC
10959 echo "$as_me:10959: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10960 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10961 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 ac_cv_sys_file_offset_bits=no
10966 cat >conftest.$ac_ext <<_ACEOF
10967 #line 10967 "configure"
10968 #include "confdefs.h"
10969 #include <sys/types.h>
10970 /* Check that off_t can represent 2**63 - 1 correctly.
10971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10972 since some C++ compilers masquerading as C compilers
10973 incorrectly reject 9223372036854775807. */
10974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10976 && LARGE_OFF_T % 2147483647 == 1)
10986 rm -f conftest.$ac_objext
10987 if { (eval echo "$as_me:10987: \"$ac_compile\"") >&5
10988 (eval $ac_compile) 2>&5
10990 echo "$as_me:10990: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -s conftest.$ac_objext'
10993 { (eval echo "$as_me:10993: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:10996: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
11000 echo "$as_me: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11003 rm -f conftest.$ac_objext conftest.$ac_ext
11004 cat >conftest.$ac_ext <<_ACEOF
11005 #line 11005 "configure"
11006 #include "confdefs.h"
11007 #define _FILE_OFFSET_BITS 64
11008 #include <sys/types.h>
11009 /* Check that off_t can represent 2**63 - 1 correctly.
11010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11011 since some C++ compilers masquerading as C compilers
11012 incorrectly reject 9223372036854775807. */
11013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11015 && LARGE_OFF_T % 2147483647 == 1)
11025 rm -f conftest.$ac_objext
11026 if { (eval echo "$as_me:11026: \"$ac_compile\"") >&5
11027 (eval $ac_compile) 2>&5
11029 echo "$as_me:11029: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -s conftest.$ac_objext'
11032 { (eval echo "$as_me:11032: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11035 echo "$as_me:11035: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 ac_cv_sys_file_offset_bits=64; break
11039 echo "$as_me: failed program was:" >&5
11040 cat conftest.$ac_ext >&5
11042 rm -f conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:11046: result: $ac_cv_sys_file_offset_bits" >&5
11047 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11048 if test "$ac_cv_sys_file_offset_bits" != no; then
11050 cat >>confdefs.h <<EOF
11051 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11056 echo "$as_me:11056: checking for _LARGE_FILES value needed for large files" >&5
11057 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11058 if test "${ac_cv_sys_large_files+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 ac_cv_sys_large_files=no
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line 11064 "configure"
11065 #include "confdefs.h"
11066 #include <sys/types.h>
11067 /* Check that off_t can represent 2**63 - 1 correctly.
11068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11069 since some C++ compilers masquerading as C compilers
11070 incorrectly reject 9223372036854775807. */
11071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11073 && LARGE_OFF_T % 2147483647 == 1)
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:11084: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>&5
11087 echo "$as_me:11087: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:11090: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:11093: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11097 echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11100 rm -f conftest.$ac_objext conftest.$ac_ext
11101 cat >conftest.$ac_ext <<_ACEOF
11102 #line 11102 "configure"
11103 #include "confdefs.h"
11104 #define _LARGE_FILES 1
11105 #include <sys/types.h>
11106 /* Check that off_t can represent 2**63 - 1 correctly.
11107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11108 since some C++ compilers masquerading as C compilers
11109 incorrectly reject 9223372036854775807. */
11110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11112 && LARGE_OFF_T % 2147483647 == 1)
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:11123: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>&5
11126 echo "$as_me:11126: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (eval echo "$as_me:11129: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_sys_large_files=1; break
11136 echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 rm -f conftest.$ac_objext conftest.$ac_ext
11143 echo "$as_me:11143: result: $ac_cv_sys_large_files" >&5
11144 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11145 if test "$ac_cv_sys_large_files" != no; then
11147 cat >>confdefs.h <<EOF
11148 #define _LARGE_FILES $ac_cv_sys_large_files
11155 if test "$enable_largefile" != no ; then
11156 echo "$as_me:11156: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11157 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11158 if test "${ac_cv_sys_largefile_source+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 ac_cv_sys_largefile_source=no
11163 cat >conftest.$ac_ext <<_ACEOF
11164 #line 11164 "configure"
11165 #include "confdefs.h"
11175 rm -f conftest.$ac_objext
11176 if { (eval echo "$as_me:11176: \"$ac_compile\"") >&5
11177 (eval $ac_compile) 2>&5
11179 echo "$as_me:11179: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (eval echo "$as_me:11182: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:11185: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11189 echo "$as_me: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11192 rm -f conftest.$ac_objext conftest.$ac_ext
11193 cat >conftest.$ac_ext <<_ACEOF
11194 #line 11194 "configure"
11195 #include "confdefs.h"
11196 #define _LARGEFILE_SOURCE 1
11206 rm -f conftest.$ac_objext
11207 if { (eval echo "$as_me:11207: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>&5
11210 echo "$as_me:11210: \$? = $ac_status" >&5
11211 (exit $ac_status); } &&
11212 { ac_try='test -s conftest.$ac_objext'
11213 { (eval echo "$as_me:11213: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:11216: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
11218 ac_cv_sys_largefile_source=1; break
11220 echo "$as_me: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11223 rm -f conftest.$ac_objext conftest.$ac_ext
11227 echo "$as_me:11227: result: $ac_cv_sys_largefile_source" >&5
11228 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11229 if test "$ac_cv_sys_largefile_source" != no; then
11231 cat >>confdefs.h <<EOF
11232 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11238 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11239 # in glibc 2.1.3, but that breaks too many other things.
11240 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11241 echo "$as_me:11241: checking for fseeko" >&5
11242 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11243 if test "${ac_cv_func_fseeko+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 cat >conftest.$ac_ext <<_ACEOF
11247 #line 11247 "configure"
11248 #include "confdefs.h"
11253 return fseeko && fseeko (stdin, 0, 0);
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (eval echo "$as_me:11259: \"$ac_link\"") >&5
11260 (eval $ac_link) 2>&5
11262 echo "$as_me:11262: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -s conftest$ac_exeext'
11265 { (eval echo "$as_me:11265: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:11268: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_cv_func_fseeko=yes
11272 echo "$as_me: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 ac_cv_func_fseeko=no
11276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11278 echo "$as_me:11278: result: $ac_cv_func_fseeko" >&5
11279 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11280 if test $ac_cv_func_fseeko = yes; then
11282 cat >>confdefs.h <<\EOF
11283 #define HAVE_FSEEKO 1
11288 # Normally we would collect these definitions in the config.h,
11289 # but (like _XOPEN_SOURCE), some environments rely on having these
11290 # defined before any of the system headers are included. Another
11291 # case comes up with C++, e.g., on AIX the compiler compiles the
11292 # header files by themselves before looking at the body files it is
11293 # told to compile. For ncurses, those header files do not include
11295 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
11296 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
11297 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
11299 echo "$as_me:11299: checking whether to use struct dirent64" >&5
11300 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
11301 if test "${cf_cv_struct_dirent64+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 cat >conftest.$ac_ext <<_ACEOF
11306 #line 11306 "configure"
11307 #include "confdefs.h"
11309 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
11310 #include <sys/types.h>
11311 #include <dirent.h>
11317 /* if transitional largefile support is setup, this is true */
11318 extern struct dirent64 * readdir(DIR *);
11319 struct dirent64 *x = readdir((DIR *)0);
11320 struct dirent *y = readdir((DIR *)0);
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:11328: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>&5
11331 echo "$as_me:11331: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (eval echo "$as_me:11334: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:11337: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 cf_cv_struct_dirent64=yes
11341 echo "$as_me: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11343 cf_cv_struct_dirent64=no
11345 rm -f conftest.$ac_objext conftest.$ac_ext
11348 echo "$as_me:11348: result: $cf_cv_struct_dirent64" >&5
11349 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
11350 test "$cf_cv_struct_dirent64" = yes &&
11351 cat >>confdefs.h <<\EOF
11352 #define HAVE_STRUCT_DIRENT64 1
11357 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
11358 echo "$as_me:11358: checking if you want tparm not to use X/Open fixed-parameter list" >&5
11359 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
11361 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
11362 if test "${enable_tparm_varargs+set}" = set; then
11363 enableval="$enable_tparm_varargs"
11364 with_tparm_varargs=$enableval
11366 with_tparm_varargs=yes
11368 echo "$as_me:11368: result: $with_tparm_varargs" >&5
11369 echo "${ECHO_T}$with_tparm_varargs" >&6
11370 NCURSES_TPARM_VARARGS=0
11371 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11373 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11374 if test "$with_ticlib" != no ; then
11375 echo "$as_me:11375: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11376 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11378 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11379 if test "${enable_tic_depends+set}" = set; then
11380 enableval="$enable_tic_depends"
11381 with_tic_depends=$enableval
11383 with_tic_depends=yes
11385 echo "$as_me:11385: result: $with_tic_depends" >&5
11386 echo "${ECHO_T}$with_tic_depends" >&6
11388 with_tic_depends=no
11391 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
11392 echo "$as_me:11392: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
11393 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
11395 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
11396 if test "${enable_wattr_macros+set}" = set; then
11397 enableval="$enable_wattr_macros"
11398 with_wattr_macros=$enableval
11400 with_wattr_macros=yes
11402 if [ "x$with_wattr_macros" != xyes ]; then
11403 NCURSES_WATTR_MACROS=0
11404 echo "$as_me:11404: result: yes" >&5
11405 echo "${ECHO_T}yes" >&6
11407 NCURSES_WATTR_MACROS=1
11408 echo "$as_me:11408: result: no" >&5
11409 echo "${ECHO_T}no" >&6
11412 ### use option --with-bool to override bool's type
11413 echo "$as_me:11413: checking for type of bool" >&5
11414 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11416 # Check whether --with-bool or --without-bool was given.
11417 if test "${with_bool+set}" = set; then
11418 withval="$with_bool"
11419 NCURSES_BOOL="$withval"
11423 echo "$as_me:11423: result: $NCURSES_BOOL" >&5
11424 echo "${ECHO_T}$NCURSES_BOOL" >&6
11426 echo "$as_me:11426: checking for alternate terminal capabilities file" >&5
11427 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11429 # Check whether --with-caps or --without-caps was given.
11430 if test "${with_caps+set}" = set; then
11431 withval="$with_caps"
11432 TERMINFO_CAPS=Caps.$withval
11436 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11437 echo "$as_me:11437: result: $TERMINFO_CAPS" >&5
11438 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11440 ### use option --with-chtype to override chtype's type
11441 echo "$as_me:11441: checking for type of chtype" >&5
11442 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11444 # Check whether --with-chtype or --without-chtype was given.
11445 if test "${with_chtype+set}" = set; then
11446 withval="$with_chtype"
11447 NCURSES_CHTYPE="$withval"
11449 NCURSES_CHTYPE=$cf_dft_chtype
11451 echo "$as_me:11451: result: $NCURSES_CHTYPE" >&5
11452 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11454 ### use option --with-ospeed to override ospeed's type
11455 echo "$as_me:11455: checking for type of ospeed" >&5
11456 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11458 # Check whether --with-ospeed or --without-ospeed was given.
11459 if test "${with_ospeed+set}" = set; then
11460 withval="$with_ospeed"
11461 NCURSES_OSPEED="$withval"
11463 NCURSES_OSPEED=short
11465 echo "$as_me:11465: result: $NCURSES_OSPEED" >&5
11466 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11468 ### use option --with-mmask-t to override mmask_t's type
11469 echo "$as_me:11469: checking for type of mmask_t" >&5
11470 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11472 # Check whether --with-mmask-t or --without-mmask-t was given.
11473 if test "${with_mmask_t+set}" = set; then
11474 withval="$with_mmask_t"
11475 NCURSES_MMASK_T="$withval"
11477 NCURSES_MMASK_T=$cf_dft_mmask_t
11479 echo "$as_me:11479: result: $NCURSES_MMASK_T" >&5
11480 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11482 ### use option --with-ccharw-max to override CCHARW_MAX size
11483 echo "$as_me:11483: checking for size CCHARW_MAX" >&5
11484 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11486 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11487 if test "${with_ccharw_max+set}" = set; then
11488 withval="$with_ccharw_max"
11489 NCURSES_CCHARW_MAX="$withval"
11491 NCURSES_CCHARW_MAX=5
11493 echo "$as_me:11493: result: $NCURSES_CCHARW_MAX" >&5
11494 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11496 ### use option --with-tparm-arg to override tparm's argument type
11497 echo "$as_me:11497: checking for type of tparm args" >&5
11498 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11500 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11501 if test "${with_tparm_arg+set}" = set; then
11502 withval="$with_tparm_arg"
11503 NCURSES_TPARM_ARG="$withval"
11505 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11507 echo "$as_me:11507: result: $NCURSES_TPARM_ARG" >&5
11508 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11510 ### Enable compiling-in rcs id's
11511 echo "$as_me:11511: checking if RCS identifiers should be compiled-in" >&5
11512 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11514 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11515 if test "${with_rcs_ids+set}" = set; then
11516 withval="$with_rcs_ids"
11517 with_rcs_ids=$withval
11521 echo "$as_me:11521: result: $with_rcs_ids" >&5
11522 echo "${ECHO_T}$with_rcs_ids" >&6
11523 test "x$with_rcs_ids" = xyes &&
11524 cat >>confdefs.h <<\EOF
11525 #define USE_RCS_IDS 1
11528 ###############################################################################
11530 echo "$as_me:11530: checking format of man-pages" >&5
11531 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11533 # Check whether --with-manpage-format or --without-manpage-format was given.
11534 if test "${with_manpage_format+set}" = set; then
11535 withval="$with_manpage_format"
11536 MANPAGE_FORMAT=$withval
11538 MANPAGE_FORMAT=unknown
11541 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11542 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11546 case $MANPAGE_FORMAT in
11548 if test -z "$MANPATH" ; then
11549 MANPATH="/usr/man:/usr/share/man"
11552 # look for the 'date' man-page (it's most likely to be installed!)
11558 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11559 for cf_dir in $MANPATH; do
11560 test -z "$cf_dir" && cf_dir=/usr/man
11561 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
11563 cf_test=`echo $cf_name | sed -e 's/*//'`
11564 if test "x$cf_test" = "x$cf_name" ; then
11567 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11568 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11569 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11570 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11584 # if we found a match in either man* or cat*, stop looking
11585 if test -n "$MANPAGE_FORMAT" ; then
11587 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11588 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11594 test $cf_found=yes && break
11597 # only check the first directory in $MANPATH where we find manpages
11598 if test -n "$MANPAGE_FORMAT" ; then
11602 # if we did not find the example, just assume it is normal
11603 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11607 for cf_option in $MANPAGE_FORMAT; do
11609 (gzip|compress|BSDI|normal|formatted|catonly)
11612 cf_unknown="$cf_unknown $cf_option"
11619 echo "$as_me:11619: result: $MANPAGE_FORMAT" >&5
11620 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11621 if test -n "$cf_unknown" ; then
11622 { echo "$as_me:11622: WARNING: Unexpected manpage-format $cf_unknown" >&5
11623 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11626 echo "$as_me:11626: checking for manpage renaming" >&5
11627 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11629 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11630 if test "${with_manpage_renames+set}" = set; then
11631 withval="$with_manpage_renames"
11632 MANPAGE_RENAMES=$withval
11634 MANPAGE_RENAMES=yes
11637 case ".$MANPAGE_RENAMES" in
11641 # Debian 'man' program?
11642 if test -f /etc/debian_version ; then
11643 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11650 if test "$MANPAGE_RENAMES" != no ; then
11651 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11652 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11653 elif test ! -f $MANPAGE_RENAMES ; then
11654 { { echo "$as_me:11654: error: not a filename: $MANPAGE_RENAMES" >&5
11655 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11656 { (exit 1); exit 1; }; }
11659 test ! -d man && mkdir man
11661 # Construct a sed-script to perform renaming within man-pages
11662 if test -n "$MANPAGE_RENAMES" ; then
11663 test ! -d man && mkdir man
11664 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11668 echo "$as_me:11668: result: $MANPAGE_RENAMES" >&5
11669 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11671 echo "$as_me:11671: checking if manpage aliases will be installed" >&5
11672 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11674 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11675 if test "${with_manpage_aliases+set}" = set; then
11676 withval="$with_manpage_aliases"
11677 MANPAGE_ALIASES=$withval
11679 MANPAGE_ALIASES=yes
11682 echo "$as_me:11682: result: $MANPAGE_ALIASES" >&5
11683 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11687 cf_use_symlinks=yes
11694 MANPAGE_SYMLINKS=no
11695 if test "$MANPAGE_ALIASES" = yes ; then
11696 echo "$as_me:11696: checking if manpage symlinks should be used" >&5
11697 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11699 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11700 if test "${with_manpage_symlinks+set}" = set; then
11701 withval="$with_manpage_symlinks"
11702 MANPAGE_SYMLINKS=$withval
11704 MANPAGE_SYMLINKS=$cf_use_symlinks
11707 if test "$$cf_use_symlinks" = no; then
11708 if test "$MANPAGE_SYMLINKS" = yes ; then
11709 { echo "$as_me:11709: WARNING: cannot make symlinks" >&5
11710 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11711 MANPAGE_SYMLINKS=no
11715 echo "$as_me:11715: result: $MANPAGE_SYMLINKS" >&5
11716 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11719 echo "$as_me:11719: checking for manpage tbl" >&5
11720 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11722 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11723 if test "${with_manpage_tbl+set}" = set; then
11724 withval="$with_manpage_tbl"
11725 MANPAGE_TBL=$withval
11730 echo "$as_me:11730: result: $MANPAGE_TBL" >&5
11731 echo "${ECHO_T}$MANPAGE_TBL" >&6
11733 if test "$prefix" = "NONE" ; then
11734 cf_prefix="$ac_default_prefix"
11736 cf_prefix="$prefix"
11739 case "$MANPAGE_FORMAT" in
11754 test ! -d man && mkdir man
11758 case "$MANPAGE_FORMAT" in
11761 cf_compress=compress
11769 cf_edit_man=./edit_man.sh
11770 cf_man_alias=`pwd`/man_alias.sed
11772 cat >$cf_edit_man <<CF_EOF
11774 # this script is generated by the configure-script CF_MAN_PAGES macro.
11776 prefix="$cf_prefix"
11777 datarootdir="$datarootdir"
11780 NCURSES_MAJOR="$NCURSES_MAJOR"
11781 NCURSES_MINOR="$NCURSES_MINOR"
11782 NCURSES_PATCH="$NCURSES_PATCH"
11784 NCURSES_OSPEED="$NCURSES_OSPEED"
11785 TERMINFO="$TERMINFO"
11788 INSTALL_DATA="$INSTALL_DATA"
11790 transform="$program_transform_name"
11792 TMP=\${TMPDIR:=/tmp}/man\$\$
11793 trap "rm -f \$TMP" 0 1 2 5 15
11805 top_srcdir=\$srcdir/..
11808 if test "\$form" = normal ; then
11809 if test "$cf_format" = yes ; then
11810 if test "$cf_inboth" = no ; then
11811 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11815 cf_subdir=\$mandir/man
11816 cf_tables=$MANPAGE_TBL
11818 cf_subdir=\$mandir/cat
11822 # process the list of source-files
11827 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11828 if test \$verb = installing ; then
11829 if test ! -d \$cf_subdir\${section} ; then
11830 mkdir -p \$cf_subdir\$section
11834 # replace variables in man page
11835 if test ! -f $cf_man_alias ; then
11836 cat >>$cf_man_alias <<-CF_EOF2
11837 s,@DATADIR@,\$datadir,g
11838 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11839 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11840 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11841 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11842 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11843 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11846 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
11848 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11849 cf_name=`echo $cf_name|sed "$program_transform_name"`
11850 cat >>$cf_edit_man <<-CF_EOF
11851 s,@$cf_NAME@,$cf_name,g
11855 cat >>$cf_edit_man <<CF_EOF
11857 echo "...made $cf_man_alias"
11861 cf_source=\`basename \$i\`
11862 inalias=\$cf_source
11863 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11864 if test ! -f \$inalias ; then
11865 echo .. skipped \$cf_source
11870 if test "$MANPAGE_ALIASES" != no ; then
11871 cat >>$cf_edit_man <<CF_EOF
11873 test $with_curses_h = yes && nCurses=ncurses.3x
11874 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11878 if test "$MANPAGE_RENAMES" = no ; then
11879 cat >>$cf_edit_man <<CF_EOF
11880 # perform program transformations for section 1 man pages
11881 if test \$section = 1 ; then
11882 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11884 cf_target=\$cf_subdir\${section}/\$cf_source
11888 cat >>$cf_edit_man <<CF_EOF
11889 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11890 if test -z "\$cf_target" ; then
11891 echo '? missing rename for '\$cf_source
11892 cf_target="\$cf_source"
11894 cf_target="\$cf_subdir\${section}/\${cf_target}"
11899 cat >>$cf_edit_man <<CF_EOF
11900 sed -f $cf_man_alias \\
11903 if test -f $MANPAGE_RENAMES ; then
11904 cat >>$cf_edit_man <<CF_EOF
11905 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11908 cat >>$cf_edit_man <<CF_EOF
11913 cat >>$cf_edit_man <<CF_EOF
11914 if test \$cf_tables = yes ; then
11915 tbl \$TMP >\$TMP.out
11920 if test $with_overwrite != yes ; then
11921 cat >>$cf_edit_man <<CF_EOF
11922 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11927 if test $with_curses_h != yes ; then
11928 cat >>$cf_edit_man <<CF_EOF
11929 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11934 cat >>$cf_edit_man <<CF_EOF
11935 if test \$form = format ; then
11936 nroff -man \$TMP >\$TMP.out
11941 if test -n "$cf_compress" ; then
11942 cat >>$cf_edit_man <<CF_EOF
11943 if test \$verb = installing ; then
11944 if ( $cf_compress -f \$TMP )
11946 mv \$TMP.$cf_so_strip \$TMP
11949 cf_target="\$cf_target.$cf_so_strip"
11953 case "$MANPAGE_FORMAT" in
11955 cat >>$cf_edit_man <<CF_EOF
11956 if test \$form = format ; then
11957 # BSDI installs only .0 suffixes in the cat directories
11958 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11964 cat >>$cf_edit_man <<CF_EOF
11965 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11966 if test \$verb = installing ; then
11967 echo \$verb \$cf_target
11968 \$INSTALL_DATA \$TMP \$cf_target
11969 test -d \$cf_subdir\${section} &&
11970 test -n "\$aliases" && (
11971 cd \$cf_subdir\${section} && (
11972 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11973 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11974 cf_target=\`basename \$cf_target\`
11975 for cf_alias in \$aliases
11977 if test \$section = 1 ; then
11978 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11981 if test "$MANPAGE_SYMLINKS" = yes ; then
11982 if test -f \$cf_alias\${suffix} ; then
11983 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11988 echo .. \$verb alias \$cf_alias\${suffix}
11992 cat >>$cf_edit_man <<CF_EOF
11993 $LN_S \$cf_target \$cf_alias\${suffix}
11997 cat >>$cf_edit_man <<CF_EOF
11998 rm -f \$cf_alias\${suffix}
11999 $LN_S \$cf_target \$cf_alias\${suffix}
12003 cat >>$cf_edit_man <<CF_EOF
12004 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
12005 echo ".so \$cf_source" >\$TMP
12007 if test -n "$cf_compress" ; then
12008 cat >>$cf_edit_man <<CF_EOF
12009 if test -n "$cf_so_strip" ; then
12010 $cf_compress -f \$TMP
12011 mv \$TMP.$cf_so_strip \$TMP
12015 cat >>$cf_edit_man <<CF_EOF
12016 echo .. \$verb alias \$cf_alias\${suffix}
12017 rm -f \$cf_alias\${suffix}
12018 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
12023 elif test \$verb = removing ; then
12024 test -f \$cf_target && (
12025 echo \$verb \$cf_target
12028 test -d \$cf_subdir\${section} &&
12029 test -n "\$aliases" && (
12030 cd \$cf_subdir\${section} && (
12031 for cf_alias in \$aliases
12033 if test \$section = 1 ; then
12034 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
12037 echo .. \$verb alias \$cf_alias\${suffix}
12038 rm -f \$cf_alias\${suffix}
12050 if test $cf_inboth = yes ; then
12051 if test \$form != format ; then
12052 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
12058 chmod 755 $cf_edit_man
12060 ###############################################################################
12062 ### Note that some functions (such as const) are normally disabled anyway.
12063 echo "$as_me:12063: checking if you want to build with function extensions" >&5
12064 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
12066 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
12067 if test "${enable_ext_funcs+set}" = set; then
12068 enableval="$enable_ext_funcs"
12069 with_ext_funcs=$enableval
12073 echo "$as_me:12073: result: $with_ext_funcs" >&5
12074 echo "${ECHO_T}$with_ext_funcs" >&6
12075 if test "x$with_ext_funcs" = xyes ; then
12076 NCURSES_EXT_FUNCS=1
12078 cat >>confdefs.h <<\EOF
12079 #define NCURSES_EXT_FUNCS 1
12082 cat >>confdefs.h <<\EOF
12083 #define HAVE_ASSUME_DEFAULT_COLORS 1
12086 cat >>confdefs.h <<\EOF
12087 #define HAVE_CURSES_VERSION 1
12090 cat >>confdefs.h <<\EOF
12091 #define HAVE_HAS_KEY 1
12094 cat >>confdefs.h <<\EOF
12095 #define HAVE_RESIZETERM 1
12098 cat >>confdefs.h <<\EOF
12099 #define HAVE_RESIZE_TERM 1
12102 cat >>confdefs.h <<\EOF
12103 #define HAVE_TERM_ENTRY_H 1
12106 cat >>confdefs.h <<\EOF
12107 #define HAVE_USE_DEFAULT_COLORS 1
12110 cat >>confdefs.h <<\EOF
12111 #define HAVE_USE_EXTENDED_NAMES 1
12114 cat >>confdefs.h <<\EOF
12115 #define HAVE_USE_SCREEN 1
12118 cat >>confdefs.h <<\EOF
12119 #define HAVE_USE_WINDOW 1
12122 cat >>confdefs.h <<\EOF
12123 #define HAVE_WRESIZE 1
12126 GENERATED_EXT_FUNCS=generated
12127 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
12129 NCURSES_EXT_FUNCS=0
12130 GENERATED_EXT_FUNCS=
12133 echo "$as_me:12133: checking if you want to build with SCREEN extensions" >&5
12134 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
12136 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
12137 if test "${enable_sp_funcs+set}" = set; then
12138 enableval="$enable_sp_funcs"
12139 with_sp_funcs=$enableval
12141 with_sp_funcs=$cf_dft_ext_spfuncs
12143 echo "$as_me:12143: result: $with_sp_funcs" >&5
12144 echo "${ECHO_T}$with_sp_funcs" >&6
12145 if test "x$with_sp_funcs" = xyes ; then
12148 cat >>confdefs.h <<\EOF
12149 #define NCURSES_SP_FUNCS 1
12152 cat >>confdefs.h <<\EOF
12153 #define HAVE_TPUTS_SP 1
12156 GENERATED_SP_FUNCS=generated
12159 GENERATED_SP_FUNCS=
12162 echo "$as_me:12162: checking if you want to build with terminal-driver" >&5
12163 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
12165 # Check whether --enable-term-driver or --disable-term-driver was given.
12166 if test "${enable_term_driver+set}" = set; then
12167 enableval="$enable_term_driver"
12168 with_term_driver=$enableval
12170 with_term_driver=no
12172 echo "$as_me:12172: result: $with_term_driver" >&5
12173 echo "${ECHO_T}$with_term_driver" >&6
12174 if test "x$with_term_driver" = xyes ; then
12176 cat >>confdefs.h <<\EOF
12177 #define USE_TERM_DRIVER 1
12180 if test "x$with_termlib" != xno ; then
12181 { { echo "$as_me:12181: error: The term-driver option conflicts with the termlib option" >&5
12182 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
12183 { (exit 1); exit 1; }; }
12185 if test "x$with_sp_funcs" != xyes ; then
12186 { { echo "$as_me:12186: error: The term-driver option relies upon sp-funcs" >&5
12187 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
12188 { (exit 1); exit 1; }; }
12192 ### use option --enable-const to turn on use of const beyond that in XSI.
12193 echo "$as_me:12193: checking for extended use of const keyword" >&5
12194 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
12196 # Check whether --enable-const or --disable-const was given.
12197 if test "${enable_const+set}" = set; then
12198 enableval="$enable_const"
12199 with_ext_const=$enableval
12201 with_ext_const=$cf_dft_ext_const
12203 echo "$as_me:12203: result: $with_ext_const" >&5
12204 echo "${ECHO_T}$with_ext_const" >&6
12205 NCURSES_CONST='/*nothing*/'
12206 if test "x$with_ext_const" = xyes ; then
12207 NCURSES_CONST=const
12210 ### use option --enable-ext-colors to turn on use of colors beyond 16.
12211 echo "$as_me:12211: checking if you want to use extended colors" >&5
12212 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
12214 # Check whether --enable-ext-colors or --disable-ext-colors was given.
12215 if test "${enable_ext_colors+set}" = set; then
12216 enableval="$enable_ext_colors"
12217 with_ext_colors=$enableval
12219 with_ext_colors=$cf_dft_ext_colors
12221 echo "$as_me:12221: result: $with_ext_colors" >&5
12222 echo "${ECHO_T}$with_ext_colors" >&6
12223 NCURSES_EXT_COLORS=0
12224 if test "x$with_ext_colors" = xyes ; then
12225 if test "x$with_widec" != xyes ; then
12226 { echo "$as_me:12226: WARNING: This option applies only to wide-character library" >&5
12227 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
12229 # cannot be ABI 5 since it changes sizeof(cchar_t)
12231 if test "${with_abi_version+set}" != set; then
12232 case $cf_cv_rel_version in
12234 cf_cv_rel_version=6.0
12235 cf_cv_abi_version=6
12236 { echo "$as_me:12236: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12237 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12242 NCURSES_EXT_COLORS=1
12244 cat >>confdefs.h <<\EOF
12245 #define NCURSES_EXT_COLORS 1
12248 cat >>confdefs.h <<\EOF
12249 #define HAVE_ALLOC_PAIR 1
12252 cat >>confdefs.h <<\EOF
12253 #define HAVE_INIT_EXTENDED_COLOR 1
12259 ### use option --enable-ext-mouse to modify coding to support 5-button mice
12260 echo "$as_me:12260: checking if you want to use extended mouse encoding" >&5
12261 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
12263 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
12264 if test "${enable_ext_mouse+set}" = set; then
12265 enableval="$enable_ext_mouse"
12266 with_ext_mouse=$enableval
12268 with_ext_mouse=$cf_dft_ext_mouse
12270 echo "$as_me:12270: result: $with_ext_mouse" >&5
12271 echo "${ECHO_T}$with_ext_mouse" >&6
12272 NCURSES_MOUSE_VERSION=1
12273 if test "x$with_ext_mouse" = xyes ; then
12274 NCURSES_MOUSE_VERSION=2
12276 if test "${with_abi_version+set}" != set; then
12277 case $cf_cv_rel_version in
12279 cf_cv_rel_version=6.0
12280 cf_cv_abi_version=6
12281 { echo "$as_me:12281: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12282 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12289 ### use option --enable-ext-putwin to turn on extended screendumps
12290 echo "$as_me:12290: checking if you want to use extended putwin/screendump" >&5
12291 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
12293 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
12294 if test "${enable_ext_putwin+set}" = set; then
12295 enableval="$enable_ext_putwin"
12296 with_ext_putwin=$enableval
12298 with_ext_putwin=$cf_dft_ext_putwin
12300 echo "$as_me:12300: result: $with_ext_putwin" >&5
12301 echo "${ECHO_T}$with_ext_putwin" >&6
12302 if test "x$with_ext_putwin" = xyes ; then
12304 cat >>confdefs.h <<\EOF
12305 #define NCURSES_EXT_PUTWIN 1
12310 echo "$as_me:12310: checking if you want \$NCURSES_NO_PADDING code" >&5
12311 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
12313 # Check whether --enable-no-padding or --disable-no-padding was given.
12314 if test "${enable_no_padding+set}" = set; then
12315 enableval="$enable_no_padding"
12316 with_no_padding=$enableval
12318 with_no_padding=$with_ext_funcs
12320 echo "$as_me:12320: result: $with_no_padding" >&5
12321 echo "${ECHO_T}$with_no_padding" >&6
12322 test "x$with_no_padding" = xyes &&
12323 cat >>confdefs.h <<\EOF
12324 #define NCURSES_NO_PADDING 1
12327 echo "$as_me:12327: checking for ANSI C header files" >&5
12328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12329 if test "${ac_cv_header_stdc+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 cat >conftest.$ac_ext <<_ACEOF
12333 #line 12333 "configure"
12334 #include "confdefs.h"
12335 #include <stdlib.h>
12336 #include <stdarg.h>
12337 #include <string.h>
12341 if { (eval echo "$as_me:12341: \"$ac_cpp conftest.$ac_ext\"") >&5
12342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12344 egrep -v '^ *\+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null; then
12349 if test -s conftest.err; then
12350 ac_cpp_err=$ac_c_preproc_warn_flag
12357 if test -z "$ac_cpp_err"; then
12358 ac_cv_header_stdc=yes
12360 echo "$as_me: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12362 ac_cv_header_stdc=no
12364 rm -f conftest.err conftest.$ac_ext
12366 if test $ac_cv_header_stdc = yes; then
12367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line 12369 "configure"
12370 #include "confdefs.h"
12371 #include <string.h>
12374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12375 egrep "memchr" >/dev/null 2>&1; then
12378 ac_cv_header_stdc=no
12384 if test $ac_cv_header_stdc = yes; then
12385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12386 cat >conftest.$ac_ext <<_ACEOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12389 #include <stdlib.h>
12392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12393 egrep "free" >/dev/null 2>&1; then
12396 ac_cv_header_stdc=no
12402 if test $ac_cv_header_stdc = yes; then
12403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12404 if test "$cross_compiling" = yes; then
12407 cat >conftest.$ac_ext <<_ACEOF
12408 #line 12408 "configure"
12409 #include "confdefs.h"
12411 #if ((' ' & 0x0FF) == 0x020)
12412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12415 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12416 || ('j' <= (c) && (c) <= 'r') \
12417 || ('s' <= (c) && (c) <= 'z'))
12418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12426 for (i = 0; i < 256; i++)
12427 if (XOR (islower (i), ISLOWER (i))
12428 || toupper (i) != TOUPPER (i))
12429 $ac_main_return(2);
12430 $ac_main_return (0);
12433 rm -f conftest$ac_exeext
12434 if { (eval echo "$as_me:12434: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>&5
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12439 { (eval echo "$as_me:12439: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:12442: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12446 echo "$as_me: program exited with status $ac_status" >&5
12447 echo "$as_me: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12449 ac_cv_header_stdc=no
12451 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12455 echo "$as_me:12455: result: $ac_cv_header_stdc" >&5
12456 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12457 if test $ac_cv_header_stdc = yes; then
12459 cat >>confdefs.h <<\EOF
12460 #define STDC_HEADERS 1
12465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12468 inttypes.h stdint.h unistd.h
12470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12471 echo "$as_me:12471: checking for $ac_header" >&5
12472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 cat >conftest.$ac_ext <<_ACEOF
12477 #line 12477 "configure"
12478 #include "confdefs.h"
12479 $ac_includes_default
12480 #include <$ac_header>
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:12483: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12486 echo "$as_me:12486: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:12489: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:12492: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 eval "$as_ac_Header=yes"
12496 echo "$as_me: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 eval "$as_ac_Header=no"
12500 rm -f conftest.$ac_objext conftest.$ac_ext
12502 echo "$as_me:12502: result: `eval echo '${'$as_ac_Header'}'`" >&5
12503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12505 cat >>confdefs.h <<EOF
12506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12512 echo "$as_me:12512: checking for signed char" >&5
12513 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12514 if test "${ac_cv_type_signed_char+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line 12518 "configure"
12519 #include "confdefs.h"
12520 $ac_includes_default
12524 if ((signed char *) 0)
12526 if (sizeof (signed char))
12532 rm -f conftest.$ac_objext
12533 if { (eval echo "$as_me:12533: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>&5
12536 echo "$as_me:12536: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:12539: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:12542: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 ac_cv_type_signed_char=yes
12546 echo "$as_me: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 ac_cv_type_signed_char=no
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12552 echo "$as_me:12552: result: $ac_cv_type_signed_char" >&5
12553 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12555 echo "$as_me:12555: checking size of signed char" >&5
12556 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12557 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 if test "$ac_cv_type_signed_char" = yes; then
12561 if test "$cross_compiling" = yes; then
12562 # Depending upon the size, compute the lo and hi bounds.
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line 12564 "configure"
12565 #include "confdefs.h"
12566 $ac_includes_default
12570 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:12576: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (eval echo "$as_me:12582: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:12585: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12589 cat >conftest.$ac_ext <<_ACEOF
12590 #line 12590 "configure"
12591 #include "confdefs.h"
12592 $ac_includes_default
12596 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:12602: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>&5
12605 echo "$as_me:12605: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:12608: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:12611: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_hi=$ac_mid; break
12615 echo "$as_me: failed program was:" >&5
12616 cat conftest.$ac_ext >&5
12617 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12619 rm -f conftest.$ac_objext conftest.$ac_ext
12622 echo "$as_me: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12626 cat >conftest.$ac_ext <<_ACEOF
12627 #line 12627 "configure"
12628 #include "confdefs.h"
12629 $ac_includes_default
12633 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:12639: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>&5
12642 echo "$as_me:12642: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (eval echo "$as_me:12645: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:12648: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_lo=$ac_mid; break
12652 echo "$as_me: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12654 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12656 rm -f conftest.$ac_objext conftest.$ac_ext
12659 rm -f conftest.$ac_objext conftest.$ac_ext
12660 # Binary search between lo and hi bounds.
12661 while test "x$ac_lo" != "x$ac_hi"; do
12662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12663 cat >conftest.$ac_ext <<_ACEOF
12664 #line 12664 "configure"
12665 #include "confdefs.h"
12666 $ac_includes_default
12670 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12675 rm -f conftest.$ac_objext
12676 if { (eval echo "$as_me:12676: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>&5
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:12682: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:12685: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12689 echo "$as_me: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 ac_lo=`expr $ac_mid + 1`
12693 rm -f conftest.$ac_objext conftest.$ac_ext
12695 ac_cv_sizeof_signed_char=$ac_lo
12697 if test "$cross_compiling" = yes; then
12698 { { echo "$as_me:12698: error: cannot run test program while cross compiling" >&5
12699 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12700 { (exit 1); exit 1; }; }
12702 cat >conftest.$ac_ext <<_ACEOF
12703 #line 12703 "configure"
12704 #include "confdefs.h"
12705 $ac_includes_default
12709 FILE *f = fopen ("conftest.val", "w");
12711 $ac_main_return (1);
12712 fprintf (f, "%d", (sizeof (signed char)));
12718 rm -f conftest$ac_exeext
12719 if { (eval echo "$as_me:12719: \"$ac_link\"") >&5
12720 (eval $ac_link) 2>&5
12722 echo "$as_me:12722: \$? = $ac_status" >&5
12723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12724 { (eval echo "$as_me:12724: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_sizeof_signed_char=`cat conftest.val`
12731 echo "$as_me: program exited with status $ac_status" >&5
12732 echo "$as_me: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12735 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12740 ac_cv_sizeof_signed_char=0
12743 echo "$as_me:12743: result: $ac_cv_sizeof_signed_char" >&5
12744 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12745 cat >>confdefs.h <<EOF
12746 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12749 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12750 NCURSES_SBOOL="signed char"
12752 NCURSES_SBOOL="char"
12754 echo "$as_me:12754: checking if you want to use signed Boolean array in term.h" >&5
12755 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12757 # Check whether --enable-signed-char or --disable-signed-char was given.
12758 if test "${enable_signed_char+set}" = set; then
12759 enableval="$enable_signed_char"
12760 with_signed_char=$enableval
12762 with_signed_char=no
12764 echo "$as_me:12764: result: $with_signed_char" >&5
12765 echo "${ECHO_T}$with_signed_char" >&6
12766 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12768 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12769 echo "$as_me:12769: checking if you want SIGWINCH handler" >&5
12770 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12772 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12773 if test "${enable_sigwinch+set}" = set; then
12774 enableval="$enable_sigwinch"
12775 with_sigwinch=$enableval
12777 with_sigwinch=$with_ext_funcs
12779 echo "$as_me:12779: result: $with_sigwinch" >&5
12780 echo "${ECHO_T}$with_sigwinch" >&6
12781 test "x$with_sigwinch" = xyes &&
12782 cat >>confdefs.h <<\EOF
12783 #define USE_SIGWINCH 1
12786 ### use option --enable-tcap-names to allow user to define new capabilities
12787 echo "$as_me:12787: checking if you want user-definable terminal capabilities like termcap" >&5
12788 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12790 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12791 if test "${enable_tcap_names+set}" = set; then
12792 enableval="$enable_tcap_names"
12793 with_tcap_names=$enableval
12795 with_tcap_names=$with_ext_funcs
12797 echo "$as_me:12797: result: $with_tcap_names" >&5
12798 echo "${ECHO_T}$with_tcap_names" >&6
12800 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12802 ##############################################################################
12804 echo "$as_me:12804: checking if you want to link with the pthread library" >&5
12805 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12807 # Check whether --with-pthread or --without-pthread was given.
12808 if test "${with_pthread+set}" = set; then
12809 withval="$with_pthread"
12810 with_pthread=$withval
12814 echo "$as_me:12814: result: $with_pthread" >&5
12815 echo "${ECHO_T}$with_pthread" >&6
12817 if test "$with_pthread" != no ; then
12818 echo "$as_me:12818: checking for pthread.h" >&5
12819 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12820 if test "${ac_cv_header_pthread_h+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 #line 12824 "configure"
12825 #include "confdefs.h"
12826 #include <pthread.h>
12828 if { (eval echo "$as_me:12828: \"$ac_cpp conftest.$ac_ext\"") >&5
12829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12831 egrep -v '^ *\+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 (exit $ac_status); } >/dev/null; then
12836 if test -s conftest.err; then
12837 ac_cpp_err=$ac_c_preproc_warn_flag
12844 if test -z "$ac_cpp_err"; then
12845 ac_cv_header_pthread_h=yes
12847 echo "$as_me: failed program was:" >&5
12848 cat conftest.$ac_ext >&5
12849 ac_cv_header_pthread_h=no
12851 rm -f conftest.err conftest.$ac_ext
12853 echo "$as_me:12853: result: $ac_cv_header_pthread_h" >&5
12854 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12855 if test $ac_cv_header_pthread_h = yes; then
12857 cat >>confdefs.h <<\EOF
12858 #define HAVE_PTHREADS_H 1
12861 for cf_lib_pthread in pthread c_r
12863 echo "$as_me:12863: checking if we can link with the $cf_lib_pthread library" >&5
12864 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12865 cf_save_LIBS="$LIBS"
12867 cf_add_libs="-l$cf_lib_pthread"
12868 # Filter out duplicates - this happens with badly-designed ".pc" files...
12869 for cf_add_1lib in $LIBS
12871 for cf_add_2lib in $cf_add_libs
12873 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12879 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12881 LIBS="$cf_add_libs"
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line 12884 "configure"
12885 #include "confdefs.h"
12887 #include <pthread.h>
12893 int rc = pthread_create(0,0,0,0);
12894 int r2 = pthread_mutexattr_settype(0, 0);
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (eval echo "$as_me:12901: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>&5
12904 echo "$as_me:12904: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (eval echo "$as_me:12907: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:12910: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12914 echo "$as_me: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12919 LIBS="$cf_save_LIBS"
12920 echo "$as_me:12920: result: $with_pthread" >&5
12921 echo "${ECHO_T}$with_pthread" >&6
12922 test "$with_pthread" = yes && break
12925 if test "$with_pthread" = yes ; then
12927 cf_add_libs="-l$cf_lib_pthread"
12928 # Filter out duplicates - this happens with badly-designed ".pc" files...
12929 for cf_add_1lib in $LIBS
12931 for cf_add_2lib in $cf_add_libs
12933 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12939 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12941 LIBS="$cf_add_libs"
12943 cat >>confdefs.h <<\EOF
12944 #define HAVE_LIBPTHREADS 1
12948 { { echo "$as_me:12948: error: Cannot link with pthread library" >&5
12949 echo "$as_me: error: Cannot link with pthread library" >&2;}
12950 { (exit 1); exit 1; }; }
12957 if test "x$with_pthread" != xno; then
12958 echo "$as_me:12958: checking for pthread_kill" >&5
12959 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12960 if test "${ac_cv_func_pthread_kill+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 cat >conftest.$ac_ext <<_ACEOF
12964 #line 12964 "configure"
12965 #include "confdefs.h"
12966 /* System header to define __stub macros and hopefully few prototypes,
12967 which can conflict with char pthread_kill (); below. */
12968 #include <assert.h>
12969 /* Override any gcc2 internal prototype to avoid an error. */
12973 /* We use char because int might match the return type of a gcc2
12974 builtin and then its argument prototype would still apply. */
12975 char pthread_kill ();
12981 /* The GNU C library defines this for functions which it implements
12982 to always fail with ENOSYS. Some functions are actually named
12983 something starting with __ and the normal name is an alias. */
12984 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12987 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12994 rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (eval echo "$as_me:12995: \"$ac_link\"") >&5
12996 (eval $ac_link) 2>&5
12998 echo "$as_me:12998: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -s conftest$ac_exeext'
13001 { (eval echo "$as_me:13001: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13004 echo "$as_me:13004: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_func_pthread_kill=yes
13008 echo "$as_me: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13010 ac_cv_func_pthread_kill=no
13012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13014 echo "$as_me:13014: result: $ac_cv_func_pthread_kill" >&5
13015 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
13016 if test $ac_cv_func_pthread_kill = yes; then
13018 echo "$as_me:13018: checking if you want to allow EINTR in wgetch with pthreads" >&5
13019 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
13021 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
13022 if test "${enable_pthreads_eintr+set}" = set; then
13023 enableval="$enable_pthreads_eintr"
13024 use_pthreads_eintr=$enableval
13026 use_pthreads_eintr=no
13028 echo "$as_me:13028: result: $use_pthreads_eintr" >&5
13029 echo "${ECHO_T}$use_pthreads_eintr" >&6
13030 if test "x$use_pthreads_eintr" = xyes ; then
13032 cat >>confdefs.h <<\EOF
13033 #define USE_PTHREADS_EINTR 1
13039 echo "$as_me:13039: checking if you want to use weak-symbols for pthreads" >&5
13040 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
13042 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
13043 if test "${enable_weak_symbols+set}" = set; then
13044 enableval="$enable_weak_symbols"
13045 use_weak_symbols=$enableval
13047 use_weak_symbols=no
13049 echo "$as_me:13049: result: $use_weak_symbols" >&5
13050 echo "${ECHO_T}$use_weak_symbols" >&6
13051 if test "x$use_weak_symbols" = xyes ; then
13053 echo "$as_me:13053: checking if $CC supports weak symbols" >&5
13054 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
13055 if test "${cf_cv_weak_symbols+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 cat >conftest.$ac_ext <<_ACEOF
13060 #line 13060 "configure"
13061 #include "confdefs.h"
13068 #if defined(__GNUC__)
13069 # if defined __USE_ISOC99
13070 # define _cat_pragma(exp) _Pragma(#exp)
13071 # define _weak_pragma(exp) _cat_pragma(weak name)
13073 # define _weak_pragma(exp)
13075 # define _declare(name) __extension__ extern __typeof__(name) name
13076 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
13079 weak_symbol(fopen);
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:13086: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>&5
13089 echo "$as_me:13089: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -s conftest.$ac_objext'
13092 { (eval echo "$as_me:13092: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13095 echo "$as_me:13095: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 cf_cv_weak_symbols=yes
13099 echo "$as_me: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13101 cf_cv_weak_symbols=no
13103 rm -f conftest.$ac_objext conftest.$ac_ext
13106 echo "$as_me:13106: result: $cf_cv_weak_symbols" >&5
13107 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
13110 cf_cv_weak_symbols=no
13113 if test "x$cf_cv_weak_symbols" = xyes ; then
13115 cat >>confdefs.h <<\EOF
13116 #define USE_WEAK_SYMBOLS 1
13123 if test "x$with_pthread" = "xyes" ; then
13125 cat >>confdefs.h <<\EOF
13126 #define USE_PTHREADS 1
13129 enable_reentrant=yes
13130 if test "x$cf_cv_weak_symbols" = xyes ; then
13135 # Reentrant code has to be opaque; there's little advantage to making ncurses
13136 # opaque outside of that, so there is no --enable-opaque option. We can use
13137 # this option without --with-pthreads, but this will be always set for
13139 echo "$as_me:13139: checking if you want reentrant code" >&5
13140 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
13142 # Check whether --enable-reentrant or --disable-reentrant was given.
13143 if test "${enable_reentrant+set}" = set; then
13144 enableval="$enable_reentrant"
13145 with_reentrant=$enableval
13149 echo "$as_me:13149: result: $with_reentrant" >&5
13150 echo "${ECHO_T}$with_reentrant" >&6
13151 if test "x$with_reentrant" = xyes ; then
13152 cf_cv_enable_reentrant=1
13153 cf_cv_enable_opaque="NCURSES_INTERNALS"
13155 if test "x$cf_cv_weak_symbols" = xyes ; then
13157 # remove pthread library from $LIBS
13158 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
13160 cf_add_libs="-lpthread"
13161 # Filter out duplicates - this happens with badly-designed ".pc" files...
13162 for cf_add_1lib in $TEST_LIBS
13164 for cf_add_2lib in $cf_add_libs
13166 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13172 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13174 TEST_LIBS="$cf_add_libs"
13176 cf_add_libs="-lpthread"
13177 # Filter out duplicates - this happens with badly-designed ".pc" files...
13178 for cf_add_1lib in $TEST_LIBS2
13180 for cf_add_2lib in $cf_add_libs
13182 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13188 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13190 TEST_LIBS2="$cf_add_libs"
13193 # when not using weak symbols but with_reentrant,
13194 # add 't' to the library suffix on all platforms
13195 # except cygwin, where we only do that if ALSO
13196 # compiling with full thread support.
13198 (*cygwin* | *msys*)
13199 if test "$with_pthread" = "yes" ; then
13200 if test "x$disable_lib_suffixes" = "xno" ; then
13201 LIB_SUFFIX="t${LIB_SUFFIX}"
13205 if test "x$disable_lib_suffixes" = "xno" ; then
13206 LIB_SUFFIX="t${LIB_SUFFIX}"
13212 cat >>confdefs.h <<\EOF
13213 #define USE_REENTRANT 1
13216 if test "${with_abi_version+set}" != set; then
13217 case $cf_cv_rel_version in
13219 cf_cv_rel_version=6.0
13220 cf_cv_abi_version=6
13221 { echo "$as_me:13221: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13222 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13228 cf_cv_enable_reentrant=0
13229 cf_cv_enable_opaque="NCURSES_OPAQUE"
13230 NCURSES_SIZE_T=short
13233 echo "$as_me:13233: checking if you want opaque curses-library structures" >&5
13234 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
13236 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
13237 if test "${enable_opaque_curses+set}" = set; then
13238 enableval="$enable_opaque_curses"
13239 test "$enableval" != yes && enableval=no
13240 if test "$enableval" != "no" ; then
13241 enable_opaque_curses=yes
13244 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
13245 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
13251 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
13252 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
13255 echo "$as_me:13255: result: $enable_opaque_curses" >&5
13256 echo "${ECHO_T}$enable_opaque_curses" >&6
13258 test "$cf_cv_enable_reentrant" = 1 && \
13259 test "$enable_opaque_curses" = no && \
13260 { { echo "$as_me:13260: error: reentrant configuration requires opaque library" >&5
13261 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
13262 { (exit 1); exit 1; }; }
13264 echo "$as_me:13264: checking if you want opaque form-library structures" >&5
13265 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
13267 # Check whether --enable-opaque-form or --disable-opaque-form was given.
13268 if test "${enable_opaque_form+set}" = set; then
13269 enableval="$enable_opaque_form"
13270 enable_opaque_form=yes
13272 enable_opaque_form=no
13274 echo "$as_me:13274: result: $enable_opaque_form" >&5
13275 echo "${ECHO_T}$enable_opaque_form" >&6
13277 echo "$as_me:13277: checking if you want opaque menu-library structures" >&5
13278 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
13280 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
13281 if test "${enable_opaque_menu+set}" = set; then
13282 enableval="$enable_opaque_menu"
13283 enable_opaque_menu=yes
13285 enable_opaque_menu=no
13287 echo "$as_me:13287: result: $enable_opaque_menu" >&5
13288 echo "${ECHO_T}$enable_opaque_menu" >&6
13290 echo "$as_me:13290: checking if you want opaque panel-library structures" >&5
13291 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
13293 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
13294 if test "${enable_opaque_panel+set}" = set; then
13295 enableval="$enable_opaque_panel"
13296 enable_opaque_panel=yes
13298 enable_opaque_panel=no
13300 echo "$as_me:13300: result: $enable_opaque_panel" >&5
13301 echo "${ECHO_T}$enable_opaque_panel" >&6
13303 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
13304 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
13305 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
13306 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
13308 ### Allow using a different wrap-prefix
13309 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13310 echo "$as_me:13310: checking for prefix used to wrap public variables" >&5
13311 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13313 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13314 if test "${with_wrap_prefix+set}" = set; then
13315 withval="$with_wrap_prefix"
13316 NCURSES_WRAP_PREFIX=$withval
13318 NCURSES_WRAP_PREFIX=_nc_
13320 echo "$as_me:13320: result: $NCURSES_WRAP_PREFIX" >&5
13321 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13323 NCURSES_WRAP_PREFIX=_nc_
13326 cat >>confdefs.h <<EOF
13327 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13330 ###############################################################################
13331 # These options are relatively safe to experiment with.
13333 echo "$as_me:13333: checking if you want all development code" >&5
13334 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
13336 # Check whether --with-develop or --without-develop was given.
13337 if test "${with_develop+set}" = set; then
13338 withval="$with_develop"
13339 with_develop=$withval
13343 echo "$as_me:13343: result: $with_develop" >&5
13344 echo "${ECHO_T}$with_develop" >&6
13346 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
13347 echo "$as_me:13347: checking if you want hard-tabs code" >&5
13348 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
13350 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
13351 if test "${enable_hard_tabs+set}" = set; then
13352 enableval="$enable_hard_tabs"
13355 enable_hard_tabs=$with_develop
13357 echo "$as_me:13357: result: $enable_hard_tabs" >&5
13358 echo "${ECHO_T}$enable_hard_tabs" >&6
13359 test "x$enable_hard_tabs" = xyes &&
13360 cat >>confdefs.h <<\EOF
13361 #define USE_HARD_TABS 1
13364 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
13365 echo "$as_me:13365: checking if you want limited support for xmc" >&5
13366 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
13368 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
13369 if test "${enable_xmc_glitch+set}" = set; then
13370 enableval="$enable_xmc_glitch"
13373 enable_xmc_glitch=$with_develop
13375 echo "$as_me:13375: result: $enable_xmc_glitch" >&5
13376 echo "${ECHO_T}$enable_xmc_glitch" >&6
13377 test "x$enable_xmc_glitch" = xyes &&
13378 cat >>confdefs.h <<\EOF
13379 #define USE_XMC_SUPPORT 1
13382 ###############################################################################
13383 # These are just experimental, probably should not be in a package:
13385 echo "$as_me:13385: checking if you do not want to assume colors are white-on-black" >&5
13386 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
13388 # Check whether --enable-assumed-color or --disable-assumed-color was given.
13389 if test "${enable_assumed_color+set}" = set; then
13390 enableval="$enable_assumed_color"
13391 with_assumed_color=$enableval
13393 with_assumed_color=yes
13395 echo "$as_me:13395: result: $with_assumed_color" >&5
13396 echo "${ECHO_T}$with_assumed_color" >&6
13397 test "x$with_assumed_color" = xyes &&
13398 cat >>confdefs.h <<\EOF
13399 #define USE_ASSUMED_COLOR 1
13402 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
13403 echo "$as_me:13403: checking if you want hashmap scrolling-optimization code" >&5
13404 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
13406 # Check whether --enable-hashmap or --disable-hashmap was given.
13407 if test "${enable_hashmap+set}" = set; then
13408 enableval="$enable_hashmap"
13409 with_hashmap=$enableval
13413 echo "$as_me:13413: result: $with_hashmap" >&5
13414 echo "${ECHO_T}$with_hashmap" >&6
13415 test "x$with_hashmap" = xyes &&
13416 cat >>confdefs.h <<\EOF
13417 #define USE_HASHMAP 1
13420 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
13421 echo "$as_me:13421: checking if you want colorfgbg code" >&5
13422 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
13424 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
13425 if test "${enable_colorfgbg+set}" = set; then
13426 enableval="$enable_colorfgbg"
13427 with_colorfgbg=$enableval
13431 echo "$as_me:13431: result: $with_colorfgbg" >&5
13432 echo "${ECHO_T}$with_colorfgbg" >&6
13433 test "x$with_colorfgbg" = xyes &&
13434 cat >>confdefs.h <<\EOF
13435 #define USE_COLORFGBG 1
13438 ### use option --enable-interop to turn on use of bindings used for interop
13439 echo "$as_me:13439: checking if you want interop bindings" >&5
13440 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
13442 # Check whether --enable-interop or --disable-interop was given.
13443 if test "${enable_interop+set}" = set; then
13444 enableval="$enable_interop"
13445 with_exp_interop=$enableval
13447 with_exp_interop=$cf_dft_interop
13449 echo "$as_me:13449: result: $with_exp_interop" >&5
13450 echo "${ECHO_T}$with_exp_interop" >&6
13452 NCURSES_INTEROP_FUNCS=0
13453 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
13455 echo "$as_me:13455: checking if you want experimental safe-sprintf code" >&5
13456 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
13458 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
13459 if test "${enable_safe_sprintf+set}" = set; then
13460 enableval="$enable_safe_sprintf"
13461 with_safe_sprintf=$enableval
13463 with_safe_sprintf=no
13465 echo "$as_me:13465: result: $with_safe_sprintf" >&5
13466 echo "${ECHO_T}$with_safe_sprintf" >&6
13467 test "x$with_safe_sprintf" = xyes &&
13468 cat >>confdefs.h <<\EOF
13469 #define USE_SAFE_SPRINTF 1
13472 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
13473 # when hashmap is used scroll hints are useless
13474 if test "$with_hashmap" = no ; then
13475 echo "$as_me:13475: checking if you want to experiment without scrolling-hints code" >&5
13476 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13478 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13479 if test "${enable_scroll_hints+set}" = set; then
13480 enableval="$enable_scroll_hints"
13481 with_scroll_hints=$enableval
13483 with_scroll_hints=yes
13485 echo "$as_me:13485: result: $with_scroll_hints" >&5
13486 echo "${ECHO_T}$with_scroll_hints" >&6
13487 test "x$with_scroll_hints" = xyes &&
13488 cat >>confdefs.h <<\EOF
13489 #define USE_SCROLL_HINTS 1
13494 echo "$as_me:13494: checking if you want wgetch-events code" >&5
13495 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13497 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13498 if test "${enable_wgetch_events+set}" = set; then
13499 enableval="$enable_wgetch_events"
13500 with_wgetch_events=$enableval
13502 with_wgetch_events=no
13504 echo "$as_me:13504: result: $with_wgetch_events" >&5
13505 echo "${ECHO_T}$with_wgetch_events" >&6
13506 test "x$with_wgetch_events" = xyes &&
13507 cat >>confdefs.h <<\EOF
13508 #define NCURSES_WGETCH_EVENTS 1
13511 ###############################################################################
13513 ### use option --disable-echo to suppress full display compiling commands
13515 echo "$as_me:13515: checking if you want to see long compiling messages" >&5
13516 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13518 # Check whether --enable-echo or --disable-echo was given.
13519 if test "${enable_echo+set}" = set; then
13520 enableval="$enable_echo"
13521 test "$enableval" != no && enableval=yes
13522 if test "$enableval" != "yes" ; then
13525 ECHO_LD='@echo linking $@;'
13526 RULE_CC='@echo compiling $<'
13527 SHOW_CC='@echo compiling $@'
13549 echo "$as_me:13549: result: $enableval" >&5
13550 echo "${ECHO_T}$enableval" >&6
13552 if test "x$enable_echo" = xyes; then
13555 ECHO_LINK='@ echo linking $@ ... ;'
13556 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13557 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13560 ### use option --enable-warnings to turn on all gcc warnings
13561 echo "$as_me:13561: checking if you want to see compiler warnings" >&5
13562 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13564 # Check whether --enable-warnings or --disable-warnings was given.
13565 if test "${enable_warnings+set}" = set; then
13566 enableval="$enable_warnings"
13567 with_warnings=$enableval
13569 echo "$as_me:13569: result: $with_warnings" >&5
13570 echo "${ECHO_T}$with_warnings" >&6
13572 if test "x$with_warnings" = "xyes"; then
13574 ADAFLAGS="$ADAFLAGS -gnatg"
13578 if test "$GCC" = yes ; then
13581 echo "$as_me:13581: checking if this is really Intel C compiler" >&5
13582 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13583 cf_save_CFLAGS="$CFLAGS"
13584 CFLAGS="$CFLAGS -no-gcc"
13585 cat >conftest.$ac_ext <<_ACEOF
13586 #line 13586 "configure"
13587 #include "confdefs.h"
13593 #ifdef __INTEL_COMPILER
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:13603: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>&5
13606 echo "$as_me:13606: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:13609: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:13612: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13615 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13622 CFLAGS="$cf_save_CFLAGS"
13623 echo "$as_me:13623: result: $INTEL_COMPILER" >&5
13624 echo "${ECHO_T}$INTEL_COMPILER" >&6
13631 if test "$GCC" = yes ; then
13632 echo "$as_me:13632: checking if this is really Clang C compiler" >&5
13633 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13634 cf_save_CFLAGS="$CFLAGS"
13635 CFLAGS="$CFLAGS -Qunused-arguments"
13636 cat >conftest.$ac_ext <<_ACEOF
13637 #line 13637 "configure"
13638 #include "confdefs.h"
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:13654: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13657 echo "$as_me:13657: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:13660: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:13663: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13666 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13669 echo "$as_me: failed program was:" >&5
13670 cat conftest.$ac_ext >&5
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13673 CFLAGS="$cf_save_CFLAGS"
13674 echo "$as_me:13674: result: $CLANG_COMPILER" >&5
13675 echo "${ECHO_T}$CLANG_COMPILER" >&6
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13679 "${as_me:-configure}"
13680 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13683 if test "$INTEL_COMPILER" = yes
13685 # The "-wdXXX" options suppress warnings:
13686 # remark #1419: external declaration in primary source file
13687 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13688 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13689 # remark #193: zero used for undefined preprocessing identifier
13690 # remark #593: variable "curs_sb_left_arrow" was set but never used
13691 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13692 # remark #869: parameter "tw" was never referenced
13693 # remark #981: operands are evaluated in unspecified order
13694 # warning #279: controlling expression is constant
13696 { echo "$as_me:13696: checking for $CC warning options..." >&5
13697 echo "$as_me: checking for $CC warning options..." >&6;}
13698 cf_save_CFLAGS="$CFLAGS"
13699 EXTRA_CFLAGS="-Wall"
13711 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13712 if { (eval echo "$as_me:13712: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13715 echo "$as_me:13715: \$? = $ac_status" >&5
13716 (exit $ac_status); }; then
13717 test -n "$verbose" && echo "$as_me:13717: result: ... -$cf_opt" >&5
13718 echo "${ECHO_T}... -$cf_opt" >&6
13719 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13722 CFLAGS="$cf_save_CFLAGS"
13724 elif test "$GCC" = yes
13726 { echo "$as_me:13726: checking for $CC warning options..." >&5
13727 echo "$as_me: checking for $CC warning options..." >&6;}
13728 cf_save_CFLAGS="$CFLAGS"
13731 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13732 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13733 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13734 for cf_opt in W Wall \
13735 Wbad-function-cast \
13738 Wdeclaration-after-statement \
13741 Wmissing-declarations \
13742 Wmissing-prototypes \
13746 Wstrict-prototypes \
13747 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13749 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13750 if { (eval echo "$as_me:13750: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>&5
13753 echo "$as_me:13753: \$? = $ac_status" >&5
13754 (exit $ac_status); }; then
13755 test -n "$verbose" && echo "$as_me:13755: result: ... -$cf_opt" >&5
13756 echo "${ECHO_T}... -$cf_opt" >&6
13759 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13762 case $GCC_VERSION in
13764 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13766 echo "${as_me:-configure}:13766: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13772 case $GCC_VERSION in
13774 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13776 echo "${as_me:-configure}:13776: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13782 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13785 CFLAGS="$cf_save_CFLAGS"
13789 if test "x$cf_with_cxx" = xyes ; then
13793 if test "$GCC" = yes ; then
13796 echo "$as_me:13796: checking if this is really Intel C++ compiler" >&5
13797 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13798 cf_save_CFLAGS="$CXXFLAGS"
13799 CXXFLAGS="$CXXFLAGS -no-gcc"
13800 cat >conftest.$ac_ext <<_ACEOF
13801 #line 13801 "configure"
13802 #include "confdefs.h"
13808 #ifdef __INTEL_COMPILER
13817 rm -f conftest.$ac_objext
13818 if { (eval echo "$as_me:13818: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>&5
13821 echo "$as_me:13821: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:13824: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:13827: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 INTEL_CPLUSPLUS=yes
13830 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13833 echo "$as_me: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13836 rm -f conftest.$ac_objext conftest.$ac_ext
13837 CXXFLAGS="$cf_save_CFLAGS"
13838 echo "$as_me:13838: result: $INTEL_CPLUSPLUS" >&5
13839 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13846 if test "$GCC" = yes ; then
13847 echo "$as_me:13847: checking if this is really Clang C++ compiler" >&5
13848 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13849 cf_save_CFLAGS="$CXXFLAGS"
13850 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line 13852 "configure"
13853 #include "confdefs.h"
13868 rm -f conftest.$ac_objext
13869 if { (eval echo "$as_me:13869: \"$ac_compile\"") >&5
13870 (eval $ac_compile) 2>&5
13872 echo "$as_me:13872: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:13875: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:13878: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 CLANG_CPLUSPLUS=yes
13881 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13884 echo "$as_me: failed program was:" >&5
13885 cat conftest.$ac_ext >&5
13887 rm -f conftest.$ac_objext conftest.$ac_ext
13888 CXXFLAGS="$cf_save_CFLAGS"
13889 echo "$as_me:13889: result: $CLANG_CPLUSPLUS" >&5
13890 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13894 ac_cpp='$CXXCPP $CPPFLAGS'
13895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13898 ac_main_return=return
13900 cat > conftest.$ac_ext <<EOF
13901 #line 13901 "configure"
13902 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13905 if test "$INTEL_CPLUSPLUS" = yes
13907 # The "-wdXXX" options suppress warnings:
13908 # remark #1419: external declaration in primary source file
13909 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13910 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13911 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13912 # remark #193: zero used for undefined preprocessing identifier
13913 # remark #593: variable "curs_sb_left_arrow" was set but never used
13914 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13915 # remark #869: parameter "tw" was never referenced
13916 # remark #981: operands are evaluated in unspecified order
13917 # warning #269: invalid format string conversion
13919 { echo "$as_me:13919: checking for $CC warning options..." >&5
13920 echo "$as_me: checking for $CC warning options..." >&6;}
13921 cf_save_CXXFLAGS="$CXXFLAGS"
13922 EXTRA_CXXFLAGS="-Wall"
13935 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13936 if { (eval echo "$as_me:13936: \"$ac_compile\"") >&5
13937 (eval $ac_compile) 2>&5
13939 echo "$as_me:13939: \$? = $ac_status" >&5
13940 (exit $ac_status); }; then
13941 test -n "$verbose" && echo "$as_me:13941: result: ... -$cf_opt" >&5
13942 echo "${ECHO_T}... -$cf_opt" >&6
13943 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13946 CXXFLAGS="$cf_save_CXXFLAGS"
13948 elif test "$GXX" = yes
13950 { echo "$as_me:13950: checking for $CXX warning options..." >&5
13951 echo "$as_me: checking for $CXX warning options..." >&6;}
13952 cf_save_CXXFLAGS="$CXXFLAGS"
13953 EXTRA_CXXFLAGS="-W -Wall"
13954 cf_gxx_extra_warnings=""
13955 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13956 case "$GCC_VERSION" in
13960 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13967 Wignored-qualifiers \
13969 Woverloaded-virtual \
13977 Wundef $cf_gxx_extra_warnings Wno-unused
13979 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13980 if { (eval echo "$as_me:13980: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>&5
13983 echo "$as_me:13983: \$? = $ac_status" >&5
13984 (exit $ac_status); }; then
13985 test -n "$verbose" && echo "$as_me:13985: result: ... -$cf_opt" >&5
13986 echo "${ECHO_T}... -$cf_opt" >&6
13987 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13989 test -n "$verbose" && echo "$as_me:13989: result: ... no -$cf_opt" >&5
13990 echo "${ECHO_T}... no -$cf_opt" >&6
13993 CXXFLAGS="$cf_save_CXXFLAGS"
13998 ac_cpp='$CPP $CPPFLAGS'
13999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002 ac_main_return=return
14007 if test "$GCC" = yes
14009 cat > conftest.i <<EOF
14011 #define GCC_PRINTF 0
14014 #define GCC_SCANF 0
14016 #ifndef GCC_NORETURN
14017 #define GCC_NORETURN /* nothing */
14020 #define GCC_UNUSED /* nothing */
14023 if test "$GCC" = yes
14025 { echo "$as_me:14025: checking for $CC __attribute__ directives..." >&5
14026 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
14027 cat > conftest.$ac_ext <<EOF
14028 #line 14028 "${as_me:-configure}"
14029 #include "confdefs.h"
14030 #include "conftest.h"
14031 #include "conftest.i"
14033 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
14035 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
14038 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
14040 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
14042 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
14043 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
14044 extern void foo(void) GCC_NORETURN;
14045 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
14047 cf_printf_attribute=no
14048 cf_scanf_attribute=no
14049 for cf_attribute in scanf printf unused noreturn
14052 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14054 cf_directive="__attribute__(($cf_attribute))"
14055 echo "checking for $CC $cf_directive" 1>&5
14057 case $cf_attribute in
14059 cf_printf_attribute=yes
14060 cat >conftest.h <<EOF
14061 #define GCC_$cf_ATTRIBUTE 1
14065 cf_scanf_attribute=yes
14066 cat >conftest.h <<EOF
14067 #define GCC_$cf_ATTRIBUTE 1
14071 cat >conftest.h <<EOF
14072 #define GCC_$cf_ATTRIBUTE $cf_directive
14077 if { (eval echo "$as_me:14077: \"$ac_compile\"") >&5
14078 (eval $ac_compile) 2>&5
14080 echo "$as_me:14080: \$? = $ac_status" >&5
14081 (exit $ac_status); }; then
14082 test -n "$verbose" && echo "$as_me:14082: result: ... $cf_attribute" >&5
14083 echo "${ECHO_T}... $cf_attribute" >&6
14084 cat conftest.h >>confdefs.h
14085 case $cf_attribute in
14088 cat >>confdefs.h <<EOF
14089 #define GCC_NORETURN $cf_directive
14094 cf_value='/* nothing */'
14095 if test "$cf_printf_attribute" != no ; then
14096 cf_value='__attribute__((format(printf,fmt,var)))'
14098 cat >>confdefs.h <<\EOF
14099 #define GCC_PRINTF 1
14104 cat >>confdefs.h <<EOF
14105 #define GCC_PRINTFLIKE(fmt,var) $cf_value
14110 cf_value='/* nothing */'
14111 if test "$cf_scanf_attribute" != no ; then
14112 cf_value='__attribute__((format(scanf,fmt,var)))'
14114 cat >>confdefs.h <<\EOF
14115 #define GCC_SCANF 1
14120 cat >>confdefs.h <<EOF
14121 #define GCC_SCANFLIKE(fmt,var) $cf_value
14127 cat >>confdefs.h <<EOF
14128 #define GCC_UNUSED $cf_directive
14136 fgrep define conftest.i >>confdefs.h
14141 echo "$as_me:14141: checking if you want to work around bogus compiler/loader warnings" >&5
14142 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
14144 # Check whether --enable-string-hacks or --disable-string-hacks was given.
14145 if test "${enable_string_hacks+set}" = set; then
14146 enableval="$enable_string_hacks"
14147 with_string_hacks=$enableval
14149 with_string_hacks=no
14151 echo "$as_me:14151: result: $with_string_hacks" >&5
14152 echo "${ECHO_T}$with_string_hacks" >&6
14154 if test "x$with_string_hacks" = "xyes"; then
14156 cat >>confdefs.h <<\EOF
14157 #define USE_STRING_HACKS 1
14160 { echo "$as_me:14160: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
14161 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
14162 echo "$as_me:14162: checking for strlcat" >&5
14163 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
14164 if test "${ac_cv_func_strlcat+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 cat >conftest.$ac_ext <<_ACEOF
14168 #line 14168 "configure"
14169 #include "confdefs.h"
14170 /* System header to define __stub macros and hopefully few prototypes,
14171 which can conflict with char strlcat (); below. */
14172 #include <assert.h>
14173 /* Override any gcc2 internal prototype to avoid an error. */
14177 /* We use char because int might match the return type of a gcc2
14178 builtin and then its argument prototype would still apply. */
14185 /* The GNU C library defines this for functions which it implements
14186 to always fail with ENOSYS. Some functions are actually named
14187 something starting with __ and the normal name is an alias. */
14188 #if defined (__stub_strlcat) || defined (__stub___strlcat)
14191 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14198 rm -f conftest.$ac_objext conftest$ac_exeext
14199 if { (eval echo "$as_me:14199: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:14205: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:14208: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_cv_func_strlcat=yes
14212 echo "$as_me: failed program was:" >&5
14213 cat conftest.$ac_ext >&5
14214 ac_cv_func_strlcat=no
14216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14218 echo "$as_me:14218: result: $ac_cv_func_strlcat" >&5
14219 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
14220 if test $ac_cv_func_strlcat = yes; then
14222 cat >>confdefs.h <<\EOF
14223 #define HAVE_STRLCAT 1
14228 echo "$as_me:14228: checking for strlcat in -lbsd" >&5
14229 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
14230 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 ac_check_lib_save_LIBS=$LIBS
14235 cat >conftest.$ac_ext <<_ACEOF
14236 #line 14236 "configure"
14237 #include "confdefs.h"
14239 /* Override any gcc2 internal prototype to avoid an error. */
14243 /* We use char because int might match the return type of a gcc2
14244 builtin and then its argument prototype would still apply. */
14254 rm -f conftest.$ac_objext conftest$ac_exeext
14255 if { (eval echo "$as_me:14255: \"$ac_link\"") >&5
14256 (eval $ac_link) 2>&5
14258 echo "$as_me:14258: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -s conftest$ac_exeext'
14261 { (eval echo "$as_me:14261: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:14264: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_cv_lib_bsd_strlcat=yes
14268 echo "$as_me: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14270 ac_cv_lib_bsd_strlcat=no
14272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14273 LIBS=$ac_check_lib_save_LIBS
14275 echo "$as_me:14275: result: $ac_cv_lib_bsd_strlcat" >&5
14276 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
14277 if test $ac_cv_lib_bsd_strlcat = yes; then
14279 cf_add_libs="-lbsd"
14280 # Filter out duplicates - this happens with badly-designed ".pc" files...
14281 for cf_add_1lib in $LIBS
14283 for cf_add_2lib in $cf_add_libs
14285 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14291 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14293 LIBS="$cf_add_libs"
14295 for ac_header in bsd/string.h
14297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298 echo "$as_me:14298: checking for $ac_header" >&5
14299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 cat >conftest.$ac_ext <<_ACEOF
14304 #line 14304 "configure"
14305 #include "confdefs.h"
14306 #include <$ac_header>
14308 if { (eval echo "$as_me:14308: \"$ac_cpp conftest.$ac_ext\"") >&5
14309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14311 egrep -v '^ *\+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev/null; then
14316 if test -s conftest.err; then
14317 ac_cpp_err=$ac_c_preproc_warn_flag
14324 if test -z "$ac_cpp_err"; then
14325 eval "$as_ac_Header=yes"
14327 echo "$as_me: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 eval "$as_ac_Header=no"
14331 rm -f conftest.err conftest.$ac_ext
14333 echo "$as_me:14333: result: `eval echo '${'$as_ac_Header'}'`" >&5
14334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14336 cat >>confdefs.h <<EOF
14337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 cat >>confdefs.h <<\EOF
14344 #define HAVE_STRLCAT 1
14351 for ac_func in strlcpy snprintf
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 echo "$as_me:14354: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_var+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14360 #line 14360 "configure"
14361 #include "confdefs.h"
14362 /* System header to define __stub macros and hopefully few prototypes,
14363 which can conflict with char $ac_func (); below. */
14364 #include <assert.h>
14365 /* Override any gcc2 internal prototype to avoid an error. */
14369 /* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14377 /* The GNU C library defines this for functions which it implements
14378 to always fail with ENOSYS. Some functions are actually named
14379 something starting with __ and the normal name is an alias. */
14380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14383 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (eval echo "$as_me:14391: \"$ac_link\"") >&5
14392 (eval $ac_link) 2>&5
14394 echo "$as_me:14394: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -s conftest$ac_exeext'
14397 { (eval echo "$as_me:14397: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 eval "$as_ac_var=yes"
14404 echo "$as_me: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
14406 eval "$as_ac_var=no"
14408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14410 echo "$as_me:14410: result: `eval echo '${'$as_ac_var'}'`" >&5
14411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14412 if test `eval echo '${'$as_ac_var'}'` = yes; then
14413 cat >>confdefs.h <<EOF
14414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14422 ### use option --enable-assertions to turn on generation of assertion code
14423 echo "$as_me:14423: checking if you want to enable runtime assertions" >&5
14424 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
14426 # Check whether --enable-assertions or --disable-assertions was given.
14427 if test "${enable_assertions+set}" = set; then
14428 enableval="$enable_assertions"
14429 with_assertions=$enableval
14433 echo "$as_me:14433: result: $with_assertions" >&5
14434 echo "${ECHO_T}$with_assertions" >&6
14437 if test "$with_assertions" = no
14439 CPPFLAGS="$CPPFLAGS -DNDEBUG"
14442 ADAFLAGS="$ADAFLAGS -gnata"
14447 ### use option --disable-leaks to suppress "permanent" leaks, for testing
14449 echo "$as_me:14449: checking if you want to use dmalloc for testing" >&5
14450 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
14452 # Check whether --with-dmalloc or --without-dmalloc was given.
14453 if test "${with_dmalloc+set}" = set; then
14454 withval="$with_dmalloc"
14456 cat >>confdefs.h <<EOF
14457 #define USE_DMALLOC 1
14460 : ${with_cflags:=-g}
14461 : ${with_no_leaks:=yes}
14466 echo "$as_me:14466: result: ${with_dmalloc:-no}" >&5
14467 echo "${ECHO_T}${with_dmalloc:-no}" >&6
14469 case .$with_cflags in
14479 cf_new_extra_cppflags=
14481 for cf_add_cflags in -g
14483 case $cf_fix_cppflags in
14485 case $cf_add_cflags in
14486 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14487 case $cf_add_cflags in
14489 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14491 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14492 && test -z "${cf_tst_cflags}" \
14493 && cf_fix_cppflags=yes
14495 if test $cf_fix_cppflags = yes ; then
14497 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14498 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14501 elif test "${cf_tst_cflags}" = "\"'" ; then
14503 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14504 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14510 case "$CPPFLAGS" in
14514 case $cf_add_cflags in
14516 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14518 CPPFLAGS=`echo "$CPPFLAGS" | \
14519 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14520 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14525 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14526 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14533 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14534 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14541 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14542 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14544 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14546 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14547 && test -z "${cf_tst_cflags}" \
14548 && cf_fix_cppflags=no
14553 if test -n "$cf_new_cflags" ; then
14555 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14556 CFLAGS="${CFLAGS}$cf_new_cflags"
14560 if test -n "$cf_new_cppflags" ; then
14562 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14563 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14567 if test -n "$cf_new_extra_cppflags" ; then
14569 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14570 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14579 if test "$with_dmalloc" = yes ; then
14580 echo "$as_me:14580: checking for dmalloc.h" >&5
14581 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
14582 if test "${ac_cv_header_dmalloc_h+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 cat >conftest.$ac_ext <<_ACEOF
14586 #line 14586 "configure"
14587 #include "confdefs.h"
14588 #include <dmalloc.h>
14590 if { (eval echo "$as_me:14590: \"$ac_cpp conftest.$ac_ext\"") >&5
14591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14593 egrep -v '^ *\+' conftest.er1 >conftest.err
14595 cat conftest.err >&5
14596 echo "$as_me:14596: \$? = $ac_status" >&5
14597 (exit $ac_status); } >/dev/null; then
14598 if test -s conftest.err; then
14599 ac_cpp_err=$ac_c_preproc_warn_flag
14606 if test -z "$ac_cpp_err"; then
14607 ac_cv_header_dmalloc_h=yes
14609 echo "$as_me: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14611 ac_cv_header_dmalloc_h=no
14613 rm -f conftest.err conftest.$ac_ext
14615 echo "$as_me:14615: result: $ac_cv_header_dmalloc_h" >&5
14616 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
14617 if test $ac_cv_header_dmalloc_h = yes; then
14619 echo "$as_me:14619: checking for dmalloc_debug in -ldmalloc" >&5
14620 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
14621 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 ac_check_lib_save_LIBS=$LIBS
14625 LIBS="-ldmalloc $LIBS"
14626 cat >conftest.$ac_ext <<_ACEOF
14627 #line 14627 "configure"
14628 #include "confdefs.h"
14630 /* Override any gcc2 internal prototype to avoid an error. */
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14636 char dmalloc_debug ();
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (eval echo "$as_me:14646: \"$ac_link\"") >&5
14647 (eval $ac_link) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest$ac_exeext'
14652 { (eval echo "$as_me:14652: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_lib_dmalloc_dmalloc_debug=yes
14659 echo "$as_me: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14661 ac_cv_lib_dmalloc_dmalloc_debug=no
14663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14666 echo "$as_me:14666: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
14667 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
14668 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
14669 cat >>confdefs.h <<EOF
14670 #define HAVE_LIBDMALLOC 1
14673 LIBS="-ldmalloc $LIBS"
14681 echo "$as_me:14681: checking if you want to use dbmalloc for testing" >&5
14682 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
14684 # Check whether --with-dbmalloc or --without-dbmalloc was given.
14685 if test "${with_dbmalloc+set}" = set; then
14686 withval="$with_dbmalloc"
14688 cat >>confdefs.h <<EOF
14689 #define USE_DBMALLOC 1
14692 : ${with_cflags:=-g}
14693 : ${with_no_leaks:=yes}
14698 echo "$as_me:14698: result: ${with_dbmalloc:-no}" >&5
14699 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14701 case .$with_cflags in
14711 cf_new_extra_cppflags=
14713 for cf_add_cflags in -g
14715 case $cf_fix_cppflags in
14717 case $cf_add_cflags in
14718 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14719 case $cf_add_cflags in
14721 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14723 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14724 && test -z "${cf_tst_cflags}" \
14725 && cf_fix_cppflags=yes
14727 if test $cf_fix_cppflags = yes ; then
14729 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14730 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14733 elif test "${cf_tst_cflags}" = "\"'" ; then
14735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14742 case "$CPPFLAGS" in
14746 case $cf_add_cflags in
14748 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14750 CPPFLAGS=`echo "$CPPFLAGS" | \
14751 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14752 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14757 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14758 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14765 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14766 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14773 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14774 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14776 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14778 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14779 && test -z "${cf_tst_cflags}" \
14780 && cf_fix_cppflags=no
14785 if test -n "$cf_new_cflags" ; then
14787 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14788 CFLAGS="${CFLAGS}$cf_new_cflags"
14792 if test -n "$cf_new_cppflags" ; then
14794 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14795 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14799 if test -n "$cf_new_extra_cppflags" ; then
14801 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14802 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14811 if test "$with_dbmalloc" = yes ; then
14812 echo "$as_me:14812: checking for dbmalloc.h" >&5
14813 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14814 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 cat >conftest.$ac_ext <<_ACEOF
14818 #line 14818 "configure"
14819 #include "confdefs.h"
14820 #include <dbmalloc.h>
14822 if { (eval echo "$as_me:14822: \"$ac_cpp conftest.$ac_ext\"") >&5
14823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14825 egrep -v '^ *\+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:14828: \$? = $ac_status" >&5
14829 (exit $ac_status); } >/dev/null; then
14830 if test -s conftest.err; then
14831 ac_cpp_err=$ac_c_preproc_warn_flag
14838 if test -z "$ac_cpp_err"; then
14839 ac_cv_header_dbmalloc_h=yes
14841 echo "$as_me: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14843 ac_cv_header_dbmalloc_h=no
14845 rm -f conftest.err conftest.$ac_ext
14847 echo "$as_me:14847: result: $ac_cv_header_dbmalloc_h" >&5
14848 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14849 if test $ac_cv_header_dbmalloc_h = yes; then
14851 echo "$as_me:14851: checking for debug_malloc in -ldbmalloc" >&5
14852 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14853 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 ac_check_lib_save_LIBS=$LIBS
14857 LIBS="-ldbmalloc $LIBS"
14858 cat >conftest.$ac_ext <<_ACEOF
14859 #line 14859 "configure"
14860 #include "confdefs.h"
14862 /* Override any gcc2 internal prototype to avoid an error. */
14866 /* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14868 char debug_malloc ();
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:14878: \"$ac_link\"") >&5
14879 (eval $ac_link) 2>&5
14881 echo "$as_me:14881: \$? = $ac_status" >&5
14882 (exit $ac_status); } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (eval echo "$as_me:14884: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:14887: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_lib_dbmalloc_debug_malloc=yes
14891 echo "$as_me: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14893 ac_cv_lib_dbmalloc_debug_malloc=no
14895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14898 echo "$as_me:14898: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14899 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14900 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14901 cat >>confdefs.h <<EOF
14902 #define HAVE_LIBDBMALLOC 1
14905 LIBS="-ldbmalloc $LIBS"
14913 echo "$as_me:14913: checking if you want to use valgrind for testing" >&5
14914 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14916 # Check whether --with-valgrind or --without-valgrind was given.
14917 if test "${with_valgrind+set}" = set; then
14918 withval="$with_valgrind"
14920 cat >>confdefs.h <<EOF
14921 #define USE_VALGRIND 1
14924 : ${with_cflags:=-g}
14925 : ${with_no_leaks:=yes}
14930 echo "$as_me:14930: result: ${with_valgrind:-no}" >&5
14931 echo "${ECHO_T}${with_valgrind:-no}" >&6
14933 case .$with_cflags in
14943 cf_new_extra_cppflags=
14945 for cf_add_cflags in -g
14947 case $cf_fix_cppflags in
14949 case $cf_add_cflags in
14950 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14951 case $cf_add_cflags in
14953 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14955 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14956 && test -z "${cf_tst_cflags}" \
14957 && cf_fix_cppflags=yes
14959 if test $cf_fix_cppflags = yes ; then
14961 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14962 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14965 elif test "${cf_tst_cflags}" = "\"'" ; then
14967 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14968 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14974 case "$CPPFLAGS" in
14978 case $cf_add_cflags in
14980 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14982 CPPFLAGS=`echo "$CPPFLAGS" | \
14983 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14984 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14989 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14990 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14997 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14998 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15005 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15006 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15008 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15010 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15011 && test -z "${cf_tst_cflags}" \
15012 && cf_fix_cppflags=no
15017 if test -n "$cf_new_cflags" ; then
15019 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15020 CFLAGS="${CFLAGS}$cf_new_cflags"
15024 if test -n "$cf_new_cppflags" ; then
15026 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15027 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15031 if test -n "$cf_new_extra_cppflags" ; then
15033 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15034 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15043 echo "$as_me:15043: checking if you want to perform memory-leak testing" >&5
15044 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
15046 # Check whether --enable-leaks or --disable-leaks was given.
15047 if test "${enable_leaks+set}" = set; then
15048 enableval="$enable_leaks"
15049 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
15051 : ${with_no_leaks:=no}
15053 echo "$as_me:15053: result: $with_no_leaks" >&5
15054 echo "${ECHO_T}$with_no_leaks" >&6
15056 if test "$with_no_leaks" = yes ; then
15058 cat >>confdefs.h <<\EOF
15062 cat >>confdefs.h <<\EOF
15063 #define YY_NO_LEAKS 1
15068 cat >>confdefs.h <<\EOF
15069 #define HAVE_NC_ALLOC_H 1
15072 ### use option --enable-expanded to generate certain macros as functions
15074 # Check whether --enable-expanded or --disable-expanded was given.
15075 if test "${enable_expanded+set}" = set; then
15076 enableval="$enable_expanded"
15077 test "x$enableval" = xyes &&
15078 cat >>confdefs.h <<\EOF
15079 #define NCURSES_EXPANDED 1
15084 ### use option --disable-macros to suppress macros in favor of functions
15086 # Check whether --enable-macros or --disable-macros was given.
15087 if test "${enable_macros+set}" = set; then
15088 enableval="$enable_macros"
15089 test "$enableval" = no &&
15090 cat >>confdefs.h <<\EOF
15091 #define NCURSES_NOMACROS 1
15096 # Normally we only add trace() to the debug-library. Allow this to be
15097 # extended to all models of the ncurses library:
15099 case "$CFLAGS $CPPFLAGS" in
15105 echo "$as_me:15105: checking whether to add trace feature to all models" >&5
15106 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
15108 # Check whether --with-trace or --without-trace was given.
15109 if test "${with_trace+set}" = set; then
15110 withval="$with_trace"
15111 cf_with_trace=$withval
15113 cf_with_trace=$cf_all_traces
15115 echo "$as_me:15115: result: $cf_with_trace" >&5
15116 echo "${ECHO_T}$cf_with_trace" >&6
15118 if test "x$cf_with_trace" = xyes ; then
15125 cf_new_extra_cppflags=
15127 for cf_add_cflags in -DTRACE
15129 case $cf_fix_cppflags in
15131 case $cf_add_cflags in
15132 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15133 case $cf_add_cflags in
15135 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15137 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15138 && test -z "${cf_tst_cflags}" \
15139 && cf_fix_cppflags=yes
15141 if test $cf_fix_cppflags = yes ; then
15143 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15144 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15147 elif test "${cf_tst_cflags}" = "\"'" ; then
15149 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15150 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15156 case "$CPPFLAGS" in
15160 case $cf_add_cflags in
15162 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15164 CPPFLAGS=`echo "$CPPFLAGS" | \
15165 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15166 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15171 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15172 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15179 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15180 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15187 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15188 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15190 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15192 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15193 && test -z "${cf_tst_cflags}" \
15194 && cf_fix_cppflags=no
15199 if test -n "$cf_new_cflags" ; then
15201 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15202 CFLAGS="${CFLAGS}$cf_new_cflags"
15206 if test -n "$cf_new_cppflags" ; then
15208 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15209 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15213 if test -n "$cf_new_extra_cppflags" ; then
15215 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15216 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15220 cat >>confdefs.h <<\EOF
15221 #define HAVE__TRACEF 1
15229 echo "$as_me:15229: checking if we want to use GNAT projects" >&5
15230 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
15232 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
15233 if test "${enable_gnat_projects+set}" = set; then
15234 enableval="$enable_gnat_projects"
15235 test "$enableval" != no && enableval=yes
15236 if test "$enableval" != "yes" ; then
15237 enable_gnat_projects=no
15239 enable_gnat_projects=yes
15243 enable_gnat_projects=yes
15246 echo "$as_me:15246: result: $enable_gnat_projects" >&5
15247 echo "${ECHO_T}$enable_gnat_projects" >&6
15249 ### Checks for libraries.
15250 case $cf_cv_system_name in
15251 (*mingw32*|*mingw64*)
15252 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
15253 LIBS=" -lpsapi $LIBS"
15256 echo "$as_me:15256: checking for gettimeofday" >&5
15257 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
15258 if test "${ac_cv_func_gettimeofday+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 cat >conftest.$ac_ext <<_ACEOF
15262 #line 15262 "configure"
15263 #include "confdefs.h"
15264 /* System header to define __stub macros and hopefully few prototypes,
15265 which can conflict with char gettimeofday (); below. */
15266 #include <assert.h>
15267 /* Override any gcc2 internal prototype to avoid an error. */
15271 /* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15273 char gettimeofday ();
15279 /* The GNU C library defines this for functions which it implements
15280 to always fail with ENOSYS. Some functions are actually named
15281 something starting with __ and the normal name is an alias. */
15282 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
15285 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (eval echo "$as_me:15293: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>&5
15296 echo "$as_me:15296: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (eval echo "$as_me:15299: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:15302: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_func_gettimeofday=yes
15306 echo "$as_me: failed program was:" >&5
15307 cat conftest.$ac_ext >&5
15308 ac_cv_func_gettimeofday=no
15310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15312 echo "$as_me:15312: result: $ac_cv_func_gettimeofday" >&5
15313 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
15314 if test $ac_cv_func_gettimeofday = yes; then
15316 cat >>confdefs.h <<\EOF
15317 #define HAVE_GETTIMEOFDAY 1
15322 echo "$as_me:15322: checking for gettimeofday in -lbsd" >&5
15323 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
15324 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 ac_check_lib_save_LIBS=$LIBS
15329 cat >conftest.$ac_ext <<_ACEOF
15330 #line 15330 "configure"
15331 #include "confdefs.h"
15333 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15339 char gettimeofday ();
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:15349: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>&5
15352 echo "$as_me:15352: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -s conftest$ac_exeext'
15355 { (eval echo "$as_me:15355: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15358 echo "$as_me:15358: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_cv_lib_bsd_gettimeofday=yes
15362 echo "$as_me: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15364 ac_cv_lib_bsd_gettimeofday=no
15366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15367 LIBS=$ac_check_lib_save_LIBS
15369 echo "$as_me:15369: result: $ac_cv_lib_bsd_gettimeofday" >&5
15370 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
15371 if test $ac_cv_lib_bsd_gettimeofday = yes; then
15373 cat >>confdefs.h <<\EOF
15374 #define HAVE_GETTIMEOFDAY 1
15377 cf_add_libs="-lbsd"
15378 # Filter out duplicates - this happens with badly-designed ".pc" files...
15379 for cf_add_1lib in $LIBS
15381 for cf_add_2lib in $cf_add_libs
15383 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15389 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15391 LIBS="$cf_add_libs"
15399 echo "$as_me:15399: checking if -lm needed for math functions" >&5
15400 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
15401 if test "${cf_cv_need_libm+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 cat >conftest.$ac_ext <<_ACEOF
15406 #line 15406 "configure"
15407 #include "confdefs.h"
15410 #include <stdlib.h>
15416 double x = rand(); printf("result = %g\n", pow(sin(x),x))
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (eval echo "$as_me:15422: \"$ac_link\"") >&5
15423 (eval $ac_link) 2>&5
15425 echo "$as_me:15425: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (eval echo "$as_me:15428: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15431 echo "$as_me:15431: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15435 echo "$as_me: failed program was:" >&5
15436 cat conftest.$ac_ext >&5
15437 cf_cv_need_libm=yes
15439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15441 echo "$as_me:15441: result: $cf_cv_need_libm" >&5
15442 echo "${ECHO_T}$cf_cv_need_libm" >&6
15443 if test "$cf_cv_need_libm" = yes
15448 ### Checks for header files.
15449 echo "$as_me:15449: checking for ANSI C header files" >&5
15450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15451 if test "${ac_cv_header_stdc+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15455 #line 15455 "configure"
15456 #include "confdefs.h"
15457 #include <stdlib.h>
15458 #include <stdarg.h>
15459 #include <string.h>
15463 if { (eval echo "$as_me:15463: \"$ac_cpp conftest.$ac_ext\"") >&5
15464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15466 egrep -v '^ *\+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 echo "$as_me:15469: \$? = $ac_status" >&5
15470 (exit $ac_status); } >/dev/null; then
15471 if test -s conftest.err; then
15472 ac_cpp_err=$ac_c_preproc_warn_flag
15479 if test -z "$ac_cpp_err"; then
15480 ac_cv_header_stdc=yes
15482 echo "$as_me: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15484 ac_cv_header_stdc=no
15486 rm -f conftest.err conftest.$ac_ext
15488 if test $ac_cv_header_stdc = yes; then
15489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15490 cat >conftest.$ac_ext <<_ACEOF
15491 #line 15491 "configure"
15492 #include "confdefs.h"
15493 #include <string.h>
15496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15497 egrep "memchr" >/dev/null 2>&1; then
15500 ac_cv_header_stdc=no
15506 if test $ac_cv_header_stdc = yes; then
15507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15508 cat >conftest.$ac_ext <<_ACEOF
15509 #line 15509 "configure"
15510 #include "confdefs.h"
15511 #include <stdlib.h>
15514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15515 egrep "free" >/dev/null 2>&1; then
15518 ac_cv_header_stdc=no
15524 if test $ac_cv_header_stdc = yes; then
15525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15526 if test "$cross_compiling" = yes; then
15529 cat >conftest.$ac_ext <<_ACEOF
15530 #line 15530 "configure"
15531 #include "confdefs.h"
15533 #if ((' ' & 0x0FF) == 0x020)
15534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15537 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15538 || ('j' <= (c) && (c) <= 'r') \
15539 || ('s' <= (c) && (c) <= 'z'))
15540 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15543 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15548 for (i = 0; i < 256; i++)
15549 if (XOR (islower (i), ISLOWER (i))
15550 || toupper (i) != TOUPPER (i))
15551 $ac_main_return(2);
15552 $ac_main_return (0);
15555 rm -f conftest$ac_exeext
15556 if { (eval echo "$as_me:15556: \"$ac_link\"") >&5
15557 (eval $ac_link) 2>&5
15559 echo "$as_me:15559: \$? = $ac_status" >&5
15560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15561 { (eval echo "$as_me:15561: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15568 echo "$as_me: program exited with status $ac_status" >&5
15569 echo "$as_me: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15571 ac_cv_header_stdc=no
15573 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15577 echo "$as_me:15577: result: $ac_cv_header_stdc" >&5
15578 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15579 if test $ac_cv_header_stdc = yes; then
15581 cat >>confdefs.h <<\EOF
15582 #define STDC_HEADERS 1
15587 ac_header_dirent=no
15588 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15589 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15590 echo "$as_me:15590: checking for $ac_hdr that defines DIR" >&5
15591 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15596 #line 15596 "configure"
15597 #include "confdefs.h"
15598 #include <sys/types.h>
15610 rm -f conftest.$ac_objext
15611 if { (eval echo "$as_me:15611: \"$ac_compile\"") >&5
15612 (eval $ac_compile) 2>&5
15614 echo "$as_me:15614: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:15617: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:15620: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 eval "$as_ac_Header=yes"
15624 echo "$as_me: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15626 eval "$as_ac_Header=no"
15628 rm -f conftest.$ac_objext conftest.$ac_ext
15630 echo "$as_me:15630: result: `eval echo '${'$as_ac_Header'}'`" >&5
15631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15633 cat >>confdefs.h <<EOF
15634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15637 ac_header_dirent=$ac_hdr; break
15641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15642 if test $ac_header_dirent = dirent.h; then
15643 echo "$as_me:15643: checking for opendir in -ldir" >&5
15644 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
15645 if test "${ac_cv_lib_dir_opendir+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 ac_check_lib_save_LIBS=$LIBS
15650 cat >conftest.$ac_ext <<_ACEOF
15651 #line 15651 "configure"
15652 #include "confdefs.h"
15654 /* Override any gcc2 internal prototype to avoid an error. */
15658 /* We use char because int might match the return type of a gcc2
15659 builtin and then its argument prototype would still apply. */
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (eval echo "$as_me:15670: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>&5
15673 echo "$as_me:15673: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -s conftest$ac_exeext'
15676 { (eval echo "$as_me:15676: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15679 echo "$as_me:15679: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15681 ac_cv_lib_dir_opendir=yes
15683 echo "$as_me: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15685 ac_cv_lib_dir_opendir=no
15687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15690 echo "$as_me:15690: result: $ac_cv_lib_dir_opendir" >&5
15691 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
15692 if test $ac_cv_lib_dir_opendir = yes; then
15697 echo "$as_me:15697: checking for opendir in -lx" >&5
15698 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
15699 if test "${ac_cv_lib_x_opendir+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 ac_check_lib_save_LIBS=$LIBS
15704 cat >conftest.$ac_ext <<_ACEOF
15705 #line 15705 "configure"
15706 #include "confdefs.h"
15708 /* Override any gcc2 internal prototype to avoid an error. */
15712 /* We use char because int might match the return type of a gcc2
15713 builtin and then its argument prototype would still apply. */
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:15724: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>&5
15727 echo "$as_me:15727: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:15730: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:15733: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735 ac_cv_lib_x_opendir=yes
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 ac_cv_lib_x_opendir=no
15741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15744 echo "$as_me:15744: result: $ac_cv_lib_x_opendir" >&5
15745 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15746 if test $ac_cv_lib_x_opendir = yes; then
15752 echo "$as_me:15752: checking whether time.h and sys/time.h may both be included" >&5
15753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15754 if test "${ac_cv_header_time+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15758 #line 15758 "configure"
15759 #include "confdefs.h"
15760 #include <sys/types.h>
15761 #include <sys/time.h>
15767 if ((struct tm *) 0)
15773 rm -f conftest.$ac_objext
15774 if { (eval echo "$as_me:15774: \"$ac_compile\"") >&5
15775 (eval $ac_compile) 2>&5
15777 echo "$as_me:15777: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (eval echo "$as_me:15780: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15783 echo "$as_me:15783: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15785 ac_cv_header_time=yes
15787 echo "$as_me: failed program was:" >&5
15788 cat conftest.$ac_ext >&5
15789 ac_cv_header_time=no
15791 rm -f conftest.$ac_objext conftest.$ac_ext
15793 echo "$as_me:15793: result: $ac_cv_header_time" >&5
15794 echo "${ECHO_T}$ac_cv_header_time" >&6
15795 if test $ac_cv_header_time = yes; then
15797 cat >>confdefs.h <<\EOF
15798 #define TIME_WITH_SYS_TIME 1
15805 cf_regex_libs="regex re"
15808 cf_regex_libs="gnurx $cf_regex_libs"
15812 echo "$as_me:15812: checking for regcomp" >&5
15813 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15814 if test "${ac_cv_func_regcomp+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 cat >conftest.$ac_ext <<_ACEOF
15818 #line 15818 "configure"
15819 #include "confdefs.h"
15820 /* System header to define __stub macros and hopefully few prototypes,
15821 which can conflict with char regcomp (); below. */
15822 #include <assert.h>
15823 /* Override any gcc2 internal prototype to avoid an error. */
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15841 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:15849: \"$ac_link\"") >&5
15850 (eval $ac_link) 2>&5
15852 echo "$as_me:15852: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -s conftest$ac_exeext'
15855 { (eval echo "$as_me:15855: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:15858: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_func_regcomp=yes
15862 echo "$as_me: failed program was:" >&5
15863 cat conftest.$ac_ext >&5
15864 ac_cv_func_regcomp=no
15866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15868 echo "$as_me:15868: result: $ac_cv_func_regcomp" >&5
15869 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
15870 if test $ac_cv_func_regcomp = yes; then
15871 cf_regex_func=regcomp
15874 for cf_regex_lib in $cf_regex_libs
15876 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
15877 echo "$as_me:15877: checking for regcomp in -l$cf_regex_lib" >&5
15878 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 ac_check_lib_save_LIBS=$LIBS
15883 LIBS="-l$cf_regex_lib $LIBS"
15884 cat >conftest.$ac_ext <<_ACEOF
15885 #line 15885 "configure"
15886 #include "confdefs.h"
15888 /* Override any gcc2 internal prototype to avoid an error. */
15892 /* We use char because int might match the return type of a gcc2
15893 builtin and then its argument prototype would still apply. */
15903 rm -f conftest.$ac_objext conftest$ac_exeext
15904 if { (eval echo "$as_me:15904: \"$ac_link\"") >&5
15905 (eval $ac_link) 2>&5
15907 echo "$as_me:15907: \$? = $ac_status" >&5
15908 (exit $ac_status); } &&
15909 { ac_try='test -s conftest$ac_exeext'
15910 { (eval echo "$as_me:15910: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:15913: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 eval "$as_ac_Lib=yes"
15917 echo "$as_me: failed program was:" >&5
15918 cat conftest.$ac_ext >&5
15919 eval "$as_ac_Lib=no"
15921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15922 LIBS=$ac_check_lib_save_LIBS
15924 echo "$as_me:15924: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15925 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15926 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15928 cf_add_libs="-l$cf_regex_lib"
15929 # Filter out duplicates - this happens with badly-designed ".pc" files...
15930 for cf_add_1lib in $LIBS
15932 for cf_add_2lib in $cf_add_libs
15934 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15940 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15942 LIBS="$cf_add_libs"
15944 cf_regex_func=regcomp
15952 if test "$cf_regex_func" = no ; then
15953 echo "$as_me:15953: checking for compile" >&5
15954 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15955 if test "${ac_cv_func_compile+set}" = set; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 cat >conftest.$ac_ext <<_ACEOF
15959 #line 15959 "configure"
15960 #include "confdefs.h"
15961 /* System header to define __stub macros and hopefully few prototypes,
15962 which can conflict with char compile (); below. */
15963 #include <assert.h>
15964 /* Override any gcc2 internal prototype to avoid an error. */
15968 /* We use char because int might match the return type of a gcc2
15969 builtin and then its argument prototype would still apply. */
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined (__stub_compile) || defined (__stub___compile)
15982 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:15990: \"$ac_link\"") >&5
15991 (eval $ac_link) 2>&5
15993 echo "$as_me:15993: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -s conftest$ac_exeext'
15996 { (eval echo "$as_me:15996: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:15999: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_cv_func_compile=yes
16003 echo "$as_me: failed program was:" >&5
16004 cat conftest.$ac_ext >&5
16005 ac_cv_func_compile=no
16007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16009 echo "$as_me:16009: result: $ac_cv_func_compile" >&5
16010 echo "${ECHO_T}$ac_cv_func_compile" >&6
16011 if test $ac_cv_func_compile = yes; then
16012 cf_regex_func=compile
16015 echo "$as_me:16015: checking for compile in -lgen" >&5
16016 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
16017 if test "${ac_cv_lib_gen_compile+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 ac_check_lib_save_LIBS=$LIBS
16022 cat >conftest.$ac_ext <<_ACEOF
16023 #line 16023 "configure"
16024 #include "confdefs.h"
16026 /* Override any gcc2 internal prototype to avoid an error. */
16030 /* We use char because int might match the return type of a gcc2
16031 builtin and then its argument prototype would still apply. */
16041 rm -f conftest.$ac_objext conftest$ac_exeext
16042 if { (eval echo "$as_me:16042: \"$ac_link\"") >&5
16043 (eval $ac_link) 2>&5
16045 echo "$as_me:16045: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -s conftest$ac_exeext'
16048 { (eval echo "$as_me:16048: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:16051: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053 ac_cv_lib_gen_compile=yes
16055 echo "$as_me: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16057 ac_cv_lib_gen_compile=no
16059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16060 LIBS=$ac_check_lib_save_LIBS
16062 echo "$as_me:16062: result: $ac_cv_lib_gen_compile" >&5
16063 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
16064 if test $ac_cv_lib_gen_compile = yes; then
16066 cf_add_libs="-lgen"
16067 # Filter out duplicates - this happens with badly-designed ".pc" files...
16068 for cf_add_1lib in $LIBS
16070 for cf_add_2lib in $cf_add_libs
16072 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16078 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16080 LIBS="$cf_add_libs"
16082 cf_regex_func=compile
16089 if test "$cf_regex_func" = no ; then
16090 { echo "$as_me:16090: WARNING: cannot find regular expression library" >&5
16091 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
16094 echo "$as_me:16094: checking for regular-expression headers" >&5
16095 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
16096 if test "${cf_cv_regex_hdrs+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 cf_cv_regex_hdrs=no
16101 case $cf_regex_func in
16103 for cf_regex_hdr in regexp.h regexpr.h
16105 cat >conftest.$ac_ext <<_ACEOF
16106 #line 16106 "configure"
16107 #include "confdefs.h"
16108 #include <$cf_regex_hdr>
16113 char *p = compile("", "", "", 0);
16114 int x = step("", "");
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:16121: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>&5
16124 echo "$as_me:16124: \$? = $ac_status" >&5
16125 (exit $ac_status); } &&
16126 { ac_try='test -s conftest$ac_exeext'
16127 { (eval echo "$as_me:16127: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16130 echo "$as_me:16130: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16133 cf_cv_regex_hdrs=$cf_regex_hdr
16137 echo "$as_me: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16144 for cf_regex_hdr in regex.h
16146 cat >conftest.$ac_ext <<_ACEOF
16147 #line 16147 "configure"
16148 #include "confdefs.h"
16149 #include <sys/types.h>
16150 #include <$cf_regex_hdr>
16156 int x = regcomp(p, "", 0);
16157 int y = regexec(p, "", 0, 0, 0);
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (eval echo "$as_me:16165: \"$ac_link\"") >&5
16166 (eval $ac_link) 2>&5
16168 echo "$as_me:16168: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (eval echo "$as_me:16171: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16174 echo "$as_me:16174: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16177 cf_cv_regex_hdrs=$cf_regex_hdr
16181 echo "$as_me: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16190 echo "$as_me:16190: result: $cf_cv_regex_hdrs" >&5
16191 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
16193 case $cf_cv_regex_hdrs in
16194 (no) { echo "$as_me:16194: WARNING: no regular expression header found" >&5
16195 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
16197 cat >>confdefs.h <<\EOF
16198 #define HAVE_REGEX_H_FUNCS 1
16202 cat >>confdefs.h <<\EOF
16203 #define HAVE_REGEXP_H_FUNCS 1
16207 cat >>confdefs.h <<\EOF
16208 #define HAVE_REGEXPR_H_FUNCS 1
16232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16233 echo "$as_me:16233: checking for $ac_header" >&5
16234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.$ac_ext <<_ACEOF
16239 #line 16239 "configure"
16240 #include "confdefs.h"
16241 #include <$ac_header>
16243 if { (eval echo "$as_me:16243: \"$ac_cpp conftest.$ac_ext\"") >&5
16244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16246 egrep -v '^ *\+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:16249: \$? = $ac_status" >&5
16250 (exit $ac_status); } >/dev/null; then
16251 if test -s conftest.err; then
16252 ac_cpp_err=$ac_c_preproc_warn_flag
16259 if test -z "$ac_cpp_err"; then
16260 eval "$as_ac_Header=yes"
16262 echo "$as_me: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16264 eval "$as_ac_Header=no"
16266 rm -f conftest.err conftest.$ac_ext
16268 echo "$as_me:16268: result: `eval echo '${'$as_ac_Header'}'`" >&5
16269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16271 cat >>confdefs.h <<EOF
16272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16278 for ac_header in unistd.h getopt.h
16280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281 echo "$as_me:16281: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 cat >conftest.$ac_ext <<_ACEOF
16287 #line 16287 "configure"
16288 #include "confdefs.h"
16289 #include <$ac_header>
16291 if { (eval echo "$as_me:16291: \"$ac_cpp conftest.$ac_ext\"") >&5
16292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16294 egrep -v '^ *\+' conftest.er1 >conftest.err
16296 cat conftest.err >&5
16297 echo "$as_me:16297: \$? = $ac_status" >&5
16298 (exit $ac_status); } >/dev/null; then
16299 if test -s conftest.err; then
16300 ac_cpp_err=$ac_c_preproc_warn_flag
16307 if test -z "$ac_cpp_err"; then
16308 eval "$as_ac_Header=yes"
16310 echo "$as_me: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 eval "$as_ac_Header=no"
16314 rm -f conftest.err conftest.$ac_ext
16316 echo "$as_me:16316: result: `eval echo '${'$as_ac_Header'}'`" >&5
16317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16319 cat >>confdefs.h <<EOF
16320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16326 echo "$as_me:16326: checking for header declaring getopt variables" >&5
16327 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
16328 if test "${cf_cv_getopt_header+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 cf_cv_getopt_header=none
16333 for cf_header in stdio.h stdlib.h unistd.h getopt.h
16335 cat >conftest.$ac_ext <<_ACEOF
16336 #line 16336 "configure"
16337 #include "confdefs.h"
16339 #include <$cf_header>
16343 int x = optind; char *y = optarg
16348 rm -f conftest.$ac_objext
16349 if { (eval echo "$as_me:16349: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>&5
16352 echo "$as_me:16352: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (eval echo "$as_me:16355: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:16358: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 cf_cv_getopt_header=$cf_header
16363 echo "$as_me: failed program was:" >&5
16364 cat conftest.$ac_ext >&5
16366 rm -f conftest.$ac_objext conftest.$ac_ext
16370 echo "$as_me:16370: result: $cf_cv_getopt_header" >&5
16371 echo "${ECHO_T}$cf_cv_getopt_header" >&6
16372 if test $cf_cv_getopt_header != none ; then
16374 cat >>confdefs.h <<\EOF
16375 #define HAVE_GETOPT_HEADER 1
16379 if test $cf_cv_getopt_header = getopt.h ; then
16381 cat >>confdefs.h <<\EOF
16382 #define NEED_GETOPT_H 1
16387 # check for ISC (this may also define _POSIX_SOURCE)
16388 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
16389 if test "x$ISC" = xyes ; then
16391 echo "$as_me:16391: checking for main in -lcposix" >&5
16392 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
16393 if test "${ac_cv_lib_cposix_main+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 ac_check_lib_save_LIBS=$LIBS
16397 LIBS="-lcposix $LIBS"
16398 cat >conftest.$ac_ext <<_ACEOF
16399 #line 16399 "configure"
16400 #include "confdefs.h"
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:16411: \"$ac_link\"") >&5
16412 (eval $ac_link) 2>&5
16414 echo "$as_me:16414: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:16417: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:16420: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_lib_cposix_main=yes
16424 echo "$as_me: failed program was:" >&5
16425 cat conftest.$ac_ext >&5
16426 ac_cv_lib_cposix_main=no
16428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 echo "$as_me:16431: result: $ac_cv_lib_cposix_main" >&5
16432 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
16433 if test $ac_cv_lib_cposix_main = yes; then
16434 cat >>confdefs.h <<EOF
16435 #define HAVE_LIBCPOSIX 1
16438 LIBS="-lcposix $LIBS"
16442 echo "$as_me:16442: checking for bzero in -linet" >&5
16443 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
16444 if test "${ac_cv_lib_inet_bzero+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 ac_check_lib_save_LIBS=$LIBS
16448 LIBS="-linet $LIBS"
16449 cat >conftest.$ac_ext <<_ACEOF
16450 #line 16450 "configure"
16451 #include "confdefs.h"
16453 /* Override any gcc2 internal prototype to avoid an error. */
16457 /* We use char because int might match the return type of a gcc2
16458 builtin and then its argument prototype would still apply. */
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (eval echo "$as_me:16469: \"$ac_link\"") >&5
16470 (eval $ac_link) 2>&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -s conftest$ac_exeext'
16475 { (eval echo "$as_me:16475: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:16478: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_cv_lib_inet_bzero=yes
16482 echo "$as_me: failed program was:" >&5
16483 cat conftest.$ac_ext >&5
16484 ac_cv_lib_inet_bzero=no
16486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16487 LIBS=$ac_check_lib_save_LIBS
16489 echo "$as_me:16489: result: $ac_cv_lib_inet_bzero" >&5
16490 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
16491 if test $ac_cv_lib_inet_bzero = yes; then
16493 cf_add_libs="-linet"
16494 # Filter out duplicates - this happens with badly-designed ".pc" files...
16495 for cf_add_1lib in $LIBS
16497 for cf_add_2lib in $cf_add_libs
16499 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16505 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16507 LIBS="$cf_add_libs"
16512 echo "$as_me:16512: checking if sys/time.h works with sys/select.h" >&5
16513 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16514 if test "${cf_cv_sys_time_select+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line 16519 "configure"
16520 #include "confdefs.h"
16522 #include <sys/types.h>
16523 #ifdef HAVE_SYS_TIME_H
16524 #include <sys/time.h>
16526 #ifdef HAVE_SYS_SELECT_H
16527 #include <sys/select.h>
16538 rm -f conftest.$ac_objext
16539 if { (eval echo "$as_me:16539: \"$ac_compile\"") >&5
16540 (eval $ac_compile) 2>&5
16542 echo "$as_me:16542: \$? = $ac_status" >&5
16543 (exit $ac_status); } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:16545: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:16548: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 cf_cv_sys_time_select=yes
16552 echo "$as_me: failed program was:" >&5
16553 cat conftest.$ac_ext >&5
16554 cf_cv_sys_time_select=no
16556 rm -f conftest.$ac_objext conftest.$ac_ext
16560 echo "$as_me:16560: result: $cf_cv_sys_time_select" >&5
16561 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16562 test "$cf_cv_sys_time_select" = yes &&
16563 cat >>confdefs.h <<\EOF
16564 #define HAVE_SYS_TIME_SELECT 1
16567 ### checks for compiler characteristics
16569 ac_cpp='$CPP $CPPFLAGS'
16570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16573 ac_main_return=return
16575 echo "$as_me:16575: checking for an ANSI C-conforming const" >&5
16576 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16577 if test "${ac_cv_c_const+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16581 #line 16581 "configure"
16582 #include "confdefs.h"
16587 /* FIXME: Include the comments suggested by Paul. */
16588 #ifndef __cplusplus
16589 /* Ultrix mips cc rejects this. */
16590 typedef int charset[2];
16592 /* SunOS 4.1.1 cc rejects this. */
16593 char const *const *ccp;
16595 /* NEC SVR4.0.2 mips cc rejects this. */
16596 struct point {int x, y;};
16597 static struct point const zero = {0,0};
16598 /* AIX XL C 1.02.0.0 rejects this.
16599 It does not let you subtract one const X* pointer from another in
16600 an arm of an if-expression whose if-part is not a constant
16602 const char *g = "string";
16603 ccp = &g + (g ? g-g : 0);
16604 /* HPUX 7.0 cc rejects these. */
16607 ccp = (char const *const *) p;
16608 { /* SCO 3.2v4 cc rejects this. */
16610 char const *s = 0 ? (char *) 0 : (char const *) 0;
16614 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16615 int x[] = {25, 17};
16616 const int *foo = &x[0];
16619 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16620 typedef const int *iptr;
16624 { /* AIX XL C 1.02.0.0 rejects this saying
16625 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16626 struct s { int j; const int *ap[3]; };
16627 struct s *b; b->j = 5;
16629 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16630 const int foo = 10;
16638 rm -f conftest.$ac_objext
16639 if { (eval echo "$as_me:16639: \"$ac_compile\"") >&5
16640 (eval $ac_compile) 2>&5
16642 echo "$as_me:16642: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -s conftest.$ac_objext'
16645 { (eval echo "$as_me:16645: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16648 echo "$as_me:16648: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
16652 echo "$as_me: failed program was:" >&5
16653 cat conftest.$ac_ext >&5
16656 rm -f conftest.$ac_objext conftest.$ac_ext
16658 echo "$as_me:16658: result: $ac_cv_c_const" >&5
16659 echo "${ECHO_T}$ac_cv_c_const" >&6
16660 if test $ac_cv_c_const = no; then
16662 cat >>confdefs.h <<\EOF
16668 echo "$as_me:16668: checking for inline" >&5
16669 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16670 if test "${ac_cv_c_inline+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 for ac_kw in inline __inline__ __inline; do
16675 cat >conftest.$ac_ext <<_ACEOF
16676 #line 16676 "configure"
16677 #include "confdefs.h"
16678 #ifndef __cplusplus
16679 static $ac_kw int static_foo () {return 0; }
16680 $ac_kw int foo () {return 0; }
16684 rm -f conftest.$ac_objext
16685 if { (eval echo "$as_me:16685: \"$ac_compile\"") >&5
16686 (eval $ac_compile) 2>&5
16688 echo "$as_me:16688: \$? = $ac_status" >&5
16689 (exit $ac_status); } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (eval echo "$as_me:16691: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:16694: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_cv_c_inline=$ac_kw; break
16698 echo "$as_me: failed program was:" >&5
16699 cat conftest.$ac_ext >&5
16701 rm -f conftest.$ac_objext conftest.$ac_ext
16705 echo "$as_me:16705: result: $ac_cv_c_inline" >&5
16706 echo "${ECHO_T}$ac_cv_c_inline" >&6
16707 case $ac_cv_c_inline in
16710 cat >>confdefs.h <<\EOF
16714 *) cat >>confdefs.h <<EOF
16715 #define inline $ac_cv_c_inline
16721 if test "$ac_cv_c_inline" != no ; then
16722 NCURSES_INLINE=inline
16723 if test "$INTEL_COMPILER" = yes
16726 elif test "$CLANG_COMPILER" = yes
16729 elif test "$GCC" = yes
16731 echo "$as_me:16731: checking if $CC supports options to tune inlining" >&5
16732 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
16733 if test "${cf_cv_gcc_inline+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 cf_save_CFLAGS=$CFLAGS
16738 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
16739 cat >conftest.$ac_ext <<_ACEOF
16740 #line 16740 "configure"
16741 #include "confdefs.h"
16742 inline int foo(void) { return 1; }
16746 ${cf_cv_main_return:-return} foo()
16751 rm -f conftest.$ac_objext
16752 if { (eval echo "$as_me:16752: \"$ac_compile\"") >&5
16753 (eval $ac_compile) 2>&5
16755 echo "$as_me:16755: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -s conftest.$ac_objext'
16758 { (eval echo "$as_me:16758: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16761 echo "$as_me:16761: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 cf_cv_gcc_inline=yes
16765 echo "$as_me: failed program was:" >&5
16766 cat conftest.$ac_ext >&5
16767 cf_cv_gcc_inline=no
16769 rm -f conftest.$ac_objext conftest.$ac_ext
16770 CFLAGS=$cf_save_CFLAGS
16773 echo "$as_me:16773: result: $cf_cv_gcc_inline" >&5
16774 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16775 if test "$cf_cv_gcc_inline" = yes ; then
16780 cf_new_extra_cppflags=
16782 for cf_add_cflags in --param max-inline-insns-single=1200
16784 case $cf_fix_cppflags in
16786 case $cf_add_cflags in
16787 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16788 case $cf_add_cflags in
16790 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16792 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16793 && test -z "${cf_tst_cflags}" \
16794 && cf_fix_cppflags=yes
16796 if test $cf_fix_cppflags = yes ; then
16798 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16799 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16802 elif test "${cf_tst_cflags}" = "\"'" ; then
16804 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16805 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16811 case "$CPPFLAGS" in
16815 case $cf_add_cflags in
16817 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16819 CPPFLAGS=`echo "$CPPFLAGS" | \
16820 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16821 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16826 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16827 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16834 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16835 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16842 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16843 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16845 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16847 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16848 && test -z "${cf_tst_cflags}" \
16849 && cf_fix_cppflags=no
16854 if test -n "$cf_new_cflags" ; then
16856 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16857 CFLAGS="${CFLAGS}$cf_new_cflags"
16861 if test -n "$cf_new_cppflags" ; then
16863 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16864 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16868 if test -n "$cf_new_extra_cppflags" ; then
16870 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16871 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16879 echo "$as_me:16879: checking for signal global datatype" >&5
16880 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
16881 if test "${cf_cv_sig_atomic_t+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 "volatile sig_atomic_t" \
16890 cat >conftest.$ac_ext <<_ACEOF
16891 #line 16891 "configure"
16892 #include "confdefs.h"
16894 #include <sys/types.h>
16895 #include <signal.h>
16900 static void handler(int sig)
16907 signal(SIGINT, handler);
16913 rm -f conftest.$ac_objext
16914 if { (eval echo "$as_me:16914: \"$ac_compile\"") >&5
16915 (eval $ac_compile) 2>&5
16917 echo "$as_me:16917: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -s conftest.$ac_objext'
16920 { (eval echo "$as_me:16920: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:16923: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 cf_cv_sig_atomic_t=$cf_type
16927 echo "$as_me: failed program was:" >&5
16928 cat conftest.$ac_ext >&5
16929 cf_cv_sig_atomic_t=no
16931 rm -f conftest.$ac_objext conftest.$ac_ext
16932 test "$cf_cv_sig_atomic_t" != no && break
16937 echo "$as_me:16937: result: $cf_cv_sig_atomic_t" >&5
16938 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16939 test "$cf_cv_sig_atomic_t" != no &&
16940 cat >>confdefs.h <<EOF
16941 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16944 if test $NCURSES_CHTYPE = auto ; then
16946 echo "$as_me:16946: checking for type of chtype" >&5
16947 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16948 if test "${cf_cv_typeof_chtype+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 if test "$cross_compiling" = yes; then
16953 cf_cv_typeof_chtype=long
16955 cat >conftest.$ac_ext <<_ACEOF
16956 #line 16956 "configure"
16957 #include "confdefs.h"
16959 #define WANT_BITS 31
16963 FILE *fp = fopen("cf_test.out", "w");
16965 char *result = "long";
16966 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16969 for (n = 0; n < WANT_BITS; n++) {
16972 if (y != 1 || x == 0) {
16978 * If x is nonzero, an int is big enough for the bits
16981 result = (x != 0) ? "int" : "long";
16986 ${cf_cv_main_return:-return}(0);
16990 rm -f conftest$ac_exeext
16991 if { (eval echo "$as_me:16991: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>&5
16994 echo "$as_me:16994: \$? = $ac_status" >&5
16995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16996 { (eval echo "$as_me:16996: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16999 echo "$as_me:16999: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 cf_cv_typeof_chtype=`cat cf_test.out`
17003 echo "$as_me: program exited with status $ac_status" >&5
17004 echo "$as_me: failed program was:" >&5
17005 cat conftest.$ac_ext >&5
17006 cf_cv_typeof_chtype=long
17008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17014 echo "$as_me:17014: result: $cf_cv_typeof_chtype" >&5
17015 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
17017 cat >>confdefs.h <<EOF
17018 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
17022 cf_cv_typeof_chtype=$NCURSES_CHTYPE
17024 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
17026 echo "$as_me:17026: checking if unsigned literals are legal" >&5
17027 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
17028 if test "${cf_cv_unsigned_literals+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 cat >conftest.$ac_ext <<_ACEOF
17033 #line 17033 "configure"
17034 #include "confdefs.h"
17039 long x = 1L + 1UL + 1U + 1
17044 rm -f conftest.$ac_objext
17045 if { (eval echo "$as_me:17045: \"$ac_compile\"") >&5
17046 (eval $ac_compile) 2>&5
17048 echo "$as_me:17048: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (eval echo "$as_me:17051: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:17054: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 cf_cv_unsigned_literals=yes
17058 echo "$as_me: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17060 cf_cv_unsigned_literals=no
17062 rm -f conftest.$ac_objext conftest.$ac_ext
17066 echo "$as_me:17066: result: $cf_cv_unsigned_literals" >&5
17067 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
17070 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
17071 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
17073 if test $NCURSES_MMASK_T = auto ; then
17074 cf_cv_typeof_mmask_t=long
17076 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
17078 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
17080 ### Checks for external-data
17082 echo "$as_me:17082: checking if external errno is declared" >&5
17083 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
17084 if test "${cf_cv_dcl_errno+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 cat >conftest.$ac_ext <<_ACEOF
17089 #line 17089 "configure"
17090 #include "confdefs.h"
17092 #ifdef HAVE_STDLIB_H
17093 #include <stdlib.h>
17096 #include <sys/types.h>
17101 int x = (int) errno
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:17107: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>&5
17110 echo "$as_me:17110: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -s conftest.$ac_objext'
17113 { (eval echo "$as_me:17113: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 cf_cv_dcl_errno=yes
17120 echo "$as_me: failed program was:" >&5
17121 cat conftest.$ac_ext >&5
17124 rm -f conftest.$ac_objext conftest.$ac_ext
17127 echo "$as_me:17127: result: $cf_cv_dcl_errno" >&5
17128 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
17130 if test "$cf_cv_dcl_errno" = no ; then
17132 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17134 cat >>confdefs.h <<EOF
17135 #define $cf_result 1
17140 # It's possible (for near-UNIX clones) that the data doesn't exist
17142 echo "$as_me:17142: checking if external errno exists" >&5
17143 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
17144 if test "${cf_cv_have_errno+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 cat >conftest.$ac_ext <<_ACEOF
17149 #line 17149 "configure"
17150 #include "confdefs.h"
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:17164: \"$ac_link\"") >&5
17165 (eval $ac_link) 2>&5
17167 echo "$as_me:17167: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:17170: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:17173: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 cf_cv_have_errno=yes
17177 echo "$as_me: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17179 cf_cv_have_errno=no
17181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17184 echo "$as_me:17184: result: $cf_cv_have_errno" >&5
17185 echo "${ECHO_T}$cf_cv_have_errno" >&6
17187 if test "$cf_cv_have_errno" = yes ; then
17189 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17191 cat >>confdefs.h <<EOF
17192 #define $cf_result 1
17197 echo "$as_me:17197: checking if data-only library module links" >&5
17198 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
17199 if test "${cf_cv_link_dataonly+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 cat >conftest.$ac_ext <<EOF
17205 #line 17205 "configure"
17206 int testdata[3] = { 123, 456, 789 };
17208 if { (eval echo "$as_me:17208: \"$ac_compile\"") >&5
17209 (eval $ac_compile) 2>&5
17211 echo "$as_me:17211: \$? = $ac_status" >&5
17212 (exit $ac_status); } ; then
17213 mv conftest.o data.o && \
17214 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
17216 rm -f conftest.$ac_ext data.o
17217 cat >conftest.$ac_ext <<EOF
17218 #line 17218 "configure"
17222 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
17224 extern int testdata[3];
17225 return testdata[0] == 123
17226 && testdata[1] == 456
17227 && testdata[2] == 789;
17231 if { (eval echo "$as_me:17231: \"$ac_compile\"") >&5
17232 (eval $ac_compile) 2>&5
17234 echo "$as_me:17234: \$? = $ac_status" >&5
17235 (exit $ac_status); }; then
17236 mv conftest.o func.o && \
17237 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
17239 rm -f conftest.$ac_ext func.o
17240 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
17241 cf_saveLIBS="$LIBS"
17242 LIBS="conftest.a $LIBS"
17243 if test "$cross_compiling" = yes; then
17244 cf_cv_link_dataonly=unknown
17246 cat >conftest.$ac_ext <<_ACEOF
17247 #line 17247 "configure"
17248 #include "confdefs.h"
17252 extern int testfunc();
17253 ${cf_cv_main_return:-return} (!testfunc());
17257 rm -f conftest$ac_exeext
17258 if { (eval echo "$as_me:17258: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>&5
17261 echo "$as_me:17261: \$? = $ac_status" >&5
17262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17263 { (eval echo "$as_me:17263: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:17266: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 cf_cv_link_dataonly=yes
17270 echo "$as_me: program exited with status $ac_status" >&5
17271 echo "$as_me: failed program was:" >&5
17272 cat conftest.$ac_ext >&5
17273 cf_cv_link_dataonly=no
17275 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17277 LIBS="$cf_saveLIBS"
17281 echo "$as_me:17281: result: $cf_cv_link_dataonly" >&5
17282 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
17284 if test "$cf_cv_link_dataonly" = no ; then
17286 cat >>confdefs.h <<\EOF
17287 #define BROKEN_LINKER 1
17293 ### Checks for library functions.
17319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17320 echo "$as_me:17320: checking for $ac_func" >&5
17321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17322 if eval "test \"\${$as_ac_var+set}\" = set"; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 cat >conftest.$ac_ext <<_ACEOF
17326 #line 17326 "configure"
17327 #include "confdefs.h"
17328 /* System header to define __stub macros and hopefully few prototypes,
17329 which can conflict with char $ac_func (); below. */
17330 #include <assert.h>
17331 /* Override any gcc2 internal prototype to avoid an error. */
17335 /* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17343 /* The GNU C library defines this for functions which it implements
17344 to always fail with ENOSYS. Some functions are actually named
17345 something starting with __ and the normal name is an alias. */
17346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17349 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:17357: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>&5
17360 echo "$as_me:17360: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (eval echo "$as_me:17363: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:17366: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 eval "$as_ac_var=yes"
17370 echo "$as_me: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17372 eval "$as_ac_var=no"
17374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17376 echo "$as_me:17376: result: `eval echo '${'$as_ac_var'}'`" >&5
17377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17378 if test `eval echo '${'$as_ac_var'}'` = yes; then
17379 cat >>confdefs.h <<EOF
17380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17386 if test "x$ac_cv_func_getopt" = xno && \
17387 test "x$cf_with_progs$cf_with_tests" != xnono; then
17388 { { echo "$as_me:17388: error: getopt is required for building programs" >&5
17389 echo "$as_me: error: getopt is required for building programs" >&2;}
17390 { (exit 1); exit 1; }; }
17393 if test "x$with_getcap" = "xyes" ; then
17395 echo "$as_me:17395: checking for terminal-capability database functions" >&5
17396 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
17397 if test "${cf_cv_cgetent+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line 17402 "configure"
17403 #include "confdefs.h"
17405 #include <stdlib.h>
17412 char *db_array = temp;
17413 cgetent(&buf, &db_array, "vt100");
17414 cgetcap(buf, "tc", '=');
17415 cgetmatch(buf, "tc");
17421 rm -f conftest.$ac_objext conftest$ac_exeext
17422 if { (eval echo "$as_me:17422: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17425 echo "$as_me:17425: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (eval echo "$as_me:17428: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 echo "$as_me:17431: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17435 echo "$as_me: failed program was:" >&5
17436 cat conftest.$ac_ext >&5
17439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17442 echo "$as_me:17442: result: $cf_cv_cgetent" >&5
17443 echo "${ECHO_T}$cf_cv_cgetent" >&6
17445 if test "$cf_cv_cgetent" = yes
17448 cat >>confdefs.h <<\EOF
17449 #define HAVE_BSD_CGETENT 1
17452 echo "$as_me:17452: checking if cgetent uses const parameter" >&5
17453 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
17454 if test "${cf_cv_cgetent_const+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 cat >conftest.$ac_ext <<_ACEOF
17459 #line 17459 "configure"
17460 #include "confdefs.h"
17462 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
17463 #include <stdlib.h>
17470 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
17471 const char *db_array = temp;
17472 cgetent(&buf, &db_array, "vt100");
17474 cgetcap(buf, "tc", '=');
17475 cgetmatch(buf, "tc");
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:17482: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17485 echo "$as_me:17485: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (eval echo "$as_me:17488: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:17491: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 cf_cv_cgetent_const=yes
17495 echo "$as_me: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17497 cf_cv_cgetent_const=no
17499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17502 echo "$as_me:17502: result: $cf_cv_cgetent_const" >&5
17503 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
17504 if test "$cf_cv_cgetent_const" = yes
17507 cat >>confdefs.h <<EOF
17508 #define CGETENT_CONST const
17516 echo "$as_me:17516: checking for isascii" >&5
17517 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
17518 if test "${cf_cv_have_isascii+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 cat >conftest.$ac_ext <<_ACEOF
17523 #line 17523 "configure"
17524 #include "confdefs.h"
17529 int x = isascii(' ')
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (eval echo "$as_me:17535: \"$ac_link\"") >&5
17536 (eval $ac_link) 2>&5
17538 echo "$as_me:17538: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (eval echo "$as_me:17541: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:17544: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 cf_cv_have_isascii=yes
17548 echo "$as_me: failed program was:" >&5
17549 cat conftest.$ac_ext >&5
17550 cf_cv_have_isascii=no
17552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17555 echo "$as_me:17555: result: $cf_cv_have_isascii" >&5
17556 echo "${ECHO_T}$cf_cv_have_isascii" >&6
17557 test "$cf_cv_have_isascii" = yes &&
17558 cat >>confdefs.h <<\EOF
17559 #define HAVE_ISASCII 1
17562 if test "$ac_cv_func_sigaction" = yes; then
17563 echo "$as_me:17563: checking whether sigaction needs _POSIX_SOURCE" >&5
17564 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17566 #line 17566 "configure"
17567 #include "confdefs.h"
17569 #include <sys/types.h>
17570 #include <signal.h>
17574 struct sigaction act
17579 rm -f conftest.$ac_objext
17580 if { (eval echo "$as_me:17580: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>&5
17583 echo "$as_me:17583: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -s conftest.$ac_objext'
17586 { (eval echo "$as_me:17586: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:17589: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17593 echo "$as_me: failed program was:" >&5
17594 cat conftest.$ac_ext >&5
17596 cat >conftest.$ac_ext <<_ACEOF
17597 #line 17597 "configure"
17598 #include "confdefs.h"
17600 #define _POSIX_SOURCE
17601 #include <sys/types.h>
17602 #include <signal.h>
17606 struct sigaction act
17611 rm -f conftest.$ac_objext
17612 if { (eval echo "$as_me:17612: \"$ac_compile\"") >&5
17613 (eval $ac_compile) 2>&5
17615 echo "$as_me:17615: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -s conftest.$ac_objext'
17618 { (eval echo "$as_me:17618: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:17621: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17625 cat >>confdefs.h <<\EOF
17626 #define _POSIX_SOURCE 1
17630 echo "$as_me: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17634 rm -f conftest.$ac_objext conftest.$ac_ext
17636 rm -f conftest.$ac_objext conftest.$ac_ext
17637 echo "$as_me:17637: result: $sigact_bad" >&5
17638 echo "${ECHO_T}$sigact_bad" >&6
17641 echo "$as_me:17641: checking if nanosleep really works" >&5
17642 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
17643 if test "${cf_cv_func_nanosleep+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 if test "$cross_compiling" = yes; then
17648 cf_cv_func_nanosleep=unknown
17650 cat >conftest.$ac_ext <<_ACEOF
17651 #line 17651 "configure"
17652 #include "confdefs.h"
17658 #ifdef HAVE_SYS_TIME_H
17659 #include <sys/time.h>
17663 struct timespec ts1, ts2;
17666 ts1.tv_nsec = 750000000;
17670 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
17671 ${cf_cv_main_return:-return}(code != 0);
17675 rm -f conftest$ac_exeext
17676 if { (eval echo "$as_me:17676: \"$ac_link\"") >&5
17677 (eval $ac_link) 2>&5
17679 echo "$as_me:17679: \$? = $ac_status" >&5
17680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17681 { (eval echo "$as_me:17681: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:17684: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 cf_cv_func_nanosleep=yes
17688 echo "$as_me: program exited with status $ac_status" >&5
17689 echo "$as_me: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 cf_cv_func_nanosleep=no
17693 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17696 echo "$as_me:17696: result: $cf_cv_func_nanosleep" >&5
17697 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
17699 test "$cf_cv_func_nanosleep" = "yes" &&
17700 cat >>confdefs.h <<\EOF
17701 #define HAVE_NANOSLEEP 1
17710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17711 echo "$as_me:17711: checking for $ac_header" >&5
17712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17717 #line 17717 "configure"
17718 #include "confdefs.h"
17719 #include <$ac_header>
17721 if { (eval echo "$as_me:17721: \"$ac_cpp conftest.$ac_ext\"") >&5
17722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17724 egrep -v '^ *\+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:17727: \$? = $ac_status" >&5
17728 (exit $ac_status); } >/dev/null; then
17729 if test -s conftest.err; then
17730 ac_cpp_err=$ac_c_preproc_warn_flag
17737 if test -z "$ac_cpp_err"; then
17738 eval "$as_ac_Header=yes"
17740 echo "$as_me: failed program was:" >&5
17741 cat conftest.$ac_ext >&5
17742 eval "$as_ac_Header=no"
17744 rm -f conftest.err conftest.$ac_ext
17746 echo "$as_me:17746: result: `eval echo '${'$as_ac_Header'}'`" >&5
17747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17749 cat >>confdefs.h <<EOF
17750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17756 if test "$ISC" = yes ; then
17758 for ac_header in sys/termio.h
17760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17761 echo "$as_me:17761: checking for $ac_header" >&5
17762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 cat >conftest.$ac_ext <<_ACEOF
17767 #line 17767 "configure"
17768 #include "confdefs.h"
17769 #include <$ac_header>
17771 if { (eval echo "$as_me:17771: \"$ac_cpp conftest.$ac_ext\"") >&5
17772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17774 egrep -v '^ *\+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:17777: \$? = $ac_status" >&5
17778 (exit $ac_status); } >/dev/null; then
17779 if test -s conftest.err; then
17780 ac_cpp_err=$ac_c_preproc_warn_flag
17787 if test -z "$ac_cpp_err"; then
17788 eval "$as_ac_Header=yes"
17790 echo "$as_me: failed program was:" >&5
17791 cat conftest.$ac_ext >&5
17792 eval "$as_ac_Header=no"
17794 rm -f conftest.err conftest.$ac_ext
17796 echo "$as_me:17796: result: `eval echo '${'$as_ac_Header'}'`" >&5
17797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17799 cat >>confdefs.h <<EOF
17800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17807 if test "$ac_cv_header_termios_h" = yes ; then
17808 case "$CFLAGS $CPPFLAGS" in
17809 (*-D_POSIX_SOURCE*)
17810 termios_bad=dunno ;;
17811 (*) termios_bad=maybe ;;
17813 if test "$termios_bad" = maybe ; then
17814 echo "$as_me:17814: checking whether termios.h needs _POSIX_SOURCE" >&5
17815 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17817 #line 17817 "configure"
17818 #include "confdefs.h"
17819 #include <termios.h>
17823 struct termios foo; int x = foo.c_iflag
17828 rm -f conftest.$ac_objext
17829 if { (eval echo "$as_me:17829: \"$ac_compile\"") >&5
17830 (eval $ac_compile) 2>&5
17832 echo "$as_me:17832: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (eval echo "$as_me:17835: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:17838: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17842 echo "$as_me: failed program was:" >&5
17843 cat conftest.$ac_ext >&5
17845 cat >conftest.$ac_ext <<_ACEOF
17846 #line 17846 "configure"
17847 #include "confdefs.h"
17849 #define _POSIX_SOURCE
17850 #include <termios.h>
17854 struct termios foo; int x = foo.c_iflag
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:17860: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>&5
17863 echo "$as_me:17863: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (eval echo "$as_me:17866: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:17869: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 termios_bad=unknown
17873 echo "$as_me: failed program was:" >&5
17874 cat conftest.$ac_ext >&5
17876 cat >>confdefs.h <<\EOF
17877 #define _POSIX_SOURCE 1
17881 rm -f conftest.$ac_objext conftest.$ac_ext
17884 rm -f conftest.$ac_objext conftest.$ac_ext
17885 echo "$as_me:17885: result: $termios_bad" >&5
17886 echo "${ECHO_T}$termios_bad" >&6
17890 echo "$as_me:17890: checking for tcgetattr" >&5
17891 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
17892 if test "${cf_cv_have_tcgetattr+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 cat >conftest.$ac_ext <<_ACEOF
17897 #line 17897 "configure"
17898 #include "confdefs.h"
17900 #include <sys/types.h>
17901 #ifdef HAVE_UNISTD_H
17902 #include <unistd.h>
17904 #ifdef HAVE_TERMIOS_H
17905 #include <termios.h>
17906 #define TTY struct termios
17908 #ifdef HAVE_TERMIO_H
17909 #include <termio.h>
17910 #define TTY struct termio
17919 tcgetattr(1, &foo);
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (eval echo "$as_me:17925: \"$ac_link\"") >&5
17926 (eval $ac_link) 2>&5
17928 echo "$as_me:17928: \$? = $ac_status" >&5
17929 (exit $ac_status); } &&
17930 { ac_try='test -s conftest$ac_exeext'
17931 { (eval echo "$as_me:17931: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17934 echo "$as_me:17934: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 cf_cv_have_tcgetattr=yes
17938 echo "$as_me: failed program was:" >&5
17939 cat conftest.$ac_ext >&5
17940 cf_cv_have_tcgetattr=no
17942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17944 echo "$as_me:17944: result: $cf_cv_have_tcgetattr" >&5
17945 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17946 test "$cf_cv_have_tcgetattr" = yes &&
17947 cat >>confdefs.h <<\EOF
17948 #define HAVE_TCGETATTR 1
17951 echo "$as_me:17951: checking for vsscanf function or workaround" >&5
17952 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17953 if test "${cf_cv_func_vsscanf+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 cat >conftest.$ac_ext <<_ACEOF
17958 #line 17958 "configure"
17959 #include "confdefs.h"
17961 #include <stdarg.h>
17968 vsscanf("from", "%d", ap)
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:17974: \"$ac_link\"") >&5
17975 (eval $ac_link) 2>&5
17977 echo "$as_me:17977: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:17980: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:17983: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 cf_cv_func_vsscanf=vsscanf
17987 echo "$as_me: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17990 cat >conftest.$ac_ext <<_ACEOF
17991 #line 17991 "configure"
17992 #include "confdefs.h"
17994 #include <stdarg.h>
18001 char *str = "from";
18003 strbuf._flag = _IOREAD;
18004 strbuf._ptr = strbuf._base = (unsigned char *) str;
18005 strbuf._cnt = strlen(str);
18006 strbuf._file = _NFILE;
18007 return (vfscanf(&strbuf, "%d", ap))
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (eval echo "$as_me:18013: \"$ac_link\"") >&5
18014 (eval $ac_link) 2>&5
18016 echo "$as_me:18016: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
18018 { ac_try='test -s conftest$ac_exeext'
18019 { (eval echo "$as_me:18019: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:18022: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 cf_cv_func_vsscanf=vfscanf
18026 echo "$as_me: failed program was:" >&5
18027 cat conftest.$ac_ext >&5
18029 cat >conftest.$ac_ext <<_ACEOF
18030 #line 18030 "configure"
18031 #include "confdefs.h"
18033 #include <stdarg.h>
18040 char *str = "from";
18042 strbuf._flag = _IOREAD;
18043 strbuf._ptr = strbuf._base = (unsigned char *) str;
18044 strbuf._cnt = strlen(str);
18045 strbuf._file = _NFILE;
18046 return (_doscan(&strbuf, "%d", ap))
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (eval echo "$as_me:18052: \"$ac_link\"") >&5
18053 (eval $ac_link) 2>&5
18055 echo "$as_me:18055: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -s conftest$ac_exeext'
18058 { (eval echo "$as_me:18058: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:18061: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 cf_cv_func_vsscanf=_doscan
18065 echo "$as_me: failed program was:" >&5
18066 cat conftest.$ac_ext >&5
18068 cf_cv_func_vsscanf=no
18070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18076 echo "$as_me:18076: result: $cf_cv_func_vsscanf" >&5
18077 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
18079 case $cf_cv_func_vsscanf in
18081 cat >>confdefs.h <<\EOF
18082 #define HAVE_VSSCANF 1
18086 cat >>confdefs.h <<\EOF
18087 #define HAVE_VFSCANF 1
18091 cat >>confdefs.h <<\EOF
18092 #define HAVE__DOSCAN 1
18101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18102 echo "$as_me:18102: checking for $ac_header" >&5
18103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18108 #line 18108 "configure"
18109 #include "confdefs.h"
18110 #include <$ac_header>
18112 if { (eval echo "$as_me:18112: \"$ac_cpp conftest.$ac_ext\"") >&5
18113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18115 egrep -v '^ *\+' conftest.er1 >conftest.err
18117 cat conftest.err >&5
18118 echo "$as_me:18118: \$? = $ac_status" >&5
18119 (exit $ac_status); } >/dev/null; then
18120 if test -s conftest.err; then
18121 ac_cpp_err=$ac_c_preproc_warn_flag
18128 if test -z "$ac_cpp_err"; then
18129 eval "$as_ac_Header=yes"
18131 echo "$as_me: failed program was:" >&5
18132 cat conftest.$ac_ext >&5
18133 eval "$as_ac_Header=no"
18135 rm -f conftest.err conftest.$ac_ext
18137 echo "$as_me:18137: result: `eval echo '${'$as_ac_Header'}'`" >&5
18138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18140 cat >>confdefs.h <<EOF
18141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18147 echo "$as_me:18147: checking for working mkstemp" >&5
18148 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
18149 if test "${cf_cv_func_mkstemp+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 if test "$cross_compiling" = yes; then
18155 cf_cv_func_mkstemp=maybe
18157 cat >conftest.$ac_ext <<_ACEOF
18158 #line 18158 "configure"
18159 #include "confdefs.h"
18161 #include <sys/types.h>
18162 #ifdef HAVE_UNISTD_H
18163 #include <unistd.h>
18165 #include <stdlib.h>
18167 #include <string.h>
18168 #include <sys/stat.h>
18171 char *tmpl = "conftestXXXXXX";
18179 for (n = 0; n < 2; ++n) {
18180 strcpy(name[n], tmpl);
18181 if ((fd = mkstemp(name[n])) >= 0) {
18182 if (!strcmp(name[n], tmpl)
18183 || stat(name[n], &sb) != 0
18184 || (sb.st_mode & S_IFMT) != S_IFREG
18185 || (sb.st_mode & 077) != 0) {
18192 && !strcmp(name[0], name[1]))
18194 ${cf_cv_main_return:-return}(result);
18198 rm -f conftest$ac_exeext
18199 if { (eval echo "$as_me:18199: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>&5
18202 echo "$as_me:18202: \$? = $ac_status" >&5
18203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18204 { (eval echo "$as_me:18204: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:18207: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 cf_cv_func_mkstemp=yes
18212 echo "$as_me: program exited with status $ac_status" >&5
18213 echo "$as_me: failed program was:" >&5
18214 cat conftest.$ac_ext >&5
18215 cf_cv_func_mkstemp=no
18218 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18222 echo "$as_me:18222: result: $cf_cv_func_mkstemp" >&5
18223 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
18224 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
18225 echo "$as_me:18225: checking for mkstemp" >&5
18226 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
18227 if test "${ac_cv_func_mkstemp+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18231 #line 18231 "configure"
18232 #include "confdefs.h"
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char mkstemp (); below. */
18235 #include <assert.h>
18236 /* Override any gcc2 internal prototype to avoid an error. */
18240 /* We use char because int might match the return type of a gcc2
18241 builtin and then its argument prototype would still apply. */
18248 /* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
18254 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (eval echo "$as_me:18262: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>&5
18265 echo "$as_me:18265: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
18267 { ac_try='test -s conftest$ac_exeext'
18268 { (eval echo "$as_me:18268: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:18271: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 ac_cv_func_mkstemp=yes
18275 echo "$as_me: failed program was:" >&5
18276 cat conftest.$ac_ext >&5
18277 ac_cv_func_mkstemp=no
18279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18281 echo "$as_me:18281: result: $ac_cv_func_mkstemp" >&5
18282 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
18285 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
18287 cat >>confdefs.h <<\EOF
18288 #define HAVE_MKSTEMP 1
18293 # setup for prototype of fallback for vsscanf()
18295 if test "$cf_cv_func_vsscanf" = vsscanf ; then
18301 if test "x$cross_compiling" = xyes ; then
18302 { echo "$as_me:18302: WARNING: cross compiling: assume setvbuf params not reversed" >&5
18303 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
18305 echo "$as_me:18305: checking whether setvbuf arguments are reversed" >&5
18306 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
18307 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 if test "$cross_compiling" = yes; then
18311 { { echo "$as_me:18311: error: cannot run test program while cross compiling" >&5
18312 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
18313 { (exit 1); exit 1; }; }
18315 cat >conftest.$ac_ext <<_ACEOF
18316 #line 18316 "configure"
18317 #include "confdefs.h"
18319 /* If setvbuf has the reversed format, exit 0. */
18323 /* This call has the arguments reversed.
18324 A reversed system may check and see that the address of main
18325 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
18326 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
18327 $ac_main_return(1);
18328 putc('\r', stdout);
18329 $ac_main_return(0); /* Non-reversed systems segv here. */
18332 rm -f conftest$ac_exeext
18333 if { (eval echo "$as_me:18333: \"$ac_link\"") >&5
18334 (eval $ac_link) 2>&5
18336 echo "$as_me:18336: \$? = $ac_status" >&5
18337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18338 { (eval echo "$as_me:18338: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:18341: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_func_setvbuf_reversed=yes
18345 echo "$as_me: program exited with status $ac_status" >&5
18346 echo "$as_me: failed program was:" >&5
18347 cat conftest.$ac_ext >&5
18348 ac_cv_func_setvbuf_reversed=no
18350 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18352 rm -f core core.* *.core
18354 echo "$as_me:18354: result: $ac_cv_func_setvbuf_reversed" >&5
18355 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
18356 if test $ac_cv_func_setvbuf_reversed = yes; then
18358 cat >>confdefs.h <<\EOF
18359 #define SETVBUF_REVERSED 1
18365 echo "$as_me:18365: checking for intptr_t" >&5
18366 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
18367 if test "${ac_cv_type_intptr_t+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18371 #line 18371 "configure"
18372 #include "confdefs.h"
18373 $ac_includes_default
18377 if ((intptr_t *) 0)
18379 if (sizeof (intptr_t))
18385 rm -f conftest.$ac_objext
18386 if { (eval echo "$as_me:18386: \"$ac_compile\"") >&5
18387 (eval $ac_compile) 2>&5
18389 echo "$as_me:18389: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -s conftest.$ac_objext'
18392 { (eval echo "$as_me:18392: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:18395: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_type_intptr_t=yes
18399 echo "$as_me: failed program was:" >&5
18400 cat conftest.$ac_ext >&5
18401 ac_cv_type_intptr_t=no
18403 rm -f conftest.$ac_objext conftest.$ac_ext
18405 echo "$as_me:18405: result: $ac_cv_type_intptr_t" >&5
18406 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
18407 if test $ac_cv_type_intptr_t = yes; then
18411 cat >>confdefs.h <<EOF
18412 #define intptr_t long
18417 echo "$as_me:18417: checking for ssize_t" >&5
18418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18419 if test "${ac_cv_type_ssize_t+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 cat >conftest.$ac_ext <<_ACEOF
18423 #line 18423 "configure"
18424 #include "confdefs.h"
18425 $ac_includes_default
18431 if (sizeof (ssize_t))
18437 rm -f conftest.$ac_objext
18438 if { (eval echo "$as_me:18438: \"$ac_compile\"") >&5
18439 (eval $ac_compile) 2>&5
18441 echo "$as_me:18441: \$? = $ac_status" >&5
18442 (exit $ac_status); } &&
18443 { ac_try='test -s conftest.$ac_objext'
18444 { (eval echo "$as_me:18444: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:18447: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 ac_cv_type_ssize_t=yes
18451 echo "$as_me: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18453 ac_cv_type_ssize_t=no
18455 rm -f conftest.$ac_objext conftest.$ac_ext
18457 echo "$as_me:18457: result: $ac_cv_type_ssize_t" >&5
18458 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18459 if test $ac_cv_type_ssize_t = yes; then
18463 cat >>confdefs.h <<EOF
18464 #define ssize_t int
18469 echo "$as_me:18469: checking for type sigaction_t" >&5
18470 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
18471 if test "${cf_cv_type_sigaction+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 cat >conftest.$ac_ext <<_ACEOF
18476 #line 18476 "configure"
18477 #include "confdefs.h"
18479 #include <signal.h>
18488 rm -f conftest.$ac_objext
18489 if { (eval echo "$as_me:18489: \"$ac_compile\"") >&5
18490 (eval $ac_compile) 2>&5
18492 echo "$as_me:18492: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -s conftest.$ac_objext'
18495 { (eval echo "$as_me:18495: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 echo "$as_me:18498: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 cf_cv_type_sigaction=yes
18502 echo "$as_me: failed program was:" >&5
18503 cat conftest.$ac_ext >&5
18504 cf_cv_type_sigaction=no
18506 rm -f conftest.$ac_objext conftest.$ac_ext
18509 echo "$as_me:18509: result: $cf_cv_type_sigaction" >&5
18510 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
18511 test "$cf_cv_type_sigaction" = yes &&
18512 cat >>confdefs.h <<\EOF
18513 #define HAVE_TYPE_SIGACTION 1
18516 echo "$as_me:18516: checking declaration of size-change" >&5
18517 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
18518 if test "${cf_cv_sizechange+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 cf_cv_sizechange=unknown
18523 cf_save_CPPFLAGS="$CPPFLAGS"
18525 for cf_opts in "" "NEED_PTEM_H"
18528 CPPFLAGS="$cf_save_CPPFLAGS"
18529 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
18530 cat >conftest.$ac_ext <<_ACEOF
18531 #line 18531 "configure"
18532 #include "confdefs.h"
18533 #include <sys/types.h>
18534 #ifdef HAVE_TERMIOS_H
18535 #include <termios.h>
18537 #ifdef HAVE_TERMIO_H
18538 #include <termio.h>
18542 /* This is a workaround for SCO: they neglected to define struct winsize in
18543 * termios.h -- it's only in termio.h and ptem.h
18545 #include <sys/stream.h>
18546 #include <sys/ptem.h>
18548 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
18549 #include <sys/ioctl.h>
18557 struct ttysize win; /* FIXME: what system is this? */
18558 int y = win.ts_lines;
18559 int x = win.ts_cols;
18562 struct winsize win;
18563 int y = win.ws_row;
18564 int x = win.ws_col;
18566 no TIOCGSIZE or TIOCGWINSZ
18567 #endif /* TIOCGWINSZ */
18568 #endif /* TIOCGSIZE */
18574 rm -f conftest.$ac_objext
18575 if { (eval echo "$as_me:18575: \"$ac_compile\"") >&5
18576 (eval $ac_compile) 2>&5
18578 echo "$as_me:18578: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -s conftest.$ac_objext'
18581 { (eval echo "$as_me:18581: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18584 echo "$as_me:18584: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 cf_cv_sizechange=yes
18588 echo "$as_me: failed program was:" >&5
18589 cat conftest.$ac_ext >&5
18590 cf_cv_sizechange=no
18592 rm -f conftest.$ac_objext conftest.$ac_ext
18594 CPPFLAGS="$cf_save_CPPFLAGS"
18595 if test "$cf_cv_sizechange" = yes ; then
18596 echo "size-change succeeded ($cf_opts)" >&5
18597 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
18603 echo "$as_me:18603: result: $cf_cv_sizechange" >&5
18604 echo "${ECHO_T}$cf_cv_sizechange" >&6
18605 if test "$cf_cv_sizechange" != no ; then
18607 cat >>confdefs.h <<\EOF
18608 #define HAVE_SIZECHANGE 1
18611 case $cf_cv_sizechange in
18613 cat >>confdefs.h <<EOF
18614 #define $cf_cv_sizechange 1
18621 echo "$as_me:18621: checking for memmove" >&5
18622 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
18623 if test "${ac_cv_func_memmove+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 cat >conftest.$ac_ext <<_ACEOF
18627 #line 18627 "configure"
18628 #include "confdefs.h"
18629 /* System header to define __stub macros and hopefully few prototypes,
18630 which can conflict with char memmove (); below. */
18631 #include <assert.h>
18632 /* Override any gcc2 internal prototype to avoid an error. */
18636 /* We use char because int might match the return type of a gcc2
18637 builtin and then its argument prototype would still apply. */
18644 /* The GNU C library defines this for functions which it implements
18645 to always fail with ENOSYS. Some functions are actually named
18646 something starting with __ and the normal name is an alias. */
18647 #if defined (__stub_memmove) || defined (__stub___memmove)
18650 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (eval echo "$as_me:18658: \"$ac_link\"") >&5
18659 (eval $ac_link) 2>&5
18661 echo "$as_me:18661: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -s conftest$ac_exeext'
18664 { (eval echo "$as_me:18664: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18667 echo "$as_me:18667: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_func_memmove=yes
18671 echo "$as_me: failed program was:" >&5
18672 cat conftest.$ac_ext >&5
18673 ac_cv_func_memmove=no
18675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18677 echo "$as_me:18677: result: $ac_cv_func_memmove" >&5
18678 echo "${ECHO_T}$ac_cv_func_memmove" >&6
18679 if test $ac_cv_func_memmove = yes; then
18683 echo "$as_me:18683: checking for bcopy" >&5
18684 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
18685 if test "${ac_cv_func_bcopy+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 cat >conftest.$ac_ext <<_ACEOF
18689 #line 18689 "configure"
18690 #include "confdefs.h"
18691 /* System header to define __stub macros and hopefully few prototypes,
18692 which can conflict with char bcopy (); below. */
18693 #include <assert.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. */
18706 /* The GNU C library defines this for functions which it implements
18707 to always fail with ENOSYS. Some functions are actually named
18708 something starting with __ and the normal name is an alias. */
18709 #if defined (__stub_bcopy) || defined (__stub___bcopy)
18712 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18719 rm -f conftest.$ac_objext conftest$ac_exeext
18720 if { (eval echo "$as_me:18720: \"$ac_link\"") >&5
18721 (eval $ac_link) 2>&5
18723 echo "$as_me:18723: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (eval echo "$as_me:18726: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18729 echo "$as_me:18729: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 ac_cv_func_bcopy=yes
18733 echo "$as_me: failed program was:" >&5
18734 cat conftest.$ac_ext >&5
18735 ac_cv_func_bcopy=no
18737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18739 echo "$as_me:18739: result: $ac_cv_func_bcopy" >&5
18740 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
18741 if test $ac_cv_func_bcopy = yes; then
18743 echo "$as_me:18743: checking if bcopy does overlapping moves" >&5
18744 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
18745 if test "${cf_cv_good_bcopy+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18749 if test "$cross_compiling" = yes; then
18750 cf_cv_good_bcopy=unknown
18752 cat >conftest.$ac_ext <<_ACEOF
18753 #line 18753 "configure"
18754 #include "confdefs.h"
18757 static char data[] = "abcdefghijklmnopqrstuwwxyz";
18759 bcopy(data, temp, sizeof(data));
18760 bcopy(temp+10, temp, 15);
18761 bcopy(temp+5, temp+15, 10);
18762 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
18766 rm -f conftest$ac_exeext
18767 if { (eval echo "$as_me:18767: \"$ac_link\"") >&5
18768 (eval $ac_link) 2>&5
18770 echo "$as_me:18770: \$? = $ac_status" >&5
18771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18772 { (eval echo "$as_me:18772: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:18775: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 cf_cv_good_bcopy=yes
18779 echo "$as_me: program exited with status $ac_status" >&5
18780 echo "$as_me: failed program was:" >&5
18781 cat conftest.$ac_ext >&5
18782 cf_cv_good_bcopy=no
18784 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18788 echo "$as_me:18788: result: $cf_cv_good_bcopy" >&5
18789 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
18792 cf_cv_good_bcopy=no
18795 if test "$cf_cv_good_bcopy" = yes ; then
18797 cat >>confdefs.h <<\EOF
18798 #define USE_OK_BCOPY 1
18803 cat >>confdefs.h <<\EOF
18804 #define USE_MY_MEMMOVE 1
18811 tty 2>&1 >/dev/null || {
18812 for ac_func in posix_openpt
18814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18815 echo "$as_me:18815: checking for $ac_func" >&5
18816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18817 if eval "test \"\${$as_ac_var+set}\" = set"; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 cat >conftest.$ac_ext <<_ACEOF
18821 #line 18821 "configure"
18822 #include "confdefs.h"
18823 /* System header to define __stub macros and hopefully few prototypes,
18824 which can conflict with char $ac_func (); below. */
18825 #include <assert.h>
18826 /* Override any gcc2 internal prototype to avoid an error. */
18830 /* We use char because int might match the return type of a gcc2
18831 builtin and then its argument prototype would still apply. */
18838 /* The GNU C library defines this for functions which it implements
18839 to always fail with ENOSYS. Some functions are actually named
18840 something starting with __ and the normal name is an alias. */
18841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18844 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (eval echo "$as_me:18852: \"$ac_link\"") >&5
18853 (eval $ac_link) 2>&5
18855 echo "$as_me:18855: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
18857 { ac_try='test -s conftest$ac_exeext'
18858 { (eval echo "$as_me:18858: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:18861: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 eval "$as_ac_var=yes"
18865 echo "$as_me: failed program was:" >&5
18866 cat conftest.$ac_ext >&5
18867 eval "$as_ac_var=no"
18869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18871 echo "$as_me:18871: result: `eval echo '${'$as_ac_var'}'`" >&5
18872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18873 if test `eval echo '${'$as_ac_var'}'` = yes; then
18874 cat >>confdefs.h <<EOF
18875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 echo "$as_me:18881: checking if poll really works" >&5
18882 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
18883 if test "${cf_cv_working_poll+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 if test "$cross_compiling" = yes; then
18888 cf_cv_working_poll=unknown
18890 cat >conftest.$ac_ext <<_ACEOF
18891 #line 18891 "configure"
18892 #include "confdefs.h"
18894 #include <stdlib.h>
18896 #include <unistd.h>
18901 #include <sys/poll.h>
18904 struct pollfd myfds;
18907 /* check for Darwin bug with respect to "devices" */
18908 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
18911 myfds.events = POLLIN;
18914 ret = poll(&myfds, 1, 100);
18916 if (ret < 0 || (myfds.revents & POLLNVAL)) {
18921 fd = open("/dev/tty", 2); /* O_RDWR */
18923 #ifdef HAVE_POSIX_OPENPT
18925 fd = posix_openpt(O_RDWR);
18930 /* also check with standard input */
18932 myfds.events = POLLIN;
18934 ret = poll(&myfds, 1, 100);
18939 ${cf_cv_main_return:-return}(ret < 0);
18942 rm -f conftest$ac_exeext
18943 if { (eval echo "$as_me:18943: \"$ac_link\"") >&5
18944 (eval $ac_link) 2>&5
18946 echo "$as_me:18946: \$? = $ac_status" >&5
18947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18948 { (eval echo "$as_me:18948: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18951 echo "$as_me:18951: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 cf_cv_working_poll=yes
18955 echo "$as_me: program exited with status $ac_status" >&5
18956 echo "$as_me: failed program was:" >&5
18957 cat conftest.$ac_ext >&5
18958 cf_cv_working_poll=no
18960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18963 echo "$as_me:18963: result: $cf_cv_working_poll" >&5
18964 echo "${ECHO_T}$cf_cv_working_poll" >&6
18965 test "$cf_cv_working_poll" = "yes" &&
18966 cat >>confdefs.h <<\EOF
18967 #define HAVE_WORKING_POLL 1
18970 echo "$as_me:18970: checking for va_copy" >&5
18971 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18972 if test "${cf_cv_have_va_copy+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 #line 18977 "configure"
18978 #include "confdefs.h"
18980 #include <stdarg.h>
18986 static va_list dst;
18987 static va_list src;
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (eval echo "$as_me:18994: \"$ac_link\"") >&5
18995 (eval $ac_link) 2>&5
18997 echo "$as_me:18997: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -s conftest$ac_exeext'
19000 { (eval echo "$as_me:19000: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19003 echo "$as_me:19003: \$? = $ac_status" >&5
19004 (exit $ac_status); }; }; then
19005 cf_cv_have_va_copy=yes
19007 echo "$as_me: failed program was:" >&5
19008 cat conftest.$ac_ext >&5
19009 cf_cv_have_va_copy=no
19011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19013 echo "$as_me:19013: result: $cf_cv_have_va_copy" >&5
19014 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
19016 test "$cf_cv_have_va_copy" = yes &&
19017 cat >>confdefs.h <<\EOF
19018 #define HAVE_VA_COPY 1
19021 echo "$as_me:19021: checking for __va_copy" >&5
19022 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
19023 if test "${cf_cv_have___va_copy+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 cat >conftest.$ac_ext <<_ACEOF
19028 #line 19028 "configure"
19029 #include "confdefs.h"
19031 #include <stdarg.h>
19037 static va_list dst;
19038 static va_list src;
19039 __va_copy(dst, src)
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (eval echo "$as_me:19045: \"$ac_link\"") >&5
19046 (eval $ac_link) 2>&5
19048 echo "$as_me:19048: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -s conftest$ac_exeext'
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
19056 cf_cv_have___va_copy=yes
19058 echo "$as_me: failed program was:" >&5
19059 cat conftest.$ac_ext >&5
19060 cf_cv_have___va_copy=no
19062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19064 echo "$as_me:19064: result: $cf_cv_have___va_copy" >&5
19065 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
19067 test "$cf_cv_have___va_copy" = yes &&
19068 cat >>confdefs.h <<\EOF
19069 #define HAVE___VA_COPY 1
19072 echo "$as_me:19072: checking for pid_t" >&5
19073 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19074 if test "${ac_cv_type_pid_t+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 cat >conftest.$ac_ext <<_ACEOF
19078 #line 19078 "configure"
19079 #include "confdefs.h"
19080 $ac_includes_default
19086 if (sizeof (pid_t))
19092 rm -f conftest.$ac_objext
19093 if { (eval echo "$as_me:19093: \"$ac_compile\"") >&5
19094 (eval $ac_compile) 2>&5
19096 echo "$as_me:19096: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try='test -s conftest.$ac_objext'
19099 { (eval echo "$as_me:19099: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19102 echo "$as_me:19102: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_cv_type_pid_t=yes
19106 echo "$as_me: failed program was:" >&5
19107 cat conftest.$ac_ext >&5
19108 ac_cv_type_pid_t=no
19110 rm -f conftest.$ac_objext conftest.$ac_ext
19112 echo "$as_me:19112: result: $ac_cv_type_pid_t" >&5
19113 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19114 if test $ac_cv_type_pid_t = yes; then
19118 cat >>confdefs.h <<EOF
19124 for ac_header in unistd.h vfork.h
19126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19127 echo "$as_me:19127: checking for $ac_header" >&5
19128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19133 #line 19133 "configure"
19134 #include "confdefs.h"
19135 #include <$ac_header>
19137 if { (eval echo "$as_me:19137: \"$ac_cpp conftest.$ac_ext\"") >&5
19138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19140 egrep -v '^ *\+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:19143: \$? = $ac_status" >&5
19144 (exit $ac_status); } >/dev/null; then
19145 if test -s conftest.err; then
19146 ac_cpp_err=$ac_c_preproc_warn_flag
19153 if test -z "$ac_cpp_err"; then
19154 eval "$as_ac_Header=yes"
19156 echo "$as_me: failed program was:" >&5
19157 cat conftest.$ac_ext >&5
19158 eval "$as_ac_Header=no"
19160 rm -f conftest.err conftest.$ac_ext
19162 echo "$as_me:19162: result: `eval echo '${'$as_ac_Header'}'`" >&5
19163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19165 cat >>confdefs.h <<EOF
19166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19172 for ac_func in fork vfork
19174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19175 echo "$as_me:19175: checking for $ac_func" >&5
19176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_var+set}\" = set"; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line 19181 "configure"
19182 #include "confdefs.h"
19183 /* System header to define __stub macros and hopefully few prototypes,
19184 which can conflict with char $ac_func (); below. */
19185 #include <assert.h>
19186 /* Override any gcc2 internal prototype to avoid an error. */
19190 /* We use char because int might match the return type of a gcc2
19191 builtin and then its argument prototype would still apply. */
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19204 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (eval echo "$as_me:19212: \"$ac_link\"") >&5
19213 (eval $ac_link) 2>&5
19215 echo "$as_me:19215: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (eval echo "$as_me:19218: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:19221: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 eval "$as_ac_var=yes"
19225 echo "$as_me: failed program was:" >&5
19226 cat conftest.$ac_ext >&5
19227 eval "$as_ac_var=no"
19229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19231 echo "$as_me:19231: result: `eval echo '${'$as_ac_var'}'`" >&5
19232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19233 if test `eval echo '${'$as_ac_var'}'` = yes; then
19234 cat >>confdefs.h <<EOF
19235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19241 ac_cv_func_fork_works=$ac_cv_func_fork
19242 if test "x$ac_cv_func_fork" = xyes; then
19243 echo "$as_me:19243: checking for working fork" >&5
19244 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19245 if test "${ac_cv_func_fork_works+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 if test "$cross_compiling" = yes; then
19249 ac_cv_func_fork_works=cross
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* By Rüdiger Kuhlmann. */
19253 #include <sys/types.h>
19255 # include <unistd.h>
19257 /* Some systems only have a dummy stub for fork() */
19261 $ac_main_return (1);
19262 $ac_main_return (0);
19265 rm -f conftest$ac_exeext
19266 if { (eval echo "$as_me:19266: \"$ac_link\"") >&5
19267 (eval $ac_link) 2>&5
19269 echo "$as_me:19269: \$? = $ac_status" >&5
19270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19271 { (eval echo "$as_me:19271: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19274 echo "$as_me:19274: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_func_fork_works=yes
19278 echo "$as_me: program exited with status $ac_status" >&5
19279 echo "$as_me: failed program was:" >&5
19280 cat conftest.$ac_ext >&5
19281 ac_cv_func_fork_works=no
19283 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19286 echo "$as_me:19286: result: $ac_cv_func_fork_works" >&5
19287 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19290 if test "x$ac_cv_func_fork_works" = xcross; then
19292 *-*-amigaos* | *-*-msdosdjgpp*)
19293 # Override, as these systems have only a dummy fork() stub
19294 ac_cv_func_fork_works=no
19297 ac_cv_func_fork_works=yes
19300 { echo "$as_me:19300: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
19301 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
19303 ac_cv_func_vfork_works=$ac_cv_func_vfork
19304 if test "x$ac_cv_func_vfork" = xyes; then
19305 echo "$as_me:19305: checking for working vfork" >&5
19306 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19307 if test "${ac_cv_func_vfork_works+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 if test "$cross_compiling" = yes; then
19311 ac_cv_func_vfork_works=cross
19313 cat >conftest.$ac_ext <<_ACEOF
19314 #line 19314 "configure"
19315 #include "confdefs.h"
19316 /* Thanks to Paul Eggert for this test. */
19318 #include <sys/types.h>
19319 #include <sys/stat.h>
19321 # include <unistd.h>
19324 # include <vfork.h>
19326 /* On some sparc systems, changes by the child to local and incoming
19327 argument registers are propagated back to the parent. The compiler
19328 is told about this with #include <vfork.h>, but some compilers
19329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19330 static variable whose address is put into a register that is
19331 clobbered by the vfork. */
19334 sparc_address_test (int arg)
19336 sparc_address_test (arg) int arg;
19339 static pid_t child;
19357 pid_t parent = getpid ();
19360 sparc_address_test ();
19365 /* Here is another test for sparc vfork register problems. This
19366 test uses lots of local variables, at least as many local
19367 variables as main has allocated so far including compiler
19368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19370 reuse the register of parent for one of the local variables,
19371 since it will think that parent can't possibly be used any more
19372 in this routine. Assigning to the local variable will thus
19373 munge parent in the parent process. */
19375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19377 /* Convince the compiler that p..p7 are live; otherwise, it might
19378 use the same hardware register for all 8 local variables. */
19379 if (p != p1 || p != p2 || p != p3 || p != p4
19380 || p != p5 || p != p6 || p != p7)
19383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19384 from child file descriptors. If the child closes a descriptor
19385 before it execs or exits, this munges the parent's descriptor
19386 as well. Test for this by closing stdout in the child. */
19387 _exit(close(fileno(stdout)) != 0);
19392 while (wait(&status) != child)
19395 /* Was there some problem with vforking? */
19398 /* Did the child fail? (This shouldn't happen.) */
19401 /* Did the vfork/compiler bug occur? */
19402 || parent != getpid()
19404 /* Did the file descriptor bug occur? */
19405 || fstat(fileno(stdout), &st) != 0
19410 rm -f conftest$ac_exeext
19411 if { (eval echo "$as_me:19411: \"$ac_link\"") >&5
19412 (eval $ac_link) 2>&5
19414 echo "$as_me:19414: \$? = $ac_status" >&5
19415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19416 { (eval echo "$as_me:19416: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:19419: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_cv_func_vfork_works=yes
19423 echo "$as_me: program exited with status $ac_status" >&5
19424 echo "$as_me: failed program was:" >&5
19425 cat conftest.$ac_ext >&5
19426 ac_cv_func_vfork_works=no
19428 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19431 echo "$as_me:19431: result: $ac_cv_func_vfork_works" >&5
19432 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19435 if test "x$ac_cv_func_fork_works" = xcross; then
19436 ac_cv_func_vfork_works=ac_cv_func_vfork
19437 { echo "$as_me:19437: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
19438 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
19441 if test "x$ac_cv_func_vfork_works" = xyes; then
19443 cat >>confdefs.h <<\EOF
19444 #define HAVE_WORKING_VFORK 1
19449 cat >>confdefs.h <<\EOF
19454 if test "x$ac_cv_func_fork_works" = xyes; then
19456 cat >>confdefs.h <<\EOF
19457 #define HAVE_WORKING_FORK 1
19462 # special check for test/ditto.c
19464 echo "$as_me:19464: checking for openpty in -lutil" >&5
19465 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
19466 if test "${ac_cv_lib_util_openpty+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 ac_check_lib_save_LIBS=$LIBS
19470 LIBS="-lutil $LIBS"
19471 cat >conftest.$ac_ext <<_ACEOF
19472 #line 19472 "configure"
19473 #include "confdefs.h"
19475 /* Override any gcc2 internal prototype to avoid an error. */
19479 /* We use char because int might match the return type of a gcc2
19480 builtin and then its argument prototype would still apply. */
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (eval echo "$as_me:19491: \"$ac_link\"") >&5
19492 (eval $ac_link) 2>&5
19494 echo "$as_me:19494: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -s conftest$ac_exeext'
19497 { (eval echo "$as_me:19497: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:19500: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 ac_cv_lib_util_openpty=yes
19504 echo "$as_me: failed program was:" >&5
19505 cat conftest.$ac_ext >&5
19506 ac_cv_lib_util_openpty=no
19508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19509 LIBS=$ac_check_lib_save_LIBS
19511 echo "$as_me:19511: result: $ac_cv_lib_util_openpty" >&5
19512 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
19513 if test $ac_cv_lib_util_openpty = yes; then
19519 echo "$as_me:19519: checking for openpty header" >&5
19520 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
19521 if test "${cf_cv_func_openpty+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 cf_save_LIBS="$LIBS"
19526 test $cf_cv_lib_util = yes && {
19527 cf_add_libs="-lutil"
19528 # Filter out duplicates - this happens with badly-designed ".pc" files...
19529 for cf_add_1lib in $LIBS
19531 for cf_add_2lib in $cf_add_libs
19533 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19539 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19541 LIBS="$cf_add_libs"
19543 for cf_header in pty.h libutil.h util.h
19545 cat >conftest.$ac_ext <<_ACEOF
19546 #line 19546 "configure"
19547 #include "confdefs.h"
19549 #include <$cf_header>
19555 int x = openpty((int *)0, (int *)0, (char *)0,
19556 (struct termios *)0, (struct winsize *)0);
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (eval echo "$as_me:19563: \"$ac_link\"") >&5
19564 (eval $ac_link) 2>&5
19566 echo "$as_me:19566: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -s conftest$ac_exeext'
19569 { (eval echo "$as_me:19569: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:19572: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19575 cf_cv_func_openpty=$cf_header
19579 echo "$as_me: failed program was:" >&5
19580 cat conftest.$ac_ext >&5
19582 cf_cv_func_openpty=no
19585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19587 LIBS="$cf_save_LIBS"
19590 echo "$as_me:19590: result: $cf_cv_func_openpty" >&5
19591 echo "${ECHO_T}$cf_cv_func_openpty" >&6
19593 if test "$cf_cv_func_openpty" != no ; then
19595 cat >>confdefs.h <<EOF
19596 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
19599 cat >>confdefs.h <<\EOF
19600 #define USE_XTERM_PTY 1
19603 if test "x$cf_cv_lib_util" = xyes ; then
19605 cf_add_libs="-lutil"
19606 # Filter out duplicates - this happens with badly-designed ".pc" files...
19607 for cf_add_1lib in $TEST_LIBS
19609 for cf_add_2lib in $cf_add_libs
19611 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19617 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19619 TEST_LIBS="$cf_add_libs"
19624 if test "$with_hashed_db" != no ; then
19626 cat >>confdefs.h <<\EOF
19627 #define USE_HASHED_DB 1
19630 case $with_hashed_db in
19634 if test -d "$with_hashed_db" ; then
19636 if test -n "$with_hashed_db/include" ; then
19637 for cf_add_incdir in $with_hashed_db/include
19639 while test $cf_add_incdir != /usr/include
19641 if test -d $cf_add_incdir
19644 if test -n "$CFLAGS$CPPFLAGS" ; then
19645 # a loop is needed to ensure we can add subdirs of existing dirs
19646 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19647 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19648 cf_have_incdir=yes; break
19653 if test "$cf_have_incdir" = no ; then
19654 if test "$cf_add_incdir" = /usr/local/include ; then
19655 if test "$GCC" = yes
19657 cf_save_CPPFLAGS=$CPPFLAGS
19658 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19659 cat >conftest.$ac_ext <<_ACEOF
19660 #line 19660 "configure"
19661 #include "confdefs.h"
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:19672: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>&5
19675 echo "$as_me:19675: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -s conftest.$ac_objext'
19678 { (eval echo "$as_me:19678: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:19681: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19685 echo "$as_me: failed program was:" >&5
19686 cat conftest.$ac_ext >&5
19689 rm -f conftest.$ac_objext conftest.$ac_ext
19690 CPPFLAGS=$cf_save_CPPFLAGS
19695 if test "$cf_have_incdir" = no ; then
19696 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19698 echo "${as_me:-configure}:19698: testing adding $cf_add_incdir to include-path ..." 1>&5
19700 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19702 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19703 test "$cf_top_incdir" = "$cf_add_incdir" && break
19704 cf_add_incdir="$cf_top_incdir"
19715 if test -n "$with_hashed_db/lib" ; then
19716 for cf_add_libdir in $with_hashed_db/lib
19718 if test $cf_add_libdir = /usr/lib ; then
19720 elif test -d $cf_add_libdir
19723 if test -n "$LDFLAGS$LIBS" ; then
19724 # a loop is needed to ensure we can add subdirs of existing dirs
19725 for cf_test_libdir in $LDFLAGS $LIBS ; do
19726 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19727 cf_have_libdir=yes; break
19731 if test "$cf_have_libdir" = no ; then
19732 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19734 echo "${as_me:-configure}:19734: testing adding $cf_add_libdir to library-path ..." 1>&5
19736 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19743 case "$with_hashed_db" in
19745 { echo "$as_me:19745: WARNING: no such directory $with_hashed_db" >&5
19746 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
19752 test "x$prefix" != "xNONE" && \
19753 test -d "$prefix" && \
19755 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
19756 test -d $prefix/include && cf_search="$cf_search $prefix/include"
19757 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
19758 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
19759 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
19760 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
19763 for cf_subdir_prefix in \
19772 test "x$cf_subdir_prefix" != "x$prefix" && \
19773 test -d "$cf_subdir_prefix" && \
19774 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19775 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
19776 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
19777 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
19778 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
19779 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
19780 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"
19785 for cf_item in $cf_search
19788 (*/$with_hashed_db)
19790 if test -n "$cf_item" ; then
19791 for cf_add_incdir in $cf_item
19793 while test $cf_add_incdir != /usr/include
19795 if test -d $cf_add_incdir
19798 if test -n "$CFLAGS$CPPFLAGS" ; then
19799 # a loop is needed to ensure we can add subdirs of existing dirs
19800 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19801 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19802 cf_have_incdir=yes; break
19807 if test "$cf_have_incdir" = no ; then
19808 if test "$cf_add_incdir" = /usr/local/include ; then
19809 if test "$GCC" = yes
19811 cf_save_CPPFLAGS=$CPPFLAGS
19812 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19813 cat >conftest.$ac_ext <<_ACEOF
19814 #line 19814 "configure"
19815 #include "confdefs.h"
19825 rm -f conftest.$ac_objext
19826 if { (eval echo "$as_me:19826: \"$ac_compile\"") >&5
19827 (eval $ac_compile) 2>&5
19829 echo "$as_me:19829: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
19831 { ac_try='test -s conftest.$ac_objext'
19832 { (eval echo "$as_me:19832: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19835 echo "$as_me:19835: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19839 echo "$as_me: failed program was:" >&5
19840 cat conftest.$ac_ext >&5
19843 rm -f conftest.$ac_objext conftest.$ac_ext
19844 CPPFLAGS=$cf_save_CPPFLAGS
19849 if test "$cf_have_incdir" = no ; then
19850 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19852 echo "${as_me:-configure}:19852: testing adding $cf_add_incdir to include-path ..." 1>&5
19854 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19856 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19857 test "$cf_top_incdir" = "$cf_add_incdir" && break
19858 cf_add_incdir="$cf_top_incdir"
19875 test "x$prefix" != "xNONE" && \
19876 test -d "$prefix" && \
19878 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
19879 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
19880 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
19881 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
19882 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
19883 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
19886 for cf_subdir_prefix in \
19895 test "x$cf_subdir_prefix" != "x$prefix" && \
19896 test -d "$cf_subdir_prefix" && \
19897 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19898 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
19899 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
19900 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
19901 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
19902 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
19903 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"
19908 for cf_item in $cf_search
19911 (*/$with_hashed_db)
19913 if test -n "$cf_item" ; then
19914 for cf_add_libdir in $cf_item
19916 if test $cf_add_libdir = /usr/lib ; then
19918 elif test -d $cf_add_libdir
19921 if test -n "$LDFLAGS$LIBS" ; then
19922 # a loop is needed to ensure we can add subdirs of existing dirs
19923 for cf_test_libdir in $LDFLAGS $LIBS ; do
19924 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19925 cf_have_libdir=yes; break
19929 if test "$cf_have_libdir" = no ; then
19930 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19932 echo "${as_me:-configure}:19932: testing adding $cf_add_libdir to library-path ..." 1>&5
19934 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19949 echo "$as_me:19949: checking for db.h" >&5
19950 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
19951 if test "${ac_cv_header_db_h+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 cat >conftest.$ac_ext <<_ACEOF
19955 #line 19955 "configure"
19956 #include "confdefs.h"
19959 if { (eval echo "$as_me:19959: \"$ac_cpp conftest.$ac_ext\"") >&5
19960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19962 egrep -v '^ *\+' conftest.er1 >conftest.err
19964 cat conftest.err >&5
19965 echo "$as_me:19965: \$? = $ac_status" >&5
19966 (exit $ac_status); } >/dev/null; then
19967 if test -s conftest.err; then
19968 ac_cpp_err=$ac_c_preproc_warn_flag
19975 if test -z "$ac_cpp_err"; then
19976 ac_cv_header_db_h=yes
19978 echo "$as_me: failed program was:" >&5
19979 cat conftest.$ac_ext >&5
19980 ac_cv_header_db_h=no
19982 rm -f conftest.err conftest.$ac_ext
19984 echo "$as_me:19984: result: $ac_cv_header_db_h" >&5
19985 echo "${ECHO_T}$ac_cv_header_db_h" >&6
19986 if test $ac_cv_header_db_h = yes; then
19988 echo "$as_me:19988: checking for version of db" >&5
19989 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
19990 if test "${cf_cv_hashed_db_version+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 cf_cv_hashed_db_version=unknown
19996 for cf_db_version in 1 2 3 4 5 6
19999 echo "${as_me:-configure}:19999: testing checking for db version $cf_db_version ..." 1>&5
20001 cat >conftest.$ac_ext <<_ACEOF
20002 #line 20002 "configure"
20003 #include "confdefs.h"
20005 $ac_includes_default
20008 #ifdef DB_VERSION_MAJOR
20009 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
20010 #if $cf_db_version == DB_VERSION_MAJOR
20016 #if $cf_db_version == 1
20017 /* ok: assuming this is DB 1.8.5 */
20031 rm -f conftest.$ac_objext
20032 if { (eval echo "$as_me:20032: \"$ac_compile\"") >&5
20033 (eval $ac_compile) 2>&5
20035 echo "$as_me:20035: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (eval echo "$as_me:20038: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20041 echo "$as_me:20041: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20044 cf_cv_hashed_db_version=$cf_db_version
20048 echo "$as_me: failed program was:" >&5
20049 cat conftest.$ac_ext >&5
20051 rm -f conftest.$ac_objext conftest.$ac_ext
20055 echo "$as_me:20055: result: $cf_cv_hashed_db_version" >&5
20056 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
20058 if test "$cf_cv_hashed_db_version" = unknown ; then
20059 { { echo "$as_me:20059: error: Cannot determine version of db" >&5
20060 echo "$as_me: error: Cannot determine version of db" >&2;}
20061 { (exit 1); exit 1; }; }
20064 echo "$as_me:20064: checking for db libraries" >&5
20065 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
20066 if test "${cf_cv_hashed_db_libs+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 cf_cv_hashed_db_libs=unknown
20071 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
20073 cf_save_libs="$LIBS"
20074 if test -n "$cf_db_libs"; then
20076 cf_add_libs="-l$cf_db_libs"
20077 # Filter out duplicates - this happens with badly-designed ".pc" files...
20078 for cf_add_1lib in $LIBS
20080 for cf_add_2lib in $cf_add_libs
20082 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20088 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20090 LIBS="$cf_add_libs"
20094 echo "${as_me:-configure}:20094: testing checking for library "$cf_db_libs" ..." 1>&5
20096 cat >conftest.$ac_ext <<_ACEOF
20097 #line 20097 "configure"
20098 #include "confdefs.h"
20100 $ac_includes_default
20107 char *path = "/tmp/foo";
20108 #ifdef DB_VERSION_MAJOR
20109 #if DB_VERSION_MAJOR >= 4
20111 db_create(&result, NULL, 0);
20112 result->open(result,
20119 #elif DB_VERSION_MAJOR >= 3
20121 db_create(&result, NULL, 0);
20122 result->open(result,
20128 #elif DB_VERSION_MAJOR >= 2
20137 #endif /* DB_VERSION_MAJOR */
20139 DB *result = dbopen(path,
20145 ${cf_cv_main_return:-return}(result != 0)
20151 rm -f conftest.$ac_objext conftest$ac_exeext
20152 if { (eval echo "$as_me:20152: \"$ac_link\"") >&5
20153 (eval $ac_link) 2>&5
20155 echo "$as_me:20155: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (eval echo "$as_me:20158: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:20161: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20164 if test -n "$cf_db_libs" ; then
20165 cf_cv_hashed_db_libs=$cf_db_libs
20167 cf_cv_hashed_db_libs=default
20169 LIBS="$cf_save_libs"
20173 echo "$as_me: failed program was:" >&5
20174 cat conftest.$ac_ext >&5
20176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20177 LIBS="$cf_save_libs"
20181 echo "$as_me:20181: result: $cf_cv_hashed_db_libs" >&5
20182 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
20184 if test "$cf_cv_hashed_db_libs" = unknown ; then
20185 { { echo "$as_me:20185: error: Cannot determine library for db" >&5
20186 echo "$as_me: error: Cannot determine library for db" >&2;}
20187 { (exit 1); exit 1; }; }
20188 elif test "$cf_cv_hashed_db_libs" != default ; then
20190 cf_add_libs="-l$cf_cv_hashed_db_libs"
20191 # Filter out duplicates - this happens with badly-designed ".pc" files...
20192 for cf_add_1lib in $LIBS
20194 for cf_add_2lib in $cf_add_libs
20196 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20202 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20204 LIBS="$cf_add_libs"
20211 { { echo "$as_me:20211: error: Cannot find db.h" >&5
20212 echo "$as_me: error: Cannot find db.h" >&2;}
20213 { (exit 1); exit 1; }; }
20219 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
20220 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
20221 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
20224 # Just in case, check if the C compiler has a bool type.
20226 echo "$as_me:20226: checking if we should include stdbool.h" >&5
20227 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20229 if test "${cf_cv_header_stdbool_h+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20234 #line 20234 "configure"
20235 #include "confdefs.h"
20245 rm -f conftest.$ac_objext
20246 if { (eval echo "$as_me:20246: \"$ac_compile\"") >&5
20247 (eval $ac_compile) 2>&5
20249 echo "$as_me:20249: \$? = $ac_status" >&5
20250 (exit $ac_status); } &&
20251 { ac_try='test -s conftest.$ac_objext'
20252 { (eval echo "$as_me:20252: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:20255: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 cf_cv_header_stdbool_h=0
20259 echo "$as_me: failed program was:" >&5
20260 cat conftest.$ac_ext >&5
20261 cat >conftest.$ac_ext <<_ACEOF
20262 #line 20262 "configure"
20263 #include "confdefs.h"
20266 #include <stdbool.h>
20277 rm -f conftest.$ac_objext
20278 if { (eval echo "$as_me:20278: \"$ac_compile\"") >&5
20279 (eval $ac_compile) 2>&5
20281 echo "$as_me:20281: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try='test -s conftest.$ac_objext'
20284 { (eval echo "$as_me:20284: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 echo "$as_me:20287: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 cf_cv_header_stdbool_h=1
20291 echo "$as_me: failed program was:" >&5
20292 cat conftest.$ac_ext >&5
20293 cf_cv_header_stdbool_h=0
20295 rm -f conftest.$ac_objext conftest.$ac_ext
20297 rm -f conftest.$ac_objext conftest.$ac_ext
20300 if test "$cf_cv_header_stdbool_h" = 1
20301 then echo "$as_me:20301: result: yes" >&5
20302 echo "${ECHO_T}yes" >&6
20303 else echo "$as_me:20303: result: no" >&5
20304 echo "${ECHO_T}no" >&6
20307 echo "$as_me:20307: checking for builtin bool type" >&5
20308 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20310 if test "${cf_cv_cc_bool_type+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 cat >conftest.$ac_ext <<_ACEOF
20315 #line 20315 "configure"
20316 #include "confdefs.h"
20319 #include <sys/types.h>
20329 rm -f conftest.$ac_objext
20330 if { (eval echo "$as_me:20330: \"$ac_compile\"") >&5
20331 (eval $ac_compile) 2>&5
20333 echo "$as_me:20333: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -s conftest.$ac_objext'
20336 { (eval echo "$as_me:20336: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 echo "$as_me:20339: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 cf_cv_cc_bool_type=1
20343 echo "$as_me: failed program was:" >&5
20344 cat conftest.$ac_ext >&5
20345 cf_cv_cc_bool_type=0
20347 rm -f conftest.$ac_objext conftest.$ac_ext
20351 if test "$cf_cv_cc_bool_type" = 1
20352 then echo "$as_me:20352: result: yes" >&5
20353 echo "${ECHO_T}yes" >&6
20354 else echo "$as_me:20354: result: no" >&5
20355 echo "${ECHO_T}no" >&6
20358 # Check for C++ compiler characteristics (and ensure that it's there!)
20359 if test -n "$CXX" ; then
20361 ac_cpp='$CXXCPP $CPPFLAGS'
20362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20365 ac_main_return=return
20367 if test -n "$GXX" ; then
20370 LIBS="$LIBS $CXXLIBS"
20371 echo "$as_me:20371: checking if we already have C++ library" >&5
20372 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
20373 cat >conftest.$ac_ext <<_ACEOF
20374 #line 20374 "configure"
20375 #include "confdefs.h"
20377 #include <iostream>
20382 std::cout << "Hello World!" << std::endl;
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (eval echo "$as_me:20388: \"$ac_link\"") >&5
20389 (eval $ac_link) 2>&5
20391 echo "$as_me:20391: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
20393 { ac_try='test -s conftest$ac_exeext'
20394 { (eval echo "$as_me:20394: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:20397: \$? = $ac_status" >&5
20398 (exit $ac_status); }; }; then
20399 cf_have_libstdcpp=yes
20401 echo "$as_me: failed program was:" >&5
20402 cat conftest.$ac_ext >&5
20403 cf_have_libstdcpp=no
20405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20406 echo "$as_me:20406: result: $cf_have_libstdcpp" >&5
20407 echo "${ECHO_T}$cf_have_libstdcpp" >&6
20410 if test $cf_have_libstdcpp != yes
20412 case $cf_cv_system_name in
20414 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
20415 cf_stdcpp_libname=stdcpp
20417 cf_stdcpp_libname=stdc++
20421 cf_stdcpp_libname=stdc++
20425 echo "$as_me:20425: checking for library $cf_stdcpp_libname" >&5
20426 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
20427 if test "${cf_cv_libstdcpp+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 LIBS="$LIBS $CXXLIBS"
20434 cf_add_libs="-l$cf_stdcpp_libname"
20435 # Filter out duplicates - this happens with badly-designed ".pc" files...
20436 for cf_add_1lib in $LIBS
20438 for cf_add_2lib in $cf_add_libs
20440 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20446 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20448 LIBS="$cf_add_libs"
20450 cat >conftest.$ac_ext <<_ACEOF
20451 #line 20451 "configure"
20452 #include "confdefs.h"
20454 #include <iostream>
20459 std::cout << "Hello World!" << std::endl;
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (eval echo "$as_me:20465: \"$ac_link\"") >&5
20466 (eval $ac_link) 2>&5
20468 echo "$as_me:20468: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -s conftest$ac_exeext'
20471 { (eval echo "$as_me:20471: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20474 echo "$as_me:20474: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 cf_cv_libstdcpp=yes
20478 echo "$as_me: failed program was:" >&5
20479 cat conftest.$ac_ext >&5
20482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20486 echo "$as_me:20486: result: $cf_cv_libstdcpp" >&5
20487 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
20488 test "$cf_cv_libstdcpp" = yes && {
20489 cf_add_libs="-l$cf_stdcpp_libname"
20490 # Filter out duplicates - this happens with badly-designed ".pc" files...
20491 for cf_add_1lib in $CXXLIBS
20493 for cf_add_2lib in $cf_add_libs
20495 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20501 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20503 CXXLIBS="$cf_add_libs"
20508 echo "$as_me:20508: checking whether $CXX understands -c and -o together" >&5
20509 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
20510 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 cat > conftest.$ac_ext <<CF_EOF
20517 ${cf_cv_main_return:-return}(0);
20520 # We do the test twice because some compilers refuse to overwrite an
20521 # existing .o file with -o, though they will create one.
20522 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20523 if { (eval echo "$as_me:20523: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20526 echo "$as_me:20526: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 test -f conftest2.$ac_objext && { (eval echo "$as_me:20528: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20531 echo "$as_me:20531: \$? = $ac_status" >&5
20532 (exit $ac_status); };
20534 eval cf_cv_prog_CXX_c_o=yes
20536 eval cf_cv_prog_CXX_c_o=no
20541 if test $cf_cv_prog_CXX_c_o = yes; then
20542 echo "$as_me:20542: result: yes" >&5
20543 echo "${ECHO_T}yes" >&6
20545 echo "$as_me:20545: result: no" >&5
20546 echo "${ECHO_T}no" >&6
20549 case $GXX_VERSION in
20555 cf_cxx_library=unknown
20556 case $cf_cv_system_name in
20564 if test "$GXX" = yes; then
20565 echo "$as_me:20565: checking for lib$cf_gpp_libname" >&5
20566 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
20569 cf_add_libs="-l$cf_gpp_libname"
20570 # Filter out duplicates - this happens with badly-designed ".pc" files...
20571 for cf_add_1lib in $LIBS
20573 for cf_add_2lib in $cf_add_libs
20575 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20583 LIBS="$cf_add_libs"
20585 cat >conftest.$ac_ext <<_ACEOF
20586 #line 20586 "configure"
20587 #include "confdefs.h"
20589 #include <$cf_gpp_libname/builtin.h>
20594 two_arg_error_handler_t foo2 = lib_error_handler
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (eval echo "$as_me:20600: \"$ac_link\"") >&5
20601 (eval $ac_link) 2>&5
20603 echo "$as_me:20603: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -s 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
20613 cf_add_libs="-l$cf_gpp_libname"
20614 # Filter out duplicates - this happens with badly-designed ".pc" files...
20615 for cf_add_1lib in $CXXLIBS
20617 for cf_add_2lib in $cf_add_libs
20619 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20625 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20627 CXXLIBS="$cf_add_libs"
20629 if test "$cf_gpp_libname" = cpp ; then
20631 cat >>confdefs.h <<\EOF
20632 #define HAVE_GPP_BUILTIN_H 1
20637 cat >>confdefs.h <<\EOF
20638 #define HAVE_GXX_BUILTIN_H 1
20643 echo "$as_me: failed program was:" >&5
20644 cat conftest.$ac_ext >&5
20645 cat >conftest.$ac_ext <<_ACEOF
20646 #line 20646 "configure"
20647 #include "confdefs.h"
20649 #include <builtin.h>
20654 two_arg_error_handler_t foo2 = lib_error_handler
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (eval echo "$as_me:20660: \"$ac_link\"") >&5
20661 (eval $ac_link) 2>&5
20663 echo "$as_me:20663: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -s conftest$ac_exeext'
20666 { (eval echo "$as_me:20666: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 echo "$as_me:20669: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20673 cf_add_libs="-l$cf_gpp_libname"
20674 # Filter out duplicates - this happens with badly-designed ".pc" files...
20675 for cf_add_1lib in $CXXLIBS
20677 for cf_add_2lib in $cf_add_libs
20679 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20685 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20687 CXXLIBS="$cf_add_libs"
20689 cat >>confdefs.h <<\EOF
20690 #define HAVE_BUILTIN_H 1
20694 echo "$as_me: failed program was:" >&5
20695 cat conftest.$ac_ext >&5
20698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20702 echo "$as_me:20702: result: $cf_cxx_library" >&5
20703 echo "${ECHO_T}$cf_cxx_library" >&6
20713 ac_cpp='$CXXCPP $CPPFLAGS'
20714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20717 ac_main_return=return
20718 echo "$as_me:20718: checking how to run the C++ preprocessor" >&5
20719 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20720 if test -z "$CXXCPP"; then
20721 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 # Double quotes because CXXCPP needs to be expanded
20725 for CXXCPP in "$CXX -E" "/lib/cpp"
20727 ac_preproc_ok=false
20728 for ac_cxx_preproc_warn_flag in '' yes
20730 # Use a header file that comes with gcc, so configuring glibc
20731 # with a fresh cross-compiler works.
20732 # On the NeXT, cc -E runs the code through the compiler's parser,
20733 # not just through cpp. "Syntax error" is here to catch this case.
20734 cat >conftest.$ac_ext <<_ACEOF
20735 #line 20735 "configure"
20736 #include "confdefs.h"
20737 #include <assert.h>
20740 if { (eval echo "$as_me:20740: \"$ac_cpp conftest.$ac_ext\"") >&5
20741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20743 egrep -v '^ *\+' conftest.er1 >conftest.err
20745 cat conftest.err >&5
20746 echo "$as_me:20746: \$? = $ac_status" >&5
20747 (exit $ac_status); } >/dev/null; then
20748 if test -s conftest.err; then
20749 ac_cpp_err=$ac_cxx_preproc_warn_flag
20756 if test -z "$ac_cpp_err"; then
20759 echo "$as_me: failed program was:" >&5
20760 cat conftest.$ac_ext >&5
20761 # Broken: fails on valid input.
20764 rm -f conftest.err conftest.$ac_ext
20766 # OK, works on sane cases. Now check whether non-existent headers
20767 # can be detected and how.
20768 cat >conftest.$ac_ext <<_ACEOF
20769 #line 20769 "configure"
20770 #include "confdefs.h"
20771 #include <ac_nonexistent.h>
20773 if { (eval echo "$as_me:20773: \"$ac_cpp conftest.$ac_ext\"") >&5
20774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20776 egrep -v '^ *\+' conftest.er1 >conftest.err
20778 cat conftest.err >&5
20779 echo "$as_me:20779: \$? = $ac_status" >&5
20780 (exit $ac_status); } >/dev/null; then
20781 if test -s conftest.err; then
20782 ac_cpp_err=$ac_cxx_preproc_warn_flag
20789 if test -z "$ac_cpp_err"; then
20790 # Broken: success on invalid input.
20793 echo "$as_me: failed program was:" >&5
20794 cat conftest.$ac_ext >&5
20795 # Passes both tests.
20799 rm -f conftest.err conftest.$ac_ext
20802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20803 rm -f conftest.err conftest.$ac_ext
20804 if $ac_preproc_ok; then
20809 ac_cv_prog_CXXCPP=$CXXCPP
20812 CXXCPP=$ac_cv_prog_CXXCPP
20814 ac_cv_prog_CXXCPP=$CXXCPP
20816 echo "$as_me:20816: result: $CXXCPP" >&5
20817 echo "${ECHO_T}$CXXCPP" >&6
20818 ac_preproc_ok=false
20819 for ac_cxx_preproc_warn_flag in '' yes
20821 # Use a header file that comes with gcc, so configuring glibc
20822 # with a fresh cross-compiler works.
20823 # On the NeXT, cc -E runs the code through the compiler's parser,
20824 # not just through cpp. "Syntax error" is here to catch this case.
20825 cat >conftest.$ac_ext <<_ACEOF
20826 #line 20826 "configure"
20827 #include "confdefs.h"
20828 #include <assert.h>
20831 if { (eval echo "$as_me:20831: \"$ac_cpp conftest.$ac_ext\"") >&5
20832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20834 egrep -v '^ *\+' conftest.er1 >conftest.err
20836 cat conftest.err >&5
20837 echo "$as_me:20837: \$? = $ac_status" >&5
20838 (exit $ac_status); } >/dev/null; then
20839 if test -s conftest.err; then
20840 ac_cpp_err=$ac_cxx_preproc_warn_flag
20847 if test -z "$ac_cpp_err"; then
20850 echo "$as_me: failed program was:" >&5
20851 cat conftest.$ac_ext >&5
20852 # Broken: fails on valid input.
20855 rm -f conftest.err conftest.$ac_ext
20857 # OK, works on sane cases. Now check whether non-existent headers
20858 # can be detected and how.
20859 cat >conftest.$ac_ext <<_ACEOF
20860 #line 20860 "configure"
20861 #include "confdefs.h"
20862 #include <ac_nonexistent.h>
20864 if { (eval echo "$as_me:20864: \"$ac_cpp conftest.$ac_ext\"") >&5
20865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20867 egrep -v '^ *\+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:20870: \$? = $ac_status" >&5
20871 (exit $ac_status); } >/dev/null; then
20872 if test -s conftest.err; then
20873 ac_cpp_err=$ac_cxx_preproc_warn_flag
20880 if test -z "$ac_cpp_err"; then
20881 # Broken: success on invalid input.
20884 echo "$as_me: failed program was:" >&5
20885 cat conftest.$ac_ext >&5
20886 # Passes both tests.
20890 rm -f conftest.err conftest.$ac_ext
20893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20894 rm -f conftest.err conftest.$ac_ext
20895 if $ac_preproc_ok; then
20898 { { echo "$as_me:20898: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
20899 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
20900 { (exit 1); exit 1; }; }
20904 ac_cpp='$CXXCPP $CPPFLAGS'
20905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20908 ac_main_return=return
20910 for ac_header in typeinfo
20912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20913 echo "$as_me:20913: checking for $ac_header" >&5
20914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 cat >conftest.$ac_ext <<_ACEOF
20919 #line 20919 "configure"
20920 #include "confdefs.h"
20921 #include <$ac_header>
20923 if { (eval echo "$as_me:20923: \"$ac_cpp conftest.$ac_ext\"") >&5
20924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20926 egrep -v '^ *\+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:20929: \$? = $ac_status" >&5
20930 (exit $ac_status); } >/dev/null; then
20931 if test -s conftest.err; then
20932 ac_cpp_err=$ac_cxx_preproc_warn_flag
20939 if test -z "$ac_cpp_err"; then
20940 eval "$as_ac_Header=yes"
20942 echo "$as_me: failed program was:" >&5
20943 cat conftest.$ac_ext >&5
20944 eval "$as_ac_Header=no"
20946 rm -f conftest.err conftest.$ac_ext
20948 echo "$as_me:20948: result: `eval echo '${'$as_ac_Header'}'`" >&5
20949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20951 cat >>confdefs.h <<EOF
20952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20958 for ac_header in iostream
20960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20961 echo "$as_me:20961: checking for $ac_header" >&5
20962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 cat >conftest.$ac_ext <<_ACEOF
20967 #line 20967 "configure"
20968 #include "confdefs.h"
20969 #include <$ac_header>
20971 if { (eval echo "$as_me:20971: \"$ac_cpp conftest.$ac_ext\"") >&5
20972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20974 egrep -v '^ *\+' conftest.er1 >conftest.err
20976 cat conftest.err >&5
20977 echo "$as_me:20977: \$? = $ac_status" >&5
20978 (exit $ac_status); } >/dev/null; then
20979 if test -s conftest.err; then
20980 ac_cpp_err=$ac_cxx_preproc_warn_flag
20987 if test -z "$ac_cpp_err"; then
20988 eval "$as_ac_Header=yes"
20990 echo "$as_me: failed program was:" >&5
20991 cat conftest.$ac_ext >&5
20992 eval "$as_ac_Header=no"
20994 rm -f conftest.err conftest.$ac_ext
20996 echo "$as_me:20996: result: `eval echo '${'$as_ac_Header'}'`" >&5
20997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20999 cat >>confdefs.h <<EOF
21000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21006 if test x"$ac_cv_header_iostream" = xyes ; then
21007 echo "$as_me:21007: checking if iostream uses std-namespace" >&5
21008 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
21009 cat >conftest.$ac_ext <<_ACEOF
21010 #line 21010 "configure"
21011 #include "confdefs.h"
21013 #include <iostream>
21020 cerr << "testing" << endl;
21026 rm -f conftest.$ac_objext
21027 if { (eval echo "$as_me:21027: \"$ac_compile\"") >&5
21028 (eval $ac_compile) 2>&5
21030 echo "$as_me:21030: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -s conftest.$ac_objext'
21033 { (eval echo "$as_me:21033: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21036 echo "$as_me:21036: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 cf_iostream_namespace=yes
21040 echo "$as_me: failed program was:" >&5
21041 cat conftest.$ac_ext >&5
21042 cf_iostream_namespace=no
21044 rm -f conftest.$ac_objext conftest.$ac_ext
21045 echo "$as_me:21045: result: $cf_iostream_namespace" >&5
21046 echo "${ECHO_T}$cf_iostream_namespace" >&6
21047 if test "$cf_iostream_namespace" = yes ; then
21049 cat >>confdefs.h <<\EOF
21050 #define IOSTREAM_NAMESPACE 1
21056 echo "$as_me:21056: checking if we should include stdbool.h" >&5
21057 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
21059 if test "${cf_cv_header_stdbool_h+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21063 cat >conftest.$ac_ext <<_ACEOF
21064 #line 21064 "configure"
21065 #include "confdefs.h"
21075 rm -f conftest.$ac_objext
21076 if { (eval echo "$as_me:21076: \"$ac_compile\"") >&5
21077 (eval $ac_compile) 2>&5
21079 echo "$as_me:21079: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:21082: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:21085: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 cf_cv_header_stdbool_h=0
21089 echo "$as_me: failed program was:" >&5
21090 cat conftest.$ac_ext >&5
21091 cat >conftest.$ac_ext <<_ACEOF
21092 #line 21092 "configure"
21093 #include "confdefs.h"
21096 #include <stdbool.h>
21107 rm -f conftest.$ac_objext
21108 if { (eval echo "$as_me:21108: \"$ac_compile\"") >&5
21109 (eval $ac_compile) 2>&5
21111 echo "$as_me:21111: \$? = $ac_status" >&5
21112 (exit $ac_status); } &&
21113 { ac_try='test -s conftest.$ac_objext'
21114 { (eval echo "$as_me:21114: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:21117: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 cf_cv_header_stdbool_h=1
21121 echo "$as_me: failed program was:" >&5
21122 cat conftest.$ac_ext >&5
21123 cf_cv_header_stdbool_h=0
21125 rm -f conftest.$ac_objext conftest.$ac_ext
21127 rm -f conftest.$ac_objext conftest.$ac_ext
21130 if test "$cf_cv_header_stdbool_h" = 1
21131 then echo "$as_me:21131: result: yes" >&5
21132 echo "${ECHO_T}yes" >&6
21133 else echo "$as_me:21133: result: no" >&5
21134 echo "${ECHO_T}no" >&6
21137 echo "$as_me:21137: checking for builtin bool type" >&5
21138 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
21140 if test "${cf_cv_builtin_bool+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 cat >conftest.$ac_ext <<_ACEOF
21145 #line 21145 "configure"
21146 #include "confdefs.h"
21149 #include <sys/types.h>
21159 rm -f conftest.$ac_objext
21160 if { (eval echo "$as_me:21160: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>&5
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit $ac_status); } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:21166: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:21169: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 cf_cv_builtin_bool=1
21173 echo "$as_me: failed program was:" >&5
21174 cat conftest.$ac_ext >&5
21175 cf_cv_builtin_bool=0
21177 rm -f conftest.$ac_objext conftest.$ac_ext
21181 if test "$cf_cv_builtin_bool" = 1
21182 then echo "$as_me:21182: result: yes" >&5
21183 echo "${ECHO_T}yes" >&6
21184 else echo "$as_me:21184: result: no" >&5
21185 echo "${ECHO_T}no" >&6
21188 echo "$as_me:21188: checking for size of bool" >&5
21189 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21190 if test "${cf_cv_type_of_bool+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 if test "$cross_compiling" = yes; then
21196 cf_cv_type_of_bool=unknown
21198 cat >conftest.$ac_ext <<_ACEOF
21199 #line 21199 "configure"
21200 #include "confdefs.h"
21202 #include <stdlib.h>
21205 #if defined(__cplusplus)
21207 #ifdef HAVE_GXX_BUILTIN_H
21208 #include <g++/builtin.h>
21209 #elif HAVE_GPP_BUILTIN_H
21210 #include <gpp/builtin.h>
21211 #elif HAVE_BUILTIN_H
21212 #include <builtin.h>
21217 #if $cf_cv_header_stdbool_h
21218 #include <stdbool.h>
21225 FILE *fp = fopen("cf_test.out", "w");
21228 if ((bool)(-x) >= 0)
21229 fputs("unsigned ", fp);
21230 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21231 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21232 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21233 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21236 ${cf_cv_main_return:-return}(0);
21240 rm -f conftest$ac_exeext
21241 if { (eval echo "$as_me:21241: \"$ac_link\"") >&5
21242 (eval $ac_link) 2>&5
21244 echo "$as_me:21244: \$? = $ac_status" >&5
21245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21246 { (eval echo "$as_me:21246: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:21249: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 cf_cv_type_of_bool=`cat cf_test.out`
21252 if test -z "$cf_cv_type_of_bool"; then
21253 cf_cv_type_of_bool=unknown
21256 echo "$as_me: program exited with status $ac_status" >&5
21257 echo "$as_me: failed program was:" >&5
21258 cat conftest.$ac_ext >&5
21259 cf_cv_type_of_bool=unknown
21261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21267 echo "$as_me:21267: result: $cf_cv_type_of_bool" >&5
21268 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21269 if test "$cf_cv_type_of_bool" = unknown ; then
21270 case .$NCURSES_BOOL in
21271 (.auto|.) NCURSES_BOOL=unsigned;;
21273 { echo "$as_me:21273: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21274 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21275 cf_cv_type_of_bool=$NCURSES_BOOL
21278 echo "$as_me:21278: checking for special defines needed for etip.h" >&5
21279 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
21280 cf_save_CXXFLAGS="$CXXFLAGS"
21283 # etip.h includes ncurses.h which includes ncurses_dll.h
21284 # But ncurses_dll.h is generated - fix here.
21285 test -d include || mkdir include
21286 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
21288 for cf_math in "" MATH_H
21290 for cf_excp in "" MATH_EXCEPTION
21292 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
21293 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
21294 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
21295 cat >conftest.$ac_ext <<_ACEOF
21296 #line 21296 "configure"
21297 #include "confdefs.h"
21299 #include <etip.h.in>
21309 rm -f conftest.$ac_objext
21310 if { (eval echo "$as_me:21310: \"$ac_compile\"") >&5
21311 (eval $ac_compile) 2>&5
21313 echo "$as_me:21313: \$? = $ac_status" >&5
21314 (exit $ac_status); } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:21316: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21319 echo "$as_me:21319: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21322 test -n "$cf_math" && cat >>confdefs.h <<EOF
21323 #define ETIP_NEEDS_${cf_math} 1
21326 test -n "$cf_excp" && cat >>confdefs.h <<EOF
21327 #define ETIP_NEEDS_${cf_excp} 1
21330 cf_result="$cf_math $cf_excp"
21334 echo "$as_me: failed program was:" >&5
21335 cat conftest.$ac_ext >&5
21337 rm -f conftest.$ac_objext conftest.$ac_ext
21340 echo "$as_me:21340: result: $cf_result" >&5
21341 echo "${ECHO_T}$cf_result" >&6
21342 CXXFLAGS="$cf_save_CXXFLAGS"
21344 if test -n "$CXX"; then
21345 echo "$as_me:21345: checking if $CXX accepts parameter initialization" >&5
21346 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
21347 if test "${cf_cv_cpp_param_init+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 ac_cpp='$CXXCPP $CPPFLAGS'
21353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21356 ac_main_return=return
21358 if test "$cross_compiling" = yes; then
21359 cf_cv_cpp_param_init=unknown
21361 cat >conftest.$ac_ext <<_ACEOF
21362 #line 21362 "configure"
21363 #include "confdefs.h"
21373 TEST::TEST(int x = 1) // some compilers do not like second initializer
21380 rm -f conftest$ac_exeext
21381 if { (eval echo "$as_me:21381: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21384 echo "$as_me:21384: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21386 { (eval echo "$as_me:21386: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21389 echo "$as_me:21389: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 cf_cv_cpp_param_init=yes
21393 echo "$as_me: program exited with status $ac_status" >&5
21394 echo "$as_me: failed program was:" >&5
21395 cat conftest.$ac_ext >&5
21396 cf_cv_cpp_param_init=no
21398 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21401 ac_cpp='$CXXCPP $CPPFLAGS'
21402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21405 ac_main_return=return
21408 echo "$as_me:21408: result: $cf_cv_cpp_param_init" >&5
21409 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
21411 test "$cf_cv_cpp_param_init" = yes &&
21412 cat >>confdefs.h <<\EOF
21413 #define CPP_HAS_PARAM_INIT 1
21416 if test -n "$CXX"; then
21418 echo "$as_me:21418: checking if $CXX accepts static_cast" >&5
21419 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
21420 if test "${cf_cv_cpp_static_cast+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 ac_cpp='$CXXCPP $CPPFLAGS'
21426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21429 ac_main_return=return
21431 cat >conftest.$ac_ext <<_ACEOF
21432 #line 21432 "configure"
21433 #include "confdefs.h"
21438 NCursesPanel(int nlines,
21448 template<class T> class NCursesUserPanel : public NCursesPanel
21451 NCursesUserPanel (int nlines,
21455 const T* p_UserData = static_cast<T*>(0))
21456 : NCursesPanel (nlines, ncols, begin_y, begin_x)
21459 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
21463 virtual ~NCursesUserPanel() {};
21470 const char* p_UserData = static_cast<char*>(0)
21475 rm -f conftest.$ac_objext
21476 if { (eval echo "$as_me:21476: \"$ac_compile\"") >&5
21477 (eval $ac_compile) 2>&5
21479 echo "$as_me:21479: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
21481 { ac_try='test -s conftest.$ac_objext'
21482 { (eval echo "$as_me:21482: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:21485: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 cf_cv_cpp_static_cast=yes
21489 echo "$as_me: failed program was:" >&5
21490 cat conftest.$ac_ext >&5
21491 cf_cv_cpp_static_cast=no
21493 rm -f conftest.$ac_objext conftest.$ac_ext
21496 ac_cpp='$CXXCPP $CPPFLAGS'
21497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21500 ac_main_return=return
21503 echo "$as_me:21503: result: $cf_cv_cpp_static_cast" >&5
21504 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
21508 test "$cf_cv_cpp_static_cast" = yes &&
21509 cat >>confdefs.h <<\EOF
21510 #define CPP_HAS_STATIC_CAST 1
21514 CXX_ARFLAGS='$(ARFLAGS)'
21515 case $cf_cv_system_name in
21517 if test "$GXX" != yes ; then
21519 CXX_ARFLAGS='-ar -o'
21523 CXXLDFLAGS="-u main"
21526 if test "$GXX" != yes ; then
21528 CXX_ARFLAGS='-xar -o'
21535 cf_cv_builtin_bool=1
21537 # Just because we are not configuring against C++ right now does not
21538 # mean that a user will not want to use C++. Some distributors disable
21539 # the C++ portion of this configuration as a shortcut (or just to avoid
21540 # compiling the demo in the c++ directory). So we need a reasonable
21541 # default for the 'bool' type.
21543 # Caveat: since the storage of the bool type is not standardized, it
21546 if test "$NCURSES_BOOL" != auto ; then
21547 cf_cv_type_of_bool=$NCURSES_BOOL
21548 cf_cv_header_stdbool_h=0
21550 if test "$cf_cv_header_stdbool_h" = 1 ; then
21552 echo "$as_me:21552: checking for size of bool" >&5
21553 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21554 if test "${cf_cv_type_of_bool+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 if test "$cross_compiling" = yes; then
21560 cf_cv_type_of_bool=unknown
21562 cat >conftest.$ac_ext <<_ACEOF
21563 #line 21563 "configure"
21564 #include "confdefs.h"
21566 #include <stdlib.h>
21569 #if defined(__cplusplus)
21571 #ifdef HAVE_GXX_BUILTIN_H
21572 #include <g++/builtin.h>
21573 #elif HAVE_GPP_BUILTIN_H
21574 #include <gpp/builtin.h>
21575 #elif HAVE_BUILTIN_H
21576 #include <builtin.h>
21581 #if $cf_cv_header_stdbool_h
21582 #include <stdbool.h>
21589 FILE *fp = fopen("cf_test.out", "w");
21592 if ((bool)(-x) >= 0)
21593 fputs("unsigned ", fp);
21594 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21595 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21596 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21597 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21600 ${cf_cv_main_return:-return}(0);
21604 rm -f conftest$ac_exeext
21605 if { (eval echo "$as_me:21605: \"$ac_link\"") >&5
21606 (eval $ac_link) 2>&5
21608 echo "$as_me:21608: \$? = $ac_status" >&5
21609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21610 { (eval echo "$as_me:21610: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:21613: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 cf_cv_type_of_bool=`cat cf_test.out`
21616 if test -z "$cf_cv_type_of_bool"; then
21617 cf_cv_type_of_bool=unknown
21620 echo "$as_me: program exited with status $ac_status" >&5
21621 echo "$as_me: failed program was:" >&5
21622 cat conftest.$ac_ext >&5
21623 cf_cv_type_of_bool=unknown
21625 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631 echo "$as_me:21631: result: $cf_cv_type_of_bool" >&5
21632 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21633 if test "$cf_cv_type_of_bool" = unknown ; then
21634 case .$NCURSES_BOOL in
21635 (.auto|.) NCURSES_BOOL=unsigned;;
21637 { echo "$as_me:21637: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21638 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21639 cf_cv_type_of_bool=$NCURSES_BOOL
21643 echo "$as_me:21643: checking for fallback type of bool" >&5
21644 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
21645 case "$host_cpu" in
21646 (i?86) cf_cv_type_of_bool=char ;;
21647 (*) cf_cv_type_of_bool=int ;;
21649 echo "$as_me:21649: result: $cf_cv_type_of_bool" >&5
21650 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21655 # If the C compiler did not declare bool, and we did not determine that the C++
21656 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
21657 # ncurses library use the same type as C++ bool. Note that this allows one to
21658 # specify the type of bool in a configure-script option and postpone
21659 # integration with the C++ compiler provided that the types are compatible.
21661 if test $cf_cv_cc_bool_type = 1
21663 # oops: C has a bool. Unlikely, but C++ could differ.
21665 elif test $cf_cv_builtin_bool = 0
21670 # this is the normal case
21671 USE_CXX_BOOL='defined(__cplusplus)'
21674 if test -f "${srcdir}/Ada95/Makefile.in" ; then
21676 if test "$cf_with_ada" != "no" ; then
21677 if test "$with_libtool" != "no"; then
21678 { echo "$as_me:21678: WARNING: libtool does not support Ada - disabling feature" >&5
21679 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
21684 if test "$cf_with_ada" != "no" ; then
21686 cf_ada_make=gnatmake
21687 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
21688 set dummy $cf_ada_make; ac_word=$2
21689 echo "$as_me:21689: checking for $ac_word" >&5
21690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21691 if test "${ac_cv_prog_gnat_exists+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 if test -n "$gnat_exists"; then
21695 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
21697 ac_save_IFS=$IFS; IFS=$ac_path_separator
21699 for ac_dir in $ac_dummy; do
21701 test -z "$ac_dir" && ac_dir=.
21702 $as_executable_p "$ac_dir/$ac_word" || continue
21703 ac_cv_prog_gnat_exists="yes"
21704 echo "$as_me:21704: found $ac_dir/$ac_word" >&5
21708 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
21711 gnat_exists=$ac_cv_prog_gnat_exists
21712 if test -n "$gnat_exists"; then
21713 echo "$as_me:21713: result: $gnat_exists" >&5
21714 echo "${ECHO_T}$gnat_exists" >&6
21716 echo "$as_me:21716: result: no" >&5
21717 echo "${ECHO_T}no" >&6
21720 if test "$ac_cv_prog_gnat_exists" = no; then
21722 cf_cv_prog_gnat_correct=no
21725 echo "$as_me:21725: checking for gnat version" >&5
21726 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
21727 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
21728 grep '[0-9].[0-9][0-9]*' |\
21729 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
21730 echo "$as_me:21730: result: $cf_gnat_version" >&5
21731 echo "${ECHO_T}$cf_gnat_version" >&6
21733 case $cf_gnat_version in
21734 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
21735 cf_cv_prog_gnat_correct=yes
21738 { echo "$as_me:21738: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
21739 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
21740 cf_cv_prog_gnat_correct=no
21744 # Extract the first word of "m4", so it can be a program name with args.
21745 set dummy m4; ac_word=$2
21746 echo "$as_me:21746: checking for $ac_word" >&5
21747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21748 if test "${ac_cv_prog_M4_exists+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 if test -n "$M4_exists"; then
21752 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
21754 ac_save_IFS=$IFS; IFS=$ac_path_separator
21756 for ac_dir in $ac_dummy; do
21758 test -z "$ac_dir" && ac_dir=.
21759 $as_executable_p "$ac_dir/$ac_word" || continue
21760 ac_cv_prog_M4_exists="yes"
21761 echo "$as_me:21761: found $ac_dir/$ac_word" >&5
21765 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
21768 M4_exists=$ac_cv_prog_M4_exists
21769 if test -n "$M4_exists"; then
21770 echo "$as_me:21770: result: $M4_exists" >&5
21771 echo "${ECHO_T}$M4_exists" >&6
21773 echo "$as_me:21773: result: no" >&5
21774 echo "${ECHO_T}no" >&6
21777 if test "$ac_cv_prog_M4_exists" = no; then
21778 cf_cv_prog_gnat_correct=no
21779 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
21781 if test "$cf_cv_prog_gnat_correct" = yes; then
21782 echo "$as_me:21782: checking if GNAT works" >&5
21783 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
21785 rm -rf conftest* *~conftest*
21786 cat >>conftest.ads <<CF_EOF
21787 procedure conftest;
21789 cat >>conftest.adb <<CF_EOF
21792 procedure conftest is
21794 Text_IO.Put ("Hello World");
21796 GNAT.OS_Lib.OS_Exit (0);
21799 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21800 if ( ./conftest 1>&5 2>&1 ) ; then
21801 cf_cv_prog_gnat_correct=yes
21803 cf_cv_prog_gnat_correct=no
21806 cf_cv_prog_gnat_correct=no
21808 rm -rf conftest* *~conftest*
21810 echo "$as_me:21810: result: $cf_cv_prog_gnat_correct" >&5
21811 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
21815 if test "x$cf_cv_prog_gnat_correct" = xyes; then
21817 ADAFLAGS="$ADAFLAGS -gnatpn"
21819 echo "$as_me:21819: checking optimization options for ADAFLAGS" >&5
21820 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21824 ADAFLAGS="$ADAFLAGS -g"
21830 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21832 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21836 echo "$as_me:21836: result: $ADAFLAGS" >&5
21837 echo "${ECHO_T}$ADAFLAGS" >&6
21839 echo "$as_me:21839: checking if GNATPREP supports -T option" >&5
21840 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21841 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21845 cf_cv_gnatprep_opt_t=no
21846 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21849 echo "$as_me:21849: result: $cf_cv_gnatprep_opt_t" >&5
21850 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21851 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21853 echo "$as_me:21853: checking if GNAT supports generics" >&5
21854 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21855 case $cf_gnat_version in
21857 cf_gnat_generics=yes
21860 cf_gnat_generics=no
21863 echo "$as_me:21863: result: $cf_gnat_generics" >&5
21864 echo "${ECHO_T}$cf_gnat_generics" >&6
21866 if test "$cf_gnat_generics" = yes
21868 cf_compile_generics=generics
21869 cf_generic_objects="\${GENOBJS}"
21871 cf_compile_generics=
21872 cf_generic_objects=
21875 echo "$as_me:21875: checking if GNAT supports SIGINT" >&5
21876 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
21877 if test "${cf_cv_gnat_sigint+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 rm -rf conftest* *~conftest*
21882 cat >>conftest.ads <<CF_EOF
21883 with Ada.Interrupts.Names;
21885 package ConfTest is
21887 pragma Warnings (Off); -- the next pragma exists since 3.11p
21888 pragma Unreserve_All_Interrupts;
21889 pragma Warnings (On);
21891 protected Process is
21893 function Continue return Boolean;
21894 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
21896 Done : Boolean := False;
21901 cat >>conftest.adb <<CF_EOF
21902 package body ConfTest is
21903 protected body Process is
21908 function Continue return Boolean is
21915 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21916 cf_cv_gnat_sigint=yes
21918 cf_cv_gnat_sigint=no
21920 rm -rf conftest* *~conftest*
21923 echo "$as_me:21923: result: $cf_cv_gnat_sigint" >&5
21924 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
21926 if test $cf_cv_gnat_sigint = yes ; then
21929 USE_GNAT_SIGINT="#"
21932 cf_gnat_libraries=no
21933 cf_gnat_projects=no
21935 if test "$enable_gnat_projects" != no ; then
21936 echo "$as_me:21936: checking if GNAT supports project files" >&5
21937 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
21938 case $cf_gnat_version in
21942 case $cf_cv_system_name in
21946 mkdir conftest.src conftest.bin conftest.lib
21948 rm -rf conftest* *~conftest*
21949 cat >>library.gpr <<CF_EOF
21951 Kind := External ("LIB_KIND");
21952 for Library_Name use "ConfTest";
21953 for Object_Dir use ".";
21954 for Library_ALI_Dir use External("LIBRARY_DIR");
21955 for Library_Version use External ("SONAME");
21956 for Library_Kind use Kind;
21957 for Library_Dir use External("BUILD_DIR");
21958 Source_Dir := External ("SOURCE_DIR");
21959 for Source_Dirs use (Source_Dir);
21962 cat >>confpackage.ads <<CF_EOF
21963 package ConfPackage is
21964 procedure conftest;
21967 cat >>confpackage.adb <<CF_EOF
21969 package body ConfPackage is
21970 procedure conftest is
21972 Text_IO.Put ("Hello World");
21977 if ( $cf_ada_make $ADAFLAGS \
21979 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
21980 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
21981 -XSOURCE_DIR=`pwd` \
21982 -XSONAME=libConfTest.so.1 \
21983 -XLIB_KIND=static 1>&5 2>&1 ) ; then
21984 cf_gnat_projects=yes
21987 if test -f conftest.lib/confpackage.ali
21989 cf_gnat_libraries=yes
21991 rm -rf conftest* *~conftest*
21996 echo "$as_me:21996: result: $cf_gnat_projects" >&5
21997 echo "${ECHO_T}$cf_gnat_projects" >&6
21998 fi # enable_gnat_projects
22000 if test $cf_gnat_projects = yes
22002 echo "$as_me:22002: checking if GNAT supports libraries" >&5
22003 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
22004 echo "$as_me:22004: result: $cf_gnat_libraries" >&5
22005 echo "${ECHO_T}$cf_gnat_libraries" >&6
22008 if test "$cf_gnat_projects" = yes
22010 USE_OLD_MAKERULES="#"
22011 USE_GNAT_PROJECTS=""
22013 USE_OLD_MAKERULES=""
22014 USE_GNAT_PROJECTS="#"
22017 if test "$cf_gnat_libraries" = yes
22019 USE_GNAT_LIBRARIES=""
22021 USE_GNAT_LIBRARIES="#"
22024 echo "$as_me:22024: checking for ada-compiler" >&5
22025 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
22027 # Check whether --with-ada-compiler or --without-ada-compiler was given.
22028 if test "${with_ada_compiler+set}" = set; then
22029 withval="$with_ada_compiler"
22030 cf_ada_compiler=$withval
22032 cf_ada_compiler=gnatmake
22035 echo "$as_me:22035: result: $cf_ada_compiler" >&5
22036 echo "${ECHO_T}$cf_ada_compiler" >&6
22038 cf_ada_package=terminal_interface
22040 echo "$as_me:22040: checking for ada-include" >&5
22041 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
22043 # Check whether --with-ada-include or --without-ada-include was given.
22044 if test "${with_ada_include+set}" = set; then
22045 withval="$with_ada_include"
22048 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
22049 fi; if test -n "$prefix/share/ada/adainclude" ; then
22051 if test "x$prefix" != xNONE; then
22052 cf_path_syntax="$prefix"
22054 cf_path_syntax="$ac_default_prefix"
22057 case ".$withval" in
22058 (.\$\(*\)*|.\'*\'*)
22062 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22064 (.\${*prefix}*|.\${*dir}*)
22065 eval withval="$withval"
22066 case ".$withval" in
22068 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22073 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22076 { { echo "$as_me:22076: error: expected a pathname, not \"$withval\"" >&5
22077 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
22078 { (exit 1); exit 1; }; }
22083 eval ADA_INCLUDE="$withval"
22085 echo "$as_me:22085: result: $ADA_INCLUDE" >&5
22086 echo "${ECHO_T}$ADA_INCLUDE" >&6
22088 echo "$as_me:22088: checking for ada-objects" >&5
22089 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
22091 # Check whether --with-ada-objects or --without-ada-objects was given.
22092 if test "${with_ada_objects+set}" = set; then
22093 withval="$with_ada_objects"
22096 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
22097 fi; if test -n "$prefix/lib/ada/adalib" ; then
22099 if test "x$prefix" != xNONE; then
22100 cf_path_syntax="$prefix"
22102 cf_path_syntax="$ac_default_prefix"
22105 case ".$withval" in
22106 (.\$\(*\)*|.\'*\'*)
22110 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22112 (.\${*prefix}*|.\${*dir}*)
22113 eval withval="$withval"
22114 case ".$withval" in
22116 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22121 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22124 { { echo "$as_me:22124: error: expected a pathname, not \"$withval\"" >&5
22125 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
22126 { (exit 1); exit 1; }; }
22131 eval ADA_OBJECTS="$withval"
22133 echo "$as_me:22133: result: $ADA_OBJECTS" >&5
22134 echo "${ECHO_T}$ADA_OBJECTS" >&6
22136 echo "$as_me:22136: checking if an Ada95 shared-library should be built" >&5
22137 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
22139 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
22140 if test "${with_ada_sharedlib+set}" = set; then
22141 withval="$with_ada_sharedlib"
22142 with_ada_sharedlib=$withval
22144 with_ada_sharedlib=no
22146 echo "$as_me:22146: result: $with_ada_sharedlib" >&5
22147 echo "${ECHO_T}$with_ada_sharedlib" >&6
22149 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
22150 MAKE_ADA_SHAREDLIB="#"
22152 if test "x$with_ada_sharedlib" != xno
22154 MAKE_ADA_SHAREDLIB=
22155 if test "x$with_ada_sharedlib" != xyes
22157 ADA_SHAREDLIB="$with_ada_sharedlib"
22167 # do this "late" to avoid conflict with header-checks
22168 if test "x$with_widec" = xyes ; then
22169 echo "$as_me:22169: checking for wchar_t" >&5
22170 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
22171 if test "${ac_cv_type_wchar_t+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22175 #line 22175 "configure"
22176 #include "confdefs.h"
22177 $ac_includes_default
22183 if (sizeof (wchar_t))
22189 rm -f conftest.$ac_objext
22190 if { (eval echo "$as_me:22190: \"$ac_compile\"") >&5
22191 (eval $ac_compile) 2>&5
22193 echo "$as_me:22193: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
22195 { ac_try='test -s conftest.$ac_objext'
22196 { (eval echo "$as_me:22196: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22199 echo "$as_me:22199: \$? = $ac_status" >&5
22200 (exit $ac_status); }; }; then
22201 ac_cv_type_wchar_t=yes
22203 echo "$as_me: failed program was:" >&5
22204 cat conftest.$ac_ext >&5
22205 ac_cv_type_wchar_t=no
22207 rm -f conftest.$ac_objext conftest.$ac_ext
22209 echo "$as_me:22209: result: $ac_cv_type_wchar_t" >&5
22210 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
22212 echo "$as_me:22212: checking size of wchar_t" >&5
22213 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
22214 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 if test "$ac_cv_type_wchar_t" = yes; then
22218 if test "$cross_compiling" = yes; then
22219 # Depending upon the size, compute the lo and hi bounds.
22220 cat >conftest.$ac_ext <<_ACEOF
22221 #line 22221 "configure"
22222 #include "confdefs.h"
22223 $ac_includes_default
22227 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
22232 rm -f conftest.$ac_objext
22233 if { (eval echo "$as_me:22233: \"$ac_compile\"") >&5
22234 (eval $ac_compile) 2>&5
22236 echo "$as_me:22236: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -s conftest.$ac_objext'
22239 { (eval echo "$as_me:22239: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22242 echo "$as_me:22242: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22246 cat >conftest.$ac_ext <<_ACEOF
22247 #line 22247 "configure"
22248 #include "confdefs.h"
22249 $ac_includes_default
22253 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
22258 rm -f conftest.$ac_objext
22259 if { (eval echo "$as_me:22259: \"$ac_compile\"") >&5
22260 (eval $ac_compile) 2>&5
22262 echo "$as_me:22262: \$? = $ac_status" >&5
22263 (exit $ac_status); } &&
22264 { ac_try='test -s conftest.$ac_objext'
22265 { (eval echo "$as_me:22265: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22268 echo "$as_me:22268: \$? = $ac_status" >&5
22269 (exit $ac_status); }; }; then
22270 ac_hi=$ac_mid; break
22272 echo "$as_me: failed program was:" >&5
22273 cat conftest.$ac_ext >&5
22274 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
22276 rm -f conftest.$ac_objext conftest.$ac_ext
22279 echo "$as_me: failed program was:" >&5
22280 cat conftest.$ac_ext >&5
22283 cat >conftest.$ac_ext <<_ACEOF
22284 #line 22284 "configure"
22285 #include "confdefs.h"
22286 $ac_includes_default
22290 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
22295 rm -f conftest.$ac_objext
22296 if { (eval echo "$as_me:22296: \"$ac_compile\"") >&5
22297 (eval $ac_compile) 2>&5
22299 echo "$as_me:22299: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
22301 { ac_try='test -s conftest.$ac_objext'
22302 { (eval echo "$as_me:22302: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22305 echo "$as_me:22305: \$? = $ac_status" >&5
22306 (exit $ac_status); }; }; then
22307 ac_lo=$ac_mid; break
22309 echo "$as_me: failed program was:" >&5
22310 cat conftest.$ac_ext >&5
22311 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
22313 rm -f conftest.$ac_objext conftest.$ac_ext
22316 rm -f conftest.$ac_objext conftest.$ac_ext
22317 # Binary search between lo and hi bounds.
22318 while test "x$ac_lo" != "x$ac_hi"; do
22319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22320 cat >conftest.$ac_ext <<_ACEOF
22321 #line 22321 "configure"
22322 #include "confdefs.h"
22323 $ac_includes_default
22327 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
22332 rm -f conftest.$ac_objext
22333 if { (eval echo "$as_me:22333: \"$ac_compile\"") >&5
22334 (eval $ac_compile) 2>&5
22336 echo "$as_me:22336: \$? = $ac_status" >&5
22337 (exit $ac_status); } &&
22338 { ac_try='test -s conftest.$ac_objext'
22339 { (eval echo "$as_me:22339: \"$ac_try\"") >&5
22340 (eval $ac_try) 2>&5
22342 echo "$as_me:22342: \$? = $ac_status" >&5
22343 (exit $ac_status); }; }; then
22346 echo "$as_me: failed program was:" >&5
22347 cat conftest.$ac_ext >&5
22348 ac_lo=`expr $ac_mid + 1`
22350 rm -f conftest.$ac_objext conftest.$ac_ext
22352 ac_cv_sizeof_wchar_t=$ac_lo
22354 if test "$cross_compiling" = yes; then
22355 { { echo "$as_me:22355: error: cannot run test program while cross compiling" >&5
22356 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22357 { (exit 1); exit 1; }; }
22359 cat >conftest.$ac_ext <<_ACEOF
22360 #line 22360 "configure"
22361 #include "confdefs.h"
22362 $ac_includes_default
22366 FILE *f = fopen ("conftest.val", "w");
22368 $ac_main_return (1);
22369 fprintf (f, "%d", (sizeof (wchar_t)));
22375 rm -f conftest$ac_exeext
22376 if { (eval echo "$as_me:22376: \"$ac_link\"") >&5
22377 (eval $ac_link) 2>&5
22379 echo "$as_me:22379: \$? = $ac_status" >&5
22380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22381 { (eval echo "$as_me:22381: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22384 echo "$as_me:22384: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 ac_cv_sizeof_wchar_t=`cat conftest.val`
22388 echo "$as_me: program exited with status $ac_status" >&5
22389 echo "$as_me: failed program was:" >&5
22390 cat conftest.$ac_ext >&5
22392 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22397 ac_cv_sizeof_wchar_t=0
22400 echo "$as_me:22400: result: $ac_cv_sizeof_wchar_t" >&5
22401 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22402 cat >>confdefs.h <<EOF
22403 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22408 ### Construct the ncurses library-subsets, if any, from this set of keywords:
22409 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
22411 ### ticlib modules may be a separate library, otherwise contained in termlib.
22412 ### termlib modules may be a separate library, otherwise contained in ncurses.
22414 ### The of "+" or " " between the tokens controls the way the script
22415 ### chooses to split module lists into libraries.
22417 ### (see CF_LIB_RULES).
22418 echo "$as_me:22418: checking for library subsets" >&5
22419 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
22422 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
22423 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
22424 if test "$with_ticlib" != no ; then
22425 LIB_SUBSETS="${LIB_SUBSETS} "
22427 LIB_SUBSETS="${LIB_SUBSETS}+"
22431 LIB_SUBSETS="${LIB_SUBSETS}termlib"
22432 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
22434 if test "$with_termlib" != no ; then
22435 LIB_SUBSETS="${LIB_SUBSETS} "
22437 LIB_SUBSETS="${LIB_SUBSETS}+"
22440 LIB_SUBSETS="${LIB_SUBSETS}base"
22442 # Most term-driver calls are to tinfo, but some like init_pair are to the
22443 # base library (so it resides in base).
22444 if test "$with_term_driver" != no ; then
22445 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
22446 case $cf_cv_system_name in
22447 (*mingw32*|*mingw64*)
22448 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
22449 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
22452 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
22457 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
22458 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
22460 echo "$as_me:22460: result: $LIB_SUBSETS" >&5
22461 echo "${ECHO_T}$LIB_SUBSETS" >&6
22463 ### Construct the list of include-directories to be generated
22465 if test "$srcdir" != "."; then
22466 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
22468 CPPFLAGS="-I../include $CPPFLAGS"
22469 if test "$srcdir" != "."; then
22470 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
22472 CPPFLAGS="-I. $CPPFLAGS"
22474 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
22475 if test "$srcdir" != "."; then
22476 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
22478 if test "$GCC" != yes; then
22479 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22480 elif test "$includedir" != "/usr/include"; then
22481 if test "$includedir" = '${prefix}/include' ; then
22482 if test x$prefix != x/usr ; then
22483 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22486 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22490 ### Build up pieces for makefile rules
22491 echo "$as_me:22491: checking default library suffix" >&5
22492 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
22494 case $DFT_LWR_MODEL in
22495 (libtool) DFT_ARG_SUFFIX='' ;;
22496 (normal) DFT_ARG_SUFFIX='' ;;
22497 (debug) DFT_ARG_SUFFIX='_g' ;;
22498 (profile) DFT_ARG_SUFFIX='_p' ;;
22499 (shared) DFT_ARG_SUFFIX='' ;;
22501 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
22502 echo "$as_me:22502: result: $DFT_ARG_SUFFIX" >&5
22503 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
22505 echo "$as_me:22505: checking default library-dependency suffix" >&5
22506 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
22508 case X$DFT_LWR_MODEL in
22510 DFT_LIB_SUFFIX='.la'
22511 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22514 DFT_LIB_SUFFIX='_g.a'
22515 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22518 DFT_LIB_SUFFIX='_p.a'
22519 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22522 case $cf_cv_system_name in
22524 DFT_LIB_SUFFIX='.so'
22525 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22527 (cygwin*|msys*|mingw*)
22528 DFT_LIB_SUFFIX='.dll'
22529 DFT_DEP_SUFFIX='.dll.a'
22532 DFT_LIB_SUFFIX='.dylib'
22533 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22538 DFT_LIB_SUFFIX='.so'
22539 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22542 DFT_LIB_SUFFIX='.sl'
22543 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22548 DFT_LIB_SUFFIX='.so'
22549 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22554 DFT_LIB_SUFFIX='.a'
22555 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22558 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22560 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
22561 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
22563 echo "$as_me:22563: result: $DFT_DEP_SUFFIX" >&5
22564 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
22566 echo "$as_me:22566: checking default object directory" >&5
22567 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
22569 case $DFT_LWR_MODEL in
22570 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
22571 (normal) DFT_OBJ_SUBDIR='objects' ;;
22572 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
22573 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
22575 case $cf_cv_system_name in
22577 DFT_OBJ_SUBDIR='objects' ;;
22579 DFT_OBJ_SUBDIR='obj_s' ;;
22582 echo "$as_me:22582: result: $DFT_OBJ_SUBDIR" >&5
22583 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
22585 if test "x$cf_with_cxx" = xyes ; then
22586 echo "$as_me:22586: checking c++ library-dependency suffix" >&5
22587 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
22588 if test "$with_libtool" != "no"; then
22589 # libtool thinks it can make c++ shared libraries (perhaps only g++)
22590 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22591 elif test "$with_shared_cxx" != "no"; then
22592 # also for g++ users...
22593 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22595 # we normally make a static library because C/C++ library rules differ
22599 CXX_LIB_SUFFIX='.la'
22600 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22603 CXX_LIB_SUFFIX='_g.a'
22604 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22607 CXX_LIB_SUFFIX='_p.a'
22608 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22611 case $cf_cv_system_name in
22613 CXX_LIB_SUFFIX='.so'
22614 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22616 (cygwin*|msys*|mingw*)
22617 CXX_LIB_SUFFIX='.dll'
22618 CXX_DEP_SUFFIX='.dll.a'
22621 CXX_LIB_SUFFIX='.dylib'
22622 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22627 CXX_LIB_SUFFIX='.so'
22628 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22631 CXX_LIB_SUFFIX='.sl'
22632 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22637 CXX_LIB_SUFFIX='.so'
22638 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22643 CXX_LIB_SUFFIX='.a'
22644 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22647 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22649 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
22650 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
22654 echo "$as_me:22654: result: $CXX_LIB_SUFFIX" >&5
22655 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
22659 # do not want -ldl in build except as needed for -lncurses dependency
22660 if test "x$with_dlsym" = xyes ; then
22661 if test $DFT_LWR_MODEL = shared || \
22662 test $DFT_LWR_MODEL = libtool ; then
22664 # remove dl library from $LIBS
22665 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22669 ### Set up low-level terminfo dependencies for makefiles.
22671 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
22672 # do not need libdl
22674 if test "x$with_dlsym" = xyes ; then
22676 # remove dl library from $SHLIB_LIST
22677 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22681 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
22682 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
22683 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
22684 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
22686 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
22689 if test "$with_ticlib" != no ; then
22691 if test "x$with_ticlib" != xyes ; then
22692 TICS_NAME=$with_ticlib
22693 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22694 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22695 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22696 TICS_LIB_SUFFIX="${with_ticlib}"
22698 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22699 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
22700 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
22701 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
22703 TICS_LDFLAGS="-L${LIB_DIR}"
22704 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
22706 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22707 TICS_LDFLAGS="-L${LIB_DIR}"
22708 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22711 if test "$with_termlib" != no ; then
22713 if test "x$with_termlib" != xyes ; then
22714 TINFO_NAME=$with_termlib
22715 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22716 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22717 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22718 TINFO_LIB_SUFFIX="${with_termlib}"
22720 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22721 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
22722 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
22723 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
22726 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22727 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22728 if test "$DFT_LWR_MODEL" = "libtool"; then
22729 TEST_ARGS="${TEST_DEPS}"
22730 TEST_ARG2="${TEST_DEP2}"
22731 TINFO_LDFLAGS="-L${LIB_DIR}"
22732 TINFO_LIBS="$TEST_ARGS"
22733 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
22734 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
22736 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
22737 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
22738 if test "x$with_term_driver" != xno ; then
22739 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22740 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
22741 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22743 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22744 TINFO_LIBS="$TEST_ARGS"
22746 TINFO_LDFLAGS="-L${LIB_DIR}"
22747 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22750 # the next lines are needed for linking libtic over libncurses
22751 TINFO_NAME=${LIB_NAME}
22752 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22753 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
22754 if test "x$with_tic_depends" = xyes ; then
22755 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22757 TICS_LIST="$SHLIB_LIST"
22760 TINFO_LDFLAGS="-L${LIB_DIR}"
22761 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22764 if test "$DFT_LWR_MODEL" = shared ; then
22765 case $cf_cv_system_name in
22767 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
22773 if test "x$with_dlsym" = xyes ; then
22775 # remove dl library from $TICS_LIST
22776 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22780 if test "$DFT_LWR_MODEL" = "libtool"; then
22785 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
22787 case $DFT_LWR_MODEL in
22788 (normal|debug|profile)
22790 if test "$GCC" = yes ; then
22791 case $cf_cv_system_name in
22792 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
22796 (*) # normally, except when broken
22797 LDFLAGS_STATIC=-static
22798 LDFLAGS_SHARED=-dynamic
22802 case $cf_cv_system_name in
22803 (aix[4-7]*) # from ld manpage
22804 LDFLAGS_STATIC=-bstatic
22805 LDFLAGS_SHARED=-bdynamic
22807 (hpux*) # from ld manpage for hpux10.20, hpux11.11
22808 # We could also use just "archive" and "shared".
22809 LDFLAGS_STATIC=-Wl,-a,archive_shared
22810 LDFLAGS_SHARED=-Wl,-a,shared_archive
22812 (irix*) # from ld manpage IRIX64
22813 LDFLAGS_STATIC=-Bstatic
22814 LDFLAGS_SHARED=-Bdynamic
22816 (osf[45]*) # from ld manpage osf4.0d, osf5.1
22817 # alternative "-oldstyle_liblookup" (not in cc manpage)
22818 LDFLAGS_STATIC=-noso
22819 LDFLAGS_SHARED=-so_archive
22822 LDFLAGS_STATIC=-Bstatic
22823 LDFLAGS_SHARED=-Bdynamic
22828 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22830 echo "$as_me:22830: checking if linker supports switching between static/dynamic" >&5
22831 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22833 rm -f libconftest.a
22834 cat >conftest.$ac_ext <<EOF
22835 #line 22835 "configure"
22837 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22839 if { (eval echo "$as_me:22839: \"$ac_compile\"") >&5
22840 (eval $ac_compile) 2>&5
22842 echo "$as_me:22842: \$? = $ac_status" >&5
22843 (exit $ac_status); } ; then
22844 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22845 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22849 cf_save_LIBS="$LIBS"
22851 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22852 cat >conftest.$ac_ext <<_ACEOF
22853 #line 22853 "configure"
22854 #include "confdefs.h"
22856 #line 22856 "configure"
22858 int cf_ldflags_static(FILE *fp);
22864 return cf_ldflags_static(stdin);
22870 rm -f conftest.$ac_objext conftest$ac_exeext
22871 if { (eval echo "$as_me:22871: \"$ac_link\"") >&5
22872 (eval $ac_link) 2>&5
22874 echo "$as_me:22874: \$? = $ac_status" >&5
22875 (exit $ac_status); } &&
22876 { ac_try='test -s conftest$ac_exeext'
22877 { (eval echo "$as_me:22877: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22880 echo "$as_me:22880: \$? = $ac_status" >&5
22881 (exit $ac_status); }; }; then
22883 # some linkers simply ignore the -dynamic
22884 case x`file conftest$ac_exeext 2>/dev/null` in
22886 cf_ldflags_static=no
22889 cf_ldflags_static=yes
22894 echo "$as_me: failed program was:" >&5
22895 cat conftest.$ac_ext >&5
22896 cf_ldflags_static=no
22898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22900 rm -f libconftest.*
22901 LIBS="$cf_save_LIBS"
22903 echo "$as_me:22903: result: $cf_ldflags_static" >&5
22904 echo "${ECHO_T}$cf_ldflags_static" >&6
22906 if test $cf_ldflags_static != yes
22919 echo "$as_me:22919: checking where we will install curses.h" >&5
22920 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
22923 if test "$with_overwrite" = no && \
22924 ( test "x$includedir" = 'x${prefix}/include' || \
22925 test "x$includedir" = "x${prefix}/include" )
22927 includesubdir="/ncurses${USE_LIB_SUFFIX}"
22929 echo "$as_me:22929: result: ${includedir}${includesubdir}" >&5
22930 echo "${ECHO_T}${includedir}${includesubdir}" >&6
22932 ### Resolve a conflict between normal and wide-curses by forcing applications
22933 ### that will need libutf8 to add it to their configure script.
22934 if test "$with_overwrite" != no ; then
22935 if test "$NCURSES_LIBUTF8" = 1 ; then
22936 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
22937 { echo "$as_me:22937: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
22938 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
22941 WITH_OVERWRITE=$with_overwrite
22943 # used to separate tack out of the tree
22946 ### predefined stuff for the test programs
22948 cat >>confdefs.h <<\EOF
22949 #define HAVE_SLK_COLOR 1
22952 ### Construct the list of subdirectories for which we'll customize makefiles
22953 ### with the appropriate compile-rules.
22955 echo "$as_me:22955: checking for src modules" >&5
22956 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
22958 # dependencies and linker-arguments for test-programs
22959 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
22960 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
22961 if test "$DFT_LWR_MODEL" = "libtool"; then
22962 TEST_ARGS="${TEST_DEPS}"
22963 TEST_ARG2="${TEST_DEP2}"
22965 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22966 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22969 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22971 for cf_dir in $modules_to_build
22973 if test -f $srcdir/$cf_dir/modules; then
22975 # We may/may not have tack in the distribution, though the
22977 if test $cf_dir = tack ; then
22978 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
22983 if test -z "$cf_cv_src_modules"; then
22984 cf_cv_src_modules=$cf_dir
22986 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
22989 # Make the ncurses_cfg.h file record the library interface files as
22990 # well. These are header files that are the same name as their
22991 # directory. Ncurses is the only library that does not follow
22993 if test $cf_dir = tack ; then
22995 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
22997 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22999 cat >>confdefs.h <<EOF
23000 #define HAVE_${cf_have_include}_H 1
23003 cat >>confdefs.h <<EOF
23004 #define HAVE_LIB${cf_have_include} 1
23007 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
23008 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
23009 if test "$DFT_LWR_MODEL" = "libtool"; then
23010 TEST_ARGS="${TEST_DEPS}"
23011 TEST_ARG2="${TEST_DEP2}"
23013 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
23014 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
23016 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
23020 echo "$as_me:23020: result: $cf_cv_src_modules" >&5
23021 echo "${ECHO_T}$cf_cv_src_modules" >&6
23023 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
23024 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
23027 if test "x$cf_with_manpages" != xno ; then
23028 SRC_SUBDIRS="$SRC_SUBDIRS man"
23030 SRC_SUBDIRS="$SRC_SUBDIRS include"
23031 for cf_dir in $cf_cv_src_modules
23033 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
23035 if test "x$cf_with_tests" != "xno" ; then
23036 SRC_SUBDIRS="$SRC_SUBDIRS test"
23038 # always make this, to install the ncurses-config script
23039 SRC_SUBDIRS="$SRC_SUBDIRS misc"
23040 if test "$cf_with_cxx_binding" != no; then
23041 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
23042 SRC_SUBDIRS="$SRC_SUBDIRS c++"
23045 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
23046 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
23049 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
23050 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
23051 ADA_SUBDIRS="gen src"
23052 if test "x$cf_with_tests" != "xno" ; then
23053 ADA_SUBDIRS="$ADA_SUBDIRS samples"
23058 for cf_dir in $SRC_SUBDIRS
23060 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
23063 if test -n "$ADA_SUBDIRS"; then
23064 for cf_dir in $ADA_SUBDIRS
23066 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
23071 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
23072 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
23073 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
23077 for cf_item in $cf_list_models
23081 (libtool) cf_subdir='obj_lo' ;;
23082 (normal) cf_subdir='objects' ;;
23083 (debug) cf_subdir='obj_g' ;;
23084 (profile) cf_subdir='obj_p' ;;
23086 case $cf_cv_system_name in
23088 cf_subdir='objects' ;;
23090 cf_subdir='obj_s' ;;
23094 for cf_item2 in $DIRS_TO_MAKE
23096 test $cf_item2 = $cf_subdir && break
23098 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
23100 for cf_dir in $DIRS_TO_MAKE
23102 test ! -d $cf_dir && mkdir $cf_dir
23105 # symbols that differ when compiling Ada95 by itself.
23106 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
23108 # values to use as strings
23110 cat >>confdefs.h <<EOF
23111 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
23114 cat >>confdefs.h <<EOF
23115 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
23118 ### Now that we're done running tests, add the compiler-warnings, if any
23123 cf_new_extra_cppflags=
23125 for cf_add_cflags in $EXTRA_CFLAGS
23127 case $cf_fix_cppflags in
23129 case $cf_add_cflags in
23130 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23131 case $cf_add_cflags in
23133 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23135 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23136 && test -z "${cf_tst_cflags}" \
23137 && cf_fix_cppflags=yes
23139 if test $cf_fix_cppflags = yes ; then
23141 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23142 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23145 elif test "${cf_tst_cflags}" = "\"'" ; then
23147 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23148 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23154 case "$CPPFLAGS" in
23158 case $cf_add_cflags in
23160 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23162 CPPFLAGS=`echo "$CPPFLAGS" | \
23163 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23164 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23169 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23170 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23177 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23178 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23185 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23186 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23188 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
23190 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23191 && test -z "${cf_tst_cflags}" \
23192 && cf_fix_cppflags=no
23197 if test -n "$cf_new_cflags" ; then
23199 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23200 CFLAGS="${CFLAGS}$cf_new_cflags"
23204 if test -n "$cf_new_cppflags" ; then
23206 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23207 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23211 if test -n "$cf_new_extra_cppflags" ; then
23213 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23214 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23218 ### Define substitutions for header files to avoid name-pollution
23220 if test "x$cf_cv_have_tcgetattr" = xyes ; then
23226 if test "x$ac_cv_header_stdint_h" = xyes ; then
23232 if test "x$ac_cv_header_termio_h" = xyes ; then
23238 if test "x$ac_cv_header_termios_h" = xyes ; then
23244 ################################################################################
23245 test "x$use_database" = xyes && \
23246 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
23248 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
23249 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
23251 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
23252 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
23255 # Extract the first word of "tic", so it can be a program name with args.
23256 set dummy tic; ac_word=$2
23257 echo "$as_me:23257: checking for $ac_word" >&5
23258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23259 if test "${ac_cv_path_TIC_PATH+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
23267 ac_save_IFS=$IFS; IFS=$ac_path_separator
23268 ac_dummy="$PATH:/usr/local/ncurses/bin"
23269 for ac_dir in $ac_dummy; do
23271 test -z "$ac_dir" && ac_dir=.
23272 if $as_executable_p "$ac_dir/$ac_word"; then
23273 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
23274 echo "$as_me:23274: found $ac_dir/$ac_word" >&5
23279 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
23283 TIC_PATH=$ac_cv_path_TIC_PATH
23285 if test -n "$TIC_PATH"; then
23286 echo "$as_me:23286: result: $TIC_PATH" >&5
23287 echo "${ECHO_T}$TIC_PATH" >&6
23289 echo "$as_me:23289: result: no" >&5
23290 echo "${ECHO_T}no" >&6
23293 if test -n "$FALLBACK_LIST"
23295 if test "$TIC_PATH" = unknown
23297 { echo "$as_me:23297: WARNING: no tic program found for fallbacks" >&5
23298 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
23302 if test "x$cf_with_tests" != xno ; then
23308 ADAHTML_DIR=../../doc/html/ada
23310 # these could be configurable, but are not currently
23316 # workaround for OS/2 (20151017)
23317 case $cf_cv_system_name in
23319 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
23326 # workaround for g++ versus Solaris (20131116)
23327 case $cf_cv_system_name in
23329 case "x$CPPFLAGS" in
23330 (*-D_XOPEN_SOURCE_EXTENDED*)
23331 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
23333 echo "${as_me:-configure}:23333: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
23335 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
23336 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
23342 # Help to automatically enable the extended curses features when using either
23343 # the *-config or the ".pc" files by adding defines.
23344 echo "$as_me:23344: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
23345 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
23347 for cf_loop1 in $CPPFLAGS_after_XOPEN
23350 for cf_loop2 in $CPPFLAGS_before_XOPEN
23352 if test "x$cf_loop1" = "x$cf_loop2"
23358 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
23360 echo "$as_me:23360: result: $PKG_CFLAGS" >&5
23361 echo "${ECHO_T}$PKG_CFLAGS" >&6
23363 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
23364 case "x$NCURSES_OSPEED" in
23373 cat >>confdefs.h <<EOF
23374 #define NCURSES_OSPEED_COMPAT $cf_compatible
23377 case "x$cf_cv_typeof_chtype" in
23378 (xshort|xint|xlong)
23379 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
23383 case "x$cf_cv_typeof_mmask_t" in
23384 (xshort|xint|xlong)
23385 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
23389 # substitute into misc/Makefile to suppress
23390 # (un)install.data from the
23391 # (un)install rules.
23392 if test "x$cf_with_db_install" = "xno"; then
23394 MISC_UNINSTALL_DATA=
23396 MISC_INSTALL_DATA=install.data
23397 MISC_UNINSTALL_DATA=uninstall.data
23402 if test -n "$PACKAGE"
23404 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
23406 echo "package: $PACKAGE"
23412 if test -n "$RESULTING_SYMS"
23414 cf_filter_syms=$cf_dft_filter_syms
23415 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
23417 echo "${as_me:-configure}:23417: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
23421 if test "x$WILDCARD_SYMS" = xno
23426 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
23428 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
23429 if test $cf_filter_syms = yes
23431 RESULTING_SYMS=resulting.map
23434 if test "x$cross_compiling" = xyes ; then
23435 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
23438 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
23442 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"
23443 ac_config_commands="$ac_config_commands default"
23444 cat >confcache <<\_ACEOF
23445 # This file is a shell script that caches the results of configure
23446 # tests run on this system so they can be shared between configure
23447 # scripts and configure runs, see configure's option --config-cache.
23448 # It is not useful on other systems. If it contains results you don't
23449 # want to keep, you may remove or edit it.
23451 # config.status only pays attention to the cache file if you give it
23452 # the --recheck option to rerun configure.
23454 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23455 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23456 # following values.
23460 # The following way of writing the cache mishandles newlines in values,
23461 # but we know of no workaround that is simple, portable, and efficient.
23462 # So, don't put newlines in cache variables' values.
23463 # Ultrix sh set writes to stderr and can't be redirected directly,
23464 # and sets the high bit in the cache file unless we assign to the vars.
23467 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23469 # `set' does not quote correctly, so add quotes (double-quote
23470 # substitution turns \\\\ into \\, and sed turns \\ into \).
23473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23476 # `set' quotes correctly as required by POSIX, so do not add quotes.
23478 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23487 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23489 if cmp -s $cache_file confcache; then :; else
23490 if test -w $cache_file; then
23491 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23492 cat confcache >$cache_file
23494 echo "not updating unwritable cache $cache_file"
23499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23500 # Let make expand exec_prefix.
23501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23503 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23504 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23505 # trailing colons and then remove the whole line if VPATH becomes empty
23506 # (actually we leave an empty line to preserve line numbers).
23507 if test "x$srcdir" = x.; then
23508 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23509 s/:*\$(srcdir):*/:/;
23510 s/:*\${srcdir}:*/:/;
23512 s/^\([^=]*=[ ]*\):*/\1/;
23518 DEFS=-DHAVE_CONFIG_H
23520 : ${CONFIG_STATUS=./config.status}
23521 ac_clean_files_save=$ac_clean_files
23522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23523 { echo "$as_me:23523: creating $CONFIG_STATUS" >&5
23524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23525 cat >$CONFIG_STATUS <<_ACEOF
23527 # Generated automatically by configure.
23528 # Run this file to recreate the current configuration.
23529 # Compiler output produced by configure, useful for debugging
23530 # configure, is in config.log if it exists.
23533 SHELL=\${CONFIG_SHELL-$SHELL}
23534 ac_cs_invocation="\$0 \$@"
23538 cat >>$CONFIG_STATUS <<\_ACEOF
23539 # Be Bourne compatible
23540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23543 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23547 # Name of the executable.
23548 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23550 if expr a : '\(a\)' >/dev/null 2>&1; then
23556 rm -f conf$$ conf$$.exe conf$$.file
23558 if ln -s conf$$.file conf$$ 2>/dev/null; then
23559 # We could just check for DJGPP; but this test a) works b) is more generic
23560 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23561 if test -f conf$$.exe; then
23562 # Don't use ln at all; we don't have any links
23567 elif ln conf$$.file conf$$ 2>/dev/null; then
23572 rm -f conf$$ conf$$.exe conf$$.file
23574 as_executable_p="test -f"
23576 # Support unset when possible.
23577 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23584 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23585 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23586 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23587 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23588 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23589 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23590 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23591 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23594 # We need space, tab and new line, in precisely that order.
23600 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
23606 # Files that config.status was made for.
23607 if test -n "$ac_config_files"; then
23608 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23611 if test -n "$ac_config_headers"; then
23612 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23615 if test -n "$ac_config_links"; then
23616 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23619 if test -n "$ac_config_commands"; then
23620 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23623 cat >>$CONFIG_STATUS <<\EOF
23626 \`$as_me' instantiates files from templates according to the
23627 current configuration.
23629 Usage: $0 [OPTIONS] [FILE]...
23631 -h, --help print this help, then exit
23632 -V, --version print version number, then exit
23633 -d, --debug don't remove temporary files
23634 --recheck update $as_me by reconfiguring in the same conditions
23635 --file=FILE[:TEMPLATE]
23636 instantiate the configuration file FILE
23637 --header=FILE[:TEMPLATE]
23638 instantiate the configuration header FILE
23640 Configuration files:
23643 Configuration headers:
23646 Configuration commands:
23649 Report bugs to <dickey@invisible-island.net>."
23652 cat >>$CONFIG_STATUS <<EOF
23655 configured by $0, generated by GNU Autoconf 2.52.20170501,
23656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23658 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23659 Free Software Foundation, Inc.
23660 This config.status script is free software; the Free Software Foundation
23661 gives unlimited permission to copy, distribute and modify it."
23666 cat >>$CONFIG_STATUS <<\EOF
23667 # If no file are specified by the user, then we need to provide default
23668 # value. By we need to know if files were specified by the user.
23674 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23675 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23677 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23681 *) # This is not an option, so the user has probably given explicit
23683 ac_need_defaults=false;;
23687 # Handling of the options.
23689 cat >>$CONFIG_STATUS <<EOF
23690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23691 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23692 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23694 cat >>$CONFIG_STATUS <<\EOF
23695 --version | --vers* | -V )
23696 echo "$ac_cs_version"; exit 0 ;;
23698 # Conflict between --help and --header
23699 { { echo "$as_me:23699: error: ambiguous option: $1
23700 Try \`$0 --help' for more information." >&5
23701 echo "$as_me: error: ambiguous option: $1
23702 Try \`$0 --help' for more information." >&2;}
23703 { (exit 1); exit 1; }; };;
23704 --help | --hel | -h )
23705 echo "$ac_cs_usage"; exit 0 ;;
23706 --debug | --d* | -d )
23708 --file | --fil | --fi | --f )
23710 CONFIG_FILES="$CONFIG_FILES $1"
23711 ac_need_defaults=false;;
23712 --header | --heade | --head | --hea )
23714 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23715 ac_need_defaults=false;;
23717 # This is an error.
23718 -*) { { echo "$as_me:23718: error: unrecognized option: $1
23719 Try \`$0 --help' for more information." >&5
23720 echo "$as_me: error: unrecognized option: $1
23721 Try \`$0 --help' for more information." >&2;}
23722 { (exit 1); exit 1; }; } ;;
23724 *) ac_config_targets="$ac_config_targets $1" ;;
23733 ## ----------------------- ##
23734 ## Running config.status. ##
23735 ## ----------------------- ##
23737 This file was extended by $as_me 2.52.20170501, executed with
23738 CONFIG_FILES = $CONFIG_FILES
23739 CONFIG_HEADERS = $CONFIG_HEADERS
23740 CONFIG_LINKS = $CONFIG_LINKS
23741 CONFIG_COMMANDS = $CONFIG_COMMANDS
23742 > $ac_cs_invocation
23743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23748 cat >>$CONFIG_STATUS <<EOF
23750 # INIT-COMMANDS section.
23753 ### Special initialization commands, used to pass information from the
23754 ### configuration-run into config.status
23757 ALTERNATE_SYMS="$ALTERNATE_SYMS"
23758 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
23759 DFT_LWR_MODEL="$DFT_LWR_MODEL"
23761 EXTRA_SUFFIX="$EXTRA_SUFFIX"
23762 LDCONFIG="$LDCONFIG"
23763 LIBTOOL_VERSION="$LIBTOOL_VERSION"
23764 LIB_NAME="$LIB_NAME"
23765 LIB_PREFIX="$LIB_PREFIX"
23766 LIB_SUBSETS="$LIB_SUBSETS"
23767 LIB_SUFFIX="$LIB_SUFFIX"
23768 LIB_TRACING="$LIB_TRACING"
23770 MAKE_TERMINFO="$MAKE_TERMINFO"
23771 NCURSES_MAJOR="$NCURSES_MAJOR"
23772 NCURSES_MINOR="$NCURSES_MINOR"
23773 NCURSES_OSPEED="$NCURSES_OSPEED"
23774 NCURSES_PATCH="$NCURSES_PATCH"
23775 SRC_SUBDIRS="$SRC_SUBDIRS"
23776 TERMINFO="$TERMINFO"
23777 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
23778 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
23779 TICS_NAME="$TICS_NAME"
23780 TICS_SUFFIX="$TICS_SUFFIX"
23781 TIC_PATH="$TIC_PATH"
23782 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
23783 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
23784 TINFO_NAME="$TINFO_NAME"
23785 TINFO_SUFFIX="$TINFO_SUFFIX"
23786 UNALTERED_SYMS="$UNALTERED_SYMS"
23787 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
23788 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
23789 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
23790 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
23791 WILDCARD_SYMS="$WILDCARD_SYMS"
23792 WITH_CURSES_H="$with_curses_h"
23793 WITH_ECHO="${enable_echo:=yes}"
23794 WITH_OVERWRITE="$with_overwrite"
23795 cf_LIST_MODELS="$cf_list_models"
23796 cf_cv_abi_version="$cf_cv_abi_version"
23797 cf_cv_do_relink="$cf_cv_do_relink"
23798 cf_cv_do_symlinks="$cf_cv_do_symlinks"
23799 cf_cv_enable_lp64="$cf_cv_enable_lp64"
23800 cf_cv_enable_opaque="$cf_cv_enable_opaque"
23801 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
23802 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
23803 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
23804 cf_cv_rel_version="$cf_cv_rel_version"
23805 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
23806 cf_cv_shared_soname='$cf_cv_shared_soname'
23807 cf_cv_shlib_version="$cf_cv_shlib_version"
23808 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
23809 cf_cv_system_name="$cf_cv_system_name"
23810 cf_cv_term_driver="$with_term_driver"
23811 cf_with_ada="$cf_with_ada"
23812 cf_with_cxx_binding="$cf_with_cxx_binding"
23813 cf_with_db_install="$cf_with_db_install"
23814 cf_with_manpages="$cf_with_manpages"
23815 cf_with_tests="$cf_with_tests"
23818 with_shared_cxx="$with_shared_cxx"
23822 cat >>$CONFIG_STATUS <<\EOF
23823 for ac_config_target in $ac_config_targets
23825 case "$ac_config_target" in
23826 # Handling of arguments.
23827 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
23828 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
23829 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
23830 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
23831 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
23832 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
23833 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
23834 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23835 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23836 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
23837 *) { { echo "$as_me:23837: error: invalid argument: $ac_config_target" >&5
23838 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23839 { (exit 1); exit 1; }; };;
23843 # If the user did not use the arguments to specify the items to instantiate,
23844 # then the envvar interface is used. Set only those that are not.
23845 # We use the long form for the default assignment because of an extremely
23846 # bizarre bug on SunOS 4.1.3.
23847 if $ac_need_defaults; then
23848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23853 # Create a temporary directory, and hook for its removal unless debugging.
23856 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23857 trap '{ (exit 1); exit 1; }' 1 2 13 15
23860 # Create a (secure) tmp directory for tmp files.
23863 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23864 test -n "$tmp" && test -d "$tmp"
23867 tmp=$TMPDIR/cs$$-$RANDOM
23868 (umask 077 && mkdir $tmp)
23871 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23872 { (exit 1); exit 1; }
23877 cat >>$CONFIG_STATUS <<EOF
23880 # CONFIG_FILES section.
23883 # No need to generate the scripts if there are no CONFIG_FILES.
23884 # This happens for instance when ./config.status config.h
23885 if test -n "\$CONFIG_FILES"; then
23886 # Protect against being on the right side of a sed subst in config.status.
23887 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23888 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23889 s,@SHELL@,$SHELL,;t t
23890 s,@exec_prefix@,$exec_prefix,;t t
23891 s,@prefix@,$prefix,;t t
23892 s,@program_transform_name@,$program_transform_name,;t t
23893 s,@bindir@,$bindir,;t t
23894 s,@sbindir@,$sbindir,;t t
23895 s,@libexecdir@,$libexecdir,;t t
23896 s,@datarootdir@,$datarootdir,;t t
23897 s,@datadir@,$datadir,;t t
23898 s,@sysconfdir@,$sysconfdir,;t t
23899 s,@sharedstatedir@,$sharedstatedir,;t t
23900 s,@localstatedir@,$localstatedir,;t t
23901 s,@libdir@,$libdir,;t t
23902 s,@includedir@,$includedir,;t t
23903 s,@oldincludedir@,$oldincludedir,;t t
23904 s,@infodir@,$infodir,;t t
23905 s,@mandir@,$mandir,;t t
23906 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23907 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23908 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23909 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23910 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23911 s,@build_alias@,$build_alias,;t t
23912 s,@host_alias@,$host_alias,;t t
23913 s,@target_alias@,$target_alias,;t t
23914 s,@ECHO_C@,$ECHO_C,;t t
23915 s,@ECHO_N@,$ECHO_N,;t t
23916 s,@ECHO_T@,$ECHO_T,;t t
23917 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23918 s,@DEFS@,$DEFS,;t t
23919 s,@LIBS@,$LIBS,;t t
23920 s,@top_builddir@,$top_builddir,;t t
23921 s,@EGREP@,$EGREP,;t t
23922 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
23923 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
23924 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
23925 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23926 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23927 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
23928 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
23929 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
23930 s,@VERSION@,$VERSION,;t t
23931 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
23932 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
23933 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
23934 s,@PACKAGE@,$PACKAGE,;t t
23935 s,@build@,$build,;t t
23936 s,@build_cpu@,$build_cpu,;t t
23937 s,@build_vendor@,$build_vendor,;t t
23938 s,@build_os@,$build_os,;t t
23939 s,@host@,$host,;t t
23940 s,@host_cpu@,$host_cpu,;t t
23941 s,@host_vendor@,$host_vendor,;t t
23942 s,@host_os@,$host_os,;t t
23943 s,@target@,$target,;t t
23944 s,@target_cpu@,$target_cpu,;t t
23945 s,@target_vendor@,$target_vendor,;t t
23946 s,@target_os@,$target_os,;t t
23948 s,@CFLAGS@,$CFLAGS,;t t
23949 s,@LDFLAGS@,$LDFLAGS,;t t
23950 s,@CPPFLAGS@,$CPPFLAGS,;t t
23951 s,@ac_ct_CC@,$ac_ct_CC,;t t
23952 s,@EXEEXT@,$EXEEXT,;t t
23953 s,@OBJEXT@,$OBJEXT,;t t
23954 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23956 s,@LDCONFIG@,$LDCONFIG,;t t
23958 s,@CXXFLAGS@,$CXXFLAGS,;t t
23959 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23961 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23962 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23963 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23964 s,@LINT@,$LINT,;t t
23965 s,@LINT_OPTS@,$LINT_OPTS,;t t
23966 s,@LN_S@,$LN_S,;t t
23967 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23968 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23969 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
23970 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
23971 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
23972 s,@SET_MAKE@,$SET_MAKE,;t t
23973 s,@CTAGS@,$CTAGS,;t t
23974 s,@ETAGS@,$ETAGS,;t t
23975 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23976 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23977 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
23978 s,@RANLIB@,$RANLIB,;t t
23979 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23981 s,@ac_ct_LD@,$ac_ct_LD,;t t
23983 s,@ac_ct_AR@,$ac_ct_AR,;t t
23985 s,@ac_ct_NM@,$ac_ct_NM,;t t
23986 s,@ARFLAGS@,$ARFLAGS,;t t
23987 s,@DESTDIR@,$DESTDIR,;t t
23988 s,@BUILD_CC@,$BUILD_CC,;t t
23989 s,@BUILD_CPP@,$BUILD_CPP,;t t
23990 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
23991 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
23992 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
23993 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
23994 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
23995 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
23996 s,@cf_list_models@,$cf_list_models,;t t
23997 s,@ABI_VERSION@,$ABI_VERSION,;t t
23998 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
23999 s,@LIBTOOL@,$LIBTOOL,;t t
24000 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
24001 s,@LT_UNDEF@,$LT_UNDEF,;t t
24002 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
24003 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
24004 s,@LIB_CREATE@,$LIB_CREATE,;t t
24005 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
24006 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
24007 s,@LIB_PREP@,$LIB_PREP,;t t
24008 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
24009 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
24010 s,@LIB_LINK@,$LIB_LINK,;t t
24011 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
24012 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
24013 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
24014 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
24015 s,@TICS_NAME@,$TICS_NAME,;t t
24016 s,@TINFO_NAME@,$TINFO_NAME,;t t
24017 s,@LIB_NAME@,$LIB_NAME,;t t
24018 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
24019 s,@CC_G_OPT@,$CC_G_OPT,;t t
24020 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
24021 s,@LD_MODEL@,$LD_MODEL,;t t
24022 s,@shlibdir@,$shlibdir,;t t
24023 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
24024 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
24025 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
24026 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
24027 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
24028 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
24029 s,@LINK_PROGS@,$LINK_PROGS,;t t
24030 s,@LINK_TESTS@,$LINK_TESTS,;t t
24031 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
24032 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24033 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
24034 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
24035 s,@RPATH_LIST@,$RPATH_LIST,;t t
24036 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
24037 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
24038 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
24039 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
24040 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
24041 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
24042 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
24043 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
24044 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
24045 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
24046 s,@XTERM_KBS@,$XTERM_KBS,;t t
24047 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
24048 s,@TERMINFO@,$TERMINFO,;t t
24049 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
24050 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
24051 s,@TERMPATH@,$TERMPATH,;t t
24052 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
24053 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
24054 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
24055 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
24056 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
24057 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
24058 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
24059 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
24060 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
24061 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
24062 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
24063 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
24064 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
24065 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
24066 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
24067 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
24068 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
24069 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
24070 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
24071 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
24072 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
24073 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
24074 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
24075 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
24076 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
24077 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
24078 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
24079 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
24080 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
24081 s,@PTHREAD@,$PTHREAD,;t t
24082 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
24083 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
24084 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
24085 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
24086 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
24087 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
24088 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
24089 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
24090 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
24091 s,@ECHO_LT@,$ECHO_LT,;t t
24092 s,@ECHO_LD@,$ECHO_LD,;t t
24093 s,@RULE_CC@,$RULE_CC,;t t
24094 s,@SHOW_CC@,$SHOW_CC,;t t
24095 s,@ECHO_CC@,$ECHO_CC,;t t
24096 s,@ECHO_LINK@,$ECHO_LINK,;t t
24097 s,@ADAFLAGS@,$ADAFLAGS,;t t
24098 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
24099 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
24100 s,@ADA_TRACE@,$ADA_TRACE,;t t
24101 s,@MATH_LIB@,$MATH_LIB,;t t
24102 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
24103 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
24104 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
24105 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
24106 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
24107 s,@TEST_LIBS@,$TEST_LIBS,;t t
24108 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
24109 s,@CXXCPP@,$CXXCPP,;t t
24110 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
24111 s,@CXX_AR@,$CXX_AR,;t t
24112 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
24113 s,@CXXLIBS@,$CXXLIBS,;t t
24114 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
24115 s,@gnat_exists@,$gnat_exists,;t t
24116 s,@M4_exists@,$M4_exists,;t t
24117 s,@cf_ada_make@,$cf_ada_make,;t t
24118 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
24119 s,@cf_compile_generics@,$cf_compile_generics,;t t
24120 s,@cf_generic_objects@,$cf_generic_objects,;t t
24121 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
24122 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
24123 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
24124 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
24125 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
24126 s,@cf_ada_package@,$cf_ada_package,;t t
24127 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
24128 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
24129 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
24130 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
24131 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
24132 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
24133 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
24134 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
24135 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
24136 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
24137 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
24138 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
24139 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
24140 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
24141 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
24142 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
24143 s,@TICS_LIBS@,$TICS_LIBS,;t t
24144 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
24145 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
24146 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
24147 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
24148 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
24149 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
24150 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
24151 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
24152 s,@includesubdir@,$includesubdir,;t t
24153 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
24154 s,@TICS_LIST@,$TICS_LIST,;t t
24155 s,@TINFO_LIST@,$TINFO_LIST,;t t
24156 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
24157 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
24158 s,@TEST_ARGS@,$TEST_ARGS,;t t
24159 s,@TEST_DEPS@,$TEST_DEPS,;t t
24160 s,@TEST_ARG2@,$TEST_ARG2,;t t
24161 s,@TEST_DEP2@,$TEST_DEP2,;t t
24162 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
24163 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
24164 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
24165 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
24166 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
24167 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
24168 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
24169 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
24170 s,@cross_compiling@,$cross_compiling,;t t
24171 s,@TIC_PATH@,$TIC_PATH,;t t
24172 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
24173 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
24174 s,@PANEL_NAME@,$PANEL_NAME,;t t
24175 s,@MENU_NAME@,$MENU_NAME,;t t
24176 s,@FORM_NAME@,$FORM_NAME,;t t
24177 s,@CXX_NAME@,$CXX_NAME,;t t
24178 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
24179 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
24180 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
24181 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
24182 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
24183 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
24184 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
24189 cat >>$CONFIG_STATUS <<\EOF
24190 # Split the substitutions into bite-sized pieces for seds with
24191 # small command number limits, like on Digital OSF/1 and HP-UX.
24192 ac_max_sed_lines=48
24193 ac_sed_frag=1 # Number of current file.
24194 ac_beg=1 # First line for current file.
24195 ac_end=$ac_max_sed_lines # Line after last line for current file.
24198 while $ac_more_lines; do
24199 if test $ac_beg -gt 1; then
24200 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24202 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24204 if test ! -s $tmp/subs.frag; then
24205 ac_more_lines=false
24207 # The purpose of the label and of the branching condition is to
24208 # speed up the sed processing (if there are no `@' at all, there
24209 # is no need to browse any of the substitutions).
24210 # These are the two extra sed commands mentioned above.
24212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24213 # It is possible to make a multiline substitution using escaped newlines.
24214 # Ensure that we do not split the substitution between script fragments.
24216 ac_END=`expr $ac_end + $ac_max_sed_lines`
24217 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
24218 if test -s $tmp/subs.next; then
24219 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
24220 if test ! -s $tmp/subs.edit; then
24221 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
24222 if test ! -s $tmp/subs.edit; then
24223 if test $ac_beg -gt 1; then
24224 ac_end=`expr $ac_end - 1`
24231 if test -z "$ac_sed_cmds"; then
24232 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24234 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24236 ac_sed_frag=`expr $ac_sed_frag + 1`
24238 ac_end=`expr $ac_end + $ac_max_sed_lines`
24241 if test -z "$ac_sed_cmds"; then
24244 fi # test -n "$CONFIG_FILES"
24247 cat >>$CONFIG_STATUS <<\EOF
24248 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24249 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24251 - | *:- | *:-:* ) # input from stdin
24253 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24255 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24257 * ) ac_file_in=$ac_file.in ;;
24260 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24261 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24262 X"$ac_file" : 'X\(//\)[^/]' \| \
24263 X"$ac_file" : 'X\(//\)$' \| \
24264 X"$ac_file" : 'X\(/\)' \| \
24265 . : '\(.\)' 2>/dev/null ||
24267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24269 /^X\(\/\/\)$/{ s//\1/; q; }
24270 /^X\(\/\).*/{ s//\1/; q; }
24272 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24273 { case "$ac_dir" in
24274 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24278 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24279 case $as_mkdir_dir in
24280 # Skip DOS drivespec
24281 ?:) as_incr_dir=$as_mkdir_dir ;;
24283 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24284 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24289 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
24290 # A "../" for each directory in $ac_dir_suffix.
24291 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
24293 ac_dir_suffix= ac_dots=
24298 if test -z "$ac_dots"; then
24301 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
24303 [\\/]* | ?:[\\/]* )
24304 ac_srcdir=$srcdir$ac_dir_suffix;
24305 ac_top_srcdir=$srcdir ;;
24306 *) # Relative path.
24307 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
24308 ac_top_srcdir=$ac_dots$srcdir ;;
24312 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24313 *) ac_INSTALL=$ac_dots$INSTALL ;;
24316 if test x"$ac_file" != x-; then
24317 { echo "$as_me:24317: creating $ac_file" >&5
24318 echo "$as_me: creating $ac_file" >&6;}
24321 # Let's still pretend it is `configure' which instantiates (i.e., don't
24322 # use $as_me), people would be surprised to read:
24323 # /* config.h. Generated automatically by config.status. */
24324 configure_input="Generated automatically from `echo $ac_file_in |
24325 sed 's,.*/,,'` by configure."
24327 # First look for the input files in the build tree, otherwise in the
24329 ac_file_inputs=`IFS=:
24330 for f in $ac_file_in; do
24332 -) echo $tmp/stdin ;;
24334 # Absolute (can't be DOS-style, as IFS=:)
24335 test -f "$f" || { { echo "$as_me:24335: error: cannot find input file: $f" >&5
24336 echo "$as_me: error: cannot find input file: $f" >&2;}
24337 { (exit 1); exit 1; }; }
24340 if test -f "$f"; then
24343 elif test -f "$srcdir/$f"; then
24348 { { echo "$as_me:24348: error: cannot find input file: $f" >&5
24349 echo "$as_me: error: cannot find input file: $f" >&2;}
24350 { (exit 1); exit 1; }; }
24353 done` || { (exit 1); exit 1; }
24355 cat >>$CONFIG_STATUS <<\EOF
24356 ac_warn_datarootdir=no
24357 if test x"$ac_file" != x-; then
24358 for ac_item in $ac_file_inputs
24360 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
24361 if test -n "$ac_seen"; then
24362 ac_used=`grep '@datarootdir@' $ac_item`
24363 if test -z "$ac_used"; then
24364 { echo "$as_me:24364: WARNING: datarootdir was used implicitly but not set:
24366 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
24368 ac_warn_datarootdir=yes
24371 ac_seen=`grep '${datarootdir}' $ac_item`
24372 if test -n "$ac_seen"; then
24373 { echo "$as_me:24373: WARNING: datarootdir was used explicitly but not set:
24375 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
24377 ac_warn_datarootdir=yes
24382 if test "x$ac_warn_datarootdir" = xyes; then
24383 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
24387 cat >>$CONFIG_STATUS <<EOF
24391 cat >>$CONFIG_STATUS <<\EOF
24393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24394 s,@configure_input@,$configure_input,;t t
24395 s,@srcdir@,$ac_srcdir,;t t
24396 s,@top_srcdir@,$ac_top_srcdir,;t t
24397 s,@INSTALL@,$ac_INSTALL,;t t
24398 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24400 if test x"$ac_file" != x-; then
24401 cp $tmp/out $ac_file
24403 for ac_name in prefix exec_prefix datarootdir
24405 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
24406 if test -n "$ac_seen"; then
24407 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
24408 if test -z "$ac_init"; then
24409 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
24410 { echo "$as_me:24410: WARNING: Variable $ac_name is used but was not set:
24412 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
24417 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
24418 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
24419 if test -s $tmp/out; then
24420 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
24421 { echo "$as_me:24421: WARNING: Some variables may not be substituted:
24423 echo "$as_me: WARNING: Some variables may not be substituted:
24433 cat >>$CONFIG_STATUS <<\EOF
24436 # CONFIG_HEADER section.
24439 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24440 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24442 # ac_d sets the value in "#define NAME VALUE" lines.
24443 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24444 ac_dB='[ ].*$,\1#\2'
24447 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24448 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24449 ac_iB='\([ ]\),\1#\2define\3'
24452 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24453 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24454 ac_uB='$,\1#\2define\3'
24458 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24461 - | *:- | *:-:* ) # input from stdin
24463 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24465 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24467 * ) ac_file_in=$ac_file.in ;;
24470 test x"$ac_file" != x- && { echo "$as_me:24470: creating $ac_file" >&5
24471 echo "$as_me: creating $ac_file" >&6;}
24473 # First look for the input files in the build tree, otherwise in the
24475 ac_file_inputs=`IFS=:
24476 for f in $ac_file_in; do
24478 -) echo $tmp/stdin ;;
24480 # Absolute (can't be DOS-style, as IFS=:)
24481 test -f "$f" || { { echo "$as_me:24481: error: cannot find input file: $f" >&5
24482 echo "$as_me: error: cannot find input file: $f" >&2;}
24483 { (exit 1); exit 1; }; }
24486 if test -f "$f"; then
24489 elif test -f "$srcdir/$f"; then
24494 { { echo "$as_me:24494: error: cannot find input file: $f" >&5
24495 echo "$as_me: error: cannot find input file: $f" >&2;}
24496 { (exit 1); exit 1; }; }
24499 done` || { (exit 1); exit 1; }
24500 # Remove the trailing spaces.
24501 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24505 # Transform confdefs.h into a list of #define's. We won't use it as a sed
24506 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
24507 # be either 'cat' or 'sort'.
24508 cat confdefs.h | uniq >conftest.vals
24510 # Break up conftest.vals because some shells have a limit on
24511 # the size of here documents, and old seds have small limits too.
24513 rm -f conftest.tail
24514 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
24515 while grep . conftest.vals >/dev/null
24517 # Write chunks of a limited-size here document to conftest.frag.
24518 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
24519 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
24520 echo 'CEOF' >> $CONFIG_STATUS
24521 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24522 rm -f conftest.vals
24523 mv conftest.tail conftest.vals
24525 rm -f conftest.vals
24527 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
24529 echo ' cat >> conftest.edit <<CEOF
24530 /@DEFS@/r conftest.frag
24533 sed -f conftest.edit $tmp/in > $tmp/out
24535 mv $tmp/out $tmp/in
24536 rm -f conftest.edit conftest.frag
24537 ' >> $CONFIG_STATUS
24539 cat >>$CONFIG_STATUS <<\EOF
24540 # Let's still pretend it is `configure' which instantiates (i.e., don't
24541 # use $as_me), people would be surprised to read:
24542 # /* config.h. Generated automatically by config.status. */
24543 if test x"$ac_file" = x-; then
24544 echo "/* Generated automatically by configure. */" >$tmp/config.h
24546 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24548 cat $tmp/in >>$tmp/config.h
24550 if test x"$ac_file" != x-; then
24551 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24552 { echo "$as_me:24552: $ac_file is unchanged" >&5
24553 echo "$as_me: $ac_file is unchanged" >&6;}
24555 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24556 X"$ac_file" : 'X\(//\)[^/]' \| \
24557 X"$ac_file" : 'X\(//\)$' \| \
24558 X"$ac_file" : 'X\(/\)' \| \
24559 . : '\(.\)' 2>/dev/null ||
24561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24563 /^X\(\/\/\)$/{ s//\1/; q; }
24564 /^X\(\/\).*/{ s//\1/; q; }
24566 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24567 { case "$ac_dir" in
24568 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24572 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24573 case $as_mkdir_dir in
24574 # Skip DOS drivespec
24575 ?:) as_incr_dir=$as_mkdir_dir ;;
24577 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24578 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24585 mv $tmp/config.h $ac_file
24589 rm -f $tmp/config.h
24593 cat >>$CONFIG_STATUS <<\EOF
24595 # CONFIG_COMMANDS section.
24597 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24598 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24599 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24603 if test "x$cf_with_tests" != xno ; then
24607 if test ! -d $srcdir/$cf_dir; then
24609 elif test -f $srcdir/$cf_dir/programs; then
24610 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
24616 cf_prefix=$LIB_PREFIX
24618 case $cf_cv_shlib_version in
24619 (cygdll|msysdll|mingw)
24620 TINFO_NAME=$TINFO_ARG_SUFFIX
24625 if test -n "$TINFO_SUFFIX" ; then
24626 case $TINFO_SUFFIX in
24628 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
24629 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
24632 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
24633 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
24636 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
24637 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
24642 for cf_dir in $SRC_SUBDIRS
24644 if test ! -d $srcdir/$cf_dir ; then
24646 elif test -f $srcdir/$cf_dir/modules; then
24651 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
24653 cf_awk_program="$cf_awk_program\
24654 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
24655 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
24659 if test "x$WILDCARD_SYMS" = xno
24661 cf_awk_program="$cf_awk_program\
24662 /[ ]_\\*;/ { skip=1; next; }\
24666 if test "x$cf_awk_program" != "x"
24668 cat >>$cf_dir/Makefile <<CF_EOF
24670 # Generated by CF_LIB_RULES
24671 resulting.map: $UNALTERED_SYMS
24672 $AWK 'BEGIN { skip = 1; last=""; } \
24674 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
24675 skip = 0; last = \$\$0; } \
24676 END { print last; }' < $UNALTERED_SYMS >\$@
24679 rm -f resulting.map
24683 for cf_item in $cf_LIST_MODELS
24689 cf_depsuf=$cf_suffix
24693 cf_depsuf=$cf_suffix
24697 cf_depsuf=$cf_suffix
24700 case $cf_cv_system_name in
24703 cf_depsuf=$cf_suffix
24705 (cygwin*|msys*|mingw*)
24711 cf_depsuf=$cf_suffix
24717 cf_depsuf=$cf_suffix
24721 cf_depsuf=$cf_suffix
24727 cf_depsuf=$cf_suffix
24733 cf_depsuf=$cf_suffix
24736 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24738 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24739 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24743 test "$cf_dir" = c++ && cf_libname=ncurses++
24744 if test $cf_item = shared ; then
24745 if test -n "${LIB_SUFFIX}"
24747 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24749 cf_shared_suffix="$cf_suffix"
24751 if test "$cf_cv_do_symlinks" = yes ; then
24754 case "$cf_cv_shlib_version" in
24756 cf_version_name=REL_VERSION
24759 cf_version_name=ABI_VERSION
24763 if test -n "$cf_version_name"
24765 case "$cf_cv_system_name" in
24768 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
24771 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
24775 if test -n "${USE_LIB_SUFFIX}"
24777 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24779 cf_shared_suffix="$cf_suffix"
24782 # cygwin needs import library, and has unique naming convention
24783 # use autodetected ${cf_prefix} for import lib and static lib, but
24784 # use 'cyg' prefix for shared lib.
24785 case $cf_cv_shlib_version in
24787 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24788 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
24791 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24792 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
24795 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24796 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
24802 if test -n "$cf_add_lib"
24804 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24808 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
24809 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24812 if test $cf_dir = ncurses ; then
24813 cf_subsets="$LIB_SUBSETS"
24814 cf_r_parts="$cf_subsets"
24815 cf_liblist="$Libs_To_Make"
24817 while test -n "$cf_r_parts"
24819 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
24820 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
24821 if test "$cf_l_parts" != "$cf_r_parts" ; then
24823 case $cf_l_parts in
24825 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
24828 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
24834 if test -n "$cf_add_lib"; then
24835 Libs_To_Make="$cf_add_lib $Libs_To_Make"
24842 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
24845 if test $cf_dir = c++; then
24846 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
24848 for cf_item in $Libs_To_Make
24854 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24857 for cf_test in $cf_list
24859 if test "$cf_test" = "$cf_item"
24861 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
24866 test -n "$cf_item" && cf_list="$cf_list $cf_item"
24868 Libs_To_Make="$cf_list"
24872 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
24873 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
24874 $cf_dir/Makefile >$cf_dir/Makefile.out
24875 mv $cf_dir/Makefile.out $cf_dir/Makefile
24877 $AWK -f $srcdir/mk-0th.awk \
24878 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
24879 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24881 for cf_subset in $cf_subsets
24884 for cf_item in $cf_LIST_MODELS
24887 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
24889 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24892 if test "$CXX_MODEL" = SHARED; then
24893 case $cf_cv_shlib_version in
24894 (cygdll|msysdll|mingw)
24895 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
24897 echo "${as_me:-configure}:24897: testing overriding CXX_MODEL to SHARED ..." 1>&5
24899 with_shared_cxx=yes
24902 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
24910 cf_depsuf=$cf_suffix
24914 cf_depsuf=$cf_suffix
24918 cf_depsuf=$cf_suffix
24921 case $cf_cv_system_name in
24924 cf_depsuf=$cf_suffix
24926 (cygwin*|msys*|mingw*)
24932 cf_depsuf=$cf_suffix
24938 cf_depsuf=$cf_suffix
24942 cf_depsuf=$cf_suffix
24948 cf_depsuf=$cf_suffix
24954 cf_depsuf=$cf_suffix
24957 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24959 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24960 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24964 (libtool) cf_subdir='obj_lo' ;;
24965 (normal) cf_subdir='objects' ;;
24966 (debug) cf_subdir='obj_g' ;;
24967 (profile) cf_subdir='obj_p' ;;
24969 case $cf_cv_system_name in
24971 cf_subdir='objects' ;;
24973 cf_subdir='obj_s' ;;
24977 # Test for case where we build libtinfo with a different name.
24979 if test $cf_dir = ncurses ; then
24982 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24985 cf_libname=$TINFO_LIB_SUFFIX
24988 cf_libname=$TICS_LIB_SUFFIX
24991 elif test $cf_dir = c++ ; then
24992 cf_libname=ncurses++$USE_LIB_SUFFIX
24994 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24996 if test -n "${USE_ARG_SUFFIX}" ; then
24997 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
24998 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
25001 # These dependencies really are for development, not
25002 # builds, but they are useful in porting, too.
25003 cf_depend="../include/ncurses_cfg.h"
25004 if test "$srcdir" = "."; then
25007 cf_reldir="\${srcdir}"
25010 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
25011 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
25012 elif test -f $srcdir/$cf_dir/curses.priv.h; then
25013 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
25017 old_cf_suffix="$cf_suffix"
25018 if test "$cf_cv_shlib_version_infix" = yes ; then
25019 if test -n "$USE_LIB_SUFFIX" ; then
25020 case $USE_LIB_SUFFIX in
25022 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
25023 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
25024 cf_dir_suffix=tw$EXTRA_SUFFIX
25027 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
25028 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
25029 cf_dir_suffix=t$EXTRA_SUFFIX
25032 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
25033 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
25034 cf_dir_suffix=w$EXTRA_SUFFIX
25037 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
25038 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
25039 cf_dir_suffix=$EXTRA_SUFFIX
25045 $AWK -f $srcdir/mk-1st.awk \
25046 name=${cf_libname}${cf_dir_suffix} \
25047 traces=$LIB_TRACING \
25049 CXX_MODEL=$CXX_MODEL \
25051 prefix=$cf_prefix \
25052 suffix=$cf_suffix \
25053 subset=$cf_subset \
25054 driver=$cf_cv_term_driver \
25056 TermlibRoot=$TINFO_NAME \
25057 TermlibSuffix=$TINFO_SUFFIX \
25058 ShlibVer=$cf_cv_shlib_version \
25059 ShlibVerInfix=$cf_cv_shlib_version_infix \
25060 ReLink=${cf_cv_do_relink:-no} \
25061 DoLinks=$cf_cv_do_symlinks \
25062 rmSoLocs=$cf_cv_rm_so_locs \
25063 ldconfig="$LDCONFIG" \
25064 overwrite=$WITH_OVERWRITE \
25065 depend="$cf_depend" \
25067 libtool_version="$LIBTOOL_VERSION" \
25068 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25070 cf_suffix="$old_cf_suffix"
25072 for cf_subdir2 in $cf_subdirs lib
25074 test $cf_subdir = $cf_subdir2 && break
25076 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
25077 $AWK -f $srcdir/mk-2nd.awk \
25079 traces=$LIB_TRACING \
25082 subset=$cf_subset \
25085 crenames=$cf_cv_prog_CC_c_o \
25086 cxxrenames=$cf_cv_prog_CXX_c_o \
25087 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25088 cf_subdirs="$cf_subdirs $cf_subdir"
25093 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
25096 for cf_dir in $SRC_SUBDIRS
25098 if test ! -d $srcdir/$cf_dir ; then
25102 if test -f $cf_dir/Makefile ; then
25105 echo 'libs \' >> Makefile
25106 echo 'install.libs \' >> Makefile
25107 echo 'uninstall.libs ::' >> Makefile
25108 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
25113 if test -f $srcdir/$cf_dir/modules; then
25115 if test -f $srcdir/$cf_dir/headers; then
25116 cat >> Makefile <<CF_EOF
25117 install.includes \\
25118 uninstall.includes \\
25121 if test "$cf_dir" != "c++" ; then
25122 echo 'lint \' >> Makefile
25124 cat >> Makefile <<CF_EOF
25130 uninstall.$cf_dir ::
25131 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
25133 elif test -f $srcdir/$cf_dir/headers; then
25134 cat >> Makefile <<CF_EOF
25139 install.includes \\
25140 uninstall.includes ::
25141 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
25146 if test "x$cf_with_db_install" = xyes; then
25147 cat >> Makefile <<CF_EOF
25149 install.libs uninstall.libs \\
25150 install.data uninstall.data ::
25151 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
25154 cat >> Makefile <<CF_EOF
25156 install.libs uninstall.libs ::
25157 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
25161 if test "x$cf_with_manpages" = xyes; then
25162 cat >> Makefile <<CF_EOF
25166 cd man && \${MAKE} \${TOP_MFLAGS} \$@
25170 cat >> Makefile <<CF_EOF
25173 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
25174 rm -f headers.sh headers.sed mk_shared_lib.sh
25175 rm -f edit_man.* man_alias.*
25176 rm -rf \${DIRS_TO_MAKE}
25179 # Special case: tack's manpage lives in its own directory.
25180 if test "x$cf_with_manpages" = xyes; then
25181 if test -d tack ; then
25182 if test -f $srcdir/$tack.h; then
25183 cat >> Makefile <<CF_EOF
25187 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
25193 rm -f headers.sed headers.sh
25195 echo creating headers.sh
25196 cat >headers.sh <<CF_EOF
25198 # This shell script is generated by the 'configure' script. It is invoked in a
25199 # subdirectory of the build tree. It generates a sed-script in the parent
25200 # directory that is used to adjust includes for header files that reside in a
25201 # subdirectory of /usr/include, etc.
25203 while test \$# != 3
25205 PRG="\$PRG \$1"; shift
25210 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
25211 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
25212 echo installing \$SRC in \$DST
25215 if test $WITH_CURSES_H = yes; then
25216 cat >>headers.sh <<CF_EOF
25219 END=\`basename \$DST\`
25220 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
25222 NAME=\`basename \$i\`
25223 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
25227 echo "" >> \$TMPSED
25233 cat >>headers.sh <<CF_EOF
25236 END=\`basename \$DST\`
25237 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
25239 NAME=\`basename \$i\`
25240 if test "\$NAME" = "curses.h"
25242 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
25245 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
25249 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
25254 cat >>headers.sh <<CF_EOF
25256 sed -f \$TMPSED \$SRC > \$TMPSRC
25257 NAME=\`basename \$SRC\`
25259 if test $WITH_CURSES_H != yes; then
25260 cat >>headers.sh <<CF_EOF
25261 test "\$NAME" = "curses.h" && NAME=ncurses.h
25264 cat >>headers.sh <<CF_EOF
25265 # Just in case someone gzip'd manpages, remove the conflicting copy.
25266 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
25268 eval \$PRG \$TMPSRC \$DST/\$NAME
25269 rm -f \$TMPSRC \$TMPSED
25272 chmod 0755 headers.sh
25274 for cf_dir in $SRC_SUBDIRS
25276 if test ! -d $srcdir/$cf_dir ; then
25280 if test -f $srcdir/$cf_dir/headers; then
25281 $AWK -f $srcdir/mk-hdr.awk \
25282 subset="$LIB_SUBSETS" \
25283 compat="$WITH_CURSES_H" \
25284 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
25287 if test -f $srcdir/$cf_dir/modules; then
25288 if test "$cf_dir" != "c++" ; then
25289 cat >>$cf_dir/Makefile <<"CF_EOF"
25290 depend : ${AUTO_SRC}
25291 makedepend -- ${CPPFLAGS} -- ${C_SRC}
25293 # DO NOT DELETE THIS LINE -- make depend depends on it.
25299 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
25300 if test -z "$USE_OLD_MAKERULES" ; then
25301 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
25309 cat >>$CONFIG_STATUS <<\EOF
25311 { (exit 0); exit 0; }
25313 chmod +x $CONFIG_STATUS
25314 ac_clean_files=$ac_clean_files_save
25316 # configure is writing to config.log, and then calls config.status.
25317 # config.status does its own redirection, appending to config.log.
25318 # Unfortunately, on DOS this fails, as config.log is still kept open
25319 # by configure, so config.status won't be able to write to it; its
25320 # output is simply discarded. So we exec the FD to /dev/null,
25321 # effectively closing config.log, so it can be properly (re)opened and
25322 # appended to by config.status. When coming back to configure, we
25323 # need to make the FD available again.
25324 if test "$no_create" != yes; then
25327 $SHELL $CONFIG_STATUS || ac_cs_success=false
25329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25330 # would make configure fail if this is the last instruction.
25331 $ac_cs_success || { (exit 1); exit 1; }
25333 ${MAKE:-make} preinstall