2 # From configure.in Revision: 1.690 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20190901.
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 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
615 ac_env_CXX_set=${CXX+set}
616 ac_env_CXX_value=$CXX
617 ac_cv_env_CXX_set=${CXX+set}
618 ac_cv_env_CXX_value=$CXX
619 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
620 ac_env_CXXFLAGS_value=$CXXFLAGS
621 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
623 ac_env_CXXCPP_set=${CXXCPP+set}
624 ac_env_CXXCPP_value=$CXXCPP
625 ac_cv_env_CXXCPP_set=${CXXCPP+set}
626 ac_cv_env_CXXCPP_value=$CXXCPP
629 # Report the --help message.
631 if test "$ac_init_help" = "long"; then
632 # Omit some internal or obsolete options to make the list less imposing.
633 # This message is too long to be a string in the A/UX 3.1 sh.
635 \`configure' configures this package to adapt to many kinds of systems.
637 Usage: $0 [OPTION]... [VAR=VALUE]...
639 To assign environment variables (e.g., CC, CFLAGS...), specify them as
640 VAR=VALUE. See below for descriptions of some of the useful variables.
642 Defaults for the options are specified in brackets.
645 -h, --help display this help and exit
646 --help=short display options specific to this package
647 --help=recursive display the short help of all the included packages
648 -V, --version display version information and exit
649 -q, --quiet, --silent do not print \`checking...' messages
650 --cache-file=FILE cache test results in FILE [disabled]
651 -C, --config-cache alias for \`--cache-file=config.cache'
652 -n, --no-create do not create output files
653 --srcdir=DIR find the sources in DIR [configure dir or \`..']
658 Installation directories:
659 --prefix=PREFIX install architecture-independent files in PREFIX
661 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 By default, \`make install' will install all the files in
665 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
666 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
667 for instance \`--prefix=\$HOME'.
669 For better control, use the options below.
671 Fine tuning of the installation directories:
672 --bindir=DIR user executables [EPREFIX/bin]
673 --sbindir=DIR system admin executables [EPREFIX/sbin]
674 --libexecdir=DIR program executables [EPREFIX/libexec]
675 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
676 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
677 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
678 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
679 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
680 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
681 --libdir=DIR object code libraries [EPREFIX/lib]
682 --includedir=DIR C header files [PREFIX/include]
683 --oldincludedir=DIR C header files for non-gcc [/usr/include]
684 --infodir=DIR info documentation [DATAROOTDIR/info]
685 --mandir=DIR man documentation [DATAROOTDIR/man]
691 --program-prefix=PREFIX prepend PREFIX to installed program names
692 --program-suffix=SUFFIX append SUFFIX to installed program names
693 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
696 --build=BUILD configure for building on BUILD [guessed]
697 --host=HOST build programs to run on HOST [BUILD]
698 --target=TARGET configure for building compilers for TARGET [HOST]
702 if test -n "$ac_init_help"; then
707 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
708 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
714 --with-rel-version=XXX override derived release version
715 --with-abi-version=XXX override derived ABI version
716 --with-system-type=XXX test: override derived host system-type
717 --without-ada suppress check for Ada compiler, don't build demo
718 --without-cxx do not adjust ncurses bool to match C++
719 --without-cxx-binding do not build C++ binding and demo
720 --disable-db-install suppress install of terminal database
721 --without-manpages suppress install of manpages
722 --without-progs suppress build/install with programs (e.g., tic)
723 --without-tack suppress build/install with tack program
724 --without-tests suppress build/install with test-programs
725 --without-curses-h install curses.h as ncurses.h only
726 --with-config-suffix=X suffixes ncursesXX-config file
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-pkg-config-libdir=XXX use given directory for installing pc-files
729 --enable-pc-files generate and install .pc files for pkg-config
730 --with-pc-suffix suffixes pc-files
731 --enable-mixed-case tic should assume mixed-case filenames
732 --with-install-prefix prefixes actual install-location ($DESTDIR)
733 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
734 --with-build-cc=XXX the build C compiler ($BUILD_CC)
735 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
736 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
737 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
738 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
739 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
740 Options to Specify the Libraries Built/Used:
741 --disable-libtool-version enable to use libtool's incompatible naming scheme
742 --with-libtool generate libraries with libtool
743 --with-shared generate shared-libraries
744 --with-normal generate normal-libraries (default)
745 --with-debug generate debug-libraries (default)
746 --with-profile generate profile-libraries
747 --with-cxx-shared generate C++ shared-libraries
748 --with-lib-prefix override library-prefix
749 --with-termlib generate separate terminfo library
750 --with-ticlib generate separate tic library
751 --enable-rpath use rpath option when generating shared libraries
752 --disable-relink relink shared libraries during install
753 --with-shlib-version=X Specify rel or abi version for shared libs
754 --with-libtool-opts=XXX specify additional libtool options
755 --with-export-syms=XXX limit exported symbols using libtool
756 --with-versioned-syms=X markup versioned symbols using ld
757 --with-gpm use Alessandro Rubini's GPM library
758 --without-dlsym do not use dlsym() to load GPM dynamically
759 --with-pcre2 use PCRE2 for regular-expressions
760 --with-sysmouse use sysmouse (FreeBSD console)
761 --disable-lib-suffixes disable library suffixes
762 --disable-rpath-hack don't add rpath options for additional libraries
763 Fine-Tuning Your Configuration:
764 --with-extra-suffix=X append extra suffix to header/library paths
765 --disable-overwrite put headers in subdir, omit link to -lcurses
766 --disable-database do not use terminfo, only fallbacks/termcap
767 --with-database=XXX specify terminfo source to install
768 --with-hashed-db specify hashed-database library
769 --with-fallbacks=XXX specify list of fallback terminal descriptions
770 --with-tic-path=XXX specify path of tic for fallbacks
771 --with-infocmp-path=XXX specify path of infocmp for fallbacks
772 --without-xterm-new specify if xterm terminfo should be old version
773 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
774 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
775 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
776 --disable-big-core assume machine has little memory
777 --disable-big-strings assume compiler has only standard-size strings
778 --enable-termcap compile in termcap fallback support
779 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
780 --enable-getcap fast termcap load, no xrefs to terminfo
781 --enable-getcap-cache cache translated termcaps in ~/.terminfo
782 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
783 --disable-root-environ restrict environment when running as root
784 --enable-symlinks make tic use symbolic links not hard links
785 --enable-broken_linker compile with broken-linker support code
786 --enable-bsdpad recognize BSD-style prefix padding
787 --enable-widec compile with wide-char/UTF-8 code
788 --disable-lp64 allow chtype to be long (ignore _LP64)
789 --disable-largefile omit support for large files
790 --disable-tparm-varargs compile tparm() without varargs interface
791 --disable-tic-depends link tic library without explicit dependency on ncurses library
792 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
793 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
794 --with-bool=TYPE override fallback type of bool variable
795 --with-caps=alt compile with alternate Caps file
796 --with-chtype=TYPE override type of chtype
797 --with-ospeed=TYPE override type of ospeed variable
798 --with-mmask-t=TYPE override type of mmask_t
799 --with-ccharw-max=XXX override size CCHARW_MAX
800 --enable-signed-char compile using signed Boolean's in term.h
801 --with-tparm-arg=TYPE override parameter type of tparm
802 --with-rcs-ids compile-in RCS identifiers
803 Options to Specify How Manpages are Installed:
804 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
805 optionally formatted/catonly, e.g., gzip,formatted
806 --with-manpage-renames specify manpage-renaming
807 --with-manpage-aliases specify manpage-aliases using .so
808 --with-manpage-symlinks specify manpage-aliases using symlinks
809 --with-manpage-tbl specify manpage processing with tbl
811 --disable-ext-funcs disable function-extensions
812 --enable-sp-funcs enable SCREEN-extensions
813 --enable-term-driver enable terminal-driver
814 --enable-const compile with extra/non-standard const
815 --enable-ext-colors compile for 256-color support
816 --enable-ext-mouse compile for extended mouse-encoding
817 --enable-ext-putwin compile with extended putwin/screendump
818 --enable-no-padding compile with $NCURSES_NO_PADDING code
819 --enable-sigwinch compile with SIGWINCH handler
820 --enable-tcap-names compile with user-definable terminal capabilities
822 --with-pthread use POSIX thread library
823 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
824 --enable-weak-symbols enable weak-symbols for pthreads
825 --enable-reentrant compile with reentrant code
826 --enable-opaque-curses make curses WINDOW, etc., "opaque"
827 --enable-opaque-form make form-library structures "opaque"
828 --enable-opaque-menu make menu-library structures "opaque"
829 --enable-opaque-panel make panel-library structures "opaque"
830 --with-wrap-prefix=XXX override prefix used for public variables
832 --without-develop disable development options
833 --enable-hard-tabs compile with hard-tabs code
834 --enable-xmc-glitch compile with support for xmc (magic-cookie)
836 --disable-assumed-color do not assume anything about default-colors
837 --disable-hashmap compile without hashmap scrolling-optimization
838 --enable-colorfgbg compile-in experimental $COLORFGBG code
839 --enable-interop compile-in interop bindings
840 --enable-safe-sprintf compile with experimental safe-sprintf code
841 --disable-scroll-hints compile without scroll-hints code
842 --enable-wgetch-events compile with wgetch-events code
843 Testing/development Options:
844 --disable-echo do not display "compiling" commands
845 --disable-stripping do not strip (debug info) installed executables
846 --enable-warnings build: turn on GCC compiler warnings
847 --enable-string-hacks work around bogus compiler/loader warnings
848 --enable-assertions test: turn on generation of assertion code
849 --with-dmalloc test: use Gray Watson's dmalloc library
850 --with-dbmalloc test: use Conor Cahill's dbmalloc library
851 --with-valgrind test: use valgrind
852 --disable-leaks test: free permanent memory, analyze leaks
853 --enable-expanded test: generate functions for certain macros
854 --disable-macros test: use functions rather than macros
855 --with-trace test: add trace() function to all models of ncurses
856 --disable-gnat-projects test: disable GNAT projects even if usable
858 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
859 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
860 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
861 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
862 --with-ada-libname=XXX override default Ada library-name
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 CXXCPP C++ preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
885 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
887 # A "../" for each directory in /$ac_subdir.
888 ac_dots=`echo $ac_subdir |
889 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
892 .) # No --srcdir option. We are building in place.
893 ac_sub_srcdir=$srcdir ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_sub_srcdir=$srcdir/$ac_subdir ;;
897 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_sub_srcdir/configure.gnu; then
903 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_sub_srcdir/configure; then
906 $SHELL $ac_sub_srcdir/configure --help=recursive
907 elif test -f $ac_sub_srcdir/configure.ac ||
908 test -f $ac_sub_srcdir/configure.in; then
912 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
922 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
923 Free Software Foundation, Inc.
924 This configure script is free software; the Free Software Foundation
925 gives unlimited permission to copy, distribute and modify it.
931 This file contains any messages produced by compilers while
932 running configure, to aid debugging if configure makes a mistake.
934 It was created by $as_me, which was
935 generated by GNU Autoconf 2.52.20190901. Invocation command line was
946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
953 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
955 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
956 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
958 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
959 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
960 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
961 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975 # Keep a trace of the command line.
976 # Strip out --no-create and --no-recursion so they do not pile up.
977 # Also quote any args containing shell meta-characters.
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c) ;;
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
987 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
988 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
989 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
991 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
994 # Get rid of the leading space.
997 # When interrupted or exit'd, cleanup temporary files, and complete
998 # config.log. We remove comments because anyway the quotes in there
999 # would cause problems or look ugly.
1000 trap 'exit_status=$?
1001 # Save into config.log some information that might help in debugging.
1003 echo "## ----------------- ##" >&5
1004 echo "## Cache variables. ##" >&5
1005 echo "## ----------------- ##" >&5
1007 # The following way of writing the cache mishandles newlines in values,
1010 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1013 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1018 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1022 sed "/^$/d" confdefs.h >conftest.log
1023 if test -s conftest.log; then
1025 echo "## ------------ ##" >&5
1026 echo "## confdefs.h. ##" >&5
1027 echo "## ------------ ##" >&5
1029 cat conftest.log >&5
1032 test "$ac_signal" != 0 &&
1033 echo "$as_me: caught signal $ac_signal" >&5
1034 echo "$as_me: exit $exit_status" >&5
1035 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1038 for ac_signal in 1 2 13 15; do
1039 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1044 rm -rf conftest* confdefs.h
1045 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1048 # Let the site file select an alternate cache file if it wants to.
1049 # Prefer explicitly selected file to automatically selected ones.
1050 if test -z "$CONFIG_SITE"; then
1051 if test "x$prefix" != xNONE; then
1052 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1054 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1057 for ac_site_file in $CONFIG_SITE; do
1058 if test -r "$ac_site_file"; then
1059 { echo "$as_me:1059: loading site script $ac_site_file" >&5
1060 echo "$as_me: loading site script $ac_site_file" >&6;}
1061 cat "$ac_site_file" >&5
1066 if test -r "$cache_file"; then
1067 # Some versions of bash will fail to source /dev/null (special
1068 # files actually), so we avoid doing that.
1069 if test -f "$cache_file"; then
1070 { echo "$as_me:1070: loading cache $cache_file" >&5
1071 echo "$as_me: loading cache $cache_file" >&6;}
1073 [\\/]* | ?:[\\/]* ) . $cache_file;;
1074 *) . ./$cache_file;;
1078 { echo "$as_me:1078: creating cache $cache_file" >&5
1079 echo "$as_me: creating cache $cache_file" >&6;}
1083 # Check that the precious variables saved in the cache have kept the same
1085 ac_cache_corrupted=false
1086 for ac_var in `(set) 2>&1 |
1087 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1089 eval ac_new_set=\$ac_env_${ac_var}_set
1090 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1091 eval ac_new_val="\$ac_env_${ac_var}_value"
1092 case $ac_old_set,$ac_new_set in
1094 { echo "$as_me:1094: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1095 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1096 ac_cache_corrupted=: ;;
1098 { echo "$as_me:1098: error: \`$ac_var' was not set in the previous run" >&5
1099 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1100 ac_cache_corrupted=: ;;
1103 if test "x$ac_old_val" != "x$ac_new_val"; then
1104 { echo "$as_me:1104: error: \`$ac_var' has changed since the previous run:" >&5
1105 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1106 { echo "$as_me:1106: former value: $ac_old_val" >&5
1107 echo "$as_me: former value: $ac_old_val" >&2;}
1108 { echo "$as_me:1108: current value: $ac_new_val" >&5
1109 echo "$as_me: current value: $ac_new_val" >&2;}
1110 ac_cache_corrupted=:
1113 # Pass precious variables to config.status. It doesn't matter if
1114 # we pass some twice (in addition to the command line arguments).
1115 if test "$ac_new_set" = set; then
1117 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1118 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1119 ac_configure_args="$ac_configure_args '$ac_arg'"
1121 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1126 if $ac_cache_corrupted; then
1127 { echo "$as_me:1127: error: changes in the environment can compromise the build" >&5
1128 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1129 { { echo "$as_me:1129: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1130 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1131 { (exit 1); exit 1; }; }
1135 ac_cpp='$CPP $CPPFLAGS'
1136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1139 ac_main_return=return
1141 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1142 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1144 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1145 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1147 echo "#! $SHELL" >conftest.sh
1148 echo "exit 0" >>conftest.sh
1149 chmod +x conftest.sh
1150 if { (echo "$as_me:1150: PATH=\".;.\"; conftest.sh") >&5
1151 (PATH=".;."; conftest.sh) 2>&5
1153 echo "$as_me:1153: \$? = $ac_status" >&5
1154 (exit $ac_status); }; then
1155 ac_path_separator=';'
1159 PATH_SEPARATOR="$ac_path_separator"
1162 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1166 echo "$as_me:1166: checking for egrep" >&5
1167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1168 if test "${ac_cv_prog_egrep+set}" = set; then
1169 echo $ECHO_N "(cached) $ECHO_C" >&6
1171 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1172 then ac_cv_prog_egrep='grep -E'
1173 else ac_cv_prog_egrep='egrep'
1176 echo "$as_me:1176: result: $ac_cv_prog_egrep" >&5
1177 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1178 EGREP=$ac_cv_prog_egrep
1180 test -z "$EGREP" && { { echo "$as_me:1180: error: No egrep program found" >&5
1181 echo "$as_me: error: No egrep program found" >&2;}
1182 { (exit 1); exit 1; }; }
1184 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1185 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1186 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1187 cf_cv_abi_version=${NCURSES_MAJOR}
1188 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1189 cf_cv_timestamp=`date`
1190 echo "$as_me:1190: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1191 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1193 if test -f $srcdir/VERSION ; then
1194 echo "$as_me:1194: checking for package version" >&5
1195 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1197 # if there are not enough fields, cut returns the last one...
1198 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1199 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1200 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1202 # this is how CF_BUNDLED_INTL uses $VERSION:
1203 VERSION="$cf_field1"
1205 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1206 test -z "$VERSION_MAJOR" && { { echo "$as_me:1206: error: missing major-version" >&5
1207 echo "$as_me: error: missing major-version" >&2;}
1208 { (exit 1); exit 1; }; }
1210 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1211 test -z "$VERSION_MINOR" && { { echo "$as_me:1211: error: missing minor-version" >&5
1212 echo "$as_me: error: missing minor-version" >&2;}
1213 { (exit 1); exit 1; }; }
1215 echo "$as_me:1215: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1216 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1218 echo "$as_me:1218: checking for package patch date" >&5
1219 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1220 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1221 case .$VERSION_PATCH in
1223 { { echo "$as_me:1223: error: missing patch-date $VERSION_PATCH" >&5
1224 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1225 { (exit 1); exit 1; }; }
1227 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1230 { { echo "$as_me:1230: error: illegal patch-date $VERSION_PATCH" >&5
1231 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1232 { (exit 1); exit 1; }; }
1235 echo "$as_me:1235: result: $VERSION_PATCH" >&5
1236 echo "${ECHO_T}$VERSION_PATCH" >&6
1238 { { echo "$as_me:1238: error: did not find $srcdir/VERSION" >&5
1239 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1240 { (exit 1); exit 1; }; }
1243 # show the actual data that we have for versions:
1244 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1246 echo "${as_me:-configure}:1246: testing ABI VERSION $VERSION ..." 1>&5
1248 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1250 echo "${as_me:-configure}:1250: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1252 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1254 echo "${as_me:-configure}:1254: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1256 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1258 echo "${as_me:-configure}:1258: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1263 cat >>confdefs.h <<EOF
1264 #define PACKAGE "$PACKAGE"
1267 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1269 cat >>confdefs.h <<EOF
1270 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1273 cat >>confdefs.h <<EOF
1274 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1277 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1279 # Check whether --with-rel-version or --without-rel-version was given.
1280 if test "${with_rel_version+set}" = set; then
1281 withval="$with_rel_version"
1282 { echo "$as_me:1282: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1283 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1284 cf_cv_rel_version=$withval
1287 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1288 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1290 if test -n "$NCURSES_MAJOR" ; then
1291 case $NCURSES_MAJOR in
1295 { { echo "$as_me:1295: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1296 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1297 { (exit 1); exit 1; }; }
1301 { { echo "$as_me:1301: error: Release major-version value is empty" >&5
1302 echo "$as_me: error: Release major-version value is empty" >&2;}
1303 { (exit 1); exit 1; }; }
1306 if test -n "$NCURSES_MINOR" ; then
1307 case $NCURSES_MINOR in
1311 { { echo "$as_me:1311: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1312 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1313 { (exit 1); exit 1; }; }
1317 { { echo "$as_me:1317: error: Release minor-version value is empty" >&5
1318 echo "$as_me: error: Release minor-version value is empty" >&2;}
1319 { (exit 1); exit 1; }; }
1322 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1324 # Check whether --with-abi-version or --without-abi-version was given.
1325 if test "${with_abi_version+set}" = set; then
1326 withval="$with_abi_version"
1328 if test "x$cf_cv_abi_version" != "x$withval"
1330 { echo "$as_me:1330: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1331 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1332 case $cf_cv_rel_version in
1334 cf_cv_rel_version=$withval.0
1337 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1341 cf_cv_abi_version=$withval
1344 if test -n "$cf_cv_abi_version" ; then
1345 case $cf_cv_abi_version in
1349 { { echo "$as_me:1349: error: ABI version is not a number: $cf_cv_abi_version" >&5
1350 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1351 { (exit 1); exit 1; }; }
1355 { { echo "$as_me:1355: error: ABI version value is empty" >&5
1356 echo "$as_me: error: ABI version value is empty" >&2;}
1357 { (exit 1); exit 1; }; }
1360 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1362 case $cf_cv_rel_version in
1364 cf_cv_rel_version=$with_abi_version.0
1370 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1371 if test -f $ac_dir/install-sh; then
1373 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 elif test -f $ac_dir/install.sh; then
1377 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 elif test -f $ac_dir/shtool; then
1381 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 if test -z "$ac_aux_dir"; then
1386 { { echo "$as_me:1386: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1387 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1388 { (exit 1); exit 1; }; }
1390 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1391 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1392 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394 # Make sure we can run config.sub.
1395 $ac_config_sub sun4 >/dev/null 2>&1 ||
1396 { { echo "$as_me:1396: error: cannot run $ac_config_sub" >&5
1397 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1398 { (exit 1); exit 1; }; }
1400 echo "$as_me:1400: checking build system type" >&5
1401 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1402 if test "${ac_cv_build+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_build_alias=$build_alias
1406 test -z "$ac_cv_build_alias" &&
1407 ac_cv_build_alias=`$ac_config_guess`
1408 test -z "$ac_cv_build_alias" &&
1409 { { echo "$as_me:1409: error: cannot guess build type; you must specify one" >&5
1410 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1411 { (exit 1); exit 1; }; }
1412 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1413 { { echo "$as_me:1413: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1415 { (exit 1); exit 1; }; }
1418 echo "$as_me:1418: result: $ac_cv_build" >&5
1419 echo "${ECHO_T}$ac_cv_build" >&6
1421 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425 echo "$as_me:1425: checking host system type" >&5
1426 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427 if test "${ac_cv_host+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 ac_cv_host_alias=$host_alias
1431 test -z "$ac_cv_host_alias" &&
1432 ac_cv_host_alias=$ac_cv_build_alias
1433 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434 { { echo "$as_me:1434: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:1439: result: $ac_cv_host" >&5
1440 echo "${ECHO_T}$ac_cv_host" >&6
1442 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1447 echo "$as_me:1447: checking target system type" >&5
1448 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449 if test "${ac_cv_target+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_target_alias=$target_alias
1453 test "x$ac_cv_target_alias" = "x" &&
1454 ac_cv_target_alias=$ac_cv_host_alias
1455 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456 { { echo "$as_me:1456: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:1461: result: $ac_cv_target" >&5
1462 echo "${ECHO_T}$ac_cv_target" >&6
1463 target=$ac_cv_target
1464 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1468 # The aliases save the names the user supplied, while $host etc.
1469 # will get canonicalized.
1470 test -n "$target_alias" &&
1471 test "$program_prefix$program_suffix$program_transform_name" = \
1473 program_prefix=${target_alias}-
1474 system_name="$host_os"
1476 system_name="`(uname -s -r) 2>/dev/null`"
1477 if test -z "$system_name" ; then
1478 system_name="`(hostname) 2>/dev/null`"
1481 test -n "$system_name" &&
1482 cat >>confdefs.h <<EOF
1483 #define SYSTEM_NAME "$system_name"
1486 if test "${cf_cv_system_name+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 cf_cv_system_name="$system_name"
1492 test -z "$system_name" && system_name="$cf_cv_system_name"
1493 test -n "$cf_cv_system_name" && echo "$as_me:1493: result: Configuring for $cf_cv_system_name" >&5
1494 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1496 if test ".$system_name" != ".$cf_cv_system_name" ; then
1497 echo "$as_me:1497: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1498 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1499 { { echo "$as_me:1499: error: \"Please remove config.cache and try again.\"" >&5
1500 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1501 { (exit 1); exit 1; }; }
1504 # Check whether --with-system-type or --without-system-type was given.
1505 if test "${with_system_type+set}" = set; then
1506 withval="$with_system_type"
1507 { echo "$as_me:1507: WARNING: overriding system type to $withval" >&5
1508 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1509 cf_cv_system_name=$withval
1514 ### Save the given $CFLAGS to allow user-override.
1515 cf_user_CFLAGS="$CFLAGS"
1517 ### Default install-location
1519 echo "$as_me:1519: checking for prefix" >&5
1520 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1521 if test "x$prefix" = "xNONE" ; then
1522 case "$cf_cv_system_name" in
1523 # non-vendor systems don't have a conflict
1524 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1527 (*) prefix=$ac_default_prefix
1531 echo "$as_me:1531: result: $prefix" >&5
1532 echo "${ECHO_T}$prefix" >&6
1534 if test "x$prefix" = "xNONE" ; then
1535 echo "$as_me:1535: checking for default include-directory" >&5
1536 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1537 test -n "$verbose" && echo 1>&6
1540 $includedir/ncurses \
1542 $prefix/include/ncurses \
1543 /usr/local/include \
1544 /usr/local/include/ncurses \
1546 /usr/include/ncurses
1548 cf_dir=`eval echo $cf_symbol`
1549 if test -f $cf_dir/curses.h ; then
1550 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1551 includedir="$cf_symbol"
1552 test -n "$verbose" && echo $ac_n " found " 1>&6
1556 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1558 echo "$as_me:1558: result: $includedir" >&5
1559 echo "${ECHO_T}$includedir" >&6
1562 ### Defaults for ncurses ABI
1564 case x$cf_cv_abi_version in
1566 cf_dft_ext_colors=yes
1567 cf_dft_ext_const=yes
1568 cf_dft_ext_mouse=yes
1569 cf_dft_ext_putwin=yes
1570 cf_dft_ext_spfuncs=yes
1571 cf_dft_filter_syms=yes
1572 cf_dft_chtype=uint32_t
1573 cf_dft_mmask_t=uint32_t
1575 cf_dft_tparm_arg=intptr_t
1576 cf_dft_with_lp64=yes
1579 cf_dft_ext_colors=no
1582 cf_dft_ext_putwin=no
1583 cf_dft_ext_spfuncs=no
1584 cf_dft_filter_syms=no
1588 cf_dft_tparm_arg=long
1593 ### Checks for programs.
1595 # Check whether --with-ada or --without-ada was given.
1596 if test "${with_ada+set}" = set; then
1598 cf_with_ada=$withval
1603 if test "x$cf_with_ada" = xyes
1605 cf_prog_cc="gnatgcc gcc cc"
1611 ac_cpp='$CPP $CPPFLAGS'
1612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1615 ac_main_return=return
1616 if test -n "$ac_tool_prefix"; then
1617 for ac_prog in $cf_prog_cc
1619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1621 echo "$as_me:1621: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 ac_save_IFS=$IFS; IFS=$ac_path_separator
1631 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 $as_executable_p "$ac_dir/$ac_word" || continue
1635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636 echo "$as_me:1636: found $ac_dir/$ac_word" >&5
1643 if test -n "$CC"; then
1644 echo "$as_me:1644: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:1647: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1651 test -n "$CC" && break
1654 if test -z "$CC"; then
1656 for ac_prog in $cf_prog_cc
1658 # Extract the first word of "$ac_prog", so it can be a program name with args.
1659 set dummy $ac_prog; ac_word=$2
1660 echo "$as_me:1660: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 ac_save_IFS=$IFS; IFS=$ac_path_separator
1670 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 $as_executable_p "$ac_dir/$ac_word" || continue
1674 ac_cv_prog_ac_ct_CC="$ac_prog"
1675 echo "$as_me:1675: found $ac_dir/$ac_word" >&5
1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682 if test -n "$ac_ct_CC"; then
1683 echo "$as_me:1683: result: $ac_ct_CC" >&5
1684 echo "${ECHO_T}$ac_ct_CC" >&6
1686 echo "$as_me:1686: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$ac_ct_CC" && break
1696 test -z "$CC" && { { echo "$as_me:1696: error: no acceptable cc found in \$PATH" >&5
1697 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1698 { (exit 1); exit 1; }; }
1700 # Provide some information about the compiler.
1701 echo "$as_me:1701:" \
1702 "checking for C compiler version" >&5
1703 ac_compiler=`set X $ac_compile; echo $2`
1704 { (eval echo "$as_me:1704: \"$ac_compiler --version </dev/null >&5\"") >&5
1705 (eval $ac_compiler --version </dev/null >&5) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:1709: \"$ac_compiler -v </dev/null >&5\"") >&5
1710 (eval $ac_compiler -v </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714 { (eval echo "$as_me:1714: \"$ac_compiler -V </dev/null >&5\"") >&5
1715 (eval $ac_compiler -V </dev/null >&5) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line 1721 "configure"
1722 #include "confdefs.h"
1732 ac_clean_files_save=$ac_clean_files
1733 ac_clean_files="$ac_clean_files a.out a.exe"
1734 # Try to create an executable without -o first, disregard a.out.
1735 # It will help us diagnose broken compilers, and finding out an intuition
1737 echo "$as_me:1737: checking for C compiler default output" >&5
1738 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1739 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1740 if { (eval echo "$as_me:1740: \"$ac_link_default\"") >&5
1741 (eval $ac_link_default) 2>&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # Find the output, starting from the most likely. This scheme is
1746 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1749 ls a.out conftest 2>/dev/null;
1750 ls a.* conftest.* 2>/dev/null`; do
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1753 a.out ) # We found the default executable, but exeext='' is most
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1764 echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 { { echo "$as_me:1766: error: C compiler cannot create executables" >&5
1767 echo "$as_me: error: C compiler cannot create executables" >&2;}
1768 { (exit 77); exit 77; }; }
1771 ac_exeext=$ac_cv_exeext
1772 echo "$as_me:1772: result: $ac_file" >&5
1773 echo "${ECHO_T}$ac_file" >&6
1775 # Check the compiler produces executables we can run. If not, either
1776 # the compiler is broken, or we cross compile.
1777 echo "$as_me:1777: checking whether the C compiler works" >&5
1778 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1779 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1780 # If not cross compiling, check that we can run a simple program.
1781 if test "$cross_compiling" != yes; then
1782 if { ac_try='./$ac_file'
1783 { (eval echo "$as_me:1783: \"$ac_try\"") >&5
1786 echo "$as_me:1786: \$? = $ac_status" >&5
1787 (exit $ac_status); }; }; then
1790 if test "$cross_compiling" = maybe; then
1793 { { echo "$as_me:1793: error: cannot run C compiled programs.
1794 If you meant to cross compile, use \`--host'." >&5
1795 echo "$as_me: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&2;}
1797 { (exit 1); exit 1; }; }
1801 echo "$as_me:1801: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1804 rm -f a.out a.exe conftest$ac_cv_exeext
1805 ac_clean_files=$ac_clean_files_save
1806 # Check the compiler produces executables we can run. If not, either
1807 # the compiler is broken, or we cross compile.
1808 echo "$as_me:1808: checking whether we are cross compiling" >&5
1809 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1810 echo "$as_me:1810: result: $cross_compiling" >&5
1811 echo "${ECHO_T}$cross_compiling" >&6
1813 echo "$as_me:1813: checking for executable suffix" >&5
1814 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1815 if { (eval echo "$as_me:1815: \"$ac_link\"") >&5
1816 (eval $ac_link) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1821 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1822 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 { { echo "$as_me:1834: error: cannot compute EXEEXT: cannot compile and link" >&5
1835 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1836 { (exit 1); exit 1; }; }
1839 rm -f conftest$ac_cv_exeext
1840 echo "$as_me:1840: result: $ac_cv_exeext" >&5
1841 echo "${ECHO_T}$ac_cv_exeext" >&6
1843 rm -f conftest.$ac_ext
1844 EXEEXT=$ac_cv_exeext
1846 echo "$as_me:1846: checking for object suffix" >&5
1847 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1848 if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:1864: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:1867: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 { { echo "$as_me:1879: error: cannot compute OBJEXT: cannot compile" >&5
1880 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1881 { (exit 1); exit 1; }; }
1884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886 echo "$as_me:1886: result: $ac_cv_objext" >&5
1887 echo "${ECHO_T}$ac_cv_objext" >&6
1888 OBJEXT=$ac_cv_objext
1890 echo "$as_me:1890: checking whether we are using the GNU C compiler" >&5
1891 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 cat >conftest.$ac_ext <<_ACEOF
1896 #line 1896 "configure"
1897 #include "confdefs.h"
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1932 echo "$as_me:1932: result: $ac_cv_c_compiler_gnu" >&5
1933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1934 GCC=`test $ac_compiler_gnu = yes && echo yes`
1935 ac_test_CFLAGS=${CFLAGS+set}
1936 ac_save_CFLAGS=$CFLAGS
1938 echo "$as_me:1938: checking whether $CC accepts -g" >&5
1939 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1940 if test "${ac_cv_prog_cc_g+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line 1944 "configure"
1945 #include "confdefs.h"
1955 rm -f conftest.$ac_objext
1956 if { (eval echo "$as_me:1956: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); } &&
1961 { ac_try='test -s conftest.$ac_objext'
1962 { (eval echo "$as_me:1962: \"$ac_try\"") >&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1969 echo "$as_me: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1973 rm -f conftest.$ac_objext conftest.$ac_ext
1975 echo "$as_me:1975: result: $ac_cv_prog_cc_g" >&5
1976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1977 if test "$ac_test_CFLAGS" = set; then
1978 CFLAGS=$ac_save_CFLAGS
1979 elif test $ac_cv_prog_cc_g = yes; then
1980 if test "$GCC" = yes; then
1986 if test "$GCC" = yes; then
1992 # Some people use a C++ compiler to compile C. Since we use `exit',
1993 # in C++ we need to declare it. In case someone uses the same compiler
1994 # for both compiling C and C++ we need to have the C++ compiler decide
1995 # the declaration of exit, since it's the most demanding environment.
1996 cat >conftest.$ac_ext <<_ACEOF
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2005 echo "$as_me:2005: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 for ac_declaration in \
2015 '#include <stdlib.h>' \
2016 'extern "C" void std::exit (int) throw (); using std::exit;' \
2017 'extern "C" void std::exit (int); using std::exit;' \
2018 'extern "C" void exit (int) throw ();' \
2019 'extern "C" void exit (int);' \
2022 cat >conftest.$ac_ext <<_ACEOF
2023 #line 2023 "configure"
2024 #include "confdefs.h"
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:2036: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:2039: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:2042: \"$ac_try\"") >&5
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 rm -f conftest.$ac_objext conftest.$ac_ext
2086 if test -n "$ac_declaration"; then
2087 echo '#ifdef __cplusplus' >>confdefs.h
2088 echo $ac_declaration >>confdefs.h
2089 echo '#endif' >>confdefs.h
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102 ac_main_return=return
2105 if test "$GCC" = yes ; then
2106 echo "$as_me:2106: checking version of $CC" >&5
2107 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2108 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.].*//'`"
2109 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2110 echo "$as_me:2110: result: $GCC_VERSION" >&5
2111 echo "${ECHO_T}$GCC_VERSION" >&6
2116 if test "$GCC" = yes ; then
2119 echo "$as_me:2119: checking if this is really Intel C compiler" >&5
2120 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2121 cf_save_CFLAGS="$CFLAGS"
2122 CFLAGS="$CFLAGS -no-gcc"
2123 cat >conftest.$ac_ext <<_ACEOF
2124 #line 2124 "configure"
2125 #include "confdefs.h"
2131 #ifdef __INTEL_COMPILER
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:2141: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:2144: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -s conftest.$ac_objext'
2147 { (eval echo "$as_me:2147: \"$ac_try\"") >&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); }; }; then
2153 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2156 echo "$as_me: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2159 rm -f conftest.$ac_objext conftest.$ac_ext
2160 CFLAGS="$cf_save_CFLAGS"
2161 echo "$as_me:2161: result: $INTEL_COMPILER" >&5
2162 echo "${ECHO_T}$INTEL_COMPILER" >&6
2169 if test "$GCC" = yes ; then
2170 echo "$as_me:2170: checking if this is really Clang C compiler" >&5
2171 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2172 cf_save_CFLAGS="$CFLAGS"
2173 CFLAGS="$CFLAGS -Qunused-arguments"
2174 cat >conftest.$ac_ext <<_ACEOF
2175 #line 2175 "configure"
2176 #include "confdefs.h"
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2195 echo "$as_me:2195: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:2198: \"$ac_try\"") >&5
2201 echo "$as_me:2201: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2204 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
2207 echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2210 rm -f conftest.$ac_objext conftest.$ac_ext
2211 CFLAGS="$cf_save_CFLAGS"
2212 echo "$as_me:2212: result: $CLANG_COMPILER" >&5
2213 echo "${ECHO_T}$CLANG_COMPILER" >&6
2216 echo "$as_me:2216: checking for $CC option to accept ANSI C" >&5
2217 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 ac_cv_prog_cc_stdc=no
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line 2224 "configure"
2225 #include "confdefs.h"
2228 #include <sys/types.h>
2229 #include <sys/stat.h>
2230 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2231 struct buf { int x; };
2232 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2233 static char *e (p, i)
2239 static char *f (char * (*g) (char **, int), char **p, ...)
2244 s = g (p, va_arg (v,int));
2248 int test (int i, double x);
2249 struct s1 {int (*f) (int a);};
2250 struct s2 {int (*f) (double a);};
2251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2262 # Don't try gcc -ansi; that turns off useful extensions and
2263 # breaks some systems' header files.
2264 # AIX -qlanglvl=ansi
2265 # Ultrix and OSF/1 -std1
2266 # HP-UX 10.20 and later -Ae
2267 # HP-UX older versions -Aa -D_HPUX_SOURCE
2268 # SVR4 -Xc -D__EXTENSIONS__
2269 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2271 CC="$ac_save_CC $ac_arg"
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:2273: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:2276: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:2279: \"$ac_try\"") >&5
2282 echo "$as_me:2282: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 ac_cv_prog_cc_stdc=$ac_arg
2287 echo "$as_me: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 rm -f conftest.$ac_objext
2292 rm -f conftest.$ac_ext conftest.$ac_objext
2297 case "x$ac_cv_prog_cc_stdc" in
2299 echo "$as_me:2299: result: none needed" >&5
2300 echo "${ECHO_T}none needed" >&6 ;;
2302 echo "$as_me:2302: result: $ac_cv_prog_cc_stdc" >&5
2303 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2304 CC="$CC $ac_cv_prog_cc_stdc" ;;
2307 # This should have been defined by AC_PROG_CC
2310 echo "$as_me:2310: checking \$CFLAGS variable" >&5
2311 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2314 echo "$as_me:2314: result: broken" >&5
2315 echo "${ECHO_T}broken" >&6
2316 { echo "$as_me:2316: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2317 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2320 for cf_arg in $cf_flags
2326 cf_new_extra_cppflags=
2328 for cf_add_cflags in $cf_arg
2330 case $cf_fix_cppflags in
2332 case $cf_add_cflags in
2333 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2334 case $cf_add_cflags in
2336 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2338 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2339 && test -z "${cf_tst_cflags}" \
2340 && cf_fix_cppflags=yes
2342 if test $cf_fix_cppflags = yes ; then
2344 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2345 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2348 elif test "${cf_tst_cflags}" = "\"'" ; then
2350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2361 case $cf_add_cflags in
2363 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2365 CPPFLAGS=`echo "$CPPFLAGS" | \
2366 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2367 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2372 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2373 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2380 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2381 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2388 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2391 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2393 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2394 && test -z "${cf_tst_cflags}" \
2395 && cf_fix_cppflags=no
2400 if test -n "$cf_new_cflags" ; then
2402 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2403 CFLAGS="${CFLAGS}$cf_new_cflags"
2407 if test -n "$cf_new_cppflags" ; then
2409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2410 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2414 if test -n "$cf_new_extra_cppflags" ; then
2416 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2417 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2424 echo "$as_me:2424: result: ok" >&5
2425 echo "${ECHO_T}ok" >&6
2429 echo "$as_me:2429: checking \$CC variable" >&5
2430 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2433 echo "$as_me:2433: result: broken" >&5
2434 echo "${ECHO_T}broken" >&6
2435 { echo "$as_me:2435: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2436 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2438 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2439 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2441 for cf_arg in $cf_flags
2449 cf_new_extra_cppflags=
2451 for cf_add_cflags in $cf_arg
2453 case $cf_fix_cppflags in
2455 case $cf_add_cflags in
2456 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2457 case $cf_add_cflags in
2459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2461 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2462 && test -z "${cf_tst_cflags}" \
2463 && cf_fix_cppflags=yes
2465 if test $cf_fix_cppflags = yes ; then
2467 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2468 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2471 elif test "${cf_tst_cflags}" = "\"'" ; then
2473 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2474 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2484 case $cf_add_cflags in
2486 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2488 CPPFLAGS=`echo "$CPPFLAGS" | \
2489 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2490 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2495 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2496 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2503 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2504 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2511 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2512 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2514 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2516 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2517 && test -z "${cf_tst_cflags}" \
2518 && cf_fix_cppflags=no
2523 if test -n "$cf_new_cflags" ; then
2525 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2526 CFLAGS="${CFLAGS}$cf_new_cflags"
2530 if test -n "$cf_new_cppflags" ; then
2532 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2533 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2537 if test -n "$cf_new_extra_cppflags" ; then
2539 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2540 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2550 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2552 echo "${as_me:-configure}:2552: testing resulting CC: '$CC' ..." 1>&5
2554 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2556 echo "${as_me:-configure}:2556: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2558 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2560 echo "${as_me:-configure}:2560: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2564 echo "$as_me:2564: result: ok" >&5
2565 echo "${ECHO_T}ok" >&6
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 ac_main_return=return
2575 echo "$as_me:2575: checking how to run the C preprocessor" >&5
2576 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2577 # On Suns, sometimes $CPP names a directory.
2578 if test -n "$CPP" && test -d "$CPP"; then
2581 if test -z "$CPP"; then
2582 if test "${ac_cv_prog_CPP+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 # Double quotes because CPP needs to be expanded
2586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2589 for ac_c_preproc_warn_flag in '' yes
2591 # Use a header file that comes with gcc, so configuring glibc
2592 # with a fresh cross-compiler works.
2593 # On the NeXT, cc -E runs the code through the compiler's parser,
2594 # not just through cpp. "Syntax error" is here to catch this case.
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #line 2596 "configure"
2597 #include "confdefs.h"
2601 if { (eval echo "$as_me:2601: \"$ac_cpp conftest.$ac_ext\"") >&5
2602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604 egrep -v '^ *\+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:2607: \$? = $ac_status" >&5
2608 (exit $ac_status); } >/dev/null; then
2609 if test -s conftest.err; then
2610 ac_cpp_err=$ac_c_preproc_warn_flag
2617 if test -z "$ac_cpp_err"; then
2620 echo "$as_me: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 # Broken: fails on valid input.
2625 rm -f conftest.err conftest.$ac_ext
2627 # OK, works on sane cases. Now check whether non-existent headers
2628 # can be detected and how.
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #line 2630 "configure"
2631 #include "confdefs.h"
2632 #include <ac_nonexistent.h>
2634 if { (eval echo "$as_me:2634: \"$ac_cpp conftest.$ac_ext\"") >&5
2635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2637 egrep -v '^ *\+' conftest.er1 >conftest.err
2639 cat conftest.err >&5
2640 echo "$as_me:2640: \$? = $ac_status" >&5
2641 (exit $ac_status); } >/dev/null; then
2642 if test -s conftest.err; then
2643 ac_cpp_err=$ac_c_preproc_warn_flag
2650 if test -z "$ac_cpp_err"; then
2651 # Broken: success on invalid input.
2654 echo "$as_me: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 # Passes both tests.
2660 rm -f conftest.err conftest.$ac_ext
2663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2664 rm -f conftest.err conftest.$ac_ext
2665 if $ac_preproc_ok; then
2677 echo "$as_me:2677: result: $CPP" >&5
2678 echo "${ECHO_T}$CPP" >&6
2680 for ac_c_preproc_warn_flag in '' yes
2682 # Use a header file that comes with gcc, so configuring glibc
2683 # with a fresh cross-compiler works.
2684 # On the NeXT, cc -E runs the code through the compiler's parser,
2685 # not just through cpp. "Syntax error" is here to catch this case.
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2692 if { (eval echo "$as_me:2692: \"$ac_cpp conftest.$ac_ext\"") >&5
2693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2695 egrep -v '^ *\+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:2698: \$? = $ac_status" >&5
2699 (exit $ac_status); } >/dev/null; then
2700 if test -s conftest.err; then
2701 ac_cpp_err=$ac_c_preproc_warn_flag
2708 if test -z "$ac_cpp_err"; then
2711 echo "$as_me: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2713 # Broken: fails on valid input.
2716 rm -f conftest.err conftest.$ac_ext
2718 # OK, works on sane cases. Now check whether non-existent headers
2719 # can be detected and how.
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line 2721 "configure"
2722 #include "confdefs.h"
2723 #include <ac_nonexistent.h>
2725 if { (eval echo "$as_me:2725: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2728 egrep -v '^ *\+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev/null; then
2733 if test -s conftest.err; then
2734 ac_cpp_err=$ac_c_preproc_warn_flag
2741 if test -z "$ac_cpp_err"; then
2742 # Broken: success on invalid input.
2745 echo "$as_me: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 # Passes both tests.
2751 rm -f conftest.err conftest.$ac_ext
2754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2755 rm -f conftest.err conftest.$ac_ext
2756 if $ac_preproc_ok; then
2759 { { echo "$as_me:2759: error: C preprocessor \"$CPP\" fails sanity check" >&5
2760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2761 { (exit 1); exit 1; }; }
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769 ac_main_return=return
2771 if test $ac_cv_c_compiler_gnu = yes; then
2772 echo "$as_me:2772: checking whether $CC needs -traditional" >&5
2773 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2774 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 ac_pattern="Autoconf.*'x'"
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line 2779 "configure"
2780 #include "confdefs.h"
2782 int Autoconf = TIOCGETP;
2784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2785 egrep "$ac_pattern" >/dev/null 2>&1; then
2786 ac_cv_prog_gcc_traditional=yes
2788 ac_cv_prog_gcc_traditional=no
2792 if test $ac_cv_prog_gcc_traditional = no; then
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line 2794 "configure"
2795 #include "confdefs.h"
2797 int Autoconf = TCGETA;
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800 egrep "$ac_pattern" >/dev/null 2>&1; then
2801 ac_cv_prog_gcc_traditional=yes
2807 echo "$as_me:2807: result: $ac_cv_prog_gcc_traditional" >&5
2808 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2809 if test $ac_cv_prog_gcc_traditional = yes; then
2810 CC="$CC -traditional"
2814 echo "$as_me:2814: checking whether $CC understands -c and -o together" >&5
2815 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2816 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat > conftest.$ac_ext <<CF_EOF
2823 ${cf_cv_main_return:-return}(0);
2826 # We do the test twice because some compilers refuse to overwrite an
2827 # existing .o file with -o, though they will create one.
2828 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2829 if { (eval echo "$as_me:2829: \"$ac_try\"") >&5
2832 echo "$as_me:2832: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 test -f conftest2.$ac_objext && { (eval echo "$as_me:2834: \"$ac_try\"") >&5
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); };
2840 eval cf_cv_prog_CC_c_o=yes
2842 eval cf_cv_prog_CC_c_o=no
2847 if test $cf_cv_prog_CC_c_o = yes; then
2848 echo "$as_me:2848: result: yes" >&5
2849 echo "${ECHO_T}yes" >&6
2851 echo "$as_me:2851: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2855 if test "$cross_compiling" = yes ; then
2858 case "$cf_cv_system_name" in
2859 (dragonfly*|mirbsd*|freebsd*)
2860 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2862 (*) LDPATH=$PATH:/sbin:/usr/sbin
2863 # Extract the first word of "ldconfig", so it can be a program name with args.
2864 set dummy ldconfig; ac_word=$2
2865 echo "$as_me:2865: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2875 ac_save_IFS=$IFS; IFS=$ac_path_separator
2877 for ac_dir in $ac_dummy; do
2879 test -z "$ac_dir" && ac_dir=.
2880 if $as_executable_p "$ac_dir/$ac_word"; then
2881 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2882 echo "$as_me:2882: found $ac_dir/$ac_word" >&5
2890 LDCONFIG=$ac_cv_path_LDCONFIG
2892 if test -n "$LDCONFIG"; then
2893 echo "$as_me:2893: result: $LDCONFIG" >&5
2894 echo "${ECHO_T}$LDCONFIG" >&6
2896 echo "$as_me:2896: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2904 echo "$as_me:2904: checking if you want to ensure bool is consistent with C++" >&5
2905 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2907 # Check whether --with-cxx or --without-cxx was given.
2908 if test "${with_cxx+set}" = set; then
2910 cf_with_cxx=$withval
2914 echo "$as_me:2914: result: $cf_with_cxx" >&5
2915 echo "${ECHO_T}$cf_with_cxx" >&6
2916 if test "X$cf_with_cxx" = Xno ; then
2920 # with autoconf 2.13, we can change the error to a warning:
2922 ac_cpp='$CXXCPP $CPPFLAGS'
2923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2926 ac_main_return=return
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932 echo "$as_me:2932: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_CXX+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 if test -n "$CXX"; then
2938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2940 ac_save_IFS=$IFS; IFS=$ac_path_separator
2942 for ac_dir in $ac_dummy; do
2944 test -z "$ac_dir" && ac_dir=.
2945 $as_executable_p "$ac_dir/$ac_word" || continue
2946 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2947 echo "$as_me:2947: found $ac_dir/$ac_word" >&5
2954 if test -n "$CXX"; then
2955 echo "$as_me:2955: result: $CXX" >&5
2956 echo "${ECHO_T}$CXX" >&6
2958 echo "$as_me:2958: result: no" >&5
2959 echo "${ECHO_T}no" >&6
2962 test -n "$CXX" && break
2965 if test -z "$CXX"; then
2967 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2969 # Extract the first word of "$ac_prog", so it can be a program name with args.
2970 set dummy $ac_prog; ac_word=$2
2971 echo "$as_me:2971: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$ac_ct_CXX"; then
2977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2979 ac_save_IFS=$IFS; IFS=$ac_path_separator
2981 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 $as_executable_p "$ac_dir/$ac_word" || continue
2985 ac_cv_prog_ac_ct_CXX="$ac_prog"
2986 echo "$as_me:2986: found $ac_dir/$ac_word" >&5
2992 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2993 if test -n "$ac_ct_CXX"; then
2994 echo "$as_me:2994: result: $ac_ct_CXX" >&5
2995 echo "${ECHO_T}$ac_ct_CXX" >&6
2997 echo "$as_me:2997: result: no" >&5
2998 echo "${ECHO_T}no" >&6
3001 test -n "$ac_ct_CXX" && break
3003 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3008 # Provide some information about the compiler.
3009 echo "$as_me:3009:" \
3010 "checking for C++ compiler version" >&5
3011 ac_compiler=`set X $ac_compile; echo $2`
3012 { (eval echo "$as_me:3012: \"$ac_compiler --version </dev/null >&5\"") >&5
3013 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 echo "$as_me:3015: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (eval echo "$as_me:3017: \"$ac_compiler -v </dev/null >&5\"") >&5
3018 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 echo "$as_me:3020: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3022 { (eval echo "$as_me:3022: \"$ac_compiler -V </dev/null >&5\"") >&5
3023 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 echo "$as_me:3025: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3028 echo "$as_me:3028: checking whether we are using the GNU C++ compiler" >&5
3029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3034 #line 3034 "configure"
3035 #include "confdefs.h"
3048 rm -f conftest.$ac_objext
3049 if { (eval echo "$as_me:3049: \"$ac_compile\"") >&5
3050 (eval $ac_compile) 2>&5
3052 echo "$as_me:3052: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:3055: \"$ac_try\"") >&5
3058 echo "$as_me:3058: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3062 echo "$as_me: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3066 rm -f conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3070 echo "$as_me:3070: result: $ac_cv_cxx_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3072 GXX=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CXXFLAGS=${CXXFLAGS+set}
3074 ac_save_CXXFLAGS=$CXXFLAGS
3076 echo "$as_me:3076: checking whether $CXX accepts -g" >&5
3077 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3078 if test "${ac_cv_prog_cxx_g+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat >conftest.$ac_ext <<_ACEOF
3082 #line 3082 "configure"
3083 #include "confdefs.h"
3093 rm -f conftest.$ac_objext
3094 if { (eval echo "$as_me:3094: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>&5
3097 echo "$as_me:3097: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:3100: \"$ac_try\"") >&5
3103 echo "$as_me:3103: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 ac_cv_prog_cxx_g=yes
3107 echo "$as_me: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3111 rm -f conftest.$ac_objext conftest.$ac_ext
3113 echo "$as_me:3113: result: $ac_cv_prog_cxx_g" >&5
3114 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3115 if test "$ac_test_CXXFLAGS" = set; then
3116 CXXFLAGS=$ac_save_CXXFLAGS
3117 elif test $ac_cv_prog_cxx_g = yes; then
3118 if test "$GXX" = yes; then
3124 if test "$GXX" = yes; then
3130 for ac_declaration in \
3132 '#include <stdlib.h>' \
3133 'extern "C" void std::exit (int) throw (); using std::exit;' \
3134 'extern "C" void std::exit (int); using std::exit;' \
3135 'extern "C" void exit (int) throw ();' \
3136 'extern "C" void exit (int);' \
3139 cat >conftest.$ac_ext <<_ACEOF
3140 #line 3140 "configure"
3141 #include "confdefs.h"
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:3153: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3156 echo "$as_me:3156: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:3159: \"$ac_try\"") >&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 echo "$as_me: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3170 rm -f conftest.$ac_objext conftest.$ac_ext
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line 3172 "configure"
3173 #include "confdefs.h"
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:3190: \"$ac_try\"") >&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3197 echo "$as_me: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 rm -f conftest.$ac_objext conftest.$ac_ext
3203 if test -n "$ac_declaration"; then
3204 echo '#ifdef __cplusplus' >>confdefs.h
3205 echo $ac_declaration >>confdefs.h
3206 echo '#endif' >>confdefs.h
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 ac_main_return=return
3217 ac_cpp='$CXXCPP $CPPFLAGS'
3218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3221 ac_main_return=return
3223 if test "x$cf_with_cxx" != xno
3225 # Several of the C++ configurations do not work, particularly when
3226 # cross-compiling (20140913 -TD)
3227 echo "$as_me:3227: checking if $CXX works" >&5
3228 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3230 save_CPPFLAGS="$CPPFLAGS"
3231 eval cf_includedir=${includedir}
3232 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3234 cat >conftest.$ac_ext <<_ACEOF
3235 #line 3235 "configure"
3236 #include "confdefs.h"
3245 printf("Hello world!\n")
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:3252: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>&5
3255 echo "$as_me:3255: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:3258: \"$ac_try\"") >&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3265 echo "$as_me: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3269 rm -f conftest.$ac_objext conftest.$ac_ext
3270 CPPFLAGS="$save_CPPFLAGS"
3272 echo "$as_me:3272: result: $cf_cxx_works" >&5
3273 echo "${ECHO_T}$cf_cxx_works" >&6
3274 if test "x$cf_cxx_works" = xno
3276 { echo "$as_me:3276: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3277 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3278 cf_with_cxx=no; CXX=""; GXX="";
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 ac_main_return=return
3288 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3289 if test "$CXX" = "g++" ; then
3290 # Extract the first word of "g++", so it can be a program name with args.
3291 set dummy g++; ac_word=$2
3292 echo "$as_me:3292: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_path_CXX+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3302 ac_save_IFS=$IFS; IFS=$ac_path_separator
3304 for ac_dir in $ac_dummy; do
3306 test -z "$ac_dir" && ac_dir=.
3307 if $as_executable_p "$ac_dir/$ac_word"; then
3308 ac_cv_path_CXX="$ac_dir/$ac_word"
3309 echo "$as_me:3309: found $ac_dir/$ac_word" >&5
3319 if test -n "$CXX"; then
3320 echo "$as_me:3320: result: $CXX" >&5
3321 echo "${ECHO_T}$CXX" >&6
3323 echo "$as_me:3323: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3330 { echo "$as_me:3330: WARNING: You don't have any C++ compiler, too bad" >&5
3331 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3332 cf_with_cxx=no; CXX=""; GXX="";
3338 if test "$GXX" = yes; then
3339 echo "$as_me:3339: checking version of ${CXX:-g++}" >&5
3340 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3341 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3342 if test -z "$GXX_VERSION"
3347 echo "$as_me:3347: result: $GXX_VERSION" >&5
3348 echo "${ECHO_T}$GXX_VERSION" >&6
3351 case $GXX_VERSION in
3353 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3355 { echo "$as_me:3355: WARNING: templates do not work" >&5
3356 echo "$as_me: WARNING: templates do not work" >&2;}
3360 echo "$as_me:3360: checking if you want to build C++ binding and demo" >&5
3361 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3363 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3364 if test "${with_cxx_binding+set}" = set; then
3365 withval="$with_cxx_binding"
3366 cf_with_cxx_binding=$withval
3368 cf_with_cxx_binding=$cf_with_cxx
3370 echo "$as_me:3370: result: $cf_with_cxx_binding" >&5
3371 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3373 echo "$as_me:3373: checking if you want to build with Ada" >&5
3374 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3375 echo "$as_me:3375: result: $cf_with_ada" >&5
3376 echo "${ECHO_T}$cf_with_ada" >&6
3378 echo "$as_me:3378: checking if you want to install terminal database" >&5
3379 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3381 # Check whether --enable-db-install or --disable-db-install was given.
3382 if test "${enable_db_install+set}" = set; then
3383 enableval="$enable_db_install"
3384 cf_with_db_install=$enableval
3386 cf_with_db_install=yes
3388 echo "$as_me:3388: result: $cf_with_db_install" >&5
3389 echo "${ECHO_T}$cf_with_db_install" >&6
3391 echo "$as_me:3391: checking if you want to install manpages" >&5
3392 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3394 # Check whether --with-manpages or --without-manpages was given.
3395 if test "${with_manpages+set}" = set; then
3396 withval="$with_manpages"
3397 cf_with_manpages=$withval
3399 cf_with_manpages=yes
3401 echo "$as_me:3401: result: $cf_with_manpages" >&5
3402 echo "${ECHO_T}$cf_with_manpages" >&6
3404 echo "$as_me:3404: checking if you want to build programs such as tic" >&5
3405 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3407 # Check whether --with-progs or --without-progs was given.
3408 if test "${with_progs+set}" = set; then
3409 withval="$with_progs"
3410 cf_with_progs=$withval
3414 echo "$as_me:3414: result: $cf_with_progs" >&5
3415 echo "${ECHO_T}$cf_with_progs" >&6
3417 if test -f $srcdir/tack/tack.h; then
3418 if test "x$cross_compiling" = xyes ; then
3419 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3421 echo "${as_me:-configure}:3421: testing ignoring tack because we are cross-compiling ..." 1>&5
3425 echo "$as_me:3425: checking if you want to build the tack program" >&5
3426 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3428 # Check whether --with-tack or --without-tack was given.
3429 if test "${with_tack+set}" = set; then
3430 withval="$with_tack"
3431 cf_with_tack=$withval
3433 cf_with_tack=$cf_with_progs
3435 echo "$as_me:3435: result: $cf_with_tack" >&5
3436 echo "${ECHO_T}$cf_with_tack" >&6
3442 echo "$as_me:3442: checking if you want to build test-programs" >&5
3443 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3445 # Check whether --with-tests or --without-tests was given.
3446 if test "${with_tests+set}" = set; then
3447 withval="$with_tests"
3448 cf_with_tests=$withval
3452 echo "$as_me:3452: result: $cf_with_tests" >&5
3453 echo "${ECHO_T}$cf_with_tests" >&6
3455 echo "$as_me:3455: checking if you wish to install curses.h" >&5
3456 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3458 # Check whether --with-curses-h or --without-curses-h was given.
3459 if test "${with_curses_h+set}" = set; then
3460 withval="$with_curses_h"
3461 with_curses_h=$withval
3465 echo "$as_me:3465: result: $with_curses_h" >&5
3466 echo "${ECHO_T}$with_curses_h" >&6
3468 modules_to_build="ncurses"
3469 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3470 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3471 modules_to_build="$modules_to_build panel menu form"
3473 test "$program_prefix" != NONE &&
3474 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3475 # Use a double $ so make ignores it.
3476 test "$program_suffix" != NONE &&
3477 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3478 # Double any \ or $. echo might interpret backslashes.
3479 # By default was `s,x,x', remove it if useless.
3480 cat <<\_ACEOF >conftest.sed
3481 s/[\\$]/&&/g;s/;s,x,x,$//
3483 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3486 for ac_prog in mawk gawk nawk awk
3488 # Extract the first word of "$ac_prog", so it can be a program name with args.
3489 set dummy $ac_prog; ac_word=$2
3490 echo "$as_me:3490: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_AWK+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$AWK"; then
3496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 $as_executable_p "$ac_dir/$ac_word" || continue
3504 ac_cv_prog_AWK="$ac_prog"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3512 if test -n "$AWK"; then
3513 echo "$as_me:3513: result: $AWK" >&5
3514 echo "${ECHO_T}$AWK" >&6
3516 echo "$as_me:3516: result: no" >&5
3517 echo "${ECHO_T}no" >&6
3520 test -n "$AWK" && break
3523 test -z "$AWK" && { { echo "$as_me:3523: error: No awk program found" >&5
3524 echo "$as_me: error: No awk program found" >&2;}
3525 { (exit 1); exit 1; }; }
3527 echo "$as_me:3527: checking for egrep" >&5
3528 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3529 if test "${ac_cv_prog_egrep+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3533 then ac_cv_prog_egrep='grep -E'
3534 else ac_cv_prog_egrep='egrep'
3537 echo "$as_me:3537: result: $ac_cv_prog_egrep" >&5
3538 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3539 EGREP=$ac_cv_prog_egrep
3541 test -z "$EGREP" && { { echo "$as_me:3541: error: No egrep program found" >&5
3542 echo "$as_me: error: No egrep program found" >&2;}
3543 { (exit 1); exit 1; }; }
3545 # Find a good install program. We prefer a C program (faster),
3546 # so one script is as good as another. But avoid the broken or
3547 # incompatible versions:
3548 # SysV /etc/install, /usr/sbin/install
3549 # SunOS /usr/etc/install
3550 # IRIX /sbin/install
3552 # AmigaOS /C/install, which installs bootblocks on floppy discs
3553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3556 # ./install, which can be erroneously created by make from ./install.sh.
3557 echo "$as_me:3557: checking for a BSD compatible install" >&5
3558 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3559 if test -z "$INSTALL"; then
3560 if test "${ac_cv_path_install+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 ac_save_IFS=$IFS; IFS=$ac_path_separator
3564 for ac_dir in $PATH; do
3566 # Account for people who put trailing slashes in PATH elements.
3568 / | ./ | .// | /cC/* \
3569 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3572 # OSF1 and SCO ODT 3.0 have their own names for install.
3573 # Don't use installbsd from OSF since it installs stuff as root
3575 for ac_prog in ginstall scoinst install; do
3576 if $as_executable_p "$ac_dir/$ac_prog"; then
3577 if test $ac_prog = install &&
3578 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3579 # AIX install. It has an incompatible calling convention.
3581 elif test $ac_prog = install &&
3582 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3583 # program-specific install script used by HP pwplus--don't use.
3586 ac_cv_path_install="$ac_dir/$ac_prog -c"
3596 if test "${ac_cv_path_install+set}" = set; then
3597 INSTALL=$ac_cv_path_install
3599 # As a last resort, use the slow shell script. We don't cache a
3600 # path for INSTALL within a source directory, because that will
3601 # break other packages using the cache if that directory is
3602 # removed, or if the path is relative.
3603 INSTALL=$ac_install_sh
3606 echo "$as_me:3606: result: $INSTALL" >&5
3607 echo "${ECHO_T}$INSTALL" >&6
3609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3610 # It thinks the first close brace ends the variable substitution.
3611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3621 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3622 test -z "$cf_dir" && cf_dir=.
3623 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3627 for ac_prog in lint cppcheck splint
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy $ac_prog; ac_word=$2
3631 echo "$as_me:3631: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_prog_LINT+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 if test -n "$LINT"; then
3637 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3639 ac_save_IFS=$IFS; IFS=$ac_path_separator
3641 for ac_dir in $ac_dummy; do
3643 test -z "$ac_dir" && ac_dir=.
3644 $as_executable_p "$ac_dir/$ac_word" || continue
3645 ac_cv_prog_LINT="$ac_prog"
3646 echo "$as_me:3646: found $ac_dir/$ac_word" >&5
3652 LINT=$ac_cv_prog_LINT
3653 if test -n "$LINT"; then
3654 echo "$as_me:3654: result: $LINT" >&5
3655 echo "${ECHO_T}$LINT" >&6
3657 echo "$as_me:3657: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3661 test -n "$LINT" && break
3664 echo "$as_me:3664: checking whether ln -s works" >&5
3665 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3667 if test "$LN_S" = "ln -s"; then
3668 echo "$as_me:3668: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6
3671 echo "$as_me:3671: result: no, using $LN_S" >&5
3672 echo "${ECHO_T}no, using $LN_S" >&6
3675 echo "$as_me:3675: checking if $LN_S -f options work" >&5
3676 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3678 rm -f conf$$.src conf$$dst
3680 echo first >conf$$.src
3681 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3686 rm -f conf$$.dst conf$$src
3687 echo "$as_me:3687: result: $cf_prog_ln_sf" >&5
3688 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3690 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3692 echo "$as_me:3692: checking for long file names" >&5
3693 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3694 if test "${ac_cv_sys_long_file_names+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 ac_cv_sys_long_file_names=yes
3698 # Test for long file names in all the places we know might matter:
3699 # . the current directory, where building will happen
3700 # $prefix/lib where we will be installing things
3701 # $exec_prefix/lib likewise
3702 # eval it to expand exec_prefix.
3703 # $TMPDIR if set, where it might want to write temporary files
3704 # if $TMPDIR is not set:
3705 # /tmp where it might want to write temporary files
3708 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3711 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3713 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3714 test -d $ac_dir || continue
3715 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3716 ac_xdir=$ac_dir/cf$$
3717 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3718 ac_tf1=$ac_xdir/conftest9012345
3719 ac_tf2=$ac_xdir/conftest9012346
3720 (echo 1 >$ac_tf1) 2>/dev/null
3721 (echo 2 >$ac_tf2) 2>/dev/null
3722 ac_val=`cat $ac_tf1 2>/dev/null`
3723 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3724 ac_cv_sys_long_file_names=no
3725 rm -rf $ac_xdir 2>/dev/null
3728 rm -rf $ac_xdir 2>/dev/null
3731 echo "$as_me:3731: result: $ac_cv_sys_long_file_names" >&5
3732 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3733 if test $ac_cv_sys_long_file_names = yes; then
3735 cat >>confdefs.h <<\EOF
3736 #define HAVE_LONG_FILE_NAMES 1
3741 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3742 # of package conflict.
3745 # Check whether --with-config-suffix or --without-config-suffix was given.
3746 if test "${with_config_suffix+set}" = set; then
3747 withval="$with_config_suffix"
3750 { echo "$as_me:3750: WARNING: expected a value for config-suffix option" >&5
3751 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3753 (*) cf_config_suffix="$withval"
3758 # If we find pkg-config, check if we should install the ".pc" files.
3760 echo "$as_me:3760: checking if you want to use pkg-config" >&5
3761 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3763 # Check whether --with-pkg-config or --without-pkg-config was given.
3764 if test "${with_pkg_config+set}" = set; then
3765 withval="$with_pkg_config"
3766 cf_pkg_config=$withval
3770 echo "$as_me:3770: result: $cf_pkg_config" >&5
3771 echo "${ECHO_T}$cf_pkg_config" >&6
3773 case $cf_pkg_config in
3779 if test -n "$ac_tool_prefix"; then
3780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3782 echo "$as_me:3782: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3792 ac_save_IFS=$IFS; IFS=$ac_path_separator
3794 for ac_dir in $ac_dummy; do
3796 test -z "$ac_dir" && ac_dir=.
3797 if $as_executable_p "$ac_dir/$ac_word"; then
3798 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3799 echo "$as_me:3799: found $ac_dir/$ac_word" >&5
3807 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3809 if test -n "$PKG_CONFIG"; then
3810 echo "$as_me:3810: result: $PKG_CONFIG" >&5
3811 echo "${ECHO_T}$PKG_CONFIG" >&6
3813 echo "$as_me:3813: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3818 if test -z "$ac_cv_path_PKG_CONFIG"; then
3819 ac_pt_PKG_CONFIG=$PKG_CONFIG
3820 # Extract the first word of "pkg-config", so it can be a program name with args.
3821 set dummy pkg-config; ac_word=$2
3822 echo "$as_me:3822: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 case $ac_pt_PKG_CONFIG in
3829 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3832 ac_save_IFS=$IFS; IFS=$ac_path_separator
3834 for ac_dir in $ac_dummy; do
3836 test -z "$ac_dir" && ac_dir=.
3837 if $as_executable_p "$ac_dir/$ac_word"; then
3838 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3839 echo "$as_me:3839: found $ac_dir/$ac_word" >&5
3844 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3848 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3850 if test -n "$ac_pt_PKG_CONFIG"; then
3851 echo "$as_me:3851: result: $ac_pt_PKG_CONFIG" >&5
3852 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3854 echo "$as_me:3854: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3858 PKG_CONFIG=$ac_pt_PKG_CONFIG
3860 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3869 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3870 if test "$PKG_CONFIG" != none ; then
3872 if test "x$prefix" != xNONE; then
3873 cf_path_syntax="$prefix"
3875 cf_path_syntax="$ac_default_prefix"
3878 case ".$PKG_CONFIG" in
3883 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3885 (.\${*prefix}*|.\${*dir}*)
3886 eval PKG_CONFIG="$PKG_CONFIG"
3887 case ".$PKG_CONFIG" in
3889 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3894 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3897 { { echo "$as_me:3897: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3898 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3899 { (exit 1); exit 1; }; }
3903 elif test "x$cf_pkg_config" != xno ; then
3904 { echo "$as_me:3904: WARNING: pkg-config is not installed" >&5
3905 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3910 echo "$as_me:3910: checking for pkg-config library directory" >&5
3911 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3914 echo "$as_me:3914: checking for $PKG_CONFIG library directory" >&5
3915 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3919 PKG_CONFIG_LIBDIR=no
3921 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3922 if test "${with_pkg_config_libdir+set}" = set; then
3923 withval="$with_pkg_config_libdir"
3924 PKG_CONFIG_LIBDIR=$withval
3926 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3929 case x$PKG_CONFIG_LIBDIR in
3933 # Look for the library directory using the same prefix as the executable
3934 if test "x$PKG_CONFIG" = xnone
3938 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3941 # If you don't like using the default architecture, you have to specify the
3942 # intended library directory and corresponding compiler/linker options.
3944 # This case allows for Debian's 2014-flavor of multiarch, along with the
3945 # most common variations before that point. Some other variants spell the
3946 # directory differently, e.g., "pkg-config", and put it in unusual places.
3947 # pkg-config has always been poorly standardized, which is ironic...
3948 case x`(arch) 2>/dev/null` in
3951 $cf_path/lib/*64-linux-gnu \
3959 $cf_path/lib/*-linux-gnu \
3967 test -n "$verbose" && echo " list..." 1>&6
3969 echo "${as_me:-configure}:3969: testing list... ..." 1>&5
3971 for cf_config in $cf_search_path
3973 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3975 echo "${as_me:-configure}:3975: testing checking $cf_config/pkgconfig ..." 1>&5
3977 if test -d $cf_config/pkgconfig
3979 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3980 echo "$as_me:3980: checking done" >&5
3981 echo $ECHO_N "checking done... $ECHO_C" >&6
3990 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3991 echo "$as_me:3991: result: $PKG_CONFIG_LIBDIR" >&5
3992 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3995 if test "x$PKG_CONFIG" != xnone
3997 echo "$as_me:3997: checking if we should install .pc files for $PKG_CONFIG" >&5
3998 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4000 echo "$as_me:4000: checking if we should install .pc files" >&5
4001 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4004 # Check whether --enable-pc-files or --disable-pc-files was given.
4005 if test "${enable_pc_files+set}" = set; then
4006 enableval="$enable_pc_files"
4007 enable_pc_files=$enableval
4011 echo "$as_me:4011: result: $enable_pc_files" >&5
4012 echo "${ECHO_T}$enable_pc_files" >&6
4014 if test "x$enable_pc_files" != xno
4017 case "x$PKG_CONFIG_LIBDIR" in
4019 { echo "$as_me:4019: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4020 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4024 if test "x$prefix" != xNONE; then
4025 cf_path_syntax="$prefix"
4027 cf_path_syntax="$ac_default_prefix"
4030 case ".$PKG_CONFIG_LIBDIR" in
4035 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4037 (.\${*prefix}*|.\${*dir}*)
4038 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4039 case ".$PKG_CONFIG_LIBDIR" in
4041 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4046 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4049 { { echo "$as_me:4049: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4050 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4051 { (exit 1); exit 1; }; }
4061 if test -z "$MAKE_PC_FILES"
4063 echo "$as_me:4063: checking for suffix to add to pc-files" >&5
4064 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4066 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4067 if test "${with_pc_suffix+set}" = set; then
4068 withval="$with_pc_suffix"
4073 (*) PC_MODULE_SUFFIX="$withval"
4077 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4078 echo "$as_me:4078: result: $PC_MODULE_SUFFIX" >&5
4079 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4080 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4084 echo "$as_me:4084: checking if we should assume mixed-case filenames" >&5
4085 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4087 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4088 if test "${enable_mixed_case+set}" = set; then
4089 enableval="$enable_mixed_case"
4090 enable_mixedcase=$enableval
4092 enable_mixedcase=auto
4094 echo "$as_me:4094: result: $enable_mixedcase" >&5
4095 echo "${ECHO_T}$enable_mixedcase" >&6
4096 if test "$enable_mixedcase" = "auto" ; then
4098 echo "$as_me:4098: checking if filesystem supports mixed-case filenames" >&5
4099 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4100 if test "${cf_cv_mixedcase+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if test "$cross_compiling" = yes ; then
4105 case $target_alias in
4106 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4114 rm -f conftest CONFTEST
4116 if test -f CONFTEST ; then
4121 rm -f conftest CONFTEST
4125 echo "$as_me:4125: result: $cf_cv_mixedcase" >&5
4126 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4127 test "$cf_cv_mixedcase" = yes &&
4128 cat >>confdefs.h <<\EOF
4129 #define MIXEDCASE_FILENAMES 1
4133 cf_cv_mixedcase=$enable_mixedcase
4134 if test "x$enable_mixedcase" = "xyes" ; then
4136 cat >>confdefs.h <<\EOF
4137 #define MIXEDCASE_FILENAMES 1
4143 # do this after mixed-case option (tags/TAGS is not as important as tic).
4144 echo "$as_me:4144: checking whether ${MAKE-make} sets \${MAKE}" >&5
4145 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.make <<\EOF
4152 @echo 'ac_maketemp="${MAKE}"'
4154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4156 if test -n "$ac_maketemp"; then
4157 eval ac_cv_prog_make_${ac_make}_set=yes
4159 eval ac_cv_prog_make_${ac_make}_set=no
4163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4164 echo "$as_me:4164: result: yes" >&5
4165 echo "${ECHO_T}yes" >&6
4168 echo "$as_me:4168: result: no" >&5
4169 echo "${ECHO_T}no" >&6
4170 SET_MAKE="MAKE=${MAKE-make}"
4173 for ac_prog in exctags ctags
4175 # Extract the first word of "$ac_prog", so it can be a program name with args.
4176 set dummy $ac_prog; ac_word=$2
4177 echo "$as_me:4177: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_CTAGS+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$CTAGS"; then
4183 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4185 ac_save_IFS=$IFS; IFS=$ac_path_separator
4187 for ac_dir in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir=.
4190 $as_executable_p "$ac_dir/$ac_word" || continue
4191 ac_cv_prog_CTAGS="$ac_prog"
4192 echo "$as_me:4192: found $ac_dir/$ac_word" >&5
4198 CTAGS=$ac_cv_prog_CTAGS
4199 if test -n "$CTAGS"; then
4200 echo "$as_me:4200: result: $CTAGS" >&5
4201 echo "${ECHO_T}$CTAGS" >&6
4203 echo "$as_me:4203: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4207 test -n "$CTAGS" && break
4210 for ac_prog in exetags etags
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 echo "$as_me:4214: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_ETAGS+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$ETAGS"; then
4220 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4222 ac_save_IFS=$IFS; IFS=$ac_path_separator
4224 for ac_dir in $ac_dummy; do
4226 test -z "$ac_dir" && ac_dir=.
4227 $as_executable_p "$ac_dir/$ac_word" || continue
4228 ac_cv_prog_ETAGS="$ac_prog"
4229 echo "$as_me:4229: found $ac_dir/$ac_word" >&5
4235 ETAGS=$ac_cv_prog_ETAGS
4236 if test -n "$ETAGS"; then
4237 echo "$as_me:4237: result: $ETAGS" >&5
4238 echo "${ECHO_T}$ETAGS" >&6
4240 echo "$as_me:4240: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4244 test -n "$ETAGS" && break
4247 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4248 set dummy ${CTAGS:-ctags}; ac_word=$2
4249 echo "$as_me:4249: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$MAKE_LOWER_TAGS"; then
4255 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4257 ac_save_IFS=$IFS; IFS=$ac_path_separator
4259 for ac_dir in $ac_dummy; do
4261 test -z "$ac_dir" && ac_dir=.
4262 $as_executable_p "$ac_dir/$ac_word" || continue
4263 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4264 echo "$as_me:4264: found $ac_dir/$ac_word" >&5
4268 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4271 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4272 if test -n "$MAKE_LOWER_TAGS"; then
4273 echo "$as_me:4273: result: $MAKE_LOWER_TAGS" >&5
4274 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4276 echo "$as_me:4276: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4280 if test "$cf_cv_mixedcase" = yes ; then
4281 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4282 set dummy ${ETAGS:-etags}; ac_word=$2
4283 echo "$as_me:4283: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$MAKE_UPPER_TAGS"; then
4289 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4291 ac_save_IFS=$IFS; IFS=$ac_path_separator
4293 for ac_dir in $ac_dummy; do
4295 test -z "$ac_dir" && ac_dir=.
4296 $as_executable_p "$ac_dir/$ac_word" || continue
4297 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4298 echo "$as_me:4298: found $ac_dir/$ac_word" >&5
4302 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4305 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4306 if test -n "$MAKE_UPPER_TAGS"; then
4307 echo "$as_me:4307: result: $MAKE_UPPER_TAGS" >&5
4308 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4310 echo "$as_me:4310: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4318 if test "$MAKE_UPPER_TAGS" = yes ; then
4324 if test "$MAKE_LOWER_TAGS" = yes ; then
4330 echo "$as_me:4330: checking for makeflags variable" >&5
4331 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4332 if test "${cf_cv_makeflags+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4339 cat >cf_makeflags.tmp <<CF_EOF
4342 @ echo '.$cf_option'
4344 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4345 case "$cf_result" in
4347 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4348 case "$cf_result" in
4349 (.*CC=*) cf_cv_makeflags=
4351 (*) cf_cv_makeflags=$cf_option
4360 echo "${as_me:-configure}:4360: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4365 rm -f cf_makeflags.tmp
4368 echo "$as_me:4368: result: $cf_cv_makeflags" >&5
4369 echo "${ECHO_T}$cf_cv_makeflags" >&6
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4374 echo "$as_me:4374: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_RANLIB+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$RANLIB"; then
4380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4382 ac_save_IFS=$IFS; IFS=$ac_path_separator
4384 for ac_dir in $ac_dummy; do
4386 test -z "$ac_dir" && ac_dir=.
4387 $as_executable_p "$ac_dir/$ac_word" || continue
4388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4389 echo "$as_me:4389: found $ac_dir/$ac_word" >&5
4395 RANLIB=$ac_cv_prog_RANLIB
4396 if test -n "$RANLIB"; then
4397 echo "$as_me:4397: result: $RANLIB" >&5
4398 echo "${ECHO_T}$RANLIB" >&6
4400 echo "$as_me:4400: result: no" >&5
4401 echo "${ECHO_T}no" >&6
4405 if test -z "$ac_cv_prog_RANLIB"; then
4406 ac_ct_RANLIB=$RANLIB
4407 # Extract the first word of "ranlib", so it can be a program name with args.
4408 set dummy ranlib; ac_word=$2
4409 echo "$as_me:4409: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$ac_ct_RANLIB"; then
4415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4417 ac_save_IFS=$IFS; IFS=$ac_path_separator
4419 for ac_dir in $ac_dummy; do
4421 test -z "$ac_dir" && ac_dir=.
4422 $as_executable_p "$ac_dir/$ac_word" || continue
4423 ac_cv_prog_ac_ct_RANLIB="ranlib"
4424 echo "$as_me:4424: found $ac_dir/$ac_word" >&5
4428 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4432 if test -n "$ac_ct_RANLIB"; then
4433 echo "$as_me:4433: result: $ac_ct_RANLIB" >&5
4434 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4436 echo "$as_me:4436: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4440 RANLIB=$ac_ct_RANLIB
4442 RANLIB="$ac_cv_prog_RANLIB"
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}ld; ac_word=$2
4448 echo "$as_me:4448: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_LD+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$LD"; then
4454 ac_cv_prog_LD="$LD" # Let the user override the test.
4456 ac_save_IFS=$IFS; IFS=$ac_path_separator
4458 for ac_dir in $ac_dummy; do
4460 test -z "$ac_dir" && ac_dir=.
4461 $as_executable_p "$ac_dir/$ac_word" || continue
4462 ac_cv_prog_LD="${ac_tool_prefix}ld"
4463 echo "$as_me:4463: found $ac_dir/$ac_word" >&5
4470 if test -n "$LD"; then
4471 echo "$as_me:4471: result: $LD" >&5
4472 echo "${ECHO_T}$LD" >&6
4474 echo "$as_me:4474: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4479 if test -z "$ac_cv_prog_LD"; then
4481 # Extract the first word of "ld", so it can be a program name with args.
4482 set dummy ld; ac_word=$2
4483 echo "$as_me:4483: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4485 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$ac_ct_LD"; then
4489 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4491 ac_save_IFS=$IFS; IFS=$ac_path_separator
4493 for ac_dir in $ac_dummy; do
4495 test -z "$ac_dir" && ac_dir=.
4496 $as_executable_p "$ac_dir/$ac_word" || continue
4497 ac_cv_prog_ac_ct_LD="ld"
4498 echo "$as_me:4498: found $ac_dir/$ac_word" >&5
4502 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4505 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4506 if test -n "$ac_ct_LD"; then
4507 echo "$as_me:4507: result: $ac_ct_LD" >&5
4508 echo "${ECHO_T}$ac_ct_LD" >&6
4510 echo "$as_me:4510: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4521 set dummy ${ac_tool_prefix}ar; ac_word=$2
4522 echo "$as_me:4522: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524 if test "${ac_cv_prog_AR+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 if test -n "$AR"; then
4528 ac_cv_prog_AR="$AR" # Let the user override the test.
4530 ac_save_IFS=$IFS; IFS=$ac_path_separator
4532 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 $as_executable_p "$ac_dir/$ac_word" || continue
4536 ac_cv_prog_AR="${ac_tool_prefix}ar"
4537 echo "$as_me:4537: found $ac_dir/$ac_word" >&5
4544 if test -n "$AR"; then
4545 echo "$as_me:4545: result: $AR" >&5
4546 echo "${ECHO_T}$AR" >&6
4548 echo "$as_me:4548: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4553 if test -z "$ac_cv_prog_AR"; then
4555 # Extract the first word of "ar", so it can be a program name with args.
4556 set dummy ar; ac_word=$2
4557 echo "$as_me:4557: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$ac_ct_AR"; then
4563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4565 ac_save_IFS=$IFS; IFS=$ac_path_separator
4567 for ac_dir in $ac_dummy; do
4569 test -z "$ac_dir" && ac_dir=.
4570 $as_executable_p "$ac_dir/$ac_word" || continue
4571 ac_cv_prog_ac_ct_AR="ar"
4572 echo "$as_me:4572: found $ac_dir/$ac_word" >&5
4576 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4580 if test -n "$ac_ct_AR"; then
4581 echo "$as_me:4581: result: $ac_ct_AR" >&5
4582 echo "${ECHO_T}$ac_ct_AR" >&6
4584 echo "$as_me:4584: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}nm; ac_word=$2
4596 echo "$as_me:4596: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_NM+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$NM"; then
4602 ac_cv_prog_NM="$NM" # Let the user override the test.
4604 ac_save_IFS=$IFS; IFS=$ac_path_separator
4606 for ac_dir in $ac_dummy; do
4608 test -z "$ac_dir" && ac_dir=.
4609 $as_executable_p "$ac_dir/$ac_word" || continue
4610 ac_cv_prog_NM="${ac_tool_prefix}nm"
4611 echo "$as_me:4611: found $ac_dir/$ac_word" >&5
4618 if test -n "$NM"; then
4619 echo "$as_me:4619: result: $NM" >&5
4620 echo "${ECHO_T}$NM" >&6
4622 echo "$as_me:4622: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4627 if test -z "$ac_cv_prog_NM"; then
4629 # Extract the first word of "nm", so it can be a program name with args.
4630 set dummy nm; ac_word=$2
4631 echo "$as_me:4631: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 if test -n "$ac_ct_NM"; then
4637 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4639 ac_save_IFS=$IFS; IFS=$ac_path_separator
4641 for ac_dir in $ac_dummy; do
4643 test -z "$ac_dir" && ac_dir=.
4644 $as_executable_p "$ac_dir/$ac_word" || continue
4645 ac_cv_prog_ac_ct_NM="nm"
4646 echo "$as_me:4646: found $ac_dir/$ac_word" >&5
4650 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4653 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4654 if test -n "$ac_ct_NM"; then
4655 echo "$as_me:4655: result: $ac_ct_NM" >&5
4656 echo "${ECHO_T}$ac_ct_NM" >&6
4658 echo "$as_me:4658: result: no" >&5
4659 echo "${ECHO_T}no" >&6
4667 if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}ar; ac_word=$2
4670 echo "$as_me:4670: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4672 if test "${ac_cv_prog_AR+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$AR"; then
4676 ac_cv_prog_AR="$AR" # Let the user override the test.
4678 ac_save_IFS=$IFS; IFS=$ac_path_separator
4680 for ac_dir in $ac_dummy; do
4682 test -z "$ac_dir" && ac_dir=.
4683 $as_executable_p "$ac_dir/$ac_word" || continue
4684 ac_cv_prog_AR="${ac_tool_prefix}ar"
4685 echo "$as_me:4685: found $ac_dir/$ac_word" >&5
4692 if test -n "$AR"; then
4693 echo "$as_me:4693: result: $AR" >&5
4694 echo "${ECHO_T}$AR" >&6
4696 echo "$as_me:4696: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4701 if test -z "$ac_cv_prog_AR"; then
4703 # Extract the first word of "ar", so it can be a program name with args.
4704 set dummy ar; ac_word=$2
4705 echo "$as_me:4705: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$ac_ct_AR"; then
4711 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4713 ac_save_IFS=$IFS; IFS=$ac_path_separator
4715 for ac_dir in $ac_dummy; do
4717 test -z "$ac_dir" && ac_dir=.
4718 $as_executable_p "$ac_dir/$ac_word" || continue
4719 ac_cv_prog_ac_ct_AR="ar"
4720 echo "$as_me:4720: found $ac_dir/$ac_word" >&5
4724 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4727 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4728 if test -n "$ac_ct_AR"; then
4729 echo "$as_me:4729: result: $ac_ct_AR" >&5
4730 echo "${ECHO_T}$ac_ct_AR" >&6
4732 echo "$as_me:4732: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4741 echo "$as_me:4741: checking for options to update archives" >&5
4742 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4743 if test "${cf_cv_ar_flags+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cf_cv_ar_flags=unknown
4748 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4751 # check if $ARFLAGS already contains this choice
4752 if test "x$ARFLAGS" != "x" ; then
4753 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4754 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4760 rm -f conftest.$ac_cv_objext
4763 cat >conftest.$ac_ext <<EOF
4764 #line 4764 "configure"
4765 int testdata[3] = { 123, 456, 789 };
4767 if { (eval echo "$as_me:4767: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); } ; then
4772 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4773 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4774 if test -f conftest.a ; then
4775 cf_cv_ar_flags=$cf_ar_flags
4779 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4781 echo "${as_me:-configure}:4781: testing cannot compile test-program ..." 1>&5
4786 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4789 echo "$as_me:4789: result: $cf_cv_ar_flags" >&5
4790 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4792 if test -n "$ARFLAGS" ; then
4793 if test -n "$cf_cv_ar_flags" ; then
4794 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4797 ARFLAGS=$cf_cv_ar_flags
4800 echo "$as_me:4800: checking if you have specified an install-prefix" >&5
4801 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4803 # Check whether --with-install-prefix or --without-install-prefix was given.
4804 if test "${with_install_prefix+set}" = set; then
4805 withval="$with_install_prefix"
4809 (*) DESTDIR="$withval"
4813 echo "$as_me:4813: result: $DESTDIR" >&5
4814 echo "${ECHO_T}$DESTDIR" >&6
4816 ###############################################################################
4818 # If we're cross-compiling, allow the user to override the tools and their
4819 # options. The configure script is oriented toward identifying the host
4820 # compiler, etc., but we need a build compiler to generate parts of the source.
4822 if test "$cross_compiling" = yes ; then
4824 # defaults that we might want to override
4825 : ${BUILD_CFLAGS:=''}
4826 : ${BUILD_CPPFLAGS:=''}
4827 : ${BUILD_LDFLAGS:=''}
4829 : ${BUILD_EXEEXT:='$x'}
4830 : ${BUILD_OBJEXT:='o'}
4832 # Check whether --with-build-cc or --without-build-cc was given.
4833 if test "${with_build_cc+set}" = set; then
4834 withval="$with_build_cc"
4837 for ac_prog in gcc clang c99 c89 cc cl
4839 # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 echo "$as_me:4841: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -n "$BUILD_CC"; then
4847 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4849 ac_save_IFS=$IFS; IFS=$ac_path_separator
4851 for ac_dir in $ac_dummy; do
4853 test -z "$ac_dir" && ac_dir=.
4854 $as_executable_p "$ac_dir/$ac_word" || continue
4855 ac_cv_prog_BUILD_CC="$ac_prog"
4856 echo "$as_me:4856: found $ac_dir/$ac_word" >&5
4862 BUILD_CC=$ac_cv_prog_BUILD_CC
4863 if test -n "$BUILD_CC"; then
4864 echo "$as_me:4864: result: $BUILD_CC" >&5
4865 echo "${ECHO_T}$BUILD_CC" >&6
4867 echo "$as_me:4867: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4871 test -n "$BUILD_CC" && break
4873 test -n "$BUILD_CC" || BUILD_CC="none"
4876 echo "$as_me:4876: checking for native build C compiler" >&5
4877 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4878 echo "$as_me:4878: result: $BUILD_CC" >&5
4879 echo "${ECHO_T}$BUILD_CC" >&6
4881 echo "$as_me:4881: checking for native build C preprocessor" >&5
4882 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4884 # Check whether --with-build-cpp or --without-build-cpp was given.
4885 if test "${with_build_cpp+set}" = set; then
4886 withval="$with_build_cpp"
4887 BUILD_CPP="$withval"
4889 BUILD_CPP='${BUILD_CC} -E'
4891 echo "$as_me:4891: result: $BUILD_CPP" >&5
4892 echo "${ECHO_T}$BUILD_CPP" >&6
4894 echo "$as_me:4894: checking for native build C flags" >&5
4895 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4897 # Check whether --with-build-cflags or --without-build-cflags was given.
4898 if test "${with_build_cflags+set}" = set; then
4899 withval="$with_build_cflags"
4900 BUILD_CFLAGS="$withval"
4902 echo "$as_me:4902: result: $BUILD_CFLAGS" >&5
4903 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4905 echo "$as_me:4905: checking for native build C preprocessor-flags" >&5
4906 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4908 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4909 if test "${with_build_cppflags+set}" = set; then
4910 withval="$with_build_cppflags"
4911 BUILD_CPPFLAGS="$withval"
4913 echo "$as_me:4913: result: $BUILD_CPPFLAGS" >&5
4914 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4916 echo "$as_me:4916: checking for native build linker-flags" >&5
4917 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4919 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4920 if test "${with_build_ldflags+set}" = set; then
4921 withval="$with_build_ldflags"
4922 BUILD_LDFLAGS="$withval"
4924 echo "$as_me:4924: result: $BUILD_LDFLAGS" >&5
4925 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4927 echo "$as_me:4927: checking for native build linker-libraries" >&5
4928 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4930 # Check whether --with-build-libs or --without-build-libs was given.
4931 if test "${with_build_libs+set}" = set; then
4932 withval="$with_build_libs"
4933 BUILD_LIBS="$withval"
4935 echo "$as_me:4935: result: $BUILD_LIBS" >&5
4936 echo "${ECHO_T}$BUILD_LIBS" >&6
4938 # this assumes we're on Unix.
4942 : ${BUILD_CC:='${CC}'}
4944 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4945 { { echo "$as_me:4945: error: Cross-build requires two compilers.
4946 Use --with-build-cc to specify the native compiler." >&5
4947 echo "$as_me: error: Cross-build requires two compilers.
4948 Use --with-build-cc to specify the native compiler." >&2;}
4949 { (exit 1); exit 1; }; }
4953 : ${BUILD_CC:='${CC}'}
4954 : ${BUILD_CPP:='${CPP}'}
4955 : ${BUILD_CFLAGS:='${CFLAGS}'}
4956 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4957 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4958 : ${BUILD_LIBS:='${LIBS}'}
4959 : ${BUILD_EXEEXT:='$x'}
4960 : ${BUILD_OBJEXT:='o'}
4963 ###############################################################################
4965 ### Options to allow the user to specify the set of libraries which are used.
4966 ### Use "--without-normal --with-shared" to allow the default model to be
4967 ### shared, for example.
4970 echo "$as_me:4970: checking if libtool -version-number should be used" >&5
4971 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4973 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4974 if test "${enable_libtool_version+set}" = set; then
4975 enableval="$enable_libtool_version"
4976 test "$enableval" != no && enableval=yes
4977 if test "$enableval" != "yes" ; then
4978 cf_libtool_version=no
4980 cf_libtool_version=yes
4984 cf_libtool_version=yes
4987 echo "$as_me:4987: result: $cf_libtool_version" >&5
4988 echo "${ECHO_T}$cf_libtool_version" >&6
4990 if test "$cf_libtool_version" = yes ; then
4991 LIBTOOL_VERSION="-version-number"
4993 LIBTOOL_VERSION="-version-info"
4996 { echo "$as_me:4996: WARNING: VERSION was not set" >&5
4997 echo "$as_me: WARNING: VERSION was not set" >&2;}
5000 ABI_VERSION="$VERSION"
5001 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5003 echo "${as_me:-configure}:5003: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5007 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5008 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5010 echo "${as_me:-configure}:5010: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5014 { echo "$as_me:5014: WARNING: unexpected VERSION value: $VERSION" >&5
5015 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5022 # common library maintenance symbols that are convenient for libtool scripts:
5023 LIB_CREATE='${AR} -cr'
5024 LIB_OBJECT='${OBJECTS}'
5028 # symbols used to prop libtool up to enable it to determine what it should be
5036 echo "$as_me:5036: checking if you want to build libraries with libtool" >&5
5037 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5039 # Check whether --with-libtool or --without-libtool was given.
5040 if test "${with_libtool+set}" = set; then
5041 withval="$with_libtool"
5042 with_libtool=$withval
5046 echo "$as_me:5046: result: $with_libtool" >&5
5047 echo "${ECHO_T}$with_libtool" >&6
5048 if test "$with_libtool" != "no"; then
5050 if test "$with_libtool" != "yes" ; then
5052 if test "x$prefix" != xNONE; then
5053 cf_path_syntax="$prefix"
5055 cf_path_syntax="$ac_default_prefix"
5058 case ".$with_libtool" in
5063 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5065 (.\${*prefix}*|.\${*dir}*)
5066 eval with_libtool="$with_libtool"
5067 case ".$with_libtool" in
5069 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5074 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5077 { { echo "$as_me:5077: error: expected a pathname, not \"$with_libtool\"" >&5
5078 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5079 { (exit 1); exit 1; }; }
5083 LIBTOOL=$with_libtool
5085 if test -n "$ac_tool_prefix"; then
5086 for ac_prog in libtool glibtool
5088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5090 echo "$as_me:5090: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 if test -n "$LIBTOOL"; then
5096 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5098 ac_save_IFS=$IFS; IFS=$ac_path_separator
5100 for ac_dir in $ac_dummy; do
5102 test -z "$ac_dir" && ac_dir=.
5103 $as_executable_p "$ac_dir/$ac_word" || continue
5104 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5105 echo "$as_me:5105: found $ac_dir/$ac_word" >&5
5111 LIBTOOL=$ac_cv_prog_LIBTOOL
5112 if test -n "$LIBTOOL"; then
5113 echo "$as_me:5113: result: $LIBTOOL" >&5
5114 echo "${ECHO_T}$LIBTOOL" >&6
5116 echo "$as_me:5116: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5120 test -n "$LIBTOOL" && break
5123 if test -z "$LIBTOOL"; then
5124 ac_ct_LIBTOOL=$LIBTOOL
5125 for ac_prog in libtool glibtool
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 echo "$as_me:5129: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 if test -n "$ac_ct_LIBTOOL"; then
5135 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5137 ac_save_IFS=$IFS; IFS=$ac_path_separator
5139 for ac_dir in $ac_dummy; do
5141 test -z "$ac_dir" && ac_dir=.
5142 $as_executable_p "$ac_dir/$ac_word" || continue
5143 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5144 echo "$as_me:5144: found $ac_dir/$ac_word" >&5
5150 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5151 if test -n "$ac_ct_LIBTOOL"; then
5152 echo "$as_me:5152: result: $ac_ct_LIBTOOL" >&5
5153 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5155 echo "$as_me:5155: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5159 test -n "$ac_ct_LIBTOOL" && break
5161 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5163 LIBTOOL=$ac_ct_LIBTOOL
5166 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5168 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.].*//'`
5170 cf_cv_libtool_version=
5172 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5174 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5177 unset ac_cv_prog_ac_ct_LIBTOOL
5181 if test -n "$ac_tool_prefix"; then
5182 for ac_prog in glibtool
5184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 echo "$as_me:5186: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 if test -n "$LIBTOOL"; then
5192 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5194 ac_save_IFS=$IFS; IFS=$ac_path_separator
5196 for ac_dir in $ac_dummy; do
5198 test -z "$ac_dir" && ac_dir=.
5199 $as_executable_p "$ac_dir/$ac_word" || continue
5200 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5201 echo "$as_me:5201: found $ac_dir/$ac_word" >&5
5207 LIBTOOL=$ac_cv_prog_LIBTOOL
5208 if test -n "$LIBTOOL"; then
5209 echo "$as_me:5209: result: $LIBTOOL" >&5
5210 echo "${ECHO_T}$LIBTOOL" >&6
5212 echo "$as_me:5212: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5216 test -n "$LIBTOOL" && break
5219 if test -z "$LIBTOOL"; then
5220 ac_ct_LIBTOOL=$LIBTOOL
5221 for ac_prog in glibtool
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 echo "$as_me:5225: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test -n "$ac_ct_LIBTOOL"; then
5231 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5233 ac_save_IFS=$IFS; IFS=$ac_path_separator
5235 for ac_dir in $ac_dummy; do
5237 test -z "$ac_dir" && ac_dir=.
5238 $as_executable_p "$ac_dir/$ac_word" || continue
5239 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5240 echo "$as_me:5240: found $ac_dir/$ac_word" >&5
5246 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5247 if test -n "$ac_ct_LIBTOOL"; then
5248 echo "$as_me:5248: result: $ac_ct_LIBTOOL" >&5
5249 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5251 echo "$as_me:5251: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5255 test -n "$ac_ct_LIBTOOL" && break
5257 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5259 LIBTOOL=$ac_ct_LIBTOOL
5262 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5264 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.].*//'`
5266 cf_cv_libtool_version=
5268 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5272 if test -z "$LIBTOOL" ; then
5273 { { echo "$as_me:5273: error: Cannot find libtool" >&5
5274 echo "$as_me: error: Cannot find libtool" >&2;}
5275 { (exit 1); exit 1; }; }
5277 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5278 LIB_OBJECT='${OBJECTS:.o=.lo}'
5280 LIB_CLEAN='${LIBTOOL} --mode=clean'
5281 LIB_COMPILE='${LIBTOOL} --mode=compile'
5282 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5283 LIB_INSTALL='${LIBTOOL} --mode=install'
5284 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5287 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5289 echo "$as_me:5289: checking version of $LIBTOOL" >&5
5290 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5292 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5294 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.].*//'`
5296 cf_cv_libtool_version=
5298 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5300 echo "$as_me:5300: result: $cf_cv_libtool_version" >&5
5301 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5302 if test -z "$cf_cv_libtool_version" ; then
5303 { { echo "$as_me:5303: error: This is not GNU libtool" >&5
5304 echo "$as_me: error: This is not GNU libtool" >&2;}
5305 { (exit 1); exit 1; }; }
5308 { { echo "$as_me:5308: error: GNU libtool has not been found" >&5
5309 echo "$as_me: error: GNU libtool has not been found" >&2;}
5310 { (exit 1); exit 1; }; }
5313 # special hack to add -no-undefined (which libtool should do for itself)
5315 case "$cf_cv_system_name" in
5316 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5317 LT_UNDEF=-no-undefined
5321 # special hack to add --tag option for C++ compiler
5322 case $cf_cv_libtool_version in
5323 (1.[5-9]*|[2-9].[0-9.a-z]*)
5324 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5325 LIBTOOL="$LIBTOOL --tag=CC"
5328 LIBTOOL_CXX="$LIBTOOL"
5336 test -z "$LIBTOOL" && ECHO_LT=
5338 if test "$with_libtool" != "no" ; then
5340 cf_list_models="$cf_list_models libtool"
5344 echo "$as_me:5344: checking if you want to build shared libraries" >&5
5345 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5347 # Check whether --with-shared or --without-shared was given.
5348 if test "${with_shared+set}" = set; then
5349 withval="$with_shared"
5350 with_shared=$withval
5354 echo "$as_me:5354: result: $with_shared" >&5
5355 echo "${ECHO_T}$with_shared" >&6
5356 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5358 echo "$as_me:5358: checking if you want to build static libraries" >&5
5359 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5361 # Check whether --with-normal or --without-normal was given.
5362 if test "${with_normal+set}" = set; then
5363 withval="$with_normal"
5364 with_normal=$withval
5368 echo "$as_me:5368: result: $with_normal" >&5
5369 echo "${ECHO_T}$with_normal" >&6
5370 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5372 echo "$as_me:5372: checking if you want to build debug libraries" >&5
5373 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5375 # Check whether --with-debug or --without-debug was given.
5376 if test "${with_debug+set}" = set; then
5377 withval="$with_debug"
5382 echo "$as_me:5382: result: $with_debug" >&5
5383 echo "${ECHO_T}$with_debug" >&6
5384 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5386 echo "$as_me:5386: checking if you want to build profiling libraries" >&5
5387 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5389 # Check whether --with-profile or --without-profile was given.
5390 if test "${with_profile+set}" = set; then
5391 withval="$with_profile"
5392 with_profile=$withval
5396 echo "$as_me:5396: result: $with_profile" >&5
5397 echo "${ECHO_T}$with_profile" >&6
5398 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5402 if test "X$cf_with_cxx_binding" != Xno; then
5403 if test "x$with_shared" = "xyes"; then
5404 echo "$as_me:5404: checking if you want to build C++ shared libraries" >&5
5405 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5407 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5408 if test "${with_cxx_shared+set}" = set; then
5409 withval="$with_cxx_shared"
5410 with_shared_cxx=$withval
5414 echo "$as_me:5414: result: $with_shared_cxx" >&5
5415 echo "${ECHO_T}$with_shared_cxx" >&6
5419 ###############################################################################
5421 echo "$as_me:5421: checking for specified models" >&5
5422 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5423 test -z "$cf_list_models" && cf_list_models=normal
5424 test "$with_libtool" != "no" && cf_list_models=libtool
5425 echo "$as_me:5425: result: $cf_list_models" >&5
5426 echo "${ECHO_T}$cf_list_models" >&6
5428 ### Use the first model as the default, and save its suffix for use in building
5429 ### up test-applications.
5430 echo "$as_me:5430: checking for default model" >&5
5431 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5432 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5433 echo "$as_me:5433: result: $DFT_LWR_MODEL" >&5
5434 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5436 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5447 echo "$as_me:5447: checking if you want to have a library-prefix" >&5
5448 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5450 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5451 if test "${with_lib_prefix+set}" = set; then
5452 withval="$with_lib_prefix"
5453 with_lib_prefix=$withval
5455 with_lib_prefix=auto
5457 echo "$as_me:5457: result: $with_lib_prefix" >&5
5458 echo "${ECHO_T}$with_lib_prefix" >&6
5460 if test $with_lib_prefix = auto
5463 case $cf_cv_system_name in
5465 if test "$DFT_LWR_MODEL" = libtool; then
5471 (*) LIB_PREFIX='lib'
5474 cf_prefix=$LIB_PREFIX
5476 elif test $with_lib_prefix = no
5480 LIB_PREFIX=$with_lib_prefix
5485 echo "$as_me:5485: checking for PATH separator" >&5
5486 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5487 case $cf_cv_system_name in
5488 (os2*) PATH_SEPARATOR=';' ;;
5489 (*) ${PATH_SEPARATOR:=':'} ;;
5492 echo "$as_me:5492: result: $PATH_SEPARATOR" >&5
5493 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5495 ###############################################################################
5497 echo "$as_me:5497: checking if you want to build a separate terminfo library" >&5
5498 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5500 # Check whether --with-termlib or --without-termlib was given.
5501 if test "${with_termlib+set}" = set; then
5502 withval="$with_termlib"
5503 with_termlib=$withval
5507 echo "$as_me:5507: result: $with_termlib" >&5
5508 echo "${ECHO_T}$with_termlib" >&6
5510 echo "$as_me:5510: checking if you want to build a separate tic library" >&5
5511 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5513 # Check whether --with-ticlib or --without-ticlib was given.
5514 if test "${with_ticlib+set}" = set; then
5515 withval="$with_ticlib"
5516 with_ticlib=$withval
5520 echo "$as_me:5520: result: $with_ticlib" >&5
5521 echo "${ECHO_T}$with_ticlib" >&6
5523 if test X"$CC_G_OPT" = X"" ; then
5525 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5528 if test X"$CXX_G_OPT" = X"" ; then
5530 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5533 echo "$as_me:5533: checking for default loader flags" >&5
5534 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5535 case $DFT_LWR_MODEL in
5536 (libtool) LD_MODEL='' ;;
5537 (normal) LD_MODEL='' ;;
5538 (debug) LD_MODEL=$CC_G_OPT ;;
5539 (profile) LD_MODEL='-pg';;
5540 (shared) LD_MODEL='' ;;
5542 echo "$as_me:5542: result: $LD_MODEL" >&5
5543 echo "${ECHO_T}$LD_MODEL" >&6
5545 case $DFT_LWR_MODEL in
5548 echo "$as_me:5548: checking if rpath option should be used" >&5
5549 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5551 # Check whether --enable-rpath or --disable-rpath was given.
5552 if test "${enable_rpath+set}" = set; then
5553 enableval="$enable_rpath"
5554 cf_cv_enable_rpath=$enableval
5556 cf_cv_enable_rpath=no
5558 echo "$as_me:5558: result: $cf_cv_enable_rpath" >&5
5559 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5561 echo "$as_me:5561: checking if shared libraries should be relinked during install" >&5
5562 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5564 # Check whether --enable-relink or --disable-relink was given.
5565 if test "${enable_relink+set}" = set; then
5566 enableval="$enable_relink"
5567 cf_cv_do_relink=$enableval
5571 echo "$as_me:5571: result: $cf_cv_do_relink" >&5
5572 echo "${ECHO_T}$cf_cv_do_relink" >&6
5576 # we will build libraries one-level down.
5580 if test "x$cf_cv_enable_rpath" != xno
5582 echo "$as_me:5582: checking for an rpath option" >&5
5583 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5584 case $cf_cv_system_name in
5586 if test "$GCC" = yes; then
5587 LD_RPATH_OPT="-Wl,-rpath,"
5589 LD_RPATH_OPT="-rpath "
5592 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5593 LD_RPATH_OPT="-Wl,-rpath,"
5595 (openbsd[2-9].*|mirbsd*)
5596 LD_RPATH_OPT="-Wl,-rpath,"
5599 LD_RPATH_OPT="-rpath "
5602 LD_RPATH_OPT="-Wl,-rpath,"
5605 LD_RPATH_OPT="-rpath "
5613 echo "$as_me:5613: result: $LD_RPATH_OPT" >&5
5614 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5616 case "x$LD_RPATH_OPT" in
5618 echo "$as_me:5618: checking if we need a space after rpath option" >&5
5619 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5620 cf_save_LIBS="$LIBS"
5622 cf_add_libs="${LD_RPATH_OPT}$libdir"
5623 # Filter out duplicates - this happens with badly-designed ".pc" files...
5624 for cf_add_1lib in $LIBS
5626 for cf_add_2lib in $cf_add_libs
5628 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5634 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5638 cat >conftest.$ac_ext <<_ACEOF
5639 #line 5639 "configure"
5640 #include "confdefs.h"
5650 rm -f conftest.$ac_objext conftest$ac_exeext
5651 if { (eval echo "$as_me:5651: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5654 echo "$as_me:5654: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -s conftest$ac_exeext'
5657 { (eval echo "$as_me:5657: \"$ac_try\"") >&5
5660 echo "$as_me:5660: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5664 echo "$as_me: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669 LIBS="$cf_save_LIBS"
5670 echo "$as_me:5670: result: $cf_rpath_space" >&5
5671 echo "${ECHO_T}$cf_rpath_space" >&6
5672 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5681 INSTALL_LIB="-m 644"
5682 : ${rel_builddir:=.}
5688 cf_cv_do_symlinks=no
5690 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5692 echo "$as_me:5692: checking if release/abi version should be used for shared libs" >&5
5693 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5695 # Check whether --with-shlib-version or --without-shlib-version was given.
5696 if test "${with_shlib_version+set}" = set; then
5697 withval="$with_shlib_version"
5698 test -z "$withval" && withval=auto
5701 cf_cv_shlib_version=auto
5704 cf_cv_shlib_version=$withval
5707 echo "$as_me:5707: result: $withval" >&5
5708 echo "${ECHO_T}$withval" >&6
5709 { { echo "$as_me:5709: error: option value must be one of: rel, abi, or auto" >&5
5710 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5711 { (exit 1); exit 1; }; }
5716 cf_cv_shlib_version=auto
5718 echo "$as_me:5718: result: $cf_cv_shlib_version" >&5
5719 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5724 # Some less-capable ports of gcc support only -fpic
5728 if test "$GCC" = yes
5732 case $cf_cv_system_name in
5733 (*linux*) # e.g., PGI compiler
5739 if test "$cf_try_fPIC" = yes
5741 echo "$as_me:5741: checking which $CC option to use" >&5
5742 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5743 cf_save_CFLAGS="$CFLAGS"
5744 for CC_SHARED_OPTS in -fPIC -fpic ''
5746 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5747 cat >conftest.$ac_ext <<_ACEOF
5748 #line 5748 "configure"
5749 #include "confdefs.h"
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:5760: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>&5
5763 echo "$as_me:5763: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:5766: \"$ac_try\"") >&5
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5773 echo "$as_me: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5776 rm -f conftest.$ac_objext conftest.$ac_ext
5778 echo "$as_me:5778: result: $CC_SHARED_OPTS" >&5
5779 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5780 CFLAGS="$cf_save_CFLAGS"
5783 cf_cv_shlib_version_infix=no
5785 case $cf_cv_system_name in
5786 (aix4.3-9*|aix[5-7]*)
5787 if test "$GCC" = yes; then
5788 CC_SHARED_OPTS='-Wl,-brtl'
5789 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5791 CC_SHARED_OPTS='-brtl'
5792 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5793 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5797 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5801 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5802 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5803 cf_cv_shlib_version=cygdll
5804 cf_cv_shlib_version_infix=cygdll
5807 cat >mk_shared_lib.sh <<-CF_EOF
5810 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5813 Linking shared library
5814 ** SHARED_LIB \$SHARED_LIB
5815 ** IMPORT_LIB \$IMPORT_LIB
5817 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5819 chmod +x mk_shared_lib.sh
5823 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5824 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5825 cf_cv_shlib_version=msysdll
5826 cf_cv_shlib_version_infix=msysdll
5829 cat >mk_shared_lib.sh <<-CF_EOF
5832 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5835 Linking shared library
5836 ** SHARED_LIB \$SHARED_LIB
5837 ** IMPORT_LIB \$IMPORT_LIB
5839 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5841 chmod +x mk_shared_lib.sh
5844 cf_try_cflags="no-cpp-precomp"
5845 CC_SHARED_OPTS="-dynamic"
5846 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5847 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5848 cf_cv_shlib_version_infix=yes
5849 echo "$as_me:5849: checking if ld -search_paths_first works" >&5
5850 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5851 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cf_save_LDFLAGS=$LDFLAGS
5856 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5857 cat >conftest.$ac_ext <<_ACEOF
5858 #line 5858 "configure"
5859 #include "confdefs.h"
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (eval echo "$as_me:5870: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>&5
5873 echo "$as_me:5873: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:5876: \"$ac_try\"") >&5
5879 echo "$as_me:5879: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 cf_cv_ldflags_search_paths_first=yes
5883 echo "$as_me: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 cf_cv_ldflags_search_paths_first=no
5887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5888 LDFLAGS=$cf_save_LDFLAGS
5890 echo "$as_me:5890: result: $cf_cv_ldflags_search_paths_first" >&5
5891 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5892 if test $cf_cv_ldflags_search_paths_first = yes; then
5893 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5897 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5898 if test "$GCC" != yes; then
5901 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5902 INSTALL_LIB="-m 555"
5905 # (tested with gcc 2.7.2 -- I don't have c89)
5906 if test "$GCC" = yes; then
5907 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5910 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5912 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5913 # HP-UX shared libraries must be executable, and should be
5914 # readonly to exploit a quirk in the memory manager.
5915 INSTALL_LIB="-m 555"
5918 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5919 if test "$cf_cv_shlib_version" = rel; then
5920 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5922 cf_shared_soname='`basename $@`'
5925 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5928 if test "$cf_cv_enable_rpath" = yes ; then
5929 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5931 # tested with IRIX 5.2 and 'cc'.
5932 if test "$GCC" != yes; then
5933 CC_SHARED_OPTS='-KPIC'
5934 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5936 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5938 cf_cv_rm_so_locs=yes
5940 (linux*|gnu*|k*bsd*-gnu)
5941 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5942 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5943 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5945 if test "$cf_cv_enable_rpath" = yes ; then
5946 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5949 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5950 if test "$cf_cv_shlib_version" = rel; then
5951 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5953 cf_cv_shared_soname='`basename $@`'
5956 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5959 cf_cv_shlib_version=mingw
5960 cf_cv_shlib_version_infix=mingw
5963 if test "$DFT_LWR_MODEL" = "shared" ; then
5964 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5965 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5966 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5969 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5970 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5971 cat >mk_shared_lib.sh <<-CF_EOF
5974 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5977 Linking shared library
5978 ** SHARED_LIB \$SHARED_LIB
5979 ** IMPORT_LIB \$IMPORT_LIB
5981 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5983 chmod +x mk_shared_lib.sh
5985 (openbsd[2-9].*|mirbsd*)
5986 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5987 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5988 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5990 if test "$cf_cv_enable_rpath" = yes ; then
5991 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5993 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5995 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5996 if test "$cf_cv_shlib_version" = rel; then
5997 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5999 cf_cv_shared_soname='`basename $@`'
6002 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6004 (nto-qnx*|openbsd*|freebsd[12].*)
6005 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6006 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6007 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6009 (dragonfly*|freebsd*)
6010 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6011 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6012 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6013 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6014 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6017 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6018 if test "$cf_cv_shlib_version" = rel; then
6019 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6021 cf_cv_shared_soname='`basename $@`'
6024 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6027 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6028 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6029 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6030 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6031 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6032 if test "$cf_cv_shlib_version" = auto; then
6033 if test -f /usr/libexec/ld.elf_so; then
6034 cf_cv_shlib_version=abi
6036 cf_cv_shlib_version=rel
6040 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6041 if test "$cf_cv_shlib_version" = rel; then
6042 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6044 cf_cv_shared_soname='`basename $@`'
6047 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6049 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
6053 # tested with OSF/1 V3.2 and 'cc'
6054 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6055 # link with shared libs).
6056 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6059 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6062 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6063 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6064 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6065 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6067 cf_cv_rm_so_locs=yes
6069 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6070 # tested with osr5.0.5
6071 if test "$GCC" != yes; then
6072 CC_SHARED_OPTS='-belf -KPIC'
6074 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6075 if test "$cf_cv_enable_rpath" = yes ; then
6076 # only way is to set LD_RUN_PATH but no switch for it
6079 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6080 LINK_PROGS='LD_RUN_PATH=${libdir}'
6081 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6084 # tested with SunOS 4.1.1 and gcc 2.7.0
6085 if test "$GCC" != yes; then
6086 CC_SHARED_OPTS='-KPIC'
6088 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6089 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6092 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6093 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6094 if test "$DFT_LWR_MODEL" = "shared" ; then
6095 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6096 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6098 if test "$cf_cv_enable_rpath" = yes ; then
6099 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6102 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6103 if test "$cf_cv_shlib_version" = rel; then
6104 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6106 cf_cv_shared_soname='`basename $@`'
6109 if test "$GCC" != yes; then
6110 cf_save_CFLAGS="$CFLAGS"
6111 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6113 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6114 cat >conftest.$ac_ext <<_ACEOF
6115 #line 6115 "configure"
6116 #include "confdefs.h"
6126 rm -f conftest.$ac_objext
6127 if { (eval echo "$as_me:6127: \"$ac_compile\"") >&5
6128 (eval $ac_compile) 2>&5
6130 echo "$as_me:6130: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:6133: \"$ac_try\"") >&5
6136 echo "$as_me:6136: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6140 echo "$as_me: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6143 rm -f conftest.$ac_objext conftest.$ac_ext
6145 CFLAGS="$cf_save_CFLAGS"
6146 CC_SHARED_OPTS=$cf_shared_opts
6147 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6149 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6152 (sysv5uw7*|unix_sv*)
6153 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6154 if test "$GCC" != yes; then
6155 CC_SHARED_OPTS='-KPIC'
6157 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6160 CC_SHARED_OPTS='unknown'
6161 MK_SHARED_LIB='echo unknown'
6165 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6166 case "$cf_cv_shlib_version" in
6168 case "$MK_SHARED_LIB" in
6170 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6173 { echo "$as_me:6173: WARNING: ignored --with-shlib-version" >&5
6174 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6180 if test -n "$cf_try_cflags"
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6183 "${as_me:-configure}"
6185 int main(int argc, char *argv[])
6188 return (argv[argc-1] == 0) ;
6191 cf_save_CFLAGS="$CFLAGS"
6192 for cf_opt in $cf_try_cflags
6194 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6195 echo "$as_me:6195: checking if CFLAGS option -$cf_opt works" >&5
6196 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6197 if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 (exit $ac_status); }; then
6202 echo "$as_me:6202: result: yes" >&5
6203 echo "${ECHO_T}yes" >&6
6204 cf_save_CFLAGS="$CFLAGS"
6206 echo "$as_me:6206: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6210 CFLAGS="$cf_save_CFLAGS"
6213 # RPATH_LIST is a colon-separated list of directories
6214 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6215 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6217 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6219 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6221 echo "${as_me:-configure}:6221: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6223 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6225 echo "${as_me:-configure}:6225: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6227 for model in $cf_list_models; do
6231 echo "$as_me:6231: checking for additional libtool options" >&5
6232 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6234 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6235 if test "${with_libtool_opts+set}" = set; then
6236 withval="$with_libtool_opts"
6237 with_libtool_opts=$withval
6239 with_libtool_opts=no
6241 echo "$as_me:6241: result: $with_libtool_opts" >&5
6242 echo "${ECHO_T}$with_libtool_opts" >&6
6244 case .$with_libtool_opts in
6248 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6252 echo "$as_me:6252: checking if exported-symbols file should be used" >&5
6253 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6255 # Check whether --with-export-syms or --without-export-syms was given.
6256 if test "${with_export_syms+set}" = set; then
6257 withval="$with_export_syms"
6258 with_export_syms=$withval
6262 if test "x$with_export_syms" = xyes
6264 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6267 echo "$as_me:6267: result: $with_export_syms" >&5
6268 echo "${ECHO_T}$with_export_syms" >&6
6269 if test "x$with_export_syms" != xno
6271 EXPORT_SYMS="-export-symbols $with_export_syms"
6277 if test "$CC_SHARED_OPTS" = "unknown"; then
6278 { { echo "$as_me:6278: error: Shared libraries are not supported in this version" >&5
6279 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6280 { (exit 1); exit 1; }; }
6282 # workaround for inept transition to PIE vs PIC...
6283 echo "$as_me:6283: checking if current CFLAGS link properly" >&5
6284 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line 6286 "configure"
6287 #include "confdefs.h"
6292 printf("Hello work\n");
6297 rm -f conftest.$ac_objext conftest$ac_exeext
6298 if { (eval echo "$as_me:6298: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6301 echo "$as_me:6301: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:6304: \"$ac_try\"") >&5
6307 echo "$as_me:6307: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6311 echo "$as_me: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6316 echo "$as_me:6316: result: $cf_cflags_work" >&5
6317 echo "${ECHO_T}$cf_cflags_work" >&6
6318 if test "$cf_cflags_work" = no
6320 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6322 echo "${as_me:-configure}:6322: testing try to work around by appending shared-options ..." 1>&5
6324 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6327 echo "$as_me:6327: checking if versioned-symbols file should be used" >&5
6328 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6330 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6331 if test "${with_versioned_syms+set}" = set; then
6332 withval="$with_versioned_syms"
6333 with_versioned_syms=$withval
6335 with_versioned_syms=no
6337 case "x$with_versioned_syms" in
6339 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6345 test -f "$with_versioned_syms" || { { echo "$as_me:6345: error: expected a filename: $with_versioned_syms" >&5
6346 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6347 { (exit 1); exit 1; }; }
6350 test -f "$with_versioned_syms" || { { echo "$as_me:6350: error: expected a filename: $with_versioned_syms" >&5
6351 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6352 { (exit 1); exit 1; }; }
6353 with_versioned_syms=`pwd`/"$with_versioned_syms"
6356 echo "$as_me:6356: result: $with_versioned_syms" >&5
6357 echo "${ECHO_T}$with_versioned_syms" >&6
6363 if test "x$with_versioned_syms" != xno
6365 RESULTING_SYMS=$with_versioned_syms
6366 case "x$MK_SHARED_LIB" in
6368 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6369 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6370 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6372 echo "${as_me:-configure}:6372: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6376 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6377 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6378 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6380 echo "${as_me:-configure}:6380: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6384 { echo "$as_me:6384: WARNING: this system does not support versioned-symbols" >&5
6385 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6389 # Linux ld can selectively override scope, e.g., of symbols beginning with
6390 # "_" by first declaring some as global, and then using a wildcard to
6391 # declare the others as local. Some other loaders cannot do this. Check
6392 # by constructing a (very) simple shared library and inspecting its
6394 if test "x$VERSIONED_SYMS" != "x"
6396 echo "$as_me:6396: checking if wildcards can be used to selectively omit symbols" >&5
6397 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6403 cat >conftest.ver <<EOF
6432 cat >conftest.$ac_ext <<EOF
6433 #line 6433 "configure"
6434 int _ismissing(void) { return 1; }
6435 int _localf1(void) { return 1; }
6436 int _localf2(void) { return 2; }
6437 int globalf1(void) { return 1; }
6438 int globalf2(void) { return 2; }
6439 int _sublocalf1(void) { return 1; }
6440 int _sublocalf2(void) { return 2; }
6441 int subglobalf1(void) { return 1; }
6442 int subglobalf2(void) { return 2; }
6444 cat >conftest.mk <<EOF
6447 CPPFLAGS=${CPPFLAGS}
6450 VERSIONED_SYMS=${VERSIONED_SYMS}
6451 RESULTING_SYMS=conftest.ver
6452 MK_SHARED_LIB=${MK_SHARED_LIB}
6453 conftest.so: conftest.$ac_cv_objext
6454 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6457 # compile source, make library
6458 if make -f conftest.mk 2>&5 >/dev/null
6460 # test for missing symbol in either Data or Text section
6461 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6462 test -n "$cf_missing" && WILDCARD_SYMS=yes
6464 echo "$as_me:6464: result: $WILDCARD_SYMS" >&5
6465 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6474 ### Checks for special libraries, must be done up-front.
6477 echo "$as_me:6477: checking if you want to link with the GPM mouse library" >&5
6478 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6480 # Check whether --with-gpm or --without-gpm was given.
6481 if test "${with_gpm+set}" = set; then
6487 echo "$as_me:6487: result: $with_gpm" >&5
6488 echo "${ECHO_T}$with_gpm" >&6
6490 if test "$with_gpm" != no ; then
6491 echo "$as_me:6491: checking for gpm.h" >&5
6492 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6493 if test "${ac_cv_header_gpm_h+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line 6497 "configure"
6498 #include "confdefs.h"
6501 if { (eval echo "$as_me:6501: \"$ac_cpp conftest.$ac_ext\"") >&5
6502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 egrep -v '^ *\+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:6507: \$? = $ac_status" >&5
6508 (exit $ac_status); } >/dev/null; then
6509 if test -s conftest.err; then
6510 ac_cpp_err=$ac_c_preproc_warn_flag
6517 if test -z "$ac_cpp_err"; then
6518 ac_cv_header_gpm_h=yes
6520 echo "$as_me: failed program was:" >&5
6521 cat conftest.$ac_ext >&5
6522 ac_cv_header_gpm_h=no
6524 rm -f conftest.err conftest.$ac_ext
6526 echo "$as_me:6526: result: $ac_cv_header_gpm_h" >&5
6527 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6528 if test $ac_cv_header_gpm_h = yes; then
6530 cat >>confdefs.h <<\EOF
6531 #define HAVE_GPM_H 1
6534 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6535 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6537 echo "${as_me:-configure}:6537: testing assuming we really have GPM library ..." 1>&5
6539 cat >>confdefs.h <<\EOF
6540 #define HAVE_LIBGPM 1
6545 echo "$as_me:6545: checking for Gpm_Open in -lgpm" >&5
6546 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6547 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_check_lib_save_LIBS=$LIBS
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line 6553 "configure"
6554 #include "confdefs.h"
6556 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:6572: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6575 echo "$as_me:6575: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:6578: \"$ac_try\"") >&5
6581 echo "$as_me:6581: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_cv_lib_gpm_Gpm_Open=yes
6585 echo "$as_me: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 ac_cv_lib_gpm_Gpm_Open=no
6589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6592 echo "$as_me:6592: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6593 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6594 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6598 if test "$with_gpm" = maybe; then
6599 { echo "$as_me:6599: WARNING: Cannot link with GPM library" >&5
6600 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6603 { { echo "$as_me:6603: error: Cannot link with GPM library" >&5
6604 echo "$as_me: error: Cannot link with GPM library" >&2;}
6605 { (exit 1); exit 1; }; }
6614 test "$with_gpm" != maybe && { echo "$as_me:6614: WARNING: Cannot find GPM header" >&5
6615 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6622 if test "$with_gpm" != no ; then
6623 echo "$as_me:6623: checking if you want to load GPM dynamically" >&5
6624 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6626 # Check whether --with-dlsym or --without-dlsym was given.
6627 if test "${with_dlsym+set}" = set; then
6628 withval="$with_dlsym"
6633 echo "$as_me:6633: result: $with_dlsym" >&5
6634 echo "${ECHO_T}$with_dlsym" >&6
6635 if test "x$with_dlsym" = xyes ; then
6638 echo "$as_me:6638: checking for dlsym" >&5
6639 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6640 if test "${ac_cv_func_dlsym+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 cat >conftest.$ac_ext <<_ACEOF
6644 #line 6644 "configure"
6645 #include "confdefs.h"
6646 #define dlsym autoconf_temporary
6647 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6662 /* The GNU C library defines stubs for functions which it implements
6663 to always fail with ENOSYS. Some functions are actually named
6664 something starting with __ and the normal name is an alias. */
6665 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6666 #error found stub for dlsym
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:6675: \"$ac_link\"") >&5
6676 (eval $ac_link) 2>&5
6678 echo "$as_me:6678: \$? = $ac_status" >&5
6679 (exit $ac_status); } &&
6680 { ac_try='test -s conftest$ac_exeext'
6681 { (eval echo "$as_me:6681: \"$ac_try\"") >&5
6684 echo "$as_me:6684: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_func_dlsym=yes
6688 echo "$as_me: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6694 echo "$as_me:6694: result: $ac_cv_func_dlsym" >&5
6695 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6696 if test $ac_cv_func_dlsym = yes; then
6701 echo "$as_me:6701: checking for dlsym in -ldl" >&5
6702 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6703 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_check_lib_save_LIBS=$LIBS
6708 cat >conftest.$ac_ext <<_ACEOF
6709 #line 6709 "configure"
6710 #include "confdefs.h"
6712 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:6728: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:6734: \"$ac_try\"") >&5
6737 echo "$as_me:6737: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_lib_dl_dlsym=yes
6741 echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_lib_dl_dlsym=no
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6748 echo "$as_me:6748: result: $ac_cv_lib_dl_dlsym" >&5
6749 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6750 if test $ac_cv_lib_dl_dlsym = yes; then
6758 if test "$cf_have_dlsym" = yes ; then
6759 test "$cf_have_libdl" = yes && {
6761 # Filter out duplicates - this happens with badly-designed ".pc" files...
6762 for cf_add_1lib in $LIBS
6764 for cf_add_2lib in $cf_add_libs
6766 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6772 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6777 echo "$as_me:6777: checking whether able to link to dl*() functions" >&5
6778 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6780 #line 6780 "configure"
6781 #include "confdefs.h"
6788 if ((obj = dlopen("filename", 0)) != 0) {
6789 if (dlsym(obj, "symbolname") == 0) {
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:6798: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>&5
6801 echo "$as_me:6801: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:6804: \"$ac_try\"") >&5
6807 echo "$as_me:6807: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6810 cat >>confdefs.h <<\EOF
6811 #define HAVE_LIBDL 1
6815 echo "$as_me: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 { { echo "$as_me:6818: error: Cannot link test program for libdl" >&5
6819 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6820 { (exit 1); exit 1; }; }
6822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6823 echo "$as_me:6823: result: ok" >&5
6824 echo "${ECHO_T}ok" >&6
6826 { { echo "$as_me:6826: error: Cannot find dlsym function" >&5
6827 echo "$as_me: error: Cannot find dlsym function" >&2;}
6828 { (exit 1); exit 1; }; }
6831 if test "x$with_gpm" != xyes ; then
6832 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6834 echo "${as_me:-configure}:6834: testing assuming soname for gpm is $with_gpm ..." 1>&5
6836 cf_cv_gpm_soname="$with_gpm"
6839 echo "$as_me:6839: checking for soname of gpm library" >&5
6840 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6841 if test "${cf_cv_gpm_soname+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 cf_cv_gpm_soname=unknown
6846 if test "$cross_compiling" != yes ; then
6847 cat >conftest.$ac_ext <<CF_EOF
6851 if (Gpm_Open(0,0)) Gpm_Close();
6852 ${cf_cv_main_return:-return}(0);
6855 cf_save_LIBS="$LIBS"
6858 # Filter out duplicates - this happens with badly-designed ".pc" files...
6859 for cf_add_1lib in $LIBS
6861 for cf_add_2lib in $cf_add_libs
6863 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6869 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6873 if { (eval echo "$as_me:6873: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>&5
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 (exit $ac_status); } ; then
6878 if { (eval echo "$as_me:6878: \"$ac_link\"") >&5
6879 (eval $ac_link) 2>&5
6881 echo "$as_me:6881: \$? = $ac_status" >&5
6882 (exit $ac_status); } ; then
6883 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
6884 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
6888 LIBS="$cf_save_LIBS"
6892 echo "$as_me:6892: result: $cf_cv_gpm_soname" >&5
6893 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
6896 test "$cf_cv_gpm_soname" != "unknown" &&
6897 cat >>confdefs.h <<EOF
6898 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
6901 SHLIB_LIST="-ldl $SHLIB_LIST"
6904 # Filter out duplicates - this happens with badly-designed ".pc" files...
6905 for cf_add_1lib in $PRIVATE_LIBS
6907 for cf_add_2lib in $cf_add_libs
6909 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6915 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6917 PRIVATE_LIBS="$cf_add_libs"
6920 SHLIB_LIST="-lgpm $SHLIB_LIST"
6923 # Filter out duplicates - this happens with badly-designed ".pc" files...
6924 for cf_add_1lib in $TEST_LIBS
6926 for cf_add_2lib in $cf_add_libs
6928 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6934 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6936 TEST_LIBS="$cf_add_libs"
6939 # Filter out duplicates - this happens with badly-designed ".pc" files...
6940 for cf_add_1lib in $PRIVATE_LIBS
6942 for cf_add_2lib in $cf_add_libs
6944 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6950 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6952 PRIVATE_LIBS="$cf_add_libs"
6956 cat >>confdefs.h <<\EOF
6957 #define HAVE_LIBGPM 1
6960 echo "$as_me:6960: checking for Gpm_Wgetch in -lgpm" >&5
6961 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
6962 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_check_lib_save_LIBS=$LIBS
6967 cat >conftest.$ac_ext <<_ACEOF
6968 #line 6968 "configure"
6969 #include "confdefs.h"
6971 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (eval echo "$as_me:6987: \"$ac_link\"") >&5
6988 (eval $ac_link) 2>&5
6990 echo "$as_me:6990: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -s conftest$ac_exeext'
6993 { (eval echo "$as_me:6993: \"$ac_try\"") >&5
6996 echo "$as_me:6996: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_lib_gpm_Gpm_Wgetch=yes
7000 echo "$as_me: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7002 ac_cv_lib_gpm_Gpm_Wgetch=no
7004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005 LIBS=$ac_check_lib_save_LIBS
7007 echo "$as_me:7007: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7008 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7009 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
7011 echo "$as_me:7011: checking if GPM is weakly bound to curses library" >&5
7012 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7013 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 cf_cv_check_gpm_wgetch=unknown
7018 if test "$cross_compiling" != yes ; then
7020 cat >conftest.$ac_ext <<CF_EOF
7025 ${cf_cv_main_return:-return}(0);
7029 cf_save_LIBS="$LIBS"
7030 # This only works if we can look at the symbol table. If a shared
7031 # library is stripped for install, we cannot use that. So we're forced
7032 # to rely on the static library, noting that some packagers may not
7034 LIBS="-static -lgpm -dynamic $LIBS"
7035 if { (eval echo "$as_me:7035: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>&5
7038 echo "$as_me:7038: \$? = $ac_status" >&5
7039 (exit $ac_status); } ; then
7040 if { (eval echo "$as_me:7040: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); } ; then
7045 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
7046 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7047 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7051 LIBS="$cf_save_LIBS"
7055 echo "$as_me:7055: result: $cf_cv_check_gpm_wgetch" >&5
7056 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7058 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7059 { echo "$as_me:7059: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7060 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7067 echo "$as_me:7067: checking if you want to use PCRE2 for regular-expressions" >&5
7068 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7070 # Check whether --with-pcre2 or --without-pcre2 was given.
7071 if test "${with_pcre2+set}" = set; then
7072 withval="$with_pcre2"
7075 test -z "$with_pcre2" && with_pcre2=no
7076 echo "$as_me:7076: result: $with_pcre2" >&5
7077 echo "${ECHO_T}$with_pcre2" >&6
7079 if test "x$with_pcre2" != xno ; then
7081 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
7082 test -n "$verbose" && echo " found package libpcre2" 1>&6
7084 echo "${as_me:-configure}:7084: testing found package libpcre2 ..." 1>&5
7086 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
7087 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
7088 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7090 echo "${as_me:-configure}:7090: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7092 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7094 echo "${as_me:-configure}:7094: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7099 cf_new_extra_cppflags=
7101 for cf_add_cflags in $cf_pkgconfig_incs
7103 case $cf_fix_cppflags in
7105 case $cf_add_cflags in
7106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7107 case $cf_add_cflags in
7109 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7112 && test -z "${cf_tst_cflags}" \
7113 && cf_fix_cppflags=yes
7115 if test $cf_fix_cppflags = yes ; then
7117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7121 elif test "${cf_tst_cflags}" = "\"'" ; then
7123 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7124 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7134 case $cf_add_cflags in
7136 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7138 CPPFLAGS=`echo "$CPPFLAGS" | \
7139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7145 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7146 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7153 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7154 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7164 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7166 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7167 && test -z "${cf_tst_cflags}" \
7168 && cf_fix_cppflags=no
7173 if test -n "$cf_new_cflags" ; then
7175 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7176 CFLAGS="${CFLAGS}$cf_new_cflags"
7180 if test -n "$cf_new_cppflags" ; then
7182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7183 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7187 if test -n "$cf_new_extra_cppflags" ; then
7189 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7190 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7194 cf_add_libs="$cf_pkgconfig_libs"
7195 # Filter out duplicates - this happens with badly-designed ".pc" files...
7196 for cf_add_1lib in $LIBS
7198 for cf_add_2lib in $cf_add_libs
7200 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7206 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7215 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7216 test -n "$verbose" && echo " found package libpcre" 1>&6
7218 echo "${as_me:-configure}:7218: testing found package libpcre ..." 1>&5
7220 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7221 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7222 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7224 echo "${as_me:-configure}:7224: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7226 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7228 echo "${as_me:-configure}:7228: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7233 cf_new_extra_cppflags=
7235 for cf_add_cflags in $cf_pkgconfig_incs
7237 case $cf_fix_cppflags in
7239 case $cf_add_cflags in
7240 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7241 case $cf_add_cflags in
7243 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7245 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7246 && test -z "${cf_tst_cflags}" \
7247 && cf_fix_cppflags=yes
7249 if test $cf_fix_cppflags = yes ; then
7251 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7252 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7255 elif test "${cf_tst_cflags}" = "\"'" ; then
7257 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7258 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7268 case $cf_add_cflags in
7270 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7272 CPPFLAGS=`echo "$CPPFLAGS" | \
7273 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7274 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7279 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7280 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7287 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7288 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7295 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7296 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7298 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7300 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7301 && test -z "${cf_tst_cflags}" \
7302 && cf_fix_cppflags=no
7307 if test -n "$cf_new_cflags" ; then
7309 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7310 CFLAGS="${CFLAGS}$cf_new_cflags"
7314 if test -n "$cf_new_cppflags" ; then
7316 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7317 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7321 if test -n "$cf_new_extra_cppflags" ; then
7323 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7324 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7328 cf_add_libs="$cf_pkgconfig_libs"
7329 # Filter out duplicates - this happens with badly-designed ".pc" files...
7330 for cf_add_1lib in $LIBS
7332 for cf_add_2lib in $cf_add_libs
7334 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7340 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7349 { { echo "$as_me:7349: error: Cannot find PCRE2 library" >&5
7350 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7351 { (exit 1); exit 1; }; }
7356 cat >>confdefs.h <<\EOF
7357 #define HAVE_LIB_PCRE2 1
7360 # if pkgconfig gave no results, look for the libraries directly
7362 (*pcre2-posix*|*pcreposix*)
7365 echo "$as_me:7365: checking for regcomp in -lpcre2-posix" >&5
7366 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7367 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lpcre2-posix $LIBS"
7372 cat >conftest.$ac_ext <<_ACEOF
7373 #line 7373 "configure"
7374 #include "confdefs.h"
7376 /* Override any gcc2 internal prototype to avoid an error. */
7380 /* We use char because int might match the return type of a gcc2
7381 builtin and then its argument prototype would still apply. */
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (eval echo "$as_me:7392: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7395 echo "$as_me:7395: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:7398: \"$ac_try\"") >&5
7401 echo "$as_me:7401: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_cv_lib_pcre2_posix_regcomp=yes
7405 echo "$as_me: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 ac_cv_lib_pcre2_posix_regcomp=no
7409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410 LIBS=$ac_check_lib_save_LIBS
7412 echo "$as_me:7412: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7413 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7414 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7416 cf_add_libs="-lpcre2-posix"
7417 # Filter out duplicates - this happens with badly-designed ".pc" files...
7418 for cf_add_1lib in $LIBS
7420 for cf_add_2lib in $cf_add_libs
7422 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7428 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7433 echo "$as_me:7433: checking for regcomp in -lpcreposix" >&5
7434 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7435 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 ac_check_lib_save_LIBS=$LIBS
7439 LIBS="-lpcreposix $LIBS"
7440 cat >conftest.$ac_ext <<_ACEOF
7441 #line 7441 "configure"
7442 #include "confdefs.h"
7444 /* Override any gcc2 internal prototype to avoid an error. */
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:7460: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>&5
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -s conftest$ac_exeext'
7466 { (eval echo "$as_me:7466: \"$ac_try\"") >&5
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 ac_cv_lib_pcreposix_regcomp=yes
7473 echo "$as_me: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 ac_cv_lib_pcreposix_regcomp=no
7477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7478 LIBS=$ac_check_lib_save_LIBS
7480 echo "$as_me:7480: result: $ac_cv_lib_pcreposix_regcomp" >&5
7481 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7482 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7484 cf_add_libs="-lpcreposix"
7485 # Filter out duplicates - this happens with badly-designed ".pc" files...
7486 for cf_add_1lib in $LIBS
7488 for cf_add_2lib in $cf_add_libs
7490 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7496 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7501 { { echo "$as_me:7501: error: Cannot find PCRE2 POSIX library" >&5
7502 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7503 { (exit 1); exit 1; }; }
7511 # either way, check for the library header files
7513 for ac_header in pcre2-posix.h pcreposix.h
7515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7516 echo "$as_me:7516: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 #line 7522 "configure"
7523 #include "confdefs.h"
7524 #include <$ac_header>
7526 if { (eval echo "$as_me:7526: \"$ac_cpp conftest.$ac_ext\"") >&5
7527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7529 egrep -v '^ *\+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:7532: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev/null; then
7534 if test -s conftest.err; then
7535 ac_cpp_err=$ac_c_preproc_warn_flag
7542 if test -z "$ac_cpp_err"; then
7543 eval "$as_ac_Header=yes"
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 eval "$as_ac_Header=no"
7549 rm -f conftest.err conftest.$ac_ext
7551 echo "$as_me:7551: result: `eval echo '${'$as_ac_Header'}'`" >&5
7552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554 cat >>confdefs.h <<EOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7563 # not everyone has "test -c"
7564 if test -c /dev/sysmouse 2>/dev/null ; then
7565 echo "$as_me:7565: checking if you want to use sysmouse" >&5
7566 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7568 # Check whether --with-sysmouse or --without-sysmouse was given.
7569 if test "${with_sysmouse+set}" = set; then
7570 withval="$with_sysmouse"
7571 cf_with_sysmouse=$withval
7573 cf_with_sysmouse=maybe
7575 if test "$cf_with_sysmouse" != no ; then
7576 cat >conftest.$ac_ext <<_ACEOF
7577 #line 7577 "configure"
7578 #include "confdefs.h"
7580 #include <osreldate.h>
7581 #if (__FreeBSD_version >= 400017)
7582 #include <sys/consio.h>
7583 #include <sys/fbio.h>
7585 #include <machine/console.h>
7592 struct mouse_info the_mouse;
7593 ioctl(0, CONS_MOUSECTL, &the_mouse);
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:7600: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>&5
7603 echo "$as_me:7603: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:7606: \"$ac_try\"") >&5
7609 echo "$as_me:7609: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 cf_with_sysmouse=yes
7613 echo "$as_me: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7617 rm -f conftest.$ac_objext conftest.$ac_ext
7619 echo "$as_me:7619: result: $cf_with_sysmouse" >&5
7620 echo "${ECHO_T}$cf_with_sysmouse" >&6
7621 test "$cf_with_sysmouse" = yes &&
7622 cat >>confdefs.h <<\EOF
7623 #define USE_SYSMOUSE 1
7628 # pretend that ncurses==ncursesw==ncursest
7629 echo "$as_me:7629: checking if you want to disable library suffixes" >&5
7630 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7632 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7633 if test "${enable_lib_suffixes+set}" = set; then
7634 enableval="$enable_lib_suffixes"
7635 test "$enableval" != no && enableval=yes
7636 if test "$enableval" != "yes" ; then
7637 disable_lib_suffixes=yes
7639 disable_lib_suffixes=no
7643 disable_lib_suffixes=no
7646 echo "$as_me:7646: result: $disable_lib_suffixes" >&5
7647 echo "${ECHO_T}$disable_lib_suffixes" >&6
7649 ### If we're building with rpath, try to link non-standard libs that way too.
7650 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7652 echo "$as_me:7652: checking if rpath-hack should be disabled" >&5
7653 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7655 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7656 if test "${enable_rpath_hack+set}" = set; then
7657 enableval="$enable_rpath_hack"
7658 test "$enableval" != no && enableval=yes
7659 if test "$enableval" != "yes" ; then
7660 cf_disable_rpath_hack=yes
7662 cf_disable_rpath_hack=no
7666 cf_disable_rpath_hack=no
7669 echo "$as_me:7669: result: $cf_disable_rpath_hack" >&5
7670 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7671 if test "$cf_disable_rpath_hack" = no ; then
7673 echo "$as_me:7673: checking for updated LDFLAGS" >&5
7674 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7675 if test -n "$LD_RPATH_OPT" ; then
7676 echo "$as_me:7676: result: maybe" >&5
7677 echo "${ECHO_T}maybe" >&6
7681 # Extract the first word of "$ac_prog", so it can be a program name with args.
7682 set dummy $ac_prog; ac_word=$2
7683 echo "$as_me:7683: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7685 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 if test -n "$cf_ldd_prog"; then
7689 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7691 ac_save_IFS=$IFS; IFS=$ac_path_separator
7693 for ac_dir in $ac_dummy; do
7695 test -z "$ac_dir" && ac_dir=.
7696 $as_executable_p "$ac_dir/$ac_word" || continue
7697 ac_cv_prog_cf_ldd_prog="$ac_prog"
7698 echo "$as_me:7698: found $ac_dir/$ac_word" >&5
7704 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7705 if test -n "$cf_ldd_prog"; then
7706 echo "$as_me:7706: result: $cf_ldd_prog" >&5
7707 echo "${ECHO_T}$cf_ldd_prog" >&6
7709 echo "$as_me:7709: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7713 test -n "$cf_ldd_prog" && break
7715 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7717 cf_rpath_list="/usr/lib /lib"
7718 if test "$cf_ldd_prog" != no
7722 cat >conftest.$ac_ext <<_ACEOF
7723 #line 7723 "configure"
7724 #include "confdefs.h"
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:7735: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:7738: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:7741: \"$ac_try\"") >&5
7744 echo "$as_me:7744: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7747 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754 # If we passed the link-test, but get a "not found" on a given library,
7755 # this could be due to inept reconfiguration of gcc to make it only
7756 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7757 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7758 # /usr/local libraries.
7759 if test -n "$cf_rpath_oops"
7761 for cf_rpath_src in $cf_rpath_oops
7763 for cf_rpath_dir in \
7768 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7770 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7772 echo "${as_me:-configure}:7772: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7774 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7782 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7784 echo "${as_me:-configure}:7784: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7786 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7788 echo "${as_me:-configure}:7788: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7791 for cf_rpath_src in $LDFLAGS
7793 case $cf_rpath_src in
7796 # check if this refers to a directory which we will ignore
7798 if test -n "$cf_rpath_list"
7800 for cf_rpath_item in $cf_rpath_list
7802 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7810 if test "$cf_rpath_skip" = no
7812 # transform the option
7813 if test "$LD_RPATH_OPT" = "-R " ; then
7814 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7816 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7819 # if we have not already added this, add it now
7820 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7821 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7823 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7825 echo "${as_me:-configure}:7825: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7827 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7832 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7834 LDFLAGS=$cf_rpath_dst
7836 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7838 echo "${as_me:-configure}:7838: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7840 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7842 echo "${as_me:-configure}:7842: testing ...checking LIBS $LIBS ..." 1>&5
7845 for cf_rpath_src in $LIBS
7847 case $cf_rpath_src in
7850 # check if this refers to a directory which we will ignore
7852 if test -n "$cf_rpath_list"
7854 for cf_rpath_item in $cf_rpath_list
7856 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7864 if test "$cf_rpath_skip" = no
7866 # transform the option
7867 if test "$LD_RPATH_OPT" = "-R " ; then
7868 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7870 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7873 # if we have not already added this, add it now
7874 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7875 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7877 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7879 echo "${as_me:-configure}:7879: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7881 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7886 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7890 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7892 echo "${as_me:-configure}:7892: testing ...checked LIBS $LIBS ..." 1>&5
7894 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7896 echo "${as_me:-configure}:7896: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7899 echo "$as_me:7899: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7907 ###############################################################################
7909 ### use option --with-extra-suffix to append suffix to headers and libraries
7910 echo "$as_me:7910: checking if you wish to append extra suffix to header/library paths" >&5
7911 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7914 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7915 if test "${with_extra_suffix+set}" = set; then
7916 withval="$with_extra_suffix"
7921 EXTRA_SUFFIX=$cf_cv_abi_version
7924 EXTRA_SUFFIX=$withval
7929 echo "$as_me:7929: result: $EXTRA_SUFFIX" >&5
7930 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7932 ### use option --disable-overwrite to leave out the link to -lcurses
7933 echo "$as_me:7933: checking if you wish to install ncurses overwriting curses" >&5
7934 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7936 # Check whether --enable-overwrite or --disable-overwrite was given.
7937 if test "${enable_overwrite+set}" = set; then
7938 enableval="$enable_overwrite"
7939 with_overwrite=$enableval
7941 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7943 echo "$as_me:7943: result: $with_overwrite" >&5
7944 echo "${ECHO_T}$with_overwrite" >&6
7946 echo "$as_me:7946: checking if external terminfo-database is used" >&5
7947 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7949 # Check whether --enable-database or --disable-database was given.
7950 if test "${enable_database+set}" = set; then
7951 enableval="$enable_database"
7952 use_database=$enableval
7956 echo "$as_me:7956: result: $use_database" >&5
7957 echo "${ECHO_T}$use_database" >&6
7961 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7964 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7968 NCURSES_USE_DATABASE=0
7969 if test "$use_database" != no ; then
7970 NCURSES_USE_DATABASE=1
7972 echo "$as_me:7972: checking which terminfo source-file will be installed" >&5
7973 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7975 # Check whether --with-database or --without-database was given.
7976 if test "${with_database+set}" = set; then
7977 withval="$with_database"
7978 TERMINFO_SRC=$withval
7980 echo "$as_me:7980: result: $TERMINFO_SRC" >&5
7981 echo "${ECHO_T}$TERMINFO_SRC" >&6
7983 echo "$as_me:7983: checking whether to use hashed database instead of directory/tree" >&5
7984 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7986 # Check whether --with-hashed-db or --without-hashed-db was given.
7987 if test "${with_hashed_db+set}" = set; then
7988 withval="$with_hashed_db"
7993 echo "$as_me:7993: result: $with_hashed_db" >&5
7994 echo "${ECHO_T}$with_hashed_db" >&6
7999 echo "$as_me:7999: checking for list of fallback descriptions" >&5
8000 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8002 # Check whether --with-fallbacks or --without-fallbacks was given.
8003 if test "${with_fallbacks+set}" = set; then
8004 withval="$with_fallbacks"
8005 with_fallback=$withval
8009 echo "$as_me:8009: result: $with_fallback" >&5
8010 echo "${ECHO_T}$with_fallback" >&6
8012 case ".$with_fallback" in
8017 { echo "$as_me:8017: WARNING: expected a list of terminal descriptions" >&5
8018 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8021 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8026 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8028 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8029 # tree for generating the terminal descriptions that will be compiled into the
8030 # library. If your toolchain is old, it may not handle current terminal
8031 # databases. Use configure-options to point to the tools which will be used,
8032 # rather than the first ones found on the $PATH.
8033 if test -n "$FALLBACK_LIST"
8036 # Check whether --with-tic-path or --without-tic-path was given.
8037 if test "${with_tic_path+set}" = set; then
8038 withval="$with_tic_path"
8039 echo "$as_me:8039: checking for tic program for fallbacks" >&5
8040 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8042 echo "$as_me:8042: result: $TIC" >&5
8043 echo "${ECHO_T}$TIC" >&6
8045 if test "x$prefix" != xNONE; then
8046 cf_path_syntax="$prefix"
8048 cf_path_syntax="$ac_default_prefix"
8056 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8058 (.\${*prefix}*|.\${*dir}*)
8062 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8067 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8070 { { echo "$as_me:8070: error: expected a pathname, not \"$TIC\"" >&5
8071 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8072 { (exit 1); exit 1; }; }
8078 test -z "$TIC" && TIC=tic
8079 for ac_prog in $TIC tic
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 echo "$as_me:8083: checking for $ac_word" >&5
8084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8085 if test "${ac_cv_path_TIC+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8093 ac_save_IFS=$IFS; IFS=$ac_path_separator
8094 ac_dummy="$PATH:/usr/local/ncurses/bin"
8095 for ac_dir in $ac_dummy; do
8097 test -z "$ac_dir" && ac_dir=.
8098 if $as_executable_p "$ac_dir/$ac_word"; then
8099 ac_cv_path_TIC="$ac_dir/$ac_word"
8100 echo "$as_me:8100: found $ac_dir/$ac_word" >&5
8110 if test -n "$TIC"; then
8111 echo "$as_me:8111: result: $TIC" >&5
8112 echo "${ECHO_T}$TIC" >&6
8114 echo "$as_me:8114: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8118 test -n "$TIC" && break
8120 test -n "$TIC" || TIC="$TIC"
8124 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8125 for cf_temp in $ac_cv_path_TIC
8127 if test -z "$cf_path_prog" ; then
8128 if test "$with_full_paths" = yes ; then
8130 if test "x$prefix" != xNONE; then
8131 cf_path_syntax="$prefix"
8133 cf_path_syntax="$ac_default_prefix"
8141 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8143 (.\${*prefix}*|.\${*dir}*)
8144 eval cf_temp="$cf_temp"
8147 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8152 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8159 cf_path_prog="$cf_temp"
8161 cf_path_prog="`basename $cf_temp`"
8163 elif test -z "$cf_path_args" ; then
8164 cf_path_args="$cf_temp"
8166 cf_path_args="$cf_path_args $cf_temp"
8171 if test -n "$cf_path_prog" ; then
8173 echo "${as_me:-configure}:8173: testing defining path for ${cf_path_prog} ..." 1>&5
8175 cat >>confdefs.h <<EOF
8176 #define TIC_PATH "$cf_path_prog"
8179 test -n "$cf_path_args" &&
8180 cat >>confdefs.h <<EOF
8181 #define TIC_ARGS "$cf_path_args"
8188 { echo "$as_me:8188: WARNING: no tic program found for fallbacks" >&5
8189 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8194 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8195 if test "${with_infocmp_path+set}" = set; then
8196 withval="$with_infocmp_path"
8197 echo "$as_me:8197: checking for infocmp program for fallbacks" >&5
8198 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8200 echo "$as_me:8200: result: $INFOCMP" >&5
8201 echo "${ECHO_T}$INFOCMP" >&6
8203 if test "x$prefix" != xNONE; then
8204 cf_path_syntax="$prefix"
8206 cf_path_syntax="$ac_default_prefix"
8214 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8216 (.\${*prefix}*|.\${*dir}*)
8217 eval INFOCMP="$INFOCMP"
8220 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8225 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8228 { { echo "$as_me:8228: error: expected a pathname, not \"$INFOCMP\"" >&5
8229 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8230 { (exit 1); exit 1; }; }
8236 test -z "$INFOCMP" && INFOCMP=infocmp
8237 for ac_prog in $INFOCMP infocmp
8239 # Extract the first word of "$ac_prog", so it can be a program name with args.
8240 set dummy $ac_prog; ac_word=$2
8241 echo "$as_me:8241: checking for $ac_word" >&5
8242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8243 if test "${ac_cv_path_INFOCMP+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8251 ac_save_IFS=$IFS; IFS=$ac_path_separator
8252 ac_dummy="$PATH:/usr/local/ncurses/bin"
8253 for ac_dir in $ac_dummy; do
8255 test -z "$ac_dir" && ac_dir=.
8256 if $as_executable_p "$ac_dir/$ac_word"; then
8257 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8258 echo "$as_me:8258: found $ac_dir/$ac_word" >&5
8266 INFOCMP=$ac_cv_path_INFOCMP
8268 if test -n "$INFOCMP"; then
8269 echo "$as_me:8269: result: $INFOCMP" >&5
8270 echo "${ECHO_T}$INFOCMP" >&6
8272 echo "$as_me:8272: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8276 test -n "$INFOCMP" && break
8278 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8282 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8283 for cf_temp in $ac_cv_path_INFOCMP
8285 if test -z "$cf_path_prog" ; then
8286 if test "$with_full_paths" = yes ; then
8288 if test "x$prefix" != xNONE; then
8289 cf_path_syntax="$prefix"
8291 cf_path_syntax="$ac_default_prefix"
8299 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8301 (.\${*prefix}*|.\${*dir}*)
8302 eval cf_temp="$cf_temp"
8305 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8310 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8317 cf_path_prog="$cf_temp"
8319 cf_path_prog="`basename $cf_temp`"
8321 elif test -z "$cf_path_args" ; then
8322 cf_path_args="$cf_temp"
8324 cf_path_args="$cf_path_args $cf_temp"
8329 if test -n "$cf_path_prog" ; then
8331 echo "${as_me:-configure}:8331: testing defining path for ${cf_path_prog} ..." 1>&5
8333 cat >>confdefs.h <<EOF
8334 #define INFOCMP_PATH "$cf_path_prog"
8337 test -n "$cf_path_args" &&
8338 cat >>confdefs.h <<EOF
8339 #define INFOCMP_ARGS "$cf_path_args"
8344 if test -z "$INFOCMP"
8346 { echo "$as_me:8346: WARNING: no infocmp program found for fallbacks" >&5
8347 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8354 : ${INFOCMP:=infocmp}
8357 echo "$as_me:8357: checking if you want modern xterm or antique" >&5
8358 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8360 # Check whether --with-xterm-new or --without-xterm-new was given.
8361 if test "${with_xterm_new+set}" = set; then
8362 withval="$with_xterm_new"
8363 with_xterm_new=$withval
8367 case $with_xterm_new in
8368 (no) with_xterm_new=xterm-old;;
8369 (*) with_xterm_new=xterm-new;;
8371 echo "$as_me:8371: result: $with_xterm_new" >&5
8372 echo "${ECHO_T}$with_xterm_new" >&6
8373 WHICH_XTERM=$with_xterm_new
8375 echo "$as_me:8375: checking if xterm backspace sends BS or DEL" >&5
8376 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8378 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8379 if test "${with_xterm_kbs+set}" = set; then
8380 withval="$with_xterm_kbs"
8381 with_xterm_kbs=$withval
8385 case x$with_xterm_kbs in
8386 (xyes|xno|xBS|xbs|x8)
8393 with_xterm_kbs=$withval
8396 echo "$as_me:8396: result: $with_xterm_kbs" >&5
8397 echo "${ECHO_T}$with_xterm_kbs" >&6
8398 XTERM_KBS=$with_xterm_kbs
8401 if test "$use_database" = no ; then
8402 TERMINFO="${datadir}/terminfo"
8406 echo "$as_me:8406: checking for list of terminfo directories" >&5
8407 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8409 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8410 if test "${with_terminfo_dirs+set}" = set; then
8411 withval="$with_terminfo_dirs"
8414 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8416 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8418 for cf_src_path in $withval
8421 if test "x$prefix" != xNONE; then
8422 cf_path_syntax="$prefix"
8424 cf_path_syntax="$ac_default_prefix"
8427 case ".$cf_src_path" in
8432 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8434 (.\${*prefix}*|.\${*dir}*)
8435 eval cf_src_path="$cf_src_path"
8436 case ".$cf_src_path" in
8438 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8443 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8446 { { echo "$as_me:8446: error: expected a pathname, not \"$cf_src_path\"" >&5
8447 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8448 { (exit 1); exit 1; }; }
8452 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8453 cf_dst_path="${cf_dst_path}${cf_src_path}"
8457 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8458 # so we have to check/work around. We do prefer the result of "eval"...
8459 eval cf_dst_eval="$cf_dst_path"
8460 case "x$cf_dst_eval" in
8462 TERMINFO_DIRS=$cf_dst_path
8465 TERMINFO_DIRS="$cf_dst_eval"
8469 echo "$as_me:8469: result: $TERMINFO_DIRS" >&5
8470 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8471 test -n "$TERMINFO_DIRS" &&
8472 cat >>confdefs.h <<EOF
8473 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8476 case "x$TERMINFO" in
8478 { echo "$as_me:8478: WARNING: ignoring non-directory/file TERMINFO value" >&5
8479 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8484 echo "$as_me:8484: checking for default terminfo directory" >&5
8485 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8487 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8488 if test "${with_default_terminfo_dir+set}" = set; then
8489 withval="$with_default_terminfo_dir"
8492 withval="${TERMINFO:-${datadir}/terminfo}"
8493 fi; if test -n "${datadir}/terminfo" ; then
8495 if test "x$prefix" != xNONE; then
8496 cf_path_syntax="$prefix"
8498 cf_path_syntax="$ac_default_prefix"
8506 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8508 (.\${*prefix}*|.\${*dir}*)
8509 eval withval="$withval"
8512 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8517 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8520 { { echo "$as_me:8520: error: expected a pathname, not \"$withval\"" >&5
8521 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8522 { (exit 1); exit 1; }; }
8527 eval TERMINFO="$withval"
8529 echo "$as_me:8529: result: $TERMINFO" >&5
8530 echo "${ECHO_T}$TERMINFO" >&6
8532 cat >>confdefs.h <<EOF
8533 #define TERMINFO "$TERMINFO"
8538 ### use option --disable-big-core to make tic run on small machines
8539 ### We need 4Mb, check if we can allocate 50% more than that.
8540 echo "$as_me:8540: checking if big-core option selected" >&5
8541 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8543 # Check whether --enable-big-core or --disable-big-core was given.
8544 if test "${enable_big_core+set}" = set; then
8545 enableval="$enable_big_core"
8546 with_big_core=$enableval
8548 if test "$cross_compiling" = yes; then
8551 cat >conftest.$ac_ext <<_ACEOF
8552 #line 8552 "configure"
8553 #include "confdefs.h"
8558 unsigned long n = 6000000L;
8559 char *s = malloc(n);
8562 ${cf_cv_main_return:-return}(s == 0);
8565 rm -f conftest$ac_exeext
8566 if { (eval echo "$as_me:8566: \"$ac_link\"") >&5
8567 (eval $ac_link) 2>&5
8569 echo "$as_me:8569: \$? = $ac_status" >&5
8570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8571 { (eval echo "$as_me:8571: \"$ac_try\"") >&5
8574 echo "$as_me:8574: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8578 echo "$as_me: program exited with status $ac_status" >&5
8579 echo "$as_me: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8583 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8586 echo "$as_me:8586: result: $with_big_core" >&5
8587 echo "${ECHO_T}$with_big_core" >&6
8588 test "x$with_big_core" = "xyes" &&
8589 cat >>confdefs.h <<\EOF
8590 #define HAVE_BIG_CORE 1
8593 ### ISO C only guarantees 512-char strings, we have tables which load faster
8594 ### when constructed using "big" strings. More than the C compiler, the awk
8595 ### program is a limit on most vendor UNIX systems. Check that we can build.
8596 echo "$as_me:8596: checking if big-strings option selected" >&5
8597 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8599 # Check whether --enable-big-strings or --disable-big-strings was given.
8600 if test "${enable_big_strings+set}" = set; then
8601 enableval="$enable_big_strings"
8602 with_big_strings=$enableval
8607 eval with_big_strings=no
8610 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8611 | $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
8612 eval with_big_strings=yes
8614 eval with_big_strings=no
8620 echo "$as_me:8620: result: $with_big_strings" >&5
8621 echo "${ECHO_T}$with_big_strings" >&6
8624 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8626 ### use option --enable-termcap to compile in the termcap fallback support
8627 echo "$as_me:8627: checking if you want termcap-fallback support" >&5
8628 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8630 # Check whether --enable-termcap or --disable-termcap was given.
8631 if test "${enable_termcap+set}" = set; then
8632 enableval="$enable_termcap"
8633 with_termcap=$enableval
8637 echo "$as_me:8637: result: $with_termcap" >&5
8638 echo "${ECHO_T}$with_termcap" >&6
8640 NCURSES_USE_TERMCAP=0
8641 if test "x$with_termcap" != "xyes" ; then
8642 if test "$use_database" = no ; then
8643 if test -z "$with_fallback" ; then
8644 { { echo "$as_me:8644: error: You have disabled the database w/o specifying fallbacks" >&5
8645 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8646 { (exit 1); exit 1; }; }
8650 cat >>confdefs.h <<\EOF
8651 #define PURE_TERMINFO 1
8656 if test "$with_ticlib" != no ; then
8657 { { echo "$as_me:8657: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8658 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8659 { (exit 1); exit 1; }; }
8662 NCURSES_USE_TERMCAP=1
8663 echo "$as_me:8663: checking for list of termcap files" >&5
8664 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8666 # Check whether --with-termpath or --without-termpath was given.
8667 if test "${with_termpath+set}" = set; then
8668 withval="$with_termpath"
8671 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
8673 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8675 for cf_src_path in $withval
8678 if test "x$prefix" != xNONE; then
8679 cf_path_syntax="$prefix"
8681 cf_path_syntax="$ac_default_prefix"
8684 case ".$cf_src_path" in
8689 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8691 (.\${*prefix}*|.\${*dir}*)
8692 eval cf_src_path="$cf_src_path"
8693 case ".$cf_src_path" in
8695 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8700 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8703 { { echo "$as_me:8703: error: expected a pathname, not \"$cf_src_path\"" >&5
8704 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8705 { (exit 1); exit 1; }; }
8709 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8710 cf_dst_path="${cf_dst_path}${cf_src_path}"
8714 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8715 # so we have to check/work around. We do prefer the result of "eval"...
8716 eval cf_dst_eval="$cf_dst_path"
8717 case "x$cf_dst_eval" in
8719 TERMPATH=$cf_dst_path
8722 TERMPATH="$cf_dst_eval"
8726 echo "$as_me:8726: result: $TERMPATH" >&5
8727 echo "${ECHO_T}$TERMPATH" >&6
8728 test -n "$TERMPATH" &&
8729 cat >>confdefs.h <<EOF
8730 #define TERMPATH "$TERMPATH"
8733 ### use option --enable-getcap to use a hacked getcap for reading termcaps
8734 echo "$as_me:8734: checking if fast termcap-loader is needed" >&5
8735 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
8737 # Check whether --enable-getcap or --disable-getcap was given.
8738 if test "${enable_getcap+set}" = set; then
8739 enableval="$enable_getcap"
8740 with_getcap=$enableval
8744 echo "$as_me:8744: result: $with_getcap" >&5
8745 echo "${ECHO_T}$with_getcap" >&6
8746 test "x$with_getcap" = "xyes" &&
8747 cat >>confdefs.h <<\EOF
8748 #define USE_GETCAP 1
8751 echo "$as_me:8751: checking if translated termcaps will be cached in ~/.terminfo" >&5
8752 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
8754 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
8755 if test "${enable_getcap_cache+set}" = set; then
8756 enableval="$enable_getcap_cache"
8757 with_getcap_cache=$enableval
8759 with_getcap_cache=no
8761 echo "$as_me:8761: result: $with_getcap_cache" >&5
8762 echo "${ECHO_T}$with_getcap_cache" >&6
8763 test "x$with_getcap_cache" = "xyes" &&
8764 cat >>confdefs.h <<\EOF
8765 #define USE_GETCAP_CACHE 1
8770 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
8771 echo "$as_me:8771: checking if ~/.terminfo is wanted" >&5
8772 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
8774 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
8775 if test "${enable_home_terminfo+set}" = set; then
8776 enableval="$enable_home_terminfo"
8777 with_home_terminfo=$enableval
8779 with_home_terminfo=yes
8781 echo "$as_me:8781: result: $with_home_terminfo" >&5
8782 echo "${ECHO_T}$with_home_terminfo" >&6
8783 test "x$with_home_terminfo" = "xyes" &&
8784 cat >>confdefs.h <<\EOF
8785 #define USE_HOME_TERMINFO 1
8788 echo "$as_me:8788: checking if you want to use restricted environment when running as root" >&5
8789 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
8791 # Check whether --enable-root-environ or --disable-root-environ was given.
8792 if test "${enable_root_environ+set}" = set; then
8793 enableval="$enable_root_environ"
8794 with_root_environ=$enableval
8796 with_root_environ=yes
8798 echo "$as_me:8798: result: $with_root_environ" >&5
8799 echo "${ECHO_T}$with_root_environ" >&6
8800 test "x$with_root_environ" = xyes &&
8801 cat >>confdefs.h <<\EOF
8802 #define USE_ROOT_ENVIRON 1
8805 ### Use option --enable-symlinks to make tic use symlinks, not hard links
8806 ### to reduce storage requirements for the terminfo database.
8812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8813 echo "$as_me:8813: checking for $ac_header" >&5
8814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8819 #line 8819 "configure"
8820 #include "confdefs.h"
8821 #include <$ac_header>
8823 if { (eval echo "$as_me:8823: \"$ac_cpp conftest.$ac_ext\"") >&5
8824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8826 egrep -v '^ *\+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:8829: \$? = $ac_status" >&5
8830 (exit $ac_status); } >/dev/null; then
8831 if test -s conftest.err; then
8832 ac_cpp_err=$ac_c_preproc_warn_flag
8839 if test -z "$ac_cpp_err"; then
8840 eval "$as_ac_Header=yes"
8842 echo "$as_me: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 eval "$as_ac_Header=no"
8846 rm -f conftest.err conftest.$ac_ext
8848 echo "$as_me:8848: result: `eval echo '${'$as_ac_Header'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8851 cat >>confdefs.h <<EOF
8852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8863 echo "$as_me:8863: checking for $ac_func" >&5
8864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8865 if eval "test \"\${$as_ac_var+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 cat >conftest.$ac_ext <<_ACEOF
8869 #line 8869 "configure"
8870 #include "confdefs.h"
8871 #define $ac_func autoconf_temporary
8872 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char $ac_func (void);
8887 /* The GNU C library defines stubs for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8891 #error found stub for $ac_func
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:8900: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>&5
8903 echo "$as_me:8903: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:8906: \"$ac_try\"") >&5
8909 echo "$as_me:8909: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 eval "$as_ac_var=yes"
8913 echo "$as_me: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8915 eval "$as_ac_var=no"
8917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8919 echo "$as_me:8919: result: `eval echo '${'$as_ac_var'}'`" >&5
8920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8921 if test `eval echo '${'$as_ac_var'}'` = yes; then
8922 cat >>confdefs.h <<EOF
8923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8929 if test "$cross_compiling" = yes ; then
8935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8936 echo "$as_me:8936: checking for $ac_func" >&5
8937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8938 if eval "test \"\${$as_ac_var+set}\" = set"; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line 8942 "configure"
8943 #include "confdefs.h"
8944 #define $ac_func autoconf_temporary
8945 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8952 /* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8954 char $ac_func (void);
8960 /* The GNU C library defines stubs for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8964 #error found stub for $ac_func
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:8973: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8976 echo "$as_me:8976: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:8979: \"$ac_try\"") >&5
8982 echo "$as_me:8982: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 eval "$as_ac_var=yes"
8986 echo "$as_me: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8988 eval "$as_ac_var=no"
8990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8992 echo "$as_me:8992: result: `eval echo '${'$as_ac_var'}'`" >&5
8993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8994 if test `eval echo '${'$as_ac_var'}'` = yes; then
8995 cat >>confdefs.h <<EOF
8996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9003 echo "$as_me:9003: checking if link/symlink functions work" >&5
9004 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9005 if test "${cf_cv_link_funcs+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 for cf_func in link symlink ; do
9011 if test "$cross_compiling" = yes; then
9013 eval 'ac_cv_func_'$cf_func'=error'
9015 cat >conftest.$ac_ext <<_ACEOF
9016 #line 9016 "configure"
9017 #include "confdefs.h"
9019 #include <sys/types.h>
9020 #include <sys/stat.h>
9021 #ifdef HAVE_UNISTD_H
9027 char *src = "config.log";
9028 char *dst = "conftest.chk";
9033 fail = ($cf_func("config.log", "conftest.chk") < 0)
9034 || (stat(dst, &dst_sb) < 0)
9035 || (dst_sb.st_mtime != src_sb.st_mtime);
9041 ${cf_cv_main_return:-return} (fail);
9045 rm -f conftest$ac_exeext
9046 if { (eval echo "$as_me:9046: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>&5
9049 echo "$as_me:9049: \$? = $ac_status" >&5
9050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9051 { (eval echo "$as_me:9051: \"$ac_try\"") >&5
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9057 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9058 eval 'ac_cv_func_'$cf_func'=yes'
9060 echo "$as_me: program exited with status $ac_status" >&5
9061 echo "$as_me: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9064 eval 'ac_cv_func_'$cf_func'=no'
9066 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9069 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9072 echo "$as_me:9072: result: $cf_cv_link_funcs" >&5
9073 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9074 test "$ac_cv_func_link" = yes &&
9075 cat >>confdefs.h <<\EOF
9079 test "$ac_cv_func_symlink" = yes &&
9080 cat >>confdefs.h <<\EOF
9081 #define HAVE_SYMLINK 1
9089 # soft links (symbolic links) are useful for some systems where hard links do
9090 # not work, or to make it simpler to copy terminfo trees around.
9091 if test "x$ac_cv_func_symlink" = xyes ; then
9092 echo "$as_me:9092: checking if tic should use symbolic links" >&5
9093 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9095 # Check whether --enable-symlinks or --disable-symlinks was given.
9096 if test "${enable_symlinks+set}" = set; then
9097 enableval="$enable_symlinks"
9098 with_symlinks=$enableval
9102 echo "$as_me:9102: result: $with_symlinks" >&5
9103 echo "${ECHO_T}$with_symlinks" >&6
9106 # If we have hard links and did not choose to use soft links instead, there is
9107 # no reason to make this choice optional - use the hard links.
9108 if test "$with_symlinks" = no ; then
9109 echo "$as_me:9109: checking if tic should use hard links" >&5
9110 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9111 if test "x$ac_cv_func_link" = xyes ; then
9116 echo "$as_me:9116: result: $with_links" >&5
9117 echo "${ECHO_T}$with_links" >&6
9120 test "x$with_links" = xyes &&
9121 cat >>confdefs.h <<\EOF
9125 test "x$with_symlinks" = xyes &&
9126 cat >>confdefs.h <<\EOF
9127 #define USE_SYMLINKS 1
9130 ### use option --enable-broken-linker to force on use of broken-linker support
9131 echo "$as_me:9131: checking if you want broken-linker support code" >&5
9132 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9134 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9135 if test "${enable_broken_linker+set}" = set; then
9136 enableval="$enable_broken_linker"
9137 with_broken_linker=$enableval
9139 with_broken_linker=${BROKEN_LINKER:-no}
9141 echo "$as_me:9141: result: $with_broken_linker" >&5
9142 echo "${ECHO_T}$with_broken_linker" >&6
9145 if test "x$with_broken_linker" = xyes ; then
9147 cat >>confdefs.h <<\EOF
9148 #define BROKEN_LINKER 1
9152 elif test "$DFT_LWR_MODEL" = shared ; then
9153 case $cf_cv_system_name in
9156 cat >>confdefs.h <<\EOF
9157 #define BROKEN_LINKER 1
9161 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
9163 echo "${as_me:-configure}:9163: testing cygwin linker is broken anyway ..." 1>&5
9169 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9170 echo "$as_me:9170: checking if tputs should process BSD-style prefix padding" >&5
9171 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9173 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9174 if test "${enable_bsdpad+set}" = set; then
9175 enableval="$enable_bsdpad"
9176 with_bsdpad=$enableval
9180 echo "$as_me:9180: result: $with_bsdpad" >&5
9181 echo "${ECHO_T}$with_bsdpad" >&6
9182 test "x$with_bsdpad" = xyes &&
9183 cat >>confdefs.h <<\EOF
9187 ### use option --enable-widec to turn on use of wide-character support
9196 # Check to define _XOPEN_SOURCE "automatically"
9197 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9199 echo "$as_me:9199: checking if the POSIX test-macros are already defined" >&5
9200 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9201 if test "${cf_cv_posix_visible+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9206 #line 9206 "configure"
9207 #include "confdefs.h"
9213 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9214 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9215 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9216 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9217 #error conflicting symbols found
9224 rm -f conftest.$ac_objext
9225 if { (eval echo "$as_me:9225: \"$ac_compile\"") >&5
9226 (eval $ac_compile) 2>&5
9228 echo "$as_me:9228: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:9231: \"$ac_try\"") >&5
9234 echo "$as_me:9234: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 cf_cv_posix_visible=no
9238 echo "$as_me: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 cf_cv_posix_visible=yes
9242 rm -f conftest.$ac_objext conftest.$ac_ext
9245 echo "$as_me:9245: result: $cf_cv_posix_visible" >&5
9246 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9248 if test "$cf_cv_posix_visible" = no; then
9251 cf_POSIX_C_SOURCE=199506L
9256 cf_xopen_source="-D_ALL_SOURCE"
9262 cf_xopen_source="-D_APPLE_C_SOURCE"
9265 cf_xopen_source="-D_DARWIN_C_SOURCE"
9268 (freebsd*|dragonfly*|midnightbsd*)
9269 # 5.x headers associate
9270 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9271 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9272 cf_POSIX_C_SOURCE=200112L
9274 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9277 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9280 cf_xopen_source="-D_HPUX_SOURCE"
9283 cf_xopen_source="-D_SGI_SOURCE"
9286 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9288 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9290 echo "$as_me:9290: checking if this is the GNU C library" >&5
9291 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9292 if test "${cf_cv_gnu_library+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 cat >conftest.$ac_ext <<_ACEOF
9297 #line 9297 "configure"
9298 #include "confdefs.h"
9299 #include <sys/types.h>
9304 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9306 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9309 # error not GNU C library
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:9316: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>&5
9319 echo "$as_me:9319: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -s conftest.$ac_objext'
9322 { (eval echo "$as_me:9322: \"$ac_try\"") >&5
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 cf_cv_gnu_library=yes
9329 echo "$as_me: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 cf_cv_gnu_library=no
9333 rm -f conftest.$ac_objext conftest.$ac_ext
9336 echo "$as_me:9336: result: $cf_cv_gnu_library" >&5
9337 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9339 if test x$cf_cv_gnu_library = xyes; then
9341 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9342 # was changed to help a little. newlib incorporated the change about 4
9344 echo "$as_me:9344: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9345 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9346 if test "${cf_cv_gnu_library_219+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9353 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line 9356 "configure"
9357 #include "confdefs.h"
9358 #include <sys/types.h>
9363 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9365 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9368 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:9375: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>&5
9378 echo "$as_me:9378: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -s conftest.$ac_objext'
9381 { (eval echo "$as_me:9381: \"$ac_try\"") >&5
9384 echo "$as_me:9384: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9386 cf_cv_gnu_library_219=yes
9388 echo "$as_me: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9390 cf_cv_gnu_library_219=no
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9396 echo "$as_me:9396: result: $cf_cv_gnu_library_219" >&5
9397 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9399 if test "x$cf_cv_gnu_library_219" = xyes; then
9401 echo "$as_me:9401: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9402 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9403 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 cf_new_extra_cppflags=
9412 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9414 case $cf_fix_cppflags in
9416 case $cf_add_cflags in
9417 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9418 case $cf_add_cflags in
9420 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9422 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9423 && test -z "${cf_tst_cflags}" \
9424 && cf_fix_cppflags=yes
9426 if test $cf_fix_cppflags = yes ; then
9428 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9429 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9432 elif test "${cf_tst_cflags}" = "\"'" ; then
9434 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9435 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9445 case $cf_add_cflags in
9447 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9449 CPPFLAGS=`echo "$CPPFLAGS" | \
9450 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9451 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9456 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9457 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9464 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9465 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9472 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9473 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9477 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9478 && test -z "${cf_tst_cflags}" \
9479 && cf_fix_cppflags=no
9484 if test -n "$cf_new_cflags" ; then
9486 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9487 CFLAGS="${CFLAGS}$cf_new_cflags"
9491 if test -n "$cf_new_cppflags" ; then
9493 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9494 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9498 if test -n "$cf_new_extra_cppflags" ; then
9500 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9501 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9505 cat >conftest.$ac_ext <<_ACEOF
9506 #line 9506 "configure"
9507 #include "confdefs.h"
9510 #include <sys/types.h>
9516 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9519 # error GNU C library is too old
9525 rm -f conftest.$ac_objext
9526 if { (eval echo "$as_me:9526: \"$ac_compile\"") >&5
9527 (eval $ac_compile) 2>&5
9529 echo "$as_me:9529: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try='test -s conftest.$ac_objext'
9532 { (eval echo "$as_me:9532: \"$ac_try\"") >&5
9535 echo "$as_me:9535: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 cf_cv_gnu_dftsrc_219=yes
9539 echo "$as_me: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9541 cf_cv_gnu_dftsrc_219=no
9543 rm -f conftest.$ac_objext conftest.$ac_ext
9546 echo "$as_me:9546: result: $cf_cv_gnu_dftsrc_219" >&5
9547 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9548 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9550 cf_cv_gnu_dftsrc_219=maybe
9553 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9555 echo "$as_me:9555: checking if we must define _GNU_SOURCE" >&5
9556 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9557 if test "${cf_cv_gnu_source+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 #line 9562 "configure"
9563 #include "confdefs.h"
9564 #include <sys/types.h>
9569 #ifndef _XOPEN_SOURCE
9570 #error expected _XOPEN_SOURCE to be defined
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:9577: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest.$ac_objext'
9583 { (eval echo "$as_me:9583: \"$ac_try\"") >&5
9586 echo "$as_me:9586: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9597 cf_new_extra_cppflags=
9599 for cf_add_cflags in -D_GNU_SOURCE
9601 case $cf_fix_cppflags in
9603 case $cf_add_cflags in
9604 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9605 case $cf_add_cflags in
9607 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9609 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9610 && test -z "${cf_tst_cflags}" \
9611 && cf_fix_cppflags=yes
9613 if test $cf_fix_cppflags = yes ; then
9615 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9616 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9619 elif test "${cf_tst_cflags}" = "\"'" ; then
9621 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9622 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9632 case $cf_add_cflags in
9634 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9636 CPPFLAGS=`echo "$CPPFLAGS" | \
9637 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9638 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9643 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9644 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9651 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9652 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9664 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9665 && test -z "${cf_tst_cflags}" \
9666 && cf_fix_cppflags=no
9671 if test -n "$cf_new_cflags" ; then
9673 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9674 CFLAGS="${CFLAGS}$cf_new_cflags"
9678 if test -n "$cf_new_cppflags" ; then
9680 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9681 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9685 if test -n "$cf_new_extra_cppflags" ; then
9687 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9688 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9692 cat >conftest.$ac_ext <<_ACEOF
9693 #line 9693 "configure"
9694 #include "confdefs.h"
9695 #include <sys/types.h>
9700 #ifdef _XOPEN_SOURCE
9701 #error expected _XOPEN_SOURCE to be undefined
9707 rm -f conftest.$ac_objext
9708 if { (eval echo "$as_me:9708: \"$ac_compile\"") >&5
9709 (eval $ac_compile) 2>&5
9711 echo "$as_me:9711: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (eval echo "$as_me:9714: \"$ac_try\"") >&5
9717 echo "$as_me:9717: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9721 echo "$as_me: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 cf_cv_gnu_source=yes
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9729 rm -f conftest.$ac_objext conftest.$ac_ext
9732 echo "$as_me:9732: result: $cf_cv_gnu_source" >&5
9733 echo "${ECHO_T}$cf_cv_gnu_source" >&6
9735 if test "$cf_cv_gnu_source" = yes
9737 echo "$as_me:9737: checking if we should also define _DEFAULT_SOURCE" >&5
9738 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
9739 if test "${cf_cv_default_source+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9744 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
9746 cat >conftest.$ac_ext <<_ACEOF
9747 #line 9747 "configure"
9748 #include "confdefs.h"
9749 #include <sys/types.h>
9754 #ifdef _DEFAULT_SOURCE
9755 #error expected _DEFAULT_SOURCE to be undefined
9761 rm -f conftest.$ac_objext
9762 if { (eval echo "$as_me:9762: \"$ac_compile\"") >&5
9763 (eval $ac_compile) 2>&5
9765 echo "$as_me:9765: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -s conftest.$ac_objext'
9768 { (eval echo "$as_me:9768: \"$ac_try\"") >&5
9771 echo "$as_me:9771: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 cf_cv_default_source=no
9775 echo "$as_me: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9777 cf_cv_default_source=yes
9779 rm -f conftest.$ac_objext conftest.$ac_ext
9782 echo "$as_me:9782: result: $cf_cv_default_source" >&5
9783 echo "${ECHO_T}$cf_cv_default_source" >&6
9784 if test "$cf_cv_default_source" = yes
9787 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9788 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9798 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
9801 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
9804 if test "$cf_cv_posix_visible" = no; then
9806 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9808 cf_save_CFLAGS="$CFLAGS"
9809 cf_save_CPPFLAGS="$CPPFLAGS"
9811 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9812 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9813 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9815 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9816 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9817 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9819 echo "$as_me:9819: checking if we should define _POSIX_C_SOURCE" >&5
9820 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9821 if test "${cf_cv_posix_c_source+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 echo "${as_me:-configure}:9825: testing if the symbol is already defined go no further ..." 1>&5
9827 cat >conftest.$ac_ext <<_ACEOF
9828 #line 9828 "configure"
9829 #include "confdefs.h"
9830 #include <sys/types.h>
9835 #ifndef _POSIX_C_SOURCE
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:9843: \"$ac_compile\"") >&5
9844 (eval $ac_compile) 2>&5
9846 echo "$as_me:9846: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (eval echo "$as_me:9849: \"$ac_try\"") >&5
9852 echo "$as_me:9852: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 cf_cv_posix_c_source=no
9856 echo "$as_me: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 cf_want_posix_source=no
9859 case .$cf_POSIX_C_SOURCE in
9861 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9864 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9865 cf_want_posix_source=yes
9868 cf_want_posix_source=yes
9871 if test "$cf_want_posix_source" = yes ; then
9872 cat >conftest.$ac_ext <<_ACEOF
9873 #line 9873 "configure"
9874 #include "confdefs.h"
9875 #include <sys/types.h>
9880 #ifdef _POSIX_SOURCE
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:9888: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:9894: \"$ac_try\"") >&5
9897 echo "$as_me:9897: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9901 echo "$as_me: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9903 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
9905 rm -f conftest.$ac_objext conftest.$ac_ext
9908 echo "${as_me:-configure}:9908: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
9910 CFLAGS="$cf_trim_CFLAGS"
9911 CPPFLAGS="$cf_trim_CPPFLAGS"
9913 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9914 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
9916 echo "${as_me:-configure}:9916: testing if the second compile does not leave our definition intact error ..." 1>&5
9918 cat >conftest.$ac_ext <<_ACEOF
9919 #line 9919 "configure"
9920 #include "confdefs.h"
9921 #include <sys/types.h>
9926 #ifndef _POSIX_C_SOURCE
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:9934: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9937 echo "$as_me:9937: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:9940: \"$ac_try\"") >&5
9943 echo "$as_me:9943: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9947 echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 cf_cv_posix_c_source=no
9951 rm -f conftest.$ac_objext conftest.$ac_ext
9952 CFLAGS="$cf_save_CFLAGS"
9953 CPPFLAGS="$cf_save_CPPFLAGS"
9956 rm -f conftest.$ac_objext conftest.$ac_ext
9959 echo "$as_me:9959: result: $cf_cv_posix_c_source" >&5
9960 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
9962 if test "$cf_cv_posix_c_source" != no ; then
9963 CFLAGS="$cf_trim_CFLAGS"
9964 CPPFLAGS="$cf_trim_CPPFLAGS"
9969 cf_new_extra_cppflags=
9971 for cf_add_cflags in $cf_cv_posix_c_source
9973 case $cf_fix_cppflags in
9975 case $cf_add_cflags in
9976 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9977 case $cf_add_cflags in
9979 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9981 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9982 && test -z "${cf_tst_cflags}" \
9983 && cf_fix_cppflags=yes
9985 if test $cf_fix_cppflags = yes ; then
9987 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9988 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9991 elif test "${cf_tst_cflags}" = "\"'" ; then
9993 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9994 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10000 case "$CPPFLAGS" in
10004 case $cf_add_cflags in
10006 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10008 CPPFLAGS=`echo "$CPPFLAGS" | \
10009 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10010 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10015 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10016 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10023 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10024 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10031 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10032 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10034 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10036 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10037 && test -z "${cf_tst_cflags}" \
10038 && cf_fix_cppflags=no
10043 if test -n "$cf_new_cflags" ; then
10045 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10046 CFLAGS="${CFLAGS}$cf_new_cflags"
10050 if test -n "$cf_new_cppflags" ; then
10052 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10053 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10057 if test -n "$cf_new_extra_cppflags" ; then
10059 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10060 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10066 fi # cf_cv_posix_visible
10070 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10073 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10074 cf_xopen_source="-D_BSD_SOURCE"
10075 cf_XOPEN_SOURCE=600
10078 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10081 cf_xopen_source="-D_OSF_SOURCE"
10084 cf_xopen_source="-D_QNX_SOURCE"
10087 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10090 cf_xopen_source="-D__EXTENSIONS__"
10091 cf_cv_xopen_source=broken
10093 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10099 echo "$as_me:10099: checking if we should define _XOPEN_SOURCE" >&5
10100 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10101 if test "${cf_cv_xopen_source+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 cat >conftest.$ac_ext <<_ACEOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10109 #include <stdlib.h>
10110 #include <string.h>
10111 #include <sys/types.h>
10117 #ifndef _XOPEN_SOURCE
10124 rm -f conftest.$ac_objext
10125 if { (eval echo "$as_me:10125: \"$ac_compile\"") >&5
10126 (eval $ac_compile) 2>&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -s conftest.$ac_objext'
10131 { (eval echo "$as_me:10131: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:10134: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 cf_cv_xopen_source=no
10138 echo "$as_me: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 cf_save="$CPPFLAGS"
10142 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10143 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 #line 10146 "configure"
10147 #include "confdefs.h"
10149 #include <stdlib.h>
10150 #include <string.h>
10151 #include <sys/types.h>
10157 #ifdef _XOPEN_SOURCE
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:10165: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>&5
10168 echo "$as_me:10168: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -s conftest.$ac_objext'
10171 { (eval echo "$as_me:10171: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:10174: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 cf_cv_xopen_source=no
10178 echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10182 rm -f conftest.$ac_objext conftest.$ac_ext
10183 CPPFLAGS="$cf_save"
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10189 echo "$as_me:10189: result: $cf_cv_xopen_source" >&5
10190 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10192 if test "$cf_cv_xopen_source" != no ; then
10194 CFLAGS=`echo "$CFLAGS" | \
10195 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10196 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10198 CPPFLAGS=`echo "$CPPFLAGS" | \
10199 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10200 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10202 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10207 cf_new_extra_cppflags=
10209 for cf_add_cflags in $cf_temp_xopen_source
10211 case $cf_fix_cppflags in
10213 case $cf_add_cflags in
10214 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10215 case $cf_add_cflags in
10217 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10219 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10220 && test -z "${cf_tst_cflags}" \
10221 && cf_fix_cppflags=yes
10223 if test $cf_fix_cppflags = yes ; then
10225 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10226 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10229 elif test "${cf_tst_cflags}" = "\"'" ; then
10231 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10232 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10238 case "$CPPFLAGS" in
10242 case $cf_add_cflags in
10244 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10246 CPPFLAGS=`echo "$CPPFLAGS" | \
10247 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10248 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10253 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10254 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10261 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10262 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10272 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10274 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10275 && test -z "${cf_tst_cflags}" \
10276 && cf_fix_cppflags=no
10281 if test -n "$cf_new_cflags" ; then
10283 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10284 CFLAGS="${CFLAGS}$cf_new_cflags"
10288 if test -n "$cf_new_cppflags" ; then
10290 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10291 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10295 if test -n "$cf_new_extra_cppflags" ; then
10297 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10298 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10304 if test "$cf_cv_posix_visible" = no; then
10306 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10308 cf_save_CFLAGS="$CFLAGS"
10309 cf_save_CPPFLAGS="$CPPFLAGS"
10311 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10312 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10313 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10315 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10316 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10317 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10319 echo "$as_me:10319: checking if we should define _POSIX_C_SOURCE" >&5
10320 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10321 if test "${cf_cv_posix_c_source+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 echo "${as_me:-configure}:10325: testing if the symbol is already defined go no further ..." 1>&5
10327 cat >conftest.$ac_ext <<_ACEOF
10328 #line 10328 "configure"
10329 #include "confdefs.h"
10330 #include <sys/types.h>
10335 #ifndef _POSIX_C_SOURCE
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:10343: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>&5
10346 echo "$as_me:10346: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -s conftest.$ac_objext'
10349 { (eval echo "$as_me:10349: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:10352: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 cf_cv_posix_c_source=no
10356 echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 cf_want_posix_source=no
10359 case .$cf_POSIX_C_SOURCE in
10361 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10364 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10365 cf_want_posix_source=yes
10368 cf_want_posix_source=yes
10371 if test "$cf_want_posix_source" = yes ; then
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line 10373 "configure"
10374 #include "confdefs.h"
10375 #include <sys/types.h>
10380 #ifdef _POSIX_SOURCE
10387 rm -f conftest.$ac_objext
10388 if { (eval echo "$as_me:10388: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>&5
10391 echo "$as_me:10391: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:10394: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:10397: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10401 echo "$as_me: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10405 rm -f conftest.$ac_objext conftest.$ac_ext
10408 echo "${as_me:-configure}:10408: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10410 CFLAGS="$cf_trim_CFLAGS"
10411 CPPFLAGS="$cf_trim_CPPFLAGS"
10413 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10414 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10416 echo "${as_me:-configure}:10416: testing if the second compile does not leave our definition intact error ..." 1>&5
10418 cat >conftest.$ac_ext <<_ACEOF
10419 #line 10419 "configure"
10420 #include "confdefs.h"
10421 #include <sys/types.h>
10426 #ifndef _POSIX_C_SOURCE
10433 rm -f conftest.$ac_objext
10434 if { (eval echo "$as_me:10434: \"$ac_compile\"") >&5
10435 (eval $ac_compile) 2>&5
10437 echo "$as_me:10437: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:10440: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:10443: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10447 echo "$as_me: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 cf_cv_posix_c_source=no
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10452 CFLAGS="$cf_save_CFLAGS"
10453 CPPFLAGS="$cf_save_CPPFLAGS"
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10459 echo "$as_me:10459: result: $cf_cv_posix_c_source" >&5
10460 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10462 if test "$cf_cv_posix_c_source" != no ; then
10463 CFLAGS="$cf_trim_CFLAGS"
10464 CPPFLAGS="$cf_trim_CPPFLAGS"
10469 cf_new_extra_cppflags=
10471 for cf_add_cflags in $cf_cv_posix_c_source
10473 case $cf_fix_cppflags in
10475 case $cf_add_cflags in
10476 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10477 case $cf_add_cflags in
10479 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10481 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10482 && test -z "${cf_tst_cflags}" \
10483 && cf_fix_cppflags=yes
10485 if test $cf_fix_cppflags = yes ; then
10487 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10488 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10491 elif test "${cf_tst_cflags}" = "\"'" ; then
10493 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10494 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10500 case "$CPPFLAGS" in
10504 case $cf_add_cflags in
10506 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10508 CPPFLAGS=`echo "$CPPFLAGS" | \
10509 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10510 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10515 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10516 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10523 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10524 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10531 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10532 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10534 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10536 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10537 && test -z "${cf_tst_cflags}" \
10538 && cf_fix_cppflags=no
10543 if test -n "$cf_new_cflags" ; then
10545 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10546 CFLAGS="${CFLAGS}$cf_new_cflags"
10550 if test -n "$cf_new_cppflags" ; then
10552 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10553 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10557 if test -n "$cf_new_extra_cppflags" ; then
10559 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10560 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10566 fi # cf_cv_posix_visible
10571 if test -n "$cf_xopen_source" ; then
10576 cf_new_extra_cppflags=
10578 for cf_add_cflags in $cf_xopen_source
10580 case $cf_fix_cppflags in
10582 case $cf_add_cflags in
10583 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10584 case $cf_add_cflags in
10586 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10588 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10589 && test -z "${cf_tst_cflags}" \
10590 && cf_fix_cppflags=yes
10592 if test $cf_fix_cppflags = yes ; then
10594 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10595 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10598 elif test "${cf_tst_cflags}" = "\"'" ; then
10600 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10601 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10607 case "$CPPFLAGS" in
10611 case $cf_add_cflags in
10613 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10615 CPPFLAGS=`echo "$CPPFLAGS" | \
10616 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10617 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10622 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10623 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10630 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10631 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10638 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10639 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10641 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10643 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10644 && test -z "${cf_tst_cflags}" \
10645 && cf_fix_cppflags=no
10650 if test -n "$cf_new_cflags" ; then
10651 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10653 echo "${as_me:-configure}:10653: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10655 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10656 CFLAGS="${CFLAGS}$cf_new_cflags"
10660 if test -n "$cf_new_cppflags" ; then
10661 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10663 echo "${as_me:-configure}:10663: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10665 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10666 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10670 if test -n "$cf_new_extra_cppflags" ; then
10671 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10673 echo "${as_me:-configure}:10673: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10675 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10676 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10682 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10683 echo "$as_me:10683: checking if _XOPEN_SOURCE really is set" >&5
10684 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10686 #line 10686 "configure"
10687 #include "confdefs.h"
10688 #include <stdlib.h>
10693 #ifndef _XOPEN_SOURCE
10700 rm -f conftest.$ac_objext
10701 if { (eval echo "$as_me:10701: \"$ac_compile\"") >&5
10702 (eval $ac_compile) 2>&5
10704 echo "$as_me:10704: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (eval echo "$as_me:10707: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:10710: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 cf_XOPEN_SOURCE_set=yes
10714 echo "$as_me: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10716 cf_XOPEN_SOURCE_set=no
10718 rm -f conftest.$ac_objext conftest.$ac_ext
10719 echo "$as_me:10719: result: $cf_XOPEN_SOURCE_set" >&5
10720 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
10721 if test $cf_XOPEN_SOURCE_set = yes
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line 10724 "configure"
10725 #include "confdefs.h"
10726 #include <stdlib.h>
10731 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:10739: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>&5
10742 echo "$as_me:10742: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -s conftest.$ac_objext'
10745 { (eval echo "$as_me:10745: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:10748: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 cf_XOPEN_SOURCE_set_ok=yes
10752 echo "$as_me: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10754 cf_XOPEN_SOURCE_set_ok=no
10756 rm -f conftest.$ac_objext conftest.$ac_ext
10757 if test $cf_XOPEN_SOURCE_set_ok = no
10759 { echo "$as_me:10759: WARNING: _XOPEN_SOURCE is lower than requested" >&5
10760 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
10764 echo "$as_me:10764: checking if we should define _XOPEN_SOURCE" >&5
10765 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10766 if test "${cf_cv_xopen_source+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 #line 10771 "configure"
10772 #include "confdefs.h"
10774 #include <stdlib.h>
10775 #include <string.h>
10776 #include <sys/types.h>
10782 #ifndef _XOPEN_SOURCE
10789 rm -f conftest.$ac_objext
10790 if { (eval echo "$as_me:10790: \"$ac_compile\"") >&5
10791 (eval $ac_compile) 2>&5
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -s conftest.$ac_objext'
10796 { (eval echo "$as_me:10796: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:10799: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 cf_cv_xopen_source=no
10803 echo "$as_me: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10805 cf_save="$CPPFLAGS"
10807 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10808 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10810 cat >conftest.$ac_ext <<_ACEOF
10811 #line 10811 "configure"
10812 #include "confdefs.h"
10814 #include <stdlib.h>
10815 #include <string.h>
10816 #include <sys/types.h>
10822 #ifdef _XOPEN_SOURCE
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
10831 (eval $ac_compile) 2>&5
10833 echo "$as_me:10833: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -s conftest.$ac_objext'
10836 { (eval echo "$as_me:10836: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:10839: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 cf_cv_xopen_source=no
10843 echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10847 rm -f conftest.$ac_objext conftest.$ac_ext
10848 CPPFLAGS="$cf_save"
10851 rm -f conftest.$ac_objext conftest.$ac_ext
10854 echo "$as_me:10854: result: $cf_cv_xopen_source" >&5
10855 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10857 if test "$cf_cv_xopen_source" != no ; then
10859 CFLAGS=`echo "$CFLAGS" | \
10860 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10861 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10863 CPPFLAGS=`echo "$CPPFLAGS" | \
10864 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10865 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10867 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10872 cf_new_extra_cppflags=
10874 for cf_add_cflags in $cf_temp_xopen_source
10876 case $cf_fix_cppflags in
10878 case $cf_add_cflags in
10879 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10880 case $cf_add_cflags in
10882 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10884 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10885 && test -z "${cf_tst_cflags}" \
10886 && cf_fix_cppflags=yes
10888 if test $cf_fix_cppflags = yes ; then
10890 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10891 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10894 elif test "${cf_tst_cflags}" = "\"'" ; then
10896 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10897 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10903 case "$CPPFLAGS" in
10907 case $cf_add_cflags in
10909 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10911 CPPFLAGS=`echo "$CPPFLAGS" | \
10912 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10913 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10918 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10919 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10926 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10927 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10934 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10935 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10937 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10939 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10940 && test -z "${cf_tst_cflags}" \
10941 && cf_fix_cppflags=no
10946 if test -n "$cf_new_cflags" ; then
10948 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10949 CFLAGS="${CFLAGS}$cf_new_cflags"
10953 if test -n "$cf_new_cppflags" ; then
10955 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10956 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10960 if test -n "$cf_new_extra_cppflags" ; then
10962 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10963 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10971 fi # cf_cv_posix_visible
10973 CPPFLAGS_after_XOPEN="$CPPFLAGS"
10975 # Work around breakage on OS X
10977 echo "$as_me:10977: checking if SIGWINCH is defined" >&5
10978 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
10979 if test "${cf_cv_define_sigwinch+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 cat >conftest.$ac_ext <<_ACEOF
10984 #line 10984 "configure"
10985 #include "confdefs.h"
10987 #include <sys/types.h>
10988 #include <sys/signal.h>
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:10999: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>&5
11002 echo "$as_me:11002: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try='test -s conftest.$ac_objext'
11005 { (eval echo "$as_me:11005: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:11008: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 cf_cv_define_sigwinch=yes
11012 echo "$as_me: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
11014 cat >conftest.$ac_ext <<_ACEOF
11015 #line 11015 "configure"
11016 #include "confdefs.h"
11018 #undef _XOPEN_SOURCE
11019 #undef _POSIX_SOURCE
11020 #undef _POSIX_C_SOURCE
11021 #include <sys/types.h>
11022 #include <sys/signal.h>
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:11033: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>&5
11036 echo "$as_me:11036: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:11039: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:11042: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 cf_cv_define_sigwinch=maybe
11046 echo "$as_me: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11048 cf_cv_define_sigwinch=no
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11053 rm -f conftest.$ac_objext conftest.$ac_ext
11056 echo "$as_me:11056: result: $cf_cv_define_sigwinch" >&5
11057 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11059 if test "$cf_cv_define_sigwinch" = maybe ; then
11060 echo "$as_me:11060: checking for actual SIGWINCH definition" >&5
11061 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11062 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 cf_cv_fixup_sigwinch=unknown
11068 while test $cf_sigwinch != 1
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11074 #undef _XOPEN_SOURCE
11075 #undef _POSIX_SOURCE
11076 #undef _POSIX_C_SOURCE
11077 #include <sys/types.h>
11078 #include <sys/signal.h>
11084 #if SIGWINCH != $cf_sigwinch
11092 rm -f conftest.$ac_objext
11093 if { (eval echo "$as_me:11093: \"$ac_compile\"") >&5
11094 (eval $ac_compile) 2>&5
11096 echo "$as_me:11096: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -s conftest.$ac_objext'
11099 { (eval echo "$as_me:11099: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:11102: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 cf_cv_fixup_sigwinch=$cf_sigwinch
11107 echo "$as_me: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11110 rm -f conftest.$ac_objext conftest.$ac_ext
11112 cf_sigwinch=`expr $cf_sigwinch - 1`
11116 echo "$as_me:11116: result: $cf_cv_fixup_sigwinch" >&5
11117 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11119 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11120 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11124 # Checks for CODESET support.
11126 echo "$as_me:11126: checking for nl_langinfo and CODESET" >&5
11127 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11128 if test "${am_cv_langinfo_codeset+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 cat >conftest.$ac_ext <<_ACEOF
11132 #line 11132 "configure"
11133 #include "confdefs.h"
11134 #include <langinfo.h>
11138 char* cs = nl_langinfo(CODESET);
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (eval echo "$as_me:11144: \"$ac_link\"") >&5
11145 (eval $ac_link) 2>&5
11147 echo "$as_me:11147: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:11150: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:11153: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 am_cv_langinfo_codeset=yes
11157 echo "$as_me: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 am_cv_langinfo_codeset=no
11161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11164 echo "$as_me:11164: result: $am_cv_langinfo_codeset" >&5
11165 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11166 if test $am_cv_langinfo_codeset = yes; then
11168 cat >>confdefs.h <<\EOF
11169 #define HAVE_LANGINFO_CODESET 1
11174 # use these variables to work around a defect in gcc's fixincludes.
11175 NCURSES_OK_WCHAR_T=
11178 echo "$as_me:11178: checking if you want wide-character code" >&5
11179 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11181 # Check whether --enable-widec or --disable-widec was given.
11182 if test "${enable_widec+set}" = set; then
11183 enableval="$enable_widec"
11184 with_widec=$enableval
11188 echo "$as_me:11188: result: $with_widec" >&5
11189 echo "${ECHO_T}$with_widec" >&6
11191 NCURSES_WCWIDTH_GRAPHICS=1
11193 if test "x$with_widec" = xyes ; then
11194 if test "x$disable_lib_suffixes" = xno ; then
11195 LIB_SUFFIX="w${LIB_SUFFIX}"
11198 cat >>confdefs.h <<\EOF
11199 #define USE_WIDEC_SUPPORT 1
11202 cat >>confdefs.h <<\EOF
11203 #define NCURSES_WIDECHAR 1
11211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11212 echo "$as_me:11212: checking for $ac_header" >&5
11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11218 #line 11218 "configure"
11219 #include "confdefs.h"
11220 #include <$ac_header>
11222 if { (eval echo "$as_me:11222: \"$ac_cpp conftest.$ac_ext\"") >&5
11223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11225 egrep -v '^ *\+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:11228: \$? = $ac_status" >&5
11229 (exit $ac_status); } >/dev/null; then
11230 if test -s conftest.err; then
11231 ac_cpp_err=$ac_c_preproc_warn_flag
11238 if test -z "$ac_cpp_err"; then
11239 eval "$as_ac_Header=yes"
11241 echo "$as_me: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 eval "$as_ac_Header=no"
11245 rm -f conftest.err conftest.$ac_ext
11247 echo "$as_me:11247: result: `eval echo '${'$as_ac_Header'}'`" >&5
11248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11250 cat >>confdefs.h <<EOF
11251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11257 echo "$as_me:11257: checking if wchar.h can be used as is" >&5
11258 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11259 if test "${cf_cv_wchar_h_okay+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 cat >conftest.$ac_ext <<_ACEOF
11264 #line 11264 "configure"
11265 #include "confdefs.h"
11267 #include <stdlib.h>
11268 #ifdef HAVE_WCHAR_H
11271 #ifdef HAVE_WCTYPE_H
11272 #include <wctype.h>
11280 int bar = iswpunct(foo)
11285 rm -f conftest.$ac_objext
11286 if { (eval echo "$as_me:11286: \"$ac_compile\"") >&5
11287 (eval $ac_compile) 2>&5
11289 echo "$as_me:11289: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -s conftest.$ac_objext'
11292 { (eval echo "$as_me:11292: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:11295: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 cf_cv_wchar_h_okay=yes
11299 echo "$as_me: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 cf_cv_wchar_h_okay=no
11303 rm -f conftest.$ac_objext conftest.$ac_ext
11305 echo "$as_me:11305: result: $cf_cv_wchar_h_okay" >&5
11306 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11308 if test $cf_cv_wchar_h_okay = no
11311 echo "$as_me:11311: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11312 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11314 #line 11314 "configure"
11315 #include "confdefs.h"
11316 #include <sys/types.h>
11322 #ifndef _XOPEN_SOURCE_EXTENDED
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:11330: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>&5
11333 echo "$as_me:11333: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:11336: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:11339: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11343 echo "$as_me: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11347 rm -f conftest.$ac_objext conftest.$ac_ext
11348 echo "$as_me:11348: result: $cf_result" >&5
11349 echo "${ECHO_T}$cf_result" >&6
11351 if test "$cf_result" = yes ; then
11352 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11353 elif test "x" != "x" ; then
11354 echo "$as_me:11354: checking checking for compatible value versus " >&5
11355 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11357 #line 11357 "configure"
11358 #include "confdefs.h"
11359 #include <sys/types.h>
11365 #if _XOPEN_SOURCE_EXTENDED- < 0
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:11373: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>&5
11376 echo "$as_me:11376: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (eval echo "$as_me:11379: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:11382: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11386 echo "$as_me: failed program was:" >&5
11387 cat conftest.$ac_ext >&5
11390 rm -f conftest.$ac_objext conftest.$ac_ext
11391 echo "$as_me:11391: result: $cf_result" >&5
11392 echo "${ECHO_T}$cf_result" >&6
11393 if test "$cf_result" = no ; then
11394 # perhaps we can override it - try...
11395 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11401 echo "$as_me:11401: checking if wcwidth agrees graphics are single-width" >&5
11402 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11403 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 cat >conftest.in <<CF_EOF
11409 0x250c upper left corner
11410 0x2514 lower left corner
11411 0x2510 upper right corner
11412 0x2518 lower right corner
11413 0x251c tee pointing left
11414 0x2524 tee pointing right
11415 0x2534 tee pointing up
11416 0x252c tee pointing down
11417 0x2500 horizontal line
11418 0x2502 vertical line
11419 0x253c large plus or crossover
11423 0x2592 checker board (stipple)
11424 0x00b0 degree symbol
11427 - Teletype 5410v1 symbols
11428 0x2190 arrow pointing left
11429 0x2192 arrow pointing right
11430 0x2193 arrow pointing down
11431 0x2191 arrow pointing up
11432 0x2592 board of squares
11433 0x2603 lantern symbol
11434 0x25ae solid square block
11435 - these defaults were invented for ncurses
11438 0x2264 less-than-or-equal-to
11439 0x2265 greater-than-or-equal-to
11442 0x00a3 pound-sterling symbol
11443 - thick-line-drawing
11444 0x250f upper left corner
11445 0x2517 lower left corner
11446 0x2513 upper right corner
11447 0x251b lower right corner
11448 0x2523 tee pointing left
11449 0x252b tee pointing right
11450 0x253b tee pointing up
11451 0x2533 tee pointing down
11452 0x2501 horizontal line
11453 0x2503 vertical line
11454 0x254b large plus or crossover
11455 - double-line-drawing
11456 0x2554 upper left corner
11457 0x255a lower left corner
11458 0x2557 upper right corner
11459 0x255d lower right corner
11460 0x2563 tee pointing left
11461 0x2560 tee pointing right
11462 0x2569 tee pointing up
11463 0x2566 tee pointing down
11464 0x2550 horizontal line
11465 0x2551 vertical line
11466 0x256c large plus or crossover
11468 if test "$cross_compiling" = yes; then
11469 cf_cv_wcwidth_graphics=unknown
11471 cat >conftest.$ac_ext <<_ACEOF
11472 #line 11472 "configure"
11473 #include "confdefs.h"
11475 #include <locale.h>
11486 char buffer[MY_LEN + 1];
11487 char notes[MY_LEN + 1];
11491 if (setlocale(LC_ALL, "en_US.UTF8") ||
11492 setlocale(LC_ALL, "en_US.UTF-8") ||
11493 setlocale(LC_ALL, "en_US.utf8") ||
11494 setlocale(LC_ALL, "en_US.utf-8")) {
11495 if ((fp = fopen("conftest.in", "r")) != 0) {
11496 while (fgets(buffer, MY_LEN, fp) != 0) {
11497 if (*buffer == '-') {
11498 fprintf(stderr, "\t%s", buffer);
11499 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11501 if (wcwidth(value) == 1)
11503 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11505 fprintf(stderr, "?\t%s", buffer);
11510 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11511 return (totals == passed) ? 0 : 1;
11515 rm -f conftest$ac_exeext
11516 if { (eval echo "$as_me:11516: \"$ac_link\"") >&5
11517 (eval $ac_link) 2>&5
11519 echo "$as_me:11519: \$? = $ac_status" >&5
11520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11521 { (eval echo "$as_me:11521: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:11524: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 cf_cv_wcwidth_graphics=yes
11528 echo "$as_me: program exited with status $ac_status" >&5
11529 echo "$as_me: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11531 cf_cv_wcwidth_graphics=no
11533 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11537 echo "$as_me:11537: result: $cf_cv_wcwidth_graphics" >&5
11538 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11540 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11542 # with_overwrite=no
11543 NCURSES_CH_T=cchar_t
11545 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 echo "$as_me:11548: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_var+set}\" = set"; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line 11554 "configure"
11555 #include "confdefs.h"
11556 #define $ac_func autoconf_temporary
11557 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566 char $ac_func (void);
11572 /* The GNU C library defines stubs for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11576 #error found stub for $ac_func
11579 return $ac_func ();
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (eval echo "$as_me:11585: \"$ac_link\"") >&5
11586 (eval $ac_link) 2>&5
11588 echo "$as_me:11588: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (eval echo "$as_me:11591: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:11594: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 eval "$as_ac_var=yes"
11598 echo "$as_me: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11600 eval "$as_ac_var=no"
11602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11604 echo "$as_me:11604: result: `eval echo '${'$as_ac_var'}'`" >&5
11605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11606 if test `eval echo '${'$as_ac_var'}'` = yes; then
11607 cat >>confdefs.h <<EOF
11608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11614 if test "x$ac_cv_func_putwc" != xyes ; then
11616 echo "$as_me:11616: checking for multibyte character support" >&5
11617 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11618 if test "${cf_cv_utf8_lib+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 cf_save_LIBS="$LIBS"
11623 cat >conftest.$ac_ext <<_ACEOF
11624 #line 11624 "configure"
11625 #include "confdefs.h"
11627 #include <stdlib.h>
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:11637: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:11640: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:11643: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:11646: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11653 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11654 # will be set on completion of the AC_TRY_LINK below.
11655 cf_cv_header_path_utf8=
11656 cf_cv_library_path_utf8=
11658 echo "${as_me:-configure}:11658: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11660 cf_save_LIBS="$LIBS"
11662 cat >conftest.$ac_ext <<_ACEOF
11663 #line 11663 "configure"
11664 #include "confdefs.h"
11666 #include <libutf8.h>
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:11676: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11679 echo "$as_me:11679: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:11682: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:11685: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11688 cf_cv_find_linkage_utf8=yes
11689 cf_cv_header_path_utf8=/usr/include
11690 cf_cv_library_path_utf8=/usr/lib
11693 echo "$as_me: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11696 LIBS="-lutf8 $cf_save_LIBS"
11698 cat >conftest.$ac_ext <<_ACEOF
11699 #line 11699 "configure"
11700 #include "confdefs.h"
11702 #include <libutf8.h>
11711 rm -f conftest.$ac_objext conftest$ac_exeext
11712 if { (eval echo "$as_me:11712: \"$ac_link\"") >&5
11713 (eval $ac_link) 2>&5
11715 echo "$as_me:11715: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:11718: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:11721: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11724 cf_cv_find_linkage_utf8=yes
11725 cf_cv_header_path_utf8=/usr/include
11726 cf_cv_library_path_utf8=/usr/lib
11727 cf_cv_library_file_utf8="-lutf8"
11730 echo "$as_me: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11733 cf_cv_find_linkage_utf8=no
11734 LIBS="$cf_save_LIBS"
11736 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
11738 echo "${as_me:-configure}:11738: testing find linkage for utf8 library ..." 1>&5
11740 echo "${as_me:-configure}:11740: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
11742 cf_save_CPPFLAGS="$CPPFLAGS"
11743 cf_test_CPPFLAGS="$CPPFLAGS"
11747 # collect the current set of include-directories from compiler flags
11748 cf_header_path_list=""
11749 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11750 for cf_header_path in $CPPFLAGS $CFLAGS
11752 case $cf_header_path in
11754 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11756 test "x$cf_header_path" != "xNONE" && \
11757 test -d "$cf_header_path" && \
11759 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11760 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
11761 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
11762 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
11763 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
11764 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
11767 cf_header_path_list="$cf_header_path_list $cf_search"
11773 # add the variations for the package we are looking for
11777 test "x$prefix" != "xNONE" && \
11778 test -d "$prefix" && \
11780 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11781 test -d $prefix/include && cf_search="$cf_search $prefix/include"
11782 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
11783 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
11784 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
11785 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
11788 for cf_subdir_prefix in \
11797 test "x$cf_subdir_prefix" != "x$prefix" && \
11798 test -d "$cf_subdir_prefix" && \
11799 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11800 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11801 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
11802 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
11803 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
11804 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
11805 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
11810 test "$includedir" != NONE && \
11811 test "$includedir" != "/usr/include" && \
11812 test -d "$includedir" && {
11813 test -d $includedir && cf_search="$cf_search $includedir"
11814 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
11817 test "$oldincludedir" != NONE && \
11818 test "$oldincludedir" != "/usr/include" && \
11819 test -d "$oldincludedir" && {
11820 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
11821 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
11824 cf_search="$cf_search $cf_header_path_list"
11826 for cf_cv_header_path_utf8 in $cf_search
11828 if test -d $cf_cv_header_path_utf8 ; then
11829 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
11831 echo "${as_me:-configure}:11831: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
11833 CPPFLAGS="$cf_save_CPPFLAGS"
11835 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11836 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
11838 cat >conftest.$ac_ext <<_ACEOF
11839 #line 11839 "configure"
11840 #include "confdefs.h"
11842 #include <libutf8.h>
11851 rm -f conftest.$ac_objext
11852 if { (eval echo "$as_me:11852: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (eval echo "$as_me:11858: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:11861: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11864 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
11866 echo "${as_me:-configure}:11866: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
11868 cf_cv_find_linkage_utf8=maybe
11869 cf_test_CPPFLAGS="$CPPFLAGS"
11872 echo "$as_me: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11875 CPPFLAGS="$cf_save_CPPFLAGS"
11878 rm -f conftest.$ac_objext conftest.$ac_ext
11882 if test "$cf_cv_find_linkage_utf8" = maybe ; then
11884 echo "${as_me:-configure}:11884: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
11886 cf_save_LIBS="$LIBS"
11887 cf_save_LDFLAGS="$LDFLAGS"
11889 if test "$cf_cv_find_linkage_utf8" != yes ; then
11892 cf_library_path_list=""
11893 if test -n "${LDFLAGS}${LIBS}" ; then
11894 for cf_library_path in $LDFLAGS $LIBS
11896 case $cf_library_path in
11898 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11900 test "x$cf_library_path" != "xNONE" && \
11901 test -d "$cf_library_path" && \
11903 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11904 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
11905 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
11906 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
11907 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
11908 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
11911 cf_library_path_list="$cf_library_path_list $cf_search"
11919 test "x$prefix" != "xNONE" && \
11920 test -d "$prefix" && \
11922 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11923 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
11924 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
11925 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
11926 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
11927 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
11930 for cf_subdir_prefix in \
11939 test "x$cf_subdir_prefix" != "x$prefix" && \
11940 test -d "$cf_subdir_prefix" && \
11941 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11942 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11943 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
11944 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
11945 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
11946 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
11947 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
11952 cf_search="$cf_library_path_list $cf_search"
11954 for cf_cv_library_path_utf8 in $cf_search
11956 if test -d $cf_cv_library_path_utf8 ; then
11957 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
11959 echo "${as_me:-configure}:11959: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
11961 CPPFLAGS="$cf_test_CPPFLAGS"
11962 LIBS="-lutf8 $cf_save_LIBS"
11963 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
11964 cat >conftest.$ac_ext <<_ACEOF
11965 #line 11965 "configure"
11966 #include "confdefs.h"
11968 #include <libutf8.h>
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:11978: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:11984: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:11987: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11990 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
11992 echo "${as_me:-configure}:11992: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
11994 cf_cv_find_linkage_utf8=yes
11995 cf_cv_library_file_utf8="-lutf8"
11998 echo "$as_me: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12001 CPPFLAGS="$cf_save_CPPFLAGS"
12002 LIBS="$cf_save_LIBS"
12003 LDFLAGS="$cf_save_LDFLAGS"
12006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12009 CPPFLAGS="$cf_save_CPPFLAGS"
12010 LDFLAGS="$cf_save_LDFLAGS"
12014 cf_cv_find_linkage_utf8=no
12018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12023 LIBS="$cf_save_LIBS"
12025 if test "$cf_cv_find_linkage_utf8" = yes ; then
12026 cf_cv_utf8_lib=add-on
12032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12034 echo "$as_me:12034: result: $cf_cv_utf8_lib" >&5
12035 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12037 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12038 # ncurses/ncursesw:
12039 if test "$cf_cv_utf8_lib" = "add-on" ; then
12041 cat >>confdefs.h <<\EOF
12042 #define HAVE_LIBUTF8_H 1
12045 if test -n "$cf_cv_header_path_utf8" ; then
12046 for cf_add_incdir in $cf_cv_header_path_utf8
12048 while test $cf_add_incdir != /usr/include
12050 if test -d $cf_add_incdir
12053 if test -n "$CFLAGS$CPPFLAGS" ; then
12054 # a loop is needed to ensure we can add subdirs of existing dirs
12055 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12056 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12057 cf_have_incdir=yes; break
12062 if test "$cf_have_incdir" = no ; then
12063 if test "$cf_add_incdir" = /usr/local/include ; then
12064 if test "$GCC" = yes
12066 cf_save_CPPFLAGS=$CPPFLAGS
12068 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12069 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12071 cat >conftest.$ac_ext <<_ACEOF
12072 #line 12072 "configure"
12073 #include "confdefs.h"
12083 rm -f conftest.$ac_objext
12084 if { (eval echo "$as_me:12084: \"$ac_compile\"") >&5
12085 (eval $ac_compile) 2>&5
12087 echo "$as_me:12087: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:12090: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:12093: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12097 echo "$as_me: failed program was:" >&5
12098 cat conftest.$ac_ext >&5
12101 rm -f conftest.$ac_objext conftest.$ac_ext
12102 CPPFLAGS=$cf_save_CPPFLAGS
12107 if test "$cf_have_incdir" = no ; then
12108 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12110 echo "${as_me:-configure}:12110: testing adding $cf_add_incdir to include-path ..." 1>&5
12112 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12114 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12115 test "$cf_top_incdir" = "$cf_add_incdir" && break
12116 cf_add_incdir="$cf_top_incdir"
12127 if test -n "$cf_cv_library_path_utf8" ; then
12128 for cf_add_libdir in $cf_cv_library_path_utf8
12130 if test $cf_add_libdir = /usr/lib ; then
12132 elif test -d $cf_add_libdir
12135 if test -n "$LDFLAGS$LIBS" ; then
12136 # a loop is needed to ensure we can add subdirs of existing dirs
12137 for cf_test_libdir in $LDFLAGS $LIBS ; do
12138 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12139 cf_have_libdir=yes; break
12143 if test "$cf_have_libdir" = no ; then
12144 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12146 echo "${as_me:-configure}:12146: testing adding $cf_add_libdir to library-path ..." 1>&5
12148 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12154 cf_add_libs="$cf_cv_library_file_utf8"
12155 # Filter out duplicates - this happens with badly-designed ".pc" files...
12156 for cf_add_1lib in $LIBS
12158 for cf_add_2lib in $cf_add_libs
12160 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12166 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12168 LIBS="$cf_add_libs"
12172 if test "$cf_cv_utf8_lib" != no ; then
12177 # This is needed on Tru64 5.0 to declare mbstate_t
12178 echo "$as_me:12178: checking if we must include wchar.h to declare mbstate_t" >&5
12179 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12180 if test "${cf_cv_mbstate_t+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line 12185 "configure"
12186 #include "confdefs.h"
12188 #include <stdlib.h>
12189 #include <stdarg.h>
12191 #ifdef HAVE_LIBUTF8_H
12192 #include <libutf8.h>
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:12203: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>&5
12206 echo "$as_me:12206: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (eval echo "$as_me:12209: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:12212: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12216 echo "$as_me: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 cat >conftest.$ac_ext <<_ACEOF
12219 #line 12219 "configure"
12220 #include "confdefs.h"
12222 #include <stdlib.h>
12223 #include <stdarg.h>
12226 #ifdef HAVE_LIBUTF8_H
12227 #include <libutf8.h>
12237 rm -f conftest.$ac_objext
12238 if { (eval echo "$as_me:12238: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>&5
12241 echo "$as_me:12241: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -s conftest.$ac_objext'
12244 { (eval echo "$as_me:12244: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:12247: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 cf_cv_mbstate_t=yes
12251 echo "$as_me: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 cf_cv_mbstate_t=unknown
12255 rm -f conftest.$ac_objext conftest.$ac_ext
12257 rm -f conftest.$ac_objext conftest.$ac_ext
12259 echo "$as_me:12259: result: $cf_cv_mbstate_t" >&5
12260 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12262 if test "$cf_cv_mbstate_t" = yes ; then
12264 cat >>confdefs.h <<\EOF
12265 #define NEED_WCHAR_H 1
12271 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12272 if test "$cf_cv_mbstate_t" = unknown ; then
12273 NCURSES_MBSTATE_T=1
12276 # This is needed on Tru64 5.0 to declare wchar_t
12277 echo "$as_me:12277: checking if we must include wchar.h to declare wchar_t" >&5
12278 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12279 if test "${cf_cv_wchar_t+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line 12284 "configure"
12285 #include "confdefs.h"
12287 #include <stdlib.h>
12288 #include <stdarg.h>
12290 #ifdef HAVE_LIBUTF8_H
12291 #include <libutf8.h>
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:12302: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>&5
12305 echo "$as_me:12305: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -s conftest.$ac_objext'
12308 { (eval echo "$as_me:12308: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:12311: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12315 echo "$as_me: failed program was:" >&5
12316 cat conftest.$ac_ext >&5
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line 12318 "configure"
12319 #include "confdefs.h"
12321 #include <stdlib.h>
12322 #include <stdarg.h>
12325 #ifdef HAVE_LIBUTF8_H
12326 #include <libutf8.h>
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:12337: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>&5
12340 echo "$as_me:12340: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (eval echo "$as_me:12343: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:12346: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 cf_cv_wchar_t=unknown
12354 rm -f conftest.$ac_objext conftest.$ac_ext
12356 rm -f conftest.$ac_objext conftest.$ac_ext
12358 echo "$as_me:12358: result: $cf_cv_wchar_t" >&5
12359 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12361 if test "$cf_cv_wchar_t" = yes ; then
12363 cat >>confdefs.h <<\EOF
12364 #define NEED_WCHAR_H 1
12370 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12371 if test "$cf_cv_wchar_t" = unknown ; then
12375 # if we find wchar_t in either place, use substitution to provide a fallback.
12376 if test "$cf_cv_wchar_t" != unknown ; then
12377 NCURSES_OK_WCHAR_T=1
12380 # This is needed on Tru64 5.0 to declare wint_t
12381 echo "$as_me:12381: checking if we must include wchar.h to declare wint_t" >&5
12382 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12383 if test "${cf_cv_wint_t+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 cat >conftest.$ac_ext <<_ACEOF
12388 #line 12388 "configure"
12389 #include "confdefs.h"
12391 #include <stdlib.h>
12392 #include <stdarg.h>
12394 #ifdef HAVE_LIBUTF8_H
12395 #include <libutf8.h>
12405 rm -f conftest.$ac_objext
12406 if { (eval echo "$as_me:12406: \"$ac_compile\"") >&5
12407 (eval $ac_compile) 2>&5
12409 echo "$as_me:12409: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (eval echo "$as_me:12412: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:12415: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12419 echo "$as_me: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12421 cat >conftest.$ac_ext <<_ACEOF
12422 #line 12422 "configure"
12423 #include "confdefs.h"
12425 #include <stdlib.h>
12426 #include <stdarg.h>
12429 #ifdef HAVE_LIBUTF8_H
12430 #include <libutf8.h>
12440 rm -f conftest.$ac_objext
12441 if { (eval echo "$as_me:12441: \"$ac_compile\"") >&5
12442 (eval $ac_compile) 2>&5
12444 echo "$as_me:12444: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -s conftest.$ac_objext'
12447 { (eval echo "$as_me:12447: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12450 echo "$as_me:12450: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12454 echo "$as_me: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 cf_cv_wint_t=unknown
12458 rm -f conftest.$ac_objext conftest.$ac_ext
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12462 echo "$as_me:12462: result: $cf_cv_wint_t" >&5
12463 echo "${ECHO_T}$cf_cv_wint_t" >&6
12465 if test "$cf_cv_wint_t" = yes ; then
12467 cat >>confdefs.h <<\EOF
12468 #define NEED_WCHAR_H 1
12474 # if we do not find wint_t in either place, use substitution to provide a fallback.
12475 if test "$cf_cv_wint_t" = unknown ; then
12479 # if we find wint_t in either place, use substitution to provide a fallback.
12480 if test "$cf_cv_wint_t" != unknown ; then
12481 NCURSES_OK_WINT_T=1
12484 if test "$NCURSES_MBSTATE_T" != 0; then
12486 cat >>confdefs.h <<\EOF
12487 #define NEED_MBSTATE_T_DEF 1
12493 ### use option --disable-lp64 to allow long chtype
12494 echo "$as_me:12494: checking whether to enable _LP64 definition in curses.h" >&5
12495 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12497 # Check whether --enable-lp64 or --disable-lp64 was given.
12498 if test "${enable_lp64+set}" = set; then
12499 enableval="$enable_lp64"
12500 with_lp64=$enableval
12502 with_lp64=$cf_dft_with_lp64
12504 echo "$as_me:12504: result: $with_lp64" >&5
12505 echo "${ECHO_T}$with_lp64" >&6
12507 if test "x$with_lp64" = xyes ; then
12508 cf_cv_enable_lp64=1
12510 cf_cv_enable_lp64=0
12513 # Check whether --enable-largefile or --disable-largefile was given.
12514 if test "${enable_largefile+set}" = set; then
12515 enableval="$enable_largefile"
12518 if test "$enable_largefile" != no; then
12520 echo "$as_me:12520: checking for special C compiler options needed for large files" >&5
12521 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12522 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_cv_sys_largefile_CC=no
12526 if test "$GCC" != yes; then
12529 # IRIX 6.2 and later do not support large files by default,
12530 # so use the C compiler's -n32 option if that helps.
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #line 12532 "configure"
12533 #include "confdefs.h"
12534 #include <sys/types.h>
12535 /* Check that off_t can represent 2**63 - 1 correctly.
12536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12537 since some C++ compilers masquerading as C compilers
12538 incorrectly reject 9223372036854775807. */
12539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12541 && LARGE_OFF_T % 2147483647 == 1)
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:12552: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>&5
12555 echo "$as_me:12555: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:12558: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:12561: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12565 echo "$as_me: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12568 rm -f conftest.$ac_objext
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:12571: \"$ac_compile\"") >&5
12572 (eval $ac_compile) 2>&5
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:12577: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:12580: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_cv_sys_largefile_CC=' -n32'; break
12584 echo "$as_me: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12587 rm -f conftest.$ac_objext
12591 rm -f conftest.$ac_ext
12594 echo "$as_me:12594: result: $ac_cv_sys_largefile_CC" >&5
12595 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12596 if test "$ac_cv_sys_largefile_CC" != no; then
12597 CC=$CC$ac_cv_sys_largefile_CC
12600 echo "$as_me:12600: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12601 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12602 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 ac_cv_sys_file_offset_bits=no
12607 cat >conftest.$ac_ext <<_ACEOF
12608 #line 12608 "configure"
12609 #include "confdefs.h"
12610 #include <sys/types.h>
12611 /* Check that off_t can represent 2**63 - 1 correctly.
12612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12613 since some C++ compilers masquerading as C compilers
12614 incorrectly reject 9223372036854775807. */
12615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12617 && LARGE_OFF_T % 2147483647 == 1)
12627 rm -f conftest.$ac_objext
12628 if { (eval echo "$as_me:12628: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>&5
12631 echo "$as_me:12631: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (eval echo "$as_me:12634: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:12637: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12641 echo "$as_me: failed program was:" >&5
12642 cat conftest.$ac_ext >&5
12644 rm -f conftest.$ac_objext conftest.$ac_ext
12645 cat >conftest.$ac_ext <<_ACEOF
12646 #line 12646 "configure"
12647 #include "confdefs.h"
12648 #define _FILE_OFFSET_BITS 64
12649 #include <sys/types.h>
12650 /* Check that off_t can represent 2**63 - 1 correctly.
12651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12652 since some C++ compilers masquerading as C compilers
12653 incorrectly reject 9223372036854775807. */
12654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12656 && LARGE_OFF_T % 2147483647 == 1)
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:12667: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:12673: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:12676: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_sys_file_offset_bits=64; break
12680 echo "$as_me: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12683 rm -f conftest.$ac_objext conftest.$ac_ext
12687 echo "$as_me:12687: result: $ac_cv_sys_file_offset_bits" >&5
12688 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12689 if test "$ac_cv_sys_file_offset_bits" != no; then
12691 cat >>confdefs.h <<EOF
12692 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12697 echo "$as_me:12697: checking for _LARGE_FILES value needed for large files" >&5
12698 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12699 if test "${ac_cv_sys_large_files+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 ac_cv_sys_large_files=no
12704 cat >conftest.$ac_ext <<_ACEOF
12705 #line 12705 "configure"
12706 #include "confdefs.h"
12707 #include <sys/types.h>
12708 /* Check that off_t can represent 2**63 - 1 correctly.
12709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12710 since some C++ compilers masquerading as C compilers
12711 incorrectly reject 9223372036854775807. */
12712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12714 && LARGE_OFF_T % 2147483647 == 1)
12724 rm -f conftest.$ac_objext
12725 if { (eval echo "$as_me:12725: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>&5
12728 echo "$as_me:12728: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (eval echo "$as_me:12731: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:12734: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12738 echo "$as_me: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12741 rm -f conftest.$ac_objext conftest.$ac_ext
12742 cat >conftest.$ac_ext <<_ACEOF
12743 #line 12743 "configure"
12744 #include "confdefs.h"
12745 #define _LARGE_FILES 1
12746 #include <sys/types.h>
12747 /* Check that off_t can represent 2**63 - 1 correctly.
12748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12749 since some C++ compilers masquerading as C compilers
12750 incorrectly reject 9223372036854775807. */
12751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12753 && LARGE_OFF_T % 2147483647 == 1)
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:12764: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>&5
12767 echo "$as_me:12767: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:12770: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:12773: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_sys_large_files=1; break
12777 echo "$as_me: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12780 rm -f conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me:12784: result: $ac_cv_sys_large_files" >&5
12785 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12786 if test "$ac_cv_sys_large_files" != no; then
12788 cat >>confdefs.h <<EOF
12789 #define _LARGE_FILES $ac_cv_sys_large_files
12796 if test "$enable_largefile" != no ; then
12797 echo "$as_me:12797: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12798 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12799 if test "${ac_cv_sys_largefile_source+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 ac_cv_sys_largefile_source=no
12804 cat >conftest.$ac_ext <<_ACEOF
12805 #line 12805 "configure"
12806 #include "confdefs.h"
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:12817: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>&5
12820 echo "$as_me:12820: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:12823: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:12826: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12830 echo "$as_me: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12833 rm -f conftest.$ac_objext conftest.$ac_ext
12834 cat >conftest.$ac_ext <<_ACEOF
12835 #line 12835 "configure"
12836 #include "confdefs.h"
12837 #define _LARGEFILE_SOURCE 1
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:12848: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>&5
12851 echo "$as_me:12851: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest.$ac_objext'
12854 { (eval echo "$as_me:12854: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:12857: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_sys_largefile_source=1; break
12861 echo "$as_me: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12864 rm -f conftest.$ac_objext conftest.$ac_ext
12868 echo "$as_me:12868: result: $ac_cv_sys_largefile_source" >&5
12869 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12870 if test "$ac_cv_sys_largefile_source" != no; then
12872 cat >>confdefs.h <<EOF
12873 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12879 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12880 # in glibc 2.1.3, but that breaks too many other things.
12881 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12882 echo "$as_me:12882: checking for fseeko" >&5
12883 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12884 if test "${ac_cv_func_fseeko+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 cat >conftest.$ac_ext <<_ACEOF
12888 #line 12888 "configure"
12889 #include "confdefs.h"
12894 return fseeko && fseeko (stdin, 0, 0);
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:12900: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>&5
12903 echo "$as_me:12903: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (eval echo "$as_me:12906: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:12909: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_func_fseeko=yes
12913 echo "$as_me: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 ac_cv_func_fseeko=no
12917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12919 echo "$as_me:12919: result: $ac_cv_func_fseeko" >&5
12920 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12921 if test $ac_cv_func_fseeko = yes; then
12923 cat >>confdefs.h <<\EOF
12924 #define HAVE_FSEEKO 1
12929 # Normally we would collect these definitions in the config.h,
12930 # but (like _XOPEN_SOURCE), some environments rely on having these
12931 # defined before any of the system headers are included. Another
12932 # case comes up with C++, e.g., on AIX the compiler compiles the
12933 # header files by themselves before looking at the body files it is
12934 # told to compile. For ncurses, those header files do not include
12936 if test "$ac_cv_sys_large_files" != no
12939 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12940 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
12943 if test "$ac_cv_sys_largefile_source" != no
12946 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12947 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
12950 if test "$ac_cv_sys_file_offset_bits" != no
12953 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12954 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12958 echo "$as_me:12958: checking whether to use struct dirent64" >&5
12959 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
12960 if test "${cf_cv_struct_dirent64+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12965 #line 12965 "configure"
12966 #include "confdefs.h"
12968 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
12969 #include <sys/types.h>
12970 #include <dirent.h>
12976 /* if transitional largefile support is setup, this is true */
12977 extern struct dirent64 * readdir(DIR *);
12978 struct dirent64 *x = readdir((DIR *)0);
12979 struct dirent *y = readdir((DIR *)0);
12986 rm -f conftest.$ac_objext
12987 if { (eval echo "$as_me:12987: \"$ac_compile\"") >&5
12988 (eval $ac_compile) 2>&5
12990 echo "$as_me:12990: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -s conftest.$ac_objext'
12993 { (eval echo "$as_me:12993: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:12996: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 cf_cv_struct_dirent64=yes
13000 echo "$as_me: failed program was:" >&5
13001 cat conftest.$ac_ext >&5
13002 cf_cv_struct_dirent64=no
13004 rm -f conftest.$ac_objext conftest.$ac_ext
13007 echo "$as_me:13007: result: $cf_cv_struct_dirent64" >&5
13008 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13009 test "$cf_cv_struct_dirent64" = yes &&
13010 cat >>confdefs.h <<\EOF
13011 #define HAVE_STRUCT_DIRENT64 1
13016 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13017 echo "$as_me:13017: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13018 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13020 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13021 if test "${enable_tparm_varargs+set}" = set; then
13022 enableval="$enable_tparm_varargs"
13023 with_tparm_varargs=$enableval
13025 with_tparm_varargs=yes
13027 echo "$as_me:13027: result: $with_tparm_varargs" >&5
13028 echo "${ECHO_T}$with_tparm_varargs" >&6
13029 NCURSES_TPARM_VARARGS=0
13030 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13032 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13033 if test "$with_ticlib" != no ; then
13034 echo "$as_me:13034: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13035 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13037 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13038 if test "${enable_tic_depends+set}" = set; then
13039 enableval="$enable_tic_depends"
13040 with_tic_depends=$enableval
13042 with_tic_depends=yes
13044 echo "$as_me:13044: result: $with_tic_depends" >&5
13045 echo "${ECHO_T}$with_tic_depends" >&6
13047 with_tic_depends=no
13050 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13051 echo "$as_me:13051: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13052 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13054 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13055 if test "${enable_wattr_macros+set}" = set; then
13056 enableval="$enable_wattr_macros"
13057 with_wattr_macros=$enableval
13059 with_wattr_macros=yes
13061 if [ "x$with_wattr_macros" != xyes ]; then
13062 NCURSES_WATTR_MACROS=0
13063 echo "$as_me:13063: result: yes" >&5
13064 echo "${ECHO_T}yes" >&6
13066 NCURSES_WATTR_MACROS=1
13067 echo "$as_me:13067: result: no" >&5
13068 echo "${ECHO_T}no" >&6
13071 echo "$as_me:13071: checking for X11 rgb file" >&5
13072 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13074 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13075 if test "${with_x11_rgb+set}" = set; then
13076 withval="$with_x11_rgb"
13082 if test "x$RGB_PATH" = xauto
13084 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13086 /opt/local/share/X11/rgb.txt \
13087 /opt/X11/share/X11/rgb.txt \
13088 /usr/share/X11/rgb.txt \
13089 /usr/X11/share/X11/rgb.txt \
13090 /usr/X11/lib/X11/rgb.txt \
13091 /usr/lib/X11/rgb.txt \
13093 /usr/pkg/lib/X11/rgb.txt \
13094 /usr/X11R7/lib/X11/rgb.txt \
13095 /usr/X11R6/lib/X11/rgb.txt \
13096 /usr/X11R5/lib/X11/rgb.txt \
13097 /usr/X11R4/lib/X11/rgb.txt \
13098 /usr/local/lib/X11/rgb.txt \
13099 /usr/local/share/X11/rgb.txt \
13100 /usr/lib64/X11/rgb.txt
13102 if test -f "$cf_path" ; then
13103 RGB_PATH="$cf_path"
13110 if test "x$prefix" != xNONE; then
13111 cf_path_syntax="$prefix"
13113 cf_path_syntax="$ac_default_prefix"
13116 case ".$cf_path" in
13117 (.\$\(*\)*|.\'*\'*)
13121 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13123 (.\${*prefix}*|.\${*dir}*)
13124 eval cf_path="$cf_path"
13125 case ".$cf_path" in
13127 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13132 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13135 { { echo "$as_me:13135: error: expected a pathname, not \"$cf_path\"" >&5
13136 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13137 { (exit 1); exit 1; }; }
13143 echo "$as_me:13143: result: $RGB_PATH" >&5
13144 echo "${ECHO_T}$RGB_PATH" >&6
13146 cat >>confdefs.h <<EOF
13147 #define RGB_PATH "$cf_path"
13151 if test "$RGB_PATH" = no
13156 ### use option --with-bool to override bool's type
13157 echo "$as_me:13157: checking for type of bool" >&5
13158 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13160 # Check whether --with-bool or --without-bool was given.
13161 if test "${with_bool+set}" = set; then
13162 withval="$with_bool"
13163 NCURSES_BOOL="$withval"
13167 echo "$as_me:13167: result: $NCURSES_BOOL" >&5
13168 echo "${ECHO_T}$NCURSES_BOOL" >&6
13170 echo "$as_me:13170: checking for alternate terminal capabilities file" >&5
13171 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13173 # Check whether --with-caps or --without-caps was given.
13174 if test "${with_caps+set}" = set; then
13175 withval="$with_caps"
13176 TERMINFO_CAPS=Caps.$withval
13180 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13181 echo "$as_me:13181: result: $TERMINFO_CAPS" >&5
13182 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13184 ### use option --with-chtype to override chtype's type
13185 echo "$as_me:13185: checking for type of chtype" >&5
13186 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13188 # Check whether --with-chtype or --without-chtype was given.
13189 if test "${with_chtype+set}" = set; then
13190 withval="$with_chtype"
13191 NCURSES_CHTYPE="$withval"
13193 NCURSES_CHTYPE=$cf_dft_chtype
13195 echo "$as_me:13195: result: $NCURSES_CHTYPE" >&5
13196 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13198 ### use option --with-ospeed to override ospeed's type
13199 echo "$as_me:13199: checking for type of ospeed" >&5
13200 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13202 # Check whether --with-ospeed or --without-ospeed was given.
13203 if test "${with_ospeed+set}" = set; then
13204 withval="$with_ospeed"
13205 NCURSES_OSPEED="$withval"
13207 NCURSES_OSPEED=short
13209 echo "$as_me:13209: result: $NCURSES_OSPEED" >&5
13210 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13212 ### use option --with-mmask-t to override mmask_t's type
13213 echo "$as_me:13213: checking for type of mmask_t" >&5
13214 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13216 # Check whether --with-mmask-t or --without-mmask-t was given.
13217 if test "${with_mmask_t+set}" = set; then
13218 withval="$with_mmask_t"
13219 NCURSES_MMASK_T="$withval"
13221 NCURSES_MMASK_T=$cf_dft_mmask_t
13223 echo "$as_me:13223: result: $NCURSES_MMASK_T" >&5
13224 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13226 ### use option --with-ccharw-max to override CCHARW_MAX size
13227 echo "$as_me:13227: checking for size CCHARW_MAX" >&5
13228 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13230 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13231 if test "${with_ccharw_max+set}" = set; then
13232 withval="$with_ccharw_max"
13233 NCURSES_CCHARW_MAX="$withval"
13235 NCURSES_CCHARW_MAX=5
13237 echo "$as_me:13237: result: $NCURSES_CCHARW_MAX" >&5
13238 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13240 echo "$as_me:13240: checking for ANSI C header files" >&5
13241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13242 if test "${ac_cv_header_stdc+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13246 #line 13246 "configure"
13247 #include "confdefs.h"
13248 #include <stdlib.h>
13249 #include <stdarg.h>
13250 #include <string.h>
13254 if { (eval echo "$as_me:13254: \"$ac_cpp conftest.$ac_ext\"") >&5
13255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13257 egrep -v '^ *\+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:13260: \$? = $ac_status" >&5
13261 (exit $ac_status); } >/dev/null; then
13262 if test -s conftest.err; then
13263 ac_cpp_err=$ac_c_preproc_warn_flag
13270 if test -z "$ac_cpp_err"; then
13271 ac_cv_header_stdc=yes
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 ac_cv_header_stdc=no
13277 rm -f conftest.err conftest.$ac_ext
13279 if test $ac_cv_header_stdc = yes; then
13280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13281 cat >conftest.$ac_ext <<_ACEOF
13282 #line 13282 "configure"
13283 #include "confdefs.h"
13284 #include <string.h>
13287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13288 egrep "memchr" >/dev/null 2>&1; then
13291 ac_cv_header_stdc=no
13297 if test $ac_cv_header_stdc = yes; then
13298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13299 cat >conftest.$ac_ext <<_ACEOF
13300 #line 13300 "configure"
13301 #include "confdefs.h"
13302 #include <stdlib.h>
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 egrep "free" >/dev/null 2>&1; then
13309 ac_cv_header_stdc=no
13315 if test $ac_cv_header_stdc = yes; then
13316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13317 if test "$cross_compiling" = yes; then
13320 cat >conftest.$ac_ext <<_ACEOF
13321 #line 13321 "configure"
13322 #include "confdefs.h"
13324 #if ((' ' & 0x0FF) == 0x020)
13325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13328 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13329 || ('j' <= (c) && (c) <= 'r') \
13330 || ('s' <= (c) && (c) <= 'z'))
13331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13339 for (i = 0; i < 256; i++)
13340 if (XOR (islower (i), ISLOWER (i))
13341 || toupper (i) != TOUPPER (i))
13342 $ac_main_return(2);
13343 $ac_main_return (0);
13346 rm -f conftest$ac_exeext
13347 if { (eval echo "$as_me:13347: \"$ac_link\"") >&5
13348 (eval $ac_link) 2>&5
13350 echo "$as_me:13350: \$? = $ac_status" >&5
13351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13352 { (eval echo "$as_me:13352: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 echo "$as_me:13355: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13359 echo "$as_me: program exited with status $ac_status" >&5
13360 echo "$as_me: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 ac_cv_header_stdc=no
13364 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13368 echo "$as_me:13368: result: $ac_cv_header_stdc" >&5
13369 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13370 if test $ac_cv_header_stdc = yes; then
13372 cat >>confdefs.h <<\EOF
13373 #define STDC_HEADERS 1
13378 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13381 inttypes.h stdint.h unistd.h
13383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13384 echo "$as_me:13384: checking for $ac_header" >&5
13385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13390 #line 13390 "configure"
13391 #include "confdefs.h"
13392 $ac_includes_default
13393 #include <$ac_header>
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:13396: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13399 echo "$as_me:13399: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:13402: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:13405: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 eval "$as_ac_Header=yes"
13409 echo "$as_me: failed program was:" >&5
13410 cat conftest.$ac_ext >&5
13411 eval "$as_ac_Header=no"
13413 rm -f conftest.$ac_objext conftest.$ac_ext
13415 echo "$as_me:13415: result: `eval echo '${'$as_ac_Header'}'`" >&5
13416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13418 cat >>confdefs.h <<EOF
13419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13425 echo "$as_me:13425: checking for signed char" >&5
13426 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13427 if test "${ac_cv_type_signed_char+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.$ac_ext <<_ACEOF
13431 #line 13431 "configure"
13432 #include "confdefs.h"
13433 $ac_includes_default
13437 if ((signed char *) 0)
13439 if (sizeof (signed char))
13445 rm -f conftest.$ac_objext
13446 if { (eval echo "$as_me:13446: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>&5
13449 echo "$as_me:13449: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (eval echo "$as_me:13452: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 echo "$as_me:13455: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_type_signed_char=yes
13459 echo "$as_me: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 ac_cv_type_signed_char=no
13463 rm -f conftest.$ac_objext conftest.$ac_ext
13465 echo "$as_me:13465: result: $ac_cv_type_signed_char" >&5
13466 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13468 echo "$as_me:13468: checking size of signed char" >&5
13469 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13470 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 if test "$ac_cv_type_signed_char" = yes; then
13474 if test "$cross_compiling" = yes; then
13475 # Depending upon the size, compute the lo and hi bounds.
13476 cat >conftest.$ac_ext <<_ACEOF
13477 #line 13477 "configure"
13478 #include "confdefs.h"
13479 $ac_includes_default
13483 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13488 rm -f conftest.$ac_objext
13489 if { (eval echo "$as_me:13489: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>&5
13492 echo "$as_me:13492: \$? = $ac_status" >&5
13493 (exit $ac_status); } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (eval echo "$as_me:13495: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13498 echo "$as_me:13498: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line 13503 "configure"
13504 #include "confdefs.h"
13505 $ac_includes_default
13509 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13514 rm -f conftest.$ac_objext
13515 if { (eval echo "$as_me:13515: \"$ac_compile\"") >&5
13516 (eval $ac_compile) 2>&5
13518 echo "$as_me:13518: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:13521: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:13524: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 ac_hi=$ac_mid; break
13528 echo "$as_me: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13530 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13532 rm -f conftest.$ac_objext conftest.$ac_ext
13535 echo "$as_me: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line 13540 "configure"
13541 #include "confdefs.h"
13542 $ac_includes_default
13546 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13551 rm -f conftest.$ac_objext
13552 if { (eval echo "$as_me:13552: \"$ac_compile\"") >&5
13553 (eval $ac_compile) 2>&5
13555 echo "$as_me:13555: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:13558: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:13561: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_lo=$ac_mid; break
13565 echo "$as_me: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13567 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13569 rm -f conftest.$ac_objext conftest.$ac_ext
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13573 # Binary search between lo and hi bounds.
13574 while test "x$ac_lo" != "x$ac_hi"; do
13575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13576 cat >conftest.$ac_ext <<_ACEOF
13577 #line 13577 "configure"
13578 #include "confdefs.h"
13579 $ac_includes_default
13583 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13588 rm -f conftest.$ac_objext
13589 if { (eval echo "$as_me:13589: \"$ac_compile\"") >&5
13590 (eval $ac_compile) 2>&5
13592 echo "$as_me:13592: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:13595: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:13598: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13602 echo "$as_me: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13604 ac_lo=`expr $ac_mid + 1`
13606 rm -f conftest.$ac_objext conftest.$ac_ext
13608 ac_cv_sizeof_signed_char=$ac_lo
13610 if test "$cross_compiling" = yes; then
13611 { { echo "$as_me:13611: error: cannot run test program while cross compiling" >&5
13612 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13613 { (exit 1); exit 1; }; }
13615 cat >conftest.$ac_ext <<_ACEOF
13616 #line 13616 "configure"
13617 #include "confdefs.h"
13618 $ac_includes_default
13622 FILE *f = fopen ("conftest.val", "w");
13624 $ac_main_return (1);
13625 fprintf (f, "%d", (sizeof (signed char)));
13631 rm -f conftest$ac_exeext
13632 if { (eval echo "$as_me:13632: \"$ac_link\"") >&5
13633 (eval $ac_link) 2>&5
13635 echo "$as_me:13635: \$? = $ac_status" >&5
13636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13637 { (eval echo "$as_me:13637: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_sizeof_signed_char=`cat conftest.val`
13644 echo "$as_me: program exited with status $ac_status" >&5
13645 echo "$as_me: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13648 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13653 ac_cv_sizeof_signed_char=0
13656 echo "$as_me:13656: result: $ac_cv_sizeof_signed_char" >&5
13657 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13658 cat >>confdefs.h <<EOF
13659 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13662 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13663 NCURSES_SBOOL="signed char"
13665 NCURSES_SBOOL="char"
13667 echo "$as_me:13667: checking if you want to use signed Boolean array in term.h" >&5
13668 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13670 # Check whether --enable-signed-char or --disable-signed-char was given.
13671 if test "${enable_signed_char+set}" = set; then
13672 enableval="$enable_signed_char"
13673 with_signed_char=$enableval
13675 with_signed_char=no
13677 echo "$as_me:13677: result: $with_signed_char" >&5
13678 echo "${ECHO_T}$with_signed_char" >&6
13679 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13681 ### use option --with-tparm-arg to override tparm's argument type
13682 echo "$as_me:13682: checking for type of tparm args" >&5
13683 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
13685 # Check whether --with-tparm-arg or --without-tparm-arg was given.
13686 if test "${with_tparm_arg+set}" = set; then
13687 withval="$with_tparm_arg"
13688 NCURSES_TPARM_ARG="$withval"
13690 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
13692 echo "$as_me:13692: result: $NCURSES_TPARM_ARG" >&5
13693 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
13695 ### Enable compiling-in rcs id's
13696 echo "$as_me:13696: checking if RCS identifiers should be compiled-in" >&5
13697 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
13699 # Check whether --with-rcs-ids or --without-rcs-ids was given.
13700 if test "${with_rcs_ids+set}" = set; then
13701 withval="$with_rcs_ids"
13702 with_rcs_ids=$withval
13706 echo "$as_me:13706: result: $with_rcs_ids" >&5
13707 echo "${ECHO_T}$with_rcs_ids" >&6
13708 test "x$with_rcs_ids" = xyes &&
13709 cat >>confdefs.h <<\EOF
13710 #define USE_RCS_IDS 1
13713 ###############################################################################
13715 echo "$as_me:13715: checking format of man-pages" >&5
13716 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
13718 # Check whether --with-manpage-format or --without-manpage-format was given.
13719 if test "${with_manpage_format+set}" = set; then
13720 withval="$with_manpage_format"
13721 MANPAGE_FORMAT=$withval
13723 MANPAGE_FORMAT=unknown
13726 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
13727 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
13731 case $MANPAGE_FORMAT in
13733 if test -z "$MANPATH" ; then
13734 MANPATH="/usr/man:/usr/share/man"
13737 # look for the 'date' man-page (it's most likely to be installed!)
13743 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
13744 for cf_dir in $MANPATH; do
13745 test -z "$cf_dir" && cf_dir=/usr/man
13746 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
13748 cf_test=`echo $cf_name | sed -e 's/*//'`
13749 if test "x$cf_test" = "x$cf_name" ; then
13752 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
13753 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
13754 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
13755 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
13769 # if we found a match in either man* or cat*, stop looking
13770 if test -n "$MANPAGE_FORMAT" ; then
13772 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
13773 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
13779 test $cf_found=yes && break
13782 # only check the first directory in $MANPATH where we find manpages
13783 if test -n "$MANPAGE_FORMAT" ; then
13787 # if we did not find the example, just assume it is normal
13788 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
13792 for cf_option in $MANPAGE_FORMAT; do
13794 (gzip|compress|BSDI|normal|formatted|catonly)
13797 cf_unknown="$cf_unknown $cf_option"
13804 echo "$as_me:13804: result: $MANPAGE_FORMAT" >&5
13805 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
13806 if test -n "$cf_unknown" ; then
13807 { echo "$as_me:13807: WARNING: Unexpected manpage-format $cf_unknown" >&5
13808 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
13811 echo "$as_me:13811: checking for manpage renaming" >&5
13812 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
13814 # Check whether --with-manpage-renames or --without-manpage-renames was given.
13815 if test "${with_manpage_renames+set}" = set; then
13816 withval="$with_manpage_renames"
13817 MANPAGE_RENAMES=$withval
13819 MANPAGE_RENAMES=yes
13822 case ".$MANPAGE_RENAMES" in
13826 # Debian 'man' program?
13827 if test -f /etc/debian_version ; then
13828 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
13835 if test "$MANPAGE_RENAMES" != no ; then
13836 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
13837 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
13838 elif test ! -f $MANPAGE_RENAMES ; then
13839 { { echo "$as_me:13839: error: not a filename: $MANPAGE_RENAMES" >&5
13840 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
13841 { (exit 1); exit 1; }; }
13844 test ! -d man && mkdir man
13846 # Construct a sed-script to perform renaming within man-pages
13847 if test -n "$MANPAGE_RENAMES" ; then
13848 test ! -d man && mkdir man
13849 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
13853 echo "$as_me:13853: result: $MANPAGE_RENAMES" >&5
13854 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
13856 echo "$as_me:13856: checking if manpage aliases will be installed" >&5
13857 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
13859 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
13860 if test "${with_manpage_aliases+set}" = set; then
13861 withval="$with_manpage_aliases"
13862 MANPAGE_ALIASES=$withval
13864 MANPAGE_ALIASES=yes
13867 echo "$as_me:13867: result: $MANPAGE_ALIASES" >&5
13868 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
13872 cf_use_symlinks=yes
13879 MANPAGE_SYMLINKS=no
13880 if test "$MANPAGE_ALIASES" = yes ; then
13881 echo "$as_me:13881: checking if manpage symlinks should be used" >&5
13882 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
13884 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
13885 if test "${with_manpage_symlinks+set}" = set; then
13886 withval="$with_manpage_symlinks"
13887 MANPAGE_SYMLINKS=$withval
13889 MANPAGE_SYMLINKS=$cf_use_symlinks
13892 if test "$$cf_use_symlinks" = no; then
13893 if test "$MANPAGE_SYMLINKS" = yes ; then
13894 { echo "$as_me:13894: WARNING: cannot make symlinks" >&5
13895 echo "$as_me: WARNING: cannot make symlinks" >&2;}
13896 MANPAGE_SYMLINKS=no
13900 echo "$as_me:13900: result: $MANPAGE_SYMLINKS" >&5
13901 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
13904 echo "$as_me:13904: checking for manpage tbl" >&5
13905 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
13907 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
13908 if test "${with_manpage_tbl+set}" = set; then
13909 withval="$with_manpage_tbl"
13910 MANPAGE_TBL=$withval
13915 echo "$as_me:13915: result: $MANPAGE_TBL" >&5
13916 echo "${ECHO_T}$MANPAGE_TBL" >&6
13918 if test "$prefix" = "NONE" ; then
13919 cf_prefix="$ac_default_prefix"
13921 cf_prefix="$prefix"
13924 case "$MANPAGE_FORMAT" in
13939 test ! -d man && mkdir man
13943 case "$MANPAGE_FORMAT" in
13946 cf_compress=compress
13954 cf_edit_man=./edit_man.sh
13955 cf_man_alias=`pwd`/man_alias.sed
13957 cat >$cf_edit_man <<CF_EOF
13959 # this script is generated by the configure-script CF_MAN_PAGES macro.
13961 prefix="$cf_prefix"
13962 datarootdir="$datarootdir"
13965 NCURSES_MAJOR="$NCURSES_MAJOR"
13966 NCURSES_MINOR="$NCURSES_MINOR"
13967 NCURSES_PATCH="$NCURSES_PATCH"
13969 NCURSES_OSPEED="$NCURSES_OSPEED"
13970 TERMINFO="$TERMINFO"
13973 INSTALL_DATA="$INSTALL_DATA"
13975 transform="$program_transform_name"
13977 TMP=\${TMPDIR:=/tmp}/man\$\$
13978 trap "rm -f \$TMP" 0 1 2 3 15
13990 top_srcdir=\$srcdir/..
13993 if test "\$form" = normal ; then
13994 if test "$cf_format" = yes ; then
13995 if test "$cf_inboth" = no ; then
13996 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14000 cf_subdir=\$mandir/man
14001 cf_tables=$MANPAGE_TBL
14003 cf_subdir=\$mandir/cat
14007 # process the list of source-files
14012 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14013 if test \$verb = installing ; then
14014 if test ! -d \$cf_subdir\${section} ; then
14015 mkdir -p \$cf_subdir\$section
14019 # replace variables in man page
14020 if test ! -f $cf_man_alias ; then
14021 cat >>$cf_man_alias <<-CF_EOF2
14022 s,@DATADIR@,\$datadir,g
14023 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14024 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14025 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14026 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14027 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14028 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14031 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14033 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14034 cf_name=`echo $cf_name|sed "$program_transform_name"`
14035 cat >>$cf_edit_man <<-CF_EOF
14036 s,@$cf_NAME@,$cf_name,g
14040 cat >>$cf_edit_man <<CF_EOF
14042 echo "...made $cf_man_alias"
14046 cf_source=\`basename \$i\`
14047 inalias=\$cf_source
14048 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
14049 if test ! -f \$inalias ; then
14050 echo .. skipped \$cf_source
14055 if test "$MANPAGE_ALIASES" != no ; then
14056 cat >>$cf_edit_man <<CF_EOF
14058 test $with_curses_h = yes && nCurses=ncurses.3x
14059 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
14063 if test "$MANPAGE_RENAMES" = no ; then
14064 cat >>$cf_edit_man <<CF_EOF
14065 # perform program transformations for section 1 man pages
14066 if test \$section = 1 ; then
14067 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14069 cf_target=\$cf_subdir\${section}/\$cf_source
14073 cat >>$cf_edit_man <<CF_EOF
14074 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14075 if test -z "\$cf_target" ; then
14076 echo '? missing rename for '\$cf_source
14077 cf_target="\$cf_source"
14079 cf_target="\$cf_subdir\${section}/\${cf_target}"
14084 cat >>$cf_edit_man <<CF_EOF
14085 sed -f $cf_man_alias \\
14088 if test -f $MANPAGE_RENAMES ; then
14089 cat >>$cf_edit_man <<CF_EOF
14090 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
14093 cat >>$cf_edit_man <<CF_EOF
14098 cat >>$cf_edit_man <<CF_EOF
14099 if test \$cf_tables = yes ; then
14100 tbl \$TMP >\$TMP.out
14105 if test $with_overwrite != yes ; then
14106 cat >>$cf_edit_man <<CF_EOF
14107 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14112 if test $with_curses_h != yes ; then
14113 cat >>$cf_edit_man <<CF_EOF
14114 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14119 cat >>$cf_edit_man <<CF_EOF
14120 if test \$form = format ; then
14121 nroff -man \$TMP >\$TMP.out
14126 if test -n "$cf_compress" ; then
14127 cat >>$cf_edit_man <<CF_EOF
14128 if test \$verb = installing ; then
14129 if ( $cf_compress -f \$TMP )
14131 mv \$TMP.$cf_so_strip \$TMP
14134 cf_target="\$cf_target.$cf_so_strip"
14138 case "$MANPAGE_FORMAT" in
14140 cat >>$cf_edit_man <<CF_EOF
14141 if test \$form = format ; then
14142 # BSDI installs only .0 suffixes in the cat directories
14143 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
14149 cat >>$cf_edit_man <<CF_EOF
14150 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
14151 if test \$verb = installing ; then
14152 echo \$verb \$cf_target
14153 \$INSTALL_DATA \$TMP \$cf_target
14154 test -d \$cf_subdir\${section} &&
14155 test -n "\$aliases" && (
14156 cd \$cf_subdir\${section} && (
14157 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
14158 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
14159 cf_target=\`basename \$cf_target\`
14160 for cf_alias in \$aliases
14162 if test \$section = 1 ; then
14163 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14166 if test "$MANPAGE_SYMLINKS" = yes ; then
14167 if test -f \$cf_alias\${suffix} ; then
14168 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
14173 echo .. \$verb alias \$cf_alias\${suffix}
14177 cat >>$cf_edit_man <<CF_EOF
14178 $LN_S \$cf_target \$cf_alias\${suffix}
14182 cat >>$cf_edit_man <<CF_EOF
14183 rm -f \$cf_alias\${suffix}
14184 $LN_S \$cf_target \$cf_alias\${suffix}
14188 cat >>$cf_edit_man <<CF_EOF
14189 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14190 echo ".so \$cf_source" >\$TMP
14192 if test -n "$cf_compress" ; then
14193 cat >>$cf_edit_man <<CF_EOF
14194 if test -n "$cf_so_strip" ; then
14195 $cf_compress -f \$TMP
14196 mv \$TMP.$cf_so_strip \$TMP
14200 cat >>$cf_edit_man <<CF_EOF
14201 echo .. \$verb alias \$cf_alias\${suffix}
14202 rm -f \$cf_alias\${suffix}
14203 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
14208 elif test \$verb = removing ; then
14209 test -f \$cf_target && (
14210 echo \$verb \$cf_target
14213 test -d \$cf_subdir\${section} &&
14214 test -n "\$aliases" && (
14215 cd \$cf_subdir\${section} && (
14216 for cf_alias in \$aliases
14218 if test \$section = 1 ; then
14219 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14222 echo .. \$verb alias \$cf_alias\${suffix}
14223 rm -f \$cf_alias\${suffix}
14235 if test $cf_inboth = yes ; then
14236 if test \$form != format ; then
14237 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14243 chmod 755 $cf_edit_man
14245 ###############################################################################
14247 ### Note that some functions (such as const) are normally disabled anyway.
14248 echo "$as_me:14248: checking if you want to build with function extensions" >&5
14249 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14251 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14252 if test "${enable_ext_funcs+set}" = set; then
14253 enableval="$enable_ext_funcs"
14254 with_ext_funcs=$enableval
14258 echo "$as_me:14258: result: $with_ext_funcs" >&5
14259 echo "${ECHO_T}$with_ext_funcs" >&6
14260 if test "x$with_ext_funcs" = xyes ; then
14261 NCURSES_EXT_FUNCS=1
14263 cat >>confdefs.h <<\EOF
14264 #define NCURSES_EXT_FUNCS 1
14267 cat >>confdefs.h <<\EOF
14268 #define HAVE_ASSUME_DEFAULT_COLORS 1
14271 cat >>confdefs.h <<\EOF
14272 #define HAVE_CURSES_VERSION 1
14275 cat >>confdefs.h <<\EOF
14276 #define HAVE_HAS_KEY 1
14279 cat >>confdefs.h <<\EOF
14280 #define HAVE_RESIZETERM 1
14283 cat >>confdefs.h <<\EOF
14284 #define HAVE_RESIZE_TERM 1
14287 cat >>confdefs.h <<\EOF
14288 #define HAVE_TERM_ENTRY_H 1
14291 cat >>confdefs.h <<\EOF
14292 #define HAVE_USE_DEFAULT_COLORS 1
14295 cat >>confdefs.h <<\EOF
14296 #define HAVE_USE_EXTENDED_NAMES 1
14299 cat >>confdefs.h <<\EOF
14300 #define HAVE_USE_SCREEN 1
14303 cat >>confdefs.h <<\EOF
14304 #define HAVE_USE_WINDOW 1
14307 cat >>confdefs.h <<\EOF
14308 #define HAVE_WRESIZE 1
14311 GENERATED_EXT_FUNCS=generated
14312 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14314 NCURSES_EXT_FUNCS=0
14315 GENERATED_EXT_FUNCS=
14318 echo "$as_me:14318: checking if you want to build with SCREEN extensions" >&5
14319 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14321 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14322 if test "${enable_sp_funcs+set}" = set; then
14323 enableval="$enable_sp_funcs"
14324 with_sp_funcs=$enableval
14326 with_sp_funcs=$cf_dft_ext_spfuncs
14328 echo "$as_me:14328: result: $with_sp_funcs" >&5
14329 echo "${ECHO_T}$with_sp_funcs" >&6
14330 if test "x$with_sp_funcs" = xyes ; then
14333 cat >>confdefs.h <<\EOF
14334 #define NCURSES_SP_FUNCS 1
14337 cat >>confdefs.h <<\EOF
14338 #define HAVE_TPUTS_SP 1
14341 GENERATED_SP_FUNCS=generated
14344 GENERATED_SP_FUNCS=
14347 echo "$as_me:14347: checking if you want to build with terminal-driver" >&5
14348 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14350 # Check whether --enable-term-driver or --disable-term-driver was given.
14351 if test "${enable_term_driver+set}" = set; then
14352 enableval="$enable_term_driver"
14353 with_term_driver=$enableval
14355 with_term_driver=no
14357 echo "$as_me:14357: result: $with_term_driver" >&5
14358 echo "${ECHO_T}$with_term_driver" >&6
14359 if test "x$with_term_driver" = xyes ; then
14361 cat >>confdefs.h <<\EOF
14362 #define USE_TERM_DRIVER 1
14365 if test "x$with_termlib" != xno ; then
14366 { { echo "$as_me:14366: error: The term-driver option conflicts with the termlib option" >&5
14367 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14368 { (exit 1); exit 1; }; }
14370 if test "x$with_sp_funcs" != xyes ; then
14371 { { echo "$as_me:14371: error: The term-driver option relies upon sp-funcs" >&5
14372 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14373 { (exit 1); exit 1; }; }
14377 ### use option --enable-const to turn on use of const beyond that in XSI.
14378 echo "$as_me:14378: checking for extended use of const keyword" >&5
14379 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14381 # Check whether --enable-const or --disable-const was given.
14382 if test "${enable_const+set}" = set; then
14383 enableval="$enable_const"
14384 with_ext_const=$enableval
14386 with_ext_const=$cf_dft_ext_const
14388 echo "$as_me:14388: result: $with_ext_const" >&5
14389 echo "${ECHO_T}$with_ext_const" >&6
14390 NCURSES_CONST='/*nothing*/'
14391 if test "x$with_ext_const" = xyes ; then
14392 NCURSES_CONST=const
14395 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14396 echo "$as_me:14396: checking if you want to use extended colors" >&5
14397 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14399 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14400 if test "${enable_ext_colors+set}" = set; then
14401 enableval="$enable_ext_colors"
14402 with_ext_colors=$enableval
14404 with_ext_colors=$cf_dft_ext_colors
14406 echo "$as_me:14406: result: $with_ext_colors" >&5
14407 echo "${ECHO_T}$with_ext_colors" >&6
14408 NCURSES_EXT_COLORS=0
14409 if test "x$with_ext_colors" = xyes ; then
14410 if test "x$with_widec" != xyes ; then
14411 { echo "$as_me:14411: WARNING: This option applies only to wide-character library" >&5
14412 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14414 # cannot be ABI 5 since it changes sizeof(cchar_t)
14416 if test "${with_abi_version+set}" != set; then
14417 case $cf_cv_rel_version in
14419 cf_cv_rel_version=6.0
14420 cf_cv_abi_version=6
14421 { echo "$as_me:14421: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14422 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14427 NCURSES_EXT_COLORS=1
14429 cat >>confdefs.h <<\EOF
14430 #define NCURSES_EXT_COLORS 1
14433 cat >>confdefs.h <<\EOF
14434 #define HAVE_ALLOC_PAIR 1
14437 cat >>confdefs.h <<\EOF
14438 #define HAVE_INIT_EXTENDED_COLOR 1
14441 cat >>confdefs.h <<\EOF
14442 #define HAVE_RESET_COLOR_PAIRS 1
14448 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14449 echo "$as_me:14449: checking if you want to use extended mouse encoding" >&5
14450 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14452 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14453 if test "${enable_ext_mouse+set}" = set; then
14454 enableval="$enable_ext_mouse"
14455 with_ext_mouse=$enableval
14457 with_ext_mouse=$cf_dft_ext_mouse
14459 echo "$as_me:14459: result: $with_ext_mouse" >&5
14460 echo "${ECHO_T}$with_ext_mouse" >&6
14461 NCURSES_MOUSE_VERSION=1
14462 if test "x$with_ext_mouse" = xyes ; then
14463 NCURSES_MOUSE_VERSION=2
14465 if test "${with_abi_version+set}" != set; then
14466 case $cf_cv_rel_version in
14468 cf_cv_rel_version=6.0
14469 cf_cv_abi_version=6
14470 { echo "$as_me:14470: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14471 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14478 ### use option --enable-ext-putwin to turn on extended screendumps
14479 echo "$as_me:14479: checking if you want to use extended putwin/screendump" >&5
14480 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14482 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14483 if test "${enable_ext_putwin+set}" = set; then
14484 enableval="$enable_ext_putwin"
14485 with_ext_putwin=$enableval
14487 with_ext_putwin=$cf_dft_ext_putwin
14489 echo "$as_me:14489: result: $with_ext_putwin" >&5
14490 echo "${ECHO_T}$with_ext_putwin" >&6
14491 if test "x$with_ext_putwin" = xyes ; then
14493 cat >>confdefs.h <<\EOF
14494 #define NCURSES_EXT_PUTWIN 1
14499 echo "$as_me:14499: checking if you want \$NCURSES_NO_PADDING code" >&5
14500 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14502 # Check whether --enable-no-padding or --disable-no-padding was given.
14503 if test "${enable_no_padding+set}" = set; then
14504 enableval="$enable_no_padding"
14505 with_no_padding=$enableval
14507 with_no_padding=$with_ext_funcs
14509 echo "$as_me:14509: result: $with_no_padding" >&5
14510 echo "${ECHO_T}$with_no_padding" >&6
14511 test "x$with_no_padding" = xyes &&
14512 cat >>confdefs.h <<\EOF
14513 #define NCURSES_NO_PADDING 1
14516 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14517 echo "$as_me:14517: checking if you want SIGWINCH handler" >&5
14518 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14520 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14521 if test "${enable_sigwinch+set}" = set; then
14522 enableval="$enable_sigwinch"
14523 with_sigwinch=$enableval
14525 with_sigwinch=$with_ext_funcs
14527 echo "$as_me:14527: result: $with_sigwinch" >&5
14528 echo "${ECHO_T}$with_sigwinch" >&6
14529 test "x$with_sigwinch" = xyes &&
14530 cat >>confdefs.h <<\EOF
14531 #define USE_SIGWINCH 1
14534 ### use option --enable-tcap-names to allow user to define new capabilities
14535 echo "$as_me:14535: checking if you want user-definable terminal capabilities like termcap" >&5
14536 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14538 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14539 if test "${enable_tcap_names+set}" = set; then
14540 enableval="$enable_tcap_names"
14541 with_tcap_names=$enableval
14543 with_tcap_names=$with_ext_funcs
14545 echo "$as_me:14545: result: $with_tcap_names" >&5
14546 echo "${ECHO_T}$with_tcap_names" >&6
14548 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14550 ##############################################################################
14552 echo "$as_me:14552: checking if you want to link with the pthread library" >&5
14553 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14555 # Check whether --with-pthread or --without-pthread was given.
14556 if test "${with_pthread+set}" = set; then
14557 withval="$with_pthread"
14558 with_pthread=$withval
14562 echo "$as_me:14562: result: $with_pthread" >&5
14563 echo "${ECHO_T}$with_pthread" >&6
14565 if test "$with_pthread" != no ; then
14566 echo "$as_me:14566: checking for pthread.h" >&5
14567 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14568 if test "${ac_cv_header_pthread_h+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 cat >conftest.$ac_ext <<_ACEOF
14572 #line 14572 "configure"
14573 #include "confdefs.h"
14574 #include <pthread.h>
14576 if { (eval echo "$as_me:14576: \"$ac_cpp conftest.$ac_ext\"") >&5
14577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14579 egrep -v '^ *\+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 echo "$as_me:14582: \$? = $ac_status" >&5
14583 (exit $ac_status); } >/dev/null; then
14584 if test -s conftest.err; then
14585 ac_cpp_err=$ac_c_preproc_warn_flag
14592 if test -z "$ac_cpp_err"; then
14593 ac_cv_header_pthread_h=yes
14595 echo "$as_me: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14597 ac_cv_header_pthread_h=no
14599 rm -f conftest.err conftest.$ac_ext
14601 echo "$as_me:14601: result: $ac_cv_header_pthread_h" >&5
14602 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14603 if test $ac_cv_header_pthread_h = yes; then
14605 cat >>confdefs.h <<\EOF
14606 #define HAVE_PTHREADS_H 1
14609 for cf_lib_pthread in pthread c_r
14611 echo "$as_me:14611: checking if we can link with the $cf_lib_pthread library" >&5
14612 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14613 cf_save_LIBS="$LIBS"
14615 cf_add_libs="-l$cf_lib_pthread"
14616 # Filter out duplicates - this happens with badly-designed ".pc" files...
14617 for cf_add_1lib in $LIBS
14619 for cf_add_2lib in $cf_add_libs
14621 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14627 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14629 LIBS="$cf_add_libs"
14631 cat >conftest.$ac_ext <<_ACEOF
14632 #line 14632 "configure"
14633 #include "confdefs.h"
14635 #include <pthread.h>
14641 int rc = pthread_create(0,0,0,0);
14642 int r2 = pthread_mutexattr_settype(0, 0);
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (eval echo "$as_me:14649: \"$ac_link\"") >&5
14650 (eval $ac_link) 2>&5
14652 echo "$as_me:14652: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -s conftest$ac_exeext'
14655 { (eval echo "$as_me:14655: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:14658: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14662 echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14667 LIBS="$cf_save_LIBS"
14668 echo "$as_me:14668: result: $with_pthread" >&5
14669 echo "${ECHO_T}$with_pthread" >&6
14670 test "$with_pthread" = yes && break
14673 if test "$with_pthread" = yes ; then
14675 cf_add_libs="-l$cf_lib_pthread"
14676 # Filter out duplicates - this happens with badly-designed ".pc" files...
14677 for cf_add_1lib in $LIBS
14679 for cf_add_2lib in $cf_add_libs
14681 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14687 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14689 LIBS="$cf_add_libs"
14691 cat >>confdefs.h <<\EOF
14692 #define HAVE_LIBPTHREADS 1
14696 { { echo "$as_me:14696: error: Cannot link with pthread library" >&5
14697 echo "$as_me: error: Cannot link with pthread library" >&2;}
14698 { (exit 1); exit 1; }; }
14705 if test "x$with_pthread" != xno; then
14706 echo "$as_me:14706: checking for pthread_kill" >&5
14707 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
14708 if test "${ac_cv_func_pthread_kill+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 cat >conftest.$ac_ext <<_ACEOF
14712 #line 14712 "configure"
14713 #include "confdefs.h"
14714 #define pthread_kill autoconf_temporary
14715 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14716 #undef pthread_kill
14722 /* We use char because int might match the return type of a gcc2
14723 builtin and then its argument prototype would still apply. */
14724 char pthread_kill (void);
14730 /* The GNU C library defines stubs for functions which it implements
14731 to always fail with ENOSYS. Some functions are actually named
14732 something starting with __ and the normal name is an alias. */
14733 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
14734 #error found stub for pthread_kill
14737 return pthread_kill ();
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:14743: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>&5
14746 echo "$as_me:14746: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -s conftest$ac_exeext'
14749 { (eval echo "$as_me:14749: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14752 echo "$as_me:14752: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_func_pthread_kill=yes
14756 echo "$as_me: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14758 ac_cv_func_pthread_kill=no
14760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14762 echo "$as_me:14762: result: $ac_cv_func_pthread_kill" >&5
14763 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
14764 if test $ac_cv_func_pthread_kill = yes; then
14766 echo "$as_me:14766: checking if you want to allow EINTR in wgetch with pthreads" >&5
14767 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
14769 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
14770 if test "${enable_pthreads_eintr+set}" = set; then
14771 enableval="$enable_pthreads_eintr"
14772 use_pthreads_eintr=$enableval
14774 use_pthreads_eintr=no
14776 echo "$as_me:14776: result: $use_pthreads_eintr" >&5
14777 echo "${ECHO_T}$use_pthreads_eintr" >&6
14778 if test "x$use_pthreads_eintr" = xyes ; then
14780 cat >>confdefs.h <<\EOF
14781 #define USE_PTHREADS_EINTR 1
14787 echo "$as_me:14787: checking if you want to use weak-symbols for pthreads" >&5
14788 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
14790 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
14791 if test "${enable_weak_symbols+set}" = set; then
14792 enableval="$enable_weak_symbols"
14793 use_weak_symbols=$enableval
14795 use_weak_symbols=no
14797 echo "$as_me:14797: result: $use_weak_symbols" >&5
14798 echo "${ECHO_T}$use_weak_symbols" >&6
14799 if test "x$use_weak_symbols" = xyes ; then
14801 echo "$as_me:14801: checking if $CC supports weak symbols" >&5
14802 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
14803 if test "${cf_cv_weak_symbols+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 cat >conftest.$ac_ext <<_ACEOF
14808 #line 14808 "configure"
14809 #include "confdefs.h"
14816 #if defined(__GNUC__)
14817 # if defined __USE_ISOC99
14818 # define _cat_pragma(exp) _Pragma(#exp)
14819 # define _weak_pragma(exp) _cat_pragma(weak name)
14821 # define _weak_pragma(exp)
14823 # define _declare(name) __extension__ extern __typeof__(name) name
14824 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
14827 weak_symbol(fopen);
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:14834: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>&5
14837 echo "$as_me:14837: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:14840: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:14843: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 cf_cv_weak_symbols=yes
14847 echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 cf_cv_weak_symbols=no
14851 rm -f conftest.$ac_objext conftest.$ac_ext
14854 echo "$as_me:14854: result: $cf_cv_weak_symbols" >&5
14855 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
14858 cf_cv_weak_symbols=no
14861 if test "x$cf_cv_weak_symbols" = xyes ; then
14863 cat >>confdefs.h <<\EOF
14864 #define USE_WEAK_SYMBOLS 1
14871 if test "x$with_pthread" = "xyes" ; then
14873 cat >>confdefs.h <<\EOF
14874 #define USE_PTHREADS 1
14877 enable_reentrant=yes
14878 if test "x$cf_cv_weak_symbols" = xyes ; then
14881 cf_add_libs="-lpthread"
14882 # Filter out duplicates - this happens with badly-designed ".pc" files...
14883 for cf_add_1lib in $PRIVATE_LIBS
14885 for cf_add_2lib in $cf_add_libs
14887 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14895 PRIVATE_LIBS="$cf_add_libs"
14900 # Reentrant code has to be opaque; there's little advantage to making ncurses
14901 # opaque outside of that, so there is no --enable-opaque option. We can use
14902 # this option without --with-pthreads, but this will be always set for
14904 echo "$as_me:14904: checking if you want reentrant code" >&5
14905 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
14907 # Check whether --enable-reentrant or --disable-reentrant was given.
14908 if test "${enable_reentrant+set}" = set; then
14909 enableval="$enable_reentrant"
14910 with_reentrant=$enableval
14914 echo "$as_me:14914: result: $with_reentrant" >&5
14915 echo "${ECHO_T}$with_reentrant" >&6
14916 if test "x$with_reentrant" = xyes ; then
14917 cf_cv_enable_reentrant=1
14918 cf_cv_enable_opaque="NCURSES_INTERNALS"
14920 if test "x$cf_cv_weak_symbols" = xyes ; then
14922 # remove pthread library from $LIBS
14923 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
14925 cf_add_libs="-lpthread"
14926 # Filter out duplicates - this happens with badly-designed ".pc" files...
14927 for cf_add_1lib in $TEST_LIBS
14929 for cf_add_2lib in $cf_add_libs
14931 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14937 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14939 TEST_LIBS="$cf_add_libs"
14941 cf_add_libs="-lpthread"
14942 # Filter out duplicates - this happens with badly-designed ".pc" files...
14943 for cf_add_1lib in $TEST_LIBS2
14945 for cf_add_2lib in $cf_add_libs
14947 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14953 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14955 TEST_LIBS2="$cf_add_libs"
14957 cf_add_libs="-lpthread"
14958 # Filter out duplicates - this happens with badly-designed ".pc" files...
14959 for cf_add_1lib in $PRIVATE_LIBS
14961 for cf_add_2lib in $cf_add_libs
14963 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14969 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14971 PRIVATE_LIBS="$cf_add_libs"
14974 # when not using weak symbols but with_reentrant,
14975 # add 't' to the library suffix on all platforms
14976 # except cygwin, where we only do that if ALSO
14977 # compiling with full thread support.
14979 (*cygwin* | *msys*)
14980 if test "$with_pthread" = "yes" ; then
14981 if test "x$disable_lib_suffixes" = "xno" ; then
14982 LIB_SUFFIX="t${LIB_SUFFIX}"
14986 if test "x$disable_lib_suffixes" = "xno" ; then
14987 LIB_SUFFIX="t${LIB_SUFFIX}"
14993 cat >>confdefs.h <<\EOF
14994 #define USE_REENTRANT 1
14997 if test "${with_abi_version+set}" != set; then
14998 case $cf_cv_rel_version in
15000 cf_cv_rel_version=6.0
15001 cf_cv_abi_version=6
15002 { echo "$as_me:15002: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15003 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15009 cf_cv_enable_reentrant=0
15010 cf_cv_enable_opaque="NCURSES_OPAQUE"
15011 NCURSES_SIZE_T=short
15014 echo "$as_me:15014: checking if you want opaque curses-library structures" >&5
15015 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15017 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15018 if test "${enable_opaque_curses+set}" = set; then
15019 enableval="$enable_opaque_curses"
15020 test "$enableval" != yes && enableval=no
15021 if test "$enableval" != "no" ; then
15022 enable_opaque_curses=yes
15025 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15026 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15032 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15033 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15036 echo "$as_me:15036: result: $enable_opaque_curses" >&5
15037 echo "${ECHO_T}$enable_opaque_curses" >&6
15039 test "$cf_cv_enable_reentrant" = 1 && \
15040 test "$enable_opaque_curses" = no && \
15041 { { echo "$as_me:15041: error: reentrant configuration requires opaque library" >&5
15042 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15043 { (exit 1); exit 1; }; }
15045 echo "$as_me:15045: checking if you want opaque form-library structures" >&5
15046 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15048 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15049 if test "${enable_opaque_form+set}" = set; then
15050 enableval="$enable_opaque_form"
15051 enable_opaque_form=yes
15053 enable_opaque_form=no
15055 echo "$as_me:15055: result: $enable_opaque_form" >&5
15056 echo "${ECHO_T}$enable_opaque_form" >&6
15058 echo "$as_me:15058: checking if you want opaque menu-library structures" >&5
15059 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15061 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15062 if test "${enable_opaque_menu+set}" = set; then
15063 enableval="$enable_opaque_menu"
15064 enable_opaque_menu=yes
15066 enable_opaque_menu=no
15068 echo "$as_me:15068: result: $enable_opaque_menu" >&5
15069 echo "${ECHO_T}$enable_opaque_menu" >&6
15071 echo "$as_me:15071: checking if you want opaque panel-library structures" >&5
15072 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15074 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15075 if test "${enable_opaque_panel+set}" = set; then
15076 enableval="$enable_opaque_panel"
15077 enable_opaque_panel=yes
15079 enable_opaque_panel=no
15081 echo "$as_me:15081: result: $enable_opaque_panel" >&5
15082 echo "${ECHO_T}$enable_opaque_panel" >&6
15084 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15085 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15086 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15087 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15089 ### Allow using a different wrap-prefix
15090 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15091 echo "$as_me:15091: checking for prefix used to wrap public variables" >&5
15092 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15094 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15095 if test "${with_wrap_prefix+set}" = set; then
15096 withval="$with_wrap_prefix"
15097 NCURSES_WRAP_PREFIX=$withval
15099 NCURSES_WRAP_PREFIX=_nc_
15101 echo "$as_me:15101: result: $NCURSES_WRAP_PREFIX" >&5
15102 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15104 NCURSES_WRAP_PREFIX=_nc_
15107 cat >>confdefs.h <<EOF
15108 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15111 ###############################################################################
15112 # These options are relatively safe to experiment with.
15114 echo "$as_me:15114: checking if you want all development code" >&5
15115 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15117 # Check whether --with-develop or --without-develop was given.
15118 if test "${with_develop+set}" = set; then
15119 withval="$with_develop"
15120 with_develop=$withval
15124 echo "$as_me:15124: result: $with_develop" >&5
15125 echo "${ECHO_T}$with_develop" >&6
15127 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15128 echo "$as_me:15128: checking if you want hard-tabs code" >&5
15129 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15131 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15132 if test "${enable_hard_tabs+set}" = set; then
15133 enableval="$enable_hard_tabs"
15136 enable_hard_tabs=$with_develop
15138 echo "$as_me:15138: result: $enable_hard_tabs" >&5
15139 echo "${ECHO_T}$enable_hard_tabs" >&6
15140 test "x$enable_hard_tabs" = xyes &&
15141 cat >>confdefs.h <<\EOF
15142 #define USE_HARD_TABS 1
15145 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15146 echo "$as_me:15146: checking if you want limited support for xmc" >&5
15147 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15149 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15150 if test "${enable_xmc_glitch+set}" = set; then
15151 enableval="$enable_xmc_glitch"
15154 enable_xmc_glitch=$with_develop
15156 echo "$as_me:15156: result: $enable_xmc_glitch" >&5
15157 echo "${ECHO_T}$enable_xmc_glitch" >&6
15158 test "x$enable_xmc_glitch" = xyes &&
15159 cat >>confdefs.h <<\EOF
15160 #define USE_XMC_SUPPORT 1
15163 ###############################################################################
15164 # These are just experimental, probably should not be in a package:
15166 echo "$as_me:15166: checking if you do not want to assume colors are white-on-black" >&5
15167 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15169 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15170 if test "${enable_assumed_color+set}" = set; then
15171 enableval="$enable_assumed_color"
15172 with_assumed_color=$enableval
15174 with_assumed_color=yes
15176 echo "$as_me:15176: result: $with_assumed_color" >&5
15177 echo "${ECHO_T}$with_assumed_color" >&6
15178 test "x$with_assumed_color" = xyes &&
15179 cat >>confdefs.h <<\EOF
15180 #define USE_ASSUMED_COLOR 1
15183 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15184 echo "$as_me:15184: checking if you want hashmap scrolling-optimization code" >&5
15185 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15187 # Check whether --enable-hashmap or --disable-hashmap was given.
15188 if test "${enable_hashmap+set}" = set; then
15189 enableval="$enable_hashmap"
15190 with_hashmap=$enableval
15194 echo "$as_me:15194: result: $with_hashmap" >&5
15195 echo "${ECHO_T}$with_hashmap" >&6
15196 test "x$with_hashmap" = xyes &&
15197 cat >>confdefs.h <<\EOF
15198 #define USE_HASHMAP 1
15201 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15202 echo "$as_me:15202: checking if you want colorfgbg code" >&5
15203 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15205 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15206 if test "${enable_colorfgbg+set}" = set; then
15207 enableval="$enable_colorfgbg"
15208 with_colorfgbg=$enableval
15212 echo "$as_me:15212: result: $with_colorfgbg" >&5
15213 echo "${ECHO_T}$with_colorfgbg" >&6
15214 test "x$with_colorfgbg" = xyes &&
15215 cat >>confdefs.h <<\EOF
15216 #define USE_COLORFGBG 1
15219 ### use option --enable-interop to turn on use of bindings used for interop
15220 echo "$as_me:15220: checking if you want interop bindings" >&5
15221 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
15223 # Check whether --enable-interop or --disable-interop was given.
15224 if test "${enable_interop+set}" = set; then
15225 enableval="$enable_interop"
15226 with_exp_interop=$enableval
15228 with_exp_interop=$cf_dft_interop
15230 echo "$as_me:15230: result: $with_exp_interop" >&5
15231 echo "${ECHO_T}$with_exp_interop" >&6
15233 NCURSES_INTEROP_FUNCS=0
15234 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
15236 echo "$as_me:15236: checking if you want experimental safe-sprintf code" >&5
15237 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
15239 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
15240 if test "${enable_safe_sprintf+set}" = set; then
15241 enableval="$enable_safe_sprintf"
15242 with_safe_sprintf=$enableval
15244 with_safe_sprintf=no
15246 echo "$as_me:15246: result: $with_safe_sprintf" >&5
15247 echo "${ECHO_T}$with_safe_sprintf" >&6
15249 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
15250 # when hashmap is used scroll hints are useless
15251 if test "$with_hashmap" = no ; then
15252 echo "$as_me:15252: checking if you want to experiment without scrolling-hints code" >&5
15253 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
15255 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
15256 if test "${enable_scroll_hints+set}" = set; then
15257 enableval="$enable_scroll_hints"
15258 with_scroll_hints=$enableval
15260 with_scroll_hints=yes
15262 echo "$as_me:15262: result: $with_scroll_hints" >&5
15263 echo "${ECHO_T}$with_scroll_hints" >&6
15264 test "x$with_scroll_hints" = xyes &&
15265 cat >>confdefs.h <<\EOF
15266 #define USE_SCROLL_HINTS 1
15271 echo "$as_me:15271: checking if you want wgetch-events code" >&5
15272 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
15274 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
15275 if test "${enable_wgetch_events+set}" = set; then
15276 enableval="$enable_wgetch_events"
15277 with_wgetch_events=$enableval
15279 with_wgetch_events=no
15281 echo "$as_me:15281: result: $with_wgetch_events" >&5
15282 echo "${ECHO_T}$with_wgetch_events" >&6
15283 test "x$with_wgetch_events" = xyes &&
15284 cat >>confdefs.h <<\EOF
15285 #define NCURSES_WGETCH_EVENTS 1
15288 ###############################################################################
15290 ### use option --disable-echo to suppress full display compiling commands
15292 echo "$as_me:15292: checking if you want to see long compiling messages" >&5
15293 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
15295 # Check whether --enable-echo or --disable-echo was given.
15296 if test "${enable_echo+set}" = set; then
15297 enableval="$enable_echo"
15298 test "$enableval" != no && enableval=yes
15299 if test "$enableval" != "yes" ; then
15302 ECHO_LD='@echo linking $@;'
15303 RULE_CC='@echo compiling $<'
15304 SHOW_CC='@echo compiling $@'
15326 echo "$as_me:15326: result: $enableval" >&5
15327 echo "${ECHO_T}$enableval" >&6
15329 if test "x$enable_echo" = xyes; then
15332 ECHO_LINK='@ echo linking $@ ... ;'
15333 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
15334 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
15337 # --disable-stripping is used for debugging
15339 echo "$as_me:15339: checking if you want to install stripped executables" >&5
15340 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
15342 # Check whether --enable-stripping or --disable-stripping was given.
15343 if test "${enable_stripping+set}" = set; then
15344 enableval="$enable_stripping"
15345 test "$enableval" != no && enableval=yes
15346 if test "$enableval" != "yes" ; then
15356 echo "$as_me:15356: result: $with_stripping" >&5
15357 echo "${ECHO_T}$with_stripping" >&6
15359 if test "$with_stripping" = yes
15366 : ${INSTALL:=install}
15367 echo "$as_me:15367: checking if install accepts -p option" >&5
15368 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
15369 if test "${cf_cv_install_p+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 if $INSTALL -p conftest.in conftest.out 2>/dev/null
15379 if test -f conftest.out/conftest.in
15381 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
15382 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
15383 if test -s conftest.err
15387 cf_cv_install_p=yes
15398 echo "$as_me:15398: result: $cf_cv_install_p" >&5
15399 echo "${ECHO_T}$cf_cv_install_p" >&6
15401 echo "$as_me:15401: checking if install needs to be told about ownership" >&5
15402 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
15403 case `$ac_config_guess` in
15412 echo "$as_me:15412: result: $with_install_o" >&5
15413 echo "${ECHO_T}$with_install_o" >&6
15414 if test "x$with_install_o" = xyes
15416 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
15421 # If we're avoiding relinking of shared libraries during install, that is to
15422 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
15423 # the install program has "-p" (for preserving timestamps).
15424 cf_cv_do_reranlib=yes
15425 if test "x$cf_cv_install_p" = xyes
15427 if test "x$cf_cv_do_relink" != xyes
15429 cf_cv_do_reranlib=no
15431 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
15435 ### use option --enable-warnings to turn on all gcc warnings
15436 echo "$as_me:15436: checking if you want to see compiler warnings" >&5
15437 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
15439 # Check whether --enable-warnings or --disable-warnings was given.
15440 if test "${enable_warnings+set}" = set; then
15441 enableval="$enable_warnings"
15442 with_warnings=$enableval
15444 echo "$as_me:15444: result: $with_warnings" >&5
15445 echo "${ECHO_T}$with_warnings" >&6
15447 if test "x$with_warnings" = "xyes"; then
15449 ADAFLAGS="$ADAFLAGS -gnatg"
15451 if test "x$have_x" = xyes; then
15452 cat >conftest.$ac_ext <<_ACEOF
15453 #line 15453 "configure"
15454 #include "confdefs.h"
15456 #include <stdlib.h>
15457 #include <X11/Intrinsic.h>
15462 String foo = malloc(1)
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:15468: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>&5
15471 echo "$as_me:15471: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:15474: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:15477: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15480 echo "$as_me:15480: checking for X11/Xt const-feature" >&5
15481 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
15482 if test "${cf_cv_const_x_string+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15487 #line 15487 "configure"
15488 #include "confdefs.h"
15490 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
15491 #undef XTSTRINGDEFINES /* X11R5 and later */
15492 #include <stdlib.h>
15493 #include <X11/Intrinsic.h>
15498 String foo = malloc(1); *foo = 0
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:15504: \"$ac_compile\"") >&5
15505 (eval $ac_compile) 2>&5
15507 echo "$as_me:15507: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -s conftest.$ac_objext'
15510 { (eval echo "$as_me:15510: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:15513: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15516 cf_cv_const_x_string=no
15519 echo "$as_me: failed program was:" >&5
15520 cat conftest.$ac_ext >&5
15522 cf_cv_const_x_string=yes
15525 rm -f conftest.$ac_objext conftest.$ac_ext
15528 echo "$as_me:15528: result: $cf_cv_const_x_string" >&5
15529 echo "${ECHO_T}$cf_cv_const_x_string" >&6
15531 case $cf_cv_const_x_string in
15534 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15535 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
15540 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15541 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
15547 echo "$as_me: failed program was:" >&5
15548 cat conftest.$ac_ext >&5
15550 rm -f conftest.$ac_objext conftest.$ac_ext
15552 cat > conftest.$ac_ext <<EOF
15553 #line 15553 "${as_me:-configure}"
15554 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15556 if test "$INTEL_COMPILER" = yes
15558 # The "-wdXXX" options suppress warnings:
15559 # remark #1419: external declaration in primary source file
15560 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15561 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15562 # remark #193: zero used for undefined preprocessing identifier
15563 # remark #593: variable "curs_sb_left_arrow" was set but never used
15564 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15565 # remark #869: parameter "tw" was never referenced
15566 # remark #981: operands are evaluated in unspecified order
15567 # warning #279: controlling expression is constant
15569 { echo "$as_me:15569: checking for $CC warning options..." >&5
15570 echo "$as_me: checking for $CC warning options..." >&6;}
15571 cf_save_CFLAGS="$CFLAGS"
15572 EXTRA_CFLAGS="-Wall"
15584 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15585 if { (eval echo "$as_me:15585: \"$ac_compile\"") >&5
15586 (eval $ac_compile) 2>&5
15588 echo "$as_me:15588: \$? = $ac_status" >&5
15589 (exit $ac_status); }; then
15590 test -n "$verbose" && echo "$as_me:15590: result: ... -$cf_opt" >&5
15591 echo "${ECHO_T}... -$cf_opt" >&6
15592 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15595 CFLAGS="$cf_save_CFLAGS"
15596 elif test "$GCC" = yes
15598 { echo "$as_me:15598: checking for $CC warning options..." >&5
15599 echo "$as_me: checking for $CC warning options..." >&6;}
15600 cf_save_CFLAGS="$CFLAGS"
15603 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
15604 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
15605 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
15606 for cf_opt in W Wall \
15607 Wbad-function-cast \
15610 Wdeclaration-after-statement \
15613 Wmissing-declarations \
15614 Wmissing-prototypes \
15618 Wstrict-prototypes \
15619 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
15621 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15622 if { (eval echo "$as_me:15622: \"$ac_compile\"") >&5
15623 (eval $ac_compile) 2>&5
15625 echo "$as_me:15625: \$? = $ac_status" >&5
15626 (exit $ac_status); }; then
15627 test -n "$verbose" && echo "$as_me:15627: result: ... -$cf_opt" >&5
15628 echo "${ECHO_T}... -$cf_opt" >&6
15631 case $GCC_VERSION in
15633 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15635 echo "${as_me:-configure}:15635: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15641 case $GCC_VERSION in
15643 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15645 echo "${as_me:-configure}:15645: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15651 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15654 CFLAGS="$cf_save_CFLAGS"
15658 if test "x$cf_with_cxx" = xyes ; then
15662 if test "$GCC" = yes ; then
15665 echo "$as_me:15665: checking if this is really Intel C++ compiler" >&5
15666 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
15667 cf_save_CFLAGS="$CXXFLAGS"
15668 CXXFLAGS="$CXXFLAGS -no-gcc"
15669 cat >conftest.$ac_ext <<_ACEOF
15670 #line 15670 "configure"
15671 #include "confdefs.h"
15677 #ifdef __INTEL_COMPILER
15686 rm -f conftest.$ac_objext
15687 if { (eval echo "$as_me:15687: \"$ac_compile\"") >&5
15688 (eval $ac_compile) 2>&5
15690 echo "$as_me:15690: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:15693: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:15696: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 INTEL_CPLUSPLUS=yes
15699 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
15702 echo "$as_me: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15705 rm -f conftest.$ac_objext conftest.$ac_ext
15706 CXXFLAGS="$cf_save_CFLAGS"
15707 echo "$as_me:15707: result: $INTEL_CPLUSPLUS" >&5
15708 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
15715 if test "$GCC" = yes ; then
15716 echo "$as_me:15716: checking if this is really Clang C++ compiler" >&5
15717 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
15718 cf_save_CFLAGS="$CXXFLAGS"
15719 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
15720 cat >conftest.$ac_ext <<_ACEOF
15721 #line 15721 "configure"
15722 #include "confdefs.h"
15737 rm -f conftest.$ac_objext
15738 if { (eval echo "$as_me:15738: \"$ac_compile\"") >&5
15739 (eval $ac_compile) 2>&5
15741 echo "$as_me:15741: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -s conftest.$ac_objext'
15744 { (eval echo "$as_me:15744: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:15747: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 CLANG_CPLUSPLUS=yes
15750 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15756 rm -f conftest.$ac_objext conftest.$ac_ext
15757 CXXFLAGS="$cf_save_CFLAGS"
15758 echo "$as_me:15758: result: $CLANG_CPLUSPLUS" >&5
15759 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
15763 ac_cpp='$CXXCPP $CPPFLAGS'
15764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15767 ac_main_return=return
15769 cat > conftest.$ac_ext <<EOF
15770 #line 15770 "configure"
15771 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15774 if test "$INTEL_CPLUSPLUS" = yes
15776 # The "-wdXXX" options suppress warnings:
15777 # remark #1419: external declaration in primary source file
15778 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15779 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15780 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15781 # remark #193: zero used for undefined preprocessing identifier
15782 # remark #593: variable "curs_sb_left_arrow" was set but never used
15783 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15784 # remark #869: parameter "tw" was never referenced
15785 # remark #981: operands are evaluated in unspecified order
15786 # warning #269: invalid format string conversion
15788 { echo "$as_me:15788: checking for $CC warning options..." >&5
15789 echo "$as_me: checking for $CC warning options..." >&6;}
15790 cf_save_CXXFLAGS="$CXXFLAGS"
15791 EXTRA_CXXFLAGS="-Wall"
15804 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
15805 if { (eval echo "$as_me:15805: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>&5
15808 echo "$as_me:15808: \$? = $ac_status" >&5
15809 (exit $ac_status); }; then
15810 test -n "$verbose" && echo "$as_me:15810: result: ... -$cf_opt" >&5
15811 echo "${ECHO_T}... -$cf_opt" >&6
15812 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15815 CXXFLAGS="$cf_save_CXXFLAGS"
15817 elif test "$GXX" = yes
15819 { echo "$as_me:15819: checking for $CXX warning options..." >&5
15820 echo "$as_me: checking for $CXX warning options..." >&6;}
15821 cf_save_CXXFLAGS="$CXXFLAGS"
15822 EXTRA_CXXFLAGS="-W -Wall"
15823 cf_gxx_extra_warnings=""
15824 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
15825 case "$GCC_VERSION" in
15829 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
15836 Wignored-qualifiers \
15838 Woverloaded-virtual \
15846 Wundef $cf_gxx_extra_warnings Wno-unused
15848 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
15849 if { (eval echo "$as_me:15849: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>&5
15852 echo "$as_me:15852: \$? = $ac_status" >&5
15853 (exit $ac_status); }; then
15854 test -n "$verbose" && echo "$as_me:15854: result: ... -$cf_opt" >&5
15855 echo "${ECHO_T}... -$cf_opt" >&6
15856 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15858 test -n "$verbose" && echo "$as_me:15858: result: ... no -$cf_opt" >&5
15859 echo "${ECHO_T}... no -$cf_opt" >&6
15862 CXXFLAGS="$cf_save_CXXFLAGS"
15867 ac_cpp='$CPP $CPPFLAGS'
15868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15871 ac_main_return=return
15876 if test "$GCC" = yes
15878 cat > conftest.i <<EOF
15880 #define GCC_PRINTF 0
15883 #define GCC_SCANF 0
15885 #ifndef GCC_NORETURN
15886 #define GCC_NORETURN /* nothing */
15889 #define GCC_UNUSED /* nothing */
15892 if test "$GCC" = yes
15894 { echo "$as_me:15894: checking for $CC __attribute__ directives..." >&5
15895 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
15896 cat > conftest.$ac_ext <<EOF
15897 #line 15897 "${as_me:-configure}"
15898 #include "confdefs.h"
15899 #include "conftest.h"
15900 #include "conftest.i"
15902 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
15904 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
15907 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
15909 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
15911 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
15912 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
15913 extern void foo(void) GCC_NORETURN;
15914 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
15916 cf_printf_attribute=no
15917 cf_scanf_attribute=no
15918 for cf_attribute in scanf printf unused noreturn
15921 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15923 cf_directive="__attribute__(($cf_attribute))"
15924 echo "checking for $CC $cf_directive" 1>&5
15926 case $cf_attribute in
15928 cf_printf_attribute=yes
15929 cat >conftest.h <<EOF
15930 #define GCC_$cf_ATTRIBUTE 1
15934 cf_scanf_attribute=yes
15935 cat >conftest.h <<EOF
15936 #define GCC_$cf_ATTRIBUTE 1
15940 cat >conftest.h <<EOF
15941 #define GCC_$cf_ATTRIBUTE $cf_directive
15946 if { (eval echo "$as_me:15946: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>&5
15949 echo "$as_me:15949: \$? = $ac_status" >&5
15950 (exit $ac_status); }; then
15951 test -n "$verbose" && echo "$as_me:15951: result: ... $cf_attribute" >&5
15952 echo "${ECHO_T}... $cf_attribute" >&6
15953 cat conftest.h >>confdefs.h
15954 case $cf_attribute in
15957 cat >>confdefs.h <<EOF
15958 #define GCC_NORETURN $cf_directive
15963 cf_value='/* nothing */'
15964 if test "$cf_printf_attribute" != no ; then
15965 cf_value='__attribute__((format(printf,fmt,var)))'
15967 cat >>confdefs.h <<\EOF
15968 #define GCC_PRINTF 1
15973 cat >>confdefs.h <<EOF
15974 #define GCC_PRINTFLIKE(fmt,var) $cf_value
15979 cf_value='/* nothing */'
15980 if test "$cf_scanf_attribute" != no ; then
15981 cf_value='__attribute__((format(scanf,fmt,var)))'
15983 cat >>confdefs.h <<\EOF
15984 #define GCC_SCANF 1
15989 cat >>confdefs.h <<EOF
15990 #define GCC_SCANFLIKE(fmt,var) $cf_value
15996 cat >>confdefs.h <<EOF
15997 #define GCC_UNUSED $cf_directive
16005 fgrep define conftest.i >>confdefs.h
16010 echo "$as_me:16010: checking if you want to work around bogus compiler/loader warnings" >&5
16011 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
16013 # Check whether --enable-string-hacks or --disable-string-hacks was given.
16014 if test "${enable_string_hacks+set}" = set; then
16015 enableval="$enable_string_hacks"
16016 with_string_hacks=$enableval
16018 with_string_hacks=no
16020 echo "$as_me:16020: result: $with_string_hacks" >&5
16021 echo "${ECHO_T}$with_string_hacks" >&6
16023 if test "x$with_string_hacks" = "xyes"; then
16025 cat >>confdefs.h <<\EOF
16026 #define USE_STRING_HACKS 1
16029 { echo "$as_me:16029: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
16030 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
16031 echo "$as_me:16031: checking for strlcat" >&5
16032 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
16033 if test "${ac_cv_func_strlcat+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16037 #line 16037 "configure"
16038 #include "confdefs.h"
16039 #define strlcat autoconf_temporary
16040 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16047 /* We use char because int might match the return type of a gcc2
16048 builtin and then its argument prototype would still apply. */
16049 char strlcat (void);
16055 /* The GNU C library defines stubs for functions which it implements
16056 to always fail with ENOSYS. Some functions are actually named
16057 something starting with __ and the normal name is an alias. */
16058 #if defined (__stub_strlcat) || defined (__stub___strlcat)
16059 #error found stub for strlcat
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (eval echo "$as_me:16068: \"$ac_link\"") >&5
16069 (eval $ac_link) 2>&5
16071 echo "$as_me:16071: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (eval echo "$as_me:16074: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 echo "$as_me:16077: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_cv_func_strlcat=yes
16081 echo "$as_me: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16083 ac_cv_func_strlcat=no
16085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16087 echo "$as_me:16087: result: $ac_cv_func_strlcat" >&5
16088 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
16089 if test $ac_cv_func_strlcat = yes; then
16091 cat >>confdefs.h <<\EOF
16092 #define HAVE_STRLCAT 1
16097 echo "$as_me:16097: checking for strlcat in -lbsd" >&5
16098 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
16099 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 ac_check_lib_save_LIBS=$LIBS
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #line 16105 "configure"
16106 #include "confdefs.h"
16108 /* Override any gcc2 internal prototype to avoid an error. */
16112 /* We use char because int might match the return type of a gcc2
16113 builtin and then its argument prototype would still apply. */
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:16124: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>&5
16127 echo "$as_me:16127: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try='test -s conftest$ac_exeext'
16130 { (eval echo "$as_me:16130: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_cv_lib_bsd_strlcat=yes
16137 echo "$as_me: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16139 ac_cv_lib_bsd_strlcat=no
16141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16142 LIBS=$ac_check_lib_save_LIBS
16144 echo "$as_me:16144: result: $ac_cv_lib_bsd_strlcat" >&5
16145 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
16146 if test $ac_cv_lib_bsd_strlcat = yes; then
16148 cf_add_libs="-lbsd"
16149 # Filter out duplicates - this happens with badly-designed ".pc" files...
16150 for cf_add_1lib in $LIBS
16152 for cf_add_2lib in $cf_add_libs
16154 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16160 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16162 LIBS="$cf_add_libs"
16164 for ac_header in bsd/string.h
16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 echo "$as_me:16167: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 cat >conftest.$ac_ext <<_ACEOF
16173 #line 16173 "configure"
16174 #include "confdefs.h"
16175 #include <$ac_header>
16177 if { (eval echo "$as_me:16177: \"$ac_cpp conftest.$ac_ext\"") >&5
16178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16180 egrep -v '^ *\+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 echo "$as_me:16183: \$? = $ac_status" >&5
16184 (exit $ac_status); } >/dev/null; then
16185 if test -s conftest.err; then
16186 ac_cpp_err=$ac_c_preproc_warn_flag
16193 if test -z "$ac_cpp_err"; then
16194 eval "$as_ac_Header=yes"
16196 echo "$as_me: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16198 eval "$as_ac_Header=no"
16200 rm -f conftest.err conftest.$ac_ext
16202 echo "$as_me:16202: result: `eval echo '${'$as_ac_Header'}'`" >&5
16203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16205 cat >>confdefs.h <<EOF
16206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16212 cat >>confdefs.h <<\EOF
16213 #define HAVE_STRLCAT 1
16220 for ac_func in strlcpy snprintf
16222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16223 echo "$as_me:16223: checking for $ac_func" >&5
16224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16225 if eval "test \"\${$as_ac_var+set}\" = set"; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 cat >conftest.$ac_ext <<_ACEOF
16229 #line 16229 "configure"
16230 #include "confdefs.h"
16231 #define $ac_func autoconf_temporary
16232 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16241 char $ac_func (void);
16247 /* The GNU C library defines stubs for functions which it implements
16248 to always fail with ENOSYS. Some functions are actually named
16249 something starting with __ and the normal name is an alias. */
16250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16251 #error found stub for $ac_func
16254 return $ac_func ();
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (eval echo "$as_me:16260: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>&5
16263 echo "$as_me:16263: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -s conftest$ac_exeext'
16266 { (eval echo "$as_me:16266: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:16269: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 eval "$as_ac_var=yes"
16273 echo "$as_me: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16275 eval "$as_ac_var=no"
16277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16279 echo "$as_me:16279: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<EOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16291 ### use option --enable-assertions to turn on generation of assertion code
16292 echo "$as_me:16292: checking if you want to enable runtime assertions" >&5
16293 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
16295 # Check whether --enable-assertions or --disable-assertions was given.
16296 if test "${enable_assertions+set}" = set; then
16297 enableval="$enable_assertions"
16298 with_assertions=$enableval
16302 echo "$as_me:16302: result: $with_assertions" >&5
16303 echo "${ECHO_T}$with_assertions" >&6
16306 if test "$with_assertions" = no
16308 CPPFLAGS="$CPPFLAGS -DNDEBUG"
16311 ADAFLAGS="$ADAFLAGS -gnata"
16316 ### use option --disable-leaks to suppress "permanent" leaks, for testing
16318 echo "$as_me:16318: checking if you want to use dmalloc for testing" >&5
16319 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16321 # Check whether --with-dmalloc or --without-dmalloc was given.
16322 if test "${with_dmalloc+set}" = set; then
16323 withval="$with_dmalloc"
16325 cat >>confdefs.h <<EOF
16326 #define USE_DMALLOC 1
16329 : ${with_cflags:=-g}
16330 : ${with_no_leaks:=yes}
16335 echo "$as_me:16335: result: ${with_dmalloc:-no}" >&5
16336 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16338 case .$with_cflags in
16348 cf_new_extra_cppflags=
16350 for cf_add_cflags in -g
16352 case $cf_fix_cppflags in
16354 case $cf_add_cflags in
16355 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16356 case $cf_add_cflags in
16358 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16360 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16361 && test -z "${cf_tst_cflags}" \
16362 && cf_fix_cppflags=yes
16364 if test $cf_fix_cppflags = yes ; then
16366 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16367 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16370 elif test "${cf_tst_cflags}" = "\"'" ; then
16372 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16373 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16379 case "$CPPFLAGS" in
16383 case $cf_add_cflags in
16385 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16387 CPPFLAGS=`echo "$CPPFLAGS" | \
16388 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16389 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16394 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16395 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16402 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16403 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16410 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16411 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16413 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16415 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16416 && test -z "${cf_tst_cflags}" \
16417 && cf_fix_cppflags=no
16422 if test -n "$cf_new_cflags" ; then
16424 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16425 CFLAGS="${CFLAGS}$cf_new_cflags"
16429 if test -n "$cf_new_cppflags" ; then
16431 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16432 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16436 if test -n "$cf_new_extra_cppflags" ; then
16438 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16439 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16448 if test "$with_dmalloc" = yes ; then
16449 echo "$as_me:16449: checking for dmalloc.h" >&5
16450 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16451 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 cat >conftest.$ac_ext <<_ACEOF
16455 #line 16455 "configure"
16456 #include "confdefs.h"
16457 #include <dmalloc.h>
16459 if { (eval echo "$as_me:16459: \"$ac_cpp conftest.$ac_ext\"") >&5
16460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16462 egrep -v '^ *\+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:16465: \$? = $ac_status" >&5
16466 (exit $ac_status); } >/dev/null; then
16467 if test -s conftest.err; then
16468 ac_cpp_err=$ac_c_preproc_warn_flag
16475 if test -z "$ac_cpp_err"; then
16476 ac_cv_header_dmalloc_h=yes
16478 echo "$as_me: failed program was:" >&5
16479 cat conftest.$ac_ext >&5
16480 ac_cv_header_dmalloc_h=no
16482 rm -f conftest.err conftest.$ac_ext
16484 echo "$as_me:16484: result: $ac_cv_header_dmalloc_h" >&5
16485 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16486 if test $ac_cv_header_dmalloc_h = yes; then
16488 echo "$as_me:16488: checking for dmalloc_debug in -ldmalloc" >&5
16489 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16490 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-ldmalloc $LIBS"
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line 16496 "configure"
16497 #include "confdefs.h"
16499 /* Override any gcc2 internal prototype to avoid an error. */
16503 /* We use char because int might match the return type of a gcc2
16504 builtin and then its argument prototype would still apply. */
16505 char dmalloc_debug ();
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo "$as_me:16515: \"$ac_link\"") >&5
16516 (eval $ac_link) 2>&5
16518 echo "$as_me:16518: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
16520 { ac_try='test -s conftest$ac_exeext'
16521 { (eval echo "$as_me:16521: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:16524: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_cv_lib_dmalloc_dmalloc_debug=yes
16528 echo "$as_me: failed program was:" >&5
16529 cat conftest.$ac_ext >&5
16530 ac_cv_lib_dmalloc_dmalloc_debug=no
16532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16533 LIBS=$ac_check_lib_save_LIBS
16535 echo "$as_me:16535: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16536 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16537 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16538 cat >>confdefs.h <<EOF
16539 #define HAVE_LIBDMALLOC 1
16542 LIBS="-ldmalloc $LIBS"
16550 echo "$as_me:16550: checking if you want to use dbmalloc for testing" >&5
16551 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16553 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16554 if test "${with_dbmalloc+set}" = set; then
16555 withval="$with_dbmalloc"
16557 cat >>confdefs.h <<EOF
16558 #define USE_DBMALLOC 1
16561 : ${with_cflags:=-g}
16562 : ${with_no_leaks:=yes}
16567 echo "$as_me:16567: result: ${with_dbmalloc:-no}" >&5
16568 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16570 case .$with_cflags in
16580 cf_new_extra_cppflags=
16582 for cf_add_cflags in -g
16584 case $cf_fix_cppflags in
16586 case $cf_add_cflags in
16587 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16588 case $cf_add_cflags in
16590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16592 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16593 && test -z "${cf_tst_cflags}" \
16594 && cf_fix_cppflags=yes
16596 if test $cf_fix_cppflags = yes ; then
16598 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16599 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16602 elif test "${cf_tst_cflags}" = "\"'" ; then
16604 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16605 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16611 case "$CPPFLAGS" in
16615 case $cf_add_cflags in
16617 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16619 CPPFLAGS=`echo "$CPPFLAGS" | \
16620 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16621 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16626 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16627 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16634 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16635 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16642 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16643 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16645 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16647 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16648 && test -z "${cf_tst_cflags}" \
16649 && cf_fix_cppflags=no
16654 if test -n "$cf_new_cflags" ; then
16656 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16657 CFLAGS="${CFLAGS}$cf_new_cflags"
16661 if test -n "$cf_new_cppflags" ; then
16663 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16664 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16668 if test -n "$cf_new_extra_cppflags" ; then
16670 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16671 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16680 if test "$with_dbmalloc" = yes ; then
16681 echo "$as_me:16681: checking for dbmalloc.h" >&5
16682 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16683 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16687 #line 16687 "configure"
16688 #include "confdefs.h"
16689 #include <dbmalloc.h>
16691 if { (eval echo "$as_me:16691: \"$ac_cpp conftest.$ac_ext\"") >&5
16692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16694 egrep -v '^ *\+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:16697: \$? = $ac_status" >&5
16698 (exit $ac_status); } >/dev/null; then
16699 if test -s conftest.err; then
16700 ac_cpp_err=$ac_c_preproc_warn_flag
16707 if test -z "$ac_cpp_err"; then
16708 ac_cv_header_dbmalloc_h=yes
16710 echo "$as_me: failed program was:" >&5
16711 cat conftest.$ac_ext >&5
16712 ac_cv_header_dbmalloc_h=no
16714 rm -f conftest.err conftest.$ac_ext
16716 echo "$as_me:16716: result: $ac_cv_header_dbmalloc_h" >&5
16717 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16718 if test $ac_cv_header_dbmalloc_h = yes; then
16720 echo "$as_me:16720: checking for debug_malloc in -ldbmalloc" >&5
16721 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16722 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 ac_check_lib_save_LIBS=$LIBS
16726 LIBS="-ldbmalloc $LIBS"
16727 cat >conftest.$ac_ext <<_ACEOF
16728 #line 16728 "configure"
16729 #include "confdefs.h"
16731 /* Override any gcc2 internal prototype to avoid an error. */
16735 /* We use char because int might match the return type of a gcc2
16736 builtin and then its argument prototype would still apply. */
16737 char debug_malloc ();
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:16747: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16750 echo "$as_me:16750: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:16753: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:16756: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_lib_dbmalloc_debug_malloc=yes
16760 echo "$as_me: failed program was:" >&5
16761 cat conftest.$ac_ext >&5
16762 ac_cv_lib_dbmalloc_debug_malloc=no
16764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16765 LIBS=$ac_check_lib_save_LIBS
16767 echo "$as_me:16767: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16768 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16769 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16770 cat >>confdefs.h <<EOF
16771 #define HAVE_LIBDBMALLOC 1
16774 LIBS="-ldbmalloc $LIBS"
16782 echo "$as_me:16782: checking if you want to use valgrind for testing" >&5
16783 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
16785 # Check whether --with-valgrind or --without-valgrind was given.
16786 if test "${with_valgrind+set}" = set; then
16787 withval="$with_valgrind"
16789 cat >>confdefs.h <<EOF
16790 #define USE_VALGRIND 1
16793 : ${with_cflags:=-g}
16794 : ${with_no_leaks:=yes}
16799 echo "$as_me:16799: result: ${with_valgrind:-no}" >&5
16800 echo "${ECHO_T}${with_valgrind:-no}" >&6
16802 case .$with_cflags in
16812 cf_new_extra_cppflags=
16814 for cf_add_cflags in -g
16816 case $cf_fix_cppflags in
16818 case $cf_add_cflags in
16819 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16820 case $cf_add_cflags in
16822 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16824 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16825 && test -z "${cf_tst_cflags}" \
16826 && cf_fix_cppflags=yes
16828 if test $cf_fix_cppflags = yes ; then
16830 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16831 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16834 elif test "${cf_tst_cflags}" = "\"'" ; then
16836 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16837 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16843 case "$CPPFLAGS" in
16847 case $cf_add_cflags in
16849 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16851 CPPFLAGS=`echo "$CPPFLAGS" | \
16852 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16853 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16858 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16859 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16866 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16867 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16874 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16875 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16877 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16879 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16880 && test -z "${cf_tst_cflags}" \
16881 && cf_fix_cppflags=no
16886 if test -n "$cf_new_cflags" ; then
16888 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16889 CFLAGS="${CFLAGS}$cf_new_cflags"
16893 if test -n "$cf_new_cppflags" ; then
16895 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16896 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16900 if test -n "$cf_new_extra_cppflags" ; then
16902 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16903 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16912 echo "$as_me:16912: checking if you want to perform memory-leak testing" >&5
16913 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
16915 # Check whether --enable-leaks or --disable-leaks was given.
16916 if test "${enable_leaks+set}" = set; then
16917 enableval="$enable_leaks"
16918 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
16920 : ${with_no_leaks:=no}
16922 echo "$as_me:16922: result: $with_no_leaks" >&5
16923 echo "${ECHO_T}$with_no_leaks" >&6
16925 if test "$with_no_leaks" = yes ; then
16927 cat >>confdefs.h <<\EOF
16931 cat >>confdefs.h <<\EOF
16932 #define YY_NO_LEAKS 1
16937 cat >>confdefs.h <<\EOF
16938 #define HAVE_NC_ALLOC_H 1
16941 ### use option --enable-expanded to generate certain macros as functions
16943 # Check whether --enable-expanded or --disable-expanded was given.
16944 if test "${enable_expanded+set}" = set; then
16945 enableval="$enable_expanded"
16946 test "x$enableval" = xyes &&
16947 cat >>confdefs.h <<\EOF
16948 #define NCURSES_EXPANDED 1
16953 ### use option --disable-macros to suppress macros in favor of functions
16955 # Check whether --enable-macros or --disable-macros was given.
16956 if test "${enable_macros+set}" = set; then
16957 enableval="$enable_macros"
16958 test "$enableval" = no &&
16959 cat >>confdefs.h <<\EOF
16960 #define NCURSES_NOMACROS 1
16965 # Normally we only add trace() to the debug-library. Allow this to be
16966 # extended to all models of the ncurses library:
16968 case "$CFLAGS $CPPFLAGS" in
16974 echo "$as_me:16974: checking whether to add trace feature to all models" >&5
16975 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
16977 # Check whether --with-trace or --without-trace was given.
16978 if test "${with_trace+set}" = set; then
16979 withval="$with_trace"
16980 cf_with_trace=$withval
16982 cf_with_trace=$cf_all_traces
16984 echo "$as_me:16984: result: $cf_with_trace" >&5
16985 echo "${ECHO_T}$cf_with_trace" >&6
16987 if test "x$cf_with_trace" = xyes ; then
16994 cf_new_extra_cppflags=
16996 for cf_add_cflags in -DTRACE
16998 case $cf_fix_cppflags in
17000 case $cf_add_cflags in
17001 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17002 case $cf_add_cflags in
17004 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17006 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17007 && test -z "${cf_tst_cflags}" \
17008 && cf_fix_cppflags=yes
17010 if test $cf_fix_cppflags = yes ; then
17012 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17013 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17016 elif test "${cf_tst_cflags}" = "\"'" ; then
17018 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17019 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17025 case "$CPPFLAGS" in
17029 case $cf_add_cflags in
17031 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17033 CPPFLAGS=`echo "$CPPFLAGS" | \
17034 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17035 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17040 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17041 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17048 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17049 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17056 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17057 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17059 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17061 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17062 && test -z "${cf_tst_cflags}" \
17063 && cf_fix_cppflags=no
17068 if test -n "$cf_new_cflags" ; then
17070 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17071 CFLAGS="${CFLAGS}$cf_new_cflags"
17075 if test -n "$cf_new_cppflags" ; then
17077 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17078 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17082 if test -n "$cf_new_extra_cppflags" ; then
17084 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17085 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17089 cat >>confdefs.h <<\EOF
17090 #define HAVE__TRACEF 1
17098 echo "$as_me:17098: checking if we want to use GNAT projects" >&5
17099 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17101 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17102 if test "${enable_gnat_projects+set}" = set; then
17103 enableval="$enable_gnat_projects"
17104 test "$enableval" != no && enableval=yes
17105 if test "$enableval" != "yes" ; then
17106 enable_gnat_projects=no
17108 enable_gnat_projects=yes
17112 enable_gnat_projects=yes
17115 echo "$as_me:17115: result: $enable_gnat_projects" >&5
17116 echo "${ECHO_T}$enable_gnat_projects" >&6
17118 ### Checks for libraries.
17119 case $cf_cv_system_name in
17120 (*mingw32*|*mingw64*)
17121 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
17122 LIBS=" -lpsapi $LIBS"
17125 echo "$as_me:17125: checking for gettimeofday" >&5
17126 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17127 if test "${ac_cv_func_gettimeofday+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17131 #line 17131 "configure"
17132 #include "confdefs.h"
17133 #define gettimeofday autoconf_temporary
17134 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17135 #undef gettimeofday
17141 /* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17143 char gettimeofday (void);
17149 /* The GNU C library defines stubs for functions which it implements
17150 to always fail with ENOSYS. Some functions are actually named
17151 something starting with __ and the normal name is an alias. */
17152 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17153 #error found stub for gettimeofday
17156 return gettimeofday ();
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (eval echo "$as_me:17162: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>&5
17165 echo "$as_me:17165: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:17168: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:17171: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_cv_func_gettimeofday=yes
17175 echo "$as_me: failed program was:" >&5
17176 cat conftest.$ac_ext >&5
17177 ac_cv_func_gettimeofday=no
17179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17181 echo "$as_me:17181: result: $ac_cv_func_gettimeofday" >&5
17182 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17183 if test $ac_cv_func_gettimeofday = yes; then
17185 cat >>confdefs.h <<\EOF
17186 #define HAVE_GETTIMEOFDAY 1
17191 echo "$as_me:17191: checking for gettimeofday in -lbsd" >&5
17192 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
17193 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 ac_check_lib_save_LIBS=$LIBS
17198 cat >conftest.$ac_ext <<_ACEOF
17199 #line 17199 "configure"
17200 #include "confdefs.h"
17202 /* Override any gcc2 internal prototype to avoid an error. */
17206 /* We use char because int might match the return type of a gcc2
17207 builtin and then its argument prototype would still apply. */
17208 char gettimeofday ();
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (eval echo "$as_me:17218: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>&5
17221 echo "$as_me:17221: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:17224: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:17227: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_lib_bsd_gettimeofday=yes
17231 echo "$as_me: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 ac_cv_lib_bsd_gettimeofday=no
17235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17236 LIBS=$ac_check_lib_save_LIBS
17238 echo "$as_me:17238: result: $ac_cv_lib_bsd_gettimeofday" >&5
17239 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
17240 if test $ac_cv_lib_bsd_gettimeofday = yes; then
17242 cat >>confdefs.h <<\EOF
17243 #define HAVE_GETTIMEOFDAY 1
17246 cf_add_libs="-lbsd"
17247 # Filter out duplicates - this happens with badly-designed ".pc" files...
17248 for cf_add_1lib in $LIBS
17250 for cf_add_2lib in $cf_add_libs
17252 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17258 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17260 LIBS="$cf_add_libs"
17268 echo "$as_me:17268: checking if -lm needed for math functions" >&5
17269 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
17270 if test "${cf_cv_need_libm+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 cat >conftest.$ac_ext <<_ACEOF
17275 #line 17275 "configure"
17276 #include "confdefs.h"
17279 #include <stdlib.h>
17285 double x = rand(); printf("result = %g\n", pow(sin(x),x))
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (eval echo "$as_me:17291: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>&5
17294 echo "$as_me:17294: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -s conftest$ac_exeext'
17297 { (eval echo "$as_me:17297: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:17300: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17304 echo "$as_me: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17306 cf_cv_need_libm=yes
17308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17310 echo "$as_me:17310: result: $cf_cv_need_libm" >&5
17311 echo "${ECHO_T}$cf_cv_need_libm" >&6
17312 if test "$cf_cv_need_libm" = yes
17317 ### Checks for header files.
17318 echo "$as_me:17318: checking for ANSI C header files" >&5
17319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17320 if test "${ac_cv_header_stdc+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 cat >conftest.$ac_ext <<_ACEOF
17324 #line 17324 "configure"
17325 #include "confdefs.h"
17326 #include <stdlib.h>
17327 #include <stdarg.h>
17328 #include <string.h>
17332 if { (eval echo "$as_me:17332: \"$ac_cpp conftest.$ac_ext\"") >&5
17333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17335 egrep -v '^ *\+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:17338: \$? = $ac_status" >&5
17339 (exit $ac_status); } >/dev/null; then
17340 if test -s conftest.err; then
17341 ac_cpp_err=$ac_c_preproc_warn_flag
17348 if test -z "$ac_cpp_err"; then
17349 ac_cv_header_stdc=yes
17351 echo "$as_me: failed program was:" >&5
17352 cat conftest.$ac_ext >&5
17353 ac_cv_header_stdc=no
17355 rm -f conftest.err conftest.$ac_ext
17357 if test $ac_cv_header_stdc = yes; then
17358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17359 cat >conftest.$ac_ext <<_ACEOF
17360 #line 17360 "configure"
17361 #include "confdefs.h"
17362 #include <string.h>
17365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17366 egrep "memchr" >/dev/null 2>&1; then
17369 ac_cv_header_stdc=no
17375 if test $ac_cv_header_stdc = yes; then
17376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17377 cat >conftest.$ac_ext <<_ACEOF
17378 #line 17378 "configure"
17379 #include "confdefs.h"
17380 #include <stdlib.h>
17383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17384 egrep "free" >/dev/null 2>&1; then
17387 ac_cv_header_stdc=no
17393 if test $ac_cv_header_stdc = yes; then
17394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17395 if test "$cross_compiling" = yes; then
17398 cat >conftest.$ac_ext <<_ACEOF
17399 #line 17399 "configure"
17400 #include "confdefs.h"
17402 #if ((' ' & 0x0FF) == 0x020)
17403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17406 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17407 || ('j' <= (c) && (c) <= 'r') \
17408 || ('s' <= (c) && (c) <= 'z'))
17409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17417 for (i = 0; i < 256; i++)
17418 if (XOR (islower (i), ISLOWER (i))
17419 || toupper (i) != TOUPPER (i))
17420 $ac_main_return(2);
17421 $ac_main_return (0);
17424 rm -f conftest$ac_exeext
17425 if { (eval echo "$as_me:17425: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>&5
17428 echo "$as_me:17428: \$? = $ac_status" >&5
17429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17430 { (eval echo "$as_me:17430: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:17433: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17437 echo "$as_me: program exited with status $ac_status" >&5
17438 echo "$as_me: failed program was:" >&5
17439 cat conftest.$ac_ext >&5
17440 ac_cv_header_stdc=no
17442 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17446 echo "$as_me:17446: result: $ac_cv_header_stdc" >&5
17447 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17448 if test $ac_cv_header_stdc = yes; then
17450 cat >>confdefs.h <<\EOF
17451 #define STDC_HEADERS 1
17456 ac_header_dirent=no
17457 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17458 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17459 echo "$as_me:17459: checking for $ac_hdr that defines DIR" >&5
17460 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17465 #line 17465 "configure"
17466 #include "confdefs.h"
17467 #include <sys/types.h>
17479 rm -f conftest.$ac_objext
17480 if { (eval echo "$as_me:17480: \"$ac_compile\"") >&5
17481 (eval $ac_compile) 2>&5
17483 echo "$as_me:17483: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -s conftest.$ac_objext'
17486 { (eval echo "$as_me:17486: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:17489: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_Header=yes"
17493 echo "$as_me: failed program was:" >&5
17494 cat conftest.$ac_ext >&5
17495 eval "$as_ac_Header=no"
17497 rm -f conftest.$ac_objext conftest.$ac_ext
17499 echo "$as_me:17499: result: `eval echo '${'$as_ac_Header'}'`" >&5
17500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17502 cat >>confdefs.h <<EOF
17503 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17506 ac_header_dirent=$ac_hdr; break
17510 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17511 if test $ac_header_dirent = dirent.h; then
17512 echo "$as_me:17512: checking for opendir in -ldir" >&5
17513 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
17514 if test "${ac_cv_lib_dir_opendir+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 ac_check_lib_save_LIBS=$LIBS
17519 cat >conftest.$ac_ext <<_ACEOF
17520 #line 17520 "configure"
17521 #include "confdefs.h"
17523 /* Override any gcc2 internal prototype to avoid an error. */
17527 /* We use char because int might match the return type of a gcc2
17528 builtin and then its argument prototype would still apply. */
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (eval echo "$as_me:17539: \"$ac_link\"") >&5
17540 (eval $ac_link) 2>&5
17542 echo "$as_me:17542: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -s conftest$ac_exeext'
17545 { (eval echo "$as_me:17545: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:17548: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_cv_lib_dir_opendir=yes
17552 echo "$as_me: failed program was:" >&5
17553 cat conftest.$ac_ext >&5
17554 ac_cv_lib_dir_opendir=no
17556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17557 LIBS=$ac_check_lib_save_LIBS
17559 echo "$as_me:17559: result: $ac_cv_lib_dir_opendir" >&5
17560 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
17561 if test $ac_cv_lib_dir_opendir = yes; then
17566 echo "$as_me:17566: checking for opendir in -lx" >&5
17567 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
17568 if test "${ac_cv_lib_x_opendir+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 ac_check_lib_save_LIBS=$LIBS
17573 cat >conftest.$ac_ext <<_ACEOF
17574 #line 17574 "configure"
17575 #include "confdefs.h"
17577 /* Override any gcc2 internal prototype to avoid an error. */
17581 /* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:17593: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17596 echo "$as_me:17596: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:17599: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:17602: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_x_opendir=yes
17606 echo "$as_me: failed program was:" >&5
17607 cat conftest.$ac_ext >&5
17608 ac_cv_lib_x_opendir=no
17610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 echo "$as_me:17613: result: $ac_cv_lib_x_opendir" >&5
17614 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
17615 if test $ac_cv_lib_x_opendir = yes; then
17621 echo "$as_me:17621: checking whether time.h and sys/time.h may both be included" >&5
17622 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17623 if test "${ac_cv_header_time+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17627 #line 17627 "configure"
17628 #include "confdefs.h"
17629 #include <sys/types.h>
17630 #include <sys/time.h>
17636 if ((struct tm *) 0)
17642 rm -f conftest.$ac_objext
17643 if { (eval echo "$as_me:17643: \"$ac_compile\"") >&5
17644 (eval $ac_compile) 2>&5
17646 echo "$as_me:17646: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -s conftest.$ac_objext'
17649 { (eval echo "$as_me:17649: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:17652: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ac_cv_header_time=yes
17656 echo "$as_me: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 ac_cv_header_time=no
17660 rm -f conftest.$ac_objext conftest.$ac_ext
17662 echo "$as_me:17662: result: $ac_cv_header_time" >&5
17663 echo "${ECHO_T}$ac_cv_header_time" >&6
17664 if test $ac_cv_header_time = yes; then
17666 cat >>confdefs.h <<\EOF
17667 #define TIME_WITH_SYS_TIME 1
17674 cf_regex_libs="regex re"
17677 cf_regex_libs="gnurx $cf_regex_libs"
17681 echo "$as_me:17681: checking for regcomp" >&5
17682 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
17683 if test "${ac_cv_func_regcomp+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17687 #line 17687 "configure"
17688 #include "confdefs.h"
17689 #define regcomp autoconf_temporary
17690 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17697 /* We use char because int might match the return type of a gcc2
17698 builtin and then its argument prototype would still apply. */
17699 char regcomp (void);
17705 /* The GNU C library defines stubs for functions which it implements
17706 to always fail with ENOSYS. Some functions are actually named
17707 something starting with __ and the normal name is an alias. */
17708 #if defined (__stub_regcomp) || defined (__stub___regcomp)
17709 #error found stub for regcomp
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:17718: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>&5
17721 echo "$as_me:17721: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -s conftest$ac_exeext'
17724 { (eval echo "$as_me:17724: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:17727: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_func_regcomp=yes
17731 echo "$as_me: failed program was:" >&5
17732 cat conftest.$ac_ext >&5
17733 ac_cv_func_regcomp=no
17735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17737 echo "$as_me:17737: result: $ac_cv_func_regcomp" >&5
17738 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
17739 if test $ac_cv_func_regcomp = yes; then
17740 cf_regex_func=regcomp
17743 for cf_regex_lib in $cf_regex_libs
17745 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
17746 echo "$as_me:17746: checking for regcomp in -l$cf_regex_lib" >&5
17747 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
17748 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-l$cf_regex_lib $LIBS"
17753 cat >conftest.$ac_ext <<_ACEOF
17754 #line 17754 "configure"
17755 #include "confdefs.h"
17757 /* Override any gcc2 internal prototype to avoid an error. */
17761 /* We use char because int might match the return type of a gcc2
17762 builtin and then its argument prototype would still apply. */
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (eval echo "$as_me:17773: \"$ac_link\"") >&5
17774 (eval $ac_link) 2>&5
17776 echo "$as_me:17776: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:17779: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:17782: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 eval "$as_ac_Lib=yes"
17786 echo "$as_me: failed program was:" >&5
17787 cat conftest.$ac_ext >&5
17788 eval "$as_ac_Lib=no"
17790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17791 LIBS=$ac_check_lib_save_LIBS
17793 echo "$as_me:17793: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17794 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17795 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17797 cf_add_libs="-l$cf_regex_lib"
17798 # Filter out duplicates - this happens with badly-designed ".pc" files...
17799 for cf_add_1lib in $LIBS
17801 for cf_add_2lib in $cf_add_libs
17803 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17809 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17811 LIBS="$cf_add_libs"
17813 cf_regex_func=regcomp
17821 if test "$cf_regex_func" = no ; then
17822 echo "$as_me:17822: checking for compile" >&5
17823 echo $ECHO_N "checking for compile... $ECHO_C" >&6
17824 if test "${ac_cv_func_compile+set}" = set; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 cat >conftest.$ac_ext <<_ACEOF
17828 #line 17828 "configure"
17829 #include "confdefs.h"
17830 #define compile autoconf_temporary
17831 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17838 /* We use char because int might match the return type of a gcc2
17839 builtin and then its argument prototype would still apply. */
17840 char compile (void);
17846 /* The GNU C library defines stubs for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined (__stub_compile) || defined (__stub___compile)
17850 #error found stub for compile
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (eval echo "$as_me:17859: \"$ac_link\"") >&5
17860 (eval $ac_link) 2>&5
17862 echo "$as_me:17862: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -s conftest$ac_exeext'
17865 { (eval echo "$as_me:17865: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17868 echo "$as_me:17868: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_func_compile=yes
17872 echo "$as_me: failed program was:" >&5
17873 cat conftest.$ac_ext >&5
17874 ac_cv_func_compile=no
17876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17878 echo "$as_me:17878: result: $ac_cv_func_compile" >&5
17879 echo "${ECHO_T}$ac_cv_func_compile" >&6
17880 if test $ac_cv_func_compile = yes; then
17881 cf_regex_func=compile
17884 echo "$as_me:17884: checking for compile in -lgen" >&5
17885 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
17886 if test "${ac_cv_lib_gen_compile+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 ac_check_lib_save_LIBS=$LIBS
17891 cat >conftest.$ac_ext <<_ACEOF
17892 #line 17892 "configure"
17893 #include "confdefs.h"
17895 /* Override any gcc2 internal prototype to avoid an error. */
17899 /* We use char because int might match the return type of a gcc2
17900 builtin and then its argument prototype would still apply. */
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:17911: \"$ac_link\"") >&5
17912 (eval $ac_link) 2>&5
17914 echo "$as_me:17914: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:17917: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:17920: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_gen_compile=yes
17924 echo "$as_me: failed program was:" >&5
17925 cat conftest.$ac_ext >&5
17926 ac_cv_lib_gen_compile=no
17928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17929 LIBS=$ac_check_lib_save_LIBS
17931 echo "$as_me:17931: result: $ac_cv_lib_gen_compile" >&5
17932 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
17933 if test $ac_cv_lib_gen_compile = yes; then
17935 cf_add_libs="-lgen"
17936 # Filter out duplicates - this happens with badly-designed ".pc" files...
17937 for cf_add_1lib in $LIBS
17939 for cf_add_2lib in $cf_add_libs
17941 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17947 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17949 LIBS="$cf_add_libs"
17951 cf_regex_func=compile
17958 if test "$cf_regex_func" = no ; then
17959 { echo "$as_me:17959: WARNING: cannot find regular expression library" >&5
17960 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
17963 echo "$as_me:17963: checking for regular-expression headers" >&5
17964 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
17965 if test "${cf_cv_regex_hdrs+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 cf_cv_regex_hdrs=no
17970 case $cf_regex_func in
17972 for cf_regex_hdr in regexp.h regexpr.h
17974 cat >conftest.$ac_ext <<_ACEOF
17975 #line 17975 "configure"
17976 #include "confdefs.h"
17977 #include <$cf_regex_hdr>
17982 char *p = compile("", "", "", 0);
17983 int x = step("", "");
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:17990: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>&5
17993 echo "$as_me:17993: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (eval echo "$as_me:17996: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:17999: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18002 cf_cv_regex_hdrs=$cf_regex_hdr
18006 echo "$as_me: failed program was:" >&5
18007 cat conftest.$ac_ext >&5
18009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18013 for cf_regex_hdr in regex.h
18015 cat >conftest.$ac_ext <<_ACEOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18018 #include <sys/types.h>
18019 #include <$cf_regex_hdr>
18025 int x = regcomp(p, "", 0);
18026 int y = regexec(p, "", 0, 0, 0);
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (eval echo "$as_me:18034: \"$ac_link\"") >&5
18035 (eval $ac_link) 2>&5
18037 echo "$as_me:18037: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -s conftest$ac_exeext'
18040 { (eval echo "$as_me:18040: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:18043: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18046 cf_cv_regex_hdrs=$cf_regex_hdr
18050 echo "$as_me: failed program was:" >&5
18051 cat conftest.$ac_ext >&5
18053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18059 echo "$as_me:18059: result: $cf_cv_regex_hdrs" >&5
18060 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
18062 case $cf_cv_regex_hdrs in
18063 (no) { echo "$as_me:18063: WARNING: no regular expression header found" >&5
18064 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
18066 cat >>confdefs.h <<\EOF
18067 #define HAVE_REGEX_H_FUNCS 1
18071 cat >>confdefs.h <<\EOF
18072 #define HAVE_REGEXP_H_FUNCS 1
18076 cat >>confdefs.h <<\EOF
18077 #define HAVE_REGEXPR_H_FUNCS 1
18101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18102 echo "$as_me:18102: checking for $ac_header" >&5
18103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18108 #line 18108 "configure"
18109 #include "confdefs.h"
18110 #include <$ac_header>
18112 if { (eval echo "$as_me:18112: \"$ac_cpp conftest.$ac_ext\"") >&5
18113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18115 egrep -v '^ *\+' conftest.er1 >conftest.err
18117 cat conftest.err >&5
18118 echo "$as_me:18118: \$? = $ac_status" >&5
18119 (exit $ac_status); } >/dev/null; then
18120 if test -s conftest.err; then
18121 ac_cpp_err=$ac_c_preproc_warn_flag
18128 if test -z "$ac_cpp_err"; then
18129 eval "$as_ac_Header=yes"
18131 echo "$as_me: failed program was:" >&5
18132 cat conftest.$ac_ext >&5
18133 eval "$as_ac_Header=no"
18135 rm -f conftest.err conftest.$ac_ext
18137 echo "$as_me:18137: result: `eval echo '${'$as_ac_Header'}'`" >&5
18138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18140 cat >>confdefs.h <<EOF
18141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18147 for ac_header in unistd.h getopt.h
18149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18150 echo "$as_me:18150: checking for $ac_header" >&5
18151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 cat >conftest.$ac_ext <<_ACEOF
18156 #line 18156 "configure"
18157 #include "confdefs.h"
18158 #include <$ac_header>
18160 if { (eval echo "$as_me:18160: \"$ac_cpp conftest.$ac_ext\"") >&5
18161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18163 egrep -v '^ *\+' conftest.er1 >conftest.err
18165 cat conftest.err >&5
18166 echo "$as_me:18166: \$? = $ac_status" >&5
18167 (exit $ac_status); } >/dev/null; then
18168 if test -s conftest.err; then
18169 ac_cpp_err=$ac_c_preproc_warn_flag
18176 if test -z "$ac_cpp_err"; then
18177 eval "$as_ac_Header=yes"
18179 echo "$as_me: failed program was:" >&5
18180 cat conftest.$ac_ext >&5
18181 eval "$as_ac_Header=no"
18183 rm -f conftest.err conftest.$ac_ext
18185 echo "$as_me:18185: result: `eval echo '${'$as_ac_Header'}'`" >&5
18186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18188 cat >>confdefs.h <<EOF
18189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18195 echo "$as_me:18195: checking for header declaring getopt variables" >&5
18196 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18197 if test "${cf_cv_getopt_header+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 cf_cv_getopt_header=none
18202 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18204 cat >conftest.$ac_ext <<_ACEOF
18205 #line 18205 "configure"
18206 #include "confdefs.h"
18208 #include <$cf_header>
18212 int x = optind; char *y = optarg
18217 rm -f conftest.$ac_objext
18218 if { (eval echo "$as_me:18218: \"$ac_compile\"") >&5
18219 (eval $ac_compile) 2>&5
18221 echo "$as_me:18221: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:18224: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:18227: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 cf_cv_getopt_header=$cf_header
18232 echo "$as_me: failed program was:" >&5
18233 cat conftest.$ac_ext >&5
18235 rm -f conftest.$ac_objext conftest.$ac_ext
18239 echo "$as_me:18239: result: $cf_cv_getopt_header" >&5
18240 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18241 if test $cf_cv_getopt_header != none ; then
18243 cat >>confdefs.h <<\EOF
18244 #define HAVE_GETOPT_HEADER 1
18248 if test $cf_cv_getopt_header = getopt.h ; then
18250 cat >>confdefs.h <<\EOF
18251 #define NEED_GETOPT_H 1
18256 echo "$as_me:18256: checking if external environ is declared" >&5
18257 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
18258 if test "${cf_cv_dcl_environ+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 cat >conftest.$ac_ext <<_ACEOF
18263 #line 18263 "configure"
18264 #include "confdefs.h"
18266 #ifdef HAVE_STDLIB_H
18267 #include <stdlib.h>
18269 #include <unistd.h>
18273 int x = (int) environ
18278 rm -f conftest.$ac_objext
18279 if { (eval echo "$as_me:18279: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>&5
18282 echo "$as_me:18282: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:18285: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18288 echo "$as_me:18288: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 cf_cv_dcl_environ=yes
18292 echo "$as_me: failed program was:" >&5
18293 cat conftest.$ac_ext >&5
18294 cf_cv_dcl_environ=no
18296 rm -f conftest.$ac_objext conftest.$ac_ext
18299 echo "$as_me:18299: result: $cf_cv_dcl_environ" >&5
18300 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
18302 if test "$cf_cv_dcl_environ" = no ; then
18304 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18306 cat >>confdefs.h <<EOF
18307 #define $cf_result 1
18312 # It's possible (for near-UNIX clones) that the data doesn't exist
18314 echo "$as_me:18314: checking if external environ exists" >&5
18315 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
18316 if test "${cf_cv_have_environ+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 cat >conftest.$ac_ext <<_ACEOF
18321 #line 18321 "configure"
18322 #include "confdefs.h"
18325 extern int environ;
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (eval echo "$as_me:18336: \"$ac_link\"") >&5
18337 (eval $ac_link) 2>&5
18339 echo "$as_me:18339: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -s conftest$ac_exeext'
18342 { (eval echo "$as_me:18342: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:18345: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 cf_cv_have_environ=yes
18349 echo "$as_me: failed program was:" >&5
18350 cat conftest.$ac_ext >&5
18351 cf_cv_have_environ=no
18353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18356 echo "$as_me:18356: result: $cf_cv_have_environ" >&5
18357 echo "${ECHO_T}$cf_cv_have_environ" >&6
18359 if test "$cf_cv_have_environ" = yes ; then
18361 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18363 cat >>confdefs.h <<EOF
18364 #define $cf_result 1
18369 echo "$as_me:18369: checking for getenv" >&5
18370 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
18371 if test "${ac_cv_func_getenv+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 cat >conftest.$ac_ext <<_ACEOF
18375 #line 18375 "configure"
18376 #include "confdefs.h"
18377 #define getenv autoconf_temporary
18378 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18385 /* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18387 char getenv (void);
18393 /* The GNU C library defines stubs for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined (__stub_getenv) || defined (__stub___getenv)
18397 #error found stub for getenv
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (eval echo "$as_me:18406: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>&5
18409 echo "$as_me:18409: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
18411 { ac_try='test -s conftest$ac_exeext'
18412 { (eval echo "$as_me:18412: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18415 echo "$as_me:18415: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 ac_cv_func_getenv=yes
18419 echo "$as_me: failed program was:" >&5
18420 cat conftest.$ac_ext >&5
18421 ac_cv_func_getenv=no
18423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18425 echo "$as_me:18425: result: $ac_cv_func_getenv" >&5
18426 echo "${ECHO_T}$ac_cv_func_getenv" >&6
18428 for ac_func in putenv setenv strdup
18430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18431 echo "$as_me:18431: checking for $ac_func" >&5
18432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18433 if eval "test \"\${$as_ac_var+set}\" = set"; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 cat >conftest.$ac_ext <<_ACEOF
18437 #line 18437 "configure"
18438 #include "confdefs.h"
18439 #define $ac_func autoconf_temporary
18440 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18447 /* We use char because int might match the return type of a gcc2
18448 builtin and then its argument prototype would still apply. */
18449 char $ac_func (void);
18455 /* The GNU C library defines stubs for functions which it implements
18456 to always fail with ENOSYS. Some functions are actually named
18457 something starting with __ and the normal name is an alias. */
18458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18459 #error found stub for $ac_func
18462 return $ac_func ();
18467 rm -f conftest.$ac_objext conftest$ac_exeext
18468 if { (eval echo "$as_me:18468: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>&5
18471 echo "$as_me:18471: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (eval echo "$as_me:18474: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18477 echo "$as_me:18477: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 eval "$as_ac_var=yes"
18481 echo "$as_me: failed program was:" >&5
18482 cat conftest.$ac_ext >&5
18483 eval "$as_ac_var=no"
18485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18487 echo "$as_me:18487: result: `eval echo '${'$as_ac_var'}'`" >&5
18488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18489 if test `eval echo '${'$as_ac_var'}'` = yes; then
18490 cat >>confdefs.h <<EOF
18491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18497 echo "$as_me:18497: checking if getenv returns consistent values" >&5
18498 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
18499 if test "${cf_cv_consistent_getenv+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 if test "$cross_compiling" = yes; then
18504 cf_cv_consistent_getenv=unknown
18506 cat >conftest.$ac_ext <<_ACEOF
18507 #line 18507 "configure"
18508 #include "confdefs.h"
18510 #include <stdlib.h>
18511 #include <unistd.h>
18513 #include <string.h>
18514 #include <sys/types.h>
18516 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
18517 extern char **environ; /* POSIX, but some systems are not... */
18520 #if defined(HAVE_STRDUP)
18521 #define str_alloc(s) strdup(s)
18523 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
18526 static void set_value(const char *name, const char *value)
18528 #if defined(HAVE_SETENV)
18529 setenv(name, value, 1);
18530 #elif defined(HAVE_PUTENV)
18532 sprintf(buffer, "%s=%s", name, value);
18533 putenv(str_alloc(buffer));
18535 #error neither putenv/setenv found
18541 size_t numenv, limit, j;
18546 for (numenv = 0; environ[numenv]; ++numenv) ;
18547 limit = numenv + 10;
18548 mynames = (char **) calloc(limit + 1, sizeof(char *));
18549 myvalues = (char **) calloc(limit + 1, sizeof(char *));
18550 mypointer = (char **) calloc(limit + 1, sizeof(char *));
18551 #if defined(HAVE_ENVIRON)
18552 for (j = 0; environ[j]; ++j) {
18553 mynames[j] = str_alloc(environ[j]);
18554 equals = strchr(mynames[j], '=');
18557 myvalues[j] = str_alloc(equals);
18559 myvalues[j] = str_alloc("");
18563 for (j = numenv; j < limit; ++j) {
18571 sprintf(name, "TERM%lu", (unsigned long) k);
18572 for (jk = 0; jk < j; ++jk) {
18573 if (!strcmp(name, mynames[jk])) {
18580 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
18581 set_value(name, value);
18582 mynames[j] = str_alloc(name);
18583 myvalues[j] = str_alloc(value);
18585 for (pass = 0; pass < 3; ++pass) {
18586 for (j = 0; j < limit; ++j) {
18587 char *value = getenv(mynames[j]);
18590 fprintf(stderr, "getenv returned null for %s\n", mynames[j]);
18591 ${cf_cv_main_return:-return}(1);
18592 } else if (value != mypointer[j]) {
18593 fprintf(stderr, "getenv returned different pointer for %s\n", mynames[j]);
18594 ${cf_cv_main_return:-return}(1);
18595 } else if (strcmp(value, myvalues[j])) {
18596 fprintf(stderr, "getenv returned different value for %s\n", mynames[j]);
18597 ${cf_cv_main_return:-return}(1);
18601 mypointer[j] = value;
18602 for (k = 0; k < j; ++k) {
18603 if (mypointer[j] == mypointer[k]) {
18604 fprintf(stderr, "getenv returned same pointer for %s and %s\n", mynames[j], mynames[k]);
18605 ${cf_cv_main_return:-return}(1);
18611 ${cf_cv_main_return:-return}(0);
18615 rm -f conftest$ac_exeext
18616 if { (eval echo "$as_me:18616: \"$ac_link\"") >&5
18617 (eval $ac_link) 2>&5
18619 echo "$as_me:18619: \$? = $ac_status" >&5
18620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18621 { (eval echo "$as_me:18621: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18624 echo "$as_me:18624: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 cf_cv_consistent_getenv=yes
18628 echo "$as_me: program exited with status $ac_status" >&5
18629 echo "$as_me: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18631 cf_cv_consistent_getenv=no
18633 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18637 echo "$as_me:18637: result: $cf_cv_consistent_getenv" >&5
18638 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
18640 if test "x$cf_cv_consistent_getenv" = xno
18643 cat >>confdefs.h <<\EOF
18644 #define HAVE_CONSISTENT_GETENV 1
18649 if test "x$cf_cv_consistent_getenv" = xno && \
18650 test "x$cf_with_trace" = xyes
18652 { echo "$as_me:18652: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
18653 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
18656 # check for ISC (this may also define _POSIX_SOURCE)
18657 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
18658 if test "x$ISC" = xyes ; then
18660 echo "$as_me:18660: checking for main in -lcposix" >&5
18661 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
18662 if test "${ac_cv_lib_cposix_main+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 ac_check_lib_save_LIBS=$LIBS
18666 LIBS="-lcposix $LIBS"
18667 cat >conftest.$ac_ext <<_ACEOF
18668 #line 18668 "configure"
18669 #include "confdefs.h"
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (eval echo "$as_me:18680: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>&5
18683 echo "$as_me:18683: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (eval echo "$as_me:18686: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:18689: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_lib_cposix_main=yes
18693 echo "$as_me: failed program was:" >&5
18694 cat conftest.$ac_ext >&5
18695 ac_cv_lib_cposix_main=no
18697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18698 LIBS=$ac_check_lib_save_LIBS
18700 echo "$as_me:18700: result: $ac_cv_lib_cposix_main" >&5
18701 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
18702 if test $ac_cv_lib_cposix_main = yes; then
18703 cat >>confdefs.h <<EOF
18704 #define HAVE_LIBCPOSIX 1
18707 LIBS="-lcposix $LIBS"
18711 echo "$as_me:18711: checking for bzero in -linet" >&5
18712 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
18713 if test "${ac_cv_lib_inet_bzero+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 ac_check_lib_save_LIBS=$LIBS
18717 LIBS="-linet $LIBS"
18718 cat >conftest.$ac_ext <<_ACEOF
18719 #line 18719 "configure"
18720 #include "confdefs.h"
18722 /* Override any gcc2 internal prototype to avoid an error. */
18726 /* We use char because int might match the return type of a gcc2
18727 builtin and then its argument prototype would still apply. */
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (eval echo "$as_me:18738: \"$ac_link\"") >&5
18739 (eval $ac_link) 2>&5
18741 echo "$as_me:18741: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
18743 { ac_try='test -s conftest$ac_exeext'
18744 { (eval echo "$as_me:18744: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 echo "$as_me:18747: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_cv_lib_inet_bzero=yes
18751 echo "$as_me: failed program was:" >&5
18752 cat conftest.$ac_ext >&5
18753 ac_cv_lib_inet_bzero=no
18755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18758 echo "$as_me:18758: result: $ac_cv_lib_inet_bzero" >&5
18759 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
18760 if test $ac_cv_lib_inet_bzero = yes; then
18762 cf_add_libs="-linet"
18763 # Filter out duplicates - this happens with badly-designed ".pc" files...
18764 for cf_add_1lib in $LIBS
18766 for cf_add_2lib in $cf_add_libs
18768 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18774 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18776 LIBS="$cf_add_libs"
18781 echo "$as_me:18781: checking if sys/time.h works with sys/select.h" >&5
18782 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
18783 if test "${cf_cv_sys_time_select+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 cat >conftest.$ac_ext <<_ACEOF
18788 #line 18788 "configure"
18789 #include "confdefs.h"
18791 #include <sys/types.h>
18792 #ifdef HAVE_SYS_TIME_H
18793 #include <sys/time.h>
18795 #ifdef HAVE_SYS_SELECT_H
18796 #include <sys/select.h>
18807 rm -f conftest.$ac_objext
18808 if { (eval echo "$as_me:18808: \"$ac_compile\"") >&5
18809 (eval $ac_compile) 2>&5
18811 echo "$as_me:18811: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
18813 { ac_try='test -s conftest.$ac_objext'
18814 { (eval echo "$as_me:18814: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18817 echo "$as_me:18817: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18819 cf_cv_sys_time_select=yes
18821 echo "$as_me: failed program was:" >&5
18822 cat conftest.$ac_ext >&5
18823 cf_cv_sys_time_select=no
18825 rm -f conftest.$ac_objext conftest.$ac_ext
18829 echo "$as_me:18829: result: $cf_cv_sys_time_select" >&5
18830 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
18831 test "$cf_cv_sys_time_select" = yes &&
18832 cat >>confdefs.h <<\EOF
18833 #define HAVE_SYS_TIME_SELECT 1
18836 ### checks for compiler characteristics
18838 ac_cpp='$CPP $CPPFLAGS'
18839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842 ac_main_return=return
18844 echo "$as_me:18844: checking for an ANSI C-conforming const" >&5
18845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18846 if test "${ac_cv_c_const+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 cat >conftest.$ac_ext <<_ACEOF
18850 #line 18850 "configure"
18851 #include "confdefs.h"
18856 /* FIXME: Include the comments suggested by Paul. */
18857 #ifndef __cplusplus
18858 /* Ultrix mips cc rejects this. */
18859 typedef int charset[2];
18861 /* SunOS 4.1.1 cc rejects this. */
18862 char const *const *ccp;
18864 /* NEC SVR4.0.2 mips cc rejects this. */
18865 struct point {int x, y;};
18866 static struct point const zero = {0,0};
18867 /* AIX XL C 1.02.0.0 rejects this.
18868 It does not let you subtract one const X* pointer from another in
18869 an arm of an if-expression whose if-part is not a constant
18871 const char *g = "string";
18872 ccp = &g + (g ? g-g : 0);
18873 /* HPUX 7.0 cc rejects these. */
18876 ccp = (char const *const *) p;
18877 { /* SCO 3.2v4 cc rejects this. */
18879 char const *s = 0 ? (char *) 0 : (char const *) 0;
18883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18884 int x[] = {25, 17};
18885 const int *foo = &x[0];
18888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18889 typedef const int *iptr;
18893 { /* AIX XL C 1.02.0.0 rejects this saying
18894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18895 struct s { int j; const int *ap[3]; };
18896 struct s *b; b->j = 5;
18898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18899 const int foo = 10;
18907 rm -f conftest.$ac_objext
18908 if { (eval echo "$as_me:18908: \"$ac_compile\"") >&5
18909 (eval $ac_compile) 2>&5
18911 echo "$as_me:18911: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -s conftest.$ac_objext'
18914 { (eval echo "$as_me:18914: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18917 echo "$as_me:18917: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18921 echo "$as_me: failed program was:" >&5
18922 cat conftest.$ac_ext >&5
18925 rm -f conftest.$ac_objext conftest.$ac_ext
18927 echo "$as_me:18927: result: $ac_cv_c_const" >&5
18928 echo "${ECHO_T}$ac_cv_c_const" >&6
18929 if test $ac_cv_c_const = no; then
18931 cat >>confdefs.h <<\EOF
18937 echo "$as_me:18937: checking for inline" >&5
18938 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18939 if test "${ac_cv_c_inline+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 for ac_kw in inline __inline__ __inline; do
18944 cat >conftest.$ac_ext <<_ACEOF
18945 #line 18945 "configure"
18946 #include "confdefs.h"
18947 #ifndef __cplusplus
18948 static $ac_kw int static_foo () {return 0; }
18949 $ac_kw int foo () {return 0; }
18953 rm -f conftest.$ac_objext
18954 if { (eval echo "$as_me:18954: \"$ac_compile\"") >&5
18955 (eval $ac_compile) 2>&5
18957 echo "$as_me:18957: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -s conftest.$ac_objext'
18960 { (eval echo "$as_me:18960: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:18963: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_cv_c_inline=$ac_kw; break
18967 echo "$as_me: failed program was:" >&5
18968 cat conftest.$ac_ext >&5
18970 rm -f conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:18974: result: $ac_cv_c_inline" >&5
18975 echo "${ECHO_T}$ac_cv_c_inline" >&6
18976 case $ac_cv_c_inline in
18979 cat >>confdefs.h <<\EOF
18983 *) cat >>confdefs.h <<EOF
18984 #define inline $ac_cv_c_inline
18990 if test "$ac_cv_c_inline" != no ; then
18991 NCURSES_INLINE=inline
18992 if test "$INTEL_COMPILER" = yes
18995 elif test "$CLANG_COMPILER" = yes
18998 elif test "$GCC" = yes
19000 echo "$as_me:19000: checking if $CC supports options to tune inlining" >&5
19001 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
19002 if test "${cf_cv_gcc_inline+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 cf_save_CFLAGS=$CFLAGS
19007 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
19008 cat >conftest.$ac_ext <<_ACEOF
19009 #line 19009 "configure"
19010 #include "confdefs.h"
19011 inline int foo(void) { return 1; }
19015 ${cf_cv_main_return:-return} foo()
19020 rm -f conftest.$ac_objext
19021 if { (eval echo "$as_me:19021: \"$ac_compile\"") >&5
19022 (eval $ac_compile) 2>&5
19024 echo "$as_me:19024: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -s conftest.$ac_objext'
19027 { (eval echo "$as_me:19027: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19030 echo "$as_me:19030: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 cf_cv_gcc_inline=yes
19034 echo "$as_me: failed program was:" >&5
19035 cat conftest.$ac_ext >&5
19036 cf_cv_gcc_inline=no
19038 rm -f conftest.$ac_objext conftest.$ac_ext
19039 CFLAGS=$cf_save_CFLAGS
19042 echo "$as_me:19042: result: $cf_cv_gcc_inline" >&5
19043 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
19044 if test "$cf_cv_gcc_inline" = yes ; then
19049 cf_new_extra_cppflags=
19051 for cf_add_cflags in --param max-inline-insns-single=1200
19053 case $cf_fix_cppflags in
19055 case $cf_add_cflags in
19056 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19057 case $cf_add_cflags in
19059 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19061 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19062 && test -z "${cf_tst_cflags}" \
19063 && cf_fix_cppflags=yes
19065 if test $cf_fix_cppflags = yes ; then
19067 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19068 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19071 elif test "${cf_tst_cflags}" = "\"'" ; then
19073 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19074 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19080 case "$CPPFLAGS" in
19084 case $cf_add_cflags in
19086 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19088 CPPFLAGS=`echo "$CPPFLAGS" | \
19089 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19090 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19095 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19096 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19103 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19104 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19111 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19112 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19114 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19116 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19117 && test -z "${cf_tst_cflags}" \
19118 && cf_fix_cppflags=no
19123 if test -n "$cf_new_cflags" ; then
19125 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19126 CFLAGS="${CFLAGS}$cf_new_cflags"
19130 if test -n "$cf_new_cppflags" ; then
19132 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19133 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19137 if test -n "$cf_new_extra_cppflags" ; then
19139 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19140 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19148 echo "$as_me:19148: checking for signal global datatype" >&5
19149 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
19150 if test "${cf_cv_sig_atomic_t+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 "volatile sig_atomic_t" \
19159 cat >conftest.$ac_ext <<_ACEOF
19160 #line 19160 "configure"
19161 #include "confdefs.h"
19163 #include <sys/types.h>
19164 #include <signal.h>
19169 static void handler(int sig)
19176 signal(SIGINT, handler);
19182 rm -f conftest.$ac_objext
19183 if { (eval echo "$as_me:19183: \"$ac_compile\"") >&5
19184 (eval $ac_compile) 2>&5
19186 echo "$as_me:19186: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (eval echo "$as_me:19189: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:19192: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 cf_cv_sig_atomic_t=$cf_type
19196 echo "$as_me: failed program was:" >&5
19197 cat conftest.$ac_ext >&5
19198 cf_cv_sig_atomic_t=no
19200 rm -f conftest.$ac_objext conftest.$ac_ext
19201 test "$cf_cv_sig_atomic_t" != no && break
19206 echo "$as_me:19206: result: $cf_cv_sig_atomic_t" >&5
19207 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
19208 test "$cf_cv_sig_atomic_t" != no &&
19209 cat >>confdefs.h <<EOF
19210 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
19213 if test $NCURSES_CHTYPE = auto ; then
19215 echo "$as_me:19215: checking for type of chtype" >&5
19216 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
19217 if test "${cf_cv_typeof_chtype+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 if test "$cross_compiling" = yes; then
19222 cf_cv_typeof_chtype=long
19224 cat >conftest.$ac_ext <<_ACEOF
19225 #line 19225 "configure"
19226 #include "confdefs.h"
19228 #define WANT_BITS 31
19232 FILE *fp = fopen("cf_test.out", "w");
19234 char *result = "long";
19235 if (sizeof(unsigned long) > sizeof(unsigned int)) {
19238 for (n = 0; n < WANT_BITS; n++) {
19241 if (y != 1 || x == 0) {
19247 * If x is nonzero, an int is big enough for the bits
19250 result = (x != 0) ? "int" : "long";
19255 ${cf_cv_main_return:-return}(0);
19259 rm -f conftest$ac_exeext
19260 if { (eval echo "$as_me:19260: \"$ac_link\"") >&5
19261 (eval $ac_link) 2>&5
19263 echo "$as_me:19263: \$? = $ac_status" >&5
19264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19265 { (eval echo "$as_me:19265: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19268 echo "$as_me:19268: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 cf_cv_typeof_chtype=`cat cf_test.out`
19272 echo "$as_me: program exited with status $ac_status" >&5
19273 echo "$as_me: failed program was:" >&5
19274 cat conftest.$ac_ext >&5
19275 cf_cv_typeof_chtype=long
19277 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19283 echo "$as_me:19283: result: $cf_cv_typeof_chtype" >&5
19284 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
19286 cat >>confdefs.h <<EOF
19287 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
19291 cf_cv_typeof_chtype=$NCURSES_CHTYPE
19293 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
19295 echo "$as_me:19295: checking if unsigned literals are legal" >&5
19296 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
19297 if test "${cf_cv_unsigned_literals+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 cat >conftest.$ac_ext <<_ACEOF
19302 #line 19302 "configure"
19303 #include "confdefs.h"
19308 long x = 1L + 1UL + 1U + 1
19313 rm -f conftest.$ac_objext
19314 if { (eval echo "$as_me:19314: \"$ac_compile\"") >&5
19315 (eval $ac_compile) 2>&5
19317 echo "$as_me:19317: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:19320: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:19323: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 cf_cv_unsigned_literals=yes
19327 echo "$as_me: failed program was:" >&5
19328 cat conftest.$ac_ext >&5
19329 cf_cv_unsigned_literals=no
19331 rm -f conftest.$ac_objext conftest.$ac_ext
19335 echo "$as_me:19335: result: $cf_cv_unsigned_literals" >&5
19336 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
19339 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
19340 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
19342 if test $NCURSES_MMASK_T = auto ; then
19343 cf_cv_typeof_mmask_t=long
19345 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
19347 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
19349 ### Checks for external-data
19351 echo "$as_me:19351: checking if external errno is declared" >&5
19352 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
19353 if test "${cf_cv_dcl_errno+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19358 #line 19358 "configure"
19359 #include "confdefs.h"
19361 #ifdef HAVE_STDLIB_H
19362 #include <stdlib.h>
19365 #include <sys/types.h>
19370 int x = (int) errno
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:19376: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>&5
19379 echo "$as_me:19379: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
19381 { ac_try='test -s conftest.$ac_objext'
19382 { (eval echo "$as_me:19382: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:19385: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 cf_cv_dcl_errno=yes
19389 echo "$as_me: failed program was:" >&5
19390 cat conftest.$ac_ext >&5
19393 rm -f conftest.$ac_objext conftest.$ac_ext
19396 echo "$as_me:19396: result: $cf_cv_dcl_errno" >&5
19397 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
19399 if test "$cf_cv_dcl_errno" = no ; then
19401 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19403 cat >>confdefs.h <<EOF
19404 #define $cf_result 1
19409 # It's possible (for near-UNIX clones) that the data doesn't exist
19411 echo "$as_me:19411: checking if external errno exists" >&5
19412 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
19413 if test "${cf_cv_have_errno+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 cat >conftest.$ac_ext <<_ACEOF
19418 #line 19418 "configure"
19419 #include "confdefs.h"
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (eval echo "$as_me:19433: \"$ac_link\"") >&5
19434 (eval $ac_link) 2>&5
19436 echo "$as_me:19436: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:19439: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:19442: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 cf_cv_have_errno=yes
19446 echo "$as_me: failed program was:" >&5
19447 cat conftest.$ac_ext >&5
19448 cf_cv_have_errno=no
19450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19453 echo "$as_me:19453: result: $cf_cv_have_errno" >&5
19454 echo "${ECHO_T}$cf_cv_have_errno" >&6
19456 if test "$cf_cv_have_errno" = yes ; then
19458 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19460 cat >>confdefs.h <<EOF
19461 #define $cf_result 1
19466 echo "$as_me:19466: checking if data-only library module links" >&5
19467 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
19468 if test "${cf_cv_link_dataonly+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 cat >conftest.$ac_ext <<EOF
19474 #line 19474 "configure"
19475 int testdata[3] = { 123, 456, 789 };
19477 if { (eval echo "$as_me:19477: \"$ac_compile\"") >&5
19478 (eval $ac_compile) 2>&5
19480 echo "$as_me:19480: \$? = $ac_status" >&5
19481 (exit $ac_status); } ; then
19482 mv conftest.o data.o && \
19483 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
19485 rm -f conftest.$ac_ext data.o
19486 cat >conftest.$ac_ext <<EOF
19487 #line 19487 "configure"
19491 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
19493 extern int testdata[3];
19494 return testdata[0] == 123
19495 && testdata[1] == 456
19496 && testdata[2] == 789;
19500 if { (eval echo "$as_me:19500: \"$ac_compile\"") >&5
19501 (eval $ac_compile) 2>&5
19503 echo "$as_me:19503: \$? = $ac_status" >&5
19504 (exit $ac_status); }; then
19505 mv conftest.o func.o && \
19506 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
19508 rm -f conftest.$ac_ext func.o
19509 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
19510 cf_saveLIBS="$LIBS"
19511 LIBS="conftest.a $LIBS"
19512 if test "$cross_compiling" = yes; then
19513 cf_cv_link_dataonly=unknown
19515 cat >conftest.$ac_ext <<_ACEOF
19516 #line 19516 "configure"
19517 #include "confdefs.h"
19521 extern int testfunc();
19522 ${cf_cv_main_return:-return} (!testfunc());
19526 rm -f conftest$ac_exeext
19527 if { (eval echo "$as_me:19527: \"$ac_link\"") >&5
19528 (eval $ac_link) 2>&5
19530 echo "$as_me:19530: \$? = $ac_status" >&5
19531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19532 { (eval echo "$as_me:19532: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19535 echo "$as_me:19535: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 cf_cv_link_dataonly=yes
19539 echo "$as_me: program exited with status $ac_status" >&5
19540 echo "$as_me: failed program was:" >&5
19541 cat conftest.$ac_ext >&5
19542 cf_cv_link_dataonly=no
19544 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19546 LIBS="$cf_saveLIBS"
19550 echo "$as_me:19550: result: $cf_cv_link_dataonly" >&5
19551 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
19553 if test "$cf_cv_link_dataonly" = no ; then
19555 cat >>confdefs.h <<\EOF
19556 #define BROKEN_LINKER 1
19562 ### Checks for library functions.
19591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19592 echo "$as_me:19592: checking for $ac_func" >&5
19593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19594 if eval "test \"\${$as_ac_var+set}\" = set"; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19598 #line 19598 "configure"
19599 #include "confdefs.h"
19600 #define $ac_func autoconf_temporary
19601 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19608 /* We use char because int might match the return type of a gcc2
19609 builtin and then its argument prototype would still apply. */
19610 char $ac_func (void);
19616 /* The GNU C library defines stubs for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19620 #error found stub for $ac_func
19623 return $ac_func ();
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:19629: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>&5
19632 echo "$as_me:19632: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -s conftest$ac_exeext'
19635 { (eval echo "$as_me:19635: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:19638: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 eval "$as_ac_var=yes"
19642 echo "$as_me: failed program was:" >&5
19643 cat conftest.$ac_ext >&5
19644 eval "$as_ac_var=no"
19646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19648 echo "$as_me:19648: result: `eval echo '${'$as_ac_var'}'`" >&5
19649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19650 if test `eval echo '${'$as_ac_var'}'` = yes; then
19651 cat >>confdefs.h <<EOF
19652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19658 if test "x$ac_cv_func_getopt" = xno && \
19659 test "x$cf_with_progs$cf_with_tests" != xnono; then
19660 { { echo "$as_me:19660: error: getopt is required for building programs" >&5
19661 echo "$as_me: error: getopt is required for building programs" >&2;}
19662 { (exit 1); exit 1; }; }
19665 if test "x$with_safe_sprintf" = xyes
19667 if test "x$ac_cv_func_vsnprintf" = xyes
19669 { echo "$as_me:19669: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
19670 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
19673 cat >>confdefs.h <<\EOF
19674 #define USE_SAFE_SPRINTF 1
19680 if test "x$with_getcap" = "xyes" ; then
19682 echo "$as_me:19682: checking for terminal-capability database functions" >&5
19683 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
19684 if test "${cf_cv_cgetent+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19689 #line 19689 "configure"
19690 #include "confdefs.h"
19692 #include <stdlib.h>
19699 char *db_array = temp;
19700 cgetent(&buf, &db_array, "vt100");
19701 cgetcap(buf, "tc", '=');
19702 cgetmatch(buf, "tc");
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (eval echo "$as_me:19709: \"$ac_link\"") >&5
19710 (eval $ac_link) 2>&5
19712 echo "$as_me:19712: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -s conftest$ac_exeext'
19715 { (eval echo "$as_me:19715: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:19718: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19722 echo "$as_me: failed program was:" >&5
19723 cat conftest.$ac_ext >&5
19726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19729 echo "$as_me:19729: result: $cf_cv_cgetent" >&5
19730 echo "${ECHO_T}$cf_cv_cgetent" >&6
19732 if test "$cf_cv_cgetent" = yes
19735 cat >>confdefs.h <<\EOF
19736 #define HAVE_BSD_CGETENT 1
19739 echo "$as_me:19739: checking if cgetent uses const parameter" >&5
19740 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
19741 if test "${cf_cv_cgetent_const+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 cat >conftest.$ac_ext <<_ACEOF
19746 #line 19746 "configure"
19747 #include "confdefs.h"
19749 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
19750 #include <stdlib.h>
19757 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
19758 const char *db_array = temp;
19759 cgetent(&buf, &db_array, "vt100");
19761 cgetcap(buf, "tc", '=');
19762 cgetmatch(buf, "tc");
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (eval echo "$as_me:19769: \"$ac_link\"") >&5
19770 (eval $ac_link) 2>&5
19772 echo "$as_me:19772: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -s conftest$ac_exeext'
19775 { (eval echo "$as_me:19775: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:19778: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 cf_cv_cgetent_const=yes
19782 echo "$as_me: failed program was:" >&5
19783 cat conftest.$ac_ext >&5
19784 cf_cv_cgetent_const=no
19786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19789 echo "$as_me:19789: result: $cf_cv_cgetent_const" >&5
19790 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
19791 if test "$cf_cv_cgetent_const" = yes
19794 cat >>confdefs.h <<EOF
19795 #define CGETENT_CONST const
19803 echo "$as_me:19803: checking for isascii" >&5
19804 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
19805 if test "${cf_cv_have_isascii+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 cat >conftest.$ac_ext <<_ACEOF
19810 #line 19810 "configure"
19811 #include "confdefs.h"
19816 int x = isascii(' ')
19821 rm -f conftest.$ac_objext conftest$ac_exeext
19822 if { (eval echo "$as_me:19822: \"$ac_link\"") >&5
19823 (eval $ac_link) 2>&5
19825 echo "$as_me:19825: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -s conftest$ac_exeext'
19828 { (eval echo "$as_me:19828: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19831 echo "$as_me:19831: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 cf_cv_have_isascii=yes
19835 echo "$as_me: failed program was:" >&5
19836 cat conftest.$ac_ext >&5
19837 cf_cv_have_isascii=no
19839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19842 echo "$as_me:19842: result: $cf_cv_have_isascii" >&5
19843 echo "${ECHO_T}$cf_cv_have_isascii" >&6
19844 test "$cf_cv_have_isascii" = yes &&
19845 cat >>confdefs.h <<\EOF
19846 #define HAVE_ISASCII 1
19849 if test "$ac_cv_func_sigaction" = yes; then
19850 echo "$as_me:19850: checking whether sigaction needs _POSIX_SOURCE" >&5
19851 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
19852 cat >conftest.$ac_ext <<_ACEOF
19853 #line 19853 "configure"
19854 #include "confdefs.h"
19856 #include <sys/types.h>
19857 #include <signal.h>
19861 struct sigaction act
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:19867: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>&5
19870 echo "$as_me:19870: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try='test -s conftest.$ac_objext'
19873 { (eval echo "$as_me:19873: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:19876: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19880 echo "$as_me: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19883 cat >conftest.$ac_ext <<_ACEOF
19884 #line 19884 "configure"
19885 #include "confdefs.h"
19887 #define _POSIX_SOURCE
19888 #include <sys/types.h>
19889 #include <signal.h>
19893 struct sigaction act
19898 rm -f conftest.$ac_objext
19899 if { (eval echo "$as_me:19899: \"$ac_compile\"") >&5
19900 (eval $ac_compile) 2>&5
19902 echo "$as_me:19902: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (eval echo "$as_me:19905: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:19908: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19912 cat >>confdefs.h <<\EOF
19913 #define _POSIX_SOURCE 1
19917 echo "$as_me: failed program was:" >&5
19918 cat conftest.$ac_ext >&5
19921 rm -f conftest.$ac_objext conftest.$ac_ext
19923 rm -f conftest.$ac_objext conftest.$ac_ext
19924 echo "$as_me:19924: result: $sigact_bad" >&5
19925 echo "${ECHO_T}$sigact_bad" >&6
19928 echo "$as_me:19928: checking if nanosleep really works" >&5
19929 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
19930 if test "${cf_cv_func_nanosleep+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 if test "$cross_compiling" = yes; then
19935 cf_cv_func_nanosleep=unknown
19937 cat >conftest.$ac_ext <<_ACEOF
19938 #line 19938 "configure"
19939 #include "confdefs.h"
19945 #ifdef HAVE_SYS_TIME_H
19946 #include <sys/time.h>
19950 struct timespec ts1, ts2;
19953 ts1.tv_nsec = 750000000;
19957 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
19958 ${cf_cv_main_return:-return}(code != 0);
19962 rm -f conftest$ac_exeext
19963 if { (eval echo "$as_me:19963: \"$ac_link\"") >&5
19964 (eval $ac_link) 2>&5
19966 echo "$as_me:19966: \$? = $ac_status" >&5
19967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19968 { (eval echo "$as_me:19968: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:19971: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19973 cf_cv_func_nanosleep=yes
19975 echo "$as_me: program exited with status $ac_status" >&5
19976 echo "$as_me: failed program was:" >&5
19977 cat conftest.$ac_ext >&5
19978 cf_cv_func_nanosleep=no
19980 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19983 echo "$as_me:19983: result: $cf_cv_func_nanosleep" >&5
19984 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
19986 test "$cf_cv_func_nanosleep" = "yes" &&
19987 cat >>confdefs.h <<\EOF
19988 #define HAVE_NANOSLEEP 1
19999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20000 echo "$as_me:20000: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 cat >conftest.$ac_ext <<_ACEOF
20006 #line 20006 "configure"
20007 #include "confdefs.h"
20008 #include <$ac_header>
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_c_preproc_warn_flag
20026 if test -z "$ac_cpp_err"; then
20027 eval "$as_ac_Header=yes"
20029 echo "$as_me: failed program was:" >&5
20030 cat conftest.$ac_ext >&5
20031 eval "$as_ac_Header=no"
20033 rm -f conftest.err conftest.$ac_ext
20035 echo "$as_me:20035: result: `eval echo '${'$as_ac_Header'}'`" >&5
20036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038 cat >>confdefs.h <<EOF
20039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20045 if test "$ac_cv_header_termios_h" = yes ; then
20046 case "$CFLAGS $CPPFLAGS" in
20047 (*-D_POSIX_SOURCE*)
20048 termios_bad=dunno ;;
20049 (*) termios_bad=maybe ;;
20051 if test "$termios_bad" = maybe ; then
20052 echo "$as_me:20052: checking whether termios.h needs _POSIX_SOURCE" >&5
20053 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
20054 cat >conftest.$ac_ext <<_ACEOF
20055 #line 20055 "configure"
20056 #include "confdefs.h"
20057 #include <termios.h>
20061 struct termios foo; int x = foo.c_iflag
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:20067: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>&5
20070 echo "$as_me:20070: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -s conftest.$ac_objext'
20073 { (eval echo "$as_me:20073: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20076 echo "$as_me:20076: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20080 echo "$as_me: failed program was:" >&5
20081 cat conftest.$ac_ext >&5
20083 cat >conftest.$ac_ext <<_ACEOF
20084 #line 20084 "configure"
20085 #include "confdefs.h"
20087 #define _POSIX_SOURCE
20088 #include <termios.h>
20092 struct termios foo; int x = foo.c_iflag
20097 rm -f conftest.$ac_objext
20098 if { (eval echo "$as_me:20098: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>&5
20101 echo "$as_me:20101: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -s conftest.$ac_objext'
20104 { (eval echo "$as_me:20104: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:20107: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 termios_bad=unknown
20111 echo "$as_me: failed program was:" >&5
20112 cat conftest.$ac_ext >&5
20114 cat >>confdefs.h <<\EOF
20115 #define _POSIX_SOURCE 1
20119 rm -f conftest.$ac_objext conftest.$ac_ext
20122 rm -f conftest.$ac_objext conftest.$ac_ext
20123 echo "$as_me:20123: result: $termios_bad" >&5
20124 echo "${ECHO_T}$termios_bad" >&6
20128 echo "$as_me:20128: checking for tcgetattr" >&5
20129 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
20130 if test "${cf_cv_have_tcgetattr+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 cat >conftest.$ac_ext <<_ACEOF
20135 #line 20135 "configure"
20136 #include "confdefs.h"
20138 #include <sys/types.h>
20139 #ifdef HAVE_UNISTD_H
20140 #include <unistd.h>
20142 #ifdef HAVE_TERMIOS_H
20143 #include <termios.h>
20144 #define TTY struct termios
20146 #ifdef HAVE_TERMIO_H
20147 #include <termio.h>
20148 #define TTY struct termio
20157 tcgetattr(1, &foo);
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (eval echo "$as_me:20163: \"$ac_link\"") >&5
20164 (eval $ac_link) 2>&5
20166 echo "$as_me:20166: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -s conftest$ac_exeext'
20169 { (eval echo "$as_me:20169: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20172 echo "$as_me:20172: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 cf_cv_have_tcgetattr=yes
20176 echo "$as_me: failed program was:" >&5
20177 cat conftest.$ac_ext >&5
20178 cf_cv_have_tcgetattr=no
20180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20182 echo "$as_me:20182: result: $cf_cv_have_tcgetattr" >&5
20183 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
20184 test "$cf_cv_have_tcgetattr" = yes &&
20185 cat >>confdefs.h <<\EOF
20186 #define HAVE_TCGETATTR 1
20189 echo "$as_me:20189: checking for vsscanf function or workaround" >&5
20190 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
20191 if test "${cf_cv_func_vsscanf+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 cat >conftest.$ac_ext <<_ACEOF
20196 #line 20196 "configure"
20197 #include "confdefs.h"
20199 #include <stdarg.h>
20206 vsscanf("from", "%d", ap)
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (eval echo "$as_me:20212: \"$ac_link\"") >&5
20213 (eval $ac_link) 2>&5
20215 echo "$as_me:20215: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (eval echo "$as_me:20218: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:20221: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 cf_cv_func_vsscanf=vsscanf
20225 echo "$as_me: failed program was:" >&5
20226 cat conftest.$ac_ext >&5
20228 cat >conftest.$ac_ext <<_ACEOF
20229 #line 20229 "configure"
20230 #include "confdefs.h"
20232 #include <stdarg.h>
20239 char *str = "from";
20241 strbuf._flag = _IOREAD;
20242 strbuf._ptr = strbuf._base = (unsigned char *) str;
20243 strbuf._cnt = strlen(str);
20244 strbuf._file = _NFILE;
20245 return (vfscanf(&strbuf, "%d", ap))
20250 rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (eval echo "$as_me:20251: \"$ac_link\"") >&5
20252 (eval $ac_link) 2>&5
20254 echo "$as_me:20254: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -s conftest$ac_exeext'
20257 { (eval echo "$as_me:20257: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:20260: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 cf_cv_func_vsscanf=vfscanf
20264 echo "$as_me: failed program was:" >&5
20265 cat conftest.$ac_ext >&5
20267 cat >conftest.$ac_ext <<_ACEOF
20268 #line 20268 "configure"
20269 #include "confdefs.h"
20271 #include <stdarg.h>
20278 char *str = "from";
20280 strbuf._flag = _IOREAD;
20281 strbuf._ptr = strbuf._base = (unsigned char *) str;
20282 strbuf._cnt = strlen(str);
20283 strbuf._file = _NFILE;
20284 return (_doscan(&strbuf, "%d", ap))
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (eval echo "$as_me:20290: \"$ac_link\"") >&5
20291 (eval $ac_link) 2>&5
20293 echo "$as_me:20293: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -s conftest$ac_exeext'
20296 { (eval echo "$as_me:20296: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20299 echo "$as_me:20299: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 cf_cv_func_vsscanf=_doscan
20303 echo "$as_me: failed program was:" >&5
20304 cat conftest.$ac_ext >&5
20306 cf_cv_func_vsscanf=no
20308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20314 echo "$as_me:20314: result: $cf_cv_func_vsscanf" >&5
20315 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
20317 case $cf_cv_func_vsscanf in
20319 cat >>confdefs.h <<\EOF
20320 #define HAVE_VSSCANF 1
20324 cat >>confdefs.h <<\EOF
20325 #define HAVE_VFSCANF 1
20329 cat >>confdefs.h <<\EOF
20330 #define HAVE__DOSCAN 1
20339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20340 echo "$as_me:20340: checking for $ac_header" >&5
20341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 cat >conftest.$ac_ext <<_ACEOF
20346 #line 20346 "configure"
20347 #include "confdefs.h"
20348 #include <$ac_header>
20350 if { (eval echo "$as_me:20350: \"$ac_cpp conftest.$ac_ext\"") >&5
20351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20353 egrep -v '^ *\+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:20356: \$? = $ac_status" >&5
20357 (exit $ac_status); } >/dev/null; then
20358 if test -s conftest.err; then
20359 ac_cpp_err=$ac_c_preproc_warn_flag
20366 if test -z "$ac_cpp_err"; then
20367 eval "$as_ac_Header=yes"
20369 echo "$as_me: failed program was:" >&5
20370 cat conftest.$ac_ext >&5
20371 eval "$as_ac_Header=no"
20373 rm -f conftest.err conftest.$ac_ext
20375 echo "$as_me:20375: result: `eval echo '${'$as_ac_Header'}'`" >&5
20376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20378 cat >>confdefs.h <<EOF
20379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20385 echo "$as_me:20385: checking for working mkstemp" >&5
20386 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
20387 if test "${cf_cv_func_mkstemp+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 if test "$cross_compiling" = yes; then
20393 cf_cv_func_mkstemp=maybe
20395 cat >conftest.$ac_ext <<_ACEOF
20396 #line 20396 "configure"
20397 #include "confdefs.h"
20399 #include <sys/types.h>
20400 #ifdef HAVE_UNISTD_H
20401 #include <unistd.h>
20403 #include <stdlib.h>
20405 #include <string.h>
20406 #include <sys/stat.h>
20409 char *tmpl = "conftestXXXXXX";
20417 for (n = 0; n < 2; ++n) {
20418 strcpy(name[n], tmpl);
20419 if ((fd = mkstemp(name[n])) >= 0) {
20420 if (!strcmp(name[n], tmpl)
20421 || stat(name[n], &sb) != 0
20422 || (sb.st_mode & S_IFMT) != S_IFREG
20423 || (sb.st_mode & 077) != 0) {
20430 && !strcmp(name[0], name[1]))
20432 ${cf_cv_main_return:-return}(result);
20436 rm -f conftest$ac_exeext
20437 if { (eval echo "$as_me:20437: \"$ac_link\"") >&5
20438 (eval $ac_link) 2>&5
20440 echo "$as_me:20440: \$? = $ac_status" >&5
20441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20442 { (eval echo "$as_me:20442: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:20445: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20447 cf_cv_func_mkstemp=yes
20450 echo "$as_me: program exited with status $ac_status" >&5
20451 echo "$as_me: failed program was:" >&5
20452 cat conftest.$ac_ext >&5
20453 cf_cv_func_mkstemp=no
20456 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20460 echo "$as_me:20460: result: $cf_cv_func_mkstemp" >&5
20461 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
20462 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
20463 echo "$as_me:20463: checking for mkstemp" >&5
20464 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
20465 if test "${ac_cv_func_mkstemp+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20469 #line 20469 "configure"
20470 #include "confdefs.h"
20471 #define mkstemp autoconf_temporary
20472 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20479 /* We use char because int might match the return type of a gcc2
20480 builtin and then its argument prototype would still apply. */
20481 char mkstemp (void);
20487 /* The GNU C library defines stubs for functions which it implements
20488 to always fail with ENOSYS. Some functions are actually named
20489 something starting with __ and the normal name is an alias. */
20490 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
20491 #error found stub for mkstemp
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (eval echo "$as_me:20500: \"$ac_link\"") >&5
20501 (eval $ac_link) 2>&5
20503 echo "$as_me:20503: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -s conftest$ac_exeext'
20506 { (eval echo "$as_me:20506: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20509 echo "$as_me:20509: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_cv_func_mkstemp=yes
20513 echo "$as_me: failed program was:" >&5
20514 cat conftest.$ac_ext >&5
20515 ac_cv_func_mkstemp=no
20517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20519 echo "$as_me:20519: result: $ac_cv_func_mkstemp" >&5
20520 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
20523 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
20525 cat >>confdefs.h <<\EOF
20526 #define HAVE_MKSTEMP 1
20531 # setup for prototype of fallback for vsscanf()
20533 if test "$cf_cv_func_vsscanf" = vsscanf ; then
20539 if test "x$cross_compiling" = xyes ; then
20540 { echo "$as_me:20540: WARNING: cross compiling: assume setvbuf params not reversed" >&5
20541 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
20543 echo "$as_me:20543: checking whether setvbuf arguments are reversed" >&5
20544 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
20545 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 if test "$cross_compiling" = yes; then
20549 { { echo "$as_me:20549: error: cannot run test program while cross compiling" >&5
20550 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
20551 { (exit 1); exit 1; }; }
20553 cat >conftest.$ac_ext <<_ACEOF
20554 #line 20554 "configure"
20555 #include "confdefs.h"
20557 /* If setvbuf has the reversed format, exit 0. */
20561 /* This call has the arguments reversed.
20562 A reversed system may check and see that the address of main
20563 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
20564 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
20565 $ac_main_return(1);
20566 putc('\r', stdout);
20567 $ac_main_return(0); /* Non-reversed systems segv here. */
20570 rm -f conftest$ac_exeext
20571 if { (eval echo "$as_me:20571: \"$ac_link\"") >&5
20572 (eval $ac_link) 2>&5
20574 echo "$as_me:20574: \$? = $ac_status" >&5
20575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20576 { (eval echo "$as_me:20576: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20579 echo "$as_me:20579: \$? = $ac_status" >&5
20580 (exit $ac_status); }; }; then
20581 ac_cv_func_setvbuf_reversed=yes
20583 echo "$as_me: program exited with status $ac_status" >&5
20584 echo "$as_me: failed program was:" >&5
20585 cat conftest.$ac_ext >&5
20586 ac_cv_func_setvbuf_reversed=no
20588 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20590 rm -f core core.* *.core
20592 echo "$as_me:20592: result: $ac_cv_func_setvbuf_reversed" >&5
20593 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
20594 if test $ac_cv_func_setvbuf_reversed = yes; then
20596 cat >>confdefs.h <<\EOF
20597 #define SETVBUF_REVERSED 1
20603 echo "$as_me:20603: checking for intptr_t" >&5
20604 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
20605 if test "${ac_cv_type_intptr_t+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 cat >conftest.$ac_ext <<_ACEOF
20609 #line 20609 "configure"
20610 #include "confdefs.h"
20611 $ac_includes_default
20615 if ((intptr_t *) 0)
20617 if (sizeof (intptr_t))
20623 rm -f conftest.$ac_objext
20624 if { (eval echo "$as_me:20624: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>&5
20627 echo "$as_me:20627: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:20630: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:20633: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_type_intptr_t=yes
20637 echo "$as_me: failed program was:" >&5
20638 cat conftest.$ac_ext >&5
20639 ac_cv_type_intptr_t=no
20641 rm -f conftest.$ac_objext conftest.$ac_ext
20643 echo "$as_me:20643: result: $ac_cv_type_intptr_t" >&5
20644 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
20645 if test $ac_cv_type_intptr_t = yes; then
20649 cat >>confdefs.h <<EOF
20650 #define intptr_t long
20655 echo "$as_me:20655: checking for ssize_t" >&5
20656 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
20657 if test "${ac_cv_type_ssize_t+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 cat >conftest.$ac_ext <<_ACEOF
20661 #line 20661 "configure"
20662 #include "confdefs.h"
20663 $ac_includes_default
20669 if (sizeof (ssize_t))
20675 rm -f conftest.$ac_objext
20676 if { (eval echo "$as_me:20676: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>&5
20679 echo "$as_me:20679: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -s conftest.$ac_objext'
20682 { (eval echo "$as_me:20682: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20685 echo "$as_me:20685: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 ac_cv_type_ssize_t=yes
20689 echo "$as_me: failed program was:" >&5
20690 cat conftest.$ac_ext >&5
20691 ac_cv_type_ssize_t=no
20693 rm -f conftest.$ac_objext conftest.$ac_ext
20695 echo "$as_me:20695: result: $ac_cv_type_ssize_t" >&5
20696 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
20697 if test $ac_cv_type_ssize_t = yes; then
20701 cat >>confdefs.h <<EOF
20702 #define ssize_t int
20707 echo "$as_me:20707: checking for type sigaction_t" >&5
20708 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
20709 if test "${cf_cv_type_sigaction+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 cat >conftest.$ac_ext <<_ACEOF
20714 #line 20714 "configure"
20715 #include "confdefs.h"
20717 #include <signal.h>
20726 rm -f conftest.$ac_objext
20727 if { (eval echo "$as_me:20727: \"$ac_compile\"") >&5
20728 (eval $ac_compile) 2>&5
20730 echo "$as_me:20730: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -s conftest.$ac_objext'
20733 { (eval echo "$as_me:20733: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:20736: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 cf_cv_type_sigaction=yes
20740 echo "$as_me: failed program was:" >&5
20741 cat conftest.$ac_ext >&5
20742 cf_cv_type_sigaction=no
20744 rm -f conftest.$ac_objext conftest.$ac_ext
20747 echo "$as_me:20747: result: $cf_cv_type_sigaction" >&5
20748 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
20749 test "$cf_cv_type_sigaction" = yes &&
20750 cat >>confdefs.h <<\EOF
20751 #define HAVE_TYPE_SIGACTION 1
20754 echo "$as_me:20754: checking declaration of size-change" >&5
20755 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
20756 if test "${cf_cv_sizechange+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 cf_cv_sizechange=unknown
20761 cf_save_CPPFLAGS="$CPPFLAGS"
20763 for cf_opts in "" "NEED_PTEM_H"
20766 CPPFLAGS="$cf_save_CPPFLAGS"
20767 if test -n "$cf_opts"
20770 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20771 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
20774 cat >conftest.$ac_ext <<_ACEOF
20775 #line 20775 "configure"
20776 #include "confdefs.h"
20777 #include <sys/types.h>
20778 #ifdef HAVE_TERMIOS_H
20779 #include <termios.h>
20781 #ifdef HAVE_TERMIO_H
20782 #include <termio.h>
20787 /* This is a workaround for SCO: they neglected to define struct winsize in
20788 * termios.h -- it's only in termio.h and ptem.h
20790 #include <sys/stream.h>
20791 #include <sys/ptem.h>
20794 #ifdef HAVE_SYS_IOCTL_H
20795 #include <sys/ioctl.h>
20803 struct ttysize win; /* SunOS 3.0... */
20804 int y = win.ts_lines;
20805 int x = win.ts_cols;
20808 struct winsize win; /* everything else */
20809 int y = win.ws_row;
20810 int x = win.ws_col;
20812 no TIOCGSIZE or TIOCGWINSZ
20813 #endif /* TIOCGWINSZ */
20814 #endif /* TIOCGSIZE */
20820 rm -f conftest.$ac_objext
20821 if { (eval echo "$as_me:20821: \"$ac_compile\"") >&5
20822 (eval $ac_compile) 2>&5
20824 echo "$as_me:20824: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:20827: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:20830: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 cf_cv_sizechange=yes
20834 echo "$as_me: failed program was:" >&5
20835 cat conftest.$ac_ext >&5
20836 cf_cv_sizechange=no
20838 rm -f conftest.$ac_objext conftest.$ac_ext
20840 CPPFLAGS="$cf_save_CPPFLAGS"
20841 if test "$cf_cv_sizechange" = yes ; then
20842 echo "size-change succeeded ($cf_opts)" >&5
20843 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
20849 echo "$as_me:20849: result: $cf_cv_sizechange" >&5
20850 echo "${ECHO_T}$cf_cv_sizechange" >&6
20851 if test "$cf_cv_sizechange" != no ; then
20853 cat >>confdefs.h <<\EOF
20854 #define HAVE_SIZECHANGE 1
20857 case $cf_cv_sizechange in
20859 cat >>confdefs.h <<EOF
20860 #define $cf_cv_sizechange 1
20867 echo "$as_me:20867: checking for memmove" >&5
20868 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20869 if test "${ac_cv_func_memmove+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 cat >conftest.$ac_ext <<_ACEOF
20873 #line 20873 "configure"
20874 #include "confdefs.h"
20875 #define memmove autoconf_temporary
20876 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20883 /* We use char because int might match the return type of a gcc2
20884 builtin and then its argument prototype would still apply. */
20885 char memmove (void);
20891 /* The GNU C library defines stubs for functions which it implements
20892 to always fail with ENOSYS. Some functions are actually named
20893 something starting with __ and the normal name is an alias. */
20894 #if defined (__stub_memmove) || defined (__stub___memmove)
20895 #error found stub for memmove
20903 rm -f conftest.$ac_objext conftest$ac_exeext
20904 if { (eval echo "$as_me:20904: \"$ac_link\"") >&5
20905 (eval $ac_link) 2>&5
20907 echo "$as_me:20907: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try='test -s conftest$ac_exeext'
20910 { (eval echo "$as_me:20910: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20913 echo "$as_me:20913: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_func_memmove=yes
20917 echo "$as_me: failed program was:" >&5
20918 cat conftest.$ac_ext >&5
20919 ac_cv_func_memmove=no
20921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20923 echo "$as_me:20923: result: $ac_cv_func_memmove" >&5
20924 echo "${ECHO_T}$ac_cv_func_memmove" >&6
20925 if test $ac_cv_func_memmove = yes; then
20929 echo "$as_me:20929: checking for bcopy" >&5
20930 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
20931 if test "${ac_cv_func_bcopy+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 cat >conftest.$ac_ext <<_ACEOF
20935 #line 20935 "configure"
20936 #include "confdefs.h"
20937 #define bcopy autoconf_temporary
20938 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20945 /* We use char because int might match the return type of a gcc2
20946 builtin and then its argument prototype would still apply. */
20953 /* The GNU C library defines stubs for functions which it implements
20954 to always fail with ENOSYS. Some functions are actually named
20955 something starting with __ and the normal name is an alias. */
20956 #if defined (__stub_bcopy) || defined (__stub___bcopy)
20957 #error found stub for bcopy
20965 rm -f conftest.$ac_objext conftest$ac_exeext
20966 if { (eval echo "$as_me:20966: \"$ac_link\"") >&5
20967 (eval $ac_link) 2>&5
20969 echo "$as_me:20969: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -s conftest$ac_exeext'
20972 { (eval echo "$as_me:20972: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20975 echo "$as_me:20975: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
20977 ac_cv_func_bcopy=yes
20979 echo "$as_me: failed program was:" >&5
20980 cat conftest.$ac_ext >&5
20981 ac_cv_func_bcopy=no
20983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20985 echo "$as_me:20985: result: $ac_cv_func_bcopy" >&5
20986 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
20987 if test $ac_cv_func_bcopy = yes; then
20989 echo "$as_me:20989: checking if bcopy does overlapping moves" >&5
20990 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
20991 if test "${cf_cv_good_bcopy+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 if test "$cross_compiling" = yes; then
20996 cf_cv_good_bcopy=unknown
20998 cat >conftest.$ac_ext <<_ACEOF
20999 #line 20999 "configure"
21000 #include "confdefs.h"
21003 static char data[] = "abcdefghijklmnopqrstuwwxyz";
21005 bcopy(data, temp, sizeof(data));
21006 bcopy(temp+10, temp, 15);
21007 bcopy(temp+5, temp+15, 10);
21008 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
21012 rm -f conftest$ac_exeext
21013 if { (eval echo "$as_me:21013: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>&5
21016 echo "$as_me:21016: \$? = $ac_status" >&5
21017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21018 { (eval echo "$as_me:21018: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:21021: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 cf_cv_good_bcopy=yes
21025 echo "$as_me: program exited with status $ac_status" >&5
21026 echo "$as_me: failed program was:" >&5
21027 cat conftest.$ac_ext >&5
21028 cf_cv_good_bcopy=no
21030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21034 echo "$as_me:21034: result: $cf_cv_good_bcopy" >&5
21035 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
21038 cf_cv_good_bcopy=no
21041 if test "$cf_cv_good_bcopy" = yes ; then
21043 cat >>confdefs.h <<\EOF
21044 #define USE_OK_BCOPY 1
21049 cat >>confdefs.h <<\EOF
21050 #define USE_MY_MEMMOVE 1
21057 tty 2>&1 >/dev/null || {
21058 for ac_func in posix_openpt
21060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21061 echo "$as_me:21061: checking for $ac_func" >&5
21062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21063 if eval "test \"\${$as_ac_var+set}\" = set"; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 cat >conftest.$ac_ext <<_ACEOF
21067 #line 21067 "configure"
21068 #include "confdefs.h"
21069 #define $ac_func autoconf_temporary
21070 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21077 /* We use char because int might match the return type of a gcc2
21078 builtin and then its argument prototype would still apply. */
21079 char $ac_func (void);
21085 /* The GNU C library defines stubs for functions which it implements
21086 to always fail with ENOSYS. Some functions are actually named
21087 something starting with __ and the normal name is an alias. */
21088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21089 #error found stub for $ac_func
21092 return $ac_func ();
21097 rm -f conftest.$ac_objext conftest$ac_exeext
21098 if { (eval echo "$as_me:21098: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>&5
21101 echo "$as_me:21101: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -s conftest$ac_exeext'
21104 { (eval echo "$as_me:21104: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:21107: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 eval "$as_ac_var=yes"
21111 echo "$as_me: failed program was:" >&5
21112 cat conftest.$ac_ext >&5
21113 eval "$as_ac_var=no"
21115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21117 echo "$as_me:21117: result: `eval echo '${'$as_ac_var'}'`" >&5
21118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21119 if test `eval echo '${'$as_ac_var'}'` = yes; then
21120 cat >>confdefs.h <<EOF
21121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21127 echo "$as_me:21127: checking if poll really works" >&5
21128 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
21129 if test "${cf_cv_working_poll+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 if test "$cross_compiling" = yes; then
21134 cf_cv_working_poll=unknown
21136 cat >conftest.$ac_ext <<_ACEOF
21137 #line 21137 "configure"
21138 #include "confdefs.h"
21140 #include <stdlib.h>
21142 #include <unistd.h>
21147 #include <sys/poll.h>
21150 struct pollfd myfds;
21153 /* check for Darwin bug with respect to "devices" */
21154 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
21157 myfds.events = POLLIN;
21160 ret = poll(&myfds, 1, 100);
21162 if (ret < 0 || (myfds.revents & POLLNVAL)) {
21167 fd = open("/dev/tty", 2); /* O_RDWR */
21169 #ifdef HAVE_POSIX_OPENPT
21171 fd = posix_openpt(O_RDWR);
21176 /* also check with standard input */
21178 myfds.events = POLLIN;
21180 ret = poll(&myfds, 1, 100);
21185 ${cf_cv_main_return:-return}(ret < 0);
21188 rm -f conftest$ac_exeext
21189 if { (eval echo "$as_me:21189: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>&5
21192 echo "$as_me:21192: \$? = $ac_status" >&5
21193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21194 { (eval echo "$as_me:21194: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:21197: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 cf_cv_working_poll=yes
21201 echo "$as_me: program exited with status $ac_status" >&5
21202 echo "$as_me: failed program was:" >&5
21203 cat conftest.$ac_ext >&5
21204 cf_cv_working_poll=no
21206 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21209 echo "$as_me:21209: result: $cf_cv_working_poll" >&5
21210 echo "${ECHO_T}$cf_cv_working_poll" >&6
21211 test "$cf_cv_working_poll" = "yes" &&
21212 cat >>confdefs.h <<\EOF
21213 #define HAVE_WORKING_POLL 1
21216 echo "$as_me:21216: checking for va_copy" >&5
21217 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21218 if test "${cf_cv_have_va_copy+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 cat >conftest.$ac_ext <<_ACEOF
21223 #line 21223 "configure"
21224 #include "confdefs.h"
21226 #include <stdarg.h>
21232 static va_list dst;
21233 static va_list src;
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (eval echo "$as_me:21240: \"$ac_link\"") >&5
21241 (eval $ac_link) 2>&5
21243 echo "$as_me:21243: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -s conftest$ac_exeext'
21246 { (eval echo "$as_me:21246: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:21249: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 cf_cv_have_va_copy=yes
21253 echo "$as_me: failed program was:" >&5
21254 cat conftest.$ac_ext >&5
21255 cf_cv_have_va_copy=no
21257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21259 echo "$as_me:21259: result: $cf_cv_have_va_copy" >&5
21260 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
21262 if test "$cf_cv_have_va_copy" = yes;
21265 cat >>confdefs.h <<\EOF
21266 #define HAVE_VA_COPY 1
21269 else # !cf_cv_have_va_copy
21271 echo "$as_me:21271: checking for __va_copy" >&5
21272 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
21273 if test "${cf_cv_have___va_copy+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 cat >conftest.$ac_ext <<_ACEOF
21278 #line 21278 "configure"
21279 #include "confdefs.h"
21281 #include <stdarg.h>
21287 static va_list dst;
21288 static va_list src;
21289 __va_copy(dst, src)
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (eval echo "$as_me:21295: \"$ac_link\"") >&5
21296 (eval $ac_link) 2>&5
21298 echo "$as_me:21298: \$? = $ac_status" >&5
21299 (exit $ac_status); } &&
21300 { ac_try='test -s conftest$ac_exeext'
21301 { (eval echo "$as_me:21301: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:21304: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 cf_cv_have___va_copy=yes
21308 echo "$as_me: failed program was:" >&5
21309 cat conftest.$ac_ext >&5
21310 cf_cv_have___va_copy=no
21312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21314 echo "$as_me:21314: result: $cf_cv_have___va_copy" >&5
21315 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
21317 if test "$cf_cv_have___va_copy" = yes
21320 cat >>confdefs.h <<\EOF
21321 #define HAVE___VA_COPY 1
21324 else # !cf_cv_have___va_copy
21326 echo "$as_me:21326: checking for __builtin_va_copy" >&5
21327 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
21328 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 cat >conftest.$ac_ext <<_ACEOF
21333 #line 21333 "configure"
21334 #include "confdefs.h"
21336 #include <stdarg.h>
21342 static va_list dst;
21343 static va_list src;
21344 __builtin_va_copy(dst, src)
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (eval echo "$as_me:21350: \"$ac_link\"") >&5
21351 (eval $ac_link) 2>&5
21353 echo "$as_me:21353: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -s conftest$ac_exeext'
21356 { (eval echo "$as_me:21356: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21359 echo "$as_me:21359: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 cf_cv_have___builtin_va_copy=yes
21363 echo "$as_me: failed program was:" >&5
21364 cat conftest.$ac_ext >&5
21365 cf_cv_have___builtin_va_copy=no
21367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21369 echo "$as_me:21369: result: $cf_cv_have___builtin_va_copy" >&5
21370 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
21372 test "$cf_cv_have___builtin_va_copy" = yes &&
21374 cat >>confdefs.h <<\EOF
21375 #define HAVE___BUILTIN_VA_COPY 1
21378 fi # cf_cv_have___va_copy
21380 fi # cf_cv_have_va_copy
21382 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
21387 echo "$as_me:21387: checking if we can simply copy va_list" >&5
21388 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
21389 if test "${cf_cv_pointer_va_list+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 cat >conftest.$ac_ext <<_ACEOF
21394 #line 21394 "configure"
21395 #include "confdefs.h"
21397 #include <stdarg.h>
21410 rm -f conftest.$ac_objext conftest$ac_exeext
21411 if { (eval echo "$as_me:21411: \"$ac_link\"") >&5
21412 (eval $ac_link) 2>&5
21414 echo "$as_me:21414: \$? = $ac_status" >&5
21415 (exit $ac_status); } &&
21416 { ac_try='test -s conftest$ac_exeext'
21417 { (eval echo "$as_me:21417: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:21420: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 cf_cv_pointer_va_list=yes
21424 echo "$as_me: failed program was:" >&5
21425 cat conftest.$ac_ext >&5
21426 cf_cv_pointer_va_list=no
21428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21430 echo "$as_me:21430: result: $cf_cv_pointer_va_list" >&5
21431 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
21433 if test "$cf_cv_pointer_va_list" = no
21435 echo "$as_me:21435: checking if we can copy va_list indirectly" >&5
21436 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
21437 if test "${cf_cv_array_va_list+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21442 #line 21442 "configure"
21443 #include "confdefs.h"
21445 #include <stdarg.h>
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (eval echo "$as_me:21459: \"$ac_link\"") >&5
21460 (eval $ac_link) 2>&5
21462 echo "$as_me:21462: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
21464 { ac_try='test -s conftest$ac_exeext'
21465 { (eval echo "$as_me:21465: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 echo "$as_me:21468: \$? = $ac_status" >&5
21469 (exit $ac_status); }; }; then
21470 cf_cv_array_va_list=yes
21472 echo "$as_me: failed program was:" >&5
21473 cat conftest.$ac_ext >&5
21474 cf_cv_array_va_list=no
21476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21478 echo "$as_me:21478: result: $cf_cv_array_va_list" >&5
21479 echo "${ECHO_T}$cf_cv_array_va_list" >&6
21480 test "$cf_cv_array_va_list" = yes &&
21481 cat >>confdefs.h <<\EOF
21482 #define ARRAY_VA_LIST 1
21489 echo "$as_me:21489: checking for pid_t" >&5
21490 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21491 if test "${ac_cv_type_pid_t+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 cat >conftest.$ac_ext <<_ACEOF
21495 #line 21495 "configure"
21496 #include "confdefs.h"
21497 $ac_includes_default
21503 if (sizeof (pid_t))
21509 rm -f conftest.$ac_objext
21510 if { (eval echo "$as_me:21510: \"$ac_compile\"") >&5
21511 (eval $ac_compile) 2>&5
21513 echo "$as_me:21513: \$? = $ac_status" >&5
21514 (exit $ac_status); } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (eval echo "$as_me:21516: \"$ac_try\"") >&5
21517 (eval $ac_try) 2>&5
21519 echo "$as_me:21519: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21521 ac_cv_type_pid_t=yes
21523 echo "$as_me: failed program was:" >&5
21524 cat conftest.$ac_ext >&5
21525 ac_cv_type_pid_t=no
21527 rm -f conftest.$ac_objext conftest.$ac_ext
21529 echo "$as_me:21529: result: $ac_cv_type_pid_t" >&5
21530 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21531 if test $ac_cv_type_pid_t = yes; then
21535 cat >>confdefs.h <<EOF
21541 for ac_header in unistd.h vfork.h
21543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544 echo "$as_me:21544: checking for $ac_header" >&5
21545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21550 #line 21550 "configure"
21551 #include "confdefs.h"
21552 #include <$ac_header>
21554 if { (eval echo "$as_me:21554: \"$ac_cpp conftest.$ac_ext\"") >&5
21555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21557 egrep -v '^ *\+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 echo "$as_me:21560: \$? = $ac_status" >&5
21561 (exit $ac_status); } >/dev/null; then
21562 if test -s conftest.err; then
21563 ac_cpp_err=$ac_c_preproc_warn_flag
21570 if test -z "$ac_cpp_err"; then
21571 eval "$as_ac_Header=yes"
21573 echo "$as_me: failed program was:" >&5
21574 cat conftest.$ac_ext >&5
21575 eval "$as_ac_Header=no"
21577 rm -f conftest.err conftest.$ac_ext
21579 echo "$as_me:21579: result: `eval echo '${'$as_ac_Header'}'`" >&5
21580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21582 cat >>confdefs.h <<EOF
21583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21589 for ac_func in fork vfork
21591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21592 echo "$as_me:21592: checking for $ac_func" >&5
21593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21594 if eval "test \"\${$as_ac_var+set}\" = set"; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 cat >conftest.$ac_ext <<_ACEOF
21598 #line 21598 "configure"
21599 #include "confdefs.h"
21600 #define $ac_func autoconf_temporary
21601 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21608 /* We use char because int might match the return type of a gcc2
21609 builtin and then its argument prototype would still apply. */
21610 char $ac_func (void);
21616 /* The GNU C library defines stubs for functions which it implements
21617 to always fail with ENOSYS. Some functions are actually named
21618 something starting with __ and the normal name is an alias. */
21619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21620 #error found stub for $ac_func
21623 return $ac_func ();
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (eval echo "$as_me:21629: \"$ac_link\"") >&5
21630 (eval $ac_link) 2>&5
21632 echo "$as_me:21632: \$? = $ac_status" >&5
21633 (exit $ac_status); } &&
21634 { ac_try='test -s conftest$ac_exeext'
21635 { (eval echo "$as_me:21635: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:21638: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 eval "$as_ac_var=yes"
21642 echo "$as_me: failed program was:" >&5
21643 cat conftest.$ac_ext >&5
21644 eval "$as_ac_var=no"
21646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21648 echo "$as_me:21648: result: `eval echo '${'$as_ac_var'}'`" >&5
21649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21650 if test `eval echo '${'$as_ac_var'}'` = yes; then
21651 cat >>confdefs.h <<EOF
21652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21658 ac_cv_func_fork_works=$ac_cv_func_fork
21659 if test "x$ac_cv_func_fork" = xyes; then
21660 echo "$as_me:21660: checking for working fork" >&5
21661 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21662 if test "${ac_cv_func_fork_works+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 if test "$cross_compiling" = yes; then
21666 ac_cv_func_fork_works=cross
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* By Rüdiger Kuhlmann. */
21670 #include <sys/types.h>
21672 # include <unistd.h>
21674 /* Some systems only have a dummy stub for fork() */
21678 $ac_main_return (1);
21679 $ac_main_return (0);
21682 rm -f conftest$ac_exeext
21683 if { (eval echo "$as_me:21683: \"$ac_link\"") >&5
21684 (eval $ac_link) 2>&5
21686 echo "$as_me:21686: \$? = $ac_status" >&5
21687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688 { (eval echo "$as_me:21688: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21691 echo "$as_me:21691: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_cv_func_fork_works=yes
21695 echo "$as_me: program exited with status $ac_status" >&5
21696 echo "$as_me: failed program was:" >&5
21697 cat conftest.$ac_ext >&5
21698 ac_cv_func_fork_works=no
21700 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 echo "$as_me:21703: result: $ac_cv_func_fork_works" >&5
21704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21707 if test "x$ac_cv_func_fork_works" = xcross; then
21709 *-*-amigaos* | *-*-msdosdjgpp*)
21710 # Override, as these systems have only a dummy fork() stub
21711 ac_cv_func_fork_works=no
21714 ac_cv_func_fork_works=yes
21717 { echo "$as_me:21717: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
21718 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
21720 ac_cv_func_vfork_works=$ac_cv_func_vfork
21721 if test "x$ac_cv_func_vfork" = xyes; then
21722 echo "$as_me:21722: checking for working vfork" >&5
21723 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21724 if test "${ac_cv_func_vfork_works+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 if test "$cross_compiling" = yes; then
21728 ac_cv_func_vfork_works=cross
21730 cat >conftest.$ac_ext <<_ACEOF
21731 #line 21731 "configure"
21732 #include "confdefs.h"
21733 /* Thanks to Paul Eggert for this test. */
21735 #include <sys/types.h>
21736 #include <sys/stat.h>
21738 # include <unistd.h>
21741 # include <vfork.h>
21743 /* On some sparc systems, changes by the child to local and incoming
21744 argument registers are propagated back to the parent. The compiler
21745 is told about this with #include <vfork.h>, but some compilers
21746 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21747 static variable whose address is put into a register that is
21748 clobbered by the vfork. */
21751 sparc_address_test (int arg)
21753 sparc_address_test (arg) int arg;
21756 static pid_t child;
21774 pid_t parent = getpid ();
21777 sparc_address_test ();
21782 /* Here is another test for sparc vfork register problems. This
21783 test uses lots of local variables, at least as many local
21784 variables as main has allocated so far including compiler
21785 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21786 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21787 reuse the register of parent for one of the local variables,
21788 since it will think that parent can't possibly be used any more
21789 in this routine. Assigning to the local variable will thus
21790 munge parent in the parent process. */
21792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21794 /* Convince the compiler that p..p7 are live; otherwise, it might
21795 use the same hardware register for all 8 local variables. */
21796 if (p != p1 || p != p2 || p != p3 || p != p4
21797 || p != p5 || p != p6 || p != p7)
21800 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21801 from child file descriptors. If the child closes a descriptor
21802 before it execs or exits, this munges the parent's descriptor
21803 as well. Test for this by closing stdout in the child. */
21804 _exit(close(fileno(stdout)) != 0);
21809 while (wait(&status) != child)
21812 /* Was there some problem with vforking? */
21815 /* Did the child fail? (This shouldn't happen.) */
21818 /* Did the vfork/compiler bug occur? */
21819 || parent != getpid()
21821 /* Did the file descriptor bug occur? */
21822 || fstat(fileno(stdout), &st) != 0
21827 rm -f conftest$ac_exeext
21828 if { (eval echo "$as_me:21828: \"$ac_link\"") >&5
21829 (eval $ac_link) 2>&5
21831 echo "$as_me:21831: \$? = $ac_status" >&5
21832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21833 { (eval echo "$as_me:21833: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21836 echo "$as_me:21836: \$? = $ac_status" >&5
21837 (exit $ac_status); }; }; then
21838 ac_cv_func_vfork_works=yes
21840 echo "$as_me: program exited with status $ac_status" >&5
21841 echo "$as_me: failed program was:" >&5
21842 cat conftest.$ac_ext >&5
21843 ac_cv_func_vfork_works=no
21845 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21848 echo "$as_me:21848: result: $ac_cv_func_vfork_works" >&5
21849 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21852 if test "x$ac_cv_func_fork_works" = xcross; then
21853 ac_cv_func_vfork_works=ac_cv_func_vfork
21854 { echo "$as_me:21854: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
21855 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
21858 if test "x$ac_cv_func_vfork_works" = xyes; then
21860 cat >>confdefs.h <<\EOF
21861 #define HAVE_WORKING_VFORK 1
21866 cat >>confdefs.h <<\EOF
21871 if test "x$ac_cv_func_fork_works" = xyes; then
21873 cat >>confdefs.h <<\EOF
21874 #define HAVE_WORKING_FORK 1
21879 echo "$as_me:21879: checking if fopen accepts explicit binary mode" >&5
21880 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
21881 if test "${cf_cv_fopen_bin_r+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 if test "$cross_compiling" = yes; then
21886 cf_cv_fopen_bin_r=unknown
21888 cat >conftest.$ac_ext <<_ACEOF
21889 #line 21889 "configure"
21890 #include "confdefs.h"
21894 FILE *fp = fopen("conftest.tmp", "wb");
21898 for (p = 0; p < 256; ++p) {
21902 fp = fopen("conftest.tmp", "rb");
21904 for (p = 0; p < 256; ++p) {
21917 ${cf_cv_main_return:-return} (rc);
21921 rm -f conftest$ac_exeext
21922 if { (eval echo "$as_me:21922: \"$ac_link\"") >&5
21923 (eval $ac_link) 2>&5
21925 echo "$as_me:21925: \$? = $ac_status" >&5
21926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21927 { (eval echo "$as_me:21927: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:21930: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 cf_cv_fopen_bin_r=yes
21934 echo "$as_me: program exited with status $ac_status" >&5
21935 echo "$as_me: failed program was:" >&5
21936 cat conftest.$ac_ext >&5
21937 cf_cv_fopen_bin_r=no
21939 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21943 echo "$as_me:21943: result: $cf_cv_fopen_bin_r" >&5
21944 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
21945 test "x$cf_cv_fopen_bin_r" != xno && cat >>confdefs.h <<\EOF
21946 #define USE_FOPEN_BIN_R 1
21949 # special check for test/ditto.c
21951 echo "$as_me:21951: checking for openpty in -lutil" >&5
21952 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
21953 if test "${ac_cv_lib_util_openpty+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 ac_check_lib_save_LIBS=$LIBS
21957 LIBS="-lutil $LIBS"
21958 cat >conftest.$ac_ext <<_ACEOF
21959 #line 21959 "configure"
21960 #include "confdefs.h"
21962 /* Override any gcc2 internal prototype to avoid an error. */
21966 /* We use char because int might match the return type of a gcc2
21967 builtin and then its argument prototype would still apply. */
21977 rm -f conftest.$ac_objext conftest$ac_exeext
21978 if { (eval echo "$as_me:21978: \"$ac_link\"") >&5
21979 (eval $ac_link) 2>&5
21981 echo "$as_me:21981: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
21983 { ac_try='test -s conftest$ac_exeext'
21984 { (eval echo "$as_me:21984: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:21987: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21989 ac_cv_lib_util_openpty=yes
21991 echo "$as_me: failed program was:" >&5
21992 cat conftest.$ac_ext >&5
21993 ac_cv_lib_util_openpty=no
21995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21996 LIBS=$ac_check_lib_save_LIBS
21998 echo "$as_me:21998: result: $ac_cv_lib_util_openpty" >&5
21999 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
22000 if test $ac_cv_lib_util_openpty = yes; then
22006 echo "$as_me:22006: checking for openpty header" >&5
22007 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
22008 if test "${cf_cv_func_openpty+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 cf_save_LIBS="$LIBS"
22013 test $cf_cv_lib_util = yes && {
22014 cf_add_libs="-lutil"
22015 # Filter out duplicates - this happens with badly-designed ".pc" files...
22016 for cf_add_1lib in $LIBS
22018 for cf_add_2lib in $cf_add_libs
22020 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22026 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22028 LIBS="$cf_add_libs"
22030 for cf_header in pty.h libutil.h util.h
22032 cat >conftest.$ac_ext <<_ACEOF
22033 #line 22033 "configure"
22034 #include "confdefs.h"
22036 #include <$cf_header>
22042 int x = openpty((int *)0, (int *)0, (char *)0,
22043 (struct termios *)0, (struct winsize *)0);
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (eval echo "$as_me:22050: \"$ac_link\"") >&5
22051 (eval $ac_link) 2>&5
22053 echo "$as_me:22053: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -s conftest$ac_exeext'
22056 { (eval echo "$as_me:22056: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 echo "$as_me:22059: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22062 cf_cv_func_openpty=$cf_header
22066 echo "$as_me: failed program was:" >&5
22067 cat conftest.$ac_ext >&5
22069 cf_cv_func_openpty=no
22072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22074 LIBS="$cf_save_LIBS"
22077 echo "$as_me:22077: result: $cf_cv_func_openpty" >&5
22078 echo "${ECHO_T}$cf_cv_func_openpty" >&6
22080 if test "$cf_cv_func_openpty" != no ; then
22082 cat >>confdefs.h <<EOF
22083 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
22086 cat >>confdefs.h <<\EOF
22087 #define USE_XTERM_PTY 1
22090 if test "x$cf_cv_lib_util" = xyes ; then
22092 cf_add_libs="-lutil"
22093 # Filter out duplicates - this happens with badly-designed ".pc" files...
22094 for cf_add_1lib in $TEST_LIBS
22096 for cf_add_2lib in $cf_add_libs
22098 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22104 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22106 TEST_LIBS="$cf_add_libs"
22111 if test "$with_hashed_db" != no ; then
22113 cat >>confdefs.h <<\EOF
22114 #define USE_HASHED_DB 1
22117 case $with_hashed_db in
22121 if test -d "$with_hashed_db" ; then
22123 if test -n "$with_hashed_db/include" ; then
22124 for cf_add_incdir in $with_hashed_db/include
22126 while test $cf_add_incdir != /usr/include
22128 if test -d $cf_add_incdir
22131 if test -n "$CFLAGS$CPPFLAGS" ; then
22132 # a loop is needed to ensure we can add subdirs of existing dirs
22133 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22134 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22135 cf_have_incdir=yes; break
22140 if test "$cf_have_incdir" = no ; then
22141 if test "$cf_add_incdir" = /usr/local/include ; then
22142 if test "$GCC" = yes
22144 cf_save_CPPFLAGS=$CPPFLAGS
22146 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22147 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22149 cat >conftest.$ac_ext <<_ACEOF
22150 #line 22150 "configure"
22151 #include "confdefs.h"
22161 rm -f conftest.$ac_objext
22162 if { (eval echo "$as_me:22162: \"$ac_compile\"") >&5
22163 (eval $ac_compile) 2>&5
22165 echo "$as_me:22165: \$? = $ac_status" >&5
22166 (exit $ac_status); } &&
22167 { ac_try='test -s conftest.$ac_objext'
22168 { (eval echo "$as_me:22168: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22171 echo "$as_me:22171: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22175 echo "$as_me: failed program was:" >&5
22176 cat conftest.$ac_ext >&5
22179 rm -f conftest.$ac_objext conftest.$ac_ext
22180 CPPFLAGS=$cf_save_CPPFLAGS
22185 if test "$cf_have_incdir" = no ; then
22186 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22188 echo "${as_me:-configure}:22188: testing adding $cf_add_incdir to include-path ..." 1>&5
22190 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22192 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22193 test "$cf_top_incdir" = "$cf_add_incdir" && break
22194 cf_add_incdir="$cf_top_incdir"
22205 if test -n "$with_hashed_db/lib" ; then
22206 for cf_add_libdir in $with_hashed_db/lib
22208 if test $cf_add_libdir = /usr/lib ; then
22210 elif test -d $cf_add_libdir
22213 if test -n "$LDFLAGS$LIBS" ; then
22214 # a loop is needed to ensure we can add subdirs of existing dirs
22215 for cf_test_libdir in $LDFLAGS $LIBS ; do
22216 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22217 cf_have_libdir=yes; break
22221 if test "$cf_have_libdir" = no ; then
22222 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22224 echo "${as_me:-configure}:22224: testing adding $cf_add_libdir to library-path ..." 1>&5
22226 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22233 case "$with_hashed_db" in
22235 { echo "$as_me:22235: WARNING: no such directory $with_hashed_db" >&5
22236 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
22242 test "x$prefix" != "xNONE" && \
22243 test -d "$prefix" && \
22245 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
22246 test -d $prefix/include && cf_search="$cf_search $prefix/include"
22247 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
22248 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
22249 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
22250 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
22253 for cf_subdir_prefix in \
22262 test "x$cf_subdir_prefix" != "x$prefix" && \
22263 test -d "$cf_subdir_prefix" && \
22264 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22265 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
22266 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
22267 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
22268 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
22269 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
22270 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"
22275 for cf_item in $cf_search
22278 (*/$with_hashed_db)
22280 if test -n "$cf_item" ; then
22281 for cf_add_incdir in $cf_item
22283 while test $cf_add_incdir != /usr/include
22285 if test -d $cf_add_incdir
22288 if test -n "$CFLAGS$CPPFLAGS" ; then
22289 # a loop is needed to ensure we can add subdirs of existing dirs
22290 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22291 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22292 cf_have_incdir=yes; break
22297 if test "$cf_have_incdir" = no ; then
22298 if test "$cf_add_incdir" = /usr/local/include ; then
22299 if test "$GCC" = yes
22301 cf_save_CPPFLAGS=$CPPFLAGS
22303 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22304 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22306 cat >conftest.$ac_ext <<_ACEOF
22307 #line 22307 "configure"
22308 #include "confdefs.h"
22318 rm -f conftest.$ac_objext
22319 if { (eval echo "$as_me:22319: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>&5
22322 echo "$as_me:22322: \$? = $ac_status" >&5
22323 (exit $ac_status); } &&
22324 { ac_try='test -s conftest.$ac_objext'
22325 { (eval echo "$as_me:22325: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:22328: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22332 echo "$as_me: failed program was:" >&5
22333 cat conftest.$ac_ext >&5
22336 rm -f conftest.$ac_objext conftest.$ac_ext
22337 CPPFLAGS=$cf_save_CPPFLAGS
22342 if test "$cf_have_incdir" = no ; then
22343 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22345 echo "${as_me:-configure}:22345: testing adding $cf_add_incdir to include-path ..." 1>&5
22347 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22349 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22350 test "$cf_top_incdir" = "$cf_add_incdir" && break
22351 cf_add_incdir="$cf_top_incdir"
22368 test "x$prefix" != "xNONE" && \
22369 test -d "$prefix" && \
22371 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
22372 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
22373 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
22374 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
22375 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
22376 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
22379 for cf_subdir_prefix in \
22388 test "x$cf_subdir_prefix" != "x$prefix" && \
22389 test -d "$cf_subdir_prefix" && \
22390 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22391 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
22392 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
22393 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
22394 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
22395 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
22396 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"
22401 for cf_item in $cf_search
22404 (*/$with_hashed_db)
22406 if test -n "$cf_item" ; then
22407 for cf_add_libdir in $cf_item
22409 if test $cf_add_libdir = /usr/lib ; then
22411 elif test -d $cf_add_libdir
22414 if test -n "$LDFLAGS$LIBS" ; then
22415 # a loop is needed to ensure we can add subdirs of existing dirs
22416 for cf_test_libdir in $LDFLAGS $LIBS ; do
22417 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22418 cf_have_libdir=yes; break
22422 if test "$cf_have_libdir" = no ; then
22423 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22425 echo "${as_me:-configure}:22425: testing adding $cf_add_libdir to library-path ..." 1>&5
22427 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22442 echo "$as_me:22442: checking for db.h" >&5
22443 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
22444 if test "${ac_cv_header_db_h+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 cat >conftest.$ac_ext <<_ACEOF
22448 #line 22448 "configure"
22449 #include "confdefs.h"
22452 if { (eval echo "$as_me:22452: \"$ac_cpp conftest.$ac_ext\"") >&5
22453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22455 egrep -v '^ *\+' conftest.er1 >conftest.err
22457 cat conftest.err >&5
22458 echo "$as_me:22458: \$? = $ac_status" >&5
22459 (exit $ac_status); } >/dev/null; then
22460 if test -s conftest.err; then
22461 ac_cpp_err=$ac_c_preproc_warn_flag
22468 if test -z "$ac_cpp_err"; then
22469 ac_cv_header_db_h=yes
22471 echo "$as_me: failed program was:" >&5
22472 cat conftest.$ac_ext >&5
22473 ac_cv_header_db_h=no
22475 rm -f conftest.err conftest.$ac_ext
22477 echo "$as_me:22477: result: $ac_cv_header_db_h" >&5
22478 echo "${ECHO_T}$ac_cv_header_db_h" >&6
22479 if test $ac_cv_header_db_h = yes; then
22481 echo "$as_me:22481: checking for version of db" >&5
22482 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
22483 if test "${cf_cv_hashed_db_version+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 cf_cv_hashed_db_version=unknown
22489 for cf_db_version in 1 2 3 4 5 6
22492 echo "${as_me:-configure}:22492: testing checking for db version $cf_db_version ..." 1>&5
22494 cat >conftest.$ac_ext <<_ACEOF
22495 #line 22495 "configure"
22496 #include "confdefs.h"
22498 $ac_includes_default
22501 #ifdef DB_VERSION_MAJOR
22502 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
22503 #if $cf_db_version == DB_VERSION_MAJOR
22509 #if $cf_db_version == 1
22510 /* ok: assuming this is DB 1.8.5 */
22524 rm -f conftest.$ac_objext
22525 if { (eval echo "$as_me:22525: \"$ac_compile\"") >&5
22526 (eval $ac_compile) 2>&5
22528 echo "$as_me:22528: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -s conftest.$ac_objext'
22531 { (eval echo "$as_me:22531: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22534 echo "$as_me:22534: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22537 cf_cv_hashed_db_version=$cf_db_version
22541 echo "$as_me: failed program was:" >&5
22542 cat conftest.$ac_ext >&5
22544 rm -f conftest.$ac_objext conftest.$ac_ext
22548 echo "$as_me:22548: result: $cf_cv_hashed_db_version" >&5
22549 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
22551 if test "$cf_cv_hashed_db_version" = unknown ; then
22552 { { echo "$as_me:22552: error: Cannot determine version of db" >&5
22553 echo "$as_me: error: Cannot determine version of db" >&2;}
22554 { (exit 1); exit 1; }; }
22557 echo "$as_me:22557: checking for db libraries" >&5
22558 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
22559 if test "${cf_cv_hashed_db_libs+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 cf_cv_hashed_db_libs=unknown
22564 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
22566 cf_save_libs="$LIBS"
22567 if test -n "$cf_db_libs"; then
22569 cf_add_libs="-l$cf_db_libs"
22570 # Filter out duplicates - this happens with badly-designed ".pc" files...
22571 for cf_add_1lib in $LIBS
22573 for cf_add_2lib in $cf_add_libs
22575 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22583 LIBS="$cf_add_libs"
22587 echo "${as_me:-configure}:22587: testing checking for library "$cf_db_libs" ..." 1>&5
22589 cat >conftest.$ac_ext <<_ACEOF
22590 #line 22590 "configure"
22591 #include "confdefs.h"
22593 $ac_includes_default
22600 char *path = "/tmp/foo";
22601 #ifdef DB_VERSION_MAJOR
22602 #if DB_VERSION_MAJOR >= 4
22604 db_create(&result, NULL, 0);
22605 result->open(result,
22612 #elif DB_VERSION_MAJOR >= 3
22614 db_create(&result, NULL, 0);
22615 result->open(result,
22621 #elif DB_VERSION_MAJOR >= 2
22630 #endif /* DB_VERSION_MAJOR */
22632 DB *result = dbopen(path,
22638 ${cf_cv_main_return:-return}(result != 0)
22644 rm -f conftest.$ac_objext conftest$ac_exeext
22645 if { (eval echo "$as_me:22645: \"$ac_link\"") >&5
22646 (eval $ac_link) 2>&5
22648 echo "$as_me:22648: \$? = $ac_status" >&5
22649 (exit $ac_status); } &&
22650 { ac_try='test -s conftest$ac_exeext'
22651 { (eval echo "$as_me:22651: \"$ac_try\"") >&5
22652 (eval $ac_try) 2>&5
22654 echo "$as_me:22654: \$? = $ac_status" >&5
22655 (exit $ac_status); }; }; then
22657 if test -n "$cf_db_libs" ; then
22658 cf_cv_hashed_db_libs=$cf_db_libs
22660 cf_cv_hashed_db_libs=default
22662 LIBS="$cf_save_libs"
22666 echo "$as_me: failed program was:" >&5
22667 cat conftest.$ac_ext >&5
22669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22670 LIBS="$cf_save_libs"
22674 echo "$as_me:22674: result: $cf_cv_hashed_db_libs" >&5
22675 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
22677 if test "$cf_cv_hashed_db_libs" = unknown ; then
22678 { { echo "$as_me:22678: error: Cannot determine library for db" >&5
22679 echo "$as_me: error: Cannot determine library for db" >&2;}
22680 { (exit 1); exit 1; }; }
22681 elif test "$cf_cv_hashed_db_libs" != default ; then
22683 cf_add_libs="-l$cf_cv_hashed_db_libs"
22684 # Filter out duplicates - this happens with badly-designed ".pc" files...
22685 for cf_add_1lib in $LIBS
22687 for cf_add_2lib in $cf_add_libs
22689 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22695 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22697 LIBS="$cf_add_libs"
22704 { { echo "$as_me:22704: error: Cannot find db.h" >&5
22705 echo "$as_me: error: Cannot find db.h" >&2;}
22706 { (exit 1); exit 1; }; }
22712 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
22713 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
22714 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
22717 # Just in case, check if the C compiler has a bool type.
22719 echo "$as_me:22719: checking if we should include stdbool.h" >&5
22720 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
22722 if test "${cf_cv_header_stdbool_h+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 cat >conftest.$ac_ext <<_ACEOF
22727 #line 22727 "configure"
22728 #include "confdefs.h"
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:22739: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>&5
22742 echo "$as_me:22742: \$? = $ac_status" >&5
22743 (exit $ac_status); } &&
22744 { ac_try='test -s conftest.$ac_objext'
22745 { (eval echo "$as_me:22745: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:22748: \$? = $ac_status" >&5
22749 (exit $ac_status); }; }; then
22750 cf_cv_header_stdbool_h=0
22752 echo "$as_me: failed program was:" >&5
22753 cat conftest.$ac_ext >&5
22754 cat >conftest.$ac_ext <<_ACEOF
22755 #line 22755 "configure"
22756 #include "confdefs.h"
22759 #include <stdbool.h>
22770 rm -f conftest.$ac_objext
22771 if { (eval echo "$as_me:22771: \"$ac_compile\"") >&5
22772 (eval $ac_compile) 2>&5
22774 echo "$as_me:22774: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -s conftest.$ac_objext'
22777 { (eval echo "$as_me:22777: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:22780: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 cf_cv_header_stdbool_h=1
22784 echo "$as_me: failed program was:" >&5
22785 cat conftest.$ac_ext >&5
22786 cf_cv_header_stdbool_h=0
22788 rm -f conftest.$ac_objext conftest.$ac_ext
22790 rm -f conftest.$ac_objext conftest.$ac_ext
22793 if test "$cf_cv_header_stdbool_h" = 1
22794 then echo "$as_me:22794: result: yes" >&5
22795 echo "${ECHO_T}yes" >&6
22796 else echo "$as_me:22796: result: no" >&5
22797 echo "${ECHO_T}no" >&6
22800 echo "$as_me:22800: checking for builtin bool type" >&5
22801 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
22803 if test "${cf_cv_cc_bool_type+set}" = set; then
22804 echo $ECHO_N "(cached) $ECHO_C" >&6
22807 cat >conftest.$ac_ext <<_ACEOF
22808 #line 22808 "configure"
22809 #include "confdefs.h"
22812 #include <sys/types.h>
22822 rm -f conftest.$ac_objext
22823 if { (eval echo "$as_me:22823: \"$ac_compile\"") >&5
22824 (eval $ac_compile) 2>&5
22826 echo "$as_me:22826: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
22828 { ac_try='test -s conftest.$ac_objext'
22829 { (eval echo "$as_me:22829: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22832 echo "$as_me:22832: \$? = $ac_status" >&5
22833 (exit $ac_status); }; }; then
22834 cf_cv_cc_bool_type=1
22836 echo "$as_me: failed program was:" >&5
22837 cat conftest.$ac_ext >&5
22838 cf_cv_cc_bool_type=0
22840 rm -f conftest.$ac_objext conftest.$ac_ext
22844 if test "$cf_cv_cc_bool_type" = 1
22845 then echo "$as_me:22845: result: yes" >&5
22846 echo "${ECHO_T}yes" >&6
22847 else echo "$as_me:22847: result: no" >&5
22848 echo "${ECHO_T}no" >&6
22851 # Check for C++ compiler characteristics (and ensure that it's there!)
22852 if test -n "$CXX" ; then
22854 ac_cpp='$CXXCPP $CPPFLAGS'
22855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22858 ac_main_return=return
22860 if test -n "$GXX" ; then
22863 LIBS="$LIBS $CXXLIBS"
22864 echo "$as_me:22864: checking if we already have C++ library" >&5
22865 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
22866 cat >conftest.$ac_ext <<_ACEOF
22867 #line 22867 "configure"
22868 #include "confdefs.h"
22870 #include <iostream>
22875 std::cout << "Hello World!" << std::endl;
22880 rm -f conftest.$ac_objext conftest$ac_exeext
22881 if { (eval echo "$as_me:22881: \"$ac_link\"") >&5
22882 (eval $ac_link) 2>&5
22884 echo "$as_me:22884: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
22886 { ac_try='test -s conftest$ac_exeext'
22887 { (eval echo "$as_me:22887: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22890 echo "$as_me:22890: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892 cf_have_libstdcpp=yes
22894 echo "$as_me: failed program was:" >&5
22895 cat conftest.$ac_ext >&5
22896 cf_have_libstdcpp=no
22898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22899 echo "$as_me:22899: result: $cf_have_libstdcpp" >&5
22900 echo "${ECHO_T}$cf_have_libstdcpp" >&6
22903 if test $cf_have_libstdcpp != yes
22905 case $cf_cv_system_name in
22907 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
22908 cf_stdcpp_libname=stdcpp
22910 cf_stdcpp_libname=stdc++
22914 cf_stdcpp_libname=stdc++
22918 echo "$as_me:22918: checking for library $cf_stdcpp_libname" >&5
22919 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
22920 if test "${cf_cv_libstdcpp+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 LIBS="$LIBS $CXXLIBS"
22927 cf_add_libs="-l$cf_stdcpp_libname"
22928 # Filter out duplicates - this happens with badly-designed ".pc" files...
22929 for cf_add_1lib in $LIBS
22931 for cf_add_2lib in $cf_add_libs
22933 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22939 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22941 LIBS="$cf_add_libs"
22943 cat >conftest.$ac_ext <<_ACEOF
22944 #line 22944 "configure"
22945 #include "confdefs.h"
22947 #include <iostream>
22952 std::cout << "Hello World!" << std::endl;
22957 rm -f conftest.$ac_objext conftest$ac_exeext
22958 if { (eval echo "$as_me:22958: \"$ac_link\"") >&5
22959 (eval $ac_link) 2>&5
22961 echo "$as_me:22961: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
22963 { ac_try='test -s conftest$ac_exeext'
22964 { (eval echo "$as_me:22964: \"$ac_try\"") >&5
22965 (eval $ac_try) 2>&5
22967 echo "$as_me:22967: \$? = $ac_status" >&5
22968 (exit $ac_status); }; }; then
22969 cf_cv_libstdcpp=yes
22971 echo "$as_me: failed program was:" >&5
22972 cat conftest.$ac_ext >&5
22975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22979 echo "$as_me:22979: result: $cf_cv_libstdcpp" >&5
22980 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
22981 test "$cf_cv_libstdcpp" = yes && {
22982 cf_add_libs="-l$cf_stdcpp_libname"
22983 # Filter out duplicates - this happens with badly-designed ".pc" files...
22984 for cf_add_1lib in $CXXLIBS
22986 for cf_add_2lib in $cf_add_libs
22988 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22994 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22996 CXXLIBS="$cf_add_libs"
23001 echo "$as_me:23001: checking whether $CXX understands -c and -o together" >&5
23002 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
23003 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23007 cat > conftest.$ac_ext <<CF_EOF
23010 ${cf_cv_main_return:-return}(0);
23013 # We do the test twice because some compilers refuse to overwrite an
23014 # existing .o file with -o, though they will create one.
23015 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23016 if { (eval echo "$as_me:23016: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:23019: \$? = $ac_status" >&5
23020 (exit $ac_status); } &&
23021 test -f conftest2.$ac_objext && { (eval echo "$as_me:23021: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23024 echo "$as_me:23024: \$? = $ac_status" >&5
23025 (exit $ac_status); };
23027 eval cf_cv_prog_CXX_c_o=yes
23029 eval cf_cv_prog_CXX_c_o=no
23034 if test $cf_cv_prog_CXX_c_o = yes; then
23035 echo "$as_me:23035: result: yes" >&5
23036 echo "${ECHO_T}yes" >&6
23038 echo "$as_me:23038: result: no" >&5
23039 echo "${ECHO_T}no" >&6
23042 case $GXX_VERSION in
23048 cf_cxx_library=unknown
23049 case $cf_cv_system_name in
23057 if test "$GXX" = yes; then
23058 echo "$as_me:23058: checking for lib$cf_gpp_libname" >&5
23059 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
23062 cf_add_libs="-l$cf_gpp_libname"
23063 # Filter out duplicates - this happens with badly-designed ".pc" files...
23064 for cf_add_1lib in $LIBS
23066 for cf_add_2lib in $cf_add_libs
23068 if test "x$cf_add_1lib" = "x$cf_add_2lib"
23074 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
23076 LIBS="$cf_add_libs"
23078 cat >conftest.$ac_ext <<_ACEOF
23079 #line 23079 "configure"
23080 #include "confdefs.h"
23082 #include <$cf_gpp_libname/builtin.h>
23087 two_arg_error_handler_t foo2 = lib_error_handler
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (eval echo "$as_me:23093: \"$ac_link\"") >&5
23094 (eval $ac_link) 2>&5
23096 echo "$as_me:23096: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
23098 { ac_try='test -s conftest$ac_exeext'
23099 { (eval echo "$as_me:23099: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23102 echo "$as_me:23102: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23106 cf_add_libs="-l$cf_gpp_libname"
23107 # Filter out duplicates - this happens with badly-designed ".pc" files...
23108 for cf_add_1lib in $CXXLIBS
23110 for cf_add_2lib in $cf_add_libs
23112 if test "x$cf_add_1lib" = "x$cf_add_2lib"
23118 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
23120 CXXLIBS="$cf_add_libs"
23122 if test "$cf_gpp_libname" = cpp ; then
23124 cat >>confdefs.h <<\EOF
23125 #define HAVE_GPP_BUILTIN_H 1
23130 cat >>confdefs.h <<\EOF
23131 #define HAVE_GXX_BUILTIN_H 1
23136 echo "$as_me: failed program was:" >&5
23137 cat conftest.$ac_ext >&5
23138 cat >conftest.$ac_ext <<_ACEOF
23139 #line 23139 "configure"
23140 #include "confdefs.h"
23142 #include <builtin.h>
23147 two_arg_error_handler_t foo2 = lib_error_handler
23152 rm -f conftest.$ac_objext conftest$ac_exeext
23153 if { (eval echo "$as_me:23153: \"$ac_link\"") >&5
23154 (eval $ac_link) 2>&5
23156 echo "$as_me:23156: \$? = $ac_status" >&5
23157 (exit $ac_status); } &&
23158 { ac_try='test -s conftest$ac_exeext'
23159 { (eval echo "$as_me:23159: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:23162: \$? = $ac_status" >&5
23163 (exit $ac_status); }; }; then
23166 cf_add_libs="-l$cf_gpp_libname"
23167 # Filter out duplicates - this happens with badly-designed ".pc" files...
23168 for cf_add_1lib in $CXXLIBS
23170 for cf_add_2lib in $cf_add_libs
23172 if test "x$cf_add_1lib" = "x$cf_add_2lib"
23178 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
23180 CXXLIBS="$cf_add_libs"
23182 cat >>confdefs.h <<\EOF
23183 #define HAVE_BUILTIN_H 1
23187 echo "$as_me: failed program was:" >&5
23188 cat conftest.$ac_ext >&5
23191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23195 echo "$as_me:23195: result: $cf_cxx_library" >&5
23196 echo "${ECHO_T}$cf_cxx_library" >&6
23206 ac_cpp='$CXXCPP $CPPFLAGS'
23207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23210 ac_main_return=return
23211 echo "$as_me:23211: checking how to run the C++ preprocessor" >&5
23212 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23213 if test -z "$CXXCPP"; then
23214 if test "${ac_cv_prog_CXXCPP+set}" = set; then
23215 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 # Double quotes because CXXCPP needs to be expanded
23218 for CXXCPP in "$CXX -E" "/lib/cpp"
23220 ac_preproc_ok=false
23221 for ac_cxx_preproc_warn_flag in '' yes
23223 # Use a header file that comes with gcc, so configuring glibc
23224 # with a fresh cross-compiler works.
23225 # On the NeXT, cc -E runs the code through the compiler's parser,
23226 # not just through cpp. "Syntax error" is here to catch this case.
23227 cat >conftest.$ac_ext <<_ACEOF
23228 #line 23228 "configure"
23229 #include "confdefs.h"
23230 #include <assert.h>
23233 if { (eval echo "$as_me:23233: \"$ac_cpp conftest.$ac_ext\"") >&5
23234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23236 egrep -v '^ *\+' conftest.er1 >conftest.err
23238 cat conftest.err >&5
23239 echo "$as_me:23239: \$? = $ac_status" >&5
23240 (exit $ac_status); } >/dev/null; then
23241 if test -s conftest.err; then
23242 ac_cpp_err=$ac_cxx_preproc_warn_flag
23249 if test -z "$ac_cpp_err"; then
23252 echo "$as_me: failed program was:" >&5
23253 cat conftest.$ac_ext >&5
23254 # Broken: fails on valid input.
23257 rm -f conftest.err conftest.$ac_ext
23259 # OK, works on sane cases. Now check whether non-existent headers
23260 # can be detected and how.
23261 cat >conftest.$ac_ext <<_ACEOF
23262 #line 23262 "configure"
23263 #include "confdefs.h"
23264 #include <ac_nonexistent.h>
23266 if { (eval echo "$as_me:23266: \"$ac_cpp conftest.$ac_ext\"") >&5
23267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23269 egrep -v '^ *\+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:23272: \$? = $ac_status" >&5
23273 (exit $ac_status); } >/dev/null; then
23274 if test -s conftest.err; then
23275 ac_cpp_err=$ac_cxx_preproc_warn_flag
23282 if test -z "$ac_cpp_err"; then
23283 # Broken: success on invalid input.
23286 echo "$as_me: failed program was:" >&5
23287 cat conftest.$ac_ext >&5
23288 # Passes both tests.
23292 rm -f conftest.err conftest.$ac_ext
23295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23296 rm -f conftest.err conftest.$ac_ext
23297 if $ac_preproc_ok; then
23302 ac_cv_prog_CXXCPP=$CXXCPP
23305 CXXCPP=$ac_cv_prog_CXXCPP
23307 ac_cv_prog_CXXCPP=$CXXCPP
23309 echo "$as_me:23309: result: $CXXCPP" >&5
23310 echo "${ECHO_T}$CXXCPP" >&6
23311 ac_preproc_ok=false
23312 for ac_cxx_preproc_warn_flag in '' yes
23314 # Use a header file that comes with gcc, so configuring glibc
23315 # with a fresh cross-compiler works.
23316 # On the NeXT, cc -E runs the code through the compiler's parser,
23317 # not just through cpp. "Syntax error" is here to catch this case.
23318 cat >conftest.$ac_ext <<_ACEOF
23319 #line 23319 "configure"
23320 #include "confdefs.h"
23321 #include <assert.h>
23324 if { (eval echo "$as_me:23324: \"$ac_cpp conftest.$ac_ext\"") >&5
23325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23327 egrep -v '^ *\+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:23330: \$? = $ac_status" >&5
23331 (exit $ac_status); } >/dev/null; then
23332 if test -s conftest.err; then
23333 ac_cpp_err=$ac_cxx_preproc_warn_flag
23340 if test -z "$ac_cpp_err"; then
23343 echo "$as_me: failed program was:" >&5
23344 cat conftest.$ac_ext >&5
23345 # Broken: fails on valid input.
23348 rm -f conftest.err conftest.$ac_ext
23350 # OK, works on sane cases. Now check whether non-existent headers
23351 # can be detected and how.
23352 cat >conftest.$ac_ext <<_ACEOF
23353 #line 23353 "configure"
23354 #include "confdefs.h"
23355 #include <ac_nonexistent.h>
23357 if { (eval echo "$as_me:23357: \"$ac_cpp conftest.$ac_ext\"") >&5
23358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23360 egrep -v '^ *\+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:23363: \$? = $ac_status" >&5
23364 (exit $ac_status); } >/dev/null; then
23365 if test -s conftest.err; then
23366 ac_cpp_err=$ac_cxx_preproc_warn_flag
23373 if test -z "$ac_cpp_err"; then
23374 # Broken: success on invalid input.
23377 echo "$as_me: failed program was:" >&5
23378 cat conftest.$ac_ext >&5
23379 # Passes both tests.
23383 rm -f conftest.err conftest.$ac_ext
23386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23387 rm -f conftest.err conftest.$ac_ext
23388 if $ac_preproc_ok; then
23391 { { echo "$as_me:23391: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
23392 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
23393 { (exit 1); exit 1; }; }
23397 ac_cpp='$CXXCPP $CPPFLAGS'
23398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23401 ac_main_return=return
23403 for ac_header in typeinfo
23405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23406 echo "$as_me:23406: checking for $ac_header" >&5
23407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 cat >conftest.$ac_ext <<_ACEOF
23412 #line 23412 "configure"
23413 #include "confdefs.h"
23414 #include <$ac_header>
23416 if { (eval echo "$as_me:23416: \"$ac_cpp conftest.$ac_ext\"") >&5
23417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23419 egrep -v '^ *\+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:23422: \$? = $ac_status" >&5
23423 (exit $ac_status); } >/dev/null; then
23424 if test -s conftest.err; then
23425 ac_cpp_err=$ac_cxx_preproc_warn_flag
23432 if test -z "$ac_cpp_err"; then
23433 eval "$as_ac_Header=yes"
23435 echo "$as_me: failed program was:" >&5
23436 cat conftest.$ac_ext >&5
23437 eval "$as_ac_Header=no"
23439 rm -f conftest.err conftest.$ac_ext
23441 echo "$as_me:23441: result: `eval echo '${'$as_ac_Header'}'`" >&5
23442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23444 cat >>confdefs.h <<EOF
23445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23451 for ac_header in iostream
23453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23454 echo "$as_me:23454: checking for $ac_header" >&5
23455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 cat >conftest.$ac_ext <<_ACEOF
23460 #line 23460 "configure"
23461 #include "confdefs.h"
23462 #include <$ac_header>
23464 if { (eval echo "$as_me:23464: \"$ac_cpp conftest.$ac_ext\"") >&5
23465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23467 egrep -v '^ *\+' conftest.er1 >conftest.err
23469 cat conftest.err >&5
23470 echo "$as_me:23470: \$? = $ac_status" >&5
23471 (exit $ac_status); } >/dev/null; then
23472 if test -s conftest.err; then
23473 ac_cpp_err=$ac_cxx_preproc_warn_flag
23480 if test -z "$ac_cpp_err"; then
23481 eval "$as_ac_Header=yes"
23483 echo "$as_me: failed program was:" >&5
23484 cat conftest.$ac_ext >&5
23485 eval "$as_ac_Header=no"
23487 rm -f conftest.err conftest.$ac_ext
23489 echo "$as_me:23489: result: `eval echo '${'$as_ac_Header'}'`" >&5
23490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23492 cat >>confdefs.h <<EOF
23493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23499 if test x"$ac_cv_header_iostream" = xyes ; then
23500 echo "$as_me:23500: checking if iostream uses std-namespace" >&5
23501 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
23502 cat >conftest.$ac_ext <<_ACEOF
23503 #line 23503 "configure"
23504 #include "confdefs.h"
23506 #include <iostream>
23513 cerr << "testing" << endl;
23519 rm -f conftest.$ac_objext
23520 if { (eval echo "$as_me:23520: \"$ac_compile\"") >&5
23521 (eval $ac_compile) 2>&5
23523 echo "$as_me:23523: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -s conftest.$ac_objext'
23526 { (eval echo "$as_me:23526: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23529 echo "$as_me:23529: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23531 cf_iostream_namespace=yes
23533 echo "$as_me: failed program was:" >&5
23534 cat conftest.$ac_ext >&5
23535 cf_iostream_namespace=no
23537 rm -f conftest.$ac_objext conftest.$ac_ext
23538 echo "$as_me:23538: result: $cf_iostream_namespace" >&5
23539 echo "${ECHO_T}$cf_iostream_namespace" >&6
23540 if test "$cf_iostream_namespace" = yes ; then
23542 cat >>confdefs.h <<\EOF
23543 #define IOSTREAM_NAMESPACE 1
23549 echo "$as_me:23549: checking if we should include stdbool.h" >&5
23550 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
23552 if test "${cf_cv_header_stdbool_h+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 cat >conftest.$ac_ext <<_ACEOF
23557 #line 23557 "configure"
23558 #include "confdefs.h"
23568 rm -f conftest.$ac_objext
23569 if { (eval echo "$as_me:23569: \"$ac_compile\"") >&5
23570 (eval $ac_compile) 2>&5
23572 echo "$as_me:23572: \$? = $ac_status" >&5
23573 (exit $ac_status); } &&
23574 { ac_try='test -s conftest.$ac_objext'
23575 { (eval echo "$as_me:23575: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23578 echo "$as_me:23578: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 cf_cv_header_stdbool_h=0
23582 echo "$as_me: failed program was:" >&5
23583 cat conftest.$ac_ext >&5
23584 cat >conftest.$ac_ext <<_ACEOF
23585 #line 23585 "configure"
23586 #include "confdefs.h"
23589 #include <stdbool.h>
23600 rm -f conftest.$ac_objext
23601 if { (eval echo "$as_me:23601: \"$ac_compile\"") >&5
23602 (eval $ac_compile) 2>&5
23604 echo "$as_me:23604: \$? = $ac_status" >&5
23605 (exit $ac_status); } &&
23606 { ac_try='test -s conftest.$ac_objext'
23607 { (eval echo "$as_me:23607: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23610 echo "$as_me:23610: \$? = $ac_status" >&5
23611 (exit $ac_status); }; }; then
23612 cf_cv_header_stdbool_h=1
23614 echo "$as_me: failed program was:" >&5
23615 cat conftest.$ac_ext >&5
23616 cf_cv_header_stdbool_h=0
23618 rm -f conftest.$ac_objext conftest.$ac_ext
23620 rm -f conftest.$ac_objext conftest.$ac_ext
23623 if test "$cf_cv_header_stdbool_h" = 1
23624 then echo "$as_me:23624: result: yes" >&5
23625 echo "${ECHO_T}yes" >&6
23626 else echo "$as_me:23626: result: no" >&5
23627 echo "${ECHO_T}no" >&6
23630 echo "$as_me:23630: checking for builtin bool type" >&5
23631 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
23633 if test "${cf_cv_builtin_bool+set}" = set; then
23634 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 cat >conftest.$ac_ext <<_ACEOF
23638 #line 23638 "configure"
23639 #include "confdefs.h"
23642 #include <sys/types.h>
23652 rm -f conftest.$ac_objext
23653 if { (eval echo "$as_me:23653: \"$ac_compile\"") >&5
23654 (eval $ac_compile) 2>&5
23656 echo "$as_me:23656: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
23658 { ac_try='test -s conftest.$ac_objext'
23659 { (eval echo "$as_me:23659: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23662 echo "$as_me:23662: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 cf_cv_builtin_bool=1
23666 echo "$as_me: failed program was:" >&5
23667 cat conftest.$ac_ext >&5
23668 cf_cv_builtin_bool=0
23670 rm -f conftest.$ac_objext conftest.$ac_ext
23674 if test "$cf_cv_builtin_bool" = 1
23675 then echo "$as_me:23675: result: yes" >&5
23676 echo "${ECHO_T}yes" >&6
23677 else echo "$as_me:23677: result: no" >&5
23678 echo "${ECHO_T}no" >&6
23681 echo "$as_me:23681: checking for size of bool" >&5
23682 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
23683 if test "${cf_cv_type_of_bool+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23688 if test "$cross_compiling" = yes; then
23689 cf_cv_type_of_bool=unknown
23691 cat >conftest.$ac_ext <<_ACEOF
23692 #line 23692 "configure"
23693 #include "confdefs.h"
23695 #include <stdlib.h>
23698 #if defined(__cplusplus)
23700 #ifdef HAVE_GXX_BUILTIN_H
23701 #include <g++/builtin.h>
23702 #elif HAVE_GPP_BUILTIN_H
23703 #include <gpp/builtin.h>
23704 #elif HAVE_BUILTIN_H
23705 #include <builtin.h>
23710 #if $cf_cv_header_stdbool_h
23711 #include <stdbool.h>
23718 FILE *fp = fopen("cf_test.out", "w");
23721 if ((bool)(-x) >= 0)
23722 fputs("unsigned ", fp);
23723 if (sizeof(x) == sizeof(int)) fputs("int", fp);
23724 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
23725 else if (sizeof(x) == sizeof(short))fputs("short",fp);
23726 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
23729 ${cf_cv_main_return:-return}(0);
23733 rm -f conftest$ac_exeext
23734 if { (eval echo "$as_me:23734: \"$ac_link\"") >&5
23735 (eval $ac_link) 2>&5
23737 echo "$as_me:23737: \$? = $ac_status" >&5
23738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23739 { (eval echo "$as_me:23739: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:23742: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }; then
23744 cf_cv_type_of_bool=`cat cf_test.out`
23745 if test -z "$cf_cv_type_of_bool"; then
23746 cf_cv_type_of_bool=unknown
23749 echo "$as_me: program exited with status $ac_status" >&5
23750 echo "$as_me: failed program was:" >&5
23751 cat conftest.$ac_ext >&5
23752 cf_cv_type_of_bool=unknown
23754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23760 echo "$as_me:23760: result: $cf_cv_type_of_bool" >&5
23761 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
23762 if test "$cf_cv_type_of_bool" = unknown ; then
23763 case .$NCURSES_BOOL in
23764 (.auto|.) NCURSES_BOOL=unsigned;;
23766 { echo "$as_me:23766: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
23767 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
23768 cf_cv_type_of_bool=$NCURSES_BOOL
23771 echo "$as_me:23771: checking for special defines needed for etip.h" >&5
23772 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
23773 cf_save_CXXFLAGS="$CXXFLAGS"
23776 # etip.h includes ncurses.h which includes ncurses_dll.h
23777 # But ncurses_dll.h is generated - fix here.
23778 test -d include || mkdir include
23779 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
23781 for cf_math in "" MATH_H
23783 for cf_excp in "" MATH_EXCEPTION
23785 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
23786 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
23787 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
23788 cat >conftest.$ac_ext <<_ACEOF
23789 #line 23789 "configure"
23790 #include "confdefs.h"
23792 #include <etip.h.in>
23802 rm -f conftest.$ac_objext
23803 if { (eval echo "$as_me:23803: \"$ac_compile\"") >&5
23804 (eval $ac_compile) 2>&5
23806 echo "$as_me:23806: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
23808 { ac_try='test -s conftest.$ac_objext'
23809 { (eval echo "$as_me:23809: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23812 echo "$as_me:23812: \$? = $ac_status" >&5
23813 (exit $ac_status); }; }; then
23815 test -n "$cf_math" && cat >>confdefs.h <<EOF
23816 #define ETIP_NEEDS_${cf_math} 1
23819 test -n "$cf_excp" && cat >>confdefs.h <<EOF
23820 #define ETIP_NEEDS_${cf_excp} 1
23823 cf_result="$cf_math $cf_excp"
23827 echo "$as_me: failed program was:" >&5
23828 cat conftest.$ac_ext >&5
23830 rm -f conftest.$ac_objext conftest.$ac_ext
23833 echo "$as_me:23833: result: $cf_result" >&5
23834 echo "${ECHO_T}$cf_result" >&6
23835 CXXFLAGS="$cf_save_CXXFLAGS"
23837 if test -n "$CXX"; then
23838 echo "$as_me:23838: checking if $CXX accepts parameter initialization" >&5
23839 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
23840 if test "${cf_cv_cpp_param_init+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23845 ac_cpp='$CXXCPP $CPPFLAGS'
23846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23849 ac_main_return=return
23851 if test "$cross_compiling" = yes; then
23852 cf_cv_cpp_param_init=unknown
23854 cat >conftest.$ac_ext <<_ACEOF
23855 #line 23855 "configure"
23856 #include "confdefs.h"
23866 TEST::TEST(int x = 1) // some compilers do not like second initializer
23873 rm -f conftest$ac_exeext
23874 if { (eval echo "$as_me:23874: \"$ac_link\"") >&5
23875 (eval $ac_link) 2>&5
23877 echo "$as_me:23877: \$? = $ac_status" >&5
23878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23879 { (eval echo "$as_me:23879: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
23882 echo "$as_me:23882: \$? = $ac_status" >&5
23883 (exit $ac_status); }; }; then
23884 cf_cv_cpp_param_init=yes
23886 echo "$as_me: program exited with status $ac_status" >&5
23887 echo "$as_me: failed program was:" >&5
23888 cat conftest.$ac_ext >&5
23889 cf_cv_cpp_param_init=no
23891 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23894 ac_cpp='$CXXCPP $CPPFLAGS'
23895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23898 ac_main_return=return
23901 echo "$as_me:23901: result: $cf_cv_cpp_param_init" >&5
23902 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
23904 test "$cf_cv_cpp_param_init" = yes &&
23905 cat >>confdefs.h <<\EOF
23906 #define CPP_HAS_PARAM_INIT 1
23909 if test -n "$CXX"; then
23911 echo "$as_me:23911: checking if $CXX accepts static_cast" >&5
23912 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
23913 if test "${cf_cv_cpp_static_cast+set}" = set; then
23914 echo $ECHO_N "(cached) $ECHO_C" >&6
23918 ac_cpp='$CXXCPP $CPPFLAGS'
23919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23922 ac_main_return=return
23924 cat >conftest.$ac_ext <<_ACEOF
23925 #line 23925 "configure"
23926 #include "confdefs.h"
23931 NCursesPanel(int nlines,
23941 template<class T> class NCursesUserPanel : public NCursesPanel
23944 NCursesUserPanel (int nlines,
23948 const T* p_UserData = static_cast<T*>(0))
23949 : NCursesPanel (nlines, ncols, begin_y, begin_x)
23952 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
23956 virtual ~NCursesUserPanel() {};
23963 const char* p_UserData = static_cast<char*>(0)
23968 rm -f conftest.$ac_objext
23969 if { (eval echo "$as_me:23969: \"$ac_compile\"") >&5
23970 (eval $ac_compile) 2>&5
23972 echo "$as_me:23972: \$? = $ac_status" >&5
23973 (exit $ac_status); } &&
23974 { ac_try='test -s conftest.$ac_objext'
23975 { (eval echo "$as_me:23975: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23978 echo "$as_me:23978: \$? = $ac_status" >&5
23979 (exit $ac_status); }; }; then
23980 cf_cv_cpp_static_cast=yes
23982 echo "$as_me: failed program was:" >&5
23983 cat conftest.$ac_ext >&5
23984 cf_cv_cpp_static_cast=no
23986 rm -f conftest.$ac_objext conftest.$ac_ext
23989 ac_cpp='$CXXCPP $CPPFLAGS'
23990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23993 ac_main_return=return
23996 echo "$as_me:23996: result: $cf_cv_cpp_static_cast" >&5
23997 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
24001 test "$cf_cv_cpp_static_cast" = yes &&
24002 cat >>confdefs.h <<\EOF
24003 #define CPP_HAS_STATIC_CAST 1
24007 CXX_ARFLAGS='$(ARFLAGS)'
24008 case $cf_cv_system_name in
24010 if test "$GXX" != yes ; then
24012 CXX_ARFLAGS='-ar -o'
24016 CXXLDFLAGS="-u main"
24019 if test "$GXX" != yes ; then
24021 CXX_ARFLAGS='-xar -o'
24028 cf_cv_builtin_bool=1
24030 # Just because we are not configuring against C++ right now does not
24031 # mean that a user will not want to use C++. Some distributors disable
24032 # the C++ portion of this configuration as a shortcut (or just to avoid
24033 # compiling the demo in the c++ directory). So we need a reasonable
24034 # default for the 'bool' type.
24036 # Caveat: since the storage of the bool type is not standardized, it
24039 if test "$NCURSES_BOOL" != auto ; then
24040 cf_cv_type_of_bool=$NCURSES_BOOL
24041 cf_cv_header_stdbool_h=0
24043 if test "$cf_cv_header_stdbool_h" = 1 ; then
24045 echo "$as_me:24045: checking for size of bool" >&5
24046 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24047 if test "${cf_cv_type_of_bool+set}" = set; then
24048 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 if test "$cross_compiling" = yes; then
24053 cf_cv_type_of_bool=unknown
24055 cat >conftest.$ac_ext <<_ACEOF
24056 #line 24056 "configure"
24057 #include "confdefs.h"
24059 #include <stdlib.h>
24062 #if defined(__cplusplus)
24064 #ifdef HAVE_GXX_BUILTIN_H
24065 #include <g++/builtin.h>
24066 #elif HAVE_GPP_BUILTIN_H
24067 #include <gpp/builtin.h>
24068 #elif HAVE_BUILTIN_H
24069 #include <builtin.h>
24074 #if $cf_cv_header_stdbool_h
24075 #include <stdbool.h>
24082 FILE *fp = fopen("cf_test.out", "w");
24085 if ((bool)(-x) >= 0)
24086 fputs("unsigned ", fp);
24087 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24088 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24089 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24090 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24093 ${cf_cv_main_return:-return}(0);
24097 rm -f conftest$ac_exeext
24098 if { (eval echo "$as_me:24098: \"$ac_link\"") >&5
24099 (eval $ac_link) 2>&5
24101 echo "$as_me:24101: \$? = $ac_status" >&5
24102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24103 { (eval echo "$as_me:24103: \"$ac_try\"") >&5
24104 (eval $ac_try) 2>&5
24106 echo "$as_me:24106: \$? = $ac_status" >&5
24107 (exit $ac_status); }; }; then
24108 cf_cv_type_of_bool=`cat cf_test.out`
24109 if test -z "$cf_cv_type_of_bool"; then
24110 cf_cv_type_of_bool=unknown
24113 echo "$as_me: program exited with status $ac_status" >&5
24114 echo "$as_me: failed program was:" >&5
24115 cat conftest.$ac_ext >&5
24116 cf_cv_type_of_bool=unknown
24118 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24124 echo "$as_me:24124: result: $cf_cv_type_of_bool" >&5
24125 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24126 if test "$cf_cv_type_of_bool" = unknown ; then
24127 case .$NCURSES_BOOL in
24128 (.auto|.) NCURSES_BOOL=unsigned;;
24130 { echo "$as_me:24130: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24131 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24132 cf_cv_type_of_bool=$NCURSES_BOOL
24136 echo "$as_me:24136: checking for fallback type of bool" >&5
24137 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
24138 case "$host_cpu" in
24139 (i?86) cf_cv_type_of_bool=char ;;
24140 (*) cf_cv_type_of_bool=int ;;
24142 echo "$as_me:24142: result: $cf_cv_type_of_bool" >&5
24143 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24148 # If the C compiler did not declare bool, and we did not determine that the C++
24149 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
24150 # ncurses library use the same type as C++ bool. Note that this allows one to
24151 # specify the type of bool in a configure-script option and postpone
24152 # integration with the C++ compiler provided that the types are compatible.
24154 if test $cf_cv_cc_bool_type = 1
24156 # oops: C has a bool. Unlikely, but C++ could differ.
24158 elif test $cf_cv_builtin_bool = 0
24163 # this is the normal case
24164 USE_CXX_BOOL='defined(__cplusplus)'
24167 if test -f "${srcdir}/Ada95/Makefile.in" ; then
24169 if test "$cf_with_ada" != "no" ; then
24170 if test "$with_libtool" != "no"; then
24171 { echo "$as_me:24171: WARNING: libtool does not support Ada - disabling feature" >&5
24172 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
24177 if test "$cf_with_ada" != "no" ; then
24179 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
24182 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24184 unset ac_cv_path_cf_TEMP_gnat
24186 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
24187 set dummy $cf_prog_gnat; ac_word=$2
24188 echo "$as_me:24188: checking for $ac_word" >&5
24189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24190 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24193 case $cf_TEMP_gnat in
24195 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
24198 ac_save_IFS=$IFS; IFS=$ac_path_separator
24200 for ac_dir in $ac_dummy; do
24202 test -z "$ac_dir" && ac_dir=.
24203 if $as_executable_p "$ac_dir/$ac_word"; then
24204 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
24205 echo "$as_me:24205: found $ac_dir/$ac_word" >&5
24210 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
24214 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
24216 if test -n "$cf_TEMP_gnat"; then
24217 echo "$as_me:24217: result: $cf_TEMP_gnat" >&5
24218 echo "${ECHO_T}$cf_TEMP_gnat" >&6
24220 echo "$as_me:24220: result: no" >&5
24221 echo "${ECHO_T}no" >&6
24224 eval cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat
24226 if test "x$cf_TEMP_gnat" != xno; then
24227 unset cf_gnat_version
24230 echo "$as_me:24230: checking for $cf_prog_gnat version" >&5
24231 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
24232 if test "${cf_gnat_version+set}" = set; then
24233 echo $ECHO_N "(cached) $ECHO_C" >&6
24236 cf_gnat_version=`$cf_prog_gnat --version 2>&1 | \
24237 grep '[0-9].[0-9][0-9]*' |\
24238 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24241 echo "$as_me:24241: result: $cf_gnat_version" >&5
24242 echo "${ECHO_T}$cf_gnat_version" >&6
24243 test -z "$cf_gnat_version" && cf_gnat_version=no
24244 eval cf_TEMP_gnat=$cf_gnat_version; unset cf_gnat_version
24247 eval cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat
24250 unset cf_gnat_version
24251 unset ac_cv_path_cf_TEMP_gnat
24254 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
24256 cf_cv_prog_gnat_correct=no
24258 cf_ada_make=gnatmake
24259 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
24260 # gprconfig is newer than gnatmake; we can continue...
24263 rm -rf conftest* *~conftest*
24264 if mkdir conftest.src
24268 for cf_gprconfig in Ada C
24270 echo "$as_me:24270: checking for gprconfig name for $cf_gprconfig" >&5
24271 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
24272 if test $cf_gprconfig = C
24274 for cf_gprconfig_param in \
24275 $cf_gprconfig,,,,GNATGCC \
24276 $cf_gprconfig,,,,GCC \
24279 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24280 test -n "$cf_gprconfig_value" && break
24283 cf_gprconfig_param=$cf_gprconfig
24284 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24286 if test -n "$cf_gprconfig_value"
24288 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
24289 echo "$as_me:24289: result: $cf_gprconfig_value" >&5
24290 echo "${ECHO_T}$cf_gprconfig_value" >&6
24292 echo "$as_me:24292: result: missing" >&5
24293 echo "${ECHO_T}missing" >&6
24299 rm -rf conftest* *~conftest*
24302 if test "x$cf_ada_config" != "x#"
24305 echo "$as_me:24305: checking for gnat version" >&5
24306 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
24307 if test "${cf_gnat_version+set}" = set; then
24308 echo $ECHO_N "(cached) $ECHO_C" >&6
24311 cf_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
24312 grep '[0-9].[0-9][0-9]*' |\
24313 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24316 echo "$as_me:24316: result: $cf_gnat_version" >&5
24317 echo "${ECHO_T}$cf_gnat_version" >&6
24318 test -z "$cf_gnat_version" && cf_gnat_version=no
24320 case $cf_gnat_version in
24321 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
24322 cf_cv_prog_gnat_correct=yes
24325 { echo "$as_me:24325: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
24326 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
24327 cf_cv_prog_gnat_correct=no
24331 # Extract the first word of "m4", so it can be a program name with args.
24332 set dummy m4; ac_word=$2
24333 echo "$as_me:24333: checking for $ac_word" >&5
24334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24335 if test "${ac_cv_prog_M4_exists+set}" = set; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24338 if test -n "$M4_exists"; then
24339 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
24341 ac_save_IFS=$IFS; IFS=$ac_path_separator
24343 for ac_dir in $ac_dummy; do
24345 test -z "$ac_dir" && ac_dir=.
24346 $as_executable_p "$ac_dir/$ac_word" || continue
24347 ac_cv_prog_M4_exists="yes"
24348 echo "$as_me:24348: found $ac_dir/$ac_word" >&5
24352 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
24355 M4_exists=$ac_cv_prog_M4_exists
24356 if test -n "$M4_exists"; then
24357 echo "$as_me:24357: result: $M4_exists" >&5
24358 echo "${ECHO_T}$M4_exists" >&6
24360 echo "$as_me:24360: result: no" >&5
24361 echo "${ECHO_T}no" >&6
24364 if test "$ac_cv_prog_M4_exists" = no; then
24365 cf_cv_prog_gnat_correct=no
24366 { echo "$as_me:24366: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
24367 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
24369 if test "$cf_cv_prog_gnat_correct" = yes; then
24370 echo "$as_me:24370: checking if GNAT works" >&5
24371 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
24373 rm -rf conftest* *~conftest*
24374 cat >>conftest.ads <<CF_EOF
24375 procedure conftest;
24377 cat >>conftest.adb <<CF_EOF
24380 procedure conftest is
24382 Text_IO.Put ("Hello World");
24384 GNAT.OS_Lib.OS_Exit (0);
24387 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24388 if ( ./conftest 1>&5 2>&1 ) ; then
24389 cf_cv_prog_gnat_correct=yes
24391 cf_cv_prog_gnat_correct=no
24394 cf_cv_prog_gnat_correct=no
24396 rm -rf conftest* *~conftest*
24398 echo "$as_me:24398: result: $cf_cv_prog_gnat_correct" >&5
24399 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
24402 cf_cv_prog_gnat_correct=no
24406 if test "x$cf_cv_prog_gnat_correct" = xyes; then
24408 ADAFLAGS="$ADAFLAGS -gnatpn"
24410 echo "$as_me:24410: checking optimization options for ADAFLAGS" >&5
24411 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
24415 ADAFLAGS="$ADAFLAGS -g"
24421 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
24423 ADAFLAGS="$ADAFLAGS $cf_O_flag"
24427 echo "$as_me:24427: result: $ADAFLAGS" >&5
24428 echo "${ECHO_T}$ADAFLAGS" >&6
24430 echo "$as_me:24430: checking if GNATPREP supports -T option" >&5
24431 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
24432 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 cf_cv_gnatprep_opt_t=no
24437 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
24440 echo "$as_me:24440: result: $cf_cv_gnatprep_opt_t" >&5
24441 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
24442 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
24444 echo "$as_me:24444: checking if GNAT supports generics" >&5
24445 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
24446 case $cf_gnat_version in
24448 cf_gnat_generics=yes
24451 cf_gnat_generics=no
24454 echo "$as_me:24454: result: $cf_gnat_generics" >&5
24455 echo "${ECHO_T}$cf_gnat_generics" >&6
24457 if test "$cf_gnat_generics" = yes
24459 cf_compile_generics=generics
24460 cf_generic_objects="\${GENOBJS}"
24462 cf_compile_generics=
24463 cf_generic_objects=
24466 echo "$as_me:24466: checking if GNAT supports SIGINT" >&5
24467 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
24468 if test "${cf_cv_gnat_sigint+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24472 rm -rf conftest* *~conftest*
24473 cat >>conftest.ads <<CF_EOF
24474 with Ada.Interrupts.Names;
24476 package ConfTest is
24478 pragma Warnings (Off); -- the next pragma exists since 3.11p
24479 pragma Unreserve_All_Interrupts;
24480 pragma Warnings (On);
24482 protected Process is
24484 function Continue return Boolean;
24485 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
24487 Done : Boolean := False;
24492 cat >>conftest.adb <<CF_EOF
24493 package body ConfTest is
24494 protected body Process is
24499 function Continue return Boolean is
24506 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24507 cf_cv_gnat_sigint=yes
24509 cf_cv_gnat_sigint=no
24511 rm -rf conftest* *~conftest*
24514 echo "$as_me:24514: result: $cf_cv_gnat_sigint" >&5
24515 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
24517 if test $cf_cv_gnat_sigint = yes ; then
24520 USE_GNAT_SIGINT="#"
24523 cf_gnat_libraries=no
24524 cf_gnat_projects=no
24526 if test "$enable_gnat_projects" != no ; then
24527 echo "$as_me:24527: checking if GNAT supports project files" >&5
24528 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
24529 case $cf_gnat_version in
24533 case $cf_cv_system_name in
24537 rm -rf conftest* *~conftest*
24538 if mkdir conftest.src conftest.bin conftest.lib
24541 rm -rf conftest* *~conftest*
24542 cat >>library.gpr <<CF_EOF
24544 Kind := External ("LIB_KIND");
24545 for Library_Name use "ConfTest";
24546 for Object_Dir use ".";
24547 for Library_ALI_Dir use External("LIBRARY_DIR");
24548 for Library_Version use External ("SONAME");
24549 for Library_Kind use Kind;
24550 for Library_Dir use External("BUILD_DIR");
24551 Source_Dir := External ("SOURCE_DIR");
24552 for Source_Dirs use (Source_Dir);
24555 cat >>confpackage.ads <<CF_EOF
24556 package ConfPackage is
24557 procedure conftest;
24560 cat >>confpackage.adb <<CF_EOF
24562 package body ConfPackage is
24563 procedure conftest is
24565 Text_IO.Put ("Hello World");
24570 if ( $cf_ada_make $ADAFLAGS \
24572 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
24573 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
24574 -XSOURCE_DIR=`pwd` \
24575 -XSONAME=libConfTest.so.1 \
24576 -XLIB_KIND=static 1>&5 2>&1 ) ; then
24577 cf_gnat_projects=yes
24581 if test -f conftest.lib/confpackage.ali
24583 cf_gnat_libraries=yes
24585 rm -rf conftest* *~conftest*
24590 echo "$as_me:24590: result: $cf_gnat_projects" >&5
24591 echo "${ECHO_T}$cf_gnat_projects" >&6
24592 fi # enable_gnat_projects
24594 if test $cf_gnat_projects = yes
24596 echo "$as_me:24596: checking if GNAT supports libraries" >&5
24597 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
24598 echo "$as_me:24598: result: $cf_gnat_libraries" >&5
24599 echo "${ECHO_T}$cf_gnat_libraries" >&6
24602 if test "$cf_gnat_projects" = yes
24604 USE_OLD_MAKERULES="#"
24605 USE_GNAT_PROJECTS=""
24607 USE_OLD_MAKERULES=""
24608 USE_GNAT_PROJECTS="#"
24611 if test "$cf_gnat_libraries" = yes
24613 USE_GNAT_LIBRARIES=""
24615 USE_GNAT_LIBRARIES="#"
24618 echo "$as_me:24618: checking for ada-compiler" >&5
24619 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
24621 # Check whether --with-ada-compiler or --without-ada-compiler was given.
24622 if test "${with_ada_compiler+set}" = set; then
24623 withval="$with_ada_compiler"
24624 cf_ada_compiler=$withval
24626 cf_ada_compiler=gnatmake
24629 echo "$as_me:24629: result: $cf_ada_compiler" >&5
24630 echo "${ECHO_T}$cf_ada_compiler" >&6
24632 cf_ada_package=terminal_interface
24634 echo "$as_me:24634: checking for ada-include" >&5
24635 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
24637 # Check whether --with-ada-include or --without-ada-include was given.
24638 if test "${with_ada_include+set}" = set; then
24639 withval="$with_ada_include"
24642 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
24643 fi; if test -n "$prefix/share/ada/adainclude" ; then
24645 if test "x$prefix" != xNONE; then
24646 cf_path_syntax="$prefix"
24648 cf_path_syntax="$ac_default_prefix"
24651 case ".$withval" in
24652 (.\$\(*\)*|.\'*\'*)
24656 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
24658 (.\${*prefix}*|.\${*dir}*)
24659 eval withval="$withval"
24660 case ".$withval" in
24662 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24667 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24670 { { echo "$as_me:24670: error: expected a pathname, not \"$withval\"" >&5
24671 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
24672 { (exit 1); exit 1; }; }
24677 eval ADA_INCLUDE="$withval"
24679 echo "$as_me:24679: result: $ADA_INCLUDE" >&5
24680 echo "${ECHO_T}$ADA_INCLUDE" >&6
24682 echo "$as_me:24682: checking for ada-objects" >&5
24683 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
24685 # Check whether --with-ada-objects or --without-ada-objects was given.
24686 if test "${with_ada_objects+set}" = set; then
24687 withval="$with_ada_objects"
24690 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
24691 fi; if test -n "$prefix/lib/ada/adalib" ; then
24693 if test "x$prefix" != xNONE; then
24694 cf_path_syntax="$prefix"
24696 cf_path_syntax="$ac_default_prefix"
24699 case ".$withval" in
24700 (.\$\(*\)*|.\'*\'*)
24704 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
24706 (.\${*prefix}*|.\${*dir}*)
24707 eval withval="$withval"
24708 case ".$withval" in
24710 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24715 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24718 { { echo "$as_me:24718: error: expected a pathname, not \"$withval\"" >&5
24719 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
24720 { (exit 1); exit 1; }; }
24725 eval ADA_OBJECTS="$withval"
24727 echo "$as_me:24727: result: $ADA_OBJECTS" >&5
24728 echo "${ECHO_T}$ADA_OBJECTS" >&6
24730 echo "$as_me:24730: checking if an Ada95 shared-library should be built" >&5
24731 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
24733 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
24734 if test "${with_ada_sharedlib+set}" = set; then
24735 withval="$with_ada_sharedlib"
24736 with_ada_sharedlib=$withval
24738 with_ada_sharedlib=no
24740 echo "$as_me:24740: result: $with_ada_sharedlib" >&5
24741 echo "${ECHO_T}$with_ada_sharedlib" >&6
24743 if test "x$with_ada_sharedlib" != xno
24745 if test "x$cf_gnat_projects" != xyes
24747 { echo "$as_me:24747: WARNING: disabling shared-library since GNAT projects are not supported" >&5
24748 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
24749 with_ada_sharedlib=no
24753 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
24754 MAKE_ADA_SHAREDLIB="#"
24756 if test "x$with_ada_sharedlib" != xno
24758 MAKE_ADA_SHAREDLIB=
24759 if test "x$with_ada_sharedlib" != xyes
24761 ADA_SHAREDLIB="$with_ada_sharedlib"
24765 # allow the Ada binding to be renamed
24767 echo "$as_me:24767: checking for ada-libname" >&5
24768 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
24770 # Check whether --with-ada-libname or --without-ada-libname was given.
24771 if test "${with_ada_libname+set}" = set; then
24772 withval="$with_ada_libname"
24773 ADA_LIBNAME=$withval
24775 ADA_LIBNAME=AdaCurses
24777 case "x$ADA_LIBNAME" in
24779 ADA_LIBNAME=AdaCurses
24783 echo "$as_me:24783: result: $ADA_LIBNAME" >&5
24784 echo "${ECHO_T}$ADA_LIBNAME" >&6
24792 # do this "late" to avoid conflict with header-checks
24793 if test "x$with_widec" = xyes ; then
24794 echo "$as_me:24794: checking for wchar_t" >&5
24795 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
24796 if test "${ac_cv_type_wchar_t+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 cat >conftest.$ac_ext <<_ACEOF
24800 #line 24800 "configure"
24801 #include "confdefs.h"
24802 $ac_includes_default
24808 if (sizeof (wchar_t))
24814 rm -f conftest.$ac_objext
24815 if { (eval echo "$as_me:24815: \"$ac_compile\"") >&5
24816 (eval $ac_compile) 2>&5
24818 echo "$as_me:24818: \$? = $ac_status" >&5
24819 (exit $ac_status); } &&
24820 { ac_try='test -s conftest.$ac_objext'
24821 { (eval echo "$as_me:24821: \"$ac_try\"") >&5
24822 (eval $ac_try) 2>&5
24824 echo "$as_me:24824: \$? = $ac_status" >&5
24825 (exit $ac_status); }; }; then
24826 ac_cv_type_wchar_t=yes
24828 echo "$as_me: failed program was:" >&5
24829 cat conftest.$ac_ext >&5
24830 ac_cv_type_wchar_t=no
24832 rm -f conftest.$ac_objext conftest.$ac_ext
24834 echo "$as_me:24834: result: $ac_cv_type_wchar_t" >&5
24835 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
24837 echo "$as_me:24837: checking size of wchar_t" >&5
24838 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
24839 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24842 if test "$ac_cv_type_wchar_t" = yes; then
24843 if test "$cross_compiling" = yes; then
24844 # Depending upon the size, compute the lo and hi bounds.
24845 cat >conftest.$ac_ext <<_ACEOF
24846 #line 24846 "configure"
24847 #include "confdefs.h"
24848 $ac_includes_default
24852 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
24857 rm -f conftest.$ac_objext
24858 if { (eval echo "$as_me:24858: \"$ac_compile\"") >&5
24859 (eval $ac_compile) 2>&5
24861 echo "$as_me:24861: \$? = $ac_status" >&5
24862 (exit $ac_status); } &&
24863 { ac_try='test -s conftest.$ac_objext'
24864 { (eval echo "$as_me:24864: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24867 echo "$as_me:24867: \$? = $ac_status" >&5
24868 (exit $ac_status); }; }; then
24871 cat >conftest.$ac_ext <<_ACEOF
24872 #line 24872 "configure"
24873 #include "confdefs.h"
24874 $ac_includes_default
24878 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
24883 rm -f conftest.$ac_objext
24884 if { (eval echo "$as_me:24884: \"$ac_compile\"") >&5
24885 (eval $ac_compile) 2>&5
24887 echo "$as_me:24887: \$? = $ac_status" >&5
24888 (exit $ac_status); } &&
24889 { ac_try='test -s conftest.$ac_objext'
24890 { (eval echo "$as_me:24890: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24893 echo "$as_me:24893: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24895 ac_hi=$ac_mid; break
24897 echo "$as_me: failed program was:" >&5
24898 cat conftest.$ac_ext >&5
24899 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
24901 rm -f conftest.$ac_objext conftest.$ac_ext
24904 echo "$as_me: failed program was:" >&5
24905 cat conftest.$ac_ext >&5
24908 cat >conftest.$ac_ext <<_ACEOF
24909 #line 24909 "configure"
24910 #include "confdefs.h"
24911 $ac_includes_default
24915 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
24920 rm -f conftest.$ac_objext
24921 if { (eval echo "$as_me:24921: \"$ac_compile\"") >&5
24922 (eval $ac_compile) 2>&5
24924 echo "$as_me:24924: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
24926 { ac_try='test -s conftest.$ac_objext'
24927 { (eval echo "$as_me:24927: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:24930: \$? = $ac_status" >&5
24931 (exit $ac_status); }; }; then
24932 ac_lo=$ac_mid; break
24934 echo "$as_me: failed program was:" >&5
24935 cat conftest.$ac_ext >&5
24936 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
24938 rm -f conftest.$ac_objext conftest.$ac_ext
24941 rm -f conftest.$ac_objext conftest.$ac_ext
24942 # Binary search between lo and hi bounds.
24943 while test "x$ac_lo" != "x$ac_hi"; do
24944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24945 cat >conftest.$ac_ext <<_ACEOF
24946 #line 24946 "configure"
24947 #include "confdefs.h"
24948 $ac_includes_default
24952 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
24957 rm -f conftest.$ac_objext
24958 if { (eval echo "$as_me:24958: \"$ac_compile\"") >&5
24959 (eval $ac_compile) 2>&5
24961 echo "$as_me:24961: \$? = $ac_status" >&5
24962 (exit $ac_status); } &&
24963 { ac_try='test -s conftest.$ac_objext'
24964 { (eval echo "$as_me:24964: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24967 echo "$as_me:24967: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
24971 echo "$as_me: failed program was:" >&5
24972 cat conftest.$ac_ext >&5
24973 ac_lo=`expr $ac_mid + 1`
24975 rm -f conftest.$ac_objext conftest.$ac_ext
24977 ac_cv_sizeof_wchar_t=$ac_lo
24979 if test "$cross_compiling" = yes; then
24980 { { echo "$as_me:24980: error: cannot run test program while cross compiling" >&5
24981 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24982 { (exit 1); exit 1; }; }
24984 cat >conftest.$ac_ext <<_ACEOF
24985 #line 24985 "configure"
24986 #include "confdefs.h"
24987 $ac_includes_default
24991 FILE *f = fopen ("conftest.val", "w");
24993 $ac_main_return (1);
24994 fprintf (f, "%d", (sizeof (wchar_t)));
25000 rm -f conftest$ac_exeext
25001 if { (eval echo "$as_me:25001: \"$ac_link\"") >&5
25002 (eval $ac_link) 2>&5
25004 echo "$as_me:25004: \$? = $ac_status" >&5
25005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25006 { (eval echo "$as_me:25006: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25009 echo "$as_me:25009: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 ac_cv_sizeof_wchar_t=`cat conftest.val`
25013 echo "$as_me: program exited with status $ac_status" >&5
25014 echo "$as_me: failed program was:" >&5
25015 cat conftest.$ac_ext >&5
25017 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25022 ac_cv_sizeof_wchar_t=0
25025 echo "$as_me:25025: result: $ac_cv_sizeof_wchar_t" >&5
25026 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
25027 cat >>confdefs.h <<EOF
25028 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25033 ### Construct the ncurses library-subsets, if any, from this set of keywords:
25034 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
25036 ### ticlib modules may be a separate library, otherwise contained in termlib.
25037 ### termlib modules may be a separate library, otherwise contained in ncurses.
25039 ### The of "+" or " " between the tokens controls the way the script
25040 ### chooses to split module lists into libraries.
25042 ### (see CF_LIB_RULES).
25043 echo "$as_me:25043: checking for library subsets" >&5
25044 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
25047 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
25048 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
25049 if test "$with_ticlib" != no ; then
25050 LIB_SUBSETS="${LIB_SUBSETS} "
25052 LIB_SUBSETS="${LIB_SUBSETS}+"
25056 LIB_SUBSETS="${LIB_SUBSETS}termlib"
25057 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
25059 if test "$with_termlib" != no ; then
25060 LIB_SUBSETS="${LIB_SUBSETS} "
25062 LIB_SUBSETS="${LIB_SUBSETS}+"
25065 LIB_SUBSETS="${LIB_SUBSETS}base"
25067 # Most term-driver calls are to tinfo, but some like init_pair are to the
25068 # base library (so it resides in base).
25069 if test "$with_term_driver" != no ; then
25070 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
25071 case $cf_cv_system_name in
25072 (*mingw32*|*mingw64*)
25073 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
25074 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
25077 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
25082 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
25083 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
25085 echo "$as_me:25085: result: $LIB_SUBSETS" >&5
25086 echo "${ECHO_T}$LIB_SUBSETS" >&6
25088 ### Construct the list of include-directories to be generated
25090 if test "$srcdir" != "."; then
25091 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
25093 CPPFLAGS="-I../include $CPPFLAGS"
25094 if test "$srcdir" != "."; then
25095 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
25097 CPPFLAGS="-I. $CPPFLAGS"
25099 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
25100 if test "$srcdir" != "."; then
25101 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
25103 if test "$GCC" != yes; then
25104 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25105 elif test "$includedir" != "/usr/include"; then
25106 if test "$includedir" = '${prefix}/include' ; then
25107 if test x$prefix != x/usr ; then
25108 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25111 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25115 ### Build up pieces for makefile rules
25116 echo "$as_me:25116: checking default library suffix" >&5
25117 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
25119 case $DFT_LWR_MODEL in
25120 (libtool) DFT_ARG_SUFFIX='' ;;
25121 (normal) DFT_ARG_SUFFIX='' ;;
25122 (debug) DFT_ARG_SUFFIX='_g' ;;
25123 (profile) DFT_ARG_SUFFIX='_p' ;;
25124 (shared) DFT_ARG_SUFFIX='' ;;
25126 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
25127 echo "$as_me:25127: result: $DFT_ARG_SUFFIX" >&5
25128 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
25130 echo "$as_me:25130: checking default library-dependency suffix" >&5
25131 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
25133 case X$DFT_LWR_MODEL in
25135 DFT_LIB_SUFFIX='.la'
25136 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25139 DFT_LIB_SUFFIX='_g.a'
25140 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25143 DFT_LIB_SUFFIX='_p.a'
25144 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25147 case $cf_cv_system_name in
25149 DFT_LIB_SUFFIX='.so'
25150 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25152 (cygwin*|msys*|mingw*)
25153 DFT_LIB_SUFFIX='.dll'
25154 DFT_DEP_SUFFIX='.dll.a'
25157 DFT_LIB_SUFFIX='.dylib'
25158 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25163 DFT_LIB_SUFFIX='.so'
25164 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25167 DFT_LIB_SUFFIX='.sl'
25168 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25173 DFT_LIB_SUFFIX='.so'
25174 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25179 DFT_LIB_SUFFIX='.a'
25180 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25183 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25185 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
25186 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
25188 echo "$as_me:25188: result: $DFT_DEP_SUFFIX" >&5
25189 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
25191 echo "$as_me:25191: checking default object directory" >&5
25192 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
25194 case $DFT_LWR_MODEL in
25195 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
25196 (normal) DFT_OBJ_SUBDIR='objects' ;;
25197 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
25198 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
25200 case $cf_cv_system_name in
25202 DFT_OBJ_SUBDIR='objects' ;;
25204 DFT_OBJ_SUBDIR='obj_s' ;;
25207 echo "$as_me:25207: result: $DFT_OBJ_SUBDIR" >&5
25208 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
25210 if test "x$cf_with_cxx" = xyes ; then
25211 echo "$as_me:25211: checking c++ library-dependency suffix" >&5
25212 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
25213 if test "$with_libtool" != "no"; then
25214 # libtool thinks it can make c++ shared libraries (perhaps only g++)
25215 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25216 elif test "$with_shared_cxx" != "no"; then
25217 # also for g++ users...
25218 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25220 # we normally make a static library because C/C++ library rules differ
25224 CXX_LIB_SUFFIX='.la'
25225 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25228 CXX_LIB_SUFFIX='_g.a'
25229 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25232 CXX_LIB_SUFFIX='_p.a'
25233 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25236 case $cf_cv_system_name in
25238 CXX_LIB_SUFFIX='.so'
25239 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25241 (cygwin*|msys*|mingw*)
25242 CXX_LIB_SUFFIX='.dll'
25243 CXX_DEP_SUFFIX='.dll.a'
25246 CXX_LIB_SUFFIX='.dylib'
25247 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25252 CXX_LIB_SUFFIX='.so'
25253 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25256 CXX_LIB_SUFFIX='.sl'
25257 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25262 CXX_LIB_SUFFIX='.so'
25263 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25268 CXX_LIB_SUFFIX='.a'
25269 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25272 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25274 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
25275 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
25279 echo "$as_me:25279: result: $CXX_LIB_SUFFIX" >&5
25280 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
25284 # do not want -ldl in build except as needed for -lncurses dependency
25285 if test "x$with_dlsym" = xyes ; then
25286 if test $DFT_LWR_MODEL = shared || \
25287 test $DFT_LWR_MODEL = libtool ; then
25289 # remove dl library from $LIBS
25290 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25294 ### Set up low-level terminfo dependencies for makefiles.
25296 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
25297 # do not need libdl
25299 if test "x$with_dlsym" = xyes ; then
25301 # remove dl library from $SHLIB_LIST
25302 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25306 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
25307 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
25308 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
25309 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
25311 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
25314 if test "$with_ticlib" != no ; then
25316 if test "x$with_ticlib" != xyes ; then
25317 TICS_NAME=$with_ticlib
25318 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25319 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25320 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25321 TICS_LIB_SUFFIX="${with_ticlib}"
25323 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25324 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
25325 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
25326 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
25328 TICS_LDFLAGS="-L${LIB_DIR}"
25329 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
25331 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25332 TICS_LDFLAGS="-L${LIB_DIR}"
25333 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25336 if test "$with_termlib" != no ; then
25338 if test "x$with_termlib" != xyes ; then
25339 TINFO_NAME=$with_termlib
25340 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25341 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25342 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25343 TINFO_LIB_SUFFIX="${with_termlib}"
25345 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25346 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
25347 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
25348 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
25351 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25352 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25353 if test "$DFT_LWR_MODEL" = "libtool"; then
25354 TEST_ARGS="${TEST_DEPS}"
25355 TEST_ARG2="${TEST_DEP2}"
25356 TINFO_LDFLAGS="-L${LIB_DIR}"
25357 TINFO_LIBS="$TEST_ARGS"
25358 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
25359 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
25361 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
25362 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
25363 if test "x$with_term_driver" != xno ; then
25364 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25365 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
25366 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
25368 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25369 TINFO_LIBS="$TEST_ARGS"
25371 TINFO_LDFLAGS="-L${LIB_DIR}"
25372 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25375 # the next lines are needed for linking libtic over libncurses
25376 TINFO_NAME=${LIB_NAME}
25377 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25378 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
25379 if test "x$with_tic_depends" = xyes ; then
25380 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25382 TICS_LIST="$SHLIB_LIST"
25385 TINFO_LDFLAGS="-L${LIB_DIR}"
25386 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25389 if test "$DFT_LWR_MODEL" = shared ; then
25390 case $cf_cv_system_name in
25392 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
25398 if test "x$with_dlsym" = xyes ; then
25400 # remove dl library from $TICS_LIST
25401 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25405 if test "$DFT_LWR_MODEL" = "libtool"; then
25410 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
25412 case $DFT_LWR_MODEL in
25413 (normal|debug|profile)
25415 if test "$GCC" = yes ; then
25416 case $cf_cv_system_name in
25417 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
25421 (*) # normally, except when broken
25422 LDFLAGS_STATIC=-static
25423 LDFLAGS_SHARED=-dynamic
25427 case $cf_cv_system_name in
25428 (aix[4-7]*) # from ld manpage
25429 LDFLAGS_STATIC=-bstatic
25430 LDFLAGS_SHARED=-bdynamic
25432 (hpux*) # from ld manpage for hpux10.20, hpux11.11
25433 # We could also use just "archive" and "shared".
25434 LDFLAGS_STATIC=-Wl,-a,archive_shared
25435 LDFLAGS_SHARED=-Wl,-a,shared_archive
25437 (irix*) # from ld manpage IRIX64
25438 LDFLAGS_STATIC=-Bstatic
25439 LDFLAGS_SHARED=-Bdynamic
25441 (osf[45]*) # from ld manpage osf4.0d, osf5.1
25442 # alternative "-oldstyle_liblookup" (not in cc manpage)
25443 LDFLAGS_STATIC=-noso
25444 LDFLAGS_SHARED=-so_archive
25447 LDFLAGS_STATIC=-Bstatic
25448 LDFLAGS_SHARED=-Bdynamic
25453 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
25455 echo "$as_me:25455: checking if linker supports switching between static/dynamic" >&5
25456 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
25458 rm -f libconftest.a
25459 cat >conftest.$ac_ext <<EOF
25460 #line 25460 "configure"
25462 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
25464 if { (eval echo "$as_me:25464: \"$ac_compile\"") >&5
25465 (eval $ac_compile) 2>&5
25467 echo "$as_me:25467: \$? = $ac_status" >&5
25468 (exit $ac_status); } ; then
25469 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
25470 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
25474 cf_save_LIBS="$LIBS"
25476 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
25477 cat >conftest.$ac_ext <<_ACEOF
25478 #line 25478 "configure"
25479 #include "confdefs.h"
25481 #line 25481 "configure"
25483 int cf_ldflags_static(FILE *fp);
25489 return cf_ldflags_static(stdin);
25495 rm -f conftest.$ac_objext conftest$ac_exeext
25496 if { (eval echo "$as_me:25496: \"$ac_link\"") >&5
25497 (eval $ac_link) 2>&5
25499 echo "$as_me:25499: \$? = $ac_status" >&5
25500 (exit $ac_status); } &&
25501 { ac_try='test -s conftest$ac_exeext'
25502 { (eval echo "$as_me:25502: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25505 echo "$as_me:25505: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25508 # some linkers simply ignore the -dynamic
25509 case x`file conftest$ac_exeext 2>/dev/null` in
25511 cf_ldflags_static=no
25514 cf_ldflags_static=yes
25519 echo "$as_me: failed program was:" >&5
25520 cat conftest.$ac_ext >&5
25521 cf_ldflags_static=no
25523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25525 rm -f libconftest.*
25526 LIBS="$cf_save_LIBS"
25528 echo "$as_me:25528: result: $cf_ldflags_static" >&5
25529 echo "${ECHO_T}$cf_ldflags_static" >&6
25531 if test $cf_ldflags_static != yes
25544 echo "$as_me:25544: checking where we will install curses.h" >&5
25545 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
25548 if test "$with_overwrite" = no && \
25549 ( test "x$includedir" = 'x${prefix}/include' || \
25550 test "x$includedir" = "x${prefix}/include" )
25552 includesubdir="/ncurses${USE_LIB_SUFFIX}"
25554 echo "$as_me:25554: result: ${includedir}${includesubdir}" >&5
25555 echo "${ECHO_T}${includedir}${includesubdir}" >&6
25557 ### Resolve a conflict between normal and wide-curses by forcing applications
25558 ### that will need libutf8 to add it to their configure script.
25559 if test "$with_overwrite" != no ; then
25560 if test "$NCURSES_LIBUTF8" = 1 ; then
25561 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
25562 { echo "$as_me:25562: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
25563 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
25566 WITH_OVERWRITE=$with_overwrite
25568 # used to separate tack out of the tree
25571 ### predefined stuff for the test programs
25573 cat >>confdefs.h <<\EOF
25574 #define HAVE_SLK_COLOR 1
25577 ### Construct the list of subdirectories for which we'll customize makefiles
25578 ### with the appropriate compile-rules.
25580 echo "$as_me:25580: checking for src modules" >&5
25581 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
25583 # dependencies and linker-arguments for test-programs
25584 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
25585 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
25586 if test "$DFT_LWR_MODEL" = "libtool"; then
25587 TEST_ARGS="${TEST_DEPS}"
25588 TEST_ARG2="${TEST_DEP2}"
25590 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
25591 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
25594 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
25596 for cf_dir in $modules_to_build
25598 if test -f $srcdir/$cf_dir/modules; then
25600 # We may/may not have tack in the distribution, though the
25602 if test $cf_dir = tack ; then
25603 if test "x$cf_with_tack" != "xyes"; then
25608 if test -z "$cf_cv_src_modules"; then
25609 cf_cv_src_modules=$cf_dir
25611 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
25614 # Make the ncurses_cfg.h file record the library interface files as
25615 # well. These are header files that are the same name as their
25616 # directory. Ncurses is the only library that does not follow
25618 if test $cf_dir = tack ; then
25620 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
25622 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
25624 cat >>confdefs.h <<EOF
25625 #define HAVE_${cf_have_include}_H 1
25628 cat >>confdefs.h <<EOF
25629 #define HAVE_LIB${cf_have_include} 1
25632 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
25633 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
25634 if test "$DFT_LWR_MODEL" = "libtool"; then
25635 TEST_ARGS="${TEST_DEPS}"
25636 TEST_ARG2="${TEST_DEP2}"
25638 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
25639 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
25641 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
25645 echo "$as_me:25645: result: $cf_cv_src_modules" >&5
25646 echo "${ECHO_T}$cf_cv_src_modules" >&6
25648 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
25649 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
25652 if test "x$cf_with_manpages" != xno ; then
25653 SRC_SUBDIRS="$SRC_SUBDIRS man"
25655 SRC_SUBDIRS="$SRC_SUBDIRS include"
25656 for cf_dir in $cf_cv_src_modules
25658 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
25660 if test "x$cf_with_tests" != "xno" ; then
25661 SRC_SUBDIRS="$SRC_SUBDIRS test"
25663 # always make this, to install the ncurses-config script
25664 SRC_SUBDIRS="$SRC_SUBDIRS misc"
25665 if test "$cf_with_cxx_binding" != no; then
25666 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
25667 SRC_SUBDIRS="$SRC_SUBDIRS c++"
25670 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
25671 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
25674 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
25675 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
25676 ADA_SUBDIRS="gen src"
25677 if test "x$cf_with_tests" != "xno" ; then
25678 ADA_SUBDIRS="$ADA_SUBDIRS samples"
25683 for cf_dir in $SRC_SUBDIRS
25685 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
25688 if test -n "$ADA_SUBDIRS"; then
25689 for cf_dir in $ADA_SUBDIRS
25691 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
25696 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
25697 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
25698 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
25699 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
25703 for cf_item in $cf_list_models
25707 (libtool) cf_subdir='obj_lo' ;;
25708 (normal) cf_subdir='objects' ;;
25709 (debug) cf_subdir='obj_g' ;;
25710 (profile) cf_subdir='obj_p' ;;
25712 case $cf_cv_system_name in
25714 cf_subdir='objects' ;;
25716 cf_subdir='obj_s' ;;
25720 for cf_item2 in $DIRS_TO_MAKE
25722 test $cf_item2 = $cf_subdir && break
25724 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
25726 for cf_dir in $DIRS_TO_MAKE
25728 test ! -d $cf_dir && mkdir $cf_dir
25731 # symbols that differ when compiling Ada95 by itself.
25732 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
25734 # values to use as strings
25736 cat >>confdefs.h <<EOF
25737 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
25740 cat >>confdefs.h <<EOF
25741 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
25744 ### Now that we're done running tests, add the compiler-warnings, if any
25749 cf_new_extra_cppflags=
25751 for cf_add_cflags in $EXTRA_CFLAGS
25753 case $cf_fix_cppflags in
25755 case $cf_add_cflags in
25756 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
25757 case $cf_add_cflags in
25759 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
25761 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
25762 && test -z "${cf_tst_cflags}" \
25763 && cf_fix_cppflags=yes
25765 if test $cf_fix_cppflags = yes ; then
25767 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
25768 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
25771 elif test "${cf_tst_cflags}" = "\"'" ; then
25773 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
25774 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
25780 case "$CPPFLAGS" in
25784 case $cf_add_cflags in
25786 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
25788 CPPFLAGS=`echo "$CPPFLAGS" | \
25789 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
25790 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
25795 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
25796 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
25803 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
25804 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
25811 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
25812 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
25814 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
25816 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
25817 && test -z "${cf_tst_cflags}" \
25818 && cf_fix_cppflags=no
25823 if test -n "$cf_new_cflags" ; then
25825 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
25826 CFLAGS="${CFLAGS}$cf_new_cflags"
25830 if test -n "$cf_new_cppflags" ; then
25832 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
25833 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
25837 if test -n "$cf_new_extra_cppflags" ; then
25839 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
25840 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
25844 ### Define substitutions for header files to avoid name-pollution
25846 if test "x$cf_cv_have_tcgetattr" = xyes ; then
25852 if test "x$ac_cv_header_stdint_h" = xyes ; then
25858 if test "x$ac_cv_header_termio_h" = xyes ; then
25864 if test "x$ac_cv_header_termios_h" = xyes ; then
25870 ################################################################################
25871 test "x$use_database" = xyes && \
25872 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
25874 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
25875 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
25877 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
25878 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
25881 if test "x$cf_with_tests" != xno ; then
25887 ADAHTML_DIR=../../doc/html/ada
25889 # these could be configurable, but are not currently
25895 # workaround for OS/2 (20151017)
25896 case $cf_cv_system_name in
25898 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
25905 # workaround for g++ versus Solaris (20131116)
25906 case $cf_cv_system_name in
25908 case "x$CPPFLAGS" in
25909 (*-D_XOPEN_SOURCE_EXTENDED*)
25910 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
25912 echo "${as_me:-configure}:25912: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
25914 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
25915 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
25921 # Help to automatically enable the extended curses features when using either
25922 # the *-config or the ".pc" files by adding defines.
25923 echo "$as_me:25923: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
25924 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
25926 for cf_loop1 in $CPPFLAGS_after_XOPEN
25929 for cf_loop2 in $CPPFLAGS_before_XOPEN
25931 if test "x$cf_loop1" = "x$cf_loop2"
25937 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
25939 echo "$as_me:25939: result: $PKG_CFLAGS" >&5
25940 echo "${ECHO_T}$PKG_CFLAGS" >&6
25942 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
25943 case "x$NCURSES_OSPEED" in
25952 cat >>confdefs.h <<EOF
25953 #define NCURSES_OSPEED_COMPAT $cf_compatible
25956 case "x$cf_cv_typeof_chtype" in
25957 (xshort|xint|xlong)
25958 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
25962 case "x$cf_cv_typeof_mmask_t" in
25963 (xshort|xint|xlong)
25964 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
25968 # substitute into misc/Makefile to suppress
25969 # (un)install.data from the
25970 # (un)install rules.
25971 if test "x$cf_with_db_install" = "xno"; then
25973 MISC_UNINSTALL_DATA=
25975 MISC_INSTALL_DATA=install.data
25976 MISC_UNINSTALL_DATA=uninstall.data
25979 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
25982 MAKE_DATABASE="$MAKE_TERMINFO"
25985 if test -n "$PACKAGE"
25987 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
25989 echo "package: $PACKAGE"
25995 if test -n "$RESULTING_SYMS"
25997 cf_filter_syms=$cf_dft_filter_syms
25998 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
26000 echo "${as_me:-configure}:26000: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
26004 if test "x$WILDCARD_SYMS" = xno
26009 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
26011 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
26012 if test $cf_filter_syms = yes
26014 RESULTING_SYMS=resulting.map
26017 if test "x$cross_compiling" = xyes ; then
26018 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
26021 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
26025 # This is used for the *-config script and *.pc data files.
26027 echo "$as_me:26027: checking for linker search path" >&5
26028 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
26029 if test "${cf_cv_ld_searchpath+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26033 if test "$cross_compiling" != yes ; then
26035 # GNU binutils' ld does not involve permissions which may stop ldconfig.
26036 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
26038 # The -NX options tell newer versions of Linux ldconfig to not attempt to
26039 # update the cache, which makes it run faster.
26040 test -z "$cf_pathlist" && \
26041 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
26043 test -z "$cf_pathlist" &&
26044 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
26046 # This works with OpenBSD 6.5, which lists only filenames
26047 test -z "$cf_pathlist" &&
26048 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
26050 if test -z "$cf_pathlist"
26052 # dyld default path with MacOS
26053 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
26055 # do this to bypass check
26056 cf_cv_ld_searchpath='$HOME/lib'
26057 cf_pathlist="/usr/local/lib /lib /usr/lib"
26061 if test -z "$cf_pathlist"
26063 # Solaris is hardcoded
26064 if test -d /opt/SUNWspro/lib
26066 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
26067 elif test -d /usr/ccs/lib
26069 cf_pathlist="/usr/ccs/lib /usr/lib"
26075 # If nothing else, assume it is conventional
26076 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
26078 # Finally, check that this is only directories
26079 for cf_path in $0 $cf_pathlist
26081 if test -d "$cf_path"; then
26082 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
26083 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
26087 # Ensure that it is nonempty
26088 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
26091 echo "$as_me:26091: result: $cf_cv_ld_searchpath" >&5
26092 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
26094 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
26096 cat >>confdefs.h <<\EOF
26097 #define HAVE_CURSES_DATA_BOOLNAMES 1
26100 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_MAKEFILES Makefile"
26101 ac_config_commands="$ac_config_commands default"
26102 cat >confcache <<\_ACEOF
26103 # This file is a shell script that caches the results of configure
26104 # tests run on this system so they can be shared between configure
26105 # scripts and configure runs, see configure's option --config-cache.
26106 # It is not useful on other systems. If it contains results you don't
26107 # want to keep, you may remove or edit it.
26109 # config.status only pays attention to the cache file if you give it
26110 # the --recheck option to rerun configure.
26112 # `ac_cv_env_foo' variables (set or unset) will be overriden when
26113 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26114 # following values.
26118 # The following way of writing the cache mishandles newlines in values,
26119 # but we know of no workaround that is simple, portable, and efficient.
26120 # So, don't put newlines in cache variables' values.
26121 # Ultrix sh set writes to stderr and can't be redirected directly,
26122 # and sets the high bit in the cache file unless we assign to the vars.
26125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26127 # `set' does not quote correctly, so add quotes (double-quote
26128 # substitution turns \\\\ into \\, and sed turns \\ into \).
26131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26134 # `set' quotes correctly as required by POSIX, so do not add quotes.
26136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26147 if cmp -s $cache_file confcache; then :; else
26148 if test -w $cache_file; then
26149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26150 cat confcache >$cache_file
26152 echo "not updating unwritable cache $cache_file"
26157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26158 # Let make expand exec_prefix.
26159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26161 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26162 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26163 # trailing colons and then remove the whole line if VPATH becomes empty
26164 # (actually we leave an empty line to preserve line numbers).
26165 if test "x$srcdir" = x.; then
26166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26167 s/:*\$(srcdir):*/:/;
26168 s/:*\${srcdir}:*/:/;
26170 s/^\([^=]*=[ ]*\):*/\1/;
26176 DEFS=-DHAVE_CONFIG_H
26178 : ${CONFIG_STATUS=./config.status}
26179 ac_clean_files_save=$ac_clean_files
26180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26181 { echo "$as_me:26181: creating $CONFIG_STATUS" >&5
26182 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26183 cat >$CONFIG_STATUS <<_ACEOF
26185 # Generated automatically by configure.
26186 # Run this file to recreate the current configuration.
26187 # Compiler output produced by configure, useful for debugging
26188 # configure, is in config.log if it exists.
26191 SHELL=\${CONFIG_SHELL-$SHELL}
26192 ac_cs_invocation="\$0 \$@"
26196 cat >>$CONFIG_STATUS <<\_ACEOF
26197 # Be Bourne compatible
26198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26201 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26205 # Name of the executable.
26206 as_me=`echo "$0" |sed 's,.*[\\/],,'`
26208 if expr a : '\(a\)' >/dev/null 2>&1; then
26214 rm -f conf$$ conf$$.exe conf$$.file
26216 if ln -s conf$$.file conf$$ 2>/dev/null; then
26217 # We could just check for DJGPP; but this test a) works b) is more generic
26218 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26219 if test -f conf$$.exe; then
26220 # Don't use ln at all; we don't have any links
26225 elif ln conf$$.file conf$$ 2>/dev/null; then
26230 rm -f conf$$ conf$$.exe conf$$.file
26232 as_executable_p="test -f"
26234 # Support unset when possible.
26235 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26242 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26243 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26244 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26245 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26246 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26247 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26248 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26249 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26252 # We need space, tab and new line, in precisely that order.
26258 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
26264 # Files that config.status was made for.
26265 if test -n "$ac_config_files"; then
26266 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26269 if test -n "$ac_config_headers"; then
26270 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26273 if test -n "$ac_config_links"; then
26274 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26277 if test -n "$ac_config_commands"; then
26278 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26281 cat >>$CONFIG_STATUS <<\EOF
26284 \`$as_me' instantiates files from templates according to the
26285 current configuration.
26287 Usage: $0 [OPTIONS] [FILE]...
26289 -h, --help print this help, then exit
26290 -V, --version print version number, then exit
26291 -d, --debug don't remove temporary files
26292 --recheck update $as_me by reconfiguring in the same conditions
26293 --file=FILE[:TEMPLATE]
26294 instantiate the configuration file FILE
26295 --header=FILE[:TEMPLATE]
26296 instantiate the configuration header FILE
26298 Configuration files:
26301 Configuration headers:
26304 Configuration commands:
26307 Report bugs to <dickey@invisible-island.net>."
26310 cat >>$CONFIG_STATUS <<EOF
26313 configured by $0, generated by GNU Autoconf 2.52.20190901,
26314 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26316 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26317 Free Software Foundation, Inc.
26318 This config.status script is free software; the Free Software Foundation
26319 gives unlimited permission to copy, distribute and modify it."
26324 cat >>$CONFIG_STATUS <<\EOF
26325 # If no file are specified by the user, then we need to provide default
26326 # value. By we need to know if files were specified by the user.
26332 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26333 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26335 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
26339 *) # This is not an option, so the user has probably given explicit
26341 ac_need_defaults=false;;
26345 # Handling of the options.
26347 cat >>$CONFIG_STATUS <<EOF
26348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26349 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
26350 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
26352 cat >>$CONFIG_STATUS <<\EOF
26353 --version | --vers* | -V )
26354 echo "$ac_cs_version"; exit 0 ;;
26356 # Conflict between --help and --header
26357 { { echo "$as_me:26357: error: ambiguous option: $1
26358 Try \`$0 --help' for more information." >&5
26359 echo "$as_me: error: ambiguous option: $1
26360 Try \`$0 --help' for more information." >&2;}
26361 { (exit 1); exit 1; }; };;
26362 --help | --hel | -h )
26363 echo "$ac_cs_usage"; exit 0 ;;
26364 --debug | --d* | -d )
26366 --file | --fil | --fi | --f )
26368 CONFIG_FILES="$CONFIG_FILES $1"
26369 ac_need_defaults=false;;
26370 --header | --heade | --head | --hea )
26372 CONFIG_HEADERS="$CONFIG_HEADERS $1"
26373 ac_need_defaults=false;;
26375 # This is an error.
26376 -*) { { echo "$as_me:26376: error: unrecognized option: $1
26377 Try \`$0 --help' for more information." >&5
26378 echo "$as_me: error: unrecognized option: $1
26379 Try \`$0 --help' for more information." >&2;}
26380 { (exit 1); exit 1; }; } ;;
26382 *) ac_config_targets="$ac_config_targets $1" ;;
26391 ## ----------------------- ##
26392 ## Running config.status. ##
26393 ## ----------------------- ##
26395 This file was extended by $as_me 2.52.20190901, executed with
26396 CONFIG_FILES = $CONFIG_FILES
26397 CONFIG_HEADERS = $CONFIG_HEADERS
26398 CONFIG_LINKS = $CONFIG_LINKS
26399 CONFIG_COMMANDS = $CONFIG_COMMANDS
26400 > $ac_cs_invocation
26401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26406 cat >>$CONFIG_STATUS <<EOF
26408 # INIT-COMMANDS section.
26411 ### Special initialization commands, used to pass information from the
26412 ### configuration-run into config.status
26415 ALTERNATE_SYMS="$ALTERNATE_SYMS"
26416 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
26417 DFT_LWR_MODEL="$DFT_LWR_MODEL"
26419 EXTRA_SUFFIX="$EXTRA_SUFFIX"
26420 LDCONFIG="$LDCONFIG"
26421 LIBTOOL_VERSION="$LIBTOOL_VERSION"
26422 LIB_NAME="$LIB_NAME"
26423 LIB_PREFIX="$LIB_PREFIX"
26424 LIB_SUBSETS="$LIB_SUBSETS"
26425 LIB_SUFFIX="$LIB_SUFFIX"
26426 LIB_TRACING="$LIB_TRACING"
26428 MAKE_TERMINFO="$MAKE_TERMINFO"
26429 NCURSES_MAJOR="$NCURSES_MAJOR"
26430 NCURSES_MINOR="$NCURSES_MINOR"
26431 NCURSES_OSPEED="$NCURSES_OSPEED"
26432 NCURSES_PATCH="$NCURSES_PATCH"
26433 SRC_SUBDIRS="$SRC_SUBDIRS"
26434 TERMINFO="$TERMINFO"
26435 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
26436 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
26437 TICS_NAME="$TICS_NAME"
26438 TICS_SUFFIX="$TICS_SUFFIX"
26439 TIC_PATH="$TIC_PATH"
26440 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
26441 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
26442 TINFO_NAME="$TINFO_NAME"
26443 TINFO_SUFFIX="$TINFO_SUFFIX"
26444 UNALTERED_SYMS="$UNALTERED_SYMS"
26445 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
26446 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
26447 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
26448 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
26449 WILDCARD_SYMS="$WILDCARD_SYMS"
26450 WITH_CURSES_H="$with_curses_h"
26451 WITH_ECHO="${enable_echo:=yes}"
26452 WITH_OVERWRITE="$with_overwrite"
26453 cf_LIST_MODELS="$cf_list_models"
26454 cf_cv_abi_version="$cf_cv_abi_version"
26455 cf_cv_do_relink="$cf_cv_do_relink"
26456 cf_cv_do_reranlib="$cf_cv_do_reranlib"
26457 cf_cv_do_symlinks="$cf_cv_do_symlinks"
26458 cf_cv_enable_lp64="$cf_cv_enable_lp64"
26459 cf_cv_enable_opaque="$cf_cv_enable_opaque"
26460 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
26461 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
26462 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
26463 cf_cv_rel_version="$cf_cv_rel_version"
26464 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
26465 cf_cv_shared_soname='$cf_cv_shared_soname'
26466 cf_cv_shlib_version="$cf_cv_shlib_version"
26467 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
26468 cf_cv_system_name="$cf_cv_system_name"
26469 cf_cv_term_driver="$with_term_driver"
26470 cf_with_ada="$cf_with_ada"
26471 cf_with_cxx_binding="$cf_with_cxx_binding"
26472 cf_with_db_install="$cf_with_db_install"
26473 cf_with_manpages="$cf_with_manpages"
26474 cf_with_tests="$cf_with_tests"
26477 with_shared_cxx="$with_shared_cxx"
26481 cat >>$CONFIG_STATUS <<\EOF
26482 for ac_config_target in $ac_config_targets
26484 case "$ac_config_target" in
26485 # Handling of arguments.
26486 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
26487 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
26488 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
26489 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
26490 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
26491 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
26492 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26493 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26494 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
26495 *) { { echo "$as_me:26495: error: invalid argument: $ac_config_target" >&5
26496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26497 { (exit 1); exit 1; }; };;
26501 # If the user did not use the arguments to specify the items to instantiate,
26502 # then the envvar interface is used. Set only those that are not.
26503 # We use the long form for the default assignment because of an extremely
26504 # bizarre bug on SunOS 4.1.3.
26505 if $ac_need_defaults; then
26506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26507 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26511 # Create a temporary directory, and hook for its removal unless debugging.
26514 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26515 trap '{ (exit 1); exit 1; }' 1 2 13 15
26518 # Create a (secure) tmp directory for tmp files.
26521 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
26522 test -n "$tmp" && test -d "$tmp"
26525 tmp=$TMPDIR/cs$$-$RANDOM
26526 (umask 077 && mkdir $tmp)
26529 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
26530 { (exit 1); exit 1; }
26535 cat >>$CONFIG_STATUS <<EOF
26538 # CONFIG_FILES section.
26541 # No need to generate the scripts if there are no CONFIG_FILES.
26542 # This happens for instance when ./config.status config.h
26543 if test -n "\$CONFIG_FILES"; then
26544 # Protect against being on the right side of a sed subst in config.status.
26545 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26546 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26547 s,@SHELL@,$SHELL,;t t
26548 s,@exec_prefix@,$exec_prefix,;t t
26549 s,@prefix@,$prefix,;t t
26550 s,@program_transform_name@,$program_transform_name,;t t
26551 s,@bindir@,$bindir,;t t
26552 s,@sbindir@,$sbindir,;t t
26553 s,@libexecdir@,$libexecdir,;t t
26554 s,@datarootdir@,$datarootdir,;t t
26555 s,@datadir@,$datadir,;t t
26556 s,@sysconfdir@,$sysconfdir,;t t
26557 s,@sharedstatedir@,$sharedstatedir,;t t
26558 s,@localstatedir@,$localstatedir,;t t
26559 s,@runstatedir@,$runstatedir,;t t
26560 s,@libdir@,$libdir,;t t
26561 s,@includedir@,$includedir,;t t
26562 s,@oldincludedir@,$oldincludedir,;t t
26563 s,@infodir@,$infodir,;t t
26564 s,@mandir@,$mandir,;t t
26565 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26566 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26567 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26568 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26569 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26570 s,@build_alias@,$build_alias,;t t
26571 s,@host_alias@,$host_alias,;t t
26572 s,@target_alias@,$target_alias,;t t
26573 s,@ECHO_C@,$ECHO_C,;t t
26574 s,@ECHO_N@,$ECHO_N,;t t
26575 s,@ECHO_T@,$ECHO_T,;t t
26576 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26577 s,@DEFS@,$DEFS,;t t
26578 s,@LIBS@,$LIBS,;t t
26579 s,@top_builddir@,$top_builddir,;t t
26580 s,@EGREP@,$EGREP,;t t
26581 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
26582 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
26583 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
26584 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
26585 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
26586 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
26587 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
26588 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
26589 s,@VERSION@,$VERSION,;t t
26590 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
26591 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
26592 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
26593 s,@PACKAGE@,$PACKAGE,;t t
26594 s,@build@,$build,;t t
26595 s,@build_cpu@,$build_cpu,;t t
26596 s,@build_vendor@,$build_vendor,;t t
26597 s,@build_os@,$build_os,;t t
26598 s,@host@,$host,;t t
26599 s,@host_cpu@,$host_cpu,;t t
26600 s,@host_vendor@,$host_vendor,;t t
26601 s,@host_os@,$host_os,;t t
26602 s,@target@,$target,;t t
26603 s,@target_cpu@,$target_cpu,;t t
26604 s,@target_vendor@,$target_vendor,;t t
26605 s,@target_os@,$target_os,;t t
26607 s,@CFLAGS@,$CFLAGS,;t t
26608 s,@LDFLAGS@,$LDFLAGS,;t t
26609 s,@CPPFLAGS@,$CPPFLAGS,;t t
26610 s,@ac_ct_CC@,$ac_ct_CC,;t t
26611 s,@EXEEXT@,$EXEEXT,;t t
26612 s,@OBJEXT@,$OBJEXT,;t t
26613 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
26615 s,@LDCONFIG@,$LDCONFIG,;t t
26617 s,@CXXFLAGS@,$CXXFLAGS,;t t
26618 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26620 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26621 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26622 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26623 s,@LINT@,$LINT,;t t
26624 s,@LINT_OPTS@,$LINT_OPTS,;t t
26625 s,@LN_S@,$LN_S,;t t
26626 s,@cf_config_suffix@,$cf_config_suffix,;t t
26627 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26628 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
26629 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
26630 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
26631 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
26632 s,@SET_MAKE@,$SET_MAKE,;t t
26633 s,@CTAGS@,$CTAGS,;t t
26634 s,@ETAGS@,$ETAGS,;t t
26635 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
26636 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
26637 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
26638 s,@RANLIB@,$RANLIB,;t t
26639 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26641 s,@ac_ct_LD@,$ac_ct_LD,;t t
26643 s,@ac_ct_AR@,$ac_ct_AR,;t t
26645 s,@ac_ct_NM@,$ac_ct_NM,;t t
26646 s,@ARFLAGS@,$ARFLAGS,;t t
26647 s,@DESTDIR@,$DESTDIR,;t t
26648 s,@BUILD_CC@,$BUILD_CC,;t t
26649 s,@BUILD_CPP@,$BUILD_CPP,;t t
26650 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
26651 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
26652 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
26653 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
26654 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
26655 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
26656 s,@cf_list_models@,$cf_list_models,;t t
26657 s,@ABI_VERSION@,$ABI_VERSION,;t t
26658 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
26659 s,@LIBTOOL@,$LIBTOOL,;t t
26660 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
26661 s,@LT_UNDEF@,$LT_UNDEF,;t t
26662 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
26663 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
26664 s,@LIB_CREATE@,$LIB_CREATE,;t t
26665 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
26666 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
26667 s,@LIB_PREP@,$LIB_PREP,;t t
26668 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
26669 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
26670 s,@LIB_LINK@,$LIB_LINK,;t t
26671 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
26672 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
26673 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
26674 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
26675 s,@TICS_NAME@,$TICS_NAME,;t t
26676 s,@TINFO_NAME@,$TINFO_NAME,;t t
26677 s,@LIB_NAME@,$LIB_NAME,;t t
26678 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
26679 s,@CC_G_OPT@,$CC_G_OPT,;t t
26680 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
26681 s,@LD_MODEL@,$LD_MODEL,;t t
26682 s,@shlibdir@,$shlibdir,;t t
26683 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
26684 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
26685 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
26686 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
26687 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
26688 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
26689 s,@LINK_PROGS@,$LINK_PROGS,;t t
26690 s,@LINK_TESTS@,$LINK_TESTS,;t t
26691 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
26692 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
26693 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
26694 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
26695 s,@RPATH_LIST@,$RPATH_LIST,;t t
26696 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
26697 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
26698 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
26699 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
26700 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
26701 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
26702 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
26703 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
26704 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
26705 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
26707 s,@INFOCMP@,$INFOCMP,;t t
26708 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
26709 s,@XTERM_KBS@,$XTERM_KBS,;t t
26710 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
26711 s,@TERMINFO@,$TERMINFO,;t t
26712 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
26713 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
26714 s,@TERMPATH@,$TERMPATH,;t t
26715 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
26716 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
26717 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
26718 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
26719 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
26720 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
26721 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
26722 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
26723 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
26724 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
26725 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
26726 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
26727 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
26728 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
26729 s,@RGB_PATH@,$RGB_PATH,;t t
26730 s,@no_x11_rgb@,$no_x11_rgb,;t t
26731 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
26732 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
26733 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
26734 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
26735 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
26736 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
26737 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
26738 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
26739 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
26740 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
26741 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
26742 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
26743 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
26744 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
26745 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
26746 s,@PTHREAD@,$PTHREAD,;t t
26747 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
26748 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
26749 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
26750 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
26751 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
26752 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
26753 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
26754 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
26755 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
26756 s,@ECHO_LT@,$ECHO_LT,;t t
26757 s,@ECHO_LD@,$ECHO_LD,;t t
26758 s,@RULE_CC@,$RULE_CC,;t t
26759 s,@SHOW_CC@,$SHOW_CC,;t t
26760 s,@ECHO_CC@,$ECHO_CC,;t t
26761 s,@ECHO_LINK@,$ECHO_LINK,;t t
26762 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
26763 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
26764 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
26765 s,@ADAFLAGS@,$ADAFLAGS,;t t
26766 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
26767 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
26768 s,@ADA_TRACE@,$ADA_TRACE,;t t
26769 s,@MATH_LIB@,$MATH_LIB,;t t
26770 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
26771 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
26772 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
26773 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
26774 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
26775 s,@TEST_LIBS@,$TEST_LIBS,;t t
26776 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
26777 s,@CXXCPP@,$CXXCPP,;t t
26778 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
26779 s,@CXX_AR@,$CXX_AR,;t t
26780 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
26781 s,@CXXLIBS@,$CXXLIBS,;t t
26782 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
26783 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
26784 s,@M4_exists@,$M4_exists,;t t
26785 s,@cf_ada_make@,$cf_ada_make,;t t
26786 s,@cf_ada_config@,$cf_ada_config,;t t
26787 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
26788 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
26789 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
26790 s,@cf_compile_generics@,$cf_compile_generics,;t t
26791 s,@cf_generic_objects@,$cf_generic_objects,;t t
26792 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
26793 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
26794 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
26795 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
26796 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
26797 s,@cf_ada_package@,$cf_ada_package,;t t
26798 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
26799 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
26800 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
26801 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
26802 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
26803 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
26804 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
26805 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
26806 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
26807 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
26808 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
26809 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
26810 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
26811 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
26812 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
26813 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
26814 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
26815 s,@TICS_LIBS@,$TICS_LIBS,;t t
26816 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
26817 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
26818 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
26819 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
26820 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
26821 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
26822 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
26823 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
26824 s,@includesubdir@,$includesubdir,;t t
26825 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
26826 s,@TICS_LIST@,$TICS_LIST,;t t
26827 s,@TINFO_LIST@,$TINFO_LIST,;t t
26828 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
26829 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
26830 s,@TEST_ARGS@,$TEST_ARGS,;t t
26831 s,@TEST_DEPS@,$TEST_DEPS,;t t
26832 s,@TEST_ARG2@,$TEST_ARG2,;t t
26833 s,@TEST_DEP2@,$TEST_DEP2,;t t
26834 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
26835 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
26836 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
26837 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
26838 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
26839 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26840 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
26841 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
26842 s,@cross_compiling@,$cross_compiling,;t t
26843 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
26844 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
26845 s,@PANEL_NAME@,$PANEL_NAME,;t t
26846 s,@MENU_NAME@,$MENU_NAME,;t t
26847 s,@FORM_NAME@,$FORM_NAME,;t t
26848 s,@CXX_NAME@,$CXX_NAME,;t t
26849 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
26850 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
26851 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
26852 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
26853 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
26854 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
26855 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
26856 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
26857 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
26858 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
26863 cat >>$CONFIG_STATUS <<\EOF
26864 # Split the substitutions into bite-sized pieces for seds with
26865 # small command number limits, like on Digital OSF/1 and HP-UX.
26866 ac_max_sed_lines=48
26867 ac_sed_frag=1 # Number of current file.
26868 ac_beg=1 # First line for current file.
26869 ac_end=$ac_max_sed_lines # Line after last line for current file.
26872 while $ac_more_lines; do
26873 if test $ac_beg -gt 1; then
26874 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26876 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26878 if test ! -s $tmp/subs.frag; then
26879 ac_more_lines=false
26881 # The purpose of the label and of the branching condition is to
26882 # speed up the sed processing (if there are no `@' at all, there
26883 # is no need to browse any of the substitutions).
26884 # These are the two extra sed commands mentioned above.
26886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26887 # It is possible to make a multiline substitution using escaped newlines.
26888 # Ensure that we do not split the substitution between script fragments.
26890 ac_END=`expr $ac_end + $ac_max_sed_lines`
26891 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
26892 if test -s $tmp/subs.next; then
26893 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
26894 if test ! -s $tmp/subs.edit; then
26895 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
26896 if test ! -s $tmp/subs.edit; then
26897 if test $ac_beg -gt 1; then
26898 ac_end=`expr $ac_end - 1`
26905 if test -z "$ac_sed_cmds"; then
26906 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26908 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26910 ac_sed_frag=`expr $ac_sed_frag + 1`
26912 ac_end=`expr $ac_end + $ac_max_sed_lines`
26915 if test -z "$ac_sed_cmds"; then
26918 fi # test -n "$CONFIG_FILES"
26921 cat >>$CONFIG_STATUS <<\EOF
26922 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26925 - | *:- | *:-:* ) # input from stdin
26927 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26929 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26931 * ) ac_file_in=$ac_file.in ;;
26934 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26935 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26936 X"$ac_file" : 'X\(//\)[^/]' \| \
26937 X"$ac_file" : 'X\(//\)$' \| \
26938 X"$ac_file" : 'X\(/\)' \| \
26939 . : '\(.\)' 2>/dev/null ||
26941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26943 /^X\(\/\/\)$/{ s//\1/; q; }
26944 /^X\(\/\).*/{ s//\1/; q; }
26946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
26947 { case "$ac_dir" in
26948 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26952 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26953 case $as_mkdir_dir in
26954 # Skip DOS drivespec
26955 ?:) as_incr_dir=$as_mkdir_dir ;;
26957 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26958 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26963 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
26964 # A "../" for each directory in $ac_dir_suffix.
26965 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
26967 ac_dir_suffix= ac_dots=
26972 if test -z "$ac_dots"; then
26975 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
26977 [\\/]* | ?:[\\/]* )
26978 ac_srcdir=$srcdir$ac_dir_suffix;
26979 ac_top_srcdir=$srcdir ;;
26980 *) # Relative path.
26981 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
26982 ac_top_srcdir=$ac_dots$srcdir ;;
26986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26987 *) ac_INSTALL=$ac_dots$INSTALL ;;
26990 if test x"$ac_file" != x-; then
26991 { echo "$as_me:26991: creating $ac_file" >&5
26992 echo "$as_me: creating $ac_file" >&6;}
26995 # Let's still pretend it is `configure' which instantiates (i.e., don't
26996 # use $as_me), people would be surprised to read:
26997 # /* config.h. Generated automatically by config.status. */
26998 configure_input="Generated automatically from `echo $ac_file_in |
26999 sed 's,.*/,,'` by configure."
27001 # First look for the input files in the build tree, otherwise in the
27003 ac_file_inputs=`IFS=:
27004 for f in $ac_file_in; do
27006 -) echo $tmp/stdin ;;
27008 # Absolute (can't be DOS-style, as IFS=:)
27009 test -f "$f" || { { echo "$as_me:27009: error: cannot find input file: $f" >&5
27010 echo "$as_me: error: cannot find input file: $f" >&2;}
27011 { (exit 1); exit 1; }; }
27014 if test -f "$f"; then
27017 elif test -f "$srcdir/$f"; then
27022 { { echo "$as_me:27022: error: cannot find input file: $f" >&5
27023 echo "$as_me: error: cannot find input file: $f" >&2;}
27024 { (exit 1); exit 1; }; }
27027 done` || { (exit 1); exit 1; }
27029 cat >>$CONFIG_STATUS <<\EOF
27030 ac_warn_datarootdir=no
27031 if test x"$ac_file" != x-; then
27032 for ac_item in $ac_file_inputs
27034 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
27035 if test -n "$ac_seen"; then
27036 ac_used=`grep '@datarootdir@' $ac_item`
27037 if test -z "$ac_used"; then
27038 { echo "$as_me:27038: WARNING: datarootdir was used implicitly but not set:
27040 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
27042 ac_warn_datarootdir=yes
27045 ac_seen=`grep '${datarootdir}' $ac_item`
27046 if test -n "$ac_seen"; then
27047 { echo "$as_me:27047: WARNING: datarootdir was used explicitly but not set:
27049 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
27051 ac_warn_datarootdir=yes
27056 if test "x$ac_warn_datarootdir" = xyes; then
27057 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
27061 cat >>$CONFIG_STATUS <<EOF
27065 cat >>$CONFIG_STATUS <<\EOF
27067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27068 s,@configure_input@,$configure_input,;t t
27069 s,@srcdir@,$ac_srcdir,;t t
27070 s,@top_srcdir@,$ac_top_srcdir,;t t
27071 s,@INSTALL@,$ac_INSTALL,;t t
27072 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27074 if test x"$ac_file" != x-; then
27075 cp $tmp/out $ac_file
27077 for ac_name in prefix exec_prefix datarootdir
27079 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
27080 if test -n "$ac_seen"; then
27081 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
27082 if test -z "$ac_init"; then
27083 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
27084 { echo "$as_me:27084: WARNING: Variable $ac_name is used but was not set:
27086 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
27091 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
27092 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
27093 if test -s $tmp/out; then
27094 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
27095 { echo "$as_me:27095: WARNING: Some variables may not be substituted:
27097 echo "$as_me: WARNING: Some variables may not be substituted:
27107 cat >>$CONFIG_STATUS <<\EOF
27110 # CONFIG_HEADER section.
27113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27116 # ac_d sets the value in "#define NAME VALUE" lines.
27117 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27118 ac_dB='[ ].*$,\1#\2'
27121 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
27122 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27123 ac_iB='\([ ]\),\1#\2define\3'
27126 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27127 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27128 ac_uB='$,\1#\2define\3'
27132 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27135 - | *:- | *:-:* ) # input from stdin
27137 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27139 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27141 * ) ac_file_in=$ac_file.in ;;
27144 test x"$ac_file" != x- && { echo "$as_me:27144: creating $ac_file" >&5
27145 echo "$as_me: creating $ac_file" >&6;}
27147 # First look for the input files in the build tree, otherwise in the
27149 ac_file_inputs=`IFS=:
27150 for f in $ac_file_in; do
27152 -) echo $tmp/stdin ;;
27154 # Absolute (can't be DOS-style, as IFS=:)
27155 test -f "$f" || { { echo "$as_me:27155: error: cannot find input file: $f" >&5
27156 echo "$as_me: error: cannot find input file: $f" >&2;}
27157 { (exit 1); exit 1; }; }
27160 if test -f "$f"; then
27163 elif test -f "$srcdir/$f"; then
27168 { { echo "$as_me:27168: error: cannot find input file: $f" >&5
27169 echo "$as_me: error: cannot find input file: $f" >&2;}
27170 { (exit 1); exit 1; }; }
27173 done` || { (exit 1); exit 1; }
27174 # Remove the trailing spaces.
27175 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27179 # Transform confdefs.h into a list of #define's. We won't use it as a sed
27180 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
27181 # be either 'cat' or 'sort'.
27182 cat confdefs.h | uniq >conftest.vals
27184 # Break up conftest.vals because some shells have a limit on
27185 # the size of here documents, and old seds have small limits too.
27187 rm -f conftest.tail
27188 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
27189 while grep . conftest.vals >/dev/null
27191 # Write chunks of a limited-size here document to conftest.frag.
27192 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
27193 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
27194 echo 'CEOF' >> $CONFIG_STATUS
27195 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27196 rm -f conftest.vals
27197 mv conftest.tail conftest.vals
27199 rm -f conftest.vals
27201 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
27203 echo ' cat >> conftest.edit <<CEOF
27204 /@DEFS@/r conftest.frag
27207 sed -f conftest.edit $tmp/in > $tmp/out
27209 mv $tmp/out $tmp/in
27210 rm -f conftest.edit conftest.frag
27211 ' >> $CONFIG_STATUS
27213 cat >>$CONFIG_STATUS <<\EOF
27214 # Let's still pretend it is `configure' which instantiates (i.e., don't
27215 # use $as_me), people would be surprised to read:
27216 # /* config.h. Generated automatically by config.status. */
27217 if test x"$ac_file" = x-; then
27218 echo "/* Generated automatically by configure. */" >$tmp/config.h
27220 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
27222 cat $tmp/in >>$tmp/config.h
27224 if test x"$ac_file" != x-; then
27225 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
27226 { echo "$as_me:27226: $ac_file is unchanged" >&5
27227 echo "$as_me: $ac_file is unchanged" >&6;}
27229 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27230 X"$ac_file" : 'X\(//\)[^/]' \| \
27231 X"$ac_file" : 'X\(//\)$' \| \
27232 X"$ac_file" : 'X\(/\)' \| \
27233 . : '\(.\)' 2>/dev/null ||
27235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27237 /^X\(\/\/\)$/{ s//\1/; q; }
27238 /^X\(\/\).*/{ s//\1/; q; }
27240 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27241 { case "$ac_dir" in
27242 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27246 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27247 case $as_mkdir_dir in
27248 # Skip DOS drivespec
27249 ?:) as_incr_dir=$as_mkdir_dir ;;
27251 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27252 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27259 mv $tmp/config.h $ac_file
27263 rm -f $tmp/config.h
27267 cat >>$CONFIG_STATUS <<\EOF
27269 # CONFIG_COMMANDS section.
27271 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27272 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27273 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27277 if test "x$cf_with_tests" != xno ; then
27281 if test ! -d $srcdir/$cf_dir; then
27283 elif test -f $srcdir/$cf_dir/programs; then
27284 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
27290 cf_prefix=$LIB_PREFIX
27292 case $cf_cv_shlib_version in
27293 (cygdll|msysdll|mingw)
27294 TINFO_NAME=$TINFO_ARG_SUFFIX
27299 if test -n "$TINFO_SUFFIX" ; then
27300 case $TINFO_SUFFIX in
27302 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
27303 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
27306 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
27307 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
27310 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
27311 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
27316 for cf_dir in $SRC_SUBDIRS
27318 if test ! -d $srcdir/$cf_dir ; then
27320 elif test -f $srcdir/$cf_dir/modules; then
27325 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
27327 cf_awk_program="$cf_awk_program\
27328 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
27329 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
27333 if test "x$WILDCARD_SYMS" = xno
27335 cf_awk_program="$cf_awk_program\
27336 /[ ]_\\*;/ { skip=1; next; }\
27340 if test "x$cf_awk_program" != "x"
27342 cat >>$cf_dir/Makefile <<CF_EOF
27344 # Generated by CF_LIB_RULES
27345 resulting.map: $UNALTERED_SYMS
27346 $AWK 'BEGIN { skip = 1; last=""; } \
27348 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
27349 skip = 0; last = \$\$0; } \
27350 END { print last; }' < $UNALTERED_SYMS >\$@
27353 rm -f resulting.map
27357 for cf_item in $cf_LIST_MODELS
27363 cf_depsuf=$cf_suffix
27367 cf_depsuf=$cf_suffix
27371 cf_depsuf=$cf_suffix
27374 case $cf_cv_system_name in
27377 cf_depsuf=$cf_suffix
27379 (cygwin*|msys*|mingw*)
27385 cf_depsuf=$cf_suffix
27391 cf_depsuf=$cf_suffix
27395 cf_depsuf=$cf_suffix
27401 cf_depsuf=$cf_suffix
27407 cf_depsuf=$cf_suffix
27410 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27412 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
27413 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
27417 test "$cf_dir" = c++ && cf_libname=ncurses++
27418 if test $cf_item = shared ; then
27419 if test -n "${LIB_SUFFIX}"
27421 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
27423 cf_shared_suffix="$cf_suffix"
27425 if test "$cf_cv_do_symlinks" = yes ; then
27428 case "$cf_cv_shlib_version" in
27430 cf_version_name=REL_VERSION
27433 cf_version_name=ABI_VERSION
27437 if test -n "$cf_version_name"
27439 case "$cf_cv_system_name" in
27442 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
27445 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
27449 if test -n "${USE_LIB_SUFFIX}"
27451 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
27453 cf_shared_suffix="$cf_suffix"
27456 # cygwin needs import library, and has unique naming convention
27457 # use autodetected ${cf_prefix} for import lib and static lib, but
27458 # use 'cyg' prefix for shared lib.
27459 case $cf_cv_shlib_version in
27461 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
27462 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
27465 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
27466 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
27469 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
27470 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
27476 if test -n "$cf_add_lib"
27478 Libs_To_Make="$Libs_To_Make $cf_add_lib"
27482 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
27483 Libs_To_Make="$Libs_To_Make $cf_add_lib"
27486 if test $cf_dir = ncurses ; then
27487 cf_subsets="$LIB_SUBSETS"
27488 cf_r_parts="$cf_subsets"
27489 cf_liblist="$Libs_To_Make"
27491 while test -n "$cf_r_parts"
27493 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
27494 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
27495 if test "$cf_l_parts" != "$cf_r_parts" ; then
27497 case $cf_l_parts in
27499 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
27502 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
27508 if test -n "$cf_add_lib"; then
27509 Libs_To_Make="$cf_add_lib $Libs_To_Make"
27516 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
27519 if test $cf_dir = c++; then
27520 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
27522 for cf_item in $Libs_To_Make
27528 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
27531 for cf_test in $cf_list
27533 if test "$cf_test" = "$cf_item"
27535 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
27540 test -n "$cf_item" && cf_list="$cf_list $cf_item"
27542 Libs_To_Make="$cf_list"
27546 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
27547 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
27548 $cf_dir/Makefile >$cf_dir/Makefile.out
27549 mv $cf_dir/Makefile.out $cf_dir/Makefile
27551 $AWK -f $srcdir/mk-0th.awk \
27552 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
27553 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
27555 for cf_subset in $cf_subsets
27558 for cf_item in $cf_LIST_MODELS
27561 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
27563 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27566 if test "$CXX_MODEL" = SHARED; then
27567 case $cf_cv_shlib_version in
27568 (cygdll|msysdll|mingw)
27569 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
27571 echo "${as_me:-configure}:27571: testing overriding CXX_MODEL to SHARED ..." 1>&5
27573 with_shared_cxx=yes
27576 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
27584 cf_depsuf=$cf_suffix
27588 cf_depsuf=$cf_suffix
27592 cf_depsuf=$cf_suffix
27595 case $cf_cv_system_name in
27598 cf_depsuf=$cf_suffix
27600 (cygwin*|msys*|mingw*)
27606 cf_depsuf=$cf_suffix
27612 cf_depsuf=$cf_suffix
27616 cf_depsuf=$cf_suffix
27622 cf_depsuf=$cf_suffix
27628 cf_depsuf=$cf_suffix
27631 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27633 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
27634 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
27638 (libtool) cf_subdir='obj_lo' ;;
27639 (normal) cf_subdir='objects' ;;
27640 (debug) cf_subdir='obj_g' ;;
27641 (profile) cf_subdir='obj_p' ;;
27643 case $cf_cv_system_name in
27645 cf_subdir='objects' ;;
27647 cf_subdir='obj_s' ;;
27651 # Test for case where we build libtinfo with a different name.
27653 if test $cf_dir = ncurses ; then
27656 cf_libname=${cf_libname}$USE_LIB_SUFFIX
27659 cf_libname=$TINFO_LIB_SUFFIX
27662 cf_libname=$TICS_LIB_SUFFIX
27665 elif test $cf_dir = c++ ; then
27666 cf_libname=ncurses++$USE_LIB_SUFFIX
27668 cf_libname=${cf_libname}$USE_LIB_SUFFIX
27670 if test -n "${USE_ARG_SUFFIX}" ; then
27671 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
27672 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
27675 # These dependencies really are for development, not
27676 # builds, but they are useful in porting, too.
27677 cf_depend="../include/ncurses_cfg.h"
27678 if test "$srcdir" = "."; then
27681 cf_reldir="\${srcdir}"
27684 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
27685 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
27686 elif test -f $srcdir/$cf_dir/curses.priv.h; then
27687 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
27691 old_cf_suffix="$cf_suffix"
27692 if test "$cf_cv_shlib_version_infix" = yes ; then
27693 if test -n "$USE_LIB_SUFFIX" ; then
27694 case $USE_LIB_SUFFIX in
27696 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
27697 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
27698 cf_dir_suffix=tw$EXTRA_SUFFIX
27701 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
27702 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
27703 cf_dir_suffix=t$EXTRA_SUFFIX
27706 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
27707 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
27708 cf_dir_suffix=w$EXTRA_SUFFIX
27711 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
27712 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
27713 cf_dir_suffix=$EXTRA_SUFFIX
27719 $AWK -f $srcdir/mk-1st.awk \
27720 name=${cf_libname}${cf_dir_suffix} \
27721 traces=$LIB_TRACING \
27723 CXX_MODEL=$CXX_MODEL \
27725 prefix=$cf_prefix \
27726 suffix=$cf_suffix \
27727 subset=$cf_subset \
27728 driver=$cf_cv_term_driver \
27730 TermlibRoot=$TINFO_NAME \
27731 TermlibSuffix=$TINFO_SUFFIX \
27732 ShlibVer=$cf_cv_shlib_version \
27733 ShlibVerInfix=$cf_cv_shlib_version_infix \
27734 ReLink=${cf_cv_do_relink:-no} \
27735 ReRanlib=${cf_cv_do_reranlib:-yes} \
27736 DoLinks=$cf_cv_do_symlinks \
27737 rmSoLocs=$cf_cv_rm_so_locs \
27738 ldconfig="$LDCONFIG" \
27739 overwrite=$WITH_OVERWRITE \
27740 depend="$cf_depend" \
27742 libtool_version="$LIBTOOL_VERSION" \
27743 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
27745 cf_suffix="$old_cf_suffix"
27747 for cf_subdir2 in $cf_subdirs lib
27749 test $cf_subdir = $cf_subdir2 && break
27751 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
27752 $AWK -f $srcdir/mk-2nd.awk \
27754 traces=$LIB_TRACING \
27757 subset=$cf_subset \
27760 crenames=$cf_cv_prog_CC_c_o \
27761 cxxrenames=$cf_cv_prog_CXX_c_o \
27762 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
27763 cf_subdirs="$cf_subdirs $cf_subdir"
27768 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
27771 for cf_dir in $SRC_SUBDIRS
27773 if test ! -d $srcdir/$cf_dir ; then
27777 if test -f $cf_dir/Makefile ; then
27780 echo 'libs \' >> Makefile
27781 echo 'install.libs \' >> Makefile
27782 echo 'uninstall.libs ::' >> Makefile
27783 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
27788 if test -f $srcdir/$cf_dir/modules; then
27790 if test -f $srcdir/$cf_dir/headers; then
27791 cat >> Makefile <<CF_EOF
27792 install.includes \\
27793 uninstall.includes \\
27796 if test "$cf_dir" != "c++" ; then
27797 echo 'lint \' >> Makefile
27799 cat >> Makefile <<CF_EOF
27805 uninstall.$cf_dir ::
27806 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
27808 elif test -f $srcdir/$cf_dir/headers; then
27809 cat >> Makefile <<CF_EOF
27814 install.includes \\
27815 uninstall.includes ::
27816 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
27821 if test "x$cf_with_db_install" = xyes; then
27822 cat >> Makefile <<CF_EOF
27824 install.libs uninstall.libs \\
27825 install.data uninstall.data ::
27826 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
27829 cat >> Makefile <<CF_EOF
27831 install.libs uninstall.libs ::
27832 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
27836 if test "x$cf_with_manpages" = xyes; then
27837 cat >> Makefile <<CF_EOF
27841 cd man && \${MAKE} \${TOP_MFLAGS} \$@
27845 cat >> Makefile <<CF_EOF
27848 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
27849 rm -f headers.sh headers.sed mk_shared_lib.sh
27850 rm -f edit_man.* man_alias.*
27851 rm -rf \${DIRS_TO_MAKE}
27854 # Special case: tack's manpage lives in its own directory.
27855 if test "x$cf_with_manpages" = xyes; then
27856 if test "x$cf_with_tack" = "xyes"; then
27857 cat >> Makefile <<CF_EOF
27861 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
27866 rm -f headers.sed headers.sh
27868 echo creating headers.sh
27869 cat >headers.sh <<CF_EOF
27871 # This shell script is generated by the 'configure' script. It is invoked in a
27872 # subdirectory of the build tree. It generates a sed-script in the parent
27873 # directory that is used to adjust includes for header files that reside in a
27874 # subdirectory of /usr/include, etc.
27876 while test \$# != 3
27878 PRG="\$PRG \$1"; shift
27883 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
27884 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
27885 echo installing \$SRC in \$DST
27888 if test $WITH_CURSES_H = yes; then
27889 cat >>headers.sh <<CF_EOF
27892 END=\`basename \$DST\`
27893 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
27895 NAME=\`basename \$i\`
27896 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
27900 echo "" >> \$TMPSED
27906 cat >>headers.sh <<CF_EOF
27909 END=\`basename \$DST\`
27910 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
27912 NAME=\`basename \$i\`
27913 if test "\$NAME" = "curses.h"
27915 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
27918 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
27922 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
27927 cat >>headers.sh <<CF_EOF
27929 sed -f \$TMPSED \$SRC > \$TMPSRC
27930 NAME=\`basename \$SRC\`
27932 if test $WITH_CURSES_H != yes; then
27933 cat >>headers.sh <<CF_EOF
27934 test "\$NAME" = "curses.h" && NAME=ncurses.h
27937 cat >>headers.sh <<CF_EOF
27938 # Just in case someone gzip'd manpages, remove the conflicting copy.
27939 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
27941 eval \$PRG \$TMPSRC \$DST/\$NAME
27942 rm -f \$TMPSRC \$TMPSED
27945 chmod 0755 headers.sh
27947 for cf_dir in $SRC_SUBDIRS
27949 if test ! -d $srcdir/$cf_dir ; then
27953 if test -f $srcdir/$cf_dir/headers; then
27954 $AWK -f $srcdir/mk-hdr.awk \
27955 subset="$LIB_SUBSETS" \
27956 compat="$WITH_CURSES_H" \
27957 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
27960 if test -f $srcdir/$cf_dir/modules; then
27961 if test "$cf_dir" != "c++" ; then
27962 cat >>$cf_dir/Makefile <<"CF_EOF"
27963 depend : ${AUTO_SRC}
27964 makedepend -- ${CPPFLAGS} -- ${C_SRC}
27966 # DO NOT DELETE THIS LINE -- make depend depends on it.
27972 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
27973 if test -z "$USE_OLD_MAKERULES" ; then
27974 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
27982 cat >>$CONFIG_STATUS <<\EOF
27984 { (exit 0); exit 0; }
27986 chmod +x $CONFIG_STATUS
27987 ac_clean_files=$ac_clean_files_save
27989 # configure is writing to config.log, and then calls config.status.
27990 # config.status does its own redirection, appending to config.log.
27991 # Unfortunately, on DOS this fails, as config.log is still kept open
27992 # by configure, so config.status won't be able to write to it; its
27993 # output is simply discarded. So we exec the FD to /dev/null,
27994 # effectively closing config.log, so it can be properly (re)opened and
27995 # appended to by config.status. When coming back to configure, we
27996 # need to make the FD available again.
27997 if test "$no_create" != yes; then
28000 $SHELL $CONFIG_STATUS || ac_cs_success=false
28002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28003 # would make configure fail if this is the last instruction.
28004 $ac_cs_success || { (exit 1); exit 1; }
28006 ${MAKE:-make} preinstall