2 # From configure.in Revision: 1.666 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20181006.
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 Ada95, 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 --without-xterm-new specify if xterm terminfo should be old version
771 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
772 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
773 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
774 --disable-big-core assume machine has little memory
775 --disable-big-strings assume compiler has only standard-size strings
776 --enable-termcap compile in termcap fallback support
777 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
778 --enable-getcap fast termcap load, no xrefs to terminfo
779 --enable-getcap-cache cache translated termcaps in ~/.terminfo
780 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
781 --disable-root-environ restrict environment when running as root
782 --enable-symlinks make tic use symbolic links not hard links
783 --enable-broken_linker compile with broken-linker support code
784 --enable-bsdpad recognize BSD-style prefix padding
785 --enable-widec compile with wide-char/UTF-8 code
786 --disable-lp64 allow chtype to be long (ignore _LP64)
787 --disable-largefile omit support for large files
788 --disable-tparm-varargs compile tparm() without varargs interface
789 --disable-tic-depends link tic library without explicit dependency on ncurses library
790 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
791 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
792 --with-bool=TYPE override fallback type of bool variable
793 --with-caps=alt compile with alternate Caps file
794 --with-chtype=TYPE override type of chtype
795 --with-ospeed=TYPE override type of ospeed variable
796 --with-mmask-t=TYPE override type of mmask_t
797 --with-ccharw-max=XXX override size CCHARW_MAX
798 --enable-signed-char compile using signed Boolean's in term.h
799 --with-tparm-arg=TYPE override parameter type of tparm
800 --with-rcs-ids compile-in RCS identifiers
801 Options to Specify How Manpages are Installed:
802 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
803 optionally formatted/catonly, e.g., gzip,formatted
804 --with-manpage-renames specify manpage-renaming
805 --with-manpage-aliases specify manpage-aliases using .so
806 --with-manpage-symlinks specify manpage-aliases using symlinks
807 --with-manpage-tbl specify manpage processing with tbl
809 --disable-ext-funcs disable function-extensions
810 --enable-sp-funcs enable SCREEN-extensions
811 --enable-term-driver enable terminal-driver
812 --enable-const compile with extra/non-standard const
813 --enable-ext-colors compile for 256-color support
814 --enable-ext-mouse compile for extended mouse-encoding
815 --enable-ext-putwin compile with extended putwin/screendump
816 --enable-no-padding compile with $NCURSES_NO_PADDING code
817 --enable-sigwinch compile with SIGWINCH handler
818 --enable-tcap-names compile with user-definable terminal capabilities
820 --with-pthread use POSIX thread library
821 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
822 --enable-weak-symbols enable weak-symbols for pthreads
823 --enable-reentrant compile with reentrant code
824 --enable-opaque-curses make curses WINDOW, etc., "opaque"
825 --enable-opaque-form make form-library structures "opaque"
826 --enable-opaque-menu make menu-library structures "opaque"
827 --enable-opaque-panel make panel-library structures "opaque"
828 --with-wrap-prefix=XXX override prefix used for public variables
830 --without-develop disable development options
831 --enable-hard-tabs compile with hard-tabs code
832 --enable-xmc-glitch compile with support for xmc (magic-cookie)
834 --disable-assumed-color do not assume anything about default-colors
835 --disable-hashmap compile without hashmap scrolling-optimization
836 --enable-colorfgbg compile-in experimental $COLORFGBG code
837 --enable-interop compile-in interop bindings
838 --enable-safe-sprintf compile with experimental safe-sprintf code
839 --disable-scroll-hints compile without scroll-hints code
840 --enable-wgetch-events compile with wgetch-events code
841 Testing/development Options:
842 --disable-echo do not display "compiling" commands
843 --disable-stripping do not strip (debug info) installed executables
844 --enable-warnings build: turn on GCC compiler warnings
845 --enable-string-hacks work around bogus compiler/loader warnings
846 --enable-assertions test: turn on generation of assertion code
847 --with-dmalloc test: use Gray Watson's dmalloc library
848 --with-dbmalloc test: use Conor Cahill's dbmalloc library
849 --with-valgrind test: use valgrind
850 --disable-leaks test: free permanent memory, analyze leaks
851 --enable-expanded test: generate functions for certain macros
852 --disable-macros test: use functions rather than macros
853 --with-trace test: add trace() function to all models of ncurses
854 --disable-gnat-projects test: disable GNAT projects even if usable
855 Ada95 Binding Options:
856 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
857 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
858 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
859 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
871 CXXCPP C++ preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
884 # A "../" for each directory in /$ac_subdir.
885 ac_dots=`echo $ac_subdir |
886 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
889 .) # No --srcdir option. We are building in place.
890 ac_sub_srcdir=$srcdir ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_sub_srcdir=$srcdir/$ac_subdir ;;
894 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
897 # Check for guested configure; otherwise get Cygnus style configure.
898 if test -f $ac_sub_srcdir/configure.gnu; then
900 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
901 elif test -f $ac_sub_srcdir/configure; then
903 $SHELL $ac_sub_srcdir/configure --help=recursive
904 elif test -f $ac_sub_srcdir/configure.ac ||
905 test -f $ac_sub_srcdir/configure.in; then
909 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
915 test -n "$ac_init_help" && exit 0
916 if $ac_init_version; then
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
931 It was created by $as_me, which was
932 generated by GNU Autoconf 2.52.20181006. Invocation command line was
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
952 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
953 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
956 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
957 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
958 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
972 # Keep a trace of the command line.
973 # Strip out --no-create and --no-recursion so they do not pile up.
974 # Also quote any args containing shell meta-characters.
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c) ;;
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
984 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
985 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
986 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
988 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
991 # Get rid of the leading space.
994 # When interrupted or exit'd, cleanup temporary files, and complete
995 # config.log. We remove comments because anyway the quotes in there
996 # would cause problems or look ugly.
998 # Save into config.log some information that might help in debugging.
1000 echo "## ----------------- ##" >&5
1001 echo "## Cache variables. ##" >&5
1002 echo "## ----------------- ##" >&5
1004 # The following way of writing the cache mishandles newlines in values,
1007 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1010 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1015 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1019 sed "/^$/d" confdefs.h >conftest.log
1020 if test -s conftest.log; then
1022 echo "## ------------ ##" >&5
1023 echo "## confdefs.h. ##" >&5
1024 echo "## ------------ ##" >&5
1026 cat conftest.log >&5
1029 test "$ac_signal" != 0 &&
1030 echo "$as_me: caught signal $ac_signal" >&5
1031 echo "$as_me: exit $exit_status" >&5
1032 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1035 for ac_signal in 1 2 13 15; do
1036 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1041 rm -rf conftest* confdefs.h
1042 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1045 # Let the site file select an alternate cache file if it wants to.
1046 # Prefer explicitly selected file to automatically selected ones.
1047 if test -z "$CONFIG_SITE"; then
1048 if test "x$prefix" != xNONE; then
1049 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1051 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1054 for ac_site_file in $CONFIG_SITE; do
1055 if test -r "$ac_site_file"; then
1056 { echo "$as_me:1056: loading site script $ac_site_file" >&5
1057 echo "$as_me: loading site script $ac_site_file" >&6;}
1058 cat "$ac_site_file" >&5
1063 if test -r "$cache_file"; then
1064 # Some versions of bash will fail to source /dev/null (special
1065 # files actually), so we avoid doing that.
1066 if test -f "$cache_file"; then
1067 { echo "$as_me:1067: loading cache $cache_file" >&5
1068 echo "$as_me: loading cache $cache_file" >&6;}
1070 [\\/]* | ?:[\\/]* ) . $cache_file;;
1071 *) . ./$cache_file;;
1075 { echo "$as_me:1075: creating cache $cache_file" >&5
1076 echo "$as_me: creating cache $cache_file" >&6;}
1080 # Check that the precious variables saved in the cache have kept the same
1082 ac_cache_corrupted=false
1083 for ac_var in `(set) 2>&1 |
1084 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1085 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1086 eval ac_new_set=\$ac_env_${ac_var}_set
1087 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1088 eval ac_new_val="\$ac_env_${ac_var}_value"
1089 case $ac_old_set,$ac_new_set in
1091 { echo "$as_me:1091: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1092 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1093 ac_cache_corrupted=: ;;
1095 { echo "$as_me:1095: error: \`$ac_var' was not set in the previous run" >&5
1096 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1097 ac_cache_corrupted=: ;;
1100 if test "x$ac_old_val" != "x$ac_new_val"; then
1101 { echo "$as_me:1101: error: \`$ac_var' has changed since the previous run:" >&5
1102 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1103 { echo "$as_me:1103: former value: $ac_old_val" >&5
1104 echo "$as_me: former value: $ac_old_val" >&2;}
1105 { echo "$as_me:1105: current value: $ac_new_val" >&5
1106 echo "$as_me: current value: $ac_new_val" >&2;}
1107 ac_cache_corrupted=:
1110 # Pass precious variables to config.status. It doesn't matter if
1111 # we pass some twice (in addition to the command line arguments).
1112 if test "$ac_new_set" = set; then
1114 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1115 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1116 ac_configure_args="$ac_configure_args '$ac_arg'"
1118 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1123 if $ac_cache_corrupted; then
1124 { echo "$as_me:1124: error: changes in the environment can compromise the build" >&5
1125 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1126 { { echo "$as_me:1126: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1127 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1128 { (exit 1); exit 1; }; }
1132 ac_cpp='$CPP $CPPFLAGS'
1133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1136 ac_main_return=return
1138 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1139 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1144 echo "#! $SHELL" >conftest.sh
1145 echo "exit 0" >>conftest.sh
1146 chmod +x conftest.sh
1147 if { (echo "$as_me:1147: PATH=\".;.\"; conftest.sh") >&5
1148 (PATH=".;."; conftest.sh) 2>&5
1150 echo "$as_me:1150: \$? = $ac_status" >&5
1151 (exit $ac_status); }; then
1152 ac_path_separator=';'
1156 PATH_SEPARATOR="$ac_path_separator"
1159 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1163 echo "$as_me:1163: checking for egrep" >&5
1164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1165 if test "${ac_cv_prog_egrep+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1169 then ac_cv_prog_egrep='grep -E'
1170 else ac_cv_prog_egrep='egrep'
1173 echo "$as_me:1173: result: $ac_cv_prog_egrep" >&5
1174 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1175 EGREP=$ac_cv_prog_egrep
1177 test -z "$EGREP" && { { echo "$as_me:1177: error: No egrep program found" >&5
1178 echo "$as_me: error: No egrep program found" >&2;}
1179 { (exit 1); exit 1; }; }
1181 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1182 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1183 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1184 cf_cv_abi_version=${NCURSES_MAJOR}
1185 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1186 cf_cv_timestamp=`date`
1187 echo "$as_me:1187: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1188 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1190 if test -f $srcdir/VERSION ; then
1191 echo "$as_me:1191: checking for package version" >&5
1192 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1194 # if there are not enough fields, cut returns the last one...
1195 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1196 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1197 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1199 # this is how CF_BUNDLED_INTL uses $VERSION:
1200 VERSION="$cf_field1"
1202 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1203 test -z "$VERSION_MAJOR" && { { echo "$as_me:1203: error: missing major-version" >&5
1204 echo "$as_me: error: missing major-version" >&2;}
1205 { (exit 1); exit 1; }; }
1207 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1208 test -z "$VERSION_MINOR" && { { echo "$as_me:1208: error: missing minor-version" >&5
1209 echo "$as_me: error: missing minor-version" >&2;}
1210 { (exit 1); exit 1; }; }
1212 echo "$as_me:1212: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1213 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1215 echo "$as_me:1215: checking for package patch date" >&5
1216 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1217 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1218 case .$VERSION_PATCH in
1220 { { echo "$as_me:1220: error: missing patch-date $VERSION_PATCH" >&5
1221 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1222 { (exit 1); exit 1; }; }
1224 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1227 { { echo "$as_me:1227: error: illegal patch-date $VERSION_PATCH" >&5
1228 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1229 { (exit 1); exit 1; }; }
1232 echo "$as_me:1232: result: $VERSION_PATCH" >&5
1233 echo "${ECHO_T}$VERSION_PATCH" >&6
1235 { { echo "$as_me:1235: error: did not find $srcdir/VERSION" >&5
1236 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1237 { (exit 1); exit 1; }; }
1240 # show the actual data that we have for versions:
1241 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1243 echo "${as_me:-configure}:1243: testing ABI VERSION $VERSION ..." 1>&5
1245 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1247 echo "${as_me:-configure}:1247: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1249 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1251 echo "${as_me:-configure}:1251: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1253 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1255 echo "${as_me:-configure}:1255: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1260 cat >>confdefs.h <<EOF
1261 #define PACKAGE "$PACKAGE"
1264 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1266 cat >>confdefs.h <<EOF
1267 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1270 cat >>confdefs.h <<EOF
1271 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1274 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1276 # Check whether --with-rel-version or --without-rel-version was given.
1277 if test "${with_rel_version+set}" = set; then
1278 withval="$with_rel_version"
1279 { echo "$as_me:1279: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1280 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1281 cf_cv_rel_version=$withval
1284 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1285 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1287 if test -n "$NCURSES_MAJOR" ; then
1288 case $NCURSES_MAJOR in
1292 { { echo "$as_me:1292: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1293 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1294 { (exit 1); exit 1; }; }
1298 { { echo "$as_me:1298: error: Release major-version value is empty" >&5
1299 echo "$as_me: error: Release major-version value is empty" >&2;}
1300 { (exit 1); exit 1; }; }
1303 if test -n "$NCURSES_MINOR" ; then
1304 case $NCURSES_MINOR in
1308 { { echo "$as_me:1308: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1309 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1310 { (exit 1); exit 1; }; }
1314 { { echo "$as_me:1314: error: Release minor-version value is empty" >&5
1315 echo "$as_me: error: Release minor-version value is empty" >&2;}
1316 { (exit 1); exit 1; }; }
1319 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1321 # Check whether --with-abi-version or --without-abi-version was given.
1322 if test "${with_abi_version+set}" = set; then
1323 withval="$with_abi_version"
1325 if test "x$cf_cv_abi_version" != "x$withval"
1327 { echo "$as_me:1327: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1328 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1329 case $cf_cv_rel_version in
1331 cf_cv_rel_version=$withval.0
1334 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1338 cf_cv_abi_version=$withval
1341 if test -n "$cf_cv_abi_version" ; then
1342 case $cf_cv_abi_version in
1346 { { echo "$as_me:1346: error: ABI version is not a number: $cf_cv_abi_version" >&5
1347 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1348 { (exit 1); exit 1; }; }
1352 { { echo "$as_me:1352: error: ABI version value is empty" >&5
1353 echo "$as_me: error: ABI version value is empty" >&2;}
1354 { (exit 1); exit 1; }; }
1357 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1359 case $cf_cv_rel_version in
1361 cf_cv_rel_version=$with_abi_version.0
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:1383: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:1393: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:1397: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:1406: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:1410: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:1415: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$as_me:1422: checking host system type" >&5
1423 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1424 if test "${ac_cv_host+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_host_alias=$host_alias
1428 test -z "$ac_cv_host_alias" &&
1429 ac_cv_host_alias=$ac_cv_build_alias
1430 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_host" >&5
1437 echo "${ECHO_T}$ac_cv_host" >&6
1439 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1444 echo "$as_me:1444: checking target system type" >&5
1445 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1446 if test "${ac_cv_target+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 ac_cv_target_alias=$target_alias
1450 test "x$ac_cv_target_alias" = "x" &&
1451 ac_cv_target_alias=$ac_cv_host_alias
1452 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1453 { { echo "$as_me:1453: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:1458: result: $ac_cv_target" >&5
1459 echo "${ECHO_T}$ac_cv_target" >&6
1460 target=$ac_cv_target
1461 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465 # The aliases save the names the user supplied, while $host etc.
1466 # will get canonicalized.
1467 test -n "$target_alias" &&
1468 test "$program_prefix$program_suffix$program_transform_name" = \
1470 program_prefix=${target_alias}-
1471 system_name="$host_os"
1473 system_name="`(uname -s -r) 2>/dev/null`"
1474 if test -z "$system_name" ; then
1475 system_name="`(hostname) 2>/dev/null`"
1478 test -n "$system_name" &&
1479 cat >>confdefs.h <<EOF
1480 #define SYSTEM_NAME "$system_name"
1483 if test "${cf_cv_system_name+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 cf_cv_system_name="$system_name"
1489 test -z "$system_name" && system_name="$cf_cv_system_name"
1490 test -n "$cf_cv_system_name" && echo "$as_me:1490: result: Configuring for $cf_cv_system_name" >&5
1491 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1493 if test ".$system_name" != ".$cf_cv_system_name" ; then
1494 echo "$as_me:1494: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1495 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1496 { { echo "$as_me:1496: error: \"Please remove config.cache and try again.\"" >&5
1497 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1498 { (exit 1); exit 1; }; }
1501 # Check whether --with-system-type or --without-system-type was given.
1502 if test "${with_system_type+set}" = set; then
1503 withval="$with_system_type"
1504 { echo "$as_me:1504: WARNING: overriding system type to $withval" >&5
1505 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1506 cf_cv_system_name=$withval
1511 ### Save the given $CFLAGS to allow user-override.
1512 cf_user_CFLAGS="$CFLAGS"
1514 ### Default install-location
1516 echo "$as_me:1516: checking for prefix" >&5
1517 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1518 if test "x$prefix" = "xNONE" ; then
1519 case "$cf_cv_system_name" in
1520 # non-vendor systems don't have a conflict
1521 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1524 (*) prefix=$ac_default_prefix
1528 echo "$as_me:1528: result: $prefix" >&5
1529 echo "${ECHO_T}$prefix" >&6
1531 if test "x$prefix" = "xNONE" ; then
1532 echo "$as_me:1532: checking for default include-directory" >&5
1533 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1534 test -n "$verbose" && echo 1>&6
1537 $includedir/ncurses \
1539 $prefix/include/ncurses \
1540 /usr/local/include \
1541 /usr/local/include/ncurses \
1543 /usr/include/ncurses
1545 cf_dir=`eval echo $cf_symbol`
1546 if test -f $cf_dir/curses.h ; then
1547 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1548 includedir="$cf_symbol"
1549 test -n "$verbose" && echo $ac_n " found " 1>&6
1553 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1555 echo "$as_me:1555: result: $includedir" >&5
1556 echo "${ECHO_T}$includedir" >&6
1559 ### Defaults for ncurses ABI
1561 case x$cf_cv_abi_version in
1563 cf_dft_ext_colors=yes
1564 cf_dft_ext_const=yes
1565 cf_dft_ext_mouse=yes
1566 cf_dft_ext_putwin=yes
1567 cf_dft_ext_spfuncs=yes
1568 cf_dft_filter_syms=yes
1569 cf_dft_chtype=uint32_t
1570 cf_dft_mmask_t=uint32_t
1572 cf_dft_tparm_arg=intptr_t
1573 cf_dft_with_lp64=yes
1576 cf_dft_ext_colors=no
1579 cf_dft_ext_putwin=no
1580 cf_dft_ext_spfuncs=no
1581 cf_dft_filter_syms=no
1585 cf_dft_tparm_arg=long
1590 ### Checks for programs.
1592 # Check whether --with-ada or --without-ada was given.
1593 if test "${with_ada+set}" = set; then
1595 cf_with_ada=$withval
1599 if test "x$cf_with_ada" = xyes
1601 cf_PROG_CC="gnatgcc gcc cc"
1607 ac_cpp='$CPP $CPPFLAGS'
1608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1611 ac_main_return=return
1612 if test -n "$ac_tool_prefix"; then
1613 for ac_prog in $cf_PROG_CC
1615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1617 echo "$as_me:1617: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 ac_save_IFS=$IFS; IFS=$ac_path_separator
1627 for ac_dir in $ac_dummy; do
1629 test -z "$ac_dir" && ac_dir=.
1630 $as_executable_p "$ac_dir/$ac_word" || continue
1631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632 echo "$as_me:1632: found $ac_dir/$ac_word" >&5
1639 if test -n "$CC"; then
1640 echo "$as_me:1640: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:1643: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1647 test -n "$CC" && break
1650 if test -z "$CC"; then
1652 for ac_prog in $cf_PROG_CC
1654 # Extract the first word of "$ac_prog", so it can be a program name with args.
1655 set dummy $ac_prog; ac_word=$2
1656 echo "$as_me:1656: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 ac_save_IFS=$IFS; IFS=$ac_path_separator
1666 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 $as_executable_p "$ac_dir/$ac_word" || continue
1670 ac_cv_prog_ac_ct_CC="$ac_prog"
1671 echo "$as_me:1671: found $ac_dir/$ac_word" >&5
1677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1678 if test -n "$ac_ct_CC"; then
1679 echo "$as_me:1679: result: $ac_ct_CC" >&5
1680 echo "${ECHO_T}$ac_ct_CC" >&6
1682 echo "$as_me:1682: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$ac_ct_CC" && break
1692 test -z "$CC" && { { echo "$as_me:1692: error: no acceptable cc found in \$PATH" >&5
1693 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1694 { (exit 1); exit 1; }; }
1696 # Provide some information about the compiler.
1697 echo "$as_me:1697:" \
1698 "checking for C compiler version" >&5
1699 ac_compiler=`set X $ac_compile; echo $2`
1700 { (eval echo "$as_me:1700: \"$ac_compiler --version </dev/null >&5\"") >&5
1701 (eval $ac_compiler --version </dev/null >&5) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:1705: \"$ac_compiler -v </dev/null >&5\"") >&5
1706 (eval $ac_compiler -v </dev/null >&5) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710 { (eval echo "$as_me:1710: \"$ac_compiler -V </dev/null >&5\"") >&5
1711 (eval $ac_compiler -V </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1716 cat >conftest.$ac_ext <<_ACEOF
1717 #line 1717 "configure"
1718 #include "confdefs.h"
1728 ac_clean_files_save=$ac_clean_files
1729 ac_clean_files="$ac_clean_files a.out a.exe"
1730 # Try to create an executable without -o first, disregard a.out.
1731 # It will help us diagnose broken compilers, and finding out an intuition
1733 echo "$as_me:1733: checking for C compiler default output" >&5
1734 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1735 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1736 if { (eval echo "$as_me:1736: \"$ac_link_default\"") >&5
1737 (eval $ac_link_default) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # Find the output, starting from the most likely. This scheme is
1742 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1745 ls a.out conftest 2>/dev/null;
1746 ls a.* conftest.* 2>/dev/null`; do
1748 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1749 a.out ) # We found the default executable, but exeext='' is most
1752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1753 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1760 echo "$as_me: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1762 { { echo "$as_me:1762: error: C compiler cannot create executables" >&5
1763 echo "$as_me: error: C compiler cannot create executables" >&2;}
1764 { (exit 77); exit 77; }; }
1767 ac_exeext=$ac_cv_exeext
1768 echo "$as_me:1768: result: $ac_file" >&5
1769 echo "${ECHO_T}$ac_file" >&6
1771 # Check the compiler produces executables we can run. If not, either
1772 # the compiler is broken, or we cross compile.
1773 echo "$as_me:1773: checking whether the C compiler works" >&5
1774 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1775 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1776 # If not cross compiling, check that we can run a simple program.
1777 if test "$cross_compiling" != yes; then
1778 if { ac_try='./$ac_file'
1779 { (eval echo "$as_me:1779: \"$ac_try\"") >&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); }; }; then
1786 if test "$cross_compiling" = maybe; then
1789 { { echo "$as_me:1789: error: cannot run C compiled programs.
1790 If you meant to cross compile, use \`--host'." >&5
1791 echo "$as_me: error: cannot run C compiled programs.
1792 If you meant to cross compile, use \`--host'." >&2;}
1793 { (exit 1); exit 1; }; }
1797 echo "$as_me:1797: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1800 rm -f a.out a.exe conftest$ac_cv_exeext
1801 ac_clean_files=$ac_clean_files_save
1802 # Check the compiler produces executables we can run. If not, either
1803 # the compiler is broken, or we cross compile.
1804 echo "$as_me:1804: checking whether we are cross compiling" >&5
1805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1806 echo "$as_me:1806: result: $cross_compiling" >&5
1807 echo "${ECHO_T}$cross_compiling" >&6
1809 echo "$as_me:1809: checking for executable suffix" >&5
1810 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1811 if { (eval echo "$as_me:1811: \"$ac_link\"") >&5
1812 (eval $ac_link) 2>&5
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); }; then
1816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1818 # work properly (i.e., refer to `conftest.exe'), while it won't with
1820 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1822 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 { { echo "$as_me:1830: error: cannot compute EXEEXT: cannot compile and link" >&5
1831 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1832 { (exit 1); exit 1; }; }
1835 rm -f conftest$ac_cv_exeext
1836 echo "$as_me:1836: result: $ac_cv_exeext" >&5
1837 echo "${ECHO_T}$ac_cv_exeext" >&6
1839 rm -f conftest.$ac_ext
1840 EXEEXT=$ac_cv_exeext
1842 echo "$as_me:1842: checking for object suffix" >&5
1843 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1844 if test "${ac_cv_objext+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line 1848 "configure"
1849 #include "confdefs.h"
1859 rm -f conftest.o conftest.obj
1860 if { (eval echo "$as_me:1860: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>&5
1863 echo "$as_me:1863: \$? = $ac_status" >&5
1864 (exit $ac_status); }; then
1865 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1873 echo "$as_me: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 { { echo "$as_me:1875: error: cannot compute OBJEXT: cannot compile" >&5
1876 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1877 { (exit 1); exit 1; }; }
1880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1882 echo "$as_me:1882: result: $ac_cv_objext" >&5
1883 echo "${ECHO_T}$ac_cv_objext" >&6
1884 OBJEXT=$ac_cv_objext
1886 echo "$as_me:1886: checking whether we are using the GNU C compiler" >&5
1887 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 cat >conftest.$ac_ext <<_ACEOF
1892 #line 1892 "configure"
1893 #include "confdefs.h"
1906 rm -f conftest.$ac_objext
1907 if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1924 rm -f conftest.$ac_objext conftest.$ac_ext
1925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1928 echo "$as_me:1928: result: $ac_cv_c_compiler_gnu" >&5
1929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1930 GCC=`test $ac_compiler_gnu = yes && echo yes`
1931 ac_test_CFLAGS=${CFLAGS+set}
1932 ac_save_CFLAGS=$CFLAGS
1934 echo "$as_me:1934: checking whether $CC accepts -g" >&5
1935 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1936 if test "${ac_cv_prog_cc_g+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 cat >conftest.$ac_ext <<_ACEOF
1940 #line 1940 "configure"
1941 #include "confdefs.h"
1951 rm -f conftest.$ac_objext
1952 if { (eval echo "$as_me:1952: \"$ac_compile\"") >&5
1953 (eval $ac_compile) 2>&5
1955 echo "$as_me:1955: \$? = $ac_status" >&5
1956 (exit $ac_status); } &&
1957 { ac_try='test -s conftest.$ac_objext'
1958 { (eval echo "$as_me:1958: \"$ac_try\"") >&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); }; }; then
1965 echo "$as_me: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1969 rm -f conftest.$ac_objext conftest.$ac_ext
1971 echo "$as_me:1971: result: $ac_cv_prog_cc_g" >&5
1972 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1973 if test "$ac_test_CFLAGS" = set; then
1974 CFLAGS=$ac_save_CFLAGS
1975 elif test $ac_cv_prog_cc_g = yes; then
1976 if test "$GCC" = yes; then
1982 if test "$GCC" = yes; then
1988 # Some people use a C++ compiler to compile C. Since we use `exit',
1989 # in C++ we need to declare it. In case someone uses the same compiler
1990 # for both compiling C and C++ we need to have the C++ compiler decide
1991 # the declaration of exit, since it's the most demanding environment.
1992 cat >conftest.$ac_ext <<_ACEOF
1997 rm -f conftest.$ac_objext
1998 if { (eval echo "$as_me:1998: \"$ac_compile\"") >&5
1999 (eval $ac_compile) 2>&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:2004: \"$ac_try\"") >&5
2007 echo "$as_me:2007: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 for ac_declaration in \
2011 '#include <stdlib.h>' \
2012 'extern "C" void std::exit (int) throw (); using std::exit;' \
2013 'extern "C" void std::exit (int); using std::exit;' \
2014 'extern "C" void exit (int) throw ();' \
2015 'extern "C" void exit (int);' \
2018 cat >conftest.$ac_ext <<_ACEOF
2019 #line 2019 "configure"
2020 #include "confdefs.h"
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:2032: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2035 echo "$as_me:2035: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:2038: \"$ac_try\"") >&5
2041 echo "$as_me:2041: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2045 echo "$as_me: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #line 2051 "configure"
2052 #include "confdefs.h"
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:2063: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>&5
2066 echo "$as_me:2066: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:2069: \"$ac_try\"") >&5
2072 echo "$as_me:2072: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2076 echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2079 rm -f conftest.$ac_objext conftest.$ac_ext
2082 if test -n "$ac_declaration"; then
2083 echo '#ifdef __cplusplus' >>confdefs.h
2084 echo $ac_declaration >>confdefs.h
2085 echo '#endif' >>confdefs.h
2089 echo "$as_me: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 ac_main_return=return
2101 if test "$GCC" = yes ; then
2102 echo "$as_me:2102: checking version of $CC" >&5
2103 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2104 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.].*//'`"
2105 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2106 echo "$as_me:2106: result: $GCC_VERSION" >&5
2107 echo "${ECHO_T}$GCC_VERSION" >&6
2110 echo "$as_me:2110: checking for $CC option to accept ANSI C" >&5
2111 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 ac_cv_prog_cc_stdc=no
2117 cat >conftest.$ac_ext <<_ACEOF
2118 #line 2118 "configure"
2119 #include "confdefs.h"
2122 #include <sys/types.h>
2123 #include <sys/stat.h>
2124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2125 struct buf { int x; };
2126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127 static char *e (p, i)
2133 static char *f (char * (*g) (char **, int), char **p, ...)
2138 s = g (p, va_arg (v,int));
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX -qlanglvl=ansi
2159 # Ultrix and OSF/1 -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions -Aa -D_HPUX_SOURCE
2162 # SVR4 -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:2167: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:2173: \"$ac_try\"") >&5
2176 echo "$as_me:2176: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 ac_cv_prog_cc_stdc=$ac_arg
2181 echo "$as_me: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 rm -f conftest.$ac_objext
2186 rm -f conftest.$ac_ext conftest.$ac_objext
2191 case "x$ac_cv_prog_cc_stdc" in
2193 echo "$as_me:2193: result: none needed" >&5
2194 echo "${ECHO_T}none needed" >&6 ;;
2196 echo "$as_me:2196: result: $ac_cv_prog_cc_stdc" >&5
2197 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2198 CC="$CC $ac_cv_prog_cc_stdc" ;;
2201 # This should have been defined by AC_PROG_CC
2204 echo "$as_me:2204: checking \$CFLAGS variable" >&5
2205 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2208 echo "$as_me:2208: result: broken" >&5
2209 echo "${ECHO_T}broken" >&6
2210 { echo "$as_me:2210: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2211 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2214 for cf_arg in $cf_flags
2220 cf_new_extra_cppflags=
2222 for cf_add_cflags in $cf_arg
2224 case $cf_fix_cppflags in
2226 case $cf_add_cflags in
2227 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2228 case $cf_add_cflags in
2230 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2232 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2233 && test -z "${cf_tst_cflags}" \
2234 && cf_fix_cppflags=yes
2236 if test $cf_fix_cppflags = yes ; then
2238 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2239 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2242 elif test "${cf_tst_cflags}" = "\"'" ; then
2244 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2245 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2255 case $cf_add_cflags in
2257 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2259 CPPFLAGS=`echo "$CPPFLAGS" | \
2260 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2261 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2266 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2267 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2274 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2275 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2282 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2283 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2285 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2287 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2288 && test -z "${cf_tst_cflags}" \
2289 && cf_fix_cppflags=no
2294 if test -n "$cf_new_cflags" ; then
2296 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2297 CFLAGS="${CFLAGS}$cf_new_cflags"
2301 if test -n "$cf_new_cppflags" ; then
2303 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2304 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2308 if test -n "$cf_new_extra_cppflags" ; then
2310 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2311 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2318 echo "$as_me:2318: result: ok" >&5
2319 echo "${ECHO_T}ok" >&6
2323 echo "$as_me:2323: checking \$CC variable" >&5
2324 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2327 echo "$as_me:2327: result: broken" >&5
2328 echo "${ECHO_T}broken" >&6
2329 { echo "$as_me:2329: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2330 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2332 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2333 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2335 for cf_arg in $cf_flags
2343 cf_new_extra_cppflags=
2345 for cf_add_cflags in $cf_arg
2347 case $cf_fix_cppflags in
2349 case $cf_add_cflags in
2350 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2351 case $cf_add_cflags in
2353 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2355 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2356 && test -z "${cf_tst_cflags}" \
2357 && cf_fix_cppflags=yes
2359 if test $cf_fix_cppflags = yes ; then
2361 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2362 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2365 elif test "${cf_tst_cflags}" = "\"'" ; then
2367 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2368 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2378 case $cf_add_cflags in
2380 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2382 CPPFLAGS=`echo "$CPPFLAGS" | \
2383 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2384 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2389 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2390 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2397 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2398 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2405 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2406 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2408 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2410 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2411 && test -z "${cf_tst_cflags}" \
2412 && cf_fix_cppflags=no
2417 if test -n "$cf_new_cflags" ; then
2419 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2420 CFLAGS="${CFLAGS}$cf_new_cflags"
2424 if test -n "$cf_new_cppflags" ; then
2426 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2427 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2431 if test -n "$cf_new_extra_cppflags" ; then
2433 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2434 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2444 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2446 echo "${as_me:-configure}:2446: testing resulting CC: '$CC' ..." 1>&5
2448 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2450 echo "${as_me:-configure}:2450: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2452 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2454 echo "${as_me:-configure}:2454: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2458 echo "$as_me:2458: result: ok" >&5
2459 echo "${ECHO_T}ok" >&6
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468 ac_main_return=return
2469 echo "$as_me:2469: checking how to run the C preprocessor" >&5
2470 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2471 # On Suns, sometimes $CPP names a directory.
2472 if test -n "$CPP" && test -d "$CPP"; then
2475 if test -z "$CPP"; then
2476 if test "${ac_cv_prog_CPP+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 # Double quotes because CPP needs to be expanded
2480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2483 for ac_c_preproc_warn_flag in '' yes
2485 # Use a header file that comes with gcc, so configuring glibc
2486 # with a fresh cross-compiler works.
2487 # On the NeXT, cc -E runs the code through the compiler's parser,
2488 # not just through cpp. "Syntax error" is here to catch this case.
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line 2490 "configure"
2491 #include "confdefs.h"
2495 if { (eval echo "$as_me:2495: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 egrep -v '^ *\+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:2501: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2511 if test -z "$ac_cpp_err"; then
2514 echo "$as_me: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 # Broken: fails on valid input.
2519 rm -f conftest.err conftest.$ac_ext
2521 # OK, works on sane cases. Now check whether non-existent headers
2522 # can be detected and how.
2523 cat >conftest.$ac_ext <<_ACEOF
2524 #line 2524 "configure"
2525 #include "confdefs.h"
2526 #include <ac_nonexistent.h>
2528 if { (eval echo "$as_me:2528: \"$ac_cpp conftest.$ac_ext\"") >&5
2529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 egrep -v '^ *\+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:2534: \$? = $ac_status" >&5
2535 (exit $ac_status); } >/dev/null; then
2536 if test -s conftest.err; then
2537 ac_cpp_err=$ac_c_preproc_warn_flag
2544 if test -z "$ac_cpp_err"; then
2545 # Broken: success on invalid input.
2548 echo "$as_me: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 # Passes both tests.
2554 rm -f conftest.err conftest.$ac_ext
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2571 echo "$as_me:2571: result: $CPP" >&5
2572 echo "${ECHO_T}$CPP" >&6
2574 for ac_c_preproc_warn_flag in '' yes
2576 # Use a header file that comes with gcc, so configuring glibc
2577 # with a fresh cross-compiler works.
2578 # On the NeXT, cc -E runs the code through the compiler's parser,
2579 # not just through cpp. "Syntax error" is here to catch this case.
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line 2581 "configure"
2582 #include "confdefs.h"
2586 if { (eval echo "$as_me:2586: \"$ac_cpp conftest.$ac_ext\"") >&5
2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589 egrep -v '^ *\+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); } >/dev/null; then
2594 if test -s conftest.err; then
2595 ac_cpp_err=$ac_c_preproc_warn_flag
2602 if test -z "$ac_cpp_err"; then
2605 echo "$as_me: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 # Broken: fails on valid input.
2610 rm -f conftest.err conftest.$ac_ext
2612 # OK, works on sane cases. Now check whether non-existent headers
2613 # can be detected and how.
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line 2615 "configure"
2616 #include "confdefs.h"
2617 #include <ac_nonexistent.h>
2619 if { (eval echo "$as_me:2619: \"$ac_cpp conftest.$ac_ext\"") >&5
2620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622 egrep -v '^ *\+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2635 if test -z "$ac_cpp_err"; then
2636 # Broken: success on invalid input.
2639 echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 # Passes both tests.
2645 rm -f conftest.err conftest.$ac_ext
2648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2649 rm -f conftest.err conftest.$ac_ext
2650 if $ac_preproc_ok; then
2653 { { echo "$as_me:2653: error: C preprocessor \"$CPP\" fails sanity check" >&5
2654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2655 { (exit 1); exit 1; }; }
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 ac_main_return=return
2665 if test $ac_cv_c_compiler_gnu = yes; then
2666 echo "$as_me:2666: checking whether $CC needs -traditional" >&5
2667 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2668 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 ac_pattern="Autoconf.*'x'"
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #line 2673 "configure"
2674 #include "confdefs.h"
2676 int Autoconf = TIOCGETP;
2678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2679 egrep "$ac_pattern" >/dev/null 2>&1; then
2680 ac_cv_prog_gcc_traditional=yes
2682 ac_cv_prog_gcc_traditional=no
2686 if test $ac_cv_prog_gcc_traditional = no; then
2687 cat >conftest.$ac_ext <<_ACEOF
2688 #line 2688 "configure"
2689 #include "confdefs.h"
2691 int Autoconf = TCGETA;
2693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2694 egrep "$ac_pattern" >/dev/null 2>&1; then
2695 ac_cv_prog_gcc_traditional=yes
2701 echo "$as_me:2701: result: $ac_cv_prog_gcc_traditional" >&5
2702 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2703 if test $ac_cv_prog_gcc_traditional = yes; then
2704 CC="$CC -traditional"
2708 echo "$as_me:2708: checking whether $CC understands -c and -o together" >&5
2709 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2710 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 cat > conftest.$ac_ext <<CF_EOF
2717 ${cf_cv_main_return:-return}(0);
2720 # We do the test twice because some compilers refuse to overwrite an
2721 # existing .o file with -o, though they will create one.
2722 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2723 if { (eval echo "$as_me:2723: \"$ac_try\"") >&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 test -f conftest2.$ac_objext && { (eval echo "$as_me:2728: \"$ac_try\"") >&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); };
2734 eval cf_cv_prog_CC_c_o=yes
2736 eval cf_cv_prog_CC_c_o=no
2741 if test $cf_cv_prog_CC_c_o = yes; then
2742 echo "$as_me:2742: result: yes" >&5
2743 echo "${ECHO_T}yes" >&6
2745 echo "$as_me:2745: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2749 if test "$cross_compiling" = yes ; then
2752 case "$cf_cv_system_name" in
2753 (dragonfly*|mirbsd*|freebsd*)
2754 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2756 (*) LDPATH=$PATH:/sbin:/usr/sbin
2757 # Extract the first word of "ldconfig", so it can be a program name with args.
2758 set dummy ldconfig; ac_word=$2
2759 echo "$as_me:2759: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2769 ac_save_IFS=$IFS; IFS=$ac_path_separator
2771 for ac_dir in $ac_dummy; do
2773 test -z "$ac_dir" && ac_dir=.
2774 if $as_executable_p "$ac_dir/$ac_word"; then
2775 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2776 echo "$as_me:2776: found $ac_dir/$ac_word" >&5
2784 LDCONFIG=$ac_cv_path_LDCONFIG
2786 if test -n "$LDCONFIG"; then
2787 echo "$as_me:2787: result: $LDCONFIG" >&5
2788 echo "${ECHO_T}$LDCONFIG" >&6
2790 echo "$as_me:2790: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2798 echo "$as_me:2798: checking if you want to ensure bool is consistent with C++" >&5
2799 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2801 # Check whether --with-cxx or --without-cxx was given.
2802 if test "${with_cxx+set}" = set; then
2804 cf_with_cxx=$withval
2808 echo "$as_me:2808: result: $cf_with_cxx" >&5
2809 echo "${ECHO_T}$cf_with_cxx" >&6
2810 if test "X$cf_with_cxx" = Xno ; then
2814 # with autoconf 2.13, we can change the error to a warning:
2816 ac_cpp='$CXXCPP $CPPFLAGS'
2817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820 ac_main_return=return
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 echo "$as_me:2826: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_CXX+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 if test -n "$CXX"; then
2832 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2834 ac_save_IFS=$IFS; IFS=$ac_path_separator
2836 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 $as_executable_p "$ac_dir/$ac_word" || continue
2840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2841 echo "$as_me:2841: found $ac_dir/$ac_word" >&5
2848 if test -n "$CXX"; then
2849 echo "$as_me:2849: result: $CXX" >&5
2850 echo "${ECHO_T}$CXX" >&6
2852 echo "$as_me:2852: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2856 test -n "$CXX" && break
2859 if test -z "$CXX"; then
2861 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; 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_prog_ac_ct_CXX+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873 ac_save_IFS=$IFS; IFS=$ac_path_separator
2875 for ac_dir in $ac_dummy; do
2877 test -z "$ac_dir" && ac_dir=.
2878 $as_executable_p "$ac_dir/$ac_word" || continue
2879 ac_cv_prog_ac_ct_CXX="$ac_prog"
2880 echo "$as_me:2880: found $ac_dir/$ac_word" >&5
2886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2887 if test -n "$ac_ct_CXX"; then
2888 echo "$as_me:2888: result: $ac_ct_CXX" >&5
2889 echo "${ECHO_T}$ac_ct_CXX" >&6
2891 echo "$as_me:2891: result: no" >&5
2892 echo "${ECHO_T}no" >&6
2895 test -n "$ac_ct_CXX" && break
2897 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2902 # Provide some information about the compiler.
2903 echo "$as_me:2903:" \
2904 "checking for C++ compiler version" >&5
2905 ac_compiler=`set X $ac_compile; echo $2`
2906 { (eval echo "$as_me:2906: \"$ac_compiler --version </dev/null >&5\"") >&5
2907 (eval $ac_compiler --version </dev/null >&5) 2>&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (eval echo "$as_me:2911: \"$ac_compiler -v </dev/null >&5\"") >&5
2912 (eval $ac_compiler -v </dev/null >&5) 2>&5
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (eval echo "$as_me:2916: \"$ac_compiler -V </dev/null >&5\"") >&5
2917 (eval $ac_compiler -V </dev/null >&5) 2>&5
2919 echo "$as_me:2919: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 echo "$as_me:2922: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2928 #line 2928 "configure"
2929 #include "confdefs.h"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2960 rm -f conftest.$ac_objext conftest.$ac_ext
2961 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2964 echo "$as_me:2964: result: $ac_cv_cxx_compiler_gnu" >&5
2965 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2966 GXX=`test $ac_compiler_gnu = yes && echo yes`
2967 ac_test_CXXFLAGS=${CXXFLAGS+set}
2968 ac_save_CXXFLAGS=$CXXFLAGS
2970 echo "$as_me:2970: checking whether $CXX accepts -g" >&5
2971 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2972 if test "${ac_cv_prog_cxx_g+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line 2976 "configure"
2977 #include "confdefs.h"
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 ac_cv_prog_cxx_g=yes
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3007 echo "$as_me:3007: result: $ac_cv_prog_cxx_g" >&5
3008 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3009 if test "$ac_test_CXXFLAGS" = set; then
3010 CXXFLAGS=$ac_save_CXXFLAGS
3011 elif test $ac_cv_prog_cxx_g = yes; then
3012 if test "$GXX" = yes; then
3018 if test "$GXX" = yes; then
3024 for ac_declaration in \
3026 '#include <stdlib.h>' \
3027 'extern "C" void std::exit (int) throw (); using std::exit;' \
3028 'extern "C" void std::exit (int); using std::exit;' \
3029 'extern "C" void exit (int) throw ();' \
3030 'extern "C" void exit (int);' \
3033 cat >conftest.$ac_ext <<_ACEOF
3034 #line 3034 "configure"
3035 #include "confdefs.h"
3046 rm -f conftest.$ac_objext
3047 if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5
3048 (eval $ac_compile) 2>&5
3050 echo "$as_me:3050: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:3053: \"$ac_try\"") >&5
3056 echo "$as_me:3056: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3060 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3064 rm -f conftest.$ac_objext conftest.$ac_ext
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line 3066 "configure"
3067 #include "confdefs.h"
3077 rm -f conftest.$ac_objext
3078 if { (eval echo "$as_me:3078: \"$ac_compile\"") >&5
3079 (eval $ac_compile) 2>&5
3081 echo "$as_me:3081: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:3084: \"$ac_try\"") >&5
3087 echo "$as_me:3087: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 rm -f conftest.$ac_objext conftest.$ac_ext
3097 if test -n "$ac_declaration"; then
3098 echo '#ifdef __cplusplus' >>confdefs.h
3099 echo $ac_declaration >>confdefs.h
3100 echo '#endif' >>confdefs.h
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 ac_main_return=return
3111 ac_cpp='$CXXCPP $CPPFLAGS'
3112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3115 ac_main_return=return
3117 if test "x$cf_with_cxx" != xno
3119 # Several of the C++ configurations do not work, particularly when
3120 # cross-compiling (20140913 -TD)
3121 echo "$as_me:3121: checking if $CXX works" >&5
3122 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3124 save_CPPFLAGS="$CPPFLAGS"
3125 eval cf_includedir=${includedir}
3126 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #line 3129 "configure"
3130 #include "confdefs.h"
3139 printf("Hello world!\n")
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:3146: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>&5
3149 echo "$as_me:3149: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (eval echo "$as_me:3152: \"$ac_try\"") >&5
3155 echo "$as_me:3155: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3163 rm -f conftest.$ac_objext conftest.$ac_ext
3164 CPPFLAGS="$save_CPPFLAGS"
3166 echo "$as_me:3166: result: $cf_cxx_works" >&5
3167 echo "${ECHO_T}$cf_cxx_works" >&6
3168 if test "x$cf_cxx_works" = xno
3170 { echo "$as_me:3170: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3171 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3172 cf_with_cxx=no; CXX=""; GXX="";
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 ac_main_return=return
3182 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3183 if test "$CXX" = "g++" ; then
3184 # Extract the first word of "g++", so it can be a program name with args.
3185 set dummy g++; ac_word=$2
3186 echo "$as_me:3186: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188 if test "${ac_cv_path_CXX+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3196 ac_save_IFS=$IFS; IFS=$ac_path_separator
3198 for ac_dir in $ac_dummy; do
3200 test -z "$ac_dir" && ac_dir=.
3201 if $as_executable_p "$ac_dir/$ac_word"; then
3202 ac_cv_path_CXX="$ac_dir/$ac_word"
3203 echo "$as_me:3203: found $ac_dir/$ac_word" >&5
3213 if test -n "$CXX"; then
3214 echo "$as_me:3214: result: $CXX" >&5
3215 echo "${ECHO_T}$CXX" >&6
3217 echo "$as_me:3217: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3224 { echo "$as_me:3224: WARNING: You don't have any C++ compiler, too bad" >&5
3225 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3226 cf_with_cxx=no; CXX=""; GXX="";
3232 if test "$GXX" = yes; then
3233 echo "$as_me:3233: checking version of ${CXX:-g++}" >&5
3234 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3235 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3236 if test -z "$GXX_VERSION"
3241 echo "$as_me:3241: result: $GXX_VERSION" >&5
3242 echo "${ECHO_T}$GXX_VERSION" >&6
3245 case $GXX_VERSION in
3247 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3249 { echo "$as_me:3249: WARNING: templates do not work" >&5
3250 echo "$as_me: WARNING: templates do not work" >&2;}
3254 echo "$as_me:3254: checking if you want to build C++ binding and demo" >&5
3255 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3257 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3258 if test "${with_cxx_binding+set}" = set; then
3259 withval="$with_cxx_binding"
3260 cf_with_cxx_binding=$withval
3262 cf_with_cxx_binding=$cf_with_cxx
3264 echo "$as_me:3264: result: $cf_with_cxx_binding" >&5
3265 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3267 echo "$as_me:3267: checking if you want to build with Ada95" >&5
3268 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3269 echo "$as_me:3269: result: $cf_with_ada" >&5
3270 echo "${ECHO_T}$cf_with_ada" >&6
3272 echo "$as_me:3272: checking if you want to install terminal database" >&5
3273 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3275 # Check whether --enable-db-install or --disable-db-install was given.
3276 if test "${enable_db_install+set}" = set; then
3277 enableval="$enable_db_install"
3278 cf_with_db_install=$enableval
3280 cf_with_db_install=yes
3282 echo "$as_me:3282: result: $cf_with_db_install" >&5
3283 echo "${ECHO_T}$cf_with_db_install" >&6
3285 echo "$as_me:3285: checking if you want to install manpages" >&5
3286 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3288 # Check whether --with-manpages or --without-manpages was given.
3289 if test "${with_manpages+set}" = set; then
3290 withval="$with_manpages"
3291 cf_with_manpages=$withval
3293 cf_with_manpages=yes
3295 echo "$as_me:3295: result: $cf_with_manpages" >&5
3296 echo "${ECHO_T}$cf_with_manpages" >&6
3298 echo "$as_me:3298: checking if you want to build programs such as tic" >&5
3299 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3301 # Check whether --with-progs or --without-progs was given.
3302 if test "${with_progs+set}" = set; then
3303 withval="$with_progs"
3304 cf_with_progs=$withval
3308 echo "$as_me:3308: result: $cf_with_progs" >&5
3309 echo "${ECHO_T}$cf_with_progs" >&6
3311 if test -f $srcdir/tack/tack.h; then
3312 if test "x$cross_compiling" = xyes ; then
3313 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3315 echo "${as_me:-configure}:3315: testing ignoring tack because we are cross-compiling ..." 1>&5
3319 echo "$as_me:3319: checking if you want to build the tack program" >&5
3320 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3322 # Check whether --with-tack or --without-tack was given.
3323 if test "${with_tack+set}" = set; then
3324 withval="$with_tack"
3325 cf_with_tack=$withval
3327 cf_with_tack=$cf_with_progs
3329 echo "$as_me:3329: result: $cf_with_tack" >&5
3330 echo "${ECHO_T}$cf_with_tack" >&6
3336 echo "$as_me:3336: checking if you want to build test-programs" >&5
3337 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3339 # Check whether --with-tests or --without-tests was given.
3340 if test "${with_tests+set}" = set; then
3341 withval="$with_tests"
3342 cf_with_tests=$withval
3346 echo "$as_me:3346: result: $cf_with_tests" >&5
3347 echo "${ECHO_T}$cf_with_tests" >&6
3349 echo "$as_me:3349: checking if you wish to install curses.h" >&5
3350 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3352 # Check whether --with-curses-h or --without-curses-h was given.
3353 if test "${with_curses_h+set}" = set; then
3354 withval="$with_curses_h"
3355 with_curses_h=$withval
3359 echo "$as_me:3359: result: $with_curses_h" >&5
3360 echo "${ECHO_T}$with_curses_h" >&6
3362 modules_to_build="ncurses"
3363 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3364 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3365 modules_to_build="$modules_to_build panel menu form"
3367 test "$program_prefix" != NONE &&
3368 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3369 # Use a double $ so make ignores it.
3370 test "$program_suffix" != NONE &&
3371 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3372 # Double any \ or $. echo might interpret backslashes.
3373 # By default was `s,x,x', remove it if useless.
3374 cat <<\_ACEOF >conftest.sed
3375 s/[\\$]/&&/g;s/;s,x,x,$//
3377 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3380 for ac_prog in mawk gawk nawk awk
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy $ac_prog; ac_word=$2
3384 echo "$as_me:3384: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_AWK+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$AWK"; then
3390 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3392 ac_save_IFS=$IFS; IFS=$ac_path_separator
3394 for ac_dir in $ac_dummy; do
3396 test -z "$ac_dir" && ac_dir=.
3397 $as_executable_p "$ac_dir/$ac_word" || continue
3398 ac_cv_prog_AWK="$ac_prog"
3399 echo "$as_me:3399: found $ac_dir/$ac_word" >&5
3406 if test -n "$AWK"; then
3407 echo "$as_me:3407: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3410 echo "$as_me:3410: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 test -n "$AWK" && break
3417 test -z "$AWK" && { { echo "$as_me:3417: error: No awk program found" >&5
3418 echo "$as_me: error: No awk program found" >&2;}
3419 { (exit 1); exit 1; }; }
3421 echo "$as_me:3421: checking for egrep" >&5
3422 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3423 if test "${ac_cv_prog_egrep+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3427 then ac_cv_prog_egrep='grep -E'
3428 else ac_cv_prog_egrep='egrep'
3431 echo "$as_me:3431: result: $ac_cv_prog_egrep" >&5
3432 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3433 EGREP=$ac_cv_prog_egrep
3435 test -z "$EGREP" && { { echo "$as_me:3435: error: No egrep program found" >&5
3436 echo "$as_me: error: No egrep program found" >&2;}
3437 { (exit 1); exit 1; }; }
3439 # Find a good install program. We prefer a C program (faster),
3440 # so one script is as good as another. But avoid the broken or
3441 # incompatible versions:
3442 # SysV /etc/install, /usr/sbin/install
3443 # SunOS /usr/etc/install
3444 # IRIX /sbin/install
3446 # AmigaOS /C/install, which installs bootblocks on floppy discs
3447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3450 # ./install, which can be erroneously created by make from ./install.sh.
3451 echo "$as_me:3451: checking for a BSD compatible install" >&5
3452 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3453 if test -z "$INSTALL"; then
3454 if test "${ac_cv_path_install+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_save_IFS=$IFS; IFS=$ac_path_separator
3458 for ac_dir in $PATH; do
3460 # Account for people who put trailing slashes in PATH elements.
3462 / | ./ | .// | /cC/* \
3463 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3466 # OSF1 and SCO ODT 3.0 have their own names for install.
3467 # Don't use installbsd from OSF since it installs stuff as root
3469 for ac_prog in ginstall scoinst install; do
3470 if $as_executable_p "$ac_dir/$ac_prog"; then
3471 if test $ac_prog = install &&
3472 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3473 # AIX install. It has an incompatible calling convention.
3475 elif test $ac_prog = install &&
3476 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3477 # program-specific install script used by HP pwplus--don't use.
3480 ac_cv_path_install="$ac_dir/$ac_prog -c"
3490 if test "${ac_cv_path_install+set}" = set; then
3491 INSTALL=$ac_cv_path_install
3493 # As a last resort, use the slow shell script. We don't cache a
3494 # path for INSTALL within a source directory, because that will
3495 # break other packages using the cache if that directory is
3496 # removed, or if the path is relative.
3497 INSTALL=$ac_install_sh
3500 echo "$as_me:3500: result: $INSTALL" >&5
3501 echo "${ECHO_T}$INSTALL" >&6
3503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3504 # It thinks the first close brace ends the variable substitution.
3505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3507 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3509 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3515 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3516 test -z "$cf_dir" && cf_dir=.
3517 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3521 for ac_prog in lint cppcheck splint
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 echo "$as_me:3525: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_prog_LINT+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if test -n "$LINT"; then
3531 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3533 ac_save_IFS=$IFS; IFS=$ac_path_separator
3535 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 $as_executable_p "$ac_dir/$ac_word" || continue
3539 ac_cv_prog_LINT="$ac_prog"
3540 echo "$as_me:3540: found $ac_dir/$ac_word" >&5
3546 LINT=$ac_cv_prog_LINT
3547 if test -n "$LINT"; then
3548 echo "$as_me:3548: result: $LINT" >&5
3549 echo "${ECHO_T}$LINT" >&6
3551 echo "$as_me:3551: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3555 test -n "$LINT" && break
3558 echo "$as_me:3558: checking whether ln -s works" >&5
3559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3561 if test "$LN_S" = "ln -s"; then
3562 echo "$as_me:3562: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3565 echo "$as_me:3565: result: no, using $LN_S" >&5
3566 echo "${ECHO_T}no, using $LN_S" >&6
3569 echo "$as_me:3569: checking if $LN_S -f options work" >&5
3570 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3572 rm -f conf$$.src conf$$dst
3574 echo first >conf$$.src
3575 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3580 rm -f conf$$.dst conf$$src
3581 echo "$as_me:3581: result: $cf_prog_ln_sf" >&5
3582 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3584 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3586 echo "$as_me:3586: checking for long file names" >&5
3587 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3588 if test "${ac_cv_sys_long_file_names+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 ac_cv_sys_long_file_names=yes
3592 # Test for long file names in all the places we know might matter:
3593 # . the current directory, where building will happen
3594 # $prefix/lib where we will be installing things
3595 # $exec_prefix/lib likewise
3596 # eval it to expand exec_prefix.
3597 # $TMPDIR if set, where it might want to write temporary files
3598 # if $TMPDIR is not set:
3599 # /tmp where it might want to write temporary files
3602 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3605 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3607 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3608 test -d $ac_dir || continue
3609 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3610 ac_xdir=$ac_dir/cf$$
3611 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3612 ac_tf1=$ac_xdir/conftest9012345
3613 ac_tf2=$ac_xdir/conftest9012346
3614 (echo 1 >$ac_tf1) 2>/dev/null
3615 (echo 2 >$ac_tf2) 2>/dev/null
3616 ac_val=`cat $ac_tf1 2>/dev/null`
3617 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3618 ac_cv_sys_long_file_names=no
3619 rm -rf $ac_xdir 2>/dev/null
3622 rm -rf $ac_xdir 2>/dev/null
3625 echo "$as_me:3625: result: $ac_cv_sys_long_file_names" >&5
3626 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3627 if test $ac_cv_sys_long_file_names = yes; then
3629 cat >>confdefs.h <<\EOF
3630 #define HAVE_LONG_FILE_NAMES 1
3635 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3636 # of package conflict.
3639 # Check whether --with-config-suffix or --without-config-suffix was given.
3640 if test "${with_config_suffix+set}" = set; then
3641 withval="$with_config_suffix"
3644 { echo "$as_me:3644: WARNING: expected a value for config-suffix option" >&5
3645 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3647 (*) cf_config_suffix="$withval"
3652 # If we find pkg-config, check if we should install the ".pc" files.
3654 echo "$as_me:3654: checking if you want to use pkg-config" >&5
3655 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3657 # Check whether --with-pkg-config or --without-pkg-config was given.
3658 if test "${with_pkg_config+set}" = set; then
3659 withval="$with_pkg_config"
3660 cf_pkg_config=$withval
3664 echo "$as_me:3664: result: $cf_pkg_config" >&5
3665 echo "${ECHO_T}$cf_pkg_config" >&6
3667 case $cf_pkg_config in
3673 if test -n "$ac_tool_prefix"; then
3674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3675 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3676 echo "$as_me:3676: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3686 ac_save_IFS=$IFS; IFS=$ac_path_separator
3688 for ac_dir in $ac_dummy; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if $as_executable_p "$ac_dir/$ac_word"; then
3692 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3693 echo "$as_me:3693: found $ac_dir/$ac_word" >&5
3701 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3703 if test -n "$PKG_CONFIG"; then
3704 echo "$as_me:3704: result: $PKG_CONFIG" >&5
3705 echo "${ECHO_T}$PKG_CONFIG" >&6
3707 echo "$as_me:3707: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3712 if test -z "$ac_cv_path_PKG_CONFIG"; then
3713 ac_pt_PKG_CONFIG=$PKG_CONFIG
3714 # Extract the first word of "pkg-config", so it can be a program name with args.
3715 set dummy pkg-config; ac_word=$2
3716 echo "$as_me:3716: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 case $ac_pt_PKG_CONFIG in
3723 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3726 ac_save_IFS=$IFS; IFS=$ac_path_separator
3728 for ac_dir in $ac_dummy; do
3730 test -z "$ac_dir" && ac_dir=.
3731 if $as_executable_p "$ac_dir/$ac_word"; then
3732 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3733 echo "$as_me:3733: found $ac_dir/$ac_word" >&5
3738 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3742 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3744 if test -n "$ac_pt_PKG_CONFIG"; then
3745 echo "$as_me:3745: result: $ac_pt_PKG_CONFIG" >&5
3746 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3748 echo "$as_me:3748: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3752 PKG_CONFIG=$ac_pt_PKG_CONFIG
3754 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3763 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3764 if test "$PKG_CONFIG" != none ; then
3766 if test "x$prefix" != xNONE; then
3767 cf_path_syntax="$prefix"
3769 cf_path_syntax="$ac_default_prefix"
3772 case ".$PKG_CONFIG" in
3777 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3779 (.\${*prefix}*|.\${*dir}*)
3780 eval PKG_CONFIG="$PKG_CONFIG"
3781 case ".$PKG_CONFIG" in
3783 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3788 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3791 { { echo "$as_me:3791: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3792 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3793 { (exit 1); exit 1; }; }
3797 elif test "x$cf_pkg_config" != xno ; then
3798 { echo "$as_me:3798: WARNING: pkg-config is not installed" >&5
3799 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3804 echo "$as_me:3804: checking for pkg-config library directory" >&5
3805 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3808 echo "$as_me:3808: checking for $PKG_CONFIG library directory" >&5
3809 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3813 PKG_CONFIG_LIBDIR=no
3815 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3816 if test "${with_pkg_config_libdir+set}" = set; then
3817 withval="$with_pkg_config_libdir"
3818 PKG_CONFIG_LIBDIR=$withval
3820 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3823 case x$PKG_CONFIG_LIBDIR in
3827 # Look for the library directory using the same prefix as the executable
3828 if test "x$PKG_CONFIG" = xnone
3832 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3835 # If you don't like using the default architecture, you have to specify the
3836 # intended library directory and corresponding compiler/linker options.
3838 # This case allows for Debian's 2014-flavor of multiarch, along with the
3839 # most common variations before that point. Some other variants spell the
3840 # directory differently, e.g., "pkg-config", and put it in unusual places.
3841 # pkg-config has always been poorly standardized, which is ironic...
3842 case x`(arch) 2>/dev/null` in
3845 $cf_path/lib/*64-linux-gnu \
3853 $cf_path/lib/*-linux-gnu \
3861 test -n "$verbose" && echo " list..." 1>&6
3863 echo "${as_me:-configure}:3863: testing list... ..." 1>&5
3865 for cf_config in $cf_search_path
3867 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3869 echo "${as_me:-configure}:3869: testing checking $cf_config/pkgconfig ..." 1>&5
3871 if test -d $cf_config/pkgconfig
3873 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3874 echo "$as_me:3874: checking done" >&5
3875 echo $ECHO_N "checking done... $ECHO_C" >&6
3884 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3885 echo "$as_me:3885: result: $PKG_CONFIG_LIBDIR" >&5
3886 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3889 if test "x$PKG_CONFIG" != xnone
3891 echo "$as_me:3891: checking if we should install .pc files for $PKG_CONFIG" >&5
3892 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3894 echo "$as_me:3894: checking if we should install .pc files" >&5
3895 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3898 # Check whether --enable-pc-files or --disable-pc-files was given.
3899 if test "${enable_pc_files+set}" = set; then
3900 enableval="$enable_pc_files"
3901 enable_pc_files=$enableval
3905 echo "$as_me:3905: result: $enable_pc_files" >&5
3906 echo "${ECHO_T}$enable_pc_files" >&6
3908 if test "x$enable_pc_files" != xno
3911 case "x$PKG_CONFIG_LIBDIR" in
3913 { echo "$as_me:3913: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3914 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3918 if test "x$prefix" != xNONE; then
3919 cf_path_syntax="$prefix"
3921 cf_path_syntax="$ac_default_prefix"
3924 case ".$PKG_CONFIG_LIBDIR" in
3929 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3931 (.\${*prefix}*|.\${*dir}*)
3932 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3933 case ".$PKG_CONFIG_LIBDIR" in
3935 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3940 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3943 { { echo "$as_me:3943: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3944 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3945 { (exit 1); exit 1; }; }
3955 if test -z "$MAKE_PC_FILES"
3957 echo "$as_me:3957: checking for suffix to add to pc-files" >&5
3958 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3960 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3961 if test "${with_pc_suffix+set}" = set; then
3962 withval="$with_pc_suffix"
3967 (*) PC_MODULE_SUFFIX="$withval"
3971 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3972 echo "$as_me:3972: result: $PC_MODULE_SUFFIX" >&5
3973 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3974 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3978 echo "$as_me:3978: checking if we should assume mixed-case filenames" >&5
3979 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3981 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3982 if test "${enable_mixed_case+set}" = set; then
3983 enableval="$enable_mixed_case"
3984 enable_mixedcase=$enableval
3986 enable_mixedcase=auto
3988 echo "$as_me:3988: result: $enable_mixedcase" >&5
3989 echo "${ECHO_T}$enable_mixedcase" >&6
3990 if test "$enable_mixedcase" = "auto" ; then
3992 echo "$as_me:3992: checking if filesystem supports mixed-case filenames" >&5
3993 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3994 if test "${cf_cv_mixedcase+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test "$cross_compiling" = yes ; then
3999 case $target_alias in
4000 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4008 rm -f conftest CONFTEST
4010 if test -f CONFTEST ; then
4015 rm -f conftest CONFTEST
4019 echo "$as_me:4019: result: $cf_cv_mixedcase" >&5
4020 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4021 test "$cf_cv_mixedcase" = yes &&
4022 cat >>confdefs.h <<\EOF
4023 #define MIXEDCASE_FILENAMES 1
4027 cf_cv_mixedcase=$enable_mixedcase
4028 if test "x$enable_mixedcase" = "xyes" ; then
4030 cat >>confdefs.h <<\EOF
4031 #define MIXEDCASE_FILENAMES 1
4037 # do this after mixed-case option (tags/TAGS is not as important as tic).
4038 echo "$as_me:4038: checking whether ${MAKE-make} sets \${MAKE}" >&5
4039 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4040 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4041 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 cat >conftest.make <<\EOF
4046 @echo 'ac_maketemp="${MAKE}"'
4048 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4049 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4050 if test -n "$ac_maketemp"; then
4051 eval ac_cv_prog_make_${ac_make}_set=yes
4053 eval ac_cv_prog_make_${ac_make}_set=no
4057 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4058 echo "$as_me:4058: result: yes" >&5
4059 echo "${ECHO_T}yes" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4064 SET_MAKE="MAKE=${MAKE-make}"
4067 for ac_prog in exctags ctags
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070 set dummy $ac_prog; ac_word=$2
4071 echo "$as_me:4071: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_CTAGS+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$CTAGS"; then
4077 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4079 ac_save_IFS=$IFS; IFS=$ac_path_separator
4081 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 $as_executable_p "$ac_dir/$ac_word" || continue
4085 ac_cv_prog_CTAGS="$ac_prog"
4086 echo "$as_me:4086: found $ac_dir/$ac_word" >&5
4092 CTAGS=$ac_cv_prog_CTAGS
4093 if test -n "$CTAGS"; then
4094 echo "$as_me:4094: result: $CTAGS" >&5
4095 echo "${ECHO_T}$CTAGS" >&6
4097 echo "$as_me:4097: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4101 test -n "$CTAGS" && break
4104 for ac_prog in exetags etags
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 echo "$as_me:4108: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_prog_ETAGS+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 if test -n "$ETAGS"; then
4114 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4116 ac_save_IFS=$IFS; IFS=$ac_path_separator
4118 for ac_dir in $ac_dummy; do
4120 test -z "$ac_dir" && ac_dir=.
4121 $as_executable_p "$ac_dir/$ac_word" || continue
4122 ac_cv_prog_ETAGS="$ac_prog"
4123 echo "$as_me:4123: found $ac_dir/$ac_word" >&5
4129 ETAGS=$ac_cv_prog_ETAGS
4130 if test -n "$ETAGS"; then
4131 echo "$as_me:4131: result: $ETAGS" >&5
4132 echo "${ECHO_T}$ETAGS" >&6
4134 echo "$as_me:4134: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 test -n "$ETAGS" && break
4141 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4142 set dummy ${CTAGS:-ctags}; ac_word=$2
4143 echo "$as_me:4143: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$MAKE_LOWER_TAGS"; then
4149 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4151 ac_save_IFS=$IFS; IFS=$ac_path_separator
4153 for ac_dir in $ac_dummy; do
4155 test -z "$ac_dir" && ac_dir=.
4156 $as_executable_p "$ac_dir/$ac_word" || continue
4157 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4158 echo "$as_me:4158: found $ac_dir/$ac_word" >&5
4162 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4165 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4166 if test -n "$MAKE_LOWER_TAGS"; then
4167 echo "$as_me:4167: result: $MAKE_LOWER_TAGS" >&5
4168 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4170 echo "$as_me:4170: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4174 if test "$cf_cv_mixedcase" = yes ; then
4175 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4176 set dummy ${ETAGS:-etags}; 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_MAKE_UPPER_TAGS+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$MAKE_UPPER_TAGS"; then
4183 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # 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_MAKE_UPPER_TAGS="yes"
4192 echo "$as_me:4192: found $ac_dir/$ac_word" >&5
4196 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4199 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4200 if test -n "$MAKE_UPPER_TAGS"; then
4201 echo "$as_me:4201: result: $MAKE_UPPER_TAGS" >&5
4202 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4204 echo "$as_me:4204: result: no" >&5
4205 echo "${ECHO_T}no" >&6
4212 if test "$MAKE_UPPER_TAGS" = yes ; then
4218 if test "$MAKE_LOWER_TAGS" = yes ; then
4224 echo "$as_me:4224: checking for makeflags variable" >&5
4225 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4226 if test "${cf_cv_makeflags+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4233 cat >cf_makeflags.tmp <<CF_EOF
4236 @ echo '.$cf_option'
4238 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4239 case "$cf_result" in
4241 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4242 case "$cf_result" in
4243 (.*CC=*) cf_cv_makeflags=
4245 (*) cf_cv_makeflags=$cf_option
4254 echo "${as_me:-configure}:4254: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4259 rm -f cf_makeflags.tmp
4262 echo "$as_me:4262: result: $cf_cv_makeflags" >&5
4263 echo "${ECHO_T}$cf_cv_makeflags" >&6
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4268 echo "$as_me:4268: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_prog_RANLIB+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$RANLIB"; then
4274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4276 ac_save_IFS=$IFS; IFS=$ac_path_separator
4278 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 $as_executable_p "$ac_dir/$ac_word" || continue
4282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283 echo "$as_me:4283: found $ac_dir/$ac_word" >&5
4289 RANLIB=$ac_cv_prog_RANLIB
4290 if test -n "$RANLIB"; then
4291 echo "$as_me:4291: result: $RANLIB" >&5
4292 echo "${ECHO_T}$RANLIB" >&6
4294 echo "$as_me:4294: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4299 if test -z "$ac_cv_prog_RANLIB"; then
4300 ac_ct_RANLIB=$RANLIB
4301 # Extract the first word of "ranlib", so it can be a program name with args.
4302 set dummy ranlib; ac_word=$2
4303 echo "$as_me:4303: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$ac_ct_RANLIB"; then
4309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4311 ac_save_IFS=$IFS; IFS=$ac_path_separator
4313 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 $as_executable_p "$ac_dir/$ac_word" || continue
4317 ac_cv_prog_ac_ct_RANLIB="ranlib"
4318 echo "$as_me:4318: found $ac_dir/$ac_word" >&5
4322 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4325 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4326 if test -n "$ac_ct_RANLIB"; then
4327 echo "$as_me:4327: result: $ac_ct_RANLIB" >&5
4328 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4330 echo "$as_me:4330: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4334 RANLIB=$ac_ct_RANLIB
4336 RANLIB="$ac_cv_prog_RANLIB"
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ld; ac_word=$2
4342 echo "$as_me:4342: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4344 if test "${ac_cv_prog_LD+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test -n "$LD"; then
4348 ac_cv_prog_LD="$LD" # Let the user override the test.
4350 ac_save_IFS=$IFS; IFS=$ac_path_separator
4352 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 $as_executable_p "$ac_dir/$ac_word" || continue
4356 ac_cv_prog_LD="${ac_tool_prefix}ld"
4357 echo "$as_me:4357: found $ac_dir/$ac_word" >&5
4364 if test -n "$LD"; then
4365 echo "$as_me:4365: result: $LD" >&5
4366 echo "${ECHO_T}$LD" >&6
4368 echo "$as_me:4368: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4373 if test -z "$ac_cv_prog_LD"; then
4375 # Extract the first word of "ld", so it can be a program name with args.
4376 set dummy ld; ac_word=$2
4377 echo "$as_me:4377: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4379 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 if test -n "$ac_ct_LD"; then
4383 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4385 ac_save_IFS=$IFS; IFS=$ac_path_separator
4387 for ac_dir in $ac_dummy; do
4389 test -z "$ac_dir" && ac_dir=.
4390 $as_executable_p "$ac_dir/$ac_word" || continue
4391 ac_cv_prog_ac_ct_LD="ld"
4392 echo "$as_me:4392: found $ac_dir/$ac_word" >&5
4396 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4399 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4400 if test -n "$ac_ct_LD"; then
4401 echo "$as_me:4401: result: $ac_ct_LD" >&5
4402 echo "${ECHO_T}$ac_ct_LD" >&6
4404 echo "$as_me:4404: result: no" >&5
4405 echo "${ECHO_T}no" >&6
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}ar; ac_word=$2
4416 echo "$as_me:4416: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4418 if test "${ac_cv_prog_AR+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 if test -n "$AR"; then
4422 ac_cv_prog_AR="$AR" # Let the user override the test.
4424 ac_save_IFS=$IFS; IFS=$ac_path_separator
4426 for ac_dir in $ac_dummy; do
4428 test -z "$ac_dir" && ac_dir=.
4429 $as_executable_p "$ac_dir/$ac_word" || continue
4430 ac_cv_prog_AR="${ac_tool_prefix}ar"
4431 echo "$as_me:4431: found $ac_dir/$ac_word" >&5
4438 if test -n "$AR"; then
4439 echo "$as_me:4439: result: $AR" >&5
4440 echo "${ECHO_T}$AR" >&6
4442 echo "$as_me:4442: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4447 if test -z "$ac_cv_prog_AR"; then
4449 # Extract the first word of "ar", so it can be a program name with args.
4450 set dummy ar; ac_word=$2
4451 echo "$as_me:4451: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -n "$ac_ct_AR"; then
4457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4459 ac_save_IFS=$IFS; IFS=$ac_path_separator
4461 for ac_dir in $ac_dummy; do
4463 test -z "$ac_dir" && ac_dir=.
4464 $as_executable_p "$ac_dir/$ac_word" || continue
4465 ac_cv_prog_ac_ct_AR="ar"
4466 echo "$as_me:4466: found $ac_dir/$ac_word" >&5
4470 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4474 if test -n "$ac_ct_AR"; then
4475 echo "$as_me:4475: result: $ac_ct_AR" >&5
4476 echo "${ECHO_T}$ac_ct_AR" >&6
4478 echo "$as_me:4478: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}nm; ac_word=$2
4490 echo "$as_me:4490: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_NM+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$NM"; then
4496 ac_cv_prog_NM="$NM" # Let the user override the test.
4498 ac_save_IFS=$IFS; IFS=$ac_path_separator
4500 for ac_dir in $ac_dummy; do
4502 test -z "$ac_dir" && ac_dir=.
4503 $as_executable_p "$ac_dir/$ac_word" || continue
4504 ac_cv_prog_NM="${ac_tool_prefix}nm"
4505 echo "$as_me:4505: found $ac_dir/$ac_word" >&5
4512 if test -n "$NM"; then
4513 echo "$as_me:4513: result: $NM" >&5
4514 echo "${ECHO_T}$NM" >&6
4516 echo "$as_me:4516: result: no" >&5
4517 echo "${ECHO_T}no" >&6
4521 if test -z "$ac_cv_prog_NM"; then
4523 # Extract the first word of "nm", so it can be a program name with args.
4524 set dummy nm; ac_word=$2
4525 echo "$as_me:4525: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 if test -n "$ac_ct_NM"; then
4531 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4533 ac_save_IFS=$IFS; IFS=$ac_path_separator
4535 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 $as_executable_p "$ac_dir/$ac_word" || continue
4539 ac_cv_prog_ac_ct_NM="nm"
4540 echo "$as_me:4540: found $ac_dir/$ac_word" >&5
4544 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4547 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4548 if test -n "$ac_ct_NM"; then
4549 echo "$as_me:4549: result: $ac_ct_NM" >&5
4550 echo "${ECHO_T}$ac_ct_NM" >&6
4552 echo "$as_me:4552: result: no" >&5
4553 echo "${ECHO_T}no" >&6
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}ar; ac_word=$2
4564 echo "$as_me:4564: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_AR+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$AR"; then
4570 ac_cv_prog_AR="$AR" # Let the user override the test.
4572 ac_save_IFS=$IFS; IFS=$ac_path_separator
4574 for ac_dir in $ac_dummy; do
4576 test -z "$ac_dir" && ac_dir=.
4577 $as_executable_p "$ac_dir/$ac_word" || continue
4578 ac_cv_prog_AR="${ac_tool_prefix}ar"
4579 echo "$as_me:4579: found $ac_dir/$ac_word" >&5
4586 if test -n "$AR"; then
4587 echo "$as_me:4587: result: $AR" >&5
4588 echo "${ECHO_T}$AR" >&6
4590 echo "$as_me:4590: result: no" >&5
4591 echo "${ECHO_T}no" >&6
4595 if test -z "$ac_cv_prog_AR"; then
4597 # Extract the first word of "ar", so it can be a program name with args.
4598 set dummy ar; ac_word=$2
4599 echo "$as_me:4599: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$ac_ct_AR"; then
4605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4607 ac_save_IFS=$IFS; IFS=$ac_path_separator
4609 for ac_dir in $ac_dummy; do
4611 test -z "$ac_dir" && ac_dir=.
4612 $as_executable_p "$ac_dir/$ac_word" || continue
4613 ac_cv_prog_ac_ct_AR="ar"
4614 echo "$as_me:4614: found $ac_dir/$ac_word" >&5
4618 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4622 if test -n "$ac_ct_AR"; then
4623 echo "$as_me:4623: result: $ac_ct_AR" >&5
4624 echo "${ECHO_T}$ac_ct_AR" >&6
4626 echo "$as_me:4626: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4635 echo "$as_me:4635: checking for options to update archives" >&5
4636 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4637 if test "${cf_cv_ar_flags+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 cf_cv_ar_flags=unknown
4642 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4645 # check if $ARFLAGS already contains this choice
4646 if test "x$ARFLAGS" != "x" ; then
4647 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4648 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4654 rm -f conftest.$ac_cv_objext
4657 cat >conftest.$ac_ext <<EOF
4658 #line 4658 "configure"
4659 int testdata[3] = { 123, 456, 789 };
4661 if { (eval echo "$as_me:4661: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>&5
4664 echo "$as_me:4664: \$? = $ac_status" >&5
4665 (exit $ac_status); } ; then
4666 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4667 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4668 if test -f conftest.a ; then
4669 cf_cv_ar_flags=$cf_ar_flags
4673 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4675 echo "${as_me:-configure}:4675: testing cannot compile test-program ..." 1>&5
4680 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4683 echo "$as_me:4683: result: $cf_cv_ar_flags" >&5
4684 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4686 if test -n "$ARFLAGS" ; then
4687 if test -n "$cf_cv_ar_flags" ; then
4688 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4691 ARFLAGS=$cf_cv_ar_flags
4694 echo "$as_me:4694: checking if you have specified an install-prefix" >&5
4695 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4697 # Check whether --with-install-prefix or --without-install-prefix was given.
4698 if test "${with_install_prefix+set}" = set; then
4699 withval="$with_install_prefix"
4703 (*) DESTDIR="$withval"
4707 echo "$as_me:4707: result: $DESTDIR" >&5
4708 echo "${ECHO_T}$DESTDIR" >&6
4710 ###############################################################################
4712 # If we're cross-compiling, allow the user to override the tools and their
4713 # options. The configure script is oriented toward identifying the host
4714 # compiler, etc., but we need a build compiler to generate parts of the source.
4716 if test "$cross_compiling" = yes ; then
4718 # defaults that we might want to override
4719 : ${BUILD_CFLAGS:=''}
4720 : ${BUILD_CPPFLAGS:=''}
4721 : ${BUILD_LDFLAGS:=''}
4723 : ${BUILD_EXEEXT:='$x'}
4724 : ${BUILD_OBJEXT:='o'}
4726 # Check whether --with-build-cc or --without-build-cc was given.
4727 if test "${with_build_cc+set}" = set; then
4728 withval="$with_build_cc"
4731 for ac_prog in gcc clang c99 c89 cc cl
4733 # Extract the first word of "$ac_prog", so it can be a program name with args.
4734 set dummy $ac_prog; ac_word=$2
4735 echo "$as_me:4735: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test -n "$BUILD_CC"; then
4741 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 ac_save_IFS=$IFS; IFS=$ac_path_separator
4745 for ac_dir in $ac_dummy; do
4747 test -z "$ac_dir" && ac_dir=.
4748 $as_executable_p "$ac_dir/$ac_word" || continue
4749 ac_cv_prog_BUILD_CC="$ac_prog"
4750 echo "$as_me:4750: found $ac_dir/$ac_word" >&5
4756 BUILD_CC=$ac_cv_prog_BUILD_CC
4757 if test -n "$BUILD_CC"; then
4758 echo "$as_me:4758: result: $BUILD_CC" >&5
4759 echo "${ECHO_T}$BUILD_CC" >&6
4761 echo "$as_me:4761: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4765 test -n "$BUILD_CC" && break
4767 test -n "$BUILD_CC" || BUILD_CC="none"
4770 echo "$as_me:4770: checking for native build C compiler" >&5
4771 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4772 echo "$as_me:4772: result: $BUILD_CC" >&5
4773 echo "${ECHO_T}$BUILD_CC" >&6
4775 echo "$as_me:4775: checking for native build C preprocessor" >&5
4776 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4778 # Check whether --with-build-cpp or --without-build-cpp was given.
4779 if test "${with_build_cpp+set}" = set; then
4780 withval="$with_build_cpp"
4781 BUILD_CPP="$withval"
4783 BUILD_CPP='${BUILD_CC} -E'
4785 echo "$as_me:4785: result: $BUILD_CPP" >&5
4786 echo "${ECHO_T}$BUILD_CPP" >&6
4788 echo "$as_me:4788: checking for native build C flags" >&5
4789 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4791 # Check whether --with-build-cflags or --without-build-cflags was given.
4792 if test "${with_build_cflags+set}" = set; then
4793 withval="$with_build_cflags"
4794 BUILD_CFLAGS="$withval"
4796 echo "$as_me:4796: result: $BUILD_CFLAGS" >&5
4797 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4799 echo "$as_me:4799: checking for native build C preprocessor-flags" >&5
4800 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4802 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4803 if test "${with_build_cppflags+set}" = set; then
4804 withval="$with_build_cppflags"
4805 BUILD_CPPFLAGS="$withval"
4807 echo "$as_me:4807: result: $BUILD_CPPFLAGS" >&5
4808 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4810 echo "$as_me:4810: checking for native build linker-flags" >&5
4811 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4813 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4814 if test "${with_build_ldflags+set}" = set; then
4815 withval="$with_build_ldflags"
4816 BUILD_LDFLAGS="$withval"
4818 echo "$as_me:4818: result: $BUILD_LDFLAGS" >&5
4819 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4821 echo "$as_me:4821: checking for native build linker-libraries" >&5
4822 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4824 # Check whether --with-build-libs or --without-build-libs was given.
4825 if test "${with_build_libs+set}" = set; then
4826 withval="$with_build_libs"
4827 BUILD_LIBS="$withval"
4829 echo "$as_me:4829: result: $BUILD_LIBS" >&5
4830 echo "${ECHO_T}$BUILD_LIBS" >&6
4832 # this assumes we're on Unix.
4836 : ${BUILD_CC:='${CC}'}
4838 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4839 { { echo "$as_me:4839: error: Cross-build requires two compilers.
4840 Use --with-build-cc to specify the native compiler." >&5
4841 echo "$as_me: error: Cross-build requires two compilers.
4842 Use --with-build-cc to specify the native compiler." >&2;}
4843 { (exit 1); exit 1; }; }
4847 : ${BUILD_CC:='${CC}'}
4848 : ${BUILD_CPP:='${CPP}'}
4849 : ${BUILD_CFLAGS:='${CFLAGS}'}
4850 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4851 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4852 : ${BUILD_LIBS:='${LIBS}'}
4853 : ${BUILD_EXEEXT:='$x'}
4854 : ${BUILD_OBJEXT:='o'}
4857 ###############################################################################
4859 ### Options to allow the user to specify the set of libraries which are used.
4860 ### Use "--without-normal --with-shared" to allow the default model to be
4861 ### shared, for example.
4864 echo "$as_me:4864: checking if libtool -version-number should be used" >&5
4865 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4867 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4868 if test "${enable_libtool_version+set}" = set; then
4869 enableval="$enable_libtool_version"
4870 test "$enableval" != no && enableval=yes
4871 if test "$enableval" != "yes" ; then
4872 cf_libtool_version=no
4874 cf_libtool_version=yes
4878 cf_libtool_version=yes
4881 echo "$as_me:4881: result: $cf_libtool_version" >&5
4882 echo "${ECHO_T}$cf_libtool_version" >&6
4884 if test "$cf_libtool_version" = yes ; then
4885 LIBTOOL_VERSION="-version-number"
4887 LIBTOOL_VERSION="-version-info"
4890 { echo "$as_me:4890: WARNING: VERSION was not set" >&5
4891 echo "$as_me: WARNING: VERSION was not set" >&2;}
4894 ABI_VERSION="$VERSION"
4895 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4897 echo "${as_me:-configure}:4897: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4901 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4902 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4904 echo "${as_me:-configure}:4904: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4908 { echo "$as_me:4908: WARNING: unexpected VERSION value: $VERSION" >&5
4909 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4916 # common library maintenance symbols that are convenient for libtool scripts:
4917 LIB_CREATE='${AR} -cr'
4918 LIB_OBJECT='${OBJECTS}'
4922 # symbols used to prop libtool up to enable it to determine what it should be
4930 echo "$as_me:4930: checking if you want to build libraries with libtool" >&5
4931 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4933 # Check whether --with-libtool or --without-libtool was given.
4934 if test "${with_libtool+set}" = set; then
4935 withval="$with_libtool"
4936 with_libtool=$withval
4940 echo "$as_me:4940: result: $with_libtool" >&5
4941 echo "${ECHO_T}$with_libtool" >&6
4942 if test "$with_libtool" != "no"; then
4944 if test "$with_libtool" != "yes" ; then
4946 if test "x$prefix" != xNONE; then
4947 cf_path_syntax="$prefix"
4949 cf_path_syntax="$ac_default_prefix"
4952 case ".$with_libtool" in
4957 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4959 (.\${*prefix}*|.\${*dir}*)
4960 eval with_libtool="$with_libtool"
4961 case ".$with_libtool" in
4963 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4968 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4971 { { echo "$as_me:4971: error: expected a pathname, not \"$with_libtool\"" >&5
4972 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4973 { (exit 1); exit 1; }; }
4977 LIBTOOL=$with_libtool
4979 if test -n "$ac_tool_prefix"; then
4980 for ac_prog in libtool glibtool
4982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4984 echo "$as_me:4984: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$LIBTOOL"; then
4990 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4992 ac_save_IFS=$IFS; IFS=$ac_path_separator
4994 for ac_dir in $ac_dummy; do
4996 test -z "$ac_dir" && ac_dir=.
4997 $as_executable_p "$ac_dir/$ac_word" || continue
4998 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4999 echo "$as_me:4999: found $ac_dir/$ac_word" >&5
5005 LIBTOOL=$ac_cv_prog_LIBTOOL
5006 if test -n "$LIBTOOL"; then
5007 echo "$as_me:5007: result: $LIBTOOL" >&5
5008 echo "${ECHO_T}$LIBTOOL" >&6
5010 echo "$as_me:5010: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5014 test -n "$LIBTOOL" && break
5017 if test -z "$LIBTOOL"; then
5018 ac_ct_LIBTOOL=$LIBTOOL
5019 for ac_prog in libtool glibtool
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 echo "$as_me:5023: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test -n "$ac_ct_LIBTOOL"; then
5029 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5031 ac_save_IFS=$IFS; IFS=$ac_path_separator
5033 for ac_dir in $ac_dummy; do
5035 test -z "$ac_dir" && ac_dir=.
5036 $as_executable_p "$ac_dir/$ac_word" || continue
5037 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5038 echo "$as_me:5038: found $ac_dir/$ac_word" >&5
5044 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5045 if test -n "$ac_ct_LIBTOOL"; then
5046 echo "$as_me:5046: result: $ac_ct_LIBTOOL" >&5
5047 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5049 echo "$as_me:5049: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5053 test -n "$ac_ct_LIBTOOL" && break
5055 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5057 LIBTOOL=$ac_ct_LIBTOOL
5060 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5062 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.].*//'`
5064 cf_cv_libtool_version=
5066 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5068 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5071 unset ac_cv_prog_ac_ct_LIBTOOL
5075 if test -n "$ac_tool_prefix"; then
5076 for ac_prog in glibtool
5078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5080 echo "$as_me:5080: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 if test -n "$LIBTOOL"; then
5086 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5088 ac_save_IFS=$IFS; IFS=$ac_path_separator
5090 for ac_dir in $ac_dummy; do
5092 test -z "$ac_dir" && ac_dir=.
5093 $as_executable_p "$ac_dir/$ac_word" || continue
5094 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5095 echo "$as_me:5095: found $ac_dir/$ac_word" >&5
5101 LIBTOOL=$ac_cv_prog_LIBTOOL
5102 if test -n "$LIBTOOL"; then
5103 echo "$as_me:5103: result: $LIBTOOL" >&5
5104 echo "${ECHO_T}$LIBTOOL" >&6
5106 echo "$as_me:5106: result: no" >&5
5107 echo "${ECHO_T}no" >&6
5110 test -n "$LIBTOOL" && break
5113 if test -z "$LIBTOOL"; then
5114 ac_ct_LIBTOOL=$LIBTOOL
5115 for ac_prog in glibtool
5117 # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 echo "$as_me:5119: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5121 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 if test -n "$ac_ct_LIBTOOL"; then
5125 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5127 ac_save_IFS=$IFS; IFS=$ac_path_separator
5129 for ac_dir in $ac_dummy; do
5131 test -z "$ac_dir" && ac_dir=.
5132 $as_executable_p "$ac_dir/$ac_word" || continue
5133 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5134 echo "$as_me:5134: found $ac_dir/$ac_word" >&5
5140 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5141 if test -n "$ac_ct_LIBTOOL"; then
5142 echo "$as_me:5142: result: $ac_ct_LIBTOOL" >&5
5143 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5145 echo "$as_me:5145: result: no" >&5
5146 echo "${ECHO_T}no" >&6
5149 test -n "$ac_ct_LIBTOOL" && break
5151 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5153 LIBTOOL=$ac_ct_LIBTOOL
5156 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5158 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.].*//'`
5160 cf_cv_libtool_version=
5162 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5166 if test -z "$LIBTOOL" ; then
5167 { { echo "$as_me:5167: error: Cannot find libtool" >&5
5168 echo "$as_me: error: Cannot find libtool" >&2;}
5169 { (exit 1); exit 1; }; }
5171 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5172 LIB_OBJECT='${OBJECTS:.o=.lo}'
5174 LIB_CLEAN='${LIBTOOL} --mode=clean'
5175 LIB_COMPILE='${LIBTOOL} --mode=compile'
5176 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5177 LIB_INSTALL='${LIBTOOL} --mode=install'
5178 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5181 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5183 echo "$as_me:5183: checking version of $LIBTOOL" >&5
5184 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5186 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5188 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.].*//'`
5190 cf_cv_libtool_version=
5192 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5194 echo "$as_me:5194: result: $cf_cv_libtool_version" >&5
5195 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5196 if test -z "$cf_cv_libtool_version" ; then
5197 { { echo "$as_me:5197: error: This is not GNU libtool" >&5
5198 echo "$as_me: error: This is not GNU libtool" >&2;}
5199 { (exit 1); exit 1; }; }
5202 { { echo "$as_me:5202: error: GNU libtool has not been found" >&5
5203 echo "$as_me: error: GNU libtool has not been found" >&2;}
5204 { (exit 1); exit 1; }; }
5207 # special hack to add -no-undefined (which libtool should do for itself)
5209 case "$cf_cv_system_name" in
5210 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5211 LT_UNDEF=-no-undefined
5215 # special hack to add --tag option for C++ compiler
5216 case $cf_cv_libtool_version in
5217 (1.[5-9]*|[2-9].[0-9.a-z]*)
5218 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5219 LIBTOOL="$LIBTOOL --tag=CC"
5222 LIBTOOL_CXX="$LIBTOOL"
5230 test -z "$LIBTOOL" && ECHO_LT=
5232 if test "$with_libtool" != "no" ; then
5234 cf_list_models="$cf_list_models libtool"
5238 echo "$as_me:5238: checking if you want to build shared libraries" >&5
5239 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5241 # Check whether --with-shared or --without-shared was given.
5242 if test "${with_shared+set}" = set; then
5243 withval="$with_shared"
5244 with_shared=$withval
5248 echo "$as_me:5248: result: $with_shared" >&5
5249 echo "${ECHO_T}$with_shared" >&6
5250 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5252 echo "$as_me:5252: checking if you want to build static libraries" >&5
5253 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5255 # Check whether --with-normal or --without-normal was given.
5256 if test "${with_normal+set}" = set; then
5257 withval="$with_normal"
5258 with_normal=$withval
5262 echo "$as_me:5262: result: $with_normal" >&5
5263 echo "${ECHO_T}$with_normal" >&6
5264 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5266 echo "$as_me:5266: checking if you want to build debug libraries" >&5
5267 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5269 # Check whether --with-debug or --without-debug was given.
5270 if test "${with_debug+set}" = set; then
5271 withval="$with_debug"
5276 echo "$as_me:5276: result: $with_debug" >&5
5277 echo "${ECHO_T}$with_debug" >&6
5278 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5280 echo "$as_me:5280: checking if you want to build profiling libraries" >&5
5281 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5283 # Check whether --with-profile or --without-profile was given.
5284 if test "${with_profile+set}" = set; then
5285 withval="$with_profile"
5286 with_profile=$withval
5290 echo "$as_me:5290: result: $with_profile" >&5
5291 echo "${ECHO_T}$with_profile" >&6
5292 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5296 if test "X$cf_with_cxx_binding" != Xno; then
5297 if test "x$with_shared" = "xyes"; then
5298 echo "$as_me:5298: checking if you want to build C++ shared libraries" >&5
5299 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5301 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5302 if test "${with_cxx_shared+set}" = set; then
5303 withval="$with_cxx_shared"
5304 with_shared_cxx=$withval
5308 echo "$as_me:5308: result: $with_shared_cxx" >&5
5309 echo "${ECHO_T}$with_shared_cxx" >&6
5313 ###############################################################################
5315 echo "$as_me:5315: checking for specified models" >&5
5316 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5317 test -z "$cf_list_models" && cf_list_models=normal
5318 test "$with_libtool" != "no" && cf_list_models=libtool
5319 echo "$as_me:5319: result: $cf_list_models" >&5
5320 echo "${ECHO_T}$cf_list_models" >&6
5322 ### Use the first model as the default, and save its suffix for use in building
5323 ### up test-applications.
5324 echo "$as_me:5324: checking for default model" >&5
5325 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5326 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5327 echo "$as_me:5327: result: $DFT_LWR_MODEL" >&5
5328 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5330 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5341 echo "$as_me:5341: checking if you want to have a library-prefix" >&5
5342 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5344 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5345 if test "${with_lib_prefix+set}" = set; then
5346 withval="$with_lib_prefix"
5347 with_lib_prefix=$withval
5349 with_lib_prefix=auto
5351 echo "$as_me:5351: result: $with_lib_prefix" >&5
5352 echo "${ECHO_T}$with_lib_prefix" >&6
5354 if test $with_lib_prefix = auto
5357 case $cf_cv_system_name in
5359 if test "$DFT_LWR_MODEL" = libtool; then
5365 (*) LIB_PREFIX='lib'
5368 cf_prefix=$LIB_PREFIX
5370 elif test $with_lib_prefix = no
5374 LIB_PREFIX=$with_lib_prefix
5379 echo "$as_me:5379: checking for PATH separator" >&5
5380 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5381 case $cf_cv_system_name in
5382 (os2*) PATH_SEPARATOR=';' ;;
5383 (*) ${PATH_SEPARATOR:=':'} ;;
5386 echo "$as_me:5386: result: $PATH_SEPARATOR" >&5
5387 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5389 ###############################################################################
5391 echo "$as_me:5391: checking if you want to build a separate terminfo library" >&5
5392 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5394 # Check whether --with-termlib or --without-termlib was given.
5395 if test "${with_termlib+set}" = set; then
5396 withval="$with_termlib"
5397 with_termlib=$withval
5401 echo "$as_me:5401: result: $with_termlib" >&5
5402 echo "${ECHO_T}$with_termlib" >&6
5404 echo "$as_me:5404: checking if you want to build a separate tic library" >&5
5405 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5407 # Check whether --with-ticlib or --without-ticlib was given.
5408 if test "${with_ticlib+set}" = set; then
5409 withval="$with_ticlib"
5410 with_ticlib=$withval
5414 echo "$as_me:5414: result: $with_ticlib" >&5
5415 echo "${ECHO_T}$with_ticlib" >&6
5417 if test X"$CC_G_OPT" = X"" ; then
5419 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5422 if test X"$CXX_G_OPT" = X"" ; then
5424 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5427 echo "$as_me:5427: checking for default loader flags" >&5
5428 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5429 case $DFT_LWR_MODEL in
5430 (libtool) LD_MODEL='' ;;
5431 (normal) LD_MODEL='' ;;
5432 (debug) LD_MODEL=$CC_G_OPT ;;
5433 (profile) LD_MODEL='-pg';;
5434 (shared) LD_MODEL='' ;;
5436 echo "$as_me:5436: result: $LD_MODEL" >&5
5437 echo "${ECHO_T}$LD_MODEL" >&6
5439 case $DFT_LWR_MODEL in
5442 echo "$as_me:5442: checking if rpath option should be used" >&5
5443 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5445 # Check whether --enable-rpath or --disable-rpath was given.
5446 if test "${enable_rpath+set}" = set; then
5447 enableval="$enable_rpath"
5448 cf_cv_enable_rpath=$enableval
5450 cf_cv_enable_rpath=no
5452 echo "$as_me:5452: result: $cf_cv_enable_rpath" >&5
5453 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5455 echo "$as_me:5455: checking if shared libraries should be relinked during install" >&5
5456 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5458 # Check whether --enable-relink or --disable-relink was given.
5459 if test "${enable_relink+set}" = set; then
5460 enableval="$enable_relink"
5461 cf_cv_do_relink=$enableval
5465 echo "$as_me:5465: result: $cf_cv_do_relink" >&5
5466 echo "${ECHO_T}$cf_cv_do_relink" >&6
5470 # we will build libraries one-level down.
5474 if test "x$cf_cv_enable_rpath" != xno
5476 echo "$as_me:5476: checking for an rpath option" >&5
5477 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5478 case $cf_cv_system_name in
5480 if test "$GCC" = yes; then
5481 LD_RPATH_OPT="-Wl,-rpath,"
5483 LD_RPATH_OPT="-rpath "
5486 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5487 LD_RPATH_OPT="-Wl,-rpath,"
5489 (openbsd[2-9].*|mirbsd*)
5490 LD_RPATH_OPT="-Wl,-rpath,"
5493 LD_RPATH_OPT="-rpath "
5496 LD_RPATH_OPT="-Wl,-rpath,"
5499 LD_RPATH_OPT="-rpath "
5507 echo "$as_me:5507: result: $LD_RPATH_OPT" >&5
5508 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5510 case "x$LD_RPATH_OPT" in
5512 echo "$as_me:5512: checking if we need a space after rpath option" >&5
5513 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5514 cf_save_LIBS="$LIBS"
5516 cf_add_libs="${LD_RPATH_OPT}$libdir"
5517 # Filter out duplicates - this happens with badly-designed ".pc" files...
5518 for cf_add_1lib in $LIBS
5520 for cf_add_2lib in $cf_add_libs
5522 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5528 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line 5533 "configure"
5534 #include "confdefs.h"
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:5545: \"$ac_link\"") >&5
5546 (eval $ac_link) 2>&5
5548 echo "$as_me:5548: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:5551: \"$ac_try\"") >&5
5554 echo "$as_me:5554: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5558 echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS="$cf_save_LIBS"
5564 echo "$as_me:5564: result: $cf_rpath_space" >&5
5565 echo "${ECHO_T}$cf_rpath_space" >&6
5566 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5575 INSTALL_LIB="-m 644"
5576 : ${rel_builddir:=.}
5582 cf_cv_do_symlinks=no
5584 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5586 echo "$as_me:5586: checking if release/abi version should be used for shared libs" >&5
5587 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5589 # Check whether --with-shlib-version or --without-shlib-version was given.
5590 if test "${with_shlib_version+set}" = set; then
5591 withval="$with_shlib_version"
5592 test -z "$withval" && withval=auto
5595 cf_cv_shlib_version=auto
5598 cf_cv_shlib_version=$withval
5601 echo "$as_me:5601: result: $withval" >&5
5602 echo "${ECHO_T}$withval" >&6
5603 { { echo "$as_me:5603: error: option value must be one of: rel, abi, or auto" >&5
5604 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5605 { (exit 1); exit 1; }; }
5610 cf_cv_shlib_version=auto
5612 echo "$as_me:5612: result: $cf_cv_shlib_version" >&5
5613 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5618 # Some less-capable ports of gcc support only -fpic
5622 if test "$GCC" = yes
5626 case $cf_cv_system_name in
5627 (*linux*) # e.g., PGI compiler
5633 if test "$cf_try_fPIC" = yes
5635 echo "$as_me:5635: checking which $CC option to use" >&5
5636 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5637 cf_save_CFLAGS="$CFLAGS"
5638 for CC_SHARED_OPTS in -fPIC -fpic ''
5640 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5641 cat >conftest.$ac_ext <<_ACEOF
5642 #line 5642 "configure"
5643 #include "confdefs.h"
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:5654: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5657 echo "$as_me:5657: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest.$ac_objext'
5660 { (eval echo "$as_me:5660: \"$ac_try\"") >&5
5663 echo "$as_me:5663: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5667 echo "$as_me: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 rm -f conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:5672: result: $CC_SHARED_OPTS" >&5
5673 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5674 CFLAGS="$cf_save_CFLAGS"
5677 cf_cv_shlib_version_infix=no
5679 case $cf_cv_system_name in
5680 (aix4.3-9*|aix[5-7]*)
5681 if test "$GCC" = yes; then
5682 CC_SHARED_OPTS='-Wl,-brtl'
5683 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5685 CC_SHARED_OPTS='-brtl'
5686 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5687 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5691 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5695 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5696 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5697 cf_cv_shlib_version=cygdll
5698 cf_cv_shlib_version_infix=cygdll
5701 cat >mk_shared_lib.sh <<-CF_EOF
5704 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5707 Linking shared library
5708 ** SHARED_LIB \$SHARED_LIB
5709 ** IMPORT_LIB \$IMPORT_LIB
5711 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5713 chmod +x mk_shared_lib.sh
5717 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5718 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5719 cf_cv_shlib_version=msysdll
5720 cf_cv_shlib_version_infix=msysdll
5723 cat >mk_shared_lib.sh <<-CF_EOF
5726 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5729 Linking shared library
5730 ** SHARED_LIB \$SHARED_LIB
5731 ** IMPORT_LIB \$IMPORT_LIB
5733 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5735 chmod +x mk_shared_lib.sh
5738 cf_try_cflags="no-cpp-precomp"
5739 CC_SHARED_OPTS="-dynamic"
5740 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5741 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5742 cf_cv_shlib_version_infix=yes
5743 echo "$as_me:5743: checking if ld -search_paths_first works" >&5
5744 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5745 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 cf_save_LDFLAGS=$LDFLAGS
5750 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5751 cat >conftest.$ac_ext <<_ACEOF
5752 #line 5752 "configure"
5753 #include "confdefs.h"
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:5764: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -s conftest$ac_exeext'
5770 { (eval echo "$as_me:5770: \"$ac_try\"") >&5
5773 echo "$as_me:5773: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 cf_cv_ldflags_search_paths_first=yes
5777 echo "$as_me: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 cf_cv_ldflags_search_paths_first=no
5781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5782 LDFLAGS=$cf_save_LDFLAGS
5784 echo "$as_me:5784: result: $cf_cv_ldflags_search_paths_first" >&5
5785 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5786 if test $cf_cv_ldflags_search_paths_first = yes; then
5787 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5791 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5792 if test "$GCC" != yes; then
5795 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5796 INSTALL_LIB="-m 555"
5799 # (tested with gcc 2.7.2 -- I don't have c89)
5800 if test "$GCC" = yes; then
5801 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5804 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5806 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5807 # HP-UX shared libraries must be executable, and should be
5808 # readonly to exploit a quirk in the memory manager.
5809 INSTALL_LIB="-m 555"
5812 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5813 if test "$cf_cv_shlib_version" = rel; then
5814 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5816 cf_shared_soname='`basename $@`'
5819 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5822 if test "$cf_cv_enable_rpath" = yes ; then
5823 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5825 # tested with IRIX 5.2 and 'cc'.
5826 if test "$GCC" != yes; then
5827 CC_SHARED_OPTS='-KPIC'
5828 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5830 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5832 cf_cv_rm_so_locs=yes
5834 (linux*|gnu*|k*bsd*-gnu)
5835 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5836 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5837 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5839 if test "$cf_cv_enable_rpath" = yes ; then
5840 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5843 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5844 if test "$cf_cv_shlib_version" = rel; then
5845 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5847 cf_cv_shared_soname='`basename $@`'
5850 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5853 cf_cv_shlib_version=mingw
5854 cf_cv_shlib_version_infix=mingw
5857 if test "$DFT_LWR_MODEL" = "shared" ; then
5858 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5859 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5860 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5863 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5864 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5865 cat >mk_shared_lib.sh <<-CF_EOF
5868 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5871 Linking shared library
5872 ** SHARED_LIB \$SHARED_LIB
5873 ** IMPORT_LIB \$IMPORT_LIB
5875 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5877 chmod +x mk_shared_lib.sh
5879 (openbsd[2-9].*|mirbsd*)
5880 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5881 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5882 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5884 if test "$cf_cv_enable_rpath" = yes ; then
5885 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5887 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5889 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5890 if test "$cf_cv_shlib_version" = rel; then
5891 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5893 cf_cv_shared_soname='`basename $@`'
5896 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5898 (nto-qnx*|openbsd*|freebsd[12].*)
5899 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5900 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
5901 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5903 (dragonfly*|freebsd*)
5904 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5905 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5906 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5907 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5908 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5911 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5912 if test "$cf_cv_shlib_version" = rel; then
5913 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5915 cf_cv_shared_soname='`basename $@`'
5918 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5921 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5922 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5923 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5924 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5925 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5926 if test "$cf_cv_shlib_version" = auto; then
5927 if test -f /usr/libexec/ld.elf_so; then
5928 cf_cv_shlib_version=abi
5930 cf_cv_shlib_version=rel
5934 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5935 if test "$cf_cv_shlib_version" = rel; then
5936 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5938 cf_cv_shared_soname='`basename $@`'
5941 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5943 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
5947 # tested with OSF/1 V3.2 and 'cc'
5948 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5949 # link with shared libs).
5950 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5953 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5956 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5957 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5958 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5959 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5961 cf_cv_rm_so_locs=yes
5963 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
5964 # tested with osr5.0.5
5965 if test "$GCC" != yes; then
5966 CC_SHARED_OPTS='-belf -KPIC'
5968 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5969 if test "$cf_cv_enable_rpath" = yes ; then
5970 # only way is to set LD_RUN_PATH but no switch for it
5973 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5974 LINK_PROGS='LD_RUN_PATH=${libdir}'
5975 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5978 # tested with SunOS 4.1.1 and gcc 2.7.0
5979 if test "$GCC" != yes; then
5980 CC_SHARED_OPTS='-KPIC'
5982 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
5983 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5986 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5987 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5988 if test "$DFT_LWR_MODEL" = "shared" ; then
5989 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5990 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5992 if test "$cf_cv_enable_rpath" = yes ; then
5993 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5996 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5997 if test "$cf_cv_shlib_version" = rel; then
5998 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6000 cf_cv_shared_soname='`basename $@`'
6003 if test "$GCC" != yes; then
6004 cf_save_CFLAGS="$CFLAGS"
6005 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6007 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line 6009 "configure"
6010 #include "confdefs.h"
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:6021: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6024 echo "$as_me:6024: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:6027: \"$ac_try\"") >&5
6030 echo "$as_me:6030: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6034 echo "$as_me: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 rm -f conftest.$ac_objext conftest.$ac_ext
6039 CFLAGS="$cf_save_CFLAGS"
6040 CC_SHARED_OPTS=$cf_shared_opts
6041 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6043 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6046 (sysv5uw7*|unix_sv*)
6047 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6048 if test "$GCC" != yes; then
6049 CC_SHARED_OPTS='-KPIC'
6051 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6054 CC_SHARED_OPTS='unknown'
6055 MK_SHARED_LIB='echo unknown'
6059 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6060 case "$cf_cv_shlib_version" in
6062 case "$MK_SHARED_LIB" in
6064 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6067 { echo "$as_me:6067: WARNING: ignored --with-shlib-version" >&5
6068 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6074 if test -n "$cf_try_cflags"
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6077 "${as_me:-configure}"
6079 int main(int argc, char *argv[])
6082 return (argv[argc-1] == 0) ;
6085 cf_save_CFLAGS="$CFLAGS"
6086 for cf_opt in $cf_try_cflags
6088 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6089 echo "$as_me:6089: checking if CFLAGS option -$cf_opt works" >&5
6090 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6091 if { (eval echo "$as_me:6091: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>&5
6094 echo "$as_me:6094: \$? = $ac_status" >&5
6095 (exit $ac_status); }; then
6096 echo "$as_me:6096: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6
6098 cf_save_CFLAGS="$CFLAGS"
6100 echo "$as_me:6100: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6104 CFLAGS="$cf_save_CFLAGS"
6107 # RPATH_LIST is a colon-separated list of directories
6108 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6109 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6111 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6113 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6115 echo "${as_me:-configure}:6115: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6117 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6119 echo "${as_me:-configure}:6119: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6121 for model in $cf_list_models; do
6125 echo "$as_me:6125: checking for additional libtool options" >&5
6126 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6128 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6129 if test "${with_libtool_opts+set}" = set; then
6130 withval="$with_libtool_opts"
6131 with_libtool_opts=$withval
6133 with_libtool_opts=no
6135 echo "$as_me:6135: result: $with_libtool_opts" >&5
6136 echo "${ECHO_T}$with_libtool_opts" >&6
6138 case .$with_libtool_opts in
6142 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6146 echo "$as_me:6146: checking if exported-symbols file should be used" >&5
6147 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6149 # Check whether --with-export-syms or --without-export-syms was given.
6150 if test "${with_export_syms+set}" = set; then
6151 withval="$with_export_syms"
6152 with_export_syms=$withval
6156 if test "x$with_export_syms" = xyes
6158 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6161 echo "$as_me:6161: result: $with_export_syms" >&5
6162 echo "${ECHO_T}$with_export_syms" >&6
6163 if test "x$with_export_syms" != xno
6165 EXPORT_SYMS="-export-symbols $with_export_syms"
6171 if test "$CC_SHARED_OPTS" = "unknown"; then
6172 { { echo "$as_me:6172: error: Shared libraries are not supported in this version" >&5
6173 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6174 { (exit 1); exit 1; }; }
6176 # workaround for inept transition to PIE vs PIC...
6177 echo "$as_me:6177: checking if current CFLAGS link properly" >&5
6178 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #line 6180 "configure"
6181 #include "confdefs.h"
6186 printf("Hello work\n");
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:6192: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:6195: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:6198: \"$ac_try\"") >&5
6201 echo "$as_me:6201: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6205 echo "$as_me: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210 echo "$as_me:6210: result: $cf_cflags_work" >&5
6211 echo "${ECHO_T}$cf_cflags_work" >&6
6212 if test "$cf_cflags_work" = no
6214 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6216 echo "${as_me:-configure}:6216: testing try to work around by appending shared-options ..." 1>&5
6218 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6221 echo "$as_me:6221: checking if versioned-symbols file should be used" >&5
6222 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6224 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6225 if test "${with_versioned_syms+set}" = set; then
6226 withval="$with_versioned_syms"
6227 with_versioned_syms=$withval
6229 with_versioned_syms=no
6231 if test "x$with_versioned_syms" = xyes
6233 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6236 echo "$as_me:6236: result: $with_versioned_syms" >&5
6237 echo "${ECHO_T}$with_versioned_syms" >&6
6243 if test "x$with_versioned_syms" != xno
6245 RESULTING_SYMS=$with_versioned_syms
6246 case "x$MK_SHARED_LIB" in
6248 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6249 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6250 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6252 echo "${as_me:-configure}:6252: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6256 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6257 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6258 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6260 echo "${as_me:-configure}:6260: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6264 { echo "$as_me:6264: WARNING: this system does not support versioned-symbols" >&5
6265 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6269 # Linux ld can selectively override scope, e.g., of symbols beginning with
6270 # "_" by first declaring some as global, and then using a wildcard to
6271 # declare the others as local. Some other loaders cannot do this. Check
6272 # by constructing a (very) simple shared library and inspecting its
6274 if test "x$VERSIONED_SYMS" != "x"
6276 echo "$as_me:6276: checking if wildcards can be used to selectively omit symbols" >&5
6277 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6283 cat >conftest.ver <<EOF
6312 cat >conftest.$ac_ext <<EOF
6313 #line 6313 "configure"
6314 int _ismissing(void) { return 1; }
6315 int _localf1(void) { return 1; }
6316 int _localf2(void) { return 2; }
6317 int globalf1(void) { return 1; }
6318 int globalf2(void) { return 2; }
6319 int _sublocalf1(void) { return 1; }
6320 int _sublocalf2(void) { return 2; }
6321 int subglobalf1(void) { return 1; }
6322 int subglobalf2(void) { return 2; }
6324 cat >conftest.mk <<EOF
6327 CPPFLAGS=${CPPFLAGS}
6330 VERSIONED_SYMS=${VERSIONED_SYMS}
6331 RESULTING_SYMS=conftest.ver
6332 MK_SHARED_LIB=${MK_SHARED_LIB}
6333 conftest.so: conftest.$ac_cv_objext
6334 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6337 # compile source, make library
6338 if make -f conftest.mk 2>&5 >/dev/null
6340 # test for missing symbol in either Data or Text section
6341 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6342 test -n "$cf_missing" && WILDCARD_SYMS=yes
6344 echo "$as_me:6344: result: $WILDCARD_SYMS" >&5
6345 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6354 ### Checks for special libraries, must be done up-front.
6357 echo "$as_me:6357: checking if you want to link with the GPM mouse library" >&5
6358 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6360 # Check whether --with-gpm or --without-gpm was given.
6361 if test "${with_gpm+set}" = set; then
6367 echo "$as_me:6367: result: $with_gpm" >&5
6368 echo "${ECHO_T}$with_gpm" >&6
6370 if test "$with_gpm" != no ; then
6371 echo "$as_me:6371: checking for gpm.h" >&5
6372 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6373 if test "${ac_cv_header_gpm_h+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6377 #line 6377 "configure"
6378 #include "confdefs.h"
6381 if { (eval echo "$as_me:6381: \"$ac_cpp conftest.$ac_ext\"") >&5
6382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6384 egrep -v '^ *\+' conftest.er1 >conftest.err
6386 cat conftest.err >&5
6387 echo "$as_me:6387: \$? = $ac_status" >&5
6388 (exit $ac_status); } >/dev/null; then
6389 if test -s conftest.err; then
6390 ac_cpp_err=$ac_c_preproc_warn_flag
6397 if test -z "$ac_cpp_err"; then
6398 ac_cv_header_gpm_h=yes
6400 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6402 ac_cv_header_gpm_h=no
6404 rm -f conftest.err conftest.$ac_ext
6406 echo "$as_me:6406: result: $ac_cv_header_gpm_h" >&5
6407 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6408 if test $ac_cv_header_gpm_h = yes; then
6410 cat >>confdefs.h <<\EOF
6411 #define HAVE_GPM_H 1
6414 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6415 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6417 echo "${as_me:-configure}:6417: testing assuming we really have GPM library ..." 1>&5
6419 cat >>confdefs.h <<\EOF
6420 #define HAVE_LIBGPM 1
6425 echo "$as_me:6425: checking for Gpm_Open in -lgpm" >&5
6426 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6427 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 ac_check_lib_save_LIBS=$LIBS
6432 cat >conftest.$ac_ext <<_ACEOF
6433 #line 6433 "configure"
6434 #include "confdefs.h"
6436 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6451 rm -f conftest.$ac_objext conftest$ac_exeext
6452 if { (eval echo "$as_me:6452: \"$ac_link\"") >&5
6453 (eval $ac_link) 2>&5
6455 echo "$as_me:6455: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -s conftest$ac_exeext'
6458 { (eval echo "$as_me:6458: \"$ac_try\"") >&5
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_cv_lib_gpm_Gpm_Open=yes
6465 echo "$as_me: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 ac_cv_lib_gpm_Gpm_Open=no
6469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6470 LIBS=$ac_check_lib_save_LIBS
6472 echo "$as_me:6472: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6473 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6474 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6478 if test "$with_gpm" = maybe; then
6479 { echo "$as_me:6479: WARNING: Cannot link with GPM library" >&5
6480 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6483 { { echo "$as_me:6483: error: Cannot link with GPM library" >&5
6484 echo "$as_me: error: Cannot link with GPM library" >&2;}
6485 { (exit 1); exit 1; }; }
6494 test "$with_gpm" != maybe && { echo "$as_me:6494: WARNING: Cannot find GPM header" >&5
6495 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6502 if test "$with_gpm" != no ; then
6503 echo "$as_me:6503: checking if you want to load GPM dynamically" >&5
6504 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6506 # Check whether --with-dlsym or --without-dlsym was given.
6507 if test "${with_dlsym+set}" = set; then
6508 withval="$with_dlsym"
6513 echo "$as_me:6513: result: $with_dlsym" >&5
6514 echo "${ECHO_T}$with_dlsym" >&6
6515 if test "x$with_dlsym" = xyes ; then
6518 echo "$as_me:6518: checking for dlsym" >&5
6519 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6520 if test "${ac_cv_func_dlsym+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line 6524 "configure"
6525 #include "confdefs.h"
6526 #define dlsym autoconf_temporary
6527 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6542 /* The GNU C library defines stubs for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6546 #error found stub for dlsym
6554 rm -f conftest.$ac_objext conftest$ac_exeext
6555 if { (eval echo "$as_me:6555: \"$ac_link\"") >&5
6556 (eval $ac_link) 2>&5
6558 echo "$as_me:6558: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -s conftest$ac_exeext'
6561 { (eval echo "$as_me:6561: \"$ac_try\"") >&5
6564 echo "$as_me:6564: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_cv_func_dlsym=yes
6568 echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6574 echo "$as_me:6574: result: $ac_cv_func_dlsym" >&5
6575 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6576 if test $ac_cv_func_dlsym = yes; then
6581 echo "$as_me:6581: checking for dlsym in -ldl" >&5
6582 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6583 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 ac_check_lib_save_LIBS=$LIBS
6588 cat >conftest.$ac_ext <<_ACEOF
6589 #line 6589 "configure"
6590 #include "confdefs.h"
6592 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:6608: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>&5
6611 echo "$as_me:6611: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -s conftest$ac_exeext'
6614 { (eval echo "$as_me:6614: \"$ac_try\"") >&5
6617 echo "$as_me:6617: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 ac_cv_lib_dl_dlsym=yes
6621 echo "$as_me: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 ac_cv_lib_dl_dlsym=no
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_check_lib_save_LIBS
6628 echo "$as_me:6628: result: $ac_cv_lib_dl_dlsym" >&5
6629 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6630 if test $ac_cv_lib_dl_dlsym = yes; then
6638 if test "$cf_have_dlsym" = yes ; then
6639 test "$cf_have_libdl" = yes && {
6641 # Filter out duplicates - this happens with badly-designed ".pc" files...
6642 for cf_add_1lib in $LIBS
6644 for cf_add_2lib in $cf_add_libs
6646 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6652 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6657 echo "$as_me:6657: checking whether able to link to dl*() functions" >&5
6658 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6659 cat >conftest.$ac_ext <<_ACEOF
6660 #line 6660 "configure"
6661 #include "confdefs.h"
6668 if ((obj = dlopen("filename", 0)) != 0) {
6669 if (dlsym(obj, "symbolname") == 0) {
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:6678: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>&5
6681 echo "$as_me:6681: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -s conftest$ac_exeext'
6684 { (eval echo "$as_me:6684: \"$ac_try\"") >&5
6687 echo "$as_me:6687: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6690 cat >>confdefs.h <<\EOF
6691 #define HAVE_LIBDL 1
6695 echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 { { echo "$as_me:6698: error: Cannot link test program for libdl" >&5
6699 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6700 { (exit 1); exit 1; }; }
6702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703 echo "$as_me:6703: result: ok" >&5
6704 echo "${ECHO_T}ok" >&6
6706 { { echo "$as_me:6706: error: Cannot find dlsym function" >&5
6707 echo "$as_me: error: Cannot find dlsym function" >&2;}
6708 { (exit 1); exit 1; }; }
6711 if test "x$with_gpm" != xyes ; then
6712 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6714 echo "${as_me:-configure}:6714: testing assuming soname for gpm is $with_gpm ..." 1>&5
6716 cf_cv_gpm_soname="$with_gpm"
6719 echo "$as_me:6719: checking for soname of gpm library" >&5
6720 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6721 if test "${cf_cv_gpm_soname+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cf_cv_gpm_soname=unknown
6726 if test "$cross_compiling" != yes ; then
6727 cat >conftest.$ac_ext <<CF_EOF
6731 if (Gpm_Open(0,0)) Gpm_Close();
6732 ${cf_cv_main_return:-return}(0);
6735 cf_save_LIBS="$LIBS"
6738 # Filter out duplicates - this happens with badly-designed ".pc" files...
6739 for cf_add_1lib in $LIBS
6741 for cf_add_2lib in $cf_add_libs
6743 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6749 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6753 if { (eval echo "$as_me:6753: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>&5
6756 echo "$as_me:6756: \$? = $ac_status" >&5
6757 (exit $ac_status); } ; then
6758 if { (eval echo "$as_me:6758: \"$ac_link\"") >&5
6759 (eval $ac_link) 2>&5
6761 echo "$as_me:6761: \$? = $ac_status" >&5
6762 (exit $ac_status); } ; then
6763 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
6764 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
6768 LIBS="$cf_save_LIBS"
6772 echo "$as_me:6772: result: $cf_cv_gpm_soname" >&5
6773 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
6776 test "$cf_cv_gpm_soname" != "unknown" &&
6777 cat >>confdefs.h <<EOF
6778 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
6781 SHLIB_LIST="-ldl $SHLIB_LIST"
6784 # Filter out duplicates - this happens with badly-designed ".pc" files...
6785 for cf_add_1lib in $PRIVATE_LIBS
6787 for cf_add_2lib in $cf_add_libs
6789 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6795 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6797 PRIVATE_LIBS="$cf_add_libs"
6800 SHLIB_LIST="-lgpm $SHLIB_LIST"
6803 # Filter out duplicates - this happens with badly-designed ".pc" files...
6804 for cf_add_1lib in $TEST_LIBS
6806 for cf_add_2lib in $cf_add_libs
6808 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6814 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6816 TEST_LIBS="$cf_add_libs"
6819 # Filter out duplicates - this happens with badly-designed ".pc" files...
6820 for cf_add_1lib in $PRIVATE_LIBS
6822 for cf_add_2lib in $cf_add_libs
6824 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6830 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6832 PRIVATE_LIBS="$cf_add_libs"
6836 cat >>confdefs.h <<\EOF
6837 #define HAVE_LIBGPM 1
6840 echo "$as_me:6840: checking for Gpm_Wgetch in -lgpm" >&5
6841 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
6842 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 ac_check_lib_save_LIBS=$LIBS
6847 cat >conftest.$ac_ext <<_ACEOF
6848 #line 6848 "configure"
6849 #include "confdefs.h"
6851 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6866 rm -f conftest.$ac_objext conftest$ac_exeext
6867 if { (eval echo "$as_me:6867: \"$ac_link\"") >&5
6868 (eval $ac_link) 2>&5
6870 echo "$as_me:6870: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -s conftest$ac_exeext'
6873 { (eval echo "$as_me:6873: \"$ac_try\"") >&5
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 ac_cv_lib_gpm_Gpm_Wgetch=yes
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 ac_cv_lib_gpm_Gpm_Wgetch=no
6884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6885 LIBS=$ac_check_lib_save_LIBS
6887 echo "$as_me:6887: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
6888 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
6889 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
6891 echo "$as_me:6891: checking if GPM is weakly bound to curses library" >&5
6892 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
6893 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 cf_cv_check_gpm_wgetch=unknown
6898 if test "$cross_compiling" != yes ; then
6900 cat >conftest.$ac_ext <<CF_EOF
6905 ${cf_cv_main_return:-return}(0);
6909 cf_save_LIBS="$LIBS"
6910 # This only works if we can look at the symbol table. If a shared
6911 # library is stripped for install, we cannot use that. So we're forced
6912 # to rely on the static library, noting that some packagers may not
6914 LIBS="-static -lgpm -dynamic $LIBS"
6915 if { (eval echo "$as_me:6915: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6918 echo "$as_me:6918: \$? = $ac_status" >&5
6919 (exit $ac_status); } ; then
6920 if { (eval echo "$as_me:6920: \"$ac_link\"") >&5
6921 (eval $ac_link) 2>&5
6923 echo "$as_me:6923: \$? = $ac_status" >&5
6924 (exit $ac_status); } ; then
6925 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
6926 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
6927 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
6931 LIBS="$cf_save_LIBS"
6935 echo "$as_me:6935: result: $cf_cv_check_gpm_wgetch" >&5
6936 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
6938 if test "$cf_cv_check_gpm_wgetch" != yes ; then
6939 { echo "$as_me:6939: WARNING: GPM library is already linked with curses - read the FAQ" >&5
6940 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
6947 echo "$as_me:6947: checking if you want to use PCRE2 for regular-expressions" >&5
6948 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
6950 # Check whether --with-pcre2 or --without-pcre2 was given.
6951 if test "${with_pcre2+set}" = set; then
6952 withval="$with_pcre2"
6955 test -z "$with_pcre2" && with_pcre2=no
6956 echo "$as_me:6956: result: $with_pcre2" >&5
6957 echo "${ECHO_T}$with_pcre2" >&6
6959 if test "x$with_pcre2" != xno ; then
6961 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
6962 test -n "$verbose" && echo " found package libpcre2" 1>&6
6964 echo "${as_me:-configure}:6964: testing found package libpcre2 ..." 1>&5
6966 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
6967 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
6968 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
6970 echo "${as_me:-configure}:6970: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
6972 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
6974 echo "${as_me:-configure}:6974: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
6979 cf_new_extra_cppflags=
6981 for cf_add_cflags in $cf_pkgconfig_incs
6983 case $cf_fix_cppflags in
6985 case $cf_add_cflags in
6986 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6987 case $cf_add_cflags in
6989 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6991 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6992 && test -z "${cf_tst_cflags}" \
6993 && cf_fix_cppflags=yes
6995 if test $cf_fix_cppflags = yes ; then
6997 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6998 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7001 elif test "${cf_tst_cflags}" = "\"'" ; then
7003 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7004 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7014 case $cf_add_cflags in
7016 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7018 CPPFLAGS=`echo "$CPPFLAGS" | \
7019 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7020 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7025 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7026 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7033 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7034 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7041 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7042 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7044 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7046 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7047 && test -z "${cf_tst_cflags}" \
7048 && cf_fix_cppflags=no
7053 if test -n "$cf_new_cflags" ; then
7055 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7056 CFLAGS="${CFLAGS}$cf_new_cflags"
7060 if test -n "$cf_new_cppflags" ; then
7062 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7063 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7067 if test -n "$cf_new_extra_cppflags" ; then
7069 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7070 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7074 cf_add_libs="$cf_pkgconfig_libs"
7075 # Filter out duplicates - this happens with badly-designed ".pc" files...
7076 for cf_add_1lib in $LIBS
7078 for cf_add_2lib in $cf_add_libs
7080 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7086 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7095 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7096 test -n "$verbose" && echo " found package libpcre" 1>&6
7098 echo "${as_me:-configure}:7098: testing found package libpcre ..." 1>&5
7100 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7101 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7102 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7104 echo "${as_me:-configure}:7104: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7106 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7108 echo "${as_me:-configure}:7108: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7113 cf_new_extra_cppflags=
7115 for cf_add_cflags in $cf_pkgconfig_incs
7117 case $cf_fix_cppflags in
7119 case $cf_add_cflags in
7120 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7121 case $cf_add_cflags in
7123 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7125 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7126 && test -z "${cf_tst_cflags}" \
7127 && cf_fix_cppflags=yes
7129 if test $cf_fix_cppflags = yes ; then
7131 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7132 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7135 elif test "${cf_tst_cflags}" = "\"'" ; then
7137 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7138 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7148 case $cf_add_cflags in
7150 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7152 CPPFLAGS=`echo "$CPPFLAGS" | \
7153 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7154 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7159 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7160 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7167 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7168 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7175 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7176 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7178 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7180 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7181 && test -z "${cf_tst_cflags}" \
7182 && cf_fix_cppflags=no
7187 if test -n "$cf_new_cflags" ; then
7189 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7190 CFLAGS="${CFLAGS}$cf_new_cflags"
7194 if test -n "$cf_new_cppflags" ; then
7196 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7197 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7201 if test -n "$cf_new_extra_cppflags" ; then
7203 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7204 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7208 cf_add_libs="$cf_pkgconfig_libs"
7209 # Filter out duplicates - this happens with badly-designed ".pc" files...
7210 for cf_add_1lib in $LIBS
7212 for cf_add_2lib in $cf_add_libs
7214 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7220 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7229 { { echo "$as_me:7229: error: Cannot find PCRE2 library" >&5
7230 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7231 { (exit 1); exit 1; }; }
7236 cat >>confdefs.h <<\EOF
7237 #define HAVE_LIB_PCRE2 1
7240 # if pkgconfig gave no results, look for the libraries directly
7242 (*pcre2-posix*|*pcreposix*)
7245 echo "$as_me:7245: checking for regcomp in -lpcre2-posix" >&5
7246 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7247 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_check_lib_save_LIBS=$LIBS
7251 LIBS="-lpcre2-posix $LIBS"
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line 7253 "configure"
7254 #include "confdefs.h"
7256 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:7272: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>&5
7275 echo "$as_me:7275: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:7278: \"$ac_try\"") >&5
7281 echo "$as_me:7281: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 ac_cv_lib_pcre2_posix_regcomp=yes
7285 echo "$as_me: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 ac_cv_lib_pcre2_posix_regcomp=no
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7292 echo "$as_me:7292: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7293 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7294 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7296 cf_add_libs="-lpcre2-posix"
7297 # Filter out duplicates - this happens with badly-designed ".pc" files...
7298 for cf_add_1lib in $LIBS
7300 for cf_add_2lib in $cf_add_libs
7302 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7308 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7313 echo "$as_me:7313: checking for regcomp in -lpcreposix" >&5
7314 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7315 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 ac_check_lib_save_LIBS=$LIBS
7319 LIBS="-lpcreposix $LIBS"
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7324 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:7340: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>&5
7343 echo "$as_me:7343: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -s conftest$ac_exeext'
7346 { (eval echo "$as_me:7346: \"$ac_try\"") >&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_lib_pcreposix_regcomp=yes
7353 echo "$as_me: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7355 ac_cv_lib_pcreposix_regcomp=no
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7360 echo "$as_me:7360: result: $ac_cv_lib_pcreposix_regcomp" >&5
7361 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7362 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7364 cf_add_libs="-lpcreposix"
7365 # Filter out duplicates - this happens with badly-designed ".pc" files...
7366 for cf_add_1lib in $LIBS
7368 for cf_add_2lib in $cf_add_libs
7370 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7376 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7381 { { echo "$as_me:7381: error: Cannot find PCRE2 POSIX library" >&5
7382 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7383 { (exit 1); exit 1; }; }
7391 # either way, check for the library header files
7393 for ac_header in pcre2-posix.h pcreposix.h
7395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 echo "$as_me:7396: checking for $ac_header" >&5
7397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 cat >conftest.$ac_ext <<_ACEOF
7402 #line 7402 "configure"
7403 #include "confdefs.h"
7404 #include <$ac_header>
7406 if { (eval echo "$as_me:7406: \"$ac_cpp conftest.$ac_ext\"") >&5
7407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7409 egrep -v '^ *\+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 (exit $ac_status); } >/dev/null; then
7414 if test -s conftest.err; then
7415 ac_cpp_err=$ac_c_preproc_warn_flag
7422 if test -z "$ac_cpp_err"; then
7423 eval "$as_ac_Header=yes"
7425 echo "$as_me: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 eval "$as_ac_Header=no"
7429 rm -f conftest.err conftest.$ac_ext
7431 echo "$as_me:7431: result: `eval echo '${'$as_ac_Header'}'`" >&5
7432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434 cat >>confdefs.h <<EOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7443 # not everyone has "test -c"
7444 if test -c /dev/sysmouse 2>/dev/null ; then
7445 echo "$as_me:7445: checking if you want to use sysmouse" >&5
7446 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7448 # Check whether --with-sysmouse or --without-sysmouse was given.
7449 if test "${with_sysmouse+set}" = set; then
7450 withval="$with_sysmouse"
7451 cf_with_sysmouse=$withval
7453 cf_with_sysmouse=maybe
7455 if test "$cf_with_sysmouse" != no ; then
7456 cat >conftest.$ac_ext <<_ACEOF
7457 #line 7457 "configure"
7458 #include "confdefs.h"
7460 #include <osreldate.h>
7461 #if (__FreeBSD_version >= 400017)
7462 #include <sys/consio.h>
7463 #include <sys/fbio.h>
7465 #include <machine/console.h>
7472 struct mouse_info the_mouse;
7473 ioctl(0, CONS_MOUSECTL, &the_mouse);
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:7480: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>&5
7483 echo "$as_me:7483: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -s conftest.$ac_objext'
7486 { (eval echo "$as_me:7486: \"$ac_try\"") >&5
7489 echo "$as_me:7489: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 cf_with_sysmouse=yes
7493 echo "$as_me: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:7499: result: $cf_with_sysmouse" >&5
7500 echo "${ECHO_T}$cf_with_sysmouse" >&6
7501 test "$cf_with_sysmouse" = yes &&
7502 cat >>confdefs.h <<\EOF
7503 #define USE_SYSMOUSE 1
7508 # pretend that ncurses==ncursesw==ncursest
7509 echo "$as_me:7509: checking if you want to disable library suffixes" >&5
7510 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7512 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7513 if test "${enable_lib_suffixes+set}" = set; then
7514 enableval="$enable_lib_suffixes"
7515 test "$enableval" != no && enableval=yes
7516 if test "$enableval" != "yes" ; then
7517 disable_lib_suffixes=yes
7519 disable_lib_suffixes=no
7523 disable_lib_suffixes=no
7526 echo "$as_me:7526: result: $disable_lib_suffixes" >&5
7527 echo "${ECHO_T}$disable_lib_suffixes" >&6
7529 ### If we're building with rpath, try to link non-standard libs that way too.
7530 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7532 echo "$as_me:7532: checking if rpath-hack should be disabled" >&5
7533 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7535 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7536 if test "${enable_rpath_hack+set}" = set; then
7537 enableval="$enable_rpath_hack"
7538 test "$enableval" != no && enableval=yes
7539 if test "$enableval" != "yes" ; then
7540 cf_disable_rpath_hack=yes
7542 cf_disable_rpath_hack=no
7546 cf_disable_rpath_hack=no
7549 echo "$as_me:7549: result: $cf_disable_rpath_hack" >&5
7550 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7551 if test "$cf_disable_rpath_hack" = no ; then
7553 echo "$as_me:7553: checking for updated LDFLAGS" >&5
7554 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7555 if test -n "$LD_RPATH_OPT" ; then
7556 echo "$as_me:7556: result: maybe" >&5
7557 echo "${ECHO_T}maybe" >&6
7561 # Extract the first word of "$ac_prog", so it can be a program name with args.
7562 set dummy $ac_prog; ac_word=$2
7563 echo "$as_me:7563: checking for $ac_word" >&5
7564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7565 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 if test -n "$cf_ldd_prog"; then
7569 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7571 ac_save_IFS=$IFS; IFS=$ac_path_separator
7573 for ac_dir in $ac_dummy; do
7575 test -z "$ac_dir" && ac_dir=.
7576 $as_executable_p "$ac_dir/$ac_word" || continue
7577 ac_cv_prog_cf_ldd_prog="$ac_prog"
7578 echo "$as_me:7578: found $ac_dir/$ac_word" >&5
7584 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7585 if test -n "$cf_ldd_prog"; then
7586 echo "$as_me:7586: result: $cf_ldd_prog" >&5
7587 echo "${ECHO_T}$cf_ldd_prog" >&6
7589 echo "$as_me:7589: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7593 test -n "$cf_ldd_prog" && break
7595 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7597 cf_rpath_list="/usr/lib /lib"
7598 if test "$cf_ldd_prog" != no
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line 7603 "configure"
7604 #include "confdefs.h"
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (eval echo "$as_me:7615: \"$ac_link\"") >&5
7616 (eval $ac_link) 2>&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7627 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7629 echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7634 # If we passed the link-test, but get a "not found" on a given library,
7635 # this could be due to inept reconfiguration of gcc to make it only
7636 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7637 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7638 # /usr/local libraries.
7639 if test -n "$cf_rpath_oops"
7641 for cf_rpath_src in $cf_rpath_oops
7643 for cf_rpath_dir in \
7648 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7650 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7652 echo "${as_me:-configure}:7652: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7654 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7662 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7664 echo "${as_me:-configure}:7664: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7666 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7668 echo "${as_me:-configure}:7668: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7671 for cf_rpath_src in $LDFLAGS
7673 case $cf_rpath_src in
7676 # check if this refers to a directory which we will ignore
7678 if test -n "$cf_rpath_list"
7680 for cf_rpath_item in $cf_rpath_list
7682 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7690 if test "$cf_rpath_skip" = no
7692 # transform the option
7693 if test "$LD_RPATH_OPT" = "-R " ; then
7694 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7696 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7699 # if we have not already added this, add it now
7700 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7701 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7703 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7705 echo "${as_me:-configure}:7705: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7707 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7712 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7714 LDFLAGS=$cf_rpath_dst
7716 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7718 echo "${as_me:-configure}:7718: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7720 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7722 echo "${as_me:-configure}:7722: testing ...checking LIBS $LIBS ..." 1>&5
7725 for cf_rpath_src in $LIBS
7727 case $cf_rpath_src in
7730 # check if this refers to a directory which we will ignore
7732 if test -n "$cf_rpath_list"
7734 for cf_rpath_item in $cf_rpath_list
7736 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7744 if test "$cf_rpath_skip" = no
7746 # transform the option
7747 if test "$LD_RPATH_OPT" = "-R " ; then
7748 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7750 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7753 # if we have not already added this, add it now
7754 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7755 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7757 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7759 echo "${as_me:-configure}:7759: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7761 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7766 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7770 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7772 echo "${as_me:-configure}:7772: testing ...checked LIBS $LIBS ..." 1>&5
7774 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7776 echo "${as_me:-configure}:7776: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7779 echo "$as_me:7779: result: no" >&5
7780 echo "${ECHO_T}no" >&6
7787 ###############################################################################
7789 ### use option --with-extra-suffix to append suffix to headers and libraries
7790 echo "$as_me:7790: checking if you wish to append extra suffix to header/library paths" >&5
7791 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7794 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7795 if test "${with_extra_suffix+set}" = set; then
7796 withval="$with_extra_suffix"
7801 EXTRA_SUFFIX=$cf_cv_abi_version
7804 EXTRA_SUFFIX=$withval
7809 echo "$as_me:7809: result: $EXTRA_SUFFIX" >&5
7810 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7812 ### use option --disable-overwrite to leave out the link to -lcurses
7813 echo "$as_me:7813: checking if you wish to install ncurses overwriting curses" >&5
7814 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7816 # Check whether --enable-overwrite or --disable-overwrite was given.
7817 if test "${enable_overwrite+set}" = set; then
7818 enableval="$enable_overwrite"
7819 with_overwrite=$enableval
7821 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7823 echo "$as_me:7823: result: $with_overwrite" >&5
7824 echo "${ECHO_T}$with_overwrite" >&6
7826 echo "$as_me:7826: checking if external terminfo-database is used" >&5
7827 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7829 # Check whether --enable-database or --disable-database was given.
7830 if test "${enable_database+set}" = set; then
7831 enableval="$enable_database"
7832 use_database=$enableval
7836 echo "$as_me:7836: result: $use_database" >&5
7837 echo "${ECHO_T}$use_database" >&6
7841 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7844 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7848 NCURSES_USE_DATABASE=0
7849 if test "$use_database" != no ; then
7850 NCURSES_USE_DATABASE=1
7852 echo "$as_me:7852: checking which terminfo source-file will be installed" >&5
7853 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7855 # Check whether --with-database or --without-database was given.
7856 if test "${with_database+set}" = set; then
7857 withval="$with_database"
7858 TERMINFO_SRC=$withval
7860 echo "$as_me:7860: result: $TERMINFO_SRC" >&5
7861 echo "${ECHO_T}$TERMINFO_SRC" >&6
7863 echo "$as_me:7863: checking whether to use hashed database instead of directory/tree" >&5
7864 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7866 # Check whether --with-hashed-db or --without-hashed-db was given.
7867 if test "${with_hashed_db+set}" = set; then
7868 withval="$with_hashed_db"
7873 echo "$as_me:7873: result: $with_hashed_db" >&5
7874 echo "${ECHO_T}$with_hashed_db" >&6
7879 echo "$as_me:7879: checking for list of fallback descriptions" >&5
7880 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7882 # Check whether --with-fallbacks or --without-fallbacks was given.
7883 if test "${with_fallbacks+set}" = set; then
7884 withval="$with_fallbacks"
7885 with_fallback=$withval
7889 echo "$as_me:7889: result: $with_fallback" >&5
7890 echo "${ECHO_T}$with_fallback" >&6
7891 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7893 echo "$as_me:7893: checking if you want modern xterm or antique" >&5
7894 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7896 # Check whether --with-xterm-new or --without-xterm-new was given.
7897 if test "${with_xterm_new+set}" = set; then
7898 withval="$with_xterm_new"
7899 with_xterm_new=$withval
7903 case $with_xterm_new in
7904 (no) with_xterm_new=xterm-old;;
7905 (*) with_xterm_new=xterm-new;;
7907 echo "$as_me:7907: result: $with_xterm_new" >&5
7908 echo "${ECHO_T}$with_xterm_new" >&6
7909 WHICH_XTERM=$with_xterm_new
7911 echo "$as_me:7911: checking if xterm backspace sends BS or DEL" >&5
7912 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7914 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7915 if test "${with_xterm_kbs+set}" = set; then
7916 withval="$with_xterm_kbs"
7917 with_xterm_kbs=$withval
7921 case x$with_xterm_kbs in
7922 (xyes|xno|xBS|xbs|x8)
7929 with_xterm_kbs=$withval
7932 echo "$as_me:7932: result: $with_xterm_kbs" >&5
7933 echo "${ECHO_T}$with_xterm_kbs" >&6
7934 XTERM_KBS=$with_xterm_kbs
7937 if test "$use_database" = no ; then
7938 TERMINFO="${datadir}/terminfo"
7942 echo "$as_me:7942: checking for list of terminfo directories" >&5
7943 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7945 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7946 if test "${with_terminfo_dirs+set}" = set; then
7947 withval="$with_terminfo_dirs"
7950 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7952 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7954 for cf_src_path in $withval
7957 if test "x$prefix" != xNONE; then
7958 cf_path_syntax="$prefix"
7960 cf_path_syntax="$ac_default_prefix"
7963 case ".$cf_src_path" in
7968 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7970 (.\${*prefix}*|.\${*dir}*)
7971 eval cf_src_path="$cf_src_path"
7972 case ".$cf_src_path" in
7974 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7979 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7982 { { echo "$as_me:7982: error: expected a pathname, not \"$cf_src_path\"" >&5
7983 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7984 { (exit 1); exit 1; }; }
7988 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7989 cf_dst_path="${cf_dst_path}${cf_src_path}"
7993 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7994 # so we have to check/work around. We do prefer the result of "eval"...
7995 eval cf_dst_eval="$cf_dst_path"
7996 case "x$cf_dst_eval" in
7998 TERMINFO_DIRS=$cf_dst_path
8001 TERMINFO_DIRS="$cf_dst_eval"
8005 echo "$as_me:8005: result: $TERMINFO_DIRS" >&5
8006 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8007 test -n "$TERMINFO_DIRS" &&
8008 cat >>confdefs.h <<EOF
8009 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8012 echo "$as_me:8012: checking for default terminfo directory" >&5
8013 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8015 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8016 if test "${with_default_terminfo_dir+set}" = set; then
8017 withval="$with_default_terminfo_dir"
8020 withval="${TERMINFO:-${datadir}/terminfo}"
8021 fi; if test -n "${datadir}/terminfo" ; then
8023 if test "x$prefix" != xNONE; then
8024 cf_path_syntax="$prefix"
8026 cf_path_syntax="$ac_default_prefix"
8034 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8036 (.\${*prefix}*|.\${*dir}*)
8037 eval withval="$withval"
8040 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8045 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8048 { { echo "$as_me:8048: error: expected a pathname, not \"$withval\"" >&5
8049 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8050 { (exit 1); exit 1; }; }
8055 eval TERMINFO="$withval"
8057 echo "$as_me:8057: result: $TERMINFO" >&5
8058 echo "${ECHO_T}$TERMINFO" >&6
8060 cat >>confdefs.h <<EOF
8061 #define TERMINFO "$TERMINFO"
8066 ### use option --disable-big-core to make tic run on small machines
8067 ### We need 4Mb, check if we can allocate 50% more than that.
8068 echo "$as_me:8068: checking if big-core option selected" >&5
8069 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8071 # Check whether --enable-big-core or --disable-big-core was given.
8072 if test "${enable_big_core+set}" = set; then
8073 enableval="$enable_big_core"
8074 with_big_core=$enableval
8076 if test "$cross_compiling" = yes; then
8079 cat >conftest.$ac_ext <<_ACEOF
8080 #line 8080 "configure"
8081 #include "confdefs.h"
8086 unsigned long n = 6000000L;
8087 char *s = malloc(n);
8090 ${cf_cv_main_return:-return}(s == 0);
8093 rm -f conftest$ac_exeext
8094 if { (eval echo "$as_me:8094: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>&5
8097 echo "$as_me:8097: \$? = $ac_status" >&5
8098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8099 { (eval echo "$as_me:8099: \"$ac_try\"") >&5
8102 echo "$as_me:8102: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8106 echo "$as_me: program exited with status $ac_status" >&5
8107 echo "$as_me: failed program was:" >&5
8108 cat conftest.$ac_ext >&5
8111 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8114 echo "$as_me:8114: result: $with_big_core" >&5
8115 echo "${ECHO_T}$with_big_core" >&6
8116 test "x$with_big_core" = "xyes" &&
8117 cat >>confdefs.h <<\EOF
8118 #define HAVE_BIG_CORE 1
8121 ### ISO C only guarantees 512-char strings, we have tables which load faster
8122 ### when constructed using "big" strings. More than the C compiler, the awk
8123 ### program is a limit on most vendor UNIX systems. Check that we can build.
8124 echo "$as_me:8124: checking if big-strings option selected" >&5
8125 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8127 # Check whether --enable-big-strings or --disable-big-strings was given.
8128 if test "${enable_big_strings+set}" = set; then
8129 enableval="$enable_big_strings"
8130 with_big_strings=$enableval
8135 eval with_big_strings=no
8138 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8139 | $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
8140 eval with_big_strings=yes
8142 eval with_big_strings=no
8148 echo "$as_me:8148: result: $with_big_strings" >&5
8149 echo "${ECHO_T}$with_big_strings" >&6
8152 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8154 ### use option --enable-termcap to compile in the termcap fallback support
8155 echo "$as_me:8155: checking if you want termcap-fallback support" >&5
8156 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8158 # Check whether --enable-termcap or --disable-termcap was given.
8159 if test "${enable_termcap+set}" = set; then
8160 enableval="$enable_termcap"
8161 with_termcap=$enableval
8165 echo "$as_me:8165: result: $with_termcap" >&5
8166 echo "${ECHO_T}$with_termcap" >&6
8168 NCURSES_USE_TERMCAP=0
8169 if test "x$with_termcap" != "xyes" ; then
8170 if test "$use_database" = no ; then
8171 if test -z "$with_fallback" ; then
8172 { { echo "$as_me:8172: error: You have disabled the database w/o specifying fallbacks" >&5
8173 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8174 { (exit 1); exit 1; }; }
8178 cat >>confdefs.h <<\EOF
8179 #define PURE_TERMINFO 1
8184 if test "$with_ticlib" != no ; then
8185 { { echo "$as_me:8185: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8186 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8187 { (exit 1); exit 1; }; }
8190 NCURSES_USE_TERMCAP=1
8191 echo "$as_me:8191: checking for list of termcap files" >&5
8192 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8194 # Check whether --with-termpath or --without-termpath was given.
8195 if test "${with_termpath+set}" = set; then
8196 withval="$with_termpath"
8199 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
8201 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8203 for cf_src_path in $withval
8206 if test "x$prefix" != xNONE; then
8207 cf_path_syntax="$prefix"
8209 cf_path_syntax="$ac_default_prefix"
8212 case ".$cf_src_path" in
8217 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8219 (.\${*prefix}*|.\${*dir}*)
8220 eval cf_src_path="$cf_src_path"
8221 case ".$cf_src_path" in
8223 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8228 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8231 { { echo "$as_me:8231: error: expected a pathname, not \"$cf_src_path\"" >&5
8232 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8233 { (exit 1); exit 1; }; }
8237 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8238 cf_dst_path="${cf_dst_path}${cf_src_path}"
8242 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8243 # so we have to check/work around. We do prefer the result of "eval"...
8244 eval cf_dst_eval="$cf_dst_path"
8245 case "x$cf_dst_eval" in
8247 TERMPATH=$cf_dst_path
8250 TERMPATH="$cf_dst_eval"
8254 echo "$as_me:8254: result: $TERMPATH" >&5
8255 echo "${ECHO_T}$TERMPATH" >&6
8256 test -n "$TERMPATH" &&
8257 cat >>confdefs.h <<EOF
8258 #define TERMPATH "$TERMPATH"
8261 ### use option --enable-getcap to use a hacked getcap for reading termcaps
8262 echo "$as_me:8262: checking if fast termcap-loader is needed" >&5
8263 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
8265 # Check whether --enable-getcap or --disable-getcap was given.
8266 if test "${enable_getcap+set}" = set; then
8267 enableval="$enable_getcap"
8268 with_getcap=$enableval
8272 echo "$as_me:8272: result: $with_getcap" >&5
8273 echo "${ECHO_T}$with_getcap" >&6
8274 test "x$with_getcap" = "xyes" &&
8275 cat >>confdefs.h <<\EOF
8276 #define USE_GETCAP 1
8279 echo "$as_me:8279: checking if translated termcaps will be cached in ~/.terminfo" >&5
8280 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
8282 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
8283 if test "${enable_getcap_cache+set}" = set; then
8284 enableval="$enable_getcap_cache"
8285 with_getcap_cache=$enableval
8287 with_getcap_cache=no
8289 echo "$as_me:8289: result: $with_getcap_cache" >&5
8290 echo "${ECHO_T}$with_getcap_cache" >&6
8291 test "x$with_getcap_cache" = "xyes" &&
8292 cat >>confdefs.h <<\EOF
8293 #define USE_GETCAP_CACHE 1
8298 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
8299 echo "$as_me:8299: checking if ~/.terminfo is wanted" >&5
8300 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
8302 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
8303 if test "${enable_home_terminfo+set}" = set; then
8304 enableval="$enable_home_terminfo"
8305 with_home_terminfo=$enableval
8307 with_home_terminfo=yes
8309 echo "$as_me:8309: result: $with_home_terminfo" >&5
8310 echo "${ECHO_T}$with_home_terminfo" >&6
8311 test "x$with_home_terminfo" = "xyes" &&
8312 cat >>confdefs.h <<\EOF
8313 #define USE_HOME_TERMINFO 1
8316 echo "$as_me:8316: checking if you want to use restricted environment when running as root" >&5
8317 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
8319 # Check whether --enable-root-environ or --disable-root-environ was given.
8320 if test "${enable_root_environ+set}" = set; then
8321 enableval="$enable_root_environ"
8322 with_root_environ=$enableval
8324 with_root_environ=yes
8326 echo "$as_me:8326: result: $with_root_environ" >&5
8327 echo "${ECHO_T}$with_root_environ" >&6
8328 test "x$with_root_environ" = xyes &&
8329 cat >>confdefs.h <<\EOF
8330 #define USE_ROOT_ENVIRON 1
8333 ### Use option --enable-symlinks to make tic use symlinks, not hard links
8334 ### to reduce storage requirements for the terminfo database.
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 echo "$as_me:8341: checking for $ac_header" >&5
8342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8347 #line 8347 "configure"
8348 #include "confdefs.h"
8349 #include <$ac_header>
8351 if { (eval echo "$as_me:8351: \"$ac_cpp conftest.$ac_ext\"") >&5
8352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8354 egrep -v '^ *\+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:8357: \$? = $ac_status" >&5
8358 (exit $ac_status); } >/dev/null; then
8359 if test -s conftest.err; then
8360 ac_cpp_err=$ac_c_preproc_warn_flag
8367 if test -z "$ac_cpp_err"; then
8368 eval "$as_ac_Header=yes"
8370 echo "$as_me: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 eval "$as_ac_Header=no"
8374 rm -f conftest.err conftest.$ac_ext
8376 echo "$as_me:8376: result: `eval echo '${'$as_ac_Header'}'`" >&5
8377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8379 cat >>confdefs.h <<EOF
8380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8391 echo "$as_me:8391: checking for $ac_func" >&5
8392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8393 if eval "test \"\${$as_ac_var+set}\" = set"; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 cat >conftest.$ac_ext <<_ACEOF
8397 #line 8397 "configure"
8398 #include "confdefs.h"
8399 #define $ac_func autoconf_temporary
8400 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8409 char $ac_func (void);
8415 /* The GNU C library defines stubs for functions which it implements
8416 to always fail with ENOSYS. Some functions are actually named
8417 something starting with __ and the normal name is an alias. */
8418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8419 #error found stub for $ac_func
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:8428: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>&5
8431 echo "$as_me:8431: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:8434: \"$ac_try\"") >&5
8437 echo "$as_me:8437: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 eval "$as_ac_var=yes"
8441 echo "$as_me: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 eval "$as_ac_var=no"
8445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8447 echo "$as_me:8447: result: `eval echo '${'$as_ac_var'}'`" >&5
8448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8449 if test `eval echo '${'$as_ac_var'}'` = yes; then
8450 cat >>confdefs.h <<EOF
8451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8457 if test "$cross_compiling" = yes ; then
8463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8464 echo "$as_me:8464: checking for $ac_func" >&5
8465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8466 if eval "test \"\${$as_ac_var+set}\" = set"; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line 8470 "configure"
8471 #include "confdefs.h"
8472 #define $ac_func autoconf_temporary
8473 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8480 /* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8482 char $ac_func (void);
8488 /* The GNU C library defines stubs for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8492 #error found stub for $ac_func
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:8501: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>&5
8504 echo "$as_me:8504: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (eval echo "$as_me:8507: \"$ac_try\"") >&5
8510 echo "$as_me:8510: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 eval "$as_ac_var=yes"
8514 echo "$as_me: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 eval "$as_ac_var=no"
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8520 echo "$as_me:8520: result: `eval echo '${'$as_ac_var'}'`" >&5
8521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8522 if test `eval echo '${'$as_ac_var'}'` = yes; then
8523 cat >>confdefs.h <<EOF
8524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8531 echo "$as_me:8531: checking if link/symlink functions work" >&5
8532 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
8533 if test "${cf_cv_link_funcs+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 for cf_func in link symlink ; do
8539 if test "$cross_compiling" = yes; then
8541 eval 'ac_cv_func_'$cf_func'=error'
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line 8544 "configure"
8545 #include "confdefs.h"
8547 #include <sys/types.h>
8548 #include <sys/stat.h>
8549 #ifdef HAVE_UNISTD_H
8555 char *src = "config.log";
8556 char *dst = "conftest.chk";
8561 fail = ($cf_func("config.log", "conftest.chk") < 0)
8562 || (stat(dst, &dst_sb) < 0)
8563 || (dst_sb.st_mtime != src_sb.st_mtime);
8569 ${cf_cv_main_return:-return} (fail);
8573 rm -f conftest$ac_exeext
8574 if { (eval echo "$as_me:8574: \"$ac_link\"") >&5
8575 (eval $ac_link) 2>&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8579 { (eval echo "$as_me:8579: \"$ac_try\"") >&5
8582 echo "$as_me:8582: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8585 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
8586 eval 'ac_cv_func_'$cf_func'=yes'
8588 echo "$as_me: program exited with status $ac_status" >&5
8589 echo "$as_me: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 eval 'ac_cv_func_'$cf_func'=no'
8594 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8597 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
8600 echo "$as_me:8600: result: $cf_cv_link_funcs" >&5
8601 echo "${ECHO_T}$cf_cv_link_funcs" >&6
8602 test "$ac_cv_func_link" = yes &&
8603 cat >>confdefs.h <<\EOF
8607 test "$ac_cv_func_symlink" = yes &&
8608 cat >>confdefs.h <<\EOF
8609 #define HAVE_SYMLINK 1
8617 # soft links (symbolic links) are useful for some systems where hard links do
8618 # not work, or to make it simpler to copy terminfo trees around.
8619 if test "x$ac_cv_func_symlink" = xyes ; then
8620 echo "$as_me:8620: checking if tic should use symbolic links" >&5
8621 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
8623 # Check whether --enable-symlinks or --disable-symlinks was given.
8624 if test "${enable_symlinks+set}" = set; then
8625 enableval="$enable_symlinks"
8626 with_symlinks=$enableval
8630 echo "$as_me:8630: result: $with_symlinks" >&5
8631 echo "${ECHO_T}$with_symlinks" >&6
8634 # If we have hard links and did not choose to use soft links instead, there is
8635 # no reason to make this choice optional - use the hard links.
8636 if test "$with_symlinks" = no ; then
8637 echo "$as_me:8637: checking if tic should use hard links" >&5
8638 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
8639 if test "x$ac_cv_func_link" = xyes ; then
8644 echo "$as_me:8644: result: $with_links" >&5
8645 echo "${ECHO_T}$with_links" >&6
8648 test "x$with_links" = xyes &&
8649 cat >>confdefs.h <<\EOF
8653 test "x$with_symlinks" = xyes &&
8654 cat >>confdefs.h <<\EOF
8655 #define USE_SYMLINKS 1
8658 ### use option --enable-broken-linker to force on use of broken-linker support
8659 echo "$as_me:8659: checking if you want broken-linker support code" >&5
8660 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
8662 # Check whether --enable-broken_linker or --disable-broken_linker was given.
8663 if test "${enable_broken_linker+set}" = set; then
8664 enableval="$enable_broken_linker"
8665 with_broken_linker=$enableval
8667 with_broken_linker=${BROKEN_LINKER:-no}
8669 echo "$as_me:8669: result: $with_broken_linker" >&5
8670 echo "${ECHO_T}$with_broken_linker" >&6
8673 if test "x$with_broken_linker" = xyes ; then
8675 cat >>confdefs.h <<\EOF
8676 #define BROKEN_LINKER 1
8680 elif test "$DFT_LWR_MODEL" = shared ; then
8681 case $cf_cv_system_name in
8684 cat >>confdefs.h <<\EOF
8685 #define BROKEN_LINKER 1
8689 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
8691 echo "${as_me:-configure}:8691: testing cygwin linker is broken anyway ..." 1>&5
8697 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
8698 echo "$as_me:8698: checking if tputs should process BSD-style prefix padding" >&5
8699 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
8701 # Check whether --enable-bsdpad or --disable-bsdpad was given.
8702 if test "${enable_bsdpad+set}" = set; then
8703 enableval="$enable_bsdpad"
8704 with_bsdpad=$enableval
8708 echo "$as_me:8708: result: $with_bsdpad" >&5
8709 echo "${ECHO_T}$with_bsdpad" >&6
8710 test "x$with_bsdpad" = xyes &&
8711 cat >>confdefs.h <<\EOF
8715 ### use option --enable-widec to turn on use of wide-character support
8724 # Check to define _XOPEN_SOURCE "automatically"
8725 CPPFLAGS_before_XOPEN="$CPPFLAGS"
8728 cf_POSIX_C_SOURCE=199506L
8733 cf_xopen_source="-D_ALL_SOURCE"
8739 cf_xopen_source="-D_APPLE_C_SOURCE"
8742 cf_xopen_source="-D_DARWIN_C_SOURCE"
8745 (freebsd*|dragonfly*)
8746 # 5.x headers associate
8747 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
8748 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
8749 cf_POSIX_C_SOURCE=200112L
8751 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8754 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8757 cf_xopen_source="-D_HPUX_SOURCE"
8760 cf_xopen_source="-D_SGI_SOURCE"
8763 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
8765 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
8767 echo "$as_me:8767: checking if this is the GNU C library" >&5
8768 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
8769 if test "${cf_cv_gnu_library+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8774 #line 8774 "configure"
8775 #include "confdefs.h"
8776 #include <sys/types.h>
8781 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
8784 # error not GNU C library
8790 rm -f conftest.$ac_objext
8791 if { (eval echo "$as_me:8791: \"$ac_compile\"") >&5
8792 (eval $ac_compile) 2>&5
8794 echo "$as_me:8794: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -s conftest.$ac_objext'
8797 { (eval echo "$as_me:8797: \"$ac_try\"") >&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 cf_cv_gnu_library=yes
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 cf_cv_gnu_library=no
8808 rm -f conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:8811: result: $cf_cv_gnu_library" >&5
8812 echo "${ECHO_T}$cf_cv_gnu_library" >&6
8814 if test x$cf_cv_gnu_library = xyes; then
8816 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
8817 # was changed to help a little...
8818 echo "$as_me:8818: checking if _DEFAULT_SOURCE can be used as a basis" >&5
8819 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
8820 if test "${cf_cv_gnu_library_219+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8827 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line 8830 "configure"
8831 #include "confdefs.h"
8832 #include <sys/types.h>
8837 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
8840 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
8846 rm -f conftest.$ac_objext
8847 if { (eval echo "$as_me:8847: \"$ac_compile\"") >&5
8848 (eval $ac_compile) 2>&5
8850 echo "$as_me:8850: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -s conftest.$ac_objext'
8853 { (eval echo "$as_me:8853: \"$ac_try\"") >&5
8856 echo "$as_me:8856: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 cf_cv_gnu_library_219=yes
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 cf_cv_gnu_library_219=no
8864 rm -f conftest.$ac_objext conftest.$ac_ext
8868 echo "$as_me:8868: result: $cf_cv_gnu_library_219" >&5
8869 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
8871 if test "x$cf_cv_gnu_library_219" = xyes; then
8873 echo "$as_me:8873: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
8874 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
8875 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 cf_new_extra_cppflags=
8884 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
8886 case $cf_fix_cppflags in
8888 case $cf_add_cflags in
8889 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8890 case $cf_add_cflags in
8892 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8895 && test -z "${cf_tst_cflags}" \
8896 && cf_fix_cppflags=yes
8898 if test $cf_fix_cppflags = yes ; then
8900 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8901 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8904 elif test "${cf_tst_cflags}" = "\"'" ; then
8906 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8907 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8917 case $cf_add_cflags in
8919 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8921 CPPFLAGS=`echo "$CPPFLAGS" | \
8922 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8923 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8928 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8929 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8936 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8937 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8944 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8945 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8947 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8949 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8950 && test -z "${cf_tst_cflags}" \
8951 && cf_fix_cppflags=no
8956 if test -n "$cf_new_cflags" ; then
8958 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8959 CFLAGS="${CFLAGS}$cf_new_cflags"
8963 if test -n "$cf_new_cppflags" ; then
8965 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8966 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8970 if test -n "$cf_new_extra_cppflags" ; then
8972 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8973 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8977 cat >conftest.$ac_ext <<_ACEOF
8978 #line 8978 "configure"
8979 #include "confdefs.h"
8982 #include <sys/types.h>
8988 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
8991 # error GNU C library is too old
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:8998: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>&5
9001 echo "$as_me:9001: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -s conftest.$ac_objext'
9004 { (eval echo "$as_me:9004: \"$ac_try\"") >&5
9007 echo "$as_me:9007: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 cf_cv_gnu_dftsrc_219=yes
9011 echo "$as_me: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9013 cf_cv_gnu_dftsrc_219=no
9015 rm -f conftest.$ac_objext conftest.$ac_ext
9018 echo "$as_me:9018: result: $cf_cv_gnu_dftsrc_219" >&5
9019 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9020 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9022 cf_cv_gnu_dftsrc_219=maybe
9025 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9027 echo "$as_me:9027: checking if we must define _GNU_SOURCE" >&5
9028 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9029 if test "${cf_cv_gnu_source+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line 9034 "configure"
9035 #include "confdefs.h"
9036 #include <sys/types.h>
9041 #ifndef _XOPEN_SOURCE
9042 #error expected _XOPEN_SOURCE to be defined
9048 rm -f conftest.$ac_objext
9049 if { (eval echo "$as_me:9049: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>&5
9052 echo "$as_me:9052: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -s conftest.$ac_objext'
9055 { (eval echo "$as_me:9055: \"$ac_try\"") >&5
9058 echo "$as_me:9058: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9062 echo "$as_me: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9069 cf_new_extra_cppflags=
9071 for cf_add_cflags in -D_GNU_SOURCE
9073 case $cf_fix_cppflags in
9075 case $cf_add_cflags in
9076 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9077 case $cf_add_cflags in
9079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9081 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9082 && test -z "${cf_tst_cflags}" \
9083 && cf_fix_cppflags=yes
9085 if test $cf_fix_cppflags = yes ; then
9087 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9088 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9091 elif test "${cf_tst_cflags}" = "\"'" ; then
9093 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9094 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9104 case $cf_add_cflags in
9106 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9108 CPPFLAGS=`echo "$CPPFLAGS" | \
9109 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9110 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9115 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9116 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9123 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9124 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9131 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9132 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9134 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9136 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9137 && test -z "${cf_tst_cflags}" \
9138 && cf_fix_cppflags=no
9143 if test -n "$cf_new_cflags" ; then
9145 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9146 CFLAGS="${CFLAGS}$cf_new_cflags"
9150 if test -n "$cf_new_cppflags" ; then
9152 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9153 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9157 if test -n "$cf_new_extra_cppflags" ; then
9159 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9160 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line 9165 "configure"
9166 #include "confdefs.h"
9167 #include <sys/types.h>
9172 #ifdef _XOPEN_SOURCE
9173 #error expected _XOPEN_SOURCE to be undefined
9179 rm -f conftest.$ac_objext
9180 if { (eval echo "$as_me:9180: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:9186: \"$ac_try\"") >&5
9189 echo "$as_me:9189: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9193 echo "$as_me: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 cf_cv_gnu_source=yes
9197 rm -f conftest.$ac_objext conftest.$ac_ext
9201 rm -f conftest.$ac_objext conftest.$ac_ext
9204 echo "$as_me:9204: result: $cf_cv_gnu_source" >&5
9205 echo "${ECHO_T}$cf_cv_gnu_source" >&6
9207 if test "$cf_cv_gnu_source" = yes
9209 echo "$as_me:9209: checking if we should also define _DEFAULT_SOURCE" >&5
9210 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
9211 if test "${cf_cv_default_source+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9216 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line 9219 "configure"
9220 #include "confdefs.h"
9221 #include <sys/types.h>
9226 #ifdef _DEFAULT_SOURCE
9227 #error expected _DEFAULT_SOURCE to be undefined
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:9234: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>&5
9237 echo "$as_me:9237: \$? = $ac_status" >&5
9238 (exit $ac_status); } &&
9239 { ac_try='test -s conftest.$ac_objext'
9240 { (eval echo "$as_me:9240: \"$ac_try\"") >&5
9243 echo "$as_me:9243: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 cf_cv_default_source=no
9247 echo "$as_me: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 cf_cv_default_source=yes
9251 rm -f conftest.$ac_objext conftest.$ac_ext
9254 echo "$as_me:9254: result: $cf_cv_default_source" >&5
9255 echo "${ECHO_T}$cf_cv_default_source" >&6
9256 if test "$cf_cv_default_source" = yes
9259 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9260 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9270 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
9273 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
9276 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9278 cf_save_CFLAGS="$CFLAGS"
9279 cf_save_CPPFLAGS="$CPPFLAGS"
9281 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9282 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9283 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9285 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9286 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9287 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9289 echo "$as_me:9289: checking if we should define _POSIX_C_SOURCE" >&5
9290 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9291 if test "${cf_cv_posix_c_source+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 echo "${as_me:-configure}:9295: testing if the symbol is already defined go no further ..." 1>&5
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line 9298 "configure"
9299 #include "confdefs.h"
9300 #include <sys/types.h>
9305 #ifndef _POSIX_C_SOURCE
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:9313: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>&5
9316 echo "$as_me:9316: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:9319: \"$ac_try\"") >&5
9322 echo "$as_me:9322: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 cf_cv_posix_c_source=no
9326 echo "$as_me: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9328 cf_want_posix_source=no
9329 case .$cf_POSIX_C_SOURCE in
9331 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9334 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9335 cf_want_posix_source=yes
9338 cf_want_posix_source=yes
9341 if test "$cf_want_posix_source" = yes ; then
9342 cat >conftest.$ac_ext <<_ACEOF
9343 #line 9343 "configure"
9344 #include "confdefs.h"
9345 #include <sys/types.h>
9350 #ifdef _POSIX_SOURCE
9357 rm -f conftest.$ac_objext
9358 if { (eval echo "$as_me:9358: \"$ac_compile\"") >&5
9359 (eval $ac_compile) 2>&5
9361 echo "$as_me:9361: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -s conftest.$ac_objext'
9364 { (eval echo "$as_me:9364: \"$ac_try\"") >&5
9367 echo "$as_me:9367: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9371 echo "$as_me: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9373 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
9375 rm -f conftest.$ac_objext conftest.$ac_ext
9378 echo "${as_me:-configure}:9378: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
9380 CFLAGS="$cf_trim_CFLAGS"
9381 CPPFLAGS="$cf_trim_CPPFLAGS"
9383 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9384 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
9386 echo "${as_me:-configure}:9386: testing if the second compile does not leave our definition intact error ..." 1>&5
9388 cat >conftest.$ac_ext <<_ACEOF
9389 #line 9389 "configure"
9390 #include "confdefs.h"
9391 #include <sys/types.h>
9396 #ifndef _POSIX_C_SOURCE
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:9404: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>&5
9407 echo "$as_me:9407: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest.$ac_objext'
9410 { (eval echo "$as_me:9410: \"$ac_try\"") >&5
9413 echo "$as_me:9413: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9417 echo "$as_me: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 cf_cv_posix_c_source=no
9421 rm -f conftest.$ac_objext conftest.$ac_ext
9422 CFLAGS="$cf_save_CFLAGS"
9423 CPPFLAGS="$cf_save_CPPFLAGS"
9426 rm -f conftest.$ac_objext conftest.$ac_ext
9429 echo "$as_me:9429: result: $cf_cv_posix_c_source" >&5
9430 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
9432 if test "$cf_cv_posix_c_source" != no ; then
9433 CFLAGS="$cf_trim_CFLAGS"
9434 CPPFLAGS="$cf_trim_CPPFLAGS"
9439 cf_new_extra_cppflags=
9441 for cf_add_cflags in $cf_cv_posix_c_source
9443 case $cf_fix_cppflags in
9445 case $cf_add_cflags in
9446 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9447 case $cf_add_cflags in
9449 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9451 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9452 && test -z "${cf_tst_cflags}" \
9453 && cf_fix_cppflags=yes
9455 if test $cf_fix_cppflags = yes ; then
9457 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9458 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9461 elif test "${cf_tst_cflags}" = "\"'" ; then
9463 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9464 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9474 case $cf_add_cflags in
9476 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9478 CPPFLAGS=`echo "$CPPFLAGS" | \
9479 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9480 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9485 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9486 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9493 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9494 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9501 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9502 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9504 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9506 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9507 && test -z "${cf_tst_cflags}" \
9508 && cf_fix_cppflags=no
9513 if test -n "$cf_new_cflags" ; then
9515 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9516 CFLAGS="${CFLAGS}$cf_new_cflags"
9520 if test -n "$cf_new_cppflags" ; then
9522 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9523 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9527 if test -n "$cf_new_extra_cppflags" ; then
9529 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9530 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9538 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
9541 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
9542 cf_xopen_source="-D_BSD_SOURCE"
9546 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
9549 cf_xopen_source="-D_OSF_SOURCE"
9552 cf_xopen_source="-D_QNX_SOURCE"
9555 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
9558 cf_xopen_source="-D__EXTENSIONS__"
9559 cf_cv_xopen_source=broken
9561 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
9567 echo "$as_me:9567: checking if we should define _XOPEN_SOURCE" >&5
9568 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9569 if test "${cf_cv_xopen_source+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line 9574 "configure"
9575 #include "confdefs.h"
9579 #include <sys/types.h>
9585 #ifndef _XOPEN_SOURCE
9592 rm -f conftest.$ac_objext
9593 if { (eval echo "$as_me:9593: \"$ac_compile\"") >&5
9594 (eval $ac_compile) 2>&5
9596 echo "$as_me:9596: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:9599: \"$ac_try\"") >&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 cf_cv_xopen_source=no
9606 echo "$as_me: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9610 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9611 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9613 cat >conftest.$ac_ext <<_ACEOF
9614 #line 9614 "configure"
9615 #include "confdefs.h"
9619 #include <sys/types.h>
9625 #ifdef _XOPEN_SOURCE
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:9633: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>&5
9636 echo "$as_me:9636: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:9639: \"$ac_try\"") >&5
9642 echo "$as_me:9642: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 cf_cv_xopen_source=no
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9654 rm -f conftest.$ac_objext conftest.$ac_ext
9657 echo "$as_me:9657: result: $cf_cv_xopen_source" >&5
9658 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9660 if test "$cf_cv_xopen_source" != no ; then
9662 CFLAGS=`echo "$CFLAGS" | \
9663 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9664 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9666 CPPFLAGS=`echo "$CPPFLAGS" | \
9667 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9668 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9670 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9675 cf_new_extra_cppflags=
9677 for cf_add_cflags in $cf_temp_xopen_source
9679 case $cf_fix_cppflags in
9681 case $cf_add_cflags in
9682 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9683 case $cf_add_cflags in
9685 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9687 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9688 && test -z "${cf_tst_cflags}" \
9689 && cf_fix_cppflags=yes
9691 if test $cf_fix_cppflags = yes ; then
9693 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9694 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9697 elif test "${cf_tst_cflags}" = "\"'" ; then
9699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9710 case $cf_add_cflags in
9712 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9714 CPPFLAGS=`echo "$CPPFLAGS" | \
9715 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9716 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9721 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9722 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9729 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9730 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9737 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9738 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9743 && test -z "${cf_tst_cflags}" \
9744 && cf_fix_cppflags=no
9749 if test -n "$cf_new_cflags" ; then
9751 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9752 CFLAGS="${CFLAGS}$cf_new_cflags"
9756 if test -n "$cf_new_cppflags" ; then
9758 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9759 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9763 if test -n "$cf_new_extra_cppflags" ; then
9765 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9766 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9772 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9774 cf_save_CFLAGS="$CFLAGS"
9775 cf_save_CPPFLAGS="$CPPFLAGS"
9777 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9778 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9779 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9781 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9782 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9783 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9785 echo "$as_me:9785: checking if we should define _POSIX_C_SOURCE" >&5
9786 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9787 if test "${cf_cv_posix_c_source+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 echo "${as_me:-configure}:9791: testing if the symbol is already defined go no further ..." 1>&5
9793 cat >conftest.$ac_ext <<_ACEOF
9794 #line 9794 "configure"
9795 #include "confdefs.h"
9796 #include <sys/types.h>
9801 #ifndef _POSIX_C_SOURCE
9808 rm -f conftest.$ac_objext
9809 if { (eval echo "$as_me:9809: \"$ac_compile\"") >&5
9810 (eval $ac_compile) 2>&5
9812 echo "$as_me:9812: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest.$ac_objext'
9815 { (eval echo "$as_me:9815: \"$ac_try\"") >&5
9818 echo "$as_me:9818: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 cf_cv_posix_c_source=no
9822 echo "$as_me: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 cf_want_posix_source=no
9825 case .$cf_POSIX_C_SOURCE in
9827 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9830 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9831 cf_want_posix_source=yes
9834 cf_want_posix_source=yes
9837 if test "$cf_want_posix_source" = yes ; then
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line 9839 "configure"
9840 #include "confdefs.h"
9841 #include <sys/types.h>
9846 #ifdef _POSIX_SOURCE
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:9854: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9857 echo "$as_me:9857: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:9860: \"$ac_try\"") >&5
9863 echo "$as_me:9863: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9867 echo "$as_me: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
9871 rm -f conftest.$ac_objext conftest.$ac_ext
9874 echo "${as_me:-configure}:9874: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
9876 CFLAGS="$cf_trim_CFLAGS"
9877 CPPFLAGS="$cf_trim_CPPFLAGS"
9879 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9880 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
9882 echo "${as_me:-configure}:9882: testing if the second compile does not leave our definition intact error ..." 1>&5
9884 cat >conftest.$ac_ext <<_ACEOF
9885 #line 9885 "configure"
9886 #include "confdefs.h"
9887 #include <sys/types.h>
9892 #ifndef _POSIX_C_SOURCE
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:9900: \"$ac_compile\"") >&5
9901 (eval $ac_compile) 2>&5
9903 echo "$as_me:9903: \$? = $ac_status" >&5
9904 (exit $ac_status); } &&
9905 { ac_try='test -s conftest.$ac_objext'
9906 { (eval echo "$as_me:9906: \"$ac_try\"") >&5
9909 echo "$as_me:9909: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9913 echo "$as_me: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 cf_cv_posix_c_source=no
9917 rm -f conftest.$ac_objext conftest.$ac_ext
9918 CFLAGS="$cf_save_CFLAGS"
9919 CPPFLAGS="$cf_save_CPPFLAGS"
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9925 echo "$as_me:9925: result: $cf_cv_posix_c_source" >&5
9926 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
9928 if test "$cf_cv_posix_c_source" != no ; then
9929 CFLAGS="$cf_trim_CFLAGS"
9930 CPPFLAGS="$cf_trim_CPPFLAGS"
9935 cf_new_extra_cppflags=
9937 for cf_add_cflags in $cf_cv_posix_c_source
9939 case $cf_fix_cppflags in
9941 case $cf_add_cflags in
9942 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9943 case $cf_add_cflags in
9945 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9947 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9948 && test -z "${cf_tst_cflags}" \
9949 && cf_fix_cppflags=yes
9951 if test $cf_fix_cppflags = yes ; then
9953 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9954 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9957 elif test "${cf_tst_cflags}" = "\"'" ; then
9959 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9960 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9970 case $cf_add_cflags in
9972 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9974 CPPFLAGS=`echo "$CPPFLAGS" | \
9975 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9976 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9981 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9982 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9989 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9990 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9997 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9998 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10002 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10003 && test -z "${cf_tst_cflags}" \
10004 && cf_fix_cppflags=no
10009 if test -n "$cf_new_cflags" ; then
10011 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10012 CFLAGS="${CFLAGS}$cf_new_cflags"
10016 if test -n "$cf_new_cppflags" ; then
10018 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10019 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10023 if test -n "$cf_new_extra_cppflags" ; then
10025 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10026 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10035 if test -n "$cf_xopen_source" ; then
10040 cf_new_extra_cppflags=
10042 for cf_add_cflags in $cf_xopen_source
10044 case $cf_fix_cppflags in
10046 case $cf_add_cflags in
10047 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10048 case $cf_add_cflags in
10050 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10052 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10053 && test -z "${cf_tst_cflags}" \
10054 && cf_fix_cppflags=yes
10056 if test $cf_fix_cppflags = yes ; then
10058 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10059 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10062 elif test "${cf_tst_cflags}" = "\"'" ; then
10064 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10065 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10071 case "$CPPFLAGS" in
10075 case $cf_add_cflags in
10077 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10079 CPPFLAGS=`echo "$CPPFLAGS" | \
10080 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10081 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10086 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10087 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10094 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10095 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10102 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10103 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10105 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10107 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10108 && test -z "${cf_tst_cflags}" \
10109 && cf_fix_cppflags=no
10114 if test -n "$cf_new_cflags" ; then
10115 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10117 echo "${as_me:-configure}:10117: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10119 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10120 CFLAGS="${CFLAGS}$cf_new_cflags"
10124 if test -n "$cf_new_cppflags" ; then
10125 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10127 echo "${as_me:-configure}:10127: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10129 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10130 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10134 if test -n "$cf_new_extra_cppflags" ; then
10135 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10137 echo "${as_me:-configure}:10137: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10139 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10140 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10146 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10147 echo "$as_me:10147: checking if _XOPEN_SOURCE really is set" >&5
10148 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line 10150 "configure"
10151 #include "confdefs.h"
10152 #include <stdlib.h>
10157 #ifndef _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_XOPEN_SOURCE_set=yes
10178 echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 cf_XOPEN_SOURCE_set=no
10182 rm -f conftest.$ac_objext conftest.$ac_ext
10183 echo "$as_me:10183: result: $cf_XOPEN_SOURCE_set" >&5
10184 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
10185 if test $cf_XOPEN_SOURCE_set = yes
10187 cat >conftest.$ac_ext <<_ACEOF
10188 #line 10188 "configure"
10189 #include "confdefs.h"
10190 #include <stdlib.h>
10195 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:10203: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>&5
10206 echo "$as_me:10206: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:10209: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:10212: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 cf_XOPEN_SOURCE_set_ok=yes
10216 echo "$as_me: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 cf_XOPEN_SOURCE_set_ok=no
10220 rm -f conftest.$ac_objext conftest.$ac_ext
10221 if test $cf_XOPEN_SOURCE_set_ok = no
10223 { echo "$as_me:10223: WARNING: _XOPEN_SOURCE is lower than requested" >&5
10224 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
10228 echo "$as_me:10228: checking if we should define _XOPEN_SOURCE" >&5
10229 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10230 if test "${cf_cv_xopen_source+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 cat >conftest.$ac_ext <<_ACEOF
10235 #line 10235 "configure"
10236 #include "confdefs.h"
10238 #include <stdlib.h>
10239 #include <string.h>
10240 #include <sys/types.h>
10246 #ifndef _XOPEN_SOURCE
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:10254: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>&5
10257 echo "$as_me:10257: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:10260: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:10263: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 cf_cv_xopen_source=no
10267 echo "$as_me: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10269 cf_save="$CPPFLAGS"
10271 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10272 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10274 cat >conftest.$ac_ext <<_ACEOF
10275 #line 10275 "configure"
10276 #include "confdefs.h"
10278 #include <stdlib.h>
10279 #include <string.h>
10280 #include <sys/types.h>
10286 #ifdef _XOPEN_SOURCE
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:10294: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>&5
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:10300: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:10303: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 cf_cv_xopen_source=no
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10312 CPPFLAGS="$cf_save"
10315 rm -f conftest.$ac_objext conftest.$ac_ext
10318 echo "$as_me:10318: result: $cf_cv_xopen_source" >&5
10319 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10321 if test "$cf_cv_xopen_source" != no ; then
10323 CFLAGS=`echo "$CFLAGS" | \
10324 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10325 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10327 CPPFLAGS=`echo "$CPPFLAGS" | \
10328 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10329 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10331 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10336 cf_new_extra_cppflags=
10338 for cf_add_cflags in $cf_temp_xopen_source
10340 case $cf_fix_cppflags in
10342 case $cf_add_cflags in
10343 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10344 case $cf_add_cflags in
10346 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10348 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10349 && test -z "${cf_tst_cflags}" \
10350 && cf_fix_cppflags=yes
10352 if test $cf_fix_cppflags = yes ; then
10354 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10355 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10358 elif test "${cf_tst_cflags}" = "\"'" ; then
10360 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10361 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10367 case "$CPPFLAGS" in
10371 case $cf_add_cflags in
10373 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10375 CPPFLAGS=`echo "$CPPFLAGS" | \
10376 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10377 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10382 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10383 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10390 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10391 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10398 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10399 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10401 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10403 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10404 && test -z "${cf_tst_cflags}" \
10405 && cf_fix_cppflags=no
10410 if test -n "$cf_new_cflags" ; then
10412 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10413 CFLAGS="${CFLAGS}$cf_new_cflags"
10417 if test -n "$cf_new_cppflags" ; then
10419 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10420 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10424 if test -n "$cf_new_extra_cppflags" ; then
10426 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10427 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10436 CPPFLAGS_after_XOPEN="$CPPFLAGS"
10438 # Work around breakage on OS X
10440 echo "$as_me:10440: checking if SIGWINCH is defined" >&5
10441 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
10442 if test "${cf_cv_define_sigwinch+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10447 #line 10447 "configure"
10448 #include "confdefs.h"
10450 #include <sys/types.h>
10451 #include <sys/signal.h>
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:10462: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10465 echo "$as_me:10465: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:10468: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10471 echo "$as_me:10471: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 cf_cv_define_sigwinch=yes
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 cat >conftest.$ac_ext <<_ACEOF
10478 #line 10478 "configure"
10479 #include "confdefs.h"
10481 #undef _XOPEN_SOURCE
10482 #undef _POSIX_SOURCE
10483 #undef _POSIX_C_SOURCE
10484 #include <sys/types.h>
10485 #include <sys/signal.h>
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:10496: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:10502: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:10505: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 cf_cv_define_sigwinch=maybe
10509 echo "$as_me: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 cf_cv_define_sigwinch=no
10513 rm -f conftest.$ac_objext conftest.$ac_ext
10516 rm -f conftest.$ac_objext conftest.$ac_ext
10519 echo "$as_me:10519: result: $cf_cv_define_sigwinch" >&5
10520 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
10522 if test "$cf_cv_define_sigwinch" = maybe ; then
10523 echo "$as_me:10523: checking for actual SIGWINCH definition" >&5
10524 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
10525 if test "${cf_cv_fixup_sigwinch+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 cf_cv_fixup_sigwinch=unknown
10531 while test $cf_sigwinch != 1
10533 cat >conftest.$ac_ext <<_ACEOF
10534 #line 10534 "configure"
10535 #include "confdefs.h"
10537 #undef _XOPEN_SOURCE
10538 #undef _POSIX_SOURCE
10539 #undef _POSIX_C_SOURCE
10540 #include <sys/types.h>
10541 #include <sys/signal.h>
10547 #if SIGWINCH != $cf_sigwinch
10555 rm -f conftest.$ac_objext
10556 if { (eval echo "$as_me:10556: \"$ac_compile\"") >&5
10557 (eval $ac_compile) 2>&5
10559 echo "$as_me:10559: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -s conftest.$ac_objext'
10562 { (eval echo "$as_me:10562: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10565 echo "$as_me:10565: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 cf_cv_fixup_sigwinch=$cf_sigwinch
10570 echo "$as_me: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10573 rm -f conftest.$ac_objext conftest.$ac_ext
10575 cf_sigwinch=`expr $cf_sigwinch - 1`
10579 echo "$as_me:10579: result: $cf_cv_fixup_sigwinch" >&5
10580 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
10582 if test "$cf_cv_fixup_sigwinch" != unknown ; then
10583 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
10587 # Checks for CODESET support.
10589 echo "$as_me:10589: checking for nl_langinfo and CODESET" >&5
10590 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10591 if test "${am_cv_langinfo_codeset+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line 10595 "configure"
10596 #include "confdefs.h"
10597 #include <langinfo.h>
10601 char* cs = nl_langinfo(CODESET);
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:10607: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10610 echo "$as_me:10610: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:10613: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:10616: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 am_cv_langinfo_codeset=yes
10620 echo "$as_me: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 am_cv_langinfo_codeset=no
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10627 echo "$as_me:10627: result: $am_cv_langinfo_codeset" >&5
10628 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10629 if test $am_cv_langinfo_codeset = yes; then
10631 cat >>confdefs.h <<\EOF
10632 #define HAVE_LANGINFO_CODESET 1
10637 # use these variables to work around a defect in gcc's fixincludes.
10638 NCURSES_OK_WCHAR_T=
10641 echo "$as_me:10641: checking if you want wide-character code" >&5
10642 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
10644 # Check whether --enable-widec or --disable-widec was given.
10645 if test "${enable_widec+set}" = set; then
10646 enableval="$enable_widec"
10647 with_widec=$enableval
10651 echo "$as_me:10651: result: $with_widec" >&5
10652 echo "${ECHO_T}$with_widec" >&6
10654 NCURSES_WCWIDTH_GRAPHICS=1
10656 if test "x$with_widec" = xyes ; then
10657 if test "x$disable_lib_suffixes" = xno ; then
10658 LIB_SUFFIX="w${LIB_SUFFIX}"
10661 cat >>confdefs.h <<\EOF
10662 #define USE_WIDEC_SUPPORT 1
10665 cat >>confdefs.h <<\EOF
10666 #define NCURSES_WIDECHAR 1
10674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675 echo "$as_me:10675: checking for $ac_header" >&5
10676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 cat >conftest.$ac_ext <<_ACEOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10683 #include <$ac_header>
10685 if { (eval echo "$as_me:10685: \"$ac_cpp conftest.$ac_ext\"") >&5
10686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10688 egrep -v '^ *\+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:10691: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev/null; then
10693 if test -s conftest.err; then
10694 ac_cpp_err=$ac_c_preproc_warn_flag
10701 if test -z "$ac_cpp_err"; then
10702 eval "$as_ac_Header=yes"
10704 echo "$as_me: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 eval "$as_ac_Header=no"
10708 rm -f conftest.err conftest.$ac_ext
10710 echo "$as_me:10710: result: `eval echo '${'$as_ac_Header'}'`" >&5
10711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10713 cat >>confdefs.h <<EOF
10714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10720 echo "$as_me:10720: checking if wchar.h can be used as is" >&5
10721 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
10722 if test "${cf_cv_wchar_h_okay+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.$ac_ext <<_ACEOF
10727 #line 10727 "configure"
10728 #include "confdefs.h"
10730 #include <stdlib.h>
10731 #ifdef HAVE_WCHAR_H
10734 #ifdef HAVE_WCTYPE_H
10735 #include <wctype.h>
10743 int bar = iswpunct(foo)
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:10749: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>&5
10752 echo "$as_me:10752: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (eval echo "$as_me:10755: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 cf_cv_wchar_h_okay=yes
10762 echo "$as_me: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 cf_cv_wchar_h_okay=no
10766 rm -f conftest.$ac_objext conftest.$ac_ext
10768 echo "$as_me:10768: result: $cf_cv_wchar_h_okay" >&5
10769 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
10771 if test $cf_cv_wchar_h_okay = no
10774 echo "$as_me:10774: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
10775 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10777 #line 10777 "configure"
10778 #include "confdefs.h"
10779 #include <sys/types.h>
10785 #ifndef _XOPEN_SOURCE_EXTENDED
10792 rm -f conftest.$ac_objext
10793 if { (eval echo "$as_me:10793: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>&5
10796 echo "$as_me:10796: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -s conftest.$ac_objext'
10799 { (eval echo "$as_me:10799: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:10802: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10806 echo "$as_me: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10810 rm -f conftest.$ac_objext conftest.$ac_ext
10811 echo "$as_me:10811: result: $cf_result" >&5
10812 echo "${ECHO_T}$cf_result" >&6
10814 if test "$cf_result" = yes ; then
10815 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
10816 elif test "x" != "x" ; then
10817 echo "$as_me:10817: checking checking for compatible value versus " >&5
10818 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10820 #line 10820 "configure"
10821 #include "confdefs.h"
10822 #include <sys/types.h>
10828 #if _XOPEN_SOURCE_EXTENDED- < 0
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:10836: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>&5
10839 echo "$as_me:10839: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:10842: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10845 echo "$as_me:10845: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10849 echo "$as_me: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10853 rm -f conftest.$ac_objext conftest.$ac_ext
10854 echo "$as_me:10854: result: $cf_result" >&5
10855 echo "${ECHO_T}$cf_result" >&6
10856 if test "$cf_result" = no ; then
10857 # perhaps we can override it - try...
10858 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
10864 echo "$as_me:10864: checking if wcwidth agrees graphics are single-width" >&5
10865 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
10866 if test "${cf_cv_wcwidth_graphics+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.in <<CF_EOF
10872 0x250c upper left corner
10873 0x2514 lower left corner
10874 0x2510 upper right corner
10875 0x2518 lower right corner
10876 0x251c tee pointing left
10877 0x2524 tee pointing right
10878 0x2534 tee pointing up
10879 0x252c tee pointing down
10880 0x2500 horizontal line
10881 0x2502 vertical line
10882 0x253c large plus or crossover
10886 0x2592 checker board (stipple)
10887 0x00b0 degree symbol
10890 - Teletype 5410v1 symbols
10891 0x2190 arrow pointing left
10892 0x2192 arrow pointing right
10893 0x2193 arrow pointing down
10894 0x2191 arrow pointing up
10895 0x2592 board of squares
10896 0x2603 lantern symbol
10897 0x25ae solid square block
10898 - these defaults were invented for ncurses
10901 0x2264 less-than-or-equal-to
10902 0x2265 greater-than-or-equal-to
10905 0x00a3 pound-sterling symbol
10906 - thick-line-drawing
10907 0x250f upper left corner
10908 0x2517 lower left corner
10909 0x2513 upper right corner
10910 0x251b lower right corner
10911 0x2523 tee pointing left
10912 0x252b tee pointing right
10913 0x253b tee pointing up
10914 0x2533 tee pointing down
10915 0x2501 horizontal line
10916 0x2503 vertical line
10917 0x254b large plus or crossover
10918 - double-line-drawing
10919 0x2554 upper left corner
10920 0x255a lower left corner
10921 0x2557 upper right corner
10922 0x255d lower right corner
10923 0x2563 tee pointing left
10924 0x2560 tee pointing right
10925 0x2569 tee pointing up
10926 0x2566 tee pointing down
10927 0x2550 horizontal line
10928 0x2551 vertical line
10929 0x256c large plus or crossover
10931 if test "$cross_compiling" = yes; then
10932 cf_cv_wcwidth_graphics=unknown
10934 cat >conftest.$ac_ext <<_ACEOF
10935 #line 10935 "configure"
10936 #include "confdefs.h"
10938 #include <locale.h>
10949 char buffer[MY_LEN + 1];
10950 char notes[MY_LEN + 1];
10954 if (setlocale(LC_ALL, "en_US.UTF8") ||
10955 setlocale(LC_ALL, "en_US.UTF-8") ||
10956 setlocale(LC_ALL, "en_US.utf8") ||
10957 setlocale(LC_ALL, "en_US.utf-8")) {
10958 if ((fp = fopen("conftest.in", "r")) != 0) {
10959 while (fgets(buffer, MY_LEN, fp) != 0) {
10960 if (*buffer == '-') {
10961 fprintf(stderr, "\t%s", buffer);
10962 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
10964 if (wcwidth(value) == 1)
10966 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
10968 fprintf(stderr, "?\t%s", buffer);
10973 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
10974 return (totals == passed) ? 0 : 1;
10978 rm -f conftest$ac_exeext
10979 if { (eval echo "$as_me:10979: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10982 echo "$as_me:10982: \$? = $ac_status" >&5
10983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10984 { (eval echo "$as_me:10984: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:10987: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 cf_cv_wcwidth_graphics=yes
10991 echo "$as_me: program exited with status $ac_status" >&5
10992 echo "$as_me: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 cf_cv_wcwidth_graphics=no
10996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11000 echo "$as_me:11000: result: $cf_cv_wcwidth_graphics" >&5
11001 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11003 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11005 # with_overwrite=no
11006 NCURSES_CH_T=cchar_t
11008 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11011 echo "$as_me:11011: checking for $ac_func" >&5
11012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11013 if eval "test \"\${$as_ac_var+set}\" = set"; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11017 #line 11017 "configure"
11018 #include "confdefs.h"
11019 #define $ac_func autoconf_temporary
11020 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11027 /* We use char because int might match the return type of a gcc2
11028 builtin and then its argument prototype would still apply. */
11029 char $ac_func (void);
11035 /* The GNU C library defines stubs for functions which it implements
11036 to always fail with ENOSYS. Some functions are actually named
11037 something starting with __ and the normal name is an alias. */
11038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11039 #error found stub for $ac_func
11042 return $ac_func ();
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:11048: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>&5
11051 echo "$as_me:11051: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -s conftest$ac_exeext'
11054 { (eval echo "$as_me:11054: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:11057: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 eval "$as_ac_var=yes"
11061 echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 eval "$as_ac_var=no"
11065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11067 echo "$as_me:11067: result: `eval echo '${'$as_ac_var'}'`" >&5
11068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11069 if test `eval echo '${'$as_ac_var'}'` = yes; then
11070 cat >>confdefs.h <<EOF
11071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11077 if test "x$ac_cv_func_putwc" != xyes ; then
11079 echo "$as_me:11079: checking for multibyte character support" >&5
11080 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11081 if test "${cf_cv_utf8_lib+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 cf_save_LIBS="$LIBS"
11086 cat >conftest.$ac_ext <<_ACEOF
11087 #line 11087 "configure"
11088 #include "confdefs.h"
11090 #include <stdlib.h>
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:11100: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:11103: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:11106: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:11109: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11113 echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11116 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11117 # will be set on completion of the AC_TRY_LINK below.
11118 cf_cv_header_path_utf8=
11119 cf_cv_library_path_utf8=
11121 echo "${as_me:-configure}:11121: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11123 cf_save_LIBS="$LIBS"
11125 cat >conftest.$ac_ext <<_ACEOF
11126 #line 11126 "configure"
11127 #include "confdefs.h"
11129 #include <libutf8.h>
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (eval echo "$as_me:11139: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>&5
11142 echo "$as_me:11142: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (eval echo "$as_me:11145: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11148 echo "$as_me:11148: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11151 cf_cv_find_linkage_utf8=yes
11152 cf_cv_header_path_utf8=/usr/include
11153 cf_cv_library_path_utf8=/usr/lib
11156 echo "$as_me: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11159 LIBS="-lutf8 $cf_save_LIBS"
11161 cat >conftest.$ac_ext <<_ACEOF
11162 #line 11162 "configure"
11163 #include "confdefs.h"
11165 #include <libutf8.h>
11174 rm -f conftest.$ac_objext conftest$ac_exeext
11175 if { (eval echo "$as_me:11175: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11178 echo "$as_me:11178: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (eval echo "$as_me:11181: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:11184: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11187 cf_cv_find_linkage_utf8=yes
11188 cf_cv_header_path_utf8=/usr/include
11189 cf_cv_library_path_utf8=/usr/lib
11190 cf_cv_library_file_utf8="-lutf8"
11193 echo "$as_me: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11196 cf_cv_find_linkage_utf8=no
11197 LIBS="$cf_save_LIBS"
11199 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
11201 echo "${as_me:-configure}:11201: testing find linkage for utf8 library ..." 1>&5
11203 echo "${as_me:-configure}:11203: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
11205 cf_save_CPPFLAGS="$CPPFLAGS"
11206 cf_test_CPPFLAGS="$CPPFLAGS"
11210 # collect the current set of include-directories from compiler flags
11211 cf_header_path_list=""
11212 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11213 for cf_header_path in $CPPFLAGS $CFLAGS
11215 case $cf_header_path in
11217 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11219 test "x$cf_header_path" != "xNONE" && \
11220 test -d "$cf_header_path" && \
11222 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11223 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
11224 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
11225 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
11226 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
11227 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
11230 cf_header_path_list="$cf_header_path_list $cf_search"
11236 # add the variations for the package we are looking for
11240 test "x$prefix" != "xNONE" && \
11241 test -d "$prefix" && \
11243 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11244 test -d $prefix/include && cf_search="$cf_search $prefix/include"
11245 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
11246 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
11247 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
11248 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
11251 for cf_subdir_prefix in \
11260 test "x$cf_subdir_prefix" != "x$prefix" && \
11261 test -d "$cf_subdir_prefix" && \
11262 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11263 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11264 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
11265 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
11266 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
11267 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
11268 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
11273 test "$includedir" != NONE && \
11274 test "$includedir" != "/usr/include" && \
11275 test -d "$includedir" && {
11276 test -d $includedir && cf_search="$cf_search $includedir"
11277 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
11280 test "$oldincludedir" != NONE && \
11281 test "$oldincludedir" != "/usr/include" && \
11282 test -d "$oldincludedir" && {
11283 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
11284 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
11287 cf_search="$cf_search $cf_header_path_list"
11289 for cf_cv_header_path_utf8 in $cf_search
11291 if test -d $cf_cv_header_path_utf8 ; then
11292 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
11294 echo "${as_me:-configure}:11294: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
11296 CPPFLAGS="$cf_save_CPPFLAGS"
11298 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11299 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line 11302 "configure"
11303 #include "confdefs.h"
11305 #include <libutf8.h>
11314 rm -f conftest.$ac_objext
11315 if { (eval echo "$as_me:11315: \"$ac_compile\"") >&5
11316 (eval $ac_compile) 2>&5
11318 echo "$as_me:11318: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:11321: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:11324: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11327 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
11329 echo "${as_me:-configure}:11329: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
11331 cf_cv_find_linkage_utf8=maybe
11332 cf_test_CPPFLAGS="$CPPFLAGS"
11335 echo "$as_me: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11338 CPPFLAGS="$cf_save_CPPFLAGS"
11341 rm -f conftest.$ac_objext conftest.$ac_ext
11345 if test "$cf_cv_find_linkage_utf8" = maybe ; then
11347 echo "${as_me:-configure}:11347: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
11349 cf_save_LIBS="$LIBS"
11350 cf_save_LDFLAGS="$LDFLAGS"
11352 if test "$cf_cv_find_linkage_utf8" != yes ; then
11355 cf_library_path_list=""
11356 if test -n "${LDFLAGS}${LIBS}" ; then
11357 for cf_library_path in $LDFLAGS $LIBS
11359 case $cf_library_path in
11361 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11363 test "x$cf_library_path" != "xNONE" && \
11364 test -d "$cf_library_path" && \
11366 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11367 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
11368 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
11369 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
11370 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
11371 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
11374 cf_library_path_list="$cf_library_path_list $cf_search"
11382 test "x$prefix" != "xNONE" && \
11383 test -d "$prefix" && \
11385 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11386 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
11387 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
11388 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
11389 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
11390 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
11393 for cf_subdir_prefix in \
11402 test "x$cf_subdir_prefix" != "x$prefix" && \
11403 test -d "$cf_subdir_prefix" && \
11404 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11405 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11406 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
11407 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
11408 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
11409 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
11410 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
11415 cf_search="$cf_library_path_list $cf_search"
11417 for cf_cv_library_path_utf8 in $cf_search
11419 if test -d $cf_cv_library_path_utf8 ; then
11420 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
11422 echo "${as_me:-configure}:11422: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
11424 CPPFLAGS="$cf_test_CPPFLAGS"
11425 LIBS="-lutf8 $cf_save_LIBS"
11426 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
11427 cat >conftest.$ac_ext <<_ACEOF
11428 #line 11428 "configure"
11429 #include "confdefs.h"
11431 #include <libutf8.h>
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (eval echo "$as_me:11441: \"$ac_link\"") >&5
11442 (eval $ac_link) 2>&5
11444 echo "$as_me:11444: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -s conftest$ac_exeext'
11447 { (eval echo "$as_me:11447: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11450 echo "$as_me:11450: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11453 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
11455 echo "${as_me:-configure}:11455: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
11457 cf_cv_find_linkage_utf8=yes
11458 cf_cv_library_file_utf8="-lutf8"
11461 echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11464 CPPFLAGS="$cf_save_CPPFLAGS"
11465 LIBS="$cf_save_LIBS"
11466 LDFLAGS="$cf_save_LDFLAGS"
11469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11472 CPPFLAGS="$cf_save_CPPFLAGS"
11473 LDFLAGS="$cf_save_LDFLAGS"
11477 cf_cv_find_linkage_utf8=no
11481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11486 LIBS="$cf_save_LIBS"
11488 if test "$cf_cv_find_linkage_utf8" = yes ; then
11489 cf_cv_utf8_lib=add-on
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11497 echo "$as_me:11497: result: $cf_cv_utf8_lib" >&5
11498 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
11500 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
11501 # ncurses/ncursesw:
11502 if test "$cf_cv_utf8_lib" = "add-on" ; then
11504 cat >>confdefs.h <<\EOF
11505 #define HAVE_LIBUTF8_H 1
11508 if test -n "$cf_cv_header_path_utf8" ; then
11509 for cf_add_incdir in $cf_cv_header_path_utf8
11511 while test $cf_add_incdir != /usr/include
11513 if test -d $cf_add_incdir
11516 if test -n "$CFLAGS$CPPFLAGS" ; then
11517 # a loop is needed to ensure we can add subdirs of existing dirs
11518 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11519 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11520 cf_have_incdir=yes; break
11525 if test "$cf_have_incdir" = no ; then
11526 if test "$cf_add_incdir" = /usr/local/include ; then
11527 if test "$GCC" = yes
11529 cf_save_CPPFLAGS=$CPPFLAGS
11531 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11532 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11534 cat >conftest.$ac_ext <<_ACEOF
11535 #line 11535 "configure"
11536 #include "confdefs.h"
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:11547: \"$ac_compile\"") >&5
11548 (eval $ac_compile) 2>&5
11550 echo "$as_me:11550: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:11553: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:11556: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11560 echo "$as_me: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11564 rm -f conftest.$ac_objext conftest.$ac_ext
11565 CPPFLAGS=$cf_save_CPPFLAGS
11570 if test "$cf_have_incdir" = no ; then
11571 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11573 echo "${as_me:-configure}:11573: testing adding $cf_add_incdir to include-path ..." 1>&5
11575 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11577 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11578 test "$cf_top_incdir" = "$cf_add_incdir" && break
11579 cf_add_incdir="$cf_top_incdir"
11590 if test -n "$cf_cv_library_path_utf8" ; then
11591 for cf_add_libdir in $cf_cv_library_path_utf8
11593 if test $cf_add_libdir = /usr/lib ; then
11595 elif test -d $cf_add_libdir
11598 if test -n "$LDFLAGS$LIBS" ; then
11599 # a loop is needed to ensure we can add subdirs of existing dirs
11600 for cf_test_libdir in $LDFLAGS $LIBS ; do
11601 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11602 cf_have_libdir=yes; break
11606 if test "$cf_have_libdir" = no ; then
11607 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11609 echo "${as_me:-configure}:11609: testing adding $cf_add_libdir to library-path ..." 1>&5
11611 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11617 cf_add_libs="$cf_cv_library_file_utf8"
11618 # Filter out duplicates - this happens with badly-designed ".pc" files...
11619 for cf_add_1lib in $LIBS
11621 for cf_add_2lib in $cf_add_libs
11623 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11629 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11631 LIBS="$cf_add_libs"
11635 if test "$cf_cv_utf8_lib" != no ; then
11640 # This is needed on Tru64 5.0 to declare mbstate_t
11641 echo "$as_me:11641: checking if we must include wchar.h to declare mbstate_t" >&5
11642 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
11643 if test "${cf_cv_mbstate_t+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11651 #include <stdlib.h>
11652 #include <stdarg.h>
11654 #ifdef HAVE_LIBUTF8_H
11655 #include <libutf8.h>
11665 rm -f conftest.$ac_objext
11666 if { (eval echo "$as_me:11666: \"$ac_compile\"") >&5
11667 (eval $ac_compile) 2>&5
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -s conftest.$ac_objext'
11672 { (eval echo "$as_me:11672: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11675 echo "$as_me:11675: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11679 echo "$as_me: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 cat >conftest.$ac_ext <<_ACEOF
11682 #line 11682 "configure"
11683 #include "confdefs.h"
11685 #include <stdlib.h>
11686 #include <stdarg.h>
11689 #ifdef HAVE_LIBUTF8_H
11690 #include <libutf8.h>
11700 rm -f conftest.$ac_objext
11701 if { (eval echo "$as_me:11701: \"$ac_compile\"") >&5
11702 (eval $ac_compile) 2>&5
11704 echo "$as_me:11704: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try='test -s conftest.$ac_objext'
11707 { (eval echo "$as_me:11707: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11710 echo "$as_me:11710: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 cf_cv_mbstate_t=yes
11714 echo "$as_me: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 cf_cv_mbstate_t=unknown
11718 rm -f conftest.$ac_objext conftest.$ac_ext
11720 rm -f conftest.$ac_objext conftest.$ac_ext
11722 echo "$as_me:11722: result: $cf_cv_mbstate_t" >&5
11723 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
11725 if test "$cf_cv_mbstate_t" = yes ; then
11727 cat >>confdefs.h <<\EOF
11728 #define NEED_WCHAR_H 1
11734 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
11735 if test "$cf_cv_mbstate_t" = unknown ; then
11736 NCURSES_MBSTATE_T=1
11739 # This is needed on Tru64 5.0 to declare wchar_t
11740 echo "$as_me:11740: checking if we must include wchar.h to declare wchar_t" >&5
11741 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
11742 if test "${cf_cv_wchar_t+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line 11747 "configure"
11748 #include "confdefs.h"
11750 #include <stdlib.h>
11751 #include <stdarg.h>
11753 #ifdef HAVE_LIBUTF8_H
11754 #include <libutf8.h>
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:11765: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>&5
11768 echo "$as_me:11768: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (eval echo "$as_me:11771: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:11774: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11778 echo "$as_me: failed program was:" >&5
11779 cat conftest.$ac_ext >&5
11780 cat >conftest.$ac_ext <<_ACEOF
11781 #line 11781 "configure"
11782 #include "confdefs.h"
11784 #include <stdlib.h>
11785 #include <stdarg.h>
11788 #ifdef HAVE_LIBUTF8_H
11789 #include <libutf8.h>
11799 rm -f conftest.$ac_objext
11800 if { (eval echo "$as_me:11800: \"$ac_compile\"") >&5
11801 (eval $ac_compile) 2>&5
11803 echo "$as_me:11803: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:11806: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:11809: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11813 echo "$as_me: failed program was:" >&5
11814 cat conftest.$ac_ext >&5
11815 cf_cv_wchar_t=unknown
11817 rm -f conftest.$ac_objext conftest.$ac_ext
11819 rm -f conftest.$ac_objext conftest.$ac_ext
11821 echo "$as_me:11821: result: $cf_cv_wchar_t" >&5
11822 echo "${ECHO_T}$cf_cv_wchar_t" >&6
11824 if test "$cf_cv_wchar_t" = yes ; then
11826 cat >>confdefs.h <<\EOF
11827 #define NEED_WCHAR_H 1
11833 # if we do not find wchar_t in either place, use substitution to provide a fallback.
11834 if test "$cf_cv_wchar_t" = unknown ; then
11838 # if we find wchar_t in either place, use substitution to provide a fallback.
11839 if test "$cf_cv_wchar_t" != unknown ; then
11840 NCURSES_OK_WCHAR_T=1
11843 # This is needed on Tru64 5.0 to declare wint_t
11844 echo "$as_me:11844: checking if we must include wchar.h to declare wint_t" >&5
11845 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
11846 if test "${cf_cv_wint_t+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 cat >conftest.$ac_ext <<_ACEOF
11851 #line 11851 "configure"
11852 #include "confdefs.h"
11854 #include <stdlib.h>
11855 #include <stdarg.h>
11857 #ifdef HAVE_LIBUTF8_H
11858 #include <libutf8.h>
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:11869: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11872 echo "$as_me:11872: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:11875: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:11878: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11882 echo "$as_me: failed program was:" >&5
11883 cat conftest.$ac_ext >&5
11884 cat >conftest.$ac_ext <<_ACEOF
11885 #line 11885 "configure"
11886 #include "confdefs.h"
11888 #include <stdlib.h>
11889 #include <stdarg.h>
11892 #ifdef HAVE_LIBUTF8_H
11893 #include <libutf8.h>
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:11904: \"$ac_compile\"") >&5
11905 (eval $ac_compile) 2>&5
11907 echo "$as_me:11907: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:11910: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:11913: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11917 echo "$as_me: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11919 cf_cv_wint_t=unknown
11921 rm -f conftest.$ac_objext conftest.$ac_ext
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:11925: result: $cf_cv_wint_t" >&5
11926 echo "${ECHO_T}$cf_cv_wint_t" >&6
11928 if test "$cf_cv_wint_t" = yes ; then
11930 cat >>confdefs.h <<\EOF
11931 #define NEED_WCHAR_H 1
11937 # if we do not find wint_t in either place, use substitution to provide a fallback.
11938 if test "$cf_cv_wint_t" = unknown ; then
11942 # if we find wint_t in either place, use substitution to provide a fallback.
11943 if test "$cf_cv_wint_t" != unknown ; then
11944 NCURSES_OK_WINT_T=1
11947 if test "$NCURSES_MBSTATE_T" != 0; then
11949 cat >>confdefs.h <<\EOF
11950 #define NEED_MBSTATE_T_DEF 1
11956 ### use option --disable-lp64 to allow long chtype
11957 echo "$as_me:11957: checking whether to enable _LP64 definition in curses.h" >&5
11958 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
11960 # Check whether --enable-lp64 or --disable-lp64 was given.
11961 if test "${enable_lp64+set}" = set; then
11962 enableval="$enable_lp64"
11963 with_lp64=$enableval
11965 with_lp64=$cf_dft_with_lp64
11967 echo "$as_me:11967: result: $with_lp64" >&5
11968 echo "${ECHO_T}$with_lp64" >&6
11970 if test "x$with_lp64" = xyes ; then
11971 cf_cv_enable_lp64=1
11973 cf_cv_enable_lp64=0
11976 # Check whether --enable-largefile or --disable-largefile was given.
11977 if test "${enable_largefile+set}" = set; then
11978 enableval="$enable_largefile"
11981 if test "$enable_largefile" != no; then
11983 echo "$as_me:11983: checking for special C compiler options needed for large files" >&5
11984 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
11985 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 ac_cv_sys_largefile_CC=no
11989 if test "$GCC" != yes; then
11992 # IRIX 6.2 and later do not support large files by default,
11993 # so use the C compiler's -n32 option if that helps.
11994 cat >conftest.$ac_ext <<_ACEOF
11995 #line 11995 "configure"
11996 #include "confdefs.h"
11997 #include <sys/types.h>
11998 /* Check that off_t can represent 2**63 - 1 correctly.
11999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12000 since some C++ compilers masquerading as C compilers
12001 incorrectly reject 9223372036854775807. */
12002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12004 && LARGE_OFF_T % 2147483647 == 1)
12014 rm -f conftest.$ac_objext
12015 if { (eval echo "$as_me:12015: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>&5
12018 echo "$as_me:12018: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (eval echo "$as_me:12021: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:12024: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12028 echo "$as_me: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12031 rm -f conftest.$ac_objext
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:12040: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_sys_largefile_CC=' -n32'; break
12047 echo "$as_me: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12050 rm -f conftest.$ac_objext
12054 rm -f conftest.$ac_ext
12057 echo "$as_me:12057: result: $ac_cv_sys_largefile_CC" >&5
12058 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12059 if test "$ac_cv_sys_largefile_CC" != no; then
12060 CC=$CC$ac_cv_sys_largefile_CC
12063 echo "$as_me:12063: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12064 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12065 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 ac_cv_sys_file_offset_bits=no
12070 cat >conftest.$ac_ext <<_ACEOF
12071 #line 12071 "configure"
12072 #include "confdefs.h"
12073 #include <sys/types.h>
12074 /* Check that off_t can represent 2**63 - 1 correctly.
12075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12076 since some C++ compilers masquerading as C compilers
12077 incorrectly reject 9223372036854775807. */
12078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12080 && LARGE_OFF_T % 2147483647 == 1)
12090 rm -f conftest.$ac_objext
12091 if { (eval echo "$as_me:12091: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12094 echo "$as_me:12094: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -s conftest.$ac_objext'
12097 { (eval echo "$as_me:12097: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:12100: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12104 echo "$as_me: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12107 rm -f conftest.$ac_objext conftest.$ac_ext
12108 cat >conftest.$ac_ext <<_ACEOF
12109 #line 12109 "configure"
12110 #include "confdefs.h"
12111 #define _FILE_OFFSET_BITS 64
12112 #include <sys/types.h>
12113 /* Check that off_t can represent 2**63 - 1 correctly.
12114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12115 since some C++ compilers masquerading as C compilers
12116 incorrectly reject 9223372036854775807. */
12117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12119 && LARGE_OFF_T % 2147483647 == 1)
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:12130: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>&5
12133 echo "$as_me:12133: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (eval echo "$as_me:12136: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:12139: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_cv_sys_file_offset_bits=64; break
12143 echo "$as_me: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12150 echo "$as_me:12150: result: $ac_cv_sys_file_offset_bits" >&5
12151 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12152 if test "$ac_cv_sys_file_offset_bits" != no; then
12154 cat >>confdefs.h <<EOF
12155 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12160 echo "$as_me:12160: checking for _LARGE_FILES value needed for large files" >&5
12161 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12162 if test "${ac_cv_sys_large_files+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 ac_cv_sys_large_files=no
12167 cat >conftest.$ac_ext <<_ACEOF
12168 #line 12168 "configure"
12169 #include "confdefs.h"
12170 #include <sys/types.h>
12171 /* Check that off_t can represent 2**63 - 1 correctly.
12172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12173 since some C++ compilers masquerading as C compilers
12174 incorrectly reject 9223372036854775807. */
12175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12177 && LARGE_OFF_T % 2147483647 == 1)
12187 rm -f conftest.$ac_objext
12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:12194: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12201 echo "$as_me: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12204 rm -f conftest.$ac_objext conftest.$ac_ext
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line 12206 "configure"
12207 #include "confdefs.h"
12208 #define _LARGE_FILES 1
12209 #include <sys/types.h>
12210 /* Check that off_t can represent 2**63 - 1 correctly.
12211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12212 since some C++ compilers masquerading as C compilers
12213 incorrectly reject 9223372036854775807. */
12214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12216 && LARGE_OFF_T % 2147483647 == 1)
12226 rm -f conftest.$ac_objext
12227 if { (eval echo "$as_me:12227: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>&5
12230 echo "$as_me:12230: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -s conftest.$ac_objext'
12233 { (eval echo "$as_me:12233: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:12236: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_sys_large_files=1; break
12240 echo "$as_me: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12243 rm -f conftest.$ac_objext conftest.$ac_ext
12247 echo "$as_me:12247: result: $ac_cv_sys_large_files" >&5
12248 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12249 if test "$ac_cv_sys_large_files" != no; then
12251 cat >>confdefs.h <<EOF
12252 #define _LARGE_FILES $ac_cv_sys_large_files
12259 if test "$enable_largefile" != no ; then
12260 echo "$as_me:12260: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12261 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12262 if test "${ac_cv_sys_largefile_source+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 ac_cv_sys_largefile_source=no
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line 12268 "configure"
12269 #include "confdefs.h"
12279 rm -f conftest.$ac_objext
12280 if { (eval echo "$as_me:12280: \"$ac_compile\"") >&5
12281 (eval $ac_compile) 2>&5
12283 echo "$as_me:12283: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:12286: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12293 echo "$as_me: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12296 rm -f conftest.$ac_objext conftest.$ac_ext
12297 cat >conftest.$ac_ext <<_ACEOF
12298 #line 12298 "configure"
12299 #include "confdefs.h"
12300 #define _LARGEFILE_SOURCE 1
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:12311: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>&5
12314 echo "$as_me:12314: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -s conftest.$ac_objext'
12317 { (eval echo "$as_me:12317: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_sys_largefile_source=1; break
12324 echo "$as_me: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12331 echo "$as_me:12331: result: $ac_cv_sys_largefile_source" >&5
12332 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12333 if test "$ac_cv_sys_largefile_source" != no; then
12335 cat >>confdefs.h <<EOF
12336 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12342 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12343 # in glibc 2.1.3, but that breaks too many other things.
12344 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12345 echo "$as_me:12345: checking for fseeko" >&5
12346 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12347 if test "${ac_cv_func_fseeko+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line 12351 "configure"
12352 #include "confdefs.h"
12357 return fseeko && fseeko (stdin, 0, 0);
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (eval echo "$as_me:12363: \"$ac_link\"") >&5
12364 (eval $ac_link) 2>&5
12366 echo "$as_me:12366: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:12369: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:12372: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_func_fseeko=yes
12376 echo "$as_me: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12378 ac_cv_func_fseeko=no
12380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12382 echo "$as_me:12382: result: $ac_cv_func_fseeko" >&5
12383 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12384 if test $ac_cv_func_fseeko = yes; then
12386 cat >>confdefs.h <<\EOF
12387 #define HAVE_FSEEKO 1
12392 # Normally we would collect these definitions in the config.h,
12393 # but (like _XOPEN_SOURCE), some environments rely on having these
12394 # defined before any of the system headers are included. Another
12395 # case comes up with C++, e.g., on AIX the compiler compiles the
12396 # header files by themselves before looking at the body files it is
12397 # told to compile. For ncurses, those header files do not include
12399 if test "$ac_cv_sys_large_files" != no
12402 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12403 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
12406 if test "$ac_cv_sys_largefile_source" != no
12409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12410 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
12413 if test "$ac_cv_sys_file_offset_bits" != no
12416 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12417 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12421 echo "$as_me:12421: checking whether to use struct dirent64" >&5
12422 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
12423 if test "${cf_cv_struct_dirent64+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 cat >conftest.$ac_ext <<_ACEOF
12428 #line 12428 "configure"
12429 #include "confdefs.h"
12431 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
12432 #include <sys/types.h>
12433 #include <dirent.h>
12439 /* if transitional largefile support is setup, this is true */
12440 extern struct dirent64 * readdir(DIR *);
12441 struct dirent64 *x = readdir((DIR *)0);
12442 struct dirent *y = readdir((DIR *)0);
12449 rm -f conftest.$ac_objext
12450 if { (eval echo "$as_me:12450: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>&5
12453 echo "$as_me:12453: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:12456: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:12459: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 cf_cv_struct_dirent64=yes
12463 echo "$as_me: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12465 cf_cv_struct_dirent64=no
12467 rm -f conftest.$ac_objext conftest.$ac_ext
12470 echo "$as_me:12470: result: $cf_cv_struct_dirent64" >&5
12471 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
12472 test "$cf_cv_struct_dirent64" = yes &&
12473 cat >>confdefs.h <<\EOF
12474 #define HAVE_STRUCT_DIRENT64 1
12479 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
12480 echo "$as_me:12480: checking if you want tparm not to use X/Open fixed-parameter list" >&5
12481 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
12483 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
12484 if test "${enable_tparm_varargs+set}" = set; then
12485 enableval="$enable_tparm_varargs"
12486 with_tparm_varargs=$enableval
12488 with_tparm_varargs=yes
12490 echo "$as_me:12490: result: $with_tparm_varargs" >&5
12491 echo "${ECHO_T}$with_tparm_varargs" >&6
12492 NCURSES_TPARM_VARARGS=0
12493 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
12495 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
12496 if test "$with_ticlib" != no ; then
12497 echo "$as_me:12497: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
12498 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
12500 # Check whether --enable-tic-depends or --disable-tic-depends was given.
12501 if test "${enable_tic_depends+set}" = set; then
12502 enableval="$enable_tic_depends"
12503 with_tic_depends=$enableval
12505 with_tic_depends=yes
12507 echo "$as_me:12507: result: $with_tic_depends" >&5
12508 echo "${ECHO_T}$with_tic_depends" >&6
12510 with_tic_depends=no
12513 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
12514 echo "$as_me:12514: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
12515 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
12517 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
12518 if test "${enable_wattr_macros+set}" = set; then
12519 enableval="$enable_wattr_macros"
12520 with_wattr_macros=$enableval
12522 with_wattr_macros=yes
12524 if [ "x$with_wattr_macros" != xyes ]; then
12525 NCURSES_WATTR_MACROS=0
12526 echo "$as_me:12526: result: yes" >&5
12527 echo "${ECHO_T}yes" >&6
12529 NCURSES_WATTR_MACROS=1
12530 echo "$as_me:12530: result: no" >&5
12531 echo "${ECHO_T}no" >&6
12534 echo "$as_me:12534: checking for X11 rgb file" >&5
12535 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
12537 # Check whether --with-x11-rgb or --without-x11-rgb was given.
12538 if test "${with_x11_rgb+set}" = set; then
12539 withval="$with_x11_rgb"
12545 if test "x$RGB_PATH" = xauto
12547 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
12549 /opt/local/share/X11/rgb.txt \
12550 /opt/X11/share/X11/rgb.txt \
12551 /usr/share/X11/rgb.txt \
12552 /usr/X11/share/X11/rgb.txt \
12553 /usr/X11/lib/X11/rgb.txt \
12554 /usr/lib/X11/rgb.txt \
12556 /usr/pkg/lib/X11/rgb.txt \
12557 /usr/X11R7/lib/X11/rgb.txt \
12558 /usr/X11R6/lib/X11/rgb.txt \
12559 /usr/X11R5/lib/X11/rgb.txt \
12560 /usr/X11R4/lib/X11/rgb.txt \
12561 /usr/local/lib/X11/rgb.txt \
12562 /usr/local/share/X11/rgb.txt \
12563 /usr/lib64/X11/rgb.txt
12565 if test -f "$cf_path" ; then
12566 RGB_PATH="$cf_path"
12573 if test "x$prefix" != xNONE; then
12574 cf_path_syntax="$prefix"
12576 cf_path_syntax="$ac_default_prefix"
12579 case ".$cf_path" in
12580 (.\$\(*\)*|.\'*\'*)
12584 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
12586 (.\${*prefix}*|.\${*dir}*)
12587 eval cf_path="$cf_path"
12588 case ".$cf_path" in
12590 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
12595 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
12598 { { echo "$as_me:12598: error: expected a pathname, not \"$cf_path\"" >&5
12599 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
12600 { (exit 1); exit 1; }; }
12606 echo "$as_me:12606: result: $RGB_PATH" >&5
12607 echo "${ECHO_T}$RGB_PATH" >&6
12609 cat >>confdefs.h <<EOF
12610 #define RGB_PATH "$cf_path"
12614 if test "$RGB_PATH" = no
12619 ### use option --with-bool to override bool's type
12620 echo "$as_me:12620: checking for type of bool" >&5
12621 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
12623 # Check whether --with-bool or --without-bool was given.
12624 if test "${with_bool+set}" = set; then
12625 withval="$with_bool"
12626 NCURSES_BOOL="$withval"
12630 echo "$as_me:12630: result: $NCURSES_BOOL" >&5
12631 echo "${ECHO_T}$NCURSES_BOOL" >&6
12633 echo "$as_me:12633: checking for alternate terminal capabilities file" >&5
12634 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
12636 # Check whether --with-caps or --without-caps was given.
12637 if test "${with_caps+set}" = set; then
12638 withval="$with_caps"
12639 TERMINFO_CAPS=Caps.$withval
12643 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
12644 echo "$as_me:12644: result: $TERMINFO_CAPS" >&5
12645 echo "${ECHO_T}$TERMINFO_CAPS" >&6
12647 ### use option --with-chtype to override chtype's type
12648 echo "$as_me:12648: checking for type of chtype" >&5
12649 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
12651 # Check whether --with-chtype or --without-chtype was given.
12652 if test "${with_chtype+set}" = set; then
12653 withval="$with_chtype"
12654 NCURSES_CHTYPE="$withval"
12656 NCURSES_CHTYPE=$cf_dft_chtype
12658 echo "$as_me:12658: result: $NCURSES_CHTYPE" >&5
12659 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
12661 ### use option --with-ospeed to override ospeed's type
12662 echo "$as_me:12662: checking for type of ospeed" >&5
12663 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
12665 # Check whether --with-ospeed or --without-ospeed was given.
12666 if test "${with_ospeed+set}" = set; then
12667 withval="$with_ospeed"
12668 NCURSES_OSPEED="$withval"
12670 NCURSES_OSPEED=short
12672 echo "$as_me:12672: result: $NCURSES_OSPEED" >&5
12673 echo "${ECHO_T}$NCURSES_OSPEED" >&6
12675 ### use option --with-mmask-t to override mmask_t's type
12676 echo "$as_me:12676: checking for type of mmask_t" >&5
12677 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
12679 # Check whether --with-mmask-t or --without-mmask-t was given.
12680 if test "${with_mmask_t+set}" = set; then
12681 withval="$with_mmask_t"
12682 NCURSES_MMASK_T="$withval"
12684 NCURSES_MMASK_T=$cf_dft_mmask_t
12686 echo "$as_me:12686: result: $NCURSES_MMASK_T" >&5
12687 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
12689 ### use option --with-ccharw-max to override CCHARW_MAX size
12690 echo "$as_me:12690: checking for size CCHARW_MAX" >&5
12691 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
12693 # Check whether --with-ccharw-max or --without-ccharw-max was given.
12694 if test "${with_ccharw_max+set}" = set; then
12695 withval="$with_ccharw_max"
12696 NCURSES_CCHARW_MAX="$withval"
12698 NCURSES_CCHARW_MAX=5
12700 echo "$as_me:12700: result: $NCURSES_CCHARW_MAX" >&5
12701 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
12703 echo "$as_me:12703: checking for ANSI C header files" >&5
12704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12705 if test "${ac_cv_header_stdc+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 cat >conftest.$ac_ext <<_ACEOF
12709 #line 12709 "configure"
12710 #include "confdefs.h"
12711 #include <stdlib.h>
12712 #include <stdarg.h>
12713 #include <string.h>
12717 if { (eval echo "$as_me:12717: \"$ac_cpp conftest.$ac_ext\"") >&5
12718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12720 egrep -v '^ *\+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:12723: \$? = $ac_status" >&5
12724 (exit $ac_status); } >/dev/null; then
12725 if test -s conftest.err; then
12726 ac_cpp_err=$ac_c_preproc_warn_flag
12733 if test -z "$ac_cpp_err"; then
12734 ac_cv_header_stdc=yes
12736 echo "$as_me: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 ac_cv_header_stdc=no
12740 rm -f conftest.err conftest.$ac_ext
12742 if test $ac_cv_header_stdc = yes; then
12743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12744 cat >conftest.$ac_ext <<_ACEOF
12745 #line 12745 "configure"
12746 #include "confdefs.h"
12747 #include <string.h>
12750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12751 egrep "memchr" >/dev/null 2>&1; then
12754 ac_cv_header_stdc=no
12760 if test $ac_cv_header_stdc = yes; then
12761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12762 cat >conftest.$ac_ext <<_ACEOF
12763 #line 12763 "configure"
12764 #include "confdefs.h"
12765 #include <stdlib.h>
12768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12769 egrep "free" >/dev/null 2>&1; then
12772 ac_cv_header_stdc=no
12778 if test $ac_cv_header_stdc = yes; then
12779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12780 if test "$cross_compiling" = yes; then
12783 cat >conftest.$ac_ext <<_ACEOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12787 #if ((' ' & 0x0FF) == 0x020)
12788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12791 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12792 || ('j' <= (c) && (c) <= 'r') \
12793 || ('s' <= (c) && (c) <= 'z'))
12794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12802 for (i = 0; i < 256; i++)
12803 if (XOR (islower (i), ISLOWER (i))
12804 || toupper (i) != TOUPPER (i))
12805 $ac_main_return(2);
12806 $ac_main_return (0);
12809 rm -f conftest$ac_exeext
12810 if { (eval echo "$as_me:12810: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>&5
12813 echo "$as_me:12813: \$? = $ac_status" >&5
12814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12815 { (eval echo "$as_me:12815: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:12818: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12822 echo "$as_me: program exited with status $ac_status" >&5
12823 echo "$as_me: failed program was:" >&5
12824 cat conftest.$ac_ext >&5
12825 ac_cv_header_stdc=no
12827 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12831 echo "$as_me:12831: result: $ac_cv_header_stdc" >&5
12832 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12833 if test $ac_cv_header_stdc = yes; then
12835 cat >>confdefs.h <<\EOF
12836 #define STDC_HEADERS 1
12841 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12844 inttypes.h stdint.h unistd.h
12846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12847 echo "$as_me:12847: checking for $ac_header" >&5
12848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 cat >conftest.$ac_ext <<_ACEOF
12853 #line 12853 "configure"
12854 #include "confdefs.h"
12855 $ac_includes_default
12856 #include <$ac_header>
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:12859: \"$ac_compile\"") >&5
12860 (eval $ac_compile) 2>&5
12862 echo "$as_me:12862: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:12865: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:12868: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 eval "$as_ac_Header=yes"
12872 echo "$as_me: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 eval "$as_ac_Header=no"
12876 rm -f conftest.$ac_objext conftest.$ac_ext
12878 echo "$as_me:12878: result: `eval echo '${'$as_ac_Header'}'`" >&5
12879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12881 cat >>confdefs.h <<EOF
12882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12888 echo "$as_me:12888: checking for signed char" >&5
12889 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12890 if test "${ac_cv_type_signed_char+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 cat >conftest.$ac_ext <<_ACEOF
12894 #line 12894 "configure"
12895 #include "confdefs.h"
12896 $ac_includes_default
12900 if ((signed char *) 0)
12902 if (sizeof (signed char))
12908 rm -f conftest.$ac_objext
12909 if { (eval echo "$as_me:12909: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>&5
12912 echo "$as_me:12912: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:12915: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:12918: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_type_signed_char=yes
12922 echo "$as_me: failed program was:" >&5
12923 cat conftest.$ac_ext >&5
12924 ac_cv_type_signed_char=no
12926 rm -f conftest.$ac_objext conftest.$ac_ext
12928 echo "$as_me:12928: result: $ac_cv_type_signed_char" >&5
12929 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12931 echo "$as_me:12931: checking size of signed char" >&5
12932 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12933 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 if test "$ac_cv_type_signed_char" = yes; then
12937 if test "$cross_compiling" = yes; then
12938 # Depending upon the size, compute the lo and hi bounds.
12939 cat >conftest.$ac_ext <<_ACEOF
12940 #line 12940 "configure"
12941 #include "confdefs.h"
12942 $ac_includes_default
12946 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:12952: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -s conftest.$ac_objext'
12958 { (eval echo "$as_me:12958: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:12961: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line 12966 "configure"
12967 #include "confdefs.h"
12968 $ac_includes_default
12972 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12977 rm -f conftest.$ac_objext
12978 if { (eval echo "$as_me:12978: \"$ac_compile\"") >&5
12979 (eval $ac_compile) 2>&5
12981 echo "$as_me:12981: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:12984: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_hi=$ac_mid; break
12991 echo "$as_me: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12993 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12995 rm -f conftest.$ac_objext conftest.$ac_ext
12998 echo "$as_me: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13002 cat >conftest.$ac_ext <<_ACEOF
13003 #line 13003 "configure"
13004 #include "confdefs.h"
13005 $ac_includes_default
13009 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13014 rm -f conftest.$ac_objext
13015 if { (eval echo "$as_me:13015: \"$ac_compile\"") >&5
13016 (eval $ac_compile) 2>&5
13018 echo "$as_me:13018: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:13021: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:13024: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_lo=$ac_mid; break
13028 echo "$as_me: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13032 rm -f conftest.$ac_objext conftest.$ac_ext
13035 rm -f conftest.$ac_objext conftest.$ac_ext
13036 # Binary search between lo and hi bounds.
13037 while test "x$ac_lo" != "x$ac_hi"; do
13038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13039 cat >conftest.$ac_ext <<_ACEOF
13040 #line 13040 "configure"
13041 #include "confdefs.h"
13042 $ac_includes_default
13046 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:13052: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13055 echo "$as_me:13055: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:13058: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:13061: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13065 echo "$as_me: failed program was:" >&5
13066 cat conftest.$ac_ext >&5
13067 ac_lo=`expr $ac_mid + 1`
13069 rm -f conftest.$ac_objext conftest.$ac_ext
13071 ac_cv_sizeof_signed_char=$ac_lo
13073 if test "$cross_compiling" = yes; then
13074 { { echo "$as_me:13074: error: cannot run test program while cross compiling" >&5
13075 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13076 { (exit 1); exit 1; }; }
13078 cat >conftest.$ac_ext <<_ACEOF
13079 #line 13079 "configure"
13080 #include "confdefs.h"
13081 $ac_includes_default
13085 FILE *f = fopen ("conftest.val", "w");
13087 $ac_main_return (1);
13088 fprintf (f, "%d", (sizeof (signed char)));
13094 rm -f conftest$ac_exeext
13095 if { (eval echo "$as_me:13095: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>&5
13098 echo "$as_me:13098: \$? = $ac_status" >&5
13099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13100 { (eval echo "$as_me:13100: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:13103: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_sizeof_signed_char=`cat conftest.val`
13107 echo "$as_me: program exited with status $ac_status" >&5
13108 echo "$as_me: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13111 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13116 ac_cv_sizeof_signed_char=0
13119 echo "$as_me:13119: result: $ac_cv_sizeof_signed_char" >&5
13120 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13121 cat >>confdefs.h <<EOF
13122 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13125 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13126 NCURSES_SBOOL="signed char"
13128 NCURSES_SBOOL="char"
13130 echo "$as_me:13130: checking if you want to use signed Boolean array in term.h" >&5
13131 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13133 # Check whether --enable-signed-char or --disable-signed-char was given.
13134 if test "${enable_signed_char+set}" = set; then
13135 enableval="$enable_signed_char"
13136 with_signed_char=$enableval
13138 with_signed_char=no
13140 echo "$as_me:13140: result: $with_signed_char" >&5
13141 echo "${ECHO_T}$with_signed_char" >&6
13142 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13144 ### use option --with-tparm-arg to override tparm's argument type
13145 echo "$as_me:13145: checking for type of tparm args" >&5
13146 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
13148 # Check whether --with-tparm-arg or --without-tparm-arg was given.
13149 if test "${with_tparm_arg+set}" = set; then
13150 withval="$with_tparm_arg"
13151 NCURSES_TPARM_ARG="$withval"
13153 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
13155 echo "$as_me:13155: result: $NCURSES_TPARM_ARG" >&5
13156 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
13158 ### Enable compiling-in rcs id's
13159 echo "$as_me:13159: checking if RCS identifiers should be compiled-in" >&5
13160 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
13162 # Check whether --with-rcs-ids or --without-rcs-ids was given.
13163 if test "${with_rcs_ids+set}" = set; then
13164 withval="$with_rcs_ids"
13165 with_rcs_ids=$withval
13169 echo "$as_me:13169: result: $with_rcs_ids" >&5
13170 echo "${ECHO_T}$with_rcs_ids" >&6
13171 test "x$with_rcs_ids" = xyes &&
13172 cat >>confdefs.h <<\EOF
13173 #define USE_RCS_IDS 1
13176 ###############################################################################
13178 echo "$as_me:13178: checking format of man-pages" >&5
13179 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
13181 # Check whether --with-manpage-format or --without-manpage-format was given.
13182 if test "${with_manpage_format+set}" = set; then
13183 withval="$with_manpage_format"
13184 MANPAGE_FORMAT=$withval
13186 MANPAGE_FORMAT=unknown
13189 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
13190 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
13194 case $MANPAGE_FORMAT in
13196 if test -z "$MANPATH" ; then
13197 MANPATH="/usr/man:/usr/share/man"
13200 # look for the 'date' man-page (it's most likely to be installed!)
13206 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
13207 for cf_dir in $MANPATH; do
13208 test -z "$cf_dir" && cf_dir=/usr/man
13209 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
13211 cf_test=`echo $cf_name | sed -e 's/*//'`
13212 if test "x$cf_test" = "x$cf_name" ; then
13215 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
13216 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
13217 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
13218 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
13232 # if we found a match in either man* or cat*, stop looking
13233 if test -n "$MANPAGE_FORMAT" ; then
13235 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
13236 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
13242 test $cf_found=yes && break
13245 # only check the first directory in $MANPATH where we find manpages
13246 if test -n "$MANPAGE_FORMAT" ; then
13250 # if we did not find the example, just assume it is normal
13251 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
13255 for cf_option in $MANPAGE_FORMAT; do
13257 (gzip|compress|BSDI|normal|formatted|catonly)
13260 cf_unknown="$cf_unknown $cf_option"
13267 echo "$as_me:13267: result: $MANPAGE_FORMAT" >&5
13268 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
13269 if test -n "$cf_unknown" ; then
13270 { echo "$as_me:13270: WARNING: Unexpected manpage-format $cf_unknown" >&5
13271 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
13274 echo "$as_me:13274: checking for manpage renaming" >&5
13275 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
13277 # Check whether --with-manpage-renames or --without-manpage-renames was given.
13278 if test "${with_manpage_renames+set}" = set; then
13279 withval="$with_manpage_renames"
13280 MANPAGE_RENAMES=$withval
13282 MANPAGE_RENAMES=yes
13285 case ".$MANPAGE_RENAMES" in
13289 # Debian 'man' program?
13290 if test -f /etc/debian_version ; then
13291 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
13298 if test "$MANPAGE_RENAMES" != no ; then
13299 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
13300 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
13301 elif test ! -f $MANPAGE_RENAMES ; then
13302 { { echo "$as_me:13302: error: not a filename: $MANPAGE_RENAMES" >&5
13303 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
13304 { (exit 1); exit 1; }; }
13307 test ! -d man && mkdir man
13309 # Construct a sed-script to perform renaming within man-pages
13310 if test -n "$MANPAGE_RENAMES" ; then
13311 test ! -d man && mkdir man
13312 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
13316 echo "$as_me:13316: result: $MANPAGE_RENAMES" >&5
13317 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
13319 echo "$as_me:13319: checking if manpage aliases will be installed" >&5
13320 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
13322 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
13323 if test "${with_manpage_aliases+set}" = set; then
13324 withval="$with_manpage_aliases"
13325 MANPAGE_ALIASES=$withval
13327 MANPAGE_ALIASES=yes
13330 echo "$as_me:13330: result: $MANPAGE_ALIASES" >&5
13331 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
13335 cf_use_symlinks=yes
13342 MANPAGE_SYMLINKS=no
13343 if test "$MANPAGE_ALIASES" = yes ; then
13344 echo "$as_me:13344: checking if manpage symlinks should be used" >&5
13345 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
13347 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
13348 if test "${with_manpage_symlinks+set}" = set; then
13349 withval="$with_manpage_symlinks"
13350 MANPAGE_SYMLINKS=$withval
13352 MANPAGE_SYMLINKS=$cf_use_symlinks
13355 if test "$$cf_use_symlinks" = no; then
13356 if test "$MANPAGE_SYMLINKS" = yes ; then
13357 { echo "$as_me:13357: WARNING: cannot make symlinks" >&5
13358 echo "$as_me: WARNING: cannot make symlinks" >&2;}
13359 MANPAGE_SYMLINKS=no
13363 echo "$as_me:13363: result: $MANPAGE_SYMLINKS" >&5
13364 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
13367 echo "$as_me:13367: checking for manpage tbl" >&5
13368 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
13370 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
13371 if test "${with_manpage_tbl+set}" = set; then
13372 withval="$with_manpage_tbl"
13373 MANPAGE_TBL=$withval
13378 echo "$as_me:13378: result: $MANPAGE_TBL" >&5
13379 echo "${ECHO_T}$MANPAGE_TBL" >&6
13381 if test "$prefix" = "NONE" ; then
13382 cf_prefix="$ac_default_prefix"
13384 cf_prefix="$prefix"
13387 case "$MANPAGE_FORMAT" in
13402 test ! -d man && mkdir man
13406 case "$MANPAGE_FORMAT" in
13409 cf_compress=compress
13417 cf_edit_man=./edit_man.sh
13418 cf_man_alias=`pwd`/man_alias.sed
13420 cat >$cf_edit_man <<CF_EOF
13422 # this script is generated by the configure-script CF_MAN_PAGES macro.
13424 prefix="$cf_prefix"
13425 datarootdir="$datarootdir"
13428 NCURSES_MAJOR="$NCURSES_MAJOR"
13429 NCURSES_MINOR="$NCURSES_MINOR"
13430 NCURSES_PATCH="$NCURSES_PATCH"
13432 NCURSES_OSPEED="$NCURSES_OSPEED"
13433 TERMINFO="$TERMINFO"
13436 INSTALL_DATA="$INSTALL_DATA"
13438 transform="$program_transform_name"
13440 TMP=\${TMPDIR:=/tmp}/man\$\$
13441 trap "rm -f \$TMP" 0 1 2 3 15
13453 top_srcdir=\$srcdir/..
13456 if test "\$form" = normal ; then
13457 if test "$cf_format" = yes ; then
13458 if test "$cf_inboth" = no ; then
13459 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
13463 cf_subdir=\$mandir/man
13464 cf_tables=$MANPAGE_TBL
13466 cf_subdir=\$mandir/cat
13470 # process the list of source-files
13475 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
13476 if test \$verb = installing ; then
13477 if test ! -d \$cf_subdir\${section} ; then
13478 mkdir -p \$cf_subdir\$section
13482 # replace variables in man page
13483 if test ! -f $cf_man_alias ; then
13484 cat >>$cf_man_alias <<-CF_EOF2
13485 s,@DATADIR@,\$datadir,g
13486 s,@TERMINFO@,\${TERMINFO:="no default value"},g
13487 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
13488 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
13489 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
13490 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
13491 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
13494 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
13496 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13497 cf_name=`echo $cf_name|sed "$program_transform_name"`
13498 cat >>$cf_edit_man <<-CF_EOF
13499 s,@$cf_NAME@,$cf_name,g
13503 cat >>$cf_edit_man <<CF_EOF
13505 echo "...made $cf_man_alias"
13509 cf_source=\`basename \$i\`
13510 inalias=\$cf_source
13511 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
13512 if test ! -f \$inalias ; then
13513 echo .. skipped \$cf_source
13518 if test "$MANPAGE_ALIASES" != no ; then
13519 cat >>$cf_edit_man <<CF_EOF
13521 test $with_curses_h = yes && nCurses=ncurses.3x
13522 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
13526 if test "$MANPAGE_RENAMES" = no ; then
13527 cat >>$cf_edit_man <<CF_EOF
13528 # perform program transformations for section 1 man pages
13529 if test \$section = 1 ; then
13530 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
13532 cf_target=\$cf_subdir\${section}/\$cf_source
13536 cat >>$cf_edit_man <<CF_EOF
13537 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
13538 if test -z "\$cf_target" ; then
13539 echo '? missing rename for '\$cf_source
13540 cf_target="\$cf_source"
13542 cf_target="\$cf_subdir\${section}/\${cf_target}"
13547 cat >>$cf_edit_man <<CF_EOF
13548 sed -f $cf_man_alias \\
13551 if test -f $MANPAGE_RENAMES ; then
13552 cat >>$cf_edit_man <<CF_EOF
13553 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
13556 cat >>$cf_edit_man <<CF_EOF
13561 cat >>$cf_edit_man <<CF_EOF
13562 if test \$cf_tables = yes ; then
13563 tbl \$TMP >\$TMP.out
13568 if test $with_overwrite != yes ; then
13569 cat >>$cf_edit_man <<CF_EOF
13570 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
13575 if test $with_curses_h != yes ; then
13576 cat >>$cf_edit_man <<CF_EOF
13577 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
13582 cat >>$cf_edit_man <<CF_EOF
13583 if test \$form = format ; then
13584 nroff -man \$TMP >\$TMP.out
13589 if test -n "$cf_compress" ; then
13590 cat >>$cf_edit_man <<CF_EOF
13591 if test \$verb = installing ; then
13592 if ( $cf_compress -f \$TMP )
13594 mv \$TMP.$cf_so_strip \$TMP
13597 cf_target="\$cf_target.$cf_so_strip"
13601 case "$MANPAGE_FORMAT" in
13603 cat >>$cf_edit_man <<CF_EOF
13604 if test \$form = format ; then
13605 # BSDI installs only .0 suffixes in the cat directories
13606 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
13612 cat >>$cf_edit_man <<CF_EOF
13613 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
13614 if test \$verb = installing ; then
13615 echo \$verb \$cf_target
13616 \$INSTALL_DATA \$TMP \$cf_target
13617 test -d \$cf_subdir\${section} &&
13618 test -n "\$aliases" && (
13619 cd \$cf_subdir\${section} && (
13620 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
13621 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
13622 cf_target=\`basename \$cf_target\`
13623 for cf_alias in \$aliases
13625 if test \$section = 1 ; then
13626 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
13629 if test "$MANPAGE_SYMLINKS" = yes ; then
13630 if test -f \$cf_alias\${suffix} ; then
13631 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
13636 echo .. \$verb alias \$cf_alias\${suffix}
13640 cat >>$cf_edit_man <<CF_EOF
13641 $LN_S \$cf_target \$cf_alias\${suffix}
13645 cat >>$cf_edit_man <<CF_EOF
13646 rm -f \$cf_alias\${suffix}
13647 $LN_S \$cf_target \$cf_alias\${suffix}
13651 cat >>$cf_edit_man <<CF_EOF
13652 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
13653 echo ".so \$cf_source" >\$TMP
13655 if test -n "$cf_compress" ; then
13656 cat >>$cf_edit_man <<CF_EOF
13657 if test -n "$cf_so_strip" ; then
13658 $cf_compress -f \$TMP
13659 mv \$TMP.$cf_so_strip \$TMP
13663 cat >>$cf_edit_man <<CF_EOF
13664 echo .. \$verb alias \$cf_alias\${suffix}
13665 rm -f \$cf_alias\${suffix}
13666 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
13671 elif test \$verb = removing ; then
13672 test -f \$cf_target && (
13673 echo \$verb \$cf_target
13676 test -d \$cf_subdir\${section} &&
13677 test -n "\$aliases" && (
13678 cd \$cf_subdir\${section} && (
13679 for cf_alias in \$aliases
13681 if test \$section = 1 ; then
13682 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
13685 echo .. \$verb alias \$cf_alias\${suffix}
13686 rm -f \$cf_alias\${suffix}
13698 if test $cf_inboth = yes ; then
13699 if test \$form != format ; then
13700 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
13706 chmod 755 $cf_edit_man
13708 ###############################################################################
13710 ### Note that some functions (such as const) are normally disabled anyway.
13711 echo "$as_me:13711: checking if you want to build with function extensions" >&5
13712 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
13714 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
13715 if test "${enable_ext_funcs+set}" = set; then
13716 enableval="$enable_ext_funcs"
13717 with_ext_funcs=$enableval
13721 echo "$as_me:13721: result: $with_ext_funcs" >&5
13722 echo "${ECHO_T}$with_ext_funcs" >&6
13723 if test "x$with_ext_funcs" = xyes ; then
13724 NCURSES_EXT_FUNCS=1
13726 cat >>confdefs.h <<\EOF
13727 #define NCURSES_EXT_FUNCS 1
13730 cat >>confdefs.h <<\EOF
13731 #define HAVE_ASSUME_DEFAULT_COLORS 1
13734 cat >>confdefs.h <<\EOF
13735 #define HAVE_CURSES_VERSION 1
13738 cat >>confdefs.h <<\EOF
13739 #define HAVE_HAS_KEY 1
13742 cat >>confdefs.h <<\EOF
13743 #define HAVE_RESIZETERM 1
13746 cat >>confdefs.h <<\EOF
13747 #define HAVE_RESIZE_TERM 1
13750 cat >>confdefs.h <<\EOF
13751 #define HAVE_TERM_ENTRY_H 1
13754 cat >>confdefs.h <<\EOF
13755 #define HAVE_USE_DEFAULT_COLORS 1
13758 cat >>confdefs.h <<\EOF
13759 #define HAVE_USE_EXTENDED_NAMES 1
13762 cat >>confdefs.h <<\EOF
13763 #define HAVE_USE_SCREEN 1
13766 cat >>confdefs.h <<\EOF
13767 #define HAVE_USE_WINDOW 1
13770 cat >>confdefs.h <<\EOF
13771 #define HAVE_WRESIZE 1
13774 GENERATED_EXT_FUNCS=generated
13775 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
13777 NCURSES_EXT_FUNCS=0
13778 GENERATED_EXT_FUNCS=
13781 echo "$as_me:13781: checking if you want to build with SCREEN extensions" >&5
13782 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
13784 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
13785 if test "${enable_sp_funcs+set}" = set; then
13786 enableval="$enable_sp_funcs"
13787 with_sp_funcs=$enableval
13789 with_sp_funcs=$cf_dft_ext_spfuncs
13791 echo "$as_me:13791: result: $with_sp_funcs" >&5
13792 echo "${ECHO_T}$with_sp_funcs" >&6
13793 if test "x$with_sp_funcs" = xyes ; then
13796 cat >>confdefs.h <<\EOF
13797 #define NCURSES_SP_FUNCS 1
13800 cat >>confdefs.h <<\EOF
13801 #define HAVE_TPUTS_SP 1
13804 GENERATED_SP_FUNCS=generated
13807 GENERATED_SP_FUNCS=
13810 echo "$as_me:13810: checking if you want to build with terminal-driver" >&5
13811 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
13813 # Check whether --enable-term-driver or --disable-term-driver was given.
13814 if test "${enable_term_driver+set}" = set; then
13815 enableval="$enable_term_driver"
13816 with_term_driver=$enableval
13818 with_term_driver=no
13820 echo "$as_me:13820: result: $with_term_driver" >&5
13821 echo "${ECHO_T}$with_term_driver" >&6
13822 if test "x$with_term_driver" = xyes ; then
13824 cat >>confdefs.h <<\EOF
13825 #define USE_TERM_DRIVER 1
13828 if test "x$with_termlib" != xno ; then
13829 { { echo "$as_me:13829: error: The term-driver option conflicts with the termlib option" >&5
13830 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
13831 { (exit 1); exit 1; }; }
13833 if test "x$with_sp_funcs" != xyes ; then
13834 { { echo "$as_me:13834: error: The term-driver option relies upon sp-funcs" >&5
13835 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
13836 { (exit 1); exit 1; }; }
13840 ### use option --enable-const to turn on use of const beyond that in XSI.
13841 echo "$as_me:13841: checking for extended use of const keyword" >&5
13842 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
13844 # Check whether --enable-const or --disable-const was given.
13845 if test "${enable_const+set}" = set; then
13846 enableval="$enable_const"
13847 with_ext_const=$enableval
13849 with_ext_const=$cf_dft_ext_const
13851 echo "$as_me:13851: result: $with_ext_const" >&5
13852 echo "${ECHO_T}$with_ext_const" >&6
13853 NCURSES_CONST='/*nothing*/'
13854 if test "x$with_ext_const" = xyes ; then
13855 NCURSES_CONST=const
13858 ### use option --enable-ext-colors to turn on use of colors beyond 16.
13859 echo "$as_me:13859: checking if you want to use extended colors" >&5
13860 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
13862 # Check whether --enable-ext-colors or --disable-ext-colors was given.
13863 if test "${enable_ext_colors+set}" = set; then
13864 enableval="$enable_ext_colors"
13865 with_ext_colors=$enableval
13867 with_ext_colors=$cf_dft_ext_colors
13869 echo "$as_me:13869: result: $with_ext_colors" >&5
13870 echo "${ECHO_T}$with_ext_colors" >&6
13871 NCURSES_EXT_COLORS=0
13872 if test "x$with_ext_colors" = xyes ; then
13873 if test "x$with_widec" != xyes ; then
13874 { echo "$as_me:13874: WARNING: This option applies only to wide-character library" >&5
13875 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
13877 # cannot be ABI 5 since it changes sizeof(cchar_t)
13879 if test "${with_abi_version+set}" != set; then
13880 case $cf_cv_rel_version in
13882 cf_cv_rel_version=6.0
13883 cf_cv_abi_version=6
13884 { echo "$as_me:13884: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13885 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13890 NCURSES_EXT_COLORS=1
13892 cat >>confdefs.h <<\EOF
13893 #define NCURSES_EXT_COLORS 1
13896 cat >>confdefs.h <<\EOF
13897 #define HAVE_ALLOC_PAIR 1
13900 cat >>confdefs.h <<\EOF
13901 #define HAVE_INIT_EXTENDED_COLOR 1
13904 cat >>confdefs.h <<\EOF
13905 #define HAVE_RESET_COLOR_PAIRS 1
13911 ### use option --enable-ext-mouse to modify coding to support 5-button mice
13912 echo "$as_me:13912: checking if you want to use extended mouse encoding" >&5
13913 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
13915 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
13916 if test "${enable_ext_mouse+set}" = set; then
13917 enableval="$enable_ext_mouse"
13918 with_ext_mouse=$enableval
13920 with_ext_mouse=$cf_dft_ext_mouse
13922 echo "$as_me:13922: result: $with_ext_mouse" >&5
13923 echo "${ECHO_T}$with_ext_mouse" >&6
13924 NCURSES_MOUSE_VERSION=1
13925 if test "x$with_ext_mouse" = xyes ; then
13926 NCURSES_MOUSE_VERSION=2
13928 if test "${with_abi_version+set}" != set; then
13929 case $cf_cv_rel_version in
13931 cf_cv_rel_version=6.0
13932 cf_cv_abi_version=6
13933 { echo "$as_me:13933: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13934 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13941 ### use option --enable-ext-putwin to turn on extended screendumps
13942 echo "$as_me:13942: checking if you want to use extended putwin/screendump" >&5
13943 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
13945 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
13946 if test "${enable_ext_putwin+set}" = set; then
13947 enableval="$enable_ext_putwin"
13948 with_ext_putwin=$enableval
13950 with_ext_putwin=$cf_dft_ext_putwin
13952 echo "$as_me:13952: result: $with_ext_putwin" >&5
13953 echo "${ECHO_T}$with_ext_putwin" >&6
13954 if test "x$with_ext_putwin" = xyes ; then
13956 cat >>confdefs.h <<\EOF
13957 #define NCURSES_EXT_PUTWIN 1
13962 echo "$as_me:13962: checking if you want \$NCURSES_NO_PADDING code" >&5
13963 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
13965 # Check whether --enable-no-padding or --disable-no-padding was given.
13966 if test "${enable_no_padding+set}" = set; then
13967 enableval="$enable_no_padding"
13968 with_no_padding=$enableval
13970 with_no_padding=$with_ext_funcs
13972 echo "$as_me:13972: result: $with_no_padding" >&5
13973 echo "${ECHO_T}$with_no_padding" >&6
13974 test "x$with_no_padding" = xyes &&
13975 cat >>confdefs.h <<\EOF
13976 #define NCURSES_NO_PADDING 1
13979 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
13980 echo "$as_me:13980: checking if you want SIGWINCH handler" >&5
13981 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
13983 # Check whether --enable-sigwinch or --disable-sigwinch was given.
13984 if test "${enable_sigwinch+set}" = set; then
13985 enableval="$enable_sigwinch"
13986 with_sigwinch=$enableval
13988 with_sigwinch=$with_ext_funcs
13990 echo "$as_me:13990: result: $with_sigwinch" >&5
13991 echo "${ECHO_T}$with_sigwinch" >&6
13992 test "x$with_sigwinch" = xyes &&
13993 cat >>confdefs.h <<\EOF
13994 #define USE_SIGWINCH 1
13997 ### use option --enable-tcap-names to allow user to define new capabilities
13998 echo "$as_me:13998: checking if you want user-definable terminal capabilities like termcap" >&5
13999 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14001 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14002 if test "${enable_tcap_names+set}" = set; then
14003 enableval="$enable_tcap_names"
14004 with_tcap_names=$enableval
14006 with_tcap_names=$with_ext_funcs
14008 echo "$as_me:14008: result: $with_tcap_names" >&5
14009 echo "${ECHO_T}$with_tcap_names" >&6
14011 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14013 ##############################################################################
14015 echo "$as_me:14015: checking if you want to link with the pthread library" >&5
14016 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14018 # Check whether --with-pthread or --without-pthread was given.
14019 if test "${with_pthread+set}" = set; then
14020 withval="$with_pthread"
14021 with_pthread=$withval
14025 echo "$as_me:14025: result: $with_pthread" >&5
14026 echo "${ECHO_T}$with_pthread" >&6
14028 if test "$with_pthread" != no ; then
14029 echo "$as_me:14029: checking for pthread.h" >&5
14030 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14031 if test "${ac_cv_header_pthread_h+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14035 #line 14035 "configure"
14036 #include "confdefs.h"
14037 #include <pthread.h>
14039 if { (eval echo "$as_me:14039: \"$ac_cpp conftest.$ac_ext\"") >&5
14040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14042 egrep -v '^ *\+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit $ac_status); } >/dev/null; then
14047 if test -s conftest.err; then
14048 ac_cpp_err=$ac_c_preproc_warn_flag
14055 if test -z "$ac_cpp_err"; then
14056 ac_cv_header_pthread_h=yes
14058 echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 ac_cv_header_pthread_h=no
14062 rm -f conftest.err conftest.$ac_ext
14064 echo "$as_me:14064: result: $ac_cv_header_pthread_h" >&5
14065 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14066 if test $ac_cv_header_pthread_h = yes; then
14068 cat >>confdefs.h <<\EOF
14069 #define HAVE_PTHREADS_H 1
14072 for cf_lib_pthread in pthread c_r
14074 echo "$as_me:14074: checking if we can link with the $cf_lib_pthread library" >&5
14075 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14076 cf_save_LIBS="$LIBS"
14078 cf_add_libs="-l$cf_lib_pthread"
14079 # Filter out duplicates - this happens with badly-designed ".pc" files...
14080 for cf_add_1lib in $LIBS
14082 for cf_add_2lib in $cf_add_libs
14084 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14090 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14092 LIBS="$cf_add_libs"
14094 cat >conftest.$ac_ext <<_ACEOF
14095 #line 14095 "configure"
14096 #include "confdefs.h"
14098 #include <pthread.h>
14104 int rc = pthread_create(0,0,0,0);
14105 int r2 = pthread_mutexattr_settype(0, 0);
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:14112: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:14115: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:14118: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:14121: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14125 echo "$as_me: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14130 LIBS="$cf_save_LIBS"
14131 echo "$as_me:14131: result: $with_pthread" >&5
14132 echo "${ECHO_T}$with_pthread" >&6
14133 test "$with_pthread" = yes && break
14136 if test "$with_pthread" = yes ; then
14138 cf_add_libs="-l$cf_lib_pthread"
14139 # Filter out duplicates - this happens with badly-designed ".pc" files...
14140 for cf_add_1lib in $LIBS
14142 for cf_add_2lib in $cf_add_libs
14144 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14150 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14152 LIBS="$cf_add_libs"
14154 cat >>confdefs.h <<\EOF
14155 #define HAVE_LIBPTHREADS 1
14159 { { echo "$as_me:14159: error: Cannot link with pthread library" >&5
14160 echo "$as_me: error: Cannot link with pthread library" >&2;}
14161 { (exit 1); exit 1; }; }
14168 if test "x$with_pthread" != xno; then
14169 echo "$as_me:14169: checking for pthread_kill" >&5
14170 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
14171 if test "${ac_cv_func_pthread_kill+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14175 #line 14175 "configure"
14176 #include "confdefs.h"
14177 #define pthread_kill autoconf_temporary
14178 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14179 #undef pthread_kill
14185 /* We use char because int might match the return type of a gcc2
14186 builtin and then its argument prototype would still apply. */
14187 char pthread_kill (void);
14193 /* The GNU C library defines stubs for functions which it implements
14194 to always fail with ENOSYS. Some functions are actually named
14195 something starting with __ and the normal name is an alias. */
14196 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
14197 #error found stub for pthread_kill
14200 return pthread_kill ();
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (eval echo "$as_me:14206: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>&5
14209 echo "$as_me:14209: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:14212: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:14215: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_func_pthread_kill=yes
14219 echo "$as_me: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14221 ac_cv_func_pthread_kill=no
14223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14225 echo "$as_me:14225: result: $ac_cv_func_pthread_kill" >&5
14226 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
14227 if test $ac_cv_func_pthread_kill = yes; then
14229 echo "$as_me:14229: checking if you want to allow EINTR in wgetch with pthreads" >&5
14230 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
14232 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
14233 if test "${enable_pthreads_eintr+set}" = set; then
14234 enableval="$enable_pthreads_eintr"
14235 use_pthreads_eintr=$enableval
14237 use_pthreads_eintr=no
14239 echo "$as_me:14239: result: $use_pthreads_eintr" >&5
14240 echo "${ECHO_T}$use_pthreads_eintr" >&6
14241 if test "x$use_pthreads_eintr" = xyes ; then
14243 cat >>confdefs.h <<\EOF
14244 #define USE_PTHREADS_EINTR 1
14250 echo "$as_me:14250: checking if you want to use weak-symbols for pthreads" >&5
14251 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
14253 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
14254 if test "${enable_weak_symbols+set}" = set; then
14255 enableval="$enable_weak_symbols"
14256 use_weak_symbols=$enableval
14258 use_weak_symbols=no
14260 echo "$as_me:14260: result: $use_weak_symbols" >&5
14261 echo "${ECHO_T}$use_weak_symbols" >&6
14262 if test "x$use_weak_symbols" = xyes ; then
14264 echo "$as_me:14264: checking if $CC supports weak symbols" >&5
14265 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
14266 if test "${cf_cv_weak_symbols+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14279 #if defined(__GNUC__)
14280 # if defined __USE_ISOC99
14281 # define _cat_pragma(exp) _Pragma(#exp)
14282 # define _weak_pragma(exp) _cat_pragma(weak name)
14284 # define _weak_pragma(exp)
14286 # define _declare(name) __extension__ extern __typeof__(name) name
14287 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
14290 weak_symbol(fopen);
14296 rm -f conftest.$ac_objext
14297 if { (eval echo "$as_me:14297: \"$ac_compile\"") >&5
14298 (eval $ac_compile) 2>&5
14300 echo "$as_me:14300: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try='test -s conftest.$ac_objext'
14303 { (eval echo "$as_me:14303: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14306 echo "$as_me:14306: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 cf_cv_weak_symbols=yes
14310 echo "$as_me: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14312 cf_cv_weak_symbols=no
14314 rm -f conftest.$ac_objext conftest.$ac_ext
14317 echo "$as_me:14317: result: $cf_cv_weak_symbols" >&5
14318 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
14321 cf_cv_weak_symbols=no
14324 if test "x$cf_cv_weak_symbols" = xyes ; then
14326 cat >>confdefs.h <<\EOF
14327 #define USE_WEAK_SYMBOLS 1
14334 if test "x$with_pthread" = "xyes" ; then
14336 cat >>confdefs.h <<\EOF
14337 #define USE_PTHREADS 1
14340 enable_reentrant=yes
14341 if test "x$cf_cv_weak_symbols" = xyes ; then
14344 cf_add_libs="-lpthread"
14345 # Filter out duplicates - this happens with badly-designed ".pc" files...
14346 for cf_add_1lib in $PRIVATE_LIBS
14348 for cf_add_2lib in $cf_add_libs
14350 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14358 PRIVATE_LIBS="$cf_add_libs"
14363 # Reentrant code has to be opaque; there's little advantage to making ncurses
14364 # opaque outside of that, so there is no --enable-opaque option. We can use
14365 # this option without --with-pthreads, but this will be always set for
14367 echo "$as_me:14367: checking if you want reentrant code" >&5
14368 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
14370 # Check whether --enable-reentrant or --disable-reentrant was given.
14371 if test "${enable_reentrant+set}" = set; then
14372 enableval="$enable_reentrant"
14373 with_reentrant=$enableval
14377 echo "$as_me:14377: result: $with_reentrant" >&5
14378 echo "${ECHO_T}$with_reentrant" >&6
14379 if test "x$with_reentrant" = xyes ; then
14380 cf_cv_enable_reentrant=1
14381 cf_cv_enable_opaque="NCURSES_INTERNALS"
14383 if test "x$cf_cv_weak_symbols" = xyes ; then
14385 # remove pthread library from $LIBS
14386 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
14388 cf_add_libs="-lpthread"
14389 # Filter out duplicates - this happens with badly-designed ".pc" files...
14390 for cf_add_1lib in $TEST_LIBS
14392 for cf_add_2lib in $cf_add_libs
14394 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14400 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14402 TEST_LIBS="$cf_add_libs"
14404 cf_add_libs="-lpthread"
14405 # Filter out duplicates - this happens with badly-designed ".pc" files...
14406 for cf_add_1lib in $TEST_LIBS2
14408 for cf_add_2lib in $cf_add_libs
14410 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14416 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14418 TEST_LIBS2="$cf_add_libs"
14420 cf_add_libs="-lpthread"
14421 # Filter out duplicates - this happens with badly-designed ".pc" files...
14422 for cf_add_1lib in $PRIVATE_LIBS
14424 for cf_add_2lib in $cf_add_libs
14426 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14432 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14434 PRIVATE_LIBS="$cf_add_libs"
14437 # when not using weak symbols but with_reentrant,
14438 # add 't' to the library suffix on all platforms
14439 # except cygwin, where we only do that if ALSO
14440 # compiling with full thread support.
14442 (*cygwin* | *msys*)
14443 if test "$with_pthread" = "yes" ; then
14444 if test "x$disable_lib_suffixes" = "xno" ; then
14445 LIB_SUFFIX="t${LIB_SUFFIX}"
14449 if test "x$disable_lib_suffixes" = "xno" ; then
14450 LIB_SUFFIX="t${LIB_SUFFIX}"
14456 cat >>confdefs.h <<\EOF
14457 #define USE_REENTRANT 1
14460 if test "${with_abi_version+set}" != set; then
14461 case $cf_cv_rel_version in
14463 cf_cv_rel_version=6.0
14464 cf_cv_abi_version=6
14465 { echo "$as_me:14465: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14466 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14472 cf_cv_enable_reentrant=0
14473 cf_cv_enable_opaque="NCURSES_OPAQUE"
14474 NCURSES_SIZE_T=short
14477 echo "$as_me:14477: checking if you want opaque curses-library structures" >&5
14478 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
14480 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
14481 if test "${enable_opaque_curses+set}" = set; then
14482 enableval="$enable_opaque_curses"
14483 test "$enableval" != yes && enableval=no
14484 if test "$enableval" != "no" ; then
14485 enable_opaque_curses=yes
14488 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
14489 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
14495 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
14496 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
14499 echo "$as_me:14499: result: $enable_opaque_curses" >&5
14500 echo "${ECHO_T}$enable_opaque_curses" >&6
14502 test "$cf_cv_enable_reentrant" = 1 && \
14503 test "$enable_opaque_curses" = no && \
14504 { { echo "$as_me:14504: error: reentrant configuration requires opaque library" >&5
14505 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
14506 { (exit 1); exit 1; }; }
14508 echo "$as_me:14508: checking if you want opaque form-library structures" >&5
14509 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
14511 # Check whether --enable-opaque-form or --disable-opaque-form was given.
14512 if test "${enable_opaque_form+set}" = set; then
14513 enableval="$enable_opaque_form"
14514 enable_opaque_form=yes
14516 enable_opaque_form=no
14518 echo "$as_me:14518: result: $enable_opaque_form" >&5
14519 echo "${ECHO_T}$enable_opaque_form" >&6
14521 echo "$as_me:14521: checking if you want opaque menu-library structures" >&5
14522 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
14524 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
14525 if test "${enable_opaque_menu+set}" = set; then
14526 enableval="$enable_opaque_menu"
14527 enable_opaque_menu=yes
14529 enable_opaque_menu=no
14531 echo "$as_me:14531: result: $enable_opaque_menu" >&5
14532 echo "${ECHO_T}$enable_opaque_menu" >&6
14534 echo "$as_me:14534: checking if you want opaque panel-library structures" >&5
14535 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
14537 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
14538 if test "${enable_opaque_panel+set}" = set; then
14539 enableval="$enable_opaque_panel"
14540 enable_opaque_panel=yes
14542 enable_opaque_panel=no
14544 echo "$as_me:14544: result: $enable_opaque_panel" >&5
14545 echo "${ECHO_T}$enable_opaque_panel" >&6
14547 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
14548 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
14549 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
14550 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
14552 ### Allow using a different wrap-prefix
14553 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
14554 echo "$as_me:14554: checking for prefix used to wrap public variables" >&5
14555 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
14557 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
14558 if test "${with_wrap_prefix+set}" = set; then
14559 withval="$with_wrap_prefix"
14560 NCURSES_WRAP_PREFIX=$withval
14562 NCURSES_WRAP_PREFIX=_nc_
14564 echo "$as_me:14564: result: $NCURSES_WRAP_PREFIX" >&5
14565 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
14567 NCURSES_WRAP_PREFIX=_nc_
14570 cat >>confdefs.h <<EOF
14571 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
14574 ###############################################################################
14575 # These options are relatively safe to experiment with.
14577 echo "$as_me:14577: checking if you want all development code" >&5
14578 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
14580 # Check whether --with-develop or --without-develop was given.
14581 if test "${with_develop+set}" = set; then
14582 withval="$with_develop"
14583 with_develop=$withval
14587 echo "$as_me:14587: result: $with_develop" >&5
14588 echo "${ECHO_T}$with_develop" >&6
14590 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
14591 echo "$as_me:14591: checking if you want hard-tabs code" >&5
14592 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
14594 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
14595 if test "${enable_hard_tabs+set}" = set; then
14596 enableval="$enable_hard_tabs"
14599 enable_hard_tabs=$with_develop
14601 echo "$as_me:14601: result: $enable_hard_tabs" >&5
14602 echo "${ECHO_T}$enable_hard_tabs" >&6
14603 test "x$enable_hard_tabs" = xyes &&
14604 cat >>confdefs.h <<\EOF
14605 #define USE_HARD_TABS 1
14608 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
14609 echo "$as_me:14609: checking if you want limited support for xmc" >&5
14610 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
14612 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
14613 if test "${enable_xmc_glitch+set}" = set; then
14614 enableval="$enable_xmc_glitch"
14617 enable_xmc_glitch=$with_develop
14619 echo "$as_me:14619: result: $enable_xmc_glitch" >&5
14620 echo "${ECHO_T}$enable_xmc_glitch" >&6
14621 test "x$enable_xmc_glitch" = xyes &&
14622 cat >>confdefs.h <<\EOF
14623 #define USE_XMC_SUPPORT 1
14626 ###############################################################################
14627 # These are just experimental, probably should not be in a package:
14629 echo "$as_me:14629: checking if you do not want to assume colors are white-on-black" >&5
14630 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
14632 # Check whether --enable-assumed-color or --disable-assumed-color was given.
14633 if test "${enable_assumed_color+set}" = set; then
14634 enableval="$enable_assumed_color"
14635 with_assumed_color=$enableval
14637 with_assumed_color=yes
14639 echo "$as_me:14639: result: $with_assumed_color" >&5
14640 echo "${ECHO_T}$with_assumed_color" >&6
14641 test "x$with_assumed_color" = xyes &&
14642 cat >>confdefs.h <<\EOF
14643 #define USE_ASSUMED_COLOR 1
14646 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
14647 echo "$as_me:14647: checking if you want hashmap scrolling-optimization code" >&5
14648 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
14650 # Check whether --enable-hashmap or --disable-hashmap was given.
14651 if test "${enable_hashmap+set}" = set; then
14652 enableval="$enable_hashmap"
14653 with_hashmap=$enableval
14657 echo "$as_me:14657: result: $with_hashmap" >&5
14658 echo "${ECHO_T}$with_hashmap" >&6
14659 test "x$with_hashmap" = xyes &&
14660 cat >>confdefs.h <<\EOF
14661 #define USE_HASHMAP 1
14664 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
14665 echo "$as_me:14665: checking if you want colorfgbg code" >&5
14666 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
14668 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
14669 if test "${enable_colorfgbg+set}" = set; then
14670 enableval="$enable_colorfgbg"
14671 with_colorfgbg=$enableval
14675 echo "$as_me:14675: result: $with_colorfgbg" >&5
14676 echo "${ECHO_T}$with_colorfgbg" >&6
14677 test "x$with_colorfgbg" = xyes &&
14678 cat >>confdefs.h <<\EOF
14679 #define USE_COLORFGBG 1
14682 ### use option --enable-interop to turn on use of bindings used for interop
14683 echo "$as_me:14683: checking if you want interop bindings" >&5
14684 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
14686 # Check whether --enable-interop or --disable-interop was given.
14687 if test "${enable_interop+set}" = set; then
14688 enableval="$enable_interop"
14689 with_exp_interop=$enableval
14691 with_exp_interop=$cf_dft_interop
14693 echo "$as_me:14693: result: $with_exp_interop" >&5
14694 echo "${ECHO_T}$with_exp_interop" >&6
14696 NCURSES_INTEROP_FUNCS=0
14697 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
14699 echo "$as_me:14699: checking if you want experimental safe-sprintf code" >&5
14700 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
14702 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
14703 if test "${enable_safe_sprintf+set}" = set; then
14704 enableval="$enable_safe_sprintf"
14705 with_safe_sprintf=$enableval
14707 with_safe_sprintf=no
14709 echo "$as_me:14709: result: $with_safe_sprintf" >&5
14710 echo "${ECHO_T}$with_safe_sprintf" >&6
14712 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
14713 # when hashmap is used scroll hints are useless
14714 if test "$with_hashmap" = no ; then
14715 echo "$as_me:14715: checking if you want to experiment without scrolling-hints code" >&5
14716 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
14718 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
14719 if test "${enable_scroll_hints+set}" = set; then
14720 enableval="$enable_scroll_hints"
14721 with_scroll_hints=$enableval
14723 with_scroll_hints=yes
14725 echo "$as_me:14725: result: $with_scroll_hints" >&5
14726 echo "${ECHO_T}$with_scroll_hints" >&6
14727 test "x$with_scroll_hints" = xyes &&
14728 cat >>confdefs.h <<\EOF
14729 #define USE_SCROLL_HINTS 1
14734 echo "$as_me:14734: checking if you want wgetch-events code" >&5
14735 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
14737 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
14738 if test "${enable_wgetch_events+set}" = set; then
14739 enableval="$enable_wgetch_events"
14740 with_wgetch_events=$enableval
14742 with_wgetch_events=no
14744 echo "$as_me:14744: result: $with_wgetch_events" >&5
14745 echo "${ECHO_T}$with_wgetch_events" >&6
14746 test "x$with_wgetch_events" = xyes &&
14747 cat >>confdefs.h <<\EOF
14748 #define NCURSES_WGETCH_EVENTS 1
14751 ###############################################################################
14753 ### use option --disable-echo to suppress full display compiling commands
14755 echo "$as_me:14755: checking if you want to see long compiling messages" >&5
14756 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
14758 # Check whether --enable-echo or --disable-echo was given.
14759 if test "${enable_echo+set}" = set; then
14760 enableval="$enable_echo"
14761 test "$enableval" != no && enableval=yes
14762 if test "$enableval" != "yes" ; then
14765 ECHO_LD='@echo linking $@;'
14766 RULE_CC='@echo compiling $<'
14767 SHOW_CC='@echo compiling $@'
14789 echo "$as_me:14789: result: $enableval" >&5
14790 echo "${ECHO_T}$enableval" >&6
14792 if test "x$enable_echo" = xyes; then
14795 ECHO_LINK='@ echo linking $@ ... ;'
14796 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
14797 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
14800 # --disable-stripping is used for debugging
14802 echo "$as_me:14802: checking if you want to install stripped executables" >&5
14803 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
14805 # Check whether --enable-stripping or --disable-stripping was given.
14806 if test "${enable_stripping+set}" = set; then
14807 enableval="$enable_stripping"
14808 test "$enableval" != no && enableval=yes
14809 if test "$enableval" != "yes" ; then
14819 echo "$as_me:14819: result: $with_stripping" >&5
14820 echo "${ECHO_T}$with_stripping" >&6
14822 if test "$with_stripping" = yes
14829 : ${INSTALL:=install}
14830 echo "$as_me:14830: checking if install accepts -p option" >&5
14831 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
14832 if test "${cf_cv_install_p+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 if $INSTALL -p conftest.in conftest.out 2>/dev/null
14842 if test -f conftest.out/conftest.in
14844 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
14845 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
14846 if test -s conftest.err
14850 cf_cv_install_p=yes
14861 echo "$as_me:14861: result: $cf_cv_install_p" >&5
14862 echo "${ECHO_T}$cf_cv_install_p" >&6
14864 echo "$as_me:14864: checking if install needs to be told about ownership" >&5
14865 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
14866 case `$ac_config_guess` in
14875 echo "$as_me:14875: result: $with_install_o" >&5
14876 echo "${ECHO_T}$with_install_o" >&6
14877 if test "x$with_install_o" = xyes
14879 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'`
14884 # If we're avoiding relinking of shared libraries during install, that is to
14885 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
14886 # the install program has "-p" (for preserving timestamps).
14887 cf_cv_do_reranlib=yes
14888 if test "x$cf_cv_install_p" = xyes
14890 if test "x$cf_cv_do_relink" != xyes
14892 cf_cv_do_reranlib=no
14894 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
14898 ### use option --enable-warnings to turn on all gcc warnings
14899 echo "$as_me:14899: checking if you want to see compiler warnings" >&5
14900 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
14902 # Check whether --enable-warnings or --disable-warnings was given.
14903 if test "${enable_warnings+set}" = set; then
14904 enableval="$enable_warnings"
14905 with_warnings=$enableval
14907 echo "$as_me:14907: result: $with_warnings" >&5
14908 echo "${ECHO_T}$with_warnings" >&6
14910 if test "x$with_warnings" = "xyes"; then
14912 ADAFLAGS="$ADAFLAGS -gnatg"
14916 if test "$GCC" = yes ; then
14919 echo "$as_me:14919: checking if this is really Intel C compiler" >&5
14920 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
14921 cf_save_CFLAGS="$CFLAGS"
14922 CFLAGS="$CFLAGS -no-gcc"
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line 14924 "configure"
14925 #include "confdefs.h"
14931 #ifdef __INTEL_COMPILER
14940 rm -f conftest.$ac_objext
14941 if { (eval echo "$as_me:14941: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>&5
14944 echo "$as_me:14944: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:14947: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:14950: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14953 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
14956 echo "$as_me: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14959 rm -f conftest.$ac_objext conftest.$ac_ext
14960 CFLAGS="$cf_save_CFLAGS"
14961 echo "$as_me:14961: result: $INTEL_COMPILER" >&5
14962 echo "${ECHO_T}$INTEL_COMPILER" >&6
14969 if test "$GCC" = yes ; then
14970 echo "$as_me:14970: checking if this is really Clang C compiler" >&5
14971 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
14972 cf_save_CFLAGS="$CFLAGS"
14973 CFLAGS="$CFLAGS -Qunused-arguments"
14974 cat >conftest.$ac_ext <<_ACEOF
14975 #line 14975 "configure"
14976 #include "confdefs.h"
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:14992: \"$ac_compile\"") >&5
14993 (eval $ac_compile) 2>&5
14995 echo "$as_me:14995: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:14998: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:15001: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15004 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15007 echo "$as_me: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15010 rm -f conftest.$ac_objext conftest.$ac_ext
15011 CFLAGS="$cf_save_CFLAGS"
15012 echo "$as_me:15012: result: $CLANG_COMPILER" >&5
15013 echo "${ECHO_T}$CLANG_COMPILER" >&6
15016 cat > conftest.$ac_ext <<EOF
15017 #line 15017 "${as_me:-configure}"
15018 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15021 if test "$INTEL_COMPILER" = yes
15023 # The "-wdXXX" options suppress warnings:
15024 # remark #1419: external declaration in primary source file
15025 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15026 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15027 # remark #193: zero used for undefined preprocessing identifier
15028 # remark #593: variable "curs_sb_left_arrow" was set but never used
15029 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15030 # remark #869: parameter "tw" was never referenced
15031 # remark #981: operands are evaluated in unspecified order
15032 # warning #279: controlling expression is constant
15034 { echo "$as_me:15034: checking for $CC warning options..." >&5
15035 echo "$as_me: checking for $CC warning options..." >&6;}
15036 cf_save_CFLAGS="$CFLAGS"
15037 EXTRA_CFLAGS="-Wall"
15049 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15050 if { (eval echo "$as_me:15050: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>&5
15053 echo "$as_me:15053: \$? = $ac_status" >&5
15054 (exit $ac_status); }; then
15055 test -n "$verbose" && echo "$as_me:15055: result: ... -$cf_opt" >&5
15056 echo "${ECHO_T}... -$cf_opt" >&6
15057 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15060 CFLAGS="$cf_save_CFLAGS"
15062 elif test "$GCC" = yes
15064 { echo "$as_me:15064: checking for $CC warning options..." >&5
15065 echo "$as_me: checking for $CC warning options..." >&6;}
15066 cf_save_CFLAGS="$CFLAGS"
15069 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
15070 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
15071 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
15072 for cf_opt in W Wall \
15073 Wbad-function-cast \
15076 Wdeclaration-after-statement \
15079 Wmissing-declarations \
15080 Wmissing-prototypes \
15084 Wstrict-prototypes \
15085 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
15087 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15088 if { (eval echo "$as_me:15088: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15091 echo "$as_me:15091: \$? = $ac_status" >&5
15092 (exit $ac_status); }; then
15093 test -n "$verbose" && echo "$as_me:15093: result: ... -$cf_opt" >&5
15094 echo "${ECHO_T}... -$cf_opt" >&6
15098 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15099 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
15103 case $GCC_VERSION in
15105 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15107 echo "${as_me:-configure}:15107: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15113 case $GCC_VERSION in
15115 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15117 echo "${as_me:-configure}:15117: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15123 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15126 CFLAGS="$cf_save_CFLAGS"
15130 if test "x$cf_with_cxx" = xyes ; then
15134 if test "$GCC" = yes ; then
15137 echo "$as_me:15137: checking if this is really Intel C++ compiler" >&5
15138 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
15139 cf_save_CFLAGS="$CXXFLAGS"
15140 CXXFLAGS="$CXXFLAGS -no-gcc"
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line 15142 "configure"
15143 #include "confdefs.h"
15149 #ifdef __INTEL_COMPILER
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:15159: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>&5
15162 echo "$as_me:15162: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:15165: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:15168: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 INTEL_CPLUSPLUS=yes
15171 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
15174 echo "$as_me: failed program was:" >&5
15175 cat conftest.$ac_ext >&5
15177 rm -f conftest.$ac_objext conftest.$ac_ext
15178 CXXFLAGS="$cf_save_CFLAGS"
15179 echo "$as_me:15179: result: $INTEL_CPLUSPLUS" >&5
15180 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
15187 if test "$GCC" = yes ; then
15188 echo "$as_me:15188: checking if this is really Clang C++ compiler" >&5
15189 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
15190 cf_save_CFLAGS="$CXXFLAGS"
15191 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line 15193 "configure"
15194 #include "confdefs.h"
15209 rm -f conftest.$ac_objext
15210 if { (eval echo "$as_me:15210: \"$ac_compile\"") >&5
15211 (eval $ac_compile) 2>&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -s conftest.$ac_objext'
15216 { (eval echo "$as_me:15216: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15219 echo "$as_me:15219: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 CLANG_CPLUSPLUS=yes
15222 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15225 echo "$as_me: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15228 rm -f conftest.$ac_objext conftest.$ac_ext
15229 CXXFLAGS="$cf_save_CFLAGS"
15230 echo "$as_me:15230: result: $CLANG_CPLUSPLUS" >&5
15231 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
15235 ac_cpp='$CXXCPP $CPPFLAGS'
15236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15239 ac_main_return=return
15241 cat > conftest.$ac_ext <<EOF
15242 #line 15242 "configure"
15243 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15246 if test "$INTEL_CPLUSPLUS" = yes
15248 # The "-wdXXX" options suppress warnings:
15249 # remark #1419: external declaration in primary source file
15250 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15251 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15252 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15253 # remark #193: zero used for undefined preprocessing identifier
15254 # remark #593: variable "curs_sb_left_arrow" was set but never used
15255 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15256 # remark #869: parameter "tw" was never referenced
15257 # remark #981: operands are evaluated in unspecified order
15258 # warning #269: invalid format string conversion
15260 { echo "$as_me:15260: checking for $CC warning options..." >&5
15261 echo "$as_me: checking for $CC warning options..." >&6;}
15262 cf_save_CXXFLAGS="$CXXFLAGS"
15263 EXTRA_CXXFLAGS="-Wall"
15276 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
15277 if { (eval echo "$as_me:15277: \"$ac_compile\"") >&5
15278 (eval $ac_compile) 2>&5
15280 echo "$as_me:15280: \$? = $ac_status" >&5
15281 (exit $ac_status); }; then
15282 test -n "$verbose" && echo "$as_me:15282: result: ... -$cf_opt" >&5
15283 echo "${ECHO_T}... -$cf_opt" >&6
15284 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15287 CXXFLAGS="$cf_save_CXXFLAGS"
15289 elif test "$GXX" = yes
15291 { echo "$as_me:15291: checking for $CXX warning options..." >&5
15292 echo "$as_me: checking for $CXX warning options..." >&6;}
15293 cf_save_CXXFLAGS="$CXXFLAGS"
15294 EXTRA_CXXFLAGS="-W -Wall"
15295 cf_gxx_extra_warnings=""
15296 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
15297 case "$GCC_VERSION" in
15301 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
15308 Wignored-qualifiers \
15310 Woverloaded-virtual \
15318 Wundef $cf_gxx_extra_warnings Wno-unused
15320 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
15321 if { (eval echo "$as_me:15321: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>&5
15324 echo "$as_me:15324: \$? = $ac_status" >&5
15325 (exit $ac_status); }; then
15326 test -n "$verbose" && echo "$as_me:15326: result: ... -$cf_opt" >&5
15327 echo "${ECHO_T}... -$cf_opt" >&6
15328 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15330 test -n "$verbose" && echo "$as_me:15330: result: ... no -$cf_opt" >&5
15331 echo "${ECHO_T}... no -$cf_opt" >&6
15334 CXXFLAGS="$cf_save_CXXFLAGS"
15339 ac_cpp='$CPP $CPPFLAGS'
15340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15343 ac_main_return=return
15348 if test "$GCC" = yes
15350 cat > conftest.i <<EOF
15352 #define GCC_PRINTF 0
15355 #define GCC_SCANF 0
15357 #ifndef GCC_NORETURN
15358 #define GCC_NORETURN /* nothing */
15361 #define GCC_UNUSED /* nothing */
15364 if test "$GCC" = yes
15366 { echo "$as_me:15366: checking for $CC __attribute__ directives..." >&5
15367 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
15368 cat > conftest.$ac_ext <<EOF
15369 #line 15369 "${as_me:-configure}"
15370 #include "confdefs.h"
15371 #include "conftest.h"
15372 #include "conftest.i"
15374 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
15376 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
15379 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
15381 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
15383 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
15384 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
15385 extern void foo(void) GCC_NORETURN;
15386 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
15388 cf_printf_attribute=no
15389 cf_scanf_attribute=no
15390 for cf_attribute in scanf printf unused noreturn
15393 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15395 cf_directive="__attribute__(($cf_attribute))"
15396 echo "checking for $CC $cf_directive" 1>&5
15398 case $cf_attribute in
15400 cf_printf_attribute=yes
15401 cat >conftest.h <<EOF
15402 #define GCC_$cf_ATTRIBUTE 1
15406 cf_scanf_attribute=yes
15407 cat >conftest.h <<EOF
15408 #define GCC_$cf_ATTRIBUTE 1
15412 cat >conftest.h <<EOF
15413 #define GCC_$cf_ATTRIBUTE $cf_directive
15418 if { (eval echo "$as_me:15418: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>&5
15421 echo "$as_me:15421: \$? = $ac_status" >&5
15422 (exit $ac_status); }; then
15423 test -n "$verbose" && echo "$as_me:15423: result: ... $cf_attribute" >&5
15424 echo "${ECHO_T}... $cf_attribute" >&6
15425 cat conftest.h >>confdefs.h
15426 case $cf_attribute in
15429 cat >>confdefs.h <<EOF
15430 #define GCC_NORETURN $cf_directive
15435 cf_value='/* nothing */'
15436 if test "$cf_printf_attribute" != no ; then
15437 cf_value='__attribute__((format(printf,fmt,var)))'
15439 cat >>confdefs.h <<\EOF
15440 #define GCC_PRINTF 1
15445 cat >>confdefs.h <<EOF
15446 #define GCC_PRINTFLIKE(fmt,var) $cf_value
15451 cf_value='/* nothing */'
15452 if test "$cf_scanf_attribute" != no ; then
15453 cf_value='__attribute__((format(scanf,fmt,var)))'
15455 cat >>confdefs.h <<\EOF
15456 #define GCC_SCANF 1
15461 cat >>confdefs.h <<EOF
15462 #define GCC_SCANFLIKE(fmt,var) $cf_value
15468 cat >>confdefs.h <<EOF
15469 #define GCC_UNUSED $cf_directive
15477 fgrep define conftest.i >>confdefs.h
15482 echo "$as_me:15482: checking if you want to work around bogus compiler/loader warnings" >&5
15483 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
15485 # Check whether --enable-string-hacks or --disable-string-hacks was given.
15486 if test "${enable_string_hacks+set}" = set; then
15487 enableval="$enable_string_hacks"
15488 with_string_hacks=$enableval
15490 with_string_hacks=no
15492 echo "$as_me:15492: result: $with_string_hacks" >&5
15493 echo "${ECHO_T}$with_string_hacks" >&6
15495 if test "x$with_string_hacks" = "xyes"; then
15497 cat >>confdefs.h <<\EOF
15498 #define USE_STRING_HACKS 1
15501 { echo "$as_me:15501: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
15502 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
15503 echo "$as_me:15503: checking for strlcat" >&5
15504 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
15505 if test "${ac_cv_func_strlcat+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15509 #line 15509 "configure"
15510 #include "confdefs.h"
15511 #define strlcat autoconf_temporary
15512 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15519 /* We use char because int might match the return type of a gcc2
15520 builtin and then its argument prototype would still apply. */
15521 char strlcat (void);
15527 /* The GNU C library defines stubs for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined (__stub_strlcat) || defined (__stub___strlcat)
15531 #error found stub for strlcat
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:15540: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>&5
15543 echo "$as_me:15543: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -s conftest$ac_exeext'
15546 { (eval echo "$as_me:15546: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:15549: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_cv_func_strlcat=yes
15553 echo "$as_me: failed program was:" >&5
15554 cat conftest.$ac_ext >&5
15555 ac_cv_func_strlcat=no
15557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15559 echo "$as_me:15559: result: $ac_cv_func_strlcat" >&5
15560 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
15561 if test $ac_cv_func_strlcat = yes; then
15563 cat >>confdefs.h <<\EOF
15564 #define HAVE_STRLCAT 1
15569 echo "$as_me:15569: checking for strlcat in -lbsd" >&5
15570 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
15571 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 ac_check_lib_save_LIBS=$LIBS
15576 cat >conftest.$ac_ext <<_ACEOF
15577 #line 15577 "configure"
15578 #include "confdefs.h"
15580 /* Override any gcc2 internal prototype to avoid an error. */
15584 /* We use char because int might match the return type of a gcc2
15585 builtin and then its argument prototype would still apply. */
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (eval echo "$as_me:15596: \"$ac_link\"") >&5
15597 (eval $ac_link) 2>&5
15599 echo "$as_me:15599: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -s conftest$ac_exeext'
15602 { (eval echo "$as_me:15602: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15605 echo "$as_me:15605: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_cv_lib_bsd_strlcat=yes
15609 echo "$as_me: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 ac_cv_lib_bsd_strlcat=no
15613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15616 echo "$as_me:15616: result: $ac_cv_lib_bsd_strlcat" >&5
15617 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
15618 if test $ac_cv_lib_bsd_strlcat = yes; then
15620 cf_add_libs="-lbsd"
15621 # Filter out duplicates - this happens with badly-designed ".pc" files...
15622 for cf_add_1lib in $LIBS
15624 for cf_add_2lib in $cf_add_libs
15626 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15634 LIBS="$cf_add_libs"
15636 for ac_header in bsd/string.h
15638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15639 echo "$as_me:15639: checking for $ac_header" >&5
15640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line 15645 "configure"
15646 #include "confdefs.h"
15647 #include <$ac_header>
15649 if { (eval echo "$as_me:15649: \"$ac_cpp conftest.$ac_ext\"") >&5
15650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15652 egrep -v '^ *\+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:15655: \$? = $ac_status" >&5
15656 (exit $ac_status); } >/dev/null; then
15657 if test -s conftest.err; then
15658 ac_cpp_err=$ac_c_preproc_warn_flag
15665 if test -z "$ac_cpp_err"; then
15666 eval "$as_ac_Header=yes"
15668 echo "$as_me: failed program was:" >&5
15669 cat conftest.$ac_ext >&5
15670 eval "$as_ac_Header=no"
15672 rm -f conftest.err conftest.$ac_ext
15674 echo "$as_me:15674: result: `eval echo '${'$as_ac_Header'}'`" >&5
15675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15677 cat >>confdefs.h <<EOF
15678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15684 cat >>confdefs.h <<\EOF
15685 #define HAVE_STRLCAT 1
15692 for ac_func in strlcpy snprintf
15694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15695 echo "$as_me:15695: checking for $ac_func" >&5
15696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15697 if eval "test \"\${$as_ac_var+set}\" = set"; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15701 #line 15701 "configure"
15702 #include "confdefs.h"
15703 #define $ac_func autoconf_temporary
15704 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15711 /* We use char because int might match the return type of a gcc2
15712 builtin and then its argument prototype would still apply. */
15713 char $ac_func (void);
15719 /* The GNU C library defines stubs for functions which it implements
15720 to always fail with ENOSYS. Some functions are actually named
15721 something starting with __ and the normal name is an alias. */
15722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15723 #error found stub for $ac_func
15726 return $ac_func ();
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:15732: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15735 echo "$as_me:15735: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:15738: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:15741: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 eval "$as_ac_var=yes"
15745 echo "$as_me: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15747 eval "$as_ac_var=no"
15749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15751 echo "$as_me:15751: result: `eval echo '${'$as_ac_var'}'`" >&5
15752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15753 if test `eval echo '${'$as_ac_var'}'` = yes; then
15754 cat >>confdefs.h <<EOF
15755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15763 ### use option --enable-assertions to turn on generation of assertion code
15764 echo "$as_me:15764: checking if you want to enable runtime assertions" >&5
15765 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
15767 # Check whether --enable-assertions or --disable-assertions was given.
15768 if test "${enable_assertions+set}" = set; then
15769 enableval="$enable_assertions"
15770 with_assertions=$enableval
15774 echo "$as_me:15774: result: $with_assertions" >&5
15775 echo "${ECHO_T}$with_assertions" >&6
15778 if test "$with_assertions" = no
15780 CPPFLAGS="$CPPFLAGS -DNDEBUG"
15783 ADAFLAGS="$ADAFLAGS -gnata"
15788 ### use option --disable-leaks to suppress "permanent" leaks, for testing
15790 echo "$as_me:15790: checking if you want to use dmalloc for testing" >&5
15791 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
15793 # Check whether --with-dmalloc or --without-dmalloc was given.
15794 if test "${with_dmalloc+set}" = set; then
15795 withval="$with_dmalloc"
15797 cat >>confdefs.h <<EOF
15798 #define USE_DMALLOC 1
15801 : ${with_cflags:=-g}
15802 : ${with_no_leaks:=yes}
15807 echo "$as_me:15807: result: ${with_dmalloc:-no}" >&5
15808 echo "${ECHO_T}${with_dmalloc:-no}" >&6
15810 case .$with_cflags in
15820 cf_new_extra_cppflags=
15822 for cf_add_cflags in -g
15824 case $cf_fix_cppflags in
15826 case $cf_add_cflags in
15827 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15828 case $cf_add_cflags in
15830 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15832 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15833 && test -z "${cf_tst_cflags}" \
15834 && cf_fix_cppflags=yes
15836 if test $cf_fix_cppflags = yes ; then
15838 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15839 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15842 elif test "${cf_tst_cflags}" = "\"'" ; then
15844 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15845 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15851 case "$CPPFLAGS" in
15855 case $cf_add_cflags in
15857 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15859 CPPFLAGS=`echo "$CPPFLAGS" | \
15860 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15861 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15866 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15867 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15874 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15875 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15882 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15883 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15885 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15887 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15888 && test -z "${cf_tst_cflags}" \
15889 && cf_fix_cppflags=no
15894 if test -n "$cf_new_cflags" ; then
15896 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15897 CFLAGS="${CFLAGS}$cf_new_cflags"
15901 if test -n "$cf_new_cppflags" ; then
15903 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15904 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15908 if test -n "$cf_new_extra_cppflags" ; then
15910 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15911 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15920 if test "$with_dmalloc" = yes ; then
15921 echo "$as_me:15921: checking for dmalloc.h" >&5
15922 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
15923 if test "${ac_cv_header_dmalloc_h+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 cat >conftest.$ac_ext <<_ACEOF
15927 #line 15927 "configure"
15928 #include "confdefs.h"
15929 #include <dmalloc.h>
15931 if { (eval echo "$as_me:15931: \"$ac_cpp conftest.$ac_ext\"") >&5
15932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15934 egrep -v '^ *\+' conftest.er1 >conftest.err
15936 cat conftest.err >&5
15937 echo "$as_me:15937: \$? = $ac_status" >&5
15938 (exit $ac_status); } >/dev/null; then
15939 if test -s conftest.err; then
15940 ac_cpp_err=$ac_c_preproc_warn_flag
15947 if test -z "$ac_cpp_err"; then
15948 ac_cv_header_dmalloc_h=yes
15950 echo "$as_me: failed program was:" >&5
15951 cat conftest.$ac_ext >&5
15952 ac_cv_header_dmalloc_h=no
15954 rm -f conftest.err conftest.$ac_ext
15956 echo "$as_me:15956: result: $ac_cv_header_dmalloc_h" >&5
15957 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
15958 if test $ac_cv_header_dmalloc_h = yes; then
15960 echo "$as_me:15960: checking for dmalloc_debug in -ldmalloc" >&5
15961 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
15962 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 ac_check_lib_save_LIBS=$LIBS
15966 LIBS="-ldmalloc $LIBS"
15967 cat >conftest.$ac_ext <<_ACEOF
15968 #line 15968 "configure"
15969 #include "confdefs.h"
15971 /* Override any gcc2 internal prototype to avoid an error. */
15975 /* We use char because int might match the return type of a gcc2
15976 builtin and then its argument prototype would still apply. */
15977 char dmalloc_debug ();
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (eval echo "$as_me:15987: \"$ac_link\"") >&5
15988 (eval $ac_link) 2>&5
15990 echo "$as_me:15990: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:15993: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:15996: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_lib_dmalloc_dmalloc_debug=yes
16000 echo "$as_me: failed program was:" >&5
16001 cat conftest.$ac_ext >&5
16002 ac_cv_lib_dmalloc_dmalloc_debug=no
16004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16005 LIBS=$ac_check_lib_save_LIBS
16007 echo "$as_me:16007: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16008 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16009 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16010 cat >>confdefs.h <<EOF
16011 #define HAVE_LIBDMALLOC 1
16014 LIBS="-ldmalloc $LIBS"
16022 echo "$as_me:16022: checking if you want to use dbmalloc for testing" >&5
16023 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16025 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16026 if test "${with_dbmalloc+set}" = set; then
16027 withval="$with_dbmalloc"
16029 cat >>confdefs.h <<EOF
16030 #define USE_DBMALLOC 1
16033 : ${with_cflags:=-g}
16034 : ${with_no_leaks:=yes}
16039 echo "$as_me:16039: result: ${with_dbmalloc:-no}" >&5
16040 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16042 case .$with_cflags in
16052 cf_new_extra_cppflags=
16054 for cf_add_cflags in -g
16056 case $cf_fix_cppflags in
16058 case $cf_add_cflags in
16059 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16060 case $cf_add_cflags in
16062 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16064 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16065 && test -z "${cf_tst_cflags}" \
16066 && cf_fix_cppflags=yes
16068 if test $cf_fix_cppflags = yes ; then
16070 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16071 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16074 elif test "${cf_tst_cflags}" = "\"'" ; then
16076 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16077 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16083 case "$CPPFLAGS" in
16087 case $cf_add_cflags in
16089 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16091 CPPFLAGS=`echo "$CPPFLAGS" | \
16092 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16093 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16098 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16099 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16106 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16107 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16114 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16115 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16119 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16120 && test -z "${cf_tst_cflags}" \
16121 && cf_fix_cppflags=no
16126 if test -n "$cf_new_cflags" ; then
16128 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16129 CFLAGS="${CFLAGS}$cf_new_cflags"
16133 if test -n "$cf_new_cppflags" ; then
16135 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16136 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16140 if test -n "$cf_new_extra_cppflags" ; then
16142 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16143 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16152 if test "$with_dbmalloc" = yes ; then
16153 echo "$as_me:16153: checking for dbmalloc.h" >&5
16154 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16155 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 cat >conftest.$ac_ext <<_ACEOF
16159 #line 16159 "configure"
16160 #include "confdefs.h"
16161 #include <dbmalloc.h>
16163 if { (eval echo "$as_me:16163: \"$ac_cpp conftest.$ac_ext\"") >&5
16164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16166 egrep -v '^ *\+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:16169: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null; then
16171 if test -s conftest.err; then
16172 ac_cpp_err=$ac_c_preproc_warn_flag
16179 if test -z "$ac_cpp_err"; then
16180 ac_cv_header_dbmalloc_h=yes
16182 echo "$as_me: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16184 ac_cv_header_dbmalloc_h=no
16186 rm -f conftest.err conftest.$ac_ext
16188 echo "$as_me:16188: result: $ac_cv_header_dbmalloc_h" >&5
16189 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16190 if test $ac_cv_header_dbmalloc_h = yes; then
16192 echo "$as_me:16192: checking for debug_malloc in -ldbmalloc" >&5
16193 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16194 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 ac_check_lib_save_LIBS=$LIBS
16198 LIBS="-ldbmalloc $LIBS"
16199 cat >conftest.$ac_ext <<_ACEOF
16200 #line 16200 "configure"
16201 #include "confdefs.h"
16203 /* Override any gcc2 internal prototype to avoid an error. */
16207 /* We use char because int might match the return type of a gcc2
16208 builtin and then its argument prototype would still apply. */
16209 char debug_malloc ();
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (eval echo "$as_me:16219: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>&5
16222 echo "$as_me:16222: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -s conftest$ac_exeext'
16225 { (eval echo "$as_me:16225: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:16228: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_cv_lib_dbmalloc_debug_malloc=yes
16232 echo "$as_me: failed program was:" >&5
16233 cat conftest.$ac_ext >&5
16234 ac_cv_lib_dbmalloc_debug_malloc=no
16236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16237 LIBS=$ac_check_lib_save_LIBS
16239 echo "$as_me:16239: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16240 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16241 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16242 cat >>confdefs.h <<EOF
16243 #define HAVE_LIBDBMALLOC 1
16246 LIBS="-ldbmalloc $LIBS"
16254 echo "$as_me:16254: checking if you want to use valgrind for testing" >&5
16255 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
16257 # Check whether --with-valgrind or --without-valgrind was given.
16258 if test "${with_valgrind+set}" = set; then
16259 withval="$with_valgrind"
16261 cat >>confdefs.h <<EOF
16262 #define USE_VALGRIND 1
16265 : ${with_cflags:=-g}
16266 : ${with_no_leaks:=yes}
16271 echo "$as_me:16271: result: ${with_valgrind:-no}" >&5
16272 echo "${ECHO_T}${with_valgrind:-no}" >&6
16274 case .$with_cflags in
16284 cf_new_extra_cppflags=
16286 for cf_add_cflags in -g
16288 case $cf_fix_cppflags in
16290 case $cf_add_cflags in
16291 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16292 case $cf_add_cflags in
16294 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16296 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16297 && test -z "${cf_tst_cflags}" \
16298 && cf_fix_cppflags=yes
16300 if test $cf_fix_cppflags = yes ; then
16302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16303 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16306 elif test "${cf_tst_cflags}" = "\"'" ; then
16308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16315 case "$CPPFLAGS" in
16319 case $cf_add_cflags in
16321 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16323 CPPFLAGS=`echo "$CPPFLAGS" | \
16324 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16325 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16330 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16331 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16338 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16339 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16349 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16351 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16352 && test -z "${cf_tst_cflags}" \
16353 && cf_fix_cppflags=no
16358 if test -n "$cf_new_cflags" ; then
16360 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16361 CFLAGS="${CFLAGS}$cf_new_cflags"
16365 if test -n "$cf_new_cppflags" ; then
16367 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16368 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16372 if test -n "$cf_new_extra_cppflags" ; then
16374 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16375 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16384 echo "$as_me:16384: checking if you want to perform memory-leak testing" >&5
16385 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
16387 # Check whether --enable-leaks or --disable-leaks was given.
16388 if test "${enable_leaks+set}" = set; then
16389 enableval="$enable_leaks"
16390 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
16392 : ${with_no_leaks:=no}
16394 echo "$as_me:16394: result: $with_no_leaks" >&5
16395 echo "${ECHO_T}$with_no_leaks" >&6
16397 if test "$with_no_leaks" = yes ; then
16399 cat >>confdefs.h <<\EOF
16403 cat >>confdefs.h <<\EOF
16404 #define YY_NO_LEAKS 1
16409 cat >>confdefs.h <<\EOF
16410 #define HAVE_NC_ALLOC_H 1
16413 ### use option --enable-expanded to generate certain macros as functions
16415 # Check whether --enable-expanded or --disable-expanded was given.
16416 if test "${enable_expanded+set}" = set; then
16417 enableval="$enable_expanded"
16418 test "x$enableval" = xyes &&
16419 cat >>confdefs.h <<\EOF
16420 #define NCURSES_EXPANDED 1
16425 ### use option --disable-macros to suppress macros in favor of functions
16427 # Check whether --enable-macros or --disable-macros was given.
16428 if test "${enable_macros+set}" = set; then
16429 enableval="$enable_macros"
16430 test "$enableval" = no &&
16431 cat >>confdefs.h <<\EOF
16432 #define NCURSES_NOMACROS 1
16437 # Normally we only add trace() to the debug-library. Allow this to be
16438 # extended to all models of the ncurses library:
16440 case "$CFLAGS $CPPFLAGS" in
16446 echo "$as_me:16446: checking whether to add trace feature to all models" >&5
16447 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
16449 # Check whether --with-trace or --without-trace was given.
16450 if test "${with_trace+set}" = set; then
16451 withval="$with_trace"
16452 cf_with_trace=$withval
16454 cf_with_trace=$cf_all_traces
16456 echo "$as_me:16456: result: $cf_with_trace" >&5
16457 echo "${ECHO_T}$cf_with_trace" >&6
16459 if test "x$cf_with_trace" = xyes ; then
16466 cf_new_extra_cppflags=
16468 for cf_add_cflags in -DTRACE
16470 case $cf_fix_cppflags in
16472 case $cf_add_cflags in
16473 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16474 case $cf_add_cflags in
16476 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16478 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16479 && test -z "${cf_tst_cflags}" \
16480 && cf_fix_cppflags=yes
16482 if test $cf_fix_cppflags = yes ; then
16484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16488 elif test "${cf_tst_cflags}" = "\"'" ; then
16490 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16491 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16497 case "$CPPFLAGS" in
16501 case $cf_add_cflags in
16503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16505 CPPFLAGS=`echo "$CPPFLAGS" | \
16506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16512 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16513 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16520 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16521 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16531 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16533 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16534 && test -z "${cf_tst_cflags}" \
16535 && cf_fix_cppflags=no
16540 if test -n "$cf_new_cflags" ; then
16542 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16543 CFLAGS="${CFLAGS}$cf_new_cflags"
16547 if test -n "$cf_new_cppflags" ; then
16549 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16550 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16554 if test -n "$cf_new_extra_cppflags" ; then
16556 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16557 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16561 cat >>confdefs.h <<\EOF
16562 #define HAVE__TRACEF 1
16570 echo "$as_me:16570: checking if we want to use GNAT projects" >&5
16571 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
16573 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
16574 if test "${enable_gnat_projects+set}" = set; then
16575 enableval="$enable_gnat_projects"
16576 test "$enableval" != no && enableval=yes
16577 if test "$enableval" != "yes" ; then
16578 enable_gnat_projects=no
16580 enable_gnat_projects=yes
16584 enable_gnat_projects=yes
16587 echo "$as_me:16587: result: $enable_gnat_projects" >&5
16588 echo "${ECHO_T}$enable_gnat_projects" >&6
16590 ### Checks for libraries.
16591 case $cf_cv_system_name in
16592 (*mingw32*|*mingw64*)
16593 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
16594 LIBS=" -lpsapi $LIBS"
16597 echo "$as_me:16597: checking for gettimeofday" >&5
16598 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
16599 if test "${ac_cv_func_gettimeofday+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line 16603 "configure"
16604 #include "confdefs.h"
16605 #define gettimeofday autoconf_temporary
16606 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16607 #undef gettimeofday
16613 /* We use char because int might match the return type of a gcc2
16614 builtin and then its argument prototype would still apply. */
16615 char gettimeofday (void);
16621 /* The GNU C library defines stubs for functions which it implements
16622 to always fail with ENOSYS. Some functions are actually named
16623 something starting with __ and the normal name is an alias. */
16624 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
16625 #error found stub for gettimeofday
16628 return gettimeofday ();
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (eval echo "$as_me:16634: \"$ac_link\"") >&5
16635 (eval $ac_link) 2>&5
16637 echo "$as_me:16637: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -s conftest$ac_exeext'
16640 { (eval echo "$as_me:16640: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16643 echo "$as_me:16643: \$? = $ac_status" >&5
16644 (exit $ac_status); }; }; then
16645 ac_cv_func_gettimeofday=yes
16647 echo "$as_me: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 ac_cv_func_gettimeofday=no
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16653 echo "$as_me:16653: result: $ac_cv_func_gettimeofday" >&5
16654 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
16655 if test $ac_cv_func_gettimeofday = yes; then
16657 cat >>confdefs.h <<\EOF
16658 #define HAVE_GETTIMEOFDAY 1
16663 echo "$as_me:16663: checking for gettimeofday in -lbsd" >&5
16664 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
16665 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 ac_check_lib_save_LIBS=$LIBS
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line 16671 "configure"
16672 #include "confdefs.h"
16674 /* Override any gcc2 internal prototype to avoid an error. */
16678 /* We use char because int might match the return type of a gcc2
16679 builtin and then its argument prototype would still apply. */
16680 char gettimeofday ();
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (eval echo "$as_me:16690: \"$ac_link\"") >&5
16691 (eval $ac_link) 2>&5
16693 echo "$as_me:16693: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (eval echo "$as_me:16696: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:16699: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_lib_bsd_gettimeofday=yes
16703 echo "$as_me: failed program was:" >&5
16704 cat conftest.$ac_ext >&5
16705 ac_cv_lib_bsd_gettimeofday=no
16707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16708 LIBS=$ac_check_lib_save_LIBS
16710 echo "$as_me:16710: result: $ac_cv_lib_bsd_gettimeofday" >&5
16711 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
16712 if test $ac_cv_lib_bsd_gettimeofday = yes; then
16714 cat >>confdefs.h <<\EOF
16715 #define HAVE_GETTIMEOFDAY 1
16718 cf_add_libs="-lbsd"
16719 # Filter out duplicates - this happens with badly-designed ".pc" files...
16720 for cf_add_1lib in $LIBS
16722 for cf_add_2lib in $cf_add_libs
16724 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16730 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16732 LIBS="$cf_add_libs"
16740 echo "$as_me:16740: checking if -lm needed for math functions" >&5
16741 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
16742 if test "${cf_cv_need_libm+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16747 #line 16747 "configure"
16748 #include "confdefs.h"
16751 #include <stdlib.h>
16757 double x = rand(); printf("result = %g\n", pow(sin(x),x))
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (eval echo "$as_me:16763: \"$ac_link\"") >&5
16764 (eval $ac_link) 2>&5
16766 echo "$as_me:16766: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -s conftest$ac_exeext'
16769 { (eval echo "$as_me:16769: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16772 echo "$as_me:16772: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16776 echo "$as_me: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16778 cf_cv_need_libm=yes
16780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16782 echo "$as_me:16782: result: $cf_cv_need_libm" >&5
16783 echo "${ECHO_T}$cf_cv_need_libm" >&6
16784 if test "$cf_cv_need_libm" = yes
16789 ### Checks for header files.
16790 echo "$as_me:16790: checking for ANSI C header files" >&5
16791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16792 if test "${ac_cv_header_stdc+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 cat >conftest.$ac_ext <<_ACEOF
16796 #line 16796 "configure"
16797 #include "confdefs.h"
16798 #include <stdlib.h>
16799 #include <stdarg.h>
16800 #include <string.h>
16804 if { (eval echo "$as_me:16804: \"$ac_cpp conftest.$ac_ext\"") >&5
16805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16807 egrep -v '^ *\+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:16810: \$? = $ac_status" >&5
16811 (exit $ac_status); } >/dev/null; then
16812 if test -s conftest.err; then
16813 ac_cpp_err=$ac_c_preproc_warn_flag
16820 if test -z "$ac_cpp_err"; then
16821 ac_cv_header_stdc=yes
16823 echo "$as_me: failed program was:" >&5
16824 cat conftest.$ac_ext >&5
16825 ac_cv_header_stdc=no
16827 rm -f conftest.err conftest.$ac_ext
16829 if test $ac_cv_header_stdc = yes; then
16830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16831 cat >conftest.$ac_ext <<_ACEOF
16832 #line 16832 "configure"
16833 #include "confdefs.h"
16834 #include <string.h>
16837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16838 egrep "memchr" >/dev/null 2>&1; then
16841 ac_cv_header_stdc=no
16847 if test $ac_cv_header_stdc = yes; then
16848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16849 cat >conftest.$ac_ext <<_ACEOF
16850 #line 16850 "configure"
16851 #include "confdefs.h"
16852 #include <stdlib.h>
16855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16856 egrep "free" >/dev/null 2>&1; then
16859 ac_cv_header_stdc=no
16865 if test $ac_cv_header_stdc = yes; then
16866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16867 if test "$cross_compiling" = yes; then
16870 cat >conftest.$ac_ext <<_ACEOF
16871 #line 16871 "configure"
16872 #include "confdefs.h"
16874 #if ((' ' & 0x0FF) == 0x020)
16875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16878 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
16879 || ('j' <= (c) && (c) <= 'r') \
16880 || ('s' <= (c) && (c) <= 'z'))
16881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16889 for (i = 0; i < 256; i++)
16890 if (XOR (islower (i), ISLOWER (i))
16891 || toupper (i) != TOUPPER (i))
16892 $ac_main_return(2);
16893 $ac_main_return (0);
16896 rm -f conftest$ac_exeext
16897 if { (eval echo "$as_me:16897: \"$ac_link\"") >&5
16898 (eval $ac_link) 2>&5
16900 echo "$as_me:16900: \$? = $ac_status" >&5
16901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16902 { (eval echo "$as_me:16902: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:16905: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16909 echo "$as_me: program exited with status $ac_status" >&5
16910 echo "$as_me: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 ac_cv_header_stdc=no
16914 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16918 echo "$as_me:16918: result: $ac_cv_header_stdc" >&5
16919 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16920 if test $ac_cv_header_stdc = yes; then
16922 cat >>confdefs.h <<\EOF
16923 #define STDC_HEADERS 1
16928 ac_header_dirent=no
16929 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16930 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16931 echo "$as_me:16931: checking for $ac_hdr that defines DIR" >&5
16932 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 cat >conftest.$ac_ext <<_ACEOF
16937 #line 16937 "configure"
16938 #include "confdefs.h"
16939 #include <sys/types.h>
16951 rm -f conftest.$ac_objext
16952 if { (eval echo "$as_me:16952: \"$ac_compile\"") >&5
16953 (eval $ac_compile) 2>&5
16955 echo "$as_me:16955: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try='test -s conftest.$ac_objext'
16958 { (eval echo "$as_me:16958: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16961 echo "$as_me:16961: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 eval "$as_ac_Header=yes"
16965 echo "$as_me: failed program was:" >&5
16966 cat conftest.$ac_ext >&5
16967 eval "$as_ac_Header=no"
16969 rm -f conftest.$ac_objext conftest.$ac_ext
16971 echo "$as_me:16971: result: `eval echo '${'$as_ac_Header'}'`" >&5
16972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16974 cat >>confdefs.h <<EOF
16975 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16978 ac_header_dirent=$ac_hdr; break
16982 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16983 if test $ac_header_dirent = dirent.h; then
16984 echo "$as_me:16984: checking for opendir in -ldir" >&5
16985 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
16986 if test "${ac_cv_lib_dir_opendir+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 ac_check_lib_save_LIBS=$LIBS
16991 cat >conftest.$ac_ext <<_ACEOF
16992 #line 16992 "configure"
16993 #include "confdefs.h"
16995 /* Override any gcc2 internal prototype to avoid an error. */
16999 /* We use char because int might match the return type of a gcc2
17000 builtin and then its argument prototype would still apply. */
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (eval echo "$as_me:17011: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>&5
17014 echo "$as_me:17014: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -s conftest$ac_exeext'
17017 { (eval echo "$as_me:17017: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:17020: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_lib_dir_opendir=yes
17024 echo "$as_me: failed program was:" >&5
17025 cat conftest.$ac_ext >&5
17026 ac_cv_lib_dir_opendir=no
17028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17031 echo "$as_me:17031: result: $ac_cv_lib_dir_opendir" >&5
17032 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
17033 if test $ac_cv_lib_dir_opendir = yes; then
17038 echo "$as_me:17038: checking for opendir in -lx" >&5
17039 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
17040 if test "${ac_cv_lib_x_opendir+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 ac_check_lib_save_LIBS=$LIBS
17045 cat >conftest.$ac_ext <<_ACEOF
17046 #line 17046 "configure"
17047 #include "confdefs.h"
17049 /* Override any gcc2 internal prototype to avoid an error. */
17053 /* We use char because int might match the return type of a gcc2
17054 builtin and then its argument prototype would still apply. */
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (eval echo "$as_me:17065: \"$ac_link\"") >&5
17066 (eval $ac_link) 2>&5
17068 echo "$as_me:17068: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (eval echo "$as_me:17071: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17074 echo "$as_me:17074: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 ac_cv_lib_x_opendir=yes
17078 echo "$as_me: failed program was:" >&5
17079 cat conftest.$ac_ext >&5
17080 ac_cv_lib_x_opendir=no
17082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17083 LIBS=$ac_check_lib_save_LIBS
17085 echo "$as_me:17085: result: $ac_cv_lib_x_opendir" >&5
17086 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
17087 if test $ac_cv_lib_x_opendir = yes; then
17093 echo "$as_me:17093: checking whether time.h and sys/time.h may both be included" >&5
17094 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17095 if test "${ac_cv_header_time+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 cat >conftest.$ac_ext <<_ACEOF
17099 #line 17099 "configure"
17100 #include "confdefs.h"
17101 #include <sys/types.h>
17102 #include <sys/time.h>
17108 if ((struct tm *) 0)
17114 rm -f conftest.$ac_objext
17115 if { (eval echo "$as_me:17115: \"$ac_compile\"") >&5
17116 (eval $ac_compile) 2>&5
17118 echo "$as_me:17118: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -s conftest.$ac_objext'
17121 { (eval echo "$as_me:17121: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:17124: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_header_time=yes
17128 echo "$as_me: failed program was:" >&5
17129 cat conftest.$ac_ext >&5
17130 ac_cv_header_time=no
17132 rm -f conftest.$ac_objext conftest.$ac_ext
17134 echo "$as_me:17134: result: $ac_cv_header_time" >&5
17135 echo "${ECHO_T}$ac_cv_header_time" >&6
17136 if test $ac_cv_header_time = yes; then
17138 cat >>confdefs.h <<\EOF
17139 #define TIME_WITH_SYS_TIME 1
17146 cf_regex_libs="regex re"
17149 cf_regex_libs="gnurx $cf_regex_libs"
17153 echo "$as_me:17153: checking for regcomp" >&5
17154 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
17155 if test "${ac_cv_func_regcomp+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 cat >conftest.$ac_ext <<_ACEOF
17159 #line 17159 "configure"
17160 #include "confdefs.h"
17161 #define regcomp autoconf_temporary
17162 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17169 /* We use char because int might match the return type of a gcc2
17170 builtin and then its argument prototype would still apply. */
17171 char regcomp (void);
17177 /* The GNU C library defines stubs for functions which it implements
17178 to always fail with ENOSYS. Some functions are actually named
17179 something starting with __ and the normal name is an alias. */
17180 #if defined (__stub_regcomp) || defined (__stub___regcomp)
17181 #error found stub for regcomp
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:17190: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -s conftest$ac_exeext'
17196 { (eval echo "$as_me:17196: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:17199: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 ac_cv_func_regcomp=yes
17203 echo "$as_me: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17205 ac_cv_func_regcomp=no
17207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17209 echo "$as_me:17209: result: $ac_cv_func_regcomp" >&5
17210 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
17211 if test $ac_cv_func_regcomp = yes; then
17212 cf_regex_func=regcomp
17215 for cf_regex_lib in $cf_regex_libs
17217 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
17218 echo "$as_me:17218: checking for regcomp in -l$cf_regex_lib" >&5
17219 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
17220 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 ac_check_lib_save_LIBS=$LIBS
17224 LIBS="-l$cf_regex_lib $LIBS"
17225 cat >conftest.$ac_ext <<_ACEOF
17226 #line 17226 "configure"
17227 #include "confdefs.h"
17229 /* Override any gcc2 internal prototype to avoid an error. */
17233 /* We use char because int might match the return type of a gcc2
17234 builtin and then its argument prototype would still apply. */
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (eval echo "$as_me:17245: \"$ac_link\"") >&5
17246 (eval $ac_link) 2>&5
17248 echo "$as_me:17248: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:17251: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:17254: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 eval "$as_ac_Lib=yes"
17258 echo "$as_me: failed program was:" >&5
17259 cat conftest.$ac_ext >&5
17260 eval "$as_ac_Lib=no"
17262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17265 echo "$as_me:17265: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17266 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17267 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17269 cf_add_libs="-l$cf_regex_lib"
17270 # Filter out duplicates - this happens with badly-designed ".pc" files...
17271 for cf_add_1lib in $LIBS
17273 for cf_add_2lib in $cf_add_libs
17275 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17281 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17283 LIBS="$cf_add_libs"
17285 cf_regex_func=regcomp
17293 if test "$cf_regex_func" = no ; then
17294 echo "$as_me:17294: checking for compile" >&5
17295 echo $ECHO_N "checking for compile... $ECHO_C" >&6
17296 if test "${ac_cv_func_compile+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line 17300 "configure"
17301 #include "confdefs.h"
17302 #define compile autoconf_temporary
17303 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17310 /* We use char because int might match the return type of a gcc2
17311 builtin and then its argument prototype would still apply. */
17312 char compile (void);
17318 /* The GNU C library defines stubs for functions which it implements
17319 to always fail with ENOSYS. Some functions are actually named
17320 something starting with __ and the normal name is an alias. */
17321 #if defined (__stub_compile) || defined (__stub___compile)
17322 #error found stub for compile
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (eval echo "$as_me:17331: \"$ac_link\"") >&5
17332 (eval $ac_link) 2>&5
17334 echo "$as_me:17334: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -s conftest$ac_exeext'
17337 { (eval echo "$as_me:17337: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17340 echo "$as_me:17340: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 ac_cv_func_compile=yes
17344 echo "$as_me: failed program was:" >&5
17345 cat conftest.$ac_ext >&5
17346 ac_cv_func_compile=no
17348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17350 echo "$as_me:17350: result: $ac_cv_func_compile" >&5
17351 echo "${ECHO_T}$ac_cv_func_compile" >&6
17352 if test $ac_cv_func_compile = yes; then
17353 cf_regex_func=compile
17356 echo "$as_me:17356: checking for compile in -lgen" >&5
17357 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
17358 if test "${ac_cv_lib_gen_compile+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 ac_check_lib_save_LIBS=$LIBS
17363 cat >conftest.$ac_ext <<_ACEOF
17364 #line 17364 "configure"
17365 #include "confdefs.h"
17367 /* Override any gcc2 internal prototype to avoid an error. */
17371 /* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (eval echo "$as_me:17383: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>&5
17386 echo "$as_me:17386: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -s conftest$ac_exeext'
17389 { (eval echo "$as_me:17389: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17392 echo "$as_me:17392: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 ac_cv_lib_gen_compile=yes
17396 echo "$as_me: failed program was:" >&5
17397 cat conftest.$ac_ext >&5
17398 ac_cv_lib_gen_compile=no
17400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17403 echo "$as_me:17403: result: $ac_cv_lib_gen_compile" >&5
17404 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
17405 if test $ac_cv_lib_gen_compile = yes; then
17407 cf_add_libs="-lgen"
17408 # Filter out duplicates - this happens with badly-designed ".pc" files...
17409 for cf_add_1lib in $LIBS
17411 for cf_add_2lib in $cf_add_libs
17413 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17419 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17421 LIBS="$cf_add_libs"
17423 cf_regex_func=compile
17430 if test "$cf_regex_func" = no ; then
17431 { echo "$as_me:17431: WARNING: cannot find regular expression library" >&5
17432 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
17435 echo "$as_me:17435: checking for regular-expression headers" >&5
17436 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
17437 if test "${cf_cv_regex_hdrs+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 cf_cv_regex_hdrs=no
17442 case $cf_regex_func in
17444 for cf_regex_hdr in regexp.h regexpr.h
17446 cat >conftest.$ac_ext <<_ACEOF
17447 #line 17447 "configure"
17448 #include "confdefs.h"
17449 #include <$cf_regex_hdr>
17454 char *p = compile("", "", "", 0);
17455 int x = step("", "");
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:17462: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>&5
17465 echo "$as_me:17465: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -s conftest$ac_exeext'
17468 { (eval echo "$as_me:17468: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:17471: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17474 cf_cv_regex_hdrs=$cf_regex_hdr
17478 echo "$as_me: failed program was:" >&5
17479 cat conftest.$ac_ext >&5
17481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17485 for cf_regex_hdr in regex.h
17487 cat >conftest.$ac_ext <<_ACEOF
17488 #line 17488 "configure"
17489 #include "confdefs.h"
17490 #include <sys/types.h>
17491 #include <$cf_regex_hdr>
17497 int x = regcomp(p, "", 0);
17498 int y = regexec(p, "", 0, 0, 0);
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (eval echo "$as_me:17506: \"$ac_link\"") >&5
17507 (eval $ac_link) 2>&5
17509 echo "$as_me:17509: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (eval echo "$as_me:17512: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17515 echo "$as_me:17515: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17518 cf_cv_regex_hdrs=$cf_regex_hdr
17522 echo "$as_me: failed program was:" >&5
17523 cat conftest.$ac_ext >&5
17525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17531 echo "$as_me:17531: result: $cf_cv_regex_hdrs" >&5
17532 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
17534 case $cf_cv_regex_hdrs in
17535 (no) { echo "$as_me:17535: WARNING: no regular expression header found" >&5
17536 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
17538 cat >>confdefs.h <<\EOF
17539 #define HAVE_REGEX_H_FUNCS 1
17543 cat >>confdefs.h <<\EOF
17544 #define HAVE_REGEXP_H_FUNCS 1
17548 cat >>confdefs.h <<\EOF
17549 #define HAVE_REGEXPR_H_FUNCS 1
17573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17574 echo "$as_me:17574: checking for $ac_header" >&5
17575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 cat >conftest.$ac_ext <<_ACEOF
17580 #line 17580 "configure"
17581 #include "confdefs.h"
17582 #include <$ac_header>
17584 if { (eval echo "$as_me:17584: \"$ac_cpp conftest.$ac_ext\"") >&5
17585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17587 egrep -v '^ *\+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:17590: \$? = $ac_status" >&5
17591 (exit $ac_status); } >/dev/null; then
17592 if test -s conftest.err; then
17593 ac_cpp_err=$ac_c_preproc_warn_flag
17600 if test -z "$ac_cpp_err"; then
17601 eval "$as_ac_Header=yes"
17603 echo "$as_me: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 eval "$as_ac_Header=no"
17607 rm -f conftest.err conftest.$ac_ext
17609 echo "$as_me:17609: result: `eval echo '${'$as_ac_Header'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17612 cat >>confdefs.h <<EOF
17613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17619 for ac_header in unistd.h getopt.h
17621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17622 echo "$as_me:17622: checking for $ac_header" >&5
17623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 cat >conftest.$ac_ext <<_ACEOF
17628 #line 17628 "configure"
17629 #include "confdefs.h"
17630 #include <$ac_header>
17632 if { (eval echo "$as_me:17632: \"$ac_cpp conftest.$ac_ext\"") >&5
17633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17635 egrep -v '^ *\+' conftest.er1 >conftest.err
17637 cat conftest.err >&5
17638 echo "$as_me:17638: \$? = $ac_status" >&5
17639 (exit $ac_status); } >/dev/null; then
17640 if test -s conftest.err; then
17641 ac_cpp_err=$ac_c_preproc_warn_flag
17648 if test -z "$ac_cpp_err"; then
17649 eval "$as_ac_Header=yes"
17651 echo "$as_me: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17653 eval "$as_ac_Header=no"
17655 rm -f conftest.err conftest.$ac_ext
17657 echo "$as_me:17657: result: `eval echo '${'$as_ac_Header'}'`" >&5
17658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17660 cat >>confdefs.h <<EOF
17661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17667 echo "$as_me:17667: checking for header declaring getopt variables" >&5
17668 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
17669 if test "${cf_cv_getopt_header+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 cf_cv_getopt_header=none
17674 for cf_header in stdio.h stdlib.h unistd.h getopt.h
17676 cat >conftest.$ac_ext <<_ACEOF
17677 #line 17677 "configure"
17678 #include "confdefs.h"
17680 #include <$cf_header>
17684 int x = optind; char *y = optarg
17689 rm -f conftest.$ac_objext
17690 if { (eval echo "$as_me:17690: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>&5
17693 echo "$as_me:17693: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:17696: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:17699: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 cf_cv_getopt_header=$cf_header
17704 echo "$as_me: failed program was:" >&5
17705 cat conftest.$ac_ext >&5
17707 rm -f conftest.$ac_objext conftest.$ac_ext
17711 echo "$as_me:17711: result: $cf_cv_getopt_header" >&5
17712 echo "${ECHO_T}$cf_cv_getopt_header" >&6
17713 if test $cf_cv_getopt_header != none ; then
17715 cat >>confdefs.h <<\EOF
17716 #define HAVE_GETOPT_HEADER 1
17720 if test $cf_cv_getopt_header = getopt.h ; then
17722 cat >>confdefs.h <<\EOF
17723 #define NEED_GETOPT_H 1
17728 # check for ISC (this may also define _POSIX_SOURCE)
17729 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
17730 if test "x$ISC" = xyes ; then
17732 echo "$as_me:17732: checking for main in -lcposix" >&5
17733 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
17734 if test "${ac_cv_lib_cposix_main+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 ac_check_lib_save_LIBS=$LIBS
17738 LIBS="-lcposix $LIBS"
17739 cat >conftest.$ac_ext <<_ACEOF
17740 #line 17740 "configure"
17741 #include "confdefs.h"
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (eval echo "$as_me:17752: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>&5
17755 echo "$as_me:17755: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -s conftest$ac_exeext'
17758 { (eval echo "$as_me:17758: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17761 echo "$as_me:17761: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_lib_cposix_main=yes
17765 echo "$as_me: failed program was:" >&5
17766 cat conftest.$ac_ext >&5
17767 ac_cv_lib_cposix_main=no
17769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17770 LIBS=$ac_check_lib_save_LIBS
17772 echo "$as_me:17772: result: $ac_cv_lib_cposix_main" >&5
17773 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
17774 if test $ac_cv_lib_cposix_main = yes; then
17775 cat >>confdefs.h <<EOF
17776 #define HAVE_LIBCPOSIX 1
17779 LIBS="-lcposix $LIBS"
17783 echo "$as_me:17783: checking for bzero in -linet" >&5
17784 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
17785 if test "${ac_cv_lib_inet_bzero+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 ac_check_lib_save_LIBS=$LIBS
17789 LIBS="-linet $LIBS"
17790 cat >conftest.$ac_ext <<_ACEOF
17791 #line 17791 "configure"
17792 #include "confdefs.h"
17794 /* Override any gcc2 internal prototype to avoid an error. */
17798 /* We use char because int might match the return type of a gcc2
17799 builtin and then its argument prototype would still apply. */
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:17810: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>&5
17813 echo "$as_me:17813: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (eval echo "$as_me:17816: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:17819: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_lib_inet_bzero=yes
17823 echo "$as_me: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17825 ac_cv_lib_inet_bzero=no
17827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17828 LIBS=$ac_check_lib_save_LIBS
17830 echo "$as_me:17830: result: $ac_cv_lib_inet_bzero" >&5
17831 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
17832 if test $ac_cv_lib_inet_bzero = yes; then
17834 cf_add_libs="-linet"
17835 # Filter out duplicates - this happens with badly-designed ".pc" files...
17836 for cf_add_1lib in $LIBS
17838 for cf_add_2lib in $cf_add_libs
17840 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17846 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17848 LIBS="$cf_add_libs"
17853 echo "$as_me:17853: checking if sys/time.h works with sys/select.h" >&5
17854 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
17855 if test "${cf_cv_sys_time_select+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line 17860 "configure"
17861 #include "confdefs.h"
17863 #include <sys/types.h>
17864 #ifdef HAVE_SYS_TIME_H
17865 #include <sys/time.h>
17867 #ifdef HAVE_SYS_SELECT_H
17868 #include <sys/select.h>
17879 rm -f conftest.$ac_objext
17880 if { (eval echo "$as_me:17880: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>&5
17883 echo "$as_me:17883: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -s conftest.$ac_objext'
17886 { (eval echo "$as_me:17886: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:17889: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 cf_cv_sys_time_select=yes
17893 echo "$as_me: failed program was:" >&5
17894 cat conftest.$ac_ext >&5
17895 cf_cv_sys_time_select=no
17897 rm -f conftest.$ac_objext conftest.$ac_ext
17901 echo "$as_me:17901: result: $cf_cv_sys_time_select" >&5
17902 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
17903 test "$cf_cv_sys_time_select" = yes &&
17904 cat >>confdefs.h <<\EOF
17905 #define HAVE_SYS_TIME_SELECT 1
17908 ### checks for compiler characteristics
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914 ac_main_return=return
17916 echo "$as_me:17916: checking for an ANSI C-conforming const" >&5
17917 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17918 if test "${ac_cv_c_const+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 cat >conftest.$ac_ext <<_ACEOF
17922 #line 17922 "configure"
17923 #include "confdefs.h"
17928 /* FIXME: Include the comments suggested by Paul. */
17929 #ifndef __cplusplus
17930 /* Ultrix mips cc rejects this. */
17931 typedef int charset[2];
17933 /* SunOS 4.1.1 cc rejects this. */
17934 char const *const *ccp;
17936 /* NEC SVR4.0.2 mips cc rejects this. */
17937 struct point {int x, y;};
17938 static struct point const zero = {0,0};
17939 /* AIX XL C 1.02.0.0 rejects this.
17940 It does not let you subtract one const X* pointer from another in
17941 an arm of an if-expression whose if-part is not a constant
17943 const char *g = "string";
17944 ccp = &g + (g ? g-g : 0);
17945 /* HPUX 7.0 cc rejects these. */
17948 ccp = (char const *const *) p;
17949 { /* SCO 3.2v4 cc rejects this. */
17951 char const *s = 0 ? (char *) 0 : (char const *) 0;
17955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17956 int x[] = {25, 17};
17957 const int *foo = &x[0];
17960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17961 typedef const int *iptr;
17965 { /* AIX XL C 1.02.0.0 rejects this saying
17966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17967 struct s { int j; const int *ap[3]; };
17968 struct s *b; b->j = 5;
17970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17971 const int foo = 10;
17979 rm -f conftest.$ac_objext
17980 if { (eval echo "$as_me:17980: \"$ac_compile\"") >&5
17981 (eval $ac_compile) 2>&5
17983 echo "$as_me:17983: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:17986: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:17989: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17993 echo "$as_me: failed program was:" >&5
17994 cat conftest.$ac_ext >&5
17997 rm -f conftest.$ac_objext conftest.$ac_ext
17999 echo "$as_me:17999: result: $ac_cv_c_const" >&5
18000 echo "${ECHO_T}$ac_cv_c_const" >&6
18001 if test $ac_cv_c_const = no; then
18003 cat >>confdefs.h <<\EOF
18009 echo "$as_me:18009: checking for inline" >&5
18010 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18011 if test "${ac_cv_c_inline+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 for ac_kw in inline __inline__ __inline; do
18016 cat >conftest.$ac_ext <<_ACEOF
18017 #line 18017 "configure"
18018 #include "confdefs.h"
18019 #ifndef __cplusplus
18020 static $ac_kw int static_foo () {return 0; }
18021 $ac_kw int foo () {return 0; }
18025 rm -f conftest.$ac_objext
18026 if { (eval echo "$as_me:18026: \"$ac_compile\"") >&5
18027 (eval $ac_compile) 2>&5
18029 echo "$as_me:18029: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:18032: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:18035: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_c_inline=$ac_kw; break
18039 echo "$as_me: failed program was:" >&5
18040 cat conftest.$ac_ext >&5
18042 rm -f conftest.$ac_objext conftest.$ac_ext
18046 echo "$as_me:18046: result: $ac_cv_c_inline" >&5
18047 echo "${ECHO_T}$ac_cv_c_inline" >&6
18048 case $ac_cv_c_inline in
18051 cat >>confdefs.h <<\EOF
18055 *) cat >>confdefs.h <<EOF
18056 #define inline $ac_cv_c_inline
18062 if test "$ac_cv_c_inline" != no ; then
18063 NCURSES_INLINE=inline
18064 if test "$INTEL_COMPILER" = yes
18067 elif test "$CLANG_COMPILER" = yes
18070 elif test "$GCC" = yes
18072 echo "$as_me:18072: checking if $CC supports options to tune inlining" >&5
18073 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
18074 if test "${cf_cv_gcc_inline+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 cf_save_CFLAGS=$CFLAGS
18079 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
18080 cat >conftest.$ac_ext <<_ACEOF
18081 #line 18081 "configure"
18082 #include "confdefs.h"
18083 inline int foo(void) { return 1; }
18087 ${cf_cv_main_return:-return} foo()
18092 rm -f conftest.$ac_objext
18093 if { (eval echo "$as_me:18093: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>&5
18096 echo "$as_me:18096: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try='test -s conftest.$ac_objext'
18099 { (eval echo "$as_me:18099: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:18102: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 cf_cv_gcc_inline=yes
18106 echo "$as_me: failed program was:" >&5
18107 cat conftest.$ac_ext >&5
18108 cf_cv_gcc_inline=no
18110 rm -f conftest.$ac_objext conftest.$ac_ext
18111 CFLAGS=$cf_save_CFLAGS
18114 echo "$as_me:18114: result: $cf_cv_gcc_inline" >&5
18115 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
18116 if test "$cf_cv_gcc_inline" = yes ; then
18121 cf_new_extra_cppflags=
18123 for cf_add_cflags in --param max-inline-insns-single=1200
18125 case $cf_fix_cppflags in
18127 case $cf_add_cflags in
18128 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18129 case $cf_add_cflags in
18131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18133 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18134 && test -z "${cf_tst_cflags}" \
18135 && cf_fix_cppflags=yes
18137 if test $cf_fix_cppflags = yes ; then
18139 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18140 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18143 elif test "${cf_tst_cflags}" = "\"'" ; then
18145 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18146 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18152 case "$CPPFLAGS" in
18156 case $cf_add_cflags in
18158 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18160 CPPFLAGS=`echo "$CPPFLAGS" | \
18161 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18162 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18167 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18168 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18175 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18176 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18183 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18184 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18186 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18188 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18189 && test -z "${cf_tst_cflags}" \
18190 && cf_fix_cppflags=no
18195 if test -n "$cf_new_cflags" ; then
18197 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18198 CFLAGS="${CFLAGS}$cf_new_cflags"
18202 if test -n "$cf_new_cppflags" ; then
18204 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18205 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18209 if test -n "$cf_new_extra_cppflags" ; then
18211 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18212 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18220 echo "$as_me:18220: checking for signal global datatype" >&5
18221 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
18222 if test "${cf_cv_sig_atomic_t+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 "volatile sig_atomic_t" \
18231 cat >conftest.$ac_ext <<_ACEOF
18232 #line 18232 "configure"
18233 #include "confdefs.h"
18235 #include <sys/types.h>
18236 #include <signal.h>
18241 static void handler(int sig)
18248 signal(SIGINT, handler);
18254 rm -f conftest.$ac_objext
18255 if { (eval echo "$as_me:18255: \"$ac_compile\"") >&5
18256 (eval $ac_compile) 2>&5
18258 echo "$as_me:18258: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:18261: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:18264: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 cf_cv_sig_atomic_t=$cf_type
18268 echo "$as_me: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 cf_cv_sig_atomic_t=no
18272 rm -f conftest.$ac_objext conftest.$ac_ext
18273 test "$cf_cv_sig_atomic_t" != no && break
18278 echo "$as_me:18278: result: $cf_cv_sig_atomic_t" >&5
18279 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
18280 test "$cf_cv_sig_atomic_t" != no &&
18281 cat >>confdefs.h <<EOF
18282 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
18285 if test $NCURSES_CHTYPE = auto ; then
18287 echo "$as_me:18287: checking for type of chtype" >&5
18288 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
18289 if test "${cf_cv_typeof_chtype+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 if test "$cross_compiling" = yes; then
18294 cf_cv_typeof_chtype=long
18296 cat >conftest.$ac_ext <<_ACEOF
18297 #line 18297 "configure"
18298 #include "confdefs.h"
18300 #define WANT_BITS 31
18304 FILE *fp = fopen("cf_test.out", "w");
18306 char *result = "long";
18307 if (sizeof(unsigned long) > sizeof(unsigned int)) {
18310 for (n = 0; n < WANT_BITS; n++) {
18313 if (y != 1 || x == 0) {
18319 * If x is nonzero, an int is big enough for the bits
18322 result = (x != 0) ? "int" : "long";
18327 ${cf_cv_main_return:-return}(0);
18331 rm -f conftest$ac_exeext
18332 if { (eval echo "$as_me:18332: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>&5
18335 echo "$as_me:18335: \$? = $ac_status" >&5
18336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18337 { (eval echo "$as_me:18337: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 echo "$as_me:18340: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 cf_cv_typeof_chtype=`cat cf_test.out`
18344 echo "$as_me: program exited with status $ac_status" >&5
18345 echo "$as_me: failed program was:" >&5
18346 cat conftest.$ac_ext >&5
18347 cf_cv_typeof_chtype=long
18349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18355 echo "$as_me:18355: result: $cf_cv_typeof_chtype" >&5
18356 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
18358 cat >>confdefs.h <<EOF
18359 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
18363 cf_cv_typeof_chtype=$NCURSES_CHTYPE
18365 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
18367 echo "$as_me:18367: checking if unsigned literals are legal" >&5
18368 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
18369 if test "${cf_cv_unsigned_literals+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18374 #line 18374 "configure"
18375 #include "confdefs.h"
18380 long x = 1L + 1UL + 1U + 1
18385 rm -f conftest.$ac_objext
18386 if { (eval echo "$as_me:18386: \"$ac_compile\"") >&5
18387 (eval $ac_compile) 2>&5
18389 echo "$as_me:18389: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -s conftest.$ac_objext'
18392 { (eval echo "$as_me:18392: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:18395: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 cf_cv_unsigned_literals=yes
18399 echo "$as_me: failed program was:" >&5
18400 cat conftest.$ac_ext >&5
18401 cf_cv_unsigned_literals=no
18403 rm -f conftest.$ac_objext conftest.$ac_ext
18407 echo "$as_me:18407: result: $cf_cv_unsigned_literals" >&5
18408 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
18411 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
18412 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
18414 if test $NCURSES_MMASK_T = auto ; then
18415 cf_cv_typeof_mmask_t=long
18417 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
18419 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
18421 ### Checks for external-data
18423 echo "$as_me:18423: checking if external errno is declared" >&5
18424 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
18425 if test "${cf_cv_dcl_errno+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.$ac_ext <<_ACEOF
18430 #line 18430 "configure"
18431 #include "confdefs.h"
18433 #ifdef HAVE_STDLIB_H
18434 #include <stdlib.h>
18437 #include <sys/types.h>
18442 int x = (int) errno
18447 rm -f conftest.$ac_objext
18448 if { (eval echo "$as_me:18448: \"$ac_compile\"") >&5
18449 (eval $ac_compile) 2>&5
18451 echo "$as_me:18451: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -s conftest.$ac_objext'
18454 { (eval echo "$as_me:18454: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:18457: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 cf_cv_dcl_errno=yes
18461 echo "$as_me: failed program was:" >&5
18462 cat conftest.$ac_ext >&5
18465 rm -f conftest.$ac_objext conftest.$ac_ext
18468 echo "$as_me:18468: result: $cf_cv_dcl_errno" >&5
18469 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
18471 if test "$cf_cv_dcl_errno" = no ; then
18473 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18475 cat >>confdefs.h <<EOF
18476 #define $cf_result 1
18481 # It's possible (for near-UNIX clones) that the data doesn't exist
18483 echo "$as_me:18483: checking if external errno exists" >&5
18484 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
18485 if test "${cf_cv_have_errno+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 cat >conftest.$ac_ext <<_ACEOF
18490 #line 18490 "configure"
18491 #include "confdefs.h"
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (eval echo "$as_me:18505: \"$ac_link\"") >&5
18506 (eval $ac_link) 2>&5
18508 echo "$as_me:18508: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (eval echo "$as_me:18511: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18514 echo "$as_me:18514: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 cf_cv_have_errno=yes
18518 echo "$as_me: failed program was:" >&5
18519 cat conftest.$ac_ext >&5
18520 cf_cv_have_errno=no
18522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18525 echo "$as_me:18525: result: $cf_cv_have_errno" >&5
18526 echo "${ECHO_T}$cf_cv_have_errno" >&6
18528 if test "$cf_cv_have_errno" = yes ; then
18530 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18532 cat >>confdefs.h <<EOF
18533 #define $cf_result 1
18538 echo "$as_me:18538: checking if data-only library module links" >&5
18539 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
18540 if test "${cf_cv_link_dataonly+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<EOF
18546 #line 18546 "configure"
18547 int testdata[3] = { 123, 456, 789 };
18549 if { (eval echo "$as_me:18549: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>&5
18552 echo "$as_me:18552: \$? = $ac_status" >&5
18553 (exit $ac_status); } ; then
18554 mv conftest.o data.o && \
18555 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
18557 rm -f conftest.$ac_ext data.o
18558 cat >conftest.$ac_ext <<EOF
18559 #line 18559 "configure"
18563 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
18565 extern int testdata[3];
18566 return testdata[0] == 123
18567 && testdata[1] == 456
18568 && testdata[2] == 789;
18572 if { (eval echo "$as_me:18572: \"$ac_compile\"") >&5
18573 (eval $ac_compile) 2>&5
18575 echo "$as_me:18575: \$? = $ac_status" >&5
18576 (exit $ac_status); }; then
18577 mv conftest.o func.o && \
18578 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
18580 rm -f conftest.$ac_ext func.o
18581 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
18582 cf_saveLIBS="$LIBS"
18583 LIBS="conftest.a $LIBS"
18584 if test "$cross_compiling" = yes; then
18585 cf_cv_link_dataonly=unknown
18587 cat >conftest.$ac_ext <<_ACEOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18593 extern int testfunc();
18594 ${cf_cv_main_return:-return} (!testfunc());
18598 rm -f conftest$ac_exeext
18599 if { (eval echo "$as_me:18599: \"$ac_link\"") >&5
18600 (eval $ac_link) 2>&5
18602 echo "$as_me:18602: \$? = $ac_status" >&5
18603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18604 { (eval echo "$as_me:18604: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:18607: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 cf_cv_link_dataonly=yes
18611 echo "$as_me: program exited with status $ac_status" >&5
18612 echo "$as_me: failed program was:" >&5
18613 cat conftest.$ac_ext >&5
18614 cf_cv_link_dataonly=no
18616 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18618 LIBS="$cf_saveLIBS"
18622 echo "$as_me:18622: result: $cf_cv_link_dataonly" >&5
18623 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
18625 if test "$cf_cv_link_dataonly" = no ; then
18627 cat >>confdefs.h <<\EOF
18628 #define BROKEN_LINKER 1
18634 ### Checks for library functions.
18663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18664 echo "$as_me:18664: checking for $ac_func" >&5
18665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18666 if eval "test \"\${$as_ac_var+set}\" = set"; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 cat >conftest.$ac_ext <<_ACEOF
18670 #line 18670 "configure"
18671 #include "confdefs.h"
18672 #define $ac_func autoconf_temporary
18673 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18680 /* We use char because int might match the return type of a gcc2
18681 builtin and then its argument prototype would still apply. */
18682 char $ac_func (void);
18688 /* The GNU C library defines stubs for functions which it implements
18689 to always fail with ENOSYS. Some functions are actually named
18690 something starting with __ and the normal name is an alias. */
18691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18692 #error found stub for $ac_func
18695 return $ac_func ();
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (eval echo "$as_me:18701: \"$ac_link\"") >&5
18702 (eval $ac_link) 2>&5
18704 echo "$as_me:18704: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (eval echo "$as_me:18707: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:18710: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 eval "$as_ac_var=yes"
18714 echo "$as_me: failed program was:" >&5
18715 cat conftest.$ac_ext >&5
18716 eval "$as_ac_var=no"
18718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18720 echo "$as_me:18720: result: `eval echo '${'$as_ac_var'}'`" >&5
18721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18722 if test `eval echo '${'$as_ac_var'}'` = yes; then
18723 cat >>confdefs.h <<EOF
18724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18730 if test "x$ac_cv_func_getopt" = xno && \
18731 test "x$cf_with_progs$cf_with_tests" != xnono; then
18732 { { echo "$as_me:18732: error: getopt is required for building programs" >&5
18733 echo "$as_me: error: getopt is required for building programs" >&2;}
18734 { (exit 1); exit 1; }; }
18737 if test "x$with_safe_sprintf" = xyes
18739 if test "x$ac_cv_func_vsnprintf" = xyes
18741 { echo "$as_me:18741: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
18742 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
18745 cat >>confdefs.h <<\EOF
18746 #define USE_SAFE_SPRINTF 1
18752 if test "x$with_getcap" = "xyes" ; then
18754 echo "$as_me:18754: checking for terminal-capability database functions" >&5
18755 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
18756 if test "${cf_cv_cgetent+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 cat >conftest.$ac_ext <<_ACEOF
18761 #line 18761 "configure"
18762 #include "confdefs.h"
18764 #include <stdlib.h>
18771 char *db_array = temp;
18772 cgetent(&buf, &db_array, "vt100");
18773 cgetcap(buf, "tc", '=');
18774 cgetmatch(buf, "tc");
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (eval echo "$as_me:18781: \"$ac_link\"") >&5
18782 (eval $ac_link) 2>&5
18784 echo "$as_me:18784: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (eval echo "$as_me:18787: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18790 echo "$as_me:18790: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18794 echo "$as_me: failed program was:" >&5
18795 cat conftest.$ac_ext >&5
18798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18801 echo "$as_me:18801: result: $cf_cv_cgetent" >&5
18802 echo "${ECHO_T}$cf_cv_cgetent" >&6
18804 if test "$cf_cv_cgetent" = yes
18807 cat >>confdefs.h <<\EOF
18808 #define HAVE_BSD_CGETENT 1
18811 echo "$as_me:18811: checking if cgetent uses const parameter" >&5
18812 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
18813 if test "${cf_cv_cgetent_const+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 cat >conftest.$ac_ext <<_ACEOF
18818 #line 18818 "configure"
18819 #include "confdefs.h"
18821 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
18822 #include <stdlib.h>
18829 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
18830 const char *db_array = temp;
18831 cgetent(&buf, &db_array, "vt100");
18833 cgetcap(buf, "tc", '=');
18834 cgetmatch(buf, "tc");
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:18841: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>&5
18844 echo "$as_me:18844: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (eval echo "$as_me:18847: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18850 echo "$as_me:18850: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 cf_cv_cgetent_const=yes
18854 echo "$as_me: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18856 cf_cv_cgetent_const=no
18858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18861 echo "$as_me:18861: result: $cf_cv_cgetent_const" >&5
18862 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
18863 if test "$cf_cv_cgetent_const" = yes
18866 cat >>confdefs.h <<EOF
18867 #define CGETENT_CONST const
18875 echo "$as_me:18875: checking for isascii" >&5
18876 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
18877 if test "${cf_cv_have_isascii+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 cat >conftest.$ac_ext <<_ACEOF
18882 #line 18882 "configure"
18883 #include "confdefs.h"
18888 int x = isascii(' ')
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (eval echo "$as_me:18894: \"$ac_link\"") >&5
18895 (eval $ac_link) 2>&5
18897 echo "$as_me:18897: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (eval echo "$as_me:18900: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:18903: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 cf_cv_have_isascii=yes
18907 echo "$as_me: failed program was:" >&5
18908 cat conftest.$ac_ext >&5
18909 cf_cv_have_isascii=no
18911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18914 echo "$as_me:18914: result: $cf_cv_have_isascii" >&5
18915 echo "${ECHO_T}$cf_cv_have_isascii" >&6
18916 test "$cf_cv_have_isascii" = yes &&
18917 cat >>confdefs.h <<\EOF
18918 #define HAVE_ISASCII 1
18921 if test "$ac_cv_func_sigaction" = yes; then
18922 echo "$as_me:18922: checking whether sigaction needs _POSIX_SOURCE" >&5
18923 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18925 #line 18925 "configure"
18926 #include "confdefs.h"
18928 #include <sys/types.h>
18929 #include <signal.h>
18933 struct sigaction act
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:18939: \"$ac_compile\"") >&5
18940 (eval $ac_compile) 2>&5
18942 echo "$as_me:18942: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -s conftest.$ac_objext'
18945 { (eval echo "$as_me:18945: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18948 echo "$as_me:18948: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18952 echo "$as_me: failed program was:" >&5
18953 cat conftest.$ac_ext >&5
18955 cat >conftest.$ac_ext <<_ACEOF
18956 #line 18956 "configure"
18957 #include "confdefs.h"
18959 #define _POSIX_SOURCE
18960 #include <sys/types.h>
18961 #include <signal.h>
18965 struct sigaction act
18970 rm -f conftest.$ac_objext
18971 if { (eval echo "$as_me:18971: \"$ac_compile\"") >&5
18972 (eval $ac_compile) 2>&5
18974 echo "$as_me:18974: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -s conftest.$ac_objext'
18977 { (eval echo "$as_me:18977: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18980 echo "$as_me:18980: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18984 cat >>confdefs.h <<\EOF
18985 #define _POSIX_SOURCE 1
18989 echo "$as_me: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18993 rm -f conftest.$ac_objext conftest.$ac_ext
18995 rm -f conftest.$ac_objext conftest.$ac_ext
18996 echo "$as_me:18996: result: $sigact_bad" >&5
18997 echo "${ECHO_T}$sigact_bad" >&6
19000 echo "$as_me:19000: checking if nanosleep really works" >&5
19001 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
19002 if test "${cf_cv_func_nanosleep+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 if test "$cross_compiling" = yes; then
19007 cf_cv_func_nanosleep=unknown
19009 cat >conftest.$ac_ext <<_ACEOF
19010 #line 19010 "configure"
19011 #include "confdefs.h"
19017 #ifdef HAVE_SYS_TIME_H
19018 #include <sys/time.h>
19022 struct timespec ts1, ts2;
19025 ts1.tv_nsec = 750000000;
19029 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
19030 ${cf_cv_main_return:-return}(code != 0);
19034 rm -f conftest$ac_exeext
19035 if { (eval echo "$as_me:19035: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>&5
19038 echo "$as_me:19038: \$? = $ac_status" >&5
19039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19040 { (eval echo "$as_me:19040: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:19043: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 cf_cv_func_nanosleep=yes
19047 echo "$as_me: program exited with status $ac_status" >&5
19048 echo "$as_me: failed program was:" >&5
19049 cat conftest.$ac_ext >&5
19050 cf_cv_func_nanosleep=no
19052 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19055 echo "$as_me:19055: result: $cf_cv_func_nanosleep" >&5
19056 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
19058 test "$cf_cv_func_nanosleep" = "yes" &&
19059 cat >>confdefs.h <<\EOF
19060 #define HAVE_NANOSLEEP 1
19071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19072 echo "$as_me:19072: checking for $ac_header" >&5
19073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 cat >conftest.$ac_ext <<_ACEOF
19078 #line 19078 "configure"
19079 #include "confdefs.h"
19080 #include <$ac_header>
19082 if { (eval echo "$as_me:19082: \"$ac_cpp conftest.$ac_ext\"") >&5
19083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19085 egrep -v '^ *\+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:19088: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null; then
19090 if test -s conftest.err; then
19091 ac_cpp_err=$ac_c_preproc_warn_flag
19098 if test -z "$ac_cpp_err"; then
19099 eval "$as_ac_Header=yes"
19101 echo "$as_me: failed program was:" >&5
19102 cat conftest.$ac_ext >&5
19103 eval "$as_ac_Header=no"
19105 rm -f conftest.err conftest.$ac_ext
19107 echo "$as_me:19107: result: `eval echo '${'$as_ac_Header'}'`" >&5
19108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19110 cat >>confdefs.h <<EOF
19111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19117 if test "$ac_cv_header_termios_h" = yes ; then
19118 case "$CFLAGS $CPPFLAGS" in
19119 (*-D_POSIX_SOURCE*)
19120 termios_bad=dunno ;;
19121 (*) termios_bad=maybe ;;
19123 if test "$termios_bad" = maybe ; then
19124 echo "$as_me:19124: checking whether termios.h needs _POSIX_SOURCE" >&5
19125 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
19126 cat >conftest.$ac_ext <<_ACEOF
19127 #line 19127 "configure"
19128 #include "confdefs.h"
19129 #include <termios.h>
19133 struct termios foo; int x = foo.c_iflag
19138 rm -f conftest.$ac_objext
19139 if { (eval echo "$as_me:19139: \"$ac_compile\"") >&5
19140 (eval $ac_compile) 2>&5
19142 echo "$as_me:19142: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -s conftest.$ac_objext'
19145 { (eval echo "$as_me:19145: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:19148: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19152 echo "$as_me: failed program was:" >&5
19153 cat conftest.$ac_ext >&5
19155 cat >conftest.$ac_ext <<_ACEOF
19156 #line 19156 "configure"
19157 #include "confdefs.h"
19159 #define _POSIX_SOURCE
19160 #include <termios.h>
19164 struct termios foo; int x = foo.c_iflag
19169 rm -f conftest.$ac_objext
19170 if { (eval echo "$as_me:19170: \"$ac_compile\"") >&5
19171 (eval $ac_compile) 2>&5
19173 echo "$as_me:19173: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:19176: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:19179: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 termios_bad=unknown
19183 echo "$as_me: failed program was:" >&5
19184 cat conftest.$ac_ext >&5
19186 cat >>confdefs.h <<\EOF
19187 #define _POSIX_SOURCE 1
19191 rm -f conftest.$ac_objext conftest.$ac_ext
19194 rm -f conftest.$ac_objext conftest.$ac_ext
19195 echo "$as_me:19195: result: $termios_bad" >&5
19196 echo "${ECHO_T}$termios_bad" >&6
19200 echo "$as_me:19200: checking for tcgetattr" >&5
19201 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
19202 if test "${cf_cv_have_tcgetattr+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 cat >conftest.$ac_ext <<_ACEOF
19207 #line 19207 "configure"
19208 #include "confdefs.h"
19210 #include <sys/types.h>
19211 #ifdef HAVE_UNISTD_H
19212 #include <unistd.h>
19214 #ifdef HAVE_TERMIOS_H
19215 #include <termios.h>
19216 #define TTY struct termios
19218 #ifdef HAVE_TERMIO_H
19219 #include <termio.h>
19220 #define TTY struct termio
19229 tcgetattr(1, &foo);
19234 rm -f conftest.$ac_objext conftest$ac_exeext
19235 if { (eval echo "$as_me:19235: \"$ac_link\"") >&5
19236 (eval $ac_link) 2>&5
19238 echo "$as_me:19238: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -s conftest$ac_exeext'
19241 { (eval echo "$as_me:19241: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19244 echo "$as_me:19244: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 cf_cv_have_tcgetattr=yes
19248 echo "$as_me: failed program was:" >&5
19249 cat conftest.$ac_ext >&5
19250 cf_cv_have_tcgetattr=no
19252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19254 echo "$as_me:19254: result: $cf_cv_have_tcgetattr" >&5
19255 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
19256 test "$cf_cv_have_tcgetattr" = yes &&
19257 cat >>confdefs.h <<\EOF
19258 #define HAVE_TCGETATTR 1
19261 echo "$as_me:19261: checking for vsscanf function or workaround" >&5
19262 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
19263 if test "${cf_cv_func_vsscanf+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 cat >conftest.$ac_ext <<_ACEOF
19268 #line 19268 "configure"
19269 #include "confdefs.h"
19271 #include <stdarg.h>
19278 vsscanf("from", "%d", ap)
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (eval echo "$as_me:19284: \"$ac_link\"") >&5
19285 (eval $ac_link) 2>&5
19287 echo "$as_me:19287: \$? = $ac_status" >&5
19288 (exit $ac_status); } &&
19289 { ac_try='test -s conftest$ac_exeext'
19290 { (eval echo "$as_me:19290: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:19293: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 cf_cv_func_vsscanf=vsscanf
19297 echo "$as_me: failed program was:" >&5
19298 cat conftest.$ac_ext >&5
19300 cat >conftest.$ac_ext <<_ACEOF
19301 #line 19301 "configure"
19302 #include "confdefs.h"
19304 #include <stdarg.h>
19311 char *str = "from";
19313 strbuf._flag = _IOREAD;
19314 strbuf._ptr = strbuf._base = (unsigned char *) str;
19315 strbuf._cnt = strlen(str);
19316 strbuf._file = _NFILE;
19317 return (vfscanf(&strbuf, "%d", ap))
19322 rm -f conftest.$ac_objext conftest$ac_exeext
19323 if { (eval echo "$as_me:19323: \"$ac_link\"") >&5
19324 (eval $ac_link) 2>&5
19326 echo "$as_me:19326: \$? = $ac_status" >&5
19327 (exit $ac_status); } &&
19328 { ac_try='test -s conftest$ac_exeext'
19329 { (eval echo "$as_me:19329: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19332 echo "$as_me:19332: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 cf_cv_func_vsscanf=vfscanf
19336 echo "$as_me: failed program was:" >&5
19337 cat conftest.$ac_ext >&5
19339 cat >conftest.$ac_ext <<_ACEOF
19340 #line 19340 "configure"
19341 #include "confdefs.h"
19343 #include <stdarg.h>
19350 char *str = "from";
19352 strbuf._flag = _IOREAD;
19353 strbuf._ptr = strbuf._base = (unsigned char *) str;
19354 strbuf._cnt = strlen(str);
19355 strbuf._file = _NFILE;
19356 return (_doscan(&strbuf, "%d", ap))
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (eval echo "$as_me:19362: \"$ac_link\"") >&5
19363 (eval $ac_link) 2>&5
19365 echo "$as_me:19365: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -s conftest$ac_exeext'
19368 { (eval echo "$as_me:19368: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:19371: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 cf_cv_func_vsscanf=_doscan
19375 echo "$as_me: failed program was:" >&5
19376 cat conftest.$ac_ext >&5
19378 cf_cv_func_vsscanf=no
19380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19386 echo "$as_me:19386: result: $cf_cv_func_vsscanf" >&5
19387 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
19389 case $cf_cv_func_vsscanf in
19391 cat >>confdefs.h <<\EOF
19392 #define HAVE_VSSCANF 1
19396 cat >>confdefs.h <<\EOF
19397 #define HAVE_VFSCANF 1
19401 cat >>confdefs.h <<\EOF
19402 #define HAVE__DOSCAN 1
19411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19412 echo "$as_me:19412: checking for $ac_header" >&5
19413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 cat >conftest.$ac_ext <<_ACEOF
19418 #line 19418 "configure"
19419 #include "confdefs.h"
19420 #include <$ac_header>
19422 if { (eval echo "$as_me:19422: \"$ac_cpp conftest.$ac_ext\"") >&5
19423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19425 egrep -v '^ *\+' conftest.er1 >conftest.err
19427 cat conftest.err >&5
19428 echo "$as_me:19428: \$? = $ac_status" >&5
19429 (exit $ac_status); } >/dev/null; then
19430 if test -s conftest.err; then
19431 ac_cpp_err=$ac_c_preproc_warn_flag
19438 if test -z "$ac_cpp_err"; then
19439 eval "$as_ac_Header=yes"
19441 echo "$as_me: failed program was:" >&5
19442 cat conftest.$ac_ext >&5
19443 eval "$as_ac_Header=no"
19445 rm -f conftest.err conftest.$ac_ext
19447 echo "$as_me:19447: result: `eval echo '${'$as_ac_Header'}'`" >&5
19448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19450 cat >>confdefs.h <<EOF
19451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19457 echo "$as_me:19457: checking for working mkstemp" >&5
19458 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
19459 if test "${cf_cv_func_mkstemp+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 if test "$cross_compiling" = yes; then
19465 cf_cv_func_mkstemp=maybe
19467 cat >conftest.$ac_ext <<_ACEOF
19468 #line 19468 "configure"
19469 #include "confdefs.h"
19471 #include <sys/types.h>
19472 #ifdef HAVE_UNISTD_H
19473 #include <unistd.h>
19475 #include <stdlib.h>
19477 #include <string.h>
19478 #include <sys/stat.h>
19481 char *tmpl = "conftestXXXXXX";
19489 for (n = 0; n < 2; ++n) {
19490 strcpy(name[n], tmpl);
19491 if ((fd = mkstemp(name[n])) >= 0) {
19492 if (!strcmp(name[n], tmpl)
19493 || stat(name[n], &sb) != 0
19494 || (sb.st_mode & S_IFMT) != S_IFREG
19495 || (sb.st_mode & 077) != 0) {
19502 && !strcmp(name[0], name[1]))
19504 ${cf_cv_main_return:-return}(result);
19508 rm -f conftest$ac_exeext
19509 if { (eval echo "$as_me:19509: \"$ac_link\"") >&5
19510 (eval $ac_link) 2>&5
19512 echo "$as_me:19512: \$? = $ac_status" >&5
19513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19514 { (eval echo "$as_me:19514: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:19517: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 cf_cv_func_mkstemp=yes
19522 echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 cat conftest.$ac_ext >&5
19525 cf_cv_func_mkstemp=no
19528 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19532 echo "$as_me:19532: result: $cf_cv_func_mkstemp" >&5
19533 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
19534 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
19535 echo "$as_me:19535: checking for mkstemp" >&5
19536 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
19537 if test "${ac_cv_func_mkstemp+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 cat >conftest.$ac_ext <<_ACEOF
19541 #line 19541 "configure"
19542 #include "confdefs.h"
19543 #define mkstemp autoconf_temporary
19544 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553 char mkstemp (void);
19559 /* The GNU C library defines stubs for functions which it implements
19560 to always fail with ENOSYS. Some functions are actually named
19561 something starting with __ and the normal name is an alias. */
19562 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
19563 #error found stub for mkstemp
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (eval echo "$as_me:19572: \"$ac_link\"") >&5
19573 (eval $ac_link) 2>&5
19575 echo "$as_me:19575: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -s conftest$ac_exeext'
19578 { (eval echo "$as_me:19578: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:19581: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 ac_cv_func_mkstemp=yes
19585 echo "$as_me: failed program was:" >&5
19586 cat conftest.$ac_ext >&5
19587 ac_cv_func_mkstemp=no
19589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19591 echo "$as_me:19591: result: $ac_cv_func_mkstemp" >&5
19592 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
19595 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
19597 cat >>confdefs.h <<\EOF
19598 #define HAVE_MKSTEMP 1
19603 # setup for prototype of fallback for vsscanf()
19605 if test "$cf_cv_func_vsscanf" = vsscanf ; then
19611 if test "x$cross_compiling" = xyes ; then
19612 { echo "$as_me:19612: WARNING: cross compiling: assume setvbuf params not reversed" >&5
19613 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
19615 echo "$as_me:19615: checking whether setvbuf arguments are reversed" >&5
19616 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
19617 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 if test "$cross_compiling" = yes; then
19621 { { echo "$as_me:19621: error: cannot run test program while cross compiling" >&5
19622 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
19623 { (exit 1); exit 1; }; }
19625 cat >conftest.$ac_ext <<_ACEOF
19626 #line 19626 "configure"
19627 #include "confdefs.h"
19629 /* If setvbuf has the reversed format, exit 0. */
19633 /* This call has the arguments reversed.
19634 A reversed system may check and see that the address of main
19635 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
19636 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
19637 $ac_main_return(1);
19638 putc('\r', stdout);
19639 $ac_main_return(0); /* Non-reversed systems segv here. */
19642 rm -f conftest$ac_exeext
19643 if { (eval echo "$as_me:19643: \"$ac_link\"") >&5
19644 (eval $ac_link) 2>&5
19646 echo "$as_me:19646: \$? = $ac_status" >&5
19647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19648 { (eval echo "$as_me:19648: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19651 echo "$as_me:19651: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_func_setvbuf_reversed=yes
19655 echo "$as_me: program exited with status $ac_status" >&5
19656 echo "$as_me: failed program was:" >&5
19657 cat conftest.$ac_ext >&5
19658 ac_cv_func_setvbuf_reversed=no
19660 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19662 rm -f core core.* *.core
19664 echo "$as_me:19664: result: $ac_cv_func_setvbuf_reversed" >&5
19665 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
19666 if test $ac_cv_func_setvbuf_reversed = yes; then
19668 cat >>confdefs.h <<\EOF
19669 #define SETVBUF_REVERSED 1
19675 echo "$as_me:19675: checking for intptr_t" >&5
19676 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
19677 if test "${ac_cv_type_intptr_t+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19681 #line 19681 "configure"
19682 #include "confdefs.h"
19683 $ac_includes_default
19687 if ((intptr_t *) 0)
19689 if (sizeof (intptr_t))
19695 rm -f conftest.$ac_objext
19696 if { (eval echo "$as_me:19696: \"$ac_compile\"") >&5
19697 (eval $ac_compile) 2>&5
19699 echo "$as_me:19699: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -s conftest.$ac_objext'
19702 { (eval echo "$as_me:19702: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:19705: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_cv_type_intptr_t=yes
19709 echo "$as_me: failed program was:" >&5
19710 cat conftest.$ac_ext >&5
19711 ac_cv_type_intptr_t=no
19713 rm -f conftest.$ac_objext conftest.$ac_ext
19715 echo "$as_me:19715: result: $ac_cv_type_intptr_t" >&5
19716 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
19717 if test $ac_cv_type_intptr_t = yes; then
19721 cat >>confdefs.h <<EOF
19722 #define intptr_t long
19727 echo "$as_me:19727: checking for ssize_t" >&5
19728 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
19729 if test "${ac_cv_type_ssize_t+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19733 #line 19733 "configure"
19734 #include "confdefs.h"
19735 $ac_includes_default
19741 if (sizeof (ssize_t))
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:19748: \"$ac_compile\"") >&5
19749 (eval $ac_compile) 2>&5
19751 echo "$as_me:19751: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:19754: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:19757: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_cv_type_ssize_t=yes
19761 echo "$as_me: failed program was:" >&5
19762 cat conftest.$ac_ext >&5
19763 ac_cv_type_ssize_t=no
19765 rm -f conftest.$ac_objext conftest.$ac_ext
19767 echo "$as_me:19767: result: $ac_cv_type_ssize_t" >&5
19768 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
19769 if test $ac_cv_type_ssize_t = yes; then
19773 cat >>confdefs.h <<EOF
19774 #define ssize_t int
19779 echo "$as_me:19779: checking for type sigaction_t" >&5
19780 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
19781 if test "${cf_cv_type_sigaction+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 cat >conftest.$ac_ext <<_ACEOF
19786 #line 19786 "configure"
19787 #include "confdefs.h"
19789 #include <signal.h>
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:19799: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>&5
19802 echo "$as_me:19802: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:19805: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 cf_cv_type_sigaction=yes
19812 echo "$as_me: failed program was:" >&5
19813 cat conftest.$ac_ext >&5
19814 cf_cv_type_sigaction=no
19816 rm -f conftest.$ac_objext conftest.$ac_ext
19819 echo "$as_me:19819: result: $cf_cv_type_sigaction" >&5
19820 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
19821 test "$cf_cv_type_sigaction" = yes &&
19822 cat >>confdefs.h <<\EOF
19823 #define HAVE_TYPE_SIGACTION 1
19826 echo "$as_me:19826: checking declaration of size-change" >&5
19827 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
19828 if test "${cf_cv_sizechange+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 cf_cv_sizechange=unknown
19833 cf_save_CPPFLAGS="$CPPFLAGS"
19835 for cf_opts in "" "NEED_PTEM_H"
19838 CPPFLAGS="$cf_save_CPPFLAGS"
19839 if test -n "$cf_opts"
19842 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19843 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
19846 cat >conftest.$ac_ext <<_ACEOF
19847 #line 19847 "configure"
19848 #include "confdefs.h"
19849 #include <sys/types.h>
19850 #ifdef HAVE_TERMIOS_H
19851 #include <termios.h>
19853 #ifdef HAVE_TERMIO_H
19854 #include <termio.h>
19859 /* This is a workaround for SCO: they neglected to define struct winsize in
19860 * termios.h -- it's only in termio.h and ptem.h
19862 #include <sys/stream.h>
19863 #include <sys/ptem.h>
19866 #ifdef HAVE_SYS_IOCTL_H
19867 #include <sys/ioctl.h>
19875 struct ttysize win; /* SunOS 3.0... */
19876 int y = win.ts_lines;
19877 int x = win.ts_cols;
19880 struct winsize win; /* everything else */
19881 int y = win.ws_row;
19882 int x = win.ws_col;
19884 no TIOCGSIZE or TIOCGWINSZ
19885 #endif /* TIOCGWINSZ */
19886 #endif /* TIOCGSIZE */
19892 rm -f conftest.$ac_objext
19893 if { (eval echo "$as_me:19893: \"$ac_compile\"") >&5
19894 (eval $ac_compile) 2>&5
19896 echo "$as_me:19896: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -s conftest.$ac_objext'
19899 { (eval echo "$as_me:19899: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19902 echo "$as_me:19902: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 cf_cv_sizechange=yes
19906 echo "$as_me: failed program was:" >&5
19907 cat conftest.$ac_ext >&5
19908 cf_cv_sizechange=no
19910 rm -f conftest.$ac_objext conftest.$ac_ext
19912 CPPFLAGS="$cf_save_CPPFLAGS"
19913 if test "$cf_cv_sizechange" = yes ; then
19914 echo "size-change succeeded ($cf_opts)" >&5
19915 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
19921 echo "$as_me:19921: result: $cf_cv_sizechange" >&5
19922 echo "${ECHO_T}$cf_cv_sizechange" >&6
19923 if test "$cf_cv_sizechange" != no ; then
19925 cat >>confdefs.h <<\EOF
19926 #define HAVE_SIZECHANGE 1
19929 case $cf_cv_sizechange in
19931 cat >>confdefs.h <<EOF
19932 #define $cf_cv_sizechange 1
19939 echo "$as_me:19939: checking for memmove" >&5
19940 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
19941 if test "${ac_cv_func_memmove+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19945 #line 19945 "configure"
19946 #include "confdefs.h"
19947 #define memmove autoconf_temporary
19948 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19955 /* We use char because int might match the return type of a gcc2
19956 builtin and then its argument prototype would still apply. */
19957 char memmove (void);
19963 /* The GNU C library defines stubs for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined (__stub_memmove) || defined (__stub___memmove)
19967 #error found stub for memmove
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (eval echo "$as_me:19976: \"$ac_link\"") >&5
19977 (eval $ac_link) 2>&5
19979 echo "$as_me:19979: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -s conftest$ac_exeext'
19982 { (eval echo "$as_me:19982: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:19985: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 ac_cv_func_memmove=yes
19989 echo "$as_me: failed program was:" >&5
19990 cat conftest.$ac_ext >&5
19991 ac_cv_func_memmove=no
19993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19995 echo "$as_me:19995: result: $ac_cv_func_memmove" >&5
19996 echo "${ECHO_T}$ac_cv_func_memmove" >&6
19997 if test $ac_cv_func_memmove = yes; then
20001 echo "$as_me:20001: checking for bcopy" >&5
20002 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
20003 if test "${ac_cv_func_bcopy+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 cat >conftest.$ac_ext <<_ACEOF
20007 #line 20007 "configure"
20008 #include "confdefs.h"
20009 #define bcopy autoconf_temporary
20010 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20017 /* We use char because int might match the return type of a gcc2
20018 builtin and then its argument prototype would still apply. */
20025 /* The GNU C library defines stubs for functions which it implements
20026 to always fail with ENOSYS. Some functions are actually named
20027 something starting with __ and the normal name is an alias. */
20028 #if defined (__stub_bcopy) || defined (__stub___bcopy)
20029 #error found stub for bcopy
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (eval echo "$as_me:20038: \"$ac_link\"") >&5
20039 (eval $ac_link) 2>&5
20041 echo "$as_me:20041: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -s conftest$ac_exeext'
20044 { (eval echo "$as_me:20044: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20047 echo "$as_me:20047: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 ac_cv_func_bcopy=yes
20051 echo "$as_me: failed program was:" >&5
20052 cat conftest.$ac_ext >&5
20053 ac_cv_func_bcopy=no
20055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20057 echo "$as_me:20057: result: $ac_cv_func_bcopy" >&5
20058 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
20059 if test $ac_cv_func_bcopy = yes; then
20061 echo "$as_me:20061: checking if bcopy does overlapping moves" >&5
20062 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
20063 if test "${cf_cv_good_bcopy+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 if test "$cross_compiling" = yes; then
20068 cf_cv_good_bcopy=unknown
20070 cat >conftest.$ac_ext <<_ACEOF
20071 #line 20071 "configure"
20072 #include "confdefs.h"
20075 static char data[] = "abcdefghijklmnopqrstuwwxyz";
20077 bcopy(data, temp, sizeof(data));
20078 bcopy(temp+10, temp, 15);
20079 bcopy(temp+5, temp+15, 10);
20080 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
20084 rm -f conftest$ac_exeext
20085 if { (eval echo "$as_me:20085: \"$ac_link\"") >&5
20086 (eval $ac_link) 2>&5
20088 echo "$as_me:20088: \$? = $ac_status" >&5
20089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20090 { (eval echo "$as_me:20090: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20093 echo "$as_me:20093: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20095 cf_cv_good_bcopy=yes
20097 echo "$as_me: program exited with status $ac_status" >&5
20098 echo "$as_me: failed program was:" >&5
20099 cat conftest.$ac_ext >&5
20100 cf_cv_good_bcopy=no
20102 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20106 echo "$as_me:20106: result: $cf_cv_good_bcopy" >&5
20107 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
20110 cf_cv_good_bcopy=no
20113 if test "$cf_cv_good_bcopy" = yes ; then
20115 cat >>confdefs.h <<\EOF
20116 #define USE_OK_BCOPY 1
20121 cat >>confdefs.h <<\EOF
20122 #define USE_MY_MEMMOVE 1
20129 tty 2>&1 >/dev/null || {
20130 for ac_func in posix_openpt
20132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20133 echo "$as_me:20133: checking for $ac_func" >&5
20134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20135 if eval "test \"\${$as_ac_var+set}\" = set"; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20139 #line 20139 "configure"
20140 #include "confdefs.h"
20141 #define $ac_func autoconf_temporary
20142 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20149 /* We use char because int might match the return type of a gcc2
20150 builtin and then its argument prototype would still apply. */
20151 char $ac_func (void);
20157 /* The GNU C library defines stubs for functions which it implements
20158 to always fail with ENOSYS. Some functions are actually named
20159 something starting with __ and the normal name is an alias. */
20160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20161 #error found stub for $ac_func
20164 return $ac_func ();
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (eval echo "$as_me:20170: \"$ac_link\"") >&5
20171 (eval $ac_link) 2>&5
20173 echo "$as_me:20173: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -s conftest$ac_exeext'
20176 { (eval echo "$as_me:20176: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20179 echo "$as_me:20179: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 eval "$as_ac_var=yes"
20183 echo "$as_me: failed program was:" >&5
20184 cat conftest.$ac_ext >&5
20185 eval "$as_ac_var=no"
20187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20189 echo "$as_me:20189: result: `eval echo '${'$as_ac_var'}'`" >&5
20190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20191 if test `eval echo '${'$as_ac_var'}'` = yes; then
20192 cat >>confdefs.h <<EOF
20193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20199 echo "$as_me:20199: checking if poll really works" >&5
20200 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
20201 if test "${cf_cv_working_poll+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 if test "$cross_compiling" = yes; then
20206 cf_cv_working_poll=unknown
20208 cat >conftest.$ac_ext <<_ACEOF
20209 #line 20209 "configure"
20210 #include "confdefs.h"
20212 #include <stdlib.h>
20214 #include <unistd.h>
20219 #include <sys/poll.h>
20222 struct pollfd myfds;
20225 /* check for Darwin bug with respect to "devices" */
20226 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
20229 myfds.events = POLLIN;
20232 ret = poll(&myfds, 1, 100);
20234 if (ret < 0 || (myfds.revents & POLLNVAL)) {
20239 fd = open("/dev/tty", 2); /* O_RDWR */
20241 #ifdef HAVE_POSIX_OPENPT
20243 fd = posix_openpt(O_RDWR);
20248 /* also check with standard input */
20250 myfds.events = POLLIN;
20252 ret = poll(&myfds, 1, 100);
20257 ${cf_cv_main_return:-return}(ret < 0);
20260 rm -f conftest$ac_exeext
20261 if { (eval echo "$as_me:20261: \"$ac_link\"") >&5
20262 (eval $ac_link) 2>&5
20264 echo "$as_me:20264: \$? = $ac_status" >&5
20265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20266 { (eval echo "$as_me:20266: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:20269: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 cf_cv_working_poll=yes
20273 echo "$as_me: program exited with status $ac_status" >&5
20274 echo "$as_me: failed program was:" >&5
20275 cat conftest.$ac_ext >&5
20276 cf_cv_working_poll=no
20278 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20281 echo "$as_me:20281: result: $cf_cv_working_poll" >&5
20282 echo "${ECHO_T}$cf_cv_working_poll" >&6
20283 test "$cf_cv_working_poll" = "yes" &&
20284 cat >>confdefs.h <<\EOF
20285 #define HAVE_WORKING_POLL 1
20288 echo "$as_me:20288: checking for va_copy" >&5
20289 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20290 if test "${cf_cv_have_va_copy+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 cat >conftest.$ac_ext <<_ACEOF
20295 #line 20295 "configure"
20296 #include "confdefs.h"
20298 #include <stdarg.h>
20304 static va_list dst;
20305 static va_list src;
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (eval echo "$as_me:20312: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>&5
20315 echo "$as_me:20315: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -s conftest$ac_exeext'
20318 { (eval echo "$as_me:20318: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:20321: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 cf_cv_have_va_copy=yes
20325 echo "$as_me: failed program was:" >&5
20326 cat conftest.$ac_ext >&5
20327 cf_cv_have_va_copy=no
20329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20331 echo "$as_me:20331: result: $cf_cv_have_va_copy" >&5
20332 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
20334 test "$cf_cv_have_va_copy" = yes &&
20335 cat >>confdefs.h <<\EOF
20336 #define HAVE_VA_COPY 1
20339 echo "$as_me:20339: checking for __va_copy" >&5
20340 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
20341 if test "${cf_cv_have___va_copy+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 cat >conftest.$ac_ext <<_ACEOF
20346 #line 20346 "configure"
20347 #include "confdefs.h"
20349 #include <stdarg.h>
20355 static va_list dst;
20356 static va_list src;
20357 __va_copy(dst, src)
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (eval echo "$as_me:20363: \"$ac_link\"") >&5
20364 (eval $ac_link) 2>&5
20366 echo "$as_me:20366: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -s conftest$ac_exeext'
20369 { (eval echo "$as_me:20369: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:20372: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 cf_cv_have___va_copy=yes
20376 echo "$as_me: failed program was:" >&5
20377 cat conftest.$ac_ext >&5
20378 cf_cv_have___va_copy=no
20380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20382 echo "$as_me:20382: result: $cf_cv_have___va_copy" >&5
20383 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
20385 test "$cf_cv_have___va_copy" = yes &&
20386 cat >>confdefs.h <<\EOF
20387 #define HAVE___VA_COPY 1
20390 echo "$as_me:20390: checking for pid_t" >&5
20391 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20392 if test "${ac_cv_type_pid_t+set}" = set; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 cat >conftest.$ac_ext <<_ACEOF
20396 #line 20396 "configure"
20397 #include "confdefs.h"
20398 $ac_includes_default
20404 if (sizeof (pid_t))
20410 rm -f conftest.$ac_objext
20411 if { (eval echo "$as_me:20411: \"$ac_compile\"") >&5
20412 (eval $ac_compile) 2>&5
20414 echo "$as_me:20414: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -s conftest.$ac_objext'
20417 { (eval echo "$as_me:20417: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20420 echo "$as_me:20420: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_type_pid_t=yes
20424 echo "$as_me: failed program was:" >&5
20425 cat conftest.$ac_ext >&5
20426 ac_cv_type_pid_t=no
20428 rm -f conftest.$ac_objext conftest.$ac_ext
20430 echo "$as_me:20430: result: $ac_cv_type_pid_t" >&5
20431 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20432 if test $ac_cv_type_pid_t = yes; then
20436 cat >>confdefs.h <<EOF
20442 for ac_header in unistd.h vfork.h
20444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445 echo "$as_me:20445: checking for $ac_header" >&5
20446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 cat >conftest.$ac_ext <<_ACEOF
20451 #line 20451 "configure"
20452 #include "confdefs.h"
20453 #include <$ac_header>
20455 if { (eval echo "$as_me:20455: \"$ac_cpp conftest.$ac_ext\"") >&5
20456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20458 egrep -v '^ *\+' conftest.er1 >conftest.err
20460 cat conftest.err >&5
20461 echo "$as_me:20461: \$? = $ac_status" >&5
20462 (exit $ac_status); } >/dev/null; then
20463 if test -s conftest.err; then
20464 ac_cpp_err=$ac_c_preproc_warn_flag
20471 if test -z "$ac_cpp_err"; then
20472 eval "$as_ac_Header=yes"
20474 echo "$as_me: failed program was:" >&5
20475 cat conftest.$ac_ext >&5
20476 eval "$as_ac_Header=no"
20478 rm -f conftest.err conftest.$ac_ext
20480 echo "$as_me:20480: result: `eval echo '${'$as_ac_Header'}'`" >&5
20481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20483 cat >>confdefs.h <<EOF
20484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20490 for ac_func in fork vfork
20492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20493 echo "$as_me:20493: checking for $ac_func" >&5
20494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20495 if eval "test \"\${$as_ac_var+set}\" = set"; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 cat >conftest.$ac_ext <<_ACEOF
20499 #line 20499 "configure"
20500 #include "confdefs.h"
20501 #define $ac_func autoconf_temporary
20502 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20509 /* We use char because int might match the return type of a gcc2
20510 builtin and then its argument prototype would still apply. */
20511 char $ac_func (void);
20517 /* The GNU C library defines stubs for functions which it implements
20518 to always fail with ENOSYS. Some functions are actually named
20519 something starting with __ and the normal name is an alias. */
20520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20521 #error found stub for $ac_func
20524 return $ac_func ();
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (eval echo "$as_me:20530: \"$ac_link\"") >&5
20531 (eval $ac_link) 2>&5
20533 echo "$as_me:20533: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
20535 { ac_try='test -s conftest$ac_exeext'
20536 { (eval echo "$as_me:20536: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20539 echo "$as_me:20539: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 eval "$as_ac_var=yes"
20543 echo "$as_me: failed program was:" >&5
20544 cat conftest.$ac_ext >&5
20545 eval "$as_ac_var=no"
20547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20549 echo "$as_me:20549: result: `eval echo '${'$as_ac_var'}'`" >&5
20550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20551 if test `eval echo '${'$as_ac_var'}'` = yes; then
20552 cat >>confdefs.h <<EOF
20553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20559 ac_cv_func_fork_works=$ac_cv_func_fork
20560 if test "x$ac_cv_func_fork" = xyes; then
20561 echo "$as_me:20561: checking for working fork" >&5
20562 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20563 if test "${ac_cv_func_fork_works+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 if test "$cross_compiling" = yes; then
20567 ac_cv_func_fork_works=cross
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* By Rüdiger Kuhlmann. */
20571 #include <sys/types.h>
20573 # include <unistd.h>
20575 /* Some systems only have a dummy stub for fork() */
20579 $ac_main_return (1);
20580 $ac_main_return (0);
20583 rm -f conftest$ac_exeext
20584 if { (eval echo "$as_me:20584: \"$ac_link\"") >&5
20585 (eval $ac_link) 2>&5
20587 echo "$as_me:20587: \$? = $ac_status" >&5
20588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20589 { (eval echo "$as_me:20589: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:20592: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_func_fork_works=yes
20596 echo "$as_me: program exited with status $ac_status" >&5
20597 echo "$as_me: failed program was:" >&5
20598 cat conftest.$ac_ext >&5
20599 ac_cv_func_fork_works=no
20601 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20604 echo "$as_me:20604: result: $ac_cv_func_fork_works" >&5
20605 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20608 if test "x$ac_cv_func_fork_works" = xcross; then
20610 *-*-amigaos* | *-*-msdosdjgpp*)
20611 # Override, as these systems have only a dummy fork() stub
20612 ac_cv_func_fork_works=no
20615 ac_cv_func_fork_works=yes
20618 { echo "$as_me:20618: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
20619 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
20621 ac_cv_func_vfork_works=$ac_cv_func_vfork
20622 if test "x$ac_cv_func_vfork" = xyes; then
20623 echo "$as_me:20623: checking for working vfork" >&5
20624 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20625 if test "${ac_cv_func_vfork_works+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 if test "$cross_compiling" = yes; then
20629 ac_cv_func_vfork_works=cross
20631 cat >conftest.$ac_ext <<_ACEOF
20632 #line 20632 "configure"
20633 #include "confdefs.h"
20634 /* Thanks to Paul Eggert for this test. */
20636 #include <sys/types.h>
20637 #include <sys/stat.h>
20639 # include <unistd.h>
20642 # include <vfork.h>
20644 /* On some sparc systems, changes by the child to local and incoming
20645 argument registers are propagated back to the parent. The compiler
20646 is told about this with #include <vfork.h>, but some compilers
20647 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20648 static variable whose address is put into a register that is
20649 clobbered by the vfork. */
20652 sparc_address_test (int arg)
20654 sparc_address_test (arg) int arg;
20657 static pid_t child;
20675 pid_t parent = getpid ();
20678 sparc_address_test ();
20683 /* Here is another test for sparc vfork register problems. This
20684 test uses lots of local variables, at least as many local
20685 variables as main has allocated so far including compiler
20686 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20687 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20688 reuse the register of parent for one of the local variables,
20689 since it will think that parent can't possibly be used any more
20690 in this routine. Assigning to the local variable will thus
20691 munge parent in the parent process. */
20693 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20694 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20695 /* Convince the compiler that p..p7 are live; otherwise, it might
20696 use the same hardware register for all 8 local variables. */
20697 if (p != p1 || p != p2 || p != p3 || p != p4
20698 || p != p5 || p != p6 || p != p7)
20701 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20702 from child file descriptors. If the child closes a descriptor
20703 before it execs or exits, this munges the parent's descriptor
20704 as well. Test for this by closing stdout in the child. */
20705 _exit(close(fileno(stdout)) != 0);
20710 while (wait(&status) != child)
20713 /* Was there some problem with vforking? */
20716 /* Did the child fail? (This shouldn't happen.) */
20719 /* Did the vfork/compiler bug occur? */
20720 || parent != getpid()
20722 /* Did the file descriptor bug occur? */
20723 || fstat(fileno(stdout), &st) != 0
20728 rm -f conftest$ac_exeext
20729 if { (eval echo "$as_me:20729: \"$ac_link\"") >&5
20730 (eval $ac_link) 2>&5
20732 echo "$as_me:20732: \$? = $ac_status" >&5
20733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20734 { (eval echo "$as_me:20734: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20737 echo "$as_me:20737: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_cv_func_vfork_works=yes
20741 echo "$as_me: program exited with status $ac_status" >&5
20742 echo "$as_me: failed program was:" >&5
20743 cat conftest.$ac_ext >&5
20744 ac_cv_func_vfork_works=no
20746 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20749 echo "$as_me:20749: result: $ac_cv_func_vfork_works" >&5
20750 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20753 if test "x$ac_cv_func_fork_works" = xcross; then
20754 ac_cv_func_vfork_works=ac_cv_func_vfork
20755 { echo "$as_me:20755: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
20756 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
20759 if test "x$ac_cv_func_vfork_works" = xyes; then
20761 cat >>confdefs.h <<\EOF
20762 #define HAVE_WORKING_VFORK 1
20767 cat >>confdefs.h <<\EOF
20772 if test "x$ac_cv_func_fork_works" = xyes; then
20774 cat >>confdefs.h <<\EOF
20775 #define HAVE_WORKING_FORK 1
20780 # special check for test/ditto.c
20782 echo "$as_me:20782: checking for openpty in -lutil" >&5
20783 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
20784 if test "${ac_cv_lib_util_openpty+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 ac_check_lib_save_LIBS=$LIBS
20788 LIBS="-lutil $LIBS"
20789 cat >conftest.$ac_ext <<_ACEOF
20790 #line 20790 "configure"
20791 #include "confdefs.h"
20793 /* Override any gcc2 internal prototype to avoid an error. */
20797 /* We use char because int might match the return type of a gcc2
20798 builtin and then its argument prototype would still apply. */
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (eval echo "$as_me:20809: \"$ac_link\"") >&5
20810 (eval $ac_link) 2>&5
20812 echo "$as_me:20812: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -s conftest$ac_exeext'
20815 { (eval echo "$as_me:20815: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:20818: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_cv_lib_util_openpty=yes
20822 echo "$as_me: failed program was:" >&5
20823 cat conftest.$ac_ext >&5
20824 ac_cv_lib_util_openpty=no
20826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20827 LIBS=$ac_check_lib_save_LIBS
20829 echo "$as_me:20829: result: $ac_cv_lib_util_openpty" >&5
20830 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
20831 if test $ac_cv_lib_util_openpty = yes; then
20837 echo "$as_me:20837: checking for openpty header" >&5
20838 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
20839 if test "${cf_cv_func_openpty+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 cf_save_LIBS="$LIBS"
20844 test $cf_cv_lib_util = yes && {
20845 cf_add_libs="-lutil"
20846 # Filter out duplicates - this happens with badly-designed ".pc" files...
20847 for cf_add_1lib in $LIBS
20849 for cf_add_2lib in $cf_add_libs
20851 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20857 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20859 LIBS="$cf_add_libs"
20861 for cf_header in pty.h libutil.h util.h
20863 cat >conftest.$ac_ext <<_ACEOF
20864 #line 20864 "configure"
20865 #include "confdefs.h"
20867 #include <$cf_header>
20873 int x = openpty((int *)0, (int *)0, (char *)0,
20874 (struct termios *)0, (struct winsize *)0);
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (eval echo "$as_me:20881: \"$ac_link\"") >&5
20882 (eval $ac_link) 2>&5
20884 echo "$as_me:20884: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:20887: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:20890: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20893 cf_cv_func_openpty=$cf_header
20897 echo "$as_me: failed program was:" >&5
20898 cat conftest.$ac_ext >&5
20900 cf_cv_func_openpty=no
20903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20905 LIBS="$cf_save_LIBS"
20908 echo "$as_me:20908: result: $cf_cv_func_openpty" >&5
20909 echo "${ECHO_T}$cf_cv_func_openpty" >&6
20911 if test "$cf_cv_func_openpty" != no ; then
20913 cat >>confdefs.h <<EOF
20914 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
20917 cat >>confdefs.h <<\EOF
20918 #define USE_XTERM_PTY 1
20921 if test "x$cf_cv_lib_util" = xyes ; then
20923 cf_add_libs="-lutil"
20924 # Filter out duplicates - this happens with badly-designed ".pc" files...
20925 for cf_add_1lib in $TEST_LIBS
20927 for cf_add_2lib in $cf_add_libs
20929 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20935 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20937 TEST_LIBS="$cf_add_libs"
20942 if test "$with_hashed_db" != no ; then
20944 cat >>confdefs.h <<\EOF
20945 #define USE_HASHED_DB 1
20948 case $with_hashed_db in
20952 if test -d "$with_hashed_db" ; then
20954 if test -n "$with_hashed_db/include" ; then
20955 for cf_add_incdir in $with_hashed_db/include
20957 while test $cf_add_incdir != /usr/include
20959 if test -d $cf_add_incdir
20962 if test -n "$CFLAGS$CPPFLAGS" ; then
20963 # a loop is needed to ensure we can add subdirs of existing dirs
20964 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
20965 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
20966 cf_have_incdir=yes; break
20971 if test "$cf_have_incdir" = no ; then
20972 if test "$cf_add_incdir" = /usr/local/include ; then
20973 if test "$GCC" = yes
20975 cf_save_CPPFLAGS=$CPPFLAGS
20977 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20978 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
20980 cat >conftest.$ac_ext <<_ACEOF
20981 #line 20981 "configure"
20982 #include "confdefs.h"
20992 rm -f conftest.$ac_objext
20993 if { (eval echo "$as_me:20993: \"$ac_compile\"") >&5
20994 (eval $ac_compile) 2>&5
20996 echo "$as_me:20996: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -s conftest.$ac_objext'
20999 { (eval echo "$as_me:20999: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:21002: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21006 echo "$as_me: failed program was:" >&5
21007 cat conftest.$ac_ext >&5
21010 rm -f conftest.$ac_objext conftest.$ac_ext
21011 CPPFLAGS=$cf_save_CPPFLAGS
21016 if test "$cf_have_incdir" = no ; then
21017 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
21019 echo "${as_me:-configure}:21019: testing adding $cf_add_incdir to include-path ..." 1>&5
21021 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
21023 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
21024 test "$cf_top_incdir" = "$cf_add_incdir" && break
21025 cf_add_incdir="$cf_top_incdir"
21036 if test -n "$with_hashed_db/lib" ; then
21037 for cf_add_libdir in $with_hashed_db/lib
21039 if test $cf_add_libdir = /usr/lib ; then
21041 elif test -d $cf_add_libdir
21044 if test -n "$LDFLAGS$LIBS" ; then
21045 # a loop is needed to ensure we can add subdirs of existing dirs
21046 for cf_test_libdir in $LDFLAGS $LIBS ; do
21047 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
21048 cf_have_libdir=yes; break
21052 if test "$cf_have_libdir" = no ; then
21053 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
21055 echo "${as_me:-configure}:21055: testing adding $cf_add_libdir to library-path ..." 1>&5
21057 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
21064 case "$with_hashed_db" in
21066 { echo "$as_me:21066: WARNING: no such directory $with_hashed_db" >&5
21067 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
21073 test "x$prefix" != "xNONE" && \
21074 test -d "$prefix" && \
21076 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
21077 test -d $prefix/include && cf_search="$cf_search $prefix/include"
21078 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
21079 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
21080 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
21081 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
21084 for cf_subdir_prefix in \
21093 test "x$cf_subdir_prefix" != "x$prefix" && \
21094 test -d "$cf_subdir_prefix" && \
21095 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
21096 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
21097 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
21098 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
21099 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
21100 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
21101 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"
21106 for cf_item in $cf_search
21109 (*/$with_hashed_db)
21111 if test -n "$cf_item" ; then
21112 for cf_add_incdir in $cf_item
21114 while test $cf_add_incdir != /usr/include
21116 if test -d $cf_add_incdir
21119 if test -n "$CFLAGS$CPPFLAGS" ; then
21120 # a loop is needed to ensure we can add subdirs of existing dirs
21121 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
21122 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
21123 cf_have_incdir=yes; break
21128 if test "$cf_have_incdir" = no ; then
21129 if test "$cf_add_incdir" = /usr/local/include ; then
21130 if test "$GCC" = yes
21132 cf_save_CPPFLAGS=$CPPFLAGS
21134 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21135 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
21137 cat >conftest.$ac_ext <<_ACEOF
21138 #line 21138 "configure"
21139 #include "confdefs.h"
21149 rm -f conftest.$ac_objext
21150 if { (eval echo "$as_me:21150: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>&5
21153 echo "$as_me:21153: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -s conftest.$ac_objext'
21156 { (eval echo "$as_me:21156: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21159 echo "$as_me:21159: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21163 echo "$as_me: failed program was:" >&5
21164 cat conftest.$ac_ext >&5
21167 rm -f conftest.$ac_objext conftest.$ac_ext
21168 CPPFLAGS=$cf_save_CPPFLAGS
21173 if test "$cf_have_incdir" = no ; then
21174 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
21176 echo "${as_me:-configure}:21176: testing adding $cf_add_incdir to include-path ..." 1>&5
21178 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
21180 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
21181 test "$cf_top_incdir" = "$cf_add_incdir" && break
21182 cf_add_incdir="$cf_top_incdir"
21199 test "x$prefix" != "xNONE" && \
21200 test -d "$prefix" && \
21202 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
21203 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
21204 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
21205 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
21206 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
21207 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
21210 for cf_subdir_prefix in \
21219 test "x$cf_subdir_prefix" != "x$prefix" && \
21220 test -d "$cf_subdir_prefix" && \
21221 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
21222 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
21223 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
21224 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
21225 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
21226 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
21227 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"
21232 for cf_item in $cf_search
21235 (*/$with_hashed_db)
21237 if test -n "$cf_item" ; then
21238 for cf_add_libdir in $cf_item
21240 if test $cf_add_libdir = /usr/lib ; then
21242 elif test -d $cf_add_libdir
21245 if test -n "$LDFLAGS$LIBS" ; then
21246 # a loop is needed to ensure we can add subdirs of existing dirs
21247 for cf_test_libdir in $LDFLAGS $LIBS ; do
21248 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
21249 cf_have_libdir=yes; break
21253 if test "$cf_have_libdir" = no ; then
21254 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
21256 echo "${as_me:-configure}:21256: testing adding $cf_add_libdir to library-path ..." 1>&5
21258 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
21273 echo "$as_me:21273: checking for db.h" >&5
21274 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
21275 if test "${ac_cv_header_db_h+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21279 #line 21279 "configure"
21280 #include "confdefs.h"
21283 if { (eval echo "$as_me:21283: \"$ac_cpp conftest.$ac_ext\"") >&5
21284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21286 egrep -v '^ *\+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:21289: \$? = $ac_status" >&5
21290 (exit $ac_status); } >/dev/null; then
21291 if test -s conftest.err; then
21292 ac_cpp_err=$ac_c_preproc_warn_flag
21299 if test -z "$ac_cpp_err"; then
21300 ac_cv_header_db_h=yes
21302 echo "$as_me: failed program was:" >&5
21303 cat conftest.$ac_ext >&5
21304 ac_cv_header_db_h=no
21306 rm -f conftest.err conftest.$ac_ext
21308 echo "$as_me:21308: result: $ac_cv_header_db_h" >&5
21309 echo "${ECHO_T}$ac_cv_header_db_h" >&6
21310 if test $ac_cv_header_db_h = yes; then
21312 echo "$as_me:21312: checking for version of db" >&5
21313 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
21314 if test "${cf_cv_hashed_db_version+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 cf_cv_hashed_db_version=unknown
21320 for cf_db_version in 1 2 3 4 5 6
21323 echo "${as_me:-configure}:21323: testing checking for db version $cf_db_version ..." 1>&5
21325 cat >conftest.$ac_ext <<_ACEOF
21326 #line 21326 "configure"
21327 #include "confdefs.h"
21329 $ac_includes_default
21332 #ifdef DB_VERSION_MAJOR
21333 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
21334 #if $cf_db_version == DB_VERSION_MAJOR
21340 #if $cf_db_version == 1
21341 /* ok: assuming this is DB 1.8.5 */
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:21356: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>&5
21359 echo "$as_me:21359: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (eval echo "$as_me:21362: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21365 echo "$as_me:21365: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21368 cf_cv_hashed_db_version=$cf_db_version
21372 echo "$as_me: failed program was:" >&5
21373 cat conftest.$ac_ext >&5
21375 rm -f conftest.$ac_objext conftest.$ac_ext
21379 echo "$as_me:21379: result: $cf_cv_hashed_db_version" >&5
21380 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
21382 if test "$cf_cv_hashed_db_version" = unknown ; then
21383 { { echo "$as_me:21383: error: Cannot determine version of db" >&5
21384 echo "$as_me: error: Cannot determine version of db" >&2;}
21385 { (exit 1); exit 1; }; }
21388 echo "$as_me:21388: checking for db libraries" >&5
21389 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
21390 if test "${cf_cv_hashed_db_libs+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 cf_cv_hashed_db_libs=unknown
21395 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
21397 cf_save_libs="$LIBS"
21398 if test -n "$cf_db_libs"; then
21400 cf_add_libs="-l$cf_db_libs"
21401 # Filter out duplicates - this happens with badly-designed ".pc" files...
21402 for cf_add_1lib in $LIBS
21404 for cf_add_2lib in $cf_add_libs
21406 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21412 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21414 LIBS="$cf_add_libs"
21418 echo "${as_me:-configure}:21418: testing checking for library "$cf_db_libs" ..." 1>&5
21420 cat >conftest.$ac_ext <<_ACEOF
21421 #line 21421 "configure"
21422 #include "confdefs.h"
21424 $ac_includes_default
21431 char *path = "/tmp/foo";
21432 #ifdef DB_VERSION_MAJOR
21433 #if DB_VERSION_MAJOR >= 4
21435 db_create(&result, NULL, 0);
21436 result->open(result,
21443 #elif DB_VERSION_MAJOR >= 3
21445 db_create(&result, NULL, 0);
21446 result->open(result,
21452 #elif DB_VERSION_MAJOR >= 2
21461 #endif /* DB_VERSION_MAJOR */
21463 DB *result = dbopen(path,
21469 ${cf_cv_main_return:-return}(result != 0)
21475 rm -f conftest.$ac_objext conftest$ac_exeext
21476 if { (eval echo "$as_me:21476: \"$ac_link\"") >&5
21477 (eval $ac_link) 2>&5
21479 echo "$as_me:21479: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
21481 { ac_try='test -s conftest$ac_exeext'
21482 { (eval echo "$as_me:21482: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:21485: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21488 if test -n "$cf_db_libs" ; then
21489 cf_cv_hashed_db_libs=$cf_db_libs
21491 cf_cv_hashed_db_libs=default
21493 LIBS="$cf_save_libs"
21497 echo "$as_me: failed program was:" >&5
21498 cat conftest.$ac_ext >&5
21500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21501 LIBS="$cf_save_libs"
21505 echo "$as_me:21505: result: $cf_cv_hashed_db_libs" >&5
21506 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
21508 if test "$cf_cv_hashed_db_libs" = unknown ; then
21509 { { echo "$as_me:21509: error: Cannot determine library for db" >&5
21510 echo "$as_me: error: Cannot determine library for db" >&2;}
21511 { (exit 1); exit 1; }; }
21512 elif test "$cf_cv_hashed_db_libs" != default ; then
21514 cf_add_libs="-l$cf_cv_hashed_db_libs"
21515 # Filter out duplicates - this happens with badly-designed ".pc" files...
21516 for cf_add_1lib in $LIBS
21518 for cf_add_2lib in $cf_add_libs
21520 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21526 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21528 LIBS="$cf_add_libs"
21535 { { echo "$as_me:21535: error: Cannot find db.h" >&5
21536 echo "$as_me: error: Cannot find db.h" >&2;}
21537 { (exit 1); exit 1; }; }
21543 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
21544 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
21545 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
21548 # Just in case, check if the C compiler has a bool type.
21550 echo "$as_me:21550: checking if we should include stdbool.h" >&5
21551 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
21553 if test "${cf_cv_header_stdbool_h+set}" = set; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 cat >conftest.$ac_ext <<_ACEOF
21558 #line 21558 "configure"
21559 #include "confdefs.h"
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:21570: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>&5
21573 echo "$as_me:21573: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -s conftest.$ac_objext'
21576 { (eval echo "$as_me:21576: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:21579: \$? = $ac_status" >&5
21580 (exit $ac_status); }; }; then
21581 cf_cv_header_stdbool_h=0
21583 echo "$as_me: failed program was:" >&5
21584 cat conftest.$ac_ext >&5
21585 cat >conftest.$ac_ext <<_ACEOF
21586 #line 21586 "configure"
21587 #include "confdefs.h"
21590 #include <stdbool.h>
21601 rm -f conftest.$ac_objext
21602 if { (eval echo "$as_me:21602: \"$ac_compile\"") >&5
21603 (eval $ac_compile) 2>&5
21605 echo "$as_me:21605: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -s conftest.$ac_objext'
21608 { (eval echo "$as_me:21608: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21611 echo "$as_me:21611: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 cf_cv_header_stdbool_h=1
21615 echo "$as_me: failed program was:" >&5
21616 cat conftest.$ac_ext >&5
21617 cf_cv_header_stdbool_h=0
21619 rm -f conftest.$ac_objext conftest.$ac_ext
21621 rm -f conftest.$ac_objext conftest.$ac_ext
21624 if test "$cf_cv_header_stdbool_h" = 1
21625 then echo "$as_me:21625: result: yes" >&5
21626 echo "${ECHO_T}yes" >&6
21627 else echo "$as_me:21627: result: no" >&5
21628 echo "${ECHO_T}no" >&6
21631 echo "$as_me:21631: checking for builtin bool type" >&5
21632 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
21634 if test "${cf_cv_cc_bool_type+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 cat >conftest.$ac_ext <<_ACEOF
21639 #line 21639 "configure"
21640 #include "confdefs.h"
21643 #include <sys/types.h>
21653 rm -f conftest.$ac_objext
21654 if { (eval echo "$as_me:21654: \"$ac_compile\"") >&5
21655 (eval $ac_compile) 2>&5
21657 echo "$as_me:21657: \$? = $ac_status" >&5
21658 (exit $ac_status); } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:21660: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21663 echo "$as_me:21663: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 cf_cv_cc_bool_type=1
21667 echo "$as_me: failed program was:" >&5
21668 cat conftest.$ac_ext >&5
21669 cf_cv_cc_bool_type=0
21671 rm -f conftest.$ac_objext conftest.$ac_ext
21675 if test "$cf_cv_cc_bool_type" = 1
21676 then echo "$as_me:21676: result: yes" >&5
21677 echo "${ECHO_T}yes" >&6
21678 else echo "$as_me:21678: result: no" >&5
21679 echo "${ECHO_T}no" >&6
21682 # Check for C++ compiler characteristics (and ensure that it's there!)
21683 if test -n "$CXX" ; then
21685 ac_cpp='$CXXCPP $CPPFLAGS'
21686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21689 ac_main_return=return
21691 if test -n "$GXX" ; then
21694 LIBS="$LIBS $CXXLIBS"
21695 echo "$as_me:21695: checking if we already have C++ library" >&5
21696 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21698 #line 21698 "configure"
21699 #include "confdefs.h"
21701 #include <iostream>
21706 std::cout << "Hello World!" << std::endl;
21711 rm -f conftest.$ac_objext conftest$ac_exeext
21712 if { (eval echo "$as_me:21712: \"$ac_link\"") >&5
21713 (eval $ac_link) 2>&5
21715 echo "$as_me:21715: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -s conftest$ac_exeext'
21718 { (eval echo "$as_me:21718: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:21721: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 cf_have_libstdcpp=yes
21725 echo "$as_me: failed program was:" >&5
21726 cat conftest.$ac_ext >&5
21727 cf_have_libstdcpp=no
21729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21730 echo "$as_me:21730: result: $cf_have_libstdcpp" >&5
21731 echo "${ECHO_T}$cf_have_libstdcpp" >&6
21734 if test $cf_have_libstdcpp != yes
21736 case $cf_cv_system_name in
21738 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
21739 cf_stdcpp_libname=stdcpp
21741 cf_stdcpp_libname=stdc++
21745 cf_stdcpp_libname=stdc++
21749 echo "$as_me:21749: checking for library $cf_stdcpp_libname" >&5
21750 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
21751 if test "${cf_cv_libstdcpp+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 LIBS="$LIBS $CXXLIBS"
21758 cf_add_libs="-l$cf_stdcpp_libname"
21759 # Filter out duplicates - this happens with badly-designed ".pc" files...
21760 for cf_add_1lib in $LIBS
21762 for cf_add_2lib in $cf_add_libs
21764 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21770 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21772 LIBS="$cf_add_libs"
21774 cat >conftest.$ac_ext <<_ACEOF
21775 #line 21775 "configure"
21776 #include "confdefs.h"
21778 #include <iostream>
21783 std::cout << "Hello World!" << std::endl;
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (eval echo "$as_me:21789: \"$ac_link\"") >&5
21790 (eval $ac_link) 2>&5
21792 echo "$as_me:21792: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
21794 { ac_try='test -s conftest$ac_exeext'
21795 { (eval echo "$as_me:21795: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21798 echo "$as_me:21798: \$? = $ac_status" >&5
21799 (exit $ac_status); }; }; then
21800 cf_cv_libstdcpp=yes
21802 echo "$as_me: failed program was:" >&5
21803 cat conftest.$ac_ext >&5
21806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21810 echo "$as_me:21810: result: $cf_cv_libstdcpp" >&5
21811 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
21812 test "$cf_cv_libstdcpp" = yes && {
21813 cf_add_libs="-l$cf_stdcpp_libname"
21814 # Filter out duplicates - this happens with badly-designed ".pc" files...
21815 for cf_add_1lib in $CXXLIBS
21817 for cf_add_2lib in $cf_add_libs
21819 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21825 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21827 CXXLIBS="$cf_add_libs"
21832 echo "$as_me:21832: checking whether $CXX understands -c and -o together" >&5
21833 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
21834 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 cat > conftest.$ac_ext <<CF_EOF
21841 ${cf_cv_main_return:-return}(0);
21844 # We do the test twice because some compilers refuse to overwrite an
21845 # existing .o file with -o, though they will create one.
21846 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21847 if { (eval echo "$as_me:21847: \"$ac_try\"") >&5
21848 (eval $ac_try) 2>&5
21850 echo "$as_me:21850: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
21852 test -f conftest2.$ac_objext && { (eval echo "$as_me:21852: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21855 echo "$as_me:21855: \$? = $ac_status" >&5
21856 (exit $ac_status); };
21858 eval cf_cv_prog_CXX_c_o=yes
21860 eval cf_cv_prog_CXX_c_o=no
21865 if test $cf_cv_prog_CXX_c_o = yes; then
21866 echo "$as_me:21866: result: yes" >&5
21867 echo "${ECHO_T}yes" >&6
21869 echo "$as_me:21869: result: no" >&5
21870 echo "${ECHO_T}no" >&6
21873 case $GXX_VERSION in
21879 cf_cxx_library=unknown
21880 case $cf_cv_system_name in
21888 if test "$GXX" = yes; then
21889 echo "$as_me:21889: checking for lib$cf_gpp_libname" >&5
21890 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
21893 cf_add_libs="-l$cf_gpp_libname"
21894 # Filter out duplicates - this happens with badly-designed ".pc" files...
21895 for cf_add_1lib in $LIBS
21897 for cf_add_2lib in $cf_add_libs
21899 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21905 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21907 LIBS="$cf_add_libs"
21909 cat >conftest.$ac_ext <<_ACEOF
21910 #line 21910 "configure"
21911 #include "confdefs.h"
21913 #include <$cf_gpp_libname/builtin.h>
21918 two_arg_error_handler_t foo2 = lib_error_handler
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (eval echo "$as_me:21924: \"$ac_link\"") >&5
21925 (eval $ac_link) 2>&5
21927 echo "$as_me:21927: \$? = $ac_status" >&5
21928 (exit $ac_status); } &&
21929 { ac_try='test -s conftest$ac_exeext'
21930 { (eval echo "$as_me:21930: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21933 echo "$as_me:21933: \$? = $ac_status" >&5
21934 (exit $ac_status); }; }; then
21937 cf_add_libs="-l$cf_gpp_libname"
21938 # Filter out duplicates - this happens with badly-designed ".pc" files...
21939 for cf_add_1lib in $CXXLIBS
21941 for cf_add_2lib in $cf_add_libs
21943 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21949 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21951 CXXLIBS="$cf_add_libs"
21953 if test "$cf_gpp_libname" = cpp ; then
21955 cat >>confdefs.h <<\EOF
21956 #define HAVE_GPP_BUILTIN_H 1
21961 cat >>confdefs.h <<\EOF
21962 #define HAVE_GXX_BUILTIN_H 1
21967 echo "$as_me: failed program was:" >&5
21968 cat conftest.$ac_ext >&5
21969 cat >conftest.$ac_ext <<_ACEOF
21970 #line 21970 "configure"
21971 #include "confdefs.h"
21973 #include <builtin.h>
21978 two_arg_error_handler_t foo2 = lib_error_handler
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (eval echo "$as_me:21984: \"$ac_link\"") >&5
21985 (eval $ac_link) 2>&5
21987 echo "$as_me:21987: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try='test -s conftest$ac_exeext'
21990 { (eval echo "$as_me:21990: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:21993: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21997 cf_add_libs="-l$cf_gpp_libname"
21998 # Filter out duplicates - this happens with badly-designed ".pc" files...
21999 for cf_add_1lib in $CXXLIBS
22001 for cf_add_2lib in $cf_add_libs
22003 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22009 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22011 CXXLIBS="$cf_add_libs"
22013 cat >>confdefs.h <<\EOF
22014 #define HAVE_BUILTIN_H 1
22018 echo "$as_me: failed program was:" >&5
22019 cat conftest.$ac_ext >&5
22022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22026 echo "$as_me:22026: result: $cf_cxx_library" >&5
22027 echo "${ECHO_T}$cf_cxx_library" >&6
22037 ac_cpp='$CXXCPP $CPPFLAGS'
22038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22041 ac_main_return=return
22042 echo "$as_me:22042: checking how to run the C++ preprocessor" >&5
22043 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
22044 if test -z "$CXXCPP"; then
22045 if test "${ac_cv_prog_CXXCPP+set}" = set; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 # Double quotes because CXXCPP needs to be expanded
22049 for CXXCPP in "$CXX -E" "/lib/cpp"
22051 ac_preproc_ok=false
22052 for ac_cxx_preproc_warn_flag in '' yes
22054 # Use a header file that comes with gcc, so configuring glibc
22055 # with a fresh cross-compiler works.
22056 # On the NeXT, cc -E runs the code through the compiler's parser,
22057 # not just through cpp. "Syntax error" is here to catch this case.
22058 cat >conftest.$ac_ext <<_ACEOF
22059 #line 22059 "configure"
22060 #include "confdefs.h"
22061 #include <assert.h>
22064 if { (eval echo "$as_me:22064: \"$ac_cpp conftest.$ac_ext\"") >&5
22065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22067 egrep -v '^ *\+' conftest.er1 >conftest.err
22069 cat conftest.err >&5
22070 echo "$as_me:22070: \$? = $ac_status" >&5
22071 (exit $ac_status); } >/dev/null; then
22072 if test -s conftest.err; then
22073 ac_cpp_err=$ac_cxx_preproc_warn_flag
22080 if test -z "$ac_cpp_err"; then
22083 echo "$as_me: failed program was:" >&5
22084 cat conftest.$ac_ext >&5
22085 # Broken: fails on valid input.
22088 rm -f conftest.err conftest.$ac_ext
22090 # OK, works on sane cases. Now check whether non-existent headers
22091 # can be detected and how.
22092 cat >conftest.$ac_ext <<_ACEOF
22093 #line 22093 "configure"
22094 #include "confdefs.h"
22095 #include <ac_nonexistent.h>
22097 if { (eval echo "$as_me:22097: \"$ac_cpp conftest.$ac_ext\"") >&5
22098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22100 egrep -v '^ *\+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:22103: \$? = $ac_status" >&5
22104 (exit $ac_status); } >/dev/null; then
22105 if test -s conftest.err; then
22106 ac_cpp_err=$ac_cxx_preproc_warn_flag
22113 if test -z "$ac_cpp_err"; then
22114 # Broken: success on invalid input.
22117 echo "$as_me: failed program was:" >&5
22118 cat conftest.$ac_ext >&5
22119 # Passes both tests.
22123 rm -f conftest.err conftest.$ac_ext
22126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22127 rm -f conftest.err conftest.$ac_ext
22128 if $ac_preproc_ok; then
22133 ac_cv_prog_CXXCPP=$CXXCPP
22136 CXXCPP=$ac_cv_prog_CXXCPP
22138 ac_cv_prog_CXXCPP=$CXXCPP
22140 echo "$as_me:22140: result: $CXXCPP" >&5
22141 echo "${ECHO_T}$CXXCPP" >&6
22142 ac_preproc_ok=false
22143 for ac_cxx_preproc_warn_flag in '' yes
22145 # Use a header file that comes with gcc, so configuring glibc
22146 # with a fresh cross-compiler works.
22147 # On the NeXT, cc -E runs the code through the compiler's parser,
22148 # not just through cpp. "Syntax error" is here to catch this case.
22149 cat >conftest.$ac_ext <<_ACEOF
22150 #line 22150 "configure"
22151 #include "confdefs.h"
22152 #include <assert.h>
22155 if { (eval echo "$as_me:22155: \"$ac_cpp conftest.$ac_ext\"") >&5
22156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22158 egrep -v '^ *\+' conftest.er1 >conftest.err
22160 cat conftest.err >&5
22161 echo "$as_me:22161: \$? = $ac_status" >&5
22162 (exit $ac_status); } >/dev/null; then
22163 if test -s conftest.err; then
22164 ac_cpp_err=$ac_cxx_preproc_warn_flag
22171 if test -z "$ac_cpp_err"; then
22174 echo "$as_me: failed program was:" >&5
22175 cat conftest.$ac_ext >&5
22176 # Broken: fails on valid input.
22179 rm -f conftest.err conftest.$ac_ext
22181 # OK, works on sane cases. Now check whether non-existent headers
22182 # can be detected and how.
22183 cat >conftest.$ac_ext <<_ACEOF
22184 #line 22184 "configure"
22185 #include "confdefs.h"
22186 #include <ac_nonexistent.h>
22188 if { (eval echo "$as_me:22188: \"$ac_cpp conftest.$ac_ext\"") >&5
22189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22191 egrep -v '^ *\+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:22194: \$? = $ac_status" >&5
22195 (exit $ac_status); } >/dev/null; then
22196 if test -s conftest.err; then
22197 ac_cpp_err=$ac_cxx_preproc_warn_flag
22204 if test -z "$ac_cpp_err"; then
22205 # Broken: success on invalid input.
22208 echo "$as_me: failed program was:" >&5
22209 cat conftest.$ac_ext >&5
22210 # Passes both tests.
22214 rm -f conftest.err conftest.$ac_ext
22217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22218 rm -f conftest.err conftest.$ac_ext
22219 if $ac_preproc_ok; then
22222 { { echo "$as_me:22222: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
22223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
22224 { (exit 1); exit 1; }; }
22228 ac_cpp='$CXXCPP $CPPFLAGS'
22229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22232 ac_main_return=return
22234 for ac_header in typeinfo
22236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22237 echo "$as_me:22237: checking for $ac_header" >&5
22238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22243 #line 22243 "configure"
22244 #include "confdefs.h"
22245 #include <$ac_header>
22247 if { (eval echo "$as_me:22247: \"$ac_cpp conftest.$ac_ext\"") >&5
22248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22250 egrep -v '^ *\+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 echo "$as_me:22253: \$? = $ac_status" >&5
22254 (exit $ac_status); } >/dev/null; then
22255 if test -s conftest.err; then
22256 ac_cpp_err=$ac_cxx_preproc_warn_flag
22263 if test -z "$ac_cpp_err"; then
22264 eval "$as_ac_Header=yes"
22266 echo "$as_me: failed program was:" >&5
22267 cat conftest.$ac_ext >&5
22268 eval "$as_ac_Header=no"
22270 rm -f conftest.err conftest.$ac_ext
22272 echo "$as_me:22272: result: `eval echo '${'$as_ac_Header'}'`" >&5
22273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22275 cat >>confdefs.h <<EOF
22276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22282 for ac_header in iostream
22284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22285 echo "$as_me:22285: checking for $ac_header" >&5
22286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 cat >conftest.$ac_ext <<_ACEOF
22291 #line 22291 "configure"
22292 #include "confdefs.h"
22293 #include <$ac_header>
22295 if { (eval echo "$as_me:22295: \"$ac_cpp conftest.$ac_ext\"") >&5
22296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22298 egrep -v '^ *\+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 echo "$as_me:22301: \$? = $ac_status" >&5
22302 (exit $ac_status); } >/dev/null; then
22303 if test -s conftest.err; then
22304 ac_cpp_err=$ac_cxx_preproc_warn_flag
22311 if test -z "$ac_cpp_err"; then
22312 eval "$as_ac_Header=yes"
22314 echo "$as_me: failed program was:" >&5
22315 cat conftest.$ac_ext >&5
22316 eval "$as_ac_Header=no"
22318 rm -f conftest.err conftest.$ac_ext
22320 echo "$as_me:22320: result: `eval echo '${'$as_ac_Header'}'`" >&5
22321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22323 cat >>confdefs.h <<EOF
22324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22330 if test x"$ac_cv_header_iostream" = xyes ; then
22331 echo "$as_me:22331: checking if iostream uses std-namespace" >&5
22332 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22334 #line 22334 "configure"
22335 #include "confdefs.h"
22337 #include <iostream>
22344 cerr << "testing" << endl;
22350 rm -f conftest.$ac_objext
22351 if { (eval echo "$as_me:22351: \"$ac_compile\"") >&5
22352 (eval $ac_compile) 2>&5
22354 echo "$as_me:22354: \$? = $ac_status" >&5
22355 (exit $ac_status); } &&
22356 { ac_try='test -s conftest.$ac_objext'
22357 { (eval echo "$as_me:22357: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22360 echo "$as_me:22360: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 cf_iostream_namespace=yes
22364 echo "$as_me: failed program was:" >&5
22365 cat conftest.$ac_ext >&5
22366 cf_iostream_namespace=no
22368 rm -f conftest.$ac_objext conftest.$ac_ext
22369 echo "$as_me:22369: result: $cf_iostream_namespace" >&5
22370 echo "${ECHO_T}$cf_iostream_namespace" >&6
22371 if test "$cf_iostream_namespace" = yes ; then
22373 cat >>confdefs.h <<\EOF
22374 #define IOSTREAM_NAMESPACE 1
22380 echo "$as_me:22380: checking if we should include stdbool.h" >&5
22381 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
22383 if test "${cf_cv_header_stdbool_h+set}" = set; then
22384 echo $ECHO_N "(cached) $ECHO_C" >&6
22387 cat >conftest.$ac_ext <<_ACEOF
22388 #line 22388 "configure"
22389 #include "confdefs.h"
22399 rm -f conftest.$ac_objext
22400 if { (eval echo "$as_me:22400: \"$ac_compile\"") >&5
22401 (eval $ac_compile) 2>&5
22403 echo "$as_me:22403: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
22405 { ac_try='test -s conftest.$ac_objext'
22406 { (eval echo "$as_me:22406: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22409 echo "$as_me:22409: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 cf_cv_header_stdbool_h=0
22413 echo "$as_me: failed program was:" >&5
22414 cat conftest.$ac_ext >&5
22415 cat >conftest.$ac_ext <<_ACEOF
22416 #line 22416 "configure"
22417 #include "confdefs.h"
22420 #include <stdbool.h>
22431 rm -f conftest.$ac_objext
22432 if { (eval echo "$as_me:22432: \"$ac_compile\"") >&5
22433 (eval $ac_compile) 2>&5
22435 echo "$as_me:22435: \$? = $ac_status" >&5
22436 (exit $ac_status); } &&
22437 { ac_try='test -s conftest.$ac_objext'
22438 { (eval echo "$as_me:22438: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:22441: \$? = $ac_status" >&5
22442 (exit $ac_status); }; }; then
22443 cf_cv_header_stdbool_h=1
22445 echo "$as_me: failed program was:" >&5
22446 cat conftest.$ac_ext >&5
22447 cf_cv_header_stdbool_h=0
22449 rm -f conftest.$ac_objext conftest.$ac_ext
22451 rm -f conftest.$ac_objext conftest.$ac_ext
22454 if test "$cf_cv_header_stdbool_h" = 1
22455 then echo "$as_me:22455: result: yes" >&5
22456 echo "${ECHO_T}yes" >&6
22457 else echo "$as_me:22457: result: no" >&5
22458 echo "${ECHO_T}no" >&6
22461 echo "$as_me:22461: checking for builtin bool type" >&5
22462 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
22464 if test "${cf_cv_builtin_bool+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22469 #line 22469 "configure"
22470 #include "confdefs.h"
22473 #include <sys/types.h>
22483 rm -f conftest.$ac_objext
22484 if { (eval echo "$as_me:22484: \"$ac_compile\"") >&5
22485 (eval $ac_compile) 2>&5
22487 echo "$as_me:22487: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -s conftest.$ac_objext'
22490 { (eval echo "$as_me:22490: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22493 echo "$as_me:22493: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22495 cf_cv_builtin_bool=1
22497 echo "$as_me: failed program was:" >&5
22498 cat conftest.$ac_ext >&5
22499 cf_cv_builtin_bool=0
22501 rm -f conftest.$ac_objext conftest.$ac_ext
22505 if test "$cf_cv_builtin_bool" = 1
22506 then echo "$as_me:22506: result: yes" >&5
22507 echo "${ECHO_T}yes" >&6
22508 else echo "$as_me:22508: result: no" >&5
22509 echo "${ECHO_T}no" >&6
22512 echo "$as_me:22512: checking for size of bool" >&5
22513 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
22514 if test "${cf_cv_type_of_bool+set}" = set; then
22515 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 if test "$cross_compiling" = yes; then
22520 cf_cv_type_of_bool=unknown
22522 cat >conftest.$ac_ext <<_ACEOF
22523 #line 22523 "configure"
22524 #include "confdefs.h"
22526 #include <stdlib.h>
22529 #if defined(__cplusplus)
22531 #ifdef HAVE_GXX_BUILTIN_H
22532 #include <g++/builtin.h>
22533 #elif HAVE_GPP_BUILTIN_H
22534 #include <gpp/builtin.h>
22535 #elif HAVE_BUILTIN_H
22536 #include <builtin.h>
22541 #if $cf_cv_header_stdbool_h
22542 #include <stdbool.h>
22549 FILE *fp = fopen("cf_test.out", "w");
22552 if ((bool)(-x) >= 0)
22553 fputs("unsigned ", fp);
22554 if (sizeof(x) == sizeof(int)) fputs("int", fp);
22555 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
22556 else if (sizeof(x) == sizeof(short))fputs("short",fp);
22557 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
22560 ${cf_cv_main_return:-return}(0);
22564 rm -f conftest$ac_exeext
22565 if { (eval echo "$as_me:22565: \"$ac_link\"") >&5
22566 (eval $ac_link) 2>&5
22568 echo "$as_me:22568: \$? = $ac_status" >&5
22569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22570 { (eval echo "$as_me:22570: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22573 echo "$as_me:22573: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 cf_cv_type_of_bool=`cat cf_test.out`
22576 if test -z "$cf_cv_type_of_bool"; then
22577 cf_cv_type_of_bool=unknown
22580 echo "$as_me: program exited with status $ac_status" >&5
22581 echo "$as_me: failed program was:" >&5
22582 cat conftest.$ac_ext >&5
22583 cf_cv_type_of_bool=unknown
22585 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22591 echo "$as_me:22591: result: $cf_cv_type_of_bool" >&5
22592 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
22593 if test "$cf_cv_type_of_bool" = unknown ; then
22594 case .$NCURSES_BOOL in
22595 (.auto|.) NCURSES_BOOL=unsigned;;
22597 { echo "$as_me:22597: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
22598 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
22599 cf_cv_type_of_bool=$NCURSES_BOOL
22602 echo "$as_me:22602: checking for special defines needed for etip.h" >&5
22603 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
22604 cf_save_CXXFLAGS="$CXXFLAGS"
22607 # etip.h includes ncurses.h which includes ncurses_dll.h
22608 # But ncurses_dll.h is generated - fix here.
22609 test -d include || mkdir include
22610 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
22612 for cf_math in "" MATH_H
22614 for cf_excp in "" MATH_EXCEPTION
22616 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
22617 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
22618 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
22619 cat >conftest.$ac_ext <<_ACEOF
22620 #line 22620 "configure"
22621 #include "confdefs.h"
22623 #include <etip.h.in>
22633 rm -f conftest.$ac_objext
22634 if { (eval echo "$as_me:22634: \"$ac_compile\"") >&5
22635 (eval $ac_compile) 2>&5
22637 echo "$as_me:22637: \$? = $ac_status" >&5
22638 (exit $ac_status); } &&
22639 { ac_try='test -s conftest.$ac_objext'
22640 { (eval echo "$as_me:22640: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22643 echo "$as_me:22643: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22646 test -n "$cf_math" && cat >>confdefs.h <<EOF
22647 #define ETIP_NEEDS_${cf_math} 1
22650 test -n "$cf_excp" && cat >>confdefs.h <<EOF
22651 #define ETIP_NEEDS_${cf_excp} 1
22654 cf_result="$cf_math $cf_excp"
22658 echo "$as_me: failed program was:" >&5
22659 cat conftest.$ac_ext >&5
22661 rm -f conftest.$ac_objext conftest.$ac_ext
22664 echo "$as_me:22664: result: $cf_result" >&5
22665 echo "${ECHO_T}$cf_result" >&6
22666 CXXFLAGS="$cf_save_CXXFLAGS"
22668 if test -n "$CXX"; then
22669 echo "$as_me:22669: checking if $CXX accepts parameter initialization" >&5
22670 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
22671 if test "${cf_cv_cpp_param_init+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 ac_cpp='$CXXCPP $CPPFLAGS'
22677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22680 ac_main_return=return
22682 if test "$cross_compiling" = yes; then
22683 cf_cv_cpp_param_init=unknown
22685 cat >conftest.$ac_ext <<_ACEOF
22686 #line 22686 "configure"
22687 #include "confdefs.h"
22697 TEST::TEST(int x = 1) // some compilers do not like second initializer
22704 rm -f conftest$ac_exeext
22705 if { (eval echo "$as_me:22705: \"$ac_link\"") >&5
22706 (eval $ac_link) 2>&5
22708 echo "$as_me:22708: \$? = $ac_status" >&5
22709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22710 { (eval echo "$as_me:22710: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22713 echo "$as_me:22713: \$? = $ac_status" >&5
22714 (exit $ac_status); }; }; then
22715 cf_cv_cpp_param_init=yes
22717 echo "$as_me: program exited with status $ac_status" >&5
22718 echo "$as_me: failed program was:" >&5
22719 cat conftest.$ac_ext >&5
22720 cf_cv_cpp_param_init=no
22722 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22725 ac_cpp='$CXXCPP $CPPFLAGS'
22726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22729 ac_main_return=return
22732 echo "$as_me:22732: result: $cf_cv_cpp_param_init" >&5
22733 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
22735 test "$cf_cv_cpp_param_init" = yes &&
22736 cat >>confdefs.h <<\EOF
22737 #define CPP_HAS_PARAM_INIT 1
22740 if test -n "$CXX"; then
22742 echo "$as_me:22742: checking if $CXX accepts static_cast" >&5
22743 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
22744 if test "${cf_cv_cpp_static_cast+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22749 ac_cpp='$CXXCPP $CPPFLAGS'
22750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22753 ac_main_return=return
22755 cat >conftest.$ac_ext <<_ACEOF
22756 #line 22756 "configure"
22757 #include "confdefs.h"
22762 NCursesPanel(int nlines,
22772 template<class T> class NCursesUserPanel : public NCursesPanel
22775 NCursesUserPanel (int nlines,
22779 const T* p_UserData = static_cast<T*>(0))
22780 : NCursesPanel (nlines, ncols, begin_y, begin_x)
22783 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
22787 virtual ~NCursesUserPanel() {};
22794 const char* p_UserData = static_cast<char*>(0)
22799 rm -f conftest.$ac_objext
22800 if { (eval echo "$as_me:22800: \"$ac_compile\"") >&5
22801 (eval $ac_compile) 2>&5
22803 echo "$as_me:22803: \$? = $ac_status" >&5
22804 (exit $ac_status); } &&
22805 { ac_try='test -s conftest.$ac_objext'
22806 { (eval echo "$as_me:22806: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22809 echo "$as_me:22809: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 cf_cv_cpp_static_cast=yes
22813 echo "$as_me: failed program was:" >&5
22814 cat conftest.$ac_ext >&5
22815 cf_cv_cpp_static_cast=no
22817 rm -f conftest.$ac_objext conftest.$ac_ext
22820 ac_cpp='$CXXCPP $CPPFLAGS'
22821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22824 ac_main_return=return
22827 echo "$as_me:22827: result: $cf_cv_cpp_static_cast" >&5
22828 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
22832 test "$cf_cv_cpp_static_cast" = yes &&
22833 cat >>confdefs.h <<\EOF
22834 #define CPP_HAS_STATIC_CAST 1
22838 CXX_ARFLAGS='$(ARFLAGS)'
22839 case $cf_cv_system_name in
22841 if test "$GXX" != yes ; then
22843 CXX_ARFLAGS='-ar -o'
22847 CXXLDFLAGS="-u main"
22850 if test "$GXX" != yes ; then
22852 CXX_ARFLAGS='-xar -o'
22859 cf_cv_builtin_bool=1
22861 # Just because we are not configuring against C++ right now does not
22862 # mean that a user will not want to use C++. Some distributors disable
22863 # the C++ portion of this configuration as a shortcut (or just to avoid
22864 # compiling the demo in the c++ directory). So we need a reasonable
22865 # default for the 'bool' type.
22867 # Caveat: since the storage of the bool type is not standardized, it
22870 if test "$NCURSES_BOOL" != auto ; then
22871 cf_cv_type_of_bool=$NCURSES_BOOL
22872 cf_cv_header_stdbool_h=0
22874 if test "$cf_cv_header_stdbool_h" = 1 ; then
22876 echo "$as_me:22876: checking for size of bool" >&5
22877 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
22878 if test "${cf_cv_type_of_bool+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22883 if test "$cross_compiling" = yes; then
22884 cf_cv_type_of_bool=unknown
22886 cat >conftest.$ac_ext <<_ACEOF
22887 #line 22887 "configure"
22888 #include "confdefs.h"
22890 #include <stdlib.h>
22893 #if defined(__cplusplus)
22895 #ifdef HAVE_GXX_BUILTIN_H
22896 #include <g++/builtin.h>
22897 #elif HAVE_GPP_BUILTIN_H
22898 #include <gpp/builtin.h>
22899 #elif HAVE_BUILTIN_H
22900 #include <builtin.h>
22905 #if $cf_cv_header_stdbool_h
22906 #include <stdbool.h>
22913 FILE *fp = fopen("cf_test.out", "w");
22916 if ((bool)(-x) >= 0)
22917 fputs("unsigned ", fp);
22918 if (sizeof(x) == sizeof(int)) fputs("int", fp);
22919 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
22920 else if (sizeof(x) == sizeof(short))fputs("short",fp);
22921 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
22924 ${cf_cv_main_return:-return}(0);
22928 rm -f conftest$ac_exeext
22929 if { (eval echo "$as_me:22929: \"$ac_link\"") >&5
22930 (eval $ac_link) 2>&5
22932 echo "$as_me:22932: \$? = $ac_status" >&5
22933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22934 { (eval echo "$as_me:22934: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22937 echo "$as_me:22937: \$? = $ac_status" >&5
22938 (exit $ac_status); }; }; then
22939 cf_cv_type_of_bool=`cat cf_test.out`
22940 if test -z "$cf_cv_type_of_bool"; then
22941 cf_cv_type_of_bool=unknown
22944 echo "$as_me: program exited with status $ac_status" >&5
22945 echo "$as_me: failed program was:" >&5
22946 cat conftest.$ac_ext >&5
22947 cf_cv_type_of_bool=unknown
22949 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22955 echo "$as_me:22955: result: $cf_cv_type_of_bool" >&5
22956 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
22957 if test "$cf_cv_type_of_bool" = unknown ; then
22958 case .$NCURSES_BOOL in
22959 (.auto|.) NCURSES_BOOL=unsigned;;
22961 { echo "$as_me:22961: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
22962 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
22963 cf_cv_type_of_bool=$NCURSES_BOOL
22967 echo "$as_me:22967: checking for fallback type of bool" >&5
22968 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
22969 case "$host_cpu" in
22970 (i?86) cf_cv_type_of_bool=char ;;
22971 (*) cf_cv_type_of_bool=int ;;
22973 echo "$as_me:22973: result: $cf_cv_type_of_bool" >&5
22974 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
22979 # If the C compiler did not declare bool, and we did not determine that the C++
22980 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
22981 # ncurses library use the same type as C++ bool. Note that this allows one to
22982 # specify the type of bool in a configure-script option and postpone
22983 # integration with the C++ compiler provided that the types are compatible.
22985 if test $cf_cv_cc_bool_type = 1
22987 # oops: C has a bool. Unlikely, but C++ could differ.
22989 elif test $cf_cv_builtin_bool = 0
22994 # this is the normal case
22995 USE_CXX_BOOL='defined(__cplusplus)'
22998 if test -f "${srcdir}/Ada95/Makefile.in" ; then
23000 if test "$cf_with_ada" != "no" ; then
23001 if test "$with_libtool" != "no"; then
23002 { echo "$as_me:23002: WARNING: libtool does not support Ada - disabling feature" >&5
23003 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
23008 if test "$cf_with_ada" != "no" ; then
23010 cf_ada_make=gnatmake
23012 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
23013 set dummy $cf_ada_make; ac_word=$2
23014 echo "$as_me:23014: checking for $ac_word" >&5
23015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23016 if test "${ac_cv_prog_gnatmake_exists+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 if test -n "$gnatmake_exists"; then
23020 ac_cv_prog_gnatmake_exists="$gnatmake_exists" # Let the user override the test.
23022 ac_save_IFS=$IFS; IFS=$ac_path_separator
23024 for ac_dir in $ac_dummy; do
23026 test -z "$ac_dir" && ac_dir=.
23027 $as_executable_p "$ac_dir/$ac_word" || continue
23028 ac_cv_prog_gnatmake_exists="yes"
23029 echo "$as_me:23029: found $ac_dir/$ac_word" >&5
23033 test -z "$ac_cv_prog_gnatmake_exists" && ac_cv_prog_gnatmake_exists="no"
23036 gnatmake_exists=$ac_cv_prog_gnatmake_exists
23037 if test -n "$gnatmake_exists"; then
23038 echo "$as_me:23038: result: $gnatmake_exists" >&5
23039 echo "${ECHO_T}$gnatmake_exists" >&6
23041 echo "$as_me:23041: result: no" >&5
23042 echo "${ECHO_T}no" >&6
23045 if test "$ac_cv_prog_gnatmake_exists" = no; then
23047 cf_cv_prog_gnat_correct=no
23049 # Extract the first word of "gprconfig", so it can be a program name with args.
23050 set dummy gprconfig; ac_word=$2
23051 echo "$as_me:23051: checking for $ac_word" >&5
23052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23053 if test "${ac_cv_prog_gprconfig_exists+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23056 if test -n "$gprconfig_exists"; then
23057 ac_cv_prog_gprconfig_exists="$gprconfig_exists" # Let the user override the test.
23059 ac_save_IFS=$IFS; IFS=$ac_path_separator
23061 for ac_dir in $ac_dummy; do
23063 test -z "$ac_dir" && ac_dir=.
23064 $as_executable_p "$ac_dir/$ac_word" || continue
23065 ac_cv_prog_gprconfig_exists="yes"
23066 echo "$as_me:23066: found $ac_dir/$ac_word" >&5
23070 test -z "$ac_cv_prog_gprconfig_exists" && ac_cv_prog_gprconfig_exists="no"
23073 gprconfig_exists=$ac_cv_prog_gprconfig_exists
23074 if test -n "$gprconfig_exists"; then
23075 echo "$as_me:23075: result: $gprconfig_exists" >&5
23076 echo "${ECHO_T}$gprconfig_exists" >&6
23078 echo "$as_me:23078: result: no" >&5
23079 echo "${ECHO_T}no" >&6
23082 if test "$ac_cv_prog_gprconfig_exists" = yes
23084 rm -rf conftest* *~conftest*
23085 if mkdir conftest.src
23089 for cf_gprconfig in Ada C
23091 echo "$as_me:23091: checking for gprconfig name for $cf_gprconfig" >&5
23092 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
23093 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
23094 if test -n "$cf_gprconfig_value"
23096 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
23097 echo "$as_me:23097: result: $cf_gprconfig_value" >&5
23098 echo "${ECHO_T}$cf_gprconfig_value" >&6
23100 echo "$as_me:23100: result: missing" >&5
23101 echo "${ECHO_T}missing" >&6
23107 rm -rf conftest* *~conftest*
23110 # gprconfig is newer than gnatmake; we can continue...
23113 if test "x$cf_ada_config" != "x#"
23116 echo "$as_me:23116: checking for gnat version" >&5
23117 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
23118 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
23119 grep '[0-9].[0-9][0-9]*' |\
23120 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
23121 echo "$as_me:23121: result: $cf_gnat_version" >&5
23122 echo "${ECHO_T}$cf_gnat_version" >&6
23124 case $cf_gnat_version in
23125 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
23126 cf_cv_prog_gnat_correct=yes
23129 { echo "$as_me:23129: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
23130 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
23131 cf_cv_prog_gnat_correct=no
23135 # Extract the first word of "m4", so it can be a program name with args.
23136 set dummy m4; ac_word=$2
23137 echo "$as_me:23137: checking for $ac_word" >&5
23138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23139 if test "${ac_cv_prog_M4_exists+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 if test -n "$M4_exists"; then
23143 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
23145 ac_save_IFS=$IFS; IFS=$ac_path_separator
23147 for ac_dir in $ac_dummy; do
23149 test -z "$ac_dir" && ac_dir=.
23150 $as_executable_p "$ac_dir/$ac_word" || continue
23151 ac_cv_prog_M4_exists="yes"
23152 echo "$as_me:23152: found $ac_dir/$ac_word" >&5
23156 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
23159 M4_exists=$ac_cv_prog_M4_exists
23160 if test -n "$M4_exists"; then
23161 echo "$as_me:23161: result: $M4_exists" >&5
23162 echo "${ECHO_T}$M4_exists" >&6
23164 echo "$as_me:23164: result: no" >&5
23165 echo "${ECHO_T}no" >&6
23168 if test "$ac_cv_prog_M4_exists" = no; then
23169 cf_cv_prog_gnat_correct=no
23170 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
23172 if test "$cf_cv_prog_gnat_correct" = yes; then
23173 echo "$as_me:23173: checking if GNAT works" >&5
23174 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
23176 rm -rf conftest* *~conftest*
23177 cat >>conftest.ads <<CF_EOF
23178 procedure conftest;
23180 cat >>conftest.adb <<CF_EOF
23183 procedure conftest is
23185 Text_IO.Put ("Hello World");
23187 GNAT.OS_Lib.OS_Exit (0);
23190 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
23191 if ( ./conftest 1>&5 2>&1 ) ; then
23192 cf_cv_prog_gnat_correct=yes
23194 cf_cv_prog_gnat_correct=no
23197 cf_cv_prog_gnat_correct=no
23199 rm -rf conftest* *~conftest*
23201 echo "$as_me:23201: result: $cf_cv_prog_gnat_correct" >&5
23202 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
23205 cf_cv_prog_gnat_correct=no
23209 if test "x$cf_cv_prog_gnat_correct" = xyes; then
23211 ADAFLAGS="$ADAFLAGS -gnatpn"
23213 echo "$as_me:23213: checking optimization options for ADAFLAGS" >&5
23214 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
23218 ADAFLAGS="$ADAFLAGS -g"
23224 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
23226 ADAFLAGS="$ADAFLAGS $cf_O_flag"
23230 echo "$as_me:23230: result: $ADAFLAGS" >&5
23231 echo "${ECHO_T}$ADAFLAGS" >&6
23233 echo "$as_me:23233: checking if GNATPREP supports -T option" >&5
23234 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
23235 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23239 cf_cv_gnatprep_opt_t=no
23240 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
23243 echo "$as_me:23243: result: $cf_cv_gnatprep_opt_t" >&5
23244 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
23245 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
23247 echo "$as_me:23247: checking if GNAT supports generics" >&5
23248 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
23249 case $cf_gnat_version in
23251 cf_gnat_generics=yes
23254 cf_gnat_generics=no
23257 echo "$as_me:23257: result: $cf_gnat_generics" >&5
23258 echo "${ECHO_T}$cf_gnat_generics" >&6
23260 if test "$cf_gnat_generics" = yes
23262 cf_compile_generics=generics
23263 cf_generic_objects="\${GENOBJS}"
23265 cf_compile_generics=
23266 cf_generic_objects=
23269 echo "$as_me:23269: checking if GNAT supports SIGINT" >&5
23270 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
23271 if test "${cf_cv_gnat_sigint+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 rm -rf conftest* *~conftest*
23276 cat >>conftest.ads <<CF_EOF
23277 with Ada.Interrupts.Names;
23279 package ConfTest is
23281 pragma Warnings (Off); -- the next pragma exists since 3.11p
23282 pragma Unreserve_All_Interrupts;
23283 pragma Warnings (On);
23285 protected Process is
23287 function Continue return Boolean;
23288 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
23290 Done : Boolean := False;
23295 cat >>conftest.adb <<CF_EOF
23296 package body ConfTest is
23297 protected body Process is
23302 function Continue return Boolean is
23309 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
23310 cf_cv_gnat_sigint=yes
23312 cf_cv_gnat_sigint=no
23314 rm -rf conftest* *~conftest*
23317 echo "$as_me:23317: result: $cf_cv_gnat_sigint" >&5
23318 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
23320 if test $cf_cv_gnat_sigint = yes ; then
23323 USE_GNAT_SIGINT="#"
23326 cf_gnat_libraries=no
23327 cf_gnat_projects=no
23329 if test "$enable_gnat_projects" != no ; then
23330 echo "$as_me:23330: checking if GNAT supports project files" >&5
23331 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
23332 case $cf_gnat_version in
23336 case $cf_cv_system_name in
23340 rm -rf conftest* *~conftest*
23341 if mkdir conftest.src conftest.bin conftest.lib
23344 rm -rf conftest* *~conftest*
23345 cat >>library.gpr <<CF_EOF
23347 Kind := External ("LIB_KIND");
23348 for Library_Name use "ConfTest";
23349 for Object_Dir use ".";
23350 for Library_ALI_Dir use External("LIBRARY_DIR");
23351 for Library_Version use External ("SONAME");
23352 for Library_Kind use Kind;
23353 for Library_Dir use External("BUILD_DIR");
23354 Source_Dir := External ("SOURCE_DIR");
23355 for Source_Dirs use (Source_Dir);
23358 cat >>confpackage.ads <<CF_EOF
23359 package ConfPackage is
23360 procedure conftest;
23363 cat >>confpackage.adb <<CF_EOF
23365 package body ConfPackage is
23366 procedure conftest is
23368 Text_IO.Put ("Hello World");
23373 if ( $cf_ada_make $ADAFLAGS \
23375 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
23376 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
23377 -XSOURCE_DIR=`pwd` \
23378 -XSONAME=libConfTest.so.1 \
23379 -XLIB_KIND=static 1>&5 2>&1 ) ; then
23380 cf_gnat_projects=yes
23384 if test -f conftest.lib/confpackage.ali
23386 cf_gnat_libraries=yes
23388 rm -rf conftest* *~conftest*
23393 echo "$as_me:23393: result: $cf_gnat_projects" >&5
23394 echo "${ECHO_T}$cf_gnat_projects" >&6
23395 fi # enable_gnat_projects
23397 if test $cf_gnat_projects = yes
23399 echo "$as_me:23399: checking if GNAT supports libraries" >&5
23400 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
23401 echo "$as_me:23401: result: $cf_gnat_libraries" >&5
23402 echo "${ECHO_T}$cf_gnat_libraries" >&6
23405 if test "$cf_gnat_projects" = yes
23407 USE_OLD_MAKERULES="#"
23408 USE_GNAT_PROJECTS=""
23410 USE_OLD_MAKERULES=""
23411 USE_GNAT_PROJECTS="#"
23414 if test "$cf_gnat_libraries" = yes
23416 USE_GNAT_LIBRARIES=""
23418 USE_GNAT_LIBRARIES="#"
23421 echo "$as_me:23421: checking for ada-compiler" >&5
23422 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
23424 # Check whether --with-ada-compiler or --without-ada-compiler was given.
23425 if test "${with_ada_compiler+set}" = set; then
23426 withval="$with_ada_compiler"
23427 cf_ada_compiler=$withval
23429 cf_ada_compiler=gnatmake
23432 echo "$as_me:23432: result: $cf_ada_compiler" >&5
23433 echo "${ECHO_T}$cf_ada_compiler" >&6
23435 cf_ada_package=terminal_interface
23437 echo "$as_me:23437: checking for ada-include" >&5
23438 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
23440 # Check whether --with-ada-include or --without-ada-include was given.
23441 if test "${with_ada_include+set}" = set; then
23442 withval="$with_ada_include"
23445 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
23446 fi; if test -n "$prefix/share/ada/adainclude" ; then
23448 if test "x$prefix" != xNONE; then
23449 cf_path_syntax="$prefix"
23451 cf_path_syntax="$ac_default_prefix"
23454 case ".$withval" in
23455 (.\$\(*\)*|.\'*\'*)
23459 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
23461 (.\${*prefix}*|.\${*dir}*)
23462 eval withval="$withval"
23463 case ".$withval" in
23465 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23470 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23473 { { echo "$as_me:23473: error: expected a pathname, not \"$withval\"" >&5
23474 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
23475 { (exit 1); exit 1; }; }
23480 eval ADA_INCLUDE="$withval"
23482 echo "$as_me:23482: result: $ADA_INCLUDE" >&5
23483 echo "${ECHO_T}$ADA_INCLUDE" >&6
23485 echo "$as_me:23485: checking for ada-objects" >&5
23486 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
23488 # Check whether --with-ada-objects or --without-ada-objects was given.
23489 if test "${with_ada_objects+set}" = set; then
23490 withval="$with_ada_objects"
23493 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
23494 fi; if test -n "$prefix/lib/ada/adalib" ; then
23496 if test "x$prefix" != xNONE; then
23497 cf_path_syntax="$prefix"
23499 cf_path_syntax="$ac_default_prefix"
23502 case ".$withval" in
23503 (.\$\(*\)*|.\'*\'*)
23507 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
23509 (.\${*prefix}*|.\${*dir}*)
23510 eval withval="$withval"
23511 case ".$withval" in
23513 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23518 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23521 { { echo "$as_me:23521: error: expected a pathname, not \"$withval\"" >&5
23522 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
23523 { (exit 1); exit 1; }; }
23528 eval ADA_OBJECTS="$withval"
23530 echo "$as_me:23530: result: $ADA_OBJECTS" >&5
23531 echo "${ECHO_T}$ADA_OBJECTS" >&6
23533 echo "$as_me:23533: checking if an Ada95 shared-library should be built" >&5
23534 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
23536 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
23537 if test "${with_ada_sharedlib+set}" = set; then
23538 withval="$with_ada_sharedlib"
23539 with_ada_sharedlib=$withval
23541 with_ada_sharedlib=no
23543 echo "$as_me:23543: result: $with_ada_sharedlib" >&5
23544 echo "${ECHO_T}$with_ada_sharedlib" >&6
23546 if test "x$with_ada_sharedlib" != xno
23548 if test "x$cf_gnat_projects" != xyes
23550 { echo "$as_me:23550: WARNING: disabling shared-library since GNAT projects are not supported" >&5
23551 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
23552 with_ada_sharedlib=no
23556 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
23557 MAKE_ADA_SHAREDLIB="#"
23559 if test "x$with_ada_sharedlib" != xno
23561 MAKE_ADA_SHAREDLIB=
23562 if test "x$with_ada_sharedlib" != xyes
23564 ADA_SHAREDLIB="$with_ada_sharedlib"
23574 # do this "late" to avoid conflict with header-checks
23575 if test "x$with_widec" = xyes ; then
23576 echo "$as_me:23576: checking for wchar_t" >&5
23577 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
23578 if test "${ac_cv_type_wchar_t+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23581 cat >conftest.$ac_ext <<_ACEOF
23582 #line 23582 "configure"
23583 #include "confdefs.h"
23584 $ac_includes_default
23590 if (sizeof (wchar_t))
23596 rm -f conftest.$ac_objext
23597 if { (eval echo "$as_me:23597: \"$ac_compile\"") >&5
23598 (eval $ac_compile) 2>&5
23600 echo "$as_me:23600: \$? = $ac_status" >&5
23601 (exit $ac_status); } &&
23602 { ac_try='test -s conftest.$ac_objext'
23603 { (eval echo "$as_me:23603: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23606 echo "$as_me:23606: \$? = $ac_status" >&5
23607 (exit $ac_status); }; }; then
23608 ac_cv_type_wchar_t=yes
23610 echo "$as_me: failed program was:" >&5
23611 cat conftest.$ac_ext >&5
23612 ac_cv_type_wchar_t=no
23614 rm -f conftest.$ac_objext conftest.$ac_ext
23616 echo "$as_me:23616: result: $ac_cv_type_wchar_t" >&5
23617 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
23619 echo "$as_me:23619: checking size of wchar_t" >&5
23620 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
23621 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23624 if test "$ac_cv_type_wchar_t" = yes; then
23625 if test "$cross_compiling" = yes; then
23626 # Depending upon the size, compute the lo and hi bounds.
23627 cat >conftest.$ac_ext <<_ACEOF
23628 #line 23628 "configure"
23629 #include "confdefs.h"
23630 $ac_includes_default
23634 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
23639 rm -f conftest.$ac_objext
23640 if { (eval echo "$as_me:23640: \"$ac_compile\"") >&5
23641 (eval $ac_compile) 2>&5
23643 echo "$as_me:23643: \$? = $ac_status" >&5
23644 (exit $ac_status); } &&
23645 { ac_try='test -s conftest.$ac_objext'
23646 { (eval echo "$as_me:23646: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23649 echo "$as_me:23649: \$? = $ac_status" >&5
23650 (exit $ac_status); }; }; then
23653 cat >conftest.$ac_ext <<_ACEOF
23654 #line 23654 "configure"
23655 #include "confdefs.h"
23656 $ac_includes_default
23660 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
23665 rm -f conftest.$ac_objext
23666 if { (eval echo "$as_me:23666: \"$ac_compile\"") >&5
23667 (eval $ac_compile) 2>&5
23669 echo "$as_me:23669: \$? = $ac_status" >&5
23670 (exit $ac_status); } &&
23671 { ac_try='test -s conftest.$ac_objext'
23672 { (eval echo "$as_me:23672: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23675 echo "$as_me:23675: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }; then
23677 ac_hi=$ac_mid; break
23679 echo "$as_me: failed program was:" >&5
23680 cat conftest.$ac_ext >&5
23681 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
23683 rm -f conftest.$ac_objext conftest.$ac_ext
23686 echo "$as_me: failed program was:" >&5
23687 cat conftest.$ac_ext >&5
23690 cat >conftest.$ac_ext <<_ACEOF
23691 #line 23691 "configure"
23692 #include "confdefs.h"
23693 $ac_includes_default
23697 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
23702 rm -f conftest.$ac_objext
23703 if { (eval echo "$as_me:23703: \"$ac_compile\"") >&5
23704 (eval $ac_compile) 2>&5
23706 echo "$as_me:23706: \$? = $ac_status" >&5
23707 (exit $ac_status); } &&
23708 { ac_try='test -s conftest.$ac_objext'
23709 { (eval echo "$as_me:23709: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23712 echo "$as_me:23712: \$? = $ac_status" >&5
23713 (exit $ac_status); }; }; then
23714 ac_lo=$ac_mid; break
23716 echo "$as_me: failed program was:" >&5
23717 cat conftest.$ac_ext >&5
23718 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
23720 rm -f conftest.$ac_objext conftest.$ac_ext
23723 rm -f conftest.$ac_objext conftest.$ac_ext
23724 # Binary search between lo and hi bounds.
23725 while test "x$ac_lo" != "x$ac_hi"; do
23726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23727 cat >conftest.$ac_ext <<_ACEOF
23728 #line 23728 "configure"
23729 #include "confdefs.h"
23730 $ac_includes_default
23734 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
23739 rm -f conftest.$ac_objext
23740 if { (eval echo "$as_me:23740: \"$ac_compile\"") >&5
23741 (eval $ac_compile) 2>&5
23743 echo "$as_me:23743: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -s conftest.$ac_objext'
23746 { (eval echo "$as_me:23746: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23749 echo "$as_me:23749: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23753 echo "$as_me: failed program was:" >&5
23754 cat conftest.$ac_ext >&5
23755 ac_lo=`expr $ac_mid + 1`
23757 rm -f conftest.$ac_objext conftest.$ac_ext
23759 ac_cv_sizeof_wchar_t=$ac_lo
23761 if test "$cross_compiling" = yes; then
23762 { { echo "$as_me:23762: error: cannot run test program while cross compiling" >&5
23763 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
23764 { (exit 1); exit 1; }; }
23766 cat >conftest.$ac_ext <<_ACEOF
23767 #line 23767 "configure"
23768 #include "confdefs.h"
23769 $ac_includes_default
23773 FILE *f = fopen ("conftest.val", "w");
23775 $ac_main_return (1);
23776 fprintf (f, "%d", (sizeof (wchar_t)));
23782 rm -f conftest$ac_exeext
23783 if { (eval echo "$as_me:23783: \"$ac_link\"") >&5
23784 (eval $ac_link) 2>&5
23786 echo "$as_me:23786: \$? = $ac_status" >&5
23787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23788 { (eval echo "$as_me:23788: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23791 echo "$as_me:23791: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793 ac_cv_sizeof_wchar_t=`cat conftest.val`
23795 echo "$as_me: program exited with status $ac_status" >&5
23796 echo "$as_me: failed program was:" >&5
23797 cat conftest.$ac_ext >&5
23799 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23804 ac_cv_sizeof_wchar_t=0
23807 echo "$as_me:23807: result: $ac_cv_sizeof_wchar_t" >&5
23808 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
23809 cat >>confdefs.h <<EOF
23810 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23815 ### Construct the ncurses library-subsets, if any, from this set of keywords:
23816 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
23818 ### ticlib modules may be a separate library, otherwise contained in termlib.
23819 ### termlib modules may be a separate library, otherwise contained in ncurses.
23821 ### The of "+" or " " between the tokens controls the way the script
23822 ### chooses to split module lists into libraries.
23824 ### (see CF_LIB_RULES).
23825 echo "$as_me:23825: checking for library subsets" >&5
23826 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
23829 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
23830 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
23831 if test "$with_ticlib" != no ; then
23832 LIB_SUBSETS="${LIB_SUBSETS} "
23834 LIB_SUBSETS="${LIB_SUBSETS}+"
23838 LIB_SUBSETS="${LIB_SUBSETS}termlib"
23839 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
23841 if test "$with_termlib" != no ; then
23842 LIB_SUBSETS="${LIB_SUBSETS} "
23844 LIB_SUBSETS="${LIB_SUBSETS}+"
23847 LIB_SUBSETS="${LIB_SUBSETS}base"
23849 # Most term-driver calls are to tinfo, but some like init_pair are to the
23850 # base library (so it resides in base).
23851 if test "$with_term_driver" != no ; then
23852 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
23853 case $cf_cv_system_name in
23854 (*mingw32*|*mingw64*)
23855 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
23856 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
23859 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
23864 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
23865 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
23867 echo "$as_me:23867: result: $LIB_SUBSETS" >&5
23868 echo "${ECHO_T}$LIB_SUBSETS" >&6
23870 ### Construct the list of include-directories to be generated
23872 if test "$srcdir" != "."; then
23873 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
23875 CPPFLAGS="-I../include $CPPFLAGS"
23876 if test "$srcdir" != "."; then
23877 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
23879 CPPFLAGS="-I. $CPPFLAGS"
23881 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
23882 if test "$srcdir" != "."; then
23883 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
23885 if test "$GCC" != yes; then
23886 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
23887 elif test "$includedir" != "/usr/include"; then
23888 if test "$includedir" = '${prefix}/include' ; then
23889 if test x$prefix != x/usr ; then
23890 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
23893 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
23897 ### Build up pieces for makefile rules
23898 echo "$as_me:23898: checking default library suffix" >&5
23899 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
23901 case $DFT_LWR_MODEL in
23902 (libtool) DFT_ARG_SUFFIX='' ;;
23903 (normal) DFT_ARG_SUFFIX='' ;;
23904 (debug) DFT_ARG_SUFFIX='_g' ;;
23905 (profile) DFT_ARG_SUFFIX='_p' ;;
23906 (shared) DFT_ARG_SUFFIX='' ;;
23908 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
23909 echo "$as_me:23909: result: $DFT_ARG_SUFFIX" >&5
23910 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
23912 echo "$as_me:23912: checking default library-dependency suffix" >&5
23913 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
23915 case X$DFT_LWR_MODEL in
23917 DFT_LIB_SUFFIX='.la'
23918 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23921 DFT_LIB_SUFFIX='_g.a'
23922 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23925 DFT_LIB_SUFFIX='_p.a'
23926 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23929 case $cf_cv_system_name in
23931 DFT_LIB_SUFFIX='.so'
23932 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23934 (cygwin*|msys*|mingw*)
23935 DFT_LIB_SUFFIX='.dll'
23936 DFT_DEP_SUFFIX='.dll.a'
23939 DFT_LIB_SUFFIX='.dylib'
23940 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23945 DFT_LIB_SUFFIX='.so'
23946 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23949 DFT_LIB_SUFFIX='.sl'
23950 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23955 DFT_LIB_SUFFIX='.so'
23956 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23961 DFT_LIB_SUFFIX='.a'
23962 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
23965 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23967 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
23968 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
23970 echo "$as_me:23970: result: $DFT_DEP_SUFFIX" >&5
23971 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
23973 echo "$as_me:23973: checking default object directory" >&5
23974 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
23976 case $DFT_LWR_MODEL in
23977 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
23978 (normal) DFT_OBJ_SUBDIR='objects' ;;
23979 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
23980 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
23982 case $cf_cv_system_name in
23984 DFT_OBJ_SUBDIR='objects' ;;
23986 DFT_OBJ_SUBDIR='obj_s' ;;
23989 echo "$as_me:23989: result: $DFT_OBJ_SUBDIR" >&5
23990 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
23992 if test "x$cf_with_cxx" = xyes ; then
23993 echo "$as_me:23993: checking c++ library-dependency suffix" >&5
23994 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
23995 if test "$with_libtool" != "no"; then
23996 # libtool thinks it can make c++ shared libraries (perhaps only g++)
23997 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
23998 elif test "$with_shared_cxx" != "no"; then
23999 # also for g++ users...
24000 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
24002 # we normally make a static library because C/C++ library rules differ
24006 CXX_LIB_SUFFIX='.la'
24007 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24010 CXX_LIB_SUFFIX='_g.a'
24011 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24014 CXX_LIB_SUFFIX='_p.a'
24015 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24018 case $cf_cv_system_name in
24020 CXX_LIB_SUFFIX='.so'
24021 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24023 (cygwin*|msys*|mingw*)
24024 CXX_LIB_SUFFIX='.dll'
24025 CXX_DEP_SUFFIX='.dll.a'
24028 CXX_LIB_SUFFIX='.dylib'
24029 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24034 CXX_LIB_SUFFIX='.so'
24035 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24038 CXX_LIB_SUFFIX='.sl'
24039 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24044 CXX_LIB_SUFFIX='.so'
24045 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24050 CXX_LIB_SUFFIX='.a'
24051 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24054 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24056 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
24057 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
24061 echo "$as_me:24061: result: $CXX_LIB_SUFFIX" >&5
24062 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
24066 # do not want -ldl in build except as needed for -lncurses dependency
24067 if test "x$with_dlsym" = xyes ; then
24068 if test $DFT_LWR_MODEL = shared || \
24069 test $DFT_LWR_MODEL = libtool ; then
24071 # remove dl library from $LIBS
24072 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
24076 ### Set up low-level terminfo dependencies for makefiles.
24078 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
24079 # do not need libdl
24081 if test "x$with_dlsym" = xyes ; then
24083 # remove dl library from $SHLIB_LIST
24084 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
24088 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
24089 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
24090 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
24091 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
24093 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
24096 if test "$with_ticlib" != no ; then
24098 if test "x$with_ticlib" != xyes ; then
24099 TICS_NAME=$with_ticlib
24100 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
24101 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24102 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24103 TICS_LIB_SUFFIX="${with_ticlib}"
24105 TICS_SUFFIX=${DFT_LIB_SUFFIX}
24106 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
24107 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
24108 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
24110 TICS_LDFLAGS="-L${LIB_DIR}"
24111 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
24113 TICS_SUFFIX=${DFT_LIB_SUFFIX}
24114 TICS_LDFLAGS="-L${LIB_DIR}"
24115 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
24118 if test "$with_termlib" != no ; then
24120 if test "x$with_termlib" != xyes ; then
24121 TINFO_NAME=$with_termlib
24122 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
24123 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24124 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24125 TINFO_LIB_SUFFIX="${with_termlib}"
24127 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
24128 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
24129 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
24130 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
24133 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
24134 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
24135 if test "$DFT_LWR_MODEL" = "libtool"; then
24136 TEST_ARGS="${TEST_DEPS}"
24137 TEST_ARG2="${TEST_DEP2}"
24138 TINFO_LDFLAGS="-L${LIB_DIR}"
24139 TINFO_LIBS="$TEST_ARGS"
24140 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
24141 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
24143 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
24144 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
24145 if test "x$with_term_driver" != xno ; then
24146 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
24147 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
24148 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
24150 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
24151 TINFO_LIBS="$TEST_ARGS"
24153 TINFO_LDFLAGS="-L${LIB_DIR}"
24154 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
24157 # the next lines are needed for linking libtic over libncurses
24158 TINFO_NAME=${LIB_NAME}
24159 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
24160 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
24161 if test "x$with_tic_depends" = xyes ; then
24162 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
24164 TICS_LIST="$SHLIB_LIST"
24167 TINFO_LDFLAGS="-L${LIB_DIR}"
24168 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
24171 if test "$DFT_LWR_MODEL" = shared ; then
24172 case $cf_cv_system_name in
24174 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
24180 if test "x$with_dlsym" = xyes ; then
24182 # remove dl library from $TICS_LIST
24183 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
24187 if test "$DFT_LWR_MODEL" = "libtool"; then
24192 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
24194 case $DFT_LWR_MODEL in
24195 (normal|debug|profile)
24197 if test "$GCC" = yes ; then
24198 case $cf_cv_system_name in
24199 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
24203 (*) # normally, except when broken
24204 LDFLAGS_STATIC=-static
24205 LDFLAGS_SHARED=-dynamic
24209 case $cf_cv_system_name in
24210 (aix[4-7]*) # from ld manpage
24211 LDFLAGS_STATIC=-bstatic
24212 LDFLAGS_SHARED=-bdynamic
24214 (hpux*) # from ld manpage for hpux10.20, hpux11.11
24215 # We could also use just "archive" and "shared".
24216 LDFLAGS_STATIC=-Wl,-a,archive_shared
24217 LDFLAGS_SHARED=-Wl,-a,shared_archive
24219 (irix*) # from ld manpage IRIX64
24220 LDFLAGS_STATIC=-Bstatic
24221 LDFLAGS_SHARED=-Bdynamic
24223 (osf[45]*) # from ld manpage osf4.0d, osf5.1
24224 # alternative "-oldstyle_liblookup" (not in cc manpage)
24225 LDFLAGS_STATIC=-noso
24226 LDFLAGS_SHARED=-so_archive
24229 LDFLAGS_STATIC=-Bstatic
24230 LDFLAGS_SHARED=-Bdynamic
24235 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
24237 echo "$as_me:24237: checking if linker supports switching between static/dynamic" >&5
24238 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
24240 rm -f libconftest.a
24241 cat >conftest.$ac_ext <<EOF
24242 #line 24242 "configure"
24244 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
24246 if { (eval echo "$as_me:24246: \"$ac_compile\"") >&5
24247 (eval $ac_compile) 2>&5
24249 echo "$as_me:24249: \$? = $ac_status" >&5
24250 (exit $ac_status); } ; then
24251 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
24252 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
24256 cf_save_LIBS="$LIBS"
24258 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
24259 cat >conftest.$ac_ext <<_ACEOF
24260 #line 24260 "configure"
24261 #include "confdefs.h"
24263 #line 24263 "configure"
24265 int cf_ldflags_static(FILE *fp);
24271 return cf_ldflags_static(stdin);
24277 rm -f conftest.$ac_objext conftest$ac_exeext
24278 if { (eval echo "$as_me:24278: \"$ac_link\"") >&5
24279 (eval $ac_link) 2>&5
24281 echo "$as_me:24281: \$? = $ac_status" >&5
24282 (exit $ac_status); } &&
24283 { ac_try='test -s conftest$ac_exeext'
24284 { (eval echo "$as_me:24284: \"$ac_try\"") >&5
24285 (eval $ac_try) 2>&5
24287 echo "$as_me:24287: \$? = $ac_status" >&5
24288 (exit $ac_status); }; }; then
24290 # some linkers simply ignore the -dynamic
24291 case x`file conftest$ac_exeext 2>/dev/null` in
24293 cf_ldflags_static=no
24296 cf_ldflags_static=yes
24301 echo "$as_me: failed program was:" >&5
24302 cat conftest.$ac_ext >&5
24303 cf_ldflags_static=no
24305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24307 rm -f libconftest.*
24308 LIBS="$cf_save_LIBS"
24310 echo "$as_me:24310: result: $cf_ldflags_static" >&5
24311 echo "${ECHO_T}$cf_ldflags_static" >&6
24313 if test $cf_ldflags_static != yes
24326 echo "$as_me:24326: checking where we will install curses.h" >&5
24327 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
24330 if test "$with_overwrite" = no && \
24331 ( test "x$includedir" = 'x${prefix}/include' || \
24332 test "x$includedir" = "x${prefix}/include" )
24334 includesubdir="/ncurses${USE_LIB_SUFFIX}"
24336 echo "$as_me:24336: result: ${includedir}${includesubdir}" >&5
24337 echo "${ECHO_T}${includedir}${includesubdir}" >&6
24339 ### Resolve a conflict between normal and wide-curses by forcing applications
24340 ### that will need libutf8 to add it to their configure script.
24341 if test "$with_overwrite" != no ; then
24342 if test "$NCURSES_LIBUTF8" = 1 ; then
24343 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
24344 { echo "$as_me:24344: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
24345 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
24348 WITH_OVERWRITE=$with_overwrite
24350 # used to separate tack out of the tree
24353 ### predefined stuff for the test programs
24355 cat >>confdefs.h <<\EOF
24356 #define HAVE_SLK_COLOR 1
24359 ### Construct the list of subdirectories for which we'll customize makefiles
24360 ### with the appropriate compile-rules.
24362 echo "$as_me:24362: checking for src modules" >&5
24363 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
24365 # dependencies and linker-arguments for test-programs
24366 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
24367 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
24368 if test "$DFT_LWR_MODEL" = "libtool"; then
24369 TEST_ARGS="${TEST_DEPS}"
24370 TEST_ARG2="${TEST_DEP2}"
24372 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
24373 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
24376 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
24378 for cf_dir in $modules_to_build
24380 if test -f $srcdir/$cf_dir/modules; then
24382 # We may/may not have tack in the distribution, though the
24384 if test $cf_dir = tack ; then
24385 if test "x$cf_with_tack" != "xyes"; then
24390 if test -z "$cf_cv_src_modules"; then
24391 cf_cv_src_modules=$cf_dir
24393 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
24396 # Make the ncurses_cfg.h file record the library interface files as
24397 # well. These are header files that are the same name as their
24398 # directory. Ncurses is the only library that does not follow
24400 if test $cf_dir = tack ; then
24402 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
24404 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24406 cat >>confdefs.h <<EOF
24407 #define HAVE_${cf_have_include}_H 1
24410 cat >>confdefs.h <<EOF
24411 #define HAVE_LIB${cf_have_include} 1
24414 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
24415 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
24416 if test "$DFT_LWR_MODEL" = "libtool"; then
24417 TEST_ARGS="${TEST_DEPS}"
24418 TEST_ARG2="${TEST_DEP2}"
24420 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
24421 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
24423 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
24427 echo "$as_me:24427: result: $cf_cv_src_modules" >&5
24428 echo "${ECHO_T}$cf_cv_src_modules" >&6
24430 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
24431 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
24434 if test "x$cf_with_manpages" != xno ; then
24435 SRC_SUBDIRS="$SRC_SUBDIRS man"
24437 SRC_SUBDIRS="$SRC_SUBDIRS include"
24438 for cf_dir in $cf_cv_src_modules
24440 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
24442 if test "x$cf_with_tests" != "xno" ; then
24443 SRC_SUBDIRS="$SRC_SUBDIRS test"
24445 # always make this, to install the ncurses-config script
24446 SRC_SUBDIRS="$SRC_SUBDIRS misc"
24447 if test "$cf_with_cxx_binding" != no; then
24448 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
24449 SRC_SUBDIRS="$SRC_SUBDIRS c++"
24452 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
24453 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
24456 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
24457 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
24458 ADA_SUBDIRS="gen src"
24459 if test "x$cf_with_tests" != "xno" ; then
24460 ADA_SUBDIRS="$ADA_SUBDIRS samples"
24465 for cf_dir in $SRC_SUBDIRS
24467 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
24470 if test -n "$ADA_SUBDIRS"; then
24471 for cf_dir in $ADA_SUBDIRS
24473 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
24478 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24479 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
24480 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
24484 for cf_item in $cf_list_models
24488 (libtool) cf_subdir='obj_lo' ;;
24489 (normal) cf_subdir='objects' ;;
24490 (debug) cf_subdir='obj_g' ;;
24491 (profile) cf_subdir='obj_p' ;;
24493 case $cf_cv_system_name in
24495 cf_subdir='objects' ;;
24497 cf_subdir='obj_s' ;;
24501 for cf_item2 in $DIRS_TO_MAKE
24503 test $cf_item2 = $cf_subdir && break
24505 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
24507 for cf_dir in $DIRS_TO_MAKE
24509 test ! -d $cf_dir && mkdir $cf_dir
24512 # symbols that differ when compiling Ada95 by itself.
24513 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
24515 # values to use as strings
24517 cat >>confdefs.h <<EOF
24518 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
24521 cat >>confdefs.h <<EOF
24522 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
24525 ### Now that we're done running tests, add the compiler-warnings, if any
24530 cf_new_extra_cppflags=
24532 for cf_add_cflags in $EXTRA_CFLAGS
24534 case $cf_fix_cppflags in
24536 case $cf_add_cflags in
24537 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
24538 case $cf_add_cflags in
24540 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
24542 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
24543 && test -z "${cf_tst_cflags}" \
24544 && cf_fix_cppflags=yes
24546 if test $cf_fix_cppflags = yes ; then
24548 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
24549 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
24552 elif test "${cf_tst_cflags}" = "\"'" ; then
24554 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
24555 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
24561 case "$CPPFLAGS" in
24565 case $cf_add_cflags in
24567 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
24569 CPPFLAGS=`echo "$CPPFLAGS" | \
24570 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
24571 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
24576 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
24577 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
24584 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
24585 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
24592 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
24593 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
24595 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
24597 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
24598 && test -z "${cf_tst_cflags}" \
24599 && cf_fix_cppflags=no
24604 if test -n "$cf_new_cflags" ; then
24606 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
24607 CFLAGS="${CFLAGS}$cf_new_cflags"
24611 if test -n "$cf_new_cppflags" ; then
24613 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24614 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
24618 if test -n "$cf_new_extra_cppflags" ; then
24620 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
24621 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
24625 ### Define substitutions for header files to avoid name-pollution
24627 if test "x$cf_cv_have_tcgetattr" = xyes ; then
24633 if test "x$ac_cv_header_stdint_h" = xyes ; then
24639 if test "x$ac_cv_header_termio_h" = xyes ; then
24645 if test "x$ac_cv_header_termios_h" = xyes ; then
24651 ################################################################################
24652 test "x$use_database" = xyes && \
24653 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
24655 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
24656 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
24658 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
24659 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
24662 # Extract the first word of "tic", so it can be a program name with args.
24663 set dummy tic; ac_word=$2
24664 echo "$as_me:24664: checking for $ac_word" >&5
24665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24666 if test "${ac_cv_path_TIC_PATH+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24671 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
24674 ac_save_IFS=$IFS; IFS=$ac_path_separator
24675 ac_dummy="$PATH:/usr/local/ncurses/bin"
24676 for ac_dir in $ac_dummy; do
24678 test -z "$ac_dir" && ac_dir=.
24679 if $as_executable_p "$ac_dir/$ac_word"; then
24680 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
24681 echo "$as_me:24681: found $ac_dir/$ac_word" >&5
24686 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
24690 TIC_PATH=$ac_cv_path_TIC_PATH
24692 if test -n "$TIC_PATH"; then
24693 echo "$as_me:24693: result: $TIC_PATH" >&5
24694 echo "${ECHO_T}$TIC_PATH" >&6
24696 echo "$as_me:24696: result: no" >&5
24697 echo "${ECHO_T}no" >&6
24700 if test -n "$FALLBACK_LIST"
24702 if test "$TIC_PATH" = unknown
24704 { echo "$as_me:24704: WARNING: no tic program found for fallbacks" >&5
24705 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
24709 if test "x$cf_with_tests" != xno ; then
24715 ADAHTML_DIR=../../doc/html/ada
24717 # these could be configurable, but are not currently
24723 # workaround for OS/2 (20151017)
24724 case $cf_cv_system_name in
24726 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
24733 # workaround for g++ versus Solaris (20131116)
24734 case $cf_cv_system_name in
24736 case "x$CPPFLAGS" in
24737 (*-D_XOPEN_SOURCE_EXTENDED*)
24738 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
24740 echo "${as_me:-configure}:24740: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
24742 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
24743 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
24749 # Help to automatically enable the extended curses features when using either
24750 # the *-config or the ".pc" files by adding defines.
24751 echo "$as_me:24751: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
24752 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
24754 for cf_loop1 in $CPPFLAGS_after_XOPEN
24757 for cf_loop2 in $CPPFLAGS_before_XOPEN
24759 if test "x$cf_loop1" = "x$cf_loop2"
24765 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
24767 echo "$as_me:24767: result: $PKG_CFLAGS" >&5
24768 echo "${ECHO_T}$PKG_CFLAGS" >&6
24770 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
24771 case "x$NCURSES_OSPEED" in
24780 cat >>confdefs.h <<EOF
24781 #define NCURSES_OSPEED_COMPAT $cf_compatible
24784 case "x$cf_cv_typeof_chtype" in
24785 (xshort|xint|xlong)
24786 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
24790 case "x$cf_cv_typeof_mmask_t" in
24791 (xshort|xint|xlong)
24792 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
24796 # substitute into misc/Makefile to suppress
24797 # (un)install.data from the
24798 # (un)install rules.
24799 if test "x$cf_with_db_install" = "xno"; then
24801 MISC_UNINSTALL_DATA=
24803 MISC_INSTALL_DATA=install.data
24804 MISC_UNINSTALL_DATA=uninstall.data
24809 if test -n "$PACKAGE"
24811 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
24813 echo "package: $PACKAGE"
24819 if test -n "$RESULTING_SYMS"
24821 cf_filter_syms=$cf_dft_filter_syms
24822 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
24824 echo "${as_me:-configure}:24824: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
24828 if test "x$WILDCARD_SYMS" = xno
24833 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
24835 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
24836 if test $cf_filter_syms = yes
24838 RESULTING_SYMS=resulting.map
24841 if test "x$cross_compiling" = xyes ; then
24842 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
24845 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
24849 cat >>confdefs.h <<\EOF
24850 #define HAVE_CURSES_DATA_BOOLNAMES 1
24853 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile"
24854 ac_config_commands="$ac_config_commands default"
24855 cat >confcache <<\_ACEOF
24856 # This file is a shell script that caches the results of configure
24857 # tests run on this system so they can be shared between configure
24858 # scripts and configure runs, see configure's option --config-cache.
24859 # It is not useful on other systems. If it contains results you don't
24860 # want to keep, you may remove or edit it.
24862 # config.status only pays attention to the cache file if you give it
24863 # the --recheck option to rerun configure.
24865 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24867 # following values.
24871 # The following way of writing the cache mishandles newlines in values,
24872 # but we know of no workaround that is simple, portable, and efficient.
24873 # So, don't put newlines in cache variables' values.
24874 # Ultrix sh set writes to stderr and can't be redirected directly,
24875 # and sets the high bit in the cache file unless we assign to the vars.
24878 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24880 # `set' does not quote correctly, so add quotes (double-quote
24881 # substitution turns \\\\ into \\, and sed turns \\ into \).
24884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24887 # `set' quotes correctly as required by POSIX, so do not add quotes.
24889 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24898 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24900 if cmp -s $cache_file confcache; then :; else
24901 if test -w $cache_file; then
24902 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24903 cat confcache >$cache_file
24905 echo "not updating unwritable cache $cache_file"
24910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24911 # Let make expand exec_prefix.
24912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24914 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24915 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24916 # trailing colons and then remove the whole line if VPATH becomes empty
24917 # (actually we leave an empty line to preserve line numbers).
24918 if test "x$srcdir" = x.; then
24919 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24920 s/:*\$(srcdir):*/:/;
24921 s/:*\${srcdir}:*/:/;
24923 s/^\([^=]*=[ ]*\):*/\1/;
24929 DEFS=-DHAVE_CONFIG_H
24931 : ${CONFIG_STATUS=./config.status}
24932 ac_clean_files_save=$ac_clean_files
24933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24934 { echo "$as_me:24934: creating $CONFIG_STATUS" >&5
24935 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24936 cat >$CONFIG_STATUS <<_ACEOF
24938 # Generated automatically by configure.
24939 # Run this file to recreate the current configuration.
24940 # Compiler output produced by configure, useful for debugging
24941 # configure, is in config.log if it exists.
24944 SHELL=\${CONFIG_SHELL-$SHELL}
24945 ac_cs_invocation="\$0 \$@"
24949 cat >>$CONFIG_STATUS <<\_ACEOF
24950 # Be Bourne compatible
24951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24954 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24958 # Name of the executable.
24959 as_me=`echo "$0" |sed 's,.*[\\/],,'`
24961 if expr a : '\(a\)' >/dev/null 2>&1; then
24967 rm -f conf$$ conf$$.exe conf$$.file
24969 if ln -s conf$$.file conf$$ 2>/dev/null; then
24970 # We could just check for DJGPP; but this test a) works b) is more generic
24971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24972 if test -f conf$$.exe; then
24973 # Don't use ln at all; we don't have any links
24978 elif ln conf$$.file conf$$ 2>/dev/null; then
24983 rm -f conf$$ conf$$.exe conf$$.file
24985 as_executable_p="test -f"
24987 # Support unset when possible.
24988 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24995 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
24996 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
24997 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
24998 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
24999 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
25000 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
25001 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
25002 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
25005 # We need space, tab and new line, in precisely that order.
25011 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
25017 # Files that config.status was made for.
25018 if test -n "$ac_config_files"; then
25019 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25022 if test -n "$ac_config_headers"; then
25023 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25026 if test -n "$ac_config_links"; then
25027 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25030 if test -n "$ac_config_commands"; then
25031 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25034 cat >>$CONFIG_STATUS <<\EOF
25037 \`$as_me' instantiates files from templates according to the
25038 current configuration.
25040 Usage: $0 [OPTIONS] [FILE]...
25042 -h, --help print this help, then exit
25043 -V, --version print version number, then exit
25044 -d, --debug don't remove temporary files
25045 --recheck update $as_me by reconfiguring in the same conditions
25046 --file=FILE[:TEMPLATE]
25047 instantiate the configuration file FILE
25048 --header=FILE[:TEMPLATE]
25049 instantiate the configuration header FILE
25051 Configuration files:
25054 Configuration headers:
25057 Configuration commands:
25060 Report bugs to <dickey@invisible-island.net>."
25063 cat >>$CONFIG_STATUS <<EOF
25066 configured by $0, generated by GNU Autoconf 2.52.20181006,
25067 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25069 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25070 Free Software Foundation, Inc.
25071 This config.status script is free software; the Free Software Foundation
25072 gives unlimited permission to copy, distribute and modify it."
25077 cat >>$CONFIG_STATUS <<\EOF
25078 # If no file are specified by the user, then we need to provide default
25079 # value. By we need to know if files were specified by the user.
25085 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25086 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25088 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25092 *) # This is not an option, so the user has probably given explicit
25094 ac_need_defaults=false;;
25098 # Handling of the options.
25100 cat >>$CONFIG_STATUS <<EOF
25101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25102 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25103 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25105 cat >>$CONFIG_STATUS <<\EOF
25106 --version | --vers* | -V )
25107 echo "$ac_cs_version"; exit 0 ;;
25109 # Conflict between --help and --header
25110 { { echo "$as_me:25110: error: ambiguous option: $1
25111 Try \`$0 --help' for more information." >&5
25112 echo "$as_me: error: ambiguous option: $1
25113 Try \`$0 --help' for more information." >&2;}
25114 { (exit 1); exit 1; }; };;
25115 --help | --hel | -h )
25116 echo "$ac_cs_usage"; exit 0 ;;
25117 --debug | --d* | -d )
25119 --file | --fil | --fi | --f )
25121 CONFIG_FILES="$CONFIG_FILES $1"
25122 ac_need_defaults=false;;
25123 --header | --heade | --head | --hea )
25125 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25126 ac_need_defaults=false;;
25128 # This is an error.
25129 -*) { { echo "$as_me:25129: error: unrecognized option: $1
25130 Try \`$0 --help' for more information." >&5
25131 echo "$as_me: error: unrecognized option: $1
25132 Try \`$0 --help' for more information." >&2;}
25133 { (exit 1); exit 1; }; } ;;
25135 *) ac_config_targets="$ac_config_targets $1" ;;
25144 ## ----------------------- ##
25145 ## Running config.status. ##
25146 ## ----------------------- ##
25148 This file was extended by $as_me 2.52.20181006, executed with
25149 CONFIG_FILES = $CONFIG_FILES
25150 CONFIG_HEADERS = $CONFIG_HEADERS
25151 CONFIG_LINKS = $CONFIG_LINKS
25152 CONFIG_COMMANDS = $CONFIG_COMMANDS
25153 > $ac_cs_invocation
25154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25159 cat >>$CONFIG_STATUS <<EOF
25161 # INIT-COMMANDS section.
25164 ### Special initialization commands, used to pass information from the
25165 ### configuration-run into config.status
25168 ALTERNATE_SYMS="$ALTERNATE_SYMS"
25169 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
25170 DFT_LWR_MODEL="$DFT_LWR_MODEL"
25172 EXTRA_SUFFIX="$EXTRA_SUFFIX"
25173 LDCONFIG="$LDCONFIG"
25174 LIBTOOL_VERSION="$LIBTOOL_VERSION"
25175 LIB_NAME="$LIB_NAME"
25176 LIB_PREFIX="$LIB_PREFIX"
25177 LIB_SUBSETS="$LIB_SUBSETS"
25178 LIB_SUFFIX="$LIB_SUFFIX"
25179 LIB_TRACING="$LIB_TRACING"
25181 MAKE_TERMINFO="$MAKE_TERMINFO"
25182 NCURSES_MAJOR="$NCURSES_MAJOR"
25183 NCURSES_MINOR="$NCURSES_MINOR"
25184 NCURSES_OSPEED="$NCURSES_OSPEED"
25185 NCURSES_PATCH="$NCURSES_PATCH"
25186 SRC_SUBDIRS="$SRC_SUBDIRS"
25187 TERMINFO="$TERMINFO"
25188 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
25189 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
25190 TICS_NAME="$TICS_NAME"
25191 TICS_SUFFIX="$TICS_SUFFIX"
25192 TIC_PATH="$TIC_PATH"
25193 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
25194 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
25195 TINFO_NAME="$TINFO_NAME"
25196 TINFO_SUFFIX="$TINFO_SUFFIX"
25197 UNALTERED_SYMS="$UNALTERED_SYMS"
25198 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
25199 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
25200 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
25201 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
25202 WILDCARD_SYMS="$WILDCARD_SYMS"
25203 WITH_CURSES_H="$with_curses_h"
25204 WITH_ECHO="${enable_echo:=yes}"
25205 WITH_OVERWRITE="$with_overwrite"
25206 cf_LIST_MODELS="$cf_list_models"
25207 cf_cv_abi_version="$cf_cv_abi_version"
25208 cf_cv_do_relink="$cf_cv_do_relink"
25209 cf_cv_do_reranlib="$cf_cv_do_reranlib"
25210 cf_cv_do_symlinks="$cf_cv_do_symlinks"
25211 cf_cv_enable_lp64="$cf_cv_enable_lp64"
25212 cf_cv_enable_opaque="$cf_cv_enable_opaque"
25213 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
25214 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
25215 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
25216 cf_cv_rel_version="$cf_cv_rel_version"
25217 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
25218 cf_cv_shared_soname='$cf_cv_shared_soname'
25219 cf_cv_shlib_version="$cf_cv_shlib_version"
25220 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
25221 cf_cv_system_name="$cf_cv_system_name"
25222 cf_cv_term_driver="$with_term_driver"
25223 cf_with_ada="$cf_with_ada"
25224 cf_with_cxx_binding="$cf_with_cxx_binding"
25225 cf_with_db_install="$cf_with_db_install"
25226 cf_with_manpages="$cf_with_manpages"
25227 cf_with_tests="$cf_with_tests"
25230 with_shared_cxx="$with_shared_cxx"
25234 cat >>$CONFIG_STATUS <<\EOF
25235 for ac_config_target in $ac_config_targets
25237 case "$ac_config_target" in
25238 # Handling of arguments.
25239 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
25240 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
25241 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
25242 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
25243 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
25244 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
25245 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
25246 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25247 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25248 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
25249 *) { { echo "$as_me:25249: error: invalid argument: $ac_config_target" >&5
25250 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25251 { (exit 1); exit 1; }; };;
25255 # If the user did not use the arguments to specify the items to instantiate,
25256 # then the envvar interface is used. Set only those that are not.
25257 # We use the long form for the default assignment because of an extremely
25258 # bizarre bug on SunOS 4.1.3.
25259 if $ac_need_defaults; then
25260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25265 # Create a temporary directory, and hook for its removal unless debugging.
25268 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25269 trap '{ (exit 1); exit 1; }' 1 2 13 15
25272 # Create a (secure) tmp directory for tmp files.
25275 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25276 test -n "$tmp" && test -d "$tmp"
25279 tmp=$TMPDIR/cs$$-$RANDOM
25280 (umask 077 && mkdir $tmp)
25283 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25284 { (exit 1); exit 1; }
25289 cat >>$CONFIG_STATUS <<EOF
25292 # CONFIG_FILES section.
25295 # No need to generate the scripts if there are no CONFIG_FILES.
25296 # This happens for instance when ./config.status config.h
25297 if test -n "\$CONFIG_FILES"; then
25298 # Protect against being on the right side of a sed subst in config.status.
25299 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25300 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25301 s,@SHELL@,$SHELL,;t t
25302 s,@exec_prefix@,$exec_prefix,;t t
25303 s,@prefix@,$prefix,;t t
25304 s,@program_transform_name@,$program_transform_name,;t t
25305 s,@bindir@,$bindir,;t t
25306 s,@sbindir@,$sbindir,;t t
25307 s,@libexecdir@,$libexecdir,;t t
25308 s,@datarootdir@,$datarootdir,;t t
25309 s,@datadir@,$datadir,;t t
25310 s,@sysconfdir@,$sysconfdir,;t t
25311 s,@sharedstatedir@,$sharedstatedir,;t t
25312 s,@localstatedir@,$localstatedir,;t t
25313 s,@runstatedir@,$runstatedir,;t t
25314 s,@libdir@,$libdir,;t t
25315 s,@includedir@,$includedir,;t t
25316 s,@oldincludedir@,$oldincludedir,;t t
25317 s,@infodir@,$infodir,;t t
25318 s,@mandir@,$mandir,;t t
25319 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25320 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25321 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25322 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25323 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25324 s,@build_alias@,$build_alias,;t t
25325 s,@host_alias@,$host_alias,;t t
25326 s,@target_alias@,$target_alias,;t t
25327 s,@ECHO_C@,$ECHO_C,;t t
25328 s,@ECHO_N@,$ECHO_N,;t t
25329 s,@ECHO_T@,$ECHO_T,;t t
25330 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25331 s,@DEFS@,$DEFS,;t t
25332 s,@LIBS@,$LIBS,;t t
25333 s,@top_builddir@,$top_builddir,;t t
25334 s,@EGREP@,$EGREP,;t t
25335 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
25336 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
25337 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
25338 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
25339 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
25340 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
25341 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
25342 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
25343 s,@VERSION@,$VERSION,;t t
25344 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
25345 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
25346 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
25347 s,@PACKAGE@,$PACKAGE,;t t
25348 s,@build@,$build,;t t
25349 s,@build_cpu@,$build_cpu,;t t
25350 s,@build_vendor@,$build_vendor,;t t
25351 s,@build_os@,$build_os,;t t
25352 s,@host@,$host,;t t
25353 s,@host_cpu@,$host_cpu,;t t
25354 s,@host_vendor@,$host_vendor,;t t
25355 s,@host_os@,$host_os,;t t
25356 s,@target@,$target,;t t
25357 s,@target_cpu@,$target_cpu,;t t
25358 s,@target_vendor@,$target_vendor,;t t
25359 s,@target_os@,$target_os,;t t
25361 s,@CFLAGS@,$CFLAGS,;t t
25362 s,@LDFLAGS@,$LDFLAGS,;t t
25363 s,@CPPFLAGS@,$CPPFLAGS,;t t
25364 s,@ac_ct_CC@,$ac_ct_CC,;t t
25365 s,@EXEEXT@,$EXEEXT,;t t
25366 s,@OBJEXT@,$OBJEXT,;t t
25367 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
25369 s,@LDCONFIG@,$LDCONFIG,;t t
25371 s,@CXXFLAGS@,$CXXFLAGS,;t t
25372 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25374 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25375 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25376 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25377 s,@LINT@,$LINT,;t t
25378 s,@LINT_OPTS@,$LINT_OPTS,;t t
25379 s,@LN_S@,$LN_S,;t t
25380 s,@cf_config_suffix@,$cf_config_suffix,;t t
25381 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25382 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
25383 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
25384 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
25385 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
25386 s,@SET_MAKE@,$SET_MAKE,;t t
25387 s,@CTAGS@,$CTAGS,;t t
25388 s,@ETAGS@,$ETAGS,;t t
25389 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
25390 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
25391 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
25392 s,@RANLIB@,$RANLIB,;t t
25393 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25395 s,@ac_ct_LD@,$ac_ct_LD,;t t
25397 s,@ac_ct_AR@,$ac_ct_AR,;t t
25399 s,@ac_ct_NM@,$ac_ct_NM,;t t
25400 s,@ARFLAGS@,$ARFLAGS,;t t
25401 s,@DESTDIR@,$DESTDIR,;t t
25402 s,@BUILD_CC@,$BUILD_CC,;t t
25403 s,@BUILD_CPP@,$BUILD_CPP,;t t
25404 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25405 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
25406 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25407 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
25408 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
25409 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
25410 s,@cf_list_models@,$cf_list_models,;t t
25411 s,@ABI_VERSION@,$ABI_VERSION,;t t
25412 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
25413 s,@LIBTOOL@,$LIBTOOL,;t t
25414 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
25415 s,@LT_UNDEF@,$LT_UNDEF,;t t
25416 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
25417 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
25418 s,@LIB_CREATE@,$LIB_CREATE,;t t
25419 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
25420 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
25421 s,@LIB_PREP@,$LIB_PREP,;t t
25422 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
25423 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
25424 s,@LIB_LINK@,$LIB_LINK,;t t
25425 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
25426 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
25427 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
25428 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
25429 s,@TICS_NAME@,$TICS_NAME,;t t
25430 s,@TINFO_NAME@,$TINFO_NAME,;t t
25431 s,@LIB_NAME@,$LIB_NAME,;t t
25432 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
25433 s,@CC_G_OPT@,$CC_G_OPT,;t t
25434 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
25435 s,@LD_MODEL@,$LD_MODEL,;t t
25436 s,@shlibdir@,$shlibdir,;t t
25437 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
25438 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
25439 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
25440 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
25441 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
25442 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
25443 s,@LINK_PROGS@,$LINK_PROGS,;t t
25444 s,@LINK_TESTS@,$LINK_TESTS,;t t
25445 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
25446 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
25447 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
25448 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
25449 s,@RPATH_LIST@,$RPATH_LIST,;t t
25450 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
25451 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
25452 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
25453 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
25454 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
25455 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
25456 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
25457 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
25458 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
25459 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
25460 s,@XTERM_KBS@,$XTERM_KBS,;t t
25461 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
25462 s,@TERMINFO@,$TERMINFO,;t t
25463 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
25464 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
25465 s,@TERMPATH@,$TERMPATH,;t t
25466 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
25467 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
25468 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
25469 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
25470 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
25471 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
25472 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
25473 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
25474 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
25475 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
25476 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
25477 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
25478 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
25479 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
25480 s,@RGB_PATH@,$RGB_PATH,;t t
25481 s,@no_x11_rgb@,$no_x11_rgb,;t t
25482 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
25483 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
25484 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
25485 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
25486 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
25487 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
25488 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
25489 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
25490 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
25491 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
25492 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
25493 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
25494 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
25495 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
25496 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
25497 s,@PTHREAD@,$PTHREAD,;t t
25498 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
25499 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
25500 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
25501 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
25502 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
25503 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
25504 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
25505 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
25506 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
25507 s,@ECHO_LT@,$ECHO_LT,;t t
25508 s,@ECHO_LD@,$ECHO_LD,;t t
25509 s,@RULE_CC@,$RULE_CC,;t t
25510 s,@SHOW_CC@,$SHOW_CC,;t t
25511 s,@ECHO_CC@,$ECHO_CC,;t t
25512 s,@ECHO_LINK@,$ECHO_LINK,;t t
25513 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
25514 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
25515 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
25516 s,@ADAFLAGS@,$ADAFLAGS,;t t
25517 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
25518 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
25519 s,@ADA_TRACE@,$ADA_TRACE,;t t
25520 s,@MATH_LIB@,$MATH_LIB,;t t
25521 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
25522 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
25523 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
25524 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
25525 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
25526 s,@TEST_LIBS@,$TEST_LIBS,;t t
25527 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
25528 s,@CXXCPP@,$CXXCPP,;t t
25529 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
25530 s,@CXX_AR@,$CXX_AR,;t t
25531 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
25532 s,@CXXLIBS@,$CXXLIBS,;t t
25533 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
25534 s,@gnatmake_exists@,$gnatmake_exists,;t t
25535 s,@gprconfig_exists@,$gprconfig_exists,;t t
25536 s,@M4_exists@,$M4_exists,;t t
25537 s,@cf_ada_make@,$cf_ada_make,;t t
25538 s,@cf_ada_config@,$cf_ada_config,;t t
25539 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
25540 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
25541 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
25542 s,@cf_compile_generics@,$cf_compile_generics,;t t
25543 s,@cf_generic_objects@,$cf_generic_objects,;t t
25544 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
25545 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
25546 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
25547 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
25548 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
25549 s,@cf_ada_package@,$cf_ada_package,;t t
25550 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
25551 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
25552 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
25553 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
25554 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
25555 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
25556 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
25557 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
25558 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
25559 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
25560 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
25561 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
25562 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
25563 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
25564 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
25565 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
25566 s,@TICS_LIBS@,$TICS_LIBS,;t t
25567 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
25568 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
25569 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
25570 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
25571 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
25572 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
25573 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
25574 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
25575 s,@includesubdir@,$includesubdir,;t t
25576 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
25577 s,@TICS_LIST@,$TICS_LIST,;t t
25578 s,@TINFO_LIST@,$TINFO_LIST,;t t
25579 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
25580 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
25581 s,@TEST_ARGS@,$TEST_ARGS,;t t
25582 s,@TEST_DEPS@,$TEST_DEPS,;t t
25583 s,@TEST_ARG2@,$TEST_ARG2,;t t
25584 s,@TEST_DEP2@,$TEST_DEP2,;t t
25585 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
25586 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
25587 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
25588 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
25589 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
25590 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
25591 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
25592 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
25593 s,@cross_compiling@,$cross_compiling,;t t
25594 s,@TIC_PATH@,$TIC_PATH,;t t
25595 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
25596 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
25597 s,@PANEL_NAME@,$PANEL_NAME,;t t
25598 s,@MENU_NAME@,$MENU_NAME,;t t
25599 s,@FORM_NAME@,$FORM_NAME,;t t
25600 s,@CXX_NAME@,$CXX_NAME,;t t
25601 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
25602 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
25603 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
25604 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
25605 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
25606 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
25607 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
25608 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
25613 cat >>$CONFIG_STATUS <<\EOF
25614 # Split the substitutions into bite-sized pieces for seds with
25615 # small command number limits, like on Digital OSF/1 and HP-UX.
25616 ac_max_sed_lines=48
25617 ac_sed_frag=1 # Number of current file.
25618 ac_beg=1 # First line for current file.
25619 ac_end=$ac_max_sed_lines # Line after last line for current file.
25622 while $ac_more_lines; do
25623 if test $ac_beg -gt 1; then
25624 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25626 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25628 if test ! -s $tmp/subs.frag; then
25629 ac_more_lines=false
25631 # The purpose of the label and of the branching condition is to
25632 # speed up the sed processing (if there are no `@' at all, there
25633 # is no need to browse any of the substitutions).
25634 # These are the two extra sed commands mentioned above.
25636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25637 # It is possible to make a multiline substitution using escaped newlines.
25638 # Ensure that we do not split the substitution between script fragments.
25640 ac_END=`expr $ac_end + $ac_max_sed_lines`
25641 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
25642 if test -s $tmp/subs.next; then
25643 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
25644 if test ! -s $tmp/subs.edit; then
25645 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
25646 if test ! -s $tmp/subs.edit; then
25647 if test $ac_beg -gt 1; then
25648 ac_end=`expr $ac_end - 1`
25655 if test -z "$ac_sed_cmds"; then
25656 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25658 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25660 ac_sed_frag=`expr $ac_sed_frag + 1`
25662 ac_end=`expr $ac_end + $ac_max_sed_lines`
25665 if test -z "$ac_sed_cmds"; then
25668 fi # test -n "$CONFIG_FILES"
25671 cat >>$CONFIG_STATUS <<\EOF
25672 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25675 - | *:- | *:-:* ) # input from stdin
25677 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25678 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25679 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25681 * ) ac_file_in=$ac_file.in ;;
25684 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25685 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25686 X"$ac_file" : 'X\(//\)[^/]' \| \
25687 X"$ac_file" : 'X\(//\)$' \| \
25688 X"$ac_file" : 'X\(/\)' \| \
25689 . : '\(.\)' 2>/dev/null ||
25691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25693 /^X\(\/\/\)$/{ s//\1/; q; }
25694 /^X\(\/\).*/{ s//\1/; q; }
25696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25697 { case "$ac_dir" in
25698 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25702 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25703 case $as_mkdir_dir in
25704 # Skip DOS drivespec
25705 ?:) as_incr_dir=$as_mkdir_dir ;;
25707 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25708 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25713 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
25714 # A "../" for each directory in $ac_dir_suffix.
25715 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
25717 ac_dir_suffix= ac_dots=
25722 if test -z "$ac_dots"; then
25725 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
25727 [\\/]* | ?:[\\/]* )
25728 ac_srcdir=$srcdir$ac_dir_suffix;
25729 ac_top_srcdir=$srcdir ;;
25730 *) # Relative path.
25731 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
25732 ac_top_srcdir=$ac_dots$srcdir ;;
25736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25737 *) ac_INSTALL=$ac_dots$INSTALL ;;
25740 if test x"$ac_file" != x-; then
25741 { echo "$as_me:25741: creating $ac_file" >&5
25742 echo "$as_me: creating $ac_file" >&6;}
25745 # Let's still pretend it is `configure' which instantiates (i.e., don't
25746 # use $as_me), people would be surprised to read:
25747 # /* config.h. Generated automatically by config.status. */
25748 configure_input="Generated automatically from `echo $ac_file_in |
25749 sed 's,.*/,,'` by configure."
25751 # First look for the input files in the build tree, otherwise in the
25753 ac_file_inputs=`IFS=:
25754 for f in $ac_file_in; do
25756 -) echo $tmp/stdin ;;
25758 # Absolute (can't be DOS-style, as IFS=:)
25759 test -f "$f" || { { echo "$as_me:25759: error: cannot find input file: $f" >&5
25760 echo "$as_me: error: cannot find input file: $f" >&2;}
25761 { (exit 1); exit 1; }; }
25764 if test -f "$f"; then
25767 elif test -f "$srcdir/$f"; then
25772 { { echo "$as_me:25772: error: cannot find input file: $f" >&5
25773 echo "$as_me: error: cannot find input file: $f" >&2;}
25774 { (exit 1); exit 1; }; }
25777 done` || { (exit 1); exit 1; }
25779 cat >>$CONFIG_STATUS <<\EOF
25780 ac_warn_datarootdir=no
25781 if test x"$ac_file" != x-; then
25782 for ac_item in $ac_file_inputs
25784 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
25785 if test -n "$ac_seen"; then
25786 ac_used=`grep '@datarootdir@' $ac_item`
25787 if test -z "$ac_used"; then
25788 { echo "$as_me:25788: WARNING: datarootdir was used implicitly but not set:
25790 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
25792 ac_warn_datarootdir=yes
25795 ac_seen=`grep '${datarootdir}' $ac_item`
25796 if test -n "$ac_seen"; then
25797 { echo "$as_me:25797: WARNING: datarootdir was used explicitly but not set:
25799 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
25801 ac_warn_datarootdir=yes
25806 if test "x$ac_warn_datarootdir" = xyes; then
25807 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
25811 cat >>$CONFIG_STATUS <<EOF
25815 cat >>$CONFIG_STATUS <<\EOF
25817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25818 s,@configure_input@,$configure_input,;t t
25819 s,@srcdir@,$ac_srcdir,;t t
25820 s,@top_srcdir@,$ac_top_srcdir,;t t
25821 s,@INSTALL@,$ac_INSTALL,;t t
25822 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25824 if test x"$ac_file" != x-; then
25825 cp $tmp/out $ac_file
25827 for ac_name in prefix exec_prefix datarootdir
25829 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
25830 if test -n "$ac_seen"; then
25831 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
25832 if test -z "$ac_init"; then
25833 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
25834 { echo "$as_me:25834: WARNING: Variable $ac_name is used but was not set:
25836 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
25841 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
25842 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
25843 if test -s $tmp/out; then
25844 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
25845 { echo "$as_me:25845: WARNING: Some variables may not be substituted:
25847 echo "$as_me: WARNING: Some variables may not be substituted:
25857 cat >>$CONFIG_STATUS <<\EOF
25860 # CONFIG_HEADER section.
25863 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25864 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25866 # ac_d sets the value in "#define NAME VALUE" lines.
25867 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25868 ac_dB='[ ].*$,\1#\2'
25871 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25872 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25873 ac_iB='\([ ]\),\1#\2define\3'
25876 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25877 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25878 ac_uB='$,\1#\2define\3'
25882 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25883 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25885 - | *:- | *:-:* ) # input from stdin
25887 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25888 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25889 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25890 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25891 * ) ac_file_in=$ac_file.in ;;
25894 test x"$ac_file" != x- && { echo "$as_me:25894: creating $ac_file" >&5
25895 echo "$as_me: creating $ac_file" >&6;}
25897 # First look for the input files in the build tree, otherwise in the
25899 ac_file_inputs=`IFS=:
25900 for f in $ac_file_in; do
25902 -) echo $tmp/stdin ;;
25904 # Absolute (can't be DOS-style, as IFS=:)
25905 test -f "$f" || { { echo "$as_me:25905: error: cannot find input file: $f" >&5
25906 echo "$as_me: error: cannot find input file: $f" >&2;}
25907 { (exit 1); exit 1; }; }
25910 if test -f "$f"; then
25913 elif test -f "$srcdir/$f"; then
25918 { { echo "$as_me:25918: error: cannot find input file: $f" >&5
25919 echo "$as_me: error: cannot find input file: $f" >&2;}
25920 { (exit 1); exit 1; }; }
25923 done` || { (exit 1); exit 1; }
25924 # Remove the trailing spaces.
25925 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25929 # Transform confdefs.h into a list of #define's. We won't use it as a sed
25930 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
25931 # be either 'cat' or 'sort'.
25932 cat confdefs.h | uniq >conftest.vals
25934 # Break up conftest.vals because some shells have a limit on
25935 # the size of here documents, and old seds have small limits too.
25937 rm -f conftest.tail
25938 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
25939 while grep . conftest.vals >/dev/null
25941 # Write chunks of a limited-size here document to conftest.frag.
25942 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
25943 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
25944 echo 'CEOF' >> $CONFIG_STATUS
25945 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25946 rm -f conftest.vals
25947 mv conftest.tail conftest.vals
25949 rm -f conftest.vals
25951 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
25953 echo ' cat >> conftest.edit <<CEOF
25954 /@DEFS@/r conftest.frag
25957 sed -f conftest.edit $tmp/in > $tmp/out
25959 mv $tmp/out $tmp/in
25960 rm -f conftest.edit conftest.frag
25961 ' >> $CONFIG_STATUS
25963 cat >>$CONFIG_STATUS <<\EOF
25964 # Let's still pretend it is `configure' which instantiates (i.e., don't
25965 # use $as_me), people would be surprised to read:
25966 # /* config.h. Generated automatically by config.status. */
25967 if test x"$ac_file" = x-; then
25968 echo "/* Generated automatically by configure. */" >$tmp/config.h
25970 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
25972 cat $tmp/in >>$tmp/config.h
25974 if test x"$ac_file" != x-; then
25975 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25976 { echo "$as_me:25976: $ac_file is unchanged" >&5
25977 echo "$as_me: $ac_file is unchanged" >&6;}
25979 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25980 X"$ac_file" : 'X\(//\)[^/]' \| \
25981 X"$ac_file" : 'X\(//\)$' \| \
25982 X"$ac_file" : 'X\(/\)' \| \
25983 . : '\(.\)' 2>/dev/null ||
25985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25987 /^X\(\/\/\)$/{ s//\1/; q; }
25988 /^X\(\/\).*/{ s//\1/; q; }
25990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25991 { case "$ac_dir" in
25992 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25996 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25997 case $as_mkdir_dir in
25998 # Skip DOS drivespec
25999 ?:) as_incr_dir=$as_mkdir_dir ;;
26001 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26002 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26009 mv $tmp/config.h $ac_file
26013 rm -f $tmp/config.h
26017 cat >>$CONFIG_STATUS <<\EOF
26019 # CONFIG_COMMANDS section.
26021 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26022 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26023 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26027 if test "x$cf_with_tests" != xno ; then
26031 if test ! -d $srcdir/$cf_dir; then
26033 elif test -f $srcdir/$cf_dir/programs; then
26034 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
26040 cf_prefix=$LIB_PREFIX
26042 case $cf_cv_shlib_version in
26043 (cygdll|msysdll|mingw)
26044 TINFO_NAME=$TINFO_ARG_SUFFIX
26049 if test -n "$TINFO_SUFFIX" ; then
26050 case $TINFO_SUFFIX in
26052 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
26053 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
26056 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
26057 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
26060 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
26061 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
26066 for cf_dir in $SRC_SUBDIRS
26068 if test ! -d $srcdir/$cf_dir ; then
26070 elif test -f $srcdir/$cf_dir/modules; then
26075 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
26077 cf_awk_program="$cf_awk_program\
26078 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
26079 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
26083 if test "x$WILDCARD_SYMS" = xno
26085 cf_awk_program="$cf_awk_program\
26086 /[ ]_\\*;/ { skip=1; next; }\
26090 if test "x$cf_awk_program" != "x"
26092 cat >>$cf_dir/Makefile <<CF_EOF
26094 # Generated by CF_LIB_RULES
26095 resulting.map: $UNALTERED_SYMS
26096 $AWK 'BEGIN { skip = 1; last=""; } \
26098 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
26099 skip = 0; last = \$\$0; } \
26100 END { print last; }' < $UNALTERED_SYMS >\$@
26103 rm -f resulting.map
26107 for cf_item in $cf_LIST_MODELS
26113 cf_depsuf=$cf_suffix
26117 cf_depsuf=$cf_suffix
26121 cf_depsuf=$cf_suffix
26124 case $cf_cv_system_name in
26127 cf_depsuf=$cf_suffix
26129 (cygwin*|msys*|mingw*)
26135 cf_depsuf=$cf_suffix
26141 cf_depsuf=$cf_suffix
26145 cf_depsuf=$cf_suffix
26151 cf_depsuf=$cf_suffix
26157 cf_depsuf=$cf_suffix
26160 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
26162 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
26163 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
26167 test "$cf_dir" = c++ && cf_libname=ncurses++
26168 if test $cf_item = shared ; then
26169 if test -n "${LIB_SUFFIX}"
26171 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
26173 cf_shared_suffix="$cf_suffix"
26175 if test "$cf_cv_do_symlinks" = yes ; then
26178 case "$cf_cv_shlib_version" in
26180 cf_version_name=REL_VERSION
26183 cf_version_name=ABI_VERSION
26187 if test -n "$cf_version_name"
26189 case "$cf_cv_system_name" in
26192 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
26195 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
26199 if test -n "${USE_LIB_SUFFIX}"
26201 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
26203 cf_shared_suffix="$cf_suffix"
26206 # cygwin needs import library, and has unique naming convention
26207 # use autodetected ${cf_prefix} for import lib and static lib, but
26208 # use 'cyg' prefix for shared lib.
26209 case $cf_cv_shlib_version in
26211 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
26212 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
26215 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
26216 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
26219 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
26220 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
26226 if test -n "$cf_add_lib"
26228 Libs_To_Make="$Libs_To_Make $cf_add_lib"
26232 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
26233 Libs_To_Make="$Libs_To_Make $cf_add_lib"
26236 if test $cf_dir = ncurses ; then
26237 cf_subsets="$LIB_SUBSETS"
26238 cf_r_parts="$cf_subsets"
26239 cf_liblist="$Libs_To_Make"
26241 while test -n "$cf_r_parts"
26243 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
26244 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
26245 if test "$cf_l_parts" != "$cf_r_parts" ; then
26247 case $cf_l_parts in
26249 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
26252 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
26258 if test -n "$cf_add_lib"; then
26259 Libs_To_Make="$cf_add_lib $Libs_To_Make"
26266 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
26269 if test $cf_dir = c++; then
26270 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
26272 for cf_item in $Libs_To_Make
26278 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
26281 for cf_test in $cf_list
26283 if test "$cf_test" = "$cf_item"
26285 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
26290 test -n "$cf_item" && cf_list="$cf_list $cf_item"
26292 Libs_To_Make="$cf_list"
26296 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
26297 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
26298 $cf_dir/Makefile >$cf_dir/Makefile.out
26299 mv $cf_dir/Makefile.out $cf_dir/Makefile
26301 $AWK -f $srcdir/mk-0th.awk \
26302 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
26303 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
26305 for cf_subset in $cf_subsets
26308 for cf_item in $cf_LIST_MODELS
26311 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
26313 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26316 if test "$CXX_MODEL" = SHARED; then
26317 case $cf_cv_shlib_version in
26318 (cygdll|msysdll|mingw)
26319 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
26321 echo "${as_me:-configure}:26321: testing overriding CXX_MODEL to SHARED ..." 1>&5
26323 with_shared_cxx=yes
26326 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
26334 cf_depsuf=$cf_suffix
26338 cf_depsuf=$cf_suffix
26342 cf_depsuf=$cf_suffix
26345 case $cf_cv_system_name in
26348 cf_depsuf=$cf_suffix
26350 (cygwin*|msys*|mingw*)
26356 cf_depsuf=$cf_suffix
26362 cf_depsuf=$cf_suffix
26366 cf_depsuf=$cf_suffix
26372 cf_depsuf=$cf_suffix
26378 cf_depsuf=$cf_suffix
26381 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
26383 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
26384 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
26388 (libtool) cf_subdir='obj_lo' ;;
26389 (normal) cf_subdir='objects' ;;
26390 (debug) cf_subdir='obj_g' ;;
26391 (profile) cf_subdir='obj_p' ;;
26393 case $cf_cv_system_name in
26395 cf_subdir='objects' ;;
26397 cf_subdir='obj_s' ;;
26401 # Test for case where we build libtinfo with a different name.
26403 if test $cf_dir = ncurses ; then
26406 cf_libname=${cf_libname}$USE_LIB_SUFFIX
26409 cf_libname=$TINFO_LIB_SUFFIX
26412 cf_libname=$TICS_LIB_SUFFIX
26415 elif test $cf_dir = c++ ; then
26416 cf_libname=ncurses++$USE_LIB_SUFFIX
26418 cf_libname=${cf_libname}$USE_LIB_SUFFIX
26420 if test -n "${USE_ARG_SUFFIX}" ; then
26421 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
26422 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
26425 # These dependencies really are for development, not
26426 # builds, but they are useful in porting, too.
26427 cf_depend="../include/ncurses_cfg.h"
26428 if test "$srcdir" = "."; then
26431 cf_reldir="\${srcdir}"
26434 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
26435 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
26436 elif test -f $srcdir/$cf_dir/curses.priv.h; then
26437 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
26441 old_cf_suffix="$cf_suffix"
26442 if test "$cf_cv_shlib_version_infix" = yes ; then
26443 if test -n "$USE_LIB_SUFFIX" ; then
26444 case $USE_LIB_SUFFIX in
26446 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
26447 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
26448 cf_dir_suffix=tw$EXTRA_SUFFIX
26451 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
26452 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
26453 cf_dir_suffix=t$EXTRA_SUFFIX
26456 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
26457 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
26458 cf_dir_suffix=w$EXTRA_SUFFIX
26461 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
26462 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
26463 cf_dir_suffix=$EXTRA_SUFFIX
26469 $AWK -f $srcdir/mk-1st.awk \
26470 name=${cf_libname}${cf_dir_suffix} \
26471 traces=$LIB_TRACING \
26473 CXX_MODEL=$CXX_MODEL \
26475 prefix=$cf_prefix \
26476 suffix=$cf_suffix \
26477 subset=$cf_subset \
26478 driver=$cf_cv_term_driver \
26480 TermlibRoot=$TINFO_NAME \
26481 TermlibSuffix=$TINFO_SUFFIX \
26482 ShlibVer=$cf_cv_shlib_version \
26483 ShlibVerInfix=$cf_cv_shlib_version_infix \
26484 ReLink=${cf_cv_do_relink:-no} \
26485 ReRanlib=${cf_cv_do_reranlib:-yes} \
26486 DoLinks=$cf_cv_do_symlinks \
26487 rmSoLocs=$cf_cv_rm_so_locs \
26488 ldconfig="$LDCONFIG" \
26489 overwrite=$WITH_OVERWRITE \
26490 depend="$cf_depend" \
26492 libtool_version="$LIBTOOL_VERSION" \
26493 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
26495 cf_suffix="$old_cf_suffix"
26497 for cf_subdir2 in $cf_subdirs lib
26499 test $cf_subdir = $cf_subdir2 && break
26501 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
26502 $AWK -f $srcdir/mk-2nd.awk \
26504 traces=$LIB_TRACING \
26507 subset=$cf_subset \
26510 crenames=$cf_cv_prog_CC_c_o \
26511 cxxrenames=$cf_cv_prog_CXX_c_o \
26512 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
26513 cf_subdirs="$cf_subdirs $cf_subdir"
26518 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
26521 for cf_dir in $SRC_SUBDIRS
26523 if test ! -d $srcdir/$cf_dir ; then
26527 if test -f $cf_dir/Makefile ; then
26530 echo 'libs \' >> Makefile
26531 echo 'install.libs \' >> Makefile
26532 echo 'uninstall.libs ::' >> Makefile
26533 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
26538 if test -f $srcdir/$cf_dir/modules; then
26540 if test -f $srcdir/$cf_dir/headers; then
26541 cat >> Makefile <<CF_EOF
26542 install.includes \\
26543 uninstall.includes \\
26546 if test "$cf_dir" != "c++" ; then
26547 echo 'lint \' >> Makefile
26549 cat >> Makefile <<CF_EOF
26555 uninstall.$cf_dir ::
26556 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
26558 elif test -f $srcdir/$cf_dir/headers; then
26559 cat >> Makefile <<CF_EOF
26564 install.includes \\
26565 uninstall.includes ::
26566 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
26571 if test "x$cf_with_db_install" = xyes; then
26572 cat >> Makefile <<CF_EOF
26574 install.libs uninstall.libs \\
26575 install.data uninstall.data ::
26576 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
26579 cat >> Makefile <<CF_EOF
26581 install.libs uninstall.libs ::
26582 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
26586 if test "x$cf_with_manpages" = xyes; then
26587 cat >> Makefile <<CF_EOF
26591 cd man && \${MAKE} \${TOP_MFLAGS} \$@
26595 cat >> Makefile <<CF_EOF
26598 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
26599 rm -f headers.sh headers.sed mk_shared_lib.sh
26600 rm -f edit_man.* man_alias.*
26601 rm -rf \${DIRS_TO_MAKE}
26604 # Special case: tack's manpage lives in its own directory.
26605 if test "x$cf_with_manpages" = xyes; then
26606 if test "x$cf_with_tack" = "xyes"; then
26607 cat >> Makefile <<CF_EOF
26611 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
26616 rm -f headers.sed headers.sh
26618 echo creating headers.sh
26619 cat >headers.sh <<CF_EOF
26621 # This shell script is generated by the 'configure' script. It is invoked in a
26622 # subdirectory of the build tree. It generates a sed-script in the parent
26623 # directory that is used to adjust includes for header files that reside in a
26624 # subdirectory of /usr/include, etc.
26626 while test \$# != 3
26628 PRG="\$PRG \$1"; shift
26633 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
26634 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
26635 echo installing \$SRC in \$DST
26638 if test $WITH_CURSES_H = yes; then
26639 cat >>headers.sh <<CF_EOF
26642 END=\`basename \$DST\`
26643 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
26645 NAME=\`basename \$i\`
26646 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
26650 echo "" >> \$TMPSED
26656 cat >>headers.sh <<CF_EOF
26659 END=\`basename \$DST\`
26660 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
26662 NAME=\`basename \$i\`
26663 if test "\$NAME" = "curses.h"
26665 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
26668 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
26672 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
26677 cat >>headers.sh <<CF_EOF
26679 sed -f \$TMPSED \$SRC > \$TMPSRC
26680 NAME=\`basename \$SRC\`
26682 if test $WITH_CURSES_H != yes; then
26683 cat >>headers.sh <<CF_EOF
26684 test "\$NAME" = "curses.h" && NAME=ncurses.h
26687 cat >>headers.sh <<CF_EOF
26688 # Just in case someone gzip'd manpages, remove the conflicting copy.
26689 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
26691 eval \$PRG \$TMPSRC \$DST/\$NAME
26692 rm -f \$TMPSRC \$TMPSED
26695 chmod 0755 headers.sh
26697 for cf_dir in $SRC_SUBDIRS
26699 if test ! -d $srcdir/$cf_dir ; then
26703 if test -f $srcdir/$cf_dir/headers; then
26704 $AWK -f $srcdir/mk-hdr.awk \
26705 subset="$LIB_SUBSETS" \
26706 compat="$WITH_CURSES_H" \
26707 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
26710 if test -f $srcdir/$cf_dir/modules; then
26711 if test "$cf_dir" != "c++" ; then
26712 cat >>$cf_dir/Makefile <<"CF_EOF"
26713 depend : ${AUTO_SRC}
26714 makedepend -- ${CPPFLAGS} -- ${C_SRC}
26716 # DO NOT DELETE THIS LINE -- make depend depends on it.
26722 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
26723 if test -z "$USE_OLD_MAKERULES" ; then
26724 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
26732 cat >>$CONFIG_STATUS <<\EOF
26734 { (exit 0); exit 0; }
26736 chmod +x $CONFIG_STATUS
26737 ac_clean_files=$ac_clean_files_save
26739 # configure is writing to config.log, and then calls config.status.
26740 # config.status does its own redirection, appending to config.log.
26741 # Unfortunately, on DOS this fails, as config.log is still kept open
26742 # by configure, so config.status won't be able to write to it; its
26743 # output is simply discarded. So we exec the FD to /dev/null,
26744 # effectively closing config.log, so it can be properly (re)opened and
26745 # appended to by config.status. When coming back to configure, we
26746 # need to make the FD available again.
26747 if test "$no_create" != yes; then
26750 $SHELL $CONFIG_STATUS || ac_cs_success=false
26752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26753 # would make configure fail if this is the last instruction.
26754 $ac_cs_success || { (exit 1); exit 1; }
26756 ${MAKE:-make} preinstall