2 # From configure.in Revision: 1.630 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20150926. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1303 if test "x$cf_cv_abi_version" != "x$withval"
1305 { echo "$as_me:1305: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1306 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1307 case $cf_cv_rel_version in
1309 cf_cv_rel_version=$withval.0
1312 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1316 cf_cv_abi_version=$withval
1319 if test -n "$cf_cv_abi_version" ; then
1320 case $cf_cv_abi_version in
1324 { { echo "$as_me:1324: error: ABI version is not a number: $cf_cv_abi_version" >&5
1325 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1326 { (exit 1); exit 1; }; }
1330 { { echo "$as_me:1330: error: ABI version value is empty" >&5
1331 echo "$as_me: error: ABI version value is empty" >&2;}
1332 { (exit 1); exit 1; }; }
1335 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1337 case $cf_cv_rel_version in
1339 cf_cv_rel_version=$with_abi_version.0
1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1350 elif test -f $ac_dir/install.sh; then
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1354 elif test -f $ac_dir/shtool; then
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:1361: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:1371: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:1384: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:1400: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1422 echo "$as_me:1422: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 # The aliases save the names the user supplied, while $host etc.
1444 # will get canonicalized.
1445 test -n "$target_alias" &&
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1448 program_prefix=${target_alias}-
1449 system_name="$host_os"
1451 system_name="`(uname -s -r) 2>/dev/null`"
1452 if test -z "$system_name" ; then
1453 system_name="`(hostname) 2>/dev/null`"
1456 test -n "$system_name" &&
1457 cat >>confdefs.h <<EOF
1458 #define SYSTEM_NAME "$system_name"
1461 if test "${cf_cv_system_name+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 cf_cv_system_name="$system_name"
1467 test -z "$system_name" && system_name="$cf_cv_system_name"
1468 test -n "$cf_cv_system_name" && echo "$as_me:1468: result: Configuring for $cf_cv_system_name" >&5
1469 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1471 if test ".$system_name" != ".$cf_cv_system_name" ; then
1472 echo "$as_me:1472: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1473 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1474 { { echo "$as_me:1474: error: \"Please remove config.cache and try again.\"" >&5
1475 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1476 { (exit 1); exit 1; }; }
1479 # Check whether --with-system-type or --without-system-type was given.
1480 if test "${with_system_type+set}" = set; then
1481 withval="$with_system_type"
1482 { echo "$as_me:1482: WARNING: overriding system type to $withval" >&5
1483 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1484 cf_cv_system_name=$withval
1489 ### Save the given $CFLAGS to allow user-override.
1490 cf_user_CFLAGS="$CFLAGS"
1492 ### Default install-location
1494 echo "$as_me:1494: checking for prefix" >&5
1495 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1496 if test "x$prefix" = "xNONE" ; then
1497 case "$cf_cv_system_name" in
1498 # non-vendor systems don't have a conflict
1499 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1502 (*) prefix=$ac_default_prefix
1506 echo "$as_me:1506: result: $prefix" >&5
1507 echo "${ECHO_T}$prefix" >&6
1509 if test "x$prefix" = "xNONE" ; then
1510 echo "$as_me:1510: checking for default include-directory" >&5
1511 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1512 test -n "$verbose" && echo 1>&6
1515 $includedir/ncurses \
1517 $prefix/include/ncurses \
1518 /usr/local/include \
1519 /usr/local/include/ncurses \
1521 /usr/include/ncurses
1523 cf_dir=`eval echo $cf_symbol`
1524 if test -f $cf_dir/curses.h ; then
1525 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1526 includedir="$cf_symbol"
1527 test -n "$verbose" && echo $ac_n " found " 1>&6
1531 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1533 echo "$as_me:1533: result: $includedir" >&5
1534 echo "${ECHO_T}$includedir" >&6
1537 ### Defaults for ncurses ABI
1539 case x$cf_cv_abi_version in
1541 cf_dft_ext_colors=yes
1542 cf_dft_ext_const=yes
1543 cf_dft_ext_mouse=yes
1544 cf_dft_ext_putwin=yes
1545 cf_dft_ext_spfuncs=yes
1546 cf_dft_filter_syms=yes
1547 cf_dft_chtype=uint32_t
1548 cf_dft_mmask_t=uint32_t
1550 cf_dft_tparm_arg=intptr_t
1551 cf_dft_with_lp64=yes
1554 cf_dft_ext_colors=no
1557 cf_dft_ext_putwin=no
1558 cf_dft_ext_spfuncs=no
1559 cf_dft_filter_syms=no
1563 cf_dft_tparm_arg=long
1568 ### Checks for programs.
1570 # Check whether --with-ada or --without-ada was given.
1571 if test "${with_ada+set}" = set; then
1573 cf_with_ada=$withval
1577 if test "x$cf_with_ada" = xyes
1579 cf_PROG_CC="gnatgcc gcc cc"
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 ac_main_return=return
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in $cf_PROG_CC
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 ac_save_IFS=$IFS; IFS=$ac_path_separator
1605 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 $as_executable_p "$ac_dir/$ac_word" || continue
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:1610: found $ac_dir/$ac_word" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:1618: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:1621: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 test -n "$CC" && break
1628 if test -z "$CC"; then
1630 for ac_prog in $cf_PROG_CC
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:1634: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 $as_executable_p "$ac_dir/$ac_word" || continue
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:1649: found $ac_dir/$ac_word" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:1657: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$ac_ct_CC" && break
1670 test -z "$CC" && { { echo "$as_me:1670: error: no acceptable cc found in \$PATH" >&5
1671 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1672 { (exit 1); exit 1; }; }
1674 # Provide some information about the compiler.
1675 echo "$as_me:1675:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:1678: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:1683: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line 1695 "configure"
1696 #include "confdefs.h"
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:1711: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:1714: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1723 ls a.out conftest 2>/dev/null;
1724 ls a.* conftest.* 2>/dev/null`; do
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1727 a.out ) # We found the default executable, but exeext='' is most
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738 echo "$as_me: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 { { echo "$as_me:1740: error: C compiler cannot create executables" >&5
1741 echo "$as_me: error: C compiler cannot create executables" >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:1746: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:1751: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:1757: \"$ac_try\"") >&5
1760 echo "$as_me:1760: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:1767: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'." >&5
1769 echo "$as_me: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'." >&2;}
1771 { (exit 1); exit 1; }; }
1775 echo "$as_me:1775: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1778 rm -f a.out a.exe conftest$ac_cv_exeext
1779 ac_clean_files=$ac_clean_files_save
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether we are cross compiling" >&5
1783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1784 echo "$as_me:1784: result: $cross_compiling" >&5
1785 echo "${ECHO_T}$cross_compiling" >&6
1787 echo "$as_me:1787: checking for executable suffix" >&5
1788 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1789 if { (eval echo "$as_me:1789: \"$ac_link\"") >&5
1790 (eval $ac_link) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1796 # work properly (i.e., refer to `conftest.exe'), while it won't with
1798 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:1808: error: cannot compute EXEEXT: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:1814: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:1820: checking for object suffix" >&5
1821 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:1853: error: cannot compute OBJEXT: cannot compile" >&5
1854 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:1864: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:1906: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:1912: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:1930: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:1936: \"$ac_try\"") >&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:1949: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 # Some people use a C++ compiler to compile C. Since we use `exit',
1967 # in C++ we need to declare it. In case someone uses the same compiler
1968 # for both compiling C and C++ we need to have the C++ compiler decide
1969 # the declaration of exit, since it's the most demanding environment.
1970 cat >conftest.$ac_ext <<_ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 for ac_declaration in \
1989 '#include <stdlib.h>' \
1990 'extern "C" void std::exit (int) throw (); using std::exit;' \
1991 'extern "C" void std::exit (int); using std::exit;' \
1992 'extern "C" void exit (int) throw ();' \
1993 'extern "C" void exit (int);' \
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 ac_main_return=return
2079 if test "$GCC" = yes ; then
2080 echo "$as_me:2080: checking version of $CC" >&5
2081 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2082 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2083 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2084 echo "$as_me:2084: result: $GCC_VERSION" >&5
2085 echo "${ECHO_T}$GCC_VERSION" >&6
2088 echo "$as_me:2088: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc=no
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2100 #include <sys/types.h>
2101 #include <sys/stat.h>
2102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2103 struct buf { int x; };
2104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2105 static char *e (p, i)
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2116 s = g (p, va_arg (v,int));
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC="$ac_save_CC $ac_arg"
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_stdc=$ac_arg
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 rm -f conftest.$ac_objext
2164 rm -f conftest.$ac_ext conftest.$ac_objext
2169 case "x$ac_cv_prog_cc_stdc" in
2171 echo "$as_me:2171: result: none needed" >&5
2172 echo "${ECHO_T}none needed" >&6 ;;
2174 echo "$as_me:2174: result: $ac_cv_prog_cc_stdc" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176 CC="$CC $ac_cv_prog_cc_stdc" ;;
2179 # This should have been defined by AC_PROG_CC
2182 echo "$as_me:2182: checking \$CC variable" >&5
2183 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2186 echo "$as_me:2186: result: broken" >&5
2187 echo "${ECHO_T}broken" >&6
2188 { echo "$as_me:2188: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2189 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2191 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ][ ]*//'`
2192 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_flags
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2216 elif test "${cf_tst_cflags}" = "\"'" ; then
2217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2226 case $cf_add_cflags in
2228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2230 CPPFLAGS=`echo "$CPPFLAGS" | \
2231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2241 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2251 && test -z "${cf_tst_cflags}" \
2252 && cf_fix_cppflags=no
2257 if test -n "$cf_new_cflags" ; then
2259 CFLAGS="$CFLAGS $cf_new_cflags"
2262 if test -n "$cf_new_cppflags" ; then
2264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2267 if test -n "$cf_new_extra_cppflags" ; then
2269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2272 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2274 echo "${as_me:-configure}:2274: testing resulting CC: '$CC' ..." 1>&5
2276 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2278 echo "${as_me:-configure}:2278: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2280 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2282 echo "${as_me:-configure}:2282: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2286 echo "$as_me:2286: result: ok" >&5
2287 echo "${ECHO_T}ok" >&6
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296 ac_main_return=return
2297 echo "$as_me:2297: checking how to run the C preprocessor" >&5
2298 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2299 # On Suns, sometimes $CPP names a directory.
2300 if test -n "$CPP" && test -d "$CPP"; then
2303 if test -z "$CPP"; then
2304 if test "${ac_cv_prog_CPP+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 # Double quotes because CPP needs to be expanded
2308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2311 for ac_c_preproc_warn_flag in '' yes
2313 # Use a header file that comes with gcc, so configuring glibc
2314 # with a fresh cross-compiler works.
2315 # On the NeXT, cc -E runs the code through the compiler's parser,
2316 # not just through cpp. "Syntax error" is here to catch this case.
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line 2318 "configure"
2319 #include "confdefs.h"
2323 if { (eval echo "$as_me:2323: \"$ac_cpp conftest.$ac_ext\"") >&5
2324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2326 egrep -v '^ *\+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:2329: \$? = $ac_status" >&5
2330 (exit $ac_status); } >/dev/null; then
2331 if test -s conftest.err; then
2332 ac_cpp_err=$ac_c_preproc_warn_flag
2339 if test -z "$ac_cpp_err"; then
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 # Broken: fails on valid input.
2347 rm -f conftest.err conftest.$ac_ext
2349 # OK, works on sane cases. Now check whether non-existent headers
2350 # can be detected and how.
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line 2352 "configure"
2353 #include "confdefs.h"
2354 #include <ac_nonexistent.h>
2356 if { (eval echo "$as_me:2356: \"$ac_cpp conftest.$ac_ext\"") >&5
2357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 egrep -v '^ *\+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:2362: \$? = $ac_status" >&5
2363 (exit $ac_status); } >/dev/null; then
2364 if test -s conftest.err; then
2365 ac_cpp_err=$ac_c_preproc_warn_flag
2372 if test -z "$ac_cpp_err"; then
2373 # Broken: success on invalid input.
2376 echo "$as_me: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2378 # Passes both tests.
2382 rm -f conftest.err conftest.$ac_ext
2385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2386 rm -f conftest.err conftest.$ac_ext
2387 if $ac_preproc_ok; then
2399 echo "$as_me:2399: result: $CPP" >&5
2400 echo "${ECHO_T}$CPP" >&6
2402 for ac_c_preproc_warn_flag in '' yes
2404 # Use a header file that comes with gcc, so configuring glibc
2405 # with a fresh cross-compiler works.
2406 # On the NeXT, cc -E runs the code through the compiler's parser,
2407 # not just through cpp. "Syntax error" is here to catch this case.
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line 2409 "configure"
2410 #include "confdefs.h"
2414 if { (eval echo "$as_me:2414: \"$ac_cpp conftest.$ac_ext\"") >&5
2415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2417 egrep -v '^ *\+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:2420: \$? = $ac_status" >&5
2421 (exit $ac_status); } >/dev/null; then
2422 if test -s conftest.err; then
2423 ac_cpp_err=$ac_c_preproc_warn_flag
2430 if test -z "$ac_cpp_err"; then
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 # Broken: fails on valid input.
2438 rm -f conftest.err conftest.$ac_ext
2440 # OK, works on sane cases. Now check whether non-existent headers
2441 # can be detected and how.
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line 2443 "configure"
2444 #include "confdefs.h"
2445 #include <ac_nonexistent.h>
2447 if { (eval echo "$as_me:2447: \"$ac_cpp conftest.$ac_ext\"") >&5
2448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2450 egrep -v '^ *\+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:2453: \$? = $ac_status" >&5
2454 (exit $ac_status); } >/dev/null; then
2455 if test -s conftest.err; then
2456 ac_cpp_err=$ac_c_preproc_warn_flag
2463 if test -z "$ac_cpp_err"; then
2464 # Broken: success on invalid input.
2467 echo "$as_me: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 # Passes both tests.
2473 rm -f conftest.err conftest.$ac_ext
2476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2477 rm -f conftest.err conftest.$ac_ext
2478 if $ac_preproc_ok; then
2481 { { echo "$as_me:2481: error: C preprocessor \"$CPP\" fails sanity check" >&5
2482 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2483 { (exit 1); exit 1; }; }
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 ac_main_return=return
2493 if test $ac_cv_c_compiler_gnu = yes; then
2494 echo "$as_me:2494: checking whether $CC needs -traditional" >&5
2495 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2496 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 ac_pattern="Autoconf.*'x'"
2500 cat >conftest.$ac_ext <<_ACEOF
2501 #line 2501 "configure"
2502 #include "confdefs.h"
2504 int Autoconf = TIOCGETP;
2506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2507 egrep "$ac_pattern" >/dev/null 2>&1; then
2508 ac_cv_prog_gcc_traditional=yes
2510 ac_cv_prog_gcc_traditional=no
2514 if test $ac_cv_prog_gcc_traditional = no; then
2515 cat >conftest.$ac_ext <<_ACEOF
2516 #line 2516 "configure"
2517 #include "confdefs.h"
2519 int Autoconf = TCGETA;
2521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2522 egrep "$ac_pattern" >/dev/null 2>&1; then
2523 ac_cv_prog_gcc_traditional=yes
2529 echo "$as_me:2529: result: $ac_cv_prog_gcc_traditional" >&5
2530 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2531 if test $ac_cv_prog_gcc_traditional = yes; then
2532 CC="$CC -traditional"
2536 echo "$as_me:2536: checking whether $CC understands -c and -o together" >&5
2537 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2538 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 cat > conftest.$ac_ext <<CF_EOF
2545 ${cf_cv_main_return:-return}(0);
2548 # We do the test twice because some compilers refuse to overwrite an
2549 # existing .o file with -o, though they will create one.
2550 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2551 if { (eval echo "$as_me:2551: \"$ac_try\"") >&5
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 test -f conftest2.$ac_objext && { (eval echo "$as_me:2556: \"$ac_try\"") >&5
2559 echo "$as_me:2559: \$? = $ac_status" >&5
2560 (exit $ac_status); };
2562 eval cf_cv_prog_CC_c_o=yes
2564 eval cf_cv_prog_CC_c_o=no
2569 if test $cf_cv_prog_CC_c_o = yes; then
2570 echo "$as_me:2570: result: yes" >&5
2571 echo "${ECHO_T}yes" >&6
2573 echo "$as_me:2573: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 if test "$cross_compiling" = yes ; then
2580 case "$cf_cv_system_name" in
2581 (dragonfly*|mirbsd*|freebsd*)
2582 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2584 (*) LDPATH=$PATH:/sbin:/usr/sbin
2585 # Extract the first word of "ldconfig", so it can be a program name with args.
2586 set dummy ldconfig; ac_word=$2
2587 echo "$as_me:2587: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2597 ac_save_IFS=$IFS; IFS=$ac_path_separator
2599 for ac_dir in $ac_dummy; do
2601 test -z "$ac_dir" && ac_dir=.
2602 if $as_executable_p "$ac_dir/$ac_word"; then
2603 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2604 echo "$as_me:2604: found $ac_dir/$ac_word" >&5
2612 LDCONFIG=$ac_cv_path_LDCONFIG
2614 if test -n "$LDCONFIG"; then
2615 echo "$as_me:2615: result: $LDCONFIG" >&5
2616 echo "${ECHO_T}$LDCONFIG" >&6
2618 echo "$as_me:2618: result: no" >&5
2619 echo "${ECHO_T}no" >&6
2626 echo "$as_me:2626: checking if you want to ensure bool is consistent with C++" >&5
2627 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2629 # Check whether --with-cxx or --without-cxx was given.
2630 if test "${with_cxx+set}" = set; then
2632 cf_with_cxx=$withval
2636 echo "$as_me:2636: result: $cf_with_cxx" >&5
2637 echo "${ECHO_T}$cf_with_cxx" >&6
2638 if test "X$cf_with_cxx" = Xno ; then
2642 # with autoconf 2.13, we can change the error to a warning:
2644 ac_cpp='$CXXCPP $CPPFLAGS'
2645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2648 ac_main_return=return
2649 if test -n "$ac_tool_prefix"; then
2650 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2654 echo "$as_me:2654: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_CXX+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$CXX"; then
2660 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2662 ac_save_IFS=$IFS; IFS=$ac_path_separator
2664 for ac_dir in $ac_dummy; do
2666 test -z "$ac_dir" && ac_dir=.
2667 $as_executable_p "$ac_dir/$ac_word" || continue
2668 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2669 echo "$as_me:2669: found $ac_dir/$ac_word" >&5
2676 if test -n "$CXX"; then
2677 echo "$as_me:2677: result: $CXX" >&5
2678 echo "${ECHO_T}$CXX" >&6
2680 echo "$as_me:2680: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2684 test -n "$CXX" && break
2687 if test -z "$CXX"; then
2689 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 echo "$as_me:2693: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$ac_ct_CXX"; then
2699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2701 ac_save_IFS=$IFS; IFS=$ac_path_separator
2703 for ac_dir in $ac_dummy; do
2705 test -z "$ac_dir" && ac_dir=.
2706 $as_executable_p "$ac_dir/$ac_word" || continue
2707 ac_cv_prog_ac_ct_CXX="$ac_prog"
2708 echo "$as_me:2708: found $ac_dir/$ac_word" >&5
2714 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2715 if test -n "$ac_ct_CXX"; then
2716 echo "$as_me:2716: result: $ac_ct_CXX" >&5
2717 echo "${ECHO_T}$ac_ct_CXX" >&6
2719 echo "$as_me:2719: result: no" >&5
2720 echo "${ECHO_T}no" >&6
2723 test -n "$ac_ct_CXX" && break
2725 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2730 # Provide some information about the compiler.
2731 echo "$as_me:2731:" \
2732 "checking for C++ compiler version" >&5
2733 ac_compiler=`set X $ac_compile; echo $2`
2734 { (eval echo "$as_me:2734: \"$ac_compiler --version </dev/null >&5\"") >&5
2735 (eval $ac_compiler --version </dev/null >&5) 2>&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (eval echo "$as_me:2739: \"$ac_compiler -v </dev/null >&5\"") >&5
2740 (eval $ac_compiler -v </dev/null >&5) 2>&5
2742 echo "$as_me:2742: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (eval echo "$as_me:2744: \"$ac_compiler -V </dev/null >&5\"") >&5
2745 (eval $ac_compiler -V </dev/null >&5) 2>&5
2747 echo "$as_me:2747: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2750 echo "$as_me:2750: checking whether we are using the GNU C++ compiler" >&5
2751 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 cat >conftest.$ac_ext <<_ACEOF
2756 #line 2756 "configure"
2757 #include "confdefs.h"
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:2771: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:2777: \"$ac_try\"") >&5
2780 echo "$as_me:2780: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2784 echo "$as_me: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2788 rm -f conftest.$ac_objext conftest.$ac_ext
2789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2792 echo "$as_me:2792: result: $ac_cv_cxx_compiler_gnu" >&5
2793 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2794 GXX=`test $ac_compiler_gnu = yes && echo yes`
2795 ac_test_CXXFLAGS=${CXXFLAGS+set}
2796 ac_save_CXXFLAGS=$CXXFLAGS
2798 echo "$as_me:2798: checking whether $CXX accepts -g" >&5
2799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2800 if test "${ac_cv_prog_cxx_g+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line 2804 "configure"
2805 #include "confdefs.h"
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:2822: \"$ac_try\"") >&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cxx_g=yes
2829 echo "$as_me: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2833 rm -f conftest.$ac_objext conftest.$ac_ext
2835 echo "$as_me:2835: result: $ac_cv_prog_cxx_g" >&5
2836 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2837 if test "$ac_test_CXXFLAGS" = set; then
2838 CXXFLAGS=$ac_save_CXXFLAGS
2839 elif test $ac_cv_prog_cxx_g = yes; then
2840 if test "$GXX" = yes; then
2846 if test "$GXX" = yes; then
2852 for ac_declaration in \
2854 '#include <stdlib.h>' \
2855 'extern "C" void std::exit (int) throw (); using std::exit;' \
2856 'extern "C" void std::exit (int); using std::exit;' \
2857 'extern "C" void exit (int) throw ();' \
2858 'extern "C" void exit (int);' \
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line 2862 "configure"
2863 #include "confdefs.h"
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>&5
2878 echo "$as_me:2878: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:2881: \"$ac_try\"") >&5
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2892 rm -f conftest.$ac_objext conftest.$ac_ext
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:2912: \"$ac_try\"") >&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 rm -f conftest.$ac_objext conftest.$ac_ext
2925 if test -n "$ac_declaration"; then
2926 echo '#ifdef __cplusplus' >>confdefs.h
2927 echo $ac_declaration >>confdefs.h
2928 echo '#endif' >>confdefs.h
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 ac_main_return=return
2939 ac_cpp='$CXXCPP $CPPFLAGS'
2940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2943 ac_main_return=return
2945 if test "x$cf_with_cxx" != xno
2947 # Several of the C++ configurations do not work, particularly when
2948 # cross-compiling (20140913 -TD)
2949 echo "$as_me:2949: checking if $CXX works" >&5
2950 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2952 save_CPPFLAGS="$CPPFLAGS"
2953 eval cf_includedir=${includedir}
2954 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2956 cat >conftest.$ac_ext <<_ACEOF
2957 #line 2957 "configure"
2958 #include "confdefs.h"
2967 printf("Hello world!\n")
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:2974: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>&5
2977 echo "$as_me:2977: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:2980: \"$ac_try\"") >&5
2983 echo "$as_me:2983: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2991 rm -f conftest.$ac_objext conftest.$ac_ext
2992 CPPFLAGS="$save_CPPFLAGS"
2994 echo "$as_me:2994: result: $cf_cxx_works" >&5
2995 echo "${ECHO_T}$cf_cxx_works" >&6
2996 if test "x$cf_cxx_works" = xno
2998 { echo "$as_me:2998: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2999 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3000 cf_with_cxx=no; CXX=""; GXX="";
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 ac_main_return=return
3010 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3011 if test "$CXX" = "g++" ; then
3012 # Extract the first word of "g++", so it can be a program name with args.
3013 set dummy g++; ac_word=$2
3014 echo "$as_me:3014: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3016 if test "${ac_cv_path_CXX+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3024 ac_save_IFS=$IFS; IFS=$ac_path_separator
3026 for ac_dir in $ac_dummy; do
3028 test -z "$ac_dir" && ac_dir=.
3029 if $as_executable_p "$ac_dir/$ac_word"; then
3030 ac_cv_path_CXX="$ac_dir/$ac_word"
3031 echo "$as_me:3031: found $ac_dir/$ac_word" >&5
3041 if test -n "$CXX"; then
3042 echo "$as_me:3042: result: $CXX" >&5
3043 echo "${ECHO_T}$CXX" >&6
3045 echo "$as_me:3045: result: no" >&5
3046 echo "${ECHO_T}no" >&6
3052 { echo "$as_me:3052: WARNING: You don't have any C++ compiler, too bad" >&5
3053 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3054 cf_with_cxx=no; CXX=""; GXX="";
3060 if test "$GXX" = yes; then
3061 echo "$as_me:3061: checking version of ${CXX:-g++}" >&5
3062 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3063 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3064 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3065 echo "$as_me:3065: result: $GXX_VERSION" >&5
3066 echo "${ECHO_T}$GXX_VERSION" >&6
3069 case $GXX_VERSION in
3071 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3073 { echo "$as_me:3073: WARNING: templates do not work" >&5
3074 echo "$as_me: WARNING: templates do not work" >&2;}
3078 echo "$as_me:3078: checking if you want to build C++ binding and demo" >&5
3079 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3081 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3082 if test "${with_cxx_binding+set}" = set; then
3083 withval="$with_cxx_binding"
3084 cf_with_cxx_binding=$withval
3086 cf_with_cxx_binding=$cf_with_cxx
3088 echo "$as_me:3088: result: $cf_with_cxx_binding" >&5
3089 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3091 echo "$as_me:3091: checking if you want to build with Ada95" >&5
3092 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3093 echo "$as_me:3093: result: $cf_with_ada" >&5
3094 echo "${ECHO_T}$cf_with_ada" >&6
3096 echo "$as_me:3096: checking if you want to install terminal database" >&5
3097 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3099 # Check whether --enable-db-install or --disable-db-install was given.
3100 if test "${enable_db_install+set}" = set; then
3101 enableval="$enable_db_install"
3102 cf_with_db_install=$enableval
3104 cf_with_db_install=yes
3106 echo "$as_me:3106: result: $cf_with_db_install" >&5
3107 echo "${ECHO_T}$cf_with_db_install" >&6
3109 echo "$as_me:3109: checking if you want to install manpages" >&5
3110 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3112 # Check whether --with-manpages or --without-manpages was given.
3113 if test "${with_manpages+set}" = set; then
3114 withval="$with_manpages"
3115 cf_with_manpages=$withval
3117 cf_with_manpages=yes
3119 echo "$as_me:3119: result: $cf_with_manpages" >&5
3120 echo "${ECHO_T}$cf_with_manpages" >&6
3122 echo "$as_me:3122: checking if you want to build programs such as tic" >&5
3123 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3125 # Check whether --with-progs or --without-progs was given.
3126 if test "${with_progs+set}" = set; then
3127 withval="$with_progs"
3128 cf_with_progs=$withval
3132 echo "$as_me:3132: result: $cf_with_progs" >&5
3133 echo "${ECHO_T}$cf_with_progs" >&6
3135 echo "$as_me:3135: checking if you want to build test-programs" >&5
3136 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3138 # Check whether --with-tests or --without-tests was given.
3139 if test "${with_tests+set}" = set; then
3140 withval="$with_tests"
3141 cf_with_tests=$withval
3145 echo "$as_me:3145: result: $cf_with_tests" >&5
3146 echo "${ECHO_T}$cf_with_tests" >&6
3148 echo "$as_me:3148: checking if you wish to install curses.h" >&5
3149 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3151 # Check whether --with-curses-h or --without-curses-h was given.
3152 if test "${with_curses_h+set}" = set; then
3153 withval="$with_curses_h"
3154 with_curses_h=$withval
3158 echo "$as_me:3158: result: $with_curses_h" >&5
3159 echo "${ECHO_T}$with_curses_h" >&6
3161 modules_to_build="ncurses"
3162 if test "X$cf_with_progs" != Xno ; then
3163 modules_to_build="$modules_to_build progs tack"
3165 modules_to_build="$modules_to_build panel menu form"
3167 test "$program_prefix" != NONE &&
3168 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3169 # Use a double $ so make ignores it.
3170 test "$program_suffix" != NONE &&
3171 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3172 # Double any \ or $. echo might interpret backslashes.
3173 # By default was `s,x,x', remove it if useless.
3174 cat <<\_ACEOF >conftest.sed
3175 s/[\\$]/&&/g;s/;s,x,x,$//
3177 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3180 for ac_prog in mawk gawk nawk awk
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 echo "$as_me:3184: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186 if test "${ac_cv_prog_AWK+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -n "$AWK"; then
3190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3192 ac_save_IFS=$IFS; IFS=$ac_path_separator
3194 for ac_dir in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir=.
3197 $as_executable_p "$ac_dir/$ac_word" || continue
3198 ac_cv_prog_AWK="$ac_prog"
3199 echo "$as_me:3199: found $ac_dir/$ac_word" >&5
3206 if test -n "$AWK"; then
3207 echo "$as_me:3207: result: $AWK" >&5
3208 echo "${ECHO_T}$AWK" >&6
3210 echo "$as_me:3210: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3214 test -n "$AWK" && break
3217 test -z "$AWK" && { { echo "$as_me:3217: error: No awk program found" >&5
3218 echo "$as_me: error: No awk program found" >&2;}
3219 { (exit 1); exit 1; }; }
3221 echo "$as_me:3221: checking for egrep" >&5
3222 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3223 if test "${ac_cv_prog_egrep+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3227 then ac_cv_prog_egrep='grep -E'
3228 else ac_cv_prog_egrep='egrep'
3231 echo "$as_me:3231: result: $ac_cv_prog_egrep" >&5
3232 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3233 EGREP=$ac_cv_prog_egrep
3235 test -z "$EGREP" && { { echo "$as_me:3235: error: No egrep program found" >&5
3236 echo "$as_me: error: No egrep program found" >&2;}
3237 { (exit 1); exit 1; }; }
3239 # Find a good install program. We prefer a C program (faster),
3240 # so one script is as good as another. But avoid the broken or
3241 # incompatible versions:
3242 # SysV /etc/install, /usr/sbin/install
3243 # SunOS /usr/etc/install
3244 # IRIX /sbin/install
3246 # AmigaOS /C/install, which installs bootblocks on floppy discs
3247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3250 # ./install, which can be erroneously created by make from ./install.sh.
3251 echo "$as_me:3251: checking for a BSD compatible install" >&5
3252 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3253 if test -z "$INSTALL"; then
3254 if test "${ac_cv_path_install+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 ac_save_IFS=$IFS; IFS=$ac_path_separator
3258 for ac_dir in $PATH; do
3260 # Account for people who put trailing slashes in PATH elements.
3262 / | ./ | .// | /cC/* \
3263 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3266 # OSF1 and SCO ODT 3.0 have their own names for install.
3267 # Don't use installbsd from OSF since it installs stuff as root
3269 for ac_prog in ginstall scoinst install; do
3270 if $as_executable_p "$ac_dir/$ac_prog"; then
3271 if test $ac_prog = install &&
3272 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3273 # AIX install. It has an incompatible calling convention.
3275 elif test $ac_prog = install &&
3276 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3277 # program-specific install script used by HP pwplus--don't use.
3280 ac_cv_path_install="$ac_dir/$ac_prog -c"
3290 if test "${ac_cv_path_install+set}" = set; then
3291 INSTALL=$ac_cv_path_install
3293 # As a last resort, use the slow shell script. We don't cache a
3294 # path for INSTALL within a source directory, because that will
3295 # break other packages using the cache if that directory is
3296 # removed, or if the path is relative.
3297 INSTALL=$ac_install_sh
3300 echo "$as_me:3300: result: $INSTALL" >&5
3301 echo "${ECHO_T}$INSTALL" >&6
3303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3304 # It thinks the first close brace ends the variable substitution.
3305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3316 test -z "$cf_dir" && cf_dir=.
3317 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3321 for ac_prog in lint cppcheck splint
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 echo "$as_me:3325: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_LINT+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$LINT"; then
3331 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3333 ac_save_IFS=$IFS; IFS=$ac_path_separator
3335 for ac_dir in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir=.
3338 $as_executable_p "$ac_dir/$ac_word" || continue
3339 ac_cv_prog_LINT="$ac_prog"
3340 echo "$as_me:3340: found $ac_dir/$ac_word" >&5
3346 LINT=$ac_cv_prog_LINT
3347 if test -n "$LINT"; then
3348 echo "$as_me:3348: result: $LINT" >&5
3349 echo "${ECHO_T}$LINT" >&6
3351 echo "$as_me:3351: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3355 test -n "$LINT" && break
3358 echo "$as_me:3358: checking whether ln -s works" >&5
3359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3361 if test "$LN_S" = "ln -s"; then
3362 echo "$as_me:3362: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6
3365 echo "$as_me:3365: result: no, using $LN_S" >&5
3366 echo "${ECHO_T}no, using $LN_S" >&6
3369 echo "$as_me:3369: checking if $LN_S -f options work" >&5
3370 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3372 rm -f conf$$.src conf$$dst
3374 echo first >conf$$.src
3375 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3380 rm -f conf$$.dst conf$$src
3381 echo "$as_me:3381: result: $cf_prog_ln_sf" >&5
3382 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3384 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3386 echo "$as_me:3386: checking for long file names" >&5
3387 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3388 if test "${ac_cv_sys_long_file_names+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 ac_cv_sys_long_file_names=yes
3392 # Test for long file names in all the places we know might matter:
3393 # . the current directory, where building will happen
3394 # $prefix/lib where we will be installing things
3395 # $exec_prefix/lib likewise
3396 # eval it to expand exec_prefix.
3397 # $TMPDIR if set, where it might want to write temporary files
3398 # if $TMPDIR is not set:
3399 # /tmp where it might want to write temporary files
3402 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3405 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3407 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3408 test -d $ac_dir || continue
3409 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3410 ac_xdir=$ac_dir/cf$$
3411 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3412 ac_tf1=$ac_xdir/conftest9012345
3413 ac_tf2=$ac_xdir/conftest9012346
3414 (echo 1 >$ac_tf1) 2>/dev/null
3415 (echo 2 >$ac_tf2) 2>/dev/null
3416 ac_val=`cat $ac_tf1 2>/dev/null`
3417 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3418 ac_cv_sys_long_file_names=no
3419 rm -rf $ac_xdir 2>/dev/null
3422 rm -rf $ac_xdir 2>/dev/null
3425 echo "$as_me:3425: result: $ac_cv_sys_long_file_names" >&5
3426 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3427 if test $ac_cv_sys_long_file_names = yes; then
3429 cat >>confdefs.h <<\EOF
3430 #define HAVE_LONG_FILE_NAMES 1
3435 # if we find pkg-config, check if we should install the ".pc" files.
3437 echo "$as_me:3437: checking if you want to use pkg-config" >&5
3438 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3440 # Check whether --with-pkg-config or --without-pkg-config was given.
3441 if test "${with_pkg_config+set}" = set; then
3442 withval="$with_pkg_config"
3443 cf_pkg_config=$withval
3447 echo "$as_me:3447: result: $cf_pkg_config" >&5
3448 echo "${ECHO_T}$cf_pkg_config" >&6
3450 case $cf_pkg_config in
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3459 echo "$as_me:3459: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3469 ac_save_IFS=$IFS; IFS=$ac_path_separator
3471 for ac_dir in $ac_dummy; do
3473 test -z "$ac_dir" && ac_dir=.
3474 if $as_executable_p "$ac_dir/$ac_word"; then
3475 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3476 echo "$as_me:3476: found $ac_dir/$ac_word" >&5
3484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3486 if test -n "$PKG_CONFIG"; then
3487 echo "$as_me:3487: result: $PKG_CONFIG" >&5
3488 echo "${ECHO_T}$PKG_CONFIG" >&6
3490 echo "$as_me:3490: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3495 if test -z "$ac_cv_path_PKG_CONFIG"; then
3496 ac_pt_PKG_CONFIG=$PKG_CONFIG
3497 # Extract the first word of "pkg-config", so it can be a program name with args.
3498 set dummy 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_ac_pt_PKG_CONFIG+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 case $ac_pt_PKG_CONFIG in
3506 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3516 echo "$as_me:3516: found $ac_dir/$ac_word" >&5
3521 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3525 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3527 if test -n "$ac_pt_PKG_CONFIG"; then
3528 echo "$as_me:3528: result: $ac_pt_PKG_CONFIG" >&5
3529 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3531 echo "$as_me:3531: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3535 PKG_CONFIG=$ac_pt_PKG_CONFIG
3537 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3546 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3547 if test "$PKG_CONFIG" != none ; then
3549 if test "x$prefix" != xNONE; then
3550 cf_path_syntax="$prefix"
3552 cf_path_syntax="$ac_default_prefix"
3555 case ".$PKG_CONFIG" in
3560 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3562 (.\${*prefix}*|.\${*dir}*)
3563 eval PKG_CONFIG="$PKG_CONFIG"
3564 case ".$PKG_CONFIG" in
3566 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3571 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3574 { { echo "$as_me:3574: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3575 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3576 { (exit 1); exit 1; }; }
3580 elif test "x$cf_pkg_config" != xno ; then
3581 { echo "$as_me:3581: WARNING: pkg-config is not installed" >&5
3582 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3587 echo "$as_me:3587: checking for pkg-config library directory" >&5
3588 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3591 echo "$as_me:3591: checking for $PKG_CONFIG library directory" >&5
3592 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3596 PKG_CONFIG_LIBDIR=no
3598 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3599 if test "${with_pkg_config_libdir+set}" = set; then
3600 withval="$with_pkg_config_libdir"
3601 PKG_CONFIG_LIBDIR=$withval
3603 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3606 case x$PKG_CONFIG_LIBDIR in
3610 # Look for the library directory using the same prefix as the executable
3611 if test "x$PKG_CONFIG" = xnone
3615 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3618 # If you don't like using the default architecture, you have to specify the
3619 # intended library directory and corresponding compiler/linker options.
3621 # This case allows for Debian's 2014-flavor of multiarch, along with the
3622 # most common variations before that point. Some other variants spell the
3623 # directory differently, e.g., "pkg-config", and put it in unusual places.
3624 # pkg-config has always been poorly standardized, which is ironic...
3625 case x`(arch) 2>/dev/null` in
3628 $cf_path/lib/*64-linux-gnu \
3636 $cf_path/lib/*-linux-gnu \
3644 test -n "$verbose" && echo " list..." 1>&6
3646 echo "${as_me:-configure}:3646: testing list... ..." 1>&5
3648 for cf_config in $cf_search_path
3650 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3652 echo "${as_me:-configure}:3652: testing checking $cf_config/pkgconfig ..." 1>&5
3654 if test -d $cf_config/pkgconfig
3656 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3657 echo "$as_me:3657: checking done" >&5
3658 echo $ECHO_N "checking done... $ECHO_C" >&6
3667 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3668 echo "$as_me:3668: result: $PKG_CONFIG_LIBDIR" >&5
3669 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3672 if test "x$PKG_CONFIG" != xnone
3674 echo "$as_me:3674: checking if we should install .pc files for $PKG_CONFIG" >&5
3675 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3677 echo "$as_me:3677: checking if we should install .pc files" >&5
3678 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3681 # Check whether --enable-pc-files or --disable-pc-files was given.
3682 if test "${enable_pc_files+set}" = set; then
3683 enableval="$enable_pc_files"
3684 enable_pc_files=$enableval
3688 echo "$as_me:3688: result: $enable_pc_files" >&5
3689 echo "${ECHO_T}$enable_pc_files" >&6
3691 if test "x$enable_pc_files" != xno
3694 case "x$PKG_CONFIG_LIBDIR" in
3696 { echo "$as_me:3696: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3697 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3701 if test "x$prefix" != xNONE; then
3702 cf_path_syntax="$prefix"
3704 cf_path_syntax="$ac_default_prefix"
3707 case ".$PKG_CONFIG_LIBDIR" in
3712 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3714 (.\${*prefix}*|.\${*dir}*)
3715 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3716 case ".$PKG_CONFIG_LIBDIR" in
3718 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3723 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3726 { { echo "$as_me:3726: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3727 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3728 { (exit 1); exit 1; }; }
3738 if test -z "$MAKE_PC_FILES"
3740 echo "$as_me:3740: checking for suffix to add to pc-files" >&5
3741 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3743 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3744 if test "${with_pc_suffix+set}" = set; then
3745 withval="$with_pc_suffix"
3750 (*) PC_MODULE_SUFFIX="$withval"
3754 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3755 echo "$as_me:3755: result: $PC_MODULE_SUFFIX" >&5
3756 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3757 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3761 echo "$as_me:3761: checking if we should assume mixed-case filenames" >&5
3762 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3764 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3765 if test "${enable_mixed_case+set}" = set; then
3766 enableval="$enable_mixed_case"
3767 enable_mixedcase=$enableval
3769 enable_mixedcase=auto
3771 echo "$as_me:3771: result: $enable_mixedcase" >&5
3772 echo "${ECHO_T}$enable_mixedcase" >&6
3773 if test "$enable_mixedcase" = "auto" ; then
3775 echo "$as_me:3775: checking if filesystem supports mixed-case filenames" >&5
3776 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3777 if test "${cf_cv_mixedcase+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test "$cross_compiling" = yes ; then
3782 case $target_alias in
3783 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3791 rm -f conftest CONFTEST
3793 if test -f CONFTEST ; then
3798 rm -f conftest CONFTEST
3802 echo "$as_me:3802: result: $cf_cv_mixedcase" >&5
3803 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3804 test "$cf_cv_mixedcase" = yes &&
3805 cat >>confdefs.h <<\EOF
3806 #define MIXEDCASE_FILENAMES 1
3810 cf_cv_mixedcase=$enable_mixedcase
3811 if test "x$enable_mixedcase" = "xyes" ; then
3813 cat >>confdefs.h <<\EOF
3814 #define MIXEDCASE_FILENAMES 1
3820 # do this after mixed-case option (tags/TAGS is not as important as tic).
3821 echo "$as_me:3821: checking whether ${MAKE-make} sets \${MAKE}" >&5
3822 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3824 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 cat >conftest.make <<\EOF
3829 @echo 'ac_maketemp="${MAKE}"'
3831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3832 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3833 if test -n "$ac_maketemp"; then
3834 eval ac_cv_prog_make_${ac_make}_set=yes
3836 eval ac_cv_prog_make_${ac_make}_set=no
3840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3841 echo "$as_me:3841: result: yes" >&5
3842 echo "${ECHO_T}yes" >&6
3845 echo "$as_me:3845: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3847 SET_MAKE="MAKE=${MAKE-make}"
3850 for ac_prog in exctags ctags
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 echo "$as_me:3854: checking for $ac_word" >&5
3855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3856 if test "${ac_cv_prog_CTAGS+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 if test -n "$CTAGS"; then
3860 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3862 ac_save_IFS=$IFS; IFS=$ac_path_separator
3864 for ac_dir in $ac_dummy; do
3866 test -z "$ac_dir" && ac_dir=.
3867 $as_executable_p "$ac_dir/$ac_word" || continue
3868 ac_cv_prog_CTAGS="$ac_prog"
3869 echo "$as_me:3869: found $ac_dir/$ac_word" >&5
3875 CTAGS=$ac_cv_prog_CTAGS
3876 if test -n "$CTAGS"; then
3877 echo "$as_me:3877: result: $CTAGS" >&5
3878 echo "${ECHO_T}$CTAGS" >&6
3880 echo "$as_me:3880: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3884 test -n "$CTAGS" && break
3887 for ac_prog in exetags etags
3889 # Extract the first word of "$ac_prog", so it can be a program name with args.
3890 set dummy $ac_prog; ac_word=$2
3891 echo "$as_me:3891: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_prog_ETAGS+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test -n "$ETAGS"; then
3897 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3899 ac_save_IFS=$IFS; IFS=$ac_path_separator
3901 for ac_dir in $ac_dummy; do
3903 test -z "$ac_dir" && ac_dir=.
3904 $as_executable_p "$ac_dir/$ac_word" || continue
3905 ac_cv_prog_ETAGS="$ac_prog"
3906 echo "$as_me:3906: found $ac_dir/$ac_word" >&5
3912 ETAGS=$ac_cv_prog_ETAGS
3913 if test -n "$ETAGS"; then
3914 echo "$as_me:3914: result: $ETAGS" >&5
3915 echo "${ECHO_T}$ETAGS" >&6
3917 echo "$as_me:3917: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 test -n "$ETAGS" && break
3924 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3925 set dummy ${CTAGS:-ctags}; ac_word=$2
3926 echo "$as_me:3926: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if test -n "$MAKE_LOWER_TAGS"; then
3932 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3934 ac_save_IFS=$IFS; IFS=$ac_path_separator
3936 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 $as_executable_p "$ac_dir/$ac_word" || continue
3940 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3941 echo "$as_me:3941: found $ac_dir/$ac_word" >&5
3945 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3948 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3949 if test -n "$MAKE_LOWER_TAGS"; then
3950 echo "$as_me:3950: result: $MAKE_LOWER_TAGS" >&5
3951 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3953 echo "$as_me:3953: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3957 if test "$cf_cv_mixedcase" = yes ; then
3958 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3959 set dummy ${ETAGS:-etags}; ac_word=$2
3960 echo "$as_me:3960: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 if test -n "$MAKE_UPPER_TAGS"; then
3966 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3968 ac_save_IFS=$IFS; IFS=$ac_path_separator
3970 for ac_dir in $ac_dummy; do
3972 test -z "$ac_dir" && ac_dir=.
3973 $as_executable_p "$ac_dir/$ac_word" || continue
3974 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3975 echo "$as_me:3975: found $ac_dir/$ac_word" >&5
3979 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3982 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3983 if test -n "$MAKE_UPPER_TAGS"; then
3984 echo "$as_me:3984: result: $MAKE_UPPER_TAGS" >&5
3985 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3987 echo "$as_me:3987: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3995 if test "$MAKE_UPPER_TAGS" = yes ; then
4001 if test "$MAKE_LOWER_TAGS" = yes ; then
4007 echo "$as_me:4007: checking for makeflags variable" >&5
4008 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4009 if test "${cf_cv_makeflags+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4016 cat >cf_makeflags.tmp <<CF_EOF
4019 @ echo '.$cf_option'
4021 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4022 case "$cf_result" in
4024 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4025 case "$cf_result" in
4026 (.*CC=*) cf_cv_makeflags=
4028 (*) cf_cv_makeflags=$cf_option
4034 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4038 rm -f cf_makeflags.tmp
4041 echo "$as_me:4041: result: $cf_cv_makeflags" >&5
4042 echo "${ECHO_T}$cf_cv_makeflags" >&6
4044 if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4047 echo "$as_me:4047: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_RANLIB+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$RANLIB"; then
4053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4055 ac_save_IFS=$IFS; IFS=$ac_path_separator
4057 for ac_dir in $ac_dummy; do
4059 test -z "$ac_dir" && ac_dir=.
4060 $as_executable_p "$ac_dir/$ac_word" || continue
4061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4062 echo "$as_me:4062: found $ac_dir/$ac_word" >&5
4068 RANLIB=$ac_cv_prog_RANLIB
4069 if test -n "$RANLIB"; then
4070 echo "$as_me:4070: result: $RANLIB" >&5
4071 echo "${ECHO_T}$RANLIB" >&6
4073 echo "$as_me:4073: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4078 if test -z "$ac_cv_prog_RANLIB"; then
4079 ac_ct_RANLIB=$RANLIB
4080 # Extract the first word of "ranlib", so it can be a program name with args.
4081 set dummy ranlib; ac_word=$2
4082 echo "$as_me:4082: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 if test -n "$ac_ct_RANLIB"; then
4088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4090 ac_save_IFS=$IFS; IFS=$ac_path_separator
4092 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 $as_executable_p "$ac_dir/$ac_word" || continue
4096 ac_cv_prog_ac_ct_RANLIB="ranlib"
4097 echo "$as_me:4097: found $ac_dir/$ac_word" >&5
4101 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4105 if test -n "$ac_ct_RANLIB"; then
4106 echo "$as_me:4106: result: $ac_ct_RANLIB" >&5
4107 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4109 echo "$as_me:4109: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4113 RANLIB=$ac_ct_RANLIB
4115 RANLIB="$ac_cv_prog_RANLIB"
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}ld; ac_word=$2
4121 echo "$as_me:4121: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_LD+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$LD"; then
4127 ac_cv_prog_LD="$LD" # Let the user override the test.
4129 ac_save_IFS=$IFS; IFS=$ac_path_separator
4131 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 $as_executable_p "$ac_dir/$ac_word" || continue
4135 ac_cv_prog_LD="${ac_tool_prefix}ld"
4136 echo "$as_me:4136: found $ac_dir/$ac_word" >&5
4143 if test -n "$LD"; then
4144 echo "$as_me:4144: result: $LD" >&5
4145 echo "${ECHO_T}$LD" >&6
4147 echo "$as_me:4147: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4152 if test -z "$ac_cv_prog_LD"; then
4154 # Extract the first word of "ld", so it can be a program name with args.
4155 set dummy ld; ac_word=$2
4156 echo "$as_me:4156: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$ac_ct_LD"; then
4162 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4164 ac_save_IFS=$IFS; IFS=$ac_path_separator
4166 for ac_dir in $ac_dummy; do
4168 test -z "$ac_dir" && ac_dir=.
4169 $as_executable_p "$ac_dir/$ac_word" || continue
4170 ac_cv_prog_ac_ct_LD="ld"
4171 echo "$as_me:4171: found $ac_dir/$ac_word" >&5
4175 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4178 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4179 if test -n "$ac_ct_LD"; then
4180 echo "$as_me:4180: result: $ac_ct_LD" >&5
4181 echo "${ECHO_T}$ac_ct_LD" >&6
4183 echo "$as_me:4183: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}ar; ac_word=$2
4195 echo "$as_me:4195: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_AR+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test -n "$AR"; then
4201 ac_cv_prog_AR="$AR" # Let the user override the test.
4203 ac_save_IFS=$IFS; IFS=$ac_path_separator
4205 for ac_dir in $ac_dummy; do
4207 test -z "$ac_dir" && ac_dir=.
4208 $as_executable_p "$ac_dir/$ac_word" || continue
4209 ac_cv_prog_AR="${ac_tool_prefix}ar"
4210 echo "$as_me:4210: found $ac_dir/$ac_word" >&5
4217 if test -n "$AR"; then
4218 echo "$as_me:4218: result: $AR" >&5
4219 echo "${ECHO_T}$AR" >&6
4221 echo "$as_me:4221: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4226 if test -z "$ac_cv_prog_AR"; then
4228 # Extract the first word of "ar", so it can be a program name with args.
4229 set dummy ar; ac_word=$2
4230 echo "$as_me:4230: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$ac_ct_AR"; then
4236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4238 ac_save_IFS=$IFS; IFS=$ac_path_separator
4240 for ac_dir in $ac_dummy; do
4242 test -z "$ac_dir" && ac_dir=.
4243 $as_executable_p "$ac_dir/$ac_word" || continue
4244 ac_cv_prog_ac_ct_AR="ar"
4245 echo "$as_me:4245: found $ac_dir/$ac_word" >&5
4249 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4253 if test -n "$ac_ct_AR"; then
4254 echo "$as_me:4254: result: $ac_ct_AR" >&5
4255 echo "${ECHO_T}$ac_ct_AR" >&6
4257 echo "$as_me:4257: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}nm; ac_word=$2
4269 echo "$as_me:4269: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_NM+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$NM"; then
4275 ac_cv_prog_NM="$NM" # Let the user override the test.
4277 ac_save_IFS=$IFS; IFS=$ac_path_separator
4279 for ac_dir in $ac_dummy; do
4281 test -z "$ac_dir" && ac_dir=.
4282 $as_executable_p "$ac_dir/$ac_word" || continue
4283 ac_cv_prog_NM="${ac_tool_prefix}nm"
4284 echo "$as_me:4284: found $ac_dir/$ac_word" >&5
4291 if test -n "$NM"; then
4292 echo "$as_me:4292: result: $NM" >&5
4293 echo "${ECHO_T}$NM" >&6
4295 echo "$as_me:4295: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4300 if test -z "$ac_cv_prog_NM"; then
4302 # Extract the first word of "nm", so it can be a program name with args.
4303 set dummy nm; ac_word=$2
4304 echo "$as_me:4304: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$ac_ct_NM"; then
4310 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4312 ac_save_IFS=$IFS; IFS=$ac_path_separator
4314 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 $as_executable_p "$ac_dir/$ac_word" || continue
4318 ac_cv_prog_ac_ct_NM="nm"
4319 echo "$as_me:4319: found $ac_dir/$ac_word" >&5
4323 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4326 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4327 if test -n "$ac_ct_NM"; then
4328 echo "$as_me:4328: result: $ac_ct_NM" >&5
4329 echo "${ECHO_T}$ac_ct_NM" >&6
4331 echo "$as_me:4331: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 echo "$as_me:4343: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_AR+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$AR"; then
4349 ac_cv_prog_AR="$AR" # Let the user override the test.
4351 ac_save_IFS=$IFS; IFS=$ac_path_separator
4353 for ac_dir in $ac_dummy; do
4355 test -z "$ac_dir" && ac_dir=.
4356 $as_executable_p "$ac_dir/$ac_word" || continue
4357 ac_cv_prog_AR="${ac_tool_prefix}ar"
4358 echo "$as_me:4358: found $ac_dir/$ac_word" >&5
4365 if test -n "$AR"; then
4366 echo "$as_me:4366: result: $AR" >&5
4367 echo "${ECHO_T}$AR" >&6
4369 echo "$as_me:4369: result: no" >&5
4370 echo "${ECHO_T}no" >&6
4374 if test -z "$ac_cv_prog_AR"; then
4376 # Extract the first word of "ar", so it can be a program name with args.
4377 set dummy ar; ac_word=$2
4378 echo "$as_me:4378: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 if test -n "$ac_ct_AR"; then
4384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4386 ac_save_IFS=$IFS; IFS=$ac_path_separator
4388 for ac_dir in $ac_dummy; do
4390 test -z "$ac_dir" && ac_dir=.
4391 $as_executable_p "$ac_dir/$ac_word" || continue
4392 ac_cv_prog_ac_ct_AR="ar"
4393 echo "$as_me:4393: found $ac_dir/$ac_word" >&5
4397 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4400 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4401 if test -n "$ac_ct_AR"; then
4402 echo "$as_me:4402: result: $ac_ct_AR" >&5
4403 echo "${ECHO_T}$ac_ct_AR" >&6
4405 echo "$as_me:4405: result: no" >&5
4406 echo "${ECHO_T}no" >&6
4414 echo "$as_me:4414: checking for options to update archives" >&5
4415 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4416 if test "${cf_cv_ar_flags+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 cf_cv_ar_flags=unknown
4421 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4424 # check if $ARFLAGS already contains this choice
4425 if test "x$ARFLAGS" != "x" ; then
4426 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4427 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4433 rm -f conftest.$ac_cv_objext
4436 cat >conftest.$ac_ext <<EOF
4437 #line 4437 "configure"
4438 int testdata[3] = { 123, 456, 789 };
4440 if { (eval echo "$as_me:4440: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>&5
4443 echo "$as_me:4443: \$? = $ac_status" >&5
4444 (exit $ac_status); } ; then
4445 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4446 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4447 if test -f conftest.a ; then
4448 cf_cv_ar_flags=$cf_ar_flags
4452 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4454 echo "${as_me:-configure}:4454: testing cannot compile test-program ..." 1>&5
4459 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4462 echo "$as_me:4462: result: $cf_cv_ar_flags" >&5
4463 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4465 if test -n "$ARFLAGS" ; then
4466 if test -n "$cf_cv_ar_flags" ; then
4467 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4470 ARFLAGS=$cf_cv_ar_flags
4473 echo "$as_me:4473: checking if you have specified an install-prefix" >&5
4474 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4476 # Check whether --with-install-prefix or --without-install-prefix was given.
4477 if test "${with_install_prefix+set}" = set; then
4478 withval="$with_install_prefix"
4482 (*) DESTDIR="$withval"
4486 echo "$as_me:4486: result: $DESTDIR" >&5
4487 echo "${ECHO_T}$DESTDIR" >&6
4489 ###############################################################################
4491 # If we're cross-compiling, allow the user to override the tools and their
4492 # options. The configure script is oriented toward identifying the host
4493 # compiler, etc., but we need a build compiler to generate parts of the source.
4495 if test "$cross_compiling" = yes ; then
4497 # defaults that we might want to override
4498 : ${BUILD_CFLAGS:=''}
4499 : ${BUILD_CPPFLAGS:=''}
4500 : ${BUILD_LDFLAGS:=''}
4502 : ${BUILD_EXEEXT:='$x'}
4503 : ${BUILD_OBJEXT:='o'}
4505 # Check whether --with-build-cc or --without-build-cc was given.
4506 if test "${with_build_cc+set}" = set; then
4507 withval="$with_build_cc"
4510 for ac_prog in gcc cc cl
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 echo "$as_me:4514: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$BUILD_CC"; then
4520 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4522 ac_save_IFS=$IFS; IFS=$ac_path_separator
4524 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 $as_executable_p "$ac_dir/$ac_word" || continue
4528 ac_cv_prog_BUILD_CC="$ac_prog"
4529 echo "$as_me:4529: found $ac_dir/$ac_word" >&5
4535 BUILD_CC=$ac_cv_prog_BUILD_CC
4536 if test -n "$BUILD_CC"; then
4537 echo "$as_me:4537: result: $BUILD_CC" >&5
4538 echo "${ECHO_T}$BUILD_CC" >&6
4540 echo "$as_me:4540: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4544 test -n "$BUILD_CC" && break
4548 echo "$as_me:4548: checking for native build C compiler" >&5
4549 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4550 echo "$as_me:4550: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6
4553 echo "$as_me:4553: checking for native build C preprocessor" >&5
4554 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4556 # Check whether --with-build-cpp or --without-build-cpp was given.
4557 if test "${with_build_cpp+set}" = set; then
4558 withval="$with_build_cpp"
4559 BUILD_CPP="$withval"
4561 BUILD_CPP='${BUILD_CC} -E'
4563 echo "$as_me:4563: result: $BUILD_CPP" >&5
4564 echo "${ECHO_T}$BUILD_CPP" >&6
4566 echo "$as_me:4566: checking for native build C flags" >&5
4567 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4569 # Check whether --with-build-cflags or --without-build-cflags was given.
4570 if test "${with_build_cflags+set}" = set; then
4571 withval="$with_build_cflags"
4572 BUILD_CFLAGS="$withval"
4574 echo "$as_me:4574: result: $BUILD_CFLAGS" >&5
4575 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4577 echo "$as_me:4577: checking for native build C preprocessor-flags" >&5
4578 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4580 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4581 if test "${with_build_cppflags+set}" = set; then
4582 withval="$with_build_cppflags"
4583 BUILD_CPPFLAGS="$withval"
4585 echo "$as_me:4585: result: $BUILD_CPPFLAGS" >&5
4586 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4588 echo "$as_me:4588: checking for native build linker-flags" >&5
4589 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4591 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4592 if test "${with_build_ldflags+set}" = set; then
4593 withval="$with_build_ldflags"
4594 BUILD_LDFLAGS="$withval"
4596 echo "$as_me:4596: result: $BUILD_LDFLAGS" >&5
4597 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4599 echo "$as_me:4599: checking for native build linker-libraries" >&5
4600 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4602 # Check whether --with-build-libs or --without-build-libs was given.
4603 if test "${with_build_libs+set}" = set; then
4604 withval="$with_build_libs"
4605 BUILD_LIBS="$withval"
4607 echo "$as_me:4607: result: $BUILD_LIBS" >&5
4608 echo "${ECHO_T}$BUILD_LIBS" >&6
4610 # this assumes we're on Unix.
4614 : ${BUILD_CC:='${CC}'}
4616 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4617 { { echo "$as_me:4617: error: Cross-build requires two compilers.
4618 Use --with-build-cc to specify the native compiler." >&5
4619 echo "$as_me: error: Cross-build requires two compilers.
4620 Use --with-build-cc to specify the native compiler." >&2;}
4621 { (exit 1); exit 1; }; }
4625 : ${BUILD_CC:='${CC}'}
4626 : ${BUILD_CPP:='${CPP}'}
4627 : ${BUILD_CFLAGS:='${CFLAGS}'}
4628 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4629 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4630 : ${BUILD_LIBS:='${LIBS}'}
4631 : ${BUILD_EXEEXT:='$x'}
4632 : ${BUILD_OBJEXT:='o'}
4635 ###############################################################################
4637 ### Options to allow the user to specify the set of libraries which are used.
4638 ### Use "--without-normal --with-shared" to allow the default model to be
4639 ### shared, for example.
4642 echo "$as_me:4642: checking if libtool -version-number should be used" >&5
4643 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4645 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4646 if test "${enable_libtool_version+set}" = set; then
4647 enableval="$enable_libtool_version"
4648 test "$enableval" != no && enableval=yes
4649 if test "$enableval" != "yes" ; then
4650 cf_libtool_version=no
4652 cf_libtool_version=yes
4656 cf_libtool_version=yes
4659 echo "$as_me:4659: result: $cf_libtool_version" >&5
4660 echo "${ECHO_T}$cf_libtool_version" >&6
4662 if test "$cf_libtool_version" = yes ; then
4663 LIBTOOL_VERSION="-version-number"
4665 LIBTOOL_VERSION="-version-info"
4668 { echo "$as_me:4668: WARNING: VERSION was not set" >&5
4669 echo "$as_me: WARNING: VERSION was not set" >&2;}
4672 ABI_VERSION="$VERSION"
4673 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4675 echo "${as_me:-configure}:4675: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4679 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4680 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4682 echo "${as_me:-configure}:4682: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4686 { echo "$as_me:4686: WARNING: unexpected VERSION value: $VERSION" >&5
4687 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4694 # common library maintenance symbols that are convenient for libtool scripts:
4695 LIB_CREATE='${AR} -cr'
4696 LIB_OBJECT='${OBJECTS}'
4700 # symbols used to prop libtool up to enable it to determine what it should be
4708 echo "$as_me:4708: checking if you want to build libraries with libtool" >&5
4709 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4711 # Check whether --with-libtool or --without-libtool was given.
4712 if test "${with_libtool+set}" = set; then
4713 withval="$with_libtool"
4714 with_libtool=$withval
4718 echo "$as_me:4718: result: $with_libtool" >&5
4719 echo "${ECHO_T}$with_libtool" >&6
4720 if test "$with_libtool" != "no"; then
4722 if test "$with_libtool" != "yes" ; then
4724 if test "x$prefix" != xNONE; then
4725 cf_path_syntax="$prefix"
4727 cf_path_syntax="$ac_default_prefix"
4730 case ".$with_libtool" in
4735 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4737 (.\${*prefix}*|.\${*dir}*)
4738 eval with_libtool="$with_libtool"
4739 case ".$with_libtool" in
4741 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4746 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4749 { { echo "$as_me:4749: error: expected a pathname, not \"$with_libtool\"" >&5
4750 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4751 { (exit 1); exit 1; }; }
4755 LIBTOOL=$with_libtool
4757 if test -n "$ac_tool_prefix"; then
4758 for ac_prog in libtool glibtool
4760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4762 echo "$as_me:4762: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 if test -n "$LIBTOOL"; then
4768 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4770 ac_save_IFS=$IFS; IFS=$ac_path_separator
4772 for ac_dir in $ac_dummy; do
4774 test -z "$ac_dir" && ac_dir=.
4775 $as_executable_p "$ac_dir/$ac_word" || continue
4776 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4777 echo "$as_me:4777: found $ac_dir/$ac_word" >&5
4783 LIBTOOL=$ac_cv_prog_LIBTOOL
4784 if test -n "$LIBTOOL"; then
4785 echo "$as_me:4785: result: $LIBTOOL" >&5
4786 echo "${ECHO_T}$LIBTOOL" >&6
4788 echo "$as_me:4788: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4792 test -n "$LIBTOOL" && break
4795 if test -z "$LIBTOOL"; then
4796 ac_ct_LIBTOOL=$LIBTOOL
4797 for ac_prog in libtool glibtool
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo "$as_me:4801: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$ac_ct_LIBTOOL"; then
4807 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4809 ac_save_IFS=$IFS; IFS=$ac_path_separator
4811 for ac_dir in $ac_dummy; do
4813 test -z "$ac_dir" && ac_dir=.
4814 $as_executable_p "$ac_dir/$ac_word" || continue
4815 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4816 echo "$as_me:4816: found $ac_dir/$ac_word" >&5
4822 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4823 if test -n "$ac_ct_LIBTOOL"; then
4824 echo "$as_me:4824: result: $ac_ct_LIBTOOL" >&5
4825 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4827 echo "$as_me:4827: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4831 test -n "$ac_ct_LIBTOOL" && break
4833 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4835 LIBTOOL=$ac_ct_LIBTOOL
4838 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4840 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.].*//'`
4842 cf_cv_libtool_version=
4844 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4846 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4849 unset ac_cv_prog_ac_ct_LIBTOOL
4853 if test -n "$ac_tool_prefix"; then
4854 for ac_prog in glibtool
4856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4858 echo "$as_me:4858: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 if test -n "$LIBTOOL"; then
4864 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4866 ac_save_IFS=$IFS; IFS=$ac_path_separator
4868 for ac_dir in $ac_dummy; do
4870 test -z "$ac_dir" && ac_dir=.
4871 $as_executable_p "$ac_dir/$ac_word" || continue
4872 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4873 echo "$as_me:4873: found $ac_dir/$ac_word" >&5
4879 LIBTOOL=$ac_cv_prog_LIBTOOL
4880 if test -n "$LIBTOOL"; then
4881 echo "$as_me:4881: result: $LIBTOOL" >&5
4882 echo "${ECHO_T}$LIBTOOL" >&6
4884 echo "$as_me:4884: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4888 test -n "$LIBTOOL" && break
4891 if test -z "$LIBTOOL"; then
4892 ac_ct_LIBTOOL=$LIBTOOL
4893 for ac_prog in glibtool
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:4897: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$ac_ct_LIBTOOL"; then
4903 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4905 ac_save_IFS=$IFS; IFS=$ac_path_separator
4907 for ac_dir in $ac_dummy; do
4909 test -z "$ac_dir" && ac_dir=.
4910 $as_executable_p "$ac_dir/$ac_word" || continue
4911 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4912 echo "$as_me:4912: found $ac_dir/$ac_word" >&5
4918 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4919 if test -n "$ac_ct_LIBTOOL"; then
4920 echo "$as_me:4920: result: $ac_ct_LIBTOOL" >&5
4921 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4923 echo "$as_me:4923: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4927 test -n "$ac_ct_LIBTOOL" && break
4929 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4931 LIBTOOL=$ac_ct_LIBTOOL
4934 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4936 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.].*//'`
4938 cf_cv_libtool_version=
4940 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4944 if test -z "$LIBTOOL" ; then
4945 { { echo "$as_me:4945: error: Cannot find libtool" >&5
4946 echo "$as_me: error: Cannot find libtool" >&2;}
4947 { (exit 1); exit 1; }; }
4949 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4950 LIB_OBJECT='${OBJECTS:.o=.lo}'
4952 LIB_CLEAN='${LIBTOOL} --mode=clean'
4953 LIB_COMPILE='${LIBTOOL} --mode=compile'
4954 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4955 LIB_INSTALL='${LIBTOOL} --mode=install'
4956 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4959 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4961 echo "$as_me:4961: checking version of $LIBTOOL" >&5
4962 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4964 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4966 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.].*//'`
4968 cf_cv_libtool_version=
4970 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4972 echo "$as_me:4972: result: $cf_cv_libtool_version" >&5
4973 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4974 if test -z "$cf_cv_libtool_version" ; then
4975 { { echo "$as_me:4975: error: This is not GNU libtool" >&5
4976 echo "$as_me: error: This is not GNU libtool" >&2;}
4977 { (exit 1); exit 1; }; }
4980 { { echo "$as_me:4980: error: GNU libtool has not been found" >&5
4981 echo "$as_me: error: GNU libtool has not been found" >&2;}
4982 { (exit 1); exit 1; }; }
4985 # special hack to add -no-undefined (which libtool should do for itself)
4987 case "$cf_cv_system_name" in
4988 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
4989 LT_UNDEF=-no-undefined
4993 # special hack to add --tag option for C++ compiler
4994 case $cf_cv_libtool_version in
4995 (1.[5-9]*|[2-9].[0-9.a-z]*)
4996 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4997 LIBTOOL="$LIBTOOL --tag=CC"
5000 LIBTOOL_CXX="$LIBTOOL"
5008 test -z "$LIBTOOL" && ECHO_LT=
5010 if test "$with_libtool" != "no" ; then
5012 cf_list_models="$cf_list_models libtool"
5016 echo "$as_me:5016: checking if you want to build shared libraries" >&5
5017 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5019 # Check whether --with-shared or --without-shared was given.
5020 if test "${with_shared+set}" = set; then
5021 withval="$with_shared"
5022 with_shared=$withval
5026 echo "$as_me:5026: result: $with_shared" >&5
5027 echo "${ECHO_T}$with_shared" >&6
5028 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5030 echo "$as_me:5030: checking if you want to build static libraries" >&5
5031 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5033 # Check whether --with-normal or --without-normal was given.
5034 if test "${with_normal+set}" = set; then
5035 withval="$with_normal"
5036 with_normal=$withval
5040 echo "$as_me:5040: result: $with_normal" >&5
5041 echo "${ECHO_T}$with_normal" >&6
5042 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5044 echo "$as_me:5044: checking if you want to build debug libraries" >&5
5045 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5047 # Check whether --with-debug or --without-debug was given.
5048 if test "${with_debug+set}" = set; then
5049 withval="$with_debug"
5054 echo "$as_me:5054: result: $with_debug" >&5
5055 echo "${ECHO_T}$with_debug" >&6
5056 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5058 echo "$as_me:5058: checking if you want to build profiling libraries" >&5
5059 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5061 # Check whether --with-profile or --without-profile was given.
5062 if test "${with_profile+set}" = set; then
5063 withval="$with_profile"
5064 with_profile=$withval
5068 echo "$as_me:5068: result: $with_profile" >&5
5069 echo "${ECHO_T}$with_profile" >&6
5070 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5074 if test "X$cf_with_cxx_binding" != Xno; then
5075 if test "x$with_shared" = "xyes"; then
5076 echo "$as_me:5076: checking if you want to build C++ shared libraries" >&5
5077 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5079 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5080 if test "${with_cxx_shared+set}" = set; then
5081 withval="$with_cxx_shared"
5082 with_shared_cxx=$withval
5086 echo "$as_me:5086: result: $with_shared_cxx" >&5
5087 echo "${ECHO_T}$with_shared_cxx" >&6
5091 ###############################################################################
5093 echo "$as_me:5093: checking for specified models" >&5
5094 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5095 test -z "$cf_list_models" && cf_list_models=normal
5096 test "$with_libtool" != "no" && cf_list_models=libtool
5097 echo "$as_me:5097: result: $cf_list_models" >&5
5098 echo "${ECHO_T}$cf_list_models" >&6
5100 ### Use the first model as the default, and save its suffix for use in building
5101 ### up test-applications.
5102 echo "$as_me:5102: checking for default model" >&5
5103 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5104 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5105 echo "$as_me:5105: result: $DFT_LWR_MODEL" >&5
5106 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5108 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5119 echo "$as_me:5119: checking if you want to have a library-prefix" >&5
5120 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5122 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5123 if test "${with_lib_prefix+set}" = set; then
5124 withval="$with_lib_prefix"
5125 with_lib_prefix=$withval
5127 with_lib_prefix=auto
5129 echo "$as_me:5129: result: $with_lib_prefix" >&5
5130 echo "${ECHO_T}$with_lib_prefix" >&6
5132 if test $with_lib_prefix = auto
5135 case $cf_cv_system_name in
5137 if test "$DFT_LWR_MODEL" = libtool; then
5143 (*) LIB_PREFIX='lib'
5146 cf_prefix=$LIB_PREFIX
5148 elif test $with_lib_prefix = no
5152 LIB_PREFIX=$with_lib_prefix
5157 echo "$as_me:5157: checking for PATH separator" >&5
5158 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5159 case $cf_cv_system_name in
5160 (os2*) PATH_SEPARATOR=';' ;;
5161 (*) ${PATH_SEPARATOR:=':'} ;;
5164 echo "$as_me:5164: result: $PATH_SEPARATOR" >&5
5165 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5167 ###############################################################################
5169 echo "$as_me:5169: checking if you want to build a separate terminfo library" >&5
5170 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5172 # Check whether --with-termlib or --without-termlib was given.
5173 if test "${with_termlib+set}" = set; then
5174 withval="$with_termlib"
5175 with_termlib=$withval
5179 echo "$as_me:5179: result: $with_termlib" >&5
5180 echo "${ECHO_T}$with_termlib" >&6
5182 echo "$as_me:5182: checking if you want to build a separate tic library" >&5
5183 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5185 # Check whether --with-ticlib or --without-ticlib was given.
5186 if test "${with_ticlib+set}" = set; then
5187 withval="$with_ticlib"
5188 with_ticlib=$withval
5192 echo "$as_me:5192: result: $with_ticlib" >&5
5193 echo "${ECHO_T}$with_ticlib" >&6
5195 ### Checks for special libraries, must be done up-front.
5198 echo "$as_me:5198: checking if you want to link with the GPM mouse library" >&5
5199 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5201 # Check whether --with-gpm or --without-gpm was given.
5202 if test "${with_gpm+set}" = set; then
5208 echo "$as_me:5208: result: $with_gpm" >&5
5209 echo "${ECHO_T}$with_gpm" >&6
5211 if test "$with_gpm" != no ; then
5212 echo "$as_me:5212: checking for gpm.h" >&5
5213 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5214 if test "${ac_cv_header_gpm_h+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line 5218 "configure"
5219 #include "confdefs.h"
5222 if { (eval echo "$as_me:5222: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 egrep -v '^ *\+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null; then
5230 if test -s conftest.err; then
5231 ac_cpp_err=$ac_c_preproc_warn_flag
5238 if test -z "$ac_cpp_err"; then
5239 ac_cv_header_gpm_h=yes
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_header_gpm_h=no
5245 rm -f conftest.err conftest.$ac_ext
5247 echo "$as_me:5247: result: $ac_cv_header_gpm_h" >&5
5248 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5249 if test $ac_cv_header_gpm_h = yes; then
5251 cat >>confdefs.h <<\EOF
5252 #define HAVE_GPM_H 1
5255 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5256 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5258 echo "${as_me:-configure}:5258: testing assuming we really have GPM library ..." 1>&5
5260 cat >>confdefs.h <<\EOF
5261 #define HAVE_LIBGPM 1
5266 echo "$as_me:5266: checking for Gpm_Open in -lgpm" >&5
5267 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5268 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 ac_check_lib_save_LIBS=$LIBS
5273 cat >conftest.$ac_ext <<_ACEOF
5274 #line 5274 "configure"
5275 #include "confdefs.h"
5277 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5292 rm -f conftest.$ac_objext conftest$ac_exeext
5293 if { (eval echo "$as_me:5293: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>&5
5296 echo "$as_me:5296: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -s conftest$ac_exeext'
5299 { (eval echo "$as_me:5299: \"$ac_try\"") >&5
5302 echo "$as_me:5302: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 ac_cv_lib_gpm_Gpm_Open=yes
5306 echo "$as_me: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 ac_cv_lib_gpm_Gpm_Open=no
5310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5311 LIBS=$ac_check_lib_save_LIBS
5313 echo "$as_me:5313: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5314 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5315 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5319 if test "$with_gpm" = maybe; then
5320 { echo "$as_me:5320: WARNING: Cannot link with GPM library" >&5
5321 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
5324 { { echo "$as_me:5324: error: Cannot link with GPM library" >&5
5325 echo "$as_me: error: Cannot link with GPM library" >&2;}
5326 { (exit 1); exit 1; }; }
5335 test "$with_gpm" != maybe && { echo "$as_me:5335: WARNING: Cannot find GPM header" >&5
5336 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5343 if test "$with_gpm" != no ; then
5344 echo "$as_me:5344: checking if you want to load GPM dynamically" >&5
5345 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5347 # Check whether --with-dlsym or --without-dlsym was given.
5348 if test "${with_dlsym+set}" = set; then
5349 withval="$with_dlsym"
5354 echo "$as_me:5354: result: $with_dlsym" >&5
5355 echo "${ECHO_T}$with_dlsym" >&6
5356 if test "x$with_dlsym" = xyes ; then
5359 echo "$as_me:5359: checking for dlsym" >&5
5360 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5361 if test "${ac_cv_func_dlsym+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5365 #line 5365 "configure"
5366 #include "confdefs.h"
5367 /* System header to define __stub macros and hopefully few prototypes,
5368 which can conflict with char dlsym (); below. */
5370 /* Override any gcc2 internal prototype to avoid an error. */
5374 /* We use char because int might match the return type of a gcc2
5375 builtin and then its argument prototype would still apply. */
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5388 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:5396: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5399 echo "$as_me:5399: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest$ac_exeext'
5402 { (eval echo "$as_me:5402: \"$ac_try\"") >&5
5405 echo "$as_me:5405: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_func_dlsym=yes
5409 echo "$as_me: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5415 echo "$as_me:5415: result: $ac_cv_func_dlsym" >&5
5416 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5417 if test $ac_cv_func_dlsym = yes; then
5422 echo "$as_me:5422: checking for dlsym in -ldl" >&5
5423 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5424 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_check_lib_save_LIBS=$LIBS
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line 5430 "configure"
5431 #include "confdefs.h"
5433 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5448 rm -f conftest.$ac_objext conftest$ac_exeext
5449 if { (eval echo "$as_me:5449: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>&5
5452 echo "$as_me:5452: \$? = $ac_status" >&5
5453 (exit $ac_status); } &&
5454 { ac_try='test -s conftest$ac_exeext'
5455 { (eval echo "$as_me:5455: \"$ac_try\"") >&5
5458 echo "$as_me:5458: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_lib_dl_dlsym=yes
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 ac_cv_lib_dl_dlsym=no
5466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5467 LIBS=$ac_check_lib_save_LIBS
5469 echo "$as_me:5469: result: $ac_cv_lib_dl_dlsym" >&5
5470 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5471 if test $ac_cv_lib_dl_dlsym = yes; then
5479 if test "$cf_have_dlsym" = yes ; then
5480 test "$cf_have_libdl" = yes && {
5482 # Filter out duplicates - this happens with badly-designed ".pc" files...
5483 for cf_add_1lib in $LIBS
5485 for cf_add_2lib in $cf_add_libs
5487 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5493 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5498 echo "$as_me:5498: checking whether able to link to dl*() functions" >&5
5499 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line 5501 "configure"
5502 #include "confdefs.h"
5509 if ((obj = dlopen("filename", 0)) != 0) {
5510 if (dlsym(obj, "symbolname") == 0) {
5518 rm -f conftest.$ac_objext conftest$ac_exeext
5519 if { (eval echo "$as_me:5519: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5522 echo "$as_me:5522: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -s conftest$ac_exeext'
5525 { (eval echo "$as_me:5525: \"$ac_try\"") >&5
5528 echo "$as_me:5528: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5531 cat >>confdefs.h <<\EOF
5532 #define HAVE_LIBDL 1
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 { { echo "$as_me:5539: error: Cannot link test program for libdl" >&5
5540 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5541 { (exit 1); exit 1; }; }
5543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5544 echo "$as_me:5544: result: ok" >&5
5545 echo "${ECHO_T}ok" >&6
5547 { { echo "$as_me:5547: error: Cannot find dlsym function" >&5
5548 echo "$as_me: error: Cannot find dlsym function" >&2;}
5549 { (exit 1); exit 1; }; }
5552 if test "x$with_gpm" != xyes ; then
5553 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5555 echo "${as_me:-configure}:5555: testing assuming soname for gpm is $with_gpm ..." 1>&5
5557 cf_cv_gpm_soname="$with_gpm"
5560 echo "$as_me:5560: checking for soname of gpm library" >&5
5561 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5562 if test "${cf_cv_gpm_soname+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 cf_cv_gpm_soname=unknown
5567 if test "$cross_compiling" != yes ; then
5568 cat >conftest.$ac_ext <<CF_EOF
5572 if (Gpm_Open(0,0)) Gpm_Close();
5573 ${cf_cv_main_return:-return}(0);
5576 cf_save_LIBS="$LIBS"
5579 # Filter out duplicates - this happens with badly-designed ".pc" files...
5580 for cf_add_1lib in $LIBS
5582 for cf_add_2lib in $cf_add_libs
5584 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5590 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5594 if { (eval echo "$as_me:5594: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:5597: \$? = $ac_status" >&5
5598 (exit $ac_status); } ; then
5599 if { (eval echo "$as_me:5599: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5602 echo "$as_me:5602: \$? = $ac_status" >&5
5603 (exit $ac_status); } ; then
5604 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5605 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5609 LIBS="$cf_save_LIBS"
5613 echo "$as_me:5613: result: $cf_cv_gpm_soname" >&5
5614 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5617 test "$cf_cv_gpm_soname" != "unknown" &&
5618 cat >>confdefs.h <<EOF
5619 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5622 SHLIB_LIST="-ldl $SHLIB_LIST"
5624 SHLIB_LIST="-lgpm $SHLIB_LIST"
5627 # Filter out duplicates - this happens with badly-designed ".pc" files...
5628 for cf_add_1lib in $TEST_LIBS
5630 for cf_add_2lib in $cf_add_libs
5632 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5638 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5640 TEST_LIBS="$cf_add_libs"
5644 cat >>confdefs.h <<\EOF
5645 #define HAVE_LIBGPM 1
5648 echo "$as_me:5648: checking for Gpm_Wgetch in -lgpm" >&5
5649 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5650 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_check_lib_save_LIBS=$LIBS
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line 5656 "configure"
5657 #include "confdefs.h"
5659 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (eval echo "$as_me:5675: \"$ac_link\"") >&5
5676 (eval $ac_link) 2>&5
5678 echo "$as_me:5678: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:5681: \"$ac_try\"") >&5
5684 echo "$as_me:5684: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_lib_gpm_Gpm_Wgetch=yes
5688 echo "$as_me: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5690 ac_cv_lib_gpm_Gpm_Wgetch=no
5692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5693 LIBS=$ac_check_lib_save_LIBS
5695 echo "$as_me:5695: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5696 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5697 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5699 echo "$as_me:5699: checking if GPM is weakly bound to curses library" >&5
5700 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5701 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 cf_cv_check_gpm_wgetch=unknown
5706 if test "$cross_compiling" != yes ; then
5708 cat >conftest.$ac_ext <<CF_EOF
5713 ${cf_cv_main_return:-return}(0);
5717 cf_save_LIBS="$LIBS"
5718 # This only works if we can look at the symbol table. If a shared
5719 # library is stripped for install, we cannot use that. So we're forced
5720 # to rely on the static library, noting that some packagers may not
5722 LIBS="-static -lgpm -dynamic $LIBS"
5723 if { (eval echo "$as_me:5723: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>&5
5726 echo "$as_me:5726: \$? = $ac_status" >&5
5727 (exit $ac_status); } ; then
5728 if { (eval echo "$as_me:5728: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>&5
5731 echo "$as_me:5731: \$? = $ac_status" >&5
5732 (exit $ac_status); } ; then
5733 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5734 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5735 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5739 LIBS="$cf_save_LIBS"
5743 echo "$as_me:5743: result: $cf_cv_check_gpm_wgetch" >&5
5744 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5746 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5747 { echo "$as_me:5747: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5748 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5755 # not everyone has "test -c"
5756 if test -c /dev/sysmouse 2>/dev/null ; then
5757 echo "$as_me:5757: checking if you want to use sysmouse" >&5
5758 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5760 # Check whether --with-sysmouse or --without-sysmouse was given.
5761 if test "${with_sysmouse+set}" = set; then
5762 withval="$with_sysmouse"
5763 cf_with_sysmouse=$withval
5765 cf_with_sysmouse=maybe
5767 if test "$cf_with_sysmouse" != no ; then
5768 cat >conftest.$ac_ext <<_ACEOF
5769 #line 5769 "configure"
5770 #include "confdefs.h"
5772 #include <osreldate.h>
5773 #if (__FreeBSD_version >= 400017)
5774 #include <sys/consio.h>
5775 #include <sys/fbio.h>
5777 #include <machine/console.h>
5784 struct mouse_info the_mouse;
5785 ioctl(0, CONS_MOUSECTL, &the_mouse);
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:5792: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>&5
5795 echo "$as_me:5795: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:5798: \"$ac_try\"") >&5
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 cf_with_sysmouse=yes
5805 echo "$as_me: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5809 rm -f conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:5811: result: $cf_with_sysmouse" >&5
5812 echo "${ECHO_T}$cf_with_sysmouse" >&6
5813 test "$cf_with_sysmouse" = yes &&
5814 cat >>confdefs.h <<\EOF
5815 #define USE_SYSMOUSE 1
5820 if test X"$CC_G_OPT" = X"" ; then
5822 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5825 if test X"$CXX_G_OPT" = X"" ; then
5827 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5830 echo "$as_me:5830: checking for default loader flags" >&5
5831 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5832 case $DFT_LWR_MODEL in
5833 (libtool) LD_MODEL='' ;;
5834 (normal) LD_MODEL='' ;;
5835 (debug) LD_MODEL=$CC_G_OPT ;;
5836 (profile) LD_MODEL='-pg';;
5837 (shared) LD_MODEL='' ;;
5839 echo "$as_me:5839: result: $LD_MODEL" >&5
5840 echo "${ECHO_T}$LD_MODEL" >&6
5842 case $DFT_LWR_MODEL in
5845 echo "$as_me:5845: checking if rpath option should be used" >&5
5846 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5848 # Check whether --enable-rpath or --disable-rpath was given.
5849 if test "${enable_rpath+set}" = set; then
5850 enableval="$enable_rpath"
5851 cf_cv_enable_rpath=$enableval
5853 cf_cv_enable_rpath=no
5855 echo "$as_me:5855: result: $cf_cv_enable_rpath" >&5
5856 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5858 echo "$as_me:5858: checking if shared libraries should be relinked during install" >&5
5859 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5861 # Check whether --enable-relink or --disable-relink was given.
5862 if test "${enable_relink+set}" = set; then
5863 enableval="$enable_relink"
5864 cf_cv_do_relink=$enableval
5868 echo "$as_me:5868: result: $cf_cv_do_relink" >&5
5869 echo "${ECHO_T}$cf_cv_do_relink" >&6
5873 # we will build libraries one-level down.
5877 echo "$as_me:5877: checking for an rpath option" >&5
5878 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5879 case $cf_cv_system_name in
5881 if test "$GCC" = yes; then
5882 LD_RPATH_OPT="-Wl,-rpath,"
5884 LD_RPATH_OPT="-rpath "
5887 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5888 LD_RPATH_OPT="-Wl,-rpath,"
5890 (openbsd[2-9].*|mirbsd*)
5891 LD_RPATH_OPT="-Wl,-rpath,"
5894 LD_RPATH_OPT="-rpath "
5897 LD_RPATH_OPT="-Wl,-rpath,"
5900 LD_RPATH_OPT="-rpath "
5908 echo "$as_me:5908: result: $LD_RPATH_OPT" >&5
5909 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5911 case "x$LD_RPATH_OPT" in
5913 echo "$as_me:5913: checking if we need a space after rpath option" >&5
5914 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5915 cf_save_LIBS="$LIBS"
5917 cf_add_libs="${LD_RPATH_OPT}$libdir"
5918 # Filter out duplicates - this happens with badly-designed ".pc" files...
5919 for cf_add_1lib in $LIBS
5921 for cf_add_2lib in $cf_add_libs
5923 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5929 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5933 cat >conftest.$ac_ext <<_ACEOF
5934 #line 5934 "configure"
5935 #include "confdefs.h"
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:5946: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>&5
5949 echo "$as_me:5949: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -s conftest$ac_exeext'
5952 { (eval echo "$as_me:5952: \"$ac_try\"") >&5
5955 echo "$as_me:5955: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5959 echo "$as_me: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964 LIBS="$cf_save_LIBS"
5965 echo "$as_me:5965: result: $cf_rpath_space" >&5
5966 echo "${ECHO_T}$cf_rpath_space" >&6
5967 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5975 INSTALL_LIB="-m 644"
5976 : ${rel_builddir:=.}
5982 cf_cv_do_symlinks=no
5984 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5986 echo "$as_me:5986: checking if release/abi version should be used for shared libs" >&5
5987 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5989 # Check whether --with-shlib-version or --without-shlib-version was given.
5990 if test "${with_shlib_version+set}" = set; then
5991 withval="$with_shlib_version"
5992 test -z "$withval" && withval=auto
5995 cf_cv_shlib_version=auto
5998 cf_cv_shlib_version=$withval
6001 echo "$as_me:6001: result: $withval" >&5
6002 echo "${ECHO_T}$withval" >&6
6003 { { echo "$as_me:6003: error: option value must be one of: rel, abi, or auto" >&5
6004 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6005 { (exit 1); exit 1; }; }
6010 cf_cv_shlib_version=auto
6012 echo "$as_me:6012: result: $cf_cv_shlib_version" >&5
6013 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6018 # Some less-capable ports of gcc support only -fpic
6020 if test "$GCC" = yes
6022 echo "$as_me:6022: checking which $CC option to use" >&5
6023 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6024 cf_save_CFLAGS="$CFLAGS"
6025 for CC_SHARED_OPTS in -fPIC -fpic ''
6027 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6028 cat >conftest.$ac_ext <<_ACEOF
6029 #line 6029 "configure"
6030 #include "confdefs.h"
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:6041: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>&5
6044 echo "$as_me:6044: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:6047: \"$ac_try\"") >&5
6050 echo "$as_me:6050: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6054 echo "$as_me: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 rm -f conftest.$ac_objext conftest.$ac_ext
6059 echo "$as_me:6059: result: $CC_SHARED_OPTS" >&5
6060 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6061 CFLAGS="$cf_save_CFLAGS"
6064 cf_cv_shlib_version_infix=no
6066 case $cf_cv_system_name in
6067 (aix4.3-9*|aix[5-7]*)
6068 if test "$GCC" = yes; then
6069 CC_SHARED_OPTS='-Wl,-brtl'
6070 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6072 CC_SHARED_OPTS='-brtl'
6073 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6074 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6078 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6082 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6083 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6084 cf_cv_shlib_version=cygdll
6085 cf_cv_shlib_version_infix=cygdll
6088 cat >mk_shared_lib.sh <<-CF_EOF
6091 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6094 Linking shared library
6095 ** SHARED_LIB \$SHARED_LIB
6096 ** IMPORT_LIB \$IMPORT_LIB
6098 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6100 chmod +x mk_shared_lib.sh
6104 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6105 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6106 cf_cv_shlib_version=msysdll
6107 cf_cv_shlib_version_infix=msysdll
6110 cat >mk_shared_lib.sh <<-CF_EOF
6113 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6116 Linking shared library
6117 ** SHARED_LIB \$SHARED_LIB
6118 ** IMPORT_LIB \$IMPORT_LIB
6120 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6122 chmod +x mk_shared_lib.sh
6125 cf_try_cflags="no-cpp-precomp"
6126 CC_SHARED_OPTS="-dynamic"
6127 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6128 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6129 cf_cv_shlib_version_infix=yes
6130 echo "$as_me:6130: checking if ld -search_paths_first works" >&5
6131 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6132 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 cf_save_LDFLAGS=$LDFLAGS
6137 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line 6139 "configure"
6140 #include "confdefs.h"
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:6151: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:6154: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:6157: \"$ac_try\"") >&5
6160 echo "$as_me:6160: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 cf_cv_ldflags_search_paths_first=yes
6164 echo "$as_me: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6166 cf_cv_ldflags_search_paths_first=no
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 LDFLAGS=$cf_save_LDFLAGS
6171 echo "$as_me:6171: result: $cf_cv_ldflags_search_paths_first" >&5
6172 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6173 if test $cf_cv_ldflags_search_paths_first = yes; then
6174 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6178 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6179 if test "$GCC" != yes; then
6182 MK_SHARED_LIB='${LD} -b -o $@'
6183 INSTALL_LIB="-m 555"
6186 # (tested with gcc 2.7.2 -- I don't have c89)
6187 if test "$GCC" = yes; then
6188 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6191 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6193 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6194 # HP-UX shared libraries must be executable, and should be
6195 # readonly to exploit a quirk in the memory manager.
6196 INSTALL_LIB="-m 555"
6199 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6200 if test "$cf_cv_shlib_version" = rel; then
6201 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6203 cf_shared_soname='`basename `'
6206 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6209 if test "$cf_cv_enable_rpath" = yes ; then
6210 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6212 # tested with IRIX 5.2 and 'cc'.
6213 if test "$GCC" != yes; then
6214 CC_SHARED_OPTS='-KPIC'
6215 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6217 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6219 cf_cv_rm_so_locs=yes
6221 (linux*|gnu*|k*bsd*-gnu)
6222 if test "$DFT_LWR_MODEL" = "shared" ; then
6223 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6224 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6226 if test "$cf_cv_enable_rpath" = yes ; then
6227 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6230 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6231 if test "$cf_cv_shlib_version" = rel; then
6232 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6234 cf_cv_shared_soname='`basename $@`'
6237 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6240 cf_cv_shlib_version=mingw
6241 cf_cv_shlib_version_infix=mingw
6244 if test "$DFT_LWR_MODEL" = "shared" ; then
6245 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6246 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6247 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6250 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6251 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6252 cat >mk_shared_lib.sh <<-CF_EOF
6255 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6258 Linking shared library
6259 ** SHARED_LIB \$SHARED_LIB
6260 ** IMPORT_LIB \$IMPORT_LIB
6262 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6264 chmod +x mk_shared_lib.sh
6266 (openbsd[2-9].*|mirbsd*)
6267 if test "$DFT_LWR_MODEL" = "shared" ; then
6268 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6269 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6271 if test "$cf_cv_enable_rpath" = yes ; then
6272 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6274 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6276 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6277 if test "$cf_cv_shlib_version" = rel; then
6278 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6280 cf_cv_shared_soname='`basename $@`'
6283 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6285 (nto-qnx*|openbsd*|freebsd[12].*)
6286 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6287 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6288 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6290 (dragonfly*|freebsd*)
6291 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6292 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6293 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6294 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6295 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6298 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6299 if test "$cf_cv_shlib_version" = rel; then
6300 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6302 cf_cv_shared_soname='`basename $@`'
6305 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6308 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6309 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6310 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6311 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6312 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6313 if test "$cf_cv_shlib_version" = auto; then
6314 if test -f /usr/libexec/ld.elf_so; then
6315 cf_cv_shlib_version=abi
6317 cf_cv_shlib_version=rel
6321 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6322 if test "$cf_cv_shlib_version" = rel; then
6323 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6325 cf_cv_shared_soname='`basename $@`'
6328 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6330 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6334 # tested with OSF/1 V3.2 and 'cc'
6335 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6336 # link with shared libs).
6337 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6340 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6343 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6344 if test "$DFT_LWR_MODEL" = "shared" ; then
6345 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6346 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6348 cf_cv_rm_so_locs=yes
6350 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6351 # tested with osr5.0.5
6352 if test "$GCC" != yes; then
6353 CC_SHARED_OPTS='-belf -KPIC'
6355 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6356 if test "$cf_cv_enable_rpath" = yes ; then
6357 # only way is to set LD_RUN_PATH but no switch for it
6360 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6361 LINK_PROGS='LD_RUN_PATH=${libdir}'
6362 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6365 # tested with SunOS 4.1.1 and gcc 2.7.0
6366 if test "$GCC" != yes; then
6367 CC_SHARED_OPTS='-KPIC'
6369 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6370 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6373 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6374 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6375 if test "$DFT_LWR_MODEL" = "shared" ; then
6376 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6377 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6379 if test "$cf_cv_enable_rpath" = yes ; then
6380 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6383 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6384 if test "$cf_cv_shlib_version" = rel; then
6385 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6387 cf_cv_shared_soname='`basename $@`'
6390 if test "$GCC" != yes; then
6391 cf_save_CFLAGS="$CFLAGS"
6392 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6394 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line 6396 "configure"
6397 #include "confdefs.h"
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:6408: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>&5
6411 echo "$as_me:6411: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -s conftest.$ac_objext'
6414 { (eval echo "$as_me:6414: \"$ac_try\"") >&5
6417 echo "$as_me:6417: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6421 echo "$as_me: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6424 rm -f conftest.$ac_objext conftest.$ac_ext
6426 CFLAGS="$cf_save_CFLAGS"
6427 CC_SHARED_OPTS=$cf_shared_opts
6428 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6430 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6433 (sysv5uw7*|unix_sv*)
6434 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6435 if test "$GCC" != yes; then
6436 CC_SHARED_OPTS='-KPIC'
6438 MK_SHARED_LIB='${LD} -d y -G -o $@'
6441 CC_SHARED_OPTS='unknown'
6442 MK_SHARED_LIB='echo unknown'
6446 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6447 case "$cf_cv_shlib_version" in
6449 case "$MK_SHARED_LIB" in
6451 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6454 { echo "$as_me:6454: WARNING: ignored --with-shlib-version" >&5
6455 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6461 if test -n "$cf_try_cflags"
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6464 "${as_me:-configure}"
6466 int main(int argc, char *argv[])
6469 return (argv[argc-1] == 0) ;
6472 cf_save_CFLAGS="$CFLAGS"
6473 for cf_opt in $cf_try_cflags
6475 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6476 echo "$as_me:6476: checking if CFLAGS option -$cf_opt works" >&5
6477 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6478 if { (eval echo "$as_me:6478: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>&5
6481 echo "$as_me:6481: \$? = $ac_status" >&5
6482 (exit $ac_status); }; then
6483 echo "$as_me:6483: result: yes" >&5
6484 echo "${ECHO_T}yes" >&6
6485 cf_save_CFLAGS="$CFLAGS"
6487 echo "$as_me:6487: result: no" >&5
6488 echo "${ECHO_T}no" >&6
6491 CFLAGS="$cf_save_CFLAGS"
6494 # RPATH_LIST is a colon-separated list of directories
6495 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6496 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6498 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6500 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6502 echo "${as_me:-configure}:6502: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6504 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6506 echo "${as_me:-configure}:6506: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6508 for model in $cf_list_models; do
6512 echo "$as_me:6512: checking for additional libtool options" >&5
6513 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6515 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6516 if test "${with_libtool_opts+set}" = set; then
6517 withval="$with_libtool_opts"
6518 with_libtool_opts=$withval
6520 with_libtool_opts=no
6522 echo "$as_me:6522: result: $with_libtool_opts" >&5
6523 echo "${ECHO_T}$with_libtool_opts" >&6
6525 case .$with_libtool_opts in
6529 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6533 echo "$as_me:6533: checking if exported-symbols file should be used" >&5
6534 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6536 # Check whether --with-export-syms or --without-export-syms was given.
6537 if test "${with_export_syms+set}" = set; then
6538 withval="$with_export_syms"
6539 with_export_syms=$withval
6543 if test "x$with_export_syms" = xyes
6545 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6548 echo "$as_me:6548: result: $with_export_syms" >&5
6549 echo "${ECHO_T}$with_export_syms" >&6
6550 if test "x$with_export_syms" != xno
6552 EXPORT_SYMS="-export-symbols $with_export_syms"
6558 if test "$CC_SHARED_OPTS" = "unknown"; then
6559 { { echo "$as_me:6559: error: Shared libraries are not supported in this version" >&5
6560 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6561 { (exit 1); exit 1; }; }
6563 # workaround for inept transition to PIE vs PIC...
6564 echo "$as_me:6564: checking if current CFLAGS link properly" >&5
6565 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line 6567 "configure"
6568 #include "confdefs.h"
6573 printf("Hello work\n");
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:6579: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6582 echo "$as_me:6582: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -s conftest$ac_exeext'
6585 { (eval echo "$as_me:6585: \"$ac_try\"") >&5
6588 echo "$as_me:6588: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6592 echo "$as_me: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6597 echo "$as_me:6597: result: $cf_cflags_work" >&5
6598 echo "${ECHO_T}$cf_cflags_work" >&6
6599 if test "$cf_cflags_work" = no
6601 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6603 echo "${as_me:-configure}:6603: testing try to work around by appending shared-options ..." 1>&5
6605 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6608 echo "$as_me:6608: checking if versioned-symbols file should be used" >&5
6609 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6611 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6612 if test "${with_versioned_syms+set}" = set; then
6613 withval="$with_versioned_syms"
6614 with_versioned_syms=$withval
6616 with_versioned_syms=no
6618 if test "x$with_versioned_syms" = xyes
6620 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6623 echo "$as_me:6623: result: $with_versioned_syms" >&5
6624 echo "${ECHO_T}$with_versioned_syms" >&6
6630 if test "x$with_versioned_syms" != xno
6632 RESULTING_SYMS=$with_versioned_syms
6633 case "x$MK_SHARED_LIB" in
6635 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6636 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6637 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6639 echo "${as_me:-configure}:6639: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6643 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6644 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6645 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6647 echo "${as_me:-configure}:6647: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6651 { echo "$as_me:6651: WARNING: this system does not support versioned-symbols" >&5
6652 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6656 # Linux ld can selectively override scope, e.g., of symbols beginning with
6657 # "_" by first declaring some as global, and then using a wildcard to
6658 # declare the others as local. Some other loaders cannot do this. Check
6659 # by constructing a (very) simple shared library and inspecting its
6661 if test "x$VERSIONED_SYMS" != "x"
6663 echo "$as_me:6663: checking if wildcards can be used to selectively omit symbols" >&5
6664 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6670 cat >conftest.ver <<EOF
6699 cat >conftest.$ac_ext <<EOF
6700 #line 6700 "configure"
6701 int _ismissing(void) { return 1; }
6702 int _localf1(void) { return 1; }
6703 int _localf2(void) { return 2; }
6704 int globalf1(void) { return 1; }
6705 int globalf2(void) { return 2; }
6706 int _sublocalf1(void) { return 1; }
6707 int _sublocalf2(void) { return 2; }
6708 int subglobalf1(void) { return 1; }
6709 int subglobalf2(void) { return 2; }
6711 cat >conftest.mk <<EOF
6714 CPPFLAGS=${CPPFLAGS}
6717 VERSIONED_SYMS=${VERSIONED_SYMS}
6718 RESULTING_SYMS=conftest.ver
6719 MK_SHARED_LIB=${MK_SHARED_LIB}
6720 conftest.so: conftest.$ac_cv_objext
6721 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6724 # compile source, make library
6725 if make -f conftest.mk 2>&5 >/dev/null
6727 # test for missing symbol in either Data or Text section
6728 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6729 test -n "$cf_missing" && WILDCARD_SYMS=yes
6731 echo "$as_me:6731: result: $WILDCARD_SYMS" >&5
6732 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6741 # pretend that ncurses==ncursesw==ncursest
6742 echo "$as_me:6742: checking if you want to disable library suffixes" >&5
6743 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6745 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6746 if test "${enable_lib_suffixes+set}" = set; then
6747 enableval="$enable_lib_suffixes"
6748 test "$enableval" != no && enableval=yes
6749 if test "$enableval" != "yes" ; then
6750 disable_lib_suffixes=yes
6752 disable_lib_suffixes=no
6756 disable_lib_suffixes=no
6759 echo "$as_me:6759: result: $disable_lib_suffixes" >&5
6760 echo "${ECHO_T}$disable_lib_suffixes" >&6
6762 ### If we're building with rpath, try to link non-standard libs that way too.
6763 if test "$DFT_LWR_MODEL" = "shared"; then
6765 echo "$as_me:6765: checking if rpath-hack should be disabled" >&5
6766 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6768 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6769 if test "${enable_rpath_hack+set}" = set; then
6770 enableval="$enable_rpath_hack"
6771 test "$enableval" != no && enableval=yes
6772 if test "$enableval" != "yes" ; then
6773 cf_disable_rpath_hack=yes
6775 cf_disable_rpath_hack=no
6779 cf_disable_rpath_hack=no
6782 echo "$as_me:6782: result: $cf_disable_rpath_hack" >&5
6783 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6784 if test "$cf_disable_rpath_hack" = no ; then
6786 echo "$as_me:6786: checking for updated LDFLAGS" >&5
6787 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6788 if test -n "$LD_RPATH_OPT" ; then
6789 echo "$as_me:6789: result: maybe" >&5
6790 echo "${ECHO_T}maybe" >&6
6794 # Extract the first word of "$ac_prog", so it can be a program name with args.
6795 set dummy $ac_prog; ac_word=$2
6796 echo "$as_me:6796: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6798 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 if test -n "$cf_ldd_prog"; then
6802 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6804 ac_save_IFS=$IFS; IFS=$ac_path_separator
6806 for ac_dir in $ac_dummy; do
6808 test -z "$ac_dir" && ac_dir=.
6809 $as_executable_p "$ac_dir/$ac_word" || continue
6810 ac_cv_prog_cf_ldd_prog="$ac_prog"
6811 echo "$as_me:6811: found $ac_dir/$ac_word" >&5
6817 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6818 if test -n "$cf_ldd_prog"; then
6819 echo "$as_me:6819: result: $cf_ldd_prog" >&5
6820 echo "${ECHO_T}$cf_ldd_prog" >&6
6822 echo "$as_me:6822: result: no" >&5
6823 echo "${ECHO_T}no" >&6
6826 test -n "$cf_ldd_prog" && break
6828 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6830 cf_rpath_list="/usr/lib /lib"
6831 if test "$cf_ldd_prog" != no
6835 cat >conftest.$ac_ext <<_ACEOF
6836 #line 6836 "configure"
6837 #include "confdefs.h"
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:6848: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>&5
6851 echo "$as_me:6851: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:6854: \"$ac_try\"") >&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6860 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6862 echo "$as_me: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6867 # If we passed the link-test, but get a "not found" on a given library,
6868 # this could be due to inept reconfiguration of gcc to make it only
6869 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6870 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6871 # /usr/local libraries.
6872 if test -n "$cf_rpath_oops"
6874 for cf_rpath_src in $cf_rpath_oops
6876 for cf_rpath_dir in \
6881 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6883 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6885 echo "${as_me:-configure}:6885: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6887 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6895 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6897 echo "${as_me:-configure}:6897: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6899 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6901 echo "${as_me:-configure}:6901: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6904 for cf_rpath_src in $LDFLAGS
6906 case $cf_rpath_src in
6909 # check if this refers to a directory which we will ignore
6911 if test -n "$cf_rpath_list"
6913 for cf_rpath_item in $cf_rpath_list
6915 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6923 if test "$cf_rpath_skip" = no
6925 # transform the option
6926 if test "$LD_RPATH_OPT" = "-R " ; then
6927 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6929 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6932 # if we have not already added this, add it now
6933 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6934 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6936 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6938 echo "${as_me:-configure}:6938: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6940 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6945 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6947 LDFLAGS=$cf_rpath_dst
6949 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6951 echo "${as_me:-configure}:6951: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6953 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6955 echo "${as_me:-configure}:6955: testing ...checking LIBS $LIBS ..." 1>&5
6958 for cf_rpath_src in $LIBS
6960 case $cf_rpath_src in
6963 # check if this refers to a directory which we will ignore
6965 if test -n "$cf_rpath_list"
6967 for cf_rpath_item in $cf_rpath_list
6969 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6977 if test "$cf_rpath_skip" = no
6979 # transform the option
6980 if test "$LD_RPATH_OPT" = "-R " ; then
6981 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6983 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6986 # if we have not already added this, add it now
6987 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6988 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6990 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6992 echo "${as_me:-configure}:6992: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6994 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6999 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7003 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7005 echo "${as_me:-configure}:7005: testing ...checked LIBS $LIBS ..." 1>&5
7007 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7009 echo "${as_me:-configure}:7009: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7012 echo "$as_me:7012: result: no" >&5
7013 echo "${ECHO_T}no" >&6
7020 ###############################################################################
7022 ### use option --with-extra-suffix to append suffix to headers and libraries
7023 echo "$as_me:7023: checking if you wish to append extra suffix to header/library paths" >&5
7024 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7027 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7028 if test "${with_extra_suffix+set}" = set; then
7029 withval="$with_extra_suffix"
7034 EXTRA_SUFFIX=$cf_cv_abi_version
7037 EXTRA_SUFFIX=$withval
7042 echo "$as_me:7042: result: $EXTRA_SUFFIX" >&5
7043 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7045 ### use option --disable-overwrite to leave out the link to -lcurses
7046 echo "$as_me:7046: checking if you wish to install ncurses overwriting curses" >&5
7047 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7049 # Check whether --enable-overwrite or --disable-overwrite was given.
7050 if test "${enable_overwrite+set}" = set; then
7051 enableval="$enable_overwrite"
7052 with_overwrite=$enableval
7054 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7056 echo "$as_me:7056: result: $with_overwrite" >&5
7057 echo "${ECHO_T}$with_overwrite" >&6
7059 echo "$as_me:7059: checking if external terminfo-database is used" >&5
7060 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7062 # Check whether --enable-database or --disable-database was given.
7063 if test "${enable_database+set}" = set; then
7064 enableval="$enable_database"
7065 use_database=$enableval
7069 echo "$as_me:7069: result: $use_database" >&5
7070 echo "${ECHO_T}$use_database" >&6
7074 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7077 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7081 NCURSES_USE_DATABASE=0
7082 if test "$use_database" != no ; then
7083 NCURSES_USE_DATABASE=1
7085 echo "$as_me:7085: checking which terminfo source-file will be installed" >&5
7086 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7088 # Check whether --with-database or --without-database was given.
7089 if test "${with_database+set}" = set; then
7090 withval="$with_database"
7091 TERMINFO_SRC=$withval
7093 echo "$as_me:7093: result: $TERMINFO_SRC" >&5
7094 echo "${ECHO_T}$TERMINFO_SRC" >&6
7096 echo "$as_me:7096: checking whether to use hashed database instead of directory/tree" >&5
7097 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7099 # Check whether --with-hashed-db or --without-hashed-db was given.
7100 if test "${with_hashed_db+set}" = set; then
7101 withval="$with_hashed_db"
7106 echo "$as_me:7106: result: $with_hashed_db" >&5
7107 echo "${ECHO_T}$with_hashed_db" >&6
7112 echo "$as_me:7112: checking for list of fallback descriptions" >&5
7113 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7115 # Check whether --with-fallbacks or --without-fallbacks was given.
7116 if test "${with_fallbacks+set}" = set; then
7117 withval="$with_fallbacks"
7118 with_fallback=$withval
7122 echo "$as_me:7122: result: $with_fallback" >&5
7123 echo "${ECHO_T}$with_fallback" >&6
7124 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7126 echo "$as_me:7126: checking if you want modern xterm or antique" >&5
7127 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7129 # Check whether --with-xterm-new or --without-xterm-new was given.
7130 if test "${with_xterm_new+set}" = set; then
7131 withval="$with_xterm_new"
7132 with_xterm_new=$withval
7136 case $with_xterm_new in
7137 (no) with_xterm_new=xterm-old;;
7138 (*) with_xterm_new=xterm-new;;
7140 echo "$as_me:7140: result: $with_xterm_new" >&5
7141 echo "${ECHO_T}$with_xterm_new" >&6
7142 WHICH_XTERM=$with_xterm_new
7144 echo "$as_me:7144: checking if xterm backspace sends BS or DEL" >&5
7145 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7147 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7148 if test "${with_xterm_kbs+set}" = set; then
7149 withval="$with_xterm_kbs"
7150 with_xterm_kbs=$withval
7154 case x$with_xterm_kbs in
7155 (xyes|xno|xBS|xbs|x8)
7162 with_xterm_kbs=$withval
7165 echo "$as_me:7165: result: $with_xterm_kbs" >&5
7166 echo "${ECHO_T}$with_xterm_kbs" >&6
7167 XTERM_KBS=$with_xterm_kbs
7170 if test "$use_database" = no ; then
7171 TERMINFO="${datadir}/terminfo"
7175 echo "$as_me:7175: checking for list of terminfo directories" >&5
7176 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7178 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7179 if test "${with_terminfo_dirs+set}" = set; then
7180 withval="$with_terminfo_dirs"
7183 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7185 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7187 for cf_src_path in $withval
7190 if test "x$prefix" != xNONE; then
7191 cf_path_syntax="$prefix"
7193 cf_path_syntax="$ac_default_prefix"
7196 case ".$cf_src_path" in
7201 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7203 (.\${*prefix}*|.\${*dir}*)
7204 eval cf_src_path="$cf_src_path"
7205 case ".$cf_src_path" in
7207 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7212 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7215 { { echo "$as_me:7215: error: expected a pathname, not \"$cf_src_path\"" >&5
7216 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7217 { (exit 1); exit 1; }; }
7221 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7222 cf_dst_path="${cf_dst_path}${cf_src_path}"
7226 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7227 # so we have to check/work around. We do prefer the result of "eval"...
7228 eval cf_dst_eval="$cf_dst_path"
7229 case "x$cf_dst_eval" in
7231 TERMINFO_DIRS=$cf_dst_path
7234 TERMINFO_DIRS="$cf_dst_eval"
7238 echo "$as_me:7238: result: $TERMINFO_DIRS" >&5
7239 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7240 test -n "$TERMINFO_DIRS" &&
7241 cat >>confdefs.h <<EOF
7242 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7245 echo "$as_me:7245: checking for default terminfo directory" >&5
7246 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7248 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7249 if test "${with_default_terminfo_dir+set}" = set; then
7250 withval="$with_default_terminfo_dir"
7253 withval="${TERMINFO:-${datadir}/terminfo}"
7254 fi; if test -n "${datadir}/terminfo" ; then
7256 if test "x$prefix" != xNONE; then
7257 cf_path_syntax="$prefix"
7259 cf_path_syntax="$ac_default_prefix"
7267 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7269 (.\${*prefix}*|.\${*dir}*)
7270 eval withval="$withval"
7273 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7278 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7281 { { echo "$as_me:7281: error: expected a pathname, not \"$withval\"" >&5
7282 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7283 { (exit 1); exit 1; }; }
7288 eval TERMINFO="$withval"
7290 echo "$as_me:7290: result: $TERMINFO" >&5
7291 echo "${ECHO_T}$TERMINFO" >&6
7293 cat >>confdefs.h <<EOF
7294 #define TERMINFO "$TERMINFO"
7299 ### use option --disable-big-core to make tic run on small machines
7300 ### We need 4Mb, check if we can allocate 50% more than that.
7301 echo "$as_me:7301: checking if big-core option selected" >&5
7302 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7304 # Check whether --enable-big-core or --disable-big-core was given.
7305 if test "${enable_big_core+set}" = set; then
7306 enableval="$enable_big_core"
7307 with_big_core=$enableval
7309 if test "$cross_compiling" = yes; then
7312 cat >conftest.$ac_ext <<_ACEOF
7313 #line 7313 "configure"
7314 #include "confdefs.h"
7319 unsigned long n = 6000000L;
7320 char *s = malloc(n);
7323 ${cf_cv_main_return:-return}(s == 0);
7326 rm -f conftest$ac_exeext
7327 if { (eval echo "$as_me:7327: \"$ac_link\"") >&5
7328 (eval $ac_link) 2>&5
7330 echo "$as_me:7330: \$? = $ac_status" >&5
7331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7332 { (eval echo "$as_me:7332: \"$ac_try\"") >&5
7335 echo "$as_me:7335: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7339 echo "$as_me: program exited with status $ac_status" >&5
7340 echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:7347: result: $with_big_core" >&5
7348 echo "${ECHO_T}$with_big_core" >&6
7349 test "x$with_big_core" = "xyes" &&
7350 cat >>confdefs.h <<\EOF
7351 #define HAVE_BIG_CORE 1
7354 ### ISO C only guarantees 512-char strings, we have tables which load faster
7355 ### when constructed using "big" strings. More than the C compiler, the awk
7356 ### program is a limit on most vendor UNIX systems. Check that we can build.
7357 echo "$as_me:7357: checking if big-strings option selected" >&5
7358 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7360 # Check whether --enable-big-strings or --disable-big-strings was given.
7361 if test "${enable_big_strings+set}" = set; then
7362 enableval="$enable_big_strings"
7363 with_big_strings=$enableval
7368 eval with_big_strings=no
7371 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7372 | $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
7373 eval with_big_strings=yes
7375 eval with_big_strings=no
7381 echo "$as_me:7381: result: $with_big_strings" >&5
7382 echo "${ECHO_T}$with_big_strings" >&6
7385 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7387 ### use option --enable-termcap to compile in the termcap fallback support
7388 echo "$as_me:7388: checking if you want termcap-fallback support" >&5
7389 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7391 # Check whether --enable-termcap or --disable-termcap was given.
7392 if test "${enable_termcap+set}" = set; then
7393 enableval="$enable_termcap"
7394 with_termcap=$enableval
7398 echo "$as_me:7398: result: $with_termcap" >&5
7399 echo "${ECHO_T}$with_termcap" >&6
7401 NCURSES_USE_TERMCAP=0
7402 if test "x$with_termcap" != "xyes" ; then
7403 if test "$use_database" = no ; then
7404 if test -z "$with_fallback" ; then
7405 { { echo "$as_me:7405: error: You have disabled the database w/o specifying fallbacks" >&5
7406 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7407 { (exit 1); exit 1; }; }
7411 cat >>confdefs.h <<\EOF
7412 #define PURE_TERMINFO 1
7417 if test "$with_ticlib" != no ; then
7418 { { echo "$as_me:7418: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7419 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7420 { (exit 1); exit 1; }; }
7423 NCURSES_USE_TERMCAP=1
7424 echo "$as_me:7424: checking for list of termcap files" >&5
7425 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7427 # Check whether --with-termpath or --without-termpath was given.
7428 if test "${with_termpath+set}" = set; then
7429 withval="$with_termpath"
7432 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7434 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7436 for cf_src_path in $withval
7439 if test "x$prefix" != xNONE; then
7440 cf_path_syntax="$prefix"
7442 cf_path_syntax="$ac_default_prefix"
7445 case ".$cf_src_path" in
7450 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7452 (.\${*prefix}*|.\${*dir}*)
7453 eval cf_src_path="$cf_src_path"
7454 case ".$cf_src_path" in
7456 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7461 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7464 { { echo "$as_me:7464: error: expected a pathname, not \"$cf_src_path\"" >&5
7465 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7466 { (exit 1); exit 1; }; }
7470 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7471 cf_dst_path="${cf_dst_path}${cf_src_path}"
7475 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7476 # so we have to check/work around. We do prefer the result of "eval"...
7477 eval cf_dst_eval="$cf_dst_path"
7478 case "x$cf_dst_eval" in
7480 TERMPATH=$cf_dst_path
7483 TERMPATH="$cf_dst_eval"
7487 echo "$as_me:7487: result: $TERMPATH" >&5
7488 echo "${ECHO_T}$TERMPATH" >&6
7489 test -n "$TERMPATH" &&
7490 cat >>confdefs.h <<EOF
7491 #define TERMPATH "$TERMPATH"
7494 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7495 echo "$as_me:7495: checking if fast termcap-loader is needed" >&5
7496 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7498 # Check whether --enable-getcap or --disable-getcap was given.
7499 if test "${enable_getcap+set}" = set; then
7500 enableval="$enable_getcap"
7501 with_getcap=$enableval
7505 echo "$as_me:7505: result: $with_getcap" >&5
7506 echo "${ECHO_T}$with_getcap" >&6
7507 test "x$with_getcap" = "xyes" &&
7508 cat >>confdefs.h <<\EOF
7509 #define USE_GETCAP 1
7512 echo "$as_me:7512: checking if translated termcaps will be cached in ~/.terminfo" >&5
7513 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7515 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7516 if test "${enable_getcap_cache+set}" = set; then
7517 enableval="$enable_getcap_cache"
7518 with_getcap_cache=$enableval
7520 with_getcap_cache=no
7522 echo "$as_me:7522: result: $with_getcap_cache" >&5
7523 echo "${ECHO_T}$with_getcap_cache" >&6
7524 test "x$with_getcap_cache" = "xyes" &&
7525 cat >>confdefs.h <<\EOF
7526 #define USE_GETCAP_CACHE 1
7531 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7532 echo "$as_me:7532: checking if ~/.terminfo is wanted" >&5
7533 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7535 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7536 if test "${enable_home_terminfo+set}" = set; then
7537 enableval="$enable_home_terminfo"
7538 with_home_terminfo=$enableval
7540 with_home_terminfo=yes
7542 echo "$as_me:7542: result: $with_home_terminfo" >&5
7543 echo "${ECHO_T}$with_home_terminfo" >&6
7544 test "x$with_home_terminfo" = "xyes" &&
7545 cat >>confdefs.h <<\EOF
7546 #define USE_HOME_TERMINFO 1
7549 echo "$as_me:7549: checking if you want to use restricted environment when running as root" >&5
7550 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7552 # Check whether --enable-root-environ or --disable-root-environ was given.
7553 if test "${enable_root_environ+set}" = set; then
7554 enableval="$enable_root_environ"
7555 with_root_environ=$enableval
7557 with_root_environ=yes
7559 echo "$as_me:7559: result: $with_root_environ" >&5
7560 echo "${ECHO_T}$with_root_environ" >&6
7561 test "x$with_root_environ" = xyes &&
7562 cat >>confdefs.h <<\EOF
7563 #define USE_ROOT_ENVIRON 1
7566 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7567 ### to reduce storage requirements for the terminfo database.
7573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7574 echo "$as_me:7574: checking for $ac_func" >&5
7575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_var+set}\" = set"; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line 7580 "configure"
7581 #include "confdefs.h"
7582 /* System header to define __stub macros and hopefully few prototypes,
7583 which can conflict with char $ac_func (); below. */
7585 /* Override any gcc2 internal prototype to avoid an error. */
7589 /* We use char because int might match the return type of a gcc2
7590 builtin and then its argument prototype would still apply. */
7597 /* The GNU C library defines this for functions which it implements
7598 to always fail with ENOSYS. Some functions are actually named
7599 something starting with __ and the normal name is an alias. */
7600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:7611: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>&5
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -s conftest$ac_exeext'
7617 { (eval echo "$as_me:7617: \"$ac_try\"") >&5
7620 echo "$as_me:7620: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 eval "$as_ac_var=yes"
7624 echo "$as_me: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 eval "$as_ac_var=no"
7628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7630 echo "$as_me:7630: result: `eval echo '${'$as_ac_var'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7632 if test `eval echo '${'$as_ac_var'}'` = yes; then
7633 cat >>confdefs.h <<EOF
7634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7640 if test "$cross_compiling" = yes ; then
7646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647 echo "$as_me:7647: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_var+set}\" = set"; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7653 #line 7653 "configure"
7654 #include "confdefs.h"
7655 /* System header to define __stub macros and hopefully few prototypes,
7656 which can conflict with char $ac_func (); below. */
7658 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7670 /* The GNU C library defines this for functions which it implements
7671 to always fail with ENOSYS. Some functions are actually named
7672 something starting with __ and the normal name is an alias. */
7673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7676 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:7684: \"$ac_link\"") >&5
7685 (eval $ac_link) 2>&5
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (eval echo "$as_me:7690: \"$ac_try\"") >&5
7693 echo "$as_me:7693: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 eval "$as_ac_var=yes"
7697 echo "$as_me: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7699 eval "$as_ac_var=no"
7701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7703 echo "$as_me:7703: result: `eval echo '${'$as_ac_var'}'`" >&5
7704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7705 if test `eval echo '${'$as_ac_var'}'` = yes; then
7706 cat >>confdefs.h <<EOF
7707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7714 echo "$as_me:7714: checking if link/symlink functions work" >&5
7715 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7716 if test "${cf_cv_link_funcs+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 for cf_func in link symlink ; do
7722 if test "$cross_compiling" = yes; then
7724 eval 'ac_cv_func_'$cf_func'=error'
7726 cat >conftest.$ac_ext <<_ACEOF
7727 #line 7727 "configure"
7728 #include "confdefs.h"
7730 #include <sys/types.h>
7731 #include <sys/stat.h>
7732 #ifdef HAVE_UNISTD_H
7738 char *src = "config.log";
7739 char *dst = "conftest.chk";
7744 fail = ($cf_func("config.log", "conftest.chk") < 0)
7745 || (stat(dst, &dst_sb) < 0)
7746 || (dst_sb.st_mtime != src_sb.st_mtime);
7752 ${cf_cv_main_return:-return} (fail);
7756 rm -f conftest$ac_exeext
7757 if { (eval echo "$as_me:7757: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>&5
7760 echo "$as_me:7760: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7762 { (eval echo "$as_me:7762: \"$ac_try\"") >&5
7765 echo "$as_me:7765: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7768 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7769 eval 'ac_cv_func_'$cf_func'=yes'
7771 echo "$as_me: program exited with status $ac_status" >&5
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 eval 'ac_cv_func_'$cf_func'=no'
7777 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7780 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7783 echo "$as_me:7783: result: $cf_cv_link_funcs" >&5
7784 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7785 test "$ac_cv_func_link" = yes &&
7786 cat >>confdefs.h <<\EOF
7790 test "$ac_cv_func_symlink" = yes &&
7791 cat >>confdefs.h <<\EOF
7792 #define HAVE_SYMLINK 1
7800 # soft links (symbolic links) are useful for some systems where hard links do
7801 # not work, or to make it simpler to copy terminfo trees around.
7802 if test "x$ac_cv_func_symlink" = xyes ; then
7803 echo "$as_me:7803: checking if tic should use symbolic links" >&5
7804 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7806 # Check whether --enable-symlinks or --disable-symlinks was given.
7807 if test "${enable_symlinks+set}" = set; then
7808 enableval="$enable_symlinks"
7809 with_symlinks=$enableval
7813 echo "$as_me:7813: result: $with_symlinks" >&5
7814 echo "${ECHO_T}$with_symlinks" >&6
7817 # If we have hard links and did not choose to use soft links instead, there is
7818 # no reason to make this choice optional - use the hard links.
7819 if test "$with_symlinks" = no ; then
7820 echo "$as_me:7820: checking if tic should use hard links" >&5
7821 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7822 if test "x$ac_cv_func_link" = xyes ; then
7827 echo "$as_me:7827: result: $with_links" >&5
7828 echo "${ECHO_T}$with_links" >&6
7831 test "x$with_links" = xyes &&
7832 cat >>confdefs.h <<\EOF
7836 test "x$with_symlinks" = xyes &&
7837 cat >>confdefs.h <<\EOF
7838 #define USE_SYMLINKS 1
7841 ### use option --enable-broken-linker to force on use of broken-linker support
7842 echo "$as_me:7842: checking if you want broken-linker support code" >&5
7843 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7845 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7846 if test "${enable_broken_linker+set}" = set; then
7847 enableval="$enable_broken_linker"
7848 with_broken_linker=$enableval
7850 with_broken_linker=${BROKEN_LINKER:-no}
7852 echo "$as_me:7852: result: $with_broken_linker" >&5
7853 echo "${ECHO_T}$with_broken_linker" >&6
7856 if test "x$with_broken_linker" = xyes ; then
7858 cat >>confdefs.h <<\EOF
7859 #define BROKEN_LINKER 1
7863 elif test "$DFT_LWR_MODEL" = shared ; then
7864 case $cf_cv_system_name in
7867 cat >>confdefs.h <<\EOF
7868 #define BROKEN_LINKER 1
7872 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7874 echo "${as_me:-configure}:7874: testing cygwin linker is broken anyway ..." 1>&5
7880 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7881 echo "$as_me:7881: checking if tputs should process BSD-style prefix padding" >&5
7882 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7884 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7885 if test "${enable_bsdpad+set}" = set; then
7886 enableval="$enable_bsdpad"
7887 with_bsdpad=$enableval
7891 echo "$as_me:7891: result: $with_bsdpad" >&5
7892 echo "${ECHO_T}$with_bsdpad" >&6
7893 test "x$with_bsdpad" = xyes &&
7894 cat >>confdefs.h <<\EOF
7898 ### use option --enable-widec to turn on use of wide-character support
7907 # Check to define _XOPEN_SOURCE "automatically"
7908 CPPFLAGS_before_XOPEN="$CPPFLAGS"
7911 cf_POSIX_C_SOURCE=199506L
7916 cf_xopen_source="-D_ALL_SOURCE"
7922 cf_xopen_source="-D_APPLE_C_SOURCE"
7925 cf_xopen_source="-D_DARWIN_C_SOURCE"
7928 (freebsd*|dragonfly*)
7929 # 5.x headers associate
7930 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7931 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7932 cf_POSIX_C_SOURCE=200112L
7934 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7937 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7940 cf_xopen_source="-D_HPUX_SOURCE"
7943 cf_xopen_source="-D_SGI_SOURCE"
7946 (linux*|gnu*|mint*|k*bsd*-gnu)
7948 echo "$as_me:7948: checking if we must define _GNU_SOURCE" >&5
7949 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7950 if test "${cf_cv_gnu_source+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7955 #line 7955 "configure"
7956 #include "confdefs.h"
7957 #include <sys/types.h>
7962 #ifndef _XOPEN_SOURCE
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:7970: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>&5
7973 echo "$as_me:7973: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:7976: \"$ac_try\"") >&5
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7986 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line 7988 "configure"
7989 #include "confdefs.h"
7990 #include <sys/types.h>
7995 #ifdef _XOPEN_SOURCE
8002 rm -f conftest.$ac_objext
8003 if { (eval echo "$as_me:8003: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>&5
8006 echo "$as_me:8006: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:8009: \"$ac_try\"") >&5
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8016 echo "$as_me: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 cf_cv_gnu_source=yes
8020 rm -f conftest.$ac_objext conftest.$ac_ext
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me:8027: result: $cf_cv_gnu_source" >&5
8028 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8029 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8033 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8036 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8039 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8041 cf_save_CFLAGS="$CFLAGS"
8042 cf_save_CPPFLAGS="$CPPFLAGS"
8044 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8045 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8046 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8048 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8049 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8050 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8052 echo "$as_me:8052: checking if we should define _POSIX_C_SOURCE" >&5
8053 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8054 if test "${cf_cv_posix_c_source+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 echo "${as_me:-configure}:8058: testing if the symbol is already defined go no further ..." 1>&5
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line 8061 "configure"
8062 #include "confdefs.h"
8063 #include <sys/types.h>
8068 #ifndef _POSIX_C_SOURCE
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:8076: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8079 echo "$as_me:8079: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:8082: \"$ac_try\"") >&5
8085 echo "$as_me:8085: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 cf_cv_posix_c_source=no
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 cf_want_posix_source=no
8092 case .$cf_POSIX_C_SOURCE in
8094 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8097 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8098 cf_want_posix_source=yes
8101 cf_want_posix_source=yes
8104 if test "$cf_want_posix_source" = yes ; then
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line 8106 "configure"
8107 #include "confdefs.h"
8108 #include <sys/types.h>
8113 #ifdef _POSIX_SOURCE
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:8121: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>&5
8124 echo "$as_me:8124: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:8127: \"$ac_try\"") >&5
8130 echo "$as_me:8130: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8134 echo "$as_me: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8141 echo "${as_me:-configure}:8141: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8143 CFLAGS="$cf_trim_CFLAGS"
8144 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8146 echo "${as_me:-configure}:8146: testing if the second compile does not leave our definition intact error ..." 1>&5
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line 8149 "configure"
8150 #include "confdefs.h"
8151 #include <sys/types.h>
8156 #ifndef _POSIX_C_SOURCE
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:8164: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>&5
8167 echo "$as_me:8167: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -s conftest.$ac_objext'
8170 { (eval echo "$as_me:8170: \"$ac_try\"") >&5
8173 echo "$as_me:8173: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8177 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 cf_cv_posix_c_source=no
8181 rm -f conftest.$ac_objext conftest.$ac_ext
8182 CFLAGS="$cf_save_CFLAGS"
8183 CPPFLAGS="$cf_save_CPPFLAGS"
8186 rm -f conftest.$ac_objext conftest.$ac_ext
8189 echo "$as_me:8189: result: $cf_cv_posix_c_source" >&5
8190 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8192 if test "$cf_cv_posix_c_source" != no ; then
8193 CFLAGS="$cf_trim_CFLAGS"
8194 CPPFLAGS="$cf_trim_CPPFLAGS"
8199 cf_new_extra_cppflags=
8201 for cf_add_cflags in $cf_cv_posix_c_source
8203 case $cf_fix_cppflags in
8205 case $cf_add_cflags in
8206 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8207 case $cf_add_cflags in
8209 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8211 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8212 && test -z "${cf_tst_cflags}" \
8213 && cf_fix_cppflags=yes
8215 if test $cf_fix_cppflags = yes ; then
8216 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8218 elif test "${cf_tst_cflags}" = "\"'" ; then
8219 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8228 case $cf_add_cflags in
8230 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8232 CPPFLAGS=`echo "$CPPFLAGS" | \
8233 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8234 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8238 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8243 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8248 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8250 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8252 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8253 && test -z "${cf_tst_cflags}" \
8254 && cf_fix_cppflags=no
8259 if test -n "$cf_new_cflags" ; then
8261 CFLAGS="$CFLAGS $cf_new_cflags"
8264 if test -n "$cf_new_cppflags" ; then
8266 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8269 if test -n "$cf_new_extra_cppflags" ; then
8271 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8278 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8281 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8282 cf_xopen_source="-D_BSD_SOURCE"
8286 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8292 cf_xopen_source="-D_OSF_SOURCE"
8295 cf_xopen_source="-D_QNX_SOURCE"
8298 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8301 cf_xopen_source="-D__EXTENSIONS__"
8302 cf_cv_xopen_source=broken
8304 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8310 echo "$as_me:8310: checking if we should define _XOPEN_SOURCE" >&5
8311 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8312 if test "${cf_cv_xopen_source+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line 8317 "configure"
8318 #include "confdefs.h"
8322 #include <sys/types.h>
8328 #ifndef _XOPEN_SOURCE
8335 rm -f conftest.$ac_objext
8336 if { (eval echo "$as_me:8336: \"$ac_compile\"") >&5
8337 (eval $ac_compile) 2>&5
8339 echo "$as_me:8339: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -s conftest.$ac_objext'
8342 { (eval echo "$as_me:8342: \"$ac_try\"") >&5
8345 echo "$as_me:8345: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 cf_cv_xopen_source=no
8349 echo "$as_me: failed program was:" >&5
8350 cat conftest.$ac_ext >&5
8352 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8353 cat >conftest.$ac_ext <<_ACEOF
8354 #line 8354 "configure"
8355 #include "confdefs.h"
8359 #include <sys/types.h>
8365 #ifdef _XOPEN_SOURCE
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:8373: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>&5
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:8379: \"$ac_try\"") >&5
8382 echo "$as_me:8382: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 cf_cv_xopen_source=no
8386 echo "$as_me: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8388 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8390 rm -f conftest.$ac_objext conftest.$ac_ext
8394 rm -f conftest.$ac_objext conftest.$ac_ext
8397 echo "$as_me:8397: result: $cf_cv_xopen_source" >&5
8398 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8400 if test "$cf_cv_xopen_source" != no ; then
8402 CFLAGS=`echo "$CFLAGS" | \
8403 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8404 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8406 CPPFLAGS=`echo "$CPPFLAGS" | \
8407 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8408 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8410 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8415 cf_new_extra_cppflags=
8417 for cf_add_cflags in $cf_temp_xopen_source
8419 case $cf_fix_cppflags in
8421 case $cf_add_cflags in
8422 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8423 case $cf_add_cflags in
8425 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8427 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8428 && test -z "${cf_tst_cflags}" \
8429 && cf_fix_cppflags=yes
8431 if test $cf_fix_cppflags = yes ; then
8432 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8434 elif test "${cf_tst_cflags}" = "\"'" ; then
8435 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8444 case $cf_add_cflags in
8446 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8448 CPPFLAGS=`echo "$CPPFLAGS" | \
8449 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8450 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8454 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8459 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8466 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8468 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8469 && test -z "${cf_tst_cflags}" \
8470 && cf_fix_cppflags=no
8475 if test -n "$cf_new_cflags" ; then
8477 CFLAGS="$CFLAGS $cf_new_cflags"
8480 if test -n "$cf_new_cppflags" ; then
8482 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8485 if test -n "$cf_new_extra_cppflags" ; then
8487 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8492 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8494 cf_save_CFLAGS="$CFLAGS"
8495 cf_save_CPPFLAGS="$CPPFLAGS"
8497 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8498 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8499 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8501 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8502 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8503 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8505 echo "$as_me:8505: checking if we should define _POSIX_C_SOURCE" >&5
8506 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8507 if test "${cf_cv_posix_c_source+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 echo "${as_me:-configure}:8511: testing if the symbol is already defined go no further ..." 1>&5
8513 cat >conftest.$ac_ext <<_ACEOF
8514 #line 8514 "configure"
8515 #include "confdefs.h"
8516 #include <sys/types.h>
8521 #ifndef _POSIX_C_SOURCE
8528 rm -f conftest.$ac_objext
8529 if { (eval echo "$as_me:8529: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>&5
8532 echo "$as_me:8532: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -s conftest.$ac_objext'
8535 { (eval echo "$as_me:8535: \"$ac_try\"") >&5
8538 echo "$as_me:8538: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 cf_cv_posix_c_source=no
8542 echo "$as_me: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8544 cf_want_posix_source=no
8545 case .$cf_POSIX_C_SOURCE in
8547 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8550 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8551 cf_want_posix_source=yes
8554 cf_want_posix_source=yes
8557 if test "$cf_want_posix_source" = yes ; then
8558 cat >conftest.$ac_ext <<_ACEOF
8559 #line 8559 "configure"
8560 #include "confdefs.h"
8561 #include <sys/types.h>
8566 #ifdef _POSIX_SOURCE
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:8574: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:8580: \"$ac_try\"") >&5
8583 echo "$as_me:8583: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8587 echo "$as_me: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8591 rm -f conftest.$ac_objext conftest.$ac_ext
8594 echo "${as_me:-configure}:8594: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8596 CFLAGS="$cf_trim_CFLAGS"
8597 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8599 echo "${as_me:-configure}:8599: testing if the second compile does not leave our definition intact error ..." 1>&5
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line 8602 "configure"
8603 #include "confdefs.h"
8604 #include <sys/types.h>
8609 #ifndef _POSIX_C_SOURCE
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:8617: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>&5
8620 echo "$as_me:8620: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:8623: \"$ac_try\"") >&5
8626 echo "$as_me:8626: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8630 echo "$as_me: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 cf_cv_posix_c_source=no
8634 rm -f conftest.$ac_objext conftest.$ac_ext
8635 CFLAGS="$cf_save_CFLAGS"
8636 CPPFLAGS="$cf_save_CPPFLAGS"
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8642 echo "$as_me:8642: result: $cf_cv_posix_c_source" >&5
8643 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8645 if test "$cf_cv_posix_c_source" != no ; then
8646 CFLAGS="$cf_trim_CFLAGS"
8647 CPPFLAGS="$cf_trim_CPPFLAGS"
8652 cf_new_extra_cppflags=
8654 for cf_add_cflags in $cf_cv_posix_c_source
8656 case $cf_fix_cppflags in
8658 case $cf_add_cflags in
8659 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8660 case $cf_add_cflags in
8662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8664 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8665 && test -z "${cf_tst_cflags}" \
8666 && cf_fix_cppflags=yes
8668 if test $cf_fix_cppflags = yes ; then
8669 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8671 elif test "${cf_tst_cflags}" = "\"'" ; then
8672 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8681 case $cf_add_cflags in
8683 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8685 CPPFLAGS=`echo "$CPPFLAGS" | \
8686 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8687 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8691 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8696 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8701 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8703 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8705 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8706 && test -z "${cf_tst_cflags}" \
8707 && cf_fix_cppflags=no
8712 if test -n "$cf_new_cflags" ; then
8714 CFLAGS="$CFLAGS $cf_new_cflags"
8717 if test -n "$cf_new_cppflags" ; then
8719 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8722 if test -n "$cf_new_extra_cppflags" ; then
8724 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8732 if test -n "$cf_xopen_source" ; then
8737 cf_new_extra_cppflags=
8739 for cf_add_cflags in $cf_xopen_source
8741 case $cf_fix_cppflags in
8743 case $cf_add_cflags in
8744 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8745 case $cf_add_cflags in
8747 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8749 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8750 && test -z "${cf_tst_cflags}" \
8751 && cf_fix_cppflags=yes
8753 if test $cf_fix_cppflags = yes ; then
8754 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8756 elif test "${cf_tst_cflags}" = "\"'" ; then
8757 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8766 case $cf_add_cflags in
8768 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8770 CPPFLAGS=`echo "$CPPFLAGS" | \
8771 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8772 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8776 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8781 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8786 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8788 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8790 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8791 && test -z "${cf_tst_cflags}" \
8792 && cf_fix_cppflags=no
8797 if test -n "$cf_new_cflags" ; then
8798 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8800 echo "${as_me:-configure}:8800: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8802 CFLAGS="$CFLAGS $cf_new_cflags"
8805 if test -n "$cf_new_cppflags" ; then
8806 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8808 echo "${as_me:-configure}:8808: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8810 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8813 if test -n "$cf_new_extra_cppflags" ; then
8814 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8816 echo "${as_me:-configure}:8816: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8818 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8823 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8824 echo "$as_me:8824: checking if _XOPEN_SOURCE really is set" >&5
8825 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8826 cat >conftest.$ac_ext <<_ACEOF
8827 #line 8827 "configure"
8828 #include "confdefs.h"
8834 #ifndef _XOPEN_SOURCE
8841 rm -f conftest.$ac_objext
8842 if { (eval echo "$as_me:8842: \"$ac_compile\"") >&5
8843 (eval $ac_compile) 2>&5
8845 echo "$as_me:8845: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:8848: \"$ac_try\"") >&5
8851 echo "$as_me:8851: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 cf_XOPEN_SOURCE_set=yes
8855 echo "$as_me: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8857 cf_XOPEN_SOURCE_set=no
8859 rm -f conftest.$ac_objext conftest.$ac_ext
8860 echo "$as_me:8860: result: $cf_XOPEN_SOURCE_set" >&5
8861 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8862 if test $cf_XOPEN_SOURCE_set = yes
8864 cat >conftest.$ac_ext <<_ACEOF
8865 #line 8865 "configure"
8866 #include "confdefs.h"
8872 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8879 rm -f conftest.$ac_objext
8880 if { (eval echo "$as_me:8880: \"$ac_compile\"") >&5
8881 (eval $ac_compile) 2>&5
8883 echo "$as_me:8883: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (eval echo "$as_me:8886: \"$ac_try\"") >&5
8889 echo "$as_me:8889: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 cf_XOPEN_SOURCE_set_ok=yes
8893 echo "$as_me: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8895 cf_XOPEN_SOURCE_set_ok=no
8897 rm -f conftest.$ac_objext conftest.$ac_ext
8898 if test $cf_XOPEN_SOURCE_set_ok = no
8900 { echo "$as_me:8900: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8901 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8905 echo "$as_me:8905: checking if we should define _XOPEN_SOURCE" >&5
8906 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8907 if test "${cf_cv_xopen_source+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line 8912 "configure"
8913 #include "confdefs.h"
8917 #include <sys/types.h>
8923 #ifndef _XOPEN_SOURCE
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:8931: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>&5
8934 echo "$as_me:8934: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:8937: \"$ac_try\"") >&5
8940 echo "$as_me:8940: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 cf_cv_xopen_source=no
8944 echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8947 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line 8949 "configure"
8950 #include "confdefs.h"
8954 #include <sys/types.h>
8960 #ifdef _XOPEN_SOURCE
8967 rm -f conftest.$ac_objext
8968 if { (eval echo "$as_me:8968: \"$ac_compile\"") >&5
8969 (eval $ac_compile) 2>&5
8971 echo "$as_me:8971: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -s conftest.$ac_objext'
8974 { (eval echo "$as_me:8974: \"$ac_try\"") >&5
8977 echo "$as_me:8977: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 cf_cv_xopen_source=no
8981 echo "$as_me: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8985 rm -f conftest.$ac_objext conftest.$ac_ext
8989 rm -f conftest.$ac_objext conftest.$ac_ext
8992 echo "$as_me:8992: result: $cf_cv_xopen_source" >&5
8993 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8995 if test "$cf_cv_xopen_source" != no ; then
8997 CFLAGS=`echo "$CFLAGS" | \
8998 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8999 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9001 CPPFLAGS=`echo "$CPPFLAGS" | \
9002 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9003 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9005 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9010 cf_new_extra_cppflags=
9012 for cf_add_cflags in $cf_temp_xopen_source
9014 case $cf_fix_cppflags in
9016 case $cf_add_cflags in
9017 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9018 case $cf_add_cflags in
9020 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9022 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9023 && test -z "${cf_tst_cflags}" \
9024 && cf_fix_cppflags=yes
9026 if test $cf_fix_cppflags = yes ; then
9027 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9029 elif test "${cf_tst_cflags}" = "\"'" ; then
9030 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9039 case $cf_add_cflags in
9041 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9043 CPPFLAGS=`echo "$CPPFLAGS" | \
9044 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9045 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9049 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9054 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9059 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9061 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9063 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9064 && test -z "${cf_tst_cflags}" \
9065 && cf_fix_cppflags=no
9070 if test -n "$cf_new_cflags" ; then
9072 CFLAGS="$CFLAGS $cf_new_cflags"
9075 if test -n "$cf_new_cppflags" ; then
9077 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9080 if test -n "$cf_new_extra_cppflags" ; then
9082 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9090 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9092 # Work around breakage on OS X
9094 echo "$as_me:9094: checking if SIGWINCH is defined" >&5
9095 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9096 if test "${cf_cv_define_sigwinch+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line 9101 "configure"
9102 #include "confdefs.h"
9104 #include <sys/types.h>
9105 #include <sys/signal.h>
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:9116: \"$ac_compile\"") >&5
9117 (eval $ac_compile) 2>&5
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:9122: \"$ac_try\"") >&5
9125 echo "$as_me:9125: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 cf_cv_define_sigwinch=yes
9129 echo "$as_me: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 cat >conftest.$ac_ext <<_ACEOF
9132 #line 9132 "configure"
9133 #include "confdefs.h"
9135 #undef _XOPEN_SOURCE
9136 #undef _POSIX_SOURCE
9137 #undef _POSIX_C_SOURCE
9138 #include <sys/types.h>
9139 #include <sys/signal.h>
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:9150: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>&5
9153 echo "$as_me:9153: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -s conftest.$ac_objext'
9156 { (eval echo "$as_me:9156: \"$ac_try\"") >&5
9159 echo "$as_me:9159: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 cf_cv_define_sigwinch=maybe
9163 echo "$as_me: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9165 cf_cv_define_sigwinch=no
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9170 rm -f conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:9173: result: $cf_cv_define_sigwinch" >&5
9174 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9176 if test "$cf_cv_define_sigwinch" = maybe ; then
9177 echo "$as_me:9177: checking for actual SIGWINCH definition" >&5
9178 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9179 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 cf_cv_fixup_sigwinch=unknown
9185 while test $cf_sigwinch != 1
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line 9188 "configure"
9189 #include "confdefs.h"
9191 #undef _XOPEN_SOURCE
9192 #undef _POSIX_SOURCE
9193 #undef _POSIX_C_SOURCE
9194 #include <sys/types.h>
9195 #include <sys/signal.h>
9201 #if SIGWINCH != $cf_sigwinch
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:9210: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>&5
9213 echo "$as_me:9213: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:9216: \"$ac_try\"") >&5
9219 echo "$as_me:9219: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 cf_cv_fixup_sigwinch=$cf_sigwinch
9224 echo "$as_me: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9227 rm -f conftest.$ac_objext conftest.$ac_ext
9229 cf_sigwinch=`expr $cf_sigwinch - 1`
9233 echo "$as_me:9233: result: $cf_cv_fixup_sigwinch" >&5
9234 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9236 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9237 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9241 # Checks for CODESET support.
9243 echo "$as_me:9243: checking for nl_langinfo and CODESET" >&5
9244 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9245 if test "${am_cv_langinfo_codeset+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 cat >conftest.$ac_ext <<_ACEOF
9249 #line 9249 "configure"
9250 #include "confdefs.h"
9251 #include <langinfo.h>
9255 char* cs = nl_langinfo(CODESET);
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (eval echo "$as_me:9261: \"$ac_link\"") >&5
9262 (eval $ac_link) 2>&5
9264 echo "$as_me:9264: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:9267: \"$ac_try\"") >&5
9270 echo "$as_me:9270: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 am_cv_langinfo_codeset=yes
9274 echo "$as_me: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9276 am_cv_langinfo_codeset=no
9278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9281 echo "$as_me:9281: result: $am_cv_langinfo_codeset" >&5
9282 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9283 if test $am_cv_langinfo_codeset = yes; then
9285 cat >>confdefs.h <<\EOF
9286 #define HAVE_LANGINFO_CODESET 1
9291 # use these variables to work around a defect in gcc's fixincludes.
9295 echo "$as_me:9295: checking if you want wide-character code" >&5
9296 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9298 # Check whether --enable-widec or --disable-widec was given.
9299 if test "${enable_widec+set}" = set; then
9300 enableval="$enable_widec"
9301 with_widec=$enableval
9305 echo "$as_me:9305: result: $with_widec" >&5
9306 echo "${ECHO_T}$with_widec" >&6
9308 NCURSES_WCWIDTH_GRAPHICS=1
9310 if test "x$with_widec" = xyes ; then
9311 if test "x$disable_lib_suffixes" = xno ; then
9312 LIB_SUFFIX="w${LIB_SUFFIX}"
9315 cat >>confdefs.h <<\EOF
9316 #define USE_WIDEC_SUPPORT 1
9319 cat >>confdefs.h <<\EOF
9320 #define NCURSES_WIDECHAR 1
9323 echo "$as_me:9323: checking if wchar.h can be used as is" >&5
9324 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9325 if test "${cf_cv_wchar_h_okay+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9341 int bar = iswpunct(foo)
9346 rm -f conftest.$ac_objext
9347 if { (eval echo "$as_me:9347: \"$ac_compile\"") >&5
9348 (eval $ac_compile) 2>&5
9350 echo "$as_me:9350: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -s conftest.$ac_objext'
9353 { (eval echo "$as_me:9353: \"$ac_try\"") >&5
9356 echo "$as_me:9356: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 cf_cv_wchar_h_okay=yes
9360 echo "$as_me: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9362 cf_cv_wchar_h_okay=no
9364 rm -f conftest.$ac_objext conftest.$ac_ext
9366 echo "$as_me:9366: result: $cf_cv_wchar_h_okay" >&5
9367 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9369 if test $cf_cv_wchar_h_okay = no
9372 echo "$as_me:9372: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9373 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line 9375 "configure"
9376 #include "confdefs.h"
9377 #include <sys/types.h>
9383 #ifndef _XOPEN_SOURCE_EXTENDED
9390 rm -f conftest.$ac_objext
9391 if { (eval echo "$as_me:9391: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>&5
9394 echo "$as_me:9394: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -s conftest.$ac_objext'
9397 { (eval echo "$as_me:9397: \"$ac_try\"") >&5
9400 echo "$as_me:9400: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9404 echo "$as_me: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9408 rm -f conftest.$ac_objext conftest.$ac_ext
9409 echo "$as_me:9409: result: $cf_result" >&5
9410 echo "${ECHO_T}$cf_result" >&6
9412 if test "$cf_result" = yes ; then
9413 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9414 elif test "x" != "x" ; then
9415 echo "$as_me:9415: checking checking for compatible value versus " >&5
9416 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9418 #line 9418 "configure"
9419 #include "confdefs.h"
9420 #include <sys/types.h>
9426 #if _XOPEN_SOURCE_EXTENDED- < 0
9433 rm -f conftest.$ac_objext
9434 if { (eval echo "$as_me:9434: \"$ac_compile\"") >&5
9435 (eval $ac_compile) 2>&5
9437 echo "$as_me:9437: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -s conftest.$ac_objext'
9440 { (eval echo "$as_me:9440: \"$ac_try\"") >&5
9443 echo "$as_me:9443: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9447 echo "$as_me: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9451 rm -f conftest.$ac_objext conftest.$ac_ext
9452 echo "$as_me:9452: result: $cf_result" >&5
9453 echo "${ECHO_T}$cf_result" >&6
9454 if test "$cf_result" = no ; then
9455 # perhaps we can override it - try...
9456 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9462 echo "$as_me:9462: checking if wcwidth agrees graphics are single-width" >&5
9463 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9464 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 cat >conftest.in <<CF_EOF
9470 0x250c upper left corner
9471 0x2514 lower left corner
9472 0x2510 upper right corner
9473 0x2518 lower right corner
9474 0x251c tee pointing left
9475 0x2524 tee pointing right
9476 0x2534 tee pointing up
9477 0x252c tee pointing down
9478 0x2500 horizontal line
9479 0x2502 vertical line
9480 0x253c large plus or crossover
9484 0x2592 checker board (stipple)
9485 0x00b0 degree symbol
9488 - Teletype 5410v1 symbols
9489 0x2190 arrow pointing left
9490 0x2192 arrow pointing right
9491 0x2193 arrow pointing down
9492 0x2191 arrow pointing up
9493 0x2592 board of squares
9494 0x2603 lantern symbol
9495 0x25ae solid square block
9496 - these defaults were invented for ncurses
9499 0x2264 less-than-or-equal-to
9500 0x2265 greater-than-or-equal-to
9503 0x00a3 pound-sterling symbol
9504 - thick-line-drawing
9505 0x250f upper left corner
9506 0x2517 lower left corner
9507 0x2513 upper right corner
9508 0x251b lower right corner
9509 0x2523 tee pointing left
9510 0x252b tee pointing right
9511 0x253b tee pointing up
9512 0x2533 tee pointing down
9513 0x2501 horizontal line
9514 0x2503 vertical line
9515 0x254b large plus or crossover
9516 - double-line-drawing
9517 0x2554 upper left corner
9518 0x255a lower left corner
9519 0x2557 upper right corner
9520 0x255d lower right corner
9521 0x2563 tee pointing left
9522 0x2560 tee pointing right
9523 0x2569 tee pointing up
9524 0x2566 tee pointing down
9525 0x2550 horizontal line
9526 0x2551 vertical line
9527 0x256c large plus or crossover
9529 if test "$cross_compiling" = yes; then
9530 cf_cv_wcwidth_graphics=unknown
9532 cat >conftest.$ac_ext <<_ACEOF
9533 #line 9533 "configure"
9534 #include "confdefs.h"
9547 char buffer[MY_LEN + 1];
9548 char notes[MY_LEN + 1];
9552 if (setlocale(LC_ALL, "en_US.UTF8") ||
9553 setlocale(LC_ALL, "en_US.UTF-8") ||
9554 setlocale(LC_ALL, "en_US.utf8") ||
9555 setlocale(LC_ALL, "en_US.utf-8")) {
9556 if ((fp = fopen("conftest.in", "r")) != 0) {
9557 while (fgets(buffer, MY_LEN, fp) != 0) {
9558 if (*buffer == '-') {
9559 fprintf(stderr, "\t%s", buffer);
9560 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9562 if (wcwidth(value) == 1)
9564 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9566 fprintf(stderr, "?\t%s", buffer);
9571 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9572 return (totals == passed) ? 0 : 1;
9576 rm -f conftest$ac_exeext
9577 if { (eval echo "$as_me:9577: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9582 { (eval echo "$as_me:9582: \"$ac_try\"") >&5
9585 echo "$as_me:9585: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 cf_cv_wcwidth_graphics=yes
9589 echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 cf_cv_wcwidth_graphics=no
9594 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9598 echo "$as_me:9598: result: $cf_cv_wcwidth_graphics" >&5
9599 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9601 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9604 NCURSES_CH_T=cchar_t
9606 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9609 echo "$as_me:9609: checking for $ac_func" >&5
9610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9611 if eval "test \"\${$as_ac_var+set}\" = set"; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9615 #line 9615 "configure"
9616 #include "confdefs.h"
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char $ac_func (); below. */
9620 /* Override any gcc2 internal prototype to avoid an error. */
9624 /* We use char because int might match the return type of a gcc2
9625 builtin and then its argument prototype would still apply. */
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:9646: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>&5
9649 echo "$as_me:9649: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:9652: \"$ac_try\"") >&5
9655 echo "$as_me:9655: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 eval "$as_ac_var=yes"
9659 echo "$as_me: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 eval "$as_ac_var=no"
9663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9665 echo "$as_me:9665: result: `eval echo '${'$as_ac_var'}'`" >&5
9666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9667 if test `eval echo '${'$as_ac_var'}'` = yes; then
9668 cat >>confdefs.h <<EOF
9669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9675 if test "x$ac_cv_func_putwc" != xyes ; then
9677 echo "$as_me:9677: checking for multibyte character support" >&5
9678 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9679 if test "${cf_cv_utf8_lib+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cf_save_LIBS="$LIBS"
9684 cat >conftest.$ac_ext <<_ACEOF
9685 #line 9685 "configure"
9686 #include "confdefs.h"
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:9698: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>&5
9701 echo "$as_me:9701: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:9704: \"$ac_try\"") >&5
9707 echo "$as_me:9707: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9711 echo "$as_me: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9714 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9715 # will be set on completion of the AC_TRY_LINK below.
9716 cf_cv_header_path_utf8=
9717 cf_cv_library_path_utf8=
9719 echo "${as_me:-configure}:9719: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9721 cf_save_LIBS="$LIBS"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line 9724 "configure"
9725 #include "confdefs.h"
9727 #include <libutf8.h>
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:9737: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9740 echo "$as_me:9740: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:9743: \"$ac_try\"") >&5
9746 echo "$as_me:9746: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9749 cf_cv_find_linkage_utf8=yes
9750 cf_cv_header_path_utf8=/usr/include
9751 cf_cv_library_path_utf8=/usr/lib
9754 echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9757 LIBS="-lutf8 $cf_save_LIBS"
9759 cat >conftest.$ac_ext <<_ACEOF
9760 #line 9760 "configure"
9761 #include "confdefs.h"
9763 #include <libutf8.h>
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:9773: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>&5
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:9779: \"$ac_try\"") >&5
9782 echo "$as_me:9782: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9785 cf_cv_find_linkage_utf8=yes
9786 cf_cv_header_path_utf8=/usr/include
9787 cf_cv_library_path_utf8=/usr/lib
9788 cf_cv_library_file_utf8="-lutf8"
9791 echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9794 cf_cv_find_linkage_utf8=no
9795 LIBS="$cf_save_LIBS"
9797 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9799 echo "${as_me:-configure}:9799: testing find linkage for utf8 library ..." 1>&5
9801 echo "${as_me:-configure}:9801: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9803 cf_save_CPPFLAGS="$CPPFLAGS"
9804 cf_test_CPPFLAGS="$CPPFLAGS"
9808 # collect the current set of include-directories from compiler flags
9809 cf_header_path_list=""
9810 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9811 for cf_header_path in $CPPFLAGS $CFLAGS
9813 case $cf_header_path in
9815 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9817 test "x$cf_header_path" != "xNONE" && \
9818 test -d "$cf_header_path" && \
9820 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9821 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9822 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9823 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9824 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9825 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9828 cf_header_path_list="$cf_header_path_list $cf_search"
9834 # add the variations for the package we are looking for
9838 test "x$prefix" != "xNONE" && \
9839 test -d "$prefix" && \
9841 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9842 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9843 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9844 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9845 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9846 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9849 for cf_subdir_prefix in \
9858 test "x$cf_subdir_prefix" != "x$prefix" && \
9859 test -d "$cf_subdir_prefix" && \
9860 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9861 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9862 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9863 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9864 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9865 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9866 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9871 test "$includedir" != NONE && \
9872 test "$includedir" != "/usr/include" && \
9873 test -d "$includedir" && {
9874 test -d $includedir && cf_search="$cf_search $includedir"
9875 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9878 test "$oldincludedir" != NONE && \
9879 test "$oldincludedir" != "/usr/include" && \
9880 test -d "$oldincludedir" && {
9881 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9882 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9885 cf_search="$cf_search $cf_header_path_list"
9887 for cf_cv_header_path_utf8 in $cf_search
9889 if test -d $cf_cv_header_path_utf8 ; then
9890 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9892 echo "${as_me:-configure}:9892: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9894 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9895 cat >conftest.$ac_ext <<_ACEOF
9896 #line 9896 "configure"
9897 #include "confdefs.h"
9899 #include <libutf8.h>
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:9909: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>&5
9912 echo "$as_me:9912: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:9915: \"$ac_try\"") >&5
9918 echo "$as_me:9918: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9921 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9923 echo "${as_me:-configure}:9923: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9925 cf_cv_find_linkage_utf8=maybe
9926 cf_test_CPPFLAGS="$CPPFLAGS"
9929 echo "$as_me: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9932 CPPFLAGS="$cf_save_CPPFLAGS"
9935 rm -f conftest.$ac_objext conftest.$ac_ext
9939 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9941 echo "${as_me:-configure}:9941: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9943 cf_save_LIBS="$LIBS"
9944 cf_save_LDFLAGS="$LDFLAGS"
9946 if test "$cf_cv_find_linkage_utf8" != yes ; then
9949 cf_library_path_list=""
9950 if test -n "${LDFLAGS}${LIBS}" ; then
9951 for cf_library_path in $LDFLAGS $LIBS
9953 case $cf_library_path in
9955 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9957 test "x$cf_library_path" != "xNONE" && \
9958 test -d "$cf_library_path" && \
9960 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9961 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9962 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9963 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9964 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9965 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9968 cf_library_path_list="$cf_library_path_list $cf_search"
9976 test "x$prefix" != "xNONE" && \
9977 test -d "$prefix" && \
9979 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9980 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9981 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9982 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9983 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9984 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9987 for cf_subdir_prefix in \
9996 test "x$cf_subdir_prefix" != "x$prefix" && \
9997 test -d "$cf_subdir_prefix" && \
9998 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9999 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10000 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
10001 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
10002 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
10003 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
10004 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
10009 cf_search="$cf_library_path_list $cf_search"
10011 for cf_cv_library_path_utf8 in $cf_search
10013 if test -d $cf_cv_library_path_utf8 ; then
10014 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
10016 echo "${as_me:-configure}:10016: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10018 CPPFLAGS="$cf_test_CPPFLAGS"
10019 LIBS="-lutf8 $cf_save_LIBS"
10020 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line 10022 "configure"
10023 #include "confdefs.h"
10025 #include <libutf8.h>
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:10035: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10038 echo "$as_me:10038: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:10041: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:10044: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10047 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10049 echo "${as_me:-configure}:10049: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10051 cf_cv_find_linkage_utf8=yes
10052 cf_cv_library_file_utf8="-lutf8"
10055 echo "$as_me: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10058 CPPFLAGS="$cf_save_CPPFLAGS"
10059 LIBS="$cf_save_LIBS"
10060 LDFLAGS="$cf_save_LDFLAGS"
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10066 CPPFLAGS="$cf_save_CPPFLAGS"
10067 LDFLAGS="$cf_save_LDFLAGS"
10071 cf_cv_find_linkage_utf8=no
10075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080 LIBS="$cf_save_LIBS"
10082 if test "$cf_cv_find_linkage_utf8" = yes ; then
10083 cf_cv_utf8_lib=add-on
10089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10091 echo "$as_me:10091: result: $cf_cv_utf8_lib" >&5
10092 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10094 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10095 # ncurses/ncursesw:
10096 if test "$cf_cv_utf8_lib" = "add-on" ; then
10098 cat >>confdefs.h <<\EOF
10099 #define HAVE_LIBUTF8_H 1
10102 if test -n "$cf_cv_header_path_utf8" ; then
10103 for cf_add_incdir in $cf_cv_header_path_utf8
10105 while test $cf_add_incdir != /usr/include
10107 if test -d $cf_add_incdir
10110 if test -n "$CFLAGS$CPPFLAGS" ; then
10111 # a loop is needed to ensure we can add subdirs of existing dirs
10112 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10113 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10114 cf_have_incdir=yes; break
10119 if test "$cf_have_incdir" = no ; then
10120 if test "$cf_add_incdir" = /usr/local/include ; then
10121 if test "$GCC" = yes
10123 cf_save_CPPFLAGS=$CPPFLAGS
10124 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10125 cat >conftest.$ac_ext <<_ACEOF
10126 #line 10126 "configure"
10127 #include "confdefs.h"
10137 rm -f conftest.$ac_objext
10138 if { (eval echo "$as_me:10138: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>&5
10141 echo "$as_me:10141: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -s conftest.$ac_objext'
10144 { (eval echo "$as_me:10144: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10151 echo "$as_me: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10155 rm -f conftest.$ac_objext conftest.$ac_ext
10156 CPPFLAGS=$cf_save_CPPFLAGS
10161 if test "$cf_have_incdir" = no ; then
10162 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10164 echo "${as_me:-configure}:10164: testing adding $cf_add_incdir to include-path ..." 1>&5
10166 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10168 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10169 test "$cf_top_incdir" = "$cf_add_incdir" && break
10170 cf_add_incdir="$cf_top_incdir"
10181 if test -n "$cf_cv_library_path_utf8" ; then
10182 for cf_add_libdir in $cf_cv_library_path_utf8
10184 if test $cf_add_libdir = /usr/lib ; then
10186 elif test -d $cf_add_libdir
10189 if test -n "$LDFLAGS$LIBS" ; then
10190 # a loop is needed to ensure we can add subdirs of existing dirs
10191 for cf_test_libdir in $LDFLAGS $LIBS ; do
10192 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10193 cf_have_libdir=yes; break
10197 if test "$cf_have_libdir" = no ; then
10198 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10200 echo "${as_me:-configure}:10200: testing adding $cf_add_libdir to library-path ..." 1>&5
10202 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10208 cf_add_libs="$cf_cv_library_file_utf8"
10209 # Filter out duplicates - this happens with badly-designed ".pc" files...
10210 for cf_add_1lib in $LIBS
10212 for cf_add_2lib in $cf_add_libs
10214 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10220 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10222 LIBS="$cf_add_libs"
10226 if test "$cf_cv_utf8_lib" != no ; then
10231 # This is needed on Tru64 5.0 to declare mbstate_t
10232 echo "$as_me:10232: checking if we must include wchar.h to declare mbstate_t" >&5
10233 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10234 if test "${cf_cv_mbstate_t+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.$ac_ext <<_ACEOF
10239 #line 10239 "configure"
10240 #include "confdefs.h"
10242 #include <stdlib.h>
10243 #include <stdarg.h>
10245 #ifdef HAVE_LIBUTF8_H
10246 #include <libutf8.h>
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:10257: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10260 echo "$as_me:10260: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest.$ac_objext'
10263 { (eval echo "$as_me:10263: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:10266: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10270 echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 cat >conftest.$ac_ext <<_ACEOF
10273 #line 10273 "configure"
10274 #include "confdefs.h"
10276 #include <stdlib.h>
10277 #include <stdarg.h>
10280 #ifdef HAVE_LIBUTF8_H
10281 #include <libutf8.h>
10291 rm -f conftest.$ac_objext
10292 if { (eval echo "$as_me:10292: \"$ac_compile\"") >&5
10293 (eval $ac_compile) 2>&5
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:10298: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:10301: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 cf_cv_mbstate_t=yes
10305 echo "$as_me: failed program was:" >&5
10306 cat conftest.$ac_ext >&5
10307 cf_cv_mbstate_t=unknown
10309 rm -f conftest.$ac_objext conftest.$ac_ext
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:10313: result: $cf_cv_mbstate_t" >&5
10314 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10316 if test "$cf_cv_mbstate_t" = yes ; then
10318 cat >>confdefs.h <<\EOF
10319 #define NEED_WCHAR_H 1
10325 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10326 if test "$cf_cv_mbstate_t" = unknown ; then
10327 NCURSES_MBSTATE_T=1
10330 # This is needed on Tru64 5.0 to declare wchar_t
10331 echo "$as_me:10331: checking if we must include wchar.h to declare wchar_t" >&5
10332 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10333 if test "${cf_cv_wchar_t+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line 10338 "configure"
10339 #include "confdefs.h"
10341 #include <stdlib.h>
10342 #include <stdarg.h>
10344 #ifdef HAVE_LIBUTF8_H
10345 #include <libutf8.h>
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:10356: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:10359: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:10362: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:10365: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 cat >conftest.$ac_ext <<_ACEOF
10372 #line 10372 "configure"
10373 #include "confdefs.h"
10375 #include <stdlib.h>
10376 #include <stdarg.h>
10379 #ifdef HAVE_LIBUTF8_H
10380 #include <libutf8.h>
10390 rm -f conftest.$ac_objext
10391 if { (eval echo "$as_me:10391: \"$ac_compile\"") >&5
10392 (eval $ac_compile) 2>&5
10394 echo "$as_me:10394: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:10397: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:10400: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10404 echo "$as_me: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10406 cf_cv_wchar_t=unknown
10408 rm -f conftest.$ac_objext conftest.$ac_ext
10410 rm -f conftest.$ac_objext conftest.$ac_ext
10412 echo "$as_me:10412: result: $cf_cv_wchar_t" >&5
10413 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10415 if test "$cf_cv_wchar_t" = yes ; then
10417 cat >>confdefs.h <<\EOF
10418 #define NEED_WCHAR_H 1
10424 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10425 if test "$cf_cv_wchar_t" = unknown ; then
10429 # if we find wchar_t in either place, use substitution to provide a fallback.
10430 if test "$cf_cv_wchar_t" != unknown ; then
10431 NCURSES_OK_WCHAR_T=1
10434 # This is needed on Tru64 5.0 to declare wint_t
10435 echo "$as_me:10435: checking if we must include wchar.h to declare wint_t" >&5
10436 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10437 if test "${cf_cv_wint_t+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 cat >conftest.$ac_ext <<_ACEOF
10442 #line 10442 "configure"
10443 #include "confdefs.h"
10445 #include <stdlib.h>
10446 #include <stdarg.h>
10448 #ifdef HAVE_LIBUTF8_H
10449 #include <libutf8.h>
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:10460: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 cat >conftest.$ac_ext <<_ACEOF
10476 #line 10476 "configure"
10477 #include "confdefs.h"
10479 #include <stdlib.h>
10480 #include <stdarg.h>
10483 #ifdef HAVE_LIBUTF8_H
10484 #include <libutf8.h>
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:10495: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10498 echo "$as_me:10498: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:10501: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:10504: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10508 echo "$as_me: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10510 cf_cv_wint_t=unknown
10512 rm -f conftest.$ac_objext conftest.$ac_ext
10514 rm -f conftest.$ac_objext conftest.$ac_ext
10516 echo "$as_me:10516: result: $cf_cv_wint_t" >&5
10517 echo "${ECHO_T}$cf_cv_wint_t" >&6
10519 if test "$cf_cv_wint_t" = yes ; then
10521 cat >>confdefs.h <<\EOF
10522 #define NEED_WCHAR_H 1
10528 # if we do not find wint_t in either place, use substitution to provide a fallback.
10529 if test "$cf_cv_wint_t" = unknown ; then
10533 # if we find wint_t in either place, use substitution to provide a fallback.
10534 if test "$cf_cv_wint_t" != unknown ; then
10535 NCURSES_OK_WINT_T=1
10538 if test "$NCURSES_MBSTATE_T" != 0; then
10540 cat >>confdefs.h <<\EOF
10541 #define NEED_MBSTATE_T_DEF 1
10547 ### use option --disable-lp64 to allow long chtype
10548 echo "$as_me:10548: checking whether to enable _LP64 definition in curses.h" >&5
10549 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10551 # Check whether --enable-lp64 or --disable-lp64 was given.
10552 if test "${enable_lp64+set}" = set; then
10553 enableval="$enable_lp64"
10554 with_lp64=$enableval
10556 with_lp64=$cf_dft_with_lp64
10558 echo "$as_me:10558: result: $with_lp64" >&5
10559 echo "${ECHO_T}$with_lp64" >&6
10561 if test "x$with_lp64" = xyes ; then
10562 cf_cv_enable_lp64=1
10564 cf_cv_enable_lp64=0
10567 # Check whether --enable-largefile or --disable-largefile was given.
10568 if test "${enable_largefile+set}" = set; then
10569 enableval="$enable_largefile"
10572 if test "$enable_largefile" != no; then
10574 echo "$as_me:10574: checking for special C compiler options needed for large files" >&5
10575 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10576 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 ac_cv_sys_largefile_CC=no
10580 if test "$GCC" != yes; then
10583 # IRIX 6.2 and later do not support large files by default,
10584 # so use the C compiler's -n32 option if that helps.
10585 cat >conftest.$ac_ext <<_ACEOF
10586 #line 10586 "configure"
10587 #include "confdefs.h"
10588 #include <sys/types.h>
10589 /* Check that off_t can represent 2**63 - 1 correctly.
10590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10591 since some C++ compilers masquerading as C compilers
10592 incorrectly reject 9223372036854775807. */
10593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10595 && LARGE_OFF_T % 2147483647 == 1)
10605 rm -f conftest.$ac_objext
10606 if { (eval echo "$as_me:10606: \"$ac_compile\"") >&5
10607 (eval $ac_compile) 2>&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -s conftest.$ac_objext'
10612 { (eval echo "$as_me:10612: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10622 rm -f conftest.$ac_objext
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:10625: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>&5
10628 echo "$as_me:10628: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -s conftest.$ac_objext'
10631 { (eval echo "$as_me:10631: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:10634: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_sys_largefile_CC=' -n32'; break
10638 echo "$as_me: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10641 rm -f conftest.$ac_objext
10645 rm -f conftest.$ac_ext
10648 echo "$as_me:10648: result: $ac_cv_sys_largefile_CC" >&5
10649 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10650 if test "$ac_cv_sys_largefile_CC" != no; then
10651 CC=$CC$ac_cv_sys_largefile_CC
10654 echo "$as_me:10654: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10655 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10656 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 ac_cv_sys_file_offset_bits=no
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line 10662 "configure"
10663 #include "confdefs.h"
10664 #include <sys/types.h>
10665 /* Check that off_t can represent 2**63 - 1 correctly.
10666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10667 since some C++ compilers masquerading as C compilers
10668 incorrectly reject 9223372036854775807. */
10669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10671 && LARGE_OFF_T % 2147483647 == 1)
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>&5
10685 echo "$as_me:10685: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try='test -s conftest.$ac_objext'
10688 { (eval echo "$as_me:10688: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:10691: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10695 echo "$as_me: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10698 rm -f conftest.$ac_objext conftest.$ac_ext
10699 cat >conftest.$ac_ext <<_ACEOF
10700 #line 10700 "configure"
10701 #include "confdefs.h"
10702 #define _FILE_OFFSET_BITS 64
10703 #include <sys/types.h>
10704 /* Check that off_t can represent 2**63 - 1 correctly.
10705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10706 since some C++ compilers masquerading as C compilers
10707 incorrectly reject 9223372036854775807. */
10708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10710 && LARGE_OFF_T % 2147483647 == 1)
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:10721: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>&5
10724 echo "$as_me:10724: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:10727: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_sys_file_offset_bits=64; break
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10737 rm -f conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:10741: result: $ac_cv_sys_file_offset_bits" >&5
10742 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10743 if test "$ac_cv_sys_file_offset_bits" != no; then
10745 cat >>confdefs.h <<EOF
10746 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10751 echo "$as_me:10751: checking for _LARGE_FILES value needed for large files" >&5
10752 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10753 if test "${ac_cv_sys_large_files+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 ac_cv_sys_large_files=no
10758 cat >conftest.$ac_ext <<_ACEOF
10759 #line 10759 "configure"
10760 #include "confdefs.h"
10761 #include <sys/types.h>
10762 /* Check that off_t can represent 2**63 - 1 correctly.
10763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10764 since some C++ compilers masquerading as C compilers
10765 incorrectly reject 9223372036854775807. */
10766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10768 && LARGE_OFF_T % 2147483647 == 1)
10778 rm -f conftest.$ac_objext
10779 if { (eval echo "$as_me:10779: \"$ac_compile\"") >&5
10780 (eval $ac_compile) 2>&5
10782 echo "$as_me:10782: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:10785: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:10788: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10792 echo "$as_me: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10795 rm -f conftest.$ac_objext conftest.$ac_ext
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line 10797 "configure"
10798 #include "confdefs.h"
10799 #define _LARGE_FILES 1
10800 #include <sys/types.h>
10801 /* Check that off_t can represent 2**63 - 1 correctly.
10802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10803 since some C++ compilers masquerading as C compilers
10804 incorrectly reject 9223372036854775807. */
10805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10807 && LARGE_OFF_T % 2147483647 == 1)
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:10818: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>&5
10821 echo "$as_me:10821: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:10824: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:10827: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_sys_large_files=1; break
10831 echo "$as_me: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10834 rm -f conftest.$ac_objext conftest.$ac_ext
10838 echo "$as_me:10838: result: $ac_cv_sys_large_files" >&5
10839 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10840 if test "$ac_cv_sys_large_files" != no; then
10842 cat >>confdefs.h <<EOF
10843 #define _LARGE_FILES $ac_cv_sys_large_files
10850 if test "$enable_largefile" != no ; then
10851 echo "$as_me:10851: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10852 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10853 if test "${ac_cv_sys_largefile_source+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 ac_cv_sys_largefile_source=no
10858 cat >conftest.$ac_ext <<_ACEOF
10859 #line 10859 "configure"
10860 #include "confdefs.h"
10870 rm -f conftest.$ac_objext
10871 if { (eval echo "$as_me:10871: \"$ac_compile\"") >&5
10872 (eval $ac_compile) 2>&5
10874 echo "$as_me:10874: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:10877: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:10880: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10884 echo "$as_me: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10887 rm -f conftest.$ac_objext conftest.$ac_ext
10888 cat >conftest.$ac_ext <<_ACEOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10891 #define _LARGEFILE_SOURCE 1
10901 rm -f conftest.$ac_objext
10902 if { (eval echo "$as_me:10902: \"$ac_compile\"") >&5
10903 (eval $ac_compile) 2>&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
10907 { ac_try='test -s conftest.$ac_objext'
10908 { (eval echo "$as_me:10908: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:10911: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_sys_largefile_source=1; break
10915 echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10922 echo "$as_me:10922: result: $ac_cv_sys_largefile_source" >&5
10923 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10924 if test "$ac_cv_sys_largefile_source" != no; then
10926 cat >>confdefs.h <<EOF
10927 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10933 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10934 # in glibc 2.1.3, but that breaks too many other things.
10935 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10936 echo "$as_me:10936: checking for fseeko" >&5
10937 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10938 if test "${ac_cv_func_fseeko+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10942 #line 10942 "configure"
10943 #include "confdefs.h"
10948 return fseeko && fseeko (stdin, 0, 0);
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (eval echo "$as_me:10954: \"$ac_link\"") >&5
10955 (eval $ac_link) 2>&5
10957 echo "$as_me:10957: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try='test -s conftest$ac_exeext'
10960 { (eval echo "$as_me:10960: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10963 echo "$as_me:10963: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_func_fseeko=yes
10967 echo "$as_me: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10969 ac_cv_func_fseeko=no
10971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10973 echo "$as_me:10973: result: $ac_cv_func_fseeko" >&5
10974 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10975 if test $ac_cv_func_fseeko = yes; then
10977 cat >>confdefs.h <<\EOF
10978 #define HAVE_FSEEKO 1
10983 # Normally we would collect these definitions in the config.h,
10984 # but (like _XOPEN_SOURCE), some environments rely on having these
10985 # defined before any of the system headers are included. Another
10986 # case comes up with C++, e.g., on AIX the compiler compiles the
10987 # header files by themselves before looking at the body files it is
10988 # told to compile. For ncurses, those header files do not include
10990 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10991 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10992 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10994 echo "$as_me:10994: checking whether to use struct dirent64" >&5
10995 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10996 if test "${cf_cv_struct_dirent64+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11001 #line 11001 "configure"
11002 #include "confdefs.h"
11004 #include <sys/types.h>
11005 #include <dirent.h>
11011 /* if transitional largefile support is setup, this is true */
11012 extern struct dirent64 * readdir(DIR *);
11013 struct dirent64 *x = readdir((DIR *)0);
11014 struct dirent *y = readdir((DIR *)0);
11021 rm -f conftest.$ac_objext
11022 if { (eval echo "$as_me:11022: \"$ac_compile\"") >&5
11023 (eval $ac_compile) 2>&5
11025 echo "$as_me:11025: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:11028: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:11031: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 cf_cv_struct_dirent64=yes
11035 echo "$as_me: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 cf_cv_struct_dirent64=no
11039 rm -f conftest.$ac_objext conftest.$ac_ext
11042 echo "$as_me:11042: result: $cf_cv_struct_dirent64" >&5
11043 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
11044 test "$cf_cv_struct_dirent64" = yes &&
11045 cat >>confdefs.h <<\EOF
11046 #define HAVE_STRUCT_DIRENT64 1
11051 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
11052 echo "$as_me:11052: checking if you want tparm not to use X/Open fixed-parameter list" >&5
11053 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
11055 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
11056 if test "${enable_tparm_varargs+set}" = set; then
11057 enableval="$enable_tparm_varargs"
11058 with_tparm_varargs=$enableval
11060 with_tparm_varargs=yes
11062 echo "$as_me:11062: result: $with_tparm_varargs" >&5
11063 echo "${ECHO_T}$with_tparm_varargs" >&6
11064 NCURSES_TPARM_VARARGS=0
11065 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11067 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11068 if test "$with_ticlib" != no ; then
11069 echo "$as_me:11069: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11070 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11072 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11073 if test "${enable_tic_depends+set}" = set; then
11074 enableval="$enable_tic_depends"
11075 with_tic_depends=$enableval
11077 with_tic_depends=yes
11079 echo "$as_me:11079: result: $with_tic_depends" >&5
11080 echo "${ECHO_T}$with_tic_depends" >&6
11082 with_tic_depends=no
11085 ### use option --with-bool to override bool's type
11086 echo "$as_me:11086: checking for type of bool" >&5
11087 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11089 # Check whether --with-bool or --without-bool was given.
11090 if test "${with_bool+set}" = set; then
11091 withval="$with_bool"
11092 NCURSES_BOOL="$withval"
11096 echo "$as_me:11096: result: $NCURSES_BOOL" >&5
11097 echo "${ECHO_T}$NCURSES_BOOL" >&6
11099 echo "$as_me:11099: checking for alternate terminal capabilities file" >&5
11100 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11102 # Check whether --with-caps or --without-caps was given.
11103 if test "${with_caps+set}" = set; then
11104 withval="$with_caps"
11105 TERMINFO_CAPS=Caps.$withval
11109 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11110 echo "$as_me:11110: result: $TERMINFO_CAPS" >&5
11111 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11113 ### use option --with-chtype to override chtype's type
11114 echo "$as_me:11114: checking for type of chtype" >&5
11115 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11117 # Check whether --with-chtype or --without-chtype was given.
11118 if test "${with_chtype+set}" = set; then
11119 withval="$with_chtype"
11120 NCURSES_CHTYPE="$withval"
11122 NCURSES_CHTYPE=$cf_dft_chtype
11124 echo "$as_me:11124: result: $NCURSES_CHTYPE" >&5
11125 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11127 ### use option --with-ospeed to override ospeed's type
11128 echo "$as_me:11128: checking for type of ospeed" >&5
11129 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11131 # Check whether --with-ospeed or --without-ospeed was given.
11132 if test "${with_ospeed+set}" = set; then
11133 withval="$with_ospeed"
11134 NCURSES_OSPEED="$withval"
11136 NCURSES_OSPEED=short
11138 echo "$as_me:11138: result: $NCURSES_OSPEED" >&5
11139 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11141 ### use option --with-mmask-t to override mmask_t's type
11142 echo "$as_me:11142: checking for type of mmask_t" >&5
11143 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11145 # Check whether --with-mmask-t or --without-mmask-t was given.
11146 if test "${with_mmask_t+set}" = set; then
11147 withval="$with_mmask_t"
11148 NCURSES_MMASK_T="$withval"
11150 NCURSES_MMASK_T=$cf_dft_mmask_t
11152 echo "$as_me:11152: result: $NCURSES_MMASK_T" >&5
11153 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11155 ### use option --with-ccharw-max to override CCHARW_MAX size
11156 echo "$as_me:11156: checking for size CCHARW_MAX" >&5
11157 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11159 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11160 if test "${with_ccharw_max+set}" = set; then
11161 withval="$with_ccharw_max"
11162 NCURSES_CCHARW_MAX="$withval"
11164 NCURSES_CCHARW_MAX=5
11166 echo "$as_me:11166: result: $NCURSES_CCHARW_MAX" >&5
11167 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11169 ### use option --with-tparm-arg to override tparm's argument type
11170 echo "$as_me:11170: checking for type of tparm args" >&5
11171 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11173 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11174 if test "${with_tparm_arg+set}" = set; then
11175 withval="$with_tparm_arg"
11176 NCURSES_TPARM_ARG="$withval"
11178 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11180 echo "$as_me:11180: result: $NCURSES_TPARM_ARG" >&5
11181 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11183 ### Enable compiling-in rcs id's
11184 echo "$as_me:11184: checking if RCS identifiers should be compiled-in" >&5
11185 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11187 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11188 if test "${with_rcs_ids+set}" = set; then
11189 withval="$with_rcs_ids"
11190 with_rcs_ids=$withval
11194 echo "$as_me:11194: result: $with_rcs_ids" >&5
11195 echo "${ECHO_T}$with_rcs_ids" >&6
11196 test "x$with_rcs_ids" = xyes &&
11197 cat >>confdefs.h <<\EOF
11198 #define USE_RCS_IDS 1
11201 ###############################################################################
11203 echo "$as_me:11203: checking format of man-pages" >&5
11204 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11206 # Check whether --with-manpage-format or --without-manpage-format was given.
11207 if test "${with_manpage_format+set}" = set; then
11208 withval="$with_manpage_format"
11209 MANPAGE_FORMAT=$withval
11211 MANPAGE_FORMAT=unknown
11214 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11215 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11219 case $MANPAGE_FORMAT in
11221 if test -z "$MANPATH" ; then
11222 MANPATH="/usr/man:/usr/share/man"
11225 # look for the 'date' man-page (it's most likely to be installed!)
11231 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11232 for cf_dir in $MANPATH; do
11233 test -z "$cf_dir" && cf_dir=/usr/man
11234 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
11236 cf_test=`echo $cf_name | sed -e 's/*//'`
11237 if test "x$cf_test" = "x$cf_name" ; then
11240 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11241 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11242 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11243 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11257 # if we found a match in either man* or cat*, stop looking
11258 if test -n "$MANPAGE_FORMAT" ; then
11260 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11261 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11267 test $cf_found=yes && break
11270 # only check the first directory in $MANPATH where we find manpages
11271 if test -n "$MANPAGE_FORMAT" ; then
11275 # if we did not find the example, just assume it is normal
11276 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11280 for cf_option in $MANPAGE_FORMAT; do
11282 (gzip|compress|BSDI|normal|formatted|catonly)
11285 cf_unknown="$cf_unknown $cf_option"
11292 echo "$as_me:11292: result: $MANPAGE_FORMAT" >&5
11293 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11294 if test -n "$cf_unknown" ; then
11295 { echo "$as_me:11295: WARNING: Unexpected manpage-format $cf_unknown" >&5
11296 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11299 echo "$as_me:11299: checking for manpage renaming" >&5
11300 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11302 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11303 if test "${with_manpage_renames+set}" = set; then
11304 withval="$with_manpage_renames"
11305 MANPAGE_RENAMES=$withval
11307 MANPAGE_RENAMES=yes
11310 case ".$MANPAGE_RENAMES" in
11314 # Debian 'man' program?
11315 if test -f /etc/debian_version ; then
11316 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11323 if test "$MANPAGE_RENAMES" != no ; then
11324 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11325 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11326 elif test ! -f $MANPAGE_RENAMES ; then
11327 { { echo "$as_me:11327: error: not a filename: $MANPAGE_RENAMES" >&5
11328 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11329 { (exit 1); exit 1; }; }
11332 test ! -d man && mkdir man
11334 # Construct a sed-script to perform renaming within man-pages
11335 if test -n "$MANPAGE_RENAMES" ; then
11336 test ! -d man && mkdir man
11337 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11341 echo "$as_me:11341: result: $MANPAGE_RENAMES" >&5
11342 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11344 echo "$as_me:11344: checking if manpage aliases will be installed" >&5
11345 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11347 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11348 if test "${with_manpage_aliases+set}" = set; then
11349 withval="$with_manpage_aliases"
11350 MANPAGE_ALIASES=$withval
11352 MANPAGE_ALIASES=yes
11355 echo "$as_me:11355: result: $MANPAGE_ALIASES" >&5
11356 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11360 cf_use_symlinks=yes
11367 MANPAGE_SYMLINKS=no
11368 if test "$MANPAGE_ALIASES" = yes ; then
11369 echo "$as_me:11369: checking if manpage symlinks should be used" >&5
11370 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11372 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11373 if test "${with_manpage_symlinks+set}" = set; then
11374 withval="$with_manpage_symlinks"
11375 MANPAGE_SYMLINKS=$withval
11377 MANPAGE_SYMLINKS=$cf_use_symlinks
11380 if test "$$cf_use_symlinks" = no; then
11381 if test "$MANPAGE_SYMLINKS" = yes ; then
11382 { echo "$as_me:11382: WARNING: cannot make symlinks" >&5
11383 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11384 MANPAGE_SYMLINKS=no
11388 echo "$as_me:11388: result: $MANPAGE_SYMLINKS" >&5
11389 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11392 echo "$as_me:11392: checking for manpage tbl" >&5
11393 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11395 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11396 if test "${with_manpage_tbl+set}" = set; then
11397 withval="$with_manpage_tbl"
11398 MANPAGE_TBL=$withval
11403 echo "$as_me:11403: result: $MANPAGE_TBL" >&5
11404 echo "${ECHO_T}$MANPAGE_TBL" >&6
11406 if test "$prefix" = "NONE" ; then
11407 cf_prefix="$ac_default_prefix"
11409 cf_prefix="$prefix"
11412 case "$MANPAGE_FORMAT" in
11427 test ! -d man && mkdir man
11431 case "$MANPAGE_FORMAT" in
11434 cf_compress=compress
11442 cf_edit_man=./edit_man.sh
11443 cf_man_alias=`pwd`/man_alias.sed
11445 cat >$cf_edit_man <<CF_EOF
11447 # this script is generated by the configure-script CF_MAN_PAGES macro.
11449 prefix="$cf_prefix"
11450 datarootdir="$datarootdir"
11453 NCURSES_MAJOR="$NCURSES_MAJOR"
11454 NCURSES_MINOR="$NCURSES_MINOR"
11455 NCURSES_PATCH="$NCURSES_PATCH"
11457 NCURSES_OSPEED="$NCURSES_OSPEED"
11458 TERMINFO="$TERMINFO"
11461 INSTALL_DATA="$INSTALL_DATA"
11463 transform="$program_transform_name"
11465 TMP=\${TMPDIR:=/tmp}/man\$\$
11466 trap "rm -f \$TMP" 0 1 2 5 15
11478 top_srcdir=\$srcdir/..
11481 if test "\$form" = normal ; then
11482 if test "$cf_format" = yes ; then
11483 if test "$cf_inboth" = no ; then
11484 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11488 cf_subdir=\$mandir/man
11489 cf_tables=$MANPAGE_TBL
11491 cf_subdir=\$mandir/cat
11495 # process the list of source-files
11500 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11501 if test \$verb = installing ; then
11502 if test ! -d \$cf_subdir\${section} ; then
11503 mkdir -p \$cf_subdir\$section
11507 # replace variables in man page
11508 if test ! -f $cf_man_alias ; then
11509 cat >>$cf_man_alias <<-CF_EOF2
11510 s,@DATADIR@,\$datadir,g
11511 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11512 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11513 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11514 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11515 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11516 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11519 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
11521 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11522 cf_name=`echo $cf_name|sed "$program_transform_name"`
11523 cat >>$cf_edit_man <<-CF_EOF
11524 s,@$cf_NAME@,$cf_name,g
11528 cat >>$cf_edit_man <<CF_EOF
11530 echo "...made $cf_man_alias"
11534 cf_source=\`basename \$i\`
11535 inalias=\$cf_source
11536 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11537 if test ! -f \$inalias ; then
11538 echo .. skipped \$cf_source
11543 if test "$MANPAGE_ALIASES" != no ; then
11544 cat >>$cf_edit_man <<CF_EOF
11546 test $with_curses_h = yes && nCurses=ncurses.3x
11547 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11551 if test "$MANPAGE_RENAMES" = no ; then
11552 cat >>$cf_edit_man <<CF_EOF
11553 # perform program transformations for section 1 man pages
11554 if test \$section = 1 ; then
11555 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11557 cf_target=\$cf_subdir\${section}/\$cf_source
11561 cat >>$cf_edit_man <<CF_EOF
11562 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11563 if test -z "\$cf_target" ; then
11564 echo '? missing rename for '\$cf_source
11565 cf_target="\$cf_source"
11567 cf_target="\$cf_subdir\${section}/\${cf_target}"
11572 cat >>$cf_edit_man <<CF_EOF
11573 sed -f $cf_man_alias \\
11576 if test -f $MANPAGE_RENAMES ; then
11577 cat >>$cf_edit_man <<CF_EOF
11578 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11581 cat >>$cf_edit_man <<CF_EOF
11586 cat >>$cf_edit_man <<CF_EOF
11587 if test \$cf_tables = yes ; then
11588 tbl \$TMP >\$TMP.out
11593 if test $with_overwrite != yes ; then
11594 cat >>$cf_edit_man <<CF_EOF
11595 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11600 if test $with_curses_h != yes ; then
11601 cat >>$cf_edit_man <<CF_EOF
11602 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11607 cat >>$cf_edit_man <<CF_EOF
11608 if test \$form = format ; then
11609 nroff -man \$TMP >\$TMP.out
11614 if test -n "$cf_compress" ; then
11615 cat >>$cf_edit_man <<CF_EOF
11616 if test \$verb = installing ; then
11617 if ( $cf_compress -f \$TMP )
11619 mv \$TMP.$cf_so_strip \$TMP
11622 cf_target="\$cf_target.$cf_so_strip"
11626 case "$MANPAGE_FORMAT" in
11628 cat >>$cf_edit_man <<CF_EOF
11629 if test \$form = format ; then
11630 # BSDI installs only .0 suffixes in the cat directories
11631 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11637 cat >>$cf_edit_man <<CF_EOF
11638 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11639 if test \$verb = installing ; then
11640 echo \$verb \$cf_target
11641 \$INSTALL_DATA \$TMP \$cf_target
11642 test -d \$cf_subdir\${section} &&
11643 test -n "\$aliases" && (
11644 cd \$cf_subdir\${section} && (
11645 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11646 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11647 cf_target=\`basename \$cf_target\`
11648 for cf_alias in \$aliases
11650 if test \$section = 1 ; then
11651 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11654 if test "$MANPAGE_SYMLINKS" = yes ; then
11655 if test -f \$cf_alias\${suffix} ; then
11656 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11661 echo .. \$verb alias \$cf_alias\${suffix}
11665 cat >>$cf_edit_man <<CF_EOF
11666 $LN_S \$cf_target \$cf_alias\${suffix}
11670 cat >>$cf_edit_man <<CF_EOF
11671 rm -f \$cf_alias\${suffix}
11672 $LN_S \$cf_target \$cf_alias\${suffix}
11676 cat >>$cf_edit_man <<CF_EOF
11677 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11678 echo ".so \$cf_source" >\$TMP
11680 if test -n "$cf_compress" ; then
11681 cat >>$cf_edit_man <<CF_EOF
11682 if test -n "$cf_so_strip" ; then
11683 $cf_compress -f \$TMP
11684 mv \$TMP.$cf_so_strip \$TMP
11688 cat >>$cf_edit_man <<CF_EOF
11689 echo .. \$verb alias \$cf_alias\${suffix}
11690 rm -f \$cf_alias\${suffix}
11691 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11696 elif test \$verb = removing ; then
11697 test -f \$cf_target && (
11698 echo \$verb \$cf_target
11701 test -d \$cf_subdir\${section} &&
11702 test -n "\$aliases" && (
11703 cd \$cf_subdir\${section} && (
11704 for cf_alias in \$aliases
11706 if test \$section = 1 ; then
11707 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11710 echo .. \$verb alias \$cf_alias\${suffix}
11711 rm -f \$cf_alias\${suffix}
11723 if test $cf_inboth = yes ; then
11724 if test \$form != format ; then
11725 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11731 chmod 755 $cf_edit_man
11733 ###############################################################################
11735 ### Note that some functions (such as const) are normally disabled anyway.
11736 echo "$as_me:11736: checking if you want to build with function extensions" >&5
11737 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11739 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11740 if test "${enable_ext_funcs+set}" = set; then
11741 enableval="$enable_ext_funcs"
11742 with_ext_funcs=$enableval
11746 echo "$as_me:11746: result: $with_ext_funcs" >&5
11747 echo "${ECHO_T}$with_ext_funcs" >&6
11748 if test "x$with_ext_funcs" = xyes ; then
11749 NCURSES_EXT_FUNCS=1
11751 cat >>confdefs.h <<\EOF
11752 #define HAVE_ASSUME_DEFAULT_COLORS 1
11755 cat >>confdefs.h <<\EOF
11756 #define HAVE_CURSES_VERSION 1
11759 cat >>confdefs.h <<\EOF
11760 #define HAVE_HAS_KEY 1
11763 cat >>confdefs.h <<\EOF
11764 #define HAVE_RESIZETERM 1
11767 cat >>confdefs.h <<\EOF
11768 #define HAVE_RESIZE_TERM 1
11771 cat >>confdefs.h <<\EOF
11772 #define HAVE_TERM_ENTRY_H 1
11775 cat >>confdefs.h <<\EOF
11776 #define HAVE_USE_DEFAULT_COLORS 1
11779 cat >>confdefs.h <<\EOF
11780 #define HAVE_USE_SCREEN 1
11783 cat >>confdefs.h <<\EOF
11784 #define HAVE_USE_WINDOW 1
11787 cat >>confdefs.h <<\EOF
11788 #define HAVE_WRESIZE 1
11791 cat >>confdefs.h <<\EOF
11792 #define NCURSES_EXT_FUNCS 1
11795 GENERATED_EXT_FUNCS=generated
11797 NCURSES_EXT_FUNCS=0
11798 GENERATED_EXT_FUNCS=
11801 echo "$as_me:11801: checking if you want to build with SCREEN extensions" >&5
11802 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
11804 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11805 if test "${enable_sp_funcs+set}" = set; then
11806 enableval="$enable_sp_funcs"
11807 with_sp_funcs=$enableval
11809 with_sp_funcs=$cf_dft_ext_spfuncs
11811 echo "$as_me:11811: result: $with_sp_funcs" >&5
11812 echo "${ECHO_T}$with_sp_funcs" >&6
11813 if test "x$with_sp_funcs" = xyes ; then
11816 cat >>confdefs.h <<\EOF
11817 #define NCURSES_SP_FUNCS 1
11820 GENERATED_SP_FUNCS=generated
11823 GENERATED_SP_FUNCS=
11826 echo "$as_me:11826: checking if you want to build with terminal-driver" >&5
11827 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
11829 # Check whether --enable-term-driver or --disable-term-driver was given.
11830 if test "${enable_term_driver+set}" = set; then
11831 enableval="$enable_term_driver"
11832 with_term_driver=$enableval
11834 with_term_driver=no
11836 echo "$as_me:11836: result: $with_term_driver" >&5
11837 echo "${ECHO_T}$with_term_driver" >&6
11838 if test "x$with_term_driver" = xyes ; then
11840 cat >>confdefs.h <<\EOF
11841 #define USE_TERM_DRIVER 1
11844 if test "x$with_termlib" != xno ; then
11845 { { echo "$as_me:11845: error: The term-driver option conflicts with the termlib option" >&5
11846 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
11847 { (exit 1); exit 1; }; }
11849 if test "x$with_sp_funcs" != xyes ; then
11850 { { echo "$as_me:11850: error: The term-driver option relies upon sp-funcs" >&5
11851 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11852 { (exit 1); exit 1; }; }
11856 ### use option --enable-const to turn on use of const beyond that in XSI.
11857 echo "$as_me:11857: checking for extended use of const keyword" >&5
11858 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11860 # Check whether --enable-const or --disable-const was given.
11861 if test "${enable_const+set}" = set; then
11862 enableval="$enable_const"
11863 with_ext_const=$enableval
11865 with_ext_const=$cf_dft_ext_const
11867 echo "$as_me:11867: result: $with_ext_const" >&5
11868 echo "${ECHO_T}$with_ext_const" >&6
11869 NCURSES_CONST='/*nothing*/'
11870 if test "x$with_ext_const" = xyes ; then
11871 NCURSES_CONST=const
11874 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11875 echo "$as_me:11875: checking if you want to use extended colors" >&5
11876 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11878 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11879 if test "${enable_ext_colors+set}" = set; then
11880 enableval="$enable_ext_colors"
11881 with_ext_colors=$enableval
11883 with_ext_colors=$cf_dft_ext_colors
11885 echo "$as_me:11885: result: $with_ext_colors" >&5
11886 echo "${ECHO_T}$with_ext_colors" >&6
11887 NCURSES_EXT_COLORS=0
11888 if test "x$with_ext_colors" = xyes ; then
11889 if test "x$with_widec" != xyes ; then
11890 { echo "$as_me:11890: WARNING: This option applies only to wide-character library" >&5
11891 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
11893 # cannot be ABI 5 since it changes sizeof(cchar_t)
11895 if test "${with_abi_version+set}" != set; then
11896 case $cf_cv_rel_version in
11898 cf_cv_rel_version=6.0
11899 cf_cv_abi_version=6
11900 { echo "$as_me:11900: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11901 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11906 NCURSES_EXT_COLORS=1
11908 cat >>confdefs.h <<\EOF
11909 #define NCURSES_EXT_COLORS 1
11915 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11916 echo "$as_me:11916: checking if you want to use extended mouse encoding" >&5
11917 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11919 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11920 if test "${enable_ext_mouse+set}" = set; then
11921 enableval="$enable_ext_mouse"
11922 with_ext_mouse=$enableval
11924 with_ext_mouse=$cf_dft_ext_mouse
11926 echo "$as_me:11926: result: $with_ext_mouse" >&5
11927 echo "${ECHO_T}$with_ext_mouse" >&6
11928 NCURSES_MOUSE_VERSION=1
11929 if test "x$with_ext_mouse" = xyes ; then
11930 NCURSES_MOUSE_VERSION=2
11932 if test "${with_abi_version+set}" != set; then
11933 case $cf_cv_rel_version in
11935 cf_cv_rel_version=6.0
11936 cf_cv_abi_version=6
11937 { echo "$as_me:11937: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11938 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11945 ### use option --enable-ext-putwin to turn on extended screendumps
11946 echo "$as_me:11946: checking if you want to use extended putwin/screendump" >&5
11947 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
11949 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
11950 if test "${enable_ext_putwin+set}" = set; then
11951 enableval="$enable_ext_putwin"
11952 with_ext_putwin=$enableval
11954 with_ext_putwin=$cf_dft_ext_putwin
11956 echo "$as_me:11956: result: $with_ext_putwin" >&5
11957 echo "${ECHO_T}$with_ext_putwin" >&6
11958 if test "x$with_ext_putwin" = xyes ; then
11960 cat >>confdefs.h <<\EOF
11961 #define NCURSES_EXT_PUTWIN 1
11966 echo "$as_me:11966: checking if you want \$NCURSES_NO_PADDING code" >&5
11967 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11969 # Check whether --enable-no-padding or --disable-no-padding was given.
11970 if test "${enable_no_padding+set}" = set; then
11971 enableval="$enable_no_padding"
11972 with_no_padding=$enableval
11974 with_no_padding=$with_ext_funcs
11976 echo "$as_me:11976: result: $with_no_padding" >&5
11977 echo "${ECHO_T}$with_no_padding" >&6
11978 test "x$with_no_padding" = xyes &&
11979 cat >>confdefs.h <<\EOF
11980 #define NCURSES_NO_PADDING 1
11983 echo "$as_me:11983: checking for ANSI C header files" >&5
11984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11985 if test "${ac_cv_header_stdc+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line 11989 "configure"
11990 #include "confdefs.h"
11991 #include <stdlib.h>
11992 #include <stdarg.h>
11993 #include <string.h>
11997 if { (eval echo "$as_me:11997: \"$ac_cpp conftest.$ac_ext\"") >&5
11998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12000 egrep -v '^ *\+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:12003: \$? = $ac_status" >&5
12004 (exit $ac_status); } >/dev/null; then
12005 if test -s conftest.err; then
12006 ac_cpp_err=$ac_c_preproc_warn_flag
12013 if test -z "$ac_cpp_err"; then
12014 ac_cv_header_stdc=yes
12016 echo "$as_me: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 ac_cv_header_stdc=no
12020 rm -f conftest.err conftest.$ac_ext
12022 if test $ac_cv_header_stdc = yes; then
12023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12024 cat >conftest.$ac_ext <<_ACEOF
12025 #line 12025 "configure"
12026 #include "confdefs.h"
12027 #include <string.h>
12030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12031 egrep "memchr" >/dev/null 2>&1; then
12034 ac_cv_header_stdc=no
12040 if test $ac_cv_header_stdc = yes; then
12041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line 12043 "configure"
12044 #include "confdefs.h"
12045 #include <stdlib.h>
12048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12049 egrep "free" >/dev/null 2>&1; then
12052 ac_cv_header_stdc=no
12058 if test $ac_cv_header_stdc = yes; then
12059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12060 if test "$cross_compiling" = yes; then
12063 cat >conftest.$ac_ext <<_ACEOF
12064 #line 12064 "configure"
12065 #include "confdefs.h"
12067 #if ((' ' & 0x0FF) == 0x020)
12068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12071 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12072 || ('j' <= (c) && (c) <= 'r') \
12073 || ('s' <= (c) && (c) <= 'z'))
12074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12082 for (i = 0; i < 256; i++)
12083 if (XOR (islower (i), ISLOWER (i))
12084 || toupper (i) != TOUPPER (i))
12085 $ac_main_return(2);
12086 $ac_main_return (0);
12089 rm -f conftest$ac_exeext
12090 if { (eval echo "$as_me:12090: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>&5
12093 echo "$as_me:12093: \$? = $ac_status" >&5
12094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12095 { (eval echo "$as_me:12095: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:12098: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12102 echo "$as_me: program exited with status $ac_status" >&5
12103 echo "$as_me: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 ac_cv_header_stdc=no
12107 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12111 echo "$as_me:12111: result: $ac_cv_header_stdc" >&5
12112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12113 if test $ac_cv_header_stdc = yes; then
12115 cat >>confdefs.h <<\EOF
12116 #define STDC_HEADERS 1
12121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12124 inttypes.h stdint.h unistd.h
12126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 echo "$as_me:12127: checking for $ac_header" >&5
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.$ac_ext <<_ACEOF
12133 #line 12133 "configure"
12134 #include "confdefs.h"
12135 $ac_includes_default
12136 #include <$ac_header>
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:12139: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>&5
12142 echo "$as_me:12142: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:12145: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:12148: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 eval "$as_ac_Header=yes"
12152 echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 eval "$as_ac_Header=no"
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:12158: result: `eval echo '${'$as_ac_Header'}'`" >&5
12159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12161 cat >>confdefs.h <<EOF
12162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12168 echo "$as_me:12168: checking for signed char" >&5
12169 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12170 if test "${ac_cv_type_signed_char+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 cat >conftest.$ac_ext <<_ACEOF
12174 #line 12174 "configure"
12175 #include "confdefs.h"
12176 $ac_includes_default
12180 if ((signed char *) 0)
12182 if (sizeof (signed char))
12188 rm -f conftest.$ac_objext
12189 if { (eval echo "$as_me:12189: \"$ac_compile\"") >&5
12190 (eval $ac_compile) 2>&5
12192 echo "$as_me:12192: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:12195: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:12198: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_type_signed_char=yes
12202 echo "$as_me: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12204 ac_cv_type_signed_char=no
12206 rm -f conftest.$ac_objext conftest.$ac_ext
12208 echo "$as_me:12208: result: $ac_cv_type_signed_char" >&5
12209 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12211 echo "$as_me:12211: checking size of signed char" >&5
12212 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12213 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 if test "$ac_cv_type_signed_char" = yes; then
12217 if test "$cross_compiling" = yes; then
12218 # Depending upon the size, compute the lo and hi bounds.
12219 cat >conftest.$ac_ext <<_ACEOF
12220 #line 12220 "configure"
12221 #include "confdefs.h"
12222 $ac_includes_default
12226 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12231 rm -f conftest.$ac_objext
12232 if { (eval echo "$as_me:12232: \"$ac_compile\"") >&5
12233 (eval $ac_compile) 2>&5
12235 echo "$as_me:12235: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:12238: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:12241: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12245 cat >conftest.$ac_ext <<_ACEOF
12246 #line 12246 "configure"
12247 #include "confdefs.h"
12248 $ac_includes_default
12252 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:12258: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>&5
12261 echo "$as_me:12261: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:12264: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:12267: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_hi=$ac_mid; break
12271 echo "$as_me: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12275 rm -f conftest.$ac_objext conftest.$ac_ext
12278 echo "$as_me: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12282 cat >conftest.$ac_ext <<_ACEOF
12283 #line 12283 "configure"
12284 #include "confdefs.h"
12285 $ac_includes_default
12289 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:12295: \"$ac_compile\"") >&5
12296 (eval $ac_compile) 2>&5
12298 echo "$as_me:12298: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -s conftest.$ac_objext'
12301 { (eval echo "$as_me:12301: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:12304: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_lo=$ac_mid; break
12308 echo "$as_me: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12310 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12312 rm -f conftest.$ac_objext conftest.$ac_ext
12315 rm -f conftest.$ac_objext conftest.$ac_ext
12316 # Binary search between lo and hi bounds.
12317 while test "x$ac_lo" != "x$ac_hi"; do
12318 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12319 cat >conftest.$ac_ext <<_ACEOF
12320 #line 12320 "configure"
12321 #include "confdefs.h"
12322 $ac_includes_default
12326 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12331 rm -f conftest.$ac_objext
12332 if { (eval echo "$as_me:12332: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>&5
12335 echo "$as_me:12335: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -s conftest.$ac_objext'
12338 { (eval echo "$as_me:12338: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:12341: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12345 echo "$as_me: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 ac_lo=`expr $ac_mid + 1`
12349 rm -f conftest.$ac_objext conftest.$ac_ext
12351 ac_cv_sizeof_signed_char=$ac_lo
12353 if test "$cross_compiling" = yes; then
12354 { { echo "$as_me:12354: error: cannot run test program while cross compiling" >&5
12355 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12356 { (exit 1); exit 1; }; }
12358 cat >conftest.$ac_ext <<_ACEOF
12359 #line 12359 "configure"
12360 #include "confdefs.h"
12361 $ac_includes_default
12365 FILE *f = fopen ("conftest.val", "w");
12367 $ac_main_return (1);
12368 fprintf (f, "%d", (sizeof (signed char)));
12374 rm -f conftest$ac_exeext
12375 if { (eval echo "$as_me:12375: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>&5
12378 echo "$as_me:12378: \$? = $ac_status" >&5
12379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12380 { (eval echo "$as_me:12380: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:12383: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_sizeof_signed_char=`cat conftest.val`
12387 echo "$as_me: program exited with status $ac_status" >&5
12388 echo "$as_me: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12391 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12396 ac_cv_sizeof_signed_char=0
12399 echo "$as_me:12399: result: $ac_cv_sizeof_signed_char" >&5
12400 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12401 cat >>confdefs.h <<EOF
12402 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12405 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12406 NCURSES_SBOOL="signed char"
12408 NCURSES_SBOOL="char"
12410 echo "$as_me:12410: checking if you want to use signed Boolean array in term.h" >&5
12411 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12413 # Check whether --enable-signed-char or --disable-signed-char was given.
12414 if test "${enable_signed_char+set}" = set; then
12415 enableval="$enable_signed_char"
12416 with_signed_char=$enableval
12418 with_signed_char=no
12420 echo "$as_me:12420: result: $with_signed_char" >&5
12421 echo "${ECHO_T}$with_signed_char" >&6
12422 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12424 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12425 echo "$as_me:12425: checking if you want SIGWINCH handler" >&5
12426 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12428 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12429 if test "${enable_sigwinch+set}" = set; then
12430 enableval="$enable_sigwinch"
12431 with_sigwinch=$enableval
12433 with_sigwinch=$with_ext_funcs
12435 echo "$as_me:12435: result: $with_sigwinch" >&5
12436 echo "${ECHO_T}$with_sigwinch" >&6
12437 test "x$with_sigwinch" = xyes &&
12438 cat >>confdefs.h <<\EOF
12439 #define USE_SIGWINCH 1
12442 ### use option --enable-tcap-names to allow user to define new capabilities
12443 echo "$as_me:12443: checking if you want user-definable terminal capabilities like termcap" >&5
12444 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12446 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12447 if test "${enable_tcap_names+set}" = set; then
12448 enableval="$enable_tcap_names"
12449 with_tcap_names=$enableval
12451 with_tcap_names=$with_ext_funcs
12453 echo "$as_me:12453: result: $with_tcap_names" >&5
12454 echo "${ECHO_T}$with_tcap_names" >&6
12456 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12458 ###############################################################################
12459 # These options are relatively safe to experiment with.
12461 echo "$as_me:12461: checking if you want all development code" >&5
12462 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12464 # Check whether --with-develop or --without-develop was given.
12465 if test "${with_develop+set}" = set; then
12466 withval="$with_develop"
12467 with_develop=$withval
12471 echo "$as_me:12471: result: $with_develop" >&5
12472 echo "${ECHO_T}$with_develop" >&6
12474 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12475 echo "$as_me:12475: checking if you want hard-tabs code" >&5
12476 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12478 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12479 if test "${enable_hard_tabs+set}" = set; then
12480 enableval="$enable_hard_tabs"
12483 enable_hard_tabs=$with_develop
12485 echo "$as_me:12485: result: $enable_hard_tabs" >&5
12486 echo "${ECHO_T}$enable_hard_tabs" >&6
12487 test "x$enable_hard_tabs" = xyes &&
12488 cat >>confdefs.h <<\EOF
12489 #define USE_HARD_TABS 1
12492 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12493 echo "$as_me:12493: checking if you want limited support for xmc" >&5
12494 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12496 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12497 if test "${enable_xmc_glitch+set}" = set; then
12498 enableval="$enable_xmc_glitch"
12501 enable_xmc_glitch=$with_develop
12503 echo "$as_me:12503: result: $enable_xmc_glitch" >&5
12504 echo "${ECHO_T}$enable_xmc_glitch" >&6
12505 test "x$enable_xmc_glitch" = xyes &&
12506 cat >>confdefs.h <<\EOF
12507 #define USE_XMC_SUPPORT 1
12510 ###############################################################################
12511 # These are just experimental, probably should not be in a package:
12513 echo "$as_me:12513: checking if you do not want to assume colors are white-on-black" >&5
12514 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12516 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12517 if test "${enable_assumed_color+set}" = set; then
12518 enableval="$enable_assumed_color"
12519 with_assumed_color=$enableval
12521 with_assumed_color=yes
12523 echo "$as_me:12523: result: $with_assumed_color" >&5
12524 echo "${ECHO_T}$with_assumed_color" >&6
12525 test "x$with_assumed_color" = xyes &&
12526 cat >>confdefs.h <<\EOF
12527 #define USE_ASSUMED_COLOR 1
12530 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12531 echo "$as_me:12531: checking if you want hashmap scrolling-optimization code" >&5
12532 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12534 # Check whether --enable-hashmap or --disable-hashmap was given.
12535 if test "${enable_hashmap+set}" = set; then
12536 enableval="$enable_hashmap"
12537 with_hashmap=$enableval
12541 echo "$as_me:12541: result: $with_hashmap" >&5
12542 echo "${ECHO_T}$with_hashmap" >&6
12543 test "x$with_hashmap" = xyes &&
12544 cat >>confdefs.h <<\EOF
12545 #define USE_HASHMAP 1
12548 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12549 echo "$as_me:12549: checking if you want colorfgbg code" >&5
12550 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12552 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12553 if test "${enable_colorfgbg+set}" = set; then
12554 enableval="$enable_colorfgbg"
12555 with_colorfgbg=$enableval
12559 echo "$as_me:12559: result: $with_colorfgbg" >&5
12560 echo "${ECHO_T}$with_colorfgbg" >&6
12561 test "x$with_colorfgbg" = xyes &&
12562 cat >>confdefs.h <<\EOF
12563 #define USE_COLORFGBG 1
12566 ### use option --enable-interop to turn on use of bindings used for interop
12567 echo "$as_me:12567: checking if you want interop bindings" >&5
12568 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12570 # Check whether --enable-interop or --disable-interop was given.
12571 if test "${enable_interop+set}" = set; then
12572 enableval="$enable_interop"
12573 with_exp_interop=$enableval
12575 with_exp_interop=$cf_dft_interop
12577 echo "$as_me:12577: result: $with_exp_interop" >&5
12578 echo "${ECHO_T}$with_exp_interop" >&6
12580 NCURSES_INTEROP_FUNCS=0
12581 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12583 # This is still experimental (20080329), but should ultimately be moved to
12584 # the script-block --with-normal, etc.
12586 echo "$as_me:12586: checking if you want to link with the pthread library" >&5
12587 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12589 # Check whether --with-pthread or --without-pthread was given.
12590 if test "${with_pthread+set}" = set; then
12591 withval="$with_pthread"
12592 with_pthread=$withval
12596 echo "$as_me:12596: result: $with_pthread" >&5
12597 echo "${ECHO_T}$with_pthread" >&6
12599 if test "$with_pthread" != no ; then
12600 echo "$as_me:12600: checking for pthread.h" >&5
12601 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12602 if test "${ac_cv_header_pthread_h+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 cat >conftest.$ac_ext <<_ACEOF
12606 #line 12606 "configure"
12607 #include "confdefs.h"
12608 #include <pthread.h>
12610 if { (eval echo "$as_me:12610: \"$ac_cpp conftest.$ac_ext\"") >&5
12611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12613 egrep -v '^ *\+' conftest.er1 >conftest.err
12615 cat conftest.err >&5
12616 echo "$as_me:12616: \$? = $ac_status" >&5
12617 (exit $ac_status); } >/dev/null; then
12618 if test -s conftest.err; then
12619 ac_cpp_err=$ac_c_preproc_warn_flag
12626 if test -z "$ac_cpp_err"; then
12627 ac_cv_header_pthread_h=yes
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 ac_cv_header_pthread_h=no
12633 rm -f conftest.err conftest.$ac_ext
12635 echo "$as_me:12635: result: $ac_cv_header_pthread_h" >&5
12636 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12637 if test $ac_cv_header_pthread_h = yes; then
12639 cat >>confdefs.h <<\EOF
12640 #define HAVE_PTHREADS_H 1
12643 for cf_lib_pthread in pthread c_r
12645 echo "$as_me:12645: checking if we can link with the $cf_lib_pthread library" >&5
12646 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12647 cf_save_LIBS="$LIBS"
12649 cf_add_libs="-l$cf_lib_pthread"
12650 # Filter out duplicates - this happens with badly-designed ".pc" files...
12651 for cf_add_1lib in $LIBS
12653 for cf_add_2lib in $cf_add_libs
12655 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12661 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12663 LIBS="$cf_add_libs"
12665 cat >conftest.$ac_ext <<_ACEOF
12666 #line 12666 "configure"
12667 #include "confdefs.h"
12669 #include <pthread.h>
12675 int rc = pthread_create(0,0,0,0);
12676 int r2 = pthread_mutexattr_settype(0, 0);
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (eval echo "$as_me:12683: \"$ac_link\"") >&5
12684 (eval $ac_link) 2>&5
12686 echo "$as_me:12686: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -s conftest$ac_exeext'
12689 { (eval echo "$as_me:12689: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:12692: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12696 echo "$as_me: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12701 LIBS="$cf_save_LIBS"
12702 echo "$as_me:12702: result: $with_pthread" >&5
12703 echo "${ECHO_T}$with_pthread" >&6
12704 test "$with_pthread" = yes && break
12707 if test "$with_pthread" = yes ; then
12709 cf_add_libs="-l$cf_lib_pthread"
12710 # Filter out duplicates - this happens with badly-designed ".pc" files...
12711 for cf_add_1lib in $LIBS
12713 for cf_add_2lib in $cf_add_libs
12715 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12721 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12723 LIBS="$cf_add_libs"
12725 cat >>confdefs.h <<\EOF
12726 #define HAVE_LIBPTHREADS 1
12730 { { echo "$as_me:12730: error: Cannot link with pthread library" >&5
12731 echo "$as_me: error: Cannot link with pthread library" >&2;}
12732 { (exit 1); exit 1; }; }
12739 if test "x$with_pthread" != xno; then
12740 echo "$as_me:12740: checking for pthread_kill" >&5
12741 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12742 if test "${ac_cv_func_pthread_kill+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line 12746 "configure"
12747 #include "confdefs.h"
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char pthread_kill (); below. */
12750 #include <assert.h>
12751 /* Override any gcc2 internal prototype to avoid an error. */
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757 char pthread_kill ();
12763 /* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12769 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (eval echo "$as_me:12777: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>&5
12780 echo "$as_me:12780: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:12783: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12786 echo "$as_me:12786: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 ac_cv_func_pthread_kill=yes
12790 echo "$as_me: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12792 ac_cv_func_pthread_kill=no
12794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12796 echo "$as_me:12796: result: $ac_cv_func_pthread_kill" >&5
12797 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12798 if test $ac_cv_func_pthread_kill = yes; then
12800 echo "$as_me:12800: checking if you want to allow EINTR in wgetch with pthreads" >&5
12801 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12803 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12804 if test "${enable_pthreads_eintr+set}" = set; then
12805 enableval="$enable_pthreads_eintr"
12806 use_pthreads_eintr=$enableval
12808 use_pthreads_eintr=no
12810 echo "$as_me:12810: result: $use_pthreads_eintr" >&5
12811 echo "${ECHO_T}$use_pthreads_eintr" >&6
12812 if test "x$use_pthreads_eintr" = xyes ; then
12814 cat >>confdefs.h <<\EOF
12815 #define USE_PTHREADS_EINTR 1
12821 echo "$as_me:12821: checking if you want to use weak-symbols for pthreads" >&5
12822 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12824 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12825 if test "${enable_weak_symbols+set}" = set; then
12826 enableval="$enable_weak_symbols"
12827 use_weak_symbols=$enableval
12829 use_weak_symbols=no
12831 echo "$as_me:12831: result: $use_weak_symbols" >&5
12832 echo "${ECHO_T}$use_weak_symbols" >&6
12833 if test "x$use_weak_symbols" = xyes ; then
12835 echo "$as_me:12835: checking if $CC supports weak symbols" >&5
12836 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12837 if test "${cf_cv_weak_symbols+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 cat >conftest.$ac_ext <<_ACEOF
12842 #line 12842 "configure"
12843 #include "confdefs.h"
12850 #if defined(__GNUC__)
12851 # if defined __USE_ISOC99
12852 # define _cat_pragma(exp) _Pragma(#exp)
12853 # define _weak_pragma(exp) _cat_pragma(weak name)
12855 # define _weak_pragma(exp)
12857 # define _declare(name) __extension__ extern __typeof__(name) name
12858 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12861 weak_symbol(fopen);
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:12868: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>&5
12871 echo "$as_me:12871: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:12874: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:12877: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 cf_cv_weak_symbols=yes
12881 echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 cf_cv_weak_symbols=no
12885 rm -f conftest.$ac_objext conftest.$ac_ext
12888 echo "$as_me:12888: result: $cf_cv_weak_symbols" >&5
12889 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12892 cf_cv_weak_symbols=no
12895 if test "x$cf_cv_weak_symbols" = xyes ; then
12897 cat >>confdefs.h <<\EOF
12898 #define USE_WEAK_SYMBOLS 1
12905 if test "x$with_pthread" = "xyes" ; then
12907 cat >>confdefs.h <<\EOF
12908 #define USE_PTHREADS 1
12911 enable_reentrant=yes
12912 if test "x$cf_cv_weak_symbols" = xyes ; then
12917 # Reentrant code has to be opaque; there's little advantage to making ncurses
12918 # opaque outside of that, so there is no --enable-opaque option. We can use
12919 # this option without --with-pthreads, but this will be always set for
12921 echo "$as_me:12921: checking if you want reentrant code" >&5
12922 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
12924 # Check whether --enable-reentrant or --disable-reentrant was given.
12925 if test "${enable_reentrant+set}" = set; then
12926 enableval="$enable_reentrant"
12927 with_reentrant=$enableval
12931 echo "$as_me:12931: result: $with_reentrant" >&5
12932 echo "${ECHO_T}$with_reentrant" >&6
12933 if test "x$with_reentrant" = xyes ; then
12934 cf_cv_enable_reentrant=1
12935 cf_cv_enable_opaque="NCURSES_INTERNALS"
12938 if test "x$cf_cv_weak_symbols" = xyes ; then
12940 # remove pthread library from $LIBS
12941 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12943 cf_add_libs="-lpthread"
12944 # Filter out duplicates - this happens with badly-designed ".pc" files...
12945 for cf_add_1lib in $TEST_LIBS
12947 for cf_add_2lib in $cf_add_libs
12949 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12955 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12957 TEST_LIBS="$cf_add_libs"
12959 cf_add_libs="-lpthread"
12960 # Filter out duplicates - this happens with badly-designed ".pc" files...
12961 for cf_add_1lib in $TEST_LIBS2
12963 for cf_add_2lib in $cf_add_libs
12965 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12971 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12973 TEST_LIBS2="$cf_add_libs"
12976 # when not using weak symbols but with_reentrant,
12977 # add 't' to the library suffix on all platforms
12978 # except cygwin, where we only do that if ALSO
12979 # compiling with full thread support.
12981 (*cygwin* | *msys*)
12982 if test "$with_pthread" = "yes" ; then
12983 if test "x$disable_lib_suffixes" = "xno" ; then
12984 LIB_SUFFIX="t${LIB_SUFFIX}"
12988 if test "x$disable_lib_suffixes" = "xno" ; then
12989 LIB_SUFFIX="t${LIB_SUFFIX}"
12995 cat >>confdefs.h <<\EOF
12996 #define USE_REENTRANT 1
12999 if test "${with_abi_version+set}" != set; then
13000 case $cf_cv_rel_version in
13002 cf_cv_rel_version=6.0
13003 cf_cv_abi_version=6
13004 { echo "$as_me:13004: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13005 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13011 cf_cv_enable_reentrant=0
13012 cf_cv_enable_opaque="NCURSES_OPAQUE"
13014 NCURSES_SIZE_T=short
13017 ### Allow using a different wrap-prefix
13018 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13019 echo "$as_me:13019: checking for prefix used to wrap public variables" >&5
13020 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13022 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13023 if test "${with_wrap_prefix+set}" = set; then
13024 withval="$with_wrap_prefix"
13025 NCURSES_WRAP_PREFIX=$withval
13027 NCURSES_WRAP_PREFIX=_nc_
13029 echo "$as_me:13029: result: $NCURSES_WRAP_PREFIX" >&5
13030 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13032 NCURSES_WRAP_PREFIX=_nc_
13035 cat >>confdefs.h <<EOF
13036 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13039 echo "$as_me:13039: checking if you want experimental safe-sprintf code" >&5
13040 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
13042 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
13043 if test "${enable_safe_sprintf+set}" = set; then
13044 enableval="$enable_safe_sprintf"
13045 with_safe_sprintf=$enableval
13047 with_safe_sprintf=no
13049 echo "$as_me:13049: result: $with_safe_sprintf" >&5
13050 echo "${ECHO_T}$with_safe_sprintf" >&6
13051 test "x$with_safe_sprintf" = xyes &&
13052 cat >>confdefs.h <<\EOF
13053 #define USE_SAFE_SPRINTF 1
13056 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
13057 # when hashmap is used scroll hints are useless
13058 if test "$with_hashmap" = no ; then
13059 echo "$as_me:13059: checking if you want to experiment without scrolling-hints code" >&5
13060 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13062 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13063 if test "${enable_scroll_hints+set}" = set; then
13064 enableval="$enable_scroll_hints"
13065 with_scroll_hints=$enableval
13067 with_scroll_hints=yes
13069 echo "$as_me:13069: result: $with_scroll_hints" >&5
13070 echo "${ECHO_T}$with_scroll_hints" >&6
13071 test "x$with_scroll_hints" = xyes &&
13072 cat >>confdefs.h <<\EOF
13073 #define USE_SCROLL_HINTS 1
13078 echo "$as_me:13078: checking if you want wgetch-events code" >&5
13079 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13081 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13082 if test "${enable_wgetch_events+set}" = set; then
13083 enableval="$enable_wgetch_events"
13084 with_wgetch_events=$enableval
13086 with_wgetch_events=no
13088 echo "$as_me:13088: result: $with_wgetch_events" >&5
13089 echo "${ECHO_T}$with_wgetch_events" >&6
13090 test "x$with_wgetch_events" = xyes &&
13091 cat >>confdefs.h <<\EOF
13092 #define NCURSES_WGETCH_EVENTS 1
13095 ###############################################################################
13097 ### use option --disable-echo to suppress full display compiling commands
13099 echo "$as_me:13099: checking if you want to see long compiling messages" >&5
13100 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13102 # Check whether --enable-echo or --disable-echo was given.
13103 if test "${enable_echo+set}" = set; then
13104 enableval="$enable_echo"
13105 test "$enableval" != no && enableval=yes
13106 if test "$enableval" != "yes" ; then
13109 ECHO_LD='@echo linking $@;'
13110 RULE_CC='@echo compiling $<'
13111 SHOW_CC='@echo compiling $@'
13133 echo "$as_me:13133: result: $enableval" >&5
13134 echo "${ECHO_T}$enableval" >&6
13136 if test "x$enable_echo" = xyes; then
13139 ECHO_LINK='@ echo linking $@ ... ;'
13140 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13141 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13144 ### use option --enable-warnings to turn on all gcc warnings
13145 echo "$as_me:13145: checking if you want to see compiler warnings" >&5
13146 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13148 # Check whether --enable-warnings or --disable-warnings was given.
13149 if test "${enable_warnings+set}" = set; then
13150 enableval="$enable_warnings"
13151 with_warnings=$enableval
13153 echo "$as_me:13153: result: $with_warnings" >&5
13154 echo "${ECHO_T}$with_warnings" >&6
13156 if test "x$with_warnings" = "xyes"; then
13158 ADAFLAGS="$ADAFLAGS -gnatg"
13162 if test "$GCC" = yes ; then
13165 echo "$as_me:13165: checking if this is really Intel C compiler" >&5
13166 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13167 cf_save_CFLAGS="$CFLAGS"
13168 CFLAGS="$CFLAGS -no-gcc"
13169 cat >conftest.$ac_ext <<_ACEOF
13170 #line 13170 "configure"
13171 #include "confdefs.h"
13177 #ifdef __INTEL_COMPILER
13186 rm -f conftest.$ac_objext
13187 if { (eval echo "$as_me:13187: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>&5
13190 echo "$as_me:13190: \$? = $ac_status" >&5
13191 (exit $ac_status); } &&
13192 { ac_try='test -s conftest.$ac_objext'
13193 { (eval echo "$as_me:13193: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:13196: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13199 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13202 echo "$as_me: failed program was:" >&5
13203 cat conftest.$ac_ext >&5
13205 rm -f conftest.$ac_objext conftest.$ac_ext
13206 CFLAGS="$cf_save_CFLAGS"
13207 echo "$as_me:13207: result: $INTEL_COMPILER" >&5
13208 echo "${ECHO_T}$INTEL_COMPILER" >&6
13215 if test "$GCC" = yes ; then
13216 echo "$as_me:13216: checking if this is really Clang C compiler" >&5
13217 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13218 cf_save_CFLAGS="$CFLAGS"
13219 CFLAGS="$CFLAGS -Qunused-arguments"
13220 cat >conftest.$ac_ext <<_ACEOF
13221 #line 13221 "configure"
13222 #include "confdefs.h"
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:13238: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>&5
13241 echo "$as_me:13241: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -s conftest.$ac_objext'
13244 { (eval echo "$as_me:13244: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:13247: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13250 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13253 echo "$as_me: failed program was:" >&5
13254 cat conftest.$ac_ext >&5
13256 rm -f conftest.$ac_objext conftest.$ac_ext
13257 CFLAGS="$cf_save_CFLAGS"
13258 echo "$as_me:13258: result: $CLANG_COMPILER" >&5
13259 echo "${ECHO_T}$CLANG_COMPILER" >&6
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13263 "${as_me:-configure}"
13264 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13267 if test "$INTEL_COMPILER" = yes
13269 # The "-wdXXX" options suppress warnings:
13270 # remark #1419: external declaration in primary source file
13271 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13272 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13273 # remark #193: zero used for undefined preprocessing identifier
13274 # remark #593: variable "curs_sb_left_arrow" was set but never used
13275 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13276 # remark #869: parameter "tw" was never referenced
13277 # remark #981: operands are evaluated in unspecified order
13278 # warning #279: controlling expression is constant
13280 { echo "$as_me:13280: checking for $CC warning options..." >&5
13281 echo "$as_me: checking for $CC warning options..." >&6;}
13282 cf_save_CFLAGS="$CFLAGS"
13283 EXTRA_CFLAGS="-Wall"
13295 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13296 if { (eval echo "$as_me:13296: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>&5
13299 echo "$as_me:13299: \$? = $ac_status" >&5
13300 (exit $ac_status); }; then
13301 test -n "$verbose" && echo "$as_me:13301: result: ... -$cf_opt" >&5
13302 echo "${ECHO_T}... -$cf_opt" >&6
13303 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13306 CFLAGS="$cf_save_CFLAGS"
13308 elif test "$GCC" = yes
13310 { echo "$as_me:13310: checking for $CC warning options..." >&5
13311 echo "$as_me: checking for $CC warning options..." >&6;}
13312 cf_save_CFLAGS="$CFLAGS"
13315 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13316 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13317 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13318 for cf_opt in W Wall \
13319 Wbad-function-cast \
13322 Wdeclaration-after-statement \
13325 Wmissing-declarations \
13326 Wmissing-prototypes \
13330 Wstrict-prototypes \
13331 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13333 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13334 if { (eval echo "$as_me:13334: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>&5
13337 echo "$as_me:13337: \$? = $ac_status" >&5
13338 (exit $ac_status); }; then
13339 test -n "$verbose" && echo "$as_me:13339: result: ... -$cf_opt" >&5
13340 echo "${ECHO_T}... -$cf_opt" >&6
13343 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13346 case $GCC_VERSION in
13348 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13350 echo "${as_me:-configure}:13350: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13356 case $GCC_VERSION in
13358 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13360 echo "${as_me:-configure}:13360: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13366 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13369 CFLAGS="$cf_save_CFLAGS"
13373 if test "x$cf_with_cxx" = xyes ; then
13377 if test "$GCC" = yes ; then
13380 echo "$as_me:13380: checking if this is really Intel C++ compiler" >&5
13381 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13382 cf_save_CFLAGS="$CXXFLAGS"
13383 CXXFLAGS="$CXXFLAGS -no-gcc"
13384 cat >conftest.$ac_ext <<_ACEOF
13385 #line 13385 "configure"
13386 #include "confdefs.h"
13392 #ifdef __INTEL_COMPILER
13401 rm -f conftest.$ac_objext
13402 if { (eval echo "$as_me:13402: \"$ac_compile\"") >&5
13403 (eval $ac_compile) 2>&5
13405 echo "$as_me:13405: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -s conftest.$ac_objext'
13408 { (eval echo "$as_me:13408: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:13411: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 INTEL_CPLUSPLUS=yes
13414 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13417 echo "$as_me: failed program was:" >&5
13418 cat conftest.$ac_ext >&5
13420 rm -f conftest.$ac_objext conftest.$ac_ext
13421 CXXFLAGS="$cf_save_CFLAGS"
13422 echo "$as_me:13422: result: $INTEL_CPLUSPLUS" >&5
13423 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13430 if test "$GCC" = yes ; then
13431 echo "$as_me:13431: checking if this is really Clang C++ compiler" >&5
13432 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13433 cf_save_CFLAGS="$CXXFLAGS"
13434 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13435 cat >conftest.$ac_ext <<_ACEOF
13436 #line 13436 "configure"
13437 #include "confdefs.h"
13452 rm -f conftest.$ac_objext
13453 if { (eval echo "$as_me:13453: \"$ac_compile\"") >&5
13454 (eval $ac_compile) 2>&5
13456 echo "$as_me:13456: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -s conftest.$ac_objext'
13459 { (eval echo "$as_me:13459: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:13462: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 CLANG_CPLUSPLUS=yes
13465 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13468 echo "$as_me: failed program was:" >&5
13469 cat conftest.$ac_ext >&5
13471 rm -f conftest.$ac_objext conftest.$ac_ext
13472 CXXFLAGS="$cf_save_CFLAGS"
13473 echo "$as_me:13473: result: $CLANG_CPLUSPLUS" >&5
13474 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13478 ac_cpp='$CXXCPP $CPPFLAGS'
13479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13482 ac_main_return=return
13484 cat > conftest.$ac_ext <<EOF
13485 #line 13485 "configure"
13486 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13489 if test "$INTEL_CPLUSPLUS" = yes
13491 # The "-wdXXX" options suppress warnings:
13492 # remark #1419: external declaration in primary source file
13493 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13494 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13495 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13496 # remark #193: zero used for undefined preprocessing identifier
13497 # remark #593: variable "curs_sb_left_arrow" was set but never used
13498 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13499 # remark #869: parameter "tw" was never referenced
13500 # remark #981: operands are evaluated in unspecified order
13501 # warning #269: invalid format string conversion
13503 { echo "$as_me:13503: checking for $CC warning options..." >&5
13504 echo "$as_me: checking for $CC warning options..." >&6;}
13505 cf_save_CXXFLAGS="$CXXFLAGS"
13506 EXTRA_CXXFLAGS="-Wall"
13519 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13520 if { (eval echo "$as_me:13520: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13523 echo "$as_me:13523: \$? = $ac_status" >&5
13524 (exit $ac_status); }; then
13525 test -n "$verbose" && echo "$as_me:13525: result: ... -$cf_opt" >&5
13526 echo "${ECHO_T}... -$cf_opt" >&6
13527 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13530 CXXFLAGS="$cf_save_CXXFLAGS"
13532 elif test "$GXX" = yes
13534 { echo "$as_me:13534: checking for $CXX warning options..." >&5
13535 echo "$as_me: checking for $CXX warning options..." >&6;}
13536 cf_save_CXXFLAGS="$CXXFLAGS"
13537 EXTRA_CXXFLAGS="-W -Wall"
13538 cf_gxx_extra_warnings=""
13539 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13540 case "$GCC_VERSION" in
13544 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13551 Wignored-qualifiers \
13553 Woverloaded-virtual \
13561 Wundef $cf_gxx_extra_warnings Wno-unused
13563 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13564 if { (eval echo "$as_me:13564: \"$ac_compile\"") >&5
13565 (eval $ac_compile) 2>&5
13567 echo "$as_me:13567: \$? = $ac_status" >&5
13568 (exit $ac_status); }; then
13569 test -n "$verbose" && echo "$as_me:13569: result: ... -$cf_opt" >&5
13570 echo "${ECHO_T}... -$cf_opt" >&6
13571 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13573 test -n "$verbose" && echo "$as_me:13573: result: ... no -$cf_opt" >&5
13574 echo "${ECHO_T}... no -$cf_opt" >&6
13577 CXXFLAGS="$cf_save_CXXFLAGS"
13582 ac_cpp='$CPP $CPPFLAGS'
13583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13586 ac_main_return=return
13591 if test "$GCC" = yes
13593 cat > conftest.i <<EOF
13595 #define GCC_PRINTF 0
13598 #define GCC_SCANF 0
13600 #ifndef GCC_NORETURN
13601 #define GCC_NORETURN /* nothing */
13604 #define GCC_UNUSED /* nothing */
13607 if test "$GCC" = yes
13609 { echo "$as_me:13609: checking for $CC __attribute__ directives..." >&5
13610 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13611 cat > conftest.$ac_ext <<EOF
13612 #line 13612 "${as_me:-configure}"
13613 #include "confdefs.h"
13614 #include "conftest.h"
13615 #include "conftest.i"
13617 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13619 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13622 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13624 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13626 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13627 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13628 extern void foo(void) GCC_NORETURN;
13629 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13631 cf_printf_attribute=no
13632 cf_scanf_attribute=no
13633 for cf_attribute in scanf printf unused noreturn
13636 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13638 cf_directive="__attribute__(($cf_attribute))"
13639 echo "checking for $CC $cf_directive" 1>&5
13641 case $cf_attribute in
13643 cf_printf_attribute=yes
13644 cat >conftest.h <<EOF
13645 #define GCC_$cf_ATTRIBUTE 1
13649 cf_scanf_attribute=yes
13650 cat >conftest.h <<EOF
13651 #define GCC_$cf_ATTRIBUTE 1
13655 cat >conftest.h <<EOF
13656 #define GCC_$cf_ATTRIBUTE $cf_directive
13661 if { (eval echo "$as_me:13661: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13664 echo "$as_me:13664: \$? = $ac_status" >&5
13665 (exit $ac_status); }; then
13666 test -n "$verbose" && echo "$as_me:13666: result: ... $cf_attribute" >&5
13667 echo "${ECHO_T}... $cf_attribute" >&6
13668 cat conftest.h >>confdefs.h
13669 case $cf_attribute in
13672 cat >>confdefs.h <<EOF
13673 #define GCC_NORETURN $cf_directive
13678 cf_value='/* nothing */'
13679 if test "$cf_printf_attribute" != no ; then
13680 cf_value='__attribute__((format(printf,fmt,var)))'
13682 cat >>confdefs.h <<\EOF
13683 #define GCC_PRINTF 1
13688 cat >>confdefs.h <<EOF
13689 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13694 cf_value='/* nothing */'
13695 if test "$cf_scanf_attribute" != no ; then
13696 cf_value='__attribute__((format(scanf,fmt,var)))'
13698 cat >>confdefs.h <<\EOF
13699 #define GCC_SCANF 1
13704 cat >>confdefs.h <<EOF
13705 #define GCC_SCANFLIKE(fmt,var) $cf_value
13711 cat >>confdefs.h <<EOF
13712 #define GCC_UNUSED $cf_directive
13720 fgrep define conftest.i >>confdefs.h
13725 echo "$as_me:13725: checking if you want to work around bogus compiler/loader warnings" >&5
13726 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13728 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13729 if test "${enable_string_hacks+set}" = set; then
13730 enableval="$enable_string_hacks"
13731 with_string_hacks=$enableval
13733 with_string_hacks=no
13735 echo "$as_me:13735: result: $with_string_hacks" >&5
13736 echo "${ECHO_T}$with_string_hacks" >&6
13738 if test "x$with_string_hacks" = "xyes"; then
13740 cat >>confdefs.h <<\EOF
13741 #define USE_STRING_HACKS 1
13744 { echo "$as_me:13744: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13745 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13747 for ac_func in strlcat strlcpy snprintf
13749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13750 echo "$as_me:13750: checking for $ac_func" >&5
13751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13752 if eval "test \"\${$as_ac_var+set}\" = set"; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 #line 13756 "configure"
13757 #include "confdefs.h"
13758 /* System header to define __stub macros and hopefully few prototypes,
13759 which can conflict with char $ac_func (); below. */
13760 #include <assert.h>
13761 /* Override any gcc2 internal prototype to avoid an error. */
13765 /* We use char because int might match the return type of a gcc2
13766 builtin and then its argument prototype would still apply. */
13773 /* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13779 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13786 rm -f conftest.$ac_objext conftest$ac_exeext
13787 if { (eval echo "$as_me:13787: \"$ac_link\"") >&5
13788 (eval $ac_link) 2>&5
13790 echo "$as_me:13790: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -s conftest$ac_exeext'
13793 { (eval echo "$as_me:13793: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:13796: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 eval "$as_ac_var=yes"
13800 echo "$as_me: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 eval "$as_ac_var=no"
13804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13806 echo "$as_me:13806: result: `eval echo '${'$as_ac_var'}'`" >&5
13807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13808 if test `eval echo '${'$as_ac_var'}'` = yes; then
13809 cat >>confdefs.h <<EOF
13810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13818 ### use option --enable-assertions to turn on generation of assertion code
13819 echo "$as_me:13819: checking if you want to enable runtime assertions" >&5
13820 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13822 # Check whether --enable-assertions or --disable-assertions was given.
13823 if test "${enable_assertions+set}" = set; then
13824 enableval="$enable_assertions"
13825 with_assertions=$enableval
13829 echo "$as_me:13829: result: $with_assertions" >&5
13830 echo "${ECHO_T}$with_assertions" >&6
13833 if test "$with_assertions" = no
13835 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13838 ADAFLAGS="$ADAFLAGS -gnata"
13843 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13845 echo "$as_me:13845: checking if you want to use dmalloc for testing" >&5
13846 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13848 # Check whether --with-dmalloc or --without-dmalloc was given.
13849 if test "${with_dmalloc+set}" = set; then
13850 withval="$with_dmalloc"
13852 cat >>confdefs.h <<EOF
13853 #define USE_DMALLOC 1
13856 : ${with_cflags:=-g}
13857 : ${with_no_leaks:=yes}
13862 echo "$as_me:13862: result: ${with_dmalloc:-no}" >&5
13863 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13865 case .$with_cflags in
13875 cf_new_extra_cppflags=
13877 for cf_add_cflags in -g
13879 case $cf_fix_cppflags in
13881 case $cf_add_cflags in
13882 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13883 case $cf_add_cflags in
13885 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13887 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13888 && test -z "${cf_tst_cflags}" \
13889 && cf_fix_cppflags=yes
13891 if test $cf_fix_cppflags = yes ; then
13892 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13894 elif test "${cf_tst_cflags}" = "\"'" ; then
13895 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13900 case "$CPPFLAGS" in
13904 case $cf_add_cflags in
13906 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13908 CPPFLAGS=`echo "$CPPFLAGS" | \
13909 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13910 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13914 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13919 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13924 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13926 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13928 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13929 && test -z "${cf_tst_cflags}" \
13930 && cf_fix_cppflags=no
13935 if test -n "$cf_new_cflags" ; then
13937 CFLAGS="$CFLAGS $cf_new_cflags"
13940 if test -n "$cf_new_cppflags" ; then
13942 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13945 if test -n "$cf_new_extra_cppflags" ; then
13947 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13955 if test "$with_dmalloc" = yes ; then
13956 echo "$as_me:13956: checking for dmalloc.h" >&5
13957 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13958 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13962 #line 13962 "configure"
13963 #include "confdefs.h"
13964 #include <dmalloc.h>
13966 if { (eval echo "$as_me:13966: \"$ac_cpp conftest.$ac_ext\"") >&5
13967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13969 egrep -v '^ *\+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:13972: \$? = $ac_status" >&5
13973 (exit $ac_status); } >/dev/null; then
13974 if test -s conftest.err; then
13975 ac_cpp_err=$ac_c_preproc_warn_flag
13982 if test -z "$ac_cpp_err"; then
13983 ac_cv_header_dmalloc_h=yes
13985 echo "$as_me: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 ac_cv_header_dmalloc_h=no
13989 rm -f conftest.err conftest.$ac_ext
13991 echo "$as_me:13991: result: $ac_cv_header_dmalloc_h" >&5
13992 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13993 if test $ac_cv_header_dmalloc_h = yes; then
13995 echo "$as_me:13995: checking for dmalloc_debug in -ldmalloc" >&5
13996 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13997 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 ac_check_lib_save_LIBS=$LIBS
14001 LIBS="-ldmalloc $LIBS"
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line 14003 "configure"
14004 #include "confdefs.h"
14006 /* Override any gcc2 internal prototype to avoid an error. */
14010 /* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14012 char dmalloc_debug ();
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (eval echo "$as_me:14022: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>&5
14025 echo "$as_me:14025: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest$ac_exeext'
14028 { (eval echo "$as_me:14028: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:14031: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_lib_dmalloc_dmalloc_debug=yes
14035 echo "$as_me: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 ac_cv_lib_dmalloc_dmalloc_debug=no
14039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 echo "$as_me:14042: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
14043 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
14044 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
14045 cat >>confdefs.h <<EOF
14046 #define HAVE_LIBDMALLOC 1
14049 LIBS="-ldmalloc $LIBS"
14057 echo "$as_me:14057: checking if you want to use dbmalloc for testing" >&5
14058 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
14060 # Check whether --with-dbmalloc or --without-dbmalloc was given.
14061 if test "${with_dbmalloc+set}" = set; then
14062 withval="$with_dbmalloc"
14064 cat >>confdefs.h <<EOF
14065 #define USE_DBMALLOC 1
14068 : ${with_cflags:=-g}
14069 : ${with_no_leaks:=yes}
14074 echo "$as_me:14074: result: ${with_dbmalloc:-no}" >&5
14075 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14077 case .$with_cflags in
14087 cf_new_extra_cppflags=
14089 for cf_add_cflags in -g
14091 case $cf_fix_cppflags in
14093 case $cf_add_cflags in
14094 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14095 case $cf_add_cflags in
14097 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14099 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14100 && test -z "${cf_tst_cflags}" \
14101 && cf_fix_cppflags=yes
14103 if test $cf_fix_cppflags = yes ; then
14104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14106 elif test "${cf_tst_cflags}" = "\"'" ; then
14107 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14112 case "$CPPFLAGS" in
14116 case $cf_add_cflags in
14118 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14120 CPPFLAGS=`echo "$CPPFLAGS" | \
14121 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14122 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14126 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14131 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14136 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14138 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14141 && test -z "${cf_tst_cflags}" \
14142 && cf_fix_cppflags=no
14147 if test -n "$cf_new_cflags" ; then
14149 CFLAGS="$CFLAGS $cf_new_cflags"
14152 if test -n "$cf_new_cppflags" ; then
14154 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14157 if test -n "$cf_new_extra_cppflags" ; then
14159 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14167 if test "$with_dbmalloc" = yes ; then
14168 echo "$as_me:14168: checking for dbmalloc.h" >&5
14169 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14170 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14174 #line 14174 "configure"
14175 #include "confdefs.h"
14176 #include <dbmalloc.h>
14178 if { (eval echo "$as_me:14178: \"$ac_cpp conftest.$ac_ext\"") >&5
14179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14181 egrep -v '^ *\+' conftest.er1 >conftest.err
14183 cat conftest.err >&5
14184 echo "$as_me:14184: \$? = $ac_status" >&5
14185 (exit $ac_status); } >/dev/null; then
14186 if test -s conftest.err; then
14187 ac_cpp_err=$ac_c_preproc_warn_flag
14194 if test -z "$ac_cpp_err"; then
14195 ac_cv_header_dbmalloc_h=yes
14197 echo "$as_me: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14199 ac_cv_header_dbmalloc_h=no
14201 rm -f conftest.err conftest.$ac_ext
14203 echo "$as_me:14203: result: $ac_cv_header_dbmalloc_h" >&5
14204 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14205 if test $ac_cv_header_dbmalloc_h = yes; then
14207 echo "$as_me:14207: checking for debug_malloc in -ldbmalloc" >&5
14208 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14209 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 ac_check_lib_save_LIBS=$LIBS
14213 LIBS="-ldbmalloc $LIBS"
14214 cat >conftest.$ac_ext <<_ACEOF
14215 #line 14215 "configure"
14216 #include "confdefs.h"
14218 /* Override any gcc2 internal prototype to avoid an error. */
14222 /* We use char because int might match the return type of a gcc2
14223 builtin and then its argument prototype would still apply. */
14224 char debug_malloc ();
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (eval echo "$as_me:14234: \"$ac_link\"") >&5
14235 (eval $ac_link) 2>&5
14237 echo "$as_me:14237: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -s conftest$ac_exeext'
14240 { (eval echo "$as_me:14240: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:14243: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_lib_dbmalloc_debug_malloc=yes
14247 echo "$as_me: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 ac_cv_lib_dbmalloc_debug_malloc=no
14251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14252 LIBS=$ac_check_lib_save_LIBS
14254 echo "$as_me:14254: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14255 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14256 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14257 cat >>confdefs.h <<EOF
14258 #define HAVE_LIBDBMALLOC 1
14261 LIBS="-ldbmalloc $LIBS"
14269 echo "$as_me:14269: checking if you want to use valgrind for testing" >&5
14270 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14272 # Check whether --with-valgrind or --without-valgrind was given.
14273 if test "${with_valgrind+set}" = set; then
14274 withval="$with_valgrind"
14276 cat >>confdefs.h <<EOF
14277 #define USE_VALGRIND 1
14280 : ${with_cflags:=-g}
14281 : ${with_no_leaks:=yes}
14286 echo "$as_me:14286: result: ${with_valgrind:-no}" >&5
14287 echo "${ECHO_T}${with_valgrind:-no}" >&6
14289 case .$with_cflags in
14299 cf_new_extra_cppflags=
14301 for cf_add_cflags in -g
14303 case $cf_fix_cppflags in
14305 case $cf_add_cflags in
14306 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14307 case $cf_add_cflags in
14309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14311 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14312 && test -z "${cf_tst_cflags}" \
14313 && cf_fix_cppflags=yes
14315 if test $cf_fix_cppflags = yes ; then
14316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14318 elif test "${cf_tst_cflags}" = "\"'" ; then
14319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14324 case "$CPPFLAGS" in
14328 case $cf_add_cflags in
14330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14332 CPPFLAGS=`echo "$CPPFLAGS" | \
14333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14338 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14343 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14353 && test -z "${cf_tst_cflags}" \
14354 && cf_fix_cppflags=no
14359 if test -n "$cf_new_cflags" ; then
14361 CFLAGS="$CFLAGS $cf_new_cflags"
14364 if test -n "$cf_new_cppflags" ; then
14366 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14369 if test -n "$cf_new_extra_cppflags" ; then
14371 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14379 echo "$as_me:14379: checking if you want to perform memory-leak testing" >&5
14380 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14382 # Check whether --enable-leaks or --disable-leaks was given.
14383 if test "${enable_leaks+set}" = set; then
14384 enableval="$enable_leaks"
14385 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14387 : ${with_no_leaks:=no}
14389 echo "$as_me:14389: result: $with_no_leaks" >&5
14390 echo "${ECHO_T}$with_no_leaks" >&6
14392 if test "$with_no_leaks" = yes ; then
14394 cat >>confdefs.h <<\EOF
14398 cat >>confdefs.h <<\EOF
14399 #define YY_NO_LEAKS 1
14404 cat >>confdefs.h <<\EOF
14405 #define HAVE_NC_ALLOC_H 1
14408 ### use option --enable-expanded to generate certain macros as functions
14410 # Check whether --enable-expanded or --disable-expanded was given.
14411 if test "${enable_expanded+set}" = set; then
14412 enableval="$enable_expanded"
14413 test "x$enableval" = xyes &&
14414 cat >>confdefs.h <<\EOF
14415 #define NCURSES_EXPANDED 1
14420 ### use option --disable-macros to suppress macros in favor of functions
14422 # Check whether --enable-macros or --disable-macros was given.
14423 if test "${enable_macros+set}" = set; then
14424 enableval="$enable_macros"
14425 test "$enableval" = no &&
14426 cat >>confdefs.h <<\EOF
14427 #define NCURSES_NOMACROS 1
14432 # Normally we only add trace() to the debug-library. Allow this to be
14433 # extended to all models of the ncurses library:
14435 case "$CFLAGS $CPPFLAGS" in
14441 echo "$as_me:14441: checking whether to add trace feature to all models" >&5
14442 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14444 # Check whether --with-trace or --without-trace was given.
14445 if test "${with_trace+set}" = set; then
14446 withval="$with_trace"
14447 cf_with_trace=$withval
14449 cf_with_trace=$cf_all_traces
14451 echo "$as_me:14451: result: $cf_with_trace" >&5
14452 echo "${ECHO_T}$cf_with_trace" >&6
14454 if test "x$cf_with_trace" = xyes ; then
14461 cf_new_extra_cppflags=
14463 for cf_add_cflags in -DTRACE
14465 case $cf_fix_cppflags in
14467 case $cf_add_cflags in
14468 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14469 case $cf_add_cflags in
14471 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14473 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14474 && test -z "${cf_tst_cflags}" \
14475 && cf_fix_cppflags=yes
14477 if test $cf_fix_cppflags = yes ; then
14478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14480 elif test "${cf_tst_cflags}" = "\"'" ; then
14481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14486 case "$CPPFLAGS" in
14490 case $cf_add_cflags in
14492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14494 CPPFLAGS=`echo "$CPPFLAGS" | \
14495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14500 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14505 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14510 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14514 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14515 && test -z "${cf_tst_cflags}" \
14516 && cf_fix_cppflags=no
14521 if test -n "$cf_new_cflags" ; then
14523 CFLAGS="$CFLAGS $cf_new_cflags"
14526 if test -n "$cf_new_cppflags" ; then
14528 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14531 if test -n "$cf_new_extra_cppflags" ; then
14533 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14541 echo "$as_me:14541: checking if we want to use GNAT projects" >&5
14542 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14544 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14545 if test "${enable_gnat_projects+set}" = set; then
14546 enableval="$enable_gnat_projects"
14547 test "$enableval" != no && enableval=yes
14548 if test "$enableval" != "yes" ; then
14549 enable_gnat_projects=no
14551 enable_gnat_projects=yes
14555 enable_gnat_projects=yes
14558 echo "$as_me:14558: result: $enable_gnat_projects" >&5
14559 echo "${ECHO_T}$enable_gnat_projects" >&6
14561 ### Checks for libraries.
14562 case $cf_cv_system_name in
14563 (*mingw32*|*mingw64*)
14564 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
14565 LIBS=" -lpsapi $LIBS"
14568 echo "$as_me:14568: checking for gettimeofday" >&5
14569 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14570 if test "${ac_cv_func_gettimeofday+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 cat >conftest.$ac_ext <<_ACEOF
14574 #line 14574 "configure"
14575 #include "confdefs.h"
14576 /* System header to define __stub macros and hopefully few prototypes,
14577 which can conflict with char gettimeofday (); below. */
14578 #include <assert.h>
14579 /* Override any gcc2 internal prototype to avoid an error. */
14583 /* We use char because int might match the return type of a gcc2
14584 builtin and then its argument prototype would still apply. */
14585 char gettimeofday ();
14591 /* The GNU C library defines this for functions which it implements
14592 to always fail with ENOSYS. Some functions are actually named
14593 something starting with __ and the normal name is an alias. */
14594 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14597 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (eval echo "$as_me:14605: \"$ac_link\"") >&5
14606 (eval $ac_link) 2>&5
14608 echo "$as_me:14608: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
14610 { ac_try='test -s conftest$ac_exeext'
14611 { (eval echo "$as_me:14611: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:14614: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_cv_func_gettimeofday=yes
14618 echo "$as_me: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 ac_cv_func_gettimeofday=no
14622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14624 echo "$as_me:14624: result: $ac_cv_func_gettimeofday" >&5
14625 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14626 if test $ac_cv_func_gettimeofday = yes; then
14628 cat >>confdefs.h <<\EOF
14629 #define HAVE_GETTIMEOFDAY 1
14634 echo "$as_me:14634: checking for gettimeofday in -lbsd" >&5
14635 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14636 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 ac_check_lib_save_LIBS=$LIBS
14641 cat >conftest.$ac_ext <<_ACEOF
14642 #line 14642 "configure"
14643 #include "confdefs.h"
14645 /* Override any gcc2 internal prototype to avoid an error. */
14649 /* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14651 char gettimeofday ();
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (eval echo "$as_me:14661: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>&5
14664 echo "$as_me:14664: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (eval echo "$as_me:14667: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:14670: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_lib_bsd_gettimeofday=yes
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 ac_cv_lib_bsd_gettimeofday=no
14678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14679 LIBS=$ac_check_lib_save_LIBS
14681 echo "$as_me:14681: result: $ac_cv_lib_bsd_gettimeofday" >&5
14682 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14683 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14685 cat >>confdefs.h <<\EOF
14686 #define HAVE_GETTIMEOFDAY 1
14689 cf_add_libs="-lbsd"
14690 # Filter out duplicates - this happens with badly-designed ".pc" files...
14691 for cf_add_1lib in $LIBS
14693 for cf_add_2lib in $cf_add_libs
14695 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14701 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14703 LIBS="$cf_add_libs"
14711 echo "$as_me:14711: checking if -lm needed for math functions" >&5
14712 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14713 if test "${cf_cv_need_libm+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line 14718 "configure"
14719 #include "confdefs.h"
14727 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (eval echo "$as_me:14733: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14736 echo "$as_me:14736: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -s conftest$ac_exeext'
14739 { (eval echo "$as_me:14739: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14742 echo "$as_me:14742: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14746 echo "$as_me: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 cf_cv_need_libm=yes
14750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14752 echo "$as_me:14752: result: $cf_cv_need_libm" >&5
14753 echo "${ECHO_T}$cf_cv_need_libm" >&6
14754 if test "$cf_cv_need_libm" = yes
14759 ### Checks for header files.
14760 echo "$as_me:14760: checking for ANSI C header files" >&5
14761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14762 if test "${ac_cv_header_stdc+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 cat >conftest.$ac_ext <<_ACEOF
14766 #line 14766 "configure"
14767 #include "confdefs.h"
14768 #include <stdlib.h>
14769 #include <stdarg.h>
14770 #include <string.h>
14774 if { (eval echo "$as_me:14774: \"$ac_cpp conftest.$ac_ext\"") >&5
14775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14777 egrep -v '^ *\+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:14780: \$? = $ac_status" >&5
14781 (exit $ac_status); } >/dev/null; then
14782 if test -s conftest.err; then
14783 ac_cpp_err=$ac_c_preproc_warn_flag
14790 if test -z "$ac_cpp_err"; then
14791 ac_cv_header_stdc=yes
14793 echo "$as_me: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
14795 ac_cv_header_stdc=no
14797 rm -f conftest.err conftest.$ac_ext
14799 if test $ac_cv_header_stdc = yes; then
14800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14801 cat >conftest.$ac_ext <<_ACEOF
14802 #line 14802 "configure"
14803 #include "confdefs.h"
14804 #include <string.h>
14807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14808 egrep "memchr" >/dev/null 2>&1; then
14811 ac_cv_header_stdc=no
14817 if test $ac_cv_header_stdc = yes; then
14818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14819 cat >conftest.$ac_ext <<_ACEOF
14820 #line 14820 "configure"
14821 #include "confdefs.h"
14822 #include <stdlib.h>
14825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14826 egrep "free" >/dev/null 2>&1; then
14829 ac_cv_header_stdc=no
14835 if test $ac_cv_header_stdc = yes; then
14836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14837 if test "$cross_compiling" = yes; then
14840 cat >conftest.$ac_ext <<_ACEOF
14841 #line 14841 "configure"
14842 #include "confdefs.h"
14844 #if ((' ' & 0x0FF) == 0x020)
14845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14848 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14849 || ('j' <= (c) && (c) <= 'r') \
14850 || ('s' <= (c) && (c) <= 'z'))
14851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14859 for (i = 0; i < 256; i++)
14860 if (XOR (islower (i), ISLOWER (i))
14861 || toupper (i) != TOUPPER (i))
14862 $ac_main_return(2);
14863 $ac_main_return (0);
14866 rm -f conftest$ac_exeext
14867 if { (eval echo "$as_me:14867: \"$ac_link\"") >&5
14868 (eval $ac_link) 2>&5
14870 echo "$as_me:14870: \$? = $ac_status" >&5
14871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14872 { (eval echo "$as_me:14872: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:14875: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14879 echo "$as_me: program exited with status $ac_status" >&5
14880 echo "$as_me: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14882 ac_cv_header_stdc=no
14884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14888 echo "$as_me:14888: result: $ac_cv_header_stdc" >&5
14889 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14890 if test $ac_cv_header_stdc = yes; then
14892 cat >>confdefs.h <<\EOF
14893 #define STDC_HEADERS 1
14898 ac_header_dirent=no
14899 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14900 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14901 echo "$as_me:14901: checking for $ac_hdr that defines DIR" >&5
14902 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 cat >conftest.$ac_ext <<_ACEOF
14907 #line 14907 "configure"
14908 #include "confdefs.h"
14909 #include <sys/types.h>
14921 rm -f conftest.$ac_objext
14922 if { (eval echo "$as_me:14922: \"$ac_compile\"") >&5
14923 (eval $ac_compile) 2>&5
14925 echo "$as_me:14925: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (eval echo "$as_me:14928: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:14931: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 eval "$as_ac_Header=yes"
14935 echo "$as_me: failed program was:" >&5
14936 cat conftest.$ac_ext >&5
14937 eval "$as_ac_Header=no"
14939 rm -f conftest.$ac_objext conftest.$ac_ext
14941 echo "$as_me:14941: result: `eval echo '${'$as_ac_Header'}'`" >&5
14942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944 cat >>confdefs.h <<EOF
14945 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14948 ac_header_dirent=$ac_hdr; break
14952 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14953 if test $ac_header_dirent = dirent.h; then
14954 echo "$as_me:14954: checking for opendir in -ldir" >&5
14955 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14956 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 ac_check_lib_save_LIBS=$LIBS
14961 cat >conftest.$ac_ext <<_ACEOF
14962 #line 14962 "configure"
14963 #include "confdefs.h"
14965 /* Override any gcc2 internal prototype to avoid an error. */
14969 /* We use char because int might match the return type of a gcc2
14970 builtin and then its argument prototype would still apply. */
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (eval echo "$as_me:14981: \"$ac_link\"") >&5
14982 (eval $ac_link) 2>&5
14984 echo "$as_me:14984: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -s conftest$ac_exeext'
14987 { (eval echo "$as_me:14987: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:14990: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_lib_dir_opendir=yes
14994 echo "$as_me: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 ac_cv_lib_dir_opendir=no
14998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 echo "$as_me:15001: result: $ac_cv_lib_dir_opendir" >&5
15002 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
15003 if test $ac_cv_lib_dir_opendir = yes; then
15008 echo "$as_me:15008: checking for opendir in -lx" >&5
15009 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
15010 if test "${ac_cv_lib_x_opendir+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_check_lib_save_LIBS=$LIBS
15015 cat >conftest.$ac_ext <<_ACEOF
15016 #line 15016 "configure"
15017 #include "confdefs.h"
15019 /* Override any gcc2 internal prototype to avoid an error. */
15023 /* We use char because int might match the return type of a gcc2
15024 builtin and then its argument prototype would still apply. */
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:15035: \"$ac_link\"") >&5
15036 (eval $ac_link) 2>&5
15038 echo "$as_me:15038: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -s conftest$ac_exeext'
15041 { (eval echo "$as_me:15041: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:15044: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_cv_lib_x_opendir=yes
15048 echo "$as_me: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15050 ac_cv_lib_x_opendir=no
15052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15055 echo "$as_me:15055: result: $ac_cv_lib_x_opendir" >&5
15056 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15057 if test $ac_cv_lib_x_opendir = yes; then
15063 echo "$as_me:15063: checking whether time.h and sys/time.h may both be included" >&5
15064 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15065 if test "${ac_cv_header_time+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 cat >conftest.$ac_ext <<_ACEOF
15069 #line 15069 "configure"
15070 #include "confdefs.h"
15071 #include <sys/types.h>
15072 #include <sys/time.h>
15078 if ((struct tm *) 0)
15084 rm -f conftest.$ac_objext
15085 if { (eval echo "$as_me:15085: \"$ac_compile\"") >&5
15086 (eval $ac_compile) 2>&5
15088 echo "$as_me:15088: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (eval echo "$as_me:15091: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:15094: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_cv_header_time=yes
15098 echo "$as_me: failed program was:" >&5
15099 cat conftest.$ac_ext >&5
15100 ac_cv_header_time=no
15102 rm -f conftest.$ac_objext conftest.$ac_ext
15104 echo "$as_me:15104: result: $ac_cv_header_time" >&5
15105 echo "${ECHO_T}$ac_cv_header_time" >&6
15106 if test $ac_cv_header_time = yes; then
15108 cat >>confdefs.h <<\EOF
15109 #define TIME_WITH_SYS_TIME 1
15116 cf_regex_libs="regex re"
15119 cf_regex_libs="gnurx $cf_regex_libs"
15123 echo "$as_me:15123: checking for regcomp" >&5
15124 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15125 if test "${ac_cv_func_regcomp+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line 15129 "configure"
15130 #include "confdefs.h"
15131 /* System header to define __stub macros and hopefully few prototypes,
15132 which can conflict with char regcomp (); below. */
15133 #include <assert.h>
15134 /* Override any gcc2 internal prototype to avoid an error. */
15138 /* We use char because int might match the return type of a gcc2
15139 builtin and then its argument prototype would still apply. */
15146 /* The GNU C library defines this for functions which it implements
15147 to always fail with ENOSYS. Some functions are actually named
15148 something starting with __ and the normal name is an alias. */
15149 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15152 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (eval echo "$as_me:15160: \"$ac_link\"") >&5
15161 (eval $ac_link) 2>&5
15163 echo "$as_me:15163: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -s conftest$ac_exeext'
15166 { (eval echo "$as_me:15166: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:15169: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_func_regcomp=yes
15173 echo "$as_me: failed program was:" >&5
15174 cat conftest.$ac_ext >&5
15175 ac_cv_func_regcomp=no
15177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15179 echo "$as_me:15179: result: $ac_cv_func_regcomp" >&5
15180 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
15181 if test $ac_cv_func_regcomp = yes; then
15182 cf_regex_func=regcomp
15185 for cf_regex_lib in $cf_regex_libs
15187 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
15188 echo "$as_me:15188: checking for regcomp in -l$cf_regex_lib" >&5
15189 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
15190 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-l$cf_regex_lib $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 #line 15196 "configure"
15197 #include "confdefs.h"
15199 /* Override any gcc2 internal prototype to avoid an error. */
15203 /* We use char because int might match the return type of a gcc2
15204 builtin and then its argument prototype would still apply. */
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (eval echo "$as_me:15215: \"$ac_link\"") >&5
15216 (eval $ac_link) 2>&5
15218 echo "$as_me:15218: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -s conftest$ac_exeext'
15221 { (eval echo "$as_me:15221: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:15224: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 eval "$as_ac_Lib=yes"
15228 echo "$as_me: failed program was:" >&5
15229 cat conftest.$ac_ext >&5
15230 eval "$as_ac_Lib=no"
15232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15235 echo "$as_me:15235: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15236 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15237 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15239 cf_add_libs="-l$cf_regex_lib"
15240 # Filter out duplicates - this happens with badly-designed ".pc" files...
15241 for cf_add_1lib in $LIBS
15243 for cf_add_2lib in $cf_add_libs
15245 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15251 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15253 LIBS="$cf_add_libs"
15255 cf_regex_func=regcomp
15263 if test "$cf_regex_func" = no ; then
15264 echo "$as_me:15264: checking for compile" >&5
15265 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15266 if test "${ac_cv_func_compile+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 cat >conftest.$ac_ext <<_ACEOF
15270 #line 15270 "configure"
15271 #include "confdefs.h"
15272 /* System header to define __stub macros and hopefully few prototypes,
15273 which can conflict with char compile (); below. */
15274 #include <assert.h>
15275 /* Override any gcc2 internal prototype to avoid an error. */
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15287 /* The GNU C library defines this for functions which it implements
15288 to always fail with ENOSYS. Some functions are actually named
15289 something starting with __ and the normal name is an alias. */
15290 #if defined (__stub_compile) || defined (__stub___compile)
15293 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (eval echo "$as_me:15301: \"$ac_link\"") >&5
15302 (eval $ac_link) 2>&5
15304 echo "$as_me:15304: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:15307: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:15310: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_func_compile=yes
15314 echo "$as_me: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 ac_cv_func_compile=no
15318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15320 echo "$as_me:15320: result: $ac_cv_func_compile" >&5
15321 echo "${ECHO_T}$ac_cv_func_compile" >&6
15322 if test $ac_cv_func_compile = yes; then
15323 cf_regex_func=compile
15326 echo "$as_me:15326: checking for compile in -lgen" >&5
15327 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
15328 if test "${ac_cv_lib_gen_compile+set}" = set; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 ac_check_lib_save_LIBS=$LIBS
15333 cat >conftest.$ac_ext <<_ACEOF
15334 #line 15334 "configure"
15335 #include "confdefs.h"
15337 /* Override any gcc2 internal prototype to avoid an error. */
15341 /* We use char because int might match the return type of a gcc2
15342 builtin and then its argument prototype would still apply. */
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (eval echo "$as_me:15353: \"$ac_link\"") >&5
15354 (eval $ac_link) 2>&5
15356 echo "$as_me:15356: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -s conftest$ac_exeext'
15359 { (eval echo "$as_me:15359: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:15362: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_cv_lib_gen_compile=yes
15366 echo "$as_me: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15368 ac_cv_lib_gen_compile=no
15370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15371 LIBS=$ac_check_lib_save_LIBS
15373 echo "$as_me:15373: result: $ac_cv_lib_gen_compile" >&5
15374 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15375 if test $ac_cv_lib_gen_compile = yes; then
15377 cf_add_libs="-lgen"
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"
15393 cf_regex_func=compile
15400 if test "$cf_regex_func" = no ; then
15401 { echo "$as_me:15401: WARNING: cannot find regular expression library" >&5
15402 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15405 echo "$as_me:15405: checking for regular-expression headers" >&5
15406 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15407 if test "${cf_cv_regex_hdrs+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 cf_cv_regex_hdrs=no
15412 case $cf_regex_func in
15414 for cf_regex_hdr in regexp.h regexpr.h
15416 cat >conftest.$ac_ext <<_ACEOF
15417 #line 15417 "configure"
15418 #include "confdefs.h"
15419 #include <$cf_regex_hdr>
15424 char *p = compile("", "", "", 0);
15425 int x = step("", "");
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:15432: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>&5
15435 echo "$as_me:15435: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -s conftest$ac_exeext'
15438 { (eval echo "$as_me:15438: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:15441: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15444 cf_cv_regex_hdrs=$cf_regex_hdr
15448 echo "$as_me: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15455 for cf_regex_hdr in regex.h
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line 15458 "configure"
15459 #include "confdefs.h"
15460 #include <sys/types.h>
15461 #include <$cf_regex_hdr>
15467 int x = regcomp(p, "", 0);
15468 int y = regexec(p, "", 0, 0, 0);
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (eval echo "$as_me:15476: \"$ac_link\"") >&5
15477 (eval $ac_link) 2>&5
15479 echo "$as_me:15479: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -s conftest$ac_exeext'
15482 { (eval echo "$as_me:15482: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15485 echo "$as_me:15485: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15488 cf_cv_regex_hdrs=$cf_regex_hdr
15492 echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15501 echo "$as_me:15501: result: $cf_cv_regex_hdrs" >&5
15502 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15504 case $cf_cv_regex_hdrs in
15505 (no) { echo "$as_me:15505: WARNING: no regular expression header found" >&5
15506 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
15508 cat >>confdefs.h <<\EOF
15509 #define HAVE_REGEX_H_FUNCS 1
15513 cat >>confdefs.h <<\EOF
15514 #define HAVE_REGEXP_H_FUNCS 1
15518 cat >>confdefs.h <<\EOF
15519 #define HAVE_REGEXPR_H_FUNCS 1
15543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15544 echo "$as_me:15544: checking for $ac_header" >&5
15545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15550 #line 15550 "configure"
15551 #include "confdefs.h"
15552 #include <$ac_header>
15554 if { (eval echo "$as_me:15554: \"$ac_cpp conftest.$ac_ext\"") >&5
15555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15557 egrep -v '^ *\+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:15560: \$? = $ac_status" >&5
15561 (exit $ac_status); } >/dev/null; then
15562 if test -s conftest.err; then
15563 ac_cpp_err=$ac_c_preproc_warn_flag
15570 if test -z "$ac_cpp_err"; then
15571 eval "$as_ac_Header=yes"
15573 echo "$as_me: failed program was:" >&5
15574 cat conftest.$ac_ext >&5
15575 eval "$as_ac_Header=no"
15577 rm -f conftest.err conftest.$ac_ext
15579 echo "$as_me:15579: result: `eval echo '${'$as_ac_Header'}'`" >&5
15580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<EOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15589 for ac_header in unistd.h getopt.h
15591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15592 echo "$as_me:15592: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 cat >conftest.$ac_ext <<_ACEOF
15598 #line 15598 "configure"
15599 #include "confdefs.h"
15600 #include <$ac_header>
15602 if { (eval echo "$as_me:15602: \"$ac_cpp conftest.$ac_ext\"") >&5
15603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15605 egrep -v '^ *\+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:15608: \$? = $ac_status" >&5
15609 (exit $ac_status); } >/dev/null; then
15610 if test -s conftest.err; then
15611 ac_cpp_err=$ac_c_preproc_warn_flag
15618 if test -z "$ac_cpp_err"; then
15619 eval "$as_ac_Header=yes"
15621 echo "$as_me: failed program was:" >&5
15622 cat conftest.$ac_ext >&5
15623 eval "$as_ac_Header=no"
15625 rm -f conftest.err conftest.$ac_ext
15627 echo "$as_me:15627: result: `eval echo '${'$as_ac_Header'}'`" >&5
15628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15630 cat >>confdefs.h <<EOF
15631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637 echo "$as_me:15637: checking for header declaring getopt variables" >&5
15638 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15639 if test "${cf_cv_getopt_header+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 cf_cv_getopt_header=none
15644 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15646 cat >conftest.$ac_ext <<_ACEOF
15647 #line 15647 "configure"
15648 #include "confdefs.h"
15650 #include <$cf_header>
15654 int x = optind; char *y = optarg
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:15660: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>&5
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:15666: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:15669: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 cf_cv_getopt_header=$cf_header
15674 echo "$as_me: failed program was:" >&5
15675 cat conftest.$ac_ext >&5
15677 rm -f conftest.$ac_objext conftest.$ac_ext
15681 echo "$as_me:15681: result: $cf_cv_getopt_header" >&5
15682 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15683 if test $cf_cv_getopt_header != none ; then
15685 cat >>confdefs.h <<\EOF
15686 #define HAVE_GETOPT_HEADER 1
15690 if test $cf_cv_getopt_header = getopt.h ; then
15692 cat >>confdefs.h <<\EOF
15693 #define NEED_GETOPT_H 1
15698 # check for ISC (this may also define _POSIX_SOURCE)
15699 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15700 if test "x$ISC" = xyes ; then
15702 echo "$as_me:15702: checking for main in -lcposix" >&5
15703 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15704 if test "${ac_cv_lib_cposix_main+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_check_lib_save_LIBS=$LIBS
15708 LIBS="-lcposix $LIBS"
15709 cat >conftest.$ac_ext <<_ACEOF
15710 #line 15710 "configure"
15711 #include "confdefs.h"
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:15722: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15725 echo "$as_me:15725: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:15728: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:15731: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733 ac_cv_lib_cposix_main=yes
15735 echo "$as_me: failed program was:" >&5
15736 cat conftest.$ac_ext >&5
15737 ac_cv_lib_cposix_main=no
15739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15740 LIBS=$ac_check_lib_save_LIBS
15742 echo "$as_me:15742: result: $ac_cv_lib_cposix_main" >&5
15743 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15744 if test $ac_cv_lib_cposix_main = yes; then
15745 cat >>confdefs.h <<EOF
15746 #define HAVE_LIBCPOSIX 1
15749 LIBS="-lcposix $LIBS"
15753 echo "$as_me:15753: checking for bzero in -linet" >&5
15754 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15755 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-linet $LIBS"
15760 cat >conftest.$ac_ext <<_ACEOF
15761 #line 15761 "configure"
15762 #include "confdefs.h"
15764 /* Override any gcc2 internal prototype to avoid an error. */
15768 /* We use char because int might match the return type of a gcc2
15769 builtin and then its argument prototype would still apply. */
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:15780: \"$ac_link\"") >&5
15781 (eval $ac_link) 2>&5
15783 echo "$as_me:15783: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:15786: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:15789: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_lib_inet_bzero=yes
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 ac_cv_lib_inet_bzero=no
15797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15798 LIBS=$ac_check_lib_save_LIBS
15800 echo "$as_me:15800: result: $ac_cv_lib_inet_bzero" >&5
15801 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15802 if test $ac_cv_lib_inet_bzero = yes; then
15804 cf_add_libs="-linet"
15805 # Filter out duplicates - this happens with badly-designed ".pc" files...
15806 for cf_add_1lib in $LIBS
15808 for cf_add_2lib in $cf_add_libs
15810 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15816 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15818 LIBS="$cf_add_libs"
15823 echo "$as_me:15823: checking if sys/time.h works with sys/select.h" >&5
15824 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15825 if test "${cf_cv_sys_time_select+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line 15830 "configure"
15831 #include "confdefs.h"
15833 #include <sys/types.h>
15834 #ifdef HAVE_SYS_TIME_H
15835 #include <sys/time.h>
15837 #ifdef HAVE_SYS_SELECT_H
15838 #include <sys/select.h>
15849 rm -f conftest.$ac_objext
15850 if { (eval echo "$as_me:15850: \"$ac_compile\"") >&5
15851 (eval $ac_compile) 2>&5
15853 echo "$as_me:15853: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:15856: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:15859: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 cf_cv_sys_time_select=yes
15863 echo "$as_me: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15865 cf_cv_sys_time_select=no
15867 rm -f conftest.$ac_objext conftest.$ac_ext
15871 echo "$as_me:15871: result: $cf_cv_sys_time_select" >&5
15872 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15873 test "$cf_cv_sys_time_select" = yes &&
15874 cat >>confdefs.h <<\EOF
15875 #define HAVE_SYS_TIME_SELECT 1
15878 ### checks for compiler characteristics
15880 ac_cpp='$CPP $CPPFLAGS'
15881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15884 ac_main_return=return
15886 echo "$as_me:15886: checking for an ANSI C-conforming const" >&5
15887 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15888 if test "${ac_cv_c_const+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15892 #line 15892 "configure"
15893 #include "confdefs.h"
15898 /* FIXME: Include the comments suggested by Paul. */
15899 #ifndef __cplusplus
15900 /* Ultrix mips cc rejects this. */
15901 typedef int charset[2];
15903 /* SunOS 4.1.1 cc rejects this. */
15904 char const *const *ccp;
15906 /* NEC SVR4.0.2 mips cc rejects this. */
15907 struct point {int x, y;};
15908 static struct point const zero = {0,0};
15909 /* AIX XL C 1.02.0.0 rejects this.
15910 It does not let you subtract one const X* pointer from another in
15911 an arm of an if-expression whose if-part is not a constant
15913 const char *g = "string";
15914 ccp = &g + (g ? g-g : 0);
15915 /* HPUX 7.0 cc rejects these. */
15918 ccp = (char const *const *) p;
15919 { /* SCO 3.2v4 cc rejects this. */
15921 char const *s = 0 ? (char *) 0 : (char const *) 0;
15925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15926 int x[] = {25, 17};
15927 const int *foo = &x[0];
15930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15931 typedef const int *iptr;
15935 { /* AIX XL C 1.02.0.0 rejects this saying
15936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15937 struct s { int j; const int *ap[3]; };
15938 struct s *b; b->j = 5;
15940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15941 const int foo = 10;
15949 rm -f conftest.$ac_objext
15950 if { (eval echo "$as_me:15950: \"$ac_compile\"") >&5
15951 (eval $ac_compile) 2>&5
15953 echo "$as_me:15953: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -s conftest.$ac_objext'
15956 { (eval echo "$as_me:15956: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:15959: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15963 echo "$as_me: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15967 rm -f conftest.$ac_objext conftest.$ac_ext
15969 echo "$as_me:15969: result: $ac_cv_c_const" >&5
15970 echo "${ECHO_T}$ac_cv_c_const" >&6
15971 if test $ac_cv_c_const = no; then
15973 cat >>confdefs.h <<\EOF
15979 echo "$as_me:15979: checking for inline" >&5
15980 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15981 if test "${ac_cv_c_inline+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 for ac_kw in inline __inline__ __inline; do
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line 15987 "configure"
15988 #include "confdefs.h"
15989 #ifndef __cplusplus
15990 static $ac_kw int static_foo () {return 0; }
15991 $ac_kw int foo () {return 0; }
15995 rm -f conftest.$ac_objext
15996 if { (eval echo "$as_me:15996: \"$ac_compile\"") >&5
15997 (eval $ac_compile) 2>&5
15999 echo "$as_me:15999: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:16002: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:16005: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_c_inline=$ac_kw; break
16009 echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16012 rm -f conftest.$ac_objext conftest.$ac_ext
16016 echo "$as_me:16016: result: $ac_cv_c_inline" >&5
16017 echo "${ECHO_T}$ac_cv_c_inline" >&6
16018 case $ac_cv_c_inline in
16021 cat >>confdefs.h <<\EOF
16025 *) cat >>confdefs.h <<EOF
16026 #define inline $ac_cv_c_inline
16032 if test "$ac_cv_c_inline" != no ; then
16033 NCURSES_INLINE=inline
16034 if test "$INTEL_COMPILER" = yes
16037 elif test "$CLANG_COMPILER" = yes
16040 elif test "$GCC" = yes
16042 echo "$as_me:16042: checking if $CC supports options to tune inlining" >&5
16043 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
16044 if test "${cf_cv_gcc_inline+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 cf_save_CFLAGS=$CFLAGS
16049 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
16050 cat >conftest.$ac_ext <<_ACEOF
16051 #line 16051 "configure"
16052 #include "confdefs.h"
16053 inline int foo(void) { return 1; }
16057 ${cf_cv_main_return:-return} foo()
16062 rm -f conftest.$ac_objext
16063 if { (eval echo "$as_me:16063: \"$ac_compile\"") >&5
16064 (eval $ac_compile) 2>&5
16066 echo "$as_me:16066: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
16068 { ac_try='test -s conftest.$ac_objext'
16069 { (eval echo "$as_me:16069: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:16072: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 cf_cv_gcc_inline=yes
16076 echo "$as_me: failed program was:" >&5
16077 cat conftest.$ac_ext >&5
16078 cf_cv_gcc_inline=no
16080 rm -f conftest.$ac_objext conftest.$ac_ext
16081 CFLAGS=$cf_save_CFLAGS
16084 echo "$as_me:16084: result: $cf_cv_gcc_inline" >&5
16085 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16086 if test "$cf_cv_gcc_inline" = yes ; then
16091 cf_new_extra_cppflags=
16093 for cf_add_cflags in --param max-inline-insns-single=1200
16095 case $cf_fix_cppflags in
16097 case $cf_add_cflags in
16098 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16099 case $cf_add_cflags in
16101 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16103 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16104 && test -z "${cf_tst_cflags}" \
16105 && cf_fix_cppflags=yes
16107 if test $cf_fix_cppflags = yes ; then
16108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16110 elif test "${cf_tst_cflags}" = "\"'" ; then
16111 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16116 case "$CPPFLAGS" in
16120 case $cf_add_cflags in
16122 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16124 CPPFLAGS=`echo "$CPPFLAGS" | \
16125 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16126 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16130 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16135 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16140 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16142 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16144 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16145 && test -z "${cf_tst_cflags}" \
16146 && cf_fix_cppflags=no
16151 if test -n "$cf_new_cflags" ; then
16153 CFLAGS="$CFLAGS $cf_new_cflags"
16156 if test -n "$cf_new_cppflags" ; then
16158 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16161 if test -n "$cf_new_extra_cppflags" ; then
16163 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16170 echo "$as_me:16170: checking for signal global datatype" >&5
16171 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
16172 if test "${cf_cv_sig_atomic_t+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 "volatile sig_atomic_t" \
16181 cat >conftest.$ac_ext <<_ACEOF
16182 #line 16182 "configure"
16183 #include "confdefs.h"
16185 #include <sys/types.h>
16186 #include <signal.h>
16191 static void handler(int sig)
16198 signal(SIGINT, handler);
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:16205: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>&5
16208 echo "$as_me:16208: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (eval echo "$as_me:16211: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:16214: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 cf_cv_sig_atomic_t=$cf_type
16218 echo "$as_me: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16220 cf_cv_sig_atomic_t=no
16222 rm -f conftest.$ac_objext conftest.$ac_ext
16223 test "$cf_cv_sig_atomic_t" != no && break
16228 echo "$as_me:16228: result: $cf_cv_sig_atomic_t" >&5
16229 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16230 test "$cf_cv_sig_atomic_t" != no &&
16231 cat >>confdefs.h <<EOF
16232 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16235 if test $NCURSES_CHTYPE = auto ; then
16237 echo "$as_me:16237: checking for type of chtype" >&5
16238 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16239 if test "${cf_cv_typeof_chtype+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 if test "$cross_compiling" = yes; then
16244 cf_cv_typeof_chtype=long
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line 16247 "configure"
16248 #include "confdefs.h"
16250 #define WANT_BITS 31
16254 FILE *fp = fopen("cf_test.out", "w");
16256 char *result = "long";
16257 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16260 for (n = 0; n < WANT_BITS; n++) {
16263 if (y != 1 || x == 0) {
16269 * If x is nonzero, an int is big enough for the bits
16272 result = (x != 0) ? "int" : "long";
16277 ${cf_cv_main_return:-return}(0);
16281 rm -f conftest$ac_exeext
16282 if { (eval echo "$as_me:16282: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>&5
16285 echo "$as_me:16285: \$? = $ac_status" >&5
16286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16287 { (eval echo "$as_me:16287: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:16290: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 cf_cv_typeof_chtype=`cat cf_test.out`
16294 echo "$as_me: program exited with status $ac_status" >&5
16295 echo "$as_me: failed program was:" >&5
16296 cat conftest.$ac_ext >&5
16297 cf_cv_typeof_chtype=long
16299 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16305 echo "$as_me:16305: result: $cf_cv_typeof_chtype" >&5
16306 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
16308 cat >>confdefs.h <<EOF
16309 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
16313 cf_cv_typeof_chtype=$NCURSES_CHTYPE
16315 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
16317 echo "$as_me:16317: checking if unsigned literals are legal" >&5
16318 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
16319 if test "${cf_cv_unsigned_literals+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 cat >conftest.$ac_ext <<_ACEOF
16324 #line 16324 "configure"
16325 #include "confdefs.h"
16330 long x = 1L + 1UL + 1U + 1
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:16336: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>&5
16339 echo "$as_me:16339: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:16342: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:16345: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 cf_cv_unsigned_literals=yes
16349 echo "$as_me: failed program was:" >&5
16350 cat conftest.$ac_ext >&5
16351 cf_cv_unsigned_literals=no
16353 rm -f conftest.$ac_objext conftest.$ac_ext
16357 echo "$as_me:16357: result: $cf_cv_unsigned_literals" >&5
16358 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16361 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16362 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16364 if test $NCURSES_MMASK_T = auto ; then
16365 cf_cv_typeof_mmask_t=long
16367 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16369 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16371 ### Checks for external-data
16373 echo "$as_me:16373: checking if external errno is declared" >&5
16374 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16375 if test "${cf_cv_dcl_errno+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 cat >conftest.$ac_ext <<_ACEOF
16380 #line 16380 "configure"
16381 #include "confdefs.h"
16383 #ifdef HAVE_STDLIB_H
16384 #include <stdlib.h>
16387 #include <sys/types.h>
16392 int x = (int) errno
16397 rm -f conftest.$ac_objext
16398 if { (eval echo "$as_me:16398: \"$ac_compile\"") >&5
16399 (eval $ac_compile) 2>&5
16401 echo "$as_me:16401: \$? = $ac_status" >&5
16402 (exit $ac_status); } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:16404: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:16407: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 cf_cv_dcl_errno=yes
16411 echo "$as_me: failed program was:" >&5
16412 cat conftest.$ac_ext >&5
16415 rm -f conftest.$ac_objext conftest.$ac_ext
16418 echo "$as_me:16418: result: $cf_cv_dcl_errno" >&5
16419 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16421 if test "$cf_cv_dcl_errno" = no ; then
16423 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16425 cat >>confdefs.h <<EOF
16426 #define $cf_result 1
16431 # It's possible (for near-UNIX clones) that the data doesn't exist
16433 echo "$as_me:16433: checking if external errno exists" >&5
16434 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16435 if test "${cf_cv_have_errno+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 cat >conftest.$ac_ext <<_ACEOF
16440 #line 16440 "configure"
16441 #include "confdefs.h"
16454 rm -f conftest.$ac_objext conftest$ac_exeext
16455 if { (eval echo "$as_me:16455: \"$ac_link\"") >&5
16456 (eval $ac_link) 2>&5
16458 echo "$as_me:16458: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -s conftest$ac_exeext'
16461 { (eval echo "$as_me:16461: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 cf_cv_have_errno=yes
16468 echo "$as_me: failed program was:" >&5
16469 cat conftest.$ac_ext >&5
16470 cf_cv_have_errno=no
16472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16475 echo "$as_me:16475: result: $cf_cv_have_errno" >&5
16476 echo "${ECHO_T}$cf_cv_have_errno" >&6
16478 if test "$cf_cv_have_errno" = yes ; then
16480 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16482 cat >>confdefs.h <<EOF
16483 #define $cf_result 1
16488 echo "$as_me:16488: checking if data-only library module links" >&5
16489 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16490 if test "${cf_cv_link_dataonly+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<EOF
16496 #line 16496 "configure"
16497 int testdata[3] = { 123, 456, 789 };
16499 if { (eval echo "$as_me:16499: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>&5
16502 echo "$as_me:16502: \$? = $ac_status" >&5
16503 (exit $ac_status); } ; then
16504 mv conftest.o data.o && \
16505 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16507 rm -f conftest.$ac_ext data.o
16508 cat >conftest.$ac_ext <<EOF
16509 #line 16509 "configure"
16513 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16515 extern int testdata[3];
16516 return testdata[0] == 123
16517 && testdata[1] == 456
16518 && testdata[2] == 789;
16522 if { (eval echo "$as_me:16522: \"$ac_compile\"") >&5
16523 (eval $ac_compile) 2>&5
16525 echo "$as_me:16525: \$? = $ac_status" >&5
16526 (exit $ac_status); }; then
16527 mv conftest.o func.o && \
16528 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16530 rm -f conftest.$ac_ext func.o
16531 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16532 cf_saveLIBS="$LIBS"
16533 LIBS="conftest.a $LIBS"
16534 if test "$cross_compiling" = yes; then
16535 cf_cv_link_dataonly=unknown
16537 cat >conftest.$ac_ext <<_ACEOF
16538 #line 16538 "configure"
16539 #include "confdefs.h"
16543 extern int testfunc();
16544 ${cf_cv_main_return:-return} (!testfunc());
16548 rm -f conftest$ac_exeext
16549 if { (eval echo "$as_me:16549: \"$ac_link\"") >&5
16550 (eval $ac_link) 2>&5
16552 echo "$as_me:16552: \$? = $ac_status" >&5
16553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16554 { (eval echo "$as_me:16554: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:16557: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 cf_cv_link_dataonly=yes
16561 echo "$as_me: program exited with status $ac_status" >&5
16562 echo "$as_me: failed program was:" >&5
16563 cat conftest.$ac_ext >&5
16564 cf_cv_link_dataonly=no
16566 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16568 LIBS="$cf_saveLIBS"
16572 echo "$as_me:16572: result: $cf_cv_link_dataonly" >&5
16573 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16575 if test "$cf_cv_link_dataonly" = no ; then
16577 cat >>confdefs.h <<\EOF
16578 #define BROKEN_LINKER 1
16584 ### Checks for library functions.
16610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 echo "$as_me:16611: checking for $ac_func" >&5
16612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16613 if eval "test \"\${$as_ac_var+set}\" = set"; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16617 #line 16617 "configure"
16618 #include "confdefs.h"
16619 /* System header to define __stub macros and hopefully few prototypes,
16620 which can conflict with char $ac_func (); below. */
16621 #include <assert.h>
16622 /* Override any gcc2 internal prototype to avoid an error. */
16626 /* We use char because int might match the return type of a gcc2
16627 builtin and then its argument prototype would still apply. */
16634 /* The GNU C library defines this for functions which it implements
16635 to always fail with ENOSYS. Some functions are actually named
16636 something starting with __ and the normal name is an alias. */
16637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16640 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16647 rm -f conftest.$ac_objext conftest$ac_exeext
16648 if { (eval echo "$as_me:16648: \"$ac_link\"") >&5
16649 (eval $ac_link) 2>&5
16651 echo "$as_me:16651: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -s conftest$ac_exeext'
16654 { (eval echo "$as_me:16654: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:16657: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 eval "$as_ac_var=yes"
16661 echo "$as_me: failed program was:" >&5
16662 cat conftest.$ac_ext >&5
16663 eval "$as_ac_var=no"
16665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16667 echo "$as_me:16667: result: `eval echo '${'$as_ac_var'}'`" >&5
16668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16669 if test `eval echo '${'$as_ac_var'}'` = yes; then
16670 cat >>confdefs.h <<EOF
16671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16677 if test "x$ac_cv_func_getopt" = xno &&
16678 test "x$cf_with_progs$cf_with_tests" != xnono; then
16679 { { echo "$as_me:16679: error: getopt is required for building programs" >&5
16680 echo "$as_me: error: getopt is required for building programs" >&2;}
16681 { (exit 1); exit 1; }; }
16684 if test "x$with_getcap" = "xyes" ; then
16686 echo "$as_me:16686: checking for terminal-capability database functions" >&5
16687 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16688 if test "${cf_cv_cgetent+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 cat >conftest.$ac_ext <<_ACEOF
16693 #line 16693 "configure"
16694 #include "confdefs.h"
16696 #include <stdlib.h>
16703 char *db_array = temp;
16704 cgetent(&buf, &db_array, "vt100");
16705 cgetcap(buf, "tc", '=');
16706 cgetmatch(buf, "tc");
16712 rm -f conftest.$ac_objext conftest$ac_exeext
16713 if { (eval echo "$as_me:16713: \"$ac_link\"") >&5
16714 (eval $ac_link) 2>&5
16716 echo "$as_me:16716: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:16719: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:16722: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16726 echo "$as_me: failed program was:" >&5
16727 cat conftest.$ac_ext >&5
16730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16733 echo "$as_me:16733: result: $cf_cv_cgetent" >&5
16734 echo "${ECHO_T}$cf_cv_cgetent" >&6
16736 if test "$cf_cv_cgetent" = yes
16739 cat >>confdefs.h <<\EOF
16740 #define HAVE_BSD_CGETENT 1
16743 echo "$as_me:16743: checking if cgetent uses const parameter" >&5
16744 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16745 if test "${cf_cv_cgetent_const+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16750 #line 16750 "configure"
16751 #include "confdefs.h"
16753 #include <stdlib.h>
16760 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16761 const char *db_array = temp;
16762 cgetent(&buf, &db_array, "vt100");
16764 cgetcap(buf, "tc", '=');
16765 cgetmatch(buf, "tc");
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (eval echo "$as_me:16772: \"$ac_link\"") >&5
16773 (eval $ac_link) 2>&5
16775 echo "$as_me:16775: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:16778: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:16781: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 cf_cv_cgetent_const=yes
16785 echo "$as_me: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16787 cf_cv_cgetent_const=no
16789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16792 echo "$as_me:16792: result: $cf_cv_cgetent_const" >&5
16793 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16794 if test "$cf_cv_cgetent_const" = yes
16797 cat >>confdefs.h <<EOF
16798 #define CGETENT_CONST const
16806 echo "$as_me:16806: checking for isascii" >&5
16807 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16808 if test "${cf_cv_have_isascii+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16813 #line 16813 "configure"
16814 #include "confdefs.h"
16819 int x = isascii(' ')
16824 rm -f conftest.$ac_objext conftest$ac_exeext
16825 if { (eval echo "$as_me:16825: \"$ac_link\"") >&5
16826 (eval $ac_link) 2>&5
16828 echo "$as_me:16828: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -s conftest$ac_exeext'
16831 { (eval echo "$as_me:16831: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16834 echo "$as_me:16834: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 cf_cv_have_isascii=yes
16838 echo "$as_me: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16840 cf_cv_have_isascii=no
16842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16845 echo "$as_me:16845: result: $cf_cv_have_isascii" >&5
16846 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16847 test "$cf_cv_have_isascii" = yes &&
16848 cat >>confdefs.h <<\EOF
16849 #define HAVE_ISASCII 1
16852 if test "$ac_cv_func_sigaction" = yes; then
16853 echo "$as_me:16853: checking whether sigaction needs _POSIX_SOURCE" >&5
16854 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16855 cat >conftest.$ac_ext <<_ACEOF
16856 #line 16856 "configure"
16857 #include "confdefs.h"
16859 #include <sys/types.h>
16860 #include <signal.h>
16864 struct sigaction act
16869 rm -f conftest.$ac_objext
16870 if { (eval echo "$as_me:16870: \"$ac_compile\"") >&5
16871 (eval $ac_compile) 2>&5
16873 echo "$as_me:16873: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (eval echo "$as_me:16876: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:16879: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16883 echo "$as_me: failed program was:" >&5
16884 cat conftest.$ac_ext >&5
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line 16887 "configure"
16888 #include "confdefs.h"
16890 #define _POSIX_SOURCE
16891 #include <sys/types.h>
16892 #include <signal.h>
16896 struct sigaction act
16901 rm -f conftest.$ac_objext
16902 if { (eval echo "$as_me:16902: \"$ac_compile\"") >&5
16903 (eval $ac_compile) 2>&5
16905 echo "$as_me:16905: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:16908: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16911 echo "$as_me:16911: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16915 cat >>confdefs.h <<\EOF
16916 #define _POSIX_SOURCE 1
16920 echo "$as_me: failed program was:" >&5
16921 cat conftest.$ac_ext >&5
16924 rm -f conftest.$ac_objext conftest.$ac_ext
16926 rm -f conftest.$ac_objext conftest.$ac_ext
16927 echo "$as_me:16927: result: $sigact_bad" >&5
16928 echo "${ECHO_T}$sigact_bad" >&6
16931 echo "$as_me:16931: checking if nanosleep really works" >&5
16932 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16933 if test "${cf_cv_func_nanosleep+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 if test "$cross_compiling" = yes; then
16938 cf_cv_func_nanosleep=unknown
16940 cat >conftest.$ac_ext <<_ACEOF
16941 #line 16941 "configure"
16942 #include "confdefs.h"
16948 #ifdef HAVE_SYS_TIME_H
16949 #include <sys/time.h>
16953 struct timespec ts1, ts2;
16956 ts1.tv_nsec = 750000000;
16960 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16961 ${cf_cv_main_return:-return}(code != 0);
16965 rm -f conftest$ac_exeext
16966 if { (eval echo "$as_me:16966: \"$ac_link\"") >&5
16967 (eval $ac_link) 2>&5
16969 echo "$as_me:16969: \$? = $ac_status" >&5
16970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16971 { (eval echo "$as_me:16971: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:16974: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 cf_cv_func_nanosleep=yes
16978 echo "$as_me: program exited with status $ac_status" >&5
16979 echo "$as_me: failed program was:" >&5
16980 cat conftest.$ac_ext >&5
16981 cf_cv_func_nanosleep=no
16983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16986 echo "$as_me:16986: result: $cf_cv_func_nanosleep" >&5
16987 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16989 test "$cf_cv_func_nanosleep" = "yes" &&
16990 cat >>confdefs.h <<\EOF
16991 #define HAVE_NANOSLEEP 1
17000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17001 echo "$as_me:17001: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17007 #line 17007 "configure"
17008 #include "confdefs.h"
17009 #include <$ac_header>
17011 if { (eval echo "$as_me:17011: \"$ac_cpp conftest.$ac_ext\"") >&5
17012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17014 egrep -v '^ *\+' conftest.er1 >conftest.err
17016 cat conftest.err >&5
17017 echo "$as_me:17017: \$? = $ac_status" >&5
17018 (exit $ac_status); } >/dev/null; then
17019 if test -s conftest.err; then
17020 ac_cpp_err=$ac_c_preproc_warn_flag
17027 if test -z "$ac_cpp_err"; then
17028 eval "$as_ac_Header=yes"
17030 echo "$as_me: failed program was:" >&5
17031 cat conftest.$ac_ext >&5
17032 eval "$as_ac_Header=no"
17034 rm -f conftest.err conftest.$ac_ext
17036 echo "$as_me:17036: result: `eval echo '${'$as_ac_Header'}'`" >&5
17037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17039 cat >>confdefs.h <<EOF
17040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17046 if test "$ISC" = yes ; then
17048 for ac_header in sys/termio.h
17050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17051 echo "$as_me:17051: checking for $ac_header" >&5
17052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 cat >conftest.$ac_ext <<_ACEOF
17057 #line 17057 "configure"
17058 #include "confdefs.h"
17059 #include <$ac_header>
17061 if { (eval echo "$as_me:17061: \"$ac_cpp conftest.$ac_ext\"") >&5
17062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17064 egrep -v '^ *\+' conftest.er1 >conftest.err
17066 cat conftest.err >&5
17067 echo "$as_me:17067: \$? = $ac_status" >&5
17068 (exit $ac_status); } >/dev/null; then
17069 if test -s conftest.err; then
17070 ac_cpp_err=$ac_c_preproc_warn_flag
17077 if test -z "$ac_cpp_err"; then
17078 eval "$as_ac_Header=yes"
17080 echo "$as_me: failed program was:" >&5
17081 cat conftest.$ac_ext >&5
17082 eval "$as_ac_Header=no"
17084 rm -f conftest.err conftest.$ac_ext
17086 echo "$as_me:17086: result: `eval echo '${'$as_ac_Header'}'`" >&5
17087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17089 cat >>confdefs.h <<EOF
17090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17097 if test "$ac_cv_header_termios_h" = yes ; then
17098 case "$CFLAGS $CPPFLAGS" in
17099 (*-D_POSIX_SOURCE*)
17100 termios_bad=dunno ;;
17101 (*) termios_bad=maybe ;;
17103 if test "$termios_bad" = maybe ; then
17104 echo "$as_me:17104: checking whether termios.h needs _POSIX_SOURCE" >&5
17105 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17106 cat >conftest.$ac_ext <<_ACEOF
17107 #line 17107 "configure"
17108 #include "confdefs.h"
17109 #include <termios.h>
17113 struct termios foo; int x = foo.c_iflag
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:17119: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>&5
17122 echo "$as_me:17122: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try='test -s conftest.$ac_objext'
17125 { (eval echo "$as_me:17125: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 echo "$as_me:17128: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17132 echo "$as_me: failed program was:" >&5
17133 cat conftest.$ac_ext >&5
17135 cat >conftest.$ac_ext <<_ACEOF
17136 #line 17136 "configure"
17137 #include "confdefs.h"
17139 #define _POSIX_SOURCE
17140 #include <termios.h>
17144 struct termios foo; int x = foo.c_iflag
17149 rm -f conftest.$ac_objext
17150 if { (eval echo "$as_me:17150: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>&5
17153 echo "$as_me:17153: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -s conftest.$ac_objext'
17156 { (eval echo "$as_me:17156: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17159 echo "$as_me:17159: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 termios_bad=unknown
17163 echo "$as_me: failed program was:" >&5
17164 cat conftest.$ac_ext >&5
17166 cat >>confdefs.h <<\EOF
17167 #define _POSIX_SOURCE 1
17171 rm -f conftest.$ac_objext conftest.$ac_ext
17174 rm -f conftest.$ac_objext conftest.$ac_ext
17175 echo "$as_me:17175: result: $termios_bad" >&5
17176 echo "${ECHO_T}$termios_bad" >&6
17180 echo "$as_me:17180: checking for tcgetattr" >&5
17181 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
17182 if test "${cf_cv_have_tcgetattr+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 cat >conftest.$ac_ext <<_ACEOF
17187 #line 17187 "configure"
17188 #include "confdefs.h"
17190 #include <sys/types.h>
17191 #ifdef HAVE_UNISTD_H
17192 #include <unistd.h>
17194 #ifdef HAVE_TERMIOS_H
17195 #include <termios.h>
17196 #define TTY struct termios
17198 #ifdef HAVE_TERMIO_H
17199 #include <termio.h>
17200 #define TTY struct termio
17209 tcgetattr(1, &foo);
17214 rm -f conftest.$ac_objext conftest$ac_exeext
17215 if { (eval echo "$as_me:17215: \"$ac_link\"") >&5
17216 (eval $ac_link) 2>&5
17218 echo "$as_me:17218: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -s conftest$ac_exeext'
17221 { (eval echo "$as_me:17221: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:17224: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 cf_cv_have_tcgetattr=yes
17228 echo "$as_me: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 cf_cv_have_tcgetattr=no
17232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17234 echo "$as_me:17234: result: $cf_cv_have_tcgetattr" >&5
17235 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17236 test "$cf_cv_have_tcgetattr" = yes &&
17237 cat >>confdefs.h <<\EOF
17238 #define HAVE_TCGETATTR 1
17241 echo "$as_me:17241: checking for vsscanf function or workaround" >&5
17242 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17243 if test "${cf_cv_func_vsscanf+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 cat >conftest.$ac_ext <<_ACEOF
17248 #line 17248 "configure"
17249 #include "confdefs.h"
17251 #include <stdarg.h>
17258 vsscanf("from", "%d", ap)
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (eval echo "$as_me:17264: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>&5
17267 echo "$as_me:17267: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (eval echo "$as_me:17270: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:17273: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 cf_cv_func_vsscanf=vsscanf
17277 echo "$as_me: failed program was:" >&5
17278 cat conftest.$ac_ext >&5
17280 cat >conftest.$ac_ext <<_ACEOF
17281 #line 17281 "configure"
17282 #include "confdefs.h"
17284 #include <stdarg.h>
17291 char *str = "from";
17293 strbuf._flag = _IOREAD;
17294 strbuf._ptr = strbuf._base = (unsigned char *) str;
17295 strbuf._cnt = strlen(str);
17296 strbuf._file = _NFILE;
17297 return (vfscanf(&strbuf, "%d", ap))
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (eval echo "$as_me:17303: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>&5
17306 echo "$as_me:17306: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -s conftest$ac_exeext'
17309 { (eval echo "$as_me:17309: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:17312: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 cf_cv_func_vsscanf=vfscanf
17316 echo "$as_me: failed program was:" >&5
17317 cat conftest.$ac_ext >&5
17319 cat >conftest.$ac_ext <<_ACEOF
17320 #line 17320 "configure"
17321 #include "confdefs.h"
17323 #include <stdarg.h>
17330 char *str = "from";
17332 strbuf._flag = _IOREAD;
17333 strbuf._ptr = strbuf._base = (unsigned char *) str;
17334 strbuf._cnt = strlen(str);
17335 strbuf._file = _NFILE;
17336 return (_doscan(&strbuf, "%d", ap))
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (eval echo "$as_me:17342: \"$ac_link\"") >&5
17343 (eval $ac_link) 2>&5
17345 echo "$as_me:17345: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -s conftest$ac_exeext'
17348 { (eval echo "$as_me:17348: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 cf_cv_func_vsscanf=_doscan
17355 echo "$as_me: failed program was:" >&5
17356 cat conftest.$ac_ext >&5
17358 cf_cv_func_vsscanf=no
17360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17366 echo "$as_me:17366: result: $cf_cv_func_vsscanf" >&5
17367 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17369 case $cf_cv_func_vsscanf in
17371 cat >>confdefs.h <<\EOF
17372 #define HAVE_VSSCANF 1
17376 cat >>confdefs.h <<\EOF
17377 #define HAVE_VFSCANF 1
17381 cat >>confdefs.h <<\EOF
17382 #define HAVE__DOSCAN 1
17387 echo "$as_me:17387: checking for working mkstemp" >&5
17388 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17389 if test "${cf_cv_func_mkstemp+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 if test "$cross_compiling" = yes; then
17395 cf_cv_func_mkstemp=maybe
17397 cat >conftest.$ac_ext <<_ACEOF
17398 #line 17398 "configure"
17399 #include "confdefs.h"
17401 #include <sys/types.h>
17402 #include <stdlib.h>
17404 #include <string.h>
17405 #include <sys/stat.h>
17408 char *tmpl = "conftestXXXXXX";
17416 for (n = 0; n < 2; ++n) {
17417 strcpy(name[n], tmpl);
17418 if ((fd = mkstemp(name[n])) >= 0) {
17419 if (!strcmp(name[n], tmpl)
17420 || stat(name[n], &sb) != 0
17421 || (sb.st_mode & S_IFMT) != S_IFREG
17422 || (sb.st_mode & 077) != 0) {
17429 && !strcmp(name[0], name[1]))
17431 ${cf_cv_main_return:-return}(result);
17435 rm -f conftest$ac_exeext
17436 if { (eval echo "$as_me:17436: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17439 echo "$as_me:17439: \$? = $ac_status" >&5
17440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17441 { (eval echo "$as_me:17441: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17444 echo "$as_me:17444: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 cf_cv_func_mkstemp=yes
17449 echo "$as_me: program exited with status $ac_status" >&5
17450 echo "$as_me: failed program was:" >&5
17451 cat conftest.$ac_ext >&5
17452 cf_cv_func_mkstemp=no
17455 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17459 echo "$as_me:17459: result: $cf_cv_func_mkstemp" >&5
17460 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17461 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17462 echo "$as_me:17462: checking for mkstemp" >&5
17463 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17464 if test "${ac_cv_func_mkstemp+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 cat >conftest.$ac_ext <<_ACEOF
17468 #line 17468 "configure"
17469 #include "confdefs.h"
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char mkstemp (); below. */
17472 #include <assert.h>
17473 /* Override any gcc2 internal prototype to avoid an error. */
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17485 /* The GNU C library defines this for functions which it implements
17486 to always fail with ENOSYS. Some functions are actually named
17487 something starting with __ and the normal name is an alias. */
17488 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17491 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (eval echo "$as_me:17499: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>&5
17502 echo "$as_me:17502: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (eval echo "$as_me:17505: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17508 echo "$as_me:17508: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_func_mkstemp=yes
17512 echo "$as_me: failed program was:" >&5
17513 cat conftest.$ac_ext >&5
17514 ac_cv_func_mkstemp=no
17516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17518 echo "$as_me:17518: result: $ac_cv_func_mkstemp" >&5
17519 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17522 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17524 cat >>confdefs.h <<\EOF
17525 #define HAVE_MKSTEMP 1
17530 # setup for prototype of fallback for vsscanf()
17532 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17538 if test "x$cross_compiling" = xyes ; then
17539 { echo "$as_me:17539: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17540 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17542 echo "$as_me:17542: checking whether setvbuf arguments are reversed" >&5
17543 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17544 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 if test "$cross_compiling" = yes; then
17548 { { echo "$as_me:17548: error: cannot run test program while cross compiling" >&5
17549 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17550 { (exit 1); exit 1; }; }
17552 cat >conftest.$ac_ext <<_ACEOF
17553 #line 17553 "configure"
17554 #include "confdefs.h"
17556 /* If setvbuf has the reversed format, exit 0. */
17560 /* This call has the arguments reversed.
17561 A reversed system may check and see that the address of main
17562 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17563 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17564 $ac_main_return(1);
17565 putc('\r', stdout);
17566 $ac_main_return(0); /* Non-reversed systems segv here. */
17569 rm -f conftest$ac_exeext
17570 if { (eval echo "$as_me:17570: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>&5
17573 echo "$as_me:17573: \$? = $ac_status" >&5
17574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17575 { (eval echo "$as_me:17575: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:17578: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_func_setvbuf_reversed=yes
17582 echo "$as_me: program exited with status $ac_status" >&5
17583 echo "$as_me: failed program was:" >&5
17584 cat conftest.$ac_ext >&5
17585 ac_cv_func_setvbuf_reversed=no
17587 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17589 rm -f core core.* *.core
17591 echo "$as_me:17591: result: $ac_cv_func_setvbuf_reversed" >&5
17592 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17593 if test $ac_cv_func_setvbuf_reversed = yes; then
17595 cat >>confdefs.h <<\EOF
17596 #define SETVBUF_REVERSED 1
17602 echo "$as_me:17602: checking for intptr_t" >&5
17603 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17604 if test "${ac_cv_type_intptr_t+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 cat >conftest.$ac_ext <<_ACEOF
17608 #line 17608 "configure"
17609 #include "confdefs.h"
17610 $ac_includes_default
17614 if ((intptr_t *) 0)
17616 if (sizeof (intptr_t))
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:17623: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>&5
17626 echo "$as_me:17626: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
17628 { ac_try='test -s conftest.$ac_objext'
17629 { (eval echo "$as_me:17629: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:17632: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_type_intptr_t=yes
17636 echo "$as_me: failed program was:" >&5
17637 cat conftest.$ac_ext >&5
17638 ac_cv_type_intptr_t=no
17640 rm -f conftest.$ac_objext conftest.$ac_ext
17642 echo "$as_me:17642: result: $ac_cv_type_intptr_t" >&5
17643 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17644 if test $ac_cv_type_intptr_t = yes; then
17648 cat >>confdefs.h <<EOF
17649 #define intptr_t long
17654 echo "$as_me:17654: checking for ssize_t" >&5
17655 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17656 if test "${ac_cv_type_ssize_t+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 cat >conftest.$ac_ext <<_ACEOF
17660 #line 17660 "configure"
17661 #include "confdefs.h"
17662 $ac_includes_default
17668 if (sizeof (ssize_t))
17674 rm -f conftest.$ac_objext
17675 if { (eval echo "$as_me:17675: \"$ac_compile\"") >&5
17676 (eval $ac_compile) 2>&5
17678 echo "$as_me:17678: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_type_ssize_t=yes
17688 echo "$as_me: failed program was:" >&5
17689 cat conftest.$ac_ext >&5
17690 ac_cv_type_ssize_t=no
17692 rm -f conftest.$ac_objext conftest.$ac_ext
17694 echo "$as_me:17694: result: $ac_cv_type_ssize_t" >&5
17695 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17696 if test $ac_cv_type_ssize_t = yes; then
17700 cat >>confdefs.h <<EOF
17701 #define ssize_t int
17706 echo "$as_me:17706: checking for type sigaction_t" >&5
17707 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17708 if test "${cf_cv_type_sigaction+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 cat >conftest.$ac_ext <<_ACEOF
17713 #line 17713 "configure"
17714 #include "confdefs.h"
17716 #include <signal.h>
17725 rm -f conftest.$ac_objext
17726 if { (eval echo "$as_me:17726: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>&5
17729 echo "$as_me:17729: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try='test -s conftest.$ac_objext'
17732 { (eval echo "$as_me:17732: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:17735: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 cf_cv_type_sigaction=yes
17739 echo "$as_me: failed program was:" >&5
17740 cat conftest.$ac_ext >&5
17741 cf_cv_type_sigaction=no
17743 rm -f conftest.$ac_objext conftest.$ac_ext
17746 echo "$as_me:17746: result: $cf_cv_type_sigaction" >&5
17747 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17748 test "$cf_cv_type_sigaction" = yes &&
17749 cat >>confdefs.h <<\EOF
17750 #define HAVE_TYPE_SIGACTION 1
17753 echo "$as_me:17753: checking declaration of size-change" >&5
17754 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17755 if test "${cf_cv_sizechange+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 cf_cv_sizechange=unknown
17760 cf_save_CPPFLAGS="$CPPFLAGS"
17762 for cf_opts in "" "NEED_PTEM_H"
17765 CPPFLAGS="$cf_save_CPPFLAGS"
17766 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17767 cat >conftest.$ac_ext <<_ACEOF
17768 #line 17768 "configure"
17769 #include "confdefs.h"
17770 #include <sys/types.h>
17771 #ifdef HAVE_TERMIOS_H
17772 #include <termios.h>
17774 #ifdef HAVE_TERMIO_H
17775 #include <termio.h>
17779 /* This is a workaround for SCO: they neglected to define struct winsize in
17780 * termios.h -- it's only in termio.h and ptem.h
17782 #include <sys/stream.h>
17783 #include <sys/ptem.h>
17785 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17786 #include <sys/ioctl.h>
17794 struct ttysize win; /* FIXME: what system is this? */
17795 int y = win.ts_lines;
17796 int x = win.ts_cols;
17799 struct winsize win;
17800 int y = win.ws_row;
17801 int x = win.ws_col;
17803 no TIOCGSIZE or TIOCGWINSZ
17804 #endif /* TIOCGWINSZ */
17805 #endif /* TIOCGSIZE */
17811 rm -f conftest.$ac_objext
17812 if { (eval echo "$as_me:17812: \"$ac_compile\"") >&5
17813 (eval $ac_compile) 2>&5
17815 echo "$as_me:17815: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -s conftest.$ac_objext'
17818 { (eval echo "$as_me:17818: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 echo "$as_me:17821: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 cf_cv_sizechange=yes
17825 echo "$as_me: failed program was:" >&5
17826 cat conftest.$ac_ext >&5
17827 cf_cv_sizechange=no
17829 rm -f conftest.$ac_objext conftest.$ac_ext
17831 CPPFLAGS="$cf_save_CPPFLAGS"
17832 if test "$cf_cv_sizechange" = yes ; then
17833 echo "size-change succeeded ($cf_opts)" >&5
17834 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17840 echo "$as_me:17840: result: $cf_cv_sizechange" >&5
17841 echo "${ECHO_T}$cf_cv_sizechange" >&6
17842 if test "$cf_cv_sizechange" != no ; then
17844 cat >>confdefs.h <<\EOF
17845 #define HAVE_SIZECHANGE 1
17848 case $cf_cv_sizechange in
17850 cat >>confdefs.h <<EOF
17851 #define $cf_cv_sizechange 1
17858 echo "$as_me:17858: checking for memmove" >&5
17859 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17860 if test "${ac_cv_func_memmove+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 cat >conftest.$ac_ext <<_ACEOF
17864 #line 17864 "configure"
17865 #include "confdefs.h"
17866 /* System header to define __stub macros and hopefully few prototypes,
17867 which can conflict with char memmove (); below. */
17868 #include <assert.h>
17869 /* Override any gcc2 internal prototype to avoid an error. */
17873 /* We use char because int might match the return type of a gcc2
17874 builtin and then its argument prototype would still apply. */
17881 /* The GNU C library defines this for functions which it implements
17882 to always fail with ENOSYS. Some functions are actually named
17883 something starting with __ and the normal name is an alias. */
17884 #if defined (__stub_memmove) || defined (__stub___memmove)
17887 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:17895: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>&5
17898 echo "$as_me:17898: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (eval echo "$as_me:17901: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:17904: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_cv_func_memmove=yes
17908 echo "$as_me: failed program was:" >&5
17909 cat conftest.$ac_ext >&5
17910 ac_cv_func_memmove=no
17912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17914 echo "$as_me:17914: result: $ac_cv_func_memmove" >&5
17915 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17916 if test $ac_cv_func_memmove = yes; then
17920 echo "$as_me:17920: checking for bcopy" >&5
17921 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17922 if test "${ac_cv_func_bcopy+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 cat >conftest.$ac_ext <<_ACEOF
17926 #line 17926 "configure"
17927 #include "confdefs.h"
17928 /* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char bcopy (); below. */
17930 #include <assert.h>
17931 /* Override any gcc2 internal prototype to avoid an error. */
17935 /* We use char because int might match the return type of a gcc2
17936 builtin and then its argument prototype would still apply. */
17943 /* The GNU C library defines this for functions which it implements
17944 to always fail with ENOSYS. Some functions are actually named
17945 something starting with __ and the normal name is an alias. */
17946 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17949 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (eval echo "$as_me:17957: \"$ac_link\"") >&5
17958 (eval $ac_link) 2>&5
17960 echo "$as_me:17960: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -s conftest$ac_exeext'
17963 { (eval echo "$as_me:17963: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:17966: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_func_bcopy=yes
17970 echo "$as_me: failed program was:" >&5
17971 cat conftest.$ac_ext >&5
17972 ac_cv_func_bcopy=no
17974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17976 echo "$as_me:17976: result: $ac_cv_func_bcopy" >&5
17977 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17978 if test $ac_cv_func_bcopy = yes; then
17980 echo "$as_me:17980: checking if bcopy does overlapping moves" >&5
17981 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17982 if test "${cf_cv_good_bcopy+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 if test "$cross_compiling" = yes; then
17987 cf_cv_good_bcopy=unknown
17989 cat >conftest.$ac_ext <<_ACEOF
17990 #line 17990 "configure"
17991 #include "confdefs.h"
17994 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17996 bcopy(data, temp, sizeof(data));
17997 bcopy(temp+10, temp, 15);
17998 bcopy(temp+5, temp+15, 10);
17999 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
18003 rm -f conftest$ac_exeext
18004 if { (eval echo "$as_me:18004: \"$ac_link\"") >&5
18005 (eval $ac_link) 2>&5
18007 echo "$as_me:18007: \$? = $ac_status" >&5
18008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18009 { (eval echo "$as_me:18009: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 echo "$as_me:18012: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 cf_cv_good_bcopy=yes
18016 echo "$as_me: program exited with status $ac_status" >&5
18017 echo "$as_me: failed program was:" >&5
18018 cat conftest.$ac_ext >&5
18019 cf_cv_good_bcopy=no
18021 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18025 echo "$as_me:18025: result: $cf_cv_good_bcopy" >&5
18026 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
18029 cf_cv_good_bcopy=no
18032 if test "$cf_cv_good_bcopy" = yes ; then
18034 cat >>confdefs.h <<\EOF
18035 #define USE_OK_BCOPY 1
18040 cat >>confdefs.h <<\EOF
18041 #define USE_MY_MEMMOVE 1
18048 tty 2>&1 >/dev/null || {
18049 for ac_func in posix_openpt
18051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18052 echo "$as_me:18052: checking for $ac_func" >&5
18053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18054 if eval "test \"\${$as_ac_var+set}\" = set"; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 cat >conftest.$ac_ext <<_ACEOF
18058 #line 18058 "configure"
18059 #include "confdefs.h"
18060 /* System header to define __stub macros and hopefully few prototypes,
18061 which can conflict with char $ac_func (); below. */
18062 #include <assert.h>
18063 /* Override any gcc2 internal prototype to avoid an error. */
18067 /* We use char because int might match the return type of a gcc2
18068 builtin and then its argument prototype would still apply. */
18075 /* The GNU C library defines this for functions which it implements
18076 to always fail with ENOSYS. Some functions are actually named
18077 something starting with __ and the normal name is an alias. */
18078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18081 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:18089: \"$ac_link\"") >&5
18090 (eval $ac_link) 2>&5
18092 echo "$as_me:18092: \$? = $ac_status" >&5
18093 (exit $ac_status); } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (eval echo "$as_me:18095: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:18098: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 eval "$as_ac_var=yes"
18102 echo "$as_me: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 eval "$as_ac_var=no"
18106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18108 echo "$as_me:18108: result: `eval echo '${'$as_ac_var'}'`" >&5
18109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18110 if test `eval echo '${'$as_ac_var'}'` = yes; then
18111 cat >>confdefs.h <<EOF
18112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18118 echo "$as_me:18118: checking if poll really works" >&5
18119 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
18120 if test "${cf_cv_working_poll+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 if test "$cross_compiling" = yes; then
18125 cf_cv_working_poll=unknown
18127 cat >conftest.$ac_ext <<_ACEOF
18128 #line 18128 "configure"
18129 #include "confdefs.h"
18131 #include <stdlib.h>
18133 #include <unistd.h>
18138 #include <sys/poll.h>
18141 struct pollfd myfds;
18144 /* check for Darwin bug with respect to "devices" */
18145 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
18148 myfds.events = POLLIN;
18151 ret = poll(&myfds, 1, 100);
18153 if (ret < 0 || (myfds.revents & POLLNVAL)) {
18158 fd = open("/dev/tty", 2); /* O_RDWR */
18160 #ifdef HAVE_POSIX_OPENPT
18162 fd = posix_openpt(O_RDWR);
18167 /* also check with standard input */
18169 myfds.events = POLLIN;
18171 ret = poll(&myfds, 1, 100);
18176 ${cf_cv_main_return:-return}(ret < 0);
18179 rm -f conftest$ac_exeext
18180 if { (eval echo "$as_me:18180: \"$ac_link\"") >&5
18181 (eval $ac_link) 2>&5
18183 echo "$as_me:18183: \$? = $ac_status" >&5
18184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18185 { (eval echo "$as_me:18185: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:18188: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 cf_cv_working_poll=yes
18192 echo "$as_me: program exited with status $ac_status" >&5
18193 echo "$as_me: failed program was:" >&5
18194 cat conftest.$ac_ext >&5
18195 cf_cv_working_poll=no
18197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18200 echo "$as_me:18200: result: $cf_cv_working_poll" >&5
18201 echo "${ECHO_T}$cf_cv_working_poll" >&6
18202 test "$cf_cv_working_poll" = "yes" &&
18203 cat >>confdefs.h <<\EOF
18204 #define HAVE_WORKING_POLL 1
18207 echo "$as_me:18207: checking for va_copy" >&5
18208 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18209 if test "${cf_cv_have_va_copy+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 cat >conftest.$ac_ext <<_ACEOF
18214 #line 18214 "configure"
18215 #include "confdefs.h"
18217 #include <stdarg.h>
18223 static va_list dst;
18224 static va_list src;
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (eval echo "$as_me:18231: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>&5
18234 echo "$as_me:18234: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -s conftest$ac_exeext'
18237 { (eval echo "$as_me:18237: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:18240: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 cf_cv_have_va_copy=yes
18244 echo "$as_me: failed program was:" >&5
18245 cat conftest.$ac_ext >&5
18246 cf_cv_have_va_copy=no
18248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18250 echo "$as_me:18250: result: $cf_cv_have_va_copy" >&5
18251 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
18253 test "$cf_cv_have_va_copy" = yes &&
18254 cat >>confdefs.h <<\EOF
18255 #define HAVE_VA_COPY 1
18258 echo "$as_me:18258: checking for __va_copy" >&5
18259 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
18260 if test "${cf_cv_have___va_copy+set}" = set; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 cat >conftest.$ac_ext <<_ACEOF
18265 #line 18265 "configure"
18266 #include "confdefs.h"
18268 #include <stdarg.h>
18274 static va_list dst;
18275 static va_list src;
18276 __va_copy(dst, src)
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (eval echo "$as_me:18282: \"$ac_link\"") >&5
18283 (eval $ac_link) 2>&5
18285 echo "$as_me:18285: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (eval echo "$as_me:18288: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18291 echo "$as_me:18291: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 cf_cv_have___va_copy=yes
18295 echo "$as_me: failed program was:" >&5
18296 cat conftest.$ac_ext >&5
18297 cf_cv_have___va_copy=no
18299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18301 echo "$as_me:18301: result: $cf_cv_have___va_copy" >&5
18302 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
18304 test "$cf_cv_have___va_copy" = yes &&
18305 cat >>confdefs.h <<\EOF
18306 #define HAVE___VA_COPY 1
18309 echo "$as_me:18309: checking for pid_t" >&5
18310 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18311 if test "${ac_cv_type_pid_t+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 cat >conftest.$ac_ext <<_ACEOF
18315 #line 18315 "configure"
18316 #include "confdefs.h"
18317 $ac_includes_default
18323 if (sizeof (pid_t))
18329 rm -f conftest.$ac_objext
18330 if { (eval echo "$as_me:18330: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>&5
18333 echo "$as_me:18333: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -s conftest.$ac_objext'
18336 { (eval echo "$as_me:18336: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:18339: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_type_pid_t=yes
18343 echo "$as_me: failed program was:" >&5
18344 cat conftest.$ac_ext >&5
18345 ac_cv_type_pid_t=no
18347 rm -f conftest.$ac_objext conftest.$ac_ext
18349 echo "$as_me:18349: result: $ac_cv_type_pid_t" >&5
18350 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18351 if test $ac_cv_type_pid_t = yes; then
18355 cat >>confdefs.h <<EOF
18361 for ac_header in unistd.h vfork.h
18363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18364 echo "$as_me:18364: checking for $ac_header" >&5
18365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 cat >conftest.$ac_ext <<_ACEOF
18370 #line 18370 "configure"
18371 #include "confdefs.h"
18372 #include <$ac_header>
18374 if { (eval echo "$as_me:18374: \"$ac_cpp conftest.$ac_ext\"") >&5
18375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18377 egrep -v '^ *\+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:18380: \$? = $ac_status" >&5
18381 (exit $ac_status); } >/dev/null; then
18382 if test -s conftest.err; then
18383 ac_cpp_err=$ac_c_preproc_warn_flag
18390 if test -z "$ac_cpp_err"; then
18391 eval "$as_ac_Header=yes"
18393 echo "$as_me: failed program was:" >&5
18394 cat conftest.$ac_ext >&5
18395 eval "$as_ac_Header=no"
18397 rm -f conftest.err conftest.$ac_ext
18399 echo "$as_me:18399: result: `eval echo '${'$as_ac_Header'}'`" >&5
18400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18402 cat >>confdefs.h <<EOF
18403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18409 for ac_func in fork vfork
18411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18412 echo "$as_me:18412: checking for $ac_func" >&5
18413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18414 if eval "test \"\${$as_ac_var+set}\" = set"; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18418 #line 18418 "configure"
18419 #include "confdefs.h"
18420 /* System header to define __stub macros and hopefully few prototypes,
18421 which can conflict with char $ac_func (); below. */
18422 #include <assert.h>
18423 /* Override any gcc2 internal prototype to avoid an error. */
18427 /* We use char because int might match the return type of a gcc2
18428 builtin and then its argument prototype would still apply. */
18435 /* The GNU C library defines this for functions which it implements
18436 to always fail with ENOSYS. Some functions are actually named
18437 something starting with __ and the normal name is an alias. */
18438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18441 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18448 rm -f conftest.$ac_objext conftest$ac_exeext
18449 if { (eval echo "$as_me:18449: \"$ac_link\"") >&5
18450 (eval $ac_link) 2>&5
18452 echo "$as_me:18452: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -s conftest$ac_exeext'
18455 { (eval echo "$as_me:18455: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18458 echo "$as_me:18458: \$? = $ac_status" >&5
18459 (exit $ac_status); }; }; then
18460 eval "$as_ac_var=yes"
18462 echo "$as_me: failed program was:" >&5
18463 cat conftest.$ac_ext >&5
18464 eval "$as_ac_var=no"
18466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18468 echo "$as_me:18468: result: `eval echo '${'$as_ac_var'}'`" >&5
18469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18470 if test `eval echo '${'$as_ac_var'}'` = yes; then
18471 cat >>confdefs.h <<EOF
18472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18478 ac_cv_func_fork_works=$ac_cv_func_fork
18479 if test "x$ac_cv_func_fork" = xyes; then
18480 echo "$as_me:18480: checking for working fork" >&5
18481 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18482 if test "${ac_cv_func_fork_works+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 if test "$cross_compiling" = yes; then
18486 ac_cv_func_fork_works=cross
18488 cat >conftest.$ac_ext <<_ACEOF
18489 /* By Rüdiger Kuhlmann. */
18490 #include <sys/types.h>
18492 # include <unistd.h>
18494 /* Some systems only have a dummy stub for fork() */
18498 $ac_main_return (1);
18499 $ac_main_return (0);
18502 rm -f conftest$ac_exeext
18503 if { (eval echo "$as_me:18503: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>&5
18506 echo "$as_me:18506: \$? = $ac_status" >&5
18507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18508 { (eval echo "$as_me:18508: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:18511: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_cv_func_fork_works=yes
18515 echo "$as_me: program exited with status $ac_status" >&5
18516 echo "$as_me: failed program was:" >&5
18517 cat conftest.$ac_ext >&5
18518 ac_cv_func_fork_works=no
18520 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18523 echo "$as_me:18523: result: $ac_cv_func_fork_works" >&5
18524 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18527 if test "x$ac_cv_func_fork_works" = xcross; then
18529 *-*-amigaos* | *-*-msdosdjgpp*)
18530 # Override, as these systems have only a dummy fork() stub
18531 ac_cv_func_fork_works=no
18534 ac_cv_func_fork_works=yes
18537 { echo "$as_me:18537: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18538 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18540 ac_cv_func_vfork_works=$ac_cv_func_vfork
18541 if test "x$ac_cv_func_vfork" = xyes; then
18542 echo "$as_me:18542: checking for working vfork" >&5
18543 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18544 if test "${ac_cv_func_vfork_works+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 if test "$cross_compiling" = yes; then
18548 ac_cv_func_vfork_works=cross
18550 cat >conftest.$ac_ext <<_ACEOF
18551 #line 18551 "configure"
18552 #include "confdefs.h"
18553 /* Thanks to Paul Eggert for this test. */
18555 #include <sys/types.h>
18556 #include <sys/stat.h>
18558 # include <unistd.h>
18561 # include <vfork.h>
18563 /* On some sparc systems, changes by the child to local and incoming
18564 argument registers are propagated back to the parent. The compiler
18565 is told about this with #include <vfork.h>, but some compilers
18566 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18567 static variable whose address is put into a register that is
18568 clobbered by the vfork. */
18571 sparc_address_test (int arg)
18573 sparc_address_test (arg) int arg;
18576 static pid_t child;
18594 pid_t parent = getpid ();
18597 sparc_address_test ();
18602 /* Here is another test for sparc vfork register problems. This
18603 test uses lots of local variables, at least as many local
18604 variables as main has allocated so far including compiler
18605 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18606 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18607 reuse the register of parent for one of the local variables,
18608 since it will think that parent can't possibly be used any more
18609 in this routine. Assigning to the local variable will thus
18610 munge parent in the parent process. */
18612 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18613 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18614 /* Convince the compiler that p..p7 are live; otherwise, it might
18615 use the same hardware register for all 8 local variables. */
18616 if (p != p1 || p != p2 || p != p3 || p != p4
18617 || p != p5 || p != p6 || p != p7)
18620 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18621 from child file descriptors. If the child closes a descriptor
18622 before it execs or exits, this munges the parent's descriptor
18623 as well. Test for this by closing stdout in the child. */
18624 _exit(close(fileno(stdout)) != 0);
18629 while (wait(&status) != child)
18632 /* Was there some problem with vforking? */
18635 /* Did the child fail? (This shouldn't happen.) */
18638 /* Did the vfork/compiler bug occur? */
18639 || parent != getpid()
18641 /* Did the file descriptor bug occur? */
18642 || fstat(fileno(stdout), &st) != 0
18647 rm -f conftest$ac_exeext
18648 if { (eval echo "$as_me:18648: \"$ac_link\"") >&5
18649 (eval $ac_link) 2>&5
18651 echo "$as_me:18651: \$? = $ac_status" >&5
18652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18653 { (eval echo "$as_me:18653: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18656 echo "$as_me:18656: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 ac_cv_func_vfork_works=yes
18660 echo "$as_me: program exited with status $ac_status" >&5
18661 echo "$as_me: failed program was:" >&5
18662 cat conftest.$ac_ext >&5
18663 ac_cv_func_vfork_works=no
18665 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18668 echo "$as_me:18668: result: $ac_cv_func_vfork_works" >&5
18669 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18672 if test "x$ac_cv_func_fork_works" = xcross; then
18673 ac_cv_func_vfork_works=ac_cv_func_vfork
18674 { echo "$as_me:18674: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18675 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18678 if test "x$ac_cv_func_vfork_works" = xyes; then
18680 cat >>confdefs.h <<\EOF
18681 #define HAVE_WORKING_VFORK 1
18686 cat >>confdefs.h <<\EOF
18691 if test "x$ac_cv_func_fork_works" = xyes; then
18693 cat >>confdefs.h <<\EOF
18694 #define HAVE_WORKING_FORK 1
18699 # special check for test/ditto.c
18701 echo "$as_me:18701: checking for openpty in -lutil" >&5
18702 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18703 if test "${ac_cv_lib_util_openpty+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-lutil $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF
18709 #line 18709 "configure"
18710 #include "confdefs.h"
18712 /* Override any gcc2 internal prototype to avoid an error. */
18716 /* We use char because int might match the return type of a gcc2
18717 builtin and then its argument prototype would still apply. */
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (eval echo "$as_me:18728: \"$ac_link\"") >&5
18729 (eval $ac_link) 2>&5
18731 echo "$as_me:18731: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try='test -s conftest$ac_exeext'
18734 { (eval echo "$as_me:18734: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:18737: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_lib_util_openpty=yes
18741 echo "$as_me: failed program was:" >&5
18742 cat conftest.$ac_ext >&5
18743 ac_cv_lib_util_openpty=no
18745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18746 LIBS=$ac_check_lib_save_LIBS
18748 echo "$as_me:18748: result: $ac_cv_lib_util_openpty" >&5
18749 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18750 if test $ac_cv_lib_util_openpty = yes; then
18756 echo "$as_me:18756: checking for openpty header" >&5
18757 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18758 if test "${cf_cv_func_openpty+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 cf_save_LIBS="$LIBS"
18763 test $cf_cv_lib_util = yes && {
18764 cf_add_libs="-lutil"
18765 # Filter out duplicates - this happens with badly-designed ".pc" files...
18766 for cf_add_1lib in $LIBS
18768 for cf_add_2lib in $cf_add_libs
18770 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18776 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18778 LIBS="$cf_add_libs"
18780 for cf_header in pty.h libutil.h util.h
18782 cat >conftest.$ac_ext <<_ACEOF
18783 #line 18783 "configure"
18784 #include "confdefs.h"
18786 #include <$cf_header>
18792 int x = openpty((int *)0, (int *)0, (char *)0,
18793 (struct termios *)0, (struct winsize *)0);
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (eval echo "$as_me:18800: \"$ac_link\"") >&5
18801 (eval $ac_link) 2>&5
18803 echo "$as_me:18803: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -s conftest$ac_exeext'
18806 { (eval echo "$as_me:18806: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18809 echo "$as_me:18809: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18812 cf_cv_func_openpty=$cf_header
18816 echo "$as_me: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18819 cf_cv_func_openpty=no
18822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18824 LIBS="$cf_save_LIBS"
18827 echo "$as_me:18827: result: $cf_cv_func_openpty" >&5
18828 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18830 if test "$cf_cv_func_openpty" != no ; then
18832 cat >>confdefs.h <<EOF
18833 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18836 cat >>confdefs.h <<\EOF
18837 #define USE_XTERM_PTY 1
18840 if test "x$cf_cv_lib_util" = xyes ; then
18842 cf_add_libs="-lutil"
18843 # Filter out duplicates - this happens with badly-designed ".pc" files...
18844 for cf_add_1lib in $TEST_LIBS
18846 for cf_add_2lib in $cf_add_libs
18848 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18854 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18856 TEST_LIBS="$cf_add_libs"
18861 if test "$with_hashed_db" != no ; then
18863 cat >>confdefs.h <<\EOF
18864 #define USE_HASHED_DB 1
18867 case $with_hashed_db in
18871 if test -d "$with_hashed_db" ; then
18873 if test -n "$with_hashed_db/include" ; then
18874 for cf_add_incdir in $with_hashed_db/include
18876 while test $cf_add_incdir != /usr/include
18878 if test -d $cf_add_incdir
18881 if test -n "$CFLAGS$CPPFLAGS" ; then
18882 # a loop is needed to ensure we can add subdirs of existing dirs
18883 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18884 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18885 cf_have_incdir=yes; break
18890 if test "$cf_have_incdir" = no ; then
18891 if test "$cf_add_incdir" = /usr/local/include ; then
18892 if test "$GCC" = yes
18894 cf_save_CPPFLAGS=$CPPFLAGS
18895 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18896 cat >conftest.$ac_ext <<_ACEOF
18897 #line 18897 "configure"
18898 #include "confdefs.h"
18908 rm -f conftest.$ac_objext
18909 if { (eval echo "$as_me:18909: \"$ac_compile\"") >&5
18910 (eval $ac_compile) 2>&5
18912 echo "$as_me:18912: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (eval echo "$as_me:18915: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:18918: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18922 echo "$as_me: failed program was:" >&5
18923 cat conftest.$ac_ext >&5
18926 rm -f conftest.$ac_objext conftest.$ac_ext
18927 CPPFLAGS=$cf_save_CPPFLAGS
18932 if test "$cf_have_incdir" = no ; then
18933 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18935 echo "${as_me:-configure}:18935: testing adding $cf_add_incdir to include-path ..." 1>&5
18937 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18939 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18940 test "$cf_top_incdir" = "$cf_add_incdir" && break
18941 cf_add_incdir="$cf_top_incdir"
18952 if test -n "$with_hashed_db/lib" ; then
18953 for cf_add_libdir in $with_hashed_db/lib
18955 if test $cf_add_libdir = /usr/lib ; then
18957 elif test -d $cf_add_libdir
18960 if test -n "$LDFLAGS$LIBS" ; then
18961 # a loop is needed to ensure we can add subdirs of existing dirs
18962 for cf_test_libdir in $LDFLAGS $LIBS ; do
18963 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18964 cf_have_libdir=yes; break
18968 if test "$cf_have_libdir" = no ; then
18969 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18971 echo "${as_me:-configure}:18971: testing adding $cf_add_libdir to library-path ..." 1>&5
18973 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18980 case "$with_hashed_db" in
18982 { echo "$as_me:18982: WARNING: no such directory $with_hashed_db" >&5
18983 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18989 test "x$prefix" != "xNONE" && \
18990 test -d "$prefix" && \
18992 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18993 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18994 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18995 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18996 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18997 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
19000 for cf_subdir_prefix in \
19009 test "x$cf_subdir_prefix" != "x$prefix" && \
19010 test -d "$cf_subdir_prefix" && \
19011 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19012 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
19013 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
19014 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
19015 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
19016 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
19017 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"
19022 for cf_item in $cf_search
19025 (*/$with_hashed_db)
19027 if test -n "$cf_item" ; then
19028 for cf_add_incdir in $cf_item
19030 while test $cf_add_incdir != /usr/include
19032 if test -d $cf_add_incdir
19035 if test -n "$CFLAGS$CPPFLAGS" ; then
19036 # a loop is needed to ensure we can add subdirs of existing dirs
19037 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19038 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19039 cf_have_incdir=yes; break
19044 if test "$cf_have_incdir" = no ; then
19045 if test "$cf_add_incdir" = /usr/local/include ; then
19046 if test "$GCC" = yes
19048 cf_save_CPPFLAGS=$CPPFLAGS
19049 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19050 cat >conftest.$ac_ext <<_ACEOF
19051 #line 19051 "configure"
19052 #include "confdefs.h"
19062 rm -f conftest.$ac_objext
19063 if { (eval echo "$as_me:19063: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>&5
19066 echo "$as_me:19066: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -s conftest.$ac_objext'
19069 { (eval echo "$as_me:19069: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19072 echo "$as_me:19072: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19076 echo "$as_me: failed program was:" >&5
19077 cat conftest.$ac_ext >&5
19080 rm -f conftest.$ac_objext conftest.$ac_ext
19081 CPPFLAGS=$cf_save_CPPFLAGS
19086 if test "$cf_have_incdir" = no ; then
19087 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19089 echo "${as_me:-configure}:19089: testing adding $cf_add_incdir to include-path ..." 1>&5
19091 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19093 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19094 test "$cf_top_incdir" = "$cf_add_incdir" && break
19095 cf_add_incdir="$cf_top_incdir"
19112 test "x$prefix" != "xNONE" && \
19113 test -d "$prefix" && \
19115 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
19116 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
19117 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
19118 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
19119 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
19120 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
19123 for cf_subdir_prefix in \
19132 test "x$cf_subdir_prefix" != "x$prefix" && \
19133 test -d "$cf_subdir_prefix" && \
19134 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19135 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
19136 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
19137 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
19138 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
19139 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
19140 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"
19145 for cf_item in $cf_search
19148 (*/$with_hashed_db)
19150 if test -n "$cf_item" ; then
19151 for cf_add_libdir in $cf_item
19153 if test $cf_add_libdir = /usr/lib ; then
19155 elif test -d $cf_add_libdir
19158 if test -n "$LDFLAGS$LIBS" ; then
19159 # a loop is needed to ensure we can add subdirs of existing dirs
19160 for cf_test_libdir in $LDFLAGS $LIBS ; do
19161 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19162 cf_have_libdir=yes; break
19166 if test "$cf_have_libdir" = no ; then
19167 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19169 echo "${as_me:-configure}:19169: testing adding $cf_add_libdir to library-path ..." 1>&5
19171 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19186 echo "$as_me:19186: checking for db.h" >&5
19187 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
19188 if test "${ac_cv_header_db_h+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 cat >conftest.$ac_ext <<_ACEOF
19192 #line 19192 "configure"
19193 #include "confdefs.h"
19196 if { (eval echo "$as_me:19196: \"$ac_cpp conftest.$ac_ext\"") >&5
19197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19199 egrep -v '^ *\+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:19202: \$? = $ac_status" >&5
19203 (exit $ac_status); } >/dev/null; then
19204 if test -s conftest.err; then
19205 ac_cpp_err=$ac_c_preproc_warn_flag
19212 if test -z "$ac_cpp_err"; then
19213 ac_cv_header_db_h=yes
19215 echo "$as_me: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19217 ac_cv_header_db_h=no
19219 rm -f conftest.err conftest.$ac_ext
19221 echo "$as_me:19221: result: $ac_cv_header_db_h" >&5
19222 echo "${ECHO_T}$ac_cv_header_db_h" >&6
19223 if test $ac_cv_header_db_h = yes; then
19225 echo "$as_me:19225: checking for version of db" >&5
19226 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
19227 if test "${cf_cv_hashed_db_version+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 cf_cv_hashed_db_version=unknown
19233 for cf_db_version in 1 2 3 4 5 6
19236 echo "${as_me:-configure}:19236: testing checking for db version $cf_db_version ..." 1>&5
19238 cat >conftest.$ac_ext <<_ACEOF
19239 #line 19239 "configure"
19240 #include "confdefs.h"
19242 $ac_includes_default
19245 #ifdef DB_VERSION_MAJOR
19246 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
19247 #if $cf_db_version == DB_VERSION_MAJOR
19253 #if $cf_db_version == 1
19254 /* ok: assuming this is DB 1.8.5 */
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:19269: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>&5
19272 echo "$as_me:19272: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -s conftest.$ac_objext'
19275 { (eval echo "$as_me:19275: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19278 echo "$as_me:19278: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19281 cf_cv_hashed_db_version=$cf_db_version
19285 echo "$as_me: failed program was:" >&5
19286 cat conftest.$ac_ext >&5
19288 rm -f conftest.$ac_objext conftest.$ac_ext
19292 echo "$as_me:19292: result: $cf_cv_hashed_db_version" >&5
19293 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
19295 if test "$cf_cv_hashed_db_version" = unknown ; then
19296 { { echo "$as_me:19296: error: Cannot determine version of db" >&5
19297 echo "$as_me: error: Cannot determine version of db" >&2;}
19298 { (exit 1); exit 1; }; }
19301 echo "$as_me:19301: checking for db libraries" >&5
19302 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
19303 if test "${cf_cv_hashed_db_libs+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 cf_cv_hashed_db_libs=unknown
19308 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
19310 cf_save_libs="$LIBS"
19311 if test -n "$cf_db_libs"; then
19313 cf_add_libs="-l$cf_db_libs"
19314 # Filter out duplicates - this happens with badly-designed ".pc" files...
19315 for cf_add_1lib in $LIBS
19317 for cf_add_2lib in $cf_add_libs
19319 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19325 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19327 LIBS="$cf_add_libs"
19331 echo "${as_me:-configure}:19331: testing checking for library "$cf_db_libs" ..." 1>&5
19333 cat >conftest.$ac_ext <<_ACEOF
19334 #line 19334 "configure"
19335 #include "confdefs.h"
19337 $ac_includes_default
19344 char *path = "/tmp/foo";
19345 #ifdef DB_VERSION_MAJOR
19346 #if DB_VERSION_MAJOR >= 4
19348 db_create(&result, NULL, 0);
19349 result->open(result,
19356 #elif DB_VERSION_MAJOR >= 3
19358 db_create(&result, NULL, 0);
19359 result->open(result,
19365 #elif DB_VERSION_MAJOR >= 2
19374 #endif /* DB_VERSION_MAJOR */
19376 DB *result = dbopen(path,
19382 ${cf_cv_main_return:-return}(result != 0)
19388 rm -f conftest.$ac_objext conftest$ac_exeext
19389 if { (eval echo "$as_me:19389: \"$ac_link\"") >&5
19390 (eval $ac_link) 2>&5
19392 echo "$as_me:19392: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -s conftest$ac_exeext'
19395 { (eval echo "$as_me:19395: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19398 echo "$as_me:19398: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19401 if test -n "$cf_db_libs" ; then
19402 cf_cv_hashed_db_libs=$cf_db_libs
19404 cf_cv_hashed_db_libs=default
19406 LIBS="$cf_save_libs"
19410 echo "$as_me: failed program was:" >&5
19411 cat conftest.$ac_ext >&5
19413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19414 LIBS="$cf_save_libs"
19418 echo "$as_me:19418: result: $cf_cv_hashed_db_libs" >&5
19419 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19421 if test "$cf_cv_hashed_db_libs" = unknown ; then
19422 { { echo "$as_me:19422: error: Cannot determine library for db" >&5
19423 echo "$as_me: error: Cannot determine library for db" >&2;}
19424 { (exit 1); exit 1; }; }
19425 elif test "$cf_cv_hashed_db_libs" != default ; then
19427 cf_add_libs="-l$cf_cv_hashed_db_libs"
19428 # Filter out duplicates - this happens with badly-designed ".pc" files...
19429 for cf_add_1lib in $LIBS
19431 for cf_add_2lib in $cf_add_libs
19433 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19439 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19441 LIBS="$cf_add_libs"
19448 { { echo "$as_me:19448: error: Cannot find db.h" >&5
19449 echo "$as_me: error: Cannot find db.h" >&2;}
19450 { (exit 1); exit 1; }; }
19456 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19457 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19458 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19461 # Just in case, check if the C compiler has a bool type.
19463 echo "$as_me:19463: checking if we should include stdbool.h" >&5
19464 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19466 if test "${cf_cv_header_stdbool_h+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19471 #line 19471 "configure"
19472 #include "confdefs.h"
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:19483: \"$ac_compile\"") >&5
19484 (eval $ac_compile) 2>&5
19486 echo "$as_me:19486: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:19489: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:19492: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 cf_cv_header_stdbool_h=0
19496 echo "$as_me: failed program was:" >&5
19497 cat conftest.$ac_ext >&5
19498 cat >conftest.$ac_ext <<_ACEOF
19499 #line 19499 "configure"
19500 #include "confdefs.h"
19503 #include <stdbool.h>
19514 rm -f conftest.$ac_objext
19515 if { (eval echo "$as_me:19515: \"$ac_compile\"") >&5
19516 (eval $ac_compile) 2>&5
19518 echo "$as_me:19518: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:19521: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:19524: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 cf_cv_header_stdbool_h=1
19528 echo "$as_me: failed program was:" >&5
19529 cat conftest.$ac_ext >&5
19530 cf_cv_header_stdbool_h=0
19532 rm -f conftest.$ac_objext conftest.$ac_ext
19534 rm -f conftest.$ac_objext conftest.$ac_ext
19537 if test "$cf_cv_header_stdbool_h" = 1
19538 then echo "$as_me:19538: result: yes" >&5
19539 echo "${ECHO_T}yes" >&6
19540 else echo "$as_me:19540: result: no" >&5
19541 echo "${ECHO_T}no" >&6
19544 echo "$as_me:19544: checking for builtin bool type" >&5
19545 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19547 if test "${cf_cv_cc_bool_type+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19552 #line 19552 "configure"
19553 #include "confdefs.h"
19556 #include <sys/types.h>
19566 rm -f conftest.$ac_objext
19567 if { (eval echo "$as_me:19567: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>&5
19570 echo "$as_me:19570: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:19573: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:19576: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 cf_cv_cc_bool_type=1
19580 echo "$as_me: failed program was:" >&5
19581 cat conftest.$ac_ext >&5
19582 cf_cv_cc_bool_type=0
19584 rm -f conftest.$ac_objext conftest.$ac_ext
19588 if test "$cf_cv_cc_bool_type" = 1
19589 then echo "$as_me:19589: result: yes" >&5
19590 echo "${ECHO_T}yes" >&6
19591 else echo "$as_me:19591: result: no" >&5
19592 echo "${ECHO_T}no" >&6
19595 # Check for C++ compiler characteristics (and ensure that it's there!)
19596 if test -n "$CXX" ; then
19598 ac_cpp='$CXXCPP $CPPFLAGS'
19599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19602 ac_main_return=return
19604 if test -n "$GXX" ; then
19607 LIBS="$LIBS $CXXLIBS"
19608 echo "$as_me:19608: checking if we already have C++ library" >&5
19609 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19611 #line 19611 "configure"
19612 #include "confdefs.h"
19614 #include <iostream>
19619 std::cout << "Hello World!" << std::endl;
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (eval echo "$as_me:19625: \"$ac_link\"") >&5
19626 (eval $ac_link) 2>&5
19628 echo "$as_me:19628: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -s conftest$ac_exeext'
19631 { (eval echo "$as_me:19631: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:19634: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 cf_have_libstdcpp=yes
19638 echo "$as_me: failed program was:" >&5
19639 cat conftest.$ac_ext >&5
19640 cf_have_libstdcpp=no
19642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19643 echo "$as_me:19643: result: $cf_have_libstdcpp" >&5
19644 echo "${ECHO_T}$cf_have_libstdcpp" >&6
19647 if test $cf_have_libstdcpp != yes
19649 case $cf_cv_system_name in
19651 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
19652 cf_stdcpp_libname=stdcpp
19654 cf_stdcpp_libname=stdc++
19658 cf_stdcpp_libname=stdc++
19662 echo "$as_me:19662: checking for library $cf_stdcpp_libname" >&5
19663 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19664 if test "${cf_cv_libstdcpp+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 LIBS="$LIBS $CXXLIBS"
19671 cf_add_libs="-l$cf_stdcpp_libname"
19672 # Filter out duplicates - this happens with badly-designed ".pc" files...
19673 for cf_add_1lib in $LIBS
19675 for cf_add_2lib in $cf_add_libs
19677 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19683 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19685 LIBS="$cf_add_libs"
19687 cat >conftest.$ac_ext <<_ACEOF
19688 #line 19688 "configure"
19689 #include "confdefs.h"
19691 #include <iostream>
19696 std::cout << "Hello World!" << std::endl;
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (eval echo "$as_me:19702: \"$ac_link\"") >&5
19703 (eval $ac_link) 2>&5
19705 echo "$as_me:19705: \$? = $ac_status" >&5
19706 (exit $ac_status); } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:19708: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:19711: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 cf_cv_libstdcpp=yes
19715 echo "$as_me: failed program was:" >&5
19716 cat conftest.$ac_ext >&5
19719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19723 echo "$as_me:19723: result: $cf_cv_libstdcpp" >&5
19724 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19725 test "$cf_cv_libstdcpp" = yes && {
19726 cf_add_libs="-l$cf_stdcpp_libname"
19727 # Filter out duplicates - this happens with badly-designed ".pc" files...
19728 for cf_add_1lib in $CXXLIBS
19730 for cf_add_2lib in $cf_add_libs
19732 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19738 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19740 CXXLIBS="$cf_add_libs"
19745 echo "$as_me:19745: checking whether $CXX understands -c and -o together" >&5
19746 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19747 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 cat > conftest.$ac_ext <<CF_EOF
19754 ${cf_cv_main_return:-return}(0);
19757 # We do the test twice because some compilers refuse to overwrite an
19758 # existing .o file with -o, though they will create one.
19759 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19760 if { (eval echo "$as_me:19760: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:19763: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 test -f conftest2.$ac_objext && { (eval echo "$as_me:19765: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19768 echo "$as_me:19768: \$? = $ac_status" >&5
19769 (exit $ac_status); };
19771 eval cf_cv_prog_CXX_c_o=yes
19773 eval cf_cv_prog_CXX_c_o=no
19778 if test $cf_cv_prog_CXX_c_o = yes; then
19779 echo "$as_me:19779: result: yes" >&5
19780 echo "${ECHO_T}yes" >&6
19782 echo "$as_me:19782: result: no" >&5
19783 echo "${ECHO_T}no" >&6
19786 case $GXX_VERSION in
19792 cf_cxx_library=unknown
19793 case $cf_cv_system_name in
19801 if test "$GXX" = yes; then
19802 echo "$as_me:19802: checking for lib$cf_gpp_libname" >&5
19803 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19806 cf_add_libs="-l$cf_gpp_libname"
19807 # Filter out duplicates - this happens with badly-designed ".pc" files...
19808 for cf_add_1lib in $LIBS
19810 for cf_add_2lib in $cf_add_libs
19812 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19818 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19820 LIBS="$cf_add_libs"
19822 cat >conftest.$ac_ext <<_ACEOF
19823 #line 19823 "configure"
19824 #include "confdefs.h"
19826 #include <$cf_gpp_libname/builtin.h>
19831 two_arg_error_handler_t foo2 = lib_error_handler
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (eval echo "$as_me:19837: \"$ac_link\"") >&5
19838 (eval $ac_link) 2>&5
19840 echo "$as_me:19840: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -s conftest$ac_exeext'
19843 { (eval echo "$as_me:19843: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19846 echo "$as_me:19846: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19850 cf_add_libs="-l$cf_gpp_libname"
19851 # Filter out duplicates - this happens with badly-designed ".pc" files...
19852 for cf_add_1lib in $CXXLIBS
19854 for cf_add_2lib in $cf_add_libs
19856 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19862 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19864 CXXLIBS="$cf_add_libs"
19866 if test "$cf_gpp_libname" = cpp ; then
19868 cat >>confdefs.h <<\EOF
19869 #define HAVE_GPP_BUILTIN_H 1
19874 cat >>confdefs.h <<\EOF
19875 #define HAVE_GXX_BUILTIN_H 1
19880 echo "$as_me: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19882 cat >conftest.$ac_ext <<_ACEOF
19883 #line 19883 "configure"
19884 #include "confdefs.h"
19886 #include <builtin.h>
19891 two_arg_error_handler_t foo2 = lib_error_handler
19896 rm -f conftest.$ac_objext conftest$ac_exeext
19897 if { (eval echo "$as_me:19897: \"$ac_link\"") >&5
19898 (eval $ac_link) 2>&5
19900 echo "$as_me:19900: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -s conftest$ac_exeext'
19903 { (eval echo "$as_me:19903: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:19906: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19910 cf_add_libs="-l$cf_gpp_libname"
19911 # Filter out duplicates - this happens with badly-designed ".pc" files...
19912 for cf_add_1lib in $CXXLIBS
19914 for cf_add_2lib in $cf_add_libs
19916 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19922 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19924 CXXLIBS="$cf_add_libs"
19926 cat >>confdefs.h <<\EOF
19927 #define HAVE_BUILTIN_H 1
19931 echo "$as_me: failed program was:" >&5
19932 cat conftest.$ac_ext >&5
19935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19939 echo "$as_me:19939: result: $cf_cxx_library" >&5
19940 echo "${ECHO_T}$cf_cxx_library" >&6
19950 ac_cpp='$CXXCPP $CPPFLAGS'
19951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19954 ac_main_return=return
19955 echo "$as_me:19955: checking how to run the C++ preprocessor" >&5
19956 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19957 if test -z "$CXXCPP"; then
19958 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 # Double quotes because CXXCPP needs to be expanded
19962 for CXXCPP in "$CXX -E" "/lib/cpp"
19964 ac_preproc_ok=false
19965 for ac_cxx_preproc_warn_flag in '' yes
19967 # Use a header file that comes with gcc, so configuring glibc
19968 # with a fresh cross-compiler works.
19969 # On the NeXT, cc -E runs the code through the compiler's parser,
19970 # not just through cpp. "Syntax error" is here to catch this case.
19971 cat >conftest.$ac_ext <<_ACEOF
19972 #line 19972 "configure"
19973 #include "confdefs.h"
19974 #include <assert.h>
19977 if { (eval echo "$as_me:19977: \"$ac_cpp conftest.$ac_ext\"") >&5
19978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19980 egrep -v '^ *\+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:19983: \$? = $ac_status" >&5
19984 (exit $ac_status); } >/dev/null; then
19985 if test -s conftest.err; then
19986 ac_cpp_err=$ac_cxx_preproc_warn_flag
19993 if test -z "$ac_cpp_err"; then
19996 echo "$as_me: failed program was:" >&5
19997 cat conftest.$ac_ext >&5
19998 # Broken: fails on valid input.
20001 rm -f conftest.err conftest.$ac_ext
20003 # OK, works on sane cases. Now check whether non-existent headers
20004 # can be detected and how.
20005 cat >conftest.$ac_ext <<_ACEOF
20006 #line 20006 "configure"
20007 #include "confdefs.h"
20008 #include <ac_nonexistent.h>
20010 if { (eval echo "$as_me:20010: \"$ac_cpp conftest.$ac_ext\"") >&5
20011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20013 egrep -v '^ *\+' conftest.er1 >conftest.err
20015 cat conftest.err >&5
20016 echo "$as_me:20016: \$? = $ac_status" >&5
20017 (exit $ac_status); } >/dev/null; then
20018 if test -s conftest.err; then
20019 ac_cpp_err=$ac_cxx_preproc_warn_flag
20026 if test -z "$ac_cpp_err"; then
20027 # Broken: success on invalid input.
20030 echo "$as_me: failed program was:" >&5
20031 cat conftest.$ac_ext >&5
20032 # Passes both tests.
20036 rm -f conftest.err conftest.$ac_ext
20039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20040 rm -f conftest.err conftest.$ac_ext
20041 if $ac_preproc_ok; then
20046 ac_cv_prog_CXXCPP=$CXXCPP
20049 CXXCPP=$ac_cv_prog_CXXCPP
20051 ac_cv_prog_CXXCPP=$CXXCPP
20053 echo "$as_me:20053: result: $CXXCPP" >&5
20054 echo "${ECHO_T}$CXXCPP" >&6
20055 ac_preproc_ok=false
20056 for ac_cxx_preproc_warn_flag in '' yes
20058 # Use a header file that comes with gcc, so configuring glibc
20059 # with a fresh cross-compiler works.
20060 # On the NeXT, cc -E runs the code through the compiler's parser,
20061 # not just through cpp. "Syntax error" is here to catch this case.
20062 cat >conftest.$ac_ext <<_ACEOF
20063 #line 20063 "configure"
20064 #include "confdefs.h"
20065 #include <assert.h>
20068 if { (eval echo "$as_me:20068: \"$ac_cpp conftest.$ac_ext\"") >&5
20069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20071 egrep -v '^ *\+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:20074: \$? = $ac_status" >&5
20075 (exit $ac_status); } >/dev/null; then
20076 if test -s conftest.err; then
20077 ac_cpp_err=$ac_cxx_preproc_warn_flag
20084 if test -z "$ac_cpp_err"; then
20087 echo "$as_me: failed program was:" >&5
20088 cat conftest.$ac_ext >&5
20089 # Broken: fails on valid input.
20092 rm -f conftest.err conftest.$ac_ext
20094 # OK, works on sane cases. Now check whether non-existent headers
20095 # can be detected and how.
20096 cat >conftest.$ac_ext <<_ACEOF
20097 #line 20097 "configure"
20098 #include "confdefs.h"
20099 #include <ac_nonexistent.h>
20101 if { (eval echo "$as_me:20101: \"$ac_cpp conftest.$ac_ext\"") >&5
20102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20104 egrep -v '^ *\+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 echo "$as_me:20107: \$? = $ac_status" >&5
20108 (exit $ac_status); } >/dev/null; then
20109 if test -s conftest.err; then
20110 ac_cpp_err=$ac_cxx_preproc_warn_flag
20117 if test -z "$ac_cpp_err"; then
20118 # Broken: success on invalid input.
20121 echo "$as_me: failed program was:" >&5
20122 cat conftest.$ac_ext >&5
20123 # Passes both tests.
20127 rm -f conftest.err conftest.$ac_ext
20130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20131 rm -f conftest.err conftest.$ac_ext
20132 if $ac_preproc_ok; then
20135 { { echo "$as_me:20135: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
20136 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
20137 { (exit 1); exit 1; }; }
20141 ac_cpp='$CXXCPP $CPPFLAGS'
20142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20145 ac_main_return=return
20147 for ac_header in typeinfo
20149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20150 echo "$as_me:20150: checking for $ac_header" >&5
20151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 cat >conftest.$ac_ext <<_ACEOF
20156 #line 20156 "configure"
20157 #include "confdefs.h"
20158 #include <$ac_header>
20160 if { (eval echo "$as_me:20160: \"$ac_cpp conftest.$ac_ext\"") >&5
20161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20163 egrep -v '^ *\+' conftest.er1 >conftest.err
20165 cat conftest.err >&5
20166 echo "$as_me:20166: \$? = $ac_status" >&5
20167 (exit $ac_status); } >/dev/null; then
20168 if test -s conftest.err; then
20169 ac_cpp_err=$ac_cxx_preproc_warn_flag
20176 if test -z "$ac_cpp_err"; then
20177 eval "$as_ac_Header=yes"
20179 echo "$as_me: failed program was:" >&5
20180 cat conftest.$ac_ext >&5
20181 eval "$as_ac_Header=no"
20183 rm -f conftest.err conftest.$ac_ext
20185 echo "$as_me:20185: result: `eval echo '${'$as_ac_Header'}'`" >&5
20186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20188 cat >>confdefs.h <<EOF
20189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20195 for ac_header in iostream
20197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20198 echo "$as_me:20198: checking for $ac_header" >&5
20199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 cat >conftest.$ac_ext <<_ACEOF
20204 #line 20204 "configure"
20205 #include "confdefs.h"
20206 #include <$ac_header>
20208 if { (eval echo "$as_me:20208: \"$ac_cpp conftest.$ac_ext\"") >&5
20209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20211 egrep -v '^ *\+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:20214: \$? = $ac_status" >&5
20215 (exit $ac_status); } >/dev/null; then
20216 if test -s conftest.err; then
20217 ac_cpp_err=$ac_cxx_preproc_warn_flag
20224 if test -z "$ac_cpp_err"; then
20225 eval "$as_ac_Header=yes"
20227 echo "$as_me: failed program was:" >&5
20228 cat conftest.$ac_ext >&5
20229 eval "$as_ac_Header=no"
20231 rm -f conftest.err conftest.$ac_ext
20233 echo "$as_me:20233: result: `eval echo '${'$as_ac_Header'}'`" >&5
20234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20236 cat >>confdefs.h <<EOF
20237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20243 if test x"$ac_cv_header_iostream" = xyes ; then
20244 echo "$as_me:20244: checking if iostream uses std-namespace" >&5
20245 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
20246 cat >conftest.$ac_ext <<_ACEOF
20247 #line 20247 "configure"
20248 #include "confdefs.h"
20250 #include <iostream>
20257 cerr << "testing" << endl;
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:20264: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>&5
20267 echo "$as_me:20267: \$? = $ac_status" >&5
20268 (exit $ac_status); } &&
20269 { ac_try='test -s conftest.$ac_objext'
20270 { (eval echo "$as_me:20270: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20273 echo "$as_me:20273: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 cf_iostream_namespace=yes
20277 echo "$as_me: failed program was:" >&5
20278 cat conftest.$ac_ext >&5
20279 cf_iostream_namespace=no
20281 rm -f conftest.$ac_objext conftest.$ac_ext
20282 echo "$as_me:20282: result: $cf_iostream_namespace" >&5
20283 echo "${ECHO_T}$cf_iostream_namespace" >&6
20284 if test "$cf_iostream_namespace" = yes ; then
20286 cat >>confdefs.h <<\EOF
20287 #define IOSTREAM_NAMESPACE 1
20293 echo "$as_me:20293: checking if we should include stdbool.h" >&5
20294 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20296 if test "${cf_cv_header_stdbool_h+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 cat >conftest.$ac_ext <<_ACEOF
20301 #line 20301 "configure"
20302 #include "confdefs.h"
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:20313: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>&5
20316 echo "$as_me:20316: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (eval echo "$as_me:20319: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20322 echo "$as_me:20322: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 cf_cv_header_stdbool_h=0
20326 echo "$as_me: failed program was:" >&5
20327 cat conftest.$ac_ext >&5
20328 cat >conftest.$ac_ext <<_ACEOF
20329 #line 20329 "configure"
20330 #include "confdefs.h"
20333 #include <stdbool.h>
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:20345: \"$ac_compile\"") >&5
20346 (eval $ac_compile) 2>&5
20348 echo "$as_me:20348: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
20350 { ac_try='test -s conftest.$ac_objext'
20351 { (eval echo "$as_me:20351: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:20354: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 cf_cv_header_stdbool_h=1
20358 echo "$as_me: failed program was:" >&5
20359 cat conftest.$ac_ext >&5
20360 cf_cv_header_stdbool_h=0
20362 rm -f conftest.$ac_objext conftest.$ac_ext
20364 rm -f conftest.$ac_objext conftest.$ac_ext
20367 if test "$cf_cv_header_stdbool_h" = 1
20368 then echo "$as_me:20368: result: yes" >&5
20369 echo "${ECHO_T}yes" >&6
20370 else echo "$as_me:20370: result: no" >&5
20371 echo "${ECHO_T}no" >&6
20374 echo "$as_me:20374: checking for builtin bool type" >&5
20375 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20377 if test "${cf_cv_builtin_bool+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20382 #line 20382 "configure"
20383 #include "confdefs.h"
20386 #include <sys/types.h>
20396 rm -f conftest.$ac_objext
20397 if { (eval echo "$as_me:20397: \"$ac_compile\"") >&5
20398 (eval $ac_compile) 2>&5
20400 echo "$as_me:20400: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
20402 { ac_try='test -s conftest.$ac_objext'
20403 { (eval echo "$as_me:20403: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20406 echo "$as_me:20406: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 cf_cv_builtin_bool=1
20410 echo "$as_me: failed program was:" >&5
20411 cat conftest.$ac_ext >&5
20412 cf_cv_builtin_bool=0
20414 rm -f conftest.$ac_objext conftest.$ac_ext
20418 if test "$cf_cv_builtin_bool" = 1
20419 then echo "$as_me:20419: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6
20421 else echo "$as_me:20421: result: no" >&5
20422 echo "${ECHO_T}no" >&6
20425 echo "$as_me:20425: checking for size of bool" >&5
20426 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20427 if test "${cf_cv_type_of_bool+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 if test "$cross_compiling" = yes; then
20433 cf_cv_type_of_bool=unknown
20435 cat >conftest.$ac_ext <<_ACEOF
20436 #line 20436 "configure"
20437 #include "confdefs.h"
20439 #include <stdlib.h>
20442 #if defined(__cplusplus)
20444 #ifdef HAVE_GXX_BUILTIN_H
20445 #include <g++/builtin.h>
20446 #elif HAVE_GPP_BUILTIN_H
20447 #include <gpp/builtin.h>
20448 #elif HAVE_BUILTIN_H
20449 #include <builtin.h>
20454 #if $cf_cv_header_stdbool_h
20455 #include <stdbool.h>
20462 FILE *fp = fopen("cf_test.out", "w");
20465 if ((bool)(-x) >= 0)
20466 fputs("unsigned ", fp);
20467 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20468 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20469 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20470 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20473 ${cf_cv_main_return:-return}(0);
20477 rm -f conftest$ac_exeext
20478 if { (eval echo "$as_me:20478: \"$ac_link\"") >&5
20479 (eval $ac_link) 2>&5
20481 echo "$as_me:20481: \$? = $ac_status" >&5
20482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20483 { (eval echo "$as_me:20483: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:20486: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 cf_cv_type_of_bool=`cat cf_test.out`
20489 if test -z "$cf_cv_type_of_bool"; then
20490 cf_cv_type_of_bool=unknown
20493 echo "$as_me: program exited with status $ac_status" >&5
20494 echo "$as_me: failed program was:" >&5
20495 cat conftest.$ac_ext >&5
20496 cf_cv_type_of_bool=unknown
20498 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20504 echo "$as_me:20504: result: $cf_cv_type_of_bool" >&5
20505 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20506 if test "$cf_cv_type_of_bool" = unknown ; then
20507 case .$NCURSES_BOOL in
20508 (.auto|.) NCURSES_BOOL=unsigned;;
20510 { echo "$as_me:20510: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20511 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20512 cf_cv_type_of_bool=$NCURSES_BOOL
20515 echo "$as_me:20515: checking for special defines needed for etip.h" >&5
20516 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20517 cf_save_CXXFLAGS="$CXXFLAGS"
20520 # etip.h includes ncurses.h which includes ncurses_dll.h
20521 # But ncurses_dll.h is generated - fix here.
20522 test -d include || mkdir include
20523 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
20525 for cf_math in "" MATH_H
20527 for cf_excp in "" MATH_EXCEPTION
20529 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20530 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20531 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 #line 20533 "configure"
20534 #include "confdefs.h"
20536 #include <etip.h.in>
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:20547: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>&5
20550 echo "$as_me:20550: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -s conftest.$ac_objext'
20553 { (eval echo "$as_me:20553: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:20556: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20559 test -n "$cf_math" && cat >>confdefs.h <<EOF
20560 #define ETIP_NEEDS_${cf_math} 1
20563 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20564 #define ETIP_NEEDS_${cf_excp} 1
20567 cf_result="$cf_math $cf_excp"
20571 echo "$as_me: failed program was:" >&5
20572 cat conftest.$ac_ext >&5
20574 rm -f conftest.$ac_objext conftest.$ac_ext
20577 echo "$as_me:20577: result: $cf_result" >&5
20578 echo "${ECHO_T}$cf_result" >&6
20579 CXXFLAGS="$cf_save_CXXFLAGS"
20581 if test -n "$CXX"; then
20582 echo "$as_me:20582: checking if $CXX accepts parameter initialization" >&5
20583 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20584 if test "${cf_cv_cpp_param_init+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 ac_cpp='$CXXCPP $CPPFLAGS'
20590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20593 ac_main_return=return
20595 if test "$cross_compiling" = yes; then
20596 cf_cv_cpp_param_init=unknown
20598 cat >conftest.$ac_ext <<_ACEOF
20599 #line 20599 "configure"
20600 #include "confdefs.h"
20610 TEST::TEST(int x = 1) // some compilers do not like second initializer
20617 rm -f conftest$ac_exeext
20618 if { (eval echo "$as_me:20618: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>&5
20621 echo "$as_me:20621: \$? = $ac_status" >&5
20622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20623 { (eval echo "$as_me:20623: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:20626: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 cf_cv_cpp_param_init=yes
20630 echo "$as_me: program exited with status $ac_status" >&5
20631 echo "$as_me: failed program was:" >&5
20632 cat conftest.$ac_ext >&5
20633 cf_cv_cpp_param_init=no
20635 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20638 ac_cpp='$CXXCPP $CPPFLAGS'
20639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20642 ac_main_return=return
20645 echo "$as_me:20645: result: $cf_cv_cpp_param_init" >&5
20646 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20648 test "$cf_cv_cpp_param_init" = yes &&
20649 cat >>confdefs.h <<\EOF
20650 #define CPP_HAS_PARAM_INIT 1
20653 if test -n "$CXX"; then
20655 echo "$as_me:20655: checking if $CXX accepts static_cast" >&5
20656 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20657 if test "${cf_cv_cpp_static_cast+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 ac_cpp='$CXXCPP $CPPFLAGS'
20663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20666 ac_main_return=return
20668 cat >conftest.$ac_ext <<_ACEOF
20669 #line 20669 "configure"
20670 #include "confdefs.h"
20675 NCursesPanel(int nlines,
20685 template<class T> class NCursesUserPanel : public NCursesPanel
20688 NCursesUserPanel (int nlines,
20692 const T* p_UserData = static_cast<T*>(0))
20693 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20696 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20700 virtual ~NCursesUserPanel() {};
20707 const char* p_UserData = static_cast<char*>(0)
20712 rm -f conftest.$ac_objext
20713 if { (eval echo "$as_me:20713: \"$ac_compile\"") >&5
20714 (eval $ac_compile) 2>&5
20716 echo "$as_me:20716: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (eval echo "$as_me:20719: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:20722: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 cf_cv_cpp_static_cast=yes
20726 echo "$as_me: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20728 cf_cv_cpp_static_cast=no
20730 rm -f conftest.$ac_objext conftest.$ac_ext
20733 ac_cpp='$CXXCPP $CPPFLAGS'
20734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20737 ac_main_return=return
20740 echo "$as_me:20740: result: $cf_cv_cpp_static_cast" >&5
20741 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20745 test "$cf_cv_cpp_static_cast" = yes &&
20746 cat >>confdefs.h <<\EOF
20747 #define CPP_HAS_STATIC_CAST 1
20751 CXX_ARFLAGS='$(ARFLAGS)'
20752 case $cf_cv_system_name in
20754 if test "$GXX" != yes ; then
20756 CXX_ARFLAGS='-ar -o'
20760 CXXLDFLAGS="-u main"
20763 if test "$GXX" != yes ; then
20765 CXX_ARFLAGS='-xar -o'
20772 cf_cv_builtin_bool=1
20774 # Just because we are not configuring against C++ right now does not
20775 # mean that a user will not want to use C++. Some distributors disable
20776 # the C++ portion of this configuration as a shortcut (or just to avoid
20777 # compiling the demo in the c++ directory). So we need a reasonable
20778 # default for the 'bool' type.
20780 # Caveat: since the storage of the bool type is not standardized, it
20783 if test "$NCURSES_BOOL" != auto ; then
20784 cf_cv_type_of_bool=$NCURSES_BOOL
20785 cf_cv_header_stdbool_h=0
20787 if test "$cf_cv_header_stdbool_h" = 1 ; then
20789 echo "$as_me:20789: checking for size of bool" >&5
20790 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20791 if test "${cf_cv_type_of_bool+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 if test "$cross_compiling" = yes; then
20797 cf_cv_type_of_bool=unknown
20799 cat >conftest.$ac_ext <<_ACEOF
20800 #line 20800 "configure"
20801 #include "confdefs.h"
20803 #include <stdlib.h>
20806 #if defined(__cplusplus)
20808 #ifdef HAVE_GXX_BUILTIN_H
20809 #include <g++/builtin.h>
20810 #elif HAVE_GPP_BUILTIN_H
20811 #include <gpp/builtin.h>
20812 #elif HAVE_BUILTIN_H
20813 #include <builtin.h>
20818 #if $cf_cv_header_stdbool_h
20819 #include <stdbool.h>
20826 FILE *fp = fopen("cf_test.out", "w");
20829 if ((bool)(-x) >= 0)
20830 fputs("unsigned ", fp);
20831 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20832 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20833 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20834 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20837 ${cf_cv_main_return:-return}(0);
20841 rm -f conftest$ac_exeext
20842 if { (eval echo "$as_me:20842: \"$ac_link\"") >&5
20843 (eval $ac_link) 2>&5
20845 echo "$as_me:20845: \$? = $ac_status" >&5
20846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20847 { (eval echo "$as_me:20847: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20850 echo "$as_me:20850: \$? = $ac_status" >&5
20851 (exit $ac_status); }; }; then
20852 cf_cv_type_of_bool=`cat cf_test.out`
20853 if test -z "$cf_cv_type_of_bool"; then
20854 cf_cv_type_of_bool=unknown
20857 echo "$as_me: program exited with status $ac_status" >&5
20858 echo "$as_me: failed program was:" >&5
20859 cat conftest.$ac_ext >&5
20860 cf_cv_type_of_bool=unknown
20862 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868 echo "$as_me:20868: result: $cf_cv_type_of_bool" >&5
20869 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20870 if test "$cf_cv_type_of_bool" = unknown ; then
20871 case .$NCURSES_BOOL in
20872 (.auto|.) NCURSES_BOOL=unsigned;;
20874 { echo "$as_me:20874: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20875 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20876 cf_cv_type_of_bool=$NCURSES_BOOL
20880 echo "$as_me:20880: checking for fallback type of bool" >&5
20881 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20882 case "$host_cpu" in
20883 (i?86) cf_cv_type_of_bool=char ;;
20884 (*) cf_cv_type_of_bool=int ;;
20886 echo "$as_me:20886: result: $cf_cv_type_of_bool" >&5
20887 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20892 # If the C compiler did not declare bool, and we did not determine that the C++
20893 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20894 # ncurses library use the same type as C++ bool. Note that this allows one to
20895 # specify the type of bool in a configure-script option and postpone
20896 # integration with the C++ compiler provided that the types are compatible.
20898 if test $cf_cv_cc_bool_type = 1
20900 # oops: C has a bool. Unlikely, but C++ could differ.
20902 elif test $cf_cv_builtin_bool = 0
20907 # this is the normal case
20908 USE_CXX_BOOL='defined(__cplusplus)'
20911 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20913 if test "$cf_with_ada" != "no" ; then
20914 if test "$with_libtool" != "no"; then
20915 { echo "$as_me:20915: WARNING: libtool does not support Ada - disabling feature" >&5
20916 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20921 if test "$cf_with_ada" != "no" ; then
20923 cf_ada_make=gnatmake
20924 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20925 set dummy $cf_ada_make; ac_word=$2
20926 echo "$as_me:20926: checking for $ac_word" >&5
20927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20928 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 if test -n "$gnat_exists"; then
20932 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20934 ac_save_IFS=$IFS; IFS=$ac_path_separator
20936 for ac_dir in $ac_dummy; do
20938 test -z "$ac_dir" && ac_dir=.
20939 $as_executable_p "$ac_dir/$ac_word" || continue
20940 ac_cv_prog_gnat_exists="yes"
20941 echo "$as_me:20941: found $ac_dir/$ac_word" >&5
20945 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20948 gnat_exists=$ac_cv_prog_gnat_exists
20949 if test -n "$gnat_exists"; then
20950 echo "$as_me:20950: result: $gnat_exists" >&5
20951 echo "${ECHO_T}$gnat_exists" >&6
20953 echo "$as_me:20953: result: no" >&5
20954 echo "${ECHO_T}no" >&6
20957 if test "$ac_cv_prog_gnat_exists" = no; then
20959 cf_cv_prog_gnat_correct=no
20962 echo "$as_me:20962: checking for gnat version" >&5
20963 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20964 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20965 grep '[0-9].[0-9][0-9]*' |\
20966 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20967 echo "$as_me:20967: result: $cf_gnat_version" >&5
20968 echo "${ECHO_T}$cf_gnat_version" >&6
20970 case $cf_gnat_version in
20971 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
20972 cf_cv_prog_gnat_correct=yes
20975 { echo "$as_me:20975: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20976 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20977 cf_cv_prog_gnat_correct=no
20981 # Extract the first word of "m4", so it can be a program name with args.
20982 set dummy m4; ac_word=$2
20983 echo "$as_me:20983: checking for $ac_word" >&5
20984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20985 if test "${ac_cv_prog_M4_exists+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 if test -n "$M4_exists"; then
20989 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20991 ac_save_IFS=$IFS; IFS=$ac_path_separator
20993 for ac_dir in $ac_dummy; do
20995 test -z "$ac_dir" && ac_dir=.
20996 $as_executable_p "$ac_dir/$ac_word" || continue
20997 ac_cv_prog_M4_exists="yes"
20998 echo "$as_me:20998: found $ac_dir/$ac_word" >&5
21002 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
21005 M4_exists=$ac_cv_prog_M4_exists
21006 if test -n "$M4_exists"; then
21007 echo "$as_me:21007: result: $M4_exists" >&5
21008 echo "${ECHO_T}$M4_exists" >&6
21010 echo "$as_me:21010: result: no" >&5
21011 echo "${ECHO_T}no" >&6
21014 if test "$ac_cv_prog_M4_exists" = no; then
21015 cf_cv_prog_gnat_correct=no
21016 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
21018 if test "$cf_cv_prog_gnat_correct" = yes; then
21019 echo "$as_me:21019: checking if GNAT works" >&5
21020 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
21022 rm -rf conftest* *~conftest*
21023 cat >>conftest.ads <<CF_EOF
21024 procedure conftest;
21026 cat >>conftest.adb <<CF_EOF
21029 procedure conftest is
21031 Text_IO.Put ("Hello World");
21033 GNAT.OS_Lib.OS_Exit (0);
21036 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21037 if ( ./conftest 1>&5 2>&1 ) ; then
21038 cf_cv_prog_gnat_correct=yes
21040 cf_cv_prog_gnat_correct=no
21043 cf_cv_prog_gnat_correct=no
21045 rm -rf conftest* *~conftest*
21047 echo "$as_me:21047: result: $cf_cv_prog_gnat_correct" >&5
21048 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
21052 if test "x$cf_cv_prog_gnat_correct" = xyes; then
21054 ADAFLAGS="$ADAFLAGS -gnatpn"
21056 echo "$as_me:21056: checking optimization options for ADAFLAGS" >&5
21057 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21061 ADAFLAGS="$ADAFLAGS -g"
21067 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21069 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21073 echo "$as_me:21073: result: $ADAFLAGS" >&5
21074 echo "${ECHO_T}$ADAFLAGS" >&6
21076 echo "$as_me:21076: checking if GNATPREP supports -T option" >&5
21077 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21078 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 cf_cv_gnatprep_opt_t=no
21083 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21086 echo "$as_me:21086: result: $cf_cv_gnatprep_opt_t" >&5
21087 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21088 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21090 echo "$as_me:21090: checking if GNAT supports generics" >&5
21091 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21092 case $cf_gnat_version in
21094 cf_gnat_generics=yes
21097 cf_gnat_generics=no
21100 echo "$as_me:21100: result: $cf_gnat_generics" >&5
21101 echo "${ECHO_T}$cf_gnat_generics" >&6
21103 if test "$cf_gnat_generics" = yes
21105 cf_compile_generics=generics
21106 cf_generic_objects="\${GENOBJS}"
21108 cf_compile_generics=
21109 cf_generic_objects=
21112 echo "$as_me:21112: checking if GNAT supports SIGINT" >&5
21113 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
21114 if test "${cf_cv_gnat_sigint+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 rm -rf conftest* *~conftest*
21119 cat >>conftest.ads <<CF_EOF
21120 with Ada.Interrupts.Names;
21122 package ConfTest is
21124 pragma Warnings (Off); -- the next pragma exists since 3.11p
21125 pragma Unreserve_All_Interrupts;
21126 pragma Warnings (On);
21128 protected Process is
21130 function Continue return Boolean;
21131 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
21133 Done : Boolean := False;
21138 cat >>conftest.adb <<CF_EOF
21139 package body ConfTest is
21140 protected body Process is
21145 function Continue return Boolean is
21152 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21153 cf_cv_gnat_sigint=yes
21155 cf_cv_gnat_sigint=no
21157 rm -rf conftest* *~conftest*
21160 echo "$as_me:21160: result: $cf_cv_gnat_sigint" >&5
21161 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
21163 if test $cf_cv_gnat_sigint = yes ; then
21166 USE_GNAT_SIGINT="#"
21169 cf_gnat_libraries=no
21170 cf_gnat_projects=no
21172 if test "$enable_gnat_projects" != no ; then
21173 echo "$as_me:21173: checking if GNAT supports project files" >&5
21174 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
21175 case $cf_gnat_version in
21179 case $cf_cv_system_name in
21183 mkdir conftest.src conftest.bin conftest.lib
21185 rm -rf conftest* *~conftest*
21186 cat >>library.gpr <<CF_EOF
21188 Kind := External ("LIB_KIND");
21189 for Library_Name use "ConfTest";
21190 for Object_Dir use ".";
21191 for Library_ALI_Dir use External("LIBRARY_DIR");
21192 for Library_Version use External ("SONAME");
21193 for Library_Kind use Kind;
21194 for Library_Dir use External("BUILD_DIR");
21195 Source_Dir := External ("SOURCE_DIR");
21196 for Source_Dirs use (Source_Dir);
21199 cat >>confpackage.ads <<CF_EOF
21200 package ConfPackage is
21201 procedure conftest;
21204 cat >>confpackage.adb <<CF_EOF
21206 package body ConfPackage is
21207 procedure conftest is
21209 Text_IO.Put ("Hello World");
21214 if ( $cf_ada_make $ADAFLAGS \
21216 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
21217 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
21218 -XSOURCE_DIR=`pwd` \
21219 -XSONAME=libConfTest.so.1 \
21220 -XLIB_KIND=static 1>&5 2>&1 ) ; then
21221 cf_gnat_projects=yes
21224 if test -f conftest.lib/confpackage.ali
21226 cf_gnat_libraries=yes
21228 rm -rf conftest* *~conftest*
21233 echo "$as_me:21233: result: $cf_gnat_projects" >&5
21234 echo "${ECHO_T}$cf_gnat_projects" >&6
21235 fi # enable_gnat_projects
21237 if test $cf_gnat_projects = yes
21239 echo "$as_me:21239: checking if GNAT supports libraries" >&5
21240 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
21241 echo "$as_me:21241: result: $cf_gnat_libraries" >&5
21242 echo "${ECHO_T}$cf_gnat_libraries" >&6
21245 if test "$cf_gnat_projects" = yes
21247 USE_OLD_MAKERULES="#"
21248 USE_GNAT_PROJECTS=""
21250 USE_OLD_MAKERULES=""
21251 USE_GNAT_PROJECTS="#"
21254 if test "$cf_gnat_libraries" = yes
21256 USE_GNAT_LIBRARIES=""
21258 USE_GNAT_LIBRARIES="#"
21261 echo "$as_me:21261: checking for ada-compiler" >&5
21262 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
21264 # Check whether --with-ada-compiler or --without-ada-compiler was given.
21265 if test "${with_ada_compiler+set}" = set; then
21266 withval="$with_ada_compiler"
21267 cf_ada_compiler=$withval
21269 cf_ada_compiler=gnatmake
21272 echo "$as_me:21272: result: $cf_ada_compiler" >&5
21273 echo "${ECHO_T}$cf_ada_compiler" >&6
21275 cf_ada_package=terminal_interface
21277 echo "$as_me:21277: checking for ada-include" >&5
21278 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
21280 # Check whether --with-ada-include or --without-ada-include was given.
21281 if test "${with_ada_include+set}" = set; then
21282 withval="$with_ada_include"
21285 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
21286 fi; if test -n "$prefix/share/ada/adainclude" ; then
21288 if test "x$prefix" != xNONE; then
21289 cf_path_syntax="$prefix"
21291 cf_path_syntax="$ac_default_prefix"
21294 case ".$withval" in
21295 (.\$\(*\)*|.\'*\'*)
21299 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21301 (.\${*prefix}*|.\${*dir}*)
21302 eval withval="$withval"
21303 case ".$withval" in
21305 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21310 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21313 { { echo "$as_me:21313: error: expected a pathname, not \"$withval\"" >&5
21314 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21315 { (exit 1); exit 1; }; }
21320 eval ADA_INCLUDE="$withval"
21322 echo "$as_me:21322: result: $ADA_INCLUDE" >&5
21323 echo "${ECHO_T}$ADA_INCLUDE" >&6
21325 echo "$as_me:21325: checking for ada-objects" >&5
21326 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
21328 # Check whether --with-ada-objects or --without-ada-objects was given.
21329 if test "${with_ada_objects+set}" = set; then
21330 withval="$with_ada_objects"
21333 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
21334 fi; if test -n "$prefix/lib/ada/adalib" ; then
21336 if test "x$prefix" != xNONE; then
21337 cf_path_syntax="$prefix"
21339 cf_path_syntax="$ac_default_prefix"
21342 case ".$withval" in
21343 (.\$\(*\)*|.\'*\'*)
21347 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21349 (.\${*prefix}*|.\${*dir}*)
21350 eval withval="$withval"
21351 case ".$withval" in
21353 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21358 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21361 { { echo "$as_me:21361: error: expected a pathname, not \"$withval\"" >&5
21362 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21363 { (exit 1); exit 1; }; }
21368 eval ADA_OBJECTS="$withval"
21370 echo "$as_me:21370: result: $ADA_OBJECTS" >&5
21371 echo "${ECHO_T}$ADA_OBJECTS" >&6
21373 echo "$as_me:21373: checking if an Ada95 shared-library should be built" >&5
21374 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
21376 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
21377 if test "${with_ada_sharedlib+set}" = set; then
21378 withval="$with_ada_sharedlib"
21379 with_ada_sharedlib=$withval
21381 with_ada_sharedlib=no
21383 echo "$as_me:21383: result: $with_ada_sharedlib" >&5
21384 echo "${ECHO_T}$with_ada_sharedlib" >&6
21386 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
21387 MAKE_ADA_SHAREDLIB="#"
21389 if test "x$with_ada_sharedlib" != xno
21391 MAKE_ADA_SHAREDLIB=
21392 if test "x$with_ada_sharedlib" != xyes
21394 ADA_SHAREDLIB="$with_ada_sharedlib"
21404 # do this "late" to avoid conflict with header-checks
21405 if test "x$with_widec" = xyes ; then
21406 echo "$as_me:21406: checking for wchar_t" >&5
21407 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21408 if test "${ac_cv_type_wchar_t+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21411 cat >conftest.$ac_ext <<_ACEOF
21412 #line 21412 "configure"
21413 #include "confdefs.h"
21414 $ac_includes_default
21420 if (sizeof (wchar_t))
21426 rm -f conftest.$ac_objext
21427 if { (eval echo "$as_me:21427: \"$ac_compile\"") >&5
21428 (eval $ac_compile) 2>&5
21430 echo "$as_me:21430: \$? = $ac_status" >&5
21431 (exit $ac_status); } &&
21432 { ac_try='test -s conftest.$ac_objext'
21433 { (eval echo "$as_me:21433: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21436 echo "$as_me:21436: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 ac_cv_type_wchar_t=yes
21440 echo "$as_me: failed program was:" >&5
21441 cat conftest.$ac_ext >&5
21442 ac_cv_type_wchar_t=no
21444 rm -f conftest.$ac_objext conftest.$ac_ext
21446 echo "$as_me:21446: result: $ac_cv_type_wchar_t" >&5
21447 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21449 echo "$as_me:21449: checking size of wchar_t" >&5
21450 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21451 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 if test "$ac_cv_type_wchar_t" = yes; then
21455 if test "$cross_compiling" = yes; then
21456 # Depending upon the size, compute the lo and hi bounds.
21457 cat >conftest.$ac_ext <<_ACEOF
21458 #line 21458 "configure"
21459 #include "confdefs.h"
21460 $ac_includes_default
21464 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21469 rm -f conftest.$ac_objext
21470 if { (eval echo "$as_me:21470: \"$ac_compile\"") >&5
21471 (eval $ac_compile) 2>&5
21473 echo "$as_me:21473: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -s conftest.$ac_objext'
21476 { (eval echo "$as_me:21476: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:21479: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21483 cat >conftest.$ac_ext <<_ACEOF
21484 #line 21484 "configure"
21485 #include "confdefs.h"
21486 $ac_includes_default
21490 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21495 rm -f conftest.$ac_objext
21496 if { (eval echo "$as_me:21496: \"$ac_compile\"") >&5
21497 (eval $ac_compile) 2>&5
21499 echo "$as_me:21499: \$? = $ac_status" >&5
21500 (exit $ac_status); } &&
21501 { ac_try='test -s conftest.$ac_objext'
21502 { (eval echo "$as_me:21502: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21505 echo "$as_me:21505: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ac_hi=$ac_mid; break
21509 echo "$as_me: failed program was:" >&5
21510 cat conftest.$ac_ext >&5
21511 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21513 rm -f conftest.$ac_objext conftest.$ac_ext
21516 echo "$as_me: failed program was:" >&5
21517 cat conftest.$ac_ext >&5
21520 cat >conftest.$ac_ext <<_ACEOF
21521 #line 21521 "configure"
21522 #include "confdefs.h"
21523 $ac_includes_default
21527 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21532 rm -f conftest.$ac_objext
21533 if { (eval echo "$as_me:21533: \"$ac_compile\"") >&5
21534 (eval $ac_compile) 2>&5
21536 echo "$as_me:21536: \$? = $ac_status" >&5
21537 (exit $ac_status); } &&
21538 { ac_try='test -s conftest.$ac_objext'
21539 { (eval echo "$as_me:21539: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:21542: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 ac_lo=$ac_mid; break
21546 echo "$as_me: failed program was:" >&5
21547 cat conftest.$ac_ext >&5
21548 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21550 rm -f conftest.$ac_objext conftest.$ac_ext
21553 rm -f conftest.$ac_objext conftest.$ac_ext
21554 # Binary search between lo and hi bounds.
21555 while test "x$ac_lo" != "x$ac_hi"; do
21556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21557 cat >conftest.$ac_ext <<_ACEOF
21558 #line 21558 "configure"
21559 #include "confdefs.h"
21560 $ac_includes_default
21564 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:21570: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>&5
21573 echo "$as_me:21573: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -s conftest.$ac_objext'
21576 { (eval echo "$as_me:21576: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:21579: \$? = $ac_status" >&5
21580 (exit $ac_status); }; }; then
21583 echo "$as_me: failed program was:" >&5
21584 cat conftest.$ac_ext >&5
21585 ac_lo=`expr $ac_mid + 1`
21587 rm -f conftest.$ac_objext conftest.$ac_ext
21589 ac_cv_sizeof_wchar_t=$ac_lo
21591 if test "$cross_compiling" = yes; then
21592 { { echo "$as_me:21592: error: cannot run test program while cross compiling" >&5
21593 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21594 { (exit 1); exit 1; }; }
21596 cat >conftest.$ac_ext <<_ACEOF
21597 #line 21597 "configure"
21598 #include "confdefs.h"
21599 $ac_includes_default
21603 FILE *f = fopen ("conftest.val", "w");
21605 $ac_main_return (1);
21606 fprintf (f, "%d", (sizeof (wchar_t)));
21612 rm -f conftest$ac_exeext
21613 if { (eval echo "$as_me:21613: \"$ac_link\"") >&5
21614 (eval $ac_link) 2>&5
21616 echo "$as_me:21616: \$? = $ac_status" >&5
21617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21618 { (eval echo "$as_me:21618: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:21621: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21623 ac_cv_sizeof_wchar_t=`cat conftest.val`
21625 echo "$as_me: program exited with status $ac_status" >&5
21626 echo "$as_me: failed program was:" >&5
21627 cat conftest.$ac_ext >&5
21629 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21634 ac_cv_sizeof_wchar_t=0
21637 echo "$as_me:21637: result: $ac_cv_sizeof_wchar_t" >&5
21638 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21639 cat >>confdefs.h <<EOF
21640 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21645 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21646 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21648 ### ticlib modules may be a separate library, otherwise contained in termlib.
21649 ### termlib modules may be a separate library, otherwise contained in ncurses.
21651 ### The of "+" or " " between the tokens controls the way the script
21652 ### chooses to split module lists into libraries.
21654 ### (see CF_LIB_RULES).
21655 echo "$as_me:21655: checking for library subsets" >&5
21656 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21659 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21660 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21661 if test "$with_ticlib" != no ; then
21662 LIB_SUBSETS="${LIB_SUBSETS} "
21664 LIB_SUBSETS="${LIB_SUBSETS}+"
21668 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21669 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21671 if test "$with_termlib" != no ; then
21672 LIB_SUBSETS="${LIB_SUBSETS} "
21674 LIB_SUBSETS="${LIB_SUBSETS}+"
21677 LIB_SUBSETS="${LIB_SUBSETS}base"
21679 # Most term-driver calls are to tinfo, but some like init_pair are to the
21680 # base library (so it resides in base).
21681 if test "$with_term_driver" != no ; then
21682 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21683 case $cf_cv_system_name in
21684 (*mingw32*|*mingw64*)
21685 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21686 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21689 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21694 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21695 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21697 echo "$as_me:21697: result: $LIB_SUBSETS" >&5
21698 echo "${ECHO_T}$LIB_SUBSETS" >&6
21700 ### Construct the list of include-directories to be generated
21702 if test "$srcdir" != "."; then
21703 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21705 CPPFLAGS="-I../include $CPPFLAGS"
21706 if test "$srcdir" != "."; then
21707 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21709 CPPFLAGS="-I. $CPPFLAGS"
21711 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21712 if test "$srcdir" != "."; then
21713 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21715 if test "$GCC" != yes; then
21716 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21717 elif test "$includedir" != "/usr/include"; then
21718 if test "$includedir" = '${prefix}/include' ; then
21719 if test x$prefix != x/usr ; then
21720 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21723 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21727 ### Build up pieces for makefile rules
21728 echo "$as_me:21728: checking default library suffix" >&5
21729 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21731 case $DFT_LWR_MODEL in
21732 (libtool) DFT_ARG_SUFFIX='' ;;
21733 (normal) DFT_ARG_SUFFIX='' ;;
21734 (debug) DFT_ARG_SUFFIX='_g' ;;
21735 (profile) DFT_ARG_SUFFIX='_p' ;;
21736 (shared) DFT_ARG_SUFFIX='' ;;
21738 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21739 echo "$as_me:21739: result: $DFT_ARG_SUFFIX" >&5
21740 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21742 echo "$as_me:21742: checking default library-dependency suffix" >&5
21743 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21745 case X$DFT_LWR_MODEL in
21747 DFT_LIB_SUFFIX='.la'
21748 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21751 DFT_LIB_SUFFIX='_g.a'
21752 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21755 DFT_LIB_SUFFIX='_p.a'
21756 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21759 case $cf_cv_system_name in
21761 DFT_LIB_SUFFIX='.so'
21762 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21764 (cygwin*|msys*|mingw*)
21765 DFT_LIB_SUFFIX='.dll'
21766 DFT_DEP_SUFFIX='.dll.a'
21769 DFT_LIB_SUFFIX='.dylib'
21770 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21775 DFT_LIB_SUFFIX='.so'
21776 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21779 DFT_LIB_SUFFIX='.sl'
21780 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21785 DFT_LIB_SUFFIX='.so'
21786 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21791 DFT_LIB_SUFFIX='.a'
21792 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21795 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21797 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
21798 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
21800 echo "$as_me:21800: result: $DFT_DEP_SUFFIX" >&5
21801 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21803 echo "$as_me:21803: checking default object directory" >&5
21804 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21806 case $DFT_LWR_MODEL in
21807 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21808 (normal) DFT_OBJ_SUBDIR='objects' ;;
21809 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
21810 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
21812 case $cf_cv_system_name in
21814 DFT_OBJ_SUBDIR='objects' ;;
21816 DFT_OBJ_SUBDIR='obj_s' ;;
21819 echo "$as_me:21819: result: $DFT_OBJ_SUBDIR" >&5
21820 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21822 if test "x$cf_with_cxx" = xyes ; then
21823 echo "$as_me:21823: checking c++ library-dependency suffix" >&5
21824 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21825 if test "$with_libtool" != "no"; then
21826 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21827 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21828 elif test "$with_shared_cxx" != "no"; then
21829 # also for g++ users...
21830 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21832 # we normally make a static library because C/C++ library rules differ
21836 CXX_LIB_SUFFIX='.la'
21837 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21840 CXX_LIB_SUFFIX='_g.a'
21841 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21844 CXX_LIB_SUFFIX='_p.a'
21845 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21848 case $cf_cv_system_name in
21850 CXX_LIB_SUFFIX='.so'
21851 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21853 (cygwin*|msys*|mingw*)
21854 CXX_LIB_SUFFIX='.dll'
21855 CXX_DEP_SUFFIX='.dll.a'
21858 CXX_LIB_SUFFIX='.dylib'
21859 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21864 CXX_LIB_SUFFIX='.so'
21865 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21868 CXX_LIB_SUFFIX='.sl'
21869 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21874 CXX_LIB_SUFFIX='.so'
21875 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21880 CXX_LIB_SUFFIX='.a'
21881 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21884 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21886 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
21887 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
21891 echo "$as_me:21891: result: $CXX_LIB_SUFFIX" >&5
21892 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21896 # do not want -ldl in build except as needed for -lncurses dependency
21897 if test "x$with_dlsym" = xyes ; then
21898 if test $DFT_LWR_MODEL = shared || \
21899 test $DFT_LWR_MODEL = libtool ; then
21901 # remove dl library from $LIBS
21902 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21906 ### Set up low-level terminfo dependencies for makefiles.
21908 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21909 # do not need libdl
21911 if test "x$with_dlsym" = xyes ; then
21913 # remove dl library from $SHLIB_LIST
21914 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21918 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
21919 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
21920 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
21921 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
21923 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
21926 if test "$with_ticlib" != no ; then
21928 if test "x$with_ticlib" != xyes ; then
21929 TICS_NAME=$with_ticlib
21930 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21931 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21932 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21933 TICS_LIB_SUFFIX="${with_ticlib}"
21935 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21936 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
21937 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21938 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
21940 TICS_LDFLAGS="-L${LIB_DIR}"
21941 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
21943 TICS_SUFFIX=${DFT_LIB_SUFFIX}
21944 TICS_LDFLAGS="-L${LIB_DIR}"
21945 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21948 if test "$with_termlib" != no ; then
21950 if test "x$with_termlib" != xyes ; then
21951 TINFO_NAME=$with_termlib
21952 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21953 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21954 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21955 TINFO_LIB_SUFFIX="${with_termlib}"
21957 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21958 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
21959 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21960 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
21963 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21964 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21965 if test "$DFT_LWR_MODEL" = "libtool"; then
21966 TEST_ARGS="${TEST_DEPS}"
21967 TEST_ARG2="${TEST_DEP2}"
21968 TINFO_LDFLAGS="-L${LIB_DIR}"
21969 TINFO_LIBS="$TEST_ARGS"
21970 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21971 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21973 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21974 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21975 if test "x$with_term_driver" != xno ; then
21976 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21977 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
21978 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21980 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21981 TINFO_LIBS="$TEST_ARGS"
21983 TINFO_LDFLAGS="-L${LIB_DIR}"
21984 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21987 # the next lines are needed for linking libtic over libncurses
21988 TINFO_NAME=${LIB_NAME}
21989 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21990 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
21991 if test "x$with_tic_depends" = xyes ; then
21992 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21994 TICS_LIST="$SHLIB_LIST"
21997 TINFO_LDFLAGS="-L${LIB_DIR}"
21998 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22001 if test "$DFT_LWR_MODEL" = shared ; then
22002 case $cf_cv_system_name in
22004 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
22010 if test "x$with_dlsym" = xyes ; then
22012 # remove dl library from $TICS_LIST
22013 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22017 if test "$DFT_LWR_MODEL" = "libtool"; then
22022 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
22024 case $DFT_LWR_MODEL in
22025 (normal|debug|profile)
22027 if test "$GCC" = yes ; then
22028 case $cf_cv_system_name in
22029 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
22033 (*) # normally, except when broken
22034 LDFLAGS_STATIC=-static
22035 LDFLAGS_SHARED=-dynamic
22039 case $cf_cv_system_name in
22040 (aix[4-7]*) # from ld manpage
22041 LDFLAGS_STATIC=-bstatic
22042 LDFLAGS_SHARED=-bdynamic
22044 (hpux*) # from ld manpage for hpux10.20, hpux11.11
22045 # We could also use just "archive" and "shared".
22046 LDFLAGS_STATIC=-Wl,-a,archive_shared
22047 LDFLAGS_SHARED=-Wl,-a,shared_archive
22049 (irix*) # from ld manpage IRIX64
22050 LDFLAGS_STATIC=-Bstatic
22051 LDFLAGS_SHARED=-Bdynamic
22053 (osf[45]*) # from ld manpage osf4.0d, osf5.1
22054 # alternative "-oldstyle_liblookup" (not in cc manpage)
22055 LDFLAGS_STATIC=-noso
22056 LDFLAGS_SHARED=-so_archive
22059 LDFLAGS_STATIC=-Bstatic
22060 LDFLAGS_SHARED=-Bdynamic
22065 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22067 echo "$as_me:22067: checking if linker supports switching between static/dynamic" >&5
22068 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22070 rm -f libconftest.a
22071 cat >conftest.$ac_ext <<EOF
22072 #line 22072 "configure"
22074 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22076 if { (eval echo "$as_me:22076: \"$ac_compile\"") >&5
22077 (eval $ac_compile) 2>&5
22079 echo "$as_me:22079: \$? = $ac_status" >&5
22080 (exit $ac_status); } ; then
22081 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22082 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22086 cf_save_LIBS="$LIBS"
22088 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22089 cat >conftest.$ac_ext <<_ACEOF
22090 #line 22090 "configure"
22091 #include "confdefs.h"
22093 #line 22093 "configure"
22095 int cf_ldflags_static(FILE *fp);
22101 return cf_ldflags_static(stdin);
22107 rm -f conftest.$ac_objext conftest$ac_exeext
22108 if { (eval echo "$as_me:22108: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>&5
22111 echo "$as_me:22111: \$? = $ac_status" >&5
22112 (exit $ac_status); } &&
22113 { ac_try='test -s conftest$ac_exeext'
22114 { (eval echo "$as_me:22114: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22117 echo "$as_me:22117: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22120 # some linkers simply ignore the -dynamic
22121 case x`file conftest$ac_exeext 2>/dev/null` in
22123 cf_ldflags_static=no
22126 cf_ldflags_static=yes
22131 echo "$as_me: failed program was:" >&5
22132 cat conftest.$ac_ext >&5
22133 cf_ldflags_static=no
22135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22137 rm -f libconftest.*
22138 LIBS="$cf_save_LIBS"
22140 echo "$as_me:22140: result: $cf_ldflags_static" >&5
22141 echo "${ECHO_T}$cf_ldflags_static" >&6
22143 if test $cf_ldflags_static != yes
22156 echo "$as_me:22156: checking where we will install curses.h" >&5
22157 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
22160 if test "$with_overwrite" = no && \
22161 ( test "x$includedir" = 'x${prefix}/include' || \
22162 test "x$includedir" = "x${prefix}/include" )
22164 includesubdir="/ncurses${USE_LIB_SUFFIX}"
22166 echo "$as_me:22166: result: ${includedir}${includesubdir}" >&5
22167 echo "${ECHO_T}${includedir}${includesubdir}" >&6
22169 ### Resolve a conflict between normal and wide-curses by forcing applications
22170 ### that will need libutf8 to add it to their configure script.
22171 if test "$with_overwrite" != no ; then
22172 if test "$NCURSES_LIBUTF8" = 1 ; then
22173 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
22174 { echo "$as_me:22174: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
22175 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
22178 WITH_OVERWRITE=$with_overwrite
22180 # used to separate tack out of the tree
22183 ### predefined stuff for the test programs
22185 cat >>confdefs.h <<\EOF
22186 #define HAVE_SLK_COLOR 1
22189 ### Construct the list of subdirectories for which we'll customize makefiles
22190 ### with the appropriate compile-rules.
22192 echo "$as_me:22192: checking for src modules" >&5
22193 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
22195 # dependencies and linker-arguments for test-programs
22196 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
22197 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
22198 if test "$DFT_LWR_MODEL" = "libtool"; then
22199 TEST_ARGS="${TEST_DEPS}"
22200 TEST_ARG2="${TEST_DEP2}"
22202 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22203 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22206 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22208 for cf_dir in $modules_to_build
22210 if test -f $srcdir/$cf_dir/modules; then
22212 # We may/may not have tack in the distribution, though the
22214 if test $cf_dir = tack ; then
22215 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
22220 if test -z "$cf_cv_src_modules"; then
22221 cf_cv_src_modules=$cf_dir
22223 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
22226 # Make the ncurses_cfg.h file record the library interface files as
22227 # well. These are header files that are the same name as their
22228 # directory. Ncurses is the only library that does not follow
22230 if test $cf_dir = tack ; then
22232 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
22234 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22236 cat >>confdefs.h <<EOF
22237 #define HAVE_${cf_have_include}_H 1
22240 cat >>confdefs.h <<EOF
22241 #define HAVE_LIB${cf_have_include} 1
22244 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
22245 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
22246 if test "$DFT_LWR_MODEL" = "libtool"; then
22247 TEST_ARGS="${TEST_DEPS}"
22248 TEST_ARG2="${TEST_DEP2}"
22250 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
22251 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
22253 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
22257 echo "$as_me:22257: result: $cf_cv_src_modules" >&5
22258 echo "${ECHO_T}$cf_cv_src_modules" >&6
22260 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
22261 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
22264 if test "x$cf_with_manpages" != xno ; then
22265 SRC_SUBDIRS="$SRC_SUBDIRS man"
22267 SRC_SUBDIRS="$SRC_SUBDIRS include"
22268 for cf_dir in $cf_cv_src_modules
22270 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
22272 if test "x$cf_with_tests" != "xno" ; then
22273 SRC_SUBDIRS="$SRC_SUBDIRS test"
22275 # always make this, to install the ncurses-config script
22276 SRC_SUBDIRS="$SRC_SUBDIRS misc"
22277 if test "$cf_with_cxx_binding" != no; then
22278 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
22279 SRC_SUBDIRS="$SRC_SUBDIRS c++"
22282 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
22283 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
22286 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
22287 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
22288 ADA_SUBDIRS="gen src"
22289 if test "x$cf_with_tests" != "xno" ; then
22290 ADA_SUBDIRS="$ADA_SUBDIRS samples"
22295 for cf_dir in $SRC_SUBDIRS
22297 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
22300 if test -n "$ADA_SUBDIRS"; then
22301 for cf_dir in $ADA_SUBDIRS
22303 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
22308 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22309 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
22310 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
22314 for cf_item in $cf_list_models
22318 (libtool) cf_subdir='obj_lo' ;;
22319 (normal) cf_subdir='objects' ;;
22320 (debug) cf_subdir='obj_g' ;;
22321 (profile) cf_subdir='obj_p' ;;
22323 case $cf_cv_system_name in
22325 cf_subdir='objects' ;;
22327 cf_subdir='obj_s' ;;
22331 for cf_item2 in $DIRS_TO_MAKE
22333 test $cf_item2 = $cf_subdir && break
22335 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
22337 for cf_dir in $DIRS_TO_MAKE
22339 test ! -d $cf_dir && mkdir $cf_dir
22342 # symbols that differ when compiling Ada95 by itself.
22343 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
22345 # values to use as strings
22347 cat >>confdefs.h <<EOF
22348 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
22351 cat >>confdefs.h <<EOF
22352 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
22355 ### Now that we're done running tests, add the compiler-warnings, if any
22360 cf_new_extra_cppflags=
22362 for cf_add_cflags in $EXTRA_CFLAGS
22364 case $cf_fix_cppflags in
22366 case $cf_add_cflags in
22367 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22368 case $cf_add_cflags in
22370 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22372 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22373 && test -z "${cf_tst_cflags}" \
22374 && cf_fix_cppflags=yes
22376 if test $cf_fix_cppflags = yes ; then
22377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22379 elif test "${cf_tst_cflags}" = "\"'" ; then
22380 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22385 case "$CPPFLAGS" in
22389 case $cf_add_cflags in
22391 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22393 CPPFLAGS=`echo "$CPPFLAGS" | \
22394 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22395 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22399 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
22404 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
22409 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22411 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
22413 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22414 && test -z "${cf_tst_cflags}" \
22415 && cf_fix_cppflags=no
22420 if test -n "$cf_new_cflags" ; then
22422 CFLAGS="$CFLAGS $cf_new_cflags"
22425 if test -n "$cf_new_cppflags" ; then
22427 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
22430 if test -n "$cf_new_extra_cppflags" ; then
22432 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
22435 ### Define substitutions for header files to avoid name-pollution
22437 if test "x$cf_cv_have_tcgetattr" = xyes ; then
22443 if test "x$ac_cv_header_stdint_h" = xyes ; then
22449 if test "x$ac_cv_header_termio_h" = xyes ; then
22455 if test "x$ac_cv_header_termios_h" = xyes ; then
22461 ################################################################################
22462 test "x$use_database" = xyes && \
22463 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
22465 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
22466 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
22468 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
22469 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
22472 # Extract the first word of "tic", so it can be a program name with args.
22473 set dummy tic; ac_word=$2
22474 echo "$as_me:22474: checking for $ac_word" >&5
22475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22476 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22484 ac_save_IFS=$IFS; IFS=$ac_path_separator
22485 ac_dummy="$PATH:/usr/local/ncurses/bin"
22486 for ac_dir in $ac_dummy; do
22488 test -z "$ac_dir" && ac_dir=.
22489 if $as_executable_p "$ac_dir/$ac_word"; then
22490 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22491 echo "$as_me:22491: found $ac_dir/$ac_word" >&5
22496 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22500 TIC_PATH=$ac_cv_path_TIC_PATH
22502 if test -n "$TIC_PATH"; then
22503 echo "$as_me:22503: result: $TIC_PATH" >&5
22504 echo "${ECHO_T}$TIC_PATH" >&6
22506 echo "$as_me:22506: result: no" >&5
22507 echo "${ECHO_T}no" >&6
22510 if test -n "$FALLBACK_LIST"
22512 if test "$TIC_PATH" = unknown
22514 { echo "$as_me:22514: WARNING: no tic program found for fallbacks" >&5
22515 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22519 if test "x$cf_with_tests" != xno ; then
22525 ADAHTML_DIR=../../doc/html/ada
22527 # these could be configurable, but are not currently
22533 # workaround for OS/2 (20151017)
22534 case $cf_cv_system_name in
22536 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
22543 # workaround for g++ versus Solaris (20131116)
22544 case $cf_cv_system_name in
22546 case "x$CPPFLAGS" in
22547 (*-D_XOPEN_SOURCE_EXTENDED*)
22548 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22550 echo "${as_me:-configure}:22550: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22552 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22553 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22559 # Help to automatically enable the extended curses features when using either
22560 # the *-config or the ".pc" files by adding defines.
22561 echo "$as_me:22561: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
22562 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
22564 for cf_loop1 in $CPPFLAGS_after_XOPEN
22567 for cf_loop2 in $CPPFLAGS_before_XOPEN
22569 if test "x$cf_loop1" = "x$cf_loop2"
22575 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
22577 echo "$as_me:22577: result: $PKG_CFLAGS" >&5
22578 echo "${ECHO_T}$PKG_CFLAGS" >&6
22580 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22581 case "x$NCURSES_OSPEED" in
22590 cat >>confdefs.h <<EOF
22591 #define NCURSES_OSPEED_COMPAT $cf_compatible
22594 case "x$cf_cv_typeof_chtype" in
22595 (xshort|xint|xlong)
22596 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22600 case "x$cf_cv_typeof_mmask_t" in
22601 (xshort|xint|xlong)
22602 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22606 # substitute into misc/Makefile to suppress
22607 # (un)install.data from the
22608 # (un)install rules.
22609 if test "x$cf_with_db_install" = "xno"; then
22611 MISC_UNINSTALL_DATA=
22613 MISC_INSTALL_DATA=install.data
22614 MISC_UNINSTALL_DATA=uninstall.data
22619 if test -n "$PACKAGE"
22621 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22623 echo "package: $PACKAGE"
22629 if test -n "$RESULTING_SYMS"
22631 cf_filter_syms=$cf_dft_filter_syms
22632 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22634 echo "${as_me:-configure}:22634: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22638 if test "x$WILDCARD_SYMS" = xno
22643 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
22645 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22646 if test $cf_filter_syms = yes
22648 RESULTING_SYMS=resulting.map
22651 if test "x$cross_compiling" = xyes ; then
22652 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
22654 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
22657 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"
22658 ac_config_commands="$ac_config_commands default"
22659 cat >confcache <<\_ACEOF
22660 # This file is a shell script that caches the results of configure
22661 # tests run on this system so they can be shared between configure
22662 # scripts and configure runs, see configure's option --config-cache.
22663 # It is not useful on other systems. If it contains results you don't
22664 # want to keep, you may remove or edit it.
22666 # config.status only pays attention to the cache file if you give it
22667 # the --recheck option to rerun configure.
22669 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22671 # following values.
22675 # The following way of writing the cache mishandles newlines in values,
22676 # but we know of no workaround that is simple, portable, and efficient.
22677 # So, don't put newlines in cache variables' values.
22678 # Ultrix sh set writes to stderr and can't be redirected directly,
22679 # and sets the high bit in the cache file unless we assign to the vars.
22682 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22684 # `set' does not quote correctly, so add quotes (double-quote
22685 # substitution turns \\\\ into \\, and sed turns \\ into \).
22688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22691 # `set' quotes correctly as required by POSIX, so do not add quotes.
22693 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22702 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22704 if cmp -s $cache_file confcache; then :; else
22705 if test -w $cache_file; then
22706 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22707 cat confcache >$cache_file
22709 echo "not updating unwritable cache $cache_file"
22714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22715 # Let make expand exec_prefix.
22716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22720 # trailing colons and then remove the whole line if VPATH becomes empty
22721 # (actually we leave an empty line to preserve line numbers).
22722 if test "x$srcdir" = x.; then
22723 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22724 s/:*\$(srcdir):*/:/;
22725 s/:*\${srcdir}:*/:/;
22727 s/^\([^=]*=[ ]*\):*/\1/;
22733 DEFS=-DHAVE_CONFIG_H
22735 : ${CONFIG_STATUS=./config.status}
22736 ac_clean_files_save=$ac_clean_files
22737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22738 { echo "$as_me:22738: creating $CONFIG_STATUS" >&5
22739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22740 cat >$CONFIG_STATUS <<_ACEOF
22742 # Generated automatically by configure.
22743 # Run this file to recreate the current configuration.
22744 # Compiler output produced by configure, useful for debugging
22745 # configure, is in config.log if it exists.
22748 SHELL=\${CONFIG_SHELL-$SHELL}
22749 ac_cs_invocation="\$0 \$@"
22753 cat >>$CONFIG_STATUS <<\_ACEOF
22754 # Be Bourne compatible
22755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22758 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22762 # Name of the executable.
22763 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22765 if expr a : '\(a\)' >/dev/null 2>&1; then
22771 rm -f conf$$ conf$$.exe conf$$.file
22773 if ln -s conf$$.file conf$$ 2>/dev/null; then
22774 # We could just check for DJGPP; but this test a) works b) is more generic
22775 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22776 if test -f conf$$.exe; then
22777 # Don't use ln at all; we don't have any links
22782 elif ln conf$$.file conf$$ 2>/dev/null; then
22787 rm -f conf$$ conf$$.exe conf$$.file
22789 as_executable_p="test -f"
22791 # Support unset when possible.
22792 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22799 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
22800 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
22801 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
22802 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
22803 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
22804 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
22805 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
22806 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
22809 # We need space, tab and new line, in precisely that order.
22815 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
22821 # Files that config.status was made for.
22822 if test -n "$ac_config_files"; then
22823 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22826 if test -n "$ac_config_headers"; then
22827 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22830 if test -n "$ac_config_links"; then
22831 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22834 if test -n "$ac_config_commands"; then
22835 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22838 cat >>$CONFIG_STATUS <<\EOF
22841 \`$as_me' instantiates files from templates according to the
22842 current configuration.
22844 Usage: $0 [OPTIONS] [FILE]...
22846 -h, --help print this help, then exit
22847 -V, --version print version number, then exit
22848 -d, --debug don't remove temporary files
22849 --recheck update $as_me by reconfiguring in the same conditions
22850 --file=FILE[:TEMPLATE]
22851 instantiate the configuration file FILE
22852 --header=FILE[:TEMPLATE]
22853 instantiate the configuration header FILE
22855 Configuration files:
22858 Configuration headers:
22861 Configuration commands:
22864 Report bugs to <dickey@invisible-island.net>."
22867 cat >>$CONFIG_STATUS <<EOF
22870 configured by $0, generated by GNU Autoconf 2.52.20150926,
22871 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22874 Free Software Foundation, Inc.
22875 This config.status script is free software; the Free Software Foundation
22876 gives unlimited permission to copy, distribute and modify it."
22881 cat >>$CONFIG_STATUS <<\EOF
22882 # If no file are specified by the user, then we need to provide default
22883 # value. By we need to know if files were specified by the user.
22889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22892 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22896 *) # This is not an option, so the user has probably given explicit
22898 ac_need_defaults=false;;
22902 # Handling of the options.
22904 cat >>$CONFIG_STATUS <<EOF
22905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22906 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22907 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22909 cat >>$CONFIG_STATUS <<\EOF
22910 --version | --vers* | -V )
22911 echo "$ac_cs_version"; exit 0 ;;
22913 # Conflict between --help and --header
22914 { { echo "$as_me:22914: error: ambiguous option: $1
22915 Try \`$0 --help' for more information." >&5
22916 echo "$as_me: error: ambiguous option: $1
22917 Try \`$0 --help' for more information." >&2;}
22918 { (exit 1); exit 1; }; };;
22919 --help | --hel | -h )
22920 echo "$ac_cs_usage"; exit 0 ;;
22921 --debug | --d* | -d )
22923 --file | --fil | --fi | --f )
22925 CONFIG_FILES="$CONFIG_FILES $1"
22926 ac_need_defaults=false;;
22927 --header | --heade | --head | --hea )
22929 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22930 ac_need_defaults=false;;
22932 # This is an error.
22933 -*) { { echo "$as_me:22933: error: unrecognized option: $1
22934 Try \`$0 --help' for more information." >&5
22935 echo "$as_me: error: unrecognized option: $1
22936 Try \`$0 --help' for more information." >&2;}
22937 { (exit 1); exit 1; }; } ;;
22939 *) ac_config_targets="$ac_config_targets $1" ;;
22948 ## ----------------------- ##
22949 ## Running config.status. ##
22950 ## ----------------------- ##
22952 This file was extended by $as_me 2.52.20150926, executed with
22953 CONFIG_FILES = $CONFIG_FILES
22954 CONFIG_HEADERS = $CONFIG_HEADERS
22955 CONFIG_LINKS = $CONFIG_LINKS
22956 CONFIG_COMMANDS = $CONFIG_COMMANDS
22957 > $ac_cs_invocation
22958 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22963 cat >>$CONFIG_STATUS <<EOF
22965 # INIT-COMMANDS section.
22968 ### Special initialization commands, used to pass information from the
22969 ### configuration-run into config.status
22972 ALTERNATE_SYMS="$ALTERNATE_SYMS"
22973 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22974 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22976 EXTRA_SUFFIX="$EXTRA_SUFFIX"
22977 LDCONFIG="$LDCONFIG"
22978 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22979 LIB_NAME="$LIB_NAME"
22980 LIB_PREFIX="$LIB_PREFIX"
22981 LIB_SUBSETS="$LIB_SUBSETS"
22982 LIB_SUFFIX="$LIB_SUFFIX"
22983 LIB_TRACING="$LIB_TRACING"
22985 MAKE_TERMINFO="$MAKE_TERMINFO"
22986 NCURSES_MAJOR="$NCURSES_MAJOR"
22987 NCURSES_MINOR="$NCURSES_MINOR"
22988 NCURSES_OSPEED="$NCURSES_OSPEED"
22989 NCURSES_PATCH="$NCURSES_PATCH"
22990 SRC_SUBDIRS="$SRC_SUBDIRS"
22991 TERMINFO="$TERMINFO"
22992 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22993 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22994 TICS_NAME="$TICS_NAME"
22995 TICS_SUFFIX="$TICS_SUFFIX"
22996 TIC_PATH="$TIC_PATH"
22997 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22998 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22999 TINFO_NAME="$TINFO_NAME"
23000 TINFO_SUFFIX="$TINFO_SUFFIX"
23001 UNALTERED_SYMS="$UNALTERED_SYMS"
23002 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
23003 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
23004 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
23005 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
23006 WILDCARD_SYMS="$WILDCARD_SYMS"
23007 WITH_CURSES_H="$with_curses_h"
23008 WITH_ECHO="${enable_echo:=yes}"
23009 WITH_OVERWRITE="$with_overwrite"
23010 cf_LIST_MODELS="$cf_list_models"
23011 cf_cv_abi_version="$cf_cv_abi_version"
23012 cf_cv_do_relink="$cf_cv_do_relink"
23013 cf_cv_do_symlinks="$cf_cv_do_symlinks"
23014 cf_cv_enable_lp64="$cf_cv_enable_lp64"
23015 cf_cv_enable_opaque="$cf_cv_enable_opaque"
23016 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
23017 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
23018 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
23019 cf_cv_rel_version="$cf_cv_rel_version"
23020 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
23021 cf_cv_shared_soname='$cf_cv_shared_soname'
23022 cf_cv_shlib_version="$cf_cv_shlib_version"
23023 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
23024 cf_cv_system_name="$cf_cv_system_name"
23025 cf_cv_term_driver="$with_term_driver"
23026 cf_with_ada="$cf_with_ada"
23027 cf_with_cxx_binding="$cf_with_cxx_binding"
23028 cf_with_db_install="$cf_with_db_install"
23029 cf_with_manpages="$cf_with_manpages"
23030 cf_with_tests="$cf_with_tests"
23033 with_shared_cxx="$with_shared_cxx"
23037 cat >>$CONFIG_STATUS <<\EOF
23038 for ac_config_target in $ac_config_targets
23040 case "$ac_config_target" in
23041 # Handling of arguments.
23042 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
23043 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
23044 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
23045 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
23046 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
23047 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
23048 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
23049 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23050 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23051 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
23052 *) { { echo "$as_me:23052: error: invalid argument: $ac_config_target" >&5
23053 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23054 { (exit 1); exit 1; }; };;
23058 # If the user did not use the arguments to specify the items to instantiate,
23059 # then the envvar interface is used. Set only those that are not.
23060 # We use the long form for the default assignment because of an extremely
23061 # bizarre bug on SunOS 4.1.3.
23062 if $ac_need_defaults; then
23063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23068 # Create a temporary directory, and hook for its removal unless debugging.
23071 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23072 trap '{ (exit 1); exit 1; }' 1 2 13 15
23075 # Create a (secure) tmp directory for tmp files.
23078 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23079 test -n "$tmp" && test -d "$tmp"
23082 tmp=$TMPDIR/cs$$-$RANDOM
23083 (umask 077 && mkdir $tmp)
23086 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23087 { (exit 1); exit 1; }
23092 cat >>$CONFIG_STATUS <<EOF
23095 # CONFIG_FILES section.
23098 # No need to generate the scripts if there are no CONFIG_FILES.
23099 # This happens for instance when ./config.status config.h
23100 if test -n "\$CONFIG_FILES"; then
23101 # Protect against being on the right side of a sed subst in config.status.
23102 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23103 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23104 s,@SHELL@,$SHELL,;t t
23105 s,@exec_prefix@,$exec_prefix,;t t
23106 s,@prefix@,$prefix,;t t
23107 s,@program_transform_name@,$program_transform_name,;t t
23108 s,@bindir@,$bindir,;t t
23109 s,@sbindir@,$sbindir,;t t
23110 s,@libexecdir@,$libexecdir,;t t
23111 s,@datarootdir@,$datarootdir,;t t
23112 s,@datadir@,$datadir,;t t
23113 s,@sysconfdir@,$sysconfdir,;t t
23114 s,@sharedstatedir@,$sharedstatedir,;t t
23115 s,@localstatedir@,$localstatedir,;t t
23116 s,@libdir@,$libdir,;t t
23117 s,@includedir@,$includedir,;t t
23118 s,@oldincludedir@,$oldincludedir,;t t
23119 s,@infodir@,$infodir,;t t
23120 s,@mandir@,$mandir,;t t
23121 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23122 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23123 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23124 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23125 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23126 s,@build_alias@,$build_alias,;t t
23127 s,@host_alias@,$host_alias,;t t
23128 s,@target_alias@,$target_alias,;t t
23129 s,@ECHO_C@,$ECHO_C,;t t
23130 s,@ECHO_N@,$ECHO_N,;t t
23131 s,@ECHO_T@,$ECHO_T,;t t
23132 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23133 s,@DEFS@,$DEFS,;t t
23134 s,@LIBS@,$LIBS,;t t
23135 s,@top_builddir@,$top_builddir,;t t
23136 s,@EGREP@,$EGREP,;t t
23137 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
23138 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
23139 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
23140 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23141 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23142 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
23143 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
23144 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
23145 s,@VERSION@,$VERSION,;t t
23146 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
23147 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
23148 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
23149 s,@PACKAGE@,$PACKAGE,;t t
23150 s,@build@,$build,;t t
23151 s,@build_cpu@,$build_cpu,;t t
23152 s,@build_vendor@,$build_vendor,;t t
23153 s,@build_os@,$build_os,;t t
23154 s,@host@,$host,;t t
23155 s,@host_cpu@,$host_cpu,;t t
23156 s,@host_vendor@,$host_vendor,;t t
23157 s,@host_os@,$host_os,;t t
23158 s,@target@,$target,;t t
23159 s,@target_cpu@,$target_cpu,;t t
23160 s,@target_vendor@,$target_vendor,;t t
23161 s,@target_os@,$target_os,;t t
23163 s,@CFLAGS@,$CFLAGS,;t t
23164 s,@LDFLAGS@,$LDFLAGS,;t t
23165 s,@CPPFLAGS@,$CPPFLAGS,;t t
23166 s,@ac_ct_CC@,$ac_ct_CC,;t t
23167 s,@EXEEXT@,$EXEEXT,;t t
23168 s,@OBJEXT@,$OBJEXT,;t t
23169 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23171 s,@LDCONFIG@,$LDCONFIG,;t t
23173 s,@CXXFLAGS@,$CXXFLAGS,;t t
23174 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23176 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23177 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23178 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23179 s,@LINT@,$LINT,;t t
23180 s,@LINT_OPTS@,$LINT_OPTS,;t t
23181 s,@LN_S@,$LN_S,;t t
23182 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23183 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23184 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
23185 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
23186 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
23187 s,@SET_MAKE@,$SET_MAKE,;t t
23188 s,@CTAGS@,$CTAGS,;t t
23189 s,@ETAGS@,$ETAGS,;t t
23190 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23191 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23192 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
23193 s,@RANLIB@,$RANLIB,;t t
23194 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23196 s,@ac_ct_LD@,$ac_ct_LD,;t t
23198 s,@ac_ct_AR@,$ac_ct_AR,;t t
23200 s,@ac_ct_NM@,$ac_ct_NM,;t t
23201 s,@ARFLAGS@,$ARFLAGS,;t t
23202 s,@DESTDIR@,$DESTDIR,;t t
23203 s,@BUILD_CC@,$BUILD_CC,;t t
23204 s,@BUILD_CPP@,$BUILD_CPP,;t t
23205 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
23206 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
23207 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
23208 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
23209 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
23210 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
23211 s,@cf_list_models@,$cf_list_models,;t t
23212 s,@ABI_VERSION@,$ABI_VERSION,;t t
23213 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
23214 s,@LIBTOOL@,$LIBTOOL,;t t
23215 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
23216 s,@LT_UNDEF@,$LT_UNDEF,;t t
23217 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
23218 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23219 s,@LIB_CREATE@,$LIB_CREATE,;t t
23220 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
23221 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
23222 s,@LIB_PREP@,$LIB_PREP,;t t
23223 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23224 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23225 s,@LIB_LINK@,$LIB_LINK,;t t
23226 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
23227 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
23228 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
23229 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23230 s,@TICS_NAME@,$TICS_NAME,;t t
23231 s,@TINFO_NAME@,$TINFO_NAME,;t t
23232 s,@LIB_NAME@,$LIB_NAME,;t t
23233 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
23234 s,@CC_G_OPT@,$CC_G_OPT,;t t
23235 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
23236 s,@LD_MODEL@,$LD_MODEL,;t t
23237 s,@shlibdir@,$shlibdir,;t t
23238 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
23239 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23240 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
23241 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23242 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
23243 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
23244 s,@LINK_PROGS@,$LINK_PROGS,;t t
23245 s,@LINK_TESTS@,$LINK_TESTS,;t t
23246 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23247 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23248 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
23249 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
23250 s,@RPATH_LIST@,$RPATH_LIST,;t t
23251 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
23252 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
23253 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
23254 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
23255 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23256 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
23257 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
23258 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
23259 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
23260 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
23261 s,@XTERM_KBS@,$XTERM_KBS,;t t
23262 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
23263 s,@TERMINFO@,$TERMINFO,;t t
23264 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
23265 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
23266 s,@TERMPATH@,$TERMPATH,;t t
23267 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
23268 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
23269 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
23270 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
23271 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
23272 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
23273 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
23274 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
23275 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
23276 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
23277 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
23278 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
23279 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
23280 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
23281 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
23282 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
23283 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
23284 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
23285 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
23286 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
23287 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
23288 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
23289 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
23290 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
23291 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
23292 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
23293 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
23294 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
23295 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
23296 s,@PTHREAD@,$PTHREAD,;t t
23297 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
23298 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
23299 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
23300 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
23301 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23302 s,@ECHO_LT@,$ECHO_LT,;t t
23303 s,@ECHO_LD@,$ECHO_LD,;t t
23304 s,@RULE_CC@,$RULE_CC,;t t
23305 s,@SHOW_CC@,$SHOW_CC,;t t
23306 s,@ECHO_CC@,$ECHO_CC,;t t
23307 s,@ECHO_LINK@,$ECHO_LINK,;t t
23308 s,@ADAFLAGS@,$ADAFLAGS,;t t
23309 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23310 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
23311 s,@ADA_TRACE@,$ADA_TRACE,;t t
23312 s,@MATH_LIB@,$MATH_LIB,;t t
23313 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
23314 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
23315 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
23316 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
23317 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
23318 s,@TEST_LIBS@,$TEST_LIBS,;t t
23319 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
23320 s,@CXXCPP@,$CXXCPP,;t t
23321 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
23322 s,@CXX_AR@,$CXX_AR,;t t
23323 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
23324 s,@CXXLIBS@,$CXXLIBS,;t t
23325 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
23326 s,@gnat_exists@,$gnat_exists,;t t
23327 s,@M4_exists@,$M4_exists,;t t
23328 s,@cf_ada_make@,$cf_ada_make,;t t
23329 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
23330 s,@cf_compile_generics@,$cf_compile_generics,;t t
23331 s,@cf_generic_objects@,$cf_generic_objects,;t t
23332 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
23333 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
23334 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
23335 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
23336 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
23337 s,@cf_ada_package@,$cf_ada_package,;t t
23338 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
23339 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
23340 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
23341 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
23342 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
23343 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
23344 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23345 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23346 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
23347 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
23348 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
23349 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
23350 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
23351 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
23352 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
23353 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
23354 s,@TICS_LIBS@,$TICS_LIBS,;t t
23355 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
23356 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
23357 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
23358 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23359 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23360 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
23361 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23362 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23363 s,@includesubdir@,$includesubdir,;t t
23364 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
23365 s,@TICS_LIST@,$TICS_LIST,;t t
23366 s,@TINFO_LIST@,$TINFO_LIST,;t t
23367 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
23368 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
23369 s,@TEST_ARGS@,$TEST_ARGS,;t t
23370 s,@TEST_DEPS@,$TEST_DEPS,;t t
23371 s,@TEST_ARG2@,$TEST_ARG2,;t t
23372 s,@TEST_DEP2@,$TEST_DEP2,;t t
23373 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
23374 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
23375 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
23376 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
23377 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
23378 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
23379 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
23380 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
23381 s,@cross_compiling@,$cross_compiling,;t t
23382 s,@TIC_PATH@,$TIC_PATH,;t t
23383 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
23384 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
23385 s,@PANEL_NAME@,$PANEL_NAME,;t t
23386 s,@MENU_NAME@,$MENU_NAME,;t t
23387 s,@FORM_NAME@,$FORM_NAME,;t t
23388 s,@CXX_NAME@,$CXX_NAME,;t t
23389 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
23390 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
23391 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
23392 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
23393 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
23394 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
23399 cat >>$CONFIG_STATUS <<\EOF
23400 # Split the substitutions into bite-sized pieces for seds with
23401 # small command number limits, like on Digital OSF/1 and HP-UX.
23402 ac_max_sed_lines=48
23403 ac_sed_frag=1 # Number of current file.
23404 ac_beg=1 # First line for current file.
23405 ac_end=$ac_max_sed_lines # Line after last line for current file.
23408 while $ac_more_lines; do
23409 if test $ac_beg -gt 1; then
23410 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23412 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23414 if test ! -s $tmp/subs.frag; then
23415 ac_more_lines=false
23417 # The purpose of the label and of the branching condition is to
23418 # speed up the sed processing (if there are no `@' at all, there
23419 # is no need to browse any of the substitutions).
23420 # These are the two extra sed commands mentioned above.
23422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23423 # It is possible to make a multiline substitution using escaped newlines.
23424 # Ensure that we do not split the substitution between script fragments.
23426 ac_END=`expr $ac_end + $ac_max_sed_lines`
23427 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23428 if test -s $tmp/subs.next; then
23429 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23430 if test ! -s $tmp/subs.edit; then
23431 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23432 if test ! -s $tmp/subs.edit; then
23433 if test $ac_beg -gt 1; then
23434 ac_end=`expr $ac_end - 1`
23441 if test -z "$ac_sed_cmds"; then
23442 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23444 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23446 ac_sed_frag=`expr $ac_sed_frag + 1`
23448 ac_end=`expr $ac_end + $ac_max_sed_lines`
23451 if test -z "$ac_sed_cmds"; then
23454 fi # test -n "$CONFIG_FILES"
23457 cat >>$CONFIG_STATUS <<\EOF
23458 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23461 - | *:- | *:-:* ) # input from stdin
23463 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23465 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23467 * ) ac_file_in=$ac_file.in ;;
23470 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23471 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23472 X"$ac_file" : 'X\(//\)[^/]' \| \
23473 X"$ac_file" : 'X\(//\)$' \| \
23474 X"$ac_file" : 'X\(/\)' \| \
23475 . : '\(.\)' 2>/dev/null ||
23477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23479 /^X\(\/\/\)$/{ s//\1/; q; }
23480 /^X\(\/\).*/{ s//\1/; q; }
23482 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23483 { case "$ac_dir" in
23484 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23488 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23489 case $as_mkdir_dir in
23490 # Skip DOS drivespec
23491 ?:) as_incr_dir=$as_mkdir_dir ;;
23493 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23494 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23499 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23500 # A "../" for each directory in $ac_dir_suffix.
23501 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23503 ac_dir_suffix= ac_dots=
23508 if test -z "$ac_dots"; then
23511 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
23513 [\\/]* | ?:[\\/]* )
23514 ac_srcdir=$srcdir$ac_dir_suffix;
23515 ac_top_srcdir=$srcdir ;;
23516 *) # Relative path.
23517 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
23518 ac_top_srcdir=$ac_dots$srcdir ;;
23522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23523 *) ac_INSTALL=$ac_dots$INSTALL ;;
23526 if test x"$ac_file" != x-; then
23527 { echo "$as_me:23527: creating $ac_file" >&5
23528 echo "$as_me: creating $ac_file" >&6;}
23531 # Let's still pretend it is `configure' which instantiates (i.e., don't
23532 # use $as_me), people would be surprised to read:
23533 # /* config.h. Generated automatically by config.status. */
23534 configure_input="Generated automatically from `echo $ac_file_in |
23535 sed 's,.*/,,'` by configure."
23537 # First look for the input files in the build tree, otherwise in the
23539 ac_file_inputs=`IFS=:
23540 for f in $ac_file_in; do
23542 -) echo $tmp/stdin ;;
23544 # Absolute (can't be DOS-style, as IFS=:)
23545 test -f "$f" || { { echo "$as_me:23545: error: cannot find input file: $f" >&5
23546 echo "$as_me: error: cannot find input file: $f" >&2;}
23547 { (exit 1); exit 1; }; }
23550 if test -f "$f"; then
23553 elif test -f "$srcdir/$f"; then
23558 { { echo "$as_me:23558: error: cannot find input file: $f" >&5
23559 echo "$as_me: error: cannot find input file: $f" >&2;}
23560 { (exit 1); exit 1; }; }
23563 done` || { (exit 1); exit 1; }
23565 cat >>$CONFIG_STATUS <<\EOF
23566 ac_warn_datarootdir=no
23567 if test x"$ac_file" != x-; then
23568 for ac_item in $ac_file_inputs
23570 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23571 if test -n "$ac_seen"; then
23572 ac_used=`grep '@datarootdir@' $ac_item`
23573 if test -z "$ac_used"; then
23574 { echo "$as_me:23574: WARNING: datarootdir was used implicitly but not set:
23576 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23578 ac_warn_datarootdir=yes
23581 ac_seen=`grep '${datarootdir}' $ac_item`
23582 if test -n "$ac_seen"; then
23583 { echo "$as_me:23583: WARNING: datarootdir was used explicitly but not set:
23585 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23587 ac_warn_datarootdir=yes
23592 if test "x$ac_warn_datarootdir" = xyes; then
23593 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23597 cat >>$CONFIG_STATUS <<EOF
23601 cat >>$CONFIG_STATUS <<\EOF
23603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23604 s,@configure_input@,$configure_input,;t t
23605 s,@srcdir@,$ac_srcdir,;t t
23606 s,@top_srcdir@,$ac_top_srcdir,;t t
23607 s,@INSTALL@,$ac_INSTALL,;t t
23608 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23610 if test x"$ac_file" != x-; then
23611 cp $tmp/out $ac_file
23613 for ac_name in prefix exec_prefix datarootdir
23615 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23616 if test -n "$ac_seen"; then
23617 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23618 if test -z "$ac_init"; then
23619 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23620 { echo "$as_me:23620: WARNING: Variable $ac_name is used but was not set:
23622 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23627 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23628 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23629 if test -s $tmp/out; then
23630 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23631 { echo "$as_me:23631: WARNING: Some variables may not be substituted:
23633 echo "$as_me: WARNING: Some variables may not be substituted:
23643 cat >>$CONFIG_STATUS <<\EOF
23646 # CONFIG_HEADER section.
23649 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23650 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23652 # ac_d sets the value in "#define NAME VALUE" lines.
23653 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23654 ac_dB='[ ].*$,\1#\2'
23657 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23658 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23659 ac_iB='\([ ]\),\1#\2define\3'
23662 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23663 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23664 ac_uB='$,\1#\2define\3'
23668 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23671 - | *:- | *:-:* ) # input from stdin
23673 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23674 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23675 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23676 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23677 * ) ac_file_in=$ac_file.in ;;
23680 test x"$ac_file" != x- && { echo "$as_me:23680: creating $ac_file" >&5
23681 echo "$as_me: creating $ac_file" >&6;}
23683 # First look for the input files in the build tree, otherwise in the
23685 ac_file_inputs=`IFS=:
23686 for f in $ac_file_in; do
23688 -) echo $tmp/stdin ;;
23690 # Absolute (can't be DOS-style, as IFS=:)
23691 test -f "$f" || { { echo "$as_me:23691: error: cannot find input file: $f" >&5
23692 echo "$as_me: error: cannot find input file: $f" >&2;}
23693 { (exit 1); exit 1; }; }
23696 if test -f "$f"; then
23699 elif test -f "$srcdir/$f"; then
23704 { { echo "$as_me:23704: error: cannot find input file: $f" >&5
23705 echo "$as_me: error: cannot find input file: $f" >&2;}
23706 { (exit 1); exit 1; }; }
23709 done` || { (exit 1); exit 1; }
23710 # Remove the trailing spaces.
23711 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23715 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23716 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23717 # be either 'cat' or 'sort'.
23718 cat confdefs.h | uniq >conftest.vals
23720 # Break up conftest.vals because some shells have a limit on
23721 # the size of here documents, and old seds have small limits too.
23723 rm -f conftest.tail
23724 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23725 while grep . conftest.vals >/dev/null
23727 # Write chunks of a limited-size here document to conftest.frag.
23728 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23729 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23730 echo 'CEOF' >> $CONFIG_STATUS
23731 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23732 rm -f conftest.vals
23733 mv conftest.tail conftest.vals
23735 rm -f conftest.vals
23737 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23739 echo ' cat >> conftest.edit <<CEOF
23740 /@DEFS@/r conftest.frag
23743 sed -f conftest.edit $tmp/in > $tmp/out
23745 mv $tmp/out $tmp/in
23746 rm -f conftest.edit conftest.frag
23747 ' >> $CONFIG_STATUS
23749 cat >>$CONFIG_STATUS <<\EOF
23750 # Let's still pretend it is `configure' which instantiates (i.e., don't
23751 # use $as_me), people would be surprised to read:
23752 # /* config.h. Generated automatically by config.status. */
23753 if test x"$ac_file" = x-; then
23754 echo "/* Generated automatically by configure. */" >$tmp/config.h
23756 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
23758 cat $tmp/in >>$tmp/config.h
23760 if test x"$ac_file" != x-; then
23761 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23762 { echo "$as_me:23762: $ac_file is unchanged" >&5
23763 echo "$as_me: $ac_file is unchanged" >&6;}
23765 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23766 X"$ac_file" : 'X\(//\)[^/]' \| \
23767 X"$ac_file" : 'X\(//\)$' \| \
23768 X"$ac_file" : 'X\(/\)' \| \
23769 . : '\(.\)' 2>/dev/null ||
23771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23773 /^X\(\/\/\)$/{ s//\1/; q; }
23774 /^X\(\/\).*/{ s//\1/; q; }
23776 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23777 { case "$ac_dir" in
23778 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23782 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23783 case $as_mkdir_dir in
23784 # Skip DOS drivespec
23785 ?:) as_incr_dir=$as_mkdir_dir ;;
23787 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23788 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23795 mv $tmp/config.h $ac_file
23799 rm -f $tmp/config.h
23803 cat >>$CONFIG_STATUS <<\EOF
23805 # CONFIG_COMMANDS section.
23807 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23813 if test "x$cf_with_tests" != xno ; then
23817 if test ! -d $srcdir/$cf_dir; then
23819 elif test -f $srcdir/$cf_dir/programs; then
23820 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
23826 cf_prefix=$LIB_PREFIX
23828 case $cf_cv_shlib_version in
23829 (cygdll|msysdll|mingw)
23830 TINFO_NAME=$TINFO_ARG_SUFFIX
23835 if test -n "$TINFO_SUFFIX" ; then
23836 case $TINFO_SUFFIX in
23838 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
23839 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
23842 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
23843 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
23846 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
23847 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
23852 for cf_dir in $SRC_SUBDIRS
23854 if test ! -d $srcdir/$cf_dir ; then
23856 elif test -f $srcdir/$cf_dir/modules; then
23861 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
23863 cf_awk_program="$cf_awk_program\
23864 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
23865 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
23869 if test "x$WILDCARD_SYMS" = xno
23871 cf_awk_program="$cf_awk_program\
23872 /[ ]_\\*;/ { skip=1; next; }\
23876 if test "x$cf_awk_program" != "x"
23878 cat >>$cf_dir/Makefile <<CF_EOF
23880 # Generated by CF_LIB_RULES
23881 resulting.map: $UNALTERED_SYMS
23882 $AWK 'BEGIN { skip = 1; last=""; } \
23884 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
23885 skip = 0; last = \$\$0; } \
23886 END { print last; }' < $UNALTERED_SYMS >\$@
23889 rm -f resulting.map
23893 for cf_item in $cf_LIST_MODELS
23899 cf_depsuf=$cf_suffix
23903 cf_depsuf=$cf_suffix
23907 cf_depsuf=$cf_suffix
23910 case $cf_cv_system_name in
23913 cf_depsuf=$cf_suffix
23915 (cygwin*|msys*|mingw*)
23921 cf_depsuf=$cf_suffix
23927 cf_depsuf=$cf_suffix
23931 cf_depsuf=$cf_suffix
23937 cf_depsuf=$cf_suffix
23943 cf_depsuf=$cf_suffix
23946 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23948 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23949 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23953 test "$cf_dir" = c++ && cf_libname=ncurses++
23954 if test $cf_item = shared ; then
23955 if test -n "${LIB_SUFFIX}"
23957 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23959 cf_shared_suffix="$cf_suffix"
23961 if test "$cf_cv_do_symlinks" = yes ; then
23964 case "$cf_cv_shlib_version" in
23966 cf_version_name=REL_VERSION
23969 cf_version_name=ABI_VERSION
23973 if test -n "$cf_version_name"
23975 case "$cf_cv_system_name" in
23978 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23981 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23985 if test -n "${USE_LIB_SUFFIX}"
23987 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23989 cf_shared_suffix="$cf_suffix"
23992 # cygwin needs import library, and has unique naming convention
23993 # use autodetected ${cf_prefix} for import lib and static lib, but
23994 # use 'cyg' prefix for shared lib.
23995 case $cf_cv_shlib_version in
23997 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23998 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
24001 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24002 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
24005 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24006 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
24012 if test -n "$cf_add_lib"
24014 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24018 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
24019 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24022 if test $cf_dir = ncurses ; then
24023 cf_subsets="$LIB_SUBSETS"
24024 cf_r_parts="$cf_subsets"
24025 cf_liblist="$Libs_To_Make"
24027 while test -n "$cf_r_parts"
24029 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
24030 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
24031 if test "$cf_l_parts" != "$cf_r_parts" ; then
24033 case $cf_l_parts in
24035 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
24038 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
24044 if test -n "$cf_add_lib"; then
24045 Libs_To_Make="$cf_add_lib $Libs_To_Make"
24052 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
24055 if test $cf_dir = c++; then
24056 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
24058 for cf_item in $Libs_To_Make
24064 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24067 for cf_test in $cf_list
24069 if test "$cf_test" = "$cf_item"
24071 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
24076 test -n "$cf_item" && cf_list="$cf_list $cf_item"
24078 Libs_To_Make="$cf_list"
24082 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
24083 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
24084 $cf_dir/Makefile >$cf_dir/Makefile.out
24085 mv $cf_dir/Makefile.out $cf_dir/Makefile
24087 $AWK -f $srcdir/mk-0th.awk \
24088 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
24089 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24091 for cf_subset in $cf_subsets
24094 for cf_item in $cf_LIST_MODELS
24097 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
24099 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24102 if test "$CXX_MODEL" = SHARED; then
24103 case $cf_cv_shlib_version in
24104 (cygdll|msysdll|mingw)
24105 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
24107 echo "${as_me:-configure}:24107: testing overriding CXX_MODEL to SHARED ..." 1>&5
24109 with_shared_cxx=yes
24112 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
24120 cf_depsuf=$cf_suffix
24124 cf_depsuf=$cf_suffix
24128 cf_depsuf=$cf_suffix
24131 case $cf_cv_system_name in
24134 cf_depsuf=$cf_suffix
24136 (cygwin*|msys*|mingw*)
24142 cf_depsuf=$cf_suffix
24148 cf_depsuf=$cf_suffix
24152 cf_depsuf=$cf_suffix
24158 cf_depsuf=$cf_suffix
24164 cf_depsuf=$cf_suffix
24167 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24169 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24170 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24174 (libtool) cf_subdir='obj_lo' ;;
24175 (normal) cf_subdir='objects' ;;
24176 (debug) cf_subdir='obj_g' ;;
24177 (profile) cf_subdir='obj_p' ;;
24179 case $cf_cv_system_name in
24181 cf_subdir='objects' ;;
24183 cf_subdir='obj_s' ;;
24187 # Test for case where we build libtinfo with a different name.
24189 if test $cf_dir = ncurses ; then
24192 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24195 cf_libname=$TINFO_LIB_SUFFIX
24198 cf_libname=$TICS_LIB_SUFFIX
24201 elif test $cf_dir = c++ ; then
24202 cf_libname=ncurses++$USE_LIB_SUFFIX
24204 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24206 if test -n "${USE_ARG_SUFFIX}" ; then
24207 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
24208 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
24211 # These dependencies really are for development, not
24212 # builds, but they are useful in porting, too.
24213 cf_depend="../include/ncurses_cfg.h"
24214 if test "$srcdir" = "."; then
24217 cf_reldir="\${srcdir}"
24220 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
24221 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
24222 elif test -f $srcdir/$cf_dir/curses.priv.h; then
24223 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
24227 old_cf_suffix="$cf_suffix"
24228 if test "$cf_cv_shlib_version_infix" = yes ; then
24229 if test -n "$USE_LIB_SUFFIX" ; then
24230 case $USE_LIB_SUFFIX in
24232 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
24233 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
24234 cf_dir_suffix=tw$EXTRA_SUFFIX
24237 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
24238 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
24239 cf_dir_suffix=t$EXTRA_SUFFIX
24242 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
24243 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
24244 cf_dir_suffix=w$EXTRA_SUFFIX
24247 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
24248 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
24249 cf_dir_suffix=$EXTRA_SUFFIX
24255 $AWK -f $srcdir/mk-1st.awk \
24256 name=${cf_libname}${cf_dir_suffix} \
24257 traces=$LIB_TRACING \
24259 CXX_MODEL=$CXX_MODEL \
24261 prefix=$cf_prefix \
24262 suffix=$cf_suffix \
24263 subset=$cf_subset \
24264 driver=$cf_cv_term_driver \
24266 TermlibRoot=$TINFO_NAME \
24267 TermlibSuffix=$TINFO_SUFFIX \
24268 ShlibVer=$cf_cv_shlib_version \
24269 ShlibVerInfix=$cf_cv_shlib_version_infix \
24270 ReLink=${cf_cv_do_relink:-no} \
24271 DoLinks=$cf_cv_do_symlinks \
24272 rmSoLocs=$cf_cv_rm_so_locs \
24273 ldconfig="$LDCONFIG" \
24274 overwrite=$WITH_OVERWRITE \
24275 depend="$cf_depend" \
24277 libtool_version="$LIBTOOL_VERSION" \
24278 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24280 cf_suffix="$old_cf_suffix"
24282 for cf_subdir2 in $cf_subdirs lib
24284 test $cf_subdir = $cf_subdir2 && break
24286 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
24287 $AWK -f $srcdir/mk-2nd.awk \
24289 traces=$LIB_TRACING \
24292 subset=$cf_subset \
24295 crenames=$cf_cv_prog_CC_c_o \
24296 cxxrenames=$cf_cv_prog_CXX_c_o \
24297 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24298 cf_subdirs="$cf_subdirs $cf_subdir"
24303 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
24306 for cf_dir in $SRC_SUBDIRS
24308 if test ! -d $srcdir/$cf_dir ; then
24312 if test -f $cf_dir/Makefile ; then
24315 echo 'libs \' >> Makefile
24316 echo 'install.libs \' >> Makefile
24317 echo 'uninstall.libs ::' >> Makefile
24318 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
24323 if test -f $srcdir/$cf_dir/modules; then
24325 if test -f $srcdir/$cf_dir/headers; then
24326 cat >> Makefile <<CF_EOF
24327 install.includes \\
24328 uninstall.includes \\
24331 if test "$cf_dir" != "c++" ; then
24332 echo 'lint \' >> Makefile
24334 cat >> Makefile <<CF_EOF
24340 uninstall.$cf_dir ::
24341 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24343 elif test -f $srcdir/$cf_dir/headers; then
24344 cat >> Makefile <<CF_EOF
24349 install.includes \\
24350 uninstall.includes ::
24351 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24356 if test "x$cf_with_db_install" = xyes; then
24357 cat >> Makefile <<CF_EOF
24359 install.libs uninstall.libs \\
24360 install.data uninstall.data ::
24361 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24364 cat >> Makefile <<CF_EOF
24366 install.libs uninstall.libs ::
24367 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24371 if test "x$cf_with_manpages" = xyes; then
24372 cat >> Makefile <<CF_EOF
24376 cd man && \${MAKE} \${TOP_MFLAGS} \$@
24380 cat >> Makefile <<CF_EOF
24383 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
24384 rm -f headers.sh headers.sed mk_shared_lib.sh
24385 rm -f edit_man.* man_alias.*
24386 rm -rf \${DIRS_TO_MAKE}
24389 # Special case: tack's manpage lives in its own directory.
24390 if test "x$cf_with_manpages" = xyes; then
24391 if test -d tack ; then
24392 if test -f $srcdir/$tack.h; then
24393 cat >> Makefile <<CF_EOF
24397 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
24403 rm -f headers.sed headers.sh
24405 echo creating headers.sh
24406 cat >headers.sh <<CF_EOF
24408 # This shell script is generated by the 'configure' script. It is invoked in a
24409 # subdirectory of the build tree. It generates a sed-script in the parent
24410 # directory that is used to adjust includes for header files that reside in a
24411 # subdirectory of /usr/include, etc.
24413 while test \$# != 3
24415 PRG="\$PRG \$1"; shift
24420 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
24421 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
24422 echo installing \$SRC in \$DST
24425 if test $WITH_CURSES_H = yes; then
24426 cat >>headers.sh <<CF_EOF
24429 END=\`basename \$DST\`
24430 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24432 NAME=\`basename \$i\`
24433 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24437 echo "" >> \$TMPSED
24443 cat >>headers.sh <<CF_EOF
24446 END=\`basename \$DST\`
24447 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24449 NAME=\`basename \$i\`
24450 if test "\$NAME" = "curses.h"
24452 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24455 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24459 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24464 cat >>headers.sh <<CF_EOF
24466 sed -f \$TMPSED \$SRC > \$TMPSRC
24467 NAME=\`basename \$SRC\`
24469 if test $WITH_CURSES_H != yes; then
24470 cat >>headers.sh <<CF_EOF
24471 test "\$NAME" = "curses.h" && NAME=ncurses.h
24474 cat >>headers.sh <<CF_EOF
24475 # Just in case someone gzip'd manpages, remove the conflicting copy.
24476 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
24478 eval \$PRG \$TMPSRC \$DST/\$NAME
24479 rm -f \$TMPSRC \$TMPSED
24482 chmod 0755 headers.sh
24484 for cf_dir in $SRC_SUBDIRS
24486 if test ! -d $srcdir/$cf_dir ; then
24490 if test -f $srcdir/$cf_dir/headers; then
24491 $AWK -f $srcdir/mk-hdr.awk \
24492 subset="$LIB_SUBSETS" \
24493 compat="$WITH_CURSES_H" \
24494 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
24497 if test -f $srcdir/$cf_dir/modules; then
24498 if test "$cf_dir" != "c++" ; then
24499 cat >>$cf_dir/Makefile <<"CF_EOF"
24500 depend : ${AUTO_SRC}
24501 makedepend -- ${CPPFLAGS} -- ${C_SRC}
24503 # DO NOT DELETE THIS LINE -- make depend depends on it.
24509 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24510 if test -z "$USE_OLD_MAKERULES" ; then
24511 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
24519 cat >>$CONFIG_STATUS <<\EOF
24521 { (exit 0); exit 0; }
24523 chmod +x $CONFIG_STATUS
24524 ac_clean_files=$ac_clean_files_save
24526 # configure is writing to config.log, and then calls config.status.
24527 # config.status does its own redirection, appending to config.log.
24528 # Unfortunately, on DOS this fails, as config.log is still kept open
24529 # by configure, so config.status won't be able to write to it; its
24530 # output is simply discarded. So we exec the FD to /dev/null,
24531 # effectively closing config.log, so it can be properly (re)opened and
24532 # appended to by config.status. When coming back to configure, we
24533 # need to make the FD available again.
24534 if test "$no_create" != yes; then
24537 $SHELL $CONFIG_STATUS || ac_cs_success=false
24539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24540 # would make configure fail if this is the last instruction.
24541 $ac_cs_success || { (exit 1); exit 1; }
24543 ${MAKE:-make} preinstall