2 # From configure.in Revision: 1.716 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200802.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
615 ac_env_CXX_set=${CXX+set}
616 ac_env_CXX_value=$CXX
617 ac_cv_env_CXX_set=${CXX+set}
618 ac_cv_env_CXX_value=$CXX
619 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
620 ac_env_CXXFLAGS_value=$CXXFLAGS
621 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
623 ac_env_CXXCPP_set=${CXXCPP+set}
624 ac_env_CXXCPP_value=$CXXCPP
625 ac_cv_env_CXXCPP_set=${CXXCPP+set}
626 ac_cv_env_CXXCPP_value=$CXXCPP
629 # Report the --help message.
631 if test "$ac_init_help" = "long"; then
632 # Omit some internal or obsolete options to make the list less imposing.
633 # This message is too long to be a string in the A/UX 3.1 sh.
635 \`configure' configures this package to adapt to many kinds of systems.
637 Usage: $0 [OPTION]... [VAR=VALUE]...
639 To assign environment variables (e.g., CC, CFLAGS...), specify them as
640 VAR=VALUE. See below for descriptions of some of the useful variables.
642 Defaults for the options are specified in brackets.
645 -h, --help display this help and exit
646 --help=short display options specific to this package
647 --help=recursive display the short help of all the included packages
648 -V, --version display version information and exit
649 -q, --quiet, --silent do not print \`checking...' messages
650 --cache-file=FILE cache test results in FILE [disabled]
651 -C, --config-cache alias for \`--cache-file=config.cache'
652 -n, --no-create do not create output files
653 --srcdir=DIR find the sources in DIR [configure dir or \`..']
658 Installation directories:
659 --prefix=PREFIX install architecture-independent files in PREFIX
661 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 By default, \`make install' will install all the files in
665 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
666 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
667 for instance \`--prefix=\$HOME'.
669 For better control, use the options below.
671 Fine tuning of the installation directories:
672 --bindir=DIR user executables [EPREFIX/bin]
673 --sbindir=DIR system admin executables [EPREFIX/sbin]
674 --libexecdir=DIR program executables [EPREFIX/libexec]
675 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
676 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
677 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
678 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
679 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
680 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
681 --libdir=DIR object code libraries [EPREFIX/lib]
682 --includedir=DIR C header files [PREFIX/include]
683 --oldincludedir=DIR C header files for non-gcc [/usr/include]
684 --infodir=DIR info documentation [DATAROOTDIR/info]
685 --mandir=DIR man documentation [DATAROOTDIR/man]
691 --program-prefix=PREFIX prepend PREFIX to installed program names
692 --program-suffix=SUFFIX append SUFFIX to installed program names
693 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
696 --build=BUILD configure for building on BUILD [guessed]
697 --host=HOST build programs to run on HOST [BUILD]
698 --target=TARGET configure for building compilers for TARGET [HOST]
702 if test -n "$ac_init_help"; then
707 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
708 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
714 --with-rel-version=XXX override derived release version
715 --with-abi-version=XXX override derived ABI version
716 --with-system-type=XXX test: override derived host system-type
717 --without-ada suppress check for Ada compiler, don't build demo
718 --without-cxx do not adjust ncurses bool to match C++
719 --without-cxx-binding do not build C++ binding and demo
720 --disable-db-install suppress install of terminal database
721 --without-manpages suppress install of manpages
722 --without-progs suppress build/install with programs (e.g., tic)
723 --without-tack suppress build/install with tack program
724 --without-tests suppress build/install with test-programs
725 --without-curses-h install curses.h as ncurses.h only
726 --with-config-suffix=X suffixes ncursesXX-config file
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-pkg-config-libdir=XXX use given directory for installing pc-files
729 --enable-pc-files generate and install .pc files for pkg-config
730 --with-pc-suffix suffixes pc-files
731 --enable-mixed-case tic should assume mixed-case filenames
732 --with-install-prefix prefixes actual install-location ($DESTDIR)
733 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
734 --with-build-cc=XXX the build C compiler ($BUILD_CC)
735 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
736 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
737 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
738 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
739 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
740 Options to Specify the Libraries Built/Used:
741 --disable-libtool-version enable to use libtool's incompatible naming scheme
742 --with-libtool generate libraries with libtool
743 --with-shared generate shared-libraries
744 --with-normal generate normal-libraries (default)
745 --with-debug generate debug-libraries (default)
746 --with-profile generate profile-libraries
747 --with-cxx-shared generate C++ shared-libraries
748 --with-lib-prefix override library-prefix
749 --with-termlib generate separate terminfo library
750 --with-ticlib generate separate tic library
751 --enable-rpath use rpath option when generating shared libraries
752 --disable-relink relink shared libraries during install
753 --with-shlib-version=X Specify rel or abi version for shared libs
754 --with-libtool-opts=XXX specify additional libtool options
755 --with-export-syms=XXX limit exported symbols using libtool
756 --with-versioned-syms=X markup versioned symbols using ld
757 --with-gpm use Alessandro Rubini's GPM library
758 --without-dlsym do not use dlsym() to load GPM dynamically
759 --with-pcre2 use PCRE2 for regular-expressions
760 --with-sysmouse use sysmouse (FreeBSD console)
761 --disable-lib-suffixes disable library suffixes
762 --disable-rpath-hack don't add rpath options for additional libraries
763 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
764 Fine-Tuning Your Configuration:
765 --with-extra-suffix=X append extra suffix to header/library paths
766 --disable-overwrite put headers in subdir, omit link to -lcurses
767 --disable-database do not use terminfo, only fallbacks/termcap
768 --with-database=XXX specify terminfo source to install
769 --with-hashed-db specify hashed-database library
770 --with-fallbacks=XXX specify list of fallback terminal descriptions
771 --with-tic-path=XXX specify path of tic for fallbacks
772 --with-infocmp-path=XXX specify path of infocmp for fallbacks
773 --without-xterm-new specify if xterm terminfo should be old version
774 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
775 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
776 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
777 --disable-big-core assume machine has little memory
778 --disable-big-strings assume compiler has only standard-size strings
779 --enable-termcap compile in termcap fallback support
780 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
781 --enable-getcap fast termcap load, no xrefs to terminfo
782 --enable-getcap-cache cache translated termcaps in ~/.terminfo
783 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
784 --disable-root-environ restrict environment when running as root
785 --enable-symlinks make tic use symbolic links not hard links
786 --enable-broken_linker compile with broken-linker support code
787 --enable-bsdpad recognize BSD-style prefix padding
788 --enable-widec compile with wide-char/UTF-8 code
789 --disable-lp64 allow chtype to be long (ignore _LP64)
790 --disable-largefile omit support for large files
791 --disable-tparm-varargs compile tparm() without varargs interface
792 --disable-tic-depends link tic library without explicit dependency on ncurses library
793 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
794 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
795 --with-bool=TYPE override fallback type of bool variable
796 --with-caps=alt compile with alternate Caps file
797 --with-chtype=TYPE override type of chtype
798 --with-ospeed=TYPE override type of ospeed variable
799 --with-mmask-t=TYPE override type of mmask_t
800 --with-ccharw-max=XXX override size CCHARW_MAX
801 --enable-signed-char compile using signed Boolean's in term.h
802 --with-tparm-arg=TYPE override parameter type of tparm
803 --with-rcs-ids compile-in RCS identifiers
804 Options to Specify How Manpages are Installed:
805 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
806 optionally formatted/catonly, e.g., gzip,formatted
807 --with-manpage-renames specify manpage-renaming
808 --with-manpage-aliases specify manpage-aliases using .so
809 --with-manpage-symlinks specify manpage-aliases using symlinks
810 --with-manpage-tbl specify manpage processing with tbl
812 --disable-ext-funcs disable function-extensions
813 --enable-sp-funcs enable SCREEN-extensions
814 --enable-term-driver enable terminal-driver
815 --enable-const compile with extra/non-standard const
816 --enable-ext-colors compile for 256-color support
817 --enable-ext-mouse compile for extended mouse-encoding
818 --enable-ext-putwin compile with extended putwin/screendump
819 --enable-no-padding compile with $NCURSES_NO_PADDING code
820 --enable-sigwinch compile with SIGWINCH handler
821 --enable-tcap-names compile with user-definable terminal capabilities
823 --with-pthread use POSIX thread library
824 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
825 --enable-weak-symbols enable weak-symbols for pthreads
826 --enable-reentrant compile with reentrant code
827 --enable-opaque-curses make curses WINDOW, etc., "opaque"
828 --enable-opaque-form make form-library structures "opaque"
829 --enable-opaque-menu make menu-library structures "opaque"
830 --enable-opaque-panel make panel-library structures "opaque"
831 --with-wrap-prefix=XXX override prefix used for public variables
833 --without-develop disable development options
834 --enable-hard-tabs compile with hard-tabs code
835 --enable-xmc-glitch compile with support for xmc (magic-cookie)
837 --disable-assumed-color do not assume anything about default-colors
838 --disable-hashmap compile without hashmap scrolling-optimization
839 --enable-colorfgbg compile-in experimental $COLORFGBG code
840 --enable-fvisibility compile with -fvisibility=hidden
841 --enable-interop compile-in interop bindings
842 --enable-safe-sprintf compile with experimental safe-sprintf code
843 --disable-scroll-hints compile without scroll-hints code
844 --enable-wgetch-events compile with wgetch-events code
845 Testing/development Options:
846 --disable-echo do not display "compiling" commands
847 --disable-stripping do not strip (debug info) installed executables
848 --enable-warnings build: turn on GCC compiler warnings
849 --enable-string-hacks work around bogus compiler/loader warnings
850 --enable-assertions test: turn on generation of assertion code
851 --with-dmalloc test: use Gray Watson's dmalloc library
852 --with-dbmalloc test: use Conor Cahill's dbmalloc library
853 --with-valgrind test: use valgrind
854 --disable-leaks test: free permanent memory, analyze leaks
855 --enable-expanded test: generate functions for certain macros
856 --disable-macros test: use functions rather than macros
857 --with-trace test: add trace() function to all models of ncurses
858 --disable-gnat-projects test: disable GNAT projects even if usable
860 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
861 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
862 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
863 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
864 --with-ada-libname=XXX override default Ada library-name
865 --with-form-libname=XXX override form basename of library
866 --with-menu-libname=XXX override menu basename of library
867 --with-panel-libname=XXX override panel basename of library
868 --with-cxx-libname=XXX override ncurses++ basename of library
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
878 CXX C++ compiler command
879 CXXFLAGS C++ compiler flags
880 CXXCPP C++ preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
893 # A "../" for each directory in /$ac_subdir.
894 ac_dots=`echo $ac_subdir |
895 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
898 .) # No --srcdir option. We are building in place.
899 ac_sub_srcdir=$srcdir ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_sub_srcdir=$srcdir/$ac_subdir ;;
903 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
906 # Check for guested configure; otherwise get Cygnus style configure.
907 if test -f $ac_sub_srcdir/configure.gnu; then
909 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
910 elif test -f $ac_sub_srcdir/configure; then
912 $SHELL $ac_sub_srcdir/configure --help=recursive
913 elif test -f $ac_sub_srcdir/configure.ac ||
914 test -f $ac_sub_srcdir/configure.in; then
918 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
924 test -n "$ac_init_help" && exit 0
925 if $ac_init_version; then
928 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
929 Free Software Foundation, Inc.
930 This configure script is free software; the Free Software Foundation
931 gives unlimited permission to copy, distribute and modify it.
937 This file contains any messages produced by compilers while
938 running configure, to aid debugging if configure makes a mistake.
940 It was created by $as_me, which was
941 generated by GNU Autoconf 2.52.20200802. Invocation command line was
952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
964 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981 # Keep a trace of the command line.
982 # Strip out --no-create and --no-recursion so they do not pile up.
983 # Also quote any args containing shell meta-characters.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c) ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
993 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
995 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
997 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1000 # Get rid of the leading space.
1003 # When interrupted or exit'd, cleanup temporary files, and complete
1004 # config.log. We remove comments because anyway the quotes in there
1005 # would cause problems or look ugly.
1006 trap 'exit_status=$?
1007 # Save into config.log some information that might help in debugging.
1009 echo "## ----------------- ##" >&5
1010 echo "## Cache variables. ##" >&5
1011 echo "## ----------------- ##" >&5
1013 # The following way of writing the cache mishandles newlines in values,
1016 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1019 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028 sed "/^$/d" confdefs.h >conftest.log
1029 if test -s conftest.log; then
1031 echo "## ------------ ##" >&5
1032 echo "## confdefs.h. ##" >&5
1033 echo "## ------------ ##" >&5
1035 cat conftest.log >&5
1038 test "$ac_signal" != 0 &&
1039 echo "$as_me: caught signal $ac_signal" >&5
1040 echo "$as_me: exit $exit_status" >&5
1041 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1044 for ac_signal in 1 2 13 15; do
1045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1050 rm -rf conftest* confdefs.h
1051 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1054 # Let the site file select an alternate cache file if it wants to.
1055 # Prefer explicitly selected file to automatically selected ones.
1056 if test -z "$CONFIG_SITE"; then
1057 if test "x$prefix" != xNONE; then
1058 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1060 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1063 for ac_site_file in $CONFIG_SITE; do
1064 if test -r "$ac_site_file"; then
1065 { echo "$as_me:1065: loading site script $ac_site_file" >&5
1066 echo "$as_me: loading site script $ac_site_file" >&6;}
1067 cat "$ac_site_file" >&5
1072 if test -r "$cache_file"; then
1073 # Some versions of bash will fail to source /dev/null (special
1074 # files actually), so we avoid doing that.
1075 if test -f "$cache_file"; then
1076 { echo "$as_me:1076: loading cache $cache_file" >&5
1077 echo "$as_me: loading cache $cache_file" >&6;}
1079 [\\/]* | ?:[\\/]* ) . $cache_file;;
1080 *) . ./$cache_file;;
1084 { echo "$as_me:1084: creating cache $cache_file" >&5
1085 echo "$as_me: creating cache $cache_file" >&6;}
1089 # Check that the precious variables saved in the cache have kept the same
1091 ac_cache_corrupted=false
1092 for ac_var in `(set) 2>&1 |
1093 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1095 eval ac_new_set=\$ac_env_${ac_var}_set
1096 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1097 eval ac_new_val="\$ac_env_${ac_var}_value"
1098 case $ac_old_set,$ac_new_set in
1100 { echo "$as_me:1100: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1101 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1102 ac_cache_corrupted=: ;;
1104 { echo "$as_me:1104: error: \`$ac_var' was not set in the previous run" >&5
1105 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1106 ac_cache_corrupted=: ;;
1109 if test "x$ac_old_val" != "x$ac_new_val"; then
1110 { echo "$as_me:1110: error: \`$ac_var' has changed since the previous run:" >&5
1111 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1112 { echo "$as_me:1112: former value: $ac_old_val" >&5
1113 echo "$as_me: former value: $ac_old_val" >&2;}
1114 { echo "$as_me:1114: current value: $ac_new_val" >&5
1115 echo "$as_me: current value: $ac_new_val" >&2;}
1116 ac_cache_corrupted=:
1119 # Pass precious variables to config.status. It doesn't matter if
1120 # we pass some twice (in addition to the command line arguments).
1121 if test "$ac_new_set" = set; then
1123 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1125 ac_configure_args="$ac_configure_args '$ac_arg'"
1127 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1132 if $ac_cache_corrupted; then
1133 { echo "$as_me:1133: error: changes in the environment can compromise the build" >&5
1134 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1135 { { echo "$as_me:1135: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1136 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1137 { (exit 1); exit 1; }; }
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1145 ac_main_return=return
1147 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1148 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1153 echo "#! $SHELL" >conftest.sh
1154 echo "exit 0" >>conftest.sh
1155 chmod +x conftest.sh
1156 if { (echo "$as_me:1156: PATH=\".;.\"; conftest.sh") >&5
1157 (PATH=".;."; conftest.sh) 2>&5
1159 echo "$as_me:1159: \$? = $ac_status" >&5
1160 (exit $ac_status); }; then
1161 ac_path_separator=';'
1165 PATH_SEPARATOR="$ac_path_separator"
1168 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1172 echo "$as_me:1172: checking for egrep" >&5
1173 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1174 if test "${ac_cv_prog_egrep+set}" = set; then
1175 echo $ECHO_N "(cached) $ECHO_C" >&6
1177 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1178 then ac_cv_prog_egrep='grep -E'
1179 else ac_cv_prog_egrep='egrep'
1182 echo "$as_me:1182: result: $ac_cv_prog_egrep" >&5
1183 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1184 EGREP=$ac_cv_prog_egrep
1186 test -z "$EGREP" && { { echo "$as_me:1186: error: No egrep program found" >&5
1187 echo "$as_me: error: No egrep program found" >&2;}
1188 { (exit 1); exit 1; }; }
1190 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1191 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1192 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1193 cf_cv_abi_version=${NCURSES_MAJOR}
1194 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1195 cf_cv_timestamp=`date`
1196 echo "$as_me:1196: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1197 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1199 if test -f $srcdir/VERSION ; then
1200 echo "$as_me:1200: checking for package version" >&5
1201 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1203 # if there are not enough fields, cut returns the last one...
1204 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1205 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1206 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1208 # this is how CF_BUNDLED_INTL uses $VERSION:
1209 VERSION="$cf_field1"
1211 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1212 test -z "$VERSION_MAJOR" && { { echo "$as_me:1212: error: missing major-version" >&5
1213 echo "$as_me: error: missing major-version" >&2;}
1214 { (exit 1); exit 1; }; }
1216 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1217 test -z "$VERSION_MINOR" && { { echo "$as_me:1217: error: missing minor-version" >&5
1218 echo "$as_me: error: missing minor-version" >&2;}
1219 { (exit 1); exit 1; }; }
1221 echo "$as_me:1221: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1222 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1224 echo "$as_me:1224: checking for package patch date" >&5
1225 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1226 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1227 case .$VERSION_PATCH in
1229 { { echo "$as_me:1229: error: missing patch-date $VERSION_PATCH" >&5
1230 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1231 { (exit 1); exit 1; }; }
1233 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1236 { { echo "$as_me:1236: error: illegal patch-date $VERSION_PATCH" >&5
1237 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1238 { (exit 1); exit 1; }; }
1241 echo "$as_me:1241: result: $VERSION_PATCH" >&5
1242 echo "${ECHO_T}$VERSION_PATCH" >&6
1244 { { echo "$as_me:1244: error: did not find $srcdir/VERSION" >&5
1245 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1246 { (exit 1); exit 1; }; }
1249 # show the actual data that we have for versions:
1250 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1252 echo "${as_me:-configure}:1252: testing ABI VERSION $VERSION ..." 1>&5
1254 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1256 echo "${as_me:-configure}:1256: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1258 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1260 echo "${as_me:-configure}:1260: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1262 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1264 echo "${as_me:-configure}:1264: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1269 cat >>confdefs.h <<EOF
1270 #define PACKAGE "$PACKAGE"
1273 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1275 cat >>confdefs.h <<EOF
1276 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1279 cat >>confdefs.h <<EOF
1280 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1283 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1285 # Check whether --with-rel-version or --without-rel-version was given.
1286 if test "${with_rel_version+set}" = set; then
1287 withval="$with_rel_version"
1288 { echo "$as_me:1288: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1289 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1290 cf_cv_rel_version=$withval
1293 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1294 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1296 if test -n "$NCURSES_MAJOR" ; then
1297 case $NCURSES_MAJOR in
1301 { { echo "$as_me:1301: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1302 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1303 { (exit 1); exit 1; }; }
1307 { { echo "$as_me:1307: error: Release major-version value is empty" >&5
1308 echo "$as_me: error: Release major-version value is empty" >&2;}
1309 { (exit 1); exit 1; }; }
1312 if test -n "$NCURSES_MINOR" ; then
1313 case $NCURSES_MINOR in
1317 { { echo "$as_me:1317: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1318 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1319 { (exit 1); exit 1; }; }
1323 { { echo "$as_me:1323: error: Release minor-version value is empty" >&5
1324 echo "$as_me: error: Release minor-version value is empty" >&2;}
1325 { (exit 1); exit 1; }; }
1328 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1330 # Check whether --with-abi-version or --without-abi-version was given.
1331 if test "${with_abi_version+set}" = set; then
1332 withval="$with_abi_version"
1334 if test "x$cf_cv_abi_version" != "x$withval"
1336 { echo "$as_me:1336: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1337 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1338 case $cf_cv_rel_version in
1340 cf_cv_rel_version=$withval.0
1343 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1347 cf_cv_abi_version=$withval
1350 if test -n "$cf_cv_abi_version" ; then
1351 case $cf_cv_abi_version in
1355 { { echo "$as_me:1355: error: ABI version is not a number: $cf_cv_abi_version" >&5
1356 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1357 { (exit 1); exit 1; }; }
1361 { { echo "$as_me:1361: error: ABI version value is empty" >&5
1362 echo "$as_me: error: ABI version value is empty" >&2;}
1363 { (exit 1); exit 1; }; }
1366 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1368 case $cf_cv_rel_version in
1370 cf_cv_rel_version=$with_abi_version.0
1376 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377 if test -f $ac_dir/install-sh; then
1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1381 elif test -f $ac_dir/install.sh; then
1383 ac_install_sh="$ac_aux_dir/install.sh -c"
1385 elif test -f $ac_dir/shtool; then
1387 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:1392: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394 { (exit 1); exit 1; }; }
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:1402: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:1406: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:1415: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:1419: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:1424: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:1431: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:1440: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:1445: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1453 echo "$as_me:1453: checking target system type" >&5
1454 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1455 if test "${ac_cv_target+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 ac_cv_target_alias=$target_alias
1459 test "x$ac_cv_target_alias" = "x" &&
1460 ac_cv_target_alias=$ac_cv_host_alias
1461 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1462 { { echo "$as_me:1462: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:1467: result: $ac_cv_target" >&5
1468 echo "${ECHO_T}$ac_cv_target" >&6
1469 target=$ac_cv_target
1470 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474 # The aliases save the names the user supplied, while $host etc.
1475 # will get canonicalized.
1476 test -n "$target_alias" &&
1477 test "$program_prefix$program_suffix$program_transform_name" = \
1479 program_prefix=${target_alias}-
1480 system_name="$host_os"
1482 system_name="`(uname -s -r) 2>/dev/null`"
1483 if test -z "$system_name" ; then
1484 system_name="`(hostname) 2>/dev/null`"
1487 test -n "$system_name" &&
1488 cat >>confdefs.h <<EOF
1489 #define SYSTEM_NAME "$system_name"
1492 if test "${cf_cv_system_name+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 cf_cv_system_name="$system_name"
1498 test -z "$system_name" && system_name="$cf_cv_system_name"
1499 test -n "$cf_cv_system_name" && echo "$as_me:1499: result: Configuring for $cf_cv_system_name" >&5
1500 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1502 if test ".$system_name" != ".$cf_cv_system_name" ; then
1503 echo "$as_me:1503: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1504 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1505 { { echo "$as_me:1505: error: \"Please remove config.cache and try again.\"" >&5
1506 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1507 { (exit 1); exit 1; }; }
1510 # Check whether --with-system-type or --without-system-type was given.
1511 if test "${with_system_type+set}" = set; then
1512 withval="$with_system_type"
1513 { echo "$as_me:1513: WARNING: overriding system type to $withval" >&5
1514 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1515 cf_cv_system_name=$withval
1520 ### Save the given $CFLAGS to allow user-override.
1521 cf_user_CFLAGS="$CFLAGS"
1523 ### Default install-location
1525 echo "$as_me:1525: checking for prefix" >&5
1526 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1527 if test "x$prefix" = "xNONE" ; then
1528 case "$cf_cv_system_name" in
1529 # non-vendor systems don't have a conflict
1530 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1533 (*) prefix=$ac_default_prefix
1537 echo "$as_me:1537: result: $prefix" >&5
1538 echo "${ECHO_T}$prefix" >&6
1540 if test "x$prefix" = "xNONE" ; then
1541 echo "$as_me:1541: checking for default include-directory" >&5
1542 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1543 test -n "$verbose" && echo 1>&6
1546 $includedir/ncurses \
1548 $prefix/include/ncurses \
1549 /usr/local/include \
1550 /usr/local/include/ncurses \
1552 /usr/include/ncurses
1554 cf_dir=`eval echo $cf_symbol`
1555 if test -f $cf_dir/curses.h ; then
1556 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1557 includedir="$cf_symbol"
1558 test -n "$verbose" && echo $ac_n " found " 1>&6
1562 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1564 echo "$as_me:1564: result: $includedir" >&5
1565 echo "${ECHO_T}$includedir" >&6
1568 ### Defaults for ncurses ABI
1570 case x$cf_cv_abi_version in
1572 cf_dft_ext_colors=yes
1573 cf_dft_ext_const=yes
1574 cf_dft_ext_mouse=yes
1575 cf_dft_ext_putwin=yes
1576 cf_dft_ext_spfuncs=yes
1577 cf_dft_filter_syms=yes
1578 cf_dft_chtype=uint32_t
1579 cf_dft_mmask_t=uint32_t
1581 cf_dft_tparm_arg=intptr_t
1582 cf_dft_with_lp64=yes
1585 cf_dft_ext_colors=no
1588 cf_dft_ext_putwin=no
1589 cf_dft_ext_spfuncs=no
1590 cf_dft_filter_syms=no
1594 cf_dft_tparm_arg=long
1599 ### Checks for programs.
1601 # Check whether --with-ada or --without-ada was given.
1602 if test "${with_ada+set}" = set; then
1604 cf_with_ada=$withval
1609 if test "x$cf_with_ada" = xyes
1611 cf_prog_cc="gnatgcc gcc cc"
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 ac_main_return=return
1622 if test -n "$ac_tool_prefix"; then
1623 for ac_prog in $cf_prog_cc
1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1627 echo "$as_me:1627: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 ac_save_IFS=$IFS; IFS=$ac_path_separator
1637 for ac_dir in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir=.
1640 $as_executable_p "$ac_dir/$ac_word" || continue
1641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1642 echo "$as_me:1642: found $ac_dir/$ac_word" >&5
1649 if test -n "$CC"; then
1650 echo "$as_me:1650: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1653 echo "$as_me:1653: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1657 test -n "$CC" && break
1660 if test -z "$CC"; then
1662 for ac_prog in $cf_prog_cc
1664 # Extract the first word of "$ac_prog", so it can be a program name with args.
1665 set dummy $ac_prog; ac_word=$2
1666 echo "$as_me:1666: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 ac_save_IFS=$IFS; IFS=$ac_path_separator
1676 for ac_dir in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 $as_executable_p "$ac_dir/$ac_word" || continue
1680 ac_cv_prog_ac_ct_CC="$ac_prog"
1681 echo "$as_me:1681: found $ac_dir/$ac_word" >&5
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:1689: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1692 echo "$as_me:1692: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1696 test -n "$ac_ct_CC" && break
1702 test -z "$CC" && { { echo "$as_me:1702: error: no acceptable cc found in \$PATH" >&5
1703 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1704 { (exit 1); exit 1; }; }
1706 # Provide some information about the compiler.
1707 echo "$as_me:1707:" \
1708 "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:1710: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:1715: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:1720: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1738 ac_clean_files_save=$ac_clean_files
1739 ac_clean_files="$ac_clean_files a.out a.exe"
1740 # Try to create an executable without -o first, disregard a.out.
1741 # It will help us diagnose broken compilers, and finding out an intuition
1743 echo "$as_me:1743: checking for C compiler default output" >&5
1744 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1745 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1746 if { (eval echo "$as_me:1746: \"$ac_link_default\"") >&5
1747 (eval $ac_link_default) 2>&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); }; then
1751 # Find the output, starting from the most likely. This scheme is
1752 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1754 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1755 ls a.out conftest 2>/dev/null;
1756 ls a.* conftest.* 2>/dev/null`; do
1758 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1759 a.out ) # We found the default executable, but exeext='' is most
1762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1763 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1770 echo "$as_me: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1772 { { echo "$as_me:1772: error: C compiler cannot create executables" >&5
1773 echo "$as_me: error: C compiler cannot create executables" >&2;}
1774 { (exit 77); exit 77; }; }
1777 ac_exeext=$ac_cv_exeext
1778 echo "$as_me:1778: result: $ac_file" >&5
1779 echo "${ECHO_T}$ac_file" >&6
1781 # Check the compiler produces executables we can run. If not, either
1782 # the compiler is broken, or we cross compile.
1783 echo "$as_me:1783: checking whether the C compiler works" >&5
1784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1786 # If not cross compiling, check that we can run a simple program.
1787 if test "$cross_compiling" != yes; then
1788 if { ac_try='./$ac_file'
1789 { (eval echo "$as_me:1789: \"$ac_try\"") >&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; }; then
1796 if test "$cross_compiling" = maybe; then
1799 { { echo "$as_me:1799: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&5
1801 echo "$as_me: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'." >&2;}
1803 { (exit 1); exit 1; }; }
1807 echo "$as_me:1807: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1810 rm -f a.out a.exe conftest$ac_cv_exeext
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:1814: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:1816: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1819 echo "$as_me:1819: checking for executable suffix" >&5
1820 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1821 if { (eval echo "$as_me:1821: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 { { echo "$as_me:1840: error: cannot compute EXEEXT: cannot compile and link" >&5
1841 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest$ac_cv_exeext
1846 echo "$as_me:1846: result: $ac_cv_exeext" >&5
1847 echo "${ECHO_T}$ac_cv_exeext" >&6
1849 rm -f conftest.$ac_ext
1850 EXEEXT=$ac_cv_exeext
1852 echo "$as_me:1852: checking for object suffix" >&5
1853 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1854 if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line 1858 "configure"
1859 #include "confdefs.h"
1869 rm -f conftest.o conftest.obj
1870 if { (eval echo "$as_me:1870: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>&5
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1883 echo "$as_me: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 { { echo "$as_me:1885: error: cannot compute OBJEXT: cannot compile" >&5
1886 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 echo "$as_me:1892: result: $ac_cv_objext" >&5
1893 echo "${ECHO_T}$ac_cv_objext" >&6
1894 OBJEXT=$ac_cv_objext
1896 echo "$as_me:1896: checking whether we are using the GNU C compiler" >&5
1897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 cat >conftest.$ac_ext <<_ACEOF
1902 #line 1902 "configure"
1903 #include "confdefs.h"
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:1917: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:1923: \"$ac_try\"") >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1934 rm -f conftest.$ac_objext conftest.$ac_ext
1935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1938 echo "$as_me:1938: result: $ac_cv_c_compiler_gnu" >&5
1939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1940 GCC=`test $ac_compiler_gnu = yes && echo yes`
1941 ac_test_CFLAGS=${CFLAGS+set}
1942 ac_save_CFLAGS=$CFLAGS
1944 echo "$as_me:1944: checking whether $CC accepts -g" >&5
1945 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1946 if test "${ac_cv_prog_cc_g+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line 1950 "configure"
1951 #include "confdefs.h"
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:1962: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:1968: \"$ac_try\"") >&5
1971 echo "$as_me:1971: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1979 rm -f conftest.$ac_objext conftest.$ac_ext
1981 echo "$as_me:1981: result: $ac_cv_prog_cc_g" >&5
1982 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1983 if test "$ac_test_CFLAGS" = set; then
1984 CFLAGS=$ac_save_CFLAGS
1985 elif test $ac_cv_prog_cc_g = yes; then
1986 if test "$GCC" = yes; then
1992 if test "$GCC" = yes; then
1998 # Some people use a C++ compiler to compile C. Since we use `exit',
1999 # in C++ we need to declare it. In case someone uses the same compiler
2000 # for both compiling C and C++ we need to have the C++ compiler decide
2001 # the declaration of exit, since it's the most demanding environment.
2002 cat >conftest.$ac_ext <<_ACEOF
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:2008: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:2014: \"$ac_try\"") >&5
2017 echo "$as_me:2017: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 for ac_declaration in \
2021 '#include <stdlib.h>' \
2022 'extern "C" void std::exit (int) throw (); using std::exit;' \
2023 'extern "C" void std::exit (int); using std::exit;' \
2024 'extern "C" void exit (int) throw ();' \
2025 'extern "C" void exit (int);' \
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:2042: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:2048: \"$ac_try\"") >&5
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 echo "$as_me: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2059 rm -f conftest.$ac_objext conftest.$ac_ext
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line 2061 "configure"
2062 #include "confdefs.h"
2072 rm -f conftest.$ac_objext
2073 if { (eval echo "$as_me:2073: \"$ac_compile\"") >&5
2074 (eval $ac_compile) 2>&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:2079: \"$ac_try\"") >&5
2082 echo "$as_me:2082: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2092 if test -n "$ac_declaration"; then
2093 echo '#ifdef __cplusplus' >>confdefs.h
2094 echo $ac_declaration >>confdefs.h
2095 echo '#endif' >>confdefs.h
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cpp='$CPP $CPPFLAGS'
2105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108 ac_main_return=return
2111 if test "$GCC" = yes ; then
2112 echo "$as_me:2112: checking version of $CC" >&5
2113 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2114 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.].*//'`"
2115 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2116 echo "$as_me:2116: result: $GCC_VERSION" >&5
2117 echo "${ECHO_T}$GCC_VERSION" >&6
2122 if test "$GCC" = yes ; then
2125 echo "$as_me:2125: checking if this is really Intel C compiler" >&5
2126 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2127 cf_save_CFLAGS="$CFLAGS"
2128 CFLAGS="$CFLAGS -no-gcc"
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line 2130 "configure"
2131 #include "confdefs.h"
2137 #ifdef __INTEL_COMPILER
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:2147: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2159 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2166 CFLAGS="$cf_save_CFLAGS"
2167 echo "$as_me:2167: result: $INTEL_COMPILER" >&5
2168 echo "${ECHO_T}$INTEL_COMPILER" >&6
2175 if test "$GCC" = yes ; then
2176 echo "$as_me:2176: checking if this is really Clang C compiler" >&5
2177 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2178 cf_save_CFLAGS="$CFLAGS"
2179 CFLAGS="$CFLAGS -Qunused-arguments"
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line 2181 "configure"
2182 #include "confdefs.h"
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:2198: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:2201: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:2204: \"$ac_try\"") >&5
2207 echo "$as_me:2207: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2210 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2217 CFLAGS="$cf_save_CFLAGS"
2218 echo "$as_me:2218: result: $CLANG_COMPILER" >&5
2219 echo "${ECHO_T}$CLANG_COMPILER" >&6
2222 echo "$as_me:2222: checking for $CC option to accept ANSI C" >&5
2223 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2224 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 ac_cv_prog_cc_stdc=no
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line 2230 "configure"
2231 #include "confdefs.h"
2234 #include <sys/types.h>
2235 #include <sys/stat.h>
2236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2237 struct buf { int x; };
2238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2239 static char *e (p, i)
2245 static char *f (char * (*g) (char **, int), char **p, ...)
2250 s = g (p, va_arg (v,int));
2254 int test (int i, double x);
2255 struct s1 {int (*f) (int a);};
2256 struct s2 {int (*f) (double a);};
2257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2268 # Don't try gcc -ansi; that turns off useful extensions and
2269 # breaks some systems' header files.
2270 # AIX -qlanglvl=ansi
2271 # Ultrix and OSF/1 -std1
2272 # HP-UX 10.20 and later -Ae
2273 # HP-UX older versions -Aa -D_HPUX_SOURCE
2274 # SVR4 -Xc -D__EXTENSIONS__
2275 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2277 CC="$ac_save_CC $ac_arg"
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:2279: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:2282: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:2285: \"$ac_try\"") >&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_cv_prog_cc_stdc=$ac_arg
2293 echo "$as_me: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 rm -f conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:2305: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:2308: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # This should have been defined by AC_PROG_CC
2316 echo "$as_me:2316: checking \$CFLAGS variable" >&5
2317 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2320 echo "$as_me:2320: result: broken" >&5
2321 echo "${ECHO_T}broken" >&6
2322 { echo "$as_me:2322: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2323 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2326 for cf_arg in $cf_flags
2332 cf_new_extra_cppflags=
2334 for cf_add_cflags in $cf_arg
2336 case $cf_fix_cppflags in
2338 case $cf_add_cflags in
2339 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2340 case $cf_add_cflags in
2342 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2344 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2345 && test -z "${cf_tst_cflags}" \
2346 && cf_fix_cppflags=yes
2348 if test $cf_fix_cppflags = yes ; then
2350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2354 elif test "${cf_tst_cflags}" = "\"'" ; then
2356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2367 case $cf_add_cflags in
2369 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2371 CPPFLAGS=`echo "$CPPFLAGS" | \
2372 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2373 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2378 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2379 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2386 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2387 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2394 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2395 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2399 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2400 && test -z "${cf_tst_cflags}" \
2401 && cf_fix_cppflags=no
2406 if test -n "$cf_new_cflags" ; then
2408 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2409 CFLAGS="${CFLAGS}$cf_new_cflags"
2413 if test -n "$cf_new_cppflags" ; then
2415 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2416 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2420 if test -n "$cf_new_extra_cppflags" ; then
2422 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2423 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2430 echo "$as_me:2430: result: ok" >&5
2431 echo "${ECHO_T}ok" >&6
2435 echo "$as_me:2435: checking \$CC variable" >&5
2436 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2439 echo "$as_me:2439: result: broken" >&5
2440 echo "${ECHO_T}broken" >&6
2441 { echo "$as_me:2441: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2442 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2444 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2445 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2447 for cf_arg in $cf_flags
2455 cf_new_extra_cppflags=
2457 for cf_add_cflags in $cf_arg
2459 case $cf_fix_cppflags in
2461 case $cf_add_cflags in
2462 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2463 case $cf_add_cflags in
2465 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2467 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2468 && test -z "${cf_tst_cflags}" \
2469 && cf_fix_cppflags=yes
2471 if test $cf_fix_cppflags = yes ; then
2473 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2474 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2477 elif test "${cf_tst_cflags}" = "\"'" ; then
2479 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2480 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2490 case $cf_add_cflags in
2492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2494 CPPFLAGS=`echo "$CPPFLAGS" | \
2495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2501 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2502 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2509 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2510 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2522 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2523 && test -z "${cf_tst_cflags}" \
2524 && cf_fix_cppflags=no
2529 if test -n "$cf_new_cflags" ; then
2531 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2532 CFLAGS="${CFLAGS}$cf_new_cflags"
2536 if test -n "$cf_new_cppflags" ; then
2538 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2539 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2543 if test -n "$cf_new_extra_cppflags" ; then
2545 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2546 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2556 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2558 echo "${as_me:-configure}:2558: testing resulting CC: '$CC' ..." 1>&5
2560 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2562 echo "${as_me:-configure}:2562: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2564 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2566 echo "${as_me:-configure}:2566: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2570 echo "$as_me:2570: result: ok" >&5
2571 echo "${ECHO_T}ok" >&6
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 ac_main_return=return
2581 echo "$as_me:2581: checking how to run the C preprocessor" >&5
2582 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2583 # On Suns, sometimes $CPP names a directory.
2584 if test -n "$CPP" && test -d "$CPP"; then
2587 if test -z "$CPP"; then
2588 if test "${ac_cv_prog_CPP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 # Double quotes because CPP needs to be expanded
2592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2595 for ac_c_preproc_warn_flag in '' yes
2597 # Use a header file that comes with gcc, so configuring glibc
2598 # with a fresh cross-compiler works.
2599 # On the NeXT, cc -E runs the code through the compiler's parser,
2600 # not just through cpp. "Syntax error" is here to catch this case.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line 2602 "configure"
2603 #include "confdefs.h"
2607 if { (eval echo "$as_me:2607: \"$ac_cpp conftest.$ac_ext\"") >&5
2608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2610 egrep -v '^ *\+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); } >/dev/null; then
2615 if test -s conftest.err; then
2616 ac_cpp_err=$ac_c_preproc_warn_flag
2623 if test -z "$ac_cpp_err"; then
2626 echo "$as_me: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 # Broken: fails on valid input.
2631 rm -f conftest.err conftest.$ac_ext
2633 # OK, works on sane cases. Now check whether non-existent headers
2634 # can be detected and how.
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line 2636 "configure"
2637 #include "confdefs.h"
2638 #include <ac_nonexistent.h>
2640 if { (eval echo "$as_me:2640: \"$ac_cpp conftest.$ac_ext\"") >&5
2641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643 egrep -v '^ *\+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:2646: \$? = $ac_status" >&5
2647 (exit $ac_status); } >/dev/null; then
2648 if test -s conftest.err; then
2649 ac_cpp_err=$ac_c_preproc_warn_flag
2656 if test -z "$ac_cpp_err"; then
2657 # Broken: success on invalid input.
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 # Passes both tests.
2666 rm -f conftest.err conftest.$ac_ext
2669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2670 rm -f conftest.err conftest.$ac_ext
2671 if $ac_preproc_ok; then
2683 echo "$as_me:2683: result: $CPP" >&5
2684 echo "${ECHO_T}$CPP" >&6
2686 for ac_c_preproc_warn_flag in '' yes
2688 # Use a header file that comes with gcc, so configuring glibc
2689 # with a fresh cross-compiler works.
2690 # On the NeXT, cc -E runs the code through the compiler's parser,
2691 # not just through cpp. "Syntax error" is here to catch this case.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line 2693 "configure"
2694 #include "confdefs.h"
2698 if { (eval echo "$as_me:2698: \"$ac_cpp conftest.$ac_ext\"") >&5
2699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701 egrep -v '^ *\+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:2704: \$? = $ac_status" >&5
2705 (exit $ac_status); } >/dev/null; then
2706 if test -s conftest.err; then
2707 ac_cpp_err=$ac_c_preproc_warn_flag
2714 if test -z "$ac_cpp_err"; then
2717 echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 # Broken: fails on valid input.
2722 rm -f conftest.err conftest.$ac_ext
2724 # OK, works on sane cases. Now check whether non-existent headers
2725 # can be detected and how.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line 2727 "configure"
2728 #include "confdefs.h"
2729 #include <ac_nonexistent.h>
2731 if { (eval echo "$as_me:2731: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 egrep -v '^ *\+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2747 if test -z "$ac_cpp_err"; then
2748 # Broken: success on invalid input.
2751 echo "$as_me: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 # Passes both tests.
2757 rm -f conftest.err conftest.$ac_ext
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2765 { { echo "$as_me:2765: error: C preprocessor \"$CPP\" fails sanity check" >&5
2766 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2767 { (exit 1); exit 1; }; }
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_main_return=return
2777 if test $ac_cv_c_compiler_gnu = yes; then
2778 echo "$as_me:2778: checking whether $CC needs -traditional" >&5
2779 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2780 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 ac_pattern="Autoconf.*'x'"
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2788 int Autoconf = TIOCGETP;
2790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2791 egrep "$ac_pattern" >/dev/null 2>&1; then
2792 ac_cv_prog_gcc_traditional=yes
2794 ac_cv_prog_gcc_traditional=no
2798 if test $ac_cv_prog_gcc_traditional = no; then
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line 2800 "configure"
2801 #include "confdefs.h"
2803 int Autoconf = TCGETA;
2805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2806 egrep "$ac_pattern" >/dev/null 2>&1; then
2807 ac_cv_prog_gcc_traditional=yes
2813 echo "$as_me:2813: result: $ac_cv_prog_gcc_traditional" >&5
2814 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2815 if test $ac_cv_prog_gcc_traditional = yes; then
2816 CC="$CC -traditional"
2820 echo "$as_me:2820: checking whether $CC understands -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2822 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 cat > conftest.$ac_ext <<CF_EOF
2829 ${cf_cv_main_return:-return}(0);
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2835 if { (eval echo "$as_me:2835: \"$ac_try\"") >&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 test -f conftest2.$ac_objext && { (eval echo "$as_me:2840: \"$ac_try\"") >&5
2843 echo "$as_me:2843: \$? = $ac_status" >&5
2844 (exit $ac_status); };
2846 eval cf_cv_prog_CC_c_o=yes
2848 eval cf_cv_prog_CC_c_o=no
2853 if test $cf_cv_prog_CC_c_o = yes; then
2854 echo "$as_me:2854: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6
2857 echo "$as_me:2857: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 if test "$cross_compiling" = yes ; then
2864 case "$cf_cv_system_name" in
2865 (dragonfly*|mirbsd*|freebsd*)
2866 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2868 (*) LDPATH=$PATH:/sbin:/usr/sbin
2869 # Extract the first word of "ldconfig", so it can be a program name with args.
2870 set dummy ldconfig; ac_word=$2
2871 echo "$as_me:2871: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2881 ac_save_IFS=$IFS; IFS=$ac_path_separator
2883 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if $as_executable_p "$ac_dir/$ac_word"; then
2887 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2888 echo "$as_me:2888: found $ac_dir/$ac_word" >&5
2896 LDCONFIG=$ac_cv_path_LDCONFIG
2898 if test -n "$LDCONFIG"; then
2899 echo "$as_me:2899: result: $LDCONFIG" >&5
2900 echo "${ECHO_T}$LDCONFIG" >&6
2902 echo "$as_me:2902: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2910 echo "$as_me:2910: checking if you want to ensure bool is consistent with C++" >&5
2911 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2913 # Check whether --with-cxx or --without-cxx was given.
2914 if test "${with_cxx+set}" = set; then
2916 cf_with_cxx=$withval
2920 echo "$as_me:2920: result: $cf_with_cxx" >&5
2921 echo "${ECHO_T}$cf_with_cxx" >&6
2922 if test "X$cf_with_cxx" = Xno ; then
2926 # with autoconf 2.13, we can change the error to a warning:
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:2938: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CXX+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CXX"; then
2944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2946 ac_save_IFS=$IFS; IFS=$ac_path_separator
2948 for ac_dir in $ac_dummy; do
2950 test -z "$ac_dir" && ac_dir=.
2951 $as_executable_p "$ac_dir/$ac_word" || continue
2952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:2953: found $ac_dir/$ac_word" >&5
2960 if test -n "$CXX"; then
2961 echo "$as_me:2961: result: $CXX" >&5
2962 echo "${ECHO_T}$CXX" >&6
2964 echo "$as_me:2964: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2968 test -n "$CXX" && break
2971 if test -z "$CXX"; then
2973 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 echo "$as_me:2977: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$ac_ct_CXX"; then
2983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2985 ac_save_IFS=$IFS; IFS=$ac_path_separator
2987 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 $as_executable_p "$ac_dir/$ac_word" || continue
2991 ac_cv_prog_ac_ct_CXX="$ac_prog"
2992 echo "$as_me:2992: found $ac_dir/$ac_word" >&5
2998 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2999 if test -n "$ac_ct_CXX"; then
3000 echo "$as_me:3000: result: $ac_ct_CXX" >&5
3001 echo "${ECHO_T}$ac_ct_CXX" >&6
3003 echo "$as_me:3003: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3007 test -n "$ac_ct_CXX" && break
3009 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3014 # Provide some information about the compiler.
3015 echo "$as_me:3015:" \
3016 "checking for C++ compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (eval echo "$as_me:3018: \"$ac_compiler --version </dev/null >&5\"") >&5
3019 (eval $ac_compiler --version </dev/null >&5) 2>&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:3023: \"$ac_compiler -v </dev/null >&5\"") >&5
3024 (eval $ac_compiler -v </dev/null >&5) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (eval echo "$as_me:3028: \"$ac_compiler -V </dev/null >&5\"") >&5
3029 (eval $ac_compiler -V </dev/null >&5) 2>&5
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); }
3034 echo "$as_me:3034: checking whether we are using the GNU C++ compiler" >&5
3035 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line 3040 "configure"
3041 #include "confdefs.h"
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:3055: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3058 echo "$as_me:3058: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:3061: \"$ac_try\"") >&5
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3072 rm -f conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3076 echo "$as_me:3076: result: $ac_cv_cxx_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3078 GXX=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CXXFLAGS=${CXXFLAGS+set}
3080 ac_save_CXXFLAGS=$CXXFLAGS
3082 echo "$as_me:3082: checking whether $CXX accepts -g" >&5
3083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3084 if test "${ac_cv_prog_cxx_g+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:3100: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:3103: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:3106: \"$ac_try\"") >&5
3109 echo "$as_me:3109: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_prog_cxx_g=yes
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:3119: result: $ac_cv_prog_cxx_g" >&5
3120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3121 if test "$ac_test_CXXFLAGS" = set; then
3122 CXXFLAGS=$ac_save_CXXFLAGS
3123 elif test $ac_cv_prog_cxx_g = yes; then
3124 if test "$GXX" = yes; then
3130 if test "$GXX" = yes; then
3136 for ac_declaration in \
3138 '#include <stdlib.h>' \
3139 'extern "C" void std::exit (int) throw (); using std::exit;' \
3140 'extern "C" void std::exit (int); using std::exit;' \
3141 'extern "C" void exit (int) throw ();' \
3142 'extern "C" void exit (int);' \
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line 3146 "configure"
3147 #include "confdefs.h"
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:3159: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:3165: \"$ac_try\"") >&5
3168 echo "$as_me:3168: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3176 rm -f conftest.$ac_objext conftest.$ac_ext
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line 3178 "configure"
3179 #include "confdefs.h"
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:3196: \"$ac_try\"") >&5
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3209 if test -n "$ac_declaration"; then
3210 echo '#ifdef __cplusplus' >>confdefs.h
3211 echo $ac_declaration >>confdefs.h
3212 echo '#endif' >>confdefs.h
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_main_return=return
3223 ac_cpp='$CXXCPP $CPPFLAGS'
3224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3227 ac_main_return=return
3229 if test "x$cf_with_cxx" != xno
3231 # Several of the C++ configurations do not work, particularly when
3232 # cross-compiling (20140913 -TD)
3233 echo "$as_me:3233: checking if $CXX works" >&5
3234 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3236 save_CPPFLAGS="$CPPFLAGS"
3237 eval cf_includedir=${includedir}
3238 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3240 cat >conftest.$ac_ext <<_ACEOF
3241 #line 3241 "configure"
3242 #include "confdefs.h"
3251 printf("Hello world!\n")
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:3264: \"$ac_try\"") >&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276 CPPFLAGS="$save_CPPFLAGS"
3278 echo "$as_me:3278: result: $cf_cxx_works" >&5
3279 echo "${ECHO_T}$cf_cxx_works" >&6
3280 if test "x$cf_cxx_works" = xno
3282 { echo "$as_me:3282: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3283 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3284 cf_with_cxx=no; CXX=""; GXX="";
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 ac_main_return=return
3294 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3295 if test "$CXX" = "g++" ; then
3296 # Extract the first word of "g++", so it can be a program name with args.
3297 set dummy g++; ac_word=$2
3298 echo "$as_me:3298: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_path_CXX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3308 ac_save_IFS=$IFS; IFS=$ac_path_separator
3310 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if $as_executable_p "$ac_dir/$ac_word"; then
3314 ac_cv_path_CXX="$ac_dir/$ac_word"
3315 echo "$as_me:3315: found $ac_dir/$ac_word" >&5
3325 if test -n "$CXX"; then
3326 echo "$as_me:3326: result: $CXX" >&5
3327 echo "${ECHO_T}$CXX" >&6
3329 echo "$as_me:3329: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3336 { echo "$as_me:3336: WARNING: You don't have any C++ compiler, too bad" >&5
3337 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3338 cf_with_cxx=no; CXX=""; GXX="";
3344 if test "$GXX" = yes; then
3345 echo "$as_me:3345: checking version of ${CXX:-g++}" >&5
3346 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3347 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3348 if test -z "$GXX_VERSION"
3353 echo "$as_me:3353: result: $GXX_VERSION" >&5
3354 echo "${ECHO_T}$GXX_VERSION" >&6
3357 case $GXX_VERSION in
3361 { echo "$as_me:3361: WARNING: templates do not work" >&5
3362 echo "$as_me: WARNING: templates do not work" >&2;}
3366 echo "$as_me:3366: checking if you want to build C++ binding and demo" >&5
3367 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3369 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3370 if test "${with_cxx_binding+set}" = set; then
3371 withval="$with_cxx_binding"
3372 cf_with_cxx_binding=$withval
3374 cf_with_cxx_binding=$cf_with_cxx
3376 echo "$as_me:3376: result: $cf_with_cxx_binding" >&5
3377 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3379 echo "$as_me:3379: checking if you want to build with Ada" >&5
3380 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3381 echo "$as_me:3381: result: $cf_with_ada" >&5
3382 echo "${ECHO_T}$cf_with_ada" >&6
3384 echo "$as_me:3384: checking if you want to install terminal database" >&5
3385 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3387 # Check whether --enable-db-install or --disable-db-install was given.
3388 if test "${enable_db_install+set}" = set; then
3389 enableval="$enable_db_install"
3390 cf_with_db_install=$enableval
3392 cf_with_db_install=yes
3394 echo "$as_me:3394: result: $cf_with_db_install" >&5
3395 echo "${ECHO_T}$cf_with_db_install" >&6
3397 echo "$as_me:3397: checking if you want to install manpages" >&5
3398 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3400 # Check whether --with-manpages or --without-manpages was given.
3401 if test "${with_manpages+set}" = set; then
3402 withval="$with_manpages"
3403 cf_with_manpages=$withval
3405 cf_with_manpages=yes
3407 echo "$as_me:3407: result: $cf_with_manpages" >&5
3408 echo "${ECHO_T}$cf_with_manpages" >&6
3410 echo "$as_me:3410: checking if you want to build programs such as tic" >&5
3411 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3413 # Check whether --with-progs or --without-progs was given.
3414 if test "${with_progs+set}" = set; then
3415 withval="$with_progs"
3416 cf_with_progs=$withval
3420 echo "$as_me:3420: result: $cf_with_progs" >&5
3421 echo "${ECHO_T}$cf_with_progs" >&6
3423 if test -f $srcdir/tack/tack.h; then
3424 if test "x$cross_compiling" = xyes ; then
3425 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3427 echo "${as_me:-configure}:3427: testing ignoring tack because we are cross-compiling ..." 1>&5
3431 echo "$as_me:3431: checking if you want to build the tack program" >&5
3432 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3434 # Check whether --with-tack or --without-tack was given.
3435 if test "${with_tack+set}" = set; then
3436 withval="$with_tack"
3437 cf_with_tack=$withval
3439 cf_with_tack=$cf_with_progs
3441 echo "$as_me:3441: result: $cf_with_tack" >&5
3442 echo "${ECHO_T}$cf_with_tack" >&6
3448 echo "$as_me:3448: checking if you want to build test-programs" >&5
3449 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3451 # Check whether --with-tests or --without-tests was given.
3452 if test "${with_tests+set}" = set; then
3453 withval="$with_tests"
3454 cf_with_tests=$withval
3458 echo "$as_me:3458: result: $cf_with_tests" >&5
3459 echo "${ECHO_T}$cf_with_tests" >&6
3461 echo "$as_me:3461: checking if you wish to install curses.h" >&5
3462 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3464 # Check whether --with-curses-h or --without-curses-h was given.
3465 if test "${with_curses_h+set}" = set; then
3466 withval="$with_curses_h"
3467 with_curses_h=$withval
3471 echo "$as_me:3471: result: $with_curses_h" >&5
3472 echo "${ECHO_T}$with_curses_h" >&6
3474 modules_to_build="ncurses"
3475 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3476 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3477 modules_to_build="$modules_to_build panel menu form"
3479 test "$program_prefix" != NONE &&
3480 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3484 # Double any \ or $. echo might interpret backslashes.
3485 # By default was `s,x,x', remove it if useless.
3486 cat <<\_ACEOF >conftest.sed
3487 s/[\\$]/&&/g;s/;s,x,x,$//
3489 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3492 for ac_prog in mawk gawk nawk awk
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 echo "$as_me:3496: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_AWK+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -n "$AWK"; then
3502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3504 ac_save_IFS=$IFS; IFS=$ac_path_separator
3506 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 $as_executable_p "$ac_dir/$ac_word" || continue
3510 ac_cv_prog_AWK="$ac_prog"
3511 echo "$as_me:3511: found $ac_dir/$ac_word" >&5
3518 if test -n "$AWK"; then
3519 echo "$as_me:3519: result: $AWK" >&5
3520 echo "${ECHO_T}$AWK" >&6
3522 echo "$as_me:3522: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3526 test -n "$AWK" && break
3529 test -z "$AWK" && { { echo "$as_me:3529: error: No awk program found" >&5
3530 echo "$as_me: error: No awk program found" >&2;}
3531 { (exit 1); exit 1; }; }
3533 echo "$as_me:3533: checking for egrep" >&5
3534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3535 if test "${ac_cv_prog_egrep+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3539 then ac_cv_prog_egrep='grep -E'
3540 else ac_cv_prog_egrep='egrep'
3543 echo "$as_me:3543: result: $ac_cv_prog_egrep" >&5
3544 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3545 EGREP=$ac_cv_prog_egrep
3547 test -z "$EGREP" && { { echo "$as_me:3547: error: No egrep program found" >&5
3548 echo "$as_me: error: No egrep program found" >&2;}
3549 { (exit 1); exit 1; }; }
3551 # Find a good install program. We prefer a C program (faster),
3552 # so one script is as good as another. But avoid the broken or
3553 # incompatible versions:
3554 # SysV /etc/install, /usr/sbin/install
3555 # SunOS /usr/etc/install
3556 # IRIX /sbin/install
3558 # AmigaOS /C/install, which installs bootblocks on floppy discs
3559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562 # ./install, which can be erroneously created by make from ./install.sh.
3563 echo "$as_me:3563: checking for a BSD compatible install" >&5
3564 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3565 if test -z "$INSTALL"; then
3566 if test "${ac_cv_path_install+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 ac_save_IFS=$IFS; IFS=$ac_path_separator
3570 for ac_dir in $PATH; do
3572 # Account for people who put trailing slashes in PATH elements.
3574 / | ./ | .// | /cC/* \
3575 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3578 # OSF1 and SCO ODT 3.0 have their own names for install.
3579 # Don't use installbsd from OSF since it installs stuff as root
3581 for ac_prog in ginstall scoinst install; do
3582 if $as_executable_p "$ac_dir/$ac_prog"; then
3583 if test $ac_prog = install &&
3584 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3585 # AIX install. It has an incompatible calling convention.
3587 elif test $ac_prog = install &&
3588 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3589 # program-specific install script used by HP pwplus--don't use.
3592 ac_cv_path_install="$ac_dir/$ac_prog -c"
3602 if test "${ac_cv_path_install+set}" = set; then
3603 INSTALL=$ac_cv_path_install
3605 # As a last resort, use the slow shell script. We don't cache a
3606 # path for INSTALL within a source directory, because that will
3607 # break other packages using the cache if that directory is
3608 # removed, or if the path is relative.
3609 INSTALL=$ac_install_sh
3612 echo "$as_me:3612: result: $INSTALL" >&5
3613 echo "${ECHO_T}$INSTALL" >&6
3615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3616 # It thinks the first close brace ends the variable substitution.
3617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3627 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3628 test -z "$cf_dir" && cf_dir=.
3629 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3633 for ac_prog in lint cppcheck splint
3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
3636 set dummy $ac_prog; ac_word=$2
3637 echo "$as_me:3637: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_prog_LINT+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test -n "$LINT"; then
3643 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3645 ac_save_IFS=$IFS; IFS=$ac_path_separator
3647 for ac_dir in $ac_dummy; do
3649 test -z "$ac_dir" && ac_dir=.
3650 $as_executable_p "$ac_dir/$ac_word" || continue
3651 ac_cv_prog_LINT="$ac_prog"
3652 echo "$as_me:3652: found $ac_dir/$ac_word" >&5
3658 LINT=$ac_cv_prog_LINT
3659 if test -n "$LINT"; then
3660 echo "$as_me:3660: result: $LINT" >&5
3661 echo "${ECHO_T}$LINT" >&6
3663 echo "$as_me:3663: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 test -n "$LINT" && break
3671 (xcppcheck|x*/cppcheck)
3672 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3676 echo "$as_me:3676: checking whether ln -s works" >&5
3677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3679 if test "$LN_S" = "ln -s"; then
3680 echo "$as_me:3680: result: yes" >&5
3681 echo "${ECHO_T}yes" >&6
3683 echo "$as_me:3683: result: no, using $LN_S" >&5
3684 echo "${ECHO_T}no, using $LN_S" >&6
3687 echo "$as_me:3687: checking if $LN_S -f options work" >&5
3688 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3690 rm -f conf$$.src conf$$dst
3692 echo first >conf$$.src
3693 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3698 rm -f conf$$.dst conf$$src
3699 echo "$as_me:3699: result: $cf_prog_ln_sf" >&5
3700 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3702 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3704 echo "$as_me:3704: checking for long file names" >&5
3705 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3706 if test "${ac_cv_sys_long_file_names+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_cv_sys_long_file_names=yes
3710 # Test for long file names in all the places we know might matter:
3711 # . the current directory, where building will happen
3712 # $prefix/lib where we will be installing things
3713 # $exec_prefix/lib likewise
3714 # eval it to expand exec_prefix.
3715 # $TMPDIR if set, where it might want to write temporary files
3716 # if $TMPDIR is not set:
3717 # /tmp where it might want to write temporary files
3720 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3723 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3725 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3726 test -d $ac_dir || continue
3727 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3728 ac_xdir=$ac_dir/cf$$
3729 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3730 ac_tf1=$ac_xdir/conftest9012345
3731 ac_tf2=$ac_xdir/conftest9012346
3732 (echo 1 >$ac_tf1) 2>/dev/null
3733 (echo 2 >$ac_tf2) 2>/dev/null
3734 ac_val=`cat $ac_tf1 2>/dev/null`
3735 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3736 ac_cv_sys_long_file_names=no
3737 rm -rf $ac_xdir 2>/dev/null
3740 rm -rf $ac_xdir 2>/dev/null
3743 echo "$as_me:3743: result: $ac_cv_sys_long_file_names" >&5
3744 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3745 if test $ac_cv_sys_long_file_names = yes; then
3747 cat >>confdefs.h <<\EOF
3748 #define HAVE_LONG_FILE_NAMES 1
3753 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3754 # of package conflict.
3757 # Check whether --with-config-suffix or --without-config-suffix was given.
3758 if test "${with_config_suffix+set}" = set; then
3759 withval="$with_config_suffix"
3762 { echo "$as_me:3762: WARNING: expected a value for config-suffix option" >&5
3763 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3765 (*) cf_config_suffix="$withval"
3770 # If we find pkg-config, check if we should install the ".pc" files.
3772 echo "$as_me:3772: checking if you want to use pkg-config" >&5
3773 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3775 # Check whether --with-pkg-config or --without-pkg-config was given.
3776 if test "${with_pkg_config+set}" = set; then
3777 withval="$with_pkg_config"
3778 cf_pkg_config=$withval
3782 echo "$as_me:3782: result: $cf_pkg_config" >&5
3783 echo "${ECHO_T}$cf_pkg_config" >&6
3785 case $cf_pkg_config in
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if $as_executable_p "$ac_dir/$ac_word"; then
3810 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3821 if test -n "$PKG_CONFIG"; then
3822 echo "$as_me:3822: result: $PKG_CONFIG" >&5
3823 echo "${ECHO_T}$PKG_CONFIG" >&6
3825 echo "$as_me:3825: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3830 if test -z "$ac_cv_path_PKG_CONFIG"; then
3831 ac_pt_PKG_CONFIG=$PKG_CONFIG
3832 # Extract the first word of "pkg-config", so it can be a program name with args.
3833 set dummy pkg-config; ac_word=$2
3834 echo "$as_me:3834: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 case $ac_pt_PKG_CONFIG in
3841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3844 ac_save_IFS=$IFS; IFS=$ac_path_separator
3846 for ac_dir in $ac_dummy; do
3848 test -z "$ac_dir" && ac_dir=.
3849 if $as_executable_p "$ac_dir/$ac_word"; then
3850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3851 echo "$as_me:3851: found $ac_dir/$ac_word" >&5
3856 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3860 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3862 if test -n "$ac_pt_PKG_CONFIG"; then
3863 echo "$as_me:3863: result: $ac_pt_PKG_CONFIG" >&5
3864 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3866 echo "$as_me:3866: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3870 PKG_CONFIG=$ac_pt_PKG_CONFIG
3872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3881 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3882 if test "$PKG_CONFIG" != none ; then
3884 if test "x$prefix" != xNONE; then
3885 cf_path_syntax="$prefix"
3887 cf_path_syntax="$ac_default_prefix"
3890 case ".$PKG_CONFIG" in
3895 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3897 (.\${*prefix}*|.\${*dir}*)
3898 eval PKG_CONFIG="$PKG_CONFIG"
3899 case ".$PKG_CONFIG" in
3901 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3906 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3909 { { echo "$as_me:3909: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3910 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3911 { (exit 1); exit 1; }; }
3915 elif test "x$cf_pkg_config" != xno ; then
3916 { echo "$as_me:3916: WARNING: pkg-config is not installed" >&5
3917 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3922 echo "$as_me:3922: checking for pkg-config library directory" >&5
3923 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3926 echo "$as_me:3926: checking for $PKG_CONFIG library directory" >&5
3927 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3931 PKG_CONFIG_LIBDIR=no
3933 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3934 if test "${with_pkg_config_libdir+set}" = set; then
3935 withval="$with_pkg_config_libdir"
3936 PKG_CONFIG_LIBDIR=$withval
3938 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3941 case x$PKG_CONFIG_LIBDIR in
3945 # Look for the library directory using the same prefix as the executable
3946 if test "x$PKG_CONFIG" = xnone
3950 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3953 # If you don't like using the default architecture, you have to specify the
3954 # intended library directory and corresponding compiler/linker options.
3956 # This case allows for Debian's 2014-flavor of multiarch, along with the
3957 # most common variations before that point. Some other variants spell the
3958 # directory differently, e.g., "pkg-config", and put it in unusual places.
3959 # pkg-config has always been poorly standardized, which is ironic...
3960 case x`(arch) 2>/dev/null` in
3963 $cf_path/lib/*64-linux-gnu \
3971 $cf_path/lib/*-linux-gnu \
3979 test -n "$verbose" && echo " list..." 1>&6
3981 echo "${as_me:-configure}:3981: testing list... ..." 1>&5
3983 for cf_config in $cf_search_path
3985 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3987 echo "${as_me:-configure}:3987: testing checking $cf_config/pkgconfig ..." 1>&5
3989 if test -d $cf_config/pkgconfig
3991 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3992 echo "$as_me:3992: checking done" >&5
3993 echo $ECHO_N "checking done... $ECHO_C" >&6
4002 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4003 echo "$as_me:4003: result: $PKG_CONFIG_LIBDIR" >&5
4004 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4007 if test "x$PKG_CONFIG" != xnone
4009 echo "$as_me:4009: checking if we should install .pc files for $PKG_CONFIG" >&5
4010 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4012 echo "$as_me:4012: checking if we should install .pc files" >&5
4013 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4016 # Check whether --enable-pc-files or --disable-pc-files was given.
4017 if test "${enable_pc_files+set}" = set; then
4018 enableval="$enable_pc_files"
4019 enable_pc_files=$enableval
4023 echo "$as_me:4023: result: $enable_pc_files" >&5
4024 echo "${ECHO_T}$enable_pc_files" >&6
4026 if test "x$enable_pc_files" != xno
4029 case "x$PKG_CONFIG_LIBDIR" in
4031 { echo "$as_me:4031: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4032 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4036 if test "x$prefix" != xNONE; then
4037 cf_path_syntax="$prefix"
4039 cf_path_syntax="$ac_default_prefix"
4042 case ".$PKG_CONFIG_LIBDIR" in
4047 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4049 (.\${*prefix}*|.\${*dir}*)
4050 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4051 case ".$PKG_CONFIG_LIBDIR" in
4053 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4058 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4061 { { echo "$as_me:4061: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4062 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4063 { (exit 1); exit 1; }; }
4073 if test -z "$MAKE_PC_FILES"
4075 echo "$as_me:4075: checking for suffix to add to pc-files" >&5
4076 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4078 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4079 if test "${with_pc_suffix+set}" = set; then
4080 withval="$with_pc_suffix"
4085 (*) PC_MODULE_SUFFIX="$withval"
4089 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4090 echo "$as_me:4090: result: $PC_MODULE_SUFFIX" >&5
4091 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4092 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4096 echo "$as_me:4096: checking if we should assume mixed-case filenames" >&5
4097 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4099 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4100 if test "${enable_mixed_case+set}" = set; then
4101 enableval="$enable_mixed_case"
4102 enable_mixedcase=$enableval
4104 enable_mixedcase=auto
4106 echo "$as_me:4106: result: $enable_mixedcase" >&5
4107 echo "${ECHO_T}$enable_mixedcase" >&6
4108 if test "$enable_mixedcase" = "auto" ; then
4110 echo "$as_me:4110: checking if filesystem supports mixed-case filenames" >&5
4111 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4112 if test "${cf_cv_mixedcase+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test "$cross_compiling" = yes ; then
4117 case $target_alias in
4118 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4126 rm -f conftest CONFTEST
4128 if test -f CONFTEST ; then
4133 rm -f conftest CONFTEST
4137 echo "$as_me:4137: result: $cf_cv_mixedcase" >&5
4138 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4139 test "$cf_cv_mixedcase" = yes &&
4140 cat >>confdefs.h <<\EOF
4141 #define MIXEDCASE_FILENAMES 1
4145 cf_cv_mixedcase=$enable_mixedcase
4146 if test "x$enable_mixedcase" = "xyes" ; then
4148 cat >>confdefs.h <<\EOF
4149 #define MIXEDCASE_FILENAMES 1
4155 # do this after mixed-case option (tags/TAGS is not as important as tic).
4156 echo "$as_me:4156: checking whether ${MAKE-make} sets \${MAKE}" >&5
4157 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4158 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4159 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 cat >conftest.make <<\EOF
4164 @echo 'ac_maketemp="${MAKE}"'
4166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4167 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4168 if test -n "$ac_maketemp"; then
4169 eval ac_cv_prog_make_${ac_make}_set=yes
4171 eval ac_cv_prog_make_${ac_make}_set=no
4175 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4176 echo "$as_me:4176: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 SET_MAKE="MAKE=${MAKE-make}"
4185 for ac_prog in exctags ctags
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 echo "$as_me:4189: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_CTAGS+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$CTAGS"; then
4195 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4197 ac_save_IFS=$IFS; IFS=$ac_path_separator
4199 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 $as_executable_p "$ac_dir/$ac_word" || continue
4203 ac_cv_prog_CTAGS="$ac_prog"
4204 echo "$as_me:4204: found $ac_dir/$ac_word" >&5
4210 CTAGS=$ac_cv_prog_CTAGS
4211 if test -n "$CTAGS"; then
4212 echo "$as_me:4212: result: $CTAGS" >&5
4213 echo "${ECHO_T}$CTAGS" >&6
4215 echo "$as_me:4215: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 test -n "$CTAGS" && break
4222 for ac_prog in exetags etags
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 echo "$as_me:4226: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_ETAGS+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$ETAGS"; then
4232 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4234 ac_save_IFS=$IFS; IFS=$ac_path_separator
4236 for ac_dir in $ac_dummy; do
4238 test -z "$ac_dir" && ac_dir=.
4239 $as_executable_p "$ac_dir/$ac_word" || continue
4240 ac_cv_prog_ETAGS="$ac_prog"
4241 echo "$as_me:4241: found $ac_dir/$ac_word" >&5
4247 ETAGS=$ac_cv_prog_ETAGS
4248 if test -n "$ETAGS"; then
4249 echo "$as_me:4249: result: $ETAGS" >&5
4250 echo "${ECHO_T}$ETAGS" >&6
4252 echo "$as_me:4252: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4256 test -n "$ETAGS" && break
4259 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4260 set dummy ${CTAGS:-ctags}; ac_word=$2
4261 echo "$as_me:4261: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$MAKE_LOWER_TAGS"; then
4267 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4271 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4276 echo "$as_me:4276: found $ac_dir/$ac_word" >&5
4280 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4283 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4284 if test -n "$MAKE_LOWER_TAGS"; then
4285 echo "$as_me:4285: result: $MAKE_LOWER_TAGS" >&5
4286 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4288 echo "$as_me:4288: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4292 if test "$cf_cv_mixedcase" = yes ; then
4293 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4294 set dummy ${ETAGS:-etags}; ac_word=$2
4295 echo "$as_me:4295: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$MAKE_UPPER_TAGS"; then
4301 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4303 ac_save_IFS=$IFS; IFS=$ac_path_separator
4305 for ac_dir in $ac_dummy; do
4307 test -z "$ac_dir" && ac_dir=.
4308 $as_executable_p "$ac_dir/$ac_word" || continue
4309 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4310 echo "$as_me:4310: found $ac_dir/$ac_word" >&5
4314 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4317 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4318 if test -n "$MAKE_UPPER_TAGS"; then
4319 echo "$as_me:4319: result: $MAKE_UPPER_TAGS" >&5
4320 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4330 if test "$MAKE_UPPER_TAGS" = yes ; then
4336 if test "$MAKE_LOWER_TAGS" = yes ; then
4342 echo "$as_me:4342: checking for makeflags variable" >&5
4343 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4344 if test "${cf_cv_makeflags+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4351 cat >cf_makeflags.tmp <<CF_EOF
4354 @ echo '.$cf_option'
4356 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4357 case "$cf_result" in
4359 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4360 case "$cf_result" in
4361 (.*CC=*) cf_cv_makeflags=
4363 (*) cf_cv_makeflags=$cf_option
4372 echo "${as_me:-configure}:4372: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4377 rm -f cf_makeflags.tmp
4380 echo "$as_me:4380: result: $cf_cv_makeflags" >&5
4381 echo "${ECHO_T}$cf_cv_makeflags" >&6
4383 if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4386 echo "$as_me:4386: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_prog_RANLIB+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$RANLIB"; then
4392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4394 ac_save_IFS=$IFS; IFS=$ac_path_separator
4396 for ac_dir in $ac_dummy; do
4398 test -z "$ac_dir" && ac_dir=.
4399 $as_executable_p "$ac_dir/$ac_word" || continue
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 echo "$as_me:4401: found $ac_dir/$ac_word" >&5
4407 RANLIB=$ac_cv_prog_RANLIB
4408 if test -n "$RANLIB"; then
4409 echo "$as_me:4409: result: $RANLIB" >&5
4410 echo "${ECHO_T}$RANLIB" >&6
4412 echo "$as_me:4412: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4417 if test -z "$ac_cv_prog_RANLIB"; then
4418 ac_ct_RANLIB=$RANLIB
4419 # Extract the first word of "ranlib", so it can be a program name with args.
4420 set dummy ranlib; ac_word=$2
4421 echo "$as_me:4421: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 if test -n "$ac_ct_RANLIB"; then
4427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4429 ac_save_IFS=$IFS; IFS=$ac_path_separator
4431 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 $as_executable_p "$ac_dir/$ac_word" || continue
4435 ac_cv_prog_ac_ct_RANLIB="ranlib"
4436 echo "$as_me:4436: found $ac_dir/$ac_word" >&5
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:4445: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4448 echo "$as_me:4448: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 RANLIB=$ac_ct_RANLIB
4454 RANLIB="$ac_cv_prog_RANLIB"
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4459 set dummy ${ac_tool_prefix}ld; ac_word=$2
4460 echo "$as_me:4460: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_LD+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$LD"; then
4466 ac_cv_prog_LD="$LD" # Let the user override the test.
4468 ac_save_IFS=$IFS; IFS=$ac_path_separator
4470 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 $as_executable_p "$ac_dir/$ac_word" || continue
4474 ac_cv_prog_LD="${ac_tool_prefix}ld"
4475 echo "$as_me:4475: found $ac_dir/$ac_word" >&5
4482 if test -n "$LD"; then
4483 echo "$as_me:4483: result: $LD" >&5
4484 echo "${ECHO_T}$LD" >&6
4486 echo "$as_me:4486: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4491 if test -z "$ac_cv_prog_LD"; then
4493 # Extract the first word of "ld", so it can be a program name with args.
4494 set dummy ld; ac_word=$2
4495 echo "$as_me:4495: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$ac_ct_LD"; then
4501 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4503 ac_save_IFS=$IFS; IFS=$ac_path_separator
4505 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 $as_executable_p "$ac_dir/$ac_word" || continue
4509 ac_cv_prog_ac_ct_LD="ld"
4510 echo "$as_me:4510: found $ac_dir/$ac_word" >&5
4514 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4517 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4518 if test -n "$ac_ct_LD"; then
4519 echo "$as_me:4519: result: $ac_ct_LD" >&5
4520 echo "${ECHO_T}$ac_ct_LD" >&6
4522 echo "$as_me:4522: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}ar; ac_word=$2
4534 echo "$as_me:4534: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_AR+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 if test -n "$AR"; then
4540 ac_cv_prog_AR="$AR" # Let the user override the test.
4542 ac_save_IFS=$IFS; IFS=$ac_path_separator
4544 for ac_dir in $ac_dummy; do
4546 test -z "$ac_dir" && ac_dir=.
4547 $as_executable_p "$ac_dir/$ac_word" || continue
4548 ac_cv_prog_AR="${ac_tool_prefix}ar"
4549 echo "$as_me:4549: found $ac_dir/$ac_word" >&5
4556 if test -n "$AR"; then
4557 echo "$as_me:4557: result: $AR" >&5
4558 echo "${ECHO_T}$AR" >&6
4560 echo "$as_me:4560: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4565 if test -z "$ac_cv_prog_AR"; then
4567 # Extract the first word of "ar", so it can be a program name with args.
4568 set dummy ar; ac_word=$2
4569 echo "$as_me:4569: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if test -n "$ac_ct_AR"; then
4575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4577 ac_save_IFS=$IFS; IFS=$ac_path_separator
4579 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 $as_executable_p "$ac_dir/$ac_word" || continue
4583 ac_cv_prog_ac_ct_AR="ar"
4584 echo "$as_me:4584: found $ac_dir/$ac_word" >&5
4588 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4592 if test -n "$ac_ct_AR"; then
4593 echo "$as_me:4593: result: $ac_ct_AR" >&5
4594 echo "${ECHO_T}$ac_ct_AR" >&6
4596 echo "$as_me:4596: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}nm; ac_word=$2
4608 echo "$as_me:4608: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_NM+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$NM"; then
4614 ac_cv_prog_NM="$NM" # Let the user override the test.
4616 ac_save_IFS=$IFS; IFS=$ac_path_separator
4618 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 $as_executable_p "$ac_dir/$ac_word" || continue
4622 ac_cv_prog_NM="${ac_tool_prefix}nm"
4623 echo "$as_me:4623: found $ac_dir/$ac_word" >&5
4630 if test -n "$NM"; then
4631 echo "$as_me:4631: result: $NM" >&5
4632 echo "${ECHO_T}$NM" >&6
4634 echo "$as_me:4634: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4639 if test -z "$ac_cv_prog_NM"; then
4641 # Extract the first word of "nm", so it can be a program name with args.
4642 set dummy nm; ac_word=$2
4643 echo "$as_me:4643: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$ac_ct_NM"; then
4649 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4651 ac_save_IFS=$IFS; IFS=$ac_path_separator
4653 for ac_dir in $ac_dummy; do
4655 test -z "$ac_dir" && ac_dir=.
4656 $as_executable_p "$ac_dir/$ac_word" || continue
4657 ac_cv_prog_ac_ct_NM="nm"
4658 echo "$as_me:4658: found $ac_dir/$ac_word" >&5
4662 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4665 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4666 if test -n "$ac_ct_NM"; then
4667 echo "$as_me:4667: result: $ac_ct_NM" >&5
4668 echo "${ECHO_T}$ac_ct_NM" >&6
4670 echo "$as_me:4670: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ar; ac_word=$2
4682 echo "$as_me:4682: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_prog_AR+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$AR"; then
4688 ac_cv_prog_AR="$AR" # Let the user override the test.
4690 ac_save_IFS=$IFS; IFS=$ac_path_separator
4692 for ac_dir in $ac_dummy; do
4694 test -z "$ac_dir" && ac_dir=.
4695 $as_executable_p "$ac_dir/$ac_word" || continue
4696 ac_cv_prog_AR="${ac_tool_prefix}ar"
4697 echo "$as_me:4697: found $ac_dir/$ac_word" >&5
4704 if test -n "$AR"; then
4705 echo "$as_me:4705: result: $AR" >&5
4706 echo "${ECHO_T}$AR" >&6
4708 echo "$as_me:4708: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4713 if test -z "$ac_cv_prog_AR"; then
4715 # Extract the first word of "ar", so it can be a program name with args.
4716 set dummy ar; ac_word=$2
4717 echo "$as_me:4717: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$ac_ct_AR"; then
4723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4725 ac_save_IFS=$IFS; IFS=$ac_path_separator
4727 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 $as_executable_p "$ac_dir/$ac_word" || continue
4731 ac_cv_prog_ac_ct_AR="ar"
4732 echo "$as_me:4732: found $ac_dir/$ac_word" >&5
4736 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4739 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4740 if test -n "$ac_ct_AR"; then
4741 echo "$as_me:4741: result: $ac_ct_AR" >&5
4742 echo "${ECHO_T}$ac_ct_AR" >&6
4744 echo "$as_me:4744: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4753 echo "$as_me:4753: checking for options to update archives" >&5
4754 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4755 if test "${cf_cv_ar_flags+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 case $cf_cv_system_name in
4762 cat >mk_static_lib.sh <<-EOF
4767 exec \$MSVC_BIN -out:"\$out" \$@
4769 chmod +x mk_static_lib.sh
4770 AR=`pwd`/mk_static_lib.sh
4773 cf_cv_ar_flags=unknown
4774 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4777 # check if $ARFLAGS already contains this choice
4778 if test "x$ARFLAGS" != "x" ; then
4779 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4780 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4786 rm -f conftest.$ac_cv_objext
4789 cat >conftest.$ac_ext <<EOF
4790 #line 4790 "configure"
4791 int testdata[3] = { 123, 456, 789 };
4793 if { (eval echo "$as_me:4793: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); } ; then
4798 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4799 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4800 if test -f conftest.a ; then
4801 cf_cv_ar_flags=$cf_ar_flags
4805 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4807 echo "${as_me:-configure}:4807: testing cannot compile test-program ..." 1>&5
4812 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4817 echo "$as_me:4817: result: $cf_cv_ar_flags" >&5
4818 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4820 if test -n "$ARFLAGS" ; then
4821 if test -n "$cf_cv_ar_flags" ; then
4822 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4825 ARFLAGS=$cf_cv_ar_flags
4828 echo "$as_me:4828: checking if you have specified an install-prefix" >&5
4829 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4831 # Check whether --with-install-prefix or --without-install-prefix was given.
4832 if test "${with_install_prefix+set}" = set; then
4833 withval="$with_install_prefix"
4837 (*) DESTDIR="$withval"
4841 echo "$as_me:4841: result: $DESTDIR" >&5
4842 echo "${ECHO_T}$DESTDIR" >&6
4844 ###############################################################################
4846 # If we're cross-compiling, allow the user to override the tools and their
4847 # options. The configure script is oriented toward identifying the host
4848 # compiler, etc., but we need a build compiler to generate parts of the source.
4850 case $cf_cv_system_name in
4852 LDFLAGS="$LDFLAGS user32.lib"
4857 if test "$cross_compiling" = yes ; then
4859 # defaults that we might want to override
4860 : ${BUILD_CFLAGS:=''}
4861 : ${BUILD_CPPFLAGS:=''}
4862 : ${BUILD_LDFLAGS:=''}
4864 : ${BUILD_EXEEXT:='$x'}
4865 : ${BUILD_OBJEXT:='o'}
4867 # Check whether --with-build-cc or --without-build-cc was given.
4868 if test "${with_build_cc+set}" = set; then
4869 withval="$with_build_cc"
4872 for ac_prog in gcc clang c99 c89 cc cl
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 echo "$as_me:4876: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test -n "$BUILD_CC"; then
4882 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4884 ac_save_IFS=$IFS; IFS=$ac_path_separator
4886 for ac_dir in $ac_dummy; do
4888 test -z "$ac_dir" && ac_dir=.
4889 $as_executable_p "$ac_dir/$ac_word" || continue
4890 ac_cv_prog_BUILD_CC="$ac_prog"
4891 echo "$as_me:4891: found $ac_dir/$ac_word" >&5
4897 BUILD_CC=$ac_cv_prog_BUILD_CC
4898 if test -n "$BUILD_CC"; then
4899 echo "$as_me:4899: result: $BUILD_CC" >&5
4900 echo "${ECHO_T}$BUILD_CC" >&6
4902 echo "$as_me:4902: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4906 test -n "$BUILD_CC" && break
4908 test -n "$BUILD_CC" || BUILD_CC="none"
4911 echo "$as_me:4911: checking for native build C compiler" >&5
4912 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4913 echo "$as_me:4913: result: $BUILD_CC" >&5
4914 echo "${ECHO_T}$BUILD_CC" >&6
4916 echo "$as_me:4916: checking for native build C preprocessor" >&5
4917 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4919 # Check whether --with-build-cpp or --without-build-cpp was given.
4920 if test "${with_build_cpp+set}" = set; then
4921 withval="$with_build_cpp"
4922 BUILD_CPP="$withval"
4924 BUILD_CPP='${BUILD_CC} -E'
4926 echo "$as_me:4926: result: $BUILD_CPP" >&5
4927 echo "${ECHO_T}$BUILD_CPP" >&6
4929 echo "$as_me:4929: checking for native build C flags" >&5
4930 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4932 # Check whether --with-build-cflags or --without-build-cflags was given.
4933 if test "${with_build_cflags+set}" = set; then
4934 withval="$with_build_cflags"
4935 BUILD_CFLAGS="$withval"
4937 echo "$as_me:4937: result: $BUILD_CFLAGS" >&5
4938 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4940 echo "$as_me:4940: checking for native build C preprocessor-flags" >&5
4941 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4943 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4944 if test "${with_build_cppflags+set}" = set; then
4945 withval="$with_build_cppflags"
4946 BUILD_CPPFLAGS="$withval"
4948 echo "$as_me:4948: result: $BUILD_CPPFLAGS" >&5
4949 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4951 echo "$as_me:4951: checking for native build linker-flags" >&5
4952 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4954 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4955 if test "${with_build_ldflags+set}" = set; then
4956 withval="$with_build_ldflags"
4957 BUILD_LDFLAGS="$withval"
4959 echo "$as_me:4959: result: $BUILD_LDFLAGS" >&5
4960 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4962 echo "$as_me:4962: checking for native build linker-libraries" >&5
4963 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4965 # Check whether --with-build-libs or --without-build-libs was given.
4966 if test "${with_build_libs+set}" = set; then
4967 withval="$with_build_libs"
4968 BUILD_LIBS="$withval"
4970 echo "$as_me:4970: result: $BUILD_LIBS" >&5
4971 echo "${ECHO_T}$BUILD_LIBS" >&6
4973 # this assumes we're on Unix.
4977 : ${BUILD_CC:='${CC}'}
4979 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4980 { { echo "$as_me:4980: error: Cross-build requires two compilers.
4981 Use --with-build-cc to specify the native compiler." >&5
4982 echo "$as_me: error: Cross-build requires two compilers.
4983 Use --with-build-cc to specify the native compiler." >&2;}
4984 { (exit 1); exit 1; }; }
4988 : ${BUILD_CC:='${CC}'}
4989 : ${BUILD_CPP:='${CPP}'}
4990 : ${BUILD_CFLAGS:='${CFLAGS}'}
4991 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4992 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4993 : ${BUILD_LIBS:='${LIBS}'}
4994 : ${BUILD_EXEEXT:='$x'}
4995 : ${BUILD_OBJEXT:='o'}
4998 ###############################################################################
5000 ### Options to allow the user to specify the set of libraries which are used.
5001 ### Use "--without-normal --with-shared" to allow the default model to be
5002 ### shared, for example.
5005 echo "$as_me:5005: checking if libtool -version-number should be used" >&5
5006 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5008 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5009 if test "${enable_libtool_version+set}" = set; then
5010 enableval="$enable_libtool_version"
5011 test "$enableval" != no && enableval=yes
5012 if test "$enableval" != "yes" ; then
5013 cf_libtool_version=no
5015 cf_libtool_version=yes
5019 cf_libtool_version=yes
5022 echo "$as_me:5022: result: $cf_libtool_version" >&5
5023 echo "${ECHO_T}$cf_libtool_version" >&6
5025 if test "$cf_libtool_version" = yes ; then
5026 LIBTOOL_VERSION="-version-number"
5028 LIBTOOL_VERSION="-version-info"
5031 { echo "$as_me:5031: WARNING: VERSION was not set" >&5
5032 echo "$as_me: WARNING: VERSION was not set" >&2;}
5035 ABI_VERSION="$VERSION"
5036 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5038 echo "${as_me:-configure}:5038: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5042 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5043 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5045 echo "${as_me:-configure}:5045: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5049 { echo "$as_me:5049: WARNING: unexpected VERSION value: $VERSION" >&5
5050 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5057 # common library maintenance symbols that are convenient for libtool scripts:
5058 LIB_CREATE='${AR} -cr'
5059 LIB_OBJECT='${OBJECTS}'
5063 # symbols used to prop libtool up to enable it to determine what it should be
5071 echo "$as_me:5071: checking if you want to build libraries with libtool" >&5
5072 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5074 # Check whether --with-libtool or --without-libtool was given.
5075 if test "${with_libtool+set}" = set; then
5076 withval="$with_libtool"
5077 with_libtool=$withval
5081 echo "$as_me:5081: result: $with_libtool" >&5
5082 echo "${ECHO_T}$with_libtool" >&6
5083 if test "$with_libtool" != "no"; then
5085 if test "$with_libtool" != "yes" ; then
5087 if test "x$prefix" != xNONE; then
5088 cf_path_syntax="$prefix"
5090 cf_path_syntax="$ac_default_prefix"
5093 case ".$with_libtool" in
5098 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5100 (.\${*prefix}*|.\${*dir}*)
5101 eval with_libtool="$with_libtool"
5102 case ".$with_libtool" in
5104 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5109 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5112 { { echo "$as_me:5112: error: expected a pathname, not \"$with_libtool\"" >&5
5113 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5114 { (exit 1); exit 1; }; }
5118 LIBTOOL=$with_libtool
5120 if test -n "$ac_tool_prefix"; then
5121 for ac_prog in libtool glibtool
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 echo "$as_me:5125: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5127 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$LIBTOOL"; then
5131 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5133 ac_save_IFS=$IFS; IFS=$ac_path_separator
5135 for ac_dir in $ac_dummy; do
5137 test -z "$ac_dir" && ac_dir=.
5138 $as_executable_p "$ac_dir/$ac_word" || continue
5139 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5140 echo "$as_me:5140: found $ac_dir/$ac_word" >&5
5146 LIBTOOL=$ac_cv_prog_LIBTOOL
5147 if test -n "$LIBTOOL"; then
5148 echo "$as_me:5148: result: $LIBTOOL" >&5
5149 echo "${ECHO_T}$LIBTOOL" >&6
5151 echo "$as_me:5151: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5155 test -n "$LIBTOOL" && break
5158 if test -z "$LIBTOOL"; then
5159 ac_ct_LIBTOOL=$LIBTOOL
5160 for ac_prog in libtool glibtool
5162 # Extract the first word of "$ac_prog", so it can be a program name with args.
5163 set dummy $ac_prog; ac_word=$2
5164 echo "$as_me:5164: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$ac_ct_LIBTOOL"; then
5170 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5172 ac_save_IFS=$IFS; IFS=$ac_path_separator
5174 for ac_dir in $ac_dummy; do
5176 test -z "$ac_dir" && ac_dir=.
5177 $as_executable_p "$ac_dir/$ac_word" || continue
5178 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5179 echo "$as_me:5179: found $ac_dir/$ac_word" >&5
5185 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5186 if test -n "$ac_ct_LIBTOOL"; then
5187 echo "$as_me:5187: result: $ac_ct_LIBTOOL" >&5
5188 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5190 echo "$as_me:5190: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5194 test -n "$ac_ct_LIBTOOL" && break
5196 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5198 LIBTOOL=$ac_ct_LIBTOOL
5201 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5203 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.].*//'`
5205 cf_cv_libtool_version=
5207 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5209 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5212 unset ac_cv_prog_ac_ct_LIBTOOL
5216 if test -n "$ac_tool_prefix"; then
5217 for ac_prog in glibtool
5219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 echo "$as_me:5221: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 if test -n "$LIBTOOL"; then
5227 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5229 ac_save_IFS=$IFS; IFS=$ac_path_separator
5231 for ac_dir in $ac_dummy; do
5233 test -z "$ac_dir" && ac_dir=.
5234 $as_executable_p "$ac_dir/$ac_word" || continue
5235 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5236 echo "$as_me:5236: found $ac_dir/$ac_word" >&5
5242 LIBTOOL=$ac_cv_prog_LIBTOOL
5243 if test -n "$LIBTOOL"; then
5244 echo "$as_me:5244: result: $LIBTOOL" >&5
5245 echo "${ECHO_T}$LIBTOOL" >&6
5247 echo "$as_me:5247: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5251 test -n "$LIBTOOL" && break
5254 if test -z "$LIBTOOL"; then
5255 ac_ct_LIBTOOL=$LIBTOOL
5256 for ac_prog in glibtool
5258 # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 echo "$as_me:5260: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test -n "$ac_ct_LIBTOOL"; then
5266 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5268 ac_save_IFS=$IFS; IFS=$ac_path_separator
5270 for ac_dir in $ac_dummy; do
5272 test -z "$ac_dir" && ac_dir=.
5273 $as_executable_p "$ac_dir/$ac_word" || continue
5274 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5275 echo "$as_me:5275: found $ac_dir/$ac_word" >&5
5281 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5282 if test -n "$ac_ct_LIBTOOL"; then
5283 echo "$as_me:5283: result: $ac_ct_LIBTOOL" >&5
5284 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5286 echo "$as_me:5286: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5290 test -n "$ac_ct_LIBTOOL" && break
5292 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5294 LIBTOOL=$ac_ct_LIBTOOL
5297 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5299 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.].*//'`
5301 cf_cv_libtool_version=
5303 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5307 if test -z "$LIBTOOL" ; then
5308 { { echo "$as_me:5308: error: Cannot find libtool" >&5
5309 echo "$as_me: error: Cannot find libtool" >&2;}
5310 { (exit 1); exit 1; }; }
5312 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5313 LIB_OBJECT='${OBJECTS:.o=.lo}'
5315 LIB_CLEAN='${LIBTOOL} --mode=clean'
5316 LIB_COMPILE='${LIBTOOL} --mode=compile'
5317 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5318 LIB_INSTALL='${LIBTOOL} --mode=install'
5319 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5322 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5324 echo "$as_me:5324: checking version of $LIBTOOL" >&5
5325 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5327 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5329 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.].*//'`
5331 cf_cv_libtool_version=
5333 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5335 echo "$as_me:5335: result: $cf_cv_libtool_version" >&5
5336 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5337 if test -z "$cf_cv_libtool_version" ; then
5338 { { echo "$as_me:5338: error: This is not GNU libtool" >&5
5339 echo "$as_me: error: This is not GNU libtool" >&2;}
5340 { (exit 1); exit 1; }; }
5343 { { echo "$as_me:5343: error: GNU libtool has not been found" >&5
5344 echo "$as_me: error: GNU libtool has not been found" >&2;}
5345 { (exit 1); exit 1; }; }
5348 # special hack to add -no-undefined (which libtool should do for itself)
5350 case "$cf_cv_system_name" in
5351 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5352 LT_UNDEF=-no-undefined
5356 # special hack to add --tag option for C++ compiler
5357 case $cf_cv_libtool_version in
5358 (1.[5-9]*|[2-9].[0-9.a-z]*)
5359 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5360 LIBTOOL="$LIBTOOL --tag=CC"
5363 LIBTOOL_CXX="$LIBTOOL"
5371 test -z "$LIBTOOL" && ECHO_LT=
5373 if test "$with_libtool" != "no" ; then
5375 cf_list_models="$cf_list_models libtool"
5379 echo "$as_me:5379: checking if you want to build shared libraries" >&5
5380 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5382 # Check whether --with-shared or --without-shared was given.
5383 if test "${with_shared+set}" = set; then
5384 withval="$with_shared"
5385 with_shared=$withval
5389 echo "$as_me:5389: result: $with_shared" >&5
5390 echo "${ECHO_T}$with_shared" >&6
5391 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5393 echo "$as_me:5393: checking if you want to build static libraries" >&5
5394 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5396 # Check whether --with-normal or --without-normal was given.
5397 if test "${with_normal+set}" = set; then
5398 withval="$with_normal"
5399 with_normal=$withval
5403 echo "$as_me:5403: result: $with_normal" >&5
5404 echo "${ECHO_T}$with_normal" >&6
5405 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5407 echo "$as_me:5407: checking if you want to build debug libraries" >&5
5408 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5410 # Check whether --with-debug or --without-debug was given.
5411 if test "${with_debug+set}" = set; then
5412 withval="$with_debug"
5417 echo "$as_me:5417: result: $with_debug" >&5
5418 echo "${ECHO_T}$with_debug" >&6
5419 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5421 echo "$as_me:5421: checking if you want to build profiling libraries" >&5
5422 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5424 # Check whether --with-profile or --without-profile was given.
5425 if test "${with_profile+set}" = set; then
5426 withval="$with_profile"
5427 with_profile=$withval
5431 echo "$as_me:5431: result: $with_profile" >&5
5432 echo "${ECHO_T}$with_profile" >&6
5433 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5437 if test "X$cf_with_cxx_binding" != Xno; then
5438 if test "x$with_shared" = "xyes"; then
5439 echo "$as_me:5439: checking if you want to build C++ shared libraries" >&5
5440 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5442 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5443 if test "${with_cxx_shared+set}" = set; then
5444 withval="$with_cxx_shared"
5445 with_shared_cxx=$withval
5449 echo "$as_me:5449: result: $with_shared_cxx" >&5
5450 echo "${ECHO_T}$with_shared_cxx" >&6
5454 ###############################################################################
5456 echo "$as_me:5456: checking for specified models" >&5
5457 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5458 test -z "$cf_list_models" && cf_list_models=normal
5459 test "$with_libtool" != "no" && cf_list_models=libtool
5460 echo "$as_me:5460: result: $cf_list_models" >&5
5461 echo "${ECHO_T}$cf_list_models" >&6
5463 ### Use the first model as the default, and save its suffix for use in building
5464 ### up test-applications.
5465 echo "$as_me:5465: checking for default model" >&5
5466 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5467 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5468 echo "$as_me:5468: result: $DFT_LWR_MODEL" >&5
5469 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5471 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5482 echo "$as_me:5482: checking if you want to have a library-prefix" >&5
5483 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5485 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5486 if test "${with_lib_prefix+set}" = set; then
5487 withval="$with_lib_prefix"
5488 with_lib_prefix=$withval
5490 with_lib_prefix=auto
5492 echo "$as_me:5492: result: $with_lib_prefix" >&5
5493 echo "${ECHO_T}$with_lib_prefix" >&6
5495 if test $with_lib_prefix = auto
5498 case $cf_cv_system_name in
5500 if test "$DFT_LWR_MODEL" = libtool; then
5509 (*) LIB_PREFIX='lib'
5512 cf_prefix=$LIB_PREFIX
5514 elif test $with_lib_prefix = no
5518 LIB_PREFIX=$with_lib_prefix
5523 echo "$as_me:5523: checking for PATH separator" >&5
5524 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5525 case $cf_cv_system_name in
5526 (os2*) PATH_SEPARATOR=';' ;;
5527 (*) ${PATH_SEPARATOR:=':'} ;;
5530 echo "$as_me:5530: result: $PATH_SEPARATOR" >&5
5531 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5533 ###############################################################################
5535 echo "$as_me:5535: checking if you want to build a separate terminfo library" >&5
5536 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5538 # Check whether --with-termlib or --without-termlib was given.
5539 if test "${with_termlib+set}" = set; then
5540 withval="$with_termlib"
5541 with_termlib=$withval
5545 echo "$as_me:5545: result: $with_termlib" >&5
5546 echo "${ECHO_T}$with_termlib" >&6
5548 echo "$as_me:5548: checking if you want to build a separate tic library" >&5
5549 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5551 # Check whether --with-ticlib or --without-ticlib was given.
5552 if test "${with_ticlib+set}" = set; then
5553 withval="$with_ticlib"
5554 with_ticlib=$withval
5558 echo "$as_me:5558: result: $with_ticlib" >&5
5559 echo "${ECHO_T}$with_ticlib" >&6
5561 if test X"$CC_G_OPT" = X"" ; then
5563 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5566 if test X"$CXX_G_OPT" = X"" ; then
5568 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5571 echo "$as_me:5571: checking for default loader flags" >&5
5572 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5573 case $DFT_LWR_MODEL in
5574 (libtool) LD_MODEL='' ;;
5575 (normal) LD_MODEL='' ;;
5576 (debug) LD_MODEL=$CC_G_OPT ;;
5577 (profile) LD_MODEL='-pg';;
5578 (shared) LD_MODEL='' ;;
5580 echo "$as_me:5580: result: $LD_MODEL" >&5
5581 echo "${ECHO_T}$LD_MODEL" >&6
5583 case $DFT_LWR_MODEL in
5586 echo "$as_me:5586: checking if rpath option should be used" >&5
5587 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5589 # Check whether --enable-rpath or --disable-rpath was given.
5590 if test "${enable_rpath+set}" = set; then
5591 enableval="$enable_rpath"
5592 cf_cv_enable_rpath=$enableval
5594 cf_cv_enable_rpath=no
5596 echo "$as_me:5596: result: $cf_cv_enable_rpath" >&5
5597 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5599 echo "$as_me:5599: checking if shared libraries should be relinked during install" >&5
5600 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5602 # Check whether --enable-relink or --disable-relink was given.
5603 if test "${enable_relink+set}" = set; then
5604 enableval="$enable_relink"
5605 cf_cv_do_relink=$enableval
5609 echo "$as_me:5609: result: $cf_cv_do_relink" >&5
5610 echo "${ECHO_T}$cf_cv_do_relink" >&6
5614 # we will build libraries one-level down.
5618 if test "x$cf_cv_enable_rpath" != xno
5620 echo "$as_me:5620: checking for an rpath option" >&5
5621 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5622 case $cf_cv_system_name in
5624 if test "$GCC" = yes; then
5625 LD_RPATH_OPT="-Wl,-rpath,"
5627 LD_RPATH_OPT="-rpath "
5630 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5631 LD_RPATH_OPT="-Wl,-rpath,"
5633 (openbsd[2-9].*|mirbsd*)
5634 LD_RPATH_OPT="-Wl,-rpath,"
5637 LD_RPATH_OPT="-rpath "
5640 LD_RPATH_OPT="-Wl,-rpath,"
5643 LD_RPATH_OPT="-rpath "
5651 echo "$as_me:5651: result: $LD_RPATH_OPT" >&5
5652 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5654 case "x$LD_RPATH_OPT" in
5656 echo "$as_me:5656: checking if we need a space after rpath option" >&5
5657 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5658 cf_save_LIBS="$LIBS"
5663 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5665 for cf_add_1lib in $cf_add_0lib; do
5666 for cf_add_2lib in $cf_add_libs; do
5667 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5672 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5676 cat >conftest.$ac_ext <<_ACEOF
5677 #line 5677 "configure"
5678 #include "confdefs.h"
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (eval echo "$as_me:5689: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5692 echo "$as_me:5692: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -s conftest$ac_exeext'
5695 { (eval echo "$as_me:5695: \"$ac_try\"") >&5
5698 echo "$as_me:5698: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5702 echo "$as_me: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5707 LIBS="$cf_save_LIBS"
5708 echo "$as_me:5708: result: $cf_rpath_space" >&5
5709 echo "${ECHO_T}$cf_rpath_space" >&6
5710 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5719 INSTALL_LIB="-m 644"
5720 : ${rel_builddir:=.}
5726 cf_cv_do_symlinks=no
5728 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5730 echo "$as_me:5730: checking if release/abi version should be used for shared libs" >&5
5731 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5733 # Check whether --with-shlib-version or --without-shlib-version was given.
5734 if test "${with_shlib_version+set}" = set; then
5735 withval="$with_shlib_version"
5736 test -z "$withval" && withval=auto
5739 cf_cv_shlib_version=auto
5742 cf_cv_shlib_version=$withval
5745 echo "$as_me:5745: result: $withval" >&5
5746 echo "${ECHO_T}$withval" >&6
5747 { { echo "$as_me:5747: error: option value must be one of: rel, abi, or auto" >&5
5748 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5749 { (exit 1); exit 1; }; }
5754 cf_cv_shlib_version=auto
5756 echo "$as_me:5756: result: $cf_cv_shlib_version" >&5
5757 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5762 # Some less-capable ports of gcc support only -fpic
5766 if test "$GCC" = yes
5770 case $cf_cv_system_name in
5771 (*linux*) # e.g., PGI compiler
5777 if test "$cf_try_fPIC" = yes
5779 echo "$as_me:5779: checking which $CC option to use" >&5
5780 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5781 cf_save_CFLAGS="$CFLAGS"
5782 for CC_SHARED_OPTS in -fPIC -fpic ''
5784 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line 5786 "configure"
5787 #include "confdefs.h"
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:5798: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:5804: \"$ac_try\"") >&5
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5814 rm -f conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:5816: result: $CC_SHARED_OPTS" >&5
5817 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5818 CFLAGS="$cf_save_CFLAGS"
5821 cf_cv_shlib_version_infix=no
5823 case $cf_cv_system_name in
5824 (aix4.3-9*|aix[5-7]*)
5825 if test "$GCC" = yes; then
5826 CC_SHARED_OPTS='-Wl,-brtl'
5827 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5829 CC_SHARED_OPTS='-brtl'
5830 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5831 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5835 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5839 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5840 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5841 cf_cv_shlib_version=cygdll
5842 cf_cv_shlib_version_infix=cygdll
5845 cat >mk_shared_lib.sh <<-CF_EOF
5848 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5851 Linking shared library
5852 ** SHARED_LIB \$SHARED_LIB
5853 ** IMPORT_LIB \$IMPORT_LIB
5855 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5857 chmod +x mk_shared_lib.sh
5861 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5862 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5863 cf_cv_shlib_version=msysdll
5864 cf_cv_shlib_version_infix=msysdll
5867 cat >mk_shared_lib.sh <<-CF_EOF
5870 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5873 Linking shared library
5874 ** SHARED_LIB \$SHARED_LIB
5875 ** IMPORT_LIB \$IMPORT_LIB
5877 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5879 chmod +x mk_shared_lib.sh
5882 cf_try_cflags="no-cpp-precomp"
5883 CC_SHARED_OPTS="-dynamic"
5884 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5885 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5886 cf_cv_shlib_version_infix=yes
5887 echo "$as_me:5887: checking if ld -search_paths_first works" >&5
5888 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5889 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cf_save_LDFLAGS=$LDFLAGS
5894 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line 5896 "configure"
5897 #include "confdefs.h"
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:5908: \"$ac_link\"") >&5
5909 (eval $ac_link) 2>&5
5911 echo "$as_me:5911: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -s conftest$ac_exeext'
5914 { (eval echo "$as_me:5914: \"$ac_try\"") >&5
5917 echo "$as_me:5917: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 cf_cv_ldflags_search_paths_first=yes
5921 echo "$as_me: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 cf_cv_ldflags_search_paths_first=no
5925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5926 LDFLAGS=$cf_save_LDFLAGS
5928 echo "$as_me:5928: result: $cf_cv_ldflags_search_paths_first" >&5
5929 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5930 if test $cf_cv_ldflags_search_paths_first = yes; then
5931 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5935 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5936 if test "$GCC" != yes; then
5939 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5940 INSTALL_LIB="-m 555"
5943 # (tested with gcc 2.7.2 -- I don't have c89)
5944 if test "$GCC" = yes; then
5945 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5948 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5950 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5951 # HP-UX shared libraries must be executable, and should be
5952 # readonly to exploit a quirk in the memory manager.
5953 INSTALL_LIB="-m 555"
5956 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5957 if test "$cf_cv_shlib_version" = rel; then
5958 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5960 cf_shared_soname='`basename $@`'
5963 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5966 if test "$cf_cv_enable_rpath" = yes ; then
5967 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5969 # tested with IRIX 5.2 and 'cc'.
5970 if test "$GCC" != yes; then
5971 CC_SHARED_OPTS='-KPIC'
5972 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5974 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5976 cf_cv_rm_so_locs=yes
5978 (linux*|gnu*|k*bsd*-gnu)
5979 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5980 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5981 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5983 if test "$cf_cv_enable_rpath" = yes ; then
5984 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5987 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5988 if test "$cf_cv_shlib_version" = rel; then
5989 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5991 cf_cv_shared_soname='`basename $@`'
5994 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5997 cf_cv_shlib_version=msvcdll
5998 cf_cv_shlib_version_infix=msvcdll
6001 if test "$DFT_LWR_MODEL" = "shared" ; then
6002 LOCAL_LDFLAGS="-link -dll"
6003 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6004 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6007 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6008 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6009 cat >mk_shared_lib.sh <<-CF_EOF
6012 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6017 Linking shared library
6018 ** SHARED LIB \$SHARED_LIB
6019 ** IMPORT_LIB \$IMPORT_LIB
6021 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6022 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6023 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6025 chmod +x mk_shared_lib.sh
6026 cat >mk_prog.sh <<-CF_EOF
6029 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6032 ldopts=("/subsystem:console")
6035 while test \$# -gt 0; do
6038 # ignore -link argument
6041 # ignore runtime-library option
6056 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6059 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6065 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6066 ldopts+=("\${linkarg}")
6074 ldopts+=("-out:\$1")
6083 if [ "\$isdll" -ne 0 ]; then
6084 for lib in \${libs[*]}; do
6085 ldopts+=("\$lib.dll.lib")
6088 for lib in \${libs[*]}; do
6089 ldopts+=("\$lib.lib")
6094 ** ld options: "\${ldopts[@]}"
6096 exec \$LD \${ldopts[@]}
6099 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6100 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6103 cf_cv_shlib_version=mingw
6104 cf_cv_shlib_version_infix=mingw
6107 if test "$DFT_LWR_MODEL" = "shared" ; then
6108 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6109 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6110 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6113 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6114 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6115 cat >mk_shared_lib.sh <<-CF_EOF
6118 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6121 Linking shared library
6122 ** SHARED_LIB \$SHARED_LIB
6123 ** IMPORT_LIB \$IMPORT_LIB
6125 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6127 chmod +x mk_shared_lib.sh
6129 (openbsd[2-9].*|mirbsd*)
6130 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6131 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6132 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6134 if test "$cf_cv_enable_rpath" = yes ; then
6135 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6137 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6139 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6140 if test "$cf_cv_shlib_version" = rel; then
6141 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6143 cf_cv_shared_soname='`basename $@`'
6146 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6150 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6154 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6156 (nto-qnx*|openbsd*|freebsd[12].*)
6157 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6158 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6159 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6161 (dragonfly*|freebsd*)
6162 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6163 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6164 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6165 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6166 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6169 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6170 if test "$cf_cv_shlib_version" = rel; then
6171 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6173 cf_cv_shared_soname='`basename $@`'
6176 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6179 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6180 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6181 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6182 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6183 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6184 if test "$cf_cv_shlib_version" = auto; then
6185 if test -f /usr/libexec/ld.elf_so; then
6186 cf_cv_shlib_version=abi
6188 cf_cv_shlib_version=rel
6192 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6193 if test "$cf_cv_shlib_version" = rel; then
6194 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6196 cf_cv_shared_soname='`basename $@`'
6199 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6201 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6205 # tested with OSF/1 V3.2 and 'cc'
6206 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6207 # link with shared libs).
6208 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6211 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6214 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6215 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6216 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6217 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6219 cf_cv_rm_so_locs=yes
6221 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6222 # tested with osr5.0.5
6223 if test "$GCC" != yes; then
6224 CC_SHARED_OPTS='-belf -KPIC'
6226 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6227 if test "$cf_cv_enable_rpath" = yes ; then
6228 # only way is to set LD_RUN_PATH but no switch for it
6231 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6232 LINK_PROGS='LD_RUN_PATH=${libdir}'
6233 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6236 # tested with SunOS 4.1.1 and gcc 2.7.0
6237 if test "$GCC" != yes; then
6238 CC_SHARED_OPTS='-KPIC'
6240 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6241 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6244 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6245 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6246 if test "$DFT_LWR_MODEL" = "shared" ; then
6247 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6248 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6250 if test "$cf_cv_enable_rpath" = yes ; then
6251 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6254 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6255 if test "$cf_cv_shlib_version" = rel; then
6256 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6258 cf_cv_shared_soname='`basename $@`'
6261 if test "$GCC" != yes; then
6262 cf_save_CFLAGS="$CFLAGS"
6263 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6265 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6266 cat >conftest.$ac_ext <<_ACEOF
6267 #line 6267 "configure"
6268 #include "confdefs.h"
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:6279: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>&5
6282 echo "$as_me:6282: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest.$ac_objext'
6285 { (eval echo "$as_me:6285: \"$ac_try\"") >&5
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6292 echo "$as_me: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6295 rm -f conftest.$ac_objext conftest.$ac_ext
6297 CFLAGS="$cf_save_CFLAGS"
6298 CC_SHARED_OPTS=$cf_shared_opts
6299 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6301 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6304 (sysv5uw7*|unix_sv*)
6305 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6306 if test "$GCC" != yes; then
6307 CC_SHARED_OPTS='-KPIC'
6309 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6312 CC_SHARED_OPTS='unknown'
6313 MK_SHARED_LIB='echo unknown'
6317 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6318 case "$cf_cv_shlib_version" in
6320 case "$MK_SHARED_LIB" in
6322 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6325 { echo "$as_me:6325: WARNING: ignored --with-shlib-version" >&5
6326 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6332 if test -n "$cf_try_cflags"
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6335 "${as_me:-configure}"
6337 int main(int argc, char *argv[])
6340 return (argv[argc-1] == 0) ;
6343 cf_save_CFLAGS="$CFLAGS"
6344 for cf_opt in $cf_try_cflags
6346 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6347 echo "$as_me:6347: checking if CFLAGS option -$cf_opt works" >&5
6348 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6349 if { (eval echo "$as_me:6349: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>&5
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); }; then
6354 echo "$as_me:6354: result: yes" >&5
6355 echo "${ECHO_T}yes" >&6
6356 cf_save_CFLAGS="$CFLAGS"
6358 echo "$as_me:6358: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6362 CFLAGS="$cf_save_CFLAGS"
6365 # RPATH_LIST is a colon-separated list of directories
6366 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6367 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6369 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6371 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6373 echo "${as_me:-configure}:6373: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6375 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6377 echo "${as_me:-configure}:6377: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6379 for model in $cf_list_models; do
6383 echo "$as_me:6383: checking for additional libtool options" >&5
6384 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6386 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6387 if test "${with_libtool_opts+set}" = set; then
6388 withval="$with_libtool_opts"
6389 with_libtool_opts=$withval
6391 with_libtool_opts=no
6393 echo "$as_me:6393: result: $with_libtool_opts" >&5
6394 echo "${ECHO_T}$with_libtool_opts" >&6
6396 case .$with_libtool_opts in
6400 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6404 echo "$as_me:6404: checking if exported-symbols file should be used" >&5
6405 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6407 # Check whether --with-export-syms or --without-export-syms was given.
6408 if test "${with_export_syms+set}" = set; then
6409 withval="$with_export_syms"
6410 with_export_syms=$withval
6414 if test "x$with_export_syms" = xyes
6416 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6419 echo "$as_me:6419: result: $with_export_syms" >&5
6420 echo "${ECHO_T}$with_export_syms" >&6
6421 if test "x$with_export_syms" != xno
6423 EXPORT_SYMS="-export-symbols $with_export_syms"
6429 if test "$CC_SHARED_OPTS" = "unknown"; then
6430 { { echo "$as_me:6430: error: Shared libraries are not supported in this version" >&5
6431 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6432 { (exit 1); exit 1; }; }
6434 # workaround for inept transition to PIE vs PIC...
6435 echo "$as_me:6435: checking if current CFLAGS link properly" >&5
6436 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line 6438 "configure"
6439 #include "confdefs.h"
6444 printf("Hello work\n");
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:6450: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>&5
6453 echo "$as_me:6453: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (eval echo "$as_me:6456: \"$ac_try\"") >&5
6459 echo "$as_me:6459: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6463 echo "$as_me: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6468 echo "$as_me:6468: result: $cf_cflags_work" >&5
6469 echo "${ECHO_T}$cf_cflags_work" >&6
6470 if test "$cf_cflags_work" = no
6472 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6474 echo "${as_me:-configure}:6474: testing try to work around by appending shared-options ..." 1>&5
6476 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6479 echo "$as_me:6479: checking if versioned-symbols file should be used" >&5
6480 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6482 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6483 if test "${with_versioned_syms+set}" = set; then
6484 withval="$with_versioned_syms"
6485 with_versioned_syms=$withval
6487 with_versioned_syms=no
6489 case "x$with_versioned_syms" in
6491 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6497 test -f "$with_versioned_syms" || { { echo "$as_me:6497: error: expected a filename: $with_versioned_syms" >&5
6498 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6499 { (exit 1); exit 1; }; }
6502 test -f "$with_versioned_syms" || { { echo "$as_me:6502: error: expected a filename: $with_versioned_syms" >&5
6503 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6504 { (exit 1); exit 1; }; }
6505 with_versioned_syms=`pwd`/"$with_versioned_syms"
6508 echo "$as_me:6508: result: $with_versioned_syms" >&5
6509 echo "${ECHO_T}$with_versioned_syms" >&6
6515 if test "x$with_versioned_syms" != xno
6517 RESULTING_SYMS=$with_versioned_syms
6518 case "x$MK_SHARED_LIB" in
6520 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6521 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6522 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6524 echo "${as_me:-configure}:6524: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6528 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6529 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6530 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6532 echo "${as_me:-configure}:6532: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6536 { echo "$as_me:6536: WARNING: this system does not support versioned-symbols" >&5
6537 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6541 # Linux ld can selectively override scope, e.g., of symbols beginning with
6542 # "_" by first declaring some as global, and then using a wildcard to
6543 # declare the others as local. Some other loaders cannot do this. Check
6544 # by constructing a (very) simple shared library and inspecting its
6546 if test "x$VERSIONED_SYMS" != "x"
6548 echo "$as_me:6548: checking if wildcards can be used to selectively omit symbols" >&5
6549 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6555 cat >conftest.ver <<EOF
6584 cat >conftest.$ac_ext <<EOF
6585 #line 6585 "configure"
6586 int _ismissing(void) { return 1; }
6587 int _localf1(void) { return 1; }
6588 int _localf2(void) { return 2; }
6589 int globalf1(void) { return 1; }
6590 int globalf2(void) { return 2; }
6591 int _sublocalf1(void) { return 1; }
6592 int _sublocalf2(void) { return 2; }
6593 int subglobalf1(void) { return 1; }
6594 int subglobalf2(void) { return 2; }
6596 cat >conftest.mk <<EOF
6599 CPPFLAGS=${CPPFLAGS}
6602 VERSIONED_SYMS=${VERSIONED_SYMS}
6603 RESULTING_SYMS=conftest.ver
6604 MK_SHARED_LIB=${MK_SHARED_LIB}
6605 conftest.so: conftest.$ac_cv_objext
6606 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6609 # compile source, make library
6610 if make -f conftest.mk 2>&5 >/dev/null
6612 # test for missing symbol in either Data or Text section
6613 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6614 test -n "$cf_missing" && WILDCARD_SYMS=yes
6616 echo "$as_me:6616: result: $WILDCARD_SYMS" >&5
6617 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6626 ### Checks for special libraries, must be done up-front.
6629 echo "$as_me:6629: checking if you want to link with the GPM mouse library" >&5
6630 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6632 # Check whether --with-gpm or --without-gpm was given.
6633 if test "${with_gpm+set}" = set; then
6639 echo "$as_me:6639: result: $with_gpm" >&5
6640 echo "${ECHO_T}$with_gpm" >&6
6642 if test "$with_gpm" != no ; then
6643 echo "$as_me:6643: checking for gpm.h" >&5
6644 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6645 if test "${ac_cv_header_gpm_h+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6649 #line 6649 "configure"
6650 #include "confdefs.h"
6653 if { (eval echo "$as_me:6653: \"$ac_cpp conftest.$ac_ext\"") >&5
6654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6656 egrep -v '^ *\+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 (exit $ac_status); } >/dev/null; then
6661 if test -s conftest.err; then
6662 ac_cpp_err=$ac_c_preproc_warn_flag
6669 if test -z "$ac_cpp_err"; then
6670 ac_cv_header_gpm_h=yes
6672 echo "$as_me: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 ac_cv_header_gpm_h=no
6676 rm -f conftest.err conftest.$ac_ext
6678 echo "$as_me:6678: result: $ac_cv_header_gpm_h" >&5
6679 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6680 if test $ac_cv_header_gpm_h = yes; then
6682 cat >>confdefs.h <<\EOF
6683 #define HAVE_GPM_H 1
6686 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6687 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6689 echo "${as_me:-configure}:6689: testing assuming we really have GPM library ..." 1>&5
6691 cat >>confdefs.h <<\EOF
6692 #define HAVE_LIBGPM 1
6697 echo "$as_me:6697: checking for Gpm_Open in -lgpm" >&5
6698 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6699 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 ac_check_lib_save_LIBS=$LIBS
6704 cat >conftest.$ac_ext <<_ACEOF
6705 #line 6705 "configure"
6706 #include "confdefs.h"
6708 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (eval echo "$as_me:6724: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>&5
6727 echo "$as_me:6727: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try='test -s conftest$ac_exeext'
6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5
6733 echo "$as_me:6733: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_cv_lib_gpm_Gpm_Open=yes
6737 echo "$as_me: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6739 ac_cv_lib_gpm_Gpm_Open=no
6741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6742 LIBS=$ac_check_lib_save_LIBS
6744 echo "$as_me:6744: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6745 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6746 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6750 if test "$with_gpm" = maybe; then
6751 { echo "$as_me:6751: WARNING: Cannot link with GPM library" >&5
6752 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6755 { { echo "$as_me:6755: error: Cannot link with GPM library" >&5
6756 echo "$as_me: error: Cannot link with GPM library" >&2;}
6757 { (exit 1); exit 1; }; }
6766 test "$with_gpm" != maybe && { echo "$as_me:6766: WARNING: Cannot find GPM header" >&5
6767 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6774 if test "$with_gpm" != no ; then
6775 echo "$as_me:6775: checking if you want to load GPM dynamically" >&5
6776 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6778 # Check whether --with-dlsym or --without-dlsym was given.
6779 if test "${with_dlsym+set}" = set; then
6780 withval="$with_dlsym"
6785 echo "$as_me:6785: result: $with_dlsym" >&5
6786 echo "${ECHO_T}$with_dlsym" >&6
6787 if test "x$with_dlsym" = xyes ; then
6790 echo "$as_me:6790: checking for dlsym" >&5
6791 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6792 if test "${ac_cv_func_dlsym+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6798 #define dlsym autoconf_temporary
6799 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6814 /* The GNU C library defines stubs for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6818 #error found stub for dlsym
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:6827: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>&5
6830 echo "$as_me:6830: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -s conftest$ac_exeext'
6833 { (eval echo "$as_me:6833: \"$ac_try\"") >&5
6836 echo "$as_me:6836: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_func_dlsym=yes
6840 echo "$as_me: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846 echo "$as_me:6846: result: $ac_cv_func_dlsym" >&5
6847 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6848 if test $ac_cv_func_dlsym = yes; then
6853 echo "$as_me:6853: checking for dlsym in -ldl" >&5
6854 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6855 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 ac_check_lib_save_LIBS=$LIBS
6860 cat >conftest.$ac_ext <<_ACEOF
6861 #line 6861 "configure"
6862 #include "confdefs.h"
6864 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6879 rm -f conftest.$ac_objext conftest$ac_exeext
6880 if { (eval echo "$as_me:6880: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try='test -s conftest$ac_exeext'
6886 { (eval echo "$as_me:6886: \"$ac_try\"") >&5
6889 echo "$as_me:6889: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_lib_dl_dlsym=yes
6893 echo "$as_me: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 ac_cv_lib_dl_dlsym=no
6897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS
6900 echo "$as_me:6900: result: $ac_cv_lib_dl_dlsym" >&5
6901 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6902 if test $ac_cv_lib_dl_dlsym = yes; then
6910 if test "$cf_have_dlsym" = yes ; then
6911 test "$cf_have_libdl" = yes && {
6915 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6917 for cf_add_1lib in $cf_add_0lib; do
6918 for cf_add_2lib in $cf_add_libs; do
6919 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6924 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6929 echo "$as_me:6929: checking whether able to link to dl*() functions" >&5
6930 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6931 cat >conftest.$ac_ext <<_ACEOF
6932 #line 6932 "configure"
6933 #include "confdefs.h"
6940 if ((obj = dlopen("filename", 0)) != 0) {
6941 if (dlsym(obj, "symbolname") == 0) {
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:6950: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>&5
6953 echo "$as_me:6953: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:6956: \"$ac_try\"") >&5
6959 echo "$as_me:6959: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6962 cat >>confdefs.h <<\EOF
6963 #define HAVE_LIBDL 1
6967 echo "$as_me: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6970 { { echo "$as_me:6970: error: Cannot link test program for libdl" >&5
6971 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6972 { (exit 1); exit 1; }; }
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 echo "$as_me:6975: result: ok" >&5
6976 echo "${ECHO_T}ok" >&6
6978 { { echo "$as_me:6978: error: Cannot find dlsym function" >&5
6979 echo "$as_me: error: Cannot find dlsym function" >&2;}
6980 { (exit 1); exit 1; }; }
6983 if test "x$with_gpm" != xyes ; then
6984 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6986 echo "${as_me:-configure}:6986: testing assuming soname for gpm is $with_gpm ..." 1>&5
6988 cf_cv_gpm_soname="$with_gpm"
6991 echo "$as_me:6991: checking for soname of gpm library" >&5
6992 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6993 if test "${cf_cv_gpm_soname+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 cf_cv_gpm_soname=unknown
6998 if test "$cross_compiling" != yes ; then
6999 cat >conftest.$ac_ext <<CF_EOF
7003 if (Gpm_Open(0,0)) Gpm_Close();
7004 ${cf_cv_main_return:-return}(0);
7007 cf_save_LIBS="$LIBS"
7012 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7014 for cf_add_1lib in $cf_add_0lib; do
7015 for cf_add_2lib in $cf_add_libs; do
7016 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7021 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7025 if { (eval echo "$as_me:7025: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 (exit $ac_status); } ; then
7030 if { (eval echo "$as_me:7030: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>&5
7033 echo "$as_me:7033: \$? = $ac_status" >&5
7034 (exit $ac_status); } ; then
7035 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
7036 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7040 LIBS="$cf_save_LIBS"
7044 echo "$as_me:7044: result: $cf_cv_gpm_soname" >&5
7045 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7048 test "$cf_cv_gpm_soname" != "unknown" &&
7049 cat >>confdefs.h <<EOF
7050 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7053 SHLIB_LIST="-ldl $SHLIB_LIST"
7055 cf_add_libs="$PRIVATE_LIBS"
7058 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7060 for cf_add_1lib in $cf_add_0lib; do
7061 for cf_add_2lib in $cf_add_libs; do
7062 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7067 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7069 PRIVATE_LIBS="$cf_add_libs"
7072 SHLIB_LIST="-lgpm $SHLIB_LIST"
7074 cf_add_libs="$TEST_LIBS"
7077 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7079 for cf_add_1lib in $cf_add_0lib; do
7080 for cf_add_2lib in $cf_add_libs; do
7081 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7086 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7088 TEST_LIBS="$cf_add_libs"
7090 cf_add_libs="$PRIVATE_LIBS"
7093 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7095 for cf_add_1lib in $cf_add_0lib; do
7096 for cf_add_2lib in $cf_add_libs; do
7097 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7102 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7104 PRIVATE_LIBS="$cf_add_libs"
7108 cat >>confdefs.h <<\EOF
7109 #define HAVE_LIBGPM 1
7112 echo "$as_me:7112: checking for Gpm_Wgetch in -lgpm" >&5
7113 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7114 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 ac_check_lib_save_LIBS=$LIBS
7119 cat >conftest.$ac_ext <<_ACEOF
7120 #line 7120 "configure"
7121 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (eval echo "$as_me:7139: \"$ac_link\"") >&5
7140 (eval $ac_link) 2>&5
7142 echo "$as_me:7142: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:7145: \"$ac_try\"") >&5
7148 echo "$as_me:7148: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_lib_gpm_Gpm_Wgetch=yes
7152 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7154 ac_cv_lib_gpm_Gpm_Wgetch=no
7156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7157 LIBS=$ac_check_lib_save_LIBS
7159 echo "$as_me:7159: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7160 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7161 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
7163 echo "$as_me:7163: checking if GPM is weakly bound to curses library" >&5
7164 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7165 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 cf_cv_check_gpm_wgetch=unknown
7170 if test "$cross_compiling" != yes ; then
7172 cat >conftest.$ac_ext <<CF_EOF
7177 ${cf_cv_main_return:-return}(0);
7181 cf_save_LIBS="$LIBS"
7182 # This only works if we can look at the symbol table. If a shared
7183 # library is stripped for install, we cannot use that. So we're forced
7184 # to rely on the static library, noting that some packagers may not
7186 LIBS="-static -lgpm -dynamic $LIBS"
7187 if { (eval echo "$as_me:7187: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>&5
7190 echo "$as_me:7190: \$? = $ac_status" >&5
7191 (exit $ac_status); } ; then
7192 if { (eval echo "$as_me:7192: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); } ; then
7197 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
7198 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7199 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7203 LIBS="$cf_save_LIBS"
7207 echo "$as_me:7207: result: $cf_cv_check_gpm_wgetch" >&5
7208 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7210 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7211 { echo "$as_me:7211: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7212 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7219 echo "$as_me:7219: checking if you want to use PCRE2 for regular-expressions" >&5
7220 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7222 # Check whether --with-pcre2 or --without-pcre2 was given.
7223 if test "${with_pcre2+set}" = set; then
7224 withval="$with_pcre2"
7227 test -z "$with_pcre2" && with_pcre2=no
7228 echo "$as_me:7228: result: $with_pcre2" >&5
7229 echo "${ECHO_T}$with_pcre2" >&6
7231 if test "x$with_pcre2" != xno ; then
7233 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
7234 test -n "$verbose" && echo " found package libpcre2" 1>&6
7236 echo "${as_me:-configure}:7236: testing found package libpcre2 ..." 1>&5
7238 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
7239 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
7240 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7242 echo "${as_me:-configure}:7242: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7244 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7246 echo "${as_me:-configure}:7246: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7251 cf_new_extra_cppflags=
7253 for cf_add_cflags in $cf_pkgconfig_incs
7255 case $cf_fix_cppflags in
7257 case $cf_add_cflags in
7258 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7259 case $cf_add_cflags in
7261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7263 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7264 && test -z "${cf_tst_cflags}" \
7265 && cf_fix_cppflags=yes
7267 if test $cf_fix_cppflags = yes ; then
7269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7273 elif test "${cf_tst_cflags}" = "\"'" ; then
7275 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7276 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7286 case $cf_add_cflags in
7288 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7290 CPPFLAGS=`echo "$CPPFLAGS" | \
7291 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7292 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7297 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7298 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7305 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7306 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7313 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7314 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7316 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7318 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7319 && test -z "${cf_tst_cflags}" \
7320 && cf_fix_cppflags=no
7325 if test -n "$cf_new_cflags" ; then
7327 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7328 CFLAGS="${CFLAGS}$cf_new_cflags"
7332 if test -n "$cf_new_cppflags" ; then
7334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7335 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7339 if test -n "$cf_new_extra_cppflags" ; then
7341 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7342 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7349 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7351 for cf_add_1lib in $cf_add_0lib; do
7352 for cf_add_2lib in $cf_add_libs; do
7353 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7358 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7367 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7368 test -n "$verbose" && echo " found package libpcre" 1>&6
7370 echo "${as_me:-configure}:7370: testing found package libpcre ..." 1>&5
7372 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7373 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7374 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7376 echo "${as_me:-configure}:7376: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7378 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7380 echo "${as_me:-configure}:7380: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7385 cf_new_extra_cppflags=
7387 for cf_add_cflags in $cf_pkgconfig_incs
7389 case $cf_fix_cppflags in
7391 case $cf_add_cflags in
7392 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7393 case $cf_add_cflags in
7395 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7397 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7398 && test -z "${cf_tst_cflags}" \
7399 && cf_fix_cppflags=yes
7401 if test $cf_fix_cppflags = yes ; then
7403 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7404 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7407 elif test "${cf_tst_cflags}" = "\"'" ; then
7409 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7410 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7420 case $cf_add_cflags in
7422 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7424 CPPFLAGS=`echo "$CPPFLAGS" | \
7425 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7426 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7431 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7432 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7439 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7440 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7447 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7448 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7452 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7453 && test -z "${cf_tst_cflags}" \
7454 && cf_fix_cppflags=no
7459 if test -n "$cf_new_cflags" ; then
7461 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7462 CFLAGS="${CFLAGS}$cf_new_cflags"
7466 if test -n "$cf_new_cppflags" ; then
7468 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7469 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7473 if test -n "$cf_new_extra_cppflags" ; then
7475 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7476 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7483 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7485 for cf_add_1lib in $cf_add_0lib; do
7486 for cf_add_2lib in $cf_add_libs; do
7487 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7492 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7501 { { echo "$as_me:7501: error: Cannot find PCRE2 library" >&5
7502 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7503 { (exit 1); exit 1; }; }
7508 cat >>confdefs.h <<\EOF
7509 #define HAVE_LIB_PCRE2 1
7512 # if pkgconfig gave no results, look for the libraries directly
7514 (*pcre2-posix*|*pcreposix*)
7517 echo "$as_me:7517: checking for regcomp in -lpcre2-posix" >&5
7518 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7519 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 ac_check_lib_save_LIBS=$LIBS
7523 LIBS="-lpcre2-posix $LIBS"
7524 cat >conftest.$ac_ext <<_ACEOF
7525 #line 7525 "configure"
7526 #include "confdefs.h"
7528 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:7544: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>&5
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:7550: \"$ac_try\"") >&5
7553 echo "$as_me:7553: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_lib_pcre2_posix_regcomp=yes
7557 echo "$as_me: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 ac_cv_lib_pcre2_posix_regcomp=no
7561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7562 LIBS=$ac_check_lib_save_LIBS
7564 echo "$as_me:7564: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7565 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7566 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7571 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7573 for cf_add_1lib in $cf_add_0lib; do
7574 for cf_add_2lib in $cf_add_libs; do
7575 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7580 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7585 echo "$as_me:7585: checking for regcomp in -lpcreposix" >&5
7586 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7587 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_check_lib_save_LIBS=$LIBS
7591 LIBS="-lpcreposix $LIBS"
7592 cat >conftest.$ac_ext <<_ACEOF
7593 #line 7593 "configure"
7594 #include "confdefs.h"
7596 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (eval echo "$as_me:7612: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>&5
7615 echo "$as_me:7615: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -s conftest$ac_exeext'
7618 { (eval echo "$as_me:7618: \"$ac_try\"") >&5
7621 echo "$as_me:7621: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_lib_pcreposix_regcomp=yes
7625 echo "$as_me: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 ac_cv_lib_pcreposix_regcomp=no
7629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7630 LIBS=$ac_check_lib_save_LIBS
7632 echo "$as_me:7632: result: $ac_cv_lib_pcreposix_regcomp" >&5
7633 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7634 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7639 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7641 for cf_add_1lib in $cf_add_0lib; do
7642 for cf_add_2lib in $cf_add_libs; do
7643 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7648 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7653 { { echo "$as_me:7653: error: Cannot find PCRE2 POSIX library" >&5
7654 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7655 { (exit 1); exit 1; }; }
7663 # either way, check for the library header files
7665 for ac_header in pcre2posix.h pcreposix.h
7667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7668 echo "$as_me:7668: checking for $ac_header" >&5
7669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7674 #line 7674 "configure"
7675 #include "confdefs.h"
7676 #include <$ac_header>
7678 if { (eval echo "$as_me:7678: \"$ac_cpp conftest.$ac_ext\"") >&5
7679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7681 egrep -v '^ *\+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 echo "$as_me:7684: \$? = $ac_status" >&5
7685 (exit $ac_status); } >/dev/null; then
7686 if test -s conftest.err; then
7687 ac_cpp_err=$ac_c_preproc_warn_flag
7694 if test -z "$ac_cpp_err"; then
7695 eval "$as_ac_Header=yes"
7697 echo "$as_me: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7699 eval "$as_ac_Header=no"
7701 rm -f conftest.err conftest.$ac_ext
7703 echo "$as_me:7703: result: `eval echo '${'$as_ac_Header'}'`" >&5
7704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7706 cat >>confdefs.h <<EOF
7707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7715 # not everyone has "test -c"
7716 if test -c /dev/sysmouse 2>/dev/null ; then
7717 echo "$as_me:7717: checking if you want to use sysmouse" >&5
7718 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7720 # Check whether --with-sysmouse or --without-sysmouse was given.
7721 if test "${with_sysmouse+set}" = set; then
7722 withval="$with_sysmouse"
7723 cf_with_sysmouse=$withval
7725 cf_with_sysmouse=maybe
7727 if test "$cf_with_sysmouse" != no ; then
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line 7729 "configure"
7730 #include "confdefs.h"
7732 #include <osreldate.h>
7733 #if (__FreeBSD_version >= 400017)
7734 #include <sys/consio.h>
7735 #include <sys/fbio.h>
7737 #include <machine/console.h>
7744 struct mouse_info the_mouse;
7745 ioctl(0, CONS_MOUSECTL, &the_mouse);
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:7752: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>&5
7755 echo "$as_me:7755: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:7758: \"$ac_try\"") >&5
7761 echo "$as_me:7761: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 cf_with_sysmouse=yes
7765 echo "$as_me: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7769 rm -f conftest.$ac_objext conftest.$ac_ext
7771 echo "$as_me:7771: result: $cf_with_sysmouse" >&5
7772 echo "${ECHO_T}$cf_with_sysmouse" >&6
7773 test "$cf_with_sysmouse" = yes &&
7774 cat >>confdefs.h <<\EOF
7775 #define USE_SYSMOUSE 1
7780 # pretend that ncurses==ncursesw==ncursest
7781 echo "$as_me:7781: checking if you want to disable library suffixes" >&5
7782 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7784 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7785 if test "${enable_lib_suffixes+set}" = set; then
7786 enableval="$enable_lib_suffixes"
7787 test "$enableval" != no && enableval=yes
7788 if test "$enableval" != "yes" ; then
7789 disable_lib_suffixes=yes
7791 disable_lib_suffixes=no
7795 disable_lib_suffixes=no
7798 echo "$as_me:7798: result: $disable_lib_suffixes" >&5
7799 echo "${ECHO_T}$disable_lib_suffixes" >&6
7801 ### If we're building with rpath, try to link non-standard libs that way too.
7802 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7804 echo "$as_me:7804: checking if rpath-hack should be disabled" >&5
7805 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7807 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7808 if test "${enable_rpath_hack+set}" = set; then
7809 enableval="$enable_rpath_hack"
7810 test "$enableval" != no && enableval=yes
7811 if test "$enableval" != "yes" ; then
7812 cf_disable_rpath_hack=yes
7814 cf_disable_rpath_hack=no
7818 cf_disable_rpath_hack=no
7821 echo "$as_me:7821: result: $cf_disable_rpath_hack" >&5
7822 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7823 if test "$cf_disable_rpath_hack" = no ; then
7825 echo "$as_me:7825: checking for updated LDFLAGS" >&5
7826 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7827 if test -n "$LD_RPATH_OPT" ; then
7828 echo "$as_me:7828: result: maybe" >&5
7829 echo "${ECHO_T}maybe" >&6
7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy $ac_prog; ac_word=$2
7835 echo "$as_me:7835: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7837 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 if test -n "$cf_ldd_prog"; then
7841 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7843 ac_save_IFS=$IFS; IFS=$ac_path_separator
7845 for ac_dir in $ac_dummy; do
7847 test -z "$ac_dir" && ac_dir=.
7848 $as_executable_p "$ac_dir/$ac_word" || continue
7849 ac_cv_prog_cf_ldd_prog="$ac_prog"
7850 echo "$as_me:7850: found $ac_dir/$ac_word" >&5
7856 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7857 if test -n "$cf_ldd_prog"; then
7858 echo "$as_me:7858: result: $cf_ldd_prog" >&5
7859 echo "${ECHO_T}$cf_ldd_prog" >&6
7861 echo "$as_me:7861: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7865 test -n "$cf_ldd_prog" && break
7867 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7869 cf_rpath_list="/usr/lib /lib"
7870 if test "$cf_ldd_prog" != no
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line 7875 "configure"
7876 #include "confdefs.h"
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (eval echo "$as_me:7887: \"$ac_link\"") >&5
7888 (eval $ac_link) 2>&5
7890 echo "$as_me:7890: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:7893: \"$ac_try\"") >&5
7896 echo "$as_me:7896: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7899 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7901 echo "$as_me: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906 # If we passed the link-test, but get a "not found" on a given library,
7907 # this could be due to inept reconfiguration of gcc to make it only
7908 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7909 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7910 # /usr/local libraries.
7911 if test -n "$cf_rpath_oops"
7913 for cf_rpath_src in $cf_rpath_oops
7915 for cf_rpath_dir in \
7920 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7922 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7924 echo "${as_me:-configure}:7924: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7926 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7934 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7936 echo "${as_me:-configure}:7936: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7938 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7940 echo "${as_me:-configure}:7940: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7943 for cf_rpath_src in $LDFLAGS
7945 case $cf_rpath_src in
7948 # check if this refers to a directory which we will ignore
7950 if test -n "$cf_rpath_list"
7952 for cf_rpath_item in $cf_rpath_list
7954 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7962 if test "$cf_rpath_skip" = no
7964 # transform the option
7965 if test "$LD_RPATH_OPT" = "-R " ; then
7966 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7968 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7971 # if we have not already added this, add it now
7972 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7973 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7975 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7977 echo "${as_me:-configure}:7977: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7979 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7984 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7986 LDFLAGS=$cf_rpath_dst
7988 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7990 echo "${as_me:-configure}:7990: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7992 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7994 echo "${as_me:-configure}:7994: testing ...checking LIBS $LIBS ..." 1>&5
7997 for cf_rpath_src in $LIBS
7999 case $cf_rpath_src in
8002 # check if this refers to a directory which we will ignore
8004 if test -n "$cf_rpath_list"
8006 for cf_rpath_item in $cf_rpath_list
8008 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8016 if test "$cf_rpath_skip" = no
8018 # transform the option
8019 if test "$LD_RPATH_OPT" = "-R " ; then
8020 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8022 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8025 # if we have not already added this, add it now
8026 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8027 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8029 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8031 echo "${as_me:-configure}:8031: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8033 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8038 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8042 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8044 echo "${as_me:-configure}:8044: testing ...checked LIBS $LIBS ..." 1>&5
8046 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8048 echo "${as_me:-configure}:8048: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8051 echo "$as_me:8051: result: no" >&5
8052 echo "${ECHO_T}no" >&6
8059 ### Depending on the system, someone may use rpath to build ncurses but not
8060 # want users of the package to rely upon that feature. Give those people an
8061 # option to suppress that detail from EXTRA_LDFLAGS.
8062 EXTRA_PKG_LDFLAGS="$EXTRA_LDFLAGS"
8063 if test -n "$EXTRA_PKG_LDFLAGS"
8065 echo "$as_me:8065: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8066 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8068 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8069 if test "${enable_pkg_ldflags+set}" = set; then
8070 enableval="$enable_pkg_ldflags"
8071 test "$enableval" != no && enableval=yes
8072 if test "$enableval" != "yes" ; then
8073 disable_pkg_ldflags=yes
8075 disable_pkg_ldflags=no
8079 disable_pkg_ldflags=no
8082 echo "$as_me:8082: result: $disable_pkg_ldflags" >&5
8083 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8084 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8087 ###############################################################################
8089 ### use option --with-extra-suffix to append suffix to headers and libraries
8090 echo "$as_me:8090: checking if you wish to append extra suffix to header/library paths" >&5
8091 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8094 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8095 if test "${with_extra_suffix+set}" = set; then
8096 withval="$with_extra_suffix"
8101 EXTRA_SUFFIX=$cf_cv_abi_version
8104 EXTRA_SUFFIX=$withval
8109 echo "$as_me:8109: result: $EXTRA_SUFFIX" >&5
8110 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8112 ### use option --disable-overwrite to leave out the link to -lcurses
8113 echo "$as_me:8113: checking if you wish to install ncurses overwriting curses" >&5
8114 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8116 # Check whether --enable-overwrite or --disable-overwrite was given.
8117 if test "${enable_overwrite+set}" = set; then
8118 enableval="$enable_overwrite"
8119 with_overwrite=$enableval
8121 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8123 echo "$as_me:8123: result: $with_overwrite" >&5
8124 echo "${ECHO_T}$with_overwrite" >&6
8126 echo "$as_me:8126: checking if external terminfo-database is used" >&5
8127 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8129 # Check whether --enable-database or --disable-database was given.
8130 if test "${enable_database+set}" = set; then
8131 enableval="$enable_database"
8132 use_database=$enableval
8136 echo "$as_me:8136: result: $use_database" >&5
8137 echo "${ECHO_T}$use_database" >&6
8141 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8144 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8148 NCURSES_USE_DATABASE=0
8149 if test "$use_database" != no ; then
8150 NCURSES_USE_DATABASE=1
8152 echo "$as_me:8152: checking which terminfo source-file will be installed" >&5
8153 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8155 # Check whether --with-database or --without-database was given.
8156 if test "${with_database+set}" = set; then
8157 withval="$with_database"
8158 TERMINFO_SRC=$withval
8160 echo "$as_me:8160: result: $TERMINFO_SRC" >&5
8161 echo "${ECHO_T}$TERMINFO_SRC" >&6
8163 echo "$as_me:8163: checking whether to use hashed database instead of directory/tree" >&5
8164 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8166 # Check whether --with-hashed-db or --without-hashed-db was given.
8167 if test "${with_hashed_db+set}" = set; then
8168 withval="$with_hashed_db"
8173 echo "$as_me:8173: result: $with_hashed_db" >&5
8174 echo "${ECHO_T}$with_hashed_db" >&6
8179 echo "$as_me:8179: checking for list of fallback descriptions" >&5
8180 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8182 # Check whether --with-fallbacks or --without-fallbacks was given.
8183 if test "${with_fallbacks+set}" = set; then
8184 withval="$with_fallbacks"
8185 with_fallback=$withval
8189 echo "$as_me:8189: result: $with_fallback" >&5
8190 echo "${ECHO_T}$with_fallback" >&6
8192 case ".$with_fallback" in
8197 { echo "$as_me:8197: WARNING: expected a list of terminal descriptions" >&5
8198 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8201 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8205 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8206 # tree for generating the terminal descriptions that will be compiled into the
8207 # library. If your toolchain is old, it may not handle current terminal
8208 # databases. Use configure-options to point to the tools which will be used,
8209 # rather than the first ones found on the $PATH.
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}tic; ac_word=$2
8213 echo "$as_me:8213: checking for $ac_word" >&5
8214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8215 if test "${ac_cv_prog_TIC+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 if test -n "$TIC"; then
8219 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8221 ac_save_IFS=$IFS; IFS=$ac_path_separator
8223 for ac_dir in $ac_dummy; do
8225 test -z "$ac_dir" && ac_dir=.
8226 $as_executable_p "$ac_dir/$ac_word" || continue
8227 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8228 echo "$as_me:8228: found $ac_dir/$ac_word" >&5
8235 if test -n "$TIC"; then
8236 echo "$as_me:8236: result: $TIC" >&5
8237 echo "${ECHO_T}$TIC" >&6
8239 echo "$as_me:8239: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8244 if test -z "$ac_cv_prog_TIC"; then
8246 # Extract the first word of "tic", so it can be a program name with args.
8247 set dummy tic; ac_word=$2
8248 echo "$as_me:8248: checking for $ac_word" >&5
8249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8250 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 if test -n "$ac_ct_TIC"; then
8254 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8256 ac_save_IFS=$IFS; IFS=$ac_path_separator
8258 for ac_dir in $ac_dummy; do
8260 test -z "$ac_dir" && ac_dir=.
8261 $as_executable_p "$ac_dir/$ac_word" || continue
8262 ac_cv_prog_ac_ct_TIC="tic"
8263 echo "$as_me:8263: found $ac_dir/$ac_word" >&5
8269 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8270 if test -n "$ac_ct_TIC"; then
8271 echo "$as_me:8271: result: $ac_ct_TIC" >&5
8272 echo "${ECHO_T}$ac_ct_TIC" >&6
8274 echo "$as_me:8274: result: no" >&5
8275 echo "${ECHO_T}no" >&6
8280 TIC="$ac_cv_prog_TIC"
8283 if test -n "$ac_tool_prefix"; then
8284 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8285 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8286 echo "$as_me:8286: checking for $ac_word" >&5
8287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8288 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 if test -n "$INFOCMP"; then
8292 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8294 ac_save_IFS=$IFS; IFS=$ac_path_separator
8296 for ac_dir in $ac_dummy; do
8298 test -z "$ac_dir" && ac_dir=.
8299 $as_executable_p "$ac_dir/$ac_word" || continue
8300 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8301 echo "$as_me:8301: found $ac_dir/$ac_word" >&5
8307 INFOCMP=$ac_cv_prog_INFOCMP
8308 if test -n "$INFOCMP"; then
8309 echo "$as_me:8309: result: $INFOCMP" >&5
8310 echo "${ECHO_T}$INFOCMP" >&6
8312 echo "$as_me:8312: result: no" >&5
8313 echo "${ECHO_T}no" >&6
8317 if test -z "$ac_cv_prog_INFOCMP"; then
8318 ac_ct_INFOCMP=$INFOCMP
8319 # Extract the first word of "infocmp", so it can be a program name with args.
8320 set dummy infocmp; ac_word=$2
8321 echo "$as_me:8321: checking for $ac_word" >&5
8322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8323 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 if test -n "$ac_ct_INFOCMP"; then
8327 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8329 ac_save_IFS=$IFS; IFS=$ac_path_separator
8331 for ac_dir in $ac_dummy; do
8333 test -z "$ac_dir" && ac_dir=.
8334 $as_executable_p "$ac_dir/$ac_word" || continue
8335 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8336 echo "$as_me:8336: found $ac_dir/$ac_word" >&5
8342 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8343 if test -n "$ac_ct_INFOCMP"; then
8344 echo "$as_me:8344: result: $ac_ct_INFOCMP" >&5
8345 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8347 echo "$as_me:8347: result: no" >&5
8348 echo "${ECHO_T}no" >&6
8351 INFOCMP=$ac_ct_INFOCMP
8353 INFOCMP="$ac_cv_prog_INFOCMP"
8356 if test -n "$FALLBACK_LIST"
8359 # Check whether --with-tic-path or --without-tic-path was given.
8360 if test "${with_tic_path+set}" = set; then
8361 withval="$with_tic_path"
8362 echo "$as_me:8362: checking for tic program for fallbacks" >&5
8363 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8365 echo "$as_me:8365: result: $TIC" >&5
8366 echo "${ECHO_T}$TIC" >&6
8368 if test "x$prefix" != xNONE; then
8369 cf_path_syntax="$prefix"
8371 cf_path_syntax="$ac_default_prefix"
8379 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8381 (.\${*prefix}*|.\${*dir}*)
8385 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8390 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8393 { { echo "$as_me:8393: error: expected a pathname, not \"$TIC\"" >&5
8394 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8395 { (exit 1); exit 1; }; }
8401 test -z "$TIC" && TIC=tic
8402 for ac_prog in $TIC tic
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 echo "$as_me:8406: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8408 if test "${ac_cv_path_TIC+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8416 ac_save_IFS=$IFS; IFS=$ac_path_separator
8417 ac_dummy="$PATH:/usr/local/ncurses/bin"
8418 for ac_dir in $ac_dummy; do
8420 test -z "$ac_dir" && ac_dir=.
8421 if $as_executable_p "$ac_dir/$ac_word"; then
8422 ac_cv_path_TIC="$ac_dir/$ac_word"
8423 echo "$as_me:8423: found $ac_dir/$ac_word" >&5
8433 if test -n "$TIC"; then
8434 echo "$as_me:8434: result: $TIC" >&5
8435 echo "${ECHO_T}$TIC" >&6
8437 echo "$as_me:8437: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8441 test -n "$TIC" && break
8443 test -n "$TIC" || TIC="$TIC"
8447 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8448 for cf_temp in $ac_cv_path_TIC
8450 if test -z "$cf_path_prog" ; then
8451 if test "$with_full_paths" = yes ; then
8453 if test "x$prefix" != xNONE; then
8454 cf_path_syntax="$prefix"
8456 cf_path_syntax="$ac_default_prefix"
8464 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8466 (.\${*prefix}*|.\${*dir}*)
8467 eval cf_temp="$cf_temp"
8470 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8475 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8482 cf_path_prog="$cf_temp"
8484 cf_path_prog="`basename $cf_temp`"
8486 elif test -z "$cf_path_args" ; then
8487 cf_path_args="$cf_temp"
8489 cf_path_args="$cf_path_args $cf_temp"
8494 if test -n "$cf_path_prog" ; then
8496 echo "${as_me:-configure}:8496: testing defining path for ${cf_path_prog} ..." 1>&5
8498 cat >>confdefs.h <<EOF
8499 #define TIC_PATH "$cf_path_prog"
8502 test -n "$cf_path_args" &&
8503 cat >>confdefs.h <<EOF
8504 #define TIC_ARGS "$cf_path_args"
8511 { echo "$as_me:8511: WARNING: no tic program found for fallbacks" >&5
8512 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8517 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8518 if test "${with_infocmp_path+set}" = set; then
8519 withval="$with_infocmp_path"
8520 echo "$as_me:8520: checking for infocmp program for fallbacks" >&5
8521 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8523 echo "$as_me:8523: result: $INFOCMP" >&5
8524 echo "${ECHO_T}$INFOCMP" >&6
8526 if test "x$prefix" != xNONE; then
8527 cf_path_syntax="$prefix"
8529 cf_path_syntax="$ac_default_prefix"
8537 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8539 (.\${*prefix}*|.\${*dir}*)
8540 eval INFOCMP="$INFOCMP"
8543 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8548 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8551 { { echo "$as_me:8551: error: expected a pathname, not \"$INFOCMP\"" >&5
8552 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8553 { (exit 1); exit 1; }; }
8559 test -z "$INFOCMP" && INFOCMP=infocmp
8560 for ac_prog in $INFOCMP infocmp
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563 set dummy $ac_prog; ac_word=$2
8564 echo "$as_me:8564: checking for $ac_word" >&5
8565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8566 if test "${ac_cv_path_INFOCMP+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8574 ac_save_IFS=$IFS; IFS=$ac_path_separator
8575 ac_dummy="$PATH:/usr/local/ncurses/bin"
8576 for ac_dir in $ac_dummy; do
8578 test -z "$ac_dir" && ac_dir=.
8579 if $as_executable_p "$ac_dir/$ac_word"; then
8580 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8581 echo "$as_me:8581: found $ac_dir/$ac_word" >&5
8589 INFOCMP=$ac_cv_path_INFOCMP
8591 if test -n "$INFOCMP"; then
8592 echo "$as_me:8592: result: $INFOCMP" >&5
8593 echo "${ECHO_T}$INFOCMP" >&6
8595 echo "$as_me:8595: result: no" >&5
8596 echo "${ECHO_T}no" >&6
8599 test -n "$INFOCMP" && break
8601 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8605 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8606 for cf_temp in $ac_cv_path_INFOCMP
8608 if test -z "$cf_path_prog" ; then
8609 if test "$with_full_paths" = yes ; then
8611 if test "x$prefix" != xNONE; then
8612 cf_path_syntax="$prefix"
8614 cf_path_syntax="$ac_default_prefix"
8622 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8624 (.\${*prefix}*|.\${*dir}*)
8625 eval cf_temp="$cf_temp"
8628 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8633 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8640 cf_path_prog="$cf_temp"
8642 cf_path_prog="`basename $cf_temp`"
8644 elif test -z "$cf_path_args" ; then
8645 cf_path_args="$cf_temp"
8647 cf_path_args="$cf_path_args $cf_temp"
8652 if test -n "$cf_path_prog" ; then
8654 echo "${as_me:-configure}:8654: testing defining path for ${cf_path_prog} ..." 1>&5
8656 cat >>confdefs.h <<EOF
8657 #define INFOCMP_PATH "$cf_path_prog"
8660 test -n "$cf_path_args" &&
8661 cat >>confdefs.h <<EOF
8662 #define INFOCMP_ARGS "$cf_path_args"
8667 if test -z "$INFOCMP"
8669 { echo "$as_me:8669: WARNING: no infocmp program found for fallbacks" >&5
8670 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8675 test -z "$TIC" && FALLBACK_LIST=
8676 test -z "$INFOCMP" && FALLBACK_LIST=
8677 if test -z "$FALLBACK_LIST"
8679 { echo "$as_me:8679: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8680 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8685 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8687 echo "$as_me:8687: checking if you want modern xterm or antique" >&5
8688 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8690 # Check whether --with-xterm-new or --without-xterm-new was given.
8691 if test "${with_xterm_new+set}" = set; then
8692 withval="$with_xterm_new"
8693 with_xterm_new=$withval
8697 case $with_xterm_new in
8698 (no) with_xterm_new=xterm-old;;
8699 (*) with_xterm_new=xterm-new;;
8701 echo "$as_me:8701: result: $with_xterm_new" >&5
8702 echo "${ECHO_T}$with_xterm_new" >&6
8703 WHICH_XTERM=$with_xterm_new
8705 echo "$as_me:8705: checking if xterm backspace sends BS or DEL" >&5
8706 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8708 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8709 if test "${with_xterm_kbs+set}" = set; then
8710 withval="$with_xterm_kbs"
8711 with_xterm_kbs=$withval
8715 case x$with_xterm_kbs in
8716 (xyes|xno|xBS|xbs|x8)
8723 with_xterm_kbs=$withval
8726 echo "$as_me:8726: result: $with_xterm_kbs" >&5
8727 echo "${ECHO_T}$with_xterm_kbs" >&6
8728 XTERM_KBS=$with_xterm_kbs
8731 if test "$use_database" = no ; then
8732 TERMINFO="${datadir}/terminfo"
8736 echo "$as_me:8736: checking for list of terminfo directories" >&5
8737 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8739 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8740 if test "${with_terminfo_dirs+set}" = set; then
8741 withval="$with_terminfo_dirs"
8744 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8746 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8748 for cf_src_path in $withval
8751 if test "x$prefix" != xNONE; then
8752 cf_path_syntax="$prefix"
8754 cf_path_syntax="$ac_default_prefix"
8757 case ".$cf_src_path" in
8762 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8764 (.\${*prefix}*|.\${*dir}*)
8765 eval cf_src_path="$cf_src_path"
8766 case ".$cf_src_path" in
8768 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8773 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8776 { { echo "$as_me:8776: error: expected a pathname, not \"$cf_src_path\"" >&5
8777 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8778 { (exit 1); exit 1; }; }
8782 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8783 cf_dst_path="${cf_dst_path}${cf_src_path}"
8787 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8788 # so we have to check/work around. We do prefer the result of "eval"...
8789 eval cf_dst_eval="$cf_dst_path"
8790 case "x$cf_dst_eval" in
8792 TERMINFO_DIRS=$cf_dst_path
8795 TERMINFO_DIRS="$cf_dst_eval"
8799 echo "$as_me:8799: result: $TERMINFO_DIRS" >&5
8800 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8801 test -n "$TERMINFO_DIRS" &&
8802 cat >>confdefs.h <<EOF
8803 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8806 case "x$TERMINFO" in
8808 { echo "$as_me:8808: WARNING: ignoring non-directory/file TERMINFO value" >&5
8809 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8814 echo "$as_me:8814: checking for default terminfo directory" >&5
8815 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8817 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8818 if test "${with_default_terminfo_dir+set}" = set; then
8819 withval="$with_default_terminfo_dir"
8822 withval="${TERMINFO:-${datadir}/terminfo}"
8823 fi; if test -n "${datadir}/terminfo" ; then
8825 if test "x$prefix" != xNONE; then
8826 cf_path_syntax="$prefix"
8828 cf_path_syntax="$ac_default_prefix"
8836 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8838 (.\${*prefix}*|.\${*dir}*)
8839 eval withval="$withval"
8842 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8847 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8850 { { echo "$as_me:8850: error: expected a pathname, not \"$withval\"" >&5
8851 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8852 { (exit 1); exit 1; }; }
8857 eval TERMINFO="$withval"
8859 echo "$as_me:8859: result: $TERMINFO" >&5
8860 echo "${ECHO_T}$TERMINFO" >&6
8862 cat >>confdefs.h <<EOF
8863 #define TERMINFO "$TERMINFO"
8868 ### use option --disable-big-core to make tic run on small machines
8869 ### We need 4Mb, check if we can allocate 50% more than that.
8870 echo "$as_me:8870: checking if big-core option selected" >&5
8871 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8873 # Check whether --enable-big-core or --disable-big-core was given.
8874 if test "${enable_big_core+set}" = set; then
8875 enableval="$enable_big_core"
8876 with_big_core=$enableval
8878 if test "$cross_compiling" = yes; then
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line 8882 "configure"
8883 #include "confdefs.h"
8888 unsigned long n = 6000000L;
8889 char *s = malloc(n);
8892 ${cf_cv_main_return:-return}(s == 0);
8895 rm -f conftest$ac_exeext
8896 if { (eval echo "$as_me:8896: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8899 echo "$as_me:8899: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8901 { (eval echo "$as_me:8901: \"$ac_try\"") >&5
8904 echo "$as_me:8904: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8908 echo "$as_me: program exited with status $ac_status" >&5
8909 echo "$as_me: failed program was:" >&5
8910 cat conftest.$ac_ext >&5
8913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8916 echo "$as_me:8916: result: $with_big_core" >&5
8917 echo "${ECHO_T}$with_big_core" >&6
8918 test "x$with_big_core" = "xyes" &&
8919 cat >>confdefs.h <<\EOF
8920 #define HAVE_BIG_CORE 1
8923 ### ISO C only guarantees 512-char strings, we have tables which load faster
8924 ### when constructed using "big" strings. More than the C compiler, the awk
8925 ### program is a limit on most vendor UNIX systems. Check that we can build.
8926 echo "$as_me:8926: checking if big-strings option selected" >&5
8927 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8929 # Check whether --enable-big-strings or --disable-big-strings was given.
8930 if test "${enable_big_strings+set}" = set; then
8931 enableval="$enable_big_strings"
8932 with_big_strings=$enableval
8937 eval with_big_strings=no
8940 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8941 | $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
8942 eval with_big_strings=yes
8944 eval with_big_strings=no
8950 echo "$as_me:8950: result: $with_big_strings" >&5
8951 echo "${ECHO_T}$with_big_strings" >&6
8954 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8956 ### use option --enable-termcap to compile in the termcap fallback support
8957 echo "$as_me:8957: checking if you want termcap-fallback support" >&5
8958 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8960 # Check whether --enable-termcap or --disable-termcap was given.
8961 if test "${enable_termcap+set}" = set; then
8962 enableval="$enable_termcap"
8963 with_termcap=$enableval
8967 echo "$as_me:8967: result: $with_termcap" >&5
8968 echo "${ECHO_T}$with_termcap" >&6
8970 NCURSES_USE_TERMCAP=0
8971 if test "x$with_termcap" != "xyes" ; then
8972 if test "$use_database" = no ; then
8973 if test -z "$with_fallback" ; then
8974 { { echo "$as_me:8974: error: You have disabled the database w/o specifying fallbacks" >&5
8975 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8976 { (exit 1); exit 1; }; }
8980 cat >>confdefs.h <<\EOF
8981 #define PURE_TERMINFO 1
8986 if test "$with_ticlib" != no ; then
8987 { { echo "$as_me:8987: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8988 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8989 { (exit 1); exit 1; }; }
8992 NCURSES_USE_TERMCAP=1
8993 echo "$as_me:8993: checking for list of termcap files" >&5
8994 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8996 # Check whether --with-termpath or --without-termpath was given.
8997 if test "${with_termpath+set}" = set; then
8998 withval="$with_termpath"
9001 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9003 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9005 for cf_src_path in $withval
9008 if test "x$prefix" != xNONE; then
9009 cf_path_syntax="$prefix"
9011 cf_path_syntax="$ac_default_prefix"
9014 case ".$cf_src_path" in
9019 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9021 (.\${*prefix}*|.\${*dir}*)
9022 eval cf_src_path="$cf_src_path"
9023 case ".$cf_src_path" in
9025 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
9030 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
9033 { { echo "$as_me:9033: error: expected a pathname, not \"$cf_src_path\"" >&5
9034 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9035 { (exit 1); exit 1; }; }
9039 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9040 cf_dst_path="${cf_dst_path}${cf_src_path}"
9044 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9045 # so we have to check/work around. We do prefer the result of "eval"...
9046 eval cf_dst_eval="$cf_dst_path"
9047 case "x$cf_dst_eval" in
9049 TERMPATH=$cf_dst_path
9052 TERMPATH="$cf_dst_eval"
9056 echo "$as_me:9056: result: $TERMPATH" >&5
9057 echo "${ECHO_T}$TERMPATH" >&6
9058 test -n "$TERMPATH" &&
9059 cat >>confdefs.h <<EOF
9060 #define TERMPATH "$TERMPATH"
9063 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9064 echo "$as_me:9064: checking if fast termcap-loader is needed" >&5
9065 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9067 # Check whether --enable-getcap or --disable-getcap was given.
9068 if test "${enable_getcap+set}" = set; then
9069 enableval="$enable_getcap"
9070 with_getcap=$enableval
9074 echo "$as_me:9074: result: $with_getcap" >&5
9075 echo "${ECHO_T}$with_getcap" >&6
9076 test "x$with_getcap" = "xyes" &&
9077 cat >>confdefs.h <<\EOF
9078 #define USE_GETCAP 1
9081 echo "$as_me:9081: checking if translated termcaps will be cached in ~/.terminfo" >&5
9082 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9084 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9085 if test "${enable_getcap_cache+set}" = set; then
9086 enableval="$enable_getcap_cache"
9087 with_getcap_cache=$enableval
9089 with_getcap_cache=no
9091 echo "$as_me:9091: result: $with_getcap_cache" >&5
9092 echo "${ECHO_T}$with_getcap_cache" >&6
9093 test "x$with_getcap_cache" = "xyes" &&
9094 cat >>confdefs.h <<\EOF
9095 #define USE_GETCAP_CACHE 1
9100 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9101 echo "$as_me:9101: checking if ~/.terminfo is wanted" >&5
9102 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9104 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9105 if test "${enable_home_terminfo+set}" = set; then
9106 enableval="$enable_home_terminfo"
9107 with_home_terminfo=$enableval
9109 with_home_terminfo=yes
9111 echo "$as_me:9111: result: $with_home_terminfo" >&5
9112 echo "${ECHO_T}$with_home_terminfo" >&6
9113 test "x$with_home_terminfo" = "xyes" &&
9114 cat >>confdefs.h <<\EOF
9115 #define USE_HOME_TERMINFO 1
9118 echo "$as_me:9118: checking if you want to use restricted environment when running as root" >&5
9119 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
9121 # Check whether --enable-root-environ or --disable-root-environ was given.
9122 if test "${enable_root_environ+set}" = set; then
9123 enableval="$enable_root_environ"
9124 with_root_environ=$enableval
9126 with_root_environ=yes
9128 echo "$as_me:9128: result: $with_root_environ" >&5
9129 echo "${ECHO_T}$with_root_environ" >&6
9130 test "x$with_root_environ" = xyes &&
9131 cat >>confdefs.h <<\EOF
9132 #define USE_ROOT_ENVIRON 1
9135 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9136 ### to reduce storage requirements for the terminfo database.
9142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9143 echo "$as_me:9143: checking for $ac_header" >&5
9144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 cat >conftest.$ac_ext <<_ACEOF
9149 #line 9149 "configure"
9150 #include "confdefs.h"
9151 #include <$ac_header>
9153 if { (eval echo "$as_me:9153: \"$ac_cpp conftest.$ac_ext\"") >&5
9154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9156 egrep -v '^ *\+' conftest.er1 >conftest.err
9158 cat conftest.err >&5
9159 echo "$as_me:9159: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null; then
9161 if test -s conftest.err; then
9162 ac_cpp_err=$ac_c_preproc_warn_flag
9169 if test -z "$ac_cpp_err"; then
9170 eval "$as_ac_Header=yes"
9172 echo "$as_me: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9174 eval "$as_ac_Header=no"
9176 rm -f conftest.err conftest.$ac_ext
9178 echo "$as_me:9178: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h <<EOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9193 echo "$as_me:9193: checking for $ac_func" >&5
9194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_var+set}\" = set"; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9199 #line 9199 "configure"
9200 #include "confdefs.h"
9201 #define $ac_func autoconf_temporary
9202 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9211 char $ac_func (void);
9217 /* The GNU C library defines stubs for functions which it implements
9218 to always fail with ENOSYS. Some functions are actually named
9219 something starting with __ and the normal name is an alias. */
9220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9221 #error found stub for $ac_func
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (eval echo "$as_me:9230: \"$ac_link\"") >&5
9231 (eval $ac_link) 2>&5
9233 echo "$as_me:9233: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -s conftest$ac_exeext'
9236 { (eval echo "$as_me:9236: \"$ac_try\"") >&5
9239 echo "$as_me:9239: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 eval "$as_ac_var=yes"
9243 echo "$as_me: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 eval "$as_ac_var=no"
9247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9249 echo "$as_me:9249: result: `eval echo '${'$as_ac_var'}'`" >&5
9250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9251 if test `eval echo '${'$as_ac_var'}'` = yes; then
9252 cat >>confdefs.h <<EOF
9253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9259 if test "$cross_compiling" = yes ; then
9265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9266 echo "$as_me:9266: checking for $ac_func" >&5
9267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9268 if eval "test \"\${$as_ac_var+set}\" = set"; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line 9272 "configure"
9273 #include "confdefs.h"
9274 #define $ac_func autoconf_temporary
9275 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9282 /* We use char because int might match the return type of a gcc2
9283 builtin and then its argument prototype would still apply. */
9284 char $ac_func (void);
9290 /* The GNU C library defines stubs for functions which it implements
9291 to always fail with ENOSYS. Some functions are actually named
9292 something starting with __ and the normal name is an alias. */
9293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9294 #error found stub for $ac_func
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (eval echo "$as_me:9303: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>&5
9306 echo "$as_me:9306: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:9309: \"$ac_try\"") >&5
9312 echo "$as_me:9312: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 eval "$as_ac_var=yes"
9316 echo "$as_me: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9318 eval "$as_ac_var=no"
9320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9322 echo "$as_me:9322: result: `eval echo '${'$as_ac_var'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9324 if test `eval echo '${'$as_ac_var'}'` = yes; then
9325 cat >>confdefs.h <<EOF
9326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9333 echo "$as_me:9333: checking if link/symlink functions work" >&5
9334 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9335 if test "${cf_cv_link_funcs+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 for cf_func in link symlink ; do
9341 if test "$cross_compiling" = yes; then
9343 eval 'ac_cv_func_'$cf_func'=error'
9345 cat >conftest.$ac_ext <<_ACEOF
9346 #line 9346 "configure"
9347 #include "confdefs.h"
9349 #include <sys/types.h>
9350 #include <sys/stat.h>
9351 #ifdef HAVE_UNISTD_H
9357 char *src = "config.log";
9358 char *dst = "conftest.chk";
9363 fail = ($cf_func("config.log", "conftest.chk") < 0)
9364 || (stat(dst, &dst_sb) < 0)
9365 || (dst_sb.st_mtime != src_sb.st_mtime);
9371 ${cf_cv_main_return:-return} (fail);
9375 rm -f conftest$ac_exeext
9376 if { (eval echo "$as_me:9376: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>&5
9379 echo "$as_me:9379: \$? = $ac_status" >&5
9380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9381 { (eval echo "$as_me:9381: \"$ac_try\"") >&5
9384 echo "$as_me:9384: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9387 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9388 eval 'ac_cv_func_'$cf_func'=yes'
9390 echo "$as_me: program exited with status $ac_status" >&5
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 eval 'ac_cv_func_'$cf_func'=no'
9396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9399 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9402 echo "$as_me:9402: result: $cf_cv_link_funcs" >&5
9403 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9404 test "$ac_cv_func_link" = yes &&
9405 cat >>confdefs.h <<\EOF
9409 test "$ac_cv_func_symlink" = yes &&
9410 cat >>confdefs.h <<\EOF
9411 #define HAVE_SYMLINK 1
9419 # soft links (symbolic links) are useful for some systems where hard links do
9420 # not work, or to make it simpler to copy terminfo trees around.
9421 if test "x$ac_cv_func_symlink" = xyes ; then
9422 echo "$as_me:9422: checking if tic should use symbolic links" >&5
9423 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9425 # Check whether --enable-symlinks or --disable-symlinks was given.
9426 if test "${enable_symlinks+set}" = set; then
9427 enableval="$enable_symlinks"
9428 with_symlinks=$enableval
9432 echo "$as_me:9432: result: $with_symlinks" >&5
9433 echo "${ECHO_T}$with_symlinks" >&6
9436 # If we have hard links and did not choose to use soft links instead, there is
9437 # no reason to make this choice optional - use the hard links.
9438 if test "$with_symlinks" = no ; then
9439 echo "$as_me:9439: checking if tic should use hard links" >&5
9440 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9441 if test "x$ac_cv_func_link" = xyes ; then
9446 echo "$as_me:9446: result: $with_links" >&5
9447 echo "${ECHO_T}$with_links" >&6
9450 test "x$with_links" = xyes &&
9451 cat >>confdefs.h <<\EOF
9455 test "x$with_symlinks" = xyes &&
9456 cat >>confdefs.h <<\EOF
9457 #define USE_SYMLINKS 1
9460 ### use option --enable-broken-linker to force on use of broken-linker support
9462 echo "$as_me:9462: checking if you want broken-linker support code" >&5
9463 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9465 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9466 if test "${enable_broken_linker+set}" = set; then
9467 enableval="$enable_broken_linker"
9468 with_broken_linker=$enableval
9470 with_broken_linker=no
9472 echo "$as_me:9472: result: $with_broken_linker" >&5
9473 echo "${ECHO_T}$with_broken_linker" >&6
9475 : ${BROKEN_LINKER:=0}
9476 if test "x$with_broken_linker" = xyes ; then
9478 cat >>confdefs.h <<\EOF
9479 #define BROKEN_LINKER 1
9485 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9486 echo "$as_me:9486: checking if tputs should process BSD-style prefix padding" >&5
9487 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9489 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9490 if test "${enable_bsdpad+set}" = set; then
9491 enableval="$enable_bsdpad"
9492 with_bsdpad=$enableval
9496 echo "$as_me:9496: result: $with_bsdpad" >&5
9497 echo "${ECHO_T}$with_bsdpad" >&6
9498 test "x$with_bsdpad" = xyes &&
9499 cat >>confdefs.h <<\EOF
9503 ### use option --enable-widec to turn on use of wide-character support
9512 # Check to define _XOPEN_SOURCE "automatically"
9513 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9515 echo "$as_me:9515: checking if the POSIX test-macros are already defined" >&5
9516 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9517 if test "${cf_cv_posix_visible+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line 9522 "configure"
9523 #include "confdefs.h"
9529 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9530 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9531 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9532 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9533 #error conflicting symbols found
9540 rm -f conftest.$ac_objext
9541 if { (eval echo "$as_me:9541: \"$ac_compile\"") >&5
9542 (eval $ac_compile) 2>&5
9544 echo "$as_me:9544: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:9547: \"$ac_try\"") >&5
9550 echo "$as_me:9550: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 cf_cv_posix_visible=no
9554 echo "$as_me: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 cf_cv_posix_visible=yes
9558 rm -f conftest.$ac_objext conftest.$ac_ext
9561 echo "$as_me:9561: result: $cf_cv_posix_visible" >&5
9562 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9564 if test "$cf_cv_posix_visible" = no; then
9567 cf_POSIX_C_SOURCE=199506L
9572 cf_xopen_source="-D_ALL_SOURCE"
9578 cf_xopen_source="-D_APPLE_C_SOURCE"
9581 cf_xopen_source="-D_DARWIN_C_SOURCE"
9584 (freebsd*|dragonfly*|midnightbsd*)
9585 # 5.x headers associate
9586 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9587 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9588 cf_POSIX_C_SOURCE=200112L
9590 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9593 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9596 cf_xopen_source="-D_HPUX_SOURCE"
9599 cf_xopen_source="-D_SGI_SOURCE"
9602 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9604 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9606 echo "$as_me:9606: checking if this is the GNU C library" >&5
9607 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9608 if test "${cf_cv_gnu_library+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line 9613 "configure"
9614 #include "confdefs.h"
9615 #include <sys/types.h>
9620 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9622 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9625 # error not GNU C library
9631 rm -f conftest.$ac_objext
9632 if { (eval echo "$as_me:9632: \"$ac_compile\"") >&5
9633 (eval $ac_compile) 2>&5
9635 echo "$as_me:9635: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:9638: \"$ac_try\"") >&5
9641 echo "$as_me:9641: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 cf_cv_gnu_library=yes
9645 echo "$as_me: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9647 cf_cv_gnu_library=no
9649 rm -f conftest.$ac_objext conftest.$ac_ext
9652 echo "$as_me:9652: result: $cf_cv_gnu_library" >&5
9653 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9655 if test x$cf_cv_gnu_library = xyes; then
9657 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9658 # was changed to help a little. newlib incorporated the change about 4
9660 echo "$as_me:9660: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9661 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9662 if test "${cf_cv_gnu_library_219+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9669 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9671 cat >conftest.$ac_ext <<_ACEOF
9672 #line 9672 "configure"
9673 #include "confdefs.h"
9674 #include <sys/types.h>
9679 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9681 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9684 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:9691: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>&5
9694 echo "$as_me:9694: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -s conftest.$ac_objext'
9697 { (eval echo "$as_me:9697: \"$ac_try\"") >&5
9700 echo "$as_me:9700: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 cf_cv_gnu_library_219=yes
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 cf_cv_gnu_library_219=no
9708 rm -f conftest.$ac_objext conftest.$ac_ext
9712 echo "$as_me:9712: result: $cf_cv_gnu_library_219" >&5
9713 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9715 if test "x$cf_cv_gnu_library_219" = xyes; then
9717 echo "$as_me:9717: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9718 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9719 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cf_new_extra_cppflags=
9728 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9730 case $cf_fix_cppflags in
9732 case $cf_add_cflags in
9733 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9734 case $cf_add_cflags in
9736 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9738 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9739 && test -z "${cf_tst_cflags}" \
9740 && cf_fix_cppflags=yes
9742 if test $cf_fix_cppflags = yes ; then
9744 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9745 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9748 elif test "${cf_tst_cflags}" = "\"'" ; then
9750 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9751 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9761 case $cf_add_cflags in
9763 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9765 CPPFLAGS=`echo "$CPPFLAGS" | \
9766 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9767 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9772 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9773 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9780 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9781 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9788 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9789 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9791 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9793 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9794 && test -z "${cf_tst_cflags}" \
9795 && cf_fix_cppflags=no
9800 if test -n "$cf_new_cflags" ; then
9802 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9803 CFLAGS="${CFLAGS}$cf_new_cflags"
9807 if test -n "$cf_new_cppflags" ; then
9809 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9810 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9814 if test -n "$cf_new_extra_cppflags" ; then
9816 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9817 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line 9822 "configure"
9823 #include "confdefs.h"
9826 #include <sys/types.h>
9832 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9835 # error GNU C library is too old
9841 rm -f conftest.$ac_objext
9842 if { (eval echo "$as_me:9842: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:9848: \"$ac_try\"") >&5
9851 echo "$as_me:9851: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 cf_cv_gnu_dftsrc_219=yes
9855 echo "$as_me: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 cf_cv_gnu_dftsrc_219=no
9859 rm -f conftest.$ac_objext conftest.$ac_ext
9862 echo "$as_me:9862: result: $cf_cv_gnu_dftsrc_219" >&5
9863 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9864 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9866 cf_cv_gnu_dftsrc_219=maybe
9869 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9871 echo "$as_me:9871: checking if we must define _GNU_SOURCE" >&5
9872 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9873 if test "${cf_cv_gnu_source+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9878 #line 9878 "configure"
9879 #include "confdefs.h"
9880 #include <sys/types.h>
9885 #ifndef _XOPEN_SOURCE
9886 #error expected _XOPEN_SOURCE to be defined
9892 rm -f conftest.$ac_objext
9893 if { (eval echo "$as_me:9893: \"$ac_compile\"") >&5
9894 (eval $ac_compile) 2>&5
9896 echo "$as_me:9896: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:9899: \"$ac_try\"") >&5
9902 echo "$as_me:9902: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9906 echo "$as_me: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9913 cf_new_extra_cppflags=
9915 for cf_add_cflags in -D_GNU_SOURCE
9917 case $cf_fix_cppflags in
9919 case $cf_add_cflags in
9920 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9921 case $cf_add_cflags in
9923 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9925 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9926 && test -z "${cf_tst_cflags}" \
9927 && cf_fix_cppflags=yes
9929 if test $cf_fix_cppflags = yes ; then
9931 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9932 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9935 elif test "${cf_tst_cflags}" = "\"'" ; then
9937 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9938 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9948 case $cf_add_cflags in
9950 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9952 CPPFLAGS=`echo "$CPPFLAGS" | \
9953 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9954 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9959 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9960 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9967 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9968 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9978 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9980 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9981 && test -z "${cf_tst_cflags}" \
9982 && cf_fix_cppflags=no
9987 if test -n "$cf_new_cflags" ; then
9989 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9990 CFLAGS="${CFLAGS}$cf_new_cflags"
9994 if test -n "$cf_new_cppflags" ; then
9996 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9997 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10001 if test -n "$cf_new_extra_cppflags" ; then
10003 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10004 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10008 cat >conftest.$ac_ext <<_ACEOF
10009 #line 10009 "configure"
10010 #include "confdefs.h"
10011 #include <sys/types.h>
10016 #ifdef _XOPEN_SOURCE
10017 #error expected _XOPEN_SOURCE to be undefined
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:10024: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>&5
10027 echo "$as_me:10027: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -s conftest.$ac_objext'
10030 { (eval echo "$as_me:10030: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 cf_cv_gnu_source=no
10037 echo "$as_me: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10039 cf_cv_gnu_source=yes
10041 rm -f conftest.$ac_objext conftest.$ac_ext
10042 CPPFLAGS="$cf_save"
10045 rm -f conftest.$ac_objext conftest.$ac_ext
10048 echo "$as_me:10048: result: $cf_cv_gnu_source" >&5
10049 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10051 if test "$cf_cv_gnu_source" = yes
10053 echo "$as_me:10053: checking if we should also define _DEFAULT_SOURCE" >&5
10054 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10055 if test "${cf_cv_default_source+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10060 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 #line 10063 "configure"
10064 #include "confdefs.h"
10065 #include <sys/types.h>
10070 #ifdef _DEFAULT_SOURCE
10071 #error expected _DEFAULT_SOURCE to be undefined
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:10078: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>&5
10081 echo "$as_me:10081: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:10084: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:10087: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 cf_cv_default_source=no
10091 echo "$as_me: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 cf_cv_default_source=yes
10095 rm -f conftest.$ac_objext conftest.$ac_ext
10098 echo "$as_me:10098: result: $cf_cv_default_source" >&5
10099 echo "${ECHO_T}$cf_cv_default_source" >&6
10100 if test "$cf_cv_default_source" = yes
10103 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10104 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10114 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10117 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10120 if test "$cf_cv_posix_visible" = no; then
10122 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10124 cf_save_CFLAGS="$CFLAGS"
10125 cf_save_CPPFLAGS="$CPPFLAGS"
10127 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10128 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10129 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10131 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10132 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10133 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10135 echo "$as_me:10135: checking if we should define _POSIX_C_SOURCE" >&5
10136 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10137 if test "${cf_cv_posix_c_source+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 echo "${as_me:-configure}:10141: testing if the symbol is already defined go no further ..." 1>&5
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line 10144 "configure"
10145 #include "confdefs.h"
10146 #include <sys/types.h>
10151 #ifndef _POSIX_C_SOURCE
10158 rm -f conftest.$ac_objext
10159 if { (eval echo "$as_me:10159: \"$ac_compile\"") >&5
10160 (eval $ac_compile) 2>&5
10162 echo "$as_me:10162: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -s conftest.$ac_objext'
10165 { (eval echo "$as_me:10165: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:10168: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 cf_cv_posix_c_source=no
10172 echo "$as_me: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 cf_want_posix_source=no
10175 case .$cf_POSIX_C_SOURCE in
10177 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10180 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10181 cf_want_posix_source=yes
10184 cf_want_posix_source=yes
10187 if test "$cf_want_posix_source" = yes ; then
10188 cat >conftest.$ac_ext <<_ACEOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10191 #include <sys/types.h>
10196 #ifdef _POSIX_SOURCE
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:10204: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>&5
10207 echo "$as_me:10207: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:10210: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:10213: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10219 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10224 echo "${as_me:-configure}:10224: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10226 CFLAGS="$cf_trim_CFLAGS"
10227 CPPFLAGS="$cf_trim_CPPFLAGS"
10229 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10230 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10232 echo "${as_me:-configure}:10232: testing if the second compile does not leave our definition intact error ..." 1>&5
10234 cat >conftest.$ac_ext <<_ACEOF
10235 #line 10235 "configure"
10236 #include "confdefs.h"
10237 #include <sys/types.h>
10242 #ifndef _POSIX_C_SOURCE
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:10250: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:10253: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:10256: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:10259: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10263 echo "$as_me: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 cf_cv_posix_c_source=no
10267 rm -f conftest.$ac_objext conftest.$ac_ext
10268 CFLAGS="$cf_save_CFLAGS"
10269 CPPFLAGS="$cf_save_CPPFLAGS"
10272 rm -f conftest.$ac_objext conftest.$ac_ext
10275 echo "$as_me:10275: result: $cf_cv_posix_c_source" >&5
10276 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10278 if test "$cf_cv_posix_c_source" != no ; then
10279 CFLAGS="$cf_trim_CFLAGS"
10280 CPPFLAGS="$cf_trim_CPPFLAGS"
10285 cf_new_extra_cppflags=
10287 for cf_add_cflags in $cf_cv_posix_c_source
10289 case $cf_fix_cppflags in
10291 case $cf_add_cflags in
10292 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10293 case $cf_add_cflags in
10295 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10297 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10298 && test -z "${cf_tst_cflags}" \
10299 && cf_fix_cppflags=yes
10301 if test $cf_fix_cppflags = yes ; then
10303 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10304 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10307 elif test "${cf_tst_cflags}" = "\"'" ; then
10309 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10310 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10316 case "$CPPFLAGS" in
10320 case $cf_add_cflags in
10322 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10324 CPPFLAGS=`echo "$CPPFLAGS" | \
10325 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10326 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10331 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10332 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10339 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10340 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10347 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10348 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10353 && test -z "${cf_tst_cflags}" \
10354 && cf_fix_cppflags=no
10359 if test -n "$cf_new_cflags" ; then
10361 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10362 CFLAGS="${CFLAGS}$cf_new_cflags"
10366 if test -n "$cf_new_cppflags" ; then
10368 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10369 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10373 if test -n "$cf_new_extra_cppflags" ; then
10375 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10376 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10382 fi # cf_cv_posix_visible
10386 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10389 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10390 cf_xopen_source="-D_BSD_SOURCE"
10391 cf_XOPEN_SOURCE=600
10394 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10397 cf_xopen_source="-D_OSF_SOURCE"
10400 cf_xopen_source="-D_QNX_SOURCE"
10403 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10406 cf_xopen_source="-D__EXTENSIONS__"
10407 cf_cv_xopen_source=broken
10409 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10415 echo "$as_me:10415: checking if we should define _XOPEN_SOURCE" >&5
10416 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10417 if test "${cf_cv_xopen_source+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line 10422 "configure"
10423 #include "confdefs.h"
10425 #include <stdlib.h>
10426 #include <string.h>
10427 #include <sys/types.h>
10433 #ifndef _XOPEN_SOURCE
10440 rm -f conftest.$ac_objext
10441 if { (eval echo "$as_me:10441: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>&5
10444 echo "$as_me:10444: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -s conftest.$ac_objext'
10447 { (eval echo "$as_me:10447: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10450 echo "$as_me:10450: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 cf_cv_xopen_source=no
10454 echo "$as_me: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 cf_save="$CPPFLAGS"
10458 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10459 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10461 cat >conftest.$ac_ext <<_ACEOF
10462 #line 10462 "configure"
10463 #include "confdefs.h"
10465 #include <stdlib.h>
10466 #include <string.h>
10467 #include <sys/types.h>
10473 #ifdef _XOPEN_SOURCE
10480 rm -f conftest.$ac_objext
10481 if { (eval echo "$as_me:10481: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10484 echo "$as_me:10484: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:10487: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:10490: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 cf_cv_xopen_source=no
10494 echo "$as_me: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10496 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10498 rm -f conftest.$ac_objext conftest.$ac_ext
10499 CPPFLAGS="$cf_save"
10502 rm -f conftest.$ac_objext conftest.$ac_ext
10505 echo "$as_me:10505: result: $cf_cv_xopen_source" >&5
10506 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10508 if test "$cf_cv_xopen_source" != no ; then
10510 CFLAGS=`echo "$CFLAGS" | \
10511 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10512 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10514 CPPFLAGS=`echo "$CPPFLAGS" | \
10515 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10516 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10518 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10523 cf_new_extra_cppflags=
10525 for cf_add_cflags in $cf_temp_xopen_source
10527 case $cf_fix_cppflags in
10529 case $cf_add_cflags in
10530 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10531 case $cf_add_cflags in
10533 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10535 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10536 && test -z "${cf_tst_cflags}" \
10537 && cf_fix_cppflags=yes
10539 if test $cf_fix_cppflags = yes ; then
10541 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10542 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10545 elif test "${cf_tst_cflags}" = "\"'" ; then
10547 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10548 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10554 case "$CPPFLAGS" in
10558 case $cf_add_cflags in
10560 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10562 CPPFLAGS=`echo "$CPPFLAGS" | \
10563 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10564 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10569 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10570 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10577 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10578 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10585 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10586 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10588 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10590 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10591 && test -z "${cf_tst_cflags}" \
10592 && cf_fix_cppflags=no
10597 if test -n "$cf_new_cflags" ; then
10599 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10600 CFLAGS="${CFLAGS}$cf_new_cflags"
10604 if test -n "$cf_new_cppflags" ; then
10606 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10607 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10611 if test -n "$cf_new_extra_cppflags" ; then
10613 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10614 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10620 if test "$cf_cv_posix_visible" = no; then
10622 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10624 cf_save_CFLAGS="$CFLAGS"
10625 cf_save_CPPFLAGS="$CPPFLAGS"
10627 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10628 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10629 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10631 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10632 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10633 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10635 echo "$as_me:10635: checking if we should define _POSIX_C_SOURCE" >&5
10636 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10637 if test "${cf_cv_posix_c_source+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 echo "${as_me:-configure}:10641: testing if the symbol is already defined go no further ..." 1>&5
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10646 #include <sys/types.h>
10651 #ifndef _POSIX_C_SOURCE
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:10662: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 cf_cv_posix_c_source=no
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 cf_want_posix_source=no
10675 case .$cf_POSIX_C_SOURCE in
10677 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10680 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10681 cf_want_posix_source=yes
10684 cf_want_posix_source=yes
10687 if test "$cf_want_posix_source" = yes ; then
10688 cat >conftest.$ac_ext <<_ACEOF
10689 #line 10689 "configure"
10690 #include "confdefs.h"
10691 #include <sys/types.h>
10696 #ifdef _POSIX_SOURCE
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:10704: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10707 echo "$as_me:10707: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:10710: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10717 echo "$as_me: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10724 echo "${as_me:-configure}:10724: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10726 CFLAGS="$cf_trim_CFLAGS"
10727 CPPFLAGS="$cf_trim_CPPFLAGS"
10729 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10730 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10732 echo "${as_me:-configure}:10732: testing if the second compile does not leave our definition intact error ..." 1>&5
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line 10735 "configure"
10736 #include "confdefs.h"
10737 #include <sys/types.h>
10742 #ifndef _POSIX_C_SOURCE
10749 rm -f conftest.$ac_objext
10750 if { (eval echo "$as_me:10750: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10753 echo "$as_me:10753: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:10756: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:10759: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10763 echo "$as_me: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 cf_cv_posix_c_source=no
10767 rm -f conftest.$ac_objext conftest.$ac_ext
10768 CFLAGS="$cf_save_CFLAGS"
10769 CPPFLAGS="$cf_save_CPPFLAGS"
10772 rm -f conftest.$ac_objext conftest.$ac_ext
10775 echo "$as_me:10775: result: $cf_cv_posix_c_source" >&5
10776 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10778 if test "$cf_cv_posix_c_source" != no ; then
10779 CFLAGS="$cf_trim_CFLAGS"
10780 CPPFLAGS="$cf_trim_CPPFLAGS"
10785 cf_new_extra_cppflags=
10787 for cf_add_cflags in $cf_cv_posix_c_source
10789 case $cf_fix_cppflags in
10791 case $cf_add_cflags in
10792 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10793 case $cf_add_cflags in
10795 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10797 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10798 && test -z "${cf_tst_cflags}" \
10799 && cf_fix_cppflags=yes
10801 if test $cf_fix_cppflags = yes ; then
10803 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10804 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10807 elif test "${cf_tst_cflags}" = "\"'" ; then
10809 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10810 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10816 case "$CPPFLAGS" in
10820 case $cf_add_cflags in
10822 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10824 CPPFLAGS=`echo "$CPPFLAGS" | \
10825 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10826 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10831 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10832 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10839 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10840 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10847 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10848 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10850 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10852 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10853 && test -z "${cf_tst_cflags}" \
10854 && cf_fix_cppflags=no
10859 if test -n "$cf_new_cflags" ; then
10861 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10862 CFLAGS="${CFLAGS}$cf_new_cflags"
10866 if test -n "$cf_new_cppflags" ; then
10868 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10869 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10873 if test -n "$cf_new_extra_cppflags" ; then
10875 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10876 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10882 fi # cf_cv_posix_visible
10887 if test -n "$cf_xopen_source" ; then
10892 cf_new_extra_cppflags=
10894 for cf_add_cflags in $cf_xopen_source
10896 case $cf_fix_cppflags in
10898 case $cf_add_cflags in
10899 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10900 case $cf_add_cflags in
10902 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10904 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10905 && test -z "${cf_tst_cflags}" \
10906 && cf_fix_cppflags=yes
10908 if test $cf_fix_cppflags = yes ; then
10910 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10911 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10914 elif test "${cf_tst_cflags}" = "\"'" ; then
10916 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10917 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10923 case "$CPPFLAGS" in
10927 case $cf_add_cflags in
10929 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10931 CPPFLAGS=`echo "$CPPFLAGS" | \
10932 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10933 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10938 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10939 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10946 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10947 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10954 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10955 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10957 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10959 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10960 && test -z "${cf_tst_cflags}" \
10961 && cf_fix_cppflags=no
10966 if test -n "$cf_new_cflags" ; then
10967 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10969 echo "${as_me:-configure}:10969: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10971 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10972 CFLAGS="${CFLAGS}$cf_new_cflags"
10976 if test -n "$cf_new_cppflags" ; then
10977 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10979 echo "${as_me:-configure}:10979: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10981 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10982 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10986 if test -n "$cf_new_extra_cppflags" ; then
10987 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10989 echo "${as_me:-configure}:10989: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10991 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10992 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10998 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10999 echo "$as_me:10999: checking if _XOPEN_SOURCE really is set" >&5
11000 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line 11002 "configure"
11003 #include "confdefs.h"
11004 #include <stdlib.h>
11009 #ifndef _XOPEN_SOURCE
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:11017: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>&5
11020 echo "$as_me:11020: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:11023: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 cf_XOPEN_SOURCE_set=yes
11030 echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 cf_XOPEN_SOURCE_set=no
11034 rm -f conftest.$ac_objext conftest.$ac_ext
11035 echo "$as_me:11035: result: $cf_XOPEN_SOURCE_set" >&5
11036 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11037 if test $cf_XOPEN_SOURCE_set = yes
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line 11040 "configure"
11041 #include "confdefs.h"
11042 #include <stdlib.h>
11047 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11054 rm -f conftest.$ac_objext
11055 if { (eval echo "$as_me:11055: \"$ac_compile\"") >&5
11056 (eval $ac_compile) 2>&5
11058 echo "$as_me:11058: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -s conftest.$ac_objext'
11061 { (eval echo "$as_me:11061: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11064 echo "$as_me:11064: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }; then
11066 cf_XOPEN_SOURCE_set_ok=yes
11068 echo "$as_me: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 cf_XOPEN_SOURCE_set_ok=no
11072 rm -f conftest.$ac_objext conftest.$ac_ext
11073 if test $cf_XOPEN_SOURCE_set_ok = no
11075 { echo "$as_me:11075: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11076 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11080 echo "$as_me:11080: checking if we should define _XOPEN_SOURCE" >&5
11081 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11082 if test "${cf_cv_xopen_source+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 cat >conftest.$ac_ext <<_ACEOF
11087 #line 11087 "configure"
11088 #include "confdefs.h"
11090 #include <stdlib.h>
11091 #include <string.h>
11092 #include <sys/types.h>
11098 #ifndef _XOPEN_SOURCE
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:11106: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>&5
11109 echo "$as_me:11109: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:11112: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:11115: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 cf_cv_xopen_source=no
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 cf_save="$CPPFLAGS"
11123 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11124 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line 11127 "configure"
11128 #include "confdefs.h"
11130 #include <stdlib.h>
11131 #include <string.h>
11132 #include <sys/types.h>
11138 #ifdef _XOPEN_SOURCE
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:11146: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>&5
11149 echo "$as_me:11149: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (eval echo "$as_me:11152: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:11155: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 cf_cv_xopen_source=no
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11163 rm -f conftest.$ac_objext conftest.$ac_ext
11164 CPPFLAGS="$cf_save"
11167 rm -f conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:11170: result: $cf_cv_xopen_source" >&5
11171 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11173 if test "$cf_cv_xopen_source" != no ; then
11175 CFLAGS=`echo "$CFLAGS" | \
11176 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11177 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11179 CPPFLAGS=`echo "$CPPFLAGS" | \
11180 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11181 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11183 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11188 cf_new_extra_cppflags=
11190 for cf_add_cflags in $cf_temp_xopen_source
11192 case $cf_fix_cppflags in
11194 case $cf_add_cflags in
11195 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11196 case $cf_add_cflags in
11198 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11200 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11201 && test -z "${cf_tst_cflags}" \
11202 && cf_fix_cppflags=yes
11204 if test $cf_fix_cppflags = yes ; then
11206 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11207 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11210 elif test "${cf_tst_cflags}" = "\"'" ; then
11212 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11213 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11219 case "$CPPFLAGS" in
11223 case $cf_add_cflags in
11225 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11227 CPPFLAGS=`echo "$CPPFLAGS" | \
11228 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11229 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11234 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11235 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11242 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11243 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11250 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11251 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11253 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11255 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11256 && test -z "${cf_tst_cflags}" \
11257 && cf_fix_cppflags=no
11262 if test -n "$cf_new_cflags" ; then
11264 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11265 CFLAGS="${CFLAGS}$cf_new_cflags"
11269 if test -n "$cf_new_cppflags" ; then
11271 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11272 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11276 if test -n "$cf_new_extra_cppflags" ; then
11278 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11279 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11287 fi # cf_cv_posix_visible
11289 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11291 # Work around breakage on OS X
11293 echo "$as_me:11293: checking if SIGWINCH is defined" >&5
11294 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11295 if test "${cf_cv_define_sigwinch+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11300 #line 11300 "configure"
11301 #include "confdefs.h"
11303 #include <sys/types.h>
11304 #include <sys/signal.h>
11309 int x = SIGWINCH; (void)x
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
11326 cf_cv_define_sigwinch=yes
11328 echo "$as_me: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line 11331 "configure"
11332 #include "confdefs.h"
11334 #undef _XOPEN_SOURCE
11335 #undef _POSIX_SOURCE
11336 #undef _POSIX_C_SOURCE
11337 #include <sys/types.h>
11338 #include <sys/signal.h>
11343 int x = SIGWINCH; (void)x
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:11349: \"$ac_compile\"") >&5
11350 (eval $ac_compile) 2>&5
11352 echo "$as_me:11352: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -s conftest.$ac_objext'
11355 { (eval echo "$as_me:11355: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:11358: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 cf_cv_define_sigwinch=maybe
11362 echo "$as_me: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 cf_cv_define_sigwinch=no
11366 rm -f conftest.$ac_objext conftest.$ac_ext
11369 rm -f conftest.$ac_objext conftest.$ac_ext
11372 echo "$as_me:11372: result: $cf_cv_define_sigwinch" >&5
11373 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11375 if test "$cf_cv_define_sigwinch" = maybe ; then
11376 echo "$as_me:11376: checking for actual SIGWINCH definition" >&5
11377 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11378 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 cf_cv_fixup_sigwinch=unknown
11384 while test $cf_sigwinch != 1
11386 cat >conftest.$ac_ext <<_ACEOF
11387 #line 11387 "configure"
11388 #include "confdefs.h"
11390 #undef _XOPEN_SOURCE
11391 #undef _POSIX_SOURCE
11392 #undef _POSIX_C_SOURCE
11393 #include <sys/types.h>
11394 #include <sys/signal.h>
11400 #if SIGWINCH != $cf_sigwinch
11403 int x = SIGWINCH; (void)x
11408 rm -f conftest.$ac_objext
11409 if { (eval echo "$as_me:11409: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>&5
11412 echo "$as_me:11412: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -s conftest.$ac_objext'
11415 { (eval echo "$as_me:11415: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:11418: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 cf_cv_fixup_sigwinch=$cf_sigwinch
11423 echo "$as_me: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11426 rm -f conftest.$ac_objext conftest.$ac_ext
11428 cf_sigwinch=`expr $cf_sigwinch - 1`
11432 echo "$as_me:11432: result: $cf_cv_fixup_sigwinch" >&5
11433 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11435 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11436 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11440 # Checks for CODESET support.
11442 echo "$as_me:11442: checking for nl_langinfo and CODESET" >&5
11443 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11444 if test "${am_cv_langinfo_codeset+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line 11448 "configure"
11449 #include "confdefs.h"
11450 #include <langinfo.h>
11454 char* cs = nl_langinfo(CODESET); (void)cs
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:11460: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11463 echo "$as_me:11463: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:11466: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:11469: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 am_cv_langinfo_codeset=yes
11473 echo "$as_me: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 am_cv_langinfo_codeset=no
11477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11480 echo "$as_me:11480: result: $am_cv_langinfo_codeset" >&5
11481 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11482 if test $am_cv_langinfo_codeset = yes; then
11484 cat >>confdefs.h <<\EOF
11485 #define HAVE_LANGINFO_CODESET 1
11490 # use these variables to work around a defect in gcc's fixincludes.
11491 NCURSES_OK_WCHAR_T=
11494 echo "$as_me:11494: checking if you want wide-character code" >&5
11495 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11497 # Check whether --enable-widec or --disable-widec was given.
11498 if test "${enable_widec+set}" = set; then
11499 enableval="$enable_widec"
11500 with_widec=$enableval
11504 echo "$as_me:11504: result: $with_widec" >&5
11505 echo "${ECHO_T}$with_widec" >&6
11507 NCURSES_WCWIDTH_GRAPHICS=1
11509 if test "x$with_widec" = xyes ; then
11510 if test "x$disable_lib_suffixes" = xno ; then
11511 LIB_SUFFIX="w${LIB_SUFFIX}"
11514 cat >>confdefs.h <<\EOF
11515 #define USE_WIDEC_SUPPORT 1
11518 cat >>confdefs.h <<\EOF
11519 #define NCURSES_WIDECHAR 1
11527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11528 echo "$as_me:11528: checking for $ac_header" >&5
11529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11534 #line 11534 "configure"
11535 #include "confdefs.h"
11536 #include <$ac_header>
11538 if { (eval echo "$as_me:11538: \"$ac_cpp conftest.$ac_ext\"") >&5
11539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11541 egrep -v '^ *\+' conftest.er1 >conftest.err
11543 cat conftest.err >&5
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); } >/dev/null; then
11546 if test -s conftest.err; then
11547 ac_cpp_err=$ac_c_preproc_warn_flag
11554 if test -z "$ac_cpp_err"; then
11555 eval "$as_ac_Header=yes"
11557 echo "$as_me: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 eval "$as_ac_Header=no"
11561 rm -f conftest.err conftest.$ac_ext
11563 echo "$as_me:11563: result: `eval echo '${'$as_ac_Header'}'`" >&5
11564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11566 cat >>confdefs.h <<EOF
11567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573 echo "$as_me:11573: checking if wchar.h can be used as is" >&5
11574 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11575 if test "${cf_cv_wchar_h_okay+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11580 #line 11580 "configure"
11581 #include "confdefs.h"
11583 #include <stdlib.h>
11584 #ifdef HAVE_WCHAR_H
11587 #ifdef HAVE_WCTYPE_H
11588 #include <wctype.h>
11596 int bar = iswpunct(foo)
11601 rm -f conftest.$ac_objext
11602 if { (eval echo "$as_me:11602: \"$ac_compile\"") >&5
11603 (eval $ac_compile) 2>&5
11605 echo "$as_me:11605: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -s conftest.$ac_objext'
11608 { (eval echo "$as_me:11608: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:11611: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 cf_cv_wchar_h_okay=yes
11615 echo "$as_me: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11617 cf_cv_wchar_h_okay=no
11619 rm -f conftest.$ac_objext conftest.$ac_ext
11621 echo "$as_me:11621: result: $cf_cv_wchar_h_okay" >&5
11622 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11624 if test $cf_cv_wchar_h_okay = no
11627 echo "$as_me:11627: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11628 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11630 #line 11630 "configure"
11631 #include "confdefs.h"
11632 #include <sys/types.h>
11638 #ifndef _XOPEN_SOURCE_EXTENDED
11645 rm -f conftest.$ac_objext
11646 if { (eval echo "$as_me:11646: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>&5
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:11652: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:11655: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11659 echo "$as_me: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11663 rm -f conftest.$ac_objext conftest.$ac_ext
11664 echo "$as_me:11664: result: $cf_result" >&5
11665 echo "${ECHO_T}$cf_result" >&6
11667 if test "$cf_result" = yes ; then
11668 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11669 elif test "x" != "x" ; then
11670 echo "$as_me:11670: checking checking for compatible value versus " >&5
11671 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line 11673 "configure"
11674 #include "confdefs.h"
11675 #include <sys/types.h>
11681 #if _XOPEN_SOURCE_EXTENDED- < 0
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:11689: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>&5
11692 echo "$as_me:11692: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:11695: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:11698: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11702 echo "$as_me: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11706 rm -f conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:11707: result: $cf_result" >&5
11708 echo "${ECHO_T}$cf_result" >&6
11709 if test "$cf_result" = no ; then
11710 # perhaps we can override it - try...
11711 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11717 echo "$as_me:11717: checking if wcwidth agrees graphics are single-width" >&5
11718 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11719 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.in <<CF_EOF
11725 0x250c upper left corner
11726 0x2514 lower left corner
11727 0x2510 upper right corner
11728 0x2518 lower right corner
11729 0x251c tee pointing left
11730 0x2524 tee pointing right
11731 0x2534 tee pointing up
11732 0x252c tee pointing down
11733 0x2500 horizontal line
11734 0x2502 vertical line
11735 0x253c large plus or crossover
11739 0x2592 checker board (stipple)
11740 0x00b0 degree symbol
11743 - Teletype 5410v1 symbols
11744 0x2190 arrow pointing left
11745 0x2192 arrow pointing right
11746 0x2193 arrow pointing down
11747 0x2191 arrow pointing up
11748 0x2592 board of squares
11749 0x2603 lantern symbol
11750 0x25ae solid square block
11751 - these defaults were invented for ncurses
11754 0x2264 less-than-or-equal-to
11755 0x2265 greater-than-or-equal-to
11758 0x00a3 pound-sterling symbol
11759 - thick-line-drawing
11760 0x250f upper left corner
11761 0x2517 lower left corner
11762 0x2513 upper right corner
11763 0x251b lower right corner
11764 0x2523 tee pointing left
11765 0x252b tee pointing right
11766 0x253b tee pointing up
11767 0x2533 tee pointing down
11768 0x2501 horizontal line
11769 0x2503 vertical line
11770 0x254b large plus or crossover
11771 - double-line-drawing
11772 0x2554 upper left corner
11773 0x255a lower left corner
11774 0x2557 upper right corner
11775 0x255d lower right corner
11776 0x2563 tee pointing left
11777 0x2560 tee pointing right
11778 0x2569 tee pointing up
11779 0x2566 tee pointing down
11780 0x2550 horizontal line
11781 0x2551 vertical line
11782 0x256c large plus or crossover
11784 if test "$cross_compiling" = yes; then
11785 cf_cv_wcwidth_graphics=unknown
11787 cat >conftest.$ac_ext <<_ACEOF
11788 #line 11788 "configure"
11789 #include "confdefs.h"
11791 #include <locale.h>
11802 char buffer[MY_LEN + 1];
11803 char notes[MY_LEN + 1];
11807 if (setlocale(LC_ALL, "en_US.UTF8") ||
11808 setlocale(LC_ALL, "en_US.UTF-8") ||
11809 setlocale(LC_ALL, "en_US.utf8") ||
11810 setlocale(LC_ALL, "en_US.utf-8")) {
11811 if ((fp = fopen("conftest.in", "r")) != 0) {
11812 while (fgets(buffer, MY_LEN, fp) != 0) {
11813 if (*buffer == '-') {
11814 fprintf(stderr, "\t%s", buffer);
11815 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11817 if (wcwidth(value) == 1)
11819 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11821 fprintf(stderr, "?\t%s", buffer);
11826 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11827 return (totals == passed) ? 0 : 1;
11831 rm -f conftest$ac_exeext
11832 if { (eval echo "$as_me:11832: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>&5
11835 echo "$as_me:11835: \$? = $ac_status" >&5
11836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11837 { (eval echo "$as_me:11837: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:11840: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 cf_cv_wcwidth_graphics=yes
11844 echo "$as_me: program exited with status $ac_status" >&5
11845 echo "$as_me: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11847 cf_cv_wcwidth_graphics=no
11849 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11853 echo "$as_me:11853: result: $cf_cv_wcwidth_graphics" >&5
11854 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11856 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11858 # with_overwrite=no
11859 NCURSES_CH_T=cchar_t
11861 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864 echo "$as_me:11864: checking for $ac_func" >&5
11865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11866 if eval "test \"\${$as_ac_var+set}\" = set"; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line 11870 "configure"
11871 #include "confdefs.h"
11872 #define $ac_func autoconf_temporary
11873 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11880 /* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882 char $ac_func (void);
11888 /* The GNU C library defines stubs for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 #error found stub for $ac_func
11895 return $ac_func ();
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:11901: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>&5
11904 echo "$as_me:11904: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (eval echo "$as_me:11907: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:11910: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 eval "$as_ac_var=yes"
11914 echo "$as_me: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 eval "$as_ac_var=no"
11918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11920 echo "$as_me:11920: result: `eval echo '${'$as_ac_var'}'`" >&5
11921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11922 if test `eval echo '${'$as_ac_var'}'` = yes; then
11923 cat >>confdefs.h <<EOF
11924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 if test "x$ac_cv_func_putwc" != xyes ; then
11932 echo "$as_me:11932: checking for multibyte character support" >&5
11933 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11934 if test "${cf_cv_utf8_lib+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 cf_save_LIBS="$LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11940 #line 11940 "configure"
11941 #include "confdefs.h"
11943 #include <stdlib.h>
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (eval echo "$as_me:11953: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>&5
11956 echo "$as_me:11956: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -s conftest$ac_exeext'
11959 { (eval echo "$as_me:11959: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:11962: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11966 echo "$as_me: failed program was:" >&5
11967 cat conftest.$ac_ext >&5
11969 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11970 # will be set on completion of the AC_TRY_LINK below.
11971 cf_cv_header_path_utf8=
11972 cf_cv_library_path_utf8=
11974 echo "${as_me:-configure}:11974: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11976 cf_save_LIBS="$LIBS"
11978 cat >conftest.$ac_ext <<_ACEOF
11979 #line 11979 "configure"
11980 #include "confdefs.h"
11982 #include <libutf8.h>
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:11992: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -s conftest$ac_exeext'
11998 { (eval echo "$as_me:11998: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12004 cf_cv_find_linkage_utf8=yes
12005 cf_cv_header_path_utf8=/usr/include
12006 cf_cv_library_path_utf8=/usr/lib
12009 echo "$as_me: failed program was:" >&5
12010 cat conftest.$ac_ext >&5
12012 LIBS="-lutf8 $cf_save_LIBS"
12014 cat >conftest.$ac_ext <<_ACEOF
12015 #line 12015 "configure"
12016 #include "confdefs.h"
12018 #include <libutf8.h>
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:12028: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12031 echo "$as_me:12031: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:12034: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12040 cf_cv_find_linkage_utf8=yes
12041 cf_cv_header_path_utf8=/usr/include
12042 cf_cv_library_path_utf8=/usr/lib
12043 cf_cv_library_file_utf8="-lutf8"
12046 echo "$as_me: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12049 cf_cv_find_linkage_utf8=no
12050 LIBS="$cf_save_LIBS"
12052 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12054 echo "${as_me:-configure}:12054: testing find linkage for utf8 library ..." 1>&5
12056 echo "${as_me:-configure}:12056: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12058 cf_save_CPPFLAGS="$CPPFLAGS"
12059 cf_test_CPPFLAGS="$CPPFLAGS"
12063 # collect the current set of include-directories from compiler flags
12064 cf_header_path_list=""
12065 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12066 for cf_header_path in $CPPFLAGS $CFLAGS
12068 case $cf_header_path in
12070 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12072 test "x$cf_header_path" != "xNONE" && \
12073 test -d "$cf_header_path" && \
12075 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12076 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
12077 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
12078 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
12079 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
12080 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12083 cf_header_path_list="$cf_header_path_list $cf_search"
12089 # add the variations for the package we are looking for
12093 test "x$prefix" != "xNONE" && \
12094 test -d "$prefix" && \
12096 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12097 test -d $prefix/include && cf_search="$cf_search $prefix/include"
12098 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
12099 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
12100 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
12101 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
12104 for cf_subdir_prefix in \
12113 test "x$cf_subdir_prefix" != "x$prefix" && \
12114 test -d "$cf_subdir_prefix" && \
12115 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12116 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12117 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
12118 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12119 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12120 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12121 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12126 test "$includedir" != NONE && \
12127 test "$includedir" != "/usr/include" && \
12128 test -d "$includedir" && {
12129 test -d $includedir && cf_search="$cf_search $includedir"
12130 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
12133 test "$oldincludedir" != NONE && \
12134 test "$oldincludedir" != "/usr/include" && \
12135 test -d "$oldincludedir" && {
12136 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
12137 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
12140 cf_search="$cf_search $cf_header_path_list"
12142 for cf_cv_header_path_utf8 in $cf_search
12144 if test -d $cf_cv_header_path_utf8 ; then
12145 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12147 echo "${as_me:-configure}:12147: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12149 CPPFLAGS="$cf_save_CPPFLAGS"
12151 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12152 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 #line 12155 "configure"
12156 #include "confdefs.h"
12158 #include <libutf8.h>
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:12168: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>&5
12171 echo "$as_me:12171: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (eval echo "$as_me:12174: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:12177: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12180 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12182 echo "${as_me:-configure}:12182: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12184 cf_cv_find_linkage_utf8=maybe
12185 cf_test_CPPFLAGS="$CPPFLAGS"
12188 echo "$as_me: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12191 CPPFLAGS="$cf_save_CPPFLAGS"
12194 rm -f conftest.$ac_objext conftest.$ac_ext
12198 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12200 echo "${as_me:-configure}:12200: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12202 cf_save_LIBS="$LIBS"
12203 cf_save_LDFLAGS="$LDFLAGS"
12205 if test "$cf_cv_find_linkage_utf8" != yes ; then
12208 cf_library_path_list=""
12209 if test -n "${LDFLAGS}${LIBS}" ; then
12210 for cf_library_path in $LDFLAGS $LIBS
12212 case $cf_library_path in
12214 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12216 test "x$cf_library_path" != "xNONE" && \
12217 test -d "$cf_library_path" && \
12219 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12220 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
12221 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
12222 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12223 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
12224 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12227 cf_library_path_list="$cf_library_path_list $cf_search"
12235 test "x$prefix" != "xNONE" && \
12236 test -d "$prefix" && \
12238 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12239 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
12240 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
12241 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
12242 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
12243 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
12246 for cf_subdir_prefix in \
12255 test "x$cf_subdir_prefix" != "x$prefix" && \
12256 test -d "$cf_subdir_prefix" && \
12257 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12258 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12259 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
12260 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12261 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12262 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12263 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12268 cf_search="$cf_library_path_list $cf_search"
12270 for cf_cv_library_path_utf8 in $cf_search
12272 if test -d $cf_cv_library_path_utf8 ; then
12273 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12275 echo "${as_me:-configure}:12275: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12277 CPPFLAGS="$cf_test_CPPFLAGS"
12278 LIBS="-lutf8 $cf_save_LIBS"
12279 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12284 #include <libutf8.h>
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (eval echo "$as_me:12294: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12297 echo "$as_me:12297: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (eval echo "$as_me:12300: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:12303: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12306 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12308 echo "${as_me:-configure}:12308: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12310 cf_cv_find_linkage_utf8=yes
12311 cf_cv_library_file_utf8="-lutf8"
12314 echo "$as_me: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12317 CPPFLAGS="$cf_save_CPPFLAGS"
12318 LIBS="$cf_save_LIBS"
12319 LDFLAGS="$cf_save_LDFLAGS"
12322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12325 CPPFLAGS="$cf_save_CPPFLAGS"
12326 LDFLAGS="$cf_save_LDFLAGS"
12330 cf_cv_find_linkage_utf8=no
12334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12339 LIBS="$cf_save_LIBS"
12341 if test "$cf_cv_find_linkage_utf8" = yes ; then
12342 cf_cv_utf8_lib=add-on
12348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12350 echo "$as_me:12350: result: $cf_cv_utf8_lib" >&5
12351 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12353 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12354 # ncurses/ncursesw:
12355 if test "$cf_cv_utf8_lib" = "add-on" ; then
12357 cat >>confdefs.h <<\EOF
12358 #define HAVE_LIBUTF8_H 1
12361 if test -n "$cf_cv_header_path_utf8" ; then
12362 for cf_add_incdir in $cf_cv_header_path_utf8
12364 while test $cf_add_incdir != /usr/include
12366 if test -d $cf_add_incdir
12369 if test -n "$CFLAGS$CPPFLAGS" ; then
12370 # a loop is needed to ensure we can add subdirs of existing dirs
12371 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12372 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12373 cf_have_incdir=yes; break
12378 if test "$cf_have_incdir" = no ; then
12379 if test "$cf_add_incdir" = /usr/local/include ; then
12380 if test "$GCC" = yes
12382 cf_save_CPPFLAGS=$CPPFLAGS
12384 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12385 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12387 cat >conftest.$ac_ext <<_ACEOF
12388 #line 12388 "configure"
12389 #include "confdefs.h"
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:12400: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>&5
12403 echo "$as_me:12403: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:12406: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:12409: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12413 echo "$as_me: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12418 CPPFLAGS=$cf_save_CPPFLAGS
12423 if test "$cf_have_incdir" = no ; then
12424 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12426 echo "${as_me:-configure}:12426: testing adding $cf_add_incdir to include-path ..." 1>&5
12428 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12430 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12431 test "$cf_top_incdir" = "$cf_add_incdir" && break
12432 cf_add_incdir="$cf_top_incdir"
12443 if test -n "$cf_cv_library_path_utf8" ; then
12444 for cf_add_libdir in $cf_cv_library_path_utf8
12446 if test $cf_add_libdir = /usr/lib ; then
12448 elif test -d $cf_add_libdir
12451 if test -n "$LDFLAGS$LIBS" ; then
12452 # a loop is needed to ensure we can add subdirs of existing dirs
12453 for cf_test_libdir in $LDFLAGS $LIBS ; do
12454 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12455 cf_have_libdir=yes; break
12459 if test "$cf_have_libdir" = no ; then
12460 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12462 echo "${as_me:-configure}:12462: testing adding $cf_add_libdir to library-path ..." 1>&5
12464 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12470 cf_add_libs="$LIBS"
12473 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12474 # filter duplicates
12475 for cf_add_1lib in $cf_add_0lib; do
12476 for cf_add_2lib in $cf_add_libs; do
12477 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12482 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12484 LIBS="$cf_add_libs"
12488 if test "$cf_cv_utf8_lib" != no ; then
12493 # This is needed on Tru64 5.0 to declare mbstate_t
12494 echo "$as_me:12494: checking if we must include wchar.h to declare mbstate_t" >&5
12495 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12496 if test "${cf_cv_mbstate_t+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12501 #line 12501 "configure"
12502 #include "confdefs.h"
12504 #include <stdlib.h>
12505 #include <stdarg.h>
12507 #ifdef HAVE_LIBUTF8_H
12508 #include <libutf8.h>
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:12519: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12522 echo "$as_me:12522: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:12525: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:12528: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12532 echo "$as_me: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line 12535 "configure"
12536 #include "confdefs.h"
12538 #include <stdlib.h>
12539 #include <stdarg.h>
12542 #ifdef HAVE_LIBUTF8_H
12543 #include <libutf8.h>
12553 rm -f conftest.$ac_objext
12554 if { (eval echo "$as_me:12554: \"$ac_compile\"") >&5
12555 (eval $ac_compile) 2>&5
12557 echo "$as_me:12557: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:12560: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:12563: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 cf_cv_mbstate_t=yes
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 cf_cv_mbstate_t=unknown
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12573 rm -f conftest.$ac_objext conftest.$ac_ext
12575 echo "$as_me:12575: result: $cf_cv_mbstate_t" >&5
12576 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12578 if test "$cf_cv_mbstate_t" = yes ; then
12580 cat >>confdefs.h <<\EOF
12581 #define NEED_WCHAR_H 1
12587 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12588 if test "$cf_cv_mbstate_t" = unknown ; then
12589 NCURSES_MBSTATE_T=1
12592 # This is needed on Tru64 5.0 to declare wchar_t
12593 echo "$as_me:12593: checking if we must include wchar.h to declare wchar_t" >&5
12594 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12595 if test "${cf_cv_wchar_t+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line 12600 "configure"
12601 #include "confdefs.h"
12603 #include <stdlib.h>
12604 #include <stdarg.h>
12606 #ifdef HAVE_LIBUTF8_H
12607 #include <libutf8.h>
12617 rm -f conftest.$ac_objext
12618 if { (eval echo "$as_me:12618: \"$ac_compile\"") >&5
12619 (eval $ac_compile) 2>&5
12621 echo "$as_me:12621: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -s conftest.$ac_objext'
12624 { (eval echo "$as_me:12624: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:12627: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12631 echo "$as_me: failed program was:" >&5
12632 cat conftest.$ac_ext >&5
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #line 12634 "configure"
12635 #include "confdefs.h"
12637 #include <stdlib.h>
12638 #include <stdarg.h>
12641 #ifdef HAVE_LIBUTF8_H
12642 #include <libutf8.h>
12652 rm -f conftest.$ac_objext
12653 if { (eval echo "$as_me:12653: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>&5
12656 echo "$as_me:12656: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:12659: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:12662: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12666 echo "$as_me: failed program was:" >&5
12667 cat conftest.$ac_ext >&5
12668 cf_cv_wchar_t=unknown
12670 rm -f conftest.$ac_objext conftest.$ac_ext
12672 rm -f conftest.$ac_objext conftest.$ac_ext
12674 echo "$as_me:12674: result: $cf_cv_wchar_t" >&5
12675 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12677 if test "$cf_cv_wchar_t" = yes ; then
12679 cat >>confdefs.h <<\EOF
12680 #define NEED_WCHAR_H 1
12686 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12687 if test "$cf_cv_wchar_t" = unknown ; then
12691 # if we find wchar_t in either place, use substitution to provide a fallback.
12692 if test "$cf_cv_wchar_t" != unknown ; then
12693 NCURSES_OK_WCHAR_T=1
12696 # This is needed on Tru64 5.0 to declare wint_t
12697 echo "$as_me:12697: checking if we must include wchar.h to declare wint_t" >&5
12698 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12699 if test "${cf_cv_wint_t+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 cat >conftest.$ac_ext <<_ACEOF
12704 #line 12704 "configure"
12705 #include "confdefs.h"
12707 #include <stdlib.h>
12708 #include <stdarg.h>
12710 #ifdef HAVE_LIBUTF8_H
12711 #include <libutf8.h>
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:12722: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>&5
12725 echo "$as_me:12725: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:12728: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:12731: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12735 echo "$as_me: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line 12738 "configure"
12739 #include "confdefs.h"
12741 #include <stdlib.h>
12742 #include <stdarg.h>
12745 #ifdef HAVE_LIBUTF8_H
12746 #include <libutf8.h>
12756 rm -f conftest.$ac_objext
12757 if { (eval echo "$as_me:12757: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>&5
12760 echo "$as_me:12760: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -s conftest.$ac_objext'
12763 { (eval echo "$as_me:12763: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12766 echo "$as_me:12766: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12770 echo "$as_me: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12772 cf_cv_wint_t=unknown
12774 rm -f conftest.$ac_objext conftest.$ac_ext
12776 rm -f conftest.$ac_objext conftest.$ac_ext
12778 echo "$as_me:12778: result: $cf_cv_wint_t" >&5
12779 echo "${ECHO_T}$cf_cv_wint_t" >&6
12781 if test "$cf_cv_wint_t" = yes ; then
12783 cat >>confdefs.h <<\EOF
12784 #define NEED_WCHAR_H 1
12790 # if we do not find wint_t in either place, use substitution to provide a fallback.
12791 if test "$cf_cv_wint_t" = unknown ; then
12795 # if we find wint_t in either place, use substitution to provide a fallback.
12796 if test "$cf_cv_wint_t" != unknown ; then
12797 NCURSES_OK_WINT_T=1
12800 if test "$NCURSES_MBSTATE_T" != 0; then
12802 cat >>confdefs.h <<\EOF
12803 #define NEED_MBSTATE_T_DEF 1
12809 ### use option --disable-lp64 to allow long chtype
12810 echo "$as_me:12810: checking whether to enable _LP64 definition in curses.h" >&5
12811 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12813 # Check whether --enable-lp64 or --disable-lp64 was given.
12814 if test "${enable_lp64+set}" = set; then
12815 enableval="$enable_lp64"
12816 with_lp64=$enableval
12818 with_lp64=$cf_dft_with_lp64
12820 echo "$as_me:12820: result: $with_lp64" >&5
12821 echo "${ECHO_T}$with_lp64" >&6
12823 if test "x$with_lp64" = xyes ; then
12824 cf_cv_enable_lp64=1
12826 cf_cv_enable_lp64=0
12829 # Check whether --enable-largefile or --disable-largefile was given.
12830 if test "${enable_largefile+set}" = set; then
12831 enableval="$enable_largefile"
12834 if test "$enable_largefile" != no; then
12836 echo "$as_me:12836: checking for special C compiler options needed for large files" >&5
12837 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12838 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_cv_sys_largefile_CC=no
12842 if test "$GCC" != yes; then
12845 # IRIX 6.2 and later do not support large files by default,
12846 # so use the C compiler's -n32 option if that helps.
12847 cat >conftest.$ac_ext <<_ACEOF
12848 #line 12848 "configure"
12849 #include "confdefs.h"
12850 #include <sys/types.h>
12851 /* Check that off_t can represent 2**63 - 1 correctly.
12852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12853 since some C++ compilers masquerading as C compilers
12854 incorrectly reject 9223372036854775807. */
12855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12857 && LARGE_OFF_T % 2147483647 == 1)
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:12868: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>&5
12871 echo "$as_me:12871: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:12874: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:12877: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12881 echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12884 rm -f conftest.$ac_objext
12886 rm -f conftest.$ac_objext
12887 if { (eval echo "$as_me:12887: \"$ac_compile\"") >&5
12888 (eval $ac_compile) 2>&5
12890 echo "$as_me:12890: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest.$ac_objext'
12893 { (eval echo "$as_me:12893: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:12896: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_sys_largefile_CC=' -n32'; break
12900 echo "$as_me: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12903 rm -f conftest.$ac_objext
12907 rm -f conftest.$ac_ext
12910 echo "$as_me:12910: result: $ac_cv_sys_largefile_CC" >&5
12911 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12912 if test "$ac_cv_sys_largefile_CC" != no; then
12913 CC=$CC$ac_cv_sys_largefile_CC
12916 echo "$as_me:12916: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12917 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12918 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 ac_cv_sys_file_offset_bits=no
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line 12924 "configure"
12925 #include "confdefs.h"
12926 #include <sys/types.h>
12927 /* Check that off_t can represent 2**63 - 1 correctly.
12928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12929 since some C++ compilers masquerading as C compilers
12930 incorrectly reject 9223372036854775807. */
12931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12933 && LARGE_OFF_T % 2147483647 == 1)
12943 rm -f conftest.$ac_objext
12944 if { (eval echo "$as_me:12944: \"$ac_compile\"") >&5
12945 (eval $ac_compile) 2>&5
12947 echo "$as_me:12947: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -s conftest.$ac_objext'
12950 { (eval echo "$as_me:12950: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12957 echo "$as_me: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12961 cat >conftest.$ac_ext <<_ACEOF
12962 #line 12962 "configure"
12963 #include "confdefs.h"
12964 #define _FILE_OFFSET_BITS 64
12965 #include <sys/types.h>
12966 /* Check that off_t can represent 2**63 - 1 correctly.
12967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12968 since some C++ compilers masquerading as C compilers
12969 incorrectly reject 9223372036854775807. */
12970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12972 && LARGE_OFF_T % 2147483647 == 1)
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:12983: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12986 echo "$as_me:12986: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:12989: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:12992: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_sys_file_offset_bits=64; break
12996 echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13003 echo "$as_me:13003: result: $ac_cv_sys_file_offset_bits" >&5
13004 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13005 if test "$ac_cv_sys_file_offset_bits" != no; then
13007 cat >>confdefs.h <<EOF
13008 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13013 echo "$as_me:13013: checking for _LARGE_FILES value needed for large files" >&5
13014 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13015 if test "${ac_cv_sys_large_files+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 ac_cv_sys_large_files=no
13020 cat >conftest.$ac_ext <<_ACEOF
13021 #line 13021 "configure"
13022 #include "confdefs.h"
13023 #include <sys/types.h>
13024 /* Check that off_t can represent 2**63 - 1 correctly.
13025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13026 since some C++ compilers masquerading as C compilers
13027 incorrectly reject 9223372036854775807. */
13028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13030 && LARGE_OFF_T % 2147483647 == 1)
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:13041: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13044 echo "$as_me:13044: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:13047: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:13050: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13054 echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13057 rm -f conftest.$ac_objext conftest.$ac_ext
13058 cat >conftest.$ac_ext <<_ACEOF
13059 #line 13059 "configure"
13060 #include "confdefs.h"
13061 #define _LARGE_FILES 1
13062 #include <sys/types.h>
13063 /* Check that off_t can represent 2**63 - 1 correctly.
13064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13065 since some C++ compilers masquerading as C compilers
13066 incorrectly reject 9223372036854775807. */
13067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13069 && LARGE_OFF_T % 2147483647 == 1)
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:13080: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>&5
13083 echo "$as_me:13083: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (eval echo "$as_me:13086: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:13089: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_sys_large_files=1; break
13093 echo "$as_me: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13100 echo "$as_me:13100: result: $ac_cv_sys_large_files" >&5
13101 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13102 if test "$ac_cv_sys_large_files" != no; then
13104 cat >>confdefs.h <<EOF
13105 #define _LARGE_FILES $ac_cv_sys_large_files
13112 if test "$enable_largefile" != no ; then
13113 echo "$as_me:13113: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13114 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13115 if test "${ac_cv_sys_largefile_source+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 ac_cv_sys_largefile_source=no
13120 cat >conftest.$ac_ext <<_ACEOF
13121 #line 13121 "configure"
13122 #include "confdefs.h"
13132 rm -f conftest.$ac_objext
13133 if { (eval echo "$as_me:13133: \"$ac_compile\"") >&5
13134 (eval $ac_compile) 2>&5
13136 echo "$as_me:13136: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (eval echo "$as_me:13139: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13142 echo "$as_me:13142: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13146 echo "$as_me: failed program was:" >&5
13147 cat conftest.$ac_ext >&5
13149 rm -f conftest.$ac_objext conftest.$ac_ext
13150 cat >conftest.$ac_ext <<_ACEOF
13151 #line 13151 "configure"
13152 #include "confdefs.h"
13153 #define _LARGEFILE_SOURCE 1
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:13164: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>&5
13167 echo "$as_me:13167: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -s conftest.$ac_objext'
13170 { (eval echo "$as_me:13170: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13173 echo "$as_me:13173: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_sys_largefile_source=1; break
13177 echo "$as_me: failed program was:" >&5
13178 cat conftest.$ac_ext >&5
13180 rm -f conftest.$ac_objext conftest.$ac_ext
13184 echo "$as_me:13184: result: $ac_cv_sys_largefile_source" >&5
13185 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13186 if test "$ac_cv_sys_largefile_source" != no; then
13188 cat >>confdefs.h <<EOF
13189 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13195 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13196 # in glibc 2.1.3, but that breaks too many other things.
13197 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13198 echo "$as_me:13198: checking for fseeko" >&5
13199 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13200 if test "${ac_cv_func_fseeko+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13204 #line 13204 "configure"
13205 #include "confdefs.h"
13210 return fseeko && fseeko (stdin, 0, 0);
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (eval echo "$as_me:13216: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>&5
13219 echo "$as_me:13219: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -s conftest$ac_exeext'
13222 { (eval echo "$as_me:13222: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13225 echo "$as_me:13225: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_func_fseeko=yes
13229 echo "$as_me: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13231 ac_cv_func_fseeko=no
13233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13235 echo "$as_me:13235: result: $ac_cv_func_fseeko" >&5
13236 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13237 if test $ac_cv_func_fseeko = yes; then
13239 cat >>confdefs.h <<\EOF
13240 #define HAVE_FSEEKO 1
13245 # Normally we would collect these definitions in the config.h,
13246 # but (like _XOPEN_SOURCE), some environments rely on having these
13247 # defined before any of the system headers are included. Another
13248 # case comes up with C++, e.g., on AIX the compiler compiles the
13249 # header files by themselves before looking at the body files it is
13250 # told to compile. For ncurses, those header files do not include
13252 if test "$ac_cv_sys_large_files" != no
13255 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13256 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13259 if test "$ac_cv_sys_largefile_source" != no
13262 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13263 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13266 if test "$ac_cv_sys_file_offset_bits" != no
13269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13270 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13274 echo "$as_me:13274: checking whether to use struct dirent64" >&5
13275 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13276 if test "${cf_cv_struct_dirent64+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line 13281 "configure"
13282 #include "confdefs.h"
13284 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13285 #include <sys/types.h>
13286 #include <dirent.h>
13292 /* if transitional largefile support is setup, this is true */
13293 extern struct dirent64 * readdir(DIR *);
13294 struct dirent64 *x = readdir((DIR *)0);
13295 struct dirent *y = readdir((DIR *)0);
13303 rm -f conftest.$ac_objext
13304 if { (eval echo "$as_me:13304: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -s conftest.$ac_objext'
13310 { (eval echo "$as_me:13310: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 cf_cv_struct_dirent64=yes
13317 echo "$as_me: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 cf_cv_struct_dirent64=no
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13324 echo "$as_me:13324: result: $cf_cv_struct_dirent64" >&5
13325 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13326 test "$cf_cv_struct_dirent64" = yes &&
13327 cat >>confdefs.h <<\EOF
13328 #define HAVE_STRUCT_DIRENT64 1
13333 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13334 echo "$as_me:13334: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13335 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13337 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13338 if test "${enable_tparm_varargs+set}" = set; then
13339 enableval="$enable_tparm_varargs"
13340 with_tparm_varargs=$enableval
13342 with_tparm_varargs=yes
13344 echo "$as_me:13344: result: $with_tparm_varargs" >&5
13345 echo "${ECHO_T}$with_tparm_varargs" >&6
13346 NCURSES_TPARM_VARARGS=0
13347 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13349 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13350 if test "$with_ticlib" != no ; then
13351 echo "$as_me:13351: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13352 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13354 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13355 if test "${enable_tic_depends+set}" = set; then
13356 enableval="$enable_tic_depends"
13357 with_tic_depends=$enableval
13359 with_tic_depends=yes
13361 echo "$as_me:13361: result: $with_tic_depends" >&5
13362 echo "${ECHO_T}$with_tic_depends" >&6
13364 with_tic_depends=no
13367 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13368 echo "$as_me:13368: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13369 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13371 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13372 if test "${enable_wattr_macros+set}" = set; then
13373 enableval="$enable_wattr_macros"
13374 with_wattr_macros=$enableval
13376 with_wattr_macros=yes
13378 if [ "x$with_wattr_macros" != xyes ]; then
13379 NCURSES_WATTR_MACROS=0
13380 echo "$as_me:13380: result: yes" >&5
13381 echo "${ECHO_T}yes" >&6
13383 NCURSES_WATTR_MACROS=1
13384 echo "$as_me:13384: result: no" >&5
13385 echo "${ECHO_T}no" >&6
13388 echo "$as_me:13388: checking for X11 rgb file" >&5
13389 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13391 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13392 if test "${with_x11_rgb+set}" = set; then
13393 withval="$with_x11_rgb"
13399 if test "x$RGB_PATH" = xauto
13401 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13403 /opt/local/share/X11/rgb.txt \
13404 /opt/X11/share/X11/rgb.txt \
13405 /usr/share/X11/rgb.txt \
13406 /usr/X11/share/X11/rgb.txt \
13407 /usr/X11/lib/X11/rgb.txt \
13408 /usr/lib/X11/rgb.txt \
13410 /usr/pkg/lib/X11/rgb.txt \
13411 /usr/X11R7/lib/X11/rgb.txt \
13412 /usr/X11R6/lib/X11/rgb.txt \
13413 /usr/X11R5/lib/X11/rgb.txt \
13414 /usr/X11R4/lib/X11/rgb.txt \
13415 /usr/local/lib/X11/rgb.txt \
13416 /usr/local/share/X11/rgb.txt \
13417 /usr/lib64/X11/rgb.txt
13419 if test -f "$cf_path" ; then
13420 RGB_PATH="$cf_path"
13427 if test "x$prefix" != xNONE; then
13428 cf_path_syntax="$prefix"
13430 cf_path_syntax="$ac_default_prefix"
13433 case ".$cf_path" in
13434 (.\$\(*\)*|.\'*\'*)
13438 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13440 (.\${*prefix}*|.\${*dir}*)
13441 eval cf_path="$cf_path"
13442 case ".$cf_path" in
13444 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13449 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13452 { { echo "$as_me:13452: error: expected a pathname, not \"$cf_path\"" >&5
13453 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13454 { (exit 1); exit 1; }; }
13460 echo "$as_me:13460: result: $RGB_PATH" >&5
13461 echo "${ECHO_T}$RGB_PATH" >&6
13463 cat >>confdefs.h <<EOF
13464 #define RGB_PATH "$cf_path"
13468 if test "$RGB_PATH" = no
13473 ### use option --with-bool to override bool's type
13474 echo "$as_me:13474: checking for type of bool" >&5
13475 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13477 # Check whether --with-bool or --without-bool was given.
13478 if test "${with_bool+set}" = set; then
13479 withval="$with_bool"
13480 NCURSES_BOOL="$withval"
13484 echo "$as_me:13484: result: $NCURSES_BOOL" >&5
13485 echo "${ECHO_T}$NCURSES_BOOL" >&6
13487 echo "$as_me:13487: checking for alternate terminal capabilities file" >&5
13488 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13490 # Check whether --with-caps or --without-caps was given.
13491 if test "${with_caps+set}" = set; then
13492 withval="$with_caps"
13493 TERMINFO_CAPS=Caps.$withval
13497 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13498 echo "$as_me:13498: result: $TERMINFO_CAPS" >&5
13499 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13501 ### use option --with-chtype to override chtype's type
13502 echo "$as_me:13502: checking for type of chtype" >&5
13503 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13505 # Check whether --with-chtype or --without-chtype was given.
13506 if test "${with_chtype+set}" = set; then
13507 withval="$with_chtype"
13508 NCURSES_CHTYPE="$withval"
13510 NCURSES_CHTYPE=$cf_dft_chtype
13512 echo "$as_me:13512: result: $NCURSES_CHTYPE" >&5
13513 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13515 ### use option --with-ospeed to override ospeed's type
13516 echo "$as_me:13516: checking for type of ospeed" >&5
13517 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13519 # Check whether --with-ospeed or --without-ospeed was given.
13520 if test "${with_ospeed+set}" = set; then
13521 withval="$with_ospeed"
13522 NCURSES_OSPEED="$withval"
13524 NCURSES_OSPEED=short
13526 echo "$as_me:13526: result: $NCURSES_OSPEED" >&5
13527 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13529 ### use option --with-mmask-t to override mmask_t's type
13530 echo "$as_me:13530: checking for type of mmask_t" >&5
13531 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13533 # Check whether --with-mmask-t or --without-mmask-t was given.
13534 if test "${with_mmask_t+set}" = set; then
13535 withval="$with_mmask_t"
13536 NCURSES_MMASK_T="$withval"
13538 NCURSES_MMASK_T=$cf_dft_mmask_t
13540 echo "$as_me:13540: result: $NCURSES_MMASK_T" >&5
13541 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13543 ### use option --with-ccharw-max to override CCHARW_MAX size
13544 echo "$as_me:13544: checking for size CCHARW_MAX" >&5
13545 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13547 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13548 if test "${with_ccharw_max+set}" = set; then
13549 withval="$with_ccharw_max"
13550 NCURSES_CCHARW_MAX="$withval"
13552 NCURSES_CCHARW_MAX=5
13554 echo "$as_me:13554: result: $NCURSES_CCHARW_MAX" >&5
13555 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13557 echo "$as_me:13557: checking for ANSI C header files" >&5
13558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13559 if test "${ac_cv_header_stdc+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 cat >conftest.$ac_ext <<_ACEOF
13563 #line 13563 "configure"
13564 #include "confdefs.h"
13565 #include <stdlib.h>
13566 #include <stdarg.h>
13567 #include <string.h>
13571 if { (eval echo "$as_me:13571: \"$ac_cpp conftest.$ac_ext\"") >&5
13572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13574 egrep -v '^ *\+' conftest.er1 >conftest.err
13576 cat conftest.err >&5
13577 echo "$as_me:13577: \$? = $ac_status" >&5
13578 (exit $ac_status); } >/dev/null; then
13579 if test -s conftest.err; then
13580 ac_cpp_err=$ac_c_preproc_warn_flag
13587 if test -z "$ac_cpp_err"; then
13588 ac_cv_header_stdc=yes
13590 echo "$as_me: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13592 ac_cv_header_stdc=no
13594 rm -f conftest.err conftest.$ac_ext
13596 if test $ac_cv_header_stdc = yes; then
13597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line 13599 "configure"
13600 #include "confdefs.h"
13601 #include <string.h>
13604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13605 egrep "memchr" >/dev/null 2>&1; then
13608 ac_cv_header_stdc=no
13614 if test $ac_cv_header_stdc = yes; then
13615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13616 cat >conftest.$ac_ext <<_ACEOF
13617 #line 13617 "configure"
13618 #include "confdefs.h"
13619 #include <stdlib.h>
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 egrep "free" >/dev/null 2>&1; then
13626 ac_cv_header_stdc=no
13632 if test $ac_cv_header_stdc = yes; then
13633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13634 if test "$cross_compiling" = yes; then
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line 13638 "configure"
13639 #include "confdefs.h"
13641 #if ((' ' & 0x0FF) == 0x020)
13642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13645 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13646 || ('j' <= (c) && (c) <= 'r') \
13647 || ('s' <= (c) && (c) <= 'z'))
13648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13656 for (i = 0; i < 256; i++)
13657 if (XOR (islower (i), ISLOWER (i))
13658 || toupper (i) != TOUPPER (i))
13659 $ac_main_return(2);
13660 $ac_main_return (0);
13663 rm -f conftest$ac_exeext
13664 if { (eval echo "$as_me:13664: \"$ac_link\"") >&5
13665 (eval $ac_link) 2>&5
13667 echo "$as_me:13667: \$? = $ac_status" >&5
13668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13669 { (eval echo "$as_me:13669: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:13672: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13676 echo "$as_me: program exited with status $ac_status" >&5
13677 echo "$as_me: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 ac_cv_header_stdc=no
13681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13685 echo "$as_me:13685: result: $ac_cv_header_stdc" >&5
13686 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13687 if test $ac_cv_header_stdc = yes; then
13689 cat >>confdefs.h <<\EOF
13690 #define STDC_HEADERS 1
13695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13697 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13698 inttypes.h stdint.h unistd.h
13700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 echo "$as_me:13701: checking for $ac_header" >&5
13702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 cat >conftest.$ac_ext <<_ACEOF
13707 #line 13707 "configure"
13708 #include "confdefs.h"
13709 $ac_includes_default
13710 #include <$ac_header>
13712 rm -f conftest.$ac_objext
13713 if { (eval echo "$as_me:13713: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13716 echo "$as_me:13716: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (eval echo "$as_me:13719: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:13722: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 eval "$as_ac_Header=yes"
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 eval "$as_ac_Header=no"
13730 rm -f conftest.$ac_objext conftest.$ac_ext
13732 echo "$as_me:13732: result: `eval echo '${'$as_ac_Header'}'`" >&5
13733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13735 cat >>confdefs.h <<EOF
13736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13742 echo "$as_me:13742: checking for signed char" >&5
13743 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13744 if test "${ac_cv_type_signed_char+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 cat >conftest.$ac_ext <<_ACEOF
13748 #line 13748 "configure"
13749 #include "confdefs.h"
13750 $ac_includes_default
13754 if ((signed char *) 0)
13756 if (sizeof (signed char))
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:13763: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>&5
13766 echo "$as_me:13766: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:13769: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_type_signed_char=yes
13776 echo "$as_me: failed program was:" >&5
13777 cat conftest.$ac_ext >&5
13778 ac_cv_type_signed_char=no
13780 rm -f conftest.$ac_objext conftest.$ac_ext
13782 echo "$as_me:13782: result: $ac_cv_type_signed_char" >&5
13783 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13785 echo "$as_me:13785: checking size of signed char" >&5
13786 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13787 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 if test "$ac_cv_type_signed_char" = yes; then
13791 if test "$cross_compiling" = yes; then
13792 # Depending upon the size, compute the lo and hi bounds.
13793 cat >conftest.$ac_ext <<_ACEOF
13794 #line 13794 "configure"
13795 #include "confdefs.h"
13796 $ac_includes_default
13800 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:13806: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>&5
13809 echo "$as_me:13809: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (eval echo "$as_me:13812: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:13815: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13819 cat >conftest.$ac_ext <<_ACEOF
13820 #line 13820 "configure"
13821 #include "confdefs.h"
13822 $ac_includes_default
13826 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13831 rm -f conftest.$ac_objext
13832 if { (eval echo "$as_me:13832: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>&5
13835 echo "$as_me:13835: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -s conftest.$ac_objext'
13838 { (eval echo "$as_me:13838: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:13841: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_hi=$ac_mid; break
13845 echo "$as_me: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13849 rm -f conftest.$ac_objext conftest.$ac_ext
13852 echo "$as_me: failed program was:" >&5
13853 cat conftest.$ac_ext >&5
13856 cat >conftest.$ac_ext <<_ACEOF
13857 #line 13857 "configure"
13858 #include "confdefs.h"
13859 $ac_includes_default
13863 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13868 rm -f conftest.$ac_objext
13869 if { (eval echo "$as_me:13869: \"$ac_compile\"") >&5
13870 (eval $ac_compile) 2>&5
13872 echo "$as_me:13872: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:13875: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:13878: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_lo=$ac_mid; break
13882 echo "$as_me: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13886 rm -f conftest.$ac_objext conftest.$ac_ext
13889 rm -f conftest.$ac_objext conftest.$ac_ext
13890 # Binary search between lo and hi bounds.
13891 while test "x$ac_lo" != "x$ac_hi"; do
13892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13893 cat >conftest.$ac_ext <<_ACEOF
13894 #line 13894 "configure"
13895 #include "confdefs.h"
13896 $ac_includes_default
13900 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:13906: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>&5
13909 echo "$as_me:13909: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -s conftest.$ac_objext'
13912 { (eval echo "$as_me:13912: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13915 echo "$as_me:13915: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13919 echo "$as_me: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 ac_lo=`expr $ac_mid + 1`
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13925 ac_cv_sizeof_signed_char=$ac_lo
13927 if test "$cross_compiling" = yes; then
13928 { { echo "$as_me:13928: error: cannot run test program while cross compiling" >&5
13929 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13930 { (exit 1); exit 1; }; }
13932 cat >conftest.$ac_ext <<_ACEOF
13933 #line 13933 "configure"
13934 #include "confdefs.h"
13935 $ac_includes_default
13939 FILE *f = fopen ("conftest.val", "w");
13941 $ac_main_return (1);
13942 fprintf (f, "%d", (sizeof (signed char)));
13948 rm -f conftest$ac_exeext
13949 if { (eval echo "$as_me:13949: \"$ac_link\"") >&5
13950 (eval $ac_link) 2>&5
13952 echo "$as_me:13952: \$? = $ac_status" >&5
13953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13954 { (eval echo "$as_me:13954: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:13957: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_sizeof_signed_char=`cat conftest.val`
13961 echo "$as_me: program exited with status $ac_status" >&5
13962 echo "$as_me: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13965 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13970 ac_cv_sizeof_signed_char=0
13973 echo "$as_me:13973: result: $ac_cv_sizeof_signed_char" >&5
13974 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13975 cat >>confdefs.h <<EOF
13976 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13979 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13980 NCURSES_SBOOL="signed char"
13982 NCURSES_SBOOL="char"
13984 echo "$as_me:13984: checking if you want to use signed Boolean array in term.h" >&5
13985 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13987 # Check whether --enable-signed-char or --disable-signed-char was given.
13988 if test "${enable_signed_char+set}" = set; then
13989 enableval="$enable_signed_char"
13990 with_signed_char=$enableval
13992 with_signed_char=no
13994 echo "$as_me:13994: result: $with_signed_char" >&5
13995 echo "${ECHO_T}$with_signed_char" >&6
13996 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13998 ### use option --with-tparm-arg to override tparm's argument type
13999 echo "$as_me:13999: checking for type of tparm args" >&5
14000 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14002 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14003 if test "${with_tparm_arg+set}" = set; then
14004 withval="$with_tparm_arg"
14005 NCURSES_TPARM_ARG="$withval"
14007 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14009 echo "$as_me:14009: result: $NCURSES_TPARM_ARG" >&5
14010 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14012 ### Enable compiling-in rcs id's
14013 echo "$as_me:14013: checking if RCS identifiers should be compiled-in" >&5
14014 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14016 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14017 if test "${with_rcs_ids+set}" = set; then
14018 withval="$with_rcs_ids"
14019 with_rcs_ids=$withval
14023 echo "$as_me:14023: result: $with_rcs_ids" >&5
14024 echo "${ECHO_T}$with_rcs_ids" >&6
14025 test "x$with_rcs_ids" = xyes &&
14026 cat >>confdefs.h <<\EOF
14027 #define USE_RCS_IDS 1
14030 ###############################################################################
14032 echo "$as_me:14032: checking format of man-pages" >&5
14033 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14035 # Check whether --with-manpage-format or --without-manpage-format was given.
14036 if test "${with_manpage_format+set}" = set; then
14037 withval="$with_manpage_format"
14038 MANPAGE_FORMAT=$withval
14040 MANPAGE_FORMAT=unknown
14043 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14044 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14048 case $MANPAGE_FORMAT in
14050 if test -z "$MANPATH" ; then
14051 MANPATH="/usr/man:/usr/share/man"
14054 # look for the 'date' man-page (it's most likely to be installed!)
14060 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14061 for cf_dir in $MANPATH; do
14062 test -z "$cf_dir" && cf_dir=/usr/man
14063 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
14065 cf_test=`echo $cf_name | sed -e 's/*//'`
14066 if test "x$cf_test" = "x$cf_name" ; then
14069 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14070 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14071 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14072 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14086 # if we found a match in either man* or cat*, stop looking
14087 if test -n "$MANPAGE_FORMAT" ; then
14089 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14090 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14096 test $cf_found=yes && break
14099 # only check the first directory in $MANPATH where we find manpages
14100 if test -n "$MANPAGE_FORMAT" ; then
14104 # if we did not find the example, just assume it is normal
14105 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14109 for cf_option in $MANPAGE_FORMAT; do
14111 (gzip|compress|BSDI|normal|formatted|catonly)
14114 cf_unknown="$cf_unknown $cf_option"
14121 echo "$as_me:14121: result: $MANPAGE_FORMAT" >&5
14122 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14123 if test -n "$cf_unknown" ; then
14124 { echo "$as_me:14124: WARNING: Unexpected manpage-format $cf_unknown" >&5
14125 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14128 echo "$as_me:14128: checking for manpage renaming" >&5
14129 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14131 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14132 if test "${with_manpage_renames+set}" = set; then
14133 withval="$with_manpage_renames"
14134 MANPAGE_RENAMES=$withval
14136 MANPAGE_RENAMES=yes
14139 case ".$MANPAGE_RENAMES" in
14143 # Debian 'man' program?
14144 if test -f /etc/debian_version ; then
14145 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
14152 if test "$MANPAGE_RENAMES" != no ; then
14153 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
14154 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
14155 elif test ! -f $MANPAGE_RENAMES ; then
14156 { { echo "$as_me:14156: error: not a filename: $MANPAGE_RENAMES" >&5
14157 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14158 { (exit 1); exit 1; }; }
14161 test ! -d man && mkdir man
14163 # Construct a sed-script to perform renaming within man-pages
14164 if test -n "$MANPAGE_RENAMES" ; then
14165 test ! -d man && mkdir man
14166 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
14170 echo "$as_me:14170: result: $MANPAGE_RENAMES" >&5
14171 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14173 echo "$as_me:14173: checking if manpage aliases will be installed" >&5
14174 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14176 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14177 if test "${with_manpage_aliases+set}" = set; then
14178 withval="$with_manpage_aliases"
14179 MANPAGE_ALIASES=$withval
14181 MANPAGE_ALIASES=yes
14184 echo "$as_me:14184: result: $MANPAGE_ALIASES" >&5
14185 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14189 cf_use_symlinks=yes
14196 MANPAGE_SYMLINKS=no
14197 if test "$MANPAGE_ALIASES" = yes ; then
14198 echo "$as_me:14198: checking if manpage symlinks should be used" >&5
14199 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14201 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14202 if test "${with_manpage_symlinks+set}" = set; then
14203 withval="$with_manpage_symlinks"
14204 MANPAGE_SYMLINKS=$withval
14206 MANPAGE_SYMLINKS=$cf_use_symlinks
14209 if test "$$cf_use_symlinks" = no; then
14210 if test "$MANPAGE_SYMLINKS" = yes ; then
14211 { echo "$as_me:14211: WARNING: cannot make symlinks" >&5
14212 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14213 MANPAGE_SYMLINKS=no
14217 echo "$as_me:14217: result: $MANPAGE_SYMLINKS" >&5
14218 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14221 echo "$as_me:14221: checking for manpage tbl" >&5
14222 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14224 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14225 if test "${with_manpage_tbl+set}" = set; then
14226 withval="$with_manpage_tbl"
14227 MANPAGE_TBL=$withval
14232 echo "$as_me:14232: result: $MANPAGE_TBL" >&5
14233 echo "${ECHO_T}$MANPAGE_TBL" >&6
14235 if test "$prefix" = "NONE" ; then
14236 cf_prefix="$ac_default_prefix"
14238 cf_prefix="$prefix"
14241 case "$MANPAGE_FORMAT" in
14256 test ! -d man && mkdir man
14260 case "$MANPAGE_FORMAT" in
14263 cf_compress=compress
14271 cf_edit_man=./edit_man.sh
14272 cf_man_alias=`pwd`/man_alias.sed
14274 cat >$cf_edit_man <<CF_EOF
14276 # this script is generated by the configure-script CF_MAN_PAGES macro.
14278 prefix="$cf_prefix"
14279 datarootdir="$datarootdir"
14282 NCURSES_MAJOR="$NCURSES_MAJOR"
14283 NCURSES_MINOR="$NCURSES_MINOR"
14284 NCURSES_PATCH="$NCURSES_PATCH"
14286 NCURSES_OSPEED="$NCURSES_OSPEED"
14287 TERMINFO="$TERMINFO"
14290 INSTALL_DATA="$INSTALL_DATA"
14292 transform="$program_transform_name"
14294 TMP=\${TMPDIR:=/tmp}/man\$\$
14295 trap "rm -f \$TMP" 0 1 2 3 15
14307 top_srcdir=\$srcdir/..
14310 if test "\$form" = normal ; then
14311 if test "$cf_format" = yes ; then
14312 if test "$cf_inboth" = no ; then
14313 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14317 cf_subdir=\$mandir/man
14318 cf_tables=$MANPAGE_TBL
14320 cf_subdir=\$mandir/cat
14324 # process the list of source-files
14329 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14330 if test \$verb = installing ; then
14331 if test ! -d \$cf_subdir\${section} ; then
14332 mkdir -p \$cf_subdir\$section
14336 # replace variables in man page
14337 if test ! -f $cf_man_alias ; then
14338 cat >>$cf_man_alias <<-CF_EOF2
14339 s,@DATADIR@,\$datadir,g
14340 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14341 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14342 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14343 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14344 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14345 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14348 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14350 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14351 cf_name=`echo $cf_name|sed "$program_transform_name"`
14352 cat >>$cf_edit_man <<-CF_EOF
14353 s,@$cf_NAME@,$cf_name,g
14357 cat >>$cf_edit_man <<CF_EOF
14359 echo "...made $cf_man_alias"
14363 cf_source=\`basename \$i\`
14364 inalias=\$cf_source
14365 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
14366 if test ! -f \$inalias ; then
14367 echo .. skipped \$cf_source
14372 if test "$MANPAGE_ALIASES" != no ; then
14373 cat >>$cf_edit_man <<CF_EOF
14375 test $with_curses_h = yes && nCurses=ncurses.3x
14376 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
14380 if test "$MANPAGE_RENAMES" = no ; then
14381 cat >>$cf_edit_man <<CF_EOF
14382 # perform program transformations for section 1 man pages
14383 if test \$section = 1 ; then
14384 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14386 cf_target=\$cf_subdir\${section}/\$cf_source
14390 cat >>$cf_edit_man <<CF_EOF
14391 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14392 if test -z "\$cf_target" ; then
14393 echo '? missing rename for '\$cf_source
14394 cf_target="\$cf_source"
14396 cf_target="\$cf_subdir\${section}/\${cf_target}"
14401 cat >>$cf_edit_man <<CF_EOF
14402 sed -f $cf_man_alias \\
14405 if test -f $MANPAGE_RENAMES ; then
14406 cat >>$cf_edit_man <<CF_EOF
14407 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
14410 cat >>$cf_edit_man <<CF_EOF
14415 cat >>$cf_edit_man <<CF_EOF
14416 if test \$cf_tables = yes ; then
14417 tbl \$TMP >\$TMP.out
14422 if test $with_overwrite != yes ; then
14423 cat >>$cf_edit_man <<CF_EOF
14424 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14429 if test $with_curses_h != yes ; then
14430 cat >>$cf_edit_man <<CF_EOF
14431 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14436 cat >>$cf_edit_man <<CF_EOF
14437 if test \$form = format ; then
14438 nroff -man \$TMP >\$TMP.out
14443 if test -n "$cf_compress" ; then
14444 cat >>$cf_edit_man <<CF_EOF
14445 if test \$verb = installing ; then
14446 if ( $cf_compress -f \$TMP )
14448 mv \$TMP.$cf_so_strip \$TMP
14451 cf_target="\$cf_target.$cf_so_strip"
14455 case "$MANPAGE_FORMAT" in
14457 cat >>$cf_edit_man <<CF_EOF
14458 if test \$form = format ; then
14459 # BSDI installs only .0 suffixes in the cat directories
14460 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
14466 cat >>$cf_edit_man <<CF_EOF
14467 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
14468 if test \$verb = installing ; then
14469 echo \$verb \$cf_target
14470 \$INSTALL_DATA \$TMP \$cf_target
14471 test -d \$cf_subdir\${section} &&
14472 test -n "\$aliases" && (
14473 cd \$cf_subdir\${section} && (
14474 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
14475 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
14476 cf_target=\`basename \$cf_target\`
14477 for cf_alias in \$aliases
14479 if test \$section = 1 ; then
14480 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14483 if test "$MANPAGE_SYMLINKS" = yes ; then
14484 if test -f \$cf_alias\${suffix} ; then
14485 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
14490 echo .. \$verb alias \$cf_alias\${suffix}
14494 cat >>$cf_edit_man <<CF_EOF
14495 $LN_S \$cf_target \$cf_alias\${suffix}
14499 cat >>$cf_edit_man <<CF_EOF
14500 rm -f \$cf_alias\${suffix}
14501 $LN_S \$cf_target \$cf_alias\${suffix}
14505 cat >>$cf_edit_man <<CF_EOF
14506 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14507 echo ".so \$cf_source" >\$TMP
14509 if test -n "$cf_compress" ; then
14510 cat >>$cf_edit_man <<CF_EOF
14511 if test -n "$cf_so_strip" ; then
14512 $cf_compress -f \$TMP
14513 mv \$TMP.$cf_so_strip \$TMP
14517 cat >>$cf_edit_man <<CF_EOF
14518 echo .. \$verb alias \$cf_alias\${suffix}
14519 rm -f \$cf_alias\${suffix}
14520 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
14525 elif test \$verb = removing ; then
14526 test -f \$cf_target && (
14527 echo \$verb \$cf_target
14530 test -d \$cf_subdir\${section} &&
14531 test -n "\$aliases" && (
14532 cd \$cf_subdir\${section} && (
14533 for cf_alias in \$aliases
14535 if test \$section = 1 ; then
14536 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14539 echo .. \$verb alias \$cf_alias\${suffix}
14540 rm -f \$cf_alias\${suffix}
14552 if test $cf_inboth = yes ; then
14553 if test \$form != format ; then
14554 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14560 chmod 755 $cf_edit_man
14562 ###############################################################################
14564 ### Note that some functions (such as const) are normally disabled anyway.
14565 echo "$as_me:14565: checking if you want to build with function extensions" >&5
14566 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14568 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14569 if test "${enable_ext_funcs+set}" = set; then
14570 enableval="$enable_ext_funcs"
14571 with_ext_funcs=$enableval
14575 echo "$as_me:14575: result: $with_ext_funcs" >&5
14576 echo "${ECHO_T}$with_ext_funcs" >&6
14577 if test "x$with_ext_funcs" = xyes ; then
14578 NCURSES_EXT_FUNCS=1
14580 cat >>confdefs.h <<\EOF
14581 #define NCURSES_EXT_FUNCS 1
14584 cat >>confdefs.h <<\EOF
14585 #define HAVE_ASSUME_DEFAULT_COLORS 1
14588 cat >>confdefs.h <<\EOF
14589 #define HAVE_CURSES_VERSION 1
14592 cat >>confdefs.h <<\EOF
14593 #define HAVE_HAS_KEY 1
14596 cat >>confdefs.h <<\EOF
14597 #define HAVE_RESIZETERM 1
14600 cat >>confdefs.h <<\EOF
14601 #define HAVE_RESIZE_TERM 1
14604 cat >>confdefs.h <<\EOF
14605 #define HAVE_TERM_ENTRY_H 1
14608 cat >>confdefs.h <<\EOF
14609 #define HAVE_USE_DEFAULT_COLORS 1
14612 cat >>confdefs.h <<\EOF
14613 #define HAVE_USE_EXTENDED_NAMES 1
14616 cat >>confdefs.h <<\EOF
14617 #define HAVE_USE_SCREEN 1
14620 cat >>confdefs.h <<\EOF
14621 #define HAVE_USE_WINDOW 1
14624 cat >>confdefs.h <<\EOF
14625 #define HAVE_WRESIZE 1
14628 GENERATED_EXT_FUNCS=generated
14629 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14631 NCURSES_EXT_FUNCS=0
14632 GENERATED_EXT_FUNCS=
14635 echo "$as_me:14635: checking if you want to build with SCREEN extensions" >&5
14636 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14638 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14639 if test "${enable_sp_funcs+set}" = set; then
14640 enableval="$enable_sp_funcs"
14641 with_sp_funcs=$enableval
14643 with_sp_funcs=$cf_dft_ext_spfuncs
14645 echo "$as_me:14645: result: $with_sp_funcs" >&5
14646 echo "${ECHO_T}$with_sp_funcs" >&6
14647 if test "x$with_sp_funcs" = xyes ; then
14650 cat >>confdefs.h <<\EOF
14651 #define NCURSES_SP_FUNCS 1
14654 cat >>confdefs.h <<\EOF
14655 #define HAVE_TPUTS_SP 1
14658 GENERATED_SP_FUNCS=generated
14661 GENERATED_SP_FUNCS=
14664 echo "$as_me:14664: checking if you want to build with terminal-driver" >&5
14665 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14667 # Check whether --enable-term-driver or --disable-term-driver was given.
14668 if test "${enable_term_driver+set}" = set; then
14669 enableval="$enable_term_driver"
14670 with_term_driver=$enableval
14672 with_term_driver=no
14674 echo "$as_me:14674: result: $with_term_driver" >&5
14675 echo "${ECHO_T}$with_term_driver" >&6
14676 if test "x$with_term_driver" = xyes ; then
14678 cat >>confdefs.h <<\EOF
14679 #define USE_TERM_DRIVER 1
14682 if test "x$with_termlib" != xno ; then
14683 { { echo "$as_me:14683: error: The term-driver option conflicts with the termlib option" >&5
14684 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14685 { (exit 1); exit 1; }; }
14687 if test "x$with_sp_funcs" != xyes ; then
14688 { { echo "$as_me:14688: error: The term-driver option relies upon sp-funcs" >&5
14689 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14690 { (exit 1); exit 1; }; }
14694 ### use option --enable-const to turn on use of const beyond that in XSI.
14695 echo "$as_me:14695: checking for extended use of const keyword" >&5
14696 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14698 # Check whether --enable-const or --disable-const was given.
14699 if test "${enable_const+set}" = set; then
14700 enableval="$enable_const"
14701 with_ext_const=$enableval
14703 with_ext_const=$cf_dft_ext_const
14705 echo "$as_me:14705: result: $with_ext_const" >&5
14706 echo "${ECHO_T}$with_ext_const" >&6
14707 NCURSES_CONST='/*nothing*/'
14708 if test "x$with_ext_const" = xyes ; then
14709 NCURSES_CONST=const
14712 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14713 echo "$as_me:14713: checking if you want to use extended colors" >&5
14714 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14716 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14717 if test "${enable_ext_colors+set}" = set; then
14718 enableval="$enable_ext_colors"
14719 with_ext_colors=$enableval
14721 with_ext_colors=$cf_dft_ext_colors
14723 echo "$as_me:14723: result: $with_ext_colors" >&5
14724 echo "${ECHO_T}$with_ext_colors" >&6
14725 NCURSES_EXT_COLORS=0
14726 if test "x$with_ext_colors" = xyes ; then
14727 if test "x$with_widec" != xyes ; then
14728 { echo "$as_me:14728: WARNING: This option applies only to wide-character library" >&5
14729 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14731 # cannot be ABI 5 since it changes sizeof(cchar_t)
14733 if test "${with_abi_version+set}" != set; then
14734 case $cf_cv_rel_version in
14736 cf_cv_rel_version=6.0
14737 cf_cv_abi_version=6
14738 { echo "$as_me:14738: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14739 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14744 NCURSES_EXT_COLORS=1
14746 cat >>confdefs.h <<\EOF
14747 #define NCURSES_EXT_COLORS 1
14750 cat >>confdefs.h <<\EOF
14751 #define HAVE_ALLOC_PAIR 1
14754 cat >>confdefs.h <<\EOF
14755 #define HAVE_INIT_EXTENDED_COLOR 1
14758 cat >>confdefs.h <<\EOF
14759 #define HAVE_RESET_COLOR_PAIRS 1
14765 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14766 echo "$as_me:14766: checking if you want to use extended mouse encoding" >&5
14767 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14769 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14770 if test "${enable_ext_mouse+set}" = set; then
14771 enableval="$enable_ext_mouse"
14772 with_ext_mouse=$enableval
14774 with_ext_mouse=$cf_dft_ext_mouse
14776 echo "$as_me:14776: result: $with_ext_mouse" >&5
14777 echo "${ECHO_T}$with_ext_mouse" >&6
14778 NCURSES_MOUSE_VERSION=1
14779 if test "x$with_ext_mouse" = xyes ; then
14780 NCURSES_MOUSE_VERSION=2
14782 if test "${with_abi_version+set}" != set; then
14783 case $cf_cv_rel_version in
14785 cf_cv_rel_version=6.0
14786 cf_cv_abi_version=6
14787 { echo "$as_me:14787: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14788 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14795 ### use option --enable-ext-putwin to turn on extended screendumps
14796 echo "$as_me:14796: checking if you want to use extended putwin/screendump" >&5
14797 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14799 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14800 if test "${enable_ext_putwin+set}" = set; then
14801 enableval="$enable_ext_putwin"
14802 with_ext_putwin=$enableval
14804 with_ext_putwin=$cf_dft_ext_putwin
14806 echo "$as_me:14806: result: $with_ext_putwin" >&5
14807 echo "${ECHO_T}$with_ext_putwin" >&6
14808 if test "x$with_ext_putwin" = xyes ; then
14810 cat >>confdefs.h <<\EOF
14811 #define NCURSES_EXT_PUTWIN 1
14816 echo "$as_me:14816: checking if you want \$NCURSES_NO_PADDING code" >&5
14817 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14819 # Check whether --enable-no-padding or --disable-no-padding was given.
14820 if test "${enable_no_padding+set}" = set; then
14821 enableval="$enable_no_padding"
14822 with_no_padding=$enableval
14824 with_no_padding=$with_ext_funcs
14826 echo "$as_me:14826: result: $with_no_padding" >&5
14827 echo "${ECHO_T}$with_no_padding" >&6
14828 test "x$with_no_padding" = xyes &&
14829 cat >>confdefs.h <<\EOF
14830 #define NCURSES_NO_PADDING 1
14833 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14834 echo "$as_me:14834: checking if you want SIGWINCH handler" >&5
14835 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14837 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14838 if test "${enable_sigwinch+set}" = set; then
14839 enableval="$enable_sigwinch"
14840 with_sigwinch=$enableval
14842 with_sigwinch=$with_ext_funcs
14844 echo "$as_me:14844: result: $with_sigwinch" >&5
14845 echo "${ECHO_T}$with_sigwinch" >&6
14846 test "x$with_sigwinch" = xyes &&
14847 cat >>confdefs.h <<\EOF
14848 #define USE_SIGWINCH 1
14851 ### use option --enable-tcap-names to allow user to define new capabilities
14852 echo "$as_me:14852: checking if you want user-definable terminal capabilities like termcap" >&5
14853 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14855 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14856 if test "${enable_tcap_names+set}" = set; then
14857 enableval="$enable_tcap_names"
14858 with_tcap_names=$enableval
14860 with_tcap_names=$with_ext_funcs
14862 echo "$as_me:14862: result: $with_tcap_names" >&5
14863 echo "${ECHO_T}$with_tcap_names" >&6
14865 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14867 ##############################################################################
14869 echo "$as_me:14869: checking if you want to link with the pthread library" >&5
14870 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14872 # Check whether --with-pthread or --without-pthread was given.
14873 if test "${with_pthread+set}" = set; then
14874 withval="$with_pthread"
14875 with_pthread=$withval
14879 echo "$as_me:14879: result: $with_pthread" >&5
14880 echo "${ECHO_T}$with_pthread" >&6
14882 if test "$with_pthread" != no ; then
14883 echo "$as_me:14883: checking for pthread.h" >&5
14884 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14885 if test "${ac_cv_header_pthread_h+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 cat >conftest.$ac_ext <<_ACEOF
14889 #line 14889 "configure"
14890 #include "confdefs.h"
14891 #include <pthread.h>
14893 if { (eval echo "$as_me:14893: \"$ac_cpp conftest.$ac_ext\"") >&5
14894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14896 egrep -v '^ *\+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 (exit $ac_status); } >/dev/null; then
14901 if test -s conftest.err; then
14902 ac_cpp_err=$ac_c_preproc_warn_flag
14909 if test -z "$ac_cpp_err"; then
14910 ac_cv_header_pthread_h=yes
14912 echo "$as_me: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14914 ac_cv_header_pthread_h=no
14916 rm -f conftest.err conftest.$ac_ext
14918 echo "$as_me:14918: result: $ac_cv_header_pthread_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14920 if test $ac_cv_header_pthread_h = yes; then
14922 cat >>confdefs.h <<\EOF
14923 #define HAVE_PTHREADS_H 1
14926 for cf_lib_pthread in pthread c_r
14928 echo "$as_me:14928: checking if we can link with the $cf_lib_pthread library" >&5
14929 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14930 cf_save_LIBS="$LIBS"
14932 cf_add_libs="$LIBS"
14935 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14936 # filter duplicates
14937 for cf_add_1lib in $cf_add_0lib; do
14938 for cf_add_2lib in $cf_add_libs; do
14939 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14944 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14946 LIBS="$cf_add_libs"
14948 cat >conftest.$ac_ext <<_ACEOF
14949 #line 14949 "configure"
14950 #include "confdefs.h"
14952 #include <pthread.h>
14958 int rc = pthread_create(0,0,0,0);
14959 int r2 = pthread_mutexattr_settype(0, 0);
14965 rm -f conftest.$ac_objext conftest$ac_exeext
14966 if { (eval echo "$as_me:14966: \"$ac_link\"") >&5
14967 (eval $ac_link) 2>&5
14969 echo "$as_me:14969: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -s conftest$ac_exeext'
14972 { (eval echo "$as_me:14972: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:14975: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14984 LIBS="$cf_save_LIBS"
14985 echo "$as_me:14985: result: $with_pthread" >&5
14986 echo "${ECHO_T}$with_pthread" >&6
14987 test "$with_pthread" = yes && break
14990 if test "$with_pthread" = yes ; then
14992 cf_add_libs="$LIBS"
14995 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14996 # filter duplicates
14997 for cf_add_1lib in $cf_add_0lib; do
14998 for cf_add_2lib in $cf_add_libs; do
14999 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15004 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15006 LIBS="$cf_add_libs"
15008 cat >>confdefs.h <<\EOF
15009 #define HAVE_LIBPTHREADS 1
15013 { { echo "$as_me:15013: error: Cannot link with pthread library" >&5
15014 echo "$as_me: error: Cannot link with pthread library" >&2;}
15015 { (exit 1); exit 1; }; }
15022 if test "x$with_pthread" != xno; then
15023 echo "$as_me:15023: checking for pthread_kill" >&5
15024 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15025 if test "${ac_cv_func_pthread_kill+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line 15029 "configure"
15030 #include "confdefs.h"
15031 #define pthread_kill autoconf_temporary
15032 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15033 #undef pthread_kill
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15041 char pthread_kill (void);
15047 /* The GNU C library defines stubs for functions which it implements
15048 to always fail with ENOSYS. Some functions are actually named
15049 something starting with __ and the normal name is an alias. */
15050 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15051 #error found stub for pthread_kill
15054 return pthread_kill ();
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (eval echo "$as_me:15060: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>&5
15063 echo "$as_me:15063: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -s conftest$ac_exeext'
15066 { (eval echo "$as_me:15066: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:15069: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_func_pthread_kill=yes
15073 echo "$as_me: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15075 ac_cv_func_pthread_kill=no
15077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15079 echo "$as_me:15079: result: $ac_cv_func_pthread_kill" >&5
15080 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15081 if test $ac_cv_func_pthread_kill = yes; then
15083 echo "$as_me:15083: checking if you want to allow EINTR in wgetch with pthreads" >&5
15084 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15086 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15087 if test "${enable_pthreads_eintr+set}" = set; then
15088 enableval="$enable_pthreads_eintr"
15089 use_pthreads_eintr=$enableval
15091 use_pthreads_eintr=no
15093 echo "$as_me:15093: result: $use_pthreads_eintr" >&5
15094 echo "${ECHO_T}$use_pthreads_eintr" >&6
15095 if test "x$use_pthreads_eintr" = xyes ; then
15097 cat >>confdefs.h <<\EOF
15098 #define USE_PTHREADS_EINTR 1
15104 echo "$as_me:15104: checking if you want to use weak-symbols for pthreads" >&5
15105 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15107 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15108 if test "${enable_weak_symbols+set}" = set; then
15109 enableval="$enable_weak_symbols"
15110 use_weak_symbols=$enableval
15112 use_weak_symbols=no
15114 echo "$as_me:15114: result: $use_weak_symbols" >&5
15115 echo "${ECHO_T}$use_weak_symbols" >&6
15116 if test "x$use_weak_symbols" = xyes ; then
15118 echo "$as_me:15118: checking if $CC supports weak symbols" >&5
15119 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15120 if test "${cf_cv_weak_symbols+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.$ac_ext <<_ACEOF
15125 #line 15125 "configure"
15126 #include "confdefs.h"
15133 #if defined(__GNUC__)
15134 # if defined __USE_ISOC99
15135 # define _cat_pragma(exp) _Pragma(#exp)
15136 # define _weak_pragma(exp) _cat_pragma(weak name)
15138 # define _weak_pragma(exp)
15140 # define _declare(name) __extension__ extern __typeof__(name) name
15141 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15144 weak_symbol(fopen);
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:15151: \"$ac_compile\"") >&5
15152 (eval $ac_compile) 2>&5
15154 echo "$as_me:15154: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (eval echo "$as_me:15157: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15160 echo "$as_me:15160: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 cf_cv_weak_symbols=yes
15164 echo "$as_me: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15166 cf_cv_weak_symbols=no
15168 rm -f conftest.$ac_objext conftest.$ac_ext
15171 echo "$as_me:15171: result: $cf_cv_weak_symbols" >&5
15172 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15175 cf_cv_weak_symbols=no
15178 if test "x$cf_cv_weak_symbols" = xyes ; then
15180 cat >>confdefs.h <<\EOF
15181 #define USE_WEAK_SYMBOLS 1
15188 if test "x$with_pthread" = "xyes" ; then
15190 cat >>confdefs.h <<\EOF
15191 #define USE_PTHREADS 1
15194 enable_reentrant=yes
15195 if test "x$cf_cv_weak_symbols" = xyes ; then
15198 cf_add_libs="$PRIVATE_LIBS"
15201 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15202 # filter duplicates
15203 for cf_add_1lib in $cf_add_0lib; do
15204 for cf_add_2lib in $cf_add_libs; do
15205 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15210 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15212 PRIVATE_LIBS="$cf_add_libs"
15217 # Reentrant code has to be opaque; there's little advantage to making ncurses
15218 # opaque outside of that, so there is no --enable-opaque option. We can use
15219 # this option without --with-pthreads, but this will be always set for
15221 echo "$as_me:15221: checking if you want reentrant code" >&5
15222 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15224 # Check whether --enable-reentrant or --disable-reentrant was given.
15225 if test "${enable_reentrant+set}" = set; then
15226 enableval="$enable_reentrant"
15227 with_reentrant=$enableval
15231 echo "$as_me:15231: result: $with_reentrant" >&5
15232 echo "${ECHO_T}$with_reentrant" >&6
15233 if test "x$with_reentrant" = xyes ; then
15234 cf_cv_enable_reentrant=1
15235 cf_cv_enable_opaque="NCURSES_INTERNALS"
15237 if test "x$cf_cv_weak_symbols" = xyes ; then
15239 # remove pthread library from $LIBS
15240 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15242 cf_add_libs="$TEST_LIBS"
15245 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15246 # filter duplicates
15247 for cf_add_1lib in $cf_add_0lib; do
15248 for cf_add_2lib in $cf_add_libs; do
15249 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15254 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15256 TEST_LIBS="$cf_add_libs"
15258 cf_add_libs="$TEST_LIBS2"
15261 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15262 # filter duplicates
15263 for cf_add_1lib in $cf_add_0lib; do
15264 for cf_add_2lib in $cf_add_libs; do
15265 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15270 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15272 TEST_LIBS2="$cf_add_libs"
15274 cf_add_libs="$PRIVATE_LIBS"
15277 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15278 # filter duplicates
15279 for cf_add_1lib in $cf_add_0lib; do
15280 for cf_add_2lib in $cf_add_libs; do
15281 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15286 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15288 PRIVATE_LIBS="$cf_add_libs"
15291 # when not using weak symbols but with_reentrant,
15292 # add 't' to the library suffix on all platforms
15293 # except cygwin, where we only do that if ALSO
15294 # compiling with full thread support.
15296 (*cygwin* | *msys*)
15297 if test "$with_pthread" = "yes" ; then
15298 if test "x$disable_lib_suffixes" = "xno" ; then
15299 LIB_SUFFIX="t${LIB_SUFFIX}"
15303 if test "x$disable_lib_suffixes" = "xno" ; then
15304 LIB_SUFFIX="t${LIB_SUFFIX}"
15310 cat >>confdefs.h <<\EOF
15311 #define USE_REENTRANT 1
15314 if test "${with_abi_version+set}" != set; then
15315 case $cf_cv_rel_version in
15317 cf_cv_rel_version=6.0
15318 cf_cv_abi_version=6
15319 { echo "$as_me:15319: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15320 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15326 cf_cv_enable_reentrant=0
15327 cf_cv_enable_opaque="NCURSES_OPAQUE"
15328 NCURSES_SIZE_T=short
15331 echo "$as_me:15331: checking if you want opaque curses-library structures" >&5
15332 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15334 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15335 if test "${enable_opaque_curses+set}" = set; then
15336 enableval="$enable_opaque_curses"
15337 test "$enableval" != yes && enableval=no
15338 if test "$enableval" != "no" ; then
15339 enable_opaque_curses=yes
15342 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15343 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15349 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15350 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15353 echo "$as_me:15353: result: $enable_opaque_curses" >&5
15354 echo "${ECHO_T}$enable_opaque_curses" >&6
15356 test "$cf_cv_enable_reentrant" = 1 && \
15357 test "$enable_opaque_curses" = no && \
15358 { { echo "$as_me:15358: error: reentrant configuration requires opaque library" >&5
15359 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15360 { (exit 1); exit 1; }; }
15362 echo "$as_me:15362: checking if you want opaque form-library structures" >&5
15363 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15365 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15366 if test "${enable_opaque_form+set}" = set; then
15367 enableval="$enable_opaque_form"
15368 enable_opaque_form=yes
15370 enable_opaque_form=no
15372 echo "$as_me:15372: result: $enable_opaque_form" >&5
15373 echo "${ECHO_T}$enable_opaque_form" >&6
15375 echo "$as_me:15375: checking if you want opaque menu-library structures" >&5
15376 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15378 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15379 if test "${enable_opaque_menu+set}" = set; then
15380 enableval="$enable_opaque_menu"
15381 enable_opaque_menu=yes
15383 enable_opaque_menu=no
15385 echo "$as_me:15385: result: $enable_opaque_menu" >&5
15386 echo "${ECHO_T}$enable_opaque_menu" >&6
15388 echo "$as_me:15388: checking if you want opaque panel-library structures" >&5
15389 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15391 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15392 if test "${enable_opaque_panel+set}" = set; then
15393 enableval="$enable_opaque_panel"
15394 enable_opaque_panel=yes
15396 enable_opaque_panel=no
15398 echo "$as_me:15398: result: $enable_opaque_panel" >&5
15399 echo "${ECHO_T}$enable_opaque_panel" >&6
15401 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15402 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15403 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15404 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15406 ### Allow using a different wrap-prefix
15407 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15408 echo "$as_me:15408: checking for prefix used to wrap public variables" >&5
15409 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15411 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15412 if test "${with_wrap_prefix+set}" = set; then
15413 withval="$with_wrap_prefix"
15414 NCURSES_WRAP_PREFIX=$withval
15416 NCURSES_WRAP_PREFIX=_nc_
15418 echo "$as_me:15418: result: $NCURSES_WRAP_PREFIX" >&5
15419 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15421 NCURSES_WRAP_PREFIX=_nc_
15424 cat >>confdefs.h <<EOF
15425 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15428 ###############################################################################
15429 # These options are relatively safe to experiment with.
15431 echo "$as_me:15431: checking if you want all development code" >&5
15432 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15434 # Check whether --with-develop or --without-develop was given.
15435 if test "${with_develop+set}" = set; then
15436 withval="$with_develop"
15437 with_develop=$withval
15441 echo "$as_me:15441: result: $with_develop" >&5
15442 echo "${ECHO_T}$with_develop" >&6
15444 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15445 echo "$as_me:15445: checking if you want hard-tabs code" >&5
15446 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15448 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15449 if test "${enable_hard_tabs+set}" = set; then
15450 enableval="$enable_hard_tabs"
15453 enable_hard_tabs=$with_develop
15455 echo "$as_me:15455: result: $enable_hard_tabs" >&5
15456 echo "${ECHO_T}$enable_hard_tabs" >&6
15457 test "x$enable_hard_tabs" = xyes &&
15458 cat >>confdefs.h <<\EOF
15459 #define USE_HARD_TABS 1
15462 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15463 echo "$as_me:15463: checking if you want limited support for xmc" >&5
15464 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15466 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15467 if test "${enable_xmc_glitch+set}" = set; then
15468 enableval="$enable_xmc_glitch"
15471 enable_xmc_glitch=$with_develop
15473 echo "$as_me:15473: result: $enable_xmc_glitch" >&5
15474 echo "${ECHO_T}$enable_xmc_glitch" >&6
15475 test "x$enable_xmc_glitch" = xyes &&
15476 cat >>confdefs.h <<\EOF
15477 #define USE_XMC_SUPPORT 1
15480 ###############################################################################
15481 # These are just experimental, probably should not be in a package:
15483 echo "$as_me:15483: checking if you do not want to assume colors are white-on-black" >&5
15484 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15486 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15487 if test "${enable_assumed_color+set}" = set; then
15488 enableval="$enable_assumed_color"
15489 with_assumed_color=$enableval
15491 with_assumed_color=yes
15493 echo "$as_me:15493: result: $with_assumed_color" >&5
15494 echo "${ECHO_T}$with_assumed_color" >&6
15495 test "x$with_assumed_color" = xyes &&
15496 cat >>confdefs.h <<\EOF
15497 #define USE_ASSUMED_COLOR 1
15500 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15501 echo "$as_me:15501: checking if you want hashmap scrolling-optimization code" >&5
15502 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15504 # Check whether --enable-hashmap or --disable-hashmap was given.
15505 if test "${enable_hashmap+set}" = set; then
15506 enableval="$enable_hashmap"
15507 with_hashmap=$enableval
15511 echo "$as_me:15511: result: $with_hashmap" >&5
15512 echo "${ECHO_T}$with_hashmap" >&6
15513 test "x$with_hashmap" = xyes &&
15514 cat >>confdefs.h <<\EOF
15515 #define USE_HASHMAP 1
15518 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15519 echo "$as_me:15519: checking if you want colorfgbg code" >&5
15520 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15522 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15523 if test "${enable_colorfgbg+set}" = set; then
15524 enableval="$enable_colorfgbg"
15525 with_colorfgbg=$enableval
15529 echo "$as_me:15529: result: $with_colorfgbg" >&5
15530 echo "${ECHO_T}$with_colorfgbg" >&6
15531 test "x$with_colorfgbg" = xyes &&
15532 cat >>confdefs.h <<\EOF
15533 #define USE_COLORFGBG 1
15536 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15537 echo "$as_me:15537: checking if you want to use gcc -fvisibility option" >&5
15538 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15540 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15541 if test "${enable_fvisibility+set}" = set; then
15542 enableval="$enable_fvisibility"
15543 cf_with_fvisibility=$enableval
15545 cf_with_fvisibility=no
15547 echo "$as_me:15547: result: $cf_with_fvisibility" >&5
15548 echo "${ECHO_T}$cf_with_fvisibility" >&6
15551 NCURSES_CXX_IMPEXP=
15552 if test "x$cf_with_fvisibility" = xyes; then
15554 echo "$as_me:15554: checking if $CC -fvisibility=hidden option works" >&5
15555 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15556 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cf_save_cflags="$CFLAGS"
15561 CFLAGS="$CFLAGS -fvisibility=hidden"
15562 cat >conftest.$ac_ext <<_ACEOF
15563 #line 15563 "configure"
15564 #include "confdefs.h"
15566 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15572 if (somefunc()) return 1;
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (eval echo "$as_me:15579: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15582 echo "$as_me:15582: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:15585: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:15588: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 cf_cv_fvisibility_hidden=yes
15592 echo "$as_me: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 cf_cv_fvisibility_hidden=no
15596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597 CFLAGS=$cf_save_cflags
15600 echo "$as_me:15600: result: $cf_cv_fvisibility_hidden" >&5
15601 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
15603 if test "x$cf_cv_fvisibility_hidden" = xyes
15609 cf_new_extra_cppflags=
15611 for cf_add_cflags in -fvisibility=hidden
15613 case $cf_fix_cppflags in
15615 case $cf_add_cflags in
15616 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15617 case $cf_add_cflags in
15619 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15621 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15622 && test -z "${cf_tst_cflags}" \
15623 && cf_fix_cppflags=yes
15625 if test $cf_fix_cppflags = yes ; then
15627 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15628 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15631 elif test "${cf_tst_cflags}" = "\"'" ; then
15633 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15634 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15640 case "$CPPFLAGS" in
15644 case $cf_add_cflags in
15646 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15648 CPPFLAGS=`echo "$CPPFLAGS" | \
15649 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15650 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15655 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15656 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15663 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15664 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15671 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15672 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15674 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15676 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15677 && test -z "${cf_tst_cflags}" \
15678 && cf_fix_cppflags=no
15683 if test -n "$cf_new_cflags" ; then
15685 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15686 CFLAGS="${CFLAGS}$cf_new_cflags"
15690 if test -n "$cf_new_cppflags" ; then
15692 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15693 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15697 if test -n "$cf_new_extra_cppflags" ; then
15699 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15700 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15704 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
15709 ac_cpp='$CXXCPP $CPPFLAGS'
15710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15713 ac_main_return=return
15715 echo "$as_me:15715: checking if $CXX -fvisibility=hidden option works" >&5
15716 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
15717 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 cf_save_cflags="$CXXFLAGS"
15722 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15723 cat >conftest.$ac_ext <<_ACEOF
15724 #line 15724 "configure"
15725 #include "confdefs.h"
15727 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15733 if (somefunc()) return 1;
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (eval echo "$as_me:15740: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15743 echo "$as_me:15743: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -s conftest$ac_exeext'
15746 { (eval echo "$as_me:15746: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:15749: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 cf_cv_fvisibility_hidden2=yes
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15755 cf_cv_fvisibility_hidden2=no
15757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15758 CXXFLAGS=$cf_save_cflags
15761 echo "$as_me:15761: result: $cf_cv_fvisibility_hidden2" >&5
15762 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
15764 if test "x$cf_cv_fvisibility_hidden2" = xyes
15767 cf_save_CXXFLAGS="$CFLAGS"
15773 cf_new_extra_cppflags=
15775 for cf_add_cflags in -fvisibility=hidden
15777 case $cf_fix_cppflags in
15779 case $cf_add_cflags in
15780 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15781 case $cf_add_cflags in
15783 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15785 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15786 && test -z "${cf_tst_cflags}" \
15787 && cf_fix_cppflags=yes
15789 if test $cf_fix_cppflags = yes ; then
15791 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15792 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15795 elif test "${cf_tst_cflags}" = "\"'" ; then
15797 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15798 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15804 case "$CPPFLAGS" in
15808 case $cf_add_cflags in
15810 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15812 CPPFLAGS=`echo "$CPPFLAGS" | \
15813 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15814 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15819 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15820 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15827 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15828 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15835 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15836 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15838 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15840 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15841 && test -z "${cf_tst_cflags}" \
15842 && cf_fix_cppflags=no
15847 if test -n "$cf_new_cflags" ; then
15849 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15850 CFLAGS="${CFLAGS}$cf_new_cflags"
15854 if test -n "$cf_new_cppflags" ; then
15856 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15857 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15861 if test -n "$cf_new_extra_cppflags" ; then
15863 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15864 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15869 CFLAGS="$cf_save_CXXFLAGS"
15871 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
15874 ac_cpp='$CPP $CPPFLAGS'
15875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15878 ac_main_return=return
15883 ### use option --enable-interop to turn on use of bindings used for interop
15884 echo "$as_me:15884: checking if you want interop bindings" >&5
15885 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
15887 # Check whether --enable-interop or --disable-interop was given.
15888 if test "${enable_interop+set}" = set; then
15889 enableval="$enable_interop"
15890 with_exp_interop=$enableval
15892 with_exp_interop=$cf_dft_interop
15894 echo "$as_me:15894: result: $with_exp_interop" >&5
15895 echo "${ECHO_T}$with_exp_interop" >&6
15897 NCURSES_INTEROP_FUNCS=0
15898 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
15900 echo "$as_me:15900: checking if you want experimental safe-sprintf code" >&5
15901 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
15903 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
15904 if test "${enable_safe_sprintf+set}" = set; then
15905 enableval="$enable_safe_sprintf"
15906 with_safe_sprintf=$enableval
15908 with_safe_sprintf=no
15910 echo "$as_me:15910: result: $with_safe_sprintf" >&5
15911 echo "${ECHO_T}$with_safe_sprintf" >&6
15913 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
15914 # when hashmap is used scroll hints are useless
15915 if test "$with_hashmap" = no ; then
15916 echo "$as_me:15916: checking if you want to experiment without scrolling-hints code" >&5
15917 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
15919 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
15920 if test "${enable_scroll_hints+set}" = set; then
15921 enableval="$enable_scroll_hints"
15922 with_scroll_hints=$enableval
15924 with_scroll_hints=yes
15926 echo "$as_me:15926: result: $with_scroll_hints" >&5
15927 echo "${ECHO_T}$with_scroll_hints" >&6
15928 test "x$with_scroll_hints" = xyes &&
15929 cat >>confdefs.h <<\EOF
15930 #define USE_SCROLL_HINTS 1
15935 echo "$as_me:15935: checking if you want wgetch-events code" >&5
15936 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
15938 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
15939 if test "${enable_wgetch_events+set}" = set; then
15940 enableval="$enable_wgetch_events"
15941 with_wgetch_events=$enableval
15943 with_wgetch_events=no
15945 echo "$as_me:15945: result: $with_wgetch_events" >&5
15946 echo "${ECHO_T}$with_wgetch_events" >&6
15947 test "x$with_wgetch_events" = xyes &&
15948 cat >>confdefs.h <<\EOF
15949 #define NCURSES_WGETCH_EVENTS 1
15952 ###############################################################################
15954 ### use option --disable-echo to suppress full display compiling commands
15956 echo "$as_me:15956: checking if you want to see long compiling messages" >&5
15957 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
15959 # Check whether --enable-echo or --disable-echo was given.
15960 if test "${enable_echo+set}" = set; then
15961 enableval="$enable_echo"
15962 test "$enableval" != no && enableval=yes
15963 if test "$enableval" != "yes" ; then
15966 ECHO_LD='@echo linking $@;'
15967 RULE_CC='@echo compiling $<'
15968 SHOW_CC='@echo compiling $@'
15990 echo "$as_me:15990: result: $enableval" >&5
15991 echo "${ECHO_T}$enableval" >&6
15993 if test "x$enable_echo" = xyes; then
15996 ECHO_LINK='@ echo linking $@ ... ;'
15997 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
15998 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16001 # --disable-stripping is used for debugging
16003 echo "$as_me:16003: checking if you want to install stripped executables" >&5
16004 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16006 # Check whether --enable-stripping or --disable-stripping was given.
16007 if test "${enable_stripping+set}" = set; then
16008 enableval="$enable_stripping"
16009 test "$enableval" != no && enableval=yes
16010 if test "$enableval" != "yes" ; then
16020 echo "$as_me:16020: result: $with_stripping" >&5
16021 echo "${ECHO_T}$with_stripping" >&6
16023 if test "$with_stripping" = yes
16030 : ${INSTALL:=install}
16031 echo "$as_me:16031: checking if install accepts -p option" >&5
16032 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16033 if test "${cf_cv_install_p+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16043 if test -f conftest.out/conftest.in
16045 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16046 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16047 if test -s conftest.err
16051 cf_cv_install_p=yes
16062 echo "$as_me:16062: result: $cf_cv_install_p" >&5
16063 echo "${ECHO_T}$cf_cv_install_p" >&6
16065 echo "$as_me:16065: checking if install needs to be told about ownership" >&5
16066 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16067 case `$ac_config_guess` in
16076 echo "$as_me:16076: result: $with_install_o" >&5
16077 echo "${ECHO_T}$with_install_o" >&6
16078 if test "x$with_install_o" = xyes
16080 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'`
16085 # If we're avoiding relinking of shared libraries during install, that is to
16086 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16087 # the install program has "-p" (for preserving timestamps).
16088 cf_cv_do_reranlib=yes
16089 if test "x$cf_cv_install_p" = xyes
16091 if test "x$cf_cv_do_relink" != xyes
16093 cf_cv_do_reranlib=no
16095 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16099 ### use option --enable-warnings to turn on all gcc warnings
16100 echo "$as_me:16100: checking if you want to see compiler warnings" >&5
16101 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
16103 # Check whether --enable-warnings or --disable-warnings was given.
16104 if test "${enable_warnings+set}" = set; then
16105 enableval="$enable_warnings"
16106 with_warnings=$enableval
16108 echo "$as_me:16108: result: $with_warnings" >&5
16109 echo "${ECHO_T}$with_warnings" >&6
16111 if test "x$with_warnings" = "xyes"; then
16113 ADAFLAGS="$ADAFLAGS -gnatg"
16115 if test "x$have_x" = xyes; then
16117 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16118 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16119 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16120 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16121 for cf_X_CFLAGS in $X_CFLAGS
16123 case "x$cf_X_CFLAGS" in
16125 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16128 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16133 cat >conftest.$ac_ext <<_ACEOF
16134 #line 16134 "configure"
16135 #include "confdefs.h"
16137 #include <stdlib.h>
16138 #include <X11/Intrinsic.h>
16143 String foo = malloc(1); (void)foo
16148 rm -f conftest.$ac_objext
16149 if { (eval echo "$as_me:16149: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>&5
16152 echo "$as_me:16152: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -s conftest.$ac_objext'
16155 { (eval echo "$as_me:16155: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:16158: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16161 echo "$as_me:16161: checking for X11/Xt const-feature" >&5
16162 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16163 if test "${cf_cv_const_x_string+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 cat >conftest.$ac_ext <<_ACEOF
16168 #line 16168 "configure"
16169 #include "confdefs.h"
16171 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16172 #undef XTSTRINGDEFINES /* X11R5 and later */
16173 #include <stdlib.h>
16174 #include <X11/Intrinsic.h>
16179 String foo = malloc(1); *foo = 0
16184 rm -f conftest.$ac_objext
16185 if { (eval echo "$as_me:16185: \"$ac_compile\"") >&5
16186 (eval $ac_compile) 2>&5
16188 echo "$as_me:16188: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:16191: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16194 echo "$as_me:16194: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16197 cf_cv_const_x_string=no
16200 echo "$as_me: failed program was:" >&5
16201 cat conftest.$ac_ext >&5
16203 cf_cv_const_x_string=yes
16206 rm -f conftest.$ac_objext conftest.$ac_ext
16209 echo "$as_me:16209: result: $cf_cv_const_x_string" >&5
16210 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16212 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16213 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16214 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16216 case $cf_cv_const_x_string in
16219 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16220 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16225 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16226 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16232 echo "$as_me: failed program was:" >&5
16233 cat conftest.$ac_ext >&5
16235 rm -f conftest.$ac_objext conftest.$ac_ext
16237 cat > conftest.$ac_ext <<EOF
16238 #line 16238 "${as_me:-configure}"
16239 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16241 if test "$INTEL_COMPILER" = yes
16243 # The "-wdXXX" options suppress warnings:
16244 # remark #1419: external declaration in primary source file
16245 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16246 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16247 # remark #193: zero used for undefined preprocessing identifier
16248 # remark #593: variable "curs_sb_left_arrow" was set but never used
16249 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16250 # remark #869: parameter "tw" was never referenced
16251 # remark #981: operands are evaluated in unspecified order
16252 # warning #279: controlling expression is constant
16254 { echo "$as_me:16254: checking for $CC warning options..." >&5
16255 echo "$as_me: checking for $CC warning options..." >&6;}
16256 cf_save_CFLAGS="$CFLAGS"
16257 EXTRA_CFLAGS="-Wall"
16269 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16270 if { (eval echo "$as_me:16270: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>&5
16273 echo "$as_me:16273: \$? = $ac_status" >&5
16274 (exit $ac_status); }; then
16275 test -n "$verbose" && echo "$as_me:16275: result: ... -$cf_opt" >&5
16276 echo "${ECHO_T}... -$cf_opt" >&6
16277 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16280 CFLAGS="$cf_save_CFLAGS"
16281 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16283 { echo "$as_me:16283: checking for $CC warning options..." >&5
16284 echo "$as_me: checking for $CC warning options..." >&6;}
16285 cf_save_CFLAGS="$CFLAGS"
16288 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16289 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16290 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16291 for cf_opt in W Wall \
16292 Wbad-function-cast \
16295 Wdeclaration-after-statement \
16298 Wmissing-declarations \
16299 Wmissing-prototypes \
16303 Wstrict-prototypes \
16304 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16306 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16307 if { (eval echo "$as_me:16307: \"$ac_compile\"") >&5
16308 (eval $ac_compile) 2>&5
16310 echo "$as_me:16310: \$? = $ac_status" >&5
16311 (exit $ac_status); }; then
16312 test -n "$verbose" && echo "$as_me:16312: result: ... -$cf_opt" >&5
16313 echo "${ECHO_T}... -$cf_opt" >&6
16316 case $GCC_VERSION in
16318 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16320 echo "${as_me:-configure}:16320: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16326 case $GCC_VERSION in
16328 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16330 echo "${as_me:-configure}:16330: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16336 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16339 CFLAGS="$cf_save_CFLAGS"
16343 if test "x$cf_with_cxx" = xyes ; then
16347 if test "$GCC" = yes ; then
16350 echo "$as_me:16350: checking if this is really Intel C++ compiler" >&5
16351 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
16352 cf_save_CFLAGS="$CXXFLAGS"
16353 CXXFLAGS="$CXXFLAGS -no-gcc"
16354 cat >conftest.$ac_ext <<_ACEOF
16355 #line 16355 "configure"
16356 #include "confdefs.h"
16362 #ifdef __INTEL_COMPILER
16371 rm -f conftest.$ac_objext
16372 if { (eval echo "$as_me:16372: \"$ac_compile\"") >&5
16373 (eval $ac_compile) 2>&5
16375 echo "$as_me:16375: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -s conftest.$ac_objext'
16378 { (eval echo "$as_me:16378: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:16381: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 INTEL_CPLUSPLUS=yes
16384 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16387 echo "$as_me: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16390 rm -f conftest.$ac_objext conftest.$ac_ext
16391 CXXFLAGS="$cf_save_CFLAGS"
16392 echo "$as_me:16392: result: $INTEL_CPLUSPLUS" >&5
16393 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
16400 if test "$GCC" = yes ; then
16401 echo "$as_me:16401: checking if this is really Clang C++ compiler" >&5
16402 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
16403 cf_save_CFLAGS="$CXXFLAGS"
16404 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
16405 cat >conftest.$ac_ext <<_ACEOF
16406 #line 16406 "configure"
16407 #include "confdefs.h"
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:16423: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>&5
16426 echo "$as_me:16426: \$? = $ac_status" >&5
16427 (exit $ac_status); } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:16429: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:16432: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 CLANG_CPLUSPLUS=yes
16435 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16438 echo "$as_me: failed program was:" >&5
16439 cat conftest.$ac_ext >&5
16441 rm -f conftest.$ac_objext conftest.$ac_ext
16442 CXXFLAGS="$cf_save_CFLAGS"
16443 echo "$as_me:16443: result: $CLANG_CPLUSPLUS" >&5
16444 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
16448 ac_cpp='$CXXCPP $CPPFLAGS'
16449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16452 ac_main_return=return
16454 cat > conftest.$ac_ext <<EOF
16455 #line 16455 "configure"
16456 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16459 if test "$INTEL_CPLUSPLUS" = yes
16461 # The "-wdXXX" options suppress warnings:
16462 # remark #1419: external declaration in primary source file
16463 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16464 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16465 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16466 # remark #193: zero used for undefined preprocessing identifier
16467 # remark #593: variable "curs_sb_left_arrow" was set but never used
16468 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16469 # remark #869: parameter "tw" was never referenced
16470 # remark #981: operands are evaluated in unspecified order
16471 # warning #269: invalid format string conversion
16473 { echo "$as_me:16473: checking for $CC warning options..." >&5
16474 echo "$as_me: checking for $CC warning options..." >&6;}
16475 cf_save_CXXFLAGS="$CXXFLAGS"
16476 EXTRA_CXXFLAGS="-Wall"
16489 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
16490 if { (eval echo "$as_me:16490: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>&5
16493 echo "$as_me:16493: \$? = $ac_status" >&5
16494 (exit $ac_status); }; then
16495 test -n "$verbose" && echo "$as_me:16495: result: ... -$cf_opt" >&5
16496 echo "${ECHO_T}... -$cf_opt" >&6
16497 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16500 CXXFLAGS="$cf_save_CXXFLAGS"
16502 elif test "$GXX" = yes
16504 { echo "$as_me:16504: checking for $CXX warning options..." >&5
16505 echo "$as_me: checking for $CXX warning options..." >&6;}
16506 cf_save_CXXFLAGS="$CXXFLAGS"
16507 EXTRA_CXXFLAGS="-W -Wall"
16508 cf_gxx_extra_warnings=""
16509 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
16510 case "$GCC_VERSION" in
16514 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
16521 Wignored-qualifiers \
16523 Woverloaded-virtual \
16531 Wundef $cf_gxx_extra_warnings Wno-unused
16533 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
16534 if { (eval echo "$as_me:16534: \"$ac_compile\"") >&5
16535 (eval $ac_compile) 2>&5
16537 echo "$as_me:16537: \$? = $ac_status" >&5
16538 (exit $ac_status); }; then
16539 test -n "$verbose" && echo "$as_me:16539: result: ... -$cf_opt" >&5
16540 echo "${ECHO_T}... -$cf_opt" >&6
16541 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16543 test -n "$verbose" && echo "$as_me:16543: result: ... no -$cf_opt" >&5
16544 echo "${ECHO_T}... no -$cf_opt" >&6
16547 CXXFLAGS="$cf_save_CXXFLAGS"
16552 ac_cpp='$CPP $CPPFLAGS'
16553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16556 ac_main_return=return
16561 if test "$GCC" = yes
16563 cat > conftest.i <<EOF
16565 #define GCC_PRINTF 0
16568 #define GCC_SCANF 0
16570 #ifndef GCC_NORETURN
16571 #define GCC_NORETURN /* nothing */
16574 #define GCC_UNUSED /* nothing */
16577 if test "$GCC" = yes
16579 { echo "$as_me:16579: checking for $CC __attribute__ directives..." >&5
16580 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16581 cat > conftest.$ac_ext <<EOF
16582 #line 16582 "${as_me:-configure}"
16583 #include "confdefs.h"
16584 #include "conftest.h"
16585 #include "conftest.i"
16587 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16589 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16592 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16594 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16596 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16597 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16598 extern void foo(void) GCC_NORETURN;
16599 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
16601 cf_printf_attribute=no
16602 cf_scanf_attribute=no
16603 for cf_attribute in scanf printf unused noreturn
16606 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16608 cf_directive="__attribute__(($cf_attribute))"
16609 echo "checking for $CC $cf_directive" 1>&5
16611 case $cf_attribute in
16613 cf_printf_attribute=yes
16614 cat >conftest.h <<EOF
16615 #define GCC_$cf_ATTRIBUTE 1
16619 cf_scanf_attribute=yes
16620 cat >conftest.h <<EOF
16621 #define GCC_$cf_ATTRIBUTE 1
16625 cat >conftest.h <<EOF
16626 #define GCC_$cf_ATTRIBUTE $cf_directive
16631 if { (eval echo "$as_me:16631: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>&5
16634 echo "$as_me:16634: \$? = $ac_status" >&5
16635 (exit $ac_status); }; then
16636 test -n "$verbose" && echo "$as_me:16636: result: ... $cf_attribute" >&5
16637 echo "${ECHO_T}... $cf_attribute" >&6
16638 cat conftest.h >>confdefs.h
16639 case $cf_attribute in
16642 cat >>confdefs.h <<EOF
16643 #define GCC_NORETURN $cf_directive
16648 cf_value='/* nothing */'
16649 if test "$cf_printf_attribute" != no ; then
16650 cf_value='__attribute__((format(printf,fmt,var)))'
16652 cat >>confdefs.h <<\EOF
16653 #define GCC_PRINTF 1
16658 cat >>confdefs.h <<EOF
16659 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16664 cf_value='/* nothing */'
16665 if test "$cf_scanf_attribute" != no ; then
16666 cf_value='__attribute__((format(scanf,fmt,var)))'
16668 cat >>confdefs.h <<\EOF
16669 #define GCC_SCANF 1
16674 cat >>confdefs.h <<EOF
16675 #define GCC_SCANFLIKE(fmt,var) $cf_value
16681 cat >>confdefs.h <<EOF
16682 #define GCC_UNUSED $cf_directive
16690 fgrep define conftest.i >>confdefs.h
16695 echo "$as_me:16695: checking if you want to work around bogus compiler/loader warnings" >&5
16696 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
16698 # Check whether --enable-string-hacks or --disable-string-hacks was given.
16699 if test "${enable_string_hacks+set}" = set; then
16700 enableval="$enable_string_hacks"
16701 with_string_hacks=$enableval
16703 with_string_hacks=no
16705 echo "$as_me:16705: result: $with_string_hacks" >&5
16706 echo "${ECHO_T}$with_string_hacks" >&6
16708 if test "x$with_string_hacks" = "xyes"; then
16710 cat >>confdefs.h <<\EOF
16711 #define USE_STRING_HACKS 1
16714 { echo "$as_me:16714: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
16715 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
16716 echo "$as_me:16716: checking for strlcat" >&5
16717 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
16718 if test "${ac_cv_func_strlcat+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line 16722 "configure"
16723 #include "confdefs.h"
16724 #define strlcat autoconf_temporary
16725 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16732 /* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734 char strlcat (void);
16740 /* The GNU C library defines stubs for functions which it implements
16741 to always fail with ENOSYS. Some functions are actually named
16742 something starting with __ and the normal name is an alias. */
16743 #if defined (__stub_strlcat) || defined (__stub___strlcat)
16744 #error found stub for strlcat
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (eval echo "$as_me:16753: \"$ac_link\"") >&5
16754 (eval $ac_link) 2>&5
16756 echo "$as_me:16756: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -s conftest$ac_exeext'
16759 { (eval echo "$as_me:16759: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 echo "$as_me:16762: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_func_strlcat=yes
16766 echo "$as_me: failed program was:" >&5
16767 cat conftest.$ac_ext >&5
16768 ac_cv_func_strlcat=no
16770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16772 echo "$as_me:16772: result: $ac_cv_func_strlcat" >&5
16773 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
16774 if test $ac_cv_func_strlcat = yes; then
16776 cat >>confdefs.h <<\EOF
16777 #define HAVE_STRLCAT 1
16782 echo "$as_me:16782: checking for strlcat in -lbsd" >&5
16783 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
16784 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 ac_check_lib_save_LIBS=$LIBS
16789 cat >conftest.$ac_ext <<_ACEOF
16790 #line 16790 "configure"
16791 #include "confdefs.h"
16793 /* Override any gcc2 internal prototype to avoid an error. */
16797 /* We use char because int might match the return type of a gcc2
16798 builtin and then its argument prototype would still apply. */
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (eval echo "$as_me:16809: \"$ac_link\"") >&5
16810 (eval $ac_link) 2>&5
16812 echo "$as_me:16812: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:16815: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:16818: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_lib_bsd_strlcat=yes
16822 echo "$as_me: failed program was:" >&5
16823 cat conftest.$ac_ext >&5
16824 ac_cv_lib_bsd_strlcat=no
16826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16827 LIBS=$ac_check_lib_save_LIBS
16829 echo "$as_me:16829: result: $ac_cv_lib_bsd_strlcat" >&5
16830 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
16831 if test $ac_cv_lib_bsd_strlcat = yes; then
16833 cf_add_libs="$LIBS"
16836 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16837 # filter duplicates
16838 for cf_add_1lib in $cf_add_0lib; do
16839 for cf_add_2lib in $cf_add_libs; do
16840 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16845 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16847 LIBS="$cf_add_libs"
16849 for ac_header in bsd/string.h
16851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16852 echo "$as_me:16852: checking for $ac_header" >&5
16853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 cat >conftest.$ac_ext <<_ACEOF
16858 #line 16858 "configure"
16859 #include "confdefs.h"
16860 #include <$ac_header>
16862 if { (eval echo "$as_me:16862: \"$ac_cpp conftest.$ac_ext\"") >&5
16863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16865 egrep -v '^ *\+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:16868: \$? = $ac_status" >&5
16869 (exit $ac_status); } >/dev/null; then
16870 if test -s conftest.err; then
16871 ac_cpp_err=$ac_c_preproc_warn_flag
16878 if test -z "$ac_cpp_err"; then
16879 eval "$as_ac_Header=yes"
16881 echo "$as_me: failed program was:" >&5
16882 cat conftest.$ac_ext >&5
16883 eval "$as_ac_Header=no"
16885 rm -f conftest.err conftest.$ac_ext
16887 echo "$as_me:16887: result: `eval echo '${'$as_ac_Header'}'`" >&5
16888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16890 cat >>confdefs.h <<EOF
16891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16897 cat >>confdefs.h <<\EOF
16898 #define HAVE_STRLCAT 1
16905 for ac_func in strlcpy snprintf
16907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16908 echo "$as_me:16908: checking for $ac_func" >&5
16909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16910 if eval "test \"\${$as_ac_var+set}\" = set"; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 cat >conftest.$ac_ext <<_ACEOF
16914 #line 16914 "configure"
16915 #include "confdefs.h"
16916 #define $ac_func autoconf_temporary
16917 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16924 /* We use char because int might match the return type of a gcc2
16925 builtin and then its argument prototype would still apply. */
16926 char $ac_func (void);
16932 /* The GNU C library defines stubs for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16936 #error found stub for $ac_func
16939 return $ac_func ();
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:16945: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>&5
16948 echo "$as_me:16948: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:16951: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:16954: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 eval "$as_ac_var=yes"
16958 echo "$as_me: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 eval "$as_ac_var=no"
16962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16964 echo "$as_me:16964: result: `eval echo '${'$as_ac_var'}'`" >&5
16965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16966 if test `eval echo '${'$as_ac_var'}'` = yes; then
16967 cat >>confdefs.h <<EOF
16968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16976 ### use option --enable-assertions to turn on generation of assertion code
16977 echo "$as_me:16977: checking if you want to enable runtime assertions" >&5
16978 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
16980 # Check whether --enable-assertions or --disable-assertions was given.
16981 if test "${enable_assertions+set}" = set; then
16982 enableval="$enable_assertions"
16983 with_assertions=$enableval
16987 echo "$as_me:16987: result: $with_assertions" >&5
16988 echo "${ECHO_T}$with_assertions" >&6
16991 if test "$with_assertions" = no
16993 CPPFLAGS="$CPPFLAGS -DNDEBUG"
16996 ADAFLAGS="$ADAFLAGS -gnata"
17001 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17003 echo "$as_me:17003: checking if you want to use dmalloc for testing" >&5
17004 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17006 # Check whether --with-dmalloc or --without-dmalloc was given.
17007 if test "${with_dmalloc+set}" = set; then
17008 withval="$with_dmalloc"
17010 cat >>confdefs.h <<EOF
17011 #define USE_DMALLOC 1
17014 : ${with_cflags:=-g}
17015 : ${with_no_leaks:=yes}
17020 echo "$as_me:17020: result: ${with_dmalloc:-no}" >&5
17021 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17023 case .$with_cflags in
17033 cf_new_extra_cppflags=
17035 for cf_add_cflags in -g
17037 case $cf_fix_cppflags in
17039 case $cf_add_cflags in
17040 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17041 case $cf_add_cflags in
17043 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17045 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17046 && test -z "${cf_tst_cflags}" \
17047 && cf_fix_cppflags=yes
17049 if test $cf_fix_cppflags = yes ; then
17051 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17052 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17055 elif test "${cf_tst_cflags}" = "\"'" ; then
17057 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17058 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17064 case "$CPPFLAGS" in
17068 case $cf_add_cflags in
17070 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17072 CPPFLAGS=`echo "$CPPFLAGS" | \
17073 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17074 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17079 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17080 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17087 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17088 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17095 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17096 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17098 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17100 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17101 && test -z "${cf_tst_cflags}" \
17102 && cf_fix_cppflags=no
17107 if test -n "$cf_new_cflags" ; then
17109 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17110 CFLAGS="${CFLAGS}$cf_new_cflags"
17114 if test -n "$cf_new_cppflags" ; then
17116 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17117 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17121 if test -n "$cf_new_extra_cppflags" ; then
17123 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17124 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17133 if test "$with_dmalloc" = yes ; then
17134 echo "$as_me:17134: checking for dmalloc.h" >&5
17135 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17136 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 cat >conftest.$ac_ext <<_ACEOF
17140 #line 17140 "configure"
17141 #include "confdefs.h"
17142 #include <dmalloc.h>
17144 if { (eval echo "$as_me:17144: \"$ac_cpp conftest.$ac_ext\"") >&5
17145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17147 egrep -v '^ *\+' conftest.er1 >conftest.err
17149 cat conftest.err >&5
17150 echo "$as_me:17150: \$? = $ac_status" >&5
17151 (exit $ac_status); } >/dev/null; then
17152 if test -s conftest.err; then
17153 ac_cpp_err=$ac_c_preproc_warn_flag
17160 if test -z "$ac_cpp_err"; then
17161 ac_cv_header_dmalloc_h=yes
17163 echo "$as_me: failed program was:" >&5
17164 cat conftest.$ac_ext >&5
17165 ac_cv_header_dmalloc_h=no
17167 rm -f conftest.err conftest.$ac_ext
17169 echo "$as_me:17169: result: $ac_cv_header_dmalloc_h" >&5
17170 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17171 if test $ac_cv_header_dmalloc_h = yes; then
17173 echo "$as_me:17173: checking for dmalloc_debug in -ldmalloc" >&5
17174 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17175 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 ac_check_lib_save_LIBS=$LIBS
17179 LIBS="-ldmalloc $LIBS"
17180 cat >conftest.$ac_ext <<_ACEOF
17181 #line 17181 "configure"
17182 #include "confdefs.h"
17184 /* Override any gcc2 internal prototype to avoid an error. */
17188 /* We use char because int might match the return type of a gcc2
17189 builtin and then its argument prototype would still apply. */
17190 char dmalloc_debug ();
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (eval echo "$as_me:17200: \"$ac_link\"") >&5
17201 (eval $ac_link) 2>&5
17203 echo "$as_me:17203: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (eval echo "$as_me:17206: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:17209: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_lib_dmalloc_dmalloc_debug=yes
17213 echo "$as_me: failed program was:" >&5
17214 cat conftest.$ac_ext >&5
17215 ac_cv_lib_dmalloc_dmalloc_debug=no
17217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17220 echo "$as_me:17220: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17221 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17222 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17223 cat >>confdefs.h <<EOF
17224 #define HAVE_LIBDMALLOC 1
17227 LIBS="-ldmalloc $LIBS"
17235 echo "$as_me:17235: checking if you want to use dbmalloc for testing" >&5
17236 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17238 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17239 if test "${with_dbmalloc+set}" = set; then
17240 withval="$with_dbmalloc"
17242 cat >>confdefs.h <<EOF
17243 #define USE_DBMALLOC 1
17246 : ${with_cflags:=-g}
17247 : ${with_no_leaks:=yes}
17252 echo "$as_me:17252: result: ${with_dbmalloc:-no}" >&5
17253 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17255 case .$with_cflags in
17265 cf_new_extra_cppflags=
17267 for cf_add_cflags in -g
17269 case $cf_fix_cppflags in
17271 case $cf_add_cflags in
17272 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17273 case $cf_add_cflags in
17275 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17277 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17278 && test -z "${cf_tst_cflags}" \
17279 && cf_fix_cppflags=yes
17281 if test $cf_fix_cppflags = yes ; then
17283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17287 elif test "${cf_tst_cflags}" = "\"'" ; then
17289 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17290 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17296 case "$CPPFLAGS" in
17300 case $cf_add_cflags in
17302 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17304 CPPFLAGS=`echo "$CPPFLAGS" | \
17305 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17306 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17311 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17312 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17319 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17320 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17327 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17328 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17330 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17332 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17333 && test -z "${cf_tst_cflags}" \
17334 && cf_fix_cppflags=no
17339 if test -n "$cf_new_cflags" ; then
17341 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17342 CFLAGS="${CFLAGS}$cf_new_cflags"
17346 if test -n "$cf_new_cppflags" ; then
17348 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17349 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17353 if test -n "$cf_new_extra_cppflags" ; then
17355 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17356 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17365 if test "$with_dbmalloc" = yes ; then
17366 echo "$as_me:17366: checking for dbmalloc.h" >&5
17367 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17368 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 cat >conftest.$ac_ext <<_ACEOF
17372 #line 17372 "configure"
17373 #include "confdefs.h"
17374 #include <dbmalloc.h>
17376 if { (eval echo "$as_me:17376: \"$ac_cpp conftest.$ac_ext\"") >&5
17377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17379 egrep -v '^ *\+' conftest.er1 >conftest.err
17381 cat conftest.err >&5
17382 echo "$as_me:17382: \$? = $ac_status" >&5
17383 (exit $ac_status); } >/dev/null; then
17384 if test -s conftest.err; then
17385 ac_cpp_err=$ac_c_preproc_warn_flag
17392 if test -z "$ac_cpp_err"; then
17393 ac_cv_header_dbmalloc_h=yes
17395 echo "$as_me: failed program was:" >&5
17396 cat conftest.$ac_ext >&5
17397 ac_cv_header_dbmalloc_h=no
17399 rm -f conftest.err conftest.$ac_ext
17401 echo "$as_me:17401: result: $ac_cv_header_dbmalloc_h" >&5
17402 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17403 if test $ac_cv_header_dbmalloc_h = yes; then
17405 echo "$as_me:17405: checking for debug_malloc in -ldbmalloc" >&5
17406 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17407 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-ldbmalloc $LIBS"
17412 cat >conftest.$ac_ext <<_ACEOF
17413 #line 17413 "configure"
17414 #include "confdefs.h"
17416 /* Override any gcc2 internal prototype to avoid an error. */
17420 /* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
17422 char debug_malloc ();
17431 rm -f conftest.$ac_objext conftest$ac_exeext
17432 if { (eval echo "$as_me:17432: \"$ac_link\"") >&5
17433 (eval $ac_link) 2>&5
17435 echo "$as_me:17435: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -s conftest$ac_exeext'
17438 { (eval echo "$as_me:17438: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:17441: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_lib_dbmalloc_debug_malloc=yes
17445 echo "$as_me: failed program was:" >&5
17446 cat conftest.$ac_ext >&5
17447 ac_cv_lib_dbmalloc_debug_malloc=no
17449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17452 echo "$as_me:17452: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17453 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17454 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17455 cat >>confdefs.h <<EOF
17456 #define HAVE_LIBDBMALLOC 1
17459 LIBS="-ldbmalloc $LIBS"
17467 echo "$as_me:17467: checking if you want to use valgrind for testing" >&5
17468 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17470 # Check whether --with-valgrind or --without-valgrind was given.
17471 if test "${with_valgrind+set}" = set; then
17472 withval="$with_valgrind"
17474 cat >>confdefs.h <<EOF
17475 #define USE_VALGRIND 1
17478 : ${with_cflags:=-g}
17479 : ${with_no_leaks:=yes}
17484 echo "$as_me:17484: result: ${with_valgrind:-no}" >&5
17485 echo "${ECHO_T}${with_valgrind:-no}" >&6
17487 case .$with_cflags in
17497 cf_new_extra_cppflags=
17499 for cf_add_cflags in -g
17501 case $cf_fix_cppflags in
17503 case $cf_add_cflags in
17504 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17505 case $cf_add_cflags in
17507 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17509 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17510 && test -z "${cf_tst_cflags}" \
17511 && cf_fix_cppflags=yes
17513 if test $cf_fix_cppflags = yes ; then
17515 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17516 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17519 elif test "${cf_tst_cflags}" = "\"'" ; then
17521 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17522 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17528 case "$CPPFLAGS" in
17532 case $cf_add_cflags in
17534 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17536 CPPFLAGS=`echo "$CPPFLAGS" | \
17537 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17538 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17543 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17544 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17551 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17552 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17559 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17560 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17562 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17564 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17565 && test -z "${cf_tst_cflags}" \
17566 && cf_fix_cppflags=no
17571 if test -n "$cf_new_cflags" ; then
17573 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17574 CFLAGS="${CFLAGS}$cf_new_cflags"
17578 if test -n "$cf_new_cppflags" ; then
17580 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17581 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17585 if test -n "$cf_new_extra_cppflags" ; then
17587 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17588 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17597 echo "$as_me:17597: checking if you want to perform memory-leak testing" >&5
17598 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17600 # Check whether --enable-leaks or --disable-leaks was given.
17601 if test "${enable_leaks+set}" = set; then
17602 enableval="$enable_leaks"
17603 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17605 : ${with_no_leaks:=no}
17607 echo "$as_me:17607: result: $with_no_leaks" >&5
17608 echo "${ECHO_T}$with_no_leaks" >&6
17610 if test "$with_no_leaks" = yes ; then
17612 cat >>confdefs.h <<\EOF
17616 cat >>confdefs.h <<\EOF
17617 #define YY_NO_LEAKS 1
17622 cat >>confdefs.h <<\EOF
17623 #define HAVE_NC_ALLOC_H 1
17626 ### use option --enable-expanded to generate certain macros as functions
17628 # Check whether --enable-expanded or --disable-expanded was given.
17629 if test "${enable_expanded+set}" = set; then
17630 enableval="$enable_expanded"
17631 test "x$enableval" = xyes &&
17632 cat >>confdefs.h <<\EOF
17633 #define NCURSES_EXPANDED 1
17638 ### use option --disable-macros to suppress macros in favor of functions
17640 # Check whether --enable-macros or --disable-macros was given.
17641 if test "${enable_macros+set}" = set; then
17642 enableval="$enable_macros"
17643 test "$enableval" = no &&
17644 cat >>confdefs.h <<\EOF
17645 #define NCURSES_NOMACROS 1
17650 # Normally we only add trace() to the debug-library. Allow this to be
17651 # extended to all models of the ncurses library:
17653 case "$CFLAGS $CPPFLAGS" in
17659 echo "$as_me:17659: checking whether to add trace feature to all models" >&5
17660 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
17662 # Check whether --with-trace or --without-trace was given.
17663 if test "${with_trace+set}" = set; then
17664 withval="$with_trace"
17665 cf_with_trace=$withval
17667 cf_with_trace=$cf_all_traces
17669 echo "$as_me:17669: result: $cf_with_trace" >&5
17670 echo "${ECHO_T}$cf_with_trace" >&6
17672 if test "x$cf_with_trace" = xyes ; then
17679 cf_new_extra_cppflags=
17681 for cf_add_cflags in -DTRACE
17683 case $cf_fix_cppflags in
17685 case $cf_add_cflags in
17686 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17687 case $cf_add_cflags in
17689 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17691 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17692 && test -z "${cf_tst_cflags}" \
17693 && cf_fix_cppflags=yes
17695 if test $cf_fix_cppflags = yes ; then
17697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17701 elif test "${cf_tst_cflags}" = "\"'" ; then
17703 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17704 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17710 case "$CPPFLAGS" in
17714 case $cf_add_cflags in
17716 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17718 CPPFLAGS=`echo "$CPPFLAGS" | \
17719 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17720 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17725 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17726 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17733 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17734 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17741 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17742 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17744 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17746 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17747 && test -z "${cf_tst_cflags}" \
17748 && cf_fix_cppflags=no
17753 if test -n "$cf_new_cflags" ; then
17755 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17756 CFLAGS="${CFLAGS}$cf_new_cflags"
17760 if test -n "$cf_new_cppflags" ; then
17762 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17763 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17767 if test -n "$cf_new_extra_cppflags" ; then
17769 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17770 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17774 cat >>confdefs.h <<\EOF
17775 #define HAVE__TRACEF 1
17783 echo "$as_me:17783: checking if we want to use GNAT projects" >&5
17784 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17786 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17787 if test "${enable_gnat_projects+set}" = set; then
17788 enableval="$enable_gnat_projects"
17789 test "$enableval" != no && enableval=yes
17790 if test "$enableval" != "yes" ; then
17791 enable_gnat_projects=no
17793 enable_gnat_projects=yes
17797 enable_gnat_projects=yes
17800 echo "$as_me:17800: result: $enable_gnat_projects" >&5
17801 echo "${ECHO_T}$enable_gnat_projects" >&6
17803 ### Checks for libraries.
17804 case $cf_cv_system_name in
17805 (*mingw32*|*mingw64*)
17806 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
17807 # Note: WINVER may be a problem with Windows 10
17810 echo "$as_me:17810: checking for gettimeofday" >&5
17811 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17812 if test "${ac_cv_func_gettimeofday+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 cat >conftest.$ac_ext <<_ACEOF
17816 #line 17816 "configure"
17817 #include "confdefs.h"
17818 #define gettimeofday autoconf_temporary
17819 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17820 #undef gettimeofday
17826 /* We use char because int might match the return type of a gcc2
17827 builtin and then its argument prototype would still apply. */
17828 char gettimeofday (void);
17834 /* The GNU C library defines stubs for functions which it implements
17835 to always fail with ENOSYS. Some functions are actually named
17836 something starting with __ and the normal name is an alias. */
17837 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17838 #error found stub for gettimeofday
17841 return gettimeofday ();
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (eval echo "$as_me:17847: \"$ac_link\"") >&5
17848 (eval $ac_link) 2>&5
17850 echo "$as_me:17850: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -s conftest$ac_exeext'
17853 { (eval echo "$as_me:17853: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17856 echo "$as_me:17856: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_func_gettimeofday=yes
17860 echo "$as_me: failed program was:" >&5
17861 cat conftest.$ac_ext >&5
17862 ac_cv_func_gettimeofday=no
17864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17866 echo "$as_me:17866: result: $ac_cv_func_gettimeofday" >&5
17867 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17868 if test $ac_cv_func_gettimeofday = yes; then
17870 cat >>confdefs.h <<\EOF
17871 #define HAVE_GETTIMEOFDAY 1
17876 echo "$as_me:17876: checking for gettimeofday in -lbsd" >&5
17877 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
17878 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 ac_check_lib_save_LIBS=$LIBS
17883 cat >conftest.$ac_ext <<_ACEOF
17884 #line 17884 "configure"
17885 #include "confdefs.h"
17887 /* Override any gcc2 internal prototype to avoid an error. */
17891 /* We use char because int might match the return type of a gcc2
17892 builtin and then its argument prototype would still apply. */
17893 char gettimeofday ();
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:17903: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>&5
17906 echo "$as_me:17906: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -s conftest$ac_exeext'
17909 { (eval echo "$as_me:17909: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17912 echo "$as_me:17912: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914 ac_cv_lib_bsd_gettimeofday=yes
17916 echo "$as_me: failed program was:" >&5
17917 cat conftest.$ac_ext >&5
17918 ac_cv_lib_bsd_gettimeofday=no
17920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 echo "$as_me:17923: result: $ac_cv_lib_bsd_gettimeofday" >&5
17924 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
17925 if test $ac_cv_lib_bsd_gettimeofday = yes; then
17927 cat >>confdefs.h <<\EOF
17928 #define HAVE_GETTIMEOFDAY 1
17931 cf_add_libs="$LIBS"
17934 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17935 # filter duplicates
17936 for cf_add_1lib in $cf_add_0lib; do
17937 for cf_add_2lib in $cf_add_libs; do
17938 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17943 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17945 LIBS="$cf_add_libs"
17953 echo "$as_me:17953: checking if -lm needed for math functions" >&5
17954 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
17955 if test "${cf_cv_need_libm+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 cat >conftest.$ac_ext <<_ACEOF
17960 #line 17960 "configure"
17961 #include "confdefs.h"
17964 #include <stdlib.h>
17970 double x = rand(); printf("result = %g\n", pow(sin(x),x))
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (eval echo "$as_me:17976: \"$ac_link\"") >&5
17977 (eval $ac_link) 2>&5
17979 echo "$as_me:17979: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -s conftest$ac_exeext'
17982 { (eval echo "$as_me:17982: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:17985: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17989 echo "$as_me: failed program was:" >&5
17990 cat conftest.$ac_ext >&5
17991 cf_cv_need_libm=yes
17993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17995 echo "$as_me:17995: result: $cf_cv_need_libm" >&5
17996 echo "${ECHO_T}$cf_cv_need_libm" >&6
17997 if test "$cf_cv_need_libm" = yes
18002 ### Checks for header files.
18003 echo "$as_me:18003: checking for ANSI C header files" >&5
18004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18005 if test "${ac_cv_header_stdc+set}" = set; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 cat >conftest.$ac_ext <<_ACEOF
18009 #line 18009 "configure"
18010 #include "confdefs.h"
18011 #include <stdlib.h>
18012 #include <stdarg.h>
18013 #include <string.h>
18017 if { (eval echo "$as_me:18017: \"$ac_cpp conftest.$ac_ext\"") >&5
18018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18020 egrep -v '^ *\+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:18023: \$? = $ac_status" >&5
18024 (exit $ac_status); } >/dev/null; then
18025 if test -s conftest.err; then
18026 ac_cpp_err=$ac_c_preproc_warn_flag
18033 if test -z "$ac_cpp_err"; then
18034 ac_cv_header_stdc=yes
18036 echo "$as_me: failed program was:" >&5
18037 cat conftest.$ac_ext >&5
18038 ac_cv_header_stdc=no
18040 rm -f conftest.err conftest.$ac_ext
18042 if test $ac_cv_header_stdc = yes; then
18043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18044 cat >conftest.$ac_ext <<_ACEOF
18045 #line 18045 "configure"
18046 #include "confdefs.h"
18047 #include <string.h>
18050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18051 egrep "memchr" >/dev/null 2>&1; then
18054 ac_cv_header_stdc=no
18060 if test $ac_cv_header_stdc = yes; then
18061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18062 cat >conftest.$ac_ext <<_ACEOF
18063 #line 18063 "configure"
18064 #include "confdefs.h"
18065 #include <stdlib.h>
18068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18069 egrep "free" >/dev/null 2>&1; then
18072 ac_cv_header_stdc=no
18078 if test $ac_cv_header_stdc = yes; then
18079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18080 if test "$cross_compiling" = yes; then
18083 cat >conftest.$ac_ext <<_ACEOF
18084 #line 18084 "configure"
18085 #include "confdefs.h"
18087 #if ((' ' & 0x0FF) == 0x020)
18088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18091 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18092 || ('j' <= (c) && (c) <= 'r') \
18093 || ('s' <= (c) && (c) <= 'z'))
18094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18102 for (i = 0; i < 256; i++)
18103 if (XOR (islower (i), ISLOWER (i))
18104 || toupper (i) != TOUPPER (i))
18105 $ac_main_return(2);
18106 $ac_main_return (0);
18109 rm -f conftest$ac_exeext
18110 if { (eval echo "$as_me:18110: \"$ac_link\"") >&5
18111 (eval $ac_link) 2>&5
18113 echo "$as_me:18113: \$? = $ac_status" >&5
18114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18115 { (eval echo "$as_me:18115: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:18118: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18122 echo "$as_me: program exited with status $ac_status" >&5
18123 echo "$as_me: failed program was:" >&5
18124 cat conftest.$ac_ext >&5
18125 ac_cv_header_stdc=no
18127 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18131 echo "$as_me:18131: result: $ac_cv_header_stdc" >&5
18132 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18133 if test $ac_cv_header_stdc = yes; then
18135 cat >>confdefs.h <<\EOF
18136 #define STDC_HEADERS 1
18141 ac_header_dirent=no
18142 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18143 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18144 echo "$as_me:18144: checking for $ac_hdr that defines DIR" >&5
18145 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 cat >conftest.$ac_ext <<_ACEOF
18150 #line 18150 "configure"
18151 #include "confdefs.h"
18152 #include <sys/types.h>
18164 rm -f conftest.$ac_objext
18165 if { (eval echo "$as_me:18165: \"$ac_compile\"") >&5
18166 (eval $ac_compile) 2>&5
18168 echo "$as_me:18168: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -s conftest.$ac_objext'
18171 { (eval echo "$as_me:18171: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18174 echo "$as_me:18174: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 eval "$as_ac_Header=yes"
18178 echo "$as_me: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 eval "$as_ac_Header=no"
18182 rm -f conftest.$ac_objext conftest.$ac_ext
18184 echo "$as_me:18184: result: `eval echo '${'$as_ac_Header'}'`" >&5
18185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18187 cat >>confdefs.h <<EOF
18188 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18191 ac_header_dirent=$ac_hdr; break
18195 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18196 if test $ac_header_dirent = dirent.h; then
18197 echo "$as_me:18197: checking for opendir in -ldir" >&5
18198 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18199 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 ac_check_lib_save_LIBS=$LIBS
18204 cat >conftest.$ac_ext <<_ACEOF
18205 #line 18205 "configure"
18206 #include "confdefs.h"
18208 /* Override any gcc2 internal prototype to avoid an error. */
18212 /* We use char because int might match the return type of a gcc2
18213 builtin and then its argument prototype would still apply. */
18223 rm -f conftest.$ac_objext conftest$ac_exeext
18224 if { (eval echo "$as_me:18224: \"$ac_link\"") >&5
18225 (eval $ac_link) 2>&5
18227 echo "$as_me:18227: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -s conftest$ac_exeext'
18230 { (eval echo "$as_me:18230: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 echo "$as_me:18233: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_cv_lib_dir_opendir=yes
18237 echo "$as_me: failed program was:" >&5
18238 cat conftest.$ac_ext >&5
18239 ac_cv_lib_dir_opendir=no
18241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18242 LIBS=$ac_check_lib_save_LIBS
18244 echo "$as_me:18244: result: $ac_cv_lib_dir_opendir" >&5
18245 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18246 if test $ac_cv_lib_dir_opendir = yes; then
18251 echo "$as_me:18251: checking for opendir in -lx" >&5
18252 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18253 if test "${ac_cv_lib_x_opendir+set}" = set; then
18254 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 ac_check_lib_save_LIBS=$LIBS
18258 cat >conftest.$ac_ext <<_ACEOF
18259 #line 18259 "configure"
18260 #include "confdefs.h"
18262 /* Override any gcc2 internal prototype to avoid an error. */
18266 /* We use char because int might match the return type of a gcc2
18267 builtin and then its argument prototype would still apply. */
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (eval echo "$as_me:18278: \"$ac_link\"") >&5
18279 (eval $ac_link) 2>&5
18281 echo "$as_me:18281: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:18284: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:18287: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_x_opendir=yes
18291 echo "$as_me: failed program was:" >&5
18292 cat conftest.$ac_ext >&5
18293 ac_cv_lib_x_opendir=no
18295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18298 echo "$as_me:18298: result: $ac_cv_lib_x_opendir" >&5
18299 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18300 if test $ac_cv_lib_x_opendir = yes; then
18306 echo "$as_me:18306: checking whether time.h and sys/time.h may both be included" >&5
18307 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18308 if test "${ac_cv_header_time+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 cat >conftest.$ac_ext <<_ACEOF
18312 #line 18312 "configure"
18313 #include "confdefs.h"
18314 #include <sys/types.h>
18315 #include <sys/time.h>
18321 if ((struct tm *) 0)
18327 rm -f conftest.$ac_objext
18328 if { (eval echo "$as_me:18328: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>&5
18331 echo "$as_me:18331: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:18334: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:18337: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_header_time=yes
18341 echo "$as_me: failed program was:" >&5
18342 cat conftest.$ac_ext >&5
18343 ac_cv_header_time=no
18345 rm -f conftest.$ac_objext conftest.$ac_ext
18347 echo "$as_me:18347: result: $ac_cv_header_time" >&5
18348 echo "${ECHO_T}$ac_cv_header_time" >&6
18349 if test $ac_cv_header_time = yes; then
18351 cat >>confdefs.h <<\EOF
18352 #define TIME_WITH_SYS_TIME 1
18359 cf_regex_libs="regex re"
18362 cf_regex_libs="systre gnurx $cf_regex_libs"
18366 echo "$as_me:18366: checking for regcomp" >&5
18367 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
18368 if test "${ac_cv_func_regcomp+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 cat >conftest.$ac_ext <<_ACEOF
18372 #line 18372 "configure"
18373 #include "confdefs.h"
18374 #define regcomp autoconf_temporary
18375 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18382 /* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18384 char regcomp (void);
18390 /* The GNU C library defines stubs for functions which it implements
18391 to always fail with ENOSYS. Some functions are actually named
18392 something starting with __ and the normal name is an alias. */
18393 #if defined (__stub_regcomp) || defined (__stub___regcomp)
18394 #error found stub for regcomp
18402 rm -f conftest.$ac_objext conftest$ac_exeext
18403 if { (eval echo "$as_me:18403: \"$ac_link\"") >&5
18404 (eval $ac_link) 2>&5
18406 echo "$as_me:18406: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (eval echo "$as_me:18409: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:18412: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 ac_cv_func_regcomp=yes
18416 echo "$as_me: failed program was:" >&5
18417 cat conftest.$ac_ext >&5
18418 ac_cv_func_regcomp=no
18420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18422 echo "$as_me:18422: result: $ac_cv_func_regcomp" >&5
18423 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
18424 if test $ac_cv_func_regcomp = yes; then
18425 cf_regex_func=regcomp
18428 for cf_regex_lib in $cf_regex_libs
18430 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
18431 echo "$as_me:18431: checking for regcomp in -l$cf_regex_lib" >&5
18432 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
18433 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 ac_check_lib_save_LIBS=$LIBS
18437 LIBS="-l$cf_regex_lib $LIBS"
18438 cat >conftest.$ac_ext <<_ACEOF
18439 #line 18439 "configure"
18440 #include "confdefs.h"
18442 /* Override any gcc2 internal prototype to avoid an error. */
18446 /* We use char because int might match the return type of a gcc2
18447 builtin and then its argument prototype would still apply. */
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (eval echo "$as_me:18458: \"$ac_link\"") >&5
18459 (eval $ac_link) 2>&5
18461 echo "$as_me:18461: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (eval echo "$as_me:18464: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:18467: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 eval "$as_ac_Lib=yes"
18471 echo "$as_me: failed program was:" >&5
18472 cat conftest.$ac_ext >&5
18473 eval "$as_ac_Lib=no"
18475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18476 LIBS=$ac_check_lib_save_LIBS
18478 echo "$as_me:18478: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18479 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18480 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18482 cf_add_libs="$LIBS"
18485 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18486 # filter duplicates
18487 for cf_add_1lib in $cf_add_0lib; do
18488 for cf_add_2lib in $cf_add_libs; do
18489 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18494 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18496 LIBS="$cf_add_libs"
18498 cf_regex_func=regcomp
18506 if test "$cf_regex_func" = no ; then
18507 echo "$as_me:18507: checking for compile" >&5
18508 echo $ECHO_N "checking for compile... $ECHO_C" >&6
18509 if test "${ac_cv_func_compile+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18513 #line 18513 "configure"
18514 #include "confdefs.h"
18515 #define compile autoconf_temporary
18516 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18523 /* We use char because int might match the return type of a gcc2
18524 builtin and then its argument prototype would still apply. */
18525 char compile (void);
18531 /* The GNU C library defines stubs for functions which it implements
18532 to always fail with ENOSYS. Some functions are actually named
18533 something starting with __ and the normal name is an alias. */
18534 #if defined (__stub_compile) || defined (__stub___compile)
18535 #error found stub for compile
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (eval echo "$as_me:18544: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
18547 echo "$as_me:18547: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:18550: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:18553: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_func_compile=yes
18557 echo "$as_me: failed program was:" >&5
18558 cat conftest.$ac_ext >&5
18559 ac_cv_func_compile=no
18561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18563 echo "$as_me:18563: result: $ac_cv_func_compile" >&5
18564 echo "${ECHO_T}$ac_cv_func_compile" >&6
18565 if test $ac_cv_func_compile = yes; then
18566 cf_regex_func=compile
18569 echo "$as_me:18569: checking for compile in -lgen" >&5
18570 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
18571 if test "${ac_cv_lib_gen_compile+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18576 cat >conftest.$ac_ext <<_ACEOF
18577 #line 18577 "configure"
18578 #include "confdefs.h"
18580 /* Override any gcc2 internal prototype to avoid an error. */
18584 /* We use char because int might match the return type of a gcc2
18585 builtin and then its argument prototype would still apply. */
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:18596: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>&5
18599 echo "$as_me:18599: \$? = $ac_status" >&5
18600 (exit $ac_status); } &&
18601 { ac_try='test -s conftest$ac_exeext'
18602 { (eval echo "$as_me:18602: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18605 echo "$as_me:18605: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 ac_cv_lib_gen_compile=yes
18609 echo "$as_me: failed program was:" >&5
18610 cat conftest.$ac_ext >&5
18611 ac_cv_lib_gen_compile=no
18613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18614 LIBS=$ac_check_lib_save_LIBS
18616 echo "$as_me:18616: result: $ac_cv_lib_gen_compile" >&5
18617 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
18618 if test $ac_cv_lib_gen_compile = yes; then
18620 cf_add_libs="$LIBS"
18623 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18624 # filter duplicates
18625 for cf_add_1lib in $cf_add_0lib; do
18626 for cf_add_2lib in $cf_add_libs; do
18627 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18634 LIBS="$cf_add_libs"
18636 cf_regex_func=compile
18643 if test "$cf_regex_func" = no ; then
18644 { echo "$as_me:18644: WARNING: cannot find regular expression library" >&5
18645 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
18648 echo "$as_me:18648: checking for regular-expression headers" >&5
18649 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
18650 if test "${cf_cv_regex_hdrs+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 cf_cv_regex_hdrs=no
18655 case $cf_regex_func in
18657 for cf_regex_hdr in regexp.h regexpr.h
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line 18660 "configure"
18661 #include "confdefs.h"
18662 #include <$cf_regex_hdr>
18667 char *p = compile("", "", "", 0);
18668 int x = step("", "");
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (eval echo "$as_me:18677: \"$ac_link\"") >&5
18678 (eval $ac_link) 2>&5
18680 echo "$as_me:18680: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -s conftest$ac_exeext'
18683 { (eval echo "$as_me:18683: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 echo "$as_me:18686: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18689 cf_cv_regex_hdrs=$cf_regex_hdr
18693 echo "$as_me: failed program was:" >&5
18694 cat conftest.$ac_ext >&5
18696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18700 for cf_regex_hdr in regex.h
18702 cat >conftest.$ac_ext <<_ACEOF
18703 #line 18703 "configure"
18704 #include "confdefs.h"
18705 #include <sys/types.h>
18706 #include <$cf_regex_hdr>
18712 int x = regcomp(p, "", 0);
18713 int y = regexec(p, "", 0, 0, 0);
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (eval echo "$as_me:18723: \"$ac_link\"") >&5
18724 (eval $ac_link) 2>&5
18726 echo "$as_me:18726: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (eval echo "$as_me:18729: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:18732: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18735 cf_cv_regex_hdrs=$cf_regex_hdr
18739 echo "$as_me: failed program was:" >&5
18740 cat conftest.$ac_ext >&5
18742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18748 echo "$as_me:18748: result: $cf_cv_regex_hdrs" >&5
18749 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
18751 case $cf_cv_regex_hdrs in
18752 (no) { echo "$as_me:18752: WARNING: no regular expression header found" >&5
18753 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
18755 cat >>confdefs.h <<\EOF
18756 #define HAVE_REGEX_H_FUNCS 1
18760 cat >>confdefs.h <<\EOF
18761 #define HAVE_REGEXP_H_FUNCS 1
18765 cat >>confdefs.h <<\EOF
18766 #define HAVE_REGEXPR_H_FUNCS 1
18789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18790 echo "$as_me:18790: checking for $ac_header" >&5
18791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 cat >conftest.$ac_ext <<_ACEOF
18796 #line 18796 "configure"
18797 #include "confdefs.h"
18798 #include <$ac_header>
18800 if { (eval echo "$as_me:18800: \"$ac_cpp conftest.$ac_ext\"") >&5
18801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18803 egrep -v '^ *\+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:18806: \$? = $ac_status" >&5
18807 (exit $ac_status); } >/dev/null; then
18808 if test -s conftest.err; then
18809 ac_cpp_err=$ac_c_preproc_warn_flag
18816 if test -z "$ac_cpp_err"; then
18817 eval "$as_ac_Header=yes"
18819 echo "$as_me: failed program was:" >&5
18820 cat conftest.$ac_ext >&5
18821 eval "$as_ac_Header=no"
18823 rm -f conftest.err conftest.$ac_ext
18825 echo "$as_me:18825: result: `eval echo '${'$as_ac_Header'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18828 cat >>confdefs.h <<EOF
18829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18835 for ac_header in unistd.h getopt.h
18837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18838 echo "$as_me:18838: checking for $ac_header" >&5
18839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line 18844 "configure"
18845 #include "confdefs.h"
18846 #include <$ac_header>
18848 if { (eval echo "$as_me:18848: \"$ac_cpp conftest.$ac_ext\"") >&5
18849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18851 egrep -v '^ *\+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:18854: \$? = $ac_status" >&5
18855 (exit $ac_status); } >/dev/null; then
18856 if test -s conftest.err; then
18857 ac_cpp_err=$ac_c_preproc_warn_flag
18864 if test -z "$ac_cpp_err"; then
18865 eval "$as_ac_Header=yes"
18867 echo "$as_me: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 eval "$as_ac_Header=no"
18871 rm -f conftest.err conftest.$ac_ext
18873 echo "$as_me:18873: result: `eval echo '${'$as_ac_Header'}'`" >&5
18874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18876 cat >>confdefs.h <<EOF
18877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18883 echo "$as_me:18883: checking for header declaring getopt variables" >&5
18884 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18885 if test "${cf_cv_getopt_header+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 cf_cv_getopt_header=none
18890 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18892 cat >conftest.$ac_ext <<_ACEOF
18893 #line 18893 "configure"
18894 #include "confdefs.h"
18896 #include <$cf_header>
18900 int x = optind; char *y = optarg
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:18906: \"$ac_compile\"") >&5
18907 (eval $ac_compile) 2>&5
18909 echo "$as_me:18909: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -s conftest.$ac_objext'
18912 { (eval echo "$as_me:18912: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 echo "$as_me:18915: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 cf_cv_getopt_header=$cf_header
18920 echo "$as_me: failed program was:" >&5
18921 cat conftest.$ac_ext >&5
18923 rm -f conftest.$ac_objext conftest.$ac_ext
18927 echo "$as_me:18927: result: $cf_cv_getopt_header" >&5
18928 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18929 if test $cf_cv_getopt_header != none ; then
18931 cat >>confdefs.h <<\EOF
18932 #define HAVE_GETOPT_HEADER 1
18936 if test $cf_cv_getopt_header = getopt.h ; then
18938 cat >>confdefs.h <<\EOF
18939 #define NEED_GETOPT_H 1
18944 echo "$as_me:18944: checking if external environ is declared" >&5
18945 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
18946 if test "${cf_cv_dcl_environ+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18951 #line 18951 "configure"
18952 #include "confdefs.h"
18954 #ifdef HAVE_STDLIB_H
18955 #include <stdlib.h>
18957 #include <unistd.h>
18961 int x = (int) environ
18966 rm -f conftest.$ac_objext
18967 if { (eval echo "$as_me:18967: \"$ac_compile\"") >&5
18968 (eval $ac_compile) 2>&5
18970 echo "$as_me:18970: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -s conftest.$ac_objext'
18973 { (eval echo "$as_me:18973: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:18976: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 cf_cv_dcl_environ=yes
18980 echo "$as_me: failed program was:" >&5
18981 cat conftest.$ac_ext >&5
18982 cf_cv_dcl_environ=no
18984 rm -f conftest.$ac_objext conftest.$ac_ext
18987 echo "$as_me:18987: result: $cf_cv_dcl_environ" >&5
18988 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
18990 if test "$cf_cv_dcl_environ" = no ; then
18992 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18994 cat >>confdefs.h <<EOF
18995 #define $cf_result 1
19000 # It's possible (for near-UNIX clones) that the data doesn't exist
19002 echo "$as_me:19002: checking if external environ exists" >&5
19003 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
19004 if test "${cf_cv_have_environ+set}" = set; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 cat >conftest.$ac_ext <<_ACEOF
19009 #line 19009 "configure"
19010 #include "confdefs.h"
19013 extern int environ;
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (eval echo "$as_me:19024: \"$ac_link\"") >&5
19025 (eval $ac_link) 2>&5
19027 echo "$as_me:19027: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -s conftest$ac_exeext'
19030 { (eval echo "$as_me:19030: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:19033: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 cf_cv_have_environ=yes
19037 echo "$as_me: failed program was:" >&5
19038 cat conftest.$ac_ext >&5
19039 cf_cv_have_environ=no
19041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19044 echo "$as_me:19044: result: $cf_cv_have_environ" >&5
19045 echo "${ECHO_T}$cf_cv_have_environ" >&6
19047 if test "$cf_cv_have_environ" = yes ; then
19049 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19051 cat >>confdefs.h <<EOF
19052 #define $cf_result 1
19057 echo "$as_me:19057: checking for getenv" >&5
19058 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
19059 if test "${ac_cv_func_getenv+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 cat >conftest.$ac_ext <<_ACEOF
19063 #line 19063 "configure"
19064 #include "confdefs.h"
19065 #define getenv autoconf_temporary
19066 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19073 /* We use char because int might match the return type of a gcc2
19074 builtin and then its argument prototype would still apply. */
19075 char getenv (void);
19081 /* The GNU C library defines stubs for functions which it implements
19082 to always fail with ENOSYS. Some functions are actually named
19083 something starting with __ and the normal name is an alias. */
19084 #if defined (__stub_getenv) || defined (__stub___getenv)
19085 #error found stub for getenv
19093 rm -f conftest.$ac_objext conftest$ac_exeext
19094 if { (eval echo "$as_me:19094: \"$ac_link\"") >&5
19095 (eval $ac_link) 2>&5
19097 echo "$as_me:19097: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -s conftest$ac_exeext'
19100 { (eval echo "$as_me:19100: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:19103: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_cv_func_getenv=yes
19107 echo "$as_me: failed program was:" >&5
19108 cat conftest.$ac_ext >&5
19109 ac_cv_func_getenv=no
19111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19113 echo "$as_me:19113: result: $ac_cv_func_getenv" >&5
19114 echo "${ECHO_T}$ac_cv_func_getenv" >&6
19116 for ac_func in putenv setenv strdup
19118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19119 echo "$as_me:19119: checking for $ac_func" >&5
19120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19121 if eval "test \"\${$as_ac_var+set}\" = set"; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 cat >conftest.$ac_ext <<_ACEOF
19125 #line 19125 "configure"
19126 #include "confdefs.h"
19127 #define $ac_func autoconf_temporary
19128 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19135 /* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137 char $ac_func (void);
19143 /* The GNU C library defines stubs for functions which it implements
19144 to always fail with ENOSYS. Some functions are actually named
19145 something starting with __ and the normal name is an alias. */
19146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19147 #error found stub for $ac_func
19150 return $ac_func ();
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (eval echo "$as_me:19156: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>&5
19159 echo "$as_me:19159: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -s conftest$ac_exeext'
19162 { (eval echo "$as_me:19162: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:19165: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 eval "$as_ac_var=yes"
19169 echo "$as_me: failed program was:" >&5
19170 cat conftest.$ac_ext >&5
19171 eval "$as_ac_var=no"
19173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19175 echo "$as_me:19175: result: `eval echo '${'$as_ac_var'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19177 if test `eval echo '${'$as_ac_var'}'` = yes; then
19178 cat >>confdefs.h <<EOF
19179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19185 echo "$as_me:19185: checking if getenv returns consistent values" >&5
19186 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
19187 if test "${cf_cv_consistent_getenv+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 if test "$cross_compiling" = yes; then
19192 cf_cv_consistent_getenv=unknown
19194 cat >conftest.$ac_ext <<_ACEOF
19195 #line 19195 "configure"
19196 #include "confdefs.h"
19198 #include <stdlib.h>
19199 #include <unistd.h>
19201 #include <string.h>
19202 #include <sys/types.h>
19204 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
19205 extern char **environ; /* POSIX, but some systems are not... */
19208 #if defined(HAVE_STRDUP)
19209 #define str_alloc(s) strdup(s)
19211 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
19214 static void set_value(const char *name, const char *value)
19216 #if defined(HAVE_SETENV)
19217 setenv(name, value, 1);
19218 #elif defined(HAVE_PUTENV)
19220 sprintf(buffer, "%s=%s", name, value);
19221 putenv(str_alloc(buffer));
19223 #error neither putenv/setenv found
19229 size_t numenv, limit, j;
19234 for (numenv = 0; environ[numenv]; ++numenv) ;
19235 limit = numenv + 10;
19236 mynames = (char **) calloc(limit + 1, sizeof(char *));
19237 myvalues = (char **) calloc(limit + 1, sizeof(char *));
19238 mypointer = (char **) calloc(limit + 1, sizeof(char *));
19239 #if defined(HAVE_ENVIRON)
19240 for (j = 0; environ[j]; ++j) {
19241 mynames[j] = str_alloc(environ[j]);
19242 equals = strchr(mynames[j], '=');
19245 myvalues[j] = str_alloc(equals);
19247 myvalues[j] = str_alloc("");
19251 for (j = numenv; j < limit; ++j) {
19259 sprintf(name, "TERM%lu", (unsigned long) k);
19260 for (jk = 0; jk < j; ++jk) {
19261 if (!strcmp(name, mynames[jk])) {
19268 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
19269 set_value(name, value);
19270 mynames[j] = str_alloc(name);
19271 myvalues[j] = str_alloc(value);
19273 for (pass = 0; pass < 3; ++pass) {
19274 for (j = 0; j < limit; ++j) {
19275 char *value = getenv(mynames[j]);
19278 fprintf(stderr, "getenv returned null for %s\n", mynames[j]);
19279 ${cf_cv_main_return:-return}(1);
19280 } else if (value != mypointer[j]) {
19281 fprintf(stderr, "getenv returned different pointer for %s\n", mynames[j]);
19282 ${cf_cv_main_return:-return}(1);
19283 } else if (strcmp(value, myvalues[j])) {
19284 fprintf(stderr, "getenv returned different value for %s\n", mynames[j]);
19285 ${cf_cv_main_return:-return}(1);
19289 mypointer[j] = value;
19290 for (k = 0; k < j; ++k) {
19291 if (mypointer[j] == mypointer[k]) {
19292 fprintf(stderr, "getenv returned same pointer for %s and %s\n", mynames[j], mynames[k]);
19293 ${cf_cv_main_return:-return}(1);
19299 ${cf_cv_main_return:-return}(0);
19303 rm -f conftest$ac_exeext
19304 if { (eval echo "$as_me:19304: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>&5
19307 echo "$as_me:19307: \$? = $ac_status" >&5
19308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19309 { (eval echo "$as_me:19309: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:19312: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 cf_cv_consistent_getenv=yes
19316 echo "$as_me: program exited with status $ac_status" >&5
19317 echo "$as_me: failed program was:" >&5
19318 cat conftest.$ac_ext >&5
19319 cf_cv_consistent_getenv=no
19321 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19325 echo "$as_me:19325: result: $cf_cv_consistent_getenv" >&5
19326 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
19328 if test "x$cf_cv_consistent_getenv" = xno
19331 cat >>confdefs.h <<\EOF
19332 #define HAVE_CONSISTENT_GETENV 1
19337 if test "x$cf_cv_consistent_getenv" = xno && \
19338 test "x$cf_with_trace" = xyes
19340 { echo "$as_me:19340: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
19341 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
19344 echo "$as_me:19344: checking if sys/time.h works with sys/select.h" >&5
19345 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
19346 if test "${cf_cv_sys_time_select+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19351 #line 19351 "configure"
19352 #include "confdefs.h"
19354 #include <sys/types.h>
19355 #ifdef HAVE_SYS_TIME_H
19356 #include <sys/time.h>
19358 #ifdef HAVE_SYS_SELECT_H
19359 #include <sys/select.h>
19370 rm -f conftest.$ac_objext
19371 if { (eval echo "$as_me:19371: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19374 echo "$as_me:19374: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (eval echo "$as_me:19377: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:19380: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 cf_cv_sys_time_select=yes
19384 echo "$as_me: failed program was:" >&5
19385 cat conftest.$ac_ext >&5
19386 cf_cv_sys_time_select=no
19388 rm -f conftest.$ac_objext conftest.$ac_ext
19392 echo "$as_me:19392: result: $cf_cv_sys_time_select" >&5
19393 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
19394 test "$cf_cv_sys_time_select" = yes &&
19395 cat >>confdefs.h <<\EOF
19396 #define HAVE_SYS_TIME_SELECT 1
19399 ### checks for compiler characteristics
19401 ac_cpp='$CPP $CPPFLAGS'
19402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19405 ac_main_return=return
19407 echo "$as_me:19407: checking for an ANSI C-conforming const" >&5
19408 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19409 if test "${ac_cv_c_const+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19413 #line 19413 "configure"
19414 #include "confdefs.h"
19419 /* FIXME: Include the comments suggested by Paul. */
19420 #ifndef __cplusplus
19421 /* Ultrix mips cc rejects this. */
19422 typedef int charset[2];
19424 /* SunOS 4.1.1 cc rejects this. */
19425 char const *const *ccp;
19427 /* NEC SVR4.0.2 mips cc rejects this. */
19428 struct point {int x, y;};
19429 static struct point const zero = {0,0};
19430 /* AIX XL C 1.02.0.0 rejects this.
19431 It does not let you subtract one const X* pointer from another in
19432 an arm of an if-expression whose if-part is not a constant
19434 const char *g = "string";
19435 ccp = &g + (g ? g-g : 0);
19436 /* HPUX 7.0 cc rejects these. */
19439 ccp = (char const *const *) p;
19440 { /* SCO 3.2v4 cc rejects this. */
19442 char const *s = 0 ? (char *) 0 : (char const *) 0;
19446 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19447 int x[] = {25, 17};
19448 const int *foo = &x[0];
19451 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19452 typedef const int *iptr;
19456 { /* AIX XL C 1.02.0.0 rejects this saying
19457 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19458 struct s { int j; const int *ap[3]; };
19459 struct s *b; b->j = 5;
19461 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19462 const int foo = 10;
19470 rm -f conftest.$ac_objext
19471 if { (eval echo "$as_me:19471: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>&5
19474 echo "$as_me:19474: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:19477: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:19480: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19484 echo "$as_me: failed program was:" >&5
19485 cat conftest.$ac_ext >&5
19488 rm -f conftest.$ac_objext conftest.$ac_ext
19490 echo "$as_me:19490: result: $ac_cv_c_const" >&5
19491 echo "${ECHO_T}$ac_cv_c_const" >&6
19492 if test $ac_cv_c_const = no; then
19494 cat >>confdefs.h <<\EOF
19500 echo "$as_me:19500: checking for inline" >&5
19501 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19502 if test "${ac_cv_c_inline+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 for ac_kw in inline __inline__ __inline; do
19507 cat >conftest.$ac_ext <<_ACEOF
19508 #line 19508 "configure"
19509 #include "confdefs.h"
19510 #ifndef __cplusplus
19511 static $ac_kw int static_foo () {return 0; }
19512 $ac_kw int foo () {return 0; }
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:19517: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>&5
19520 echo "$as_me:19520: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:19523: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:19526: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_c_inline=$ac_kw; break
19530 echo "$as_me: failed program was:" >&5
19531 cat conftest.$ac_ext >&5
19533 rm -f conftest.$ac_objext conftest.$ac_ext
19537 echo "$as_me:19537: result: $ac_cv_c_inline" >&5
19538 echo "${ECHO_T}$ac_cv_c_inline" >&6
19539 case $ac_cv_c_inline in
19542 cat >>confdefs.h <<\EOF
19546 *) cat >>confdefs.h <<EOF
19547 #define inline $ac_cv_c_inline
19553 if test "$ac_cv_c_inline" != no ; then
19554 NCURSES_INLINE=inline
19555 if test "$INTEL_COMPILER" = yes
19558 elif test "$CLANG_COMPILER" = yes
19561 elif test "$GCC" = yes
19563 echo "$as_me:19563: checking if $CC supports options to tune inlining" >&5
19564 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
19565 if test "${cf_cv_gcc_inline+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 cf_save_CFLAGS=$CFLAGS
19570 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
19571 cat >conftest.$ac_ext <<_ACEOF
19572 #line 19572 "configure"
19573 #include "confdefs.h"
19574 inline int foo(void) { return 1; }
19578 ${cf_cv_main_return:-return} foo()
19583 rm -f conftest.$ac_objext
19584 if { (eval echo "$as_me:19584: \"$ac_compile\"") >&5
19585 (eval $ac_compile) 2>&5
19587 echo "$as_me:19587: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:19590: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:19593: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 cf_cv_gcc_inline=yes
19597 echo "$as_me: failed program was:" >&5
19598 cat conftest.$ac_ext >&5
19599 cf_cv_gcc_inline=no
19601 rm -f conftest.$ac_objext conftest.$ac_ext
19602 CFLAGS=$cf_save_CFLAGS
19605 echo "$as_me:19605: result: $cf_cv_gcc_inline" >&5
19606 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
19607 if test "$cf_cv_gcc_inline" = yes ; then
19612 cf_new_extra_cppflags=
19614 for cf_add_cflags in --param max-inline-insns-single=1200
19616 case $cf_fix_cppflags in
19618 case $cf_add_cflags in
19619 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19620 case $cf_add_cflags in
19622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19624 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19625 && test -z "${cf_tst_cflags}" \
19626 && cf_fix_cppflags=yes
19628 if test $cf_fix_cppflags = yes ; then
19630 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19631 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19634 elif test "${cf_tst_cflags}" = "\"'" ; then
19636 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19637 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19643 case "$CPPFLAGS" in
19647 case $cf_add_cflags in
19649 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19651 CPPFLAGS=`echo "$CPPFLAGS" | \
19652 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19653 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19658 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19659 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19666 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19667 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19674 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19675 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19679 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19680 && test -z "${cf_tst_cflags}" \
19681 && cf_fix_cppflags=no
19686 if test -n "$cf_new_cflags" ; then
19688 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19689 CFLAGS="${CFLAGS}$cf_new_cflags"
19693 if test -n "$cf_new_cppflags" ; then
19695 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19696 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19700 if test -n "$cf_new_extra_cppflags" ; then
19702 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19703 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19711 echo "$as_me:19711: checking for signal global datatype" >&5
19712 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
19713 if test "${cf_cv_sig_atomic_t+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 "volatile sig_atomic_t" \
19722 cat >conftest.$ac_ext <<_ACEOF
19723 #line 19723 "configure"
19724 #include "confdefs.h"
19726 #include <sys/types.h>
19727 #include <signal.h>
19732 static void handler(int sig)
19740 signal(SIGINT, handler);
19746 rm -f conftest.$ac_objext
19747 if { (eval echo "$as_me:19747: \"$ac_compile\"") >&5
19748 (eval $ac_compile) 2>&5
19750 echo "$as_me:19750: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -s conftest.$ac_objext'
19753 { (eval echo "$as_me:19753: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19756 echo "$as_me:19756: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 cf_cv_sig_atomic_t=$cf_type
19760 echo "$as_me: failed program was:" >&5
19761 cat conftest.$ac_ext >&5
19762 cf_cv_sig_atomic_t=no
19764 rm -f conftest.$ac_objext conftest.$ac_ext
19765 test "$cf_cv_sig_atomic_t" != no && break
19770 echo "$as_me:19770: result: $cf_cv_sig_atomic_t" >&5
19771 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
19772 test "$cf_cv_sig_atomic_t" != no &&
19773 cat >>confdefs.h <<EOF
19774 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
19777 if test $NCURSES_CHTYPE = auto ; then
19779 echo "$as_me:19779: checking for type of chtype" >&5
19780 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
19781 if test "${cf_cv_typeof_chtype+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 if test "$cross_compiling" = yes; then
19786 cf_cv_typeof_chtype=long
19788 cat >conftest.$ac_ext <<_ACEOF
19789 #line 19789 "configure"
19790 #include "confdefs.h"
19792 #define WANT_BITS 31
19796 FILE *fp = fopen("cf_test.out", "w");
19798 char *result = "long";
19799 if (sizeof(unsigned long) > sizeof(unsigned int)) {
19802 for (n = 0; n < WANT_BITS; n++) {
19805 if (y != 1 || x == 0) {
19811 * If x is nonzero, an int is big enough for the bits
19814 result = (x != 0) ? "int" : "long";
19819 ${cf_cv_main_return:-return}(0);
19823 rm -f conftest$ac_exeext
19824 if { (eval echo "$as_me:19824: \"$ac_link\"") >&5
19825 (eval $ac_link) 2>&5
19827 echo "$as_me:19827: \$? = $ac_status" >&5
19828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19829 { (eval echo "$as_me:19829: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:19832: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 cf_cv_typeof_chtype=`cat cf_test.out`
19836 echo "$as_me: program exited with status $ac_status" >&5
19837 echo "$as_me: failed program was:" >&5
19838 cat conftest.$ac_ext >&5
19839 cf_cv_typeof_chtype=long
19841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19847 echo "$as_me:19847: result: $cf_cv_typeof_chtype" >&5
19848 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
19850 cat >>confdefs.h <<EOF
19851 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
19855 cf_cv_typeof_chtype=$NCURSES_CHTYPE
19857 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
19859 echo "$as_me:19859: checking if unsigned literals are legal" >&5
19860 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
19861 if test "${cf_cv_unsigned_literals+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 cat >conftest.$ac_ext <<_ACEOF
19866 #line 19866 "configure"
19867 #include "confdefs.h"
19872 long x = 1L + 1UL + 1U + 1
19877 rm -f conftest.$ac_objext
19878 if { (eval echo "$as_me:19878: \"$ac_compile\"") >&5
19879 (eval $ac_compile) 2>&5
19881 echo "$as_me:19881: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -s conftest.$ac_objext'
19884 { (eval echo "$as_me:19884: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:19887: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 cf_cv_unsigned_literals=yes
19891 echo "$as_me: failed program was:" >&5
19892 cat conftest.$ac_ext >&5
19893 cf_cv_unsigned_literals=no
19895 rm -f conftest.$ac_objext conftest.$ac_ext
19899 echo "$as_me:19899: result: $cf_cv_unsigned_literals" >&5
19900 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
19903 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
19904 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
19906 if test $NCURSES_MMASK_T = auto ; then
19907 cf_cv_typeof_mmask_t=long
19909 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
19911 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
19913 ### Checks for external-data
19915 echo "$as_me:19915: checking if external errno is declared" >&5
19916 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
19917 if test "${cf_cv_dcl_errno+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19922 #line 19922 "configure"
19923 #include "confdefs.h"
19925 #ifdef HAVE_STDLIB_H
19926 #include <stdlib.h>
19929 #include <sys/types.h>
19934 int x = (int) errno; (void)x
19939 rm -f conftest.$ac_objext
19940 if { (eval echo "$as_me:19940: \"$ac_compile\"") >&5
19941 (eval $ac_compile) 2>&5
19943 echo "$as_me:19943: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try='test -s conftest.$ac_objext'
19946 { (eval echo "$as_me:19946: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:19949: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 cf_cv_dcl_errno=yes
19953 echo "$as_me: failed program was:" >&5
19954 cat conftest.$ac_ext >&5
19957 rm -f conftest.$ac_objext conftest.$ac_ext
19960 echo "$as_me:19960: result: $cf_cv_dcl_errno" >&5
19961 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
19963 if test "$cf_cv_dcl_errno" = no ; then
19965 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19967 cat >>confdefs.h <<EOF
19968 #define $cf_result 1
19973 # It's possible (for near-UNIX clones) that the data doesn't exist
19975 echo "$as_me:19975: checking if external errno exists" >&5
19976 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
19977 if test "${cf_cv_have_errno+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19982 #line 19982 "configure"
19983 #include "confdefs.h"
19996 rm -f conftest.$ac_objext conftest$ac_exeext
19997 if { (eval echo "$as_me:19997: \"$ac_link\"") >&5
19998 (eval $ac_link) 2>&5
20000 echo "$as_me:20000: \$? = $ac_status" >&5
20001 (exit $ac_status); } &&
20002 { ac_try='test -s conftest$ac_exeext'
20003 { (eval echo "$as_me:20003: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20006 echo "$as_me:20006: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 cf_cv_have_errno=yes
20010 echo "$as_me: failed program was:" >&5
20011 cat conftest.$ac_ext >&5
20012 cf_cv_have_errno=no
20014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20017 echo "$as_me:20017: result: $cf_cv_have_errno" >&5
20018 echo "${ECHO_T}$cf_cv_have_errno" >&6
20020 if test "$cf_cv_have_errno" = yes ; then
20022 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20024 cat >>confdefs.h <<EOF
20025 #define $cf_result 1
20030 echo "$as_me:20030: checking if data-only library module links" >&5
20031 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
20032 if test "${cf_cv_link_dataonly+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 cat >conftest.$ac_ext <<EOF
20038 #line 20038 "configure"
20039 int testdata[3] = { 123, 456, 789 };
20041 if { (eval echo "$as_me:20041: \"$ac_compile\"") >&5
20042 (eval $ac_compile) 2>&5
20044 echo "$as_me:20044: \$? = $ac_status" >&5
20045 (exit $ac_status); } ; then
20046 mv conftest.o data.o && \
20047 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
20049 rm -f conftest.$ac_ext data.o
20050 cat >conftest.$ac_ext <<EOF
20051 #line 20051 "configure"
20055 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
20057 extern int testdata[3];
20058 return testdata[0] == 123
20059 && testdata[1] == 456
20060 && testdata[2] == 789;
20064 if { (eval echo "$as_me:20064: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>&5
20067 echo "$as_me:20067: \$? = $ac_status" >&5
20068 (exit $ac_status); }; then
20069 mv conftest.o func.o && \
20070 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
20072 rm -f conftest.$ac_ext func.o
20073 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
20074 cf_saveLIBS="$LIBS"
20075 LIBS="conftest.a $LIBS"
20076 if test "$cross_compiling" = yes; then
20077 cf_cv_link_dataonly=unknown
20079 cat >conftest.$ac_ext <<_ACEOF
20080 #line 20080 "configure"
20081 #include "confdefs.h"
20085 extern int testfunc();
20086 ${cf_cv_main_return:-return} (!testfunc());
20090 rm -f conftest$ac_exeext
20091 if { (eval echo "$as_me:20091: \"$ac_link\"") >&5
20092 (eval $ac_link) 2>&5
20094 echo "$as_me:20094: \$? = $ac_status" >&5
20095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20096 { (eval echo "$as_me:20096: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20099 echo "$as_me:20099: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 cf_cv_link_dataonly=yes
20103 echo "$as_me: program exited with status $ac_status" >&5
20104 echo "$as_me: failed program was:" >&5
20105 cat conftest.$ac_ext >&5
20106 cf_cv_link_dataonly=no
20108 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20110 LIBS="$cf_saveLIBS"
20114 echo "$as_me:20114: result: $cf_cv_link_dataonly" >&5
20115 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
20117 if test "$cf_cv_link_dataonly" = no ; then
20119 cat >>confdefs.h <<\EOF
20120 #define BROKEN_LINKER 1
20126 ### Checks for library functions.
20156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20157 echo "$as_me:20157: checking for $ac_func" >&5
20158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20159 if eval "test \"\${$as_ac_var+set}\" = set"; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 cat >conftest.$ac_ext <<_ACEOF
20163 #line 20163 "configure"
20164 #include "confdefs.h"
20165 #define $ac_func autoconf_temporary
20166 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20173 /* We use char because int might match the return type of a gcc2
20174 builtin and then its argument prototype would still apply. */
20175 char $ac_func (void);
20181 /* The GNU C library defines stubs for functions which it implements
20182 to always fail with ENOSYS. Some functions are actually named
20183 something starting with __ and the normal name is an alias. */
20184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20185 #error found stub for $ac_func
20188 return $ac_func ();
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (eval echo "$as_me:20194: \"$ac_link\"") >&5
20195 (eval $ac_link) 2>&5
20197 echo "$as_me:20197: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (eval echo "$as_me:20200: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:20203: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 eval "$as_ac_var=yes"
20207 echo "$as_me: failed program was:" >&5
20208 cat conftest.$ac_ext >&5
20209 eval "$as_ac_var=no"
20211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20213 echo "$as_me:20213: result: `eval echo '${'$as_ac_var'}'`" >&5
20214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20215 if test `eval echo '${'$as_ac_var'}'` = yes; then
20216 cat >>confdefs.h <<EOF
20217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20223 if test "x$ac_cv_func_getopt" = xno && \
20224 test "x$cf_with_progs$cf_with_tests" != xnono; then
20225 { { echo "$as_me:20225: error: getopt is required for building programs" >&5
20226 echo "$as_me: error: getopt is required for building programs" >&2;}
20227 { (exit 1); exit 1; }; }
20230 if test "x$with_safe_sprintf" = xyes
20232 if test "x$ac_cv_func_vsnprintf" = xyes
20234 { echo "$as_me:20234: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
20235 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
20238 cat >>confdefs.h <<\EOF
20239 #define USE_SAFE_SPRINTF 1
20245 if test "x$with_getcap" = "xyes" ; then
20247 echo "$as_me:20247: checking for terminal-capability database functions" >&5
20248 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
20249 if test "${cf_cv_cgetent+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line 20254 "configure"
20255 #include "confdefs.h"
20257 #include <stdlib.h>
20264 char *db_array = temp;
20265 cgetent(&buf, &db_array, "vt100");
20266 cgetcap(buf, "tc", '=');
20267 cgetmatch(buf, "tc");
20273 rm -f conftest.$ac_objext conftest$ac_exeext
20274 if { (eval echo "$as_me:20274: \"$ac_link\"") >&5
20275 (eval $ac_link) 2>&5
20277 echo "$as_me:20277: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -s conftest$ac_exeext'
20280 { (eval echo "$as_me:20280: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 echo "$as_me:20283: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20287 echo "$as_me: failed program was:" >&5
20288 cat conftest.$ac_ext >&5
20291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20294 echo "$as_me:20294: result: $cf_cv_cgetent" >&5
20295 echo "${ECHO_T}$cf_cv_cgetent" >&6
20297 if test "$cf_cv_cgetent" = yes
20300 cat >>confdefs.h <<\EOF
20301 #define HAVE_BSD_CGETENT 1
20304 echo "$as_me:20304: checking if cgetent uses const parameter" >&5
20305 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
20306 if test "${cf_cv_cgetent_const+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 cat >conftest.$ac_ext <<_ACEOF
20311 #line 20311 "configure"
20312 #include "confdefs.h"
20314 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
20315 #include <stdlib.h>
20322 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
20323 const char *db_array = temp;
20324 cgetent(&buf, &db_array, "vt100");
20326 cgetcap(buf, "tc", '=');
20327 cgetmatch(buf, "tc");
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (eval echo "$as_me:20334: \"$ac_link\"") >&5
20335 (eval $ac_link) 2>&5
20337 echo "$as_me:20337: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -s conftest$ac_exeext'
20340 { (eval echo "$as_me:20340: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:20343: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 cf_cv_cgetent_const=yes
20347 echo "$as_me: failed program was:" >&5
20348 cat conftest.$ac_ext >&5
20349 cf_cv_cgetent_const=no
20351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20354 echo "$as_me:20354: result: $cf_cv_cgetent_const" >&5
20355 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
20356 if test "$cf_cv_cgetent_const" = yes
20359 cat >>confdefs.h <<EOF
20360 #define CGETENT_CONST const
20368 echo "$as_me:20368: checking for isascii" >&5
20369 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
20370 if test "${cf_cv_have_isascii+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 cat >conftest.$ac_ext <<_ACEOF
20375 #line 20375 "configure"
20376 #include "confdefs.h"
20381 int x = isascii(' ')
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (eval echo "$as_me:20387: \"$ac_link\"") >&5
20388 (eval $ac_link) 2>&5
20390 echo "$as_me:20390: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (eval echo "$as_me:20393: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:20396: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 cf_cv_have_isascii=yes
20400 echo "$as_me: failed program was:" >&5
20401 cat conftest.$ac_ext >&5
20402 cf_cv_have_isascii=no
20404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20407 echo "$as_me:20407: result: $cf_cv_have_isascii" >&5
20408 echo "${ECHO_T}$cf_cv_have_isascii" >&6
20409 test "$cf_cv_have_isascii" = yes &&
20410 cat >>confdefs.h <<\EOF
20411 #define HAVE_ISASCII 1
20414 if test "$ac_cv_func_sigaction" = yes; then
20415 echo "$as_me:20415: checking whether sigaction needs _POSIX_SOURCE" >&5
20416 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
20417 cat >conftest.$ac_ext <<_ACEOF
20418 #line 20418 "configure"
20419 #include "confdefs.h"
20421 #include <sys/types.h>
20422 #include <signal.h>
20426 struct sigaction act
20431 rm -f conftest.$ac_objext
20432 if { (eval echo "$as_me:20432: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>&5
20435 echo "$as_me:20435: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:20438: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:20441: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20445 echo "$as_me: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20448 cat >conftest.$ac_ext <<_ACEOF
20449 #line 20449 "configure"
20450 #include "confdefs.h"
20452 #define _POSIX_SOURCE
20453 #include <sys/types.h>
20454 #include <signal.h>
20458 struct sigaction act
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:20464: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>&5
20467 echo "$as_me:20467: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -s conftest.$ac_objext'
20470 { (eval echo "$as_me:20470: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:20473: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20477 cat >>confdefs.h <<\EOF
20478 #define _POSIX_SOURCE 1
20482 echo "$as_me: failed program was:" >&5
20483 cat conftest.$ac_ext >&5
20486 rm -f conftest.$ac_objext conftest.$ac_ext
20488 rm -f conftest.$ac_objext conftest.$ac_ext
20489 echo "$as_me:20489: result: $sigact_bad" >&5
20490 echo "${ECHO_T}$sigact_bad" >&6
20493 echo "$as_me:20493: checking if nanosleep really works" >&5
20494 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
20495 if test "${cf_cv_func_nanosleep+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 if test "$cross_compiling" = yes; then
20500 cf_cv_func_nanosleep=unknown
20502 cat >conftest.$ac_ext <<_ACEOF
20503 #line 20503 "configure"
20504 #include "confdefs.h"
20510 #ifdef HAVE_SYS_TIME_H
20511 #include <sys/time.h>
20515 struct timespec ts1, ts2;
20518 ts1.tv_nsec = 750000000;
20522 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
20523 ${cf_cv_main_return:-return}(code != 0);
20527 rm -f conftest$ac_exeext
20528 if { (eval echo "$as_me:20528: \"$ac_link\"") >&5
20529 (eval $ac_link) 2>&5
20531 echo "$as_me:20531: \$? = $ac_status" >&5
20532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20533 { (eval echo "$as_me:20533: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:20536: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 cf_cv_func_nanosleep=yes
20540 echo "$as_me: program exited with status $ac_status" >&5
20541 echo "$as_me: failed program was:" >&5
20542 cat conftest.$ac_ext >&5
20543 cf_cv_func_nanosleep=no
20545 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20548 echo "$as_me:20548: result: $cf_cv_func_nanosleep" >&5
20549 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
20551 test "$cf_cv_func_nanosleep" = "yes" &&
20552 cat >>confdefs.h <<\EOF
20553 #define HAVE_NANOSLEEP 1
20564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20565 echo "$as_me:20565: checking for $ac_header" >&5
20566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20571 #line 20571 "configure"
20572 #include "confdefs.h"
20573 #include <$ac_header>
20575 if { (eval echo "$as_me:20575: \"$ac_cpp conftest.$ac_ext\"") >&5
20576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20578 egrep -v '^ *\+' conftest.er1 >conftest.err
20580 cat conftest.err >&5
20581 echo "$as_me:20581: \$? = $ac_status" >&5
20582 (exit $ac_status); } >/dev/null; then
20583 if test -s conftest.err; then
20584 ac_cpp_err=$ac_c_preproc_warn_flag
20591 if test -z "$ac_cpp_err"; then
20592 eval "$as_ac_Header=yes"
20594 echo "$as_me: failed program was:" >&5
20595 cat conftest.$ac_ext >&5
20596 eval "$as_ac_Header=no"
20598 rm -f conftest.err conftest.$ac_ext
20600 echo "$as_me:20600: result: `eval echo '${'$as_ac_Header'}'`" >&5
20601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20603 cat >>confdefs.h <<EOF
20604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20610 if test "$ac_cv_header_termios_h" = yes ; then
20611 case "$CFLAGS $CPPFLAGS" in
20612 (*-D_POSIX_SOURCE*)
20613 termios_bad=dunno ;;
20614 (*) termios_bad=maybe ;;
20616 if test "$termios_bad" = maybe ; then
20617 echo "$as_me:20617: checking whether termios.h needs _POSIX_SOURCE" >&5
20618 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
20619 cat >conftest.$ac_ext <<_ACEOF
20620 #line 20620 "configure"
20621 #include "confdefs.h"
20622 #include <termios.h>
20626 struct termios foo; int x = foo.c_iflag = 1; (void)x
20631 rm -f conftest.$ac_objext
20632 if { (eval echo "$as_me:20632: \"$ac_compile\"") >&5
20633 (eval $ac_compile) 2>&5
20635 echo "$as_me:20635: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try='test -s conftest.$ac_objext'
20638 { (eval echo "$as_me:20638: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:20641: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20645 echo "$as_me: failed program was:" >&5
20646 cat conftest.$ac_ext >&5
20648 cat >conftest.$ac_ext <<_ACEOF
20649 #line 20649 "configure"
20650 #include "confdefs.h"
20652 #define _POSIX_SOURCE
20653 #include <termios.h>
20657 struct termios foo; int x = foo.c_iflag = 2; (void)x
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:20663: \"$ac_compile\"") >&5
20664 (eval $ac_compile) 2>&5
20666 echo "$as_me:20666: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (eval echo "$as_me:20669: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20672 echo "$as_me:20672: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 termios_bad=unknown
20676 echo "$as_me: failed program was:" >&5
20677 cat conftest.$ac_ext >&5
20679 cat >>confdefs.h <<\EOF
20680 #define _POSIX_SOURCE 1
20684 rm -f conftest.$ac_objext conftest.$ac_ext
20687 rm -f conftest.$ac_objext conftest.$ac_ext
20688 echo "$as_me:20688: result: $termios_bad" >&5
20689 echo "${ECHO_T}$termios_bad" >&6
20693 echo "$as_me:20693: checking for tcgetattr" >&5
20694 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
20695 if test "${cf_cv_have_tcgetattr+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 cat >conftest.$ac_ext <<_ACEOF
20700 #line 20700 "configure"
20701 #include "confdefs.h"
20703 #include <sys/types.h>
20704 #ifdef HAVE_UNISTD_H
20705 #include <unistd.h>
20707 #ifdef HAVE_TERMIOS_H
20708 #include <termios.h>
20709 #define TTY struct termios
20711 #ifdef HAVE_TERMIO_H
20712 #include <termio.h>
20713 #define TTY struct termio
20722 tcgetattr(1, &foo);
20727 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (eval echo "$as_me:20728: \"$ac_link\"") >&5
20729 (eval $ac_link) 2>&5
20731 echo "$as_me:20731: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -s 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 cf_cv_have_tcgetattr=yes
20741 echo "$as_me: failed program was:" >&5
20742 cat conftest.$ac_ext >&5
20743 cf_cv_have_tcgetattr=no
20745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20747 echo "$as_me:20747: result: $cf_cv_have_tcgetattr" >&5
20748 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
20749 test "$cf_cv_have_tcgetattr" = yes &&
20750 cat >>confdefs.h <<\EOF
20751 #define HAVE_TCGETATTR 1
20754 echo "$as_me:20754: checking for vsscanf function or workaround" >&5
20755 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
20756 if test "${cf_cv_func_vsscanf+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 cat >conftest.$ac_ext <<_ACEOF
20761 #line 20761 "configure"
20762 #include "confdefs.h"
20764 #include <stdarg.h>
20771 vsscanf("from", "%d", ap)
20776 rm -f conftest.$ac_objext conftest$ac_exeext
20777 if { (eval echo "$as_me:20777: \"$ac_link\"") >&5
20778 (eval $ac_link) 2>&5
20780 echo "$as_me:20780: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try='test -s conftest$ac_exeext'
20783 { (eval echo "$as_me:20783: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:20786: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 cf_cv_func_vsscanf=vsscanf
20790 echo "$as_me: failed program was:" >&5
20791 cat conftest.$ac_ext >&5
20793 cat >conftest.$ac_ext <<_ACEOF
20794 #line 20794 "configure"
20795 #include "confdefs.h"
20797 #include <stdarg.h>
20804 char *str = "from";
20806 strbuf._flag = _IOREAD;
20807 strbuf._ptr = strbuf._base = (unsigned char *) str;
20808 strbuf._cnt = strlen(str);
20809 strbuf._file = _NFILE;
20810 return (vfscanf(&strbuf, "%d", ap))
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (eval echo "$as_me:20816: \"$ac_link\"") >&5
20817 (eval $ac_link) 2>&5
20819 echo "$as_me:20819: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -s conftest$ac_exeext'
20822 { (eval echo "$as_me:20822: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20825 echo "$as_me:20825: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 cf_cv_func_vsscanf=vfscanf
20829 echo "$as_me: failed program was:" >&5
20830 cat conftest.$ac_ext >&5
20832 cat >conftest.$ac_ext <<_ACEOF
20833 #line 20833 "configure"
20834 #include "confdefs.h"
20836 #include <stdarg.h>
20843 char *str = "from";
20845 strbuf._flag = _IOREAD;
20846 strbuf._ptr = strbuf._base = (unsigned char *) str;
20847 strbuf._cnt = strlen(str);
20848 strbuf._file = _NFILE;
20849 return (_doscan(&strbuf, "%d", ap))
20854 rm -f conftest.$ac_objext conftest$ac_exeext
20855 if { (eval echo "$as_me:20855: \"$ac_link\"") >&5
20856 (eval $ac_link) 2>&5
20858 echo "$as_me:20858: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -s conftest$ac_exeext'
20861 { (eval echo "$as_me:20861: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:20864: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 cf_cv_func_vsscanf=_doscan
20868 echo "$as_me: failed program was:" >&5
20869 cat conftest.$ac_ext >&5
20871 cf_cv_func_vsscanf=no
20873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20879 echo "$as_me:20879: result: $cf_cv_func_vsscanf" >&5
20880 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
20882 case $cf_cv_func_vsscanf in
20884 cat >>confdefs.h <<\EOF
20885 #define HAVE_VSSCANF 1
20889 cat >>confdefs.h <<\EOF
20890 #define HAVE_VFSCANF 1
20894 cat >>confdefs.h <<\EOF
20895 #define HAVE__DOSCAN 1
20904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20905 echo "$as_me:20905: checking for $ac_header" >&5
20906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 cat >conftest.$ac_ext <<_ACEOF
20911 #line 20911 "configure"
20912 #include "confdefs.h"
20913 #include <$ac_header>
20915 if { (eval echo "$as_me:20915: \"$ac_cpp conftest.$ac_ext\"") >&5
20916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20918 egrep -v '^ *\+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:20921: \$? = $ac_status" >&5
20922 (exit $ac_status); } >/dev/null; then
20923 if test -s conftest.err; then
20924 ac_cpp_err=$ac_c_preproc_warn_flag
20931 if test -z "$ac_cpp_err"; then
20932 eval "$as_ac_Header=yes"
20934 echo "$as_me: failed program was:" >&5
20935 cat conftest.$ac_ext >&5
20936 eval "$as_ac_Header=no"
20938 rm -f conftest.err conftest.$ac_ext
20940 echo "$as_me:20940: result: `eval echo '${'$as_ac_Header'}'`" >&5
20941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20943 cat >>confdefs.h <<EOF
20944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20950 echo "$as_me:20950: checking for working mkstemp" >&5
20951 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
20952 if test "${cf_cv_func_mkstemp+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 if test "$cross_compiling" = yes; then
20958 cf_cv_func_mkstemp=maybe
20960 cat >conftest.$ac_ext <<_ACEOF
20961 #line 20961 "configure"
20962 #include "confdefs.h"
20964 #include <sys/types.h>
20965 #ifdef HAVE_UNISTD_H
20966 #include <unistd.h>
20968 #include <stdlib.h>
20970 #include <string.h>
20971 #include <sys/stat.h>
20974 char *tmpl = "conftestXXXXXX";
20982 for (n = 0; n < 2; ++n) {
20983 strcpy(name[n], tmpl);
20984 if ((fd = mkstemp(name[n])) >= 0) {
20985 if (!strcmp(name[n], tmpl)
20986 || stat(name[n], &sb) != 0
20987 || (sb.st_mode & S_IFMT) != S_IFREG
20988 || (sb.st_mode & 077) != 0) {
20995 && !strcmp(name[0], name[1]))
20997 ${cf_cv_main_return:-return}(result);
21001 rm -f conftest$ac_exeext
21002 if { (eval echo "$as_me:21002: \"$ac_link\"") >&5
21003 (eval $ac_link) 2>&5
21005 echo "$as_me:21005: \$? = $ac_status" >&5
21006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21007 { (eval echo "$as_me:21007: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21010 echo "$as_me:21010: \$? = $ac_status" >&5
21011 (exit $ac_status); }; }; then
21012 cf_cv_func_mkstemp=yes
21015 echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 cat conftest.$ac_ext >&5
21018 cf_cv_func_mkstemp=no
21021 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21025 echo "$as_me:21025: result: $cf_cv_func_mkstemp" >&5
21026 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
21027 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
21028 echo "$as_me:21028: checking for mkstemp" >&5
21029 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
21030 if test "${ac_cv_func_mkstemp+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21034 #line 21034 "configure"
21035 #include "confdefs.h"
21036 #define mkstemp autoconf_temporary
21037 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21044 /* We use char because int might match the return type of a gcc2
21045 builtin and then its argument prototype would still apply. */
21046 char mkstemp (void);
21052 /* The GNU C library defines stubs for functions which it implements
21053 to always fail with ENOSYS. Some functions are actually named
21054 something starting with __ and the normal name is an alias. */
21055 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21056 #error found stub for mkstemp
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (eval echo "$as_me:21065: \"$ac_link\"") >&5
21066 (eval $ac_link) 2>&5
21068 echo "$as_me:21068: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try='test -s conftest$ac_exeext'
21071 { (eval echo "$as_me:21071: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21074 echo "$as_me:21074: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_func_mkstemp=yes
21078 echo "$as_me: failed program was:" >&5
21079 cat conftest.$ac_ext >&5
21080 ac_cv_func_mkstemp=no
21082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21084 echo "$as_me:21084: result: $ac_cv_func_mkstemp" >&5
21085 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21088 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
21090 cat >>confdefs.h <<\EOF
21091 #define HAVE_MKSTEMP 1
21096 # setup for prototype of fallback for vsscanf()
21098 if test "$cf_cv_func_vsscanf" = vsscanf ; then
21104 if test "x$cross_compiling" = xyes ; then
21105 { echo "$as_me:21105: WARNING: cross compiling: assume setvbuf params not reversed" >&5
21106 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
21108 echo "$as_me:21108: checking whether setvbuf arguments are reversed" >&5
21109 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
21110 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 if test "$cross_compiling" = yes; then
21114 { { echo "$as_me:21114: error: cannot run test program while cross compiling" >&5
21115 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21116 { (exit 1); exit 1; }; }
21118 cat >conftest.$ac_ext <<_ACEOF
21119 #line 21119 "configure"
21120 #include "confdefs.h"
21122 /* If setvbuf has the reversed format, exit 0. */
21126 /* This call has the arguments reversed.
21127 A reversed system may check and see that the address of main
21128 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21129 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
21130 $ac_main_return(1);
21131 putc('\r', stdout);
21132 $ac_main_return(0); /* Non-reversed systems segv here. */
21135 rm -f conftest$ac_exeext
21136 if { (eval echo "$as_me:21136: \"$ac_link\"") >&5
21137 (eval $ac_link) 2>&5
21139 echo "$as_me:21139: \$? = $ac_status" >&5
21140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21141 { (eval echo "$as_me:21141: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21144 echo "$as_me:21144: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 ac_cv_func_setvbuf_reversed=yes
21148 echo "$as_me: program exited with status $ac_status" >&5
21149 echo "$as_me: failed program was:" >&5
21150 cat conftest.$ac_ext >&5
21151 ac_cv_func_setvbuf_reversed=no
21153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21155 rm -f core core.* *.core
21157 echo "$as_me:21157: result: $ac_cv_func_setvbuf_reversed" >&5
21158 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
21159 if test $ac_cv_func_setvbuf_reversed = yes; then
21161 cat >>confdefs.h <<\EOF
21162 #define SETVBUF_REVERSED 1
21168 echo "$as_me:21168: checking for intptr_t" >&5
21169 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21170 if test "${ac_cv_type_intptr_t+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 cat >conftest.$ac_ext <<_ACEOF
21174 #line 21174 "configure"
21175 #include "confdefs.h"
21176 $ac_includes_default
21180 if ((intptr_t *) 0)
21182 if (sizeof (intptr_t))
21188 rm -f conftest.$ac_objext
21189 if { (eval echo "$as_me:21189: \"$ac_compile\"") >&5
21190 (eval $ac_compile) 2>&5
21192 echo "$as_me:21192: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
21194 { ac_try='test -s conftest.$ac_objext'
21195 { (eval echo "$as_me:21195: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21198 echo "$as_me:21198: \$? = $ac_status" >&5
21199 (exit $ac_status); }; }; then
21200 ac_cv_type_intptr_t=yes
21202 echo "$as_me: failed program was:" >&5
21203 cat conftest.$ac_ext >&5
21204 ac_cv_type_intptr_t=no
21206 rm -f conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:21208: result: $ac_cv_type_intptr_t" >&5
21209 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21210 if test $ac_cv_type_intptr_t = yes; then
21214 cat >>confdefs.h <<EOF
21215 #define intptr_t long
21220 echo "$as_me:21220: checking for ssize_t" >&5
21221 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21222 if test "${ac_cv_type_ssize_t+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 cat >conftest.$ac_ext <<_ACEOF
21226 #line 21226 "configure"
21227 #include "confdefs.h"
21228 $ac_includes_default
21234 if (sizeof (ssize_t))
21240 rm -f conftest.$ac_objext
21241 if { (eval echo "$as_me:21241: \"$ac_compile\"") >&5
21242 (eval $ac_compile) 2>&5
21244 echo "$as_me:21244: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -s conftest.$ac_objext'
21247 { (eval echo "$as_me:21247: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21250 echo "$as_me:21250: \$? = $ac_status" >&5
21251 (exit $ac_status); }; }; then
21252 ac_cv_type_ssize_t=yes
21254 echo "$as_me: failed program was:" >&5
21255 cat conftest.$ac_ext >&5
21256 ac_cv_type_ssize_t=no
21258 rm -f conftest.$ac_objext conftest.$ac_ext
21260 echo "$as_me:21260: result: $ac_cv_type_ssize_t" >&5
21261 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21262 if test $ac_cv_type_ssize_t = yes; then
21266 cat >>confdefs.h <<EOF
21267 #define ssize_t int
21272 echo "$as_me:21272: checking for type sigaction_t" >&5
21273 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
21274 if test "${cf_cv_type_sigaction+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21279 #line 21279 "configure"
21280 #include "confdefs.h"
21282 #include <signal.h>
21291 rm -f conftest.$ac_objext
21292 if { (eval echo "$as_me:21292: \"$ac_compile\"") >&5
21293 (eval $ac_compile) 2>&5
21295 echo "$as_me:21295: \$? = $ac_status" >&5
21296 (exit $ac_status); } &&
21297 { ac_try='test -s conftest.$ac_objext'
21298 { (eval echo "$as_me:21298: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21301 echo "$as_me:21301: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 cf_cv_type_sigaction=yes
21305 echo "$as_me: failed program was:" >&5
21306 cat conftest.$ac_ext >&5
21307 cf_cv_type_sigaction=no
21309 rm -f conftest.$ac_objext conftest.$ac_ext
21312 echo "$as_me:21312: result: $cf_cv_type_sigaction" >&5
21313 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
21314 test "$cf_cv_type_sigaction" = yes &&
21315 cat >>confdefs.h <<\EOF
21316 #define HAVE_TYPE_SIGACTION 1
21319 echo "$as_me:21319: checking declaration of size-change" >&5
21320 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
21321 if test "${cf_cv_sizechange+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 cf_cv_sizechange=unknown
21326 cf_save_CPPFLAGS="$CPPFLAGS"
21328 for cf_opts in "" "NEED_PTEM_H"
21331 CPPFLAGS="$cf_save_CPPFLAGS"
21332 if test -n "$cf_opts"
21335 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21336 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
21339 cat >conftest.$ac_ext <<_ACEOF
21340 #line 21340 "configure"
21341 #include "confdefs.h"
21342 #include <sys/types.h>
21343 #ifdef HAVE_TERMIOS_H
21344 #include <termios.h>
21346 #ifdef HAVE_TERMIO_H
21347 #include <termio.h>
21352 /* This is a workaround for SCO: they neglected to define struct winsize in
21353 * termios.h -- it's only in termio.h and ptem.h
21355 #include <sys/stream.h>
21356 #include <sys/ptem.h>
21359 #ifdef HAVE_SYS_IOCTL_H
21360 #include <sys/ioctl.h>
21368 struct ttysize win; /* SunOS 3.0... */
21369 int y = win.ts_lines = 2;
21370 int x = win.ts_cols = 1;
21375 struct winsize win; /* everything else */
21376 int y = win.ws_row = 2;
21377 int x = win.ws_col = 1;
21381 no TIOCGSIZE or TIOCGWINSZ
21382 #endif /* TIOCGWINSZ */
21383 #endif /* TIOCGSIZE */
21389 rm -f conftest.$ac_objext
21390 if { (eval echo "$as_me:21390: \"$ac_compile\"") >&5
21391 (eval $ac_compile) 2>&5
21393 echo "$as_me:21393: \$? = $ac_status" >&5
21394 (exit $ac_status); } &&
21395 { ac_try='test -s conftest.$ac_objext'
21396 { (eval echo "$as_me:21396: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:21399: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 cf_cv_sizechange=yes
21403 echo "$as_me: failed program was:" >&5
21404 cat conftest.$ac_ext >&5
21405 cf_cv_sizechange=no
21407 rm -f conftest.$ac_objext conftest.$ac_ext
21409 CPPFLAGS="$cf_save_CPPFLAGS"
21410 if test "$cf_cv_sizechange" = yes ; then
21411 echo "size-change succeeded ($cf_opts)" >&5
21412 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
21418 echo "$as_me:21418: result: $cf_cv_sizechange" >&5
21419 echo "${ECHO_T}$cf_cv_sizechange" >&6
21420 if test "$cf_cv_sizechange" != no ; then
21422 cat >>confdefs.h <<\EOF
21423 #define HAVE_SIZECHANGE 1
21426 case $cf_cv_sizechange in
21428 cat >>confdefs.h <<EOF
21429 #define $cf_cv_sizechange 1
21436 echo "$as_me:21436: checking for memmove" >&5
21437 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
21438 if test "${ac_cv_func_memmove+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21442 #line 21442 "configure"
21443 #include "confdefs.h"
21444 #define memmove autoconf_temporary
21445 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21452 /* We use char because int might match the return type of a gcc2
21453 builtin and then its argument prototype would still apply. */
21454 char memmove (void);
21460 /* The GNU C library defines stubs for functions which it implements
21461 to always fail with ENOSYS. Some functions are actually named
21462 something starting with __ and the normal name is an alias. */
21463 #if defined (__stub_memmove) || defined (__stub___memmove)
21464 #error found stub for memmove
21472 rm -f conftest.$ac_objext conftest$ac_exeext
21473 if { (eval echo "$as_me:21473: \"$ac_link\"") >&5
21474 (eval $ac_link) 2>&5
21476 echo "$as_me:21476: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -s conftest$ac_exeext'
21479 { (eval echo "$as_me:21479: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 ac_cv_func_memmove=yes
21486 echo "$as_me: failed program was:" >&5
21487 cat conftest.$ac_ext >&5
21488 ac_cv_func_memmove=no
21490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21492 echo "$as_me:21492: result: $ac_cv_func_memmove" >&5
21493 echo "${ECHO_T}$ac_cv_func_memmove" >&6
21494 if test $ac_cv_func_memmove = yes; then
21498 echo "$as_me:21498: checking for bcopy" >&5
21499 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
21500 if test "${ac_cv_func_bcopy+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 cat >conftest.$ac_ext <<_ACEOF
21504 #line 21504 "configure"
21505 #include "confdefs.h"
21506 #define bcopy autoconf_temporary
21507 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21514 /* We use char because int might match the return type of a gcc2
21515 builtin and then its argument prototype would still apply. */
21522 /* The GNU C library defines stubs for functions which it implements
21523 to always fail with ENOSYS. Some functions are actually named
21524 something starting with __ and the normal name is an alias. */
21525 #if defined (__stub_bcopy) || defined (__stub___bcopy)
21526 #error found stub for bcopy
21534 rm -f conftest.$ac_objext conftest$ac_exeext
21535 if { (eval echo "$as_me:21535: \"$ac_link\"") >&5
21536 (eval $ac_link) 2>&5
21538 echo "$as_me:21538: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -s conftest$ac_exeext'
21541 { (eval echo "$as_me:21541: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21544 echo "$as_me:21544: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_func_bcopy=yes
21548 echo "$as_me: failed program was:" >&5
21549 cat conftest.$ac_ext >&5
21550 ac_cv_func_bcopy=no
21552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21554 echo "$as_me:21554: result: $ac_cv_func_bcopy" >&5
21555 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
21556 if test $ac_cv_func_bcopy = yes; then
21558 echo "$as_me:21558: checking if bcopy does overlapping moves" >&5
21559 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
21560 if test "${cf_cv_good_bcopy+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 if test "$cross_compiling" = yes; then
21565 cf_cv_good_bcopy=unknown
21567 cat >conftest.$ac_ext <<_ACEOF
21568 #line 21568 "configure"
21569 #include "confdefs.h"
21572 static char data[] = "abcdefghijklmnopqrstuwwxyz";
21574 bcopy(data, temp, sizeof(data));
21575 bcopy(temp+10, temp, 15);
21576 bcopy(temp+5, temp+15, 10);
21577 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
21581 rm -f conftest$ac_exeext
21582 if { (eval echo "$as_me:21582: \"$ac_link\"") >&5
21583 (eval $ac_link) 2>&5
21585 echo "$as_me:21585: \$? = $ac_status" >&5
21586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21587 { (eval echo "$as_me:21587: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:21590: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 cf_cv_good_bcopy=yes
21594 echo "$as_me: program exited with status $ac_status" >&5
21595 echo "$as_me: failed program was:" >&5
21596 cat conftest.$ac_ext >&5
21597 cf_cv_good_bcopy=no
21599 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21603 echo "$as_me:21603: result: $cf_cv_good_bcopy" >&5
21604 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
21607 cf_cv_good_bcopy=no
21610 if test "$cf_cv_good_bcopy" = yes ; then
21612 cat >>confdefs.h <<\EOF
21613 #define USE_OK_BCOPY 1
21618 cat >>confdefs.h <<\EOF
21619 #define USE_MY_MEMMOVE 1
21626 tty 2>&1 >/dev/null || {
21627 for ac_func in posix_openpt
21629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21630 echo "$as_me:21630: checking for $ac_func" >&5
21631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21632 if eval "test \"\${$as_ac_var+set}\" = set"; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 cat >conftest.$ac_ext <<_ACEOF
21636 #line 21636 "configure"
21637 #include "confdefs.h"
21638 #define $ac_func autoconf_temporary
21639 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21646 /* We use char because int might match the return type of a gcc2
21647 builtin and then its argument prototype would still apply. */
21648 char $ac_func (void);
21654 /* The GNU C library defines stubs for functions which it implements
21655 to always fail with ENOSYS. Some functions are actually named
21656 something starting with __ and the normal name is an alias. */
21657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21658 #error found stub for $ac_func
21661 return $ac_func ();
21666 rm -f conftest.$ac_objext conftest$ac_exeext
21667 if { (eval echo "$as_me:21667: \"$ac_link\"") >&5
21668 (eval $ac_link) 2>&5
21670 echo "$as_me:21670: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -s conftest$ac_exeext'
21673 { (eval echo "$as_me:21673: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:21676: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 eval "$as_ac_var=yes"
21680 echo "$as_me: failed program was:" >&5
21681 cat conftest.$ac_ext >&5
21682 eval "$as_ac_var=no"
21684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21686 echo "$as_me:21686: result: `eval echo '${'$as_ac_var'}'`" >&5
21687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21688 if test `eval echo '${'$as_ac_var'}'` = yes; then
21689 cat >>confdefs.h <<EOF
21690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21696 echo "$as_me:21696: checking if poll really works" >&5
21697 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
21698 if test "${cf_cv_working_poll+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 if test "$cross_compiling" = yes; then
21703 cf_cv_working_poll=unknown
21705 cat >conftest.$ac_ext <<_ACEOF
21706 #line 21706 "configure"
21707 #include "confdefs.h"
21709 #include <stdlib.h>
21711 #include <unistd.h>
21716 #include <sys/poll.h>
21719 struct pollfd myfds;
21722 /* check for Darwin bug with respect to "devices" */
21723 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
21726 myfds.events = POLLIN;
21729 ret = poll(&myfds, 1, 100);
21731 if (ret < 0 || (myfds.revents & POLLNVAL)) {
21736 fd = open("/dev/tty", 2); /* O_RDWR */
21738 #ifdef HAVE_POSIX_OPENPT
21740 fd = posix_openpt(O_RDWR);
21745 /* also check with standard input */
21747 myfds.events = POLLIN;
21749 ret = poll(&myfds, 1, 100);
21754 ${cf_cv_main_return:-return}(ret < 0);
21757 rm -f conftest$ac_exeext
21758 if { (eval echo "$as_me:21758: \"$ac_link\"") >&5
21759 (eval $ac_link) 2>&5
21761 echo "$as_me:21761: \$? = $ac_status" >&5
21762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21763 { (eval echo "$as_me:21763: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21766 echo "$as_me:21766: \$? = $ac_status" >&5
21767 (exit $ac_status); }; }; then
21768 cf_cv_working_poll=yes
21770 echo "$as_me: program exited with status $ac_status" >&5
21771 echo "$as_me: failed program was:" >&5
21772 cat conftest.$ac_ext >&5
21773 cf_cv_working_poll=no
21775 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21778 echo "$as_me:21778: result: $cf_cv_working_poll" >&5
21779 echo "${ECHO_T}$cf_cv_working_poll" >&6
21780 test "$cf_cv_working_poll" = "yes" &&
21781 cat >>confdefs.h <<\EOF
21782 #define HAVE_WORKING_POLL 1
21785 echo "$as_me:21785: checking for va_copy" >&5
21786 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21787 if test "${cf_cv_have_va_copy+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 cat >conftest.$ac_ext <<_ACEOF
21792 #line 21792 "configure"
21793 #include "confdefs.h"
21795 #include <stdarg.h>
21801 static va_list dst;
21802 static va_list src;
21808 rm -f conftest.$ac_objext conftest$ac_exeext
21809 if { (eval echo "$as_me:21809: \"$ac_link\"") >&5
21810 (eval $ac_link) 2>&5
21812 echo "$as_me:21812: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
21814 { ac_try='test -s conftest$ac_exeext'
21815 { (eval echo "$as_me:21815: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:21818: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 cf_cv_have_va_copy=yes
21822 echo "$as_me: failed program was:" >&5
21823 cat conftest.$ac_ext >&5
21824 cf_cv_have_va_copy=no
21826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21828 echo "$as_me:21828: result: $cf_cv_have_va_copy" >&5
21829 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
21831 if test "$cf_cv_have_va_copy" = yes;
21834 cat >>confdefs.h <<\EOF
21835 #define HAVE_VA_COPY 1
21838 else # !cf_cv_have_va_copy
21840 echo "$as_me:21840: checking for __va_copy" >&5
21841 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
21842 if test "${cf_cv_have___va_copy+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 cat >conftest.$ac_ext <<_ACEOF
21847 #line 21847 "configure"
21848 #include "confdefs.h"
21850 #include <stdarg.h>
21856 static va_list dst;
21857 static va_list src;
21858 __va_copy(dst, src)
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (eval echo "$as_me:21864: \"$ac_link\"") >&5
21865 (eval $ac_link) 2>&5
21867 echo "$as_me:21867: \$? = $ac_status" >&5
21868 (exit $ac_status); } &&
21869 { ac_try='test -s conftest$ac_exeext'
21870 { (eval echo "$as_me:21870: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21873 echo "$as_me:21873: \$? = $ac_status" >&5
21874 (exit $ac_status); }; }; then
21875 cf_cv_have___va_copy=yes
21877 echo "$as_me: failed program was:" >&5
21878 cat conftest.$ac_ext >&5
21879 cf_cv_have___va_copy=no
21881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21883 echo "$as_me:21883: result: $cf_cv_have___va_copy" >&5
21884 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
21886 if test "$cf_cv_have___va_copy" = yes
21889 cat >>confdefs.h <<\EOF
21890 #define HAVE___VA_COPY 1
21893 else # !cf_cv_have___va_copy
21895 echo "$as_me:21895: checking for __builtin_va_copy" >&5
21896 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
21897 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 cat >conftest.$ac_ext <<_ACEOF
21902 #line 21902 "configure"
21903 #include "confdefs.h"
21905 #include <stdarg.h>
21911 static va_list dst;
21912 static va_list src;
21913 __builtin_va_copy(dst, src)
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (eval echo "$as_me:21919: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>&5
21922 echo "$as_me:21922: \$? = $ac_status" >&5
21923 (exit $ac_status); } &&
21924 { ac_try='test -s conftest$ac_exeext'
21925 { (eval echo "$as_me:21925: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21928 echo "$as_me:21928: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 cf_cv_have___builtin_va_copy=yes
21932 echo "$as_me: failed program was:" >&5
21933 cat conftest.$ac_ext >&5
21934 cf_cv_have___builtin_va_copy=no
21936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21938 echo "$as_me:21938: result: $cf_cv_have___builtin_va_copy" >&5
21939 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
21941 test "$cf_cv_have___builtin_va_copy" = yes &&
21943 cat >>confdefs.h <<\EOF
21944 #define HAVE___BUILTIN_VA_COPY 1
21947 fi # cf_cv_have___va_copy
21949 fi # cf_cv_have_va_copy
21951 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
21956 echo "$as_me:21956: checking if we can simply copy va_list" >&5
21957 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
21958 if test "${cf_cv_pointer_va_list+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 cat >conftest.$ac_ext <<_ACEOF
21963 #line 21963 "configure"
21964 #include "confdefs.h"
21966 #include <stdarg.h>
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (eval echo "$as_me:21980: \"$ac_link\"") >&5
21981 (eval $ac_link) 2>&5
21983 echo "$as_me:21983: \$? = $ac_status" >&5
21984 (exit $ac_status); } &&
21985 { ac_try='test -s conftest$ac_exeext'
21986 { (eval echo "$as_me:21986: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21989 echo "$as_me:21989: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991 cf_cv_pointer_va_list=yes
21993 echo "$as_me: failed program was:" >&5
21994 cat conftest.$ac_ext >&5
21995 cf_cv_pointer_va_list=no
21997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21999 echo "$as_me:21999: result: $cf_cv_pointer_va_list" >&5
22000 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
22002 if test "$cf_cv_pointer_va_list" = no
22004 echo "$as_me:22004: checking if we can copy va_list indirectly" >&5
22005 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
22006 if test "${cf_cv_array_va_list+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 cat >conftest.$ac_ext <<_ACEOF
22011 #line 22011 "configure"
22012 #include "confdefs.h"
22014 #include <stdarg.h>
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (eval echo "$as_me:22028: \"$ac_link\"") >&5
22029 (eval $ac_link) 2>&5
22031 echo "$as_me:22031: \$? = $ac_status" >&5
22032 (exit $ac_status); } &&
22033 { ac_try='test -s conftest$ac_exeext'
22034 { (eval echo "$as_me:22034: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22037 echo "$as_me:22037: \$? = $ac_status" >&5
22038 (exit $ac_status); }; }; then
22039 cf_cv_array_va_list=yes
22041 echo "$as_me: failed program was:" >&5
22042 cat conftest.$ac_ext >&5
22043 cf_cv_array_va_list=no
22045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22047 echo "$as_me:22047: result: $cf_cv_array_va_list" >&5
22048 echo "${ECHO_T}$cf_cv_array_va_list" >&6
22049 test "$cf_cv_array_va_list" = yes &&
22050 cat >>confdefs.h <<\EOF
22051 #define ARRAY_VA_LIST 1
22058 echo "$as_me:22058: checking for pid_t" >&5
22059 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22060 if test "${ac_cv_type_pid_t+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 cat >conftest.$ac_ext <<_ACEOF
22064 #line 22064 "configure"
22065 #include "confdefs.h"
22066 $ac_includes_default
22072 if (sizeof (pid_t))
22078 rm -f conftest.$ac_objext
22079 if { (eval echo "$as_me:22079: \"$ac_compile\"") >&5
22080 (eval $ac_compile) 2>&5
22082 echo "$as_me:22082: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
22084 { ac_try='test -s conftest.$ac_objext'
22085 { (eval echo "$as_me:22085: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22088 echo "$as_me:22088: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 ac_cv_type_pid_t=yes
22092 echo "$as_me: failed program was:" >&5
22093 cat conftest.$ac_ext >&5
22094 ac_cv_type_pid_t=no
22096 rm -f conftest.$ac_objext conftest.$ac_ext
22098 echo "$as_me:22098: result: $ac_cv_type_pid_t" >&5
22099 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22100 if test $ac_cv_type_pid_t = yes; then
22104 cat >>confdefs.h <<EOF
22110 for ac_header in unistd.h vfork.h
22112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22113 echo "$as_me:22113: checking for $ac_header" >&5
22114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 cat >conftest.$ac_ext <<_ACEOF
22119 #line 22119 "configure"
22120 #include "confdefs.h"
22121 #include <$ac_header>
22123 if { (eval echo "$as_me:22123: \"$ac_cpp conftest.$ac_ext\"") >&5
22124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22126 egrep -v '^ *\+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:22129: \$? = $ac_status" >&5
22130 (exit $ac_status); } >/dev/null; then
22131 if test -s conftest.err; then
22132 ac_cpp_err=$ac_c_preproc_warn_flag
22139 if test -z "$ac_cpp_err"; then
22140 eval "$as_ac_Header=yes"
22142 echo "$as_me: failed program was:" >&5
22143 cat conftest.$ac_ext >&5
22144 eval "$as_ac_Header=no"
22146 rm -f conftest.err conftest.$ac_ext
22148 echo "$as_me:22148: result: `eval echo '${'$as_ac_Header'}'`" >&5
22149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22151 cat >>confdefs.h <<EOF
22152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22158 for ac_func in fork vfork
22160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22161 echo "$as_me:22161: checking for $ac_func" >&5
22162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22163 if eval "test \"\${$as_ac_var+set}\" = set"; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 cat >conftest.$ac_ext <<_ACEOF
22167 #line 22167 "configure"
22168 #include "confdefs.h"
22169 #define $ac_func autoconf_temporary
22170 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22177 /* We use char because int might match the return type of a gcc2
22178 builtin and then its argument prototype would still apply. */
22179 char $ac_func (void);
22185 /* The GNU C library defines stubs for functions which it implements
22186 to always fail with ENOSYS. Some functions are actually named
22187 something starting with __ and the normal name is an alias. */
22188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22189 #error found stub for $ac_func
22192 return $ac_func ();
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (eval echo "$as_me:22198: \"$ac_link\"") >&5
22199 (eval $ac_link) 2>&5
22201 echo "$as_me:22201: \$? = $ac_status" >&5
22202 (exit $ac_status); } &&
22203 { ac_try='test -s conftest$ac_exeext'
22204 { (eval echo "$as_me:22204: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22207 echo "$as_me:22207: \$? = $ac_status" >&5
22208 (exit $ac_status); }; }; then
22209 eval "$as_ac_var=yes"
22211 echo "$as_me: failed program was:" >&5
22212 cat conftest.$ac_ext >&5
22213 eval "$as_ac_var=no"
22215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22217 echo "$as_me:22217: result: `eval echo '${'$as_ac_var'}'`" >&5
22218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220 cat >>confdefs.h <<EOF
22221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22227 ac_cv_func_fork_works=$ac_cv_func_fork
22228 if test "x$ac_cv_func_fork" = xyes; then
22229 echo "$as_me:22229: checking for working fork" >&5
22230 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22231 if test "${ac_cv_func_fork_works+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 if test "$cross_compiling" = yes; then
22235 ac_cv_func_fork_works=cross
22237 cat >conftest.$ac_ext <<_ACEOF
22238 /* By Rüdiger Kuhlmann. */
22239 #include <sys/types.h>
22241 # include <unistd.h>
22243 /* Some systems only have a dummy stub for fork() */
22247 $ac_main_return (1);
22248 $ac_main_return (0);
22251 rm -f conftest$ac_exeext
22252 if { (eval echo "$as_me:22252: \"$ac_link\"") >&5
22253 (eval $ac_link) 2>&5
22255 echo "$as_me:22255: \$? = $ac_status" >&5
22256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22257 { (eval echo "$as_me:22257: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22260 echo "$as_me:22260: \$? = $ac_status" >&5
22261 (exit $ac_status); }; }; then
22262 ac_cv_func_fork_works=yes
22264 echo "$as_me: program exited with status $ac_status" >&5
22265 echo "$as_me: failed program was:" >&5
22266 cat conftest.$ac_ext >&5
22267 ac_cv_func_fork_works=no
22269 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22272 echo "$as_me:22272: result: $ac_cv_func_fork_works" >&5
22273 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22276 if test "x$ac_cv_func_fork_works" = xcross; then
22278 *-*-amigaos* | *-*-msdosdjgpp*)
22279 # Override, as these systems have only a dummy fork() stub
22280 ac_cv_func_fork_works=no
22283 ac_cv_func_fork_works=yes
22286 { echo "$as_me:22286: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
22287 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
22289 ac_cv_func_vfork_works=$ac_cv_func_vfork
22290 if test "x$ac_cv_func_vfork" = xyes; then
22291 echo "$as_me:22291: checking for working vfork" >&5
22292 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22293 if test "${ac_cv_func_vfork_works+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 if test "$cross_compiling" = yes; then
22297 ac_cv_func_vfork_works=cross
22299 cat >conftest.$ac_ext <<_ACEOF
22300 #line 22300 "configure"
22301 #include "confdefs.h"
22302 /* Thanks to Paul Eggert for this test. */
22304 #include <sys/types.h>
22305 #include <sys/stat.h>
22307 # include <unistd.h>
22310 # include <vfork.h>
22312 /* On some sparc systems, changes by the child to local and incoming
22313 argument registers are propagated back to the parent. The compiler
22314 is told about this with #include <vfork.h>, but some compilers
22315 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22316 static variable whose address is put into a register that is
22317 clobbered by the vfork. */
22320 sparc_address_test (int arg)
22322 sparc_address_test (arg) int arg;
22325 static pid_t child;
22343 pid_t parent = getpid ();
22346 sparc_address_test ();
22351 /* Here is another test for sparc vfork register problems. This
22352 test uses lots of local variables, at least as many local
22353 variables as main has allocated so far including compiler
22354 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22355 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22356 reuse the register of parent for one of the local variables,
22357 since it will think that parent can't possibly be used any more
22358 in this routine. Assigning to the local variable will thus
22359 munge parent in the parent process. */
22361 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22362 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22363 /* Convince the compiler that p..p7 are live; otherwise, it might
22364 use the same hardware register for all 8 local variables. */
22365 if (p != p1 || p != p2 || p != p3 || p != p4
22366 || p != p5 || p != p6 || p != p7)
22369 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22370 from child file descriptors. If the child closes a descriptor
22371 before it execs or exits, this munges the parent's descriptor
22372 as well. Test for this by closing stdout in the child. */
22373 _exit(close(fileno(stdout)) != 0);
22378 while (wait(&status) != child)
22381 /* Was there some problem with vforking? */
22384 /* Did the child fail? (This shouldn't happen.) */
22387 /* Did the vfork/compiler bug occur? */
22388 || parent != getpid()
22390 /* Did the file descriptor bug occur? */
22391 || fstat(fileno(stdout), &st) != 0
22396 rm -f conftest$ac_exeext
22397 if { (eval echo "$as_me:22397: \"$ac_link\"") >&5
22398 (eval $ac_link) 2>&5
22400 echo "$as_me:22400: \$? = $ac_status" >&5
22401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22402 { (eval echo "$as_me:22402: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22405 echo "$as_me:22405: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 ac_cv_func_vfork_works=yes
22409 echo "$as_me: program exited with status $ac_status" >&5
22410 echo "$as_me: failed program was:" >&5
22411 cat conftest.$ac_ext >&5
22412 ac_cv_func_vfork_works=no
22414 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22417 echo "$as_me:22417: result: $ac_cv_func_vfork_works" >&5
22418 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22421 if test "x$ac_cv_func_fork_works" = xcross; then
22422 ac_cv_func_vfork_works=ac_cv_func_vfork
22423 { echo "$as_me:22423: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
22424 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
22427 if test "x$ac_cv_func_vfork_works" = xyes; then
22429 cat >>confdefs.h <<\EOF
22430 #define HAVE_WORKING_VFORK 1
22435 cat >>confdefs.h <<\EOF
22440 if test "x$ac_cv_func_fork_works" = xyes; then
22442 cat >>confdefs.h <<\EOF
22443 #define HAVE_WORKING_FORK 1
22448 echo "$as_me:22448: checking if fopen accepts explicit binary mode" >&5
22449 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
22450 if test "${cf_cv_fopen_bin_r+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 if test "$cross_compiling" = yes; then
22455 cf_cv_fopen_bin_r=unknown
22457 cat >conftest.$ac_ext <<_ACEOF
22458 #line 22458 "configure"
22459 #include "confdefs.h"
22463 FILE *fp = fopen("conftest.tmp", "wb");
22467 for (p = 0; p < 256; ++p) {
22471 fp = fopen("conftest.tmp", "rb");
22473 for (p = 0; p < 256; ++p) {
22486 ${cf_cv_main_return:-return} (rc);
22490 rm -f conftest$ac_exeext
22491 if { (eval echo "$as_me:22491: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>&5
22494 echo "$as_me:22494: \$? = $ac_status" >&5
22495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22496 { (eval echo "$as_me:22496: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22499 echo "$as_me:22499: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 cf_cv_fopen_bin_r=yes
22503 echo "$as_me: program exited with status $ac_status" >&5
22504 echo "$as_me: failed program was:" >&5
22505 cat conftest.$ac_ext >&5
22506 cf_cv_fopen_bin_r=no
22508 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22512 echo "$as_me:22512: result: $cf_cv_fopen_bin_r" >&5
22513 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
22514 test "x$cf_cv_fopen_bin_r" != xno &&
22515 cat >>confdefs.h <<\EOF
22516 #define USE_FOPEN_BIN_R 1
22519 # special check for test/ditto.c
22521 echo "$as_me:22521: checking for openpty in -lutil" >&5
22522 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
22523 if test "${ac_cv_lib_util_openpty+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 ac_check_lib_save_LIBS=$LIBS
22527 LIBS="-lutil $LIBS"
22528 cat >conftest.$ac_ext <<_ACEOF
22529 #line 22529 "configure"
22530 #include "confdefs.h"
22532 /* Override any gcc2 internal prototype to avoid an error. */
22536 /* We use char because int might match the return type of a gcc2
22537 builtin and then its argument prototype would still apply. */
22547 rm -f conftest.$ac_objext conftest$ac_exeext
22548 if { (eval echo "$as_me:22548: \"$ac_link\"") >&5
22549 (eval $ac_link) 2>&5
22551 echo "$as_me:22551: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
22553 { ac_try='test -s conftest$ac_exeext'
22554 { (eval echo "$as_me:22554: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22557 echo "$as_me:22557: \$? = $ac_status" >&5
22558 (exit $ac_status); }; }; then
22559 ac_cv_lib_util_openpty=yes
22561 echo "$as_me: failed program was:" >&5
22562 cat conftest.$ac_ext >&5
22563 ac_cv_lib_util_openpty=no
22565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22566 LIBS=$ac_check_lib_save_LIBS
22568 echo "$as_me:22568: result: $ac_cv_lib_util_openpty" >&5
22569 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
22570 if test $ac_cv_lib_util_openpty = yes; then
22576 echo "$as_me:22576: checking for openpty header" >&5
22577 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
22578 if test "${cf_cv_func_openpty+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 cf_save_LIBS="$LIBS"
22583 test $cf_cv_lib_util = yes && {
22584 cf_add_libs="$LIBS"
22587 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22588 # filter duplicates
22589 for cf_add_1lib in $cf_add_0lib; do
22590 for cf_add_2lib in $cf_add_libs; do
22591 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22596 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22598 LIBS="$cf_add_libs"
22600 for cf_header in pty.h libutil.h util.h
22602 cat >conftest.$ac_ext <<_ACEOF
22603 #line 22603 "configure"
22604 #include "confdefs.h"
22606 #include <$cf_header>
22612 int x = openpty((int *)0, (int *)0, (char *)0,
22613 (struct termios *)0, (struct winsize *)0);
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (eval echo "$as_me:22620: \"$ac_link\"") >&5
22621 (eval $ac_link) 2>&5
22623 echo "$as_me:22623: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -s conftest$ac_exeext'
22626 { (eval echo "$as_me:22626: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22629 echo "$as_me:22629: \$? = $ac_status" >&5
22630 (exit $ac_status); }; }; then
22632 cf_cv_func_openpty=$cf_header
22636 echo "$as_me: failed program was:" >&5
22637 cat conftest.$ac_ext >&5
22639 cf_cv_func_openpty=no
22642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22644 LIBS="$cf_save_LIBS"
22647 echo "$as_me:22647: result: $cf_cv_func_openpty" >&5
22648 echo "${ECHO_T}$cf_cv_func_openpty" >&6
22650 if test "$cf_cv_func_openpty" != no ; then
22652 cat >>confdefs.h <<EOF
22653 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
22656 cat >>confdefs.h <<\EOF
22657 #define USE_XTERM_PTY 1
22660 if test "x$cf_cv_lib_util" = xyes ; then
22662 cf_add_libs="$TEST_LIBS"
22665 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22666 # filter duplicates
22667 for cf_add_1lib in $cf_add_0lib; do
22668 for cf_add_2lib in $cf_add_libs; do
22669 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22674 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22676 TEST_LIBS="$cf_add_libs"
22681 if test "$with_hashed_db" != no ; then
22683 cat >>confdefs.h <<\EOF
22684 #define USE_HASHED_DB 1
22687 case $with_hashed_db in
22691 if test -d "$with_hashed_db" ; then
22693 if test -n "$with_hashed_db/include" ; then
22694 for cf_add_incdir in $with_hashed_db/include
22696 while test $cf_add_incdir != /usr/include
22698 if test -d $cf_add_incdir
22701 if test -n "$CFLAGS$CPPFLAGS" ; then
22702 # a loop is needed to ensure we can add subdirs of existing dirs
22703 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22704 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22705 cf_have_incdir=yes; break
22710 if test "$cf_have_incdir" = no ; then
22711 if test "$cf_add_incdir" = /usr/local/include ; then
22712 if test "$GCC" = yes
22714 cf_save_CPPFLAGS=$CPPFLAGS
22716 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22717 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22719 cat >conftest.$ac_ext <<_ACEOF
22720 #line 22720 "configure"
22721 #include "confdefs.h"
22731 rm -f conftest.$ac_objext
22732 if { (eval echo "$as_me:22732: \"$ac_compile\"") >&5
22733 (eval $ac_compile) 2>&5
22735 echo "$as_me:22735: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
22737 { ac_try='test -s conftest.$ac_objext'
22738 { (eval echo "$as_me:22738: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:22741: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22745 echo "$as_me: failed program was:" >&5
22746 cat conftest.$ac_ext >&5
22749 rm -f conftest.$ac_objext conftest.$ac_ext
22750 CPPFLAGS=$cf_save_CPPFLAGS
22755 if test "$cf_have_incdir" = no ; then
22756 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22758 echo "${as_me:-configure}:22758: testing adding $cf_add_incdir to include-path ..." 1>&5
22760 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22762 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22763 test "$cf_top_incdir" = "$cf_add_incdir" && break
22764 cf_add_incdir="$cf_top_incdir"
22775 if test -n "$with_hashed_db/lib" ; then
22776 for cf_add_libdir in $with_hashed_db/lib
22778 if test $cf_add_libdir = /usr/lib ; then
22780 elif test -d $cf_add_libdir
22783 if test -n "$LDFLAGS$LIBS" ; then
22784 # a loop is needed to ensure we can add subdirs of existing dirs
22785 for cf_test_libdir in $LDFLAGS $LIBS ; do
22786 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22787 cf_have_libdir=yes; break
22791 if test "$cf_have_libdir" = no ; then
22792 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22794 echo "${as_me:-configure}:22794: testing adding $cf_add_libdir to library-path ..." 1>&5
22796 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22803 case "$with_hashed_db" in
22805 { echo "$as_me:22805: WARNING: no such directory $with_hashed_db" >&5
22806 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
22812 test "x$prefix" != "xNONE" && \
22813 test -d "$prefix" && \
22815 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
22816 test -d $prefix/include && cf_search="$cf_search $prefix/include"
22817 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
22818 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
22819 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
22820 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
22823 for cf_subdir_prefix in \
22832 test "x$cf_subdir_prefix" != "x$prefix" && \
22833 test -d "$cf_subdir_prefix" && \
22834 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22835 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
22836 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
22837 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
22838 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
22839 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
22840 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"
22845 for cf_item in $cf_search
22848 (*/$with_hashed_db)
22850 if test -n "$cf_item" ; then
22851 for cf_add_incdir in $cf_item
22853 while test $cf_add_incdir != /usr/include
22855 if test -d $cf_add_incdir
22858 if test -n "$CFLAGS$CPPFLAGS" ; then
22859 # a loop is needed to ensure we can add subdirs of existing dirs
22860 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22861 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22862 cf_have_incdir=yes; break
22867 if test "$cf_have_incdir" = no ; then
22868 if test "$cf_add_incdir" = /usr/local/include ; then
22869 if test "$GCC" = yes
22871 cf_save_CPPFLAGS=$CPPFLAGS
22873 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22874 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22876 cat >conftest.$ac_ext <<_ACEOF
22877 #line 22877 "configure"
22878 #include "confdefs.h"
22888 rm -f conftest.$ac_objext
22889 if { (eval echo "$as_me:22889: \"$ac_compile\"") >&5
22890 (eval $ac_compile) 2>&5
22892 echo "$as_me:22892: \$? = $ac_status" >&5
22893 (exit $ac_status); } &&
22894 { ac_try='test -s conftest.$ac_objext'
22895 { (eval echo "$as_me:22895: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22898 echo "$as_me:22898: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22902 echo "$as_me: failed program was:" >&5
22903 cat conftest.$ac_ext >&5
22906 rm -f conftest.$ac_objext conftest.$ac_ext
22907 CPPFLAGS=$cf_save_CPPFLAGS
22912 if test "$cf_have_incdir" = no ; then
22913 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22915 echo "${as_me:-configure}:22915: testing adding $cf_add_incdir to include-path ..." 1>&5
22917 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22919 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22920 test "$cf_top_incdir" = "$cf_add_incdir" && break
22921 cf_add_incdir="$cf_top_incdir"
22938 test "x$prefix" != "xNONE" && \
22939 test -d "$prefix" && \
22941 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
22942 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
22943 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
22944 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
22945 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
22946 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
22949 for cf_subdir_prefix in \
22958 test "x$cf_subdir_prefix" != "x$prefix" && \
22959 test -d "$cf_subdir_prefix" && \
22960 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22961 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
22962 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
22963 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
22964 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
22965 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
22966 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"
22971 for cf_item in $cf_search
22974 (*/$with_hashed_db)
22976 if test -n "$cf_item" ; then
22977 for cf_add_libdir in $cf_item
22979 if test $cf_add_libdir = /usr/lib ; then
22981 elif test -d $cf_add_libdir
22984 if test -n "$LDFLAGS$LIBS" ; then
22985 # a loop is needed to ensure we can add subdirs of existing dirs
22986 for cf_test_libdir in $LDFLAGS $LIBS ; do
22987 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22988 cf_have_libdir=yes; break
22992 if test "$cf_have_libdir" = no ; then
22993 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22995 echo "${as_me:-configure}:22995: testing adding $cf_add_libdir to library-path ..." 1>&5
22997 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23012 echo "$as_me:23012: checking for db.h" >&5
23013 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
23014 if test "${ac_cv_header_db_h+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 cat >conftest.$ac_ext <<_ACEOF
23018 #line 23018 "configure"
23019 #include "confdefs.h"
23022 if { (eval echo "$as_me:23022: \"$ac_cpp conftest.$ac_ext\"") >&5
23023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23025 egrep -v '^ *\+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 echo "$as_me:23028: \$? = $ac_status" >&5
23029 (exit $ac_status); } >/dev/null; then
23030 if test -s conftest.err; then
23031 ac_cpp_err=$ac_c_preproc_warn_flag
23038 if test -z "$ac_cpp_err"; then
23039 ac_cv_header_db_h=yes
23041 echo "$as_me: failed program was:" >&5
23042 cat conftest.$ac_ext >&5
23043 ac_cv_header_db_h=no
23045 rm -f conftest.err conftest.$ac_ext
23047 echo "$as_me:23047: result: $ac_cv_header_db_h" >&5
23048 echo "${ECHO_T}$ac_cv_header_db_h" >&6
23049 if test $ac_cv_header_db_h = yes; then
23051 echo "$as_me:23051: checking for version of db" >&5
23052 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
23053 if test "${cf_cv_hashed_db_version+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 cf_cv_hashed_db_version=unknown
23059 for cf_db_version in 1 2 3 4 5 6
23062 echo "${as_me:-configure}:23062: testing checking for db version $cf_db_version ..." 1>&5
23064 cat >conftest.$ac_ext <<_ACEOF
23065 #line 23065 "configure"
23066 #include "confdefs.h"
23068 $ac_includes_default
23071 #ifdef DB_VERSION_MAJOR
23072 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
23073 #if $cf_db_version == DB_VERSION_MAJOR
23079 #if $cf_db_version == 1
23080 /* ok: assuming this is DB 1.8.5 */
23094 rm -f conftest.$ac_objext
23095 if { (eval echo "$as_me:23095: \"$ac_compile\"") >&5
23096 (eval $ac_compile) 2>&5
23098 echo "$as_me:23098: \$? = $ac_status" >&5
23099 (exit $ac_status); } &&
23100 { ac_try='test -s conftest.$ac_objext'
23101 { (eval echo "$as_me:23101: \"$ac_try\"") >&5
23102 (eval $ac_try) 2>&5
23104 echo "$as_me:23104: \$? = $ac_status" >&5
23105 (exit $ac_status); }; }; then
23107 cf_cv_hashed_db_version=$cf_db_version
23111 echo "$as_me: failed program was:" >&5
23112 cat conftest.$ac_ext >&5
23114 rm -f conftest.$ac_objext conftest.$ac_ext
23118 echo "$as_me:23118: result: $cf_cv_hashed_db_version" >&5
23119 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
23121 if test "$cf_cv_hashed_db_version" = unknown ; then
23122 { { echo "$as_me:23122: error: Cannot determine version of db" >&5
23123 echo "$as_me: error: Cannot determine version of db" >&2;}
23124 { (exit 1); exit 1; }; }
23127 echo "$as_me:23127: checking for db libraries" >&5
23128 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
23129 if test "${cf_cv_hashed_db_libs+set}" = set; then
23130 echo $ECHO_N "(cached) $ECHO_C" >&6
23133 cf_cv_hashed_db_libs=unknown
23134 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
23136 cf_save_libs="$LIBS"
23137 if test -n "$cf_db_libs"; then
23139 cf_add_libs="$LIBS"
23142 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23143 # filter duplicates
23144 for cf_add_1lib in $cf_add_0lib; do
23145 for cf_add_2lib in $cf_add_libs; do
23146 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23151 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23153 LIBS="$cf_add_libs"
23157 echo "${as_me:-configure}:23157: testing checking for library "$cf_db_libs" ..." 1>&5
23159 cat >conftest.$ac_ext <<_ACEOF
23160 #line 23160 "configure"
23161 #include "confdefs.h"
23163 $ac_includes_default
23170 char *path = "/tmp/foo";
23171 #ifdef DB_VERSION_MAJOR
23172 #if DB_VERSION_MAJOR >= 4
23174 db_create(&result, NULL, 0);
23175 result->open(result,
23182 #elif DB_VERSION_MAJOR >= 3
23184 db_create(&result, NULL, 0);
23185 result->open(result,
23191 #elif DB_VERSION_MAJOR >= 2
23200 #endif /* DB_VERSION_MAJOR */
23202 DB *result = dbopen(path,
23208 ${cf_cv_main_return:-return}(result != 0)
23214 rm -f conftest.$ac_objext conftest$ac_exeext
23215 if { (eval echo "$as_me:23215: \"$ac_link\"") >&5
23216 (eval $ac_link) 2>&5
23218 echo "$as_me:23218: \$? = $ac_status" >&5
23219 (exit $ac_status); } &&
23220 { ac_try='test -s conftest$ac_exeext'
23221 { (eval echo "$as_me:23221: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23224 echo "$as_me:23224: \$? = $ac_status" >&5
23225 (exit $ac_status); }; }; then
23227 if test -n "$cf_db_libs" ; then
23228 cf_cv_hashed_db_libs=$cf_db_libs
23230 cf_cv_hashed_db_libs=default
23232 LIBS="$cf_save_libs"
23236 echo "$as_me: failed program was:" >&5
23237 cat conftest.$ac_ext >&5
23239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23240 LIBS="$cf_save_libs"
23244 echo "$as_me:23244: result: $cf_cv_hashed_db_libs" >&5
23245 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
23247 if test "$cf_cv_hashed_db_libs" = unknown ; then
23248 { { echo "$as_me:23248: error: Cannot determine library for db" >&5
23249 echo "$as_me: error: Cannot determine library for db" >&2;}
23250 { (exit 1); exit 1; }; }
23251 elif test "$cf_cv_hashed_db_libs" != default ; then
23253 cf_add_libs="$LIBS"
23256 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23257 # filter duplicates
23258 for cf_add_1lib in $cf_add_0lib; do
23259 for cf_add_2lib in $cf_add_libs; do
23260 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23265 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23267 LIBS="$cf_add_libs"
23274 { { echo "$as_me:23274: error: Cannot find db.h" >&5
23275 echo "$as_me: error: Cannot find db.h" >&2;}
23276 { (exit 1); exit 1; }; }
23282 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
23283 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23284 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23287 # Just in case, check if the C compiler has a bool type.
23289 echo "$as_me:23289: checking if we should include stdbool.h" >&5
23290 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
23292 if test "${cf_cv_header_stdbool_h+set}" = set; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23297 #line 23297 "configure"
23298 #include "confdefs.h"
23308 rm -f conftest.$ac_objext
23309 if { (eval echo "$as_me:23309: \"$ac_compile\"") >&5
23310 (eval $ac_compile) 2>&5
23312 echo "$as_me:23312: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -s conftest.$ac_objext'
23315 { (eval echo "$as_me:23315: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23318 echo "$as_me:23318: \$? = $ac_status" >&5
23319 (exit $ac_status); }; }; then
23320 cf_cv_header_stdbool_h=0
23322 echo "$as_me: failed program was:" >&5
23323 cat conftest.$ac_ext >&5
23324 cat >conftest.$ac_ext <<_ACEOF
23325 #line 23325 "configure"
23326 #include "confdefs.h"
23329 #include <stdbool.h>
23340 rm -f conftest.$ac_objext
23341 if { (eval echo "$as_me:23341: \"$ac_compile\"") >&5
23342 (eval $ac_compile) 2>&5
23344 echo "$as_me:23344: \$? = $ac_status" >&5
23345 (exit $ac_status); } &&
23346 { ac_try='test -s conftest.$ac_objext'
23347 { (eval echo "$as_me:23347: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23350 echo "$as_me:23350: \$? = $ac_status" >&5
23351 (exit $ac_status); }; }; then
23352 cf_cv_header_stdbool_h=1
23354 echo "$as_me: failed program was:" >&5
23355 cat conftest.$ac_ext >&5
23356 cf_cv_header_stdbool_h=0
23358 rm -f conftest.$ac_objext conftest.$ac_ext
23360 rm -f conftest.$ac_objext conftest.$ac_ext
23363 if test "$cf_cv_header_stdbool_h" = 1
23364 then echo "$as_me:23364: result: yes" >&5
23365 echo "${ECHO_T}yes" >&6
23366 else echo "$as_me:23366: result: no" >&5
23367 echo "${ECHO_T}no" >&6
23370 echo "$as_me:23370: checking for builtin bool type" >&5
23371 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
23373 if test "${cf_cv_cc_bool_type+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 cat >conftest.$ac_ext <<_ACEOF
23378 #line 23378 "configure"
23379 #include "confdefs.h"
23382 #include <sys/types.h>
23392 rm -f conftest.$ac_objext
23393 if { (eval echo "$as_me:23393: \"$ac_compile\"") >&5
23394 (eval $ac_compile) 2>&5
23396 echo "$as_me:23396: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
23398 { ac_try='test -s conftest.$ac_objext'
23399 { (eval echo "$as_me:23399: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23402 echo "$as_me:23402: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 cf_cv_cc_bool_type=1
23406 echo "$as_me: failed program was:" >&5
23407 cat conftest.$ac_ext >&5
23408 cf_cv_cc_bool_type=0
23410 rm -f conftest.$ac_objext conftest.$ac_ext
23414 if test "$cf_cv_cc_bool_type" = 1
23415 then echo "$as_me:23415: result: yes" >&5
23416 echo "${ECHO_T}yes" >&6
23417 else echo "$as_me:23417: result: no" >&5
23418 echo "${ECHO_T}no" >&6
23421 # Check for C++ compiler characteristics (and ensure that it's there!)
23422 if test -n "$CXX" ; then
23424 ac_cpp='$CXXCPP $CPPFLAGS'
23425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23428 ac_main_return=return
23430 if test -n "$GXX" ; then
23433 LIBS="$LIBS $CXXLIBS"
23434 echo "$as_me:23434: checking if we already have C++ library" >&5
23435 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
23436 cat >conftest.$ac_ext <<_ACEOF
23437 #line 23437 "configure"
23438 #include "confdefs.h"
23440 #include <iostream>
23445 std::cout << "Hello World!" << std::endl;
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (eval echo "$as_me:23451: \"$ac_link\"") >&5
23452 (eval $ac_link) 2>&5
23454 echo "$as_me:23454: \$? = $ac_status" >&5
23455 (exit $ac_status); } &&
23456 { ac_try='test -s conftest$ac_exeext'
23457 { (eval echo "$as_me:23457: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23460 echo "$as_me:23460: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 cf_have_libstdcpp=yes
23464 echo "$as_me: failed program was:" >&5
23465 cat conftest.$ac_ext >&5
23466 cf_have_libstdcpp=no
23468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23469 echo "$as_me:23469: result: $cf_have_libstdcpp" >&5
23470 echo "${ECHO_T}$cf_have_libstdcpp" >&6
23473 if test $cf_have_libstdcpp != yes
23475 case $cf_cv_system_name in
23477 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
23478 cf_stdcpp_libname=stdcpp
23480 cf_stdcpp_libname=stdc++
23484 cf_stdcpp_libname=stdc++
23488 echo "$as_me:23488: checking for library $cf_stdcpp_libname" >&5
23489 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
23490 if test "${cf_cv_libstdcpp+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23495 LIBS="$LIBS $CXXLIBS"
23497 cf_add_libs="$LIBS"
23500 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23501 # filter duplicates
23502 for cf_add_1lib in $cf_add_0lib; do
23503 for cf_add_2lib in $cf_add_libs; do
23504 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23509 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23511 LIBS="$cf_add_libs"
23513 cat >conftest.$ac_ext <<_ACEOF
23514 #line 23514 "configure"
23515 #include "confdefs.h"
23517 #include <iostream>
23522 std::cout << "Hello World!" << std::endl;
23527 rm -f conftest.$ac_objext conftest$ac_exeext
23528 if { (eval echo "$as_me:23528: \"$ac_link\"") >&5
23529 (eval $ac_link) 2>&5
23531 echo "$as_me:23531: \$? = $ac_status" >&5
23532 (exit $ac_status); } &&
23533 { ac_try='test -s conftest$ac_exeext'
23534 { (eval echo "$as_me:23534: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23537 echo "$as_me:23537: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 cf_cv_libstdcpp=yes
23541 echo "$as_me: failed program was:" >&5
23542 cat conftest.$ac_ext >&5
23545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23549 echo "$as_me:23549: result: $cf_cv_libstdcpp" >&5
23550 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
23551 test "$cf_cv_libstdcpp" = yes && {
23552 cf_add_libs="$CXXLIBS"
23555 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23556 # filter duplicates
23557 for cf_add_1lib in $cf_add_0lib; do
23558 for cf_add_2lib in $cf_add_libs; do
23559 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23564 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23566 CXXLIBS="$cf_add_libs"
23571 echo "$as_me:23571: checking whether $CXX understands -c and -o together" >&5
23572 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
23573 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 cat > conftest.$ac_ext <<CF_EOF
23580 ${cf_cv_main_return:-return}(0);
23583 # We do the test twice because some compilers refuse to overwrite an
23584 # existing .o file with -o, though they will create one.
23585 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23586 if { (eval echo "$as_me:23586: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23589 echo "$as_me:23589: \$? = $ac_status" >&5
23590 (exit $ac_status); } &&
23591 test -f conftest2.$ac_objext && { (eval echo "$as_me:23591: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:23594: \$? = $ac_status" >&5
23595 (exit $ac_status); };
23597 eval cf_cv_prog_CXX_c_o=yes
23599 eval cf_cv_prog_CXX_c_o=no
23604 if test $cf_cv_prog_CXX_c_o = yes; then
23605 echo "$as_me:23605: result: yes" >&5
23606 echo "${ECHO_T}yes" >&6
23608 echo "$as_me:23608: result: no" >&5
23609 echo "${ECHO_T}no" >&6
23612 case $GXX_VERSION in
23613 (1.*|2.[0-6]*|[1-9][0-9].*)
23618 cf_cxx_library=unknown
23619 case $cf_cv_system_name in
23627 if test "$GXX" = yes; then
23628 echo "$as_me:23628: checking for lib$cf_gpp_libname" >&5
23629 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
23632 cf_add_libs="$LIBS"
23635 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23636 # filter duplicates
23637 for cf_add_1lib in $cf_add_0lib; do
23638 for cf_add_2lib in $cf_add_libs; do
23639 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23644 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23646 LIBS="$cf_add_libs"
23648 cat >conftest.$ac_ext <<_ACEOF
23649 #line 23649 "configure"
23650 #include "confdefs.h"
23652 #include <$cf_gpp_libname/builtin.h>
23657 two_arg_error_handler_t foo2 = lib_error_handler
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (eval echo "$as_me:23663: \"$ac_link\"") >&5
23664 (eval $ac_link) 2>&5
23666 echo "$as_me:23666: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -s conftest$ac_exeext'
23669 { (eval echo "$as_me:23669: \"$ac_try\"") >&5
23670 (eval $ac_try) 2>&5
23672 echo "$as_me:23672: \$? = $ac_status" >&5
23673 (exit $ac_status); }; }; then
23676 cf_add_libs="$CXXLIBS"
23679 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23680 # filter duplicates
23681 for cf_add_1lib in $cf_add_0lib; do
23682 for cf_add_2lib in $cf_add_libs; do
23683 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23688 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23690 CXXLIBS="$cf_add_libs"
23692 if test "$cf_gpp_libname" = cpp ; then
23694 cat >>confdefs.h <<\EOF
23695 #define HAVE_GPP_BUILTIN_H 1
23700 cat >>confdefs.h <<\EOF
23701 #define HAVE_GXX_BUILTIN_H 1
23706 echo "$as_me: failed program was:" >&5
23707 cat conftest.$ac_ext >&5
23708 cat >conftest.$ac_ext <<_ACEOF
23709 #line 23709 "configure"
23710 #include "confdefs.h"
23712 #include <builtin.h>
23717 two_arg_error_handler_t foo2 = lib_error_handler
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:23723: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>&5
23726 echo "$as_me:23726: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -s conftest$ac_exeext'
23729 { (eval echo "$as_me:23729: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:23732: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23736 cf_add_libs="$CXXLIBS"
23739 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23740 # filter duplicates
23741 for cf_add_1lib in $cf_add_0lib; do
23742 for cf_add_2lib in $cf_add_libs; do
23743 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23748 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23750 CXXLIBS="$cf_add_libs"
23752 cat >>confdefs.h <<\EOF
23753 #define HAVE_BUILTIN_H 1
23757 echo "$as_me: failed program was:" >&5
23758 cat conftest.$ac_ext >&5
23761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23765 echo "$as_me:23765: result: $cf_cxx_library" >&5
23766 echo "${ECHO_T}$cf_cxx_library" >&6
23776 ac_cpp='$CXXCPP $CPPFLAGS'
23777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23780 ac_main_return=return
23781 echo "$as_me:23781: checking how to run the C++ preprocessor" >&5
23782 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23783 if test -z "$CXXCPP"; then
23784 if test "${ac_cv_prog_CXXCPP+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 # Double quotes because CXXCPP needs to be expanded
23788 for CXXCPP in "$CXX -E" "/lib/cpp"
23790 ac_preproc_ok=false
23791 for ac_cxx_preproc_warn_flag in '' yes
23793 # Use a header file that comes with gcc, so configuring glibc
23794 # with a fresh cross-compiler works.
23795 # On the NeXT, cc -E runs the code through the compiler's parser,
23796 # not just through cpp. "Syntax error" is here to catch this case.
23797 cat >conftest.$ac_ext <<_ACEOF
23798 #line 23798 "configure"
23799 #include "confdefs.h"
23800 #include <assert.h>
23803 if { (eval echo "$as_me:23803: \"$ac_cpp conftest.$ac_ext\"") >&5
23804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23806 egrep -v '^ *\+' conftest.er1 >conftest.err
23808 cat conftest.err >&5
23809 echo "$as_me:23809: \$? = $ac_status" >&5
23810 (exit $ac_status); } >/dev/null; then
23811 if test -s conftest.err; then
23812 ac_cpp_err=$ac_cxx_preproc_warn_flag
23819 if test -z "$ac_cpp_err"; then
23822 echo "$as_me: failed program was:" >&5
23823 cat conftest.$ac_ext >&5
23824 # Broken: fails on valid input.
23827 rm -f conftest.err conftest.$ac_ext
23829 # OK, works on sane cases. Now check whether non-existent headers
23830 # can be detected and how.
23831 cat >conftest.$ac_ext <<_ACEOF
23832 #line 23832 "configure"
23833 #include "confdefs.h"
23834 #include <ac_nonexistent.h>
23836 if { (eval echo "$as_me:23836: \"$ac_cpp conftest.$ac_ext\"") >&5
23837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23839 egrep -v '^ *\+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 echo "$as_me:23842: \$? = $ac_status" >&5
23843 (exit $ac_status); } >/dev/null; then
23844 if test -s conftest.err; then
23845 ac_cpp_err=$ac_cxx_preproc_warn_flag
23852 if test -z "$ac_cpp_err"; then
23853 # Broken: success on invalid input.
23856 echo "$as_me: failed program was:" >&5
23857 cat conftest.$ac_ext >&5
23858 # Passes both tests.
23862 rm -f conftest.err conftest.$ac_ext
23865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23866 rm -f conftest.err conftest.$ac_ext
23867 if $ac_preproc_ok; then
23872 ac_cv_prog_CXXCPP=$CXXCPP
23875 CXXCPP=$ac_cv_prog_CXXCPP
23877 ac_cv_prog_CXXCPP=$CXXCPP
23879 echo "$as_me:23879: result: $CXXCPP" >&5
23880 echo "${ECHO_T}$CXXCPP" >&6
23881 ac_preproc_ok=false
23882 for ac_cxx_preproc_warn_flag in '' yes
23884 # Use a header file that comes with gcc, so configuring glibc
23885 # with a fresh cross-compiler works.
23886 # On the NeXT, cc -E runs the code through the compiler's parser,
23887 # not just through cpp. "Syntax error" is here to catch this case.
23888 cat >conftest.$ac_ext <<_ACEOF
23889 #line 23889 "configure"
23890 #include "confdefs.h"
23891 #include <assert.h>
23894 if { (eval echo "$as_me:23894: \"$ac_cpp conftest.$ac_ext\"") >&5
23895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23897 egrep -v '^ *\+' conftest.er1 >conftest.err
23899 cat conftest.err >&5
23900 echo "$as_me:23900: \$? = $ac_status" >&5
23901 (exit $ac_status); } >/dev/null; then
23902 if test -s conftest.err; then
23903 ac_cpp_err=$ac_cxx_preproc_warn_flag
23910 if test -z "$ac_cpp_err"; then
23913 echo "$as_me: failed program was:" >&5
23914 cat conftest.$ac_ext >&5
23915 # Broken: fails on valid input.
23918 rm -f conftest.err conftest.$ac_ext
23920 # OK, works on sane cases. Now check whether non-existent headers
23921 # can be detected and how.
23922 cat >conftest.$ac_ext <<_ACEOF
23923 #line 23923 "configure"
23924 #include "confdefs.h"
23925 #include <ac_nonexistent.h>
23927 if { (eval echo "$as_me:23927: \"$ac_cpp conftest.$ac_ext\"") >&5
23928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23930 egrep -v '^ *\+' conftest.er1 >conftest.err
23932 cat conftest.err >&5
23933 echo "$as_me:23933: \$? = $ac_status" >&5
23934 (exit $ac_status); } >/dev/null; then
23935 if test -s conftest.err; then
23936 ac_cpp_err=$ac_cxx_preproc_warn_flag
23943 if test -z "$ac_cpp_err"; then
23944 # Broken: success on invalid input.
23947 echo "$as_me: failed program was:" >&5
23948 cat conftest.$ac_ext >&5
23949 # Passes both tests.
23953 rm -f conftest.err conftest.$ac_ext
23956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23957 rm -f conftest.err conftest.$ac_ext
23958 if $ac_preproc_ok; then
23961 { { echo "$as_me:23961: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
23962 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
23963 { (exit 1); exit 1; }; }
23967 ac_cpp='$CXXCPP $CPPFLAGS'
23968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23971 ac_main_return=return
23973 for ac_header in typeinfo
23975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23976 echo "$as_me:23976: checking for $ac_header" >&5
23977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23979 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 cat >conftest.$ac_ext <<_ACEOF
23982 #line 23982 "configure"
23983 #include "confdefs.h"
23984 #include <$ac_header>
23986 if { (eval echo "$as_me:23986: \"$ac_cpp conftest.$ac_ext\"") >&5
23987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23989 egrep -v '^ *\+' conftest.er1 >conftest.err
23991 cat conftest.err >&5
23992 echo "$as_me:23992: \$? = $ac_status" >&5
23993 (exit $ac_status); } >/dev/null; then
23994 if test -s conftest.err; then
23995 ac_cpp_err=$ac_cxx_preproc_warn_flag
24002 if test -z "$ac_cpp_err"; then
24003 eval "$as_ac_Header=yes"
24005 echo "$as_me: failed program was:" >&5
24006 cat conftest.$ac_ext >&5
24007 eval "$as_ac_Header=no"
24009 rm -f conftest.err conftest.$ac_ext
24011 echo "$as_me:24011: result: `eval echo '${'$as_ac_Header'}'`" >&5
24012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24014 cat >>confdefs.h <<EOF
24015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24021 for ac_header in iostream
24023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24024 echo "$as_me:24024: checking for $ac_header" >&5
24025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24029 cat >conftest.$ac_ext <<_ACEOF
24030 #line 24030 "configure"
24031 #include "confdefs.h"
24032 #include <$ac_header>
24034 if { (eval echo "$as_me:24034: \"$ac_cpp conftest.$ac_ext\"") >&5
24035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24037 egrep -v '^ *\+' conftest.er1 >conftest.err
24039 cat conftest.err >&5
24040 echo "$as_me:24040: \$? = $ac_status" >&5
24041 (exit $ac_status); } >/dev/null; then
24042 if test -s conftest.err; then
24043 ac_cpp_err=$ac_cxx_preproc_warn_flag
24050 if test -z "$ac_cpp_err"; then
24051 eval "$as_ac_Header=yes"
24053 echo "$as_me: failed program was:" >&5
24054 cat conftest.$ac_ext >&5
24055 eval "$as_ac_Header=no"
24057 rm -f conftest.err conftest.$ac_ext
24059 echo "$as_me:24059: result: `eval echo '${'$as_ac_Header'}'`" >&5
24060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24062 cat >>confdefs.h <<EOF
24063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24069 if test x"$ac_cv_header_iostream" = xyes ; then
24070 echo "$as_me:24070: checking if iostream uses std-namespace" >&5
24071 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
24072 cat >conftest.$ac_ext <<_ACEOF
24073 #line 24073 "configure"
24074 #include "confdefs.h"
24076 #include <iostream>
24083 cerr << "testing" << endl;
24089 rm -f conftest.$ac_objext
24090 if { (eval echo "$as_me:24090: \"$ac_compile\"") >&5
24091 (eval $ac_compile) 2>&5
24093 echo "$as_me:24093: \$? = $ac_status" >&5
24094 (exit $ac_status); } &&
24095 { ac_try='test -s conftest.$ac_objext'
24096 { (eval echo "$as_me:24096: \"$ac_try\"") >&5
24097 (eval $ac_try) 2>&5
24099 echo "$as_me:24099: \$? = $ac_status" >&5
24100 (exit $ac_status); }; }; then
24101 cf_iostream_namespace=yes
24103 echo "$as_me: failed program was:" >&5
24104 cat conftest.$ac_ext >&5
24105 cf_iostream_namespace=no
24107 rm -f conftest.$ac_objext conftest.$ac_ext
24108 echo "$as_me:24108: result: $cf_iostream_namespace" >&5
24109 echo "${ECHO_T}$cf_iostream_namespace" >&6
24110 if test "$cf_iostream_namespace" = yes ; then
24112 cat >>confdefs.h <<\EOF
24113 #define IOSTREAM_NAMESPACE 1
24119 echo "$as_me:24119: checking if we should include stdbool.h" >&5
24120 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24122 if test "${cf_cv_header_stdbool_h+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 cat >conftest.$ac_ext <<_ACEOF
24127 #line 24127 "configure"
24128 #include "confdefs.h"
24138 rm -f conftest.$ac_objext
24139 if { (eval echo "$as_me:24139: \"$ac_compile\"") >&5
24140 (eval $ac_compile) 2>&5
24142 echo "$as_me:24142: \$? = $ac_status" >&5
24143 (exit $ac_status); } &&
24144 { ac_try='test -s conftest.$ac_objext'
24145 { (eval echo "$as_me:24145: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24148 echo "$as_me:24148: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 cf_cv_header_stdbool_h=0
24152 echo "$as_me: failed program was:" >&5
24153 cat conftest.$ac_ext >&5
24154 cat >conftest.$ac_ext <<_ACEOF
24155 #line 24155 "configure"
24156 #include "confdefs.h"
24159 #include <stdbool.h>
24170 rm -f conftest.$ac_objext
24171 if { (eval echo "$as_me:24171: \"$ac_compile\"") >&5
24172 (eval $ac_compile) 2>&5
24174 echo "$as_me:24174: \$? = $ac_status" >&5
24175 (exit $ac_status); } &&
24176 { ac_try='test -s conftest.$ac_objext'
24177 { (eval echo "$as_me:24177: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:24180: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 cf_cv_header_stdbool_h=1
24184 echo "$as_me: failed program was:" >&5
24185 cat conftest.$ac_ext >&5
24186 cf_cv_header_stdbool_h=0
24188 rm -f conftest.$ac_objext conftest.$ac_ext
24190 rm -f conftest.$ac_objext conftest.$ac_ext
24193 if test "$cf_cv_header_stdbool_h" = 1
24194 then echo "$as_me:24194: result: yes" >&5
24195 echo "${ECHO_T}yes" >&6
24196 else echo "$as_me:24196: result: no" >&5
24197 echo "${ECHO_T}no" >&6
24200 echo "$as_me:24200: checking for builtin bool type" >&5
24201 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24203 if test "${cf_cv_builtin_bool+set}" = set; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
24207 cat >conftest.$ac_ext <<_ACEOF
24208 #line 24208 "configure"
24209 #include "confdefs.h"
24212 #include <sys/types.h>
24222 rm -f conftest.$ac_objext
24223 if { (eval echo "$as_me:24223: \"$ac_compile\"") >&5
24224 (eval $ac_compile) 2>&5
24226 echo "$as_me:24226: \$? = $ac_status" >&5
24227 (exit $ac_status); } &&
24228 { ac_try='test -s conftest.$ac_objext'
24229 { (eval echo "$as_me:24229: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24232 echo "$as_me:24232: \$? = $ac_status" >&5
24233 (exit $ac_status); }; }; then
24234 cf_cv_builtin_bool=1
24236 echo "$as_me: failed program was:" >&5
24237 cat conftest.$ac_ext >&5
24238 cf_cv_builtin_bool=0
24240 rm -f conftest.$ac_objext conftest.$ac_ext
24244 if test "$cf_cv_builtin_bool" = 1
24245 then echo "$as_me:24245: result: yes" >&5
24246 echo "${ECHO_T}yes" >&6
24247 else echo "$as_me:24247: result: no" >&5
24248 echo "${ECHO_T}no" >&6
24251 echo "$as_me:24251: checking for size of bool" >&5
24252 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24253 if test "${cf_cv_type_of_bool+set}" = set; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 if test "$cross_compiling" = yes; then
24259 cf_cv_type_of_bool=unknown
24261 cat >conftest.$ac_ext <<_ACEOF
24262 #line 24262 "configure"
24263 #include "confdefs.h"
24265 #include <stdlib.h>
24268 #if defined(__cplusplus)
24270 #ifdef HAVE_GXX_BUILTIN_H
24271 #include <g++/builtin.h>
24272 #elif HAVE_GPP_BUILTIN_H
24273 #include <gpp/builtin.h>
24274 #elif HAVE_BUILTIN_H
24275 #include <builtin.h>
24280 #if $cf_cv_header_stdbool_h
24281 #include <stdbool.h>
24288 FILE *fp = fopen("cf_test.out", "w");
24291 if ((bool)(-x) >= 0)
24292 fputs("unsigned ", fp);
24293 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24294 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24295 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24296 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24299 ${cf_cv_main_return:-return}(0);
24303 rm -f conftest$ac_exeext
24304 if { (eval echo "$as_me:24304: \"$ac_link\"") >&5
24305 (eval $ac_link) 2>&5
24307 echo "$as_me:24307: \$? = $ac_status" >&5
24308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24309 { (eval echo "$as_me:24309: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24312 echo "$as_me:24312: \$? = $ac_status" >&5
24313 (exit $ac_status); }; }; then
24314 cf_cv_type_of_bool=`cat cf_test.out`
24315 if test -z "$cf_cv_type_of_bool"; then
24316 cf_cv_type_of_bool=unknown
24319 echo "$as_me: program exited with status $ac_status" >&5
24320 echo "$as_me: failed program was:" >&5
24321 cat conftest.$ac_ext >&5
24322 cf_cv_type_of_bool=unknown
24324 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24330 echo "$as_me:24330: result: $cf_cv_type_of_bool" >&5
24331 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24332 if test "$cf_cv_type_of_bool" = unknown ; then
24333 case .$NCURSES_BOOL in
24334 (.auto|.) NCURSES_BOOL=unsigned;;
24336 { echo "$as_me:24336: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24337 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24338 cf_cv_type_of_bool=$NCURSES_BOOL
24341 echo "$as_me:24341: checking for special defines needed for etip.h" >&5
24342 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
24343 cf_save_CXXFLAGS="$CXXFLAGS"
24346 # etip.h includes ncurses.h which includes ncurses_dll.h
24347 # But ncurses_dll.h is generated - fix here.
24348 test -d include || mkdir include
24349 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
24351 for cf_math in "" MATH_H
24353 for cf_excp in "" MATH_EXCEPTION
24355 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
24356 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
24357 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
24358 cat >conftest.$ac_ext <<_ACEOF
24359 #line 24359 "configure"
24360 #include "confdefs.h"
24362 #include <etip.h.in>
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:24373: \"$ac_compile\"") >&5
24374 (eval $ac_compile) 2>&5
24376 echo "$as_me:24376: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
24378 { ac_try='test -s conftest.$ac_objext'
24379 { (eval echo "$as_me:24379: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24382 echo "$as_me:24382: \$? = $ac_status" >&5
24383 (exit $ac_status); }; }; then
24385 test -n "$cf_math" && cat >>confdefs.h <<EOF
24386 #define ETIP_NEEDS_${cf_math} 1
24389 test -n "$cf_excp" && cat >>confdefs.h <<EOF
24390 #define ETIP_NEEDS_${cf_excp} 1
24393 cf_result="$cf_math $cf_excp"
24397 echo "$as_me: failed program was:" >&5
24398 cat conftest.$ac_ext >&5
24400 rm -f conftest.$ac_objext conftest.$ac_ext
24403 echo "$as_me:24403: result: $cf_result" >&5
24404 echo "${ECHO_T}$cf_result" >&6
24405 CXXFLAGS="$cf_save_CXXFLAGS"
24407 if test -n "$CXX"; then
24408 echo "$as_me:24408: checking if $CXX accepts parameter initialization" >&5
24409 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
24410 if test "${cf_cv_cpp_param_init+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24415 ac_cpp='$CXXCPP $CPPFLAGS'
24416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24419 ac_main_return=return
24421 if test "$cross_compiling" = yes; then
24422 cf_cv_cpp_param_init=unknown
24424 cat >conftest.$ac_ext <<_ACEOF
24425 #line 24425 "configure"
24426 #include "confdefs.h"
24436 TEST::TEST(int x = 1) // some compilers do not like second initializer
24443 rm -f conftest$ac_exeext
24444 if { (eval echo "$as_me:24444: \"$ac_link\"") >&5
24445 (eval $ac_link) 2>&5
24447 echo "$as_me:24447: \$? = $ac_status" >&5
24448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24449 { (eval echo "$as_me:24449: \"$ac_try\"") >&5
24450 (eval $ac_try) 2>&5
24452 echo "$as_me:24452: \$? = $ac_status" >&5
24453 (exit $ac_status); }; }; then
24454 cf_cv_cpp_param_init=yes
24456 echo "$as_me: program exited with status $ac_status" >&5
24457 echo "$as_me: failed program was:" >&5
24458 cat conftest.$ac_ext >&5
24459 cf_cv_cpp_param_init=no
24461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24464 ac_cpp='$CXXCPP $CPPFLAGS'
24465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24468 ac_main_return=return
24471 echo "$as_me:24471: result: $cf_cv_cpp_param_init" >&5
24472 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
24474 test "$cf_cv_cpp_param_init" = yes &&
24475 cat >>confdefs.h <<\EOF
24476 #define CPP_HAS_PARAM_INIT 1
24479 if test -n "$CXX"; then
24481 echo "$as_me:24481: checking if $CXX accepts static_cast" >&5
24482 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
24483 if test "${cf_cv_cpp_static_cast+set}" = set; then
24484 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 ac_cpp='$CXXCPP $CPPFLAGS'
24489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24492 ac_main_return=return
24494 cat >conftest.$ac_ext <<_ACEOF
24495 #line 24495 "configure"
24496 #include "confdefs.h"
24501 NCursesPanel(int nlines,
24511 template<class T> class NCursesUserPanel : public NCursesPanel
24514 NCursesUserPanel (int nlines,
24518 const T* p_UserData = static_cast<T*>(0))
24519 : NCursesPanel (nlines, ncols, begin_y, begin_x)
24522 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
24526 virtual ~NCursesUserPanel() {};
24533 const char* p_UserData = static_cast<char*>(0)
24538 rm -f conftest.$ac_objext
24539 if { (eval echo "$as_me:24539: \"$ac_compile\"") >&5
24540 (eval $ac_compile) 2>&5
24542 echo "$as_me:24542: \$? = $ac_status" >&5
24543 (exit $ac_status); } &&
24544 { ac_try='test -s conftest.$ac_objext'
24545 { (eval echo "$as_me:24545: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 echo "$as_me:24548: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24550 cf_cv_cpp_static_cast=yes
24552 echo "$as_me: failed program was:" >&5
24553 cat conftest.$ac_ext >&5
24554 cf_cv_cpp_static_cast=no
24556 rm -f conftest.$ac_objext conftest.$ac_ext
24559 ac_cpp='$CXXCPP $CPPFLAGS'
24560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24563 ac_main_return=return
24566 echo "$as_me:24566: result: $cf_cv_cpp_static_cast" >&5
24567 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
24571 test "$cf_cv_cpp_static_cast" = yes &&
24572 cat >>confdefs.h <<\EOF
24573 #define CPP_HAS_STATIC_CAST 1
24577 CXX_ARFLAGS='$(ARFLAGS)'
24578 case $cf_cv_system_name in
24580 if test "$GXX" != yes ; then
24582 CXX_ARFLAGS='-ar -o'
24586 CXXLDFLAGS="-u main"
24589 if test "$GXX" != yes ; then
24591 CXX_ARFLAGS='-xar -o'
24598 cf_cv_builtin_bool=1
24600 # Just because we are not configuring against C++ right now does not
24601 # mean that a user will not want to use C++. Some distributors disable
24602 # the C++ portion of this configuration as a shortcut (or just to avoid
24603 # compiling the demo in the c++ directory). So we need a reasonable
24604 # default for the 'bool' type.
24606 # Caveat: since the storage of the bool type is not standardized, it
24609 if test "$NCURSES_BOOL" != auto ; then
24610 cf_cv_type_of_bool=$NCURSES_BOOL
24611 cf_cv_header_stdbool_h=0
24613 if test "$cf_cv_header_stdbool_h" = 1 ; then
24615 echo "$as_me:24615: checking for size of bool" >&5
24616 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24617 if test "${cf_cv_type_of_bool+set}" = set; then
24618 echo $ECHO_N "(cached) $ECHO_C" >&6
24622 if test "$cross_compiling" = yes; then
24623 cf_cv_type_of_bool=unknown
24625 cat >conftest.$ac_ext <<_ACEOF
24626 #line 24626 "configure"
24627 #include "confdefs.h"
24629 #include <stdlib.h>
24632 #if defined(__cplusplus)
24634 #ifdef HAVE_GXX_BUILTIN_H
24635 #include <g++/builtin.h>
24636 #elif HAVE_GPP_BUILTIN_H
24637 #include <gpp/builtin.h>
24638 #elif HAVE_BUILTIN_H
24639 #include <builtin.h>
24644 #if $cf_cv_header_stdbool_h
24645 #include <stdbool.h>
24652 FILE *fp = fopen("cf_test.out", "w");
24655 if ((bool)(-x) >= 0)
24656 fputs("unsigned ", fp);
24657 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24658 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24659 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24660 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24663 ${cf_cv_main_return:-return}(0);
24667 rm -f conftest$ac_exeext
24668 if { (eval echo "$as_me:24668: \"$ac_link\"") >&5
24669 (eval $ac_link) 2>&5
24671 echo "$as_me:24671: \$? = $ac_status" >&5
24672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24673 { (eval echo "$as_me:24673: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24676 echo "$as_me:24676: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 cf_cv_type_of_bool=`cat cf_test.out`
24679 if test -z "$cf_cv_type_of_bool"; then
24680 cf_cv_type_of_bool=unknown
24683 echo "$as_me: program exited with status $ac_status" >&5
24684 echo "$as_me: failed program was:" >&5
24685 cat conftest.$ac_ext >&5
24686 cf_cv_type_of_bool=unknown
24688 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24694 echo "$as_me:24694: result: $cf_cv_type_of_bool" >&5
24695 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24696 if test "$cf_cv_type_of_bool" = unknown ; then
24697 case .$NCURSES_BOOL in
24698 (.auto|.) NCURSES_BOOL=unsigned;;
24700 { echo "$as_me:24700: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24701 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24702 cf_cv_type_of_bool=$NCURSES_BOOL
24706 echo "$as_me:24706: checking for fallback type of bool" >&5
24707 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
24708 case "$host_cpu" in
24709 (i?86) cf_cv_type_of_bool=char ;;
24710 (*) cf_cv_type_of_bool=int ;;
24712 echo "$as_me:24712: result: $cf_cv_type_of_bool" >&5
24713 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24718 # If the C compiler did not declare bool, and we did not determine that the C++
24719 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
24720 # ncurses library use the same type as C++ bool. Note that this allows one to
24721 # specify the type of bool in a configure-script option and postpone
24722 # integration with the C++ compiler provided that the types are compatible.
24724 if test $cf_cv_cc_bool_type = 1
24726 # oops: C has a bool. Unlikely, but C++ could differ.
24728 elif test $cf_cv_builtin_bool = 0
24733 # this is the normal case
24734 USE_CXX_BOOL='defined(__cplusplus)'
24737 if test -f "${srcdir}/Ada95/Makefile.in" ; then
24739 if test "$cf_with_ada" != "no" ; then
24740 if test "$with_libtool" != "no"; then
24741 { echo "$as_me:24741: WARNING: libtool does not support Ada - disabling feature" >&5
24742 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
24747 if test "$cf_with_ada" != "no" ; then
24749 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
24752 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24754 unset ac_cv_path_cf_TEMP_gnat
24756 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
24757 set dummy $cf_prog_gnat; ac_word=$2
24758 echo "$as_me:24758: checking for $ac_word" >&5
24759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24760 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24763 case $cf_TEMP_gnat in
24765 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
24768 ac_save_IFS=$IFS; IFS=$ac_path_separator
24770 for ac_dir in $ac_dummy; do
24772 test -z "$ac_dir" && ac_dir=.
24773 if $as_executable_p "$ac_dir/$ac_word"; then
24774 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
24775 echo "$as_me:24775: found $ac_dir/$ac_word" >&5
24780 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
24784 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
24786 if test -n "$cf_TEMP_gnat"; then
24787 echo "$as_me:24787: result: $cf_TEMP_gnat" >&5
24788 echo "${ECHO_T}$cf_TEMP_gnat" >&6
24790 echo "$as_me:24790: result: no" >&5
24791 echo "${ECHO_T}no" >&6
24794 eval cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat
24796 if test "x$cf_TEMP_gnat" != xno; then
24797 unset cf_cv_gnat_version
24800 echo "$as_me:24800: checking for $cf_prog_gnat version" >&5
24801 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
24802 if test "${cf_cv_gnat_version+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24806 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
24807 grep '[0-9].[0-9][0-9]*' |\
24808 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24811 echo "$as_me:24811: result: $cf_cv_gnat_version" >&5
24812 echo "${ECHO_T}$cf_cv_gnat_version" >&6
24813 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
24814 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
24817 eval cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat
24820 unset cf_cv_gnat_version
24821 unset ac_cv_path_cf_TEMP_gnat
24824 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
24826 cf_cv_prog_gnat_correct=no
24828 cf_ada_make=gnatmake
24829 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
24830 # gprconfig is newer than gnatmake; we can continue...
24833 rm -rf conftest* *~conftest*
24834 if mkdir conftest.src
24838 for cf_gprconfig in Ada C
24840 echo "$as_me:24840: checking for gprconfig name for $cf_gprconfig" >&5
24841 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
24842 if test $cf_gprconfig = C
24844 for cf_gprconfig_param in \
24845 $cf_gprconfig,,,,GNATGCC \
24846 $cf_gprconfig,,,,GCC \
24849 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24850 test -n "$cf_gprconfig_value" && break
24853 cf_gprconfig_param=$cf_gprconfig
24854 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24856 if test -n "$cf_gprconfig_value"
24858 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
24859 echo "$as_me:24859: result: $cf_gprconfig_value" >&5
24860 echo "${ECHO_T}$cf_gprconfig_value" >&6
24862 echo "$as_me:24862: result: missing" >&5
24863 echo "${ECHO_T}missing" >&6
24869 rm -rf conftest* *~conftest*
24872 if test "x$cf_ada_config" != "x#"
24875 echo "$as_me:24875: checking for gnat version" >&5
24876 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
24877 if test "${cf_cv_gnat_version+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
24882 grep '[0-9].[0-9][0-9]*' |\
24883 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24886 echo "$as_me:24886: result: $cf_cv_gnat_version" >&5
24887 echo "${ECHO_T}$cf_cv_gnat_version" >&6
24888 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
24890 case $cf_cv_gnat_version in
24891 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
24892 cf_cv_prog_gnat_correct=yes
24895 { echo "$as_me:24895: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
24896 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
24897 cf_cv_prog_gnat_correct=no
24901 # Extract the first word of "m4", so it can be a program name with args.
24902 set dummy m4; ac_word=$2
24903 echo "$as_me:24903: checking for $ac_word" >&5
24904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24905 if test "${ac_cv_prog_M4_exists+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 if test -n "$M4_exists"; then
24909 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
24911 ac_save_IFS=$IFS; IFS=$ac_path_separator
24913 for ac_dir in $ac_dummy; do
24915 test -z "$ac_dir" && ac_dir=.
24916 $as_executable_p "$ac_dir/$ac_word" || continue
24917 ac_cv_prog_M4_exists="yes"
24918 echo "$as_me:24918: found $ac_dir/$ac_word" >&5
24922 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
24925 M4_exists=$ac_cv_prog_M4_exists
24926 if test -n "$M4_exists"; then
24927 echo "$as_me:24927: result: $M4_exists" >&5
24928 echo "${ECHO_T}$M4_exists" >&6
24930 echo "$as_me:24930: result: no" >&5
24931 echo "${ECHO_T}no" >&6
24934 if test "$ac_cv_prog_M4_exists" = no; then
24935 cf_cv_prog_gnat_correct=no
24936 { echo "$as_me:24936: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
24937 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
24939 if test "$cf_cv_prog_gnat_correct" = yes; then
24940 echo "$as_me:24940: checking if GNAT works" >&5
24941 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
24943 rm -rf conftest* *~conftest*
24944 cat >>conftest.ads <<CF_EOF
24945 procedure conftest;
24947 cat >>conftest.adb <<CF_EOF
24950 procedure conftest is
24952 Text_IO.Put ("Hello World");
24954 GNAT.OS_Lib.OS_Exit (0);
24957 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24958 if ( ./conftest 1>&5 2>&1 ) ; then
24959 cf_cv_prog_gnat_correct=yes
24961 cf_cv_prog_gnat_correct=no
24964 cf_cv_prog_gnat_correct=no
24966 rm -rf conftest* *~conftest*
24968 echo "$as_me:24968: result: $cf_cv_prog_gnat_correct" >&5
24969 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
24972 cf_cv_prog_gnat_correct=no
24976 if test "x$cf_cv_prog_gnat_correct" = xyes; then
24978 ADAFLAGS="$ADAFLAGS -gnatpn"
24980 echo "$as_me:24980: checking optimization options for ADAFLAGS" >&5
24981 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
24985 ADAFLAGS="$ADAFLAGS -g"
24991 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
24993 ADAFLAGS="$ADAFLAGS $cf_O_flag"
24997 echo "$as_me:24997: result: $ADAFLAGS" >&5
24998 echo "${ECHO_T}$ADAFLAGS" >&6
25000 echo "$as_me:25000: checking if GNATPREP supports -T option" >&5
25001 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
25002 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 cf_cv_gnatprep_opt_t=no
25007 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
25010 echo "$as_me:25010: result: $cf_cv_gnatprep_opt_t" >&5
25011 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
25012 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
25014 echo "$as_me:25014: checking if GNAT supports generics" >&5
25015 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
25016 case $cf_cv_gnat_version in
25017 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
25018 cf_gnat_generics=yes
25021 cf_gnat_generics=no
25024 echo "$as_me:25024: result: $cf_gnat_generics" >&5
25025 echo "${ECHO_T}$cf_gnat_generics" >&6
25027 if test "$cf_gnat_generics" = yes
25029 cf_compile_generics=generics
25030 cf_generic_objects="\${GENOBJS}"
25032 cf_compile_generics=
25033 cf_generic_objects=
25036 echo "$as_me:25036: checking if GNAT supports SIGINT" >&5
25037 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
25038 if test "${cf_cv_gnat_sigint+set}" = set; then
25039 echo $ECHO_N "(cached) $ECHO_C" >&6
25042 rm -rf conftest* *~conftest*
25043 cat >>conftest.ads <<CF_EOF
25044 with Ada.Interrupts.Names;
25046 package ConfTest is
25048 pragma Warnings (Off); -- the next pragma exists since 3.11p
25049 pragma Unreserve_All_Interrupts;
25050 pragma Warnings (On);
25052 protected Process is
25054 function Continue return Boolean;
25055 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
25057 Done : Boolean := False;
25062 cat >>conftest.adb <<CF_EOF
25063 package body ConfTest is
25064 protected body Process is
25069 function Continue return Boolean is
25076 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
25077 cf_cv_gnat_sigint=yes
25079 cf_cv_gnat_sigint=no
25081 rm -rf conftest* *~conftest*
25084 echo "$as_me:25084: result: $cf_cv_gnat_sigint" >&5
25085 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
25087 if test $cf_cv_gnat_sigint = yes ; then
25090 USE_GNAT_SIGINT="#"
25093 cf_gnat_libraries=no
25094 cf_gnat_projects=no
25096 if test "$enable_gnat_projects" != no ; then
25097 echo "$as_me:25097: checking if GNAT supports project files" >&5
25098 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
25099 case $cf_cv_gnat_version in
25103 case $cf_cv_system_name in
25107 rm -rf conftest* *~conftest*
25108 if mkdir conftest.src conftest.bin conftest.lib
25111 rm -rf conftest* *~conftest*
25112 cat >>library.gpr <<CF_EOF
25114 Kind := External ("LIB_KIND");
25115 for Library_Name use "ConfTest";
25116 for Object_Dir use ".";
25117 for Library_ALI_Dir use External("LIBRARY_DIR");
25118 for Library_Version use External ("SONAME");
25119 for Library_Kind use Kind;
25120 for Library_Dir use External("BUILD_DIR");
25121 Source_Dir := External ("SOURCE_DIR");
25122 for Source_Dirs use (Source_Dir);
25125 cat >>confpackage.ads <<CF_EOF
25126 package ConfPackage is
25127 procedure conftest;
25130 cat >>confpackage.adb <<CF_EOF
25132 package body ConfPackage is
25133 procedure conftest is
25135 Text_IO.Put ("Hello World");
25140 if ( $cf_ada_make $ADAFLAGS \
25142 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
25143 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
25144 -XSOURCE_DIR=`pwd` \
25145 -XSONAME=libConfTest.so.1 \
25146 -XLIB_KIND=static 1>&5 2>&1 ) ; then
25147 cf_gnat_projects=yes
25151 if test -f conftest.lib/confpackage.ali
25153 cf_gnat_libraries=yes
25155 rm -rf conftest* *~conftest*
25160 echo "$as_me:25160: result: $cf_gnat_projects" >&5
25161 echo "${ECHO_T}$cf_gnat_projects" >&6
25162 fi # enable_gnat_projects
25164 if test $cf_gnat_projects = yes
25166 echo "$as_me:25166: checking if GNAT supports libraries" >&5
25167 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
25168 echo "$as_me:25168: result: $cf_gnat_libraries" >&5
25169 echo "${ECHO_T}$cf_gnat_libraries" >&6
25172 if test "$cf_gnat_projects" = yes
25174 USE_OLD_MAKERULES="#"
25175 USE_GNAT_PROJECTS=""
25177 USE_OLD_MAKERULES=""
25178 USE_GNAT_PROJECTS="#"
25181 if test "$cf_gnat_libraries" = yes
25183 USE_GNAT_LIBRARIES=""
25185 USE_GNAT_LIBRARIES="#"
25188 echo "$as_me:25188: checking for ada-compiler" >&5
25189 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
25191 # Check whether --with-ada-compiler or --without-ada-compiler was given.
25192 if test "${with_ada_compiler+set}" = set; then
25193 withval="$with_ada_compiler"
25194 cf_ada_compiler=$withval
25196 cf_ada_compiler=gnatmake
25199 echo "$as_me:25199: result: $cf_ada_compiler" >&5
25200 echo "${ECHO_T}$cf_ada_compiler" >&6
25202 cf_ada_package=terminal_interface
25204 echo "$as_me:25204: checking for ada-include" >&5
25205 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
25207 # Check whether --with-ada-include or --without-ada-include was given.
25208 if test "${with_ada_include+set}" = set; then
25209 withval="$with_ada_include"
25212 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
25213 fi; if test -n "$prefix/share/ada/adainclude" ; then
25215 if test "x$prefix" != xNONE; then
25216 cf_path_syntax="$prefix"
25218 cf_path_syntax="$ac_default_prefix"
25221 case ".$withval" in
25222 (.\$\(*\)*|.\'*\'*)
25226 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25228 (.\${*prefix}*|.\${*dir}*)
25229 eval withval="$withval"
25230 case ".$withval" in
25232 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25237 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25240 { { echo "$as_me:25240: error: expected a pathname, not \"$withval\"" >&5
25241 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25242 { (exit 1); exit 1; }; }
25247 eval ADA_INCLUDE="$withval"
25249 echo "$as_me:25249: result: $ADA_INCLUDE" >&5
25250 echo "${ECHO_T}$ADA_INCLUDE" >&6
25252 echo "$as_me:25252: checking for ada-objects" >&5
25253 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
25255 # Check whether --with-ada-objects or --without-ada-objects was given.
25256 if test "${with_ada_objects+set}" = set; then
25257 withval="$with_ada_objects"
25260 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
25261 fi; if test -n "$prefix/lib/ada/adalib" ; then
25263 if test "x$prefix" != xNONE; then
25264 cf_path_syntax="$prefix"
25266 cf_path_syntax="$ac_default_prefix"
25269 case ".$withval" in
25270 (.\$\(*\)*|.\'*\'*)
25274 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25276 (.\${*prefix}*|.\${*dir}*)
25277 eval withval="$withval"
25278 case ".$withval" in
25280 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25285 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25288 { { echo "$as_me:25288: error: expected a pathname, not \"$withval\"" >&5
25289 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25290 { (exit 1); exit 1; }; }
25295 eval ADA_OBJECTS="$withval"
25297 echo "$as_me:25297: result: $ADA_OBJECTS" >&5
25298 echo "${ECHO_T}$ADA_OBJECTS" >&6
25300 echo "$as_me:25300: checking if an Ada95 shared-library should be built" >&5
25301 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
25303 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
25304 if test "${with_ada_sharedlib+set}" = set; then
25305 withval="$with_ada_sharedlib"
25306 with_ada_sharedlib=$withval
25308 with_ada_sharedlib=no
25310 echo "$as_me:25310: result: $with_ada_sharedlib" >&5
25311 echo "${ECHO_T}$with_ada_sharedlib" >&6
25313 if test "x$with_ada_sharedlib" != xno
25315 if test "x$cf_gnat_projects" != xyes
25317 { echo "$as_me:25317: WARNING: disabling shared-library since GNAT projects are not supported" >&5
25318 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
25319 with_ada_sharedlib=no
25323 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
25324 MAKE_ADA_SHAREDLIB="#"
25326 if test "x$with_ada_sharedlib" != xno
25328 MAKE_ADA_SHAREDLIB=
25329 if test "x$with_ada_sharedlib" != xyes
25331 ADA_SHAREDLIB="$with_ada_sharedlib"
25335 # allow the Ada binding to be renamed
25337 echo "$as_me:25337: checking for ada-libname" >&5
25338 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
25340 # Check whether --with-ada-libname or --without-ada-libname was given.
25341 if test "${with_ada_libname+set}" = set; then
25342 withval="$with_ada_libname"
25343 ADA_LIBNAME=$withval
25345 ADA_LIBNAME=AdaCurses
25347 case "x$ADA_LIBNAME" in
25349 ADA_LIBNAME=AdaCurses
25353 echo "$as_me:25353: result: $ADA_LIBNAME" >&5
25354 echo "${ECHO_T}$ADA_LIBNAME" >&6
25362 # do this "late" to avoid conflict with header-checks
25363 if test "x$with_widec" = xyes ; then
25364 echo "$as_me:25364: checking for wchar_t" >&5
25365 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
25366 if test "${ac_cv_type_wchar_t+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25369 cat >conftest.$ac_ext <<_ACEOF
25370 #line 25370 "configure"
25371 #include "confdefs.h"
25372 $ac_includes_default
25378 if (sizeof (wchar_t))
25384 rm -f conftest.$ac_objext
25385 if { (eval echo "$as_me:25385: \"$ac_compile\"") >&5
25386 (eval $ac_compile) 2>&5
25388 echo "$as_me:25388: \$? = $ac_status" >&5
25389 (exit $ac_status); } &&
25390 { ac_try='test -s conftest.$ac_objext'
25391 { (eval echo "$as_me:25391: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:25394: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 ac_cv_type_wchar_t=yes
25398 echo "$as_me: failed program was:" >&5
25399 cat conftest.$ac_ext >&5
25400 ac_cv_type_wchar_t=no
25402 rm -f conftest.$ac_objext conftest.$ac_ext
25404 echo "$as_me:25404: result: $ac_cv_type_wchar_t" >&5
25405 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
25407 echo "$as_me:25407: checking size of wchar_t" >&5
25408 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
25409 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
25412 if test "$ac_cv_type_wchar_t" = yes; then
25413 if test "$cross_compiling" = yes; then
25414 # Depending upon the size, compute the lo and hi bounds.
25415 cat >conftest.$ac_ext <<_ACEOF
25416 #line 25416 "configure"
25417 #include "confdefs.h"
25418 $ac_includes_default
25422 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
25427 rm -f conftest.$ac_objext
25428 if { (eval echo "$as_me:25428: \"$ac_compile\"") >&5
25429 (eval $ac_compile) 2>&5
25431 echo "$as_me:25431: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -s conftest.$ac_objext'
25434 { (eval echo "$as_me:25434: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25437 echo "$as_me:25437: \$? = $ac_status" >&5
25438 (exit $ac_status); }; }; then
25441 cat >conftest.$ac_ext <<_ACEOF
25442 #line 25442 "configure"
25443 #include "confdefs.h"
25444 $ac_includes_default
25448 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25453 rm -f conftest.$ac_objext
25454 if { (eval echo "$as_me:25454: \"$ac_compile\"") >&5
25455 (eval $ac_compile) 2>&5
25457 echo "$as_me:25457: \$? = $ac_status" >&5
25458 (exit $ac_status); } &&
25459 { ac_try='test -s conftest.$ac_objext'
25460 { (eval echo "$as_me:25460: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:25463: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_hi=$ac_mid; break
25467 echo "$as_me: failed program was:" >&5
25468 cat conftest.$ac_ext >&5
25469 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
25471 rm -f conftest.$ac_objext conftest.$ac_ext
25474 echo "$as_me: failed program was:" >&5
25475 cat conftest.$ac_ext >&5
25478 cat >conftest.$ac_ext <<_ACEOF
25479 #line 25479 "configure"
25480 #include "confdefs.h"
25481 $ac_includes_default
25485 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
25490 rm -f conftest.$ac_objext
25491 if { (eval echo "$as_me:25491: \"$ac_compile\"") >&5
25492 (eval $ac_compile) 2>&5
25494 echo "$as_me:25494: \$? = $ac_status" >&5
25495 (exit $ac_status); } &&
25496 { ac_try='test -s conftest.$ac_objext'
25497 { (eval echo "$as_me:25497: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:25500: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
25502 ac_lo=$ac_mid; break
25504 echo "$as_me: failed program was:" >&5
25505 cat conftest.$ac_ext >&5
25506 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
25508 rm -f conftest.$ac_objext conftest.$ac_ext
25511 rm -f conftest.$ac_objext conftest.$ac_ext
25512 # Binary search between lo and hi bounds.
25513 while test "x$ac_lo" != "x$ac_hi"; do
25514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25515 cat >conftest.$ac_ext <<_ACEOF
25516 #line 25516 "configure"
25517 #include "confdefs.h"
25518 $ac_includes_default
25522 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25527 rm -f conftest.$ac_objext
25528 if { (eval echo "$as_me:25528: \"$ac_compile\"") >&5
25529 (eval $ac_compile) 2>&5
25531 echo "$as_me:25531: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -s conftest.$ac_objext'
25534 { (eval echo "$as_me:25534: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25537 echo "$as_me:25537: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25541 echo "$as_me: failed program was:" >&5
25542 cat conftest.$ac_ext >&5
25543 ac_lo=`expr $ac_mid + 1`
25545 rm -f conftest.$ac_objext conftest.$ac_ext
25547 ac_cv_sizeof_wchar_t=$ac_lo
25549 if test "$cross_compiling" = yes; then
25550 { { echo "$as_me:25550: error: cannot run test program while cross compiling" >&5
25551 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25552 { (exit 1); exit 1; }; }
25554 cat >conftest.$ac_ext <<_ACEOF
25555 #line 25555 "configure"
25556 #include "confdefs.h"
25557 $ac_includes_default
25561 FILE *f = fopen ("conftest.val", "w");
25563 $ac_main_return (1);
25564 fprintf (f, "%d", (sizeof (wchar_t)));
25570 rm -f conftest$ac_exeext
25571 if { (eval echo "$as_me:25571: \"$ac_link\"") >&5
25572 (eval $ac_link) 2>&5
25574 echo "$as_me:25574: \$? = $ac_status" >&5
25575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25576 { (eval echo "$as_me:25576: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
25579 echo "$as_me:25579: \$? = $ac_status" >&5
25580 (exit $ac_status); }; }; then
25581 ac_cv_sizeof_wchar_t=`cat conftest.val`
25583 echo "$as_me: program exited with status $ac_status" >&5
25584 echo "$as_me: failed program was:" >&5
25585 cat conftest.$ac_ext >&5
25587 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25592 ac_cv_sizeof_wchar_t=0
25595 echo "$as_me:25595: result: $ac_cv_sizeof_wchar_t" >&5
25596 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
25597 cat >>confdefs.h <<EOF
25598 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25601 # cross-compiling to mingw can run into the problem that attempting to
25602 # link with the regex library fails, causing the test to not set this to
25603 # a number. "recent" autoconf does not address this problem either -TD
25604 if test -z "$ac_cv_sizeof_wchar_t"
25606 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
25608 echo "${as_me:-configure}:25608: testing test failed (assume 2) ..." 1>&5
25610 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
25611 mv confdefs.tmp confdefs.h
25612 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
25616 ### Construct the ncurses library-subsets, if any, from this set of keywords:
25617 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
25619 ### ticlib modules may be a separate library, otherwise contained in termlib.
25620 ### termlib modules may be a separate library, otherwise contained in ncurses.
25622 ### The of "+" or " " between the tokens controls the way the script
25623 ### chooses to split module lists into libraries.
25625 ### (see CF_LIB_RULES).
25626 echo "$as_me:25626: checking for library subsets" >&5
25627 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
25630 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
25631 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
25632 if test "$with_ticlib" != no ; then
25633 LIB_SUBSETS="${LIB_SUBSETS} "
25635 LIB_SUBSETS="${LIB_SUBSETS}+"
25639 LIB_SUBSETS="${LIB_SUBSETS}termlib"
25640 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
25642 if test "$with_termlib" != no ; then
25643 LIB_SUBSETS="${LIB_SUBSETS} "
25645 LIB_SUBSETS="${LIB_SUBSETS}+"
25648 LIB_SUBSETS="${LIB_SUBSETS}base"
25650 # Most term-driver calls are to tinfo, but some like init_pair are to the
25651 # base library (so it resides in base).
25652 if test "$with_term_driver" != no ; then
25653 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
25654 case $cf_cv_system_name in
25655 (*mingw32*|*mingw64*)
25656 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
25657 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
25660 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
25665 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
25666 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
25668 echo "$as_me:25668: result: $LIB_SUBSETS" >&5
25669 echo "${ECHO_T}$LIB_SUBSETS" >&6
25671 ### Construct the list of include-directories to be generated
25673 if test "$srcdir" != "."; then
25674 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
25676 CPPFLAGS="-I../include $CPPFLAGS"
25677 if test "$srcdir" != "."; then
25678 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
25680 CPPFLAGS="-I. $CPPFLAGS"
25682 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
25683 if test "$srcdir" != "."; then
25684 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
25686 if test "$GCC" != yes; then
25687 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25688 elif test "$includedir" != "/usr/include"; then
25689 if test "$includedir" = '${prefix}/include' ; then
25690 if test x$prefix != x/usr ; then
25691 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25694 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25698 ### Build up pieces for makefile rules
25699 echo "$as_me:25699: checking default library suffix" >&5
25700 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
25702 case $DFT_LWR_MODEL in
25703 (libtool) DFT_ARG_SUFFIX='' ;;
25704 (normal) DFT_ARG_SUFFIX='' ;;
25705 (debug) DFT_ARG_SUFFIX='_g' ;;
25706 (profile) DFT_ARG_SUFFIX='_p' ;;
25707 (shared) DFT_ARG_SUFFIX='' ;;
25709 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
25710 echo "$as_me:25710: result: $DFT_ARG_SUFFIX" >&5
25711 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
25713 echo "$as_me:25713: checking default library-dependency suffix" >&5
25714 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
25716 case X$DFT_LWR_MODEL in
25718 DFT_LIB_SUFFIX='.la'
25719 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25722 case $cf_cv_system_name in
25724 DFT_LIB_SUFFIX='_g.lib'
25727 DFT_LIB_SUFFIX='_g.a'
25730 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25733 case $cf_cv_system_name in
25735 DFT_LIB_SUFFIX='_p.lib'
25738 DFT_LIB_SUFFIX='_p.a'
25741 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25744 case $cf_cv_system_name in
25746 DFT_LIB_SUFFIX='.so'
25747 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25750 DFT_LIB_SUFFIX='.dll'
25751 DFT_DEP_SUFFIX='.dll.lib'
25753 (cygwin*|msys*|mingw*)
25754 DFT_LIB_SUFFIX='.dll'
25755 DFT_DEP_SUFFIX='.dll.a'
25758 DFT_LIB_SUFFIX='.dylib'
25759 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25764 DFT_LIB_SUFFIX='.so'
25765 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25768 DFT_LIB_SUFFIX='.sl'
25769 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25774 DFT_LIB_SUFFIX='.so'
25775 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25782 DFT_LIB_SUFFIX='.lib'
25785 DFT_LIB_SUFFIX='.a'
25788 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25791 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25793 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
25794 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
25796 echo "$as_me:25796: result: $DFT_DEP_SUFFIX" >&5
25797 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
25799 echo "$as_me:25799: checking default object directory" >&5
25800 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
25802 case $DFT_LWR_MODEL in
25803 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
25804 (normal) DFT_OBJ_SUBDIR='objects' ;;
25805 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
25806 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
25808 case $cf_cv_system_name in
25810 DFT_OBJ_SUBDIR='objects' ;;
25812 DFT_OBJ_SUBDIR='obj_s' ;;
25815 echo "$as_me:25815: result: $DFT_OBJ_SUBDIR" >&5
25816 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
25818 if test "x$cf_with_cxx" = xyes ; then
25819 echo "$as_me:25819: checking c++ library-dependency suffix" >&5
25820 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
25821 if test "$with_libtool" != "no"; then
25822 # libtool thinks it can make c++ shared libraries (perhaps only g++)
25823 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25824 elif test "$with_shared_cxx" != "no"; then
25825 # also for g++ users...
25826 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25828 # we normally make a static library because C/C++ library rules differ
25832 CXX_LIB_SUFFIX='.la'
25833 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25836 case $cf_cv_system_name in
25838 CXX_LIB_SUFFIX='_g.lib'
25841 CXX_LIB_SUFFIX='_g.a'
25844 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25847 case $cf_cv_system_name in
25849 CXX_LIB_SUFFIX='_p.lib'
25852 CXX_LIB_SUFFIX='_p.a'
25855 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25858 case $cf_cv_system_name in
25860 CXX_LIB_SUFFIX='.so'
25861 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25864 CXX_LIB_SUFFIX='.dll'
25865 CXX_DEP_SUFFIX='.dll.lib'
25867 (cygwin*|msys*|mingw*)
25868 CXX_LIB_SUFFIX='.dll'
25869 CXX_DEP_SUFFIX='.dll.a'
25872 CXX_LIB_SUFFIX='.dylib'
25873 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25878 CXX_LIB_SUFFIX='.so'
25879 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25882 CXX_LIB_SUFFIX='.sl'
25883 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25888 CXX_LIB_SUFFIX='.so'
25889 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25896 CXX_LIB_SUFFIX='.lib'
25899 CXX_LIB_SUFFIX='.a'
25902 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25905 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25907 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
25908 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
25912 echo "$as_me:25912: result: $CXX_LIB_SUFFIX" >&5
25913 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
25917 # do not want -ldl in build except as needed for -lncurses dependency
25918 if test "x$with_dlsym" = xyes ; then
25919 if test $DFT_LWR_MODEL = shared || \
25920 test $DFT_LWR_MODEL = libtool ; then
25922 # remove dl library from $LIBS
25923 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25927 ### Set up low-level terminfo dependencies for makefiles.
25929 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
25930 # do not need libdl
25932 if test "x$with_dlsym" = xyes ; then
25934 # remove dl library from $SHLIB_LIST
25935 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25939 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
25940 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
25941 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
25942 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
25944 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
25947 if test "$with_ticlib" != no ; then
25949 if test "x$with_ticlib" != xyes ; then
25950 TICS_NAME=$with_ticlib
25951 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25952 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25953 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25954 TICS_LIB_SUFFIX="${with_ticlib}"
25956 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25957 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
25958 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
25959 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
25961 TICS_LDFLAGS="-L${LIB_DIR}"
25962 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
25964 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25965 TICS_LDFLAGS="-L${LIB_DIR}"
25966 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25969 if test "$with_termlib" != no ; then
25971 if test "x$with_termlib" != xyes ; then
25972 TINFO_NAME=$with_termlib
25973 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25974 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25975 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25976 TINFO_LIB_SUFFIX="${with_termlib}"
25978 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25979 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
25980 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
25981 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
25984 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25985 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25986 if test "$DFT_LWR_MODEL" = "libtool"; then
25987 TEST_ARGS="${TEST_DEPS}"
25988 TEST_ARG2="${TEST_DEP2}"
25989 TINFO_LDFLAGS="-L${LIB_DIR}"
25990 TINFO_LIBS="$TEST_ARGS"
25991 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
25992 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
25994 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
25995 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
25996 if test "x$with_term_driver" != xno ; then
25997 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25998 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
25999 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
26001 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
26002 TINFO_LIBS="$TEST_ARGS"
26004 TINFO_LDFLAGS="-L${LIB_DIR}"
26005 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
26008 # the next lines are needed for linking libtic over libncurses
26009 TINFO_NAME=${LIB_NAME}
26010 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
26011 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
26012 if test "x$with_tic_depends" = xyes ; then
26013 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
26015 TICS_LIST="$SHLIB_LIST"
26018 TINFO_LDFLAGS="-L${LIB_DIR}"
26019 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
26022 if test "$DFT_LWR_MODEL" = shared ; then
26023 case $cf_cv_system_name in
26025 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
26031 if test "x$with_dlsym" = xyes ; then
26033 # remove dl library from $TICS_LIST
26034 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
26038 if test "$DFT_LWR_MODEL" = "libtool"; then
26043 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
26045 case $DFT_LWR_MODEL in
26046 (normal|debug|profile)
26048 if test "$GCC" = yes ; then
26049 case $cf_cv_system_name in
26050 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
26054 (*) # normally, except when broken
26055 LDFLAGS_STATIC=-static
26056 LDFLAGS_SHARED=-dynamic
26060 case $cf_cv_system_name in
26061 (aix[4-7]*) # from ld manpage
26062 LDFLAGS_STATIC=-bstatic
26063 LDFLAGS_SHARED=-bdynamic
26065 (hpux*) # from ld manpage for hpux10.20, hpux11.11
26066 # We could also use just "archive" and "shared".
26067 LDFLAGS_STATIC=-Wl,-a,archive_shared
26068 LDFLAGS_SHARED=-Wl,-a,shared_archive
26070 (irix*) # from ld manpage IRIX64
26071 LDFLAGS_STATIC=-Bstatic
26072 LDFLAGS_SHARED=-Bdynamic
26074 (osf[45]*) # from ld manpage osf4.0d, osf5.1
26075 # alternative "-oldstyle_liblookup" (not in cc manpage)
26076 LDFLAGS_STATIC=-noso
26077 LDFLAGS_SHARED=-so_archive
26080 LDFLAGS_STATIC=-Bstatic
26081 LDFLAGS_SHARED=-Bdynamic
26086 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
26088 echo "$as_me:26088: checking if linker supports switching between static/dynamic" >&5
26089 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
26091 rm -f libconftest.a
26092 cat >conftest.$ac_ext <<EOF
26093 #line 26093 "configure"
26095 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
26097 if { (eval echo "$as_me:26097: \"$ac_compile\"") >&5
26098 (eval $ac_compile) 2>&5
26100 echo "$as_me:26100: \$? = $ac_status" >&5
26101 (exit $ac_status); } ; then
26102 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
26103 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
26107 cf_save_LIBS="$LIBS"
26109 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
26110 cat >conftest.$ac_ext <<_ACEOF
26111 #line 26111 "configure"
26112 #include "confdefs.h"
26114 #line 26114 "configure"
26116 int cf_ldflags_static(FILE *fp);
26122 return cf_ldflags_static(stdin);
26128 rm -f conftest.$ac_objext conftest$ac_exeext
26129 if { (eval echo "$as_me:26129: \"$ac_link\"") >&5
26130 (eval $ac_link) 2>&5
26132 echo "$as_me:26132: \$? = $ac_status" >&5
26133 (exit $ac_status); } &&
26134 { ac_try='test -s conftest$ac_exeext'
26135 { (eval echo "$as_me:26135: \"$ac_try\"") >&5
26136 (eval $ac_try) 2>&5
26138 echo "$as_me:26138: \$? = $ac_status" >&5
26139 (exit $ac_status); }; }; then
26141 # some linkers simply ignore the -dynamic
26142 case x`file conftest$ac_exeext 2>/dev/null` in
26144 cf_ldflags_static=no
26147 cf_ldflags_static=yes
26152 echo "$as_me: failed program was:" >&5
26153 cat conftest.$ac_ext >&5
26154 cf_ldflags_static=no
26156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26158 rm -f libconftest.*
26159 LIBS="$cf_save_LIBS"
26161 echo "$as_me:26161: result: $cf_ldflags_static" >&5
26162 echo "${ECHO_T}$cf_ldflags_static" >&6
26164 if test $cf_ldflags_static != yes
26177 echo "$as_me:26177: checking where we will install curses.h" >&5
26178 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
26181 if test "$with_overwrite" = no && \
26182 ( test "x$includedir" = 'x${prefix}/include' || \
26183 test "x$includedir" = "x${prefix}/include" )
26185 includesubdir="/ncurses${USE_LIB_SUFFIX}"
26187 echo "$as_me:26187: result: ${includedir}${includesubdir}" >&5
26188 echo "${ECHO_T}${includedir}${includesubdir}" >&6
26190 ### Resolve a conflict between normal and wide-curses by forcing applications
26191 ### that will need libutf8 to add it to their configure script.
26192 if test "$with_overwrite" != no ; then
26193 if test "$NCURSES_LIBUTF8" = 1 ; then
26194 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
26195 { echo "$as_me:26195: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
26196 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
26199 WITH_OVERWRITE=$with_overwrite
26201 ### At least on MinGW a shared library build without libtool
26202 ### requires adding the additional libs to the link list.
26203 case $cf_cv_system_name in
26204 (*mingw32*|*mingw64*)
26205 if test "$DFT_LWR_MODEL" != "libtool"; then
26206 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
26212 # used to separate tack out of the tree
26215 ### predefined stuff for the test programs
26217 cat >>confdefs.h <<\EOF
26218 #define HAVE_SLK_COLOR 1
26221 # pkgsrc uses these
26223 echo "$as_me:26223: checking for desired basename for form library" >&5
26224 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
26226 # Check whether --with-form-libname or --without-form-libname was given.
26227 if test "${with_form_libname+set}" = set; then
26228 withval="$with_form_libname"
26229 with_lib_basename=$withval
26231 with_lib_basename=form
26233 FORM_NAME="$with_lib_basename"
26235 case "x$FORM_NAME" in
26243 echo "$as_me:26243: result: $FORM_NAME" >&5
26244 echo "${ECHO_T}$FORM_NAME" >&6
26246 echo "$as_me:26246: checking for desired basename for menu library" >&5
26247 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
26249 # Check whether --with-menu-libname or --without-menu-libname was given.
26250 if test "${with_menu_libname+set}" = set; then
26251 withval="$with_menu_libname"
26252 with_lib_basename=$withval
26254 with_lib_basename=menu
26256 MENU_NAME="$with_lib_basename"
26258 case "x$MENU_NAME" in
26266 echo "$as_me:26266: result: $MENU_NAME" >&5
26267 echo "${ECHO_T}$MENU_NAME" >&6
26269 echo "$as_me:26269: checking for desired basename for panel library" >&5
26270 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
26272 # Check whether --with-panel-libname or --without-panel-libname was given.
26273 if test "${with_panel_libname+set}" = set; then
26274 withval="$with_panel_libname"
26275 with_lib_basename=$withval
26277 with_lib_basename=panel
26279 PANEL_NAME="$with_lib_basename"
26281 case "x$PANEL_NAME" in
26289 echo "$as_me:26289: result: $PANEL_NAME" >&5
26290 echo "${ECHO_T}$PANEL_NAME" >&6
26292 echo "$as_me:26292: checking for desired basename for cxx library" >&5
26293 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
26295 # Check whether --with-cxx-libname or --without-cxx-libname was given.
26296 if test "${with_cxx_libname+set}" = set; then
26297 withval="$with_cxx_libname"
26298 with_lib_basename=$withval
26300 with_lib_basename=ncurses++
26302 CXX_NAME="$with_lib_basename"
26304 case "x$CXX_NAME" in
26312 echo "$as_me:26312: result: $CXX_NAME" >&5
26313 echo "${ECHO_T}$CXX_NAME" >&6
26315 ### Construct the list of subdirectories for which we'll customize makefiles
26316 ### with the appropriate compile-rules.
26318 echo "$as_me:26318: checking for src modules" >&5
26319 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
26321 # dependencies and linker-arguments for test-programs
26322 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
26323 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
26324 if test "$DFT_LWR_MODEL" = "libtool"; then
26325 TEST_ARGS="${TEST_DEPS}"
26326 TEST_ARG2="${TEST_DEP2}"
26328 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
26329 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
26332 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
26334 for cf_dir in $modules_to_build
26336 if test -f $srcdir/$cf_dir/modules; then
26338 # We may/may not have tack in the distribution, though the
26340 if test $cf_dir = tack ; then
26341 if test "x$cf_with_tack" != "xyes"; then
26346 if test -z "$cf_cv_src_modules"; then
26347 cf_cv_src_modules=$cf_dir
26349 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
26352 # Make the ncurses_cfg.h file record the library interface files as
26353 # well. These are header files that are the same name as their
26354 # directory. Ncurses is the only library that does not follow
26356 if test $cf_dir = tack ; then
26358 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
26360 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26362 cat >>confdefs.h <<EOF
26363 #define HAVE_${cf_have_include}_H 1
26366 cat >>confdefs.h <<EOF
26367 #define HAVE_LIB${cf_have_include} 1
26370 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26372 eval TEST_ROOT=\$${cf_map_lib_basename}_NAME
26374 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
26375 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
26376 if test "$DFT_LWR_MODEL" = "libtool"; then
26377 TEST_ARGS="${TEST_DEPS}"
26378 TEST_ARG2="${TEST_DEP2}"
26380 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
26381 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
26383 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
26387 echo "$as_me:26387: result: $cf_cv_src_modules" >&5
26388 echo "${ECHO_T}$cf_cv_src_modules" >&6
26390 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
26391 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
26394 if test "x$cf_with_manpages" != xno ; then
26395 SRC_SUBDIRS="$SRC_SUBDIRS man"
26397 SRC_SUBDIRS="$SRC_SUBDIRS include"
26398 for cf_dir in $cf_cv_src_modules
26400 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
26402 if test "x$cf_with_tests" != "xno" ; then
26403 SRC_SUBDIRS="$SRC_SUBDIRS test"
26405 # always make this, to install the ncurses-config script
26406 SRC_SUBDIRS="$SRC_SUBDIRS misc"
26407 if test "$cf_with_cxx_binding" != no; then
26408 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
26409 SRC_SUBDIRS="$SRC_SUBDIRS c++"
26412 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
26413 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
26416 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
26417 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
26418 ADA_SUBDIRS="gen src"
26419 if test "x$cf_with_tests" != "xno" ; then
26420 ADA_SUBDIRS="$ADA_SUBDIRS samples"
26425 for cf_dir in $SRC_SUBDIRS
26427 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
26430 if test -n "$ADA_SUBDIRS"; then
26431 for cf_dir in $ADA_SUBDIRS
26433 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
26438 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
26439 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
26440 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
26441 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
26445 for cf_item in $cf_list_models
26449 (libtool) cf_subdir='obj_lo' ;;
26450 (normal) cf_subdir='objects' ;;
26451 (debug) cf_subdir='obj_g' ;;
26452 (profile) cf_subdir='obj_p' ;;
26454 case $cf_cv_system_name in
26456 cf_subdir='objects' ;;
26458 cf_subdir='obj_s' ;;
26462 for cf_item2 in $DIRS_TO_MAKE
26464 test $cf_item2 = $cf_subdir && break
26466 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
26468 for cf_dir in $DIRS_TO_MAKE
26470 test ! -d $cf_dir && mkdir $cf_dir
26473 # symbols that differ when compiling Ada95 by itself.
26474 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
26476 # values to use as strings
26478 cat >>confdefs.h <<EOF
26479 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
26482 cat >>confdefs.h <<EOF
26483 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
26486 ### Now that we're done running tests, add the compiler-warnings, if any
26491 cf_new_extra_cppflags=
26493 for cf_add_cflags in $EXTRA_CFLAGS
26495 case $cf_fix_cppflags in
26497 case $cf_add_cflags in
26498 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
26499 case $cf_add_cflags in
26501 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
26503 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
26504 && test -z "${cf_tst_cflags}" \
26505 && cf_fix_cppflags=yes
26507 if test $cf_fix_cppflags = yes ; then
26509 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26510 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26513 elif test "${cf_tst_cflags}" = "\"'" ; then
26515 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26516 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26522 case "$CPPFLAGS" in
26526 case $cf_add_cflags in
26528 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
26530 CPPFLAGS=`echo "$CPPFLAGS" | \
26531 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
26532 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
26537 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
26538 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
26545 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
26546 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
26553 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26554 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26556 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
26558 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
26559 && test -z "${cf_tst_cflags}" \
26560 && cf_fix_cppflags=no
26565 if test -n "$cf_new_cflags" ; then
26567 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
26568 CFLAGS="${CFLAGS}$cf_new_cflags"
26572 if test -n "$cf_new_cppflags" ; then
26574 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
26575 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
26579 if test -n "$cf_new_extra_cppflags" ; then
26581 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
26582 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
26586 ### Define substitutions for header files to avoid name-pollution
26588 if test "x$cf_cv_have_tcgetattr" = xyes ; then
26594 if test "x$ac_cv_header_stdint_h" = xyes ; then
26600 if test "x$ac_cv_header_termio_h" = xyes ; then
26606 if test "x$ac_cv_header_termios_h" = xyes ; then
26612 ################################################################################
26613 test "x$use_database" = xyes && \
26614 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
26616 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
26617 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
26619 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
26620 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
26623 if test "x$cf_with_tests" != xno ; then
26629 ADAHTML_DIR=../../doc/html/ada
26631 # workaround for OS/2 (20151017)
26632 case $cf_cv_system_name in
26634 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
26641 # workaround for g++ versus Solaris (20131116)
26642 case $cf_cv_system_name in
26644 case "x$CPPFLAGS" in
26645 (*-D_XOPEN_SOURCE_EXTENDED*)
26646 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
26648 echo "${as_me:-configure}:26648: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
26650 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
26651 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
26657 # Help to automatically enable the extended curses features when using either
26658 # the *-config or the ".pc" files by adding defines.
26659 echo "$as_me:26659: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
26660 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
26662 for cf_loop1 in $CPPFLAGS_after_XOPEN
26665 for cf_loop2 in $CPPFLAGS_before_XOPEN
26667 if test "x$cf_loop1" = "x$cf_loop2"
26673 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
26675 echo "$as_me:26675: result: $PKG_CFLAGS" >&5
26676 echo "${ECHO_T}$PKG_CFLAGS" >&6
26678 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
26679 case "x$NCURSES_OSPEED" in
26688 cat >>confdefs.h <<EOF
26689 #define NCURSES_OSPEED_COMPAT $cf_compatible
26692 case "x$cf_cv_typeof_chtype" in
26693 (xshort|xint|xlong)
26694 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
26698 case "x$cf_cv_typeof_mmask_t" in
26699 (xshort|xint|xlong)
26700 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
26704 # substitute into misc/Makefile to suppress
26705 # (un)install.data from the
26706 # (un)install rules.
26707 if test "x$cf_with_db_install" = "xno"; then
26709 MISC_UNINSTALL_DATA=
26711 MISC_INSTALL_DATA=install.data
26712 MISC_UNINSTALL_DATA=uninstall.data
26715 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
26718 MAKE_DATABASE="$MAKE_TERMINFO"
26721 if test -n "$PACKAGE"
26723 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
26725 echo "package: $PACKAGE"
26731 if test -n "$RESULTING_SYMS"
26733 cf_filter_syms=$cf_dft_filter_syms
26734 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
26736 echo "${as_me:-configure}:26736: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
26740 if test "x$WILDCARD_SYMS" = xno
26745 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
26747 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
26748 if test $cf_filter_syms = yes
26750 RESULTING_SYMS=resulting.map
26753 if test "x$cross_compiling" = xyes ; then
26754 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
26757 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
26761 # This is used for the *-config script and *.pc data files.
26763 echo "$as_me:26763: checking for linker search path" >&5
26764 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
26765 if test "${cf_cv_ld_searchpath+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26769 if test "$cross_compiling" != yes ; then
26771 # GNU binutils' ld does not involve permissions which may stop ldconfig.
26772 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
26774 # The -NX options tell newer versions of Linux ldconfig to not attempt to
26775 # update the cache, which makes it run faster.
26776 test -z "$cf_pathlist" && \
26777 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
26779 test -z "$cf_pathlist" &&
26780 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
26782 # This works with OpenBSD 6.5, which lists only filenames
26783 test -z "$cf_pathlist" &&
26784 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
26786 if test -z "$cf_pathlist"
26788 # dyld default path with MacOS
26789 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
26791 # do this to bypass check
26792 cf_cv_ld_searchpath='$HOME/lib'
26793 cf_pathlist="/usr/local/lib /lib /usr/lib"
26797 if test -z "$cf_pathlist"
26799 # Solaris is hardcoded
26800 if test -d /opt/SUNWspro/lib
26802 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
26803 elif test -d /usr/ccs/lib
26805 cf_pathlist="/usr/ccs/lib /usr/lib"
26811 # If nothing else, assume it is conventional
26812 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
26814 # Finally, check that this is only directories
26815 for cf_path in $0 $cf_pathlist
26817 if test -d "$cf_path"; then
26818 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
26819 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
26823 # Ensure that it is nonempty
26824 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
26827 echo "$as_me:26827: result: $cf_cv_ld_searchpath" >&5
26828 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
26830 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
26832 cat >>confdefs.h <<\EOF
26833 #define HAVE_CURSES_DATA_BOOLNAMES 1
26836 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
26837 ac_config_commands="$ac_config_commands default"
26838 cat >confcache <<\_ACEOF
26839 # This file is a shell script that caches the results of configure
26840 # tests run on this system so they can be shared between configure
26841 # scripts and configure runs, see configure's option --config-cache.
26842 # It is not useful on other systems. If it contains results you don't
26843 # want to keep, you may remove or edit it.
26845 # config.status only pays attention to the cache file if you give it
26846 # the --recheck option to rerun configure.
26848 # `ac_cv_env_foo' variables (set or unset) will be overriden when
26849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26850 # following values.
26854 # The following way of writing the cache mishandles newlines in values,
26855 # but we know of no workaround that is simple, portable, and efficient.
26856 # So, don't put newlines in cache variables' values.
26857 # Ultrix sh set writes to stderr and can't be redirected directly,
26858 # and sets the high bit in the cache file unless we assign to the vars.
26861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26863 # `set' does not quote correctly, so add quotes (double-quote
26864 # substitution turns \\\\ into \\, and sed turns \\ into \).
26867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26870 # `set' quotes correctly as required by POSIX, so do not add quotes.
26872 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26881 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26883 if cmp -s $cache_file confcache; then :; else
26884 if test -w $cache_file; then
26885 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26886 cat confcache >$cache_file
26888 echo "not updating unwritable cache $cache_file"
26893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26894 # Let make expand exec_prefix.
26895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26899 # trailing colons and then remove the whole line if VPATH becomes empty
26900 # (actually we leave an empty line to preserve line numbers).
26901 if test "x$srcdir" = x.; then
26902 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26903 s/:*\$(srcdir):*/:/;
26904 s/:*\${srcdir}:*/:/;
26906 s/^\([^=]*=[ ]*\):*/\1/;
26912 DEFS=-DHAVE_CONFIG_H
26914 : ${CONFIG_STATUS=./config.status}
26915 ac_clean_files_save=$ac_clean_files
26916 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26917 { echo "$as_me:26917: creating $CONFIG_STATUS" >&5
26918 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26919 cat >$CONFIG_STATUS <<_ACEOF
26921 # Generated automatically by configure.
26922 # Run this file to recreate the current configuration.
26923 # Compiler output produced by configure, useful for debugging
26924 # configure, is in config.log if it exists.
26927 SHELL=\${CONFIG_SHELL-$SHELL}
26928 ac_cs_invocation="\$0 \$@"
26930 CLICOLOR_FORCE= GREP_OPTIONS=
26931 unset CLICOLOR_FORCE GREP_OPTIONS
26934 cat >>$CONFIG_STATUS <<\_ACEOF
26935 # Be Bourne compatible
26936 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26939 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26943 # Name of the executable.
26944 as_me=`echo "$0" |sed 's,.*[\\/],,'`
26946 if expr a : '\(a\)' >/dev/null 2>&1; then
26952 rm -f conf$$ conf$$.exe conf$$.file
26954 if ln -s conf$$.file conf$$ 2>/dev/null; then
26955 # We could just check for DJGPP; but this test a) works b) is more generic
26956 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26957 if test -f conf$$.exe; then
26958 # Don't use ln at all; we don't have any links
26963 elif ln conf$$.file conf$$ 2>/dev/null; then
26968 rm -f conf$$ conf$$.exe conf$$.file
26970 as_executable_p="test -f"
26972 # Support unset when possible.
26973 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26980 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26981 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26982 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26983 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26984 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26985 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26986 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26987 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26990 # We need space, tab and new line, in precisely that order.
26996 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
27002 # Files that config.status was made for.
27003 if test -n "$ac_config_files"; then
27004 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27007 if test -n "$ac_config_headers"; then
27008 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27011 if test -n "$ac_config_links"; then
27012 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27015 if test -n "$ac_config_commands"; then
27016 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27019 cat >>$CONFIG_STATUS <<\EOF
27022 \`$as_me' instantiates files from templates according to the
27023 current configuration.
27025 Usage: $0 [OPTIONS] [FILE]...
27027 -h, --help print this help, then exit
27028 -V, --version print version number, then exit
27029 -d, --debug don't remove temporary files
27030 --recheck update $as_me by reconfiguring in the same conditions
27031 --file=FILE[:TEMPLATE]
27032 instantiate the configuration file FILE
27033 --header=FILE[:TEMPLATE]
27034 instantiate the configuration header FILE
27036 Configuration files:
27039 Configuration headers:
27042 Configuration commands:
27045 Report bugs to <dickey@invisible-island.net>."
27048 cat >>$CONFIG_STATUS <<EOF
27051 configured by $0, generated by GNU Autoconf 2.52.20200802,
27052 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27054 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
27055 Free Software Foundation, Inc.
27056 This config.status script is free software; the Free Software Foundation
27057 gives unlimited permission to copy, distribute and modify it."
27062 cat >>$CONFIG_STATUS <<\EOF
27063 # If no file are specified by the user, then we need to provide default
27064 # value. By we need to know if files were specified by the user.
27070 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27071 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27073 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
27077 *) # This is not an option, so the user has probably given explicit
27079 ac_need_defaults=false;;
27083 # Handling of the options.
27085 cat >>$CONFIG_STATUS <<EOF
27086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27087 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
27088 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
27090 cat >>$CONFIG_STATUS <<\EOF
27091 --version | --vers* | -V )
27092 echo "$ac_cs_version"; exit 0 ;;
27094 # Conflict between --help and --header
27095 { { echo "$as_me:27095: error: ambiguous option: $1
27096 Try \`$0 --help' for more information." >&5
27097 echo "$as_me: error: ambiguous option: $1
27098 Try \`$0 --help' for more information." >&2;}
27099 { (exit 1); exit 1; }; };;
27100 --help | --hel | -h )
27101 echo "$ac_cs_usage"; exit 0 ;;
27102 --debug | --d* | -d )
27104 --file | --fil | --fi | --f )
27106 CONFIG_FILES="$CONFIG_FILES $1"
27107 ac_need_defaults=false;;
27108 --header | --heade | --head | --hea )
27110 CONFIG_HEADERS="$CONFIG_HEADERS $1"
27111 ac_need_defaults=false;;
27113 # This is an error.
27114 -*) { { echo "$as_me:27114: error: unrecognized option: $1
27115 Try \`$0 --help' for more information." >&5
27116 echo "$as_me: error: unrecognized option: $1
27117 Try \`$0 --help' for more information." >&2;}
27118 { (exit 1); exit 1; }; } ;;
27120 *) ac_config_targets="$ac_config_targets $1" ;;
27129 ## ----------------------- ##
27130 ## Running config.status. ##
27131 ## ----------------------- ##
27133 This file was extended by $as_me 2.52.20200802, executed with
27134 CONFIG_FILES = $CONFIG_FILES
27135 CONFIG_HEADERS = $CONFIG_HEADERS
27136 CONFIG_LINKS = $CONFIG_LINKS
27137 CONFIG_COMMANDS = $CONFIG_COMMANDS
27138 > $ac_cs_invocation
27139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27144 cat >>$CONFIG_STATUS <<EOF
27146 # INIT-COMMANDS section.
27149 ### Special initialization commands, used to pass information from the
27150 ### configuration-run into config.status
27152 ALTERNATE_SYMS="$ALTERNATE_SYMS"
27154 CXX_NAME="$CXX_NAME"
27155 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
27156 DFT_LWR_MODEL="$DFT_LWR_MODEL"
27158 EXTRA_SUFFIX="$EXTRA_SUFFIX"
27159 FORM_NAME="$FORM_NAME"
27160 LDCONFIG="$LDCONFIG"
27161 LIBTOOL_VERSION="$LIBTOOL_VERSION"
27162 LIB_NAME="$LIB_NAME"
27163 LIB_PREFIX="$LIB_PREFIX"
27164 LIB_SUBSETS="$LIB_SUBSETS"
27165 LIB_SUFFIX="$LIB_SUFFIX"
27166 LIB_TRACING="$LIB_TRACING"
27168 MAKE_TERMINFO="$MAKE_TERMINFO"
27169 MENU_NAME="$MENU_NAME"
27170 NCURSES_MAJOR="$NCURSES_MAJOR"
27171 NCURSES_MINOR="$NCURSES_MINOR"
27172 NCURSES_OSPEED="$NCURSES_OSPEED"
27173 NCURSES_PATCH="$NCURSES_PATCH"
27174 PANEL_NAME="$PANEL_NAME"
27175 SRC_SUBDIRS="$SRC_SUBDIRS"
27176 TERMINFO="$TERMINFO"
27177 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
27178 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
27179 TICS_NAME="$TICS_NAME"
27180 TICS_SUFFIX="$TICS_SUFFIX"
27181 TIC_PATH="$TIC_PATH"
27182 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
27183 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
27184 TINFO_NAME="$TINFO_NAME"
27185 TINFO_SUFFIX="$TINFO_SUFFIX"
27186 UNALTERED_SYMS="$UNALTERED_SYMS"
27187 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
27188 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
27189 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
27190 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
27191 WILDCARD_SYMS="$WILDCARD_SYMS"
27192 WITH_CURSES_H="$with_curses_h"
27193 WITH_ECHO="${enable_echo:=yes}"
27194 WITH_OVERWRITE="$with_overwrite"
27195 cf_LIST_MODELS="$cf_list_models"
27196 cf_cv_abi_version="$cf_cv_abi_version"
27197 cf_cv_do_relink="$cf_cv_do_relink"
27198 cf_cv_do_reranlib="$cf_cv_do_reranlib"
27199 cf_cv_do_symlinks="$cf_cv_do_symlinks"
27200 cf_cv_enable_lp64="$cf_cv_enable_lp64"
27201 cf_cv_enable_opaque="$cf_cv_enable_opaque"
27202 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
27203 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
27204 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
27205 cf_cv_rel_version="$cf_cv_rel_version"
27206 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
27207 cf_cv_shared_soname='$cf_cv_shared_soname'
27208 cf_cv_shlib_version="$cf_cv_shlib_version"
27209 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
27210 cf_cv_system_name="$cf_cv_system_name"
27211 cf_cv_term_driver="$with_term_driver"
27212 cf_with_ada="$cf_with_ada"
27213 cf_with_cxx_binding="$cf_with_cxx_binding"
27214 cf_with_db_install="$cf_with_db_install"
27215 cf_with_manpages="$cf_with_manpages"
27216 cf_with_tests="$cf_with_tests"
27219 with_shared_cxx="$with_shared_cxx"
27223 cat >>$CONFIG_STATUS <<\EOF
27224 for ac_config_target in $ac_config_targets
27226 case "$ac_config_target" in
27227 # Handling of arguments.
27228 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
27229 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
27230 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
27231 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
27232 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
27233 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
27234 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27235 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27236 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
27237 *) { { echo "$as_me:27237: error: invalid argument: $ac_config_target" >&5
27238 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27239 { (exit 1); exit 1; }; };;
27243 # If the user did not use the arguments to specify the items to instantiate,
27244 # then the envvar interface is used. Set only those that are not.
27245 # We use the long form for the default assignment because of an extremely
27246 # bizarre bug on SunOS 4.1.3.
27247 if $ac_need_defaults; then
27248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27250 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27253 # Create a temporary directory, and hook for its removal unless debugging.
27256 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27257 trap '{ (exit 1); exit 1; }' 1 2 13 15
27260 # Create a (secure) tmp directory for tmp files.
27263 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
27264 test -n "$tmp" && test -d "$tmp"
27267 tmp=$TMPDIR/cs$$-$RANDOM
27268 (umask 077 && mkdir $tmp)
27271 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
27272 { (exit 1); exit 1; }
27277 cat >>$CONFIG_STATUS <<EOF
27280 # CONFIG_FILES section.
27283 # No need to generate the scripts if there are no CONFIG_FILES.
27284 # This happens for instance when ./config.status config.h
27285 if test -n "\$CONFIG_FILES"; then
27286 # Protect against being on the right side of a sed subst in config.status.
27287 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27288 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27289 s,@SHELL@,$SHELL,;t t
27290 s,@exec_prefix@,$exec_prefix,;t t
27291 s,@prefix@,$prefix,;t t
27292 s,@program_transform_name@,$program_transform_name,;t t
27293 s,@bindir@,$bindir,;t t
27294 s,@sbindir@,$sbindir,;t t
27295 s,@libexecdir@,$libexecdir,;t t
27296 s,@datarootdir@,$datarootdir,;t t
27297 s,@datadir@,$datadir,;t t
27298 s,@sysconfdir@,$sysconfdir,;t t
27299 s,@sharedstatedir@,$sharedstatedir,;t t
27300 s,@localstatedir@,$localstatedir,;t t
27301 s,@runstatedir@,$runstatedir,;t t
27302 s,@libdir@,$libdir,;t t
27303 s,@includedir@,$includedir,;t t
27304 s,@oldincludedir@,$oldincludedir,;t t
27305 s,@infodir@,$infodir,;t t
27306 s,@mandir@,$mandir,;t t
27307 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27308 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27309 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27310 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27311 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27312 s,@build_alias@,$build_alias,;t t
27313 s,@host_alias@,$host_alias,;t t
27314 s,@target_alias@,$target_alias,;t t
27315 s,@ECHO_C@,$ECHO_C,;t t
27316 s,@ECHO_N@,$ECHO_N,;t t
27317 s,@ECHO_T@,$ECHO_T,;t t
27318 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27319 s,@DEFS@,$DEFS,;t t
27320 s,@LIBS@,$LIBS,;t t
27321 s,@top_builddir@,$top_builddir,;t t
27322 s,@EGREP@,$EGREP,;t t
27323 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
27324 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
27325 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
27326 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
27327 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
27328 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
27329 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
27330 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
27331 s,@VERSION@,$VERSION,;t t
27332 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
27333 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
27334 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
27335 s,@PACKAGE@,$PACKAGE,;t t
27336 s,@build@,$build,;t t
27337 s,@build_cpu@,$build_cpu,;t t
27338 s,@build_vendor@,$build_vendor,;t t
27339 s,@build_os@,$build_os,;t t
27340 s,@host@,$host,;t t
27341 s,@host_cpu@,$host_cpu,;t t
27342 s,@host_vendor@,$host_vendor,;t t
27343 s,@host_os@,$host_os,;t t
27344 s,@target@,$target,;t t
27345 s,@target_cpu@,$target_cpu,;t t
27346 s,@target_vendor@,$target_vendor,;t t
27347 s,@target_os@,$target_os,;t t
27349 s,@CFLAGS@,$CFLAGS,;t t
27350 s,@LDFLAGS@,$LDFLAGS,;t t
27351 s,@CPPFLAGS@,$CPPFLAGS,;t t
27352 s,@ac_ct_CC@,$ac_ct_CC,;t t
27353 s,@EXEEXT@,$EXEEXT,;t t
27354 s,@OBJEXT@,$OBJEXT,;t t
27355 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
27357 s,@LDCONFIG@,$LDCONFIG,;t t
27359 s,@CXXFLAGS@,$CXXFLAGS,;t t
27360 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27362 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27363 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27364 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27365 s,@LINT@,$LINT,;t t
27366 s,@LINT_OPTS@,$LINT_OPTS,;t t
27367 s,@LN_S@,$LN_S,;t t
27368 s,@cf_config_suffix@,$cf_config_suffix,;t t
27369 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27370 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
27371 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
27372 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
27373 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
27374 s,@SET_MAKE@,$SET_MAKE,;t t
27375 s,@CTAGS@,$CTAGS,;t t
27376 s,@ETAGS@,$ETAGS,;t t
27377 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
27378 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
27379 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
27380 s,@RANLIB@,$RANLIB,;t t
27381 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27383 s,@ac_ct_LD@,$ac_ct_LD,;t t
27385 s,@ac_ct_AR@,$ac_ct_AR,;t t
27387 s,@ac_ct_NM@,$ac_ct_NM,;t t
27388 s,@ARFLAGS@,$ARFLAGS,;t t
27389 s,@DESTDIR@,$DESTDIR,;t t
27390 s,@BUILD_CC@,$BUILD_CC,;t t
27391 s,@BUILD_CPP@,$BUILD_CPP,;t t
27392 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
27393 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
27394 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
27395 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
27396 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
27397 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
27398 s,@cf_list_models@,$cf_list_models,;t t
27399 s,@ABI_VERSION@,$ABI_VERSION,;t t
27400 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
27401 s,@LIBTOOL@,$LIBTOOL,;t t
27402 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
27403 s,@LT_UNDEF@,$LT_UNDEF,;t t
27404 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
27405 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
27406 s,@LIB_CREATE@,$LIB_CREATE,;t t
27407 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
27408 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
27409 s,@LIB_PREP@,$LIB_PREP,;t t
27410 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
27411 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
27412 s,@LIB_LINK@,$LIB_LINK,;t t
27413 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
27414 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
27415 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
27416 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
27417 s,@TICS_NAME@,$TICS_NAME,;t t
27418 s,@TINFO_NAME@,$TINFO_NAME,;t t
27419 s,@LIB_NAME@,$LIB_NAME,;t t
27420 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
27421 s,@CC_G_OPT@,$CC_G_OPT,;t t
27422 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
27423 s,@LD_MODEL@,$LD_MODEL,;t t
27424 s,@shlibdir@,$shlibdir,;t t
27425 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
27426 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
27427 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
27428 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
27429 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
27430 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
27431 s,@LINK_PROGS@,$LINK_PROGS,;t t
27432 s,@LINK_TESTS@,$LINK_TESTS,;t t
27433 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
27434 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27435 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
27436 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
27437 s,@RPATH_LIST@,$RPATH_LIST,;t t
27438 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
27439 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
27440 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
27441 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
27442 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
27443 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
27444 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
27445 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
27446 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
27448 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
27449 s,@INFOCMP@,$INFOCMP,;t t
27450 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
27451 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
27452 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
27453 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
27454 s,@XTERM_KBS@,$XTERM_KBS,;t t
27455 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
27456 s,@TERMINFO@,$TERMINFO,;t t
27457 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
27458 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
27459 s,@TERMPATH@,$TERMPATH,;t t
27460 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
27461 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
27462 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
27463 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
27464 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
27465 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
27466 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
27467 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
27468 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
27469 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
27470 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
27471 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
27472 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
27473 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
27474 s,@RGB_PATH@,$RGB_PATH,;t t
27475 s,@no_x11_rgb@,$no_x11_rgb,;t t
27476 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
27477 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
27478 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
27479 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
27480 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
27481 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
27482 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
27483 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
27484 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
27485 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
27486 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
27487 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
27488 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
27489 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
27490 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
27491 s,@PTHREAD@,$PTHREAD,;t t
27492 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
27493 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
27494 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
27495 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
27496 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
27497 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
27498 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
27499 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
27500 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
27501 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
27502 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
27503 s,@ECHO_LT@,$ECHO_LT,;t t
27504 s,@ECHO_LD@,$ECHO_LD,;t t
27505 s,@RULE_CC@,$RULE_CC,;t t
27506 s,@SHOW_CC@,$SHOW_CC,;t t
27507 s,@ECHO_CC@,$ECHO_CC,;t t
27508 s,@ECHO_LINK@,$ECHO_LINK,;t t
27509 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
27510 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
27511 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
27512 s,@ADAFLAGS@,$ADAFLAGS,;t t
27513 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
27514 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
27515 s,@ADA_TRACE@,$ADA_TRACE,;t t
27516 s,@MATH_LIB@,$MATH_LIB,;t t
27517 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
27518 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
27519 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
27520 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
27521 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
27522 s,@TEST_LIBS@,$TEST_LIBS,;t t
27523 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
27524 s,@CXXCPP@,$CXXCPP,;t t
27525 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
27526 s,@CXX_AR@,$CXX_AR,;t t
27527 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
27528 s,@CXXLIBS@,$CXXLIBS,;t t
27529 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
27530 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
27531 s,@M4_exists@,$M4_exists,;t t
27532 s,@cf_ada_make@,$cf_ada_make,;t t
27533 s,@cf_ada_config@,$cf_ada_config,;t t
27534 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
27535 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
27536 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
27537 s,@cf_compile_generics@,$cf_compile_generics,;t t
27538 s,@cf_generic_objects@,$cf_generic_objects,;t t
27539 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
27540 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
27541 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
27542 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
27543 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
27544 s,@cf_ada_package@,$cf_ada_package,;t t
27545 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
27546 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
27547 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
27548 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
27549 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
27550 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
27551 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
27552 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
27553 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
27554 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
27555 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
27556 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
27557 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
27558 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
27559 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
27560 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
27561 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
27562 s,@TICS_LIBS@,$TICS_LIBS,;t t
27563 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
27564 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
27565 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
27566 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
27567 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
27568 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
27569 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
27570 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
27571 s,@includesubdir@,$includesubdir,;t t
27572 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
27573 s,@TICS_LIST@,$TICS_LIST,;t t
27574 s,@TINFO_LIST@,$TINFO_LIST,;t t
27575 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
27576 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
27577 s,@FORM_NAME@,$FORM_NAME,;t t
27578 s,@MENU_NAME@,$MENU_NAME,;t t
27579 s,@PANEL_NAME@,$PANEL_NAME,;t t
27580 s,@CXX_NAME@,$CXX_NAME,;t t
27581 s,@TEST_ARGS@,$TEST_ARGS,;t t
27582 s,@TEST_DEPS@,$TEST_DEPS,;t t
27583 s,@TEST_ARG2@,$TEST_ARG2,;t t
27584 s,@TEST_DEP2@,$TEST_DEP2,;t t
27585 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
27586 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
27587 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
27588 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
27589 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
27590 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
27591 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
27592 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
27593 s,@cross_compiling@,$cross_compiling,;t t
27594 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
27595 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
27596 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
27597 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
27598 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
27599 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
27600 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
27601 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
27602 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
27603 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
27604 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
27605 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
27610 cat >>$CONFIG_STATUS <<\EOF
27611 # Split the substitutions into bite-sized pieces for seds with
27612 # small command number limits, like on Digital OSF/1 and HP-UX.
27613 ac_max_sed_lines=48
27614 ac_sed_frag=1 # Number of current file.
27615 ac_beg=1 # First line for current file.
27616 ac_end=$ac_max_sed_lines # Line after last line for current file.
27619 while $ac_more_lines; do
27620 if test $ac_beg -gt 1; then
27621 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27623 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27625 if test ! -s $tmp/subs.frag; then
27626 ac_more_lines=false
27628 # The purpose of the label and of the branching condition is to
27629 # speed up the sed processing (if there are no `@' at all, there
27630 # is no need to browse any of the substitutions).
27631 # These are the two extra sed commands mentioned above.
27633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27634 # It is possible to make a multiline substitution using escaped newlines.
27635 # Ensure that we do not split the substitution between script fragments.
27637 ac_END=`expr $ac_end + $ac_max_sed_lines`
27638 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
27639 if test -s $tmp/subs.next; then
27640 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
27641 if test ! -s $tmp/subs.edit; then
27642 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
27643 if test ! -s $tmp/subs.edit; then
27644 if test $ac_beg -gt 1; then
27645 ac_end=`expr $ac_end - 1`
27652 if test -z "$ac_sed_cmds"; then
27653 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27655 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27657 ac_sed_frag=`expr $ac_sed_frag + 1`
27659 ac_end=`expr $ac_end + $ac_max_sed_lines`
27662 if test -z "$ac_sed_cmds"; then
27665 fi # test -n "$CONFIG_FILES"
27668 cat >>$CONFIG_STATUS <<\EOF
27669 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27670 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27672 - | *:- | *:-:* ) # input from stdin
27674 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27675 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27676 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27678 * ) ac_file_in=$ac_file.in ;;
27681 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27682 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27683 X"$ac_file" : 'X\(//\)[^/]' \| \
27684 X"$ac_file" : 'X\(//\)$' \| \
27685 X"$ac_file" : 'X\(/\)' \| \
27686 . : '\(.\)' 2>/dev/null ||
27688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27690 /^X\(\/\/\)$/{ s//\1/; q; }
27691 /^X\(\/\).*/{ s//\1/; q; }
27693 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27694 { case "$ac_dir" in
27695 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27699 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27700 case $as_mkdir_dir in
27701 # Skip DOS drivespec
27702 ?:) as_incr_dir=$as_mkdir_dir ;;
27704 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27705 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27710 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
27711 # A "../" for each directory in $ac_dir_suffix.
27712 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
27714 ac_dir_suffix= ac_dots=
27719 if test -z "$ac_dots"; then
27722 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
27724 [\\/]* | ?:[\\/]* )
27725 ac_srcdir=$srcdir$ac_dir_suffix;
27726 ac_top_srcdir=$srcdir ;;
27727 *) # Relative path.
27728 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
27729 ac_top_srcdir=$ac_dots$srcdir ;;
27733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27734 *) ac_INSTALL=$ac_dots$INSTALL ;;
27737 if test x"$ac_file" != x-; then
27738 { echo "$as_me:27738: creating $ac_file" >&5
27739 echo "$as_me: creating $ac_file" >&6;}
27742 # Let's still pretend it is `configure' which instantiates (i.e., don't
27743 # use $as_me), people would be surprised to read:
27744 # /* config.h. Generated automatically by config.status. */
27745 configure_input="Generated automatically from `echo $ac_file_in |
27746 sed 's,.*/,,'` by configure."
27748 # First look for the input files in the build tree, otherwise in the
27750 ac_file_inputs=`IFS=:
27751 for f in $ac_file_in; do
27753 -) echo $tmp/stdin ;;
27755 # Absolute (can't be DOS-style, as IFS=:)
27756 test -f "$f" || { { echo "$as_me:27756: error: cannot find input file: $f" >&5
27757 echo "$as_me: error: cannot find input file: $f" >&2;}
27758 { (exit 1); exit 1; }; }
27761 if test -f "$f"; then
27764 elif test -f "$srcdir/$f"; then
27769 { { echo "$as_me:27769: error: cannot find input file: $f" >&5
27770 echo "$as_me: error: cannot find input file: $f" >&2;}
27771 { (exit 1); exit 1; }; }
27774 done` || { (exit 1); exit 1; }
27776 cat >>$CONFIG_STATUS <<\EOF
27777 ac_warn_datarootdir=no
27778 if test x"$ac_file" != x-; then
27779 for ac_item in $ac_file_inputs
27781 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
27782 if test -n "$ac_seen"; then
27783 ac_used=`grep '@datarootdir@' $ac_item`
27784 if test -z "$ac_used"; then
27785 { echo "$as_me:27785: WARNING: datarootdir was used implicitly but not set:
27787 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
27789 ac_warn_datarootdir=yes
27792 ac_seen=`grep '${datarootdir}' $ac_item`
27793 if test -n "$ac_seen"; then
27794 { echo "$as_me:27794: WARNING: datarootdir was used explicitly but not set:
27796 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
27798 ac_warn_datarootdir=yes
27803 if test "x$ac_warn_datarootdir" = xyes; then
27804 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
27808 cat >>$CONFIG_STATUS <<EOF
27812 cat >>$CONFIG_STATUS <<\EOF
27814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27815 s,@configure_input@,$configure_input,;t t
27816 s,@srcdir@,$ac_srcdir,;t t
27817 s,@top_srcdir@,$ac_top_srcdir,;t t
27818 s,@INSTALL@,$ac_INSTALL,;t t
27819 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27821 if test x"$ac_file" != x-; then
27822 cp $tmp/out $ac_file
27824 for ac_name in prefix exec_prefix datarootdir
27826 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
27827 if test -n "$ac_seen"; then
27828 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
27829 if test -z "$ac_init"; then
27830 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
27831 { echo "$as_me:27831: WARNING: Variable $ac_name is used but was not set:
27833 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
27838 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
27839 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
27840 if test -s $tmp/out; then
27841 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
27842 { echo "$as_me:27842: WARNING: Some variables may not be substituted:
27844 echo "$as_me: WARNING: Some variables may not be substituted:
27854 cat >>$CONFIG_STATUS <<\EOF
27857 # CONFIG_HEADER section.
27860 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27861 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27863 # ac_d sets the value in "#define NAME VALUE" lines.
27864 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27865 ac_dB='[ ].*$,\1#\2'
27868 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
27869 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27870 ac_iB='\([ ]\),\1#\2define\3'
27873 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27874 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27875 ac_uB='$,\1#\2define\3'
27879 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27882 - | *:- | *:-:* ) # input from stdin
27884 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27885 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27886 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27888 * ) ac_file_in=$ac_file.in ;;
27891 test x"$ac_file" != x- && { echo "$as_me:27891: creating $ac_file" >&5
27892 echo "$as_me: creating $ac_file" >&6;}
27894 # First look for the input files in the build tree, otherwise in the
27896 ac_file_inputs=`IFS=:
27897 for f in $ac_file_in; do
27899 -) echo $tmp/stdin ;;
27901 # Absolute (can't be DOS-style, as IFS=:)
27902 test -f "$f" || { { echo "$as_me:27902: error: cannot find input file: $f" >&5
27903 echo "$as_me: error: cannot find input file: $f" >&2;}
27904 { (exit 1); exit 1; }; }
27907 if test -f "$f"; then
27910 elif test -f "$srcdir/$f"; then
27915 { { echo "$as_me:27915: error: cannot find input file: $f" >&5
27916 echo "$as_me: error: cannot find input file: $f" >&2;}
27917 { (exit 1); exit 1; }; }
27920 done` || { (exit 1); exit 1; }
27921 # Remove the trailing spaces.
27922 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27926 # Transform confdefs.h into a list of #define's. We won't use it as a sed
27927 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
27928 # be either 'cat' or 'sort'.
27929 cat confdefs.h | uniq >conftest.vals
27931 # Break up conftest.vals because some shells have a limit on
27932 # the size of here documents, and old seds have small limits too.
27934 rm -f conftest.tail
27935 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
27936 while grep . conftest.vals >/dev/null
27938 # Write chunks of a limited-size here document to conftest.frag.
27939 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
27940 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
27941 echo 'CEOF' >> $CONFIG_STATUS
27942 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27943 rm -f conftest.vals
27944 mv conftest.tail conftest.vals
27946 rm -f conftest.vals
27948 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
27950 echo ' cat >> conftest.edit <<CEOF
27951 /@DEFS@/r conftest.frag
27954 sed -f conftest.edit $tmp/in > $tmp/out
27956 mv $tmp/out $tmp/in
27957 rm -f conftest.edit conftest.frag
27958 ' >> $CONFIG_STATUS
27960 cat >>$CONFIG_STATUS <<\EOF
27961 # Let's still pretend it is `configure' which instantiates (i.e., don't
27962 # use $as_me), people would be surprised to read:
27963 # /* config.h. Generated automatically by config.status. */
27964 if test x"$ac_file" = x-; then
27965 echo "/* Generated automatically by configure. */" >$tmp/config.h
27967 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
27969 cat $tmp/in >>$tmp/config.h
27971 if test x"$ac_file" != x-; then
27972 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
27973 { echo "$as_me:27973: $ac_file is unchanged" >&5
27974 echo "$as_me: $ac_file is unchanged" >&6;}
27976 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27977 X"$ac_file" : 'X\(//\)[^/]' \| \
27978 X"$ac_file" : 'X\(//\)$' \| \
27979 X"$ac_file" : 'X\(/\)' \| \
27980 . : '\(.\)' 2>/dev/null ||
27982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27984 /^X\(\/\/\)$/{ s//\1/; q; }
27985 /^X\(\/\).*/{ s//\1/; q; }
27987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27988 { case "$ac_dir" in
27989 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27993 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27994 case $as_mkdir_dir in
27995 # Skip DOS drivespec
27996 ?:) as_incr_dir=$as_mkdir_dir ;;
27998 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27999 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
28006 mv $tmp/config.h $ac_file
28010 rm -f $tmp/config.h
28014 cat >>$CONFIG_STATUS <<\EOF
28016 # CONFIG_COMMANDS section.
28018 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28019 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28020 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28024 if test "x$cf_with_tests" != xno ; then
28028 if test ! -d $srcdir/$cf_dir; then
28030 elif test -f $srcdir/$cf_dir/programs; then
28031 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
28037 cf_prefix=$LIB_PREFIX
28039 case $cf_cv_shlib_version in
28040 (cygdll|msysdll|mingw|msvcdll)
28041 TINFO_NAME=$TINFO_ARG_SUFFIX
28046 if test -n "$TINFO_SUFFIX" ; then
28047 case $TINFO_SUFFIX in
28049 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
28050 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
28053 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
28054 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
28057 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
28058 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
28063 for cf_dir in $SRC_SUBDIRS
28065 if test ! -d $srcdir/$cf_dir ; then
28067 elif test -f $srcdir/$cf_dir/modules; then
28072 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
28074 cf_awk_program="$cf_awk_program\
28075 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
28076 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
28080 if test "x$WILDCARD_SYMS" = xno
28082 cf_awk_program="$cf_awk_program\
28083 /[ ]_\\*;/ { skip=1; next; }\
28087 if test "x$cf_awk_program" != "x"
28089 cat >>$cf_dir/Makefile <<CF_EOF
28091 # Generated by CF_LIB_RULES
28092 resulting.map: $UNALTERED_SYMS
28093 $AWK 'BEGIN { skip = 1; last=""; } \
28095 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
28096 skip = 0; last = \$\$0; } \
28097 END { print last; }' < $UNALTERED_SYMS >\$@
28100 rm -f resulting.map
28104 for cf_item in $cf_LIST_MODELS
28110 cf_depsuf=$cf_suffix
28113 case $cf_cv_system_name in
28121 cf_depsuf=$cf_suffix
28124 case $cf_cv_system_name in
28132 cf_depsuf=$cf_suffix
28135 case $cf_cv_system_name in
28138 cf_depsuf=$cf_suffix
28142 cf_depsuf='.dll.lib'
28144 (cygwin*|msys*|mingw*)
28150 cf_depsuf=$cf_suffix
28156 cf_depsuf=$cf_suffix
28160 cf_depsuf=$cf_suffix
28166 cf_depsuf=$cf_suffix
28179 cf_depsuf=$cf_suffix
28182 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28184 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28185 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28188 if test "$cf_dir" = "c++"
28191 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28193 eval cf_libname=\$${cf_map_lib_basename}_NAME
28197 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28199 eval cf_libname=\$${cf_map_lib_basename}_NAME
28202 test -z "$cf_libname" && cf_libname="$cf_dir"
28203 if test $cf_item = shared ; then
28204 if test -n "${LIB_SUFFIX}"
28206 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28208 cf_shared_suffix="$cf_suffix"
28210 if test "$cf_cv_do_symlinks" = yes ; then
28213 case "$cf_cv_shlib_version" in
28215 cf_version_name=REL_VERSION
28218 cf_version_name=ABI_VERSION
28222 if test -n "$cf_version_name"
28224 case "$cf_cv_system_name" in
28227 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
28230 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
28234 if test -n "${USE_LIB_SUFFIX}"
28236 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28238 cf_shared_suffix="$cf_suffix"
28241 # cygwin needs import library, and has unique naming convention
28242 # use autodetected ${cf_prefix} for import lib and static lib, but
28243 # use 'cyg' prefix for shared lib.
28244 case $cf_cv_shlib_version in
28246 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28247 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
28250 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28251 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
28254 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28255 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
28258 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28259 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
28265 if test -n "$cf_add_lib"
28267 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28271 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
28272 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28275 if test $cf_dir = ncurses ; then
28276 cf_subsets="$LIB_SUBSETS"
28277 cf_r_parts="$cf_subsets"
28278 cf_liblist="$Libs_To_Make"
28280 while test -n "$cf_r_parts"
28282 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
28283 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
28284 if test "$cf_l_parts" != "$cf_r_parts" ; then
28286 case $cf_l_parts in
28288 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
28291 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
28297 if test -n "$cf_add_lib"; then
28298 Libs_To_Make="$cf_add_lib $Libs_To_Make"
28305 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
28308 if test $cf_dir = c++; then
28309 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
28311 for cf_item in $Libs_To_Make
28317 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
28320 for cf_test in $cf_list
28322 if test "$cf_test" = "$cf_item"
28324 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
28329 test -n "$cf_item" && cf_list="$cf_list $cf_item"
28331 Libs_To_Make="$cf_list"
28335 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
28336 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
28337 $cf_dir/Makefile >$cf_dir/Makefile.out
28338 mv $cf_dir/Makefile.out $cf_dir/Makefile
28340 $AWK -f $srcdir/mk-0th.awk \
28341 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
28342 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28344 for cf_subset in $cf_subsets
28347 for cf_item in $cf_LIST_MODELS
28350 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
28352 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28355 if test "$CXX_MODEL" = SHARED; then
28356 case $cf_cv_shlib_version in
28357 (cygdll|msysdll|mingw|msvcdll)
28358 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
28360 echo "${as_me:-configure}:28360: testing overriding CXX_MODEL to SHARED ..." 1>&5
28362 with_shared_cxx=yes
28365 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
28373 cf_depsuf=$cf_suffix
28376 case $cf_cv_system_name in
28384 cf_depsuf=$cf_suffix
28387 case $cf_cv_system_name in
28395 cf_depsuf=$cf_suffix
28398 case $cf_cv_system_name in
28401 cf_depsuf=$cf_suffix
28405 cf_depsuf='.dll.lib'
28407 (cygwin*|msys*|mingw*)
28413 cf_depsuf=$cf_suffix
28419 cf_depsuf=$cf_suffix
28423 cf_depsuf=$cf_suffix
28429 cf_depsuf=$cf_suffix
28442 cf_depsuf=$cf_suffix
28445 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28447 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28448 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28452 (libtool) cf_subdir='obj_lo' ;;
28453 (normal) cf_subdir='objects' ;;
28454 (debug) cf_subdir='obj_g' ;;
28455 (profile) cf_subdir='obj_p' ;;
28457 case $cf_cv_system_name in
28459 cf_subdir='objects' ;;
28461 cf_subdir='obj_s' ;;
28465 # Test for case where we build libtinfo with a different name.
28467 if test $cf_dir = ncurses ; then
28470 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28473 cf_libname=$TINFO_LIB_SUFFIX
28476 cf_libname=$TICS_LIB_SUFFIX
28479 elif test $cf_dir = c++ ; then
28481 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28483 eval cf_libname=\$${cf_map_lib_basename}_NAME
28485 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28488 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28490 eval cf_libname=\$${cf_map_lib_basename}_NAME
28492 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28494 if test -n "${USE_ARG_SUFFIX}" ; then
28495 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
28496 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
28499 # These dependencies really are for development, not
28500 # builds, but they are useful in porting, too.
28501 cf_depend="../include/ncurses_cfg.h"
28502 if test "$srcdir" = "."; then
28505 cf_reldir="\${srcdir}"
28508 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
28509 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
28510 elif test -f $srcdir/$cf_dir/curses.priv.h; then
28511 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
28515 old_cf_suffix="$cf_suffix"
28516 if test "$cf_cv_shlib_version_infix" = yes ; then
28517 if test -n "$USE_LIB_SUFFIX" ; then
28518 case $USE_LIB_SUFFIX in
28520 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
28521 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
28522 cf_dir_suffix=tw$EXTRA_SUFFIX
28525 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
28526 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
28527 cf_dir_suffix=t$EXTRA_SUFFIX
28530 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
28531 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
28532 cf_dir_suffix=w$EXTRA_SUFFIX
28535 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
28536 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
28537 cf_dir_suffix=$EXTRA_SUFFIX
28543 $AWK -f $srcdir/mk-1st.awk \
28544 name=${cf_libname}${cf_dir_suffix} \
28545 traces=$LIB_TRACING \
28547 CXX_MODEL=$CXX_MODEL \
28549 prefix=$cf_prefix \
28550 suffix=$cf_suffix \
28551 subset=$cf_subset \
28552 driver=$cf_cv_term_driver \
28554 TermlibRoot=$TINFO_NAME \
28555 TermlibSuffix=$TINFO_SUFFIX \
28556 ShlibVer=$cf_cv_shlib_version \
28557 ShlibVerInfix=$cf_cv_shlib_version_infix \
28558 ReLink=${cf_cv_do_relink:-no} \
28559 ReRanlib=${cf_cv_do_reranlib:-yes} \
28560 DoLinks=$cf_cv_do_symlinks \
28561 rmSoLocs=$cf_cv_rm_so_locs \
28562 ldconfig="$LDCONFIG" \
28563 overwrite=$WITH_OVERWRITE \
28564 depend="$cf_depend" \
28566 libtool_version="$LIBTOOL_VERSION" \
28567 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28569 cf_suffix="$old_cf_suffix"
28571 for cf_subdir2 in $cf_subdirs lib
28573 test $cf_subdir = $cf_subdir2 && break
28575 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
28576 $AWK -f $srcdir/mk-2nd.awk \
28578 traces=$LIB_TRACING \
28581 subset=$cf_subset \
28584 crenames=$cf_cv_prog_CC_c_o \
28585 cxxrenames=$cf_cv_prog_CXX_c_o \
28586 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28587 cf_subdirs="$cf_subdirs $cf_subdir"
28592 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
28595 for cf_dir in $SRC_SUBDIRS
28597 if test ! -d $srcdir/$cf_dir ; then
28601 if test -f $cf_dir/Makefile ; then
28604 echo 'libs \' >> Makefile
28605 echo 'install.libs \' >> Makefile
28606 echo 'uninstall.libs ::' >> Makefile
28607 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
28612 if test -f $srcdir/$cf_dir/modules; then
28614 if test -f $srcdir/$cf_dir/headers; then
28615 cat >> Makefile <<CF_EOF
28616 install.includes \\
28617 uninstall.includes \\
28620 if test "$cf_dir" != "c++" ; then
28621 echo 'lint \' >> Makefile
28623 cat >> Makefile <<CF_EOF
28629 uninstall.$cf_dir ::
28630 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
28632 elif test -f $srcdir/$cf_dir/headers; then
28633 cat >> Makefile <<CF_EOF
28638 install.includes \\
28639 uninstall.includes ::
28640 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
28645 if test "x$cf_with_db_install" = xyes; then
28646 cat >> Makefile <<CF_EOF
28648 install.libs uninstall.libs \\
28649 install.data uninstall.data ::
28650 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
28653 cat >> Makefile <<CF_EOF
28655 install.libs uninstall.libs ::
28656 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
28660 if test "x$cf_with_manpages" = xyes; then
28661 cat >> Makefile <<CF_EOF
28665 cd man && \${MAKE} \${TOP_MFLAGS} \$@
28669 cat >> Makefile <<CF_EOF
28672 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
28673 rm -f headers.sh headers.sed mk_shared_lib.sh
28674 rm -f edit_man.* man_alias.*
28675 rm -rf \${DIRS_TO_MAKE}
28678 # Special case: tack's manpage lives in its own directory.
28679 if test "x$cf_with_manpages" = xyes; then
28680 if test "x$cf_with_tack" = "xyes"; then
28681 cat >> Makefile <<CF_EOF
28685 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
28690 rm -f headers.sed headers.sh
28692 echo creating headers.sh
28693 cat >headers.sh <<CF_EOF
28695 # This shell script is generated by the 'configure' script. It is invoked in a
28696 # subdirectory of the build tree. It generates a sed-script in the parent
28697 # directory that is used to adjust includes for header files that reside in a
28698 # subdirectory of /usr/include, etc.
28700 while test \$# != 3
28702 PRG="\$PRG \$1"; shift
28707 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
28708 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
28709 echo installing \$SRC in \$DST
28712 if test $WITH_CURSES_H = yes; then
28713 cat >>headers.sh <<CF_EOF
28716 END=\`basename \$DST\`
28717 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
28719 NAME=\`basename \$i\`
28720 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
28724 echo "" >> \$TMPSED
28730 cat >>headers.sh <<CF_EOF
28733 END=\`basename \$DST\`
28734 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
28736 NAME=\`basename \$i\`
28737 if test "\$NAME" = "curses.h"
28739 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
28742 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
28746 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
28751 cat >>headers.sh <<CF_EOF
28753 sed -f \$TMPSED \$SRC > \$TMPSRC
28754 NAME=\`basename \$SRC\`
28756 if test $WITH_CURSES_H != yes; then
28757 cat >>headers.sh <<CF_EOF
28758 test "\$NAME" = "curses.h" && NAME=ncurses.h
28761 cat >>headers.sh <<CF_EOF
28762 # Just in case someone gzip'd manpages, remove the conflicting copy.
28763 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
28765 eval \$PRG \$TMPSRC \$DST/\$NAME
28766 rm -f \$TMPSRC \$TMPSED
28769 chmod 0755 headers.sh
28771 for cf_dir in $SRC_SUBDIRS
28773 if test ! -d $srcdir/$cf_dir ; then
28777 if test -f $srcdir/$cf_dir/headers; then
28778 $AWK -f $srcdir/mk-hdr.awk \
28779 subset="$LIB_SUBSETS" \
28780 compat="$WITH_CURSES_H" \
28781 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
28784 if test -f $srcdir/$cf_dir/modules; then
28785 if test "$cf_dir" != "c++" ; then
28786 cat >>$cf_dir/Makefile <<"CF_EOF"
28787 depend : ${AUTO_SRC}
28788 makedepend -- ${CPPFLAGS} -- ${C_SRC}
28790 # DO NOT DELETE THIS LINE -- make depend depends on it.
28796 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28797 if test -z "$USE_OLD_MAKERULES" ; then
28798 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
28806 cat >>$CONFIG_STATUS <<\EOF
28808 { (exit 0); exit 0; }
28810 chmod +x $CONFIG_STATUS
28811 ac_clean_files=$ac_clean_files_save
28813 # configure is writing to config.log, and then calls config.status.
28814 # config.status does its own redirection, appending to config.log.
28815 # Unfortunately, on DOS this fails, as config.log is still kept open
28816 # by configure, so config.status won't be able to write to it; its
28817 # output is simply discarded. So we exec the FD to /dev/null,
28818 # effectively closing config.log, so it can be properly (re)opened and
28819 # appended to by config.status. When coming back to configure, we
28820 # need to make the FD available again.
28821 if test "$no_create" != yes; then
28824 $SHELL $CONFIG_STATUS || ac_cs_success=false
28826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28827 # would make configure fail if this is the last instruction.
28828 $ac_cs_success || { (exit 1); exit 1; }
28830 ${MAKE:-make} preinstall