2 # From configure.in Revision: 1.678 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20181006.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
615 ac_env_CXX_set=${CXX+set}
616 ac_env_CXX_value=$CXX
617 ac_cv_env_CXX_set=${CXX+set}
618 ac_cv_env_CXX_value=$CXX
619 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
620 ac_env_CXXFLAGS_value=$CXXFLAGS
621 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
623 ac_env_CXXCPP_set=${CXXCPP+set}
624 ac_env_CXXCPP_value=$CXXCPP
625 ac_cv_env_CXXCPP_set=${CXXCPP+set}
626 ac_cv_env_CXXCPP_value=$CXXCPP
629 # Report the --help message.
631 if test "$ac_init_help" = "long"; then
632 # Omit some internal or obsolete options to make the list less imposing.
633 # This message is too long to be a string in the A/UX 3.1 sh.
635 \`configure' configures this package to adapt to many kinds of systems.
637 Usage: $0 [OPTION]... [VAR=VALUE]...
639 To assign environment variables (e.g., CC, CFLAGS...), specify them as
640 VAR=VALUE. See below for descriptions of some of the useful variables.
642 Defaults for the options are specified in brackets.
645 -h, --help display this help and exit
646 --help=short display options specific to this package
647 --help=recursive display the short help of all the included packages
648 -V, --version display version information and exit
649 -q, --quiet, --silent do not print \`checking...' messages
650 --cache-file=FILE cache test results in FILE [disabled]
651 -C, --config-cache alias for \`--cache-file=config.cache'
652 -n, --no-create do not create output files
653 --srcdir=DIR find the sources in DIR [configure dir or \`..']
658 Installation directories:
659 --prefix=PREFIX install architecture-independent files in PREFIX
661 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 By default, \`make install' will install all the files in
665 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
666 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
667 for instance \`--prefix=\$HOME'.
669 For better control, use the options below.
671 Fine tuning of the installation directories:
672 --bindir=DIR user executables [EPREFIX/bin]
673 --sbindir=DIR system admin executables [EPREFIX/sbin]
674 --libexecdir=DIR program executables [EPREFIX/libexec]
675 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
676 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
677 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
678 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
679 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
680 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
681 --libdir=DIR object code libraries [EPREFIX/lib]
682 --includedir=DIR C header files [PREFIX/include]
683 --oldincludedir=DIR C header files for non-gcc [/usr/include]
684 --infodir=DIR info documentation [DATAROOTDIR/info]
685 --mandir=DIR man documentation [DATAROOTDIR/man]
691 --program-prefix=PREFIX prepend PREFIX to installed program names
692 --program-suffix=SUFFIX append SUFFIX to installed program names
693 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
696 --build=BUILD configure for building on BUILD [guessed]
697 --host=HOST build programs to run on HOST [BUILD]
698 --target=TARGET configure for building compilers for TARGET [HOST]
702 if test -n "$ac_init_help"; then
707 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
708 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
714 --with-rel-version=XXX override derived release version
715 --with-abi-version=XXX override derived ABI version
716 --with-system-type=XXX test: override derived host system-type
717 --without-ada suppress check for Ada95, don't build demo
718 --without-cxx do not adjust ncurses bool to match C++
719 --without-cxx-binding do not build C++ binding and demo
720 --disable-db-install suppress install of terminal database
721 --without-manpages suppress install of manpages
722 --without-progs suppress build/install with programs (e.g., tic)
723 --without-tack suppress build/install with tack program
724 --without-tests suppress build/install with test-programs
725 --without-curses-h install curses.h as ncurses.h only
726 --with-config-suffix=X suffixes ncursesXX-config file
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-pkg-config-libdir=XXX use given directory for installing pc-files
729 --enable-pc-files generate and install .pc files for pkg-config
730 --with-pc-suffix suffixes pc-files
731 --enable-mixed-case tic should assume mixed-case filenames
732 --with-install-prefix prefixes actual install-location ($DESTDIR)
733 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
734 --with-build-cc=XXX the build C compiler ($BUILD_CC)
735 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
736 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
737 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
738 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
739 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
740 Options to Specify the Libraries Built/Used:
741 --disable-libtool-version enable to use libtool's incompatible naming scheme
742 --with-libtool generate libraries with libtool
743 --with-shared generate shared-libraries
744 --with-normal generate normal-libraries (default)
745 --with-debug generate debug-libraries (default)
746 --with-profile generate profile-libraries
747 --with-cxx-shared generate C++ shared-libraries
748 --with-lib-prefix override library-prefix
749 --with-termlib generate separate terminfo library
750 --with-ticlib generate separate tic library
751 --enable-rpath use rpath option when generating shared libraries
752 --disable-relink relink shared libraries during install
753 --with-shlib-version=X Specify rel or abi version for shared libs
754 --with-libtool-opts=XXX specify additional libtool options
755 --with-export-syms=XXX limit exported symbols using libtool
756 --with-versioned-syms=X markup versioned symbols using ld
757 --with-gpm use Alessandro Rubini's GPM library
758 --without-dlsym do not use dlsym() to load GPM dynamically
759 --with-pcre2 use PCRE2 for regular-expressions
760 --with-sysmouse use sysmouse (FreeBSD console)
761 --disable-lib-suffixes disable library suffixes
762 --disable-rpath-hack don't add rpath options for additional libraries
763 Fine-Tuning Your Configuration:
764 --with-extra-suffix=X append extra suffix to header/library paths
765 --disable-overwrite put headers in subdir, omit link to -lcurses
766 --disable-database do not use terminfo, only fallbacks/termcap
767 --with-database=XXX specify terminfo source to install
768 --with-hashed-db specify hashed-database library
769 --with-fallbacks=XXX specify list of fallback terminal descriptions
770 --without-xterm-new specify if xterm terminfo should be old version
771 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
772 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
773 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
774 --disable-big-core assume machine has little memory
775 --disable-big-strings assume compiler has only standard-size strings
776 --enable-termcap compile in termcap fallback support
777 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
778 --enable-getcap fast termcap load, no xrefs to terminfo
779 --enable-getcap-cache cache translated termcaps in ~/.terminfo
780 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
781 --disable-root-environ restrict environment when running as root
782 --enable-symlinks make tic use symbolic links not hard links
783 --enable-broken_linker compile with broken-linker support code
784 --enable-bsdpad recognize BSD-style prefix padding
785 --enable-widec compile with wide-char/UTF-8 code
786 --disable-lp64 allow chtype to be long (ignore _LP64)
787 --disable-largefile omit support for large files
788 --disable-tparm-varargs compile tparm() without varargs interface
789 --disable-tic-depends link tic library without explicit dependency on ncurses library
790 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
791 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
792 --with-bool=TYPE override fallback type of bool variable
793 --with-caps=alt compile with alternate Caps file
794 --with-chtype=TYPE override type of chtype
795 --with-ospeed=TYPE override type of ospeed variable
796 --with-mmask-t=TYPE override type of mmask_t
797 --with-ccharw-max=XXX override size CCHARW_MAX
798 --enable-signed-char compile using signed Boolean's in term.h
799 --with-tparm-arg=TYPE override parameter type of tparm
800 --with-rcs-ids compile-in RCS identifiers
801 Options to Specify How Manpages are Installed:
802 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
803 optionally formatted/catonly, e.g., gzip,formatted
804 --with-manpage-renames specify manpage-renaming
805 --with-manpage-aliases specify manpage-aliases using .so
806 --with-manpage-symlinks specify manpage-aliases using symlinks
807 --with-manpage-tbl specify manpage processing with tbl
809 --disable-ext-funcs disable function-extensions
810 --enable-sp-funcs enable SCREEN-extensions
811 --enable-term-driver enable terminal-driver
812 --enable-const compile with extra/non-standard const
813 --enable-ext-colors compile for 256-color support
814 --enable-ext-mouse compile for extended mouse-encoding
815 --enable-ext-putwin compile with extended putwin/screendump
816 --enable-no-padding compile with $NCURSES_NO_PADDING code
817 --enable-sigwinch compile with SIGWINCH handler
818 --enable-tcap-names compile with user-definable terminal capabilities
820 --with-pthread use POSIX thread library
821 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
822 --enable-weak-symbols enable weak-symbols for pthreads
823 --enable-reentrant compile with reentrant code
824 --enable-opaque-curses make curses WINDOW, etc., "opaque"
825 --enable-opaque-form make form-library structures "opaque"
826 --enable-opaque-menu make menu-library structures "opaque"
827 --enable-opaque-panel make panel-library structures "opaque"
828 --with-wrap-prefix=XXX override prefix used for public variables
830 --without-develop disable development options
831 --enable-hard-tabs compile with hard-tabs code
832 --enable-xmc-glitch compile with support for xmc (magic-cookie)
834 --disable-assumed-color do not assume anything about default-colors
835 --disable-hashmap compile without hashmap scrolling-optimization
836 --enable-colorfgbg compile-in experimental $COLORFGBG code
837 --enable-interop compile-in interop bindings
838 --enable-safe-sprintf compile with experimental safe-sprintf code
839 --disable-scroll-hints compile without scroll-hints code
840 --enable-wgetch-events compile with wgetch-events code
841 Testing/development Options:
842 --disable-echo do not display "compiling" commands
843 --disable-stripping do not strip (debug info) installed executables
844 --enable-warnings build: turn on GCC compiler warnings
845 --enable-string-hacks work around bogus compiler/loader warnings
846 --enable-assertions test: turn on generation of assertion code
847 --with-dmalloc test: use Gray Watson's dmalloc library
848 --with-dbmalloc test: use Conor Cahill's dbmalloc library
849 --with-valgrind test: use valgrind
850 --disable-leaks test: free permanent memory, analyze leaks
851 --enable-expanded test: generate functions for certain macros
852 --disable-macros test: use functions rather than macros
853 --with-trace test: add trace() function to all models of ncurses
854 --disable-gnat-projects test: disable GNAT projects even if usable
855 Ada95 Binding Options:
856 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
857 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
858 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
859 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
871 CXXCPP C++ preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
884 # A "../" for each directory in /$ac_subdir.
885 ac_dots=`echo $ac_subdir |
886 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
889 .) # No --srcdir option. We are building in place.
890 ac_sub_srcdir=$srcdir ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_sub_srcdir=$srcdir/$ac_subdir ;;
894 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
897 # Check for guested configure; otherwise get Cygnus style configure.
898 if test -f $ac_sub_srcdir/configure.gnu; then
900 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
901 elif test -f $ac_sub_srcdir/configure; then
903 $SHELL $ac_sub_srcdir/configure --help=recursive
904 elif test -f $ac_sub_srcdir/configure.ac ||
905 test -f $ac_sub_srcdir/configure.in; then
909 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
915 test -n "$ac_init_help" && exit 0
916 if $ac_init_version; then
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
931 It was created by $as_me, which was
932 generated by GNU Autoconf 2.52.20181006. Invocation command line was
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
952 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
953 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
956 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
957 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
958 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
972 # Keep a trace of the command line.
973 # Strip out --no-create and --no-recursion so they do not pile up.
974 # Also quote any args containing shell meta-characters.
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c) ;;
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
984 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
985 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
986 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
988 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
991 # Get rid of the leading space.
994 # When interrupted or exit'd, cleanup temporary files, and complete
995 # config.log. We remove comments because anyway the quotes in there
996 # would cause problems or look ugly.
998 # Save into config.log some information that might help in debugging.
1000 echo "## ----------------- ##" >&5
1001 echo "## Cache variables. ##" >&5
1002 echo "## ----------------- ##" >&5
1004 # The following way of writing the cache mishandles newlines in values,
1007 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1010 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1015 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1019 sed "/^$/d" confdefs.h >conftest.log
1020 if test -s conftest.log; then
1022 echo "## ------------ ##" >&5
1023 echo "## confdefs.h. ##" >&5
1024 echo "## ------------ ##" >&5
1026 cat conftest.log >&5
1029 test "$ac_signal" != 0 &&
1030 echo "$as_me: caught signal $ac_signal" >&5
1031 echo "$as_me: exit $exit_status" >&5
1032 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1035 for ac_signal in 1 2 13 15; do
1036 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1041 rm -rf conftest* confdefs.h
1042 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1045 # Let the site file select an alternate cache file if it wants to.
1046 # Prefer explicitly selected file to automatically selected ones.
1047 if test -z "$CONFIG_SITE"; then
1048 if test "x$prefix" != xNONE; then
1049 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1051 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1054 for ac_site_file in $CONFIG_SITE; do
1055 if test -r "$ac_site_file"; then
1056 { echo "$as_me:1056: loading site script $ac_site_file" >&5
1057 echo "$as_me: loading site script $ac_site_file" >&6;}
1058 cat "$ac_site_file" >&5
1063 if test -r "$cache_file"; then
1064 # Some versions of bash will fail to source /dev/null (special
1065 # files actually), so we avoid doing that.
1066 if test -f "$cache_file"; then
1067 { echo "$as_me:1067: loading cache $cache_file" >&5
1068 echo "$as_me: loading cache $cache_file" >&6;}
1070 [\\/]* | ?:[\\/]* ) . $cache_file;;
1071 *) . ./$cache_file;;
1075 { echo "$as_me:1075: creating cache $cache_file" >&5
1076 echo "$as_me: creating cache $cache_file" >&6;}
1080 # Check that the precious variables saved in the cache have kept the same
1082 ac_cache_corrupted=false
1083 for ac_var in `(set) 2>&1 |
1084 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1085 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1086 eval ac_new_set=\$ac_env_${ac_var}_set
1087 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1088 eval ac_new_val="\$ac_env_${ac_var}_value"
1089 case $ac_old_set,$ac_new_set in
1091 { echo "$as_me:1091: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1092 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1093 ac_cache_corrupted=: ;;
1095 { echo "$as_me:1095: error: \`$ac_var' was not set in the previous run" >&5
1096 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1097 ac_cache_corrupted=: ;;
1100 if test "x$ac_old_val" != "x$ac_new_val"; then
1101 { echo "$as_me:1101: error: \`$ac_var' has changed since the previous run:" >&5
1102 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1103 { echo "$as_me:1103: former value: $ac_old_val" >&5
1104 echo "$as_me: former value: $ac_old_val" >&2;}
1105 { echo "$as_me:1105: current value: $ac_new_val" >&5
1106 echo "$as_me: current value: $ac_new_val" >&2;}
1107 ac_cache_corrupted=:
1110 # Pass precious variables to config.status. It doesn't matter if
1111 # we pass some twice (in addition to the command line arguments).
1112 if test "$ac_new_set" = set; then
1114 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1115 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1116 ac_configure_args="$ac_configure_args '$ac_arg'"
1118 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1123 if $ac_cache_corrupted; then
1124 { echo "$as_me:1124: error: changes in the environment can compromise the build" >&5
1125 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1126 { { echo "$as_me:1126: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1127 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1128 { (exit 1); exit 1; }; }
1132 ac_cpp='$CPP $CPPFLAGS'
1133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1136 ac_main_return=return
1138 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1139 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1144 echo "#! $SHELL" >conftest.sh
1145 echo "exit 0" >>conftest.sh
1146 chmod +x conftest.sh
1147 if { (echo "$as_me:1147: PATH=\".;.\"; conftest.sh") >&5
1148 (PATH=".;."; conftest.sh) 2>&5
1150 echo "$as_me:1150: \$? = $ac_status" >&5
1151 (exit $ac_status); }; then
1152 ac_path_separator=';'
1156 PATH_SEPARATOR="$ac_path_separator"
1159 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1163 echo "$as_me:1163: checking for egrep" >&5
1164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1165 if test "${ac_cv_prog_egrep+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1169 then ac_cv_prog_egrep='grep -E'
1170 else ac_cv_prog_egrep='egrep'
1173 echo "$as_me:1173: result: $ac_cv_prog_egrep" >&5
1174 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1175 EGREP=$ac_cv_prog_egrep
1177 test -z "$EGREP" && { { echo "$as_me:1177: error: No egrep program found" >&5
1178 echo "$as_me: error: No egrep program found" >&2;}
1179 { (exit 1); exit 1; }; }
1181 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1182 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1183 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1184 cf_cv_abi_version=${NCURSES_MAJOR}
1185 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1186 cf_cv_timestamp=`date`
1187 echo "$as_me:1187: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1188 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1190 if test -f $srcdir/VERSION ; then
1191 echo "$as_me:1191: checking for package version" >&5
1192 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1194 # if there are not enough fields, cut returns the last one...
1195 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1196 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1197 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1199 # this is how CF_BUNDLED_INTL uses $VERSION:
1200 VERSION="$cf_field1"
1202 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1203 test -z "$VERSION_MAJOR" && { { echo "$as_me:1203: error: missing major-version" >&5
1204 echo "$as_me: error: missing major-version" >&2;}
1205 { (exit 1); exit 1; }; }
1207 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1208 test -z "$VERSION_MINOR" && { { echo "$as_me:1208: error: missing minor-version" >&5
1209 echo "$as_me: error: missing minor-version" >&2;}
1210 { (exit 1); exit 1; }; }
1212 echo "$as_me:1212: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1213 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1215 echo "$as_me:1215: checking for package patch date" >&5
1216 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1217 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1218 case .$VERSION_PATCH in
1220 { { echo "$as_me:1220: error: missing patch-date $VERSION_PATCH" >&5
1221 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1222 { (exit 1); exit 1; }; }
1224 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1227 { { echo "$as_me:1227: error: illegal patch-date $VERSION_PATCH" >&5
1228 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1229 { (exit 1); exit 1; }; }
1232 echo "$as_me:1232: result: $VERSION_PATCH" >&5
1233 echo "${ECHO_T}$VERSION_PATCH" >&6
1235 { { echo "$as_me:1235: error: did not find $srcdir/VERSION" >&5
1236 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1237 { (exit 1); exit 1; }; }
1240 # show the actual data that we have for versions:
1241 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1243 echo "${as_me:-configure}:1243: testing ABI VERSION $VERSION ..." 1>&5
1245 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1247 echo "${as_me:-configure}:1247: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1249 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1251 echo "${as_me:-configure}:1251: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1253 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1255 echo "${as_me:-configure}:1255: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1260 cat >>confdefs.h <<EOF
1261 #define PACKAGE "$PACKAGE"
1264 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1266 cat >>confdefs.h <<EOF
1267 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1270 cat >>confdefs.h <<EOF
1271 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1274 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1276 # Check whether --with-rel-version or --without-rel-version was given.
1277 if test "${with_rel_version+set}" = set; then
1278 withval="$with_rel_version"
1279 { echo "$as_me:1279: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1280 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1281 cf_cv_rel_version=$withval
1284 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1285 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1287 if test -n "$NCURSES_MAJOR" ; then
1288 case $NCURSES_MAJOR in
1292 { { echo "$as_me:1292: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1293 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1294 { (exit 1); exit 1; }; }
1298 { { echo "$as_me:1298: error: Release major-version value is empty" >&5
1299 echo "$as_me: error: Release major-version value is empty" >&2;}
1300 { (exit 1); exit 1; }; }
1303 if test -n "$NCURSES_MINOR" ; then
1304 case $NCURSES_MINOR in
1308 { { echo "$as_me:1308: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1309 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1310 { (exit 1); exit 1; }; }
1314 { { echo "$as_me:1314: error: Release minor-version value is empty" >&5
1315 echo "$as_me: error: Release minor-version value is empty" >&2;}
1316 { (exit 1); exit 1; }; }
1319 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1321 # Check whether --with-abi-version or --without-abi-version was given.
1322 if test "${with_abi_version+set}" = set; then
1323 withval="$with_abi_version"
1325 if test "x$cf_cv_abi_version" != "x$withval"
1327 { echo "$as_me:1327: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1328 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1329 case $cf_cv_rel_version in
1331 cf_cv_rel_version=$withval.0
1334 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1338 cf_cv_abi_version=$withval
1341 if test -n "$cf_cv_abi_version" ; then
1342 case $cf_cv_abi_version in
1346 { { echo "$as_me:1346: error: ABI version is not a number: $cf_cv_abi_version" >&5
1347 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1348 { (exit 1); exit 1; }; }
1352 { { echo "$as_me:1352: error: ABI version value is empty" >&5
1353 echo "$as_me: error: ABI version value is empty" >&2;}
1354 { (exit 1); exit 1; }; }
1357 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1359 case $cf_cv_rel_version in
1361 cf_cv_rel_version=$with_abi_version.0
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:1383: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:1393: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:1397: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:1406: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:1410: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:1415: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$as_me:1422: checking host system type" >&5
1423 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1424 if test "${ac_cv_host+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_host_alias=$host_alias
1428 test -z "$ac_cv_host_alias" &&
1429 ac_cv_host_alias=$ac_cv_build_alias
1430 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_host" >&5
1437 echo "${ECHO_T}$ac_cv_host" >&6
1439 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1444 echo "$as_me:1444: checking target system type" >&5
1445 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1446 if test "${ac_cv_target+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 ac_cv_target_alias=$target_alias
1450 test "x$ac_cv_target_alias" = "x" &&
1451 ac_cv_target_alias=$ac_cv_host_alias
1452 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1453 { { echo "$as_me:1453: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:1458: result: $ac_cv_target" >&5
1459 echo "${ECHO_T}$ac_cv_target" >&6
1460 target=$ac_cv_target
1461 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465 # The aliases save the names the user supplied, while $host etc.
1466 # will get canonicalized.
1467 test -n "$target_alias" &&
1468 test "$program_prefix$program_suffix$program_transform_name" = \
1470 program_prefix=${target_alias}-
1471 system_name="$host_os"
1473 system_name="`(uname -s -r) 2>/dev/null`"
1474 if test -z "$system_name" ; then
1475 system_name="`(hostname) 2>/dev/null`"
1478 test -n "$system_name" &&
1479 cat >>confdefs.h <<EOF
1480 #define SYSTEM_NAME "$system_name"
1483 if test "${cf_cv_system_name+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 cf_cv_system_name="$system_name"
1489 test -z "$system_name" && system_name="$cf_cv_system_name"
1490 test -n "$cf_cv_system_name" && echo "$as_me:1490: result: Configuring for $cf_cv_system_name" >&5
1491 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1493 if test ".$system_name" != ".$cf_cv_system_name" ; then
1494 echo "$as_me:1494: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1495 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1496 { { echo "$as_me:1496: error: \"Please remove config.cache and try again.\"" >&5
1497 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1498 { (exit 1); exit 1; }; }
1501 # Check whether --with-system-type or --without-system-type was given.
1502 if test "${with_system_type+set}" = set; then
1503 withval="$with_system_type"
1504 { echo "$as_me:1504: WARNING: overriding system type to $withval" >&5
1505 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1506 cf_cv_system_name=$withval
1511 ### Save the given $CFLAGS to allow user-override.
1512 cf_user_CFLAGS="$CFLAGS"
1514 ### Default install-location
1516 echo "$as_me:1516: checking for prefix" >&5
1517 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1518 if test "x$prefix" = "xNONE" ; then
1519 case "$cf_cv_system_name" in
1520 # non-vendor systems don't have a conflict
1521 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1524 (*) prefix=$ac_default_prefix
1528 echo "$as_me:1528: result: $prefix" >&5
1529 echo "${ECHO_T}$prefix" >&6
1531 if test "x$prefix" = "xNONE" ; then
1532 echo "$as_me:1532: checking for default include-directory" >&5
1533 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1534 test -n "$verbose" && echo 1>&6
1537 $includedir/ncurses \
1539 $prefix/include/ncurses \
1540 /usr/local/include \
1541 /usr/local/include/ncurses \
1543 /usr/include/ncurses
1545 cf_dir=`eval echo $cf_symbol`
1546 if test -f $cf_dir/curses.h ; then
1547 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1548 includedir="$cf_symbol"
1549 test -n "$verbose" && echo $ac_n " found " 1>&6
1553 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1555 echo "$as_me:1555: result: $includedir" >&5
1556 echo "${ECHO_T}$includedir" >&6
1559 ### Defaults for ncurses ABI
1561 case x$cf_cv_abi_version in
1563 cf_dft_ext_colors=yes
1564 cf_dft_ext_const=yes
1565 cf_dft_ext_mouse=yes
1566 cf_dft_ext_putwin=yes
1567 cf_dft_ext_spfuncs=yes
1568 cf_dft_filter_syms=yes
1569 cf_dft_chtype=uint32_t
1570 cf_dft_mmask_t=uint32_t
1572 cf_dft_tparm_arg=intptr_t
1573 cf_dft_with_lp64=yes
1576 cf_dft_ext_colors=no
1579 cf_dft_ext_putwin=no
1580 cf_dft_ext_spfuncs=no
1581 cf_dft_filter_syms=no
1585 cf_dft_tparm_arg=long
1590 ### Checks for programs.
1592 # Check whether --with-ada or --without-ada was given.
1593 if test "${with_ada+set}" = set; then
1595 cf_with_ada=$withval
1600 if test "x$cf_with_ada" = xyes
1602 cf_prog_cc="gnatgcc gcc cc"
1608 ac_cpp='$CPP $CPPFLAGS'
1609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1612 ac_main_return=return
1613 if test -n "$ac_tool_prefix"; then
1614 for ac_prog in $cf_prog_cc
1616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1618 echo "$as_me:1618: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 ac_save_IFS=$IFS; IFS=$ac_path_separator
1628 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 $as_executable_p "$ac_dir/$ac_word" || continue
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1640 if test -n "$CC"; then
1641 echo "$as_me:1641: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:1644: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1648 test -n "$CC" && break
1651 if test -z "$CC"; then
1653 for ac_prog in $cf_prog_cc
1655 # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:1657: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$ac_ct_CC"; then
1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 ac_save_IFS=$IFS; IFS=$ac_path_separator
1667 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 $as_executable_p "$ac_dir/$ac_word" || continue
1671 ac_cv_prog_ac_ct_CC="$ac_prog"
1672 echo "$as_me:1672: found $ac_dir/$ac_word" >&5
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:1680: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1683 echo "$as_me:1683: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$ac_ct_CC" && break
1693 test -z "$CC" && { { echo "$as_me:1693: error: no acceptable cc found in \$PATH" >&5
1694 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1695 { (exit 1); exit 1; }; }
1697 # Provide some information about the compiler.
1698 echo "$as_me:1698:" \
1699 "checking for C compiler version" >&5
1700 ac_compiler=`set X $ac_compile; echo $2`
1701 { (eval echo "$as_me:1701: \"$ac_compiler --version </dev/null >&5\"") >&5
1702 (eval $ac_compiler --version </dev/null >&5) 2>&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706 { (eval echo "$as_me:1706: \"$ac_compiler -v </dev/null >&5\"") >&5
1707 (eval $ac_compiler -v </dev/null >&5) 2>&5
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1711 { (eval echo "$as_me:1711: \"$ac_compiler -V </dev/null >&5\"") >&5
1712 (eval $ac_compiler -V </dev/null >&5) 2>&5
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line 1718 "configure"
1719 #include "confdefs.h"
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1734 echo "$as_me:1734: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:1737: \"$ac_link_default\"") >&5
1738 (eval $ac_link_default) 2>&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1746 ls a.out conftest 2>/dev/null;
1747 ls a.* conftest.* 2>/dev/null`; do
1749 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1750 a.out ) # We found the default executable, but exeext='' is most
1753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1761 echo "$as_me: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1763 { { echo "$as_me:1763: error: C compiler cannot create executables" >&5
1764 echo "$as_me: error: C compiler cannot create executables" >&2;}
1765 { (exit 77); exit 77; }; }
1768 ac_exeext=$ac_cv_exeext
1769 echo "$as_me:1769: result: $ac_file" >&5
1770 echo "${ECHO_T}$ac_file" >&6
1772 # Check the compiler produces executables we can run. If not, either
1773 # the compiler is broken, or we cross compile.
1774 echo "$as_me:1774: checking whether the C compiler works" >&5
1775 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1776 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1777 # If not cross compiling, check that we can run a simple program.
1778 if test "$cross_compiling" != yes; then
1779 if { ac_try='./$ac_file'
1780 { (eval echo "$as_me:1780: \"$ac_try\"") >&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1787 if test "$cross_compiling" = maybe; then
1790 { { echo "$as_me:1790: error: cannot run C compiled programs.
1791 If you meant to cross compile, use \`--host'." >&5
1792 echo "$as_me: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&2;}
1794 { (exit 1); exit 1; }; }
1798 echo "$as_me:1798: result: yes" >&5
1799 echo "${ECHO_T}yes" >&6
1801 rm -f a.out a.exe conftest$ac_cv_exeext
1802 ac_clean_files=$ac_clean_files_save
1803 # Check the compiler produces executables we can run. If not, either
1804 # the compiler is broken, or we cross compile.
1805 echo "$as_me:1805: checking whether we are cross compiling" >&5
1806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1807 echo "$as_me:1807: result: $cross_compiling" >&5
1808 echo "${ECHO_T}$cross_compiling" >&6
1810 echo "$as_me:1810: checking for executable suffix" >&5
1811 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1812 if { (eval echo "$as_me:1812: \"$ac_link\"") >&5
1813 (eval $ac_link) 2>&5
1815 echo "$as_me:1815: \$? = $ac_status" >&5
1816 (exit $ac_status); }; then
1817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1818 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1819 # work properly (i.e., refer to `conftest.exe'), while it won't with
1821 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1823 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1824 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1831 { { echo "$as_me:1831: error: cannot compute EXEEXT: cannot compile and link" >&5
1832 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1833 { (exit 1); exit 1; }; }
1836 rm -f conftest$ac_cv_exeext
1837 echo "$as_me:1837: result: $ac_cv_exeext" >&5
1838 echo "${ECHO_T}$ac_cv_exeext" >&6
1840 rm -f conftest.$ac_ext
1841 EXEEXT=$ac_cv_exeext
1843 echo "$as_me:1843: checking for object suffix" >&5
1844 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1845 if test "${ac_cv_objext+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 cat >conftest.$ac_ext <<_ACEOF
1849 #line 1849 "configure"
1850 #include "confdefs.h"
1860 rm -f conftest.o conftest.obj
1861 if { (eval echo "$as_me:1861: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); }; then
1866 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1868 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1869 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1874 echo "$as_me: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 { { echo "$as_me:1876: error: cannot compute OBJEXT: cannot compile" >&5
1877 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1878 { (exit 1); exit 1; }; }
1881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1883 echo "$as_me:1883: result: $ac_cv_objext" >&5
1884 echo "${ECHO_T}$ac_cv_objext" >&6
1885 OBJEXT=$ac_cv_objext
1887 echo "$as_me:1887: checking whether we are using the GNU C compiler" >&5
1888 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1889 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 cat >conftest.$ac_ext <<_ACEOF
1893 #line 1893 "configure"
1894 #include "confdefs.h"
1907 rm -f conftest.$ac_objext
1908 if { (eval echo "$as_me:1908: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>&5
1911 echo "$as_me:1911: \$? = $ac_status" >&5
1912 (exit $ac_status); } &&
1913 { ac_try='test -s conftest.$ac_objext'
1914 { (eval echo "$as_me:1914: \"$ac_try\"") >&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); }; }; then
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1925 rm -f conftest.$ac_objext conftest.$ac_ext
1926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1929 echo "$as_me:1929: result: $ac_cv_c_compiler_gnu" >&5
1930 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1931 GCC=`test $ac_compiler_gnu = yes && echo yes`
1932 ac_test_CFLAGS=${CFLAGS+set}
1933 ac_save_CFLAGS=$CFLAGS
1935 echo "$as_me:1935: checking whether $CC accepts -g" >&5
1936 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1937 if test "${ac_cv_prog_cc_g+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 cat >conftest.$ac_ext <<_ACEOF
1941 #line 1941 "configure"
1942 #include "confdefs.h"
1952 rm -f conftest.$ac_objext
1953 if { (eval echo "$as_me:1953: \"$ac_compile\"") >&5
1954 (eval $ac_compile) 2>&5
1956 echo "$as_me:1956: \$? = $ac_status" >&5
1957 (exit $ac_status); } &&
1958 { ac_try='test -s conftest.$ac_objext'
1959 { (eval echo "$as_me:1959: \"$ac_try\"") >&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1966 echo "$as_me: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1970 rm -f conftest.$ac_objext conftest.$ac_ext
1972 echo "$as_me:1972: result: $ac_cv_prog_cc_g" >&5
1973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1974 if test "$ac_test_CFLAGS" = set; then
1975 CFLAGS=$ac_save_CFLAGS
1976 elif test $ac_cv_prog_cc_g = yes; then
1977 if test "$GCC" = yes; then
1983 if test "$GCC" = yes; then
1989 # Some people use a C++ compiler to compile C. Since we use `exit',
1990 # in C++ we need to declare it. In case someone uses the same compiler
1991 # for both compiling C and C++ we need to have the C++ compiler decide
1992 # the declaration of exit, since it's the most demanding environment.
1993 cat >conftest.$ac_ext <<_ACEOF
1998 rm -f conftest.$ac_objext
1999 if { (eval echo "$as_me:1999: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>&5
2002 echo "$as_me:2002: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:2005: \"$ac_try\"") >&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 for ac_declaration in \
2012 '#include <stdlib.h>' \
2013 'extern "C" void std::exit (int) throw (); using std::exit;' \
2014 'extern "C" void std::exit (int); using std::exit;' \
2015 'extern "C" void exit (int) throw ();' \
2016 'extern "C" void exit (int);' \
2019 cat >conftest.$ac_ext <<_ACEOF
2020 #line 2020 "configure"
2021 #include "confdefs.h"
2032 rm -f conftest.$ac_objext
2033 if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>&5
2036 echo "$as_me:2036: \$? = $ac_status" >&5
2037 (exit $ac_status); } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:2039: \"$ac_try\"") >&5
2042 echo "$as_me:2042: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2046 echo "$as_me: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 cat >conftest.$ac_ext <<_ACEOF
2052 #line 2052 "configure"
2053 #include "confdefs.h"
2063 rm -f conftest.$ac_objext
2064 if { (eval echo "$as_me:2064: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>&5
2067 echo "$as_me:2067: \$? = $ac_status" >&5
2068 (exit $ac_status); } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:2070: \"$ac_try\"") >&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2083 if test -n "$ac_declaration"; then
2084 echo '#ifdef __cplusplus' >>confdefs.h
2085 echo $ac_declaration >>confdefs.h
2086 echo '#endif' >>confdefs.h
2090 echo "$as_me: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2095 ac_cpp='$CPP $CPPFLAGS'
2096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099 ac_main_return=return
2102 if test "$GCC" = yes ; then
2103 echo "$as_me:2103: checking version of $CC" >&5
2104 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2105 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.].*//'`"
2106 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2107 echo "$as_me:2107: result: $GCC_VERSION" >&5
2108 echo "${ECHO_T}$GCC_VERSION" >&6
2111 echo "$as_me:2111: checking for $CC option to accept ANSI C" >&5
2112 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2113 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 ac_cv_prog_cc_stdc=no
2118 cat >conftest.$ac_ext <<_ACEOF
2119 #line 2119 "configure"
2120 #include "confdefs.h"
2123 #include <sys/types.h>
2124 #include <sys/stat.h>
2125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2126 struct buf { int x; };
2127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2128 static char *e (p, i)
2134 static char *f (char * (*g) (char **, int), char **p, ...)
2139 s = g (p, va_arg (v,int));
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:2168: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:2174: \"$ac_try\"") >&5
2177 echo "$as_me:2177: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_stdc=$ac_arg
2182 echo "$as_me: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2185 rm -f conftest.$ac_objext
2187 rm -f conftest.$ac_ext conftest.$ac_objext
2192 case "x$ac_cv_prog_cc_stdc" in
2194 echo "$as_me:2194: result: none needed" >&5
2195 echo "${ECHO_T}none needed" >&6 ;;
2197 echo "$as_me:2197: result: $ac_cv_prog_cc_stdc" >&5
2198 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2199 CC="$CC $ac_cv_prog_cc_stdc" ;;
2202 # This should have been defined by AC_PROG_CC
2205 echo "$as_me:2205: checking \$CFLAGS variable" >&5
2206 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2209 echo "$as_me:2209: result: broken" >&5
2210 echo "${ECHO_T}broken" >&6
2211 { echo "$as_me:2211: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2212 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2215 for cf_arg in $cf_flags
2221 cf_new_extra_cppflags=
2223 for cf_add_cflags in $cf_arg
2225 case $cf_fix_cppflags in
2227 case $cf_add_cflags in
2228 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2229 case $cf_add_cflags in
2231 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2233 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2234 && test -z "${cf_tst_cflags}" \
2235 && cf_fix_cppflags=yes
2237 if test $cf_fix_cppflags = yes ; then
2239 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2240 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2243 elif test "${cf_tst_cflags}" = "\"'" ; then
2245 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2246 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2256 case $cf_add_cflags in
2258 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2260 CPPFLAGS=`echo "$CPPFLAGS" | \
2261 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2262 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2267 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2268 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2275 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2276 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2286 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2288 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2289 && test -z "${cf_tst_cflags}" \
2290 && cf_fix_cppflags=no
2295 if test -n "$cf_new_cflags" ; then
2297 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2298 CFLAGS="${CFLAGS}$cf_new_cflags"
2302 if test -n "$cf_new_cppflags" ; then
2304 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2305 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2309 if test -n "$cf_new_extra_cppflags" ; then
2311 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2312 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2319 echo "$as_me:2319: result: ok" >&5
2320 echo "${ECHO_T}ok" >&6
2324 echo "$as_me:2324: checking \$CC variable" >&5
2325 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2328 echo "$as_me:2328: result: broken" >&5
2329 echo "${ECHO_T}broken" >&6
2330 { echo "$as_me:2330: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2331 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2333 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2334 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2336 for cf_arg in $cf_flags
2344 cf_new_extra_cppflags=
2346 for cf_add_cflags in $cf_arg
2348 case $cf_fix_cppflags in
2350 case $cf_add_cflags in
2351 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2352 case $cf_add_cflags in
2354 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2356 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2357 && test -z "${cf_tst_cflags}" \
2358 && cf_fix_cppflags=yes
2360 if test $cf_fix_cppflags = yes ; then
2362 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2363 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2366 elif test "${cf_tst_cflags}" = "\"'" ; then
2368 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2369 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2379 case $cf_add_cflags in
2381 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2383 CPPFLAGS=`echo "$CPPFLAGS" | \
2384 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2385 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2390 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2391 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2398 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2399 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2406 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2407 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2409 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2411 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2412 && test -z "${cf_tst_cflags}" \
2413 && cf_fix_cppflags=no
2418 if test -n "$cf_new_cflags" ; then
2420 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2421 CFLAGS="${CFLAGS}$cf_new_cflags"
2425 if test -n "$cf_new_cppflags" ; then
2427 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2428 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2432 if test -n "$cf_new_extra_cppflags" ; then
2434 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2435 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2445 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2447 echo "${as_me:-configure}:2447: testing resulting CC: '$CC' ..." 1>&5
2449 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2451 echo "${as_me:-configure}:2451: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2453 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2455 echo "${as_me:-configure}:2455: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2459 echo "$as_me:2459: result: ok" >&5
2460 echo "${ECHO_T}ok" >&6
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 ac_main_return=return
2470 echo "$as_me:2470: checking how to run the C preprocessor" >&5
2471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2472 # On Suns, sometimes $CPP names a directory.
2473 if test -n "$CPP" && test -d "$CPP"; then
2476 if test -z "$CPP"; then
2477 if test "${ac_cv_prog_CPP+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 # Double quotes because CPP needs to be expanded
2481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2484 for ac_c_preproc_warn_flag in '' yes
2486 # Use a header file that comes with gcc, so configuring glibc
2487 # with a fresh cross-compiler works.
2488 # On the NeXT, cc -E runs the code through the compiler's parser,
2489 # not just through cpp. "Syntax error" is here to catch this case.
2490 cat >conftest.$ac_ext <<_ACEOF
2491 #line 2491 "configure"
2492 #include "confdefs.h"
2496 if { (eval echo "$as_me:2496: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 egrep -v '^ *\+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:2502: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2512 if test -z "$ac_cpp_err"; then
2515 echo "$as_me: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 # Broken: fails on valid input.
2520 rm -f conftest.err conftest.$ac_ext
2522 # OK, works on sane cases. Now check whether non-existent headers
2523 # can be detected and how.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line 2525 "configure"
2526 #include "confdefs.h"
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:2529: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532 egrep -v '^ *\+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:2535: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2545 if test -z "$ac_cpp_err"; then
2546 # Broken: success on invalid input.
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Passes both tests.
2555 rm -f conftest.err conftest.$ac_ext
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.$ac_ext
2560 if $ac_preproc_ok; then
2572 echo "$as_me:2572: result: $CPP" >&5
2573 echo "${ECHO_T}$CPP" >&6
2575 for ac_c_preproc_warn_flag in '' yes
2577 # Use a header file that comes with gcc, so configuring glibc
2578 # with a fresh cross-compiler works.
2579 # On the NeXT, cc -E runs the code through the compiler's parser,
2580 # not just through cpp. "Syntax error" is here to catch this case.
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line 2582 "configure"
2583 #include "confdefs.h"
2587 if { (eval echo "$as_me:2587: \"$ac_cpp conftest.$ac_ext\"") >&5
2588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2590 egrep -v '^ *\+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:2593: \$? = $ac_status" >&5
2594 (exit $ac_status); } >/dev/null; then
2595 if test -s conftest.err; then
2596 ac_cpp_err=$ac_c_preproc_warn_flag
2603 if test -z "$ac_cpp_err"; then
2606 echo "$as_me: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 # Broken: fails on valid input.
2611 rm -f conftest.err conftest.$ac_ext
2613 # OK, works on sane cases. Now check whether non-existent headers
2614 # can be detected and how.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line 2616 "configure"
2617 #include "confdefs.h"
2618 #include <ac_nonexistent.h>
2620 if { (eval echo "$as_me:2620: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2623 egrep -v '^ *\+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:2626: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev/null; then
2628 if test -s conftest.err; then
2629 ac_cpp_err=$ac_c_preproc_warn_flag
2636 if test -z "$ac_cpp_err"; then
2637 # Broken: success on invalid input.
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Passes both tests.
2646 rm -f conftest.err conftest.$ac_ext
2649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2650 rm -f conftest.err conftest.$ac_ext
2651 if $ac_preproc_ok; then
2654 { { echo "$as_me:2654: error: C preprocessor \"$CPP\" fails sanity check" >&5
2655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2656 { (exit 1); exit 1; }; }
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 ac_main_return=return
2666 if test $ac_cv_c_compiler_gnu = yes; then
2667 echo "$as_me:2667: checking whether $CC needs -traditional" >&5
2668 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2669 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 ac_pattern="Autoconf.*'x'"
2673 cat >conftest.$ac_ext <<_ACEOF
2674 #line 2674 "configure"
2675 #include "confdefs.h"
2677 int Autoconf = TIOCGETP;
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "$ac_pattern" >/dev/null 2>&1; then
2681 ac_cv_prog_gcc_traditional=yes
2683 ac_cv_prog_gcc_traditional=no
2687 if test $ac_cv_prog_gcc_traditional = no; then
2688 cat >conftest.$ac_ext <<_ACEOF
2689 #line 2689 "configure"
2690 #include "confdefs.h"
2692 int Autoconf = TCGETA;
2694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2695 egrep "$ac_pattern" >/dev/null 2>&1; then
2696 ac_cv_prog_gcc_traditional=yes
2702 echo "$as_me:2702: result: $ac_cv_prog_gcc_traditional" >&5
2703 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2704 if test $ac_cv_prog_gcc_traditional = yes; then
2705 CC="$CC -traditional"
2709 echo "$as_me:2709: checking whether $CC understands -c and -o together" >&5
2710 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2711 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 cat > conftest.$ac_ext <<CF_EOF
2718 ${cf_cv_main_return:-return}(0);
2721 # We do the test twice because some compilers refuse to overwrite an
2722 # existing .o file with -o, though they will create one.
2723 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2724 if { (eval echo "$as_me:2724: \"$ac_try\"") >&5
2727 echo "$as_me:2727: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 test -f conftest2.$ac_objext && { (eval echo "$as_me:2729: \"$ac_try\"") >&5
2732 echo "$as_me:2732: \$? = $ac_status" >&5
2733 (exit $ac_status); };
2735 eval cf_cv_prog_CC_c_o=yes
2737 eval cf_cv_prog_CC_c_o=no
2742 if test $cf_cv_prog_CC_c_o = yes; then
2743 echo "$as_me:2743: result: yes" >&5
2744 echo "${ECHO_T}yes" >&6
2746 echo "$as_me:2746: result: no" >&5
2747 echo "${ECHO_T}no" >&6
2750 if test "$cross_compiling" = yes ; then
2753 case "$cf_cv_system_name" in
2754 (dragonfly*|mirbsd*|freebsd*)
2755 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2757 (*) LDPATH=$PATH:/sbin:/usr/sbin
2758 # Extract the first word of "ldconfig", so it can be a program name with args.
2759 set dummy ldconfig; ac_word=$2
2760 echo "$as_me:2760: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2770 ac_save_IFS=$IFS; IFS=$ac_path_separator
2772 for ac_dir in $ac_dummy; do
2774 test -z "$ac_dir" && ac_dir=.
2775 if $as_executable_p "$ac_dir/$ac_word"; then
2776 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2777 echo "$as_me:2777: found $ac_dir/$ac_word" >&5
2785 LDCONFIG=$ac_cv_path_LDCONFIG
2787 if test -n "$LDCONFIG"; then
2788 echo "$as_me:2788: result: $LDCONFIG" >&5
2789 echo "${ECHO_T}$LDCONFIG" >&6
2791 echo "$as_me:2791: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2799 echo "$as_me:2799: checking if you want to ensure bool is consistent with C++" >&5
2800 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2802 # Check whether --with-cxx or --without-cxx was given.
2803 if test "${with_cxx+set}" = set; then
2805 cf_with_cxx=$withval
2809 echo "$as_me:2809: result: $cf_with_cxx" >&5
2810 echo "${ECHO_T}$cf_with_cxx" >&6
2811 if test "X$cf_with_cxx" = Xno ; then
2815 # with autoconf 2.13, we can change the error to a warning:
2817 ac_cpp='$CXXCPP $CPPFLAGS'
2818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2821 ac_main_return=return
2822 if test -n "$ac_tool_prefix"; then
2823 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827 echo "$as_me:2827: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_prog_CXX+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 if test -n "$CXX"; then
2833 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2835 ac_save_IFS=$IFS; IFS=$ac_path_separator
2837 for ac_dir in $ac_dummy; do
2839 test -z "$ac_dir" && ac_dir=.
2840 $as_executable_p "$ac_dir/$ac_word" || continue
2841 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2842 echo "$as_me:2842: found $ac_dir/$ac_word" >&5
2849 if test -n "$CXX"; then
2850 echo "$as_me:2850: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2853 echo "$as_me:2853: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2860 if test -z "$CXX"; then
2862 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 echo "$as_me:2866: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 if test -n "$ac_ct_CXX"; then
2872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2874 ac_save_IFS=$IFS; IFS=$ac_path_separator
2876 for ac_dir in $ac_dummy; do
2878 test -z "$ac_dir" && ac_dir=.
2879 $as_executable_p "$ac_dir/$ac_word" || continue
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 echo "$as_me:2881: found $ac_dir/$ac_word" >&5
2887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2888 if test -n "$ac_ct_CXX"; then
2889 echo "$as_me:2889: result: $ac_ct_CXX" >&5
2890 echo "${ECHO_T}$ac_ct_CXX" >&6
2892 echo "$as_me:2892: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2896 test -n "$ac_ct_CXX" && break
2898 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2903 # Provide some information about the compiler.
2904 echo "$as_me:2904:" \
2905 "checking for C++ compiler version" >&5
2906 ac_compiler=`set X $ac_compile; echo $2`
2907 { (eval echo "$as_me:2907: \"$ac_compiler --version </dev/null >&5\"") >&5
2908 (eval $ac_compiler --version </dev/null >&5) 2>&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (eval echo "$as_me:2912: \"$ac_compiler -v </dev/null >&5\"") >&5
2913 (eval $ac_compiler -v </dev/null >&5) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2917 { (eval echo "$as_me:2917: \"$ac_compiler -V </dev/null >&5\"") >&5
2918 (eval $ac_compiler -V </dev/null >&5) 2>&5
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 echo "$as_me:2923: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line 2929 "configure"
2930 #include "confdefs.h"
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:2950: \"$ac_try\"") >&5
2953 echo "$as_me:2953: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2962 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2965 echo "$as_me:2965: result: $ac_cv_cxx_compiler_gnu" >&5
2966 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2967 GXX=`test $ac_compiler_gnu = yes && echo yes`
2968 ac_test_CXXFLAGS=${CXXFLAGS+set}
2969 ac_save_CXXFLAGS=$CXXFLAGS
2971 echo "$as_me:2971: checking whether $CXX accepts -g" >&5
2972 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2973 if test "${ac_cv_prog_cxx_g+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line 2977 "configure"
2978 #include "confdefs.h"
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_prog_cxx_g=yes
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3008 echo "$as_me:3008: result: $ac_cv_prog_cxx_g" >&5
3009 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3010 if test "$ac_test_CXXFLAGS" = set; then
3011 CXXFLAGS=$ac_save_CXXFLAGS
3012 elif test $ac_cv_prog_cxx_g = yes; then
3013 if test "$GXX" = yes; then
3019 if test "$GXX" = yes; then
3025 for ac_declaration in \
3027 '#include <stdlib.h>' \
3028 'extern "C" void std::exit (int) throw (); using std::exit;' \
3029 'extern "C" void std::exit (int); using std::exit;' \
3030 'extern "C" void exit (int) throw ();' \
3031 'extern "C" void exit (int);' \
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line 3035 "configure"
3036 #include "confdefs.h"
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:3048: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:3054: \"$ac_try\"") >&5
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 echo "$as_me: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3065 rm -f conftest.$ac_objext conftest.$ac_ext
3066 cat >conftest.$ac_ext <<_ACEOF
3067 #line 3067 "configure"
3068 #include "confdefs.h"
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:3079: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>&5
3082 echo "$as_me:3082: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:3085: \"$ac_try\"") >&5
3088 echo "$as_me:3088: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3092 echo "$as_me: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 rm -f conftest.$ac_objext conftest.$ac_ext
3098 if test -n "$ac_declaration"; then
3099 echo '#ifdef __cplusplus' >>confdefs.h
3100 echo $ac_declaration >>confdefs.h
3101 echo '#endif' >>confdefs.h
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_main_return=return
3112 ac_cpp='$CXXCPP $CPPFLAGS'
3113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3116 ac_main_return=return
3118 if test "x$cf_with_cxx" != xno
3120 # Several of the C++ configurations do not work, particularly when
3121 # cross-compiling (20140913 -TD)
3122 echo "$as_me:3122: checking if $CXX works" >&5
3123 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3125 save_CPPFLAGS="$CPPFLAGS"
3126 eval cf_includedir=${includedir}
3127 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #line 3130 "configure"
3131 #include "confdefs.h"
3140 printf("Hello world!\n")
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:3147: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>&5
3150 echo "$as_me:3150: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:3153: \"$ac_try\"") >&5
3156 echo "$as_me:3156: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3164 rm -f conftest.$ac_objext conftest.$ac_ext
3165 CPPFLAGS="$save_CPPFLAGS"
3167 echo "$as_me:3167: result: $cf_cxx_works" >&5
3168 echo "${ECHO_T}$cf_cxx_works" >&6
3169 if test "x$cf_cxx_works" = xno
3171 { echo "$as_me:3171: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3172 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3173 cf_with_cxx=no; CXX=""; GXX="";
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 ac_main_return=return
3183 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3184 if test "$CXX" = "g++" ; then
3185 # Extract the first word of "g++", so it can be a program name with args.
3186 set dummy g++; ac_word=$2
3187 echo "$as_me:3187: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_path_CXX+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3197 ac_save_IFS=$IFS; IFS=$ac_path_separator
3199 for ac_dir in $ac_dummy; do
3201 test -z "$ac_dir" && ac_dir=.
3202 if $as_executable_p "$ac_dir/$ac_word"; then
3203 ac_cv_path_CXX="$ac_dir/$ac_word"
3204 echo "$as_me:3204: found $ac_dir/$ac_word" >&5
3214 if test -n "$CXX"; then
3215 echo "$as_me:3215: result: $CXX" >&5
3216 echo "${ECHO_T}$CXX" >&6
3218 echo "$as_me:3218: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3225 { echo "$as_me:3225: WARNING: You don't have any C++ compiler, too bad" >&5
3226 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3227 cf_with_cxx=no; CXX=""; GXX="";
3233 if test "$GXX" = yes; then
3234 echo "$as_me:3234: checking version of ${CXX:-g++}" >&5
3235 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3236 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3237 if test -z "$GXX_VERSION"
3242 echo "$as_me:3242: result: $GXX_VERSION" >&5
3243 echo "${ECHO_T}$GXX_VERSION" >&6
3246 case $GXX_VERSION in
3248 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3250 { echo "$as_me:3250: WARNING: templates do not work" >&5
3251 echo "$as_me: WARNING: templates do not work" >&2;}
3255 echo "$as_me:3255: checking if you want to build C++ binding and demo" >&5
3256 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3258 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3259 if test "${with_cxx_binding+set}" = set; then
3260 withval="$with_cxx_binding"
3261 cf_with_cxx_binding=$withval
3263 cf_with_cxx_binding=$cf_with_cxx
3265 echo "$as_me:3265: result: $cf_with_cxx_binding" >&5
3266 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3268 echo "$as_me:3268: checking if you want to build with Ada95" >&5
3269 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3270 echo "$as_me:3270: result: $cf_with_ada" >&5
3271 echo "${ECHO_T}$cf_with_ada" >&6
3273 echo "$as_me:3273: checking if you want to install terminal database" >&5
3274 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3276 # Check whether --enable-db-install or --disable-db-install was given.
3277 if test "${enable_db_install+set}" = set; then
3278 enableval="$enable_db_install"
3279 cf_with_db_install=$enableval
3281 cf_with_db_install=yes
3283 echo "$as_me:3283: result: $cf_with_db_install" >&5
3284 echo "${ECHO_T}$cf_with_db_install" >&6
3286 echo "$as_me:3286: checking if you want to install manpages" >&5
3287 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3289 # Check whether --with-manpages or --without-manpages was given.
3290 if test "${with_manpages+set}" = set; then
3291 withval="$with_manpages"
3292 cf_with_manpages=$withval
3294 cf_with_manpages=yes
3296 echo "$as_me:3296: result: $cf_with_manpages" >&5
3297 echo "${ECHO_T}$cf_with_manpages" >&6
3299 echo "$as_me:3299: checking if you want to build programs such as tic" >&5
3300 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3302 # Check whether --with-progs or --without-progs was given.
3303 if test "${with_progs+set}" = set; then
3304 withval="$with_progs"
3305 cf_with_progs=$withval
3309 echo "$as_me:3309: result: $cf_with_progs" >&5
3310 echo "${ECHO_T}$cf_with_progs" >&6
3312 if test -f $srcdir/tack/tack.h; then
3313 if test "x$cross_compiling" = xyes ; then
3314 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3316 echo "${as_me:-configure}:3316: testing ignoring tack because we are cross-compiling ..." 1>&5
3320 echo "$as_me:3320: checking if you want to build the tack program" >&5
3321 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3323 # Check whether --with-tack or --without-tack was given.
3324 if test "${with_tack+set}" = set; then
3325 withval="$with_tack"
3326 cf_with_tack=$withval
3328 cf_with_tack=$cf_with_progs
3330 echo "$as_me:3330: result: $cf_with_tack" >&5
3331 echo "${ECHO_T}$cf_with_tack" >&6
3337 echo "$as_me:3337: checking if you want to build test-programs" >&5
3338 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3340 # Check whether --with-tests or --without-tests was given.
3341 if test "${with_tests+set}" = set; then
3342 withval="$with_tests"
3343 cf_with_tests=$withval
3347 echo "$as_me:3347: result: $cf_with_tests" >&5
3348 echo "${ECHO_T}$cf_with_tests" >&6
3350 echo "$as_me:3350: checking if you wish to install curses.h" >&5
3351 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3353 # Check whether --with-curses-h or --without-curses-h was given.
3354 if test "${with_curses_h+set}" = set; then
3355 withval="$with_curses_h"
3356 with_curses_h=$withval
3360 echo "$as_me:3360: result: $with_curses_h" >&5
3361 echo "${ECHO_T}$with_curses_h" >&6
3363 modules_to_build="ncurses"
3364 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3365 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3366 modules_to_build="$modules_to_build panel menu form"
3368 test "$program_prefix" != NONE &&
3369 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3370 # Use a double $ so make ignores it.
3371 test "$program_suffix" != NONE &&
3372 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3373 # Double any \ or $. echo might interpret backslashes.
3374 # By default was `s,x,x', remove it if useless.
3375 cat <<\_ACEOF >conftest.sed
3376 s/[\\$]/&&/g;s/;s,x,x,$//
3378 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3381 for ac_prog in mawk gawk nawk awk
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 echo "$as_me:3385: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387 if test "${ac_cv_prog_AWK+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 if test -n "$AWK"; then
3391 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3393 ac_save_IFS=$IFS; IFS=$ac_path_separator
3395 for ac_dir in $ac_dummy; do
3397 test -z "$ac_dir" && ac_dir=.
3398 $as_executable_p "$ac_dir/$ac_word" || continue
3399 ac_cv_prog_AWK="$ac_prog"
3400 echo "$as_me:3400: found $ac_dir/$ac_word" >&5
3407 if test -n "$AWK"; then
3408 echo "$as_me:3408: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3411 echo "$as_me:3411: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 test -n "$AWK" && break
3418 test -z "$AWK" && { { echo "$as_me:3418: error: No awk program found" >&5
3419 echo "$as_me: error: No awk program found" >&2;}
3420 { (exit 1); exit 1; }; }
3422 echo "$as_me:3422: checking for egrep" >&5
3423 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3424 if test "${ac_cv_prog_egrep+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3428 then ac_cv_prog_egrep='grep -E'
3429 else ac_cv_prog_egrep='egrep'
3432 echo "$as_me:3432: result: $ac_cv_prog_egrep" >&5
3433 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3434 EGREP=$ac_cv_prog_egrep
3436 test -z "$EGREP" && { { echo "$as_me:3436: error: No egrep program found" >&5
3437 echo "$as_me: error: No egrep program found" >&2;}
3438 { (exit 1); exit 1; }; }
3440 # Find a good install program. We prefer a C program (faster),
3441 # so one script is as good as another. But avoid the broken or
3442 # incompatible versions:
3443 # SysV /etc/install, /usr/sbin/install
3444 # SunOS /usr/etc/install
3445 # IRIX /sbin/install
3447 # AmigaOS /C/install, which installs bootblocks on floppy discs
3448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3451 # ./install, which can be erroneously created by make from ./install.sh.
3452 echo "$as_me:3452: checking for a BSD compatible install" >&5
3453 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3454 if test -z "$INSTALL"; then
3455 if test "${ac_cv_path_install+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_save_IFS=$IFS; IFS=$ac_path_separator
3459 for ac_dir in $PATH; do
3461 # Account for people who put trailing slashes in PATH elements.
3463 / | ./ | .// | /cC/* \
3464 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3467 # OSF1 and SCO ODT 3.0 have their own names for install.
3468 # Don't use installbsd from OSF since it installs stuff as root
3470 for ac_prog in ginstall scoinst install; do
3471 if $as_executable_p "$ac_dir/$ac_prog"; then
3472 if test $ac_prog = install &&
3473 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3474 # AIX install. It has an incompatible calling convention.
3476 elif test $ac_prog = install &&
3477 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3478 # program-specific install script used by HP pwplus--don't use.
3481 ac_cv_path_install="$ac_dir/$ac_prog -c"
3491 if test "${ac_cv_path_install+set}" = set; then
3492 INSTALL=$ac_cv_path_install
3494 # As a last resort, use the slow shell script. We don't cache a
3495 # path for INSTALL within a source directory, because that will
3496 # break other packages using the cache if that directory is
3497 # removed, or if the path is relative.
3498 INSTALL=$ac_install_sh
3501 echo "$as_me:3501: result: $INSTALL" >&5
3502 echo "${ECHO_T}$INSTALL" >&6
3504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3505 # It thinks the first close brace ends the variable substitution.
3506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3516 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3517 test -z "$cf_dir" && cf_dir=.
3518 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3522 for ac_prog in lint cppcheck splint
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 echo "$as_me:3526: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_LINT+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 if test -n "$LINT"; then
3532 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3534 ac_save_IFS=$IFS; IFS=$ac_path_separator
3536 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 $as_executable_p "$ac_dir/$ac_word" || continue
3540 ac_cv_prog_LINT="$ac_prog"
3541 echo "$as_me:3541: found $ac_dir/$ac_word" >&5
3547 LINT=$ac_cv_prog_LINT
3548 if test -n "$LINT"; then
3549 echo "$as_me:3549: result: $LINT" >&5
3550 echo "${ECHO_T}$LINT" >&6
3552 echo "$as_me:3552: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3556 test -n "$LINT" && break
3559 echo "$as_me:3559: checking whether ln -s works" >&5
3560 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3562 if test "$LN_S" = "ln -s"; then
3563 echo "$as_me:3563: result: yes" >&5
3564 echo "${ECHO_T}yes" >&6
3566 echo "$as_me:3566: result: no, using $LN_S" >&5
3567 echo "${ECHO_T}no, using $LN_S" >&6
3570 echo "$as_me:3570: checking if $LN_S -f options work" >&5
3571 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3573 rm -f conf$$.src conf$$dst
3575 echo first >conf$$.src
3576 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3581 rm -f conf$$.dst conf$$src
3582 echo "$as_me:3582: result: $cf_prog_ln_sf" >&5
3583 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3585 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3587 echo "$as_me:3587: checking for long file names" >&5
3588 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3589 if test "${ac_cv_sys_long_file_names+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_cv_sys_long_file_names=yes
3593 # Test for long file names in all the places we know might matter:
3594 # . the current directory, where building will happen
3595 # $prefix/lib where we will be installing things
3596 # $exec_prefix/lib likewise
3597 # eval it to expand exec_prefix.
3598 # $TMPDIR if set, where it might want to write temporary files
3599 # if $TMPDIR is not set:
3600 # /tmp where it might want to write temporary files
3603 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3606 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3608 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3609 test -d $ac_dir || continue
3610 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3611 ac_xdir=$ac_dir/cf$$
3612 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3613 ac_tf1=$ac_xdir/conftest9012345
3614 ac_tf2=$ac_xdir/conftest9012346
3615 (echo 1 >$ac_tf1) 2>/dev/null
3616 (echo 2 >$ac_tf2) 2>/dev/null
3617 ac_val=`cat $ac_tf1 2>/dev/null`
3618 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3619 ac_cv_sys_long_file_names=no
3620 rm -rf $ac_xdir 2>/dev/null
3623 rm -rf $ac_xdir 2>/dev/null
3626 echo "$as_me:3626: result: $ac_cv_sys_long_file_names" >&5
3627 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3628 if test $ac_cv_sys_long_file_names = yes; then
3630 cat >>confdefs.h <<\EOF
3631 #define HAVE_LONG_FILE_NAMES 1
3636 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3637 # of package conflict.
3640 # Check whether --with-config-suffix or --without-config-suffix was given.
3641 if test "${with_config_suffix+set}" = set; then
3642 withval="$with_config_suffix"
3645 { echo "$as_me:3645: WARNING: expected a value for config-suffix option" >&5
3646 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3648 (*) cf_config_suffix="$withval"
3653 # If we find pkg-config, check if we should install the ".pc" files.
3655 echo "$as_me:3655: checking if you want to use pkg-config" >&5
3656 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3658 # Check whether --with-pkg-config or --without-pkg-config was given.
3659 if test "${with_pkg_config+set}" = set; then
3660 withval="$with_pkg_config"
3661 cf_pkg_config=$withval
3665 echo "$as_me:3665: result: $cf_pkg_config" >&5
3666 echo "${ECHO_T}$cf_pkg_config" >&6
3668 case $cf_pkg_config in
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3677 echo "$as_me:3677: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3687 ac_save_IFS=$IFS; IFS=$ac_path_separator
3689 for ac_dir in $ac_dummy; do
3691 test -z "$ac_dir" && ac_dir=.
3692 if $as_executable_p "$ac_dir/$ac_word"; then
3693 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3694 echo "$as_me:3694: found $ac_dir/$ac_word" >&5
3702 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3704 if test -n "$PKG_CONFIG"; then
3705 echo "$as_me:3705: result: $PKG_CONFIG" >&5
3706 echo "${ECHO_T}$PKG_CONFIG" >&6
3708 echo "$as_me:3708: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3713 if test -z "$ac_cv_path_PKG_CONFIG"; then
3714 ac_pt_PKG_CONFIG=$PKG_CONFIG
3715 # Extract the first word of "pkg-config", so it can be a program name with args.
3716 set dummy pkg-config; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 case $ac_pt_PKG_CONFIG in
3724 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3727 ac_save_IFS=$IFS; IFS=$ac_path_separator
3729 for ac_dir in $ac_dummy; do
3731 test -z "$ac_dir" && ac_dir=.
3732 if $as_executable_p "$ac_dir/$ac_word"; then
3733 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3734 echo "$as_me:3734: found $ac_dir/$ac_word" >&5
3739 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3743 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3745 if test -n "$ac_pt_PKG_CONFIG"; then
3746 echo "$as_me:3746: result: $ac_pt_PKG_CONFIG" >&5
3747 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3749 echo "$as_me:3749: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3753 PKG_CONFIG=$ac_pt_PKG_CONFIG
3755 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3764 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3765 if test "$PKG_CONFIG" != none ; then
3767 if test "x$prefix" != xNONE; then
3768 cf_path_syntax="$prefix"
3770 cf_path_syntax="$ac_default_prefix"
3773 case ".$PKG_CONFIG" in
3778 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3780 (.\${*prefix}*|.\${*dir}*)
3781 eval PKG_CONFIG="$PKG_CONFIG"
3782 case ".$PKG_CONFIG" in
3784 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3789 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3792 { { echo "$as_me:3792: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3793 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3794 { (exit 1); exit 1; }; }
3798 elif test "x$cf_pkg_config" != xno ; then
3799 { echo "$as_me:3799: WARNING: pkg-config is not installed" >&5
3800 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3805 echo "$as_me:3805: checking for pkg-config library directory" >&5
3806 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3809 echo "$as_me:3809: checking for $PKG_CONFIG library directory" >&5
3810 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3814 PKG_CONFIG_LIBDIR=no
3816 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3817 if test "${with_pkg_config_libdir+set}" = set; then
3818 withval="$with_pkg_config_libdir"
3819 PKG_CONFIG_LIBDIR=$withval
3821 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3824 case x$PKG_CONFIG_LIBDIR in
3828 # Look for the library directory using the same prefix as the executable
3829 if test "x$PKG_CONFIG" = xnone
3833 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3836 # If you don't like using the default architecture, you have to specify the
3837 # intended library directory and corresponding compiler/linker options.
3839 # This case allows for Debian's 2014-flavor of multiarch, along with the
3840 # most common variations before that point. Some other variants spell the
3841 # directory differently, e.g., "pkg-config", and put it in unusual places.
3842 # pkg-config has always been poorly standardized, which is ironic...
3843 case x`(arch) 2>/dev/null` in
3846 $cf_path/lib/*64-linux-gnu \
3854 $cf_path/lib/*-linux-gnu \
3862 test -n "$verbose" && echo " list..." 1>&6
3864 echo "${as_me:-configure}:3864: testing list... ..." 1>&5
3866 for cf_config in $cf_search_path
3868 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3870 echo "${as_me:-configure}:3870: testing checking $cf_config/pkgconfig ..." 1>&5
3872 if test -d $cf_config/pkgconfig
3874 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3875 echo "$as_me:3875: checking done" >&5
3876 echo $ECHO_N "checking done... $ECHO_C" >&6
3885 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3886 echo "$as_me:3886: result: $PKG_CONFIG_LIBDIR" >&5
3887 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3890 if test "x$PKG_CONFIG" != xnone
3892 echo "$as_me:3892: checking if we should install .pc files for $PKG_CONFIG" >&5
3893 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3895 echo "$as_me:3895: checking if we should install .pc files" >&5
3896 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3899 # Check whether --enable-pc-files or --disable-pc-files was given.
3900 if test "${enable_pc_files+set}" = set; then
3901 enableval="$enable_pc_files"
3902 enable_pc_files=$enableval
3906 echo "$as_me:3906: result: $enable_pc_files" >&5
3907 echo "${ECHO_T}$enable_pc_files" >&6
3909 if test "x$enable_pc_files" != xno
3912 case "x$PKG_CONFIG_LIBDIR" in
3914 { echo "$as_me:3914: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3915 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3919 if test "x$prefix" != xNONE; then
3920 cf_path_syntax="$prefix"
3922 cf_path_syntax="$ac_default_prefix"
3925 case ".$PKG_CONFIG_LIBDIR" in
3930 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3932 (.\${*prefix}*|.\${*dir}*)
3933 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3934 case ".$PKG_CONFIG_LIBDIR" in
3936 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3941 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3944 { { echo "$as_me:3944: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3945 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3946 { (exit 1); exit 1; }; }
3956 if test -z "$MAKE_PC_FILES"
3958 echo "$as_me:3958: checking for suffix to add to pc-files" >&5
3959 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3961 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3962 if test "${with_pc_suffix+set}" = set; then
3963 withval="$with_pc_suffix"
3968 (*) PC_MODULE_SUFFIX="$withval"
3972 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3973 echo "$as_me:3973: result: $PC_MODULE_SUFFIX" >&5
3974 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3975 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3979 echo "$as_me:3979: checking if we should assume mixed-case filenames" >&5
3980 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3982 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3983 if test "${enable_mixed_case+set}" = set; then
3984 enableval="$enable_mixed_case"
3985 enable_mixedcase=$enableval
3987 enable_mixedcase=auto
3989 echo "$as_me:3989: result: $enable_mixedcase" >&5
3990 echo "${ECHO_T}$enable_mixedcase" >&6
3991 if test "$enable_mixedcase" = "auto" ; then
3993 echo "$as_me:3993: checking if filesystem supports mixed-case filenames" >&5
3994 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3995 if test "${cf_cv_mixedcase+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 if test "$cross_compiling" = yes ; then
4000 case $target_alias in
4001 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4009 rm -f conftest CONFTEST
4011 if test -f CONFTEST ; then
4016 rm -f conftest CONFTEST
4020 echo "$as_me:4020: result: $cf_cv_mixedcase" >&5
4021 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4022 test "$cf_cv_mixedcase" = yes &&
4023 cat >>confdefs.h <<\EOF
4024 #define MIXEDCASE_FILENAMES 1
4028 cf_cv_mixedcase=$enable_mixedcase
4029 if test "x$enable_mixedcase" = "xyes" ; then
4031 cat >>confdefs.h <<\EOF
4032 #define MIXEDCASE_FILENAMES 1
4038 # do this after mixed-case option (tags/TAGS is not as important as tic).
4039 echo "$as_me:4039: checking whether ${MAKE-make} sets \${MAKE}" >&5
4040 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4041 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4042 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.make <<\EOF
4047 @echo 'ac_maketemp="${MAKE}"'
4049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4050 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4051 if test -n "$ac_maketemp"; then
4052 eval ac_cv_prog_make_${ac_make}_set=yes
4054 eval ac_cv_prog_make_${ac_make}_set=no
4058 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4059 echo "$as_me:4059: result: yes" >&5
4060 echo "${ECHO_T}yes" >&6
4063 echo "$as_me:4063: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 SET_MAKE="MAKE=${MAKE-make}"
4068 for ac_prog in exctags ctags
4070 # Extract the first word of "$ac_prog", so it can be a program name with args.
4071 set dummy $ac_prog; ac_word=$2
4072 echo "$as_me:4072: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_prog_CTAGS+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 if test -n "$CTAGS"; then
4078 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4080 ac_save_IFS=$IFS; IFS=$ac_path_separator
4082 for ac_dir in $ac_dummy; do
4084 test -z "$ac_dir" && ac_dir=.
4085 $as_executable_p "$ac_dir/$ac_word" || continue
4086 ac_cv_prog_CTAGS="$ac_prog"
4087 echo "$as_me:4087: found $ac_dir/$ac_word" >&5
4093 CTAGS=$ac_cv_prog_CTAGS
4094 if test -n "$CTAGS"; then
4095 echo "$as_me:4095: result: $CTAGS" >&5
4096 echo "${ECHO_T}$CTAGS" >&6
4098 echo "$as_me:4098: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4102 test -n "$CTAGS" && break
4105 for ac_prog in exetags etags
4107 # Extract the first word of "$ac_prog", so it can be a program name with args.
4108 set dummy $ac_prog; ac_word=$2
4109 echo "$as_me:4109: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_prog_ETAGS+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$ETAGS"; then
4115 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4117 ac_save_IFS=$IFS; IFS=$ac_path_separator
4119 for ac_dir in $ac_dummy; do
4121 test -z "$ac_dir" && ac_dir=.
4122 $as_executable_p "$ac_dir/$ac_word" || continue
4123 ac_cv_prog_ETAGS="$ac_prog"
4124 echo "$as_me:4124: found $ac_dir/$ac_word" >&5
4130 ETAGS=$ac_cv_prog_ETAGS
4131 if test -n "$ETAGS"; then
4132 echo "$as_me:4132: result: $ETAGS" >&5
4133 echo "${ECHO_T}$ETAGS" >&6
4135 echo "$as_me:4135: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 test -n "$ETAGS" && break
4142 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4143 set dummy ${CTAGS:-ctags}; ac_word=$2
4144 echo "$as_me:4144: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$MAKE_LOWER_TAGS"; then
4150 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4152 ac_save_IFS=$IFS; IFS=$ac_path_separator
4154 for ac_dir in $ac_dummy; do
4156 test -z "$ac_dir" && ac_dir=.
4157 $as_executable_p "$ac_dir/$ac_word" || continue
4158 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4159 echo "$as_me:4159: found $ac_dir/$ac_word" >&5
4163 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4166 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4167 if test -n "$MAKE_LOWER_TAGS"; then
4168 echo "$as_me:4168: result: $MAKE_LOWER_TAGS" >&5
4169 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4171 echo "$as_me:4171: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4175 if test "$cf_cv_mixedcase" = yes ; then
4176 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4177 set dummy ${ETAGS:-etags}; ac_word=$2
4178 echo "$as_me:4178: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$MAKE_UPPER_TAGS"; then
4184 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4186 ac_save_IFS=$IFS; IFS=$ac_path_separator
4188 for ac_dir in $ac_dummy; do
4190 test -z "$ac_dir" && ac_dir=.
4191 $as_executable_p "$ac_dir/$ac_word" || continue
4192 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4193 echo "$as_me:4193: found $ac_dir/$ac_word" >&5
4197 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4200 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4201 if test -n "$MAKE_UPPER_TAGS"; then
4202 echo "$as_me:4202: result: $MAKE_UPPER_TAGS" >&5
4203 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4205 echo "$as_me:4205: result: no" >&5
4206 echo "${ECHO_T}no" >&6
4213 if test "$MAKE_UPPER_TAGS" = yes ; then
4219 if test "$MAKE_LOWER_TAGS" = yes ; then
4225 echo "$as_me:4225: checking for makeflags variable" >&5
4226 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4227 if test "${cf_cv_makeflags+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4234 cat >cf_makeflags.tmp <<CF_EOF
4237 @ echo '.$cf_option'
4239 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4240 case "$cf_result" in
4242 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4243 case "$cf_result" in
4244 (.*CC=*) cf_cv_makeflags=
4246 (*) cf_cv_makeflags=$cf_option
4255 echo "${as_me:-configure}:4255: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4260 rm -f cf_makeflags.tmp
4263 echo "$as_me:4263: result: $cf_cv_makeflags" >&5
4264 echo "${ECHO_T}$cf_cv_makeflags" >&6
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4269 echo "$as_me:4269: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_RANLIB+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$RANLIB"; then
4275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4277 ac_save_IFS=$IFS; IFS=$ac_path_separator
4279 for ac_dir in $ac_dummy; do
4281 test -z "$ac_dir" && ac_dir=.
4282 $as_executable_p "$ac_dir/$ac_word" || continue
4283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4284 echo "$as_me:4284: found $ac_dir/$ac_word" >&5
4290 RANLIB=$ac_cv_prog_RANLIB
4291 if test -n "$RANLIB"; then
4292 echo "$as_me:4292: result: $RANLIB" >&5
4293 echo "${ECHO_T}$RANLIB" >&6
4295 echo "$as_me:4295: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4300 if test -z "$ac_cv_prog_RANLIB"; then
4301 ac_ct_RANLIB=$RANLIB
4302 # Extract the first word of "ranlib", so it can be a program name with args.
4303 set dummy ranlib; ac_word=$2
4304 echo "$as_me:4304: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$ac_ct_RANLIB"; then
4310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4312 ac_save_IFS=$IFS; IFS=$ac_path_separator
4314 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 $as_executable_p "$ac_dir/$ac_word" || continue
4318 ac_cv_prog_ac_ct_RANLIB="ranlib"
4319 echo "$as_me:4319: found $ac_dir/$ac_word" >&5
4323 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4326 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4327 if test -n "$ac_ct_RANLIB"; then
4328 echo "$as_me:4328: result: $ac_ct_RANLIB" >&5
4329 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4331 echo "$as_me:4331: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 RANLIB=$ac_ct_RANLIB
4337 RANLIB="$ac_cv_prog_RANLIB"
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ld; ac_word=$2
4343 echo "$as_me:4343: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_LD+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$LD"; then
4349 ac_cv_prog_LD="$LD" # Let the user override the test.
4351 ac_save_IFS=$IFS; IFS=$ac_path_separator
4353 for ac_dir in $ac_dummy; do
4355 test -z "$ac_dir" && ac_dir=.
4356 $as_executable_p "$ac_dir/$ac_word" || continue
4357 ac_cv_prog_LD="${ac_tool_prefix}ld"
4358 echo "$as_me:4358: found $ac_dir/$ac_word" >&5
4365 if test -n "$LD"; then
4366 echo "$as_me:4366: result: $LD" >&5
4367 echo "${ECHO_T}$LD" >&6
4369 echo "$as_me:4369: result: no" >&5
4370 echo "${ECHO_T}no" >&6
4374 if test -z "$ac_cv_prog_LD"; then
4376 # Extract the first word of "ld", so it can be a program name with args.
4377 set dummy ld; ac_word=$2
4378 echo "$as_me:4378: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4380 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 if test -n "$ac_ct_LD"; then
4384 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4386 ac_save_IFS=$IFS; IFS=$ac_path_separator
4388 for ac_dir in $ac_dummy; do
4390 test -z "$ac_dir" && ac_dir=.
4391 $as_executable_p "$ac_dir/$ac_word" || continue
4392 ac_cv_prog_ac_ct_LD="ld"
4393 echo "$as_me:4393: found $ac_dir/$ac_word" >&5
4397 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4400 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4401 if test -n "$ac_ct_LD"; then
4402 echo "$as_me:4402: result: $ac_ct_LD" >&5
4403 echo "${ECHO_T}$ac_ct_LD" >&6
4405 echo "$as_me:4405: result: no" >&5
4406 echo "${ECHO_T}no" >&6
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}ar; ac_word=$2
4417 echo "$as_me:4417: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419 if test "${ac_cv_prog_AR+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$AR"; then
4423 ac_cv_prog_AR="$AR" # Let the user override the test.
4425 ac_save_IFS=$IFS; IFS=$ac_path_separator
4427 for ac_dir in $ac_dummy; do
4429 test -z "$ac_dir" && ac_dir=.
4430 $as_executable_p "$ac_dir/$ac_word" || continue
4431 ac_cv_prog_AR="${ac_tool_prefix}ar"
4432 echo "$as_me:4432: found $ac_dir/$ac_word" >&5
4439 if test -n "$AR"; then
4440 echo "$as_me:4440: result: $AR" >&5
4441 echo "${ECHO_T}$AR" >&6
4443 echo "$as_me:4443: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4448 if test -z "$ac_cv_prog_AR"; then
4450 # Extract the first word of "ar", so it can be a program name with args.
4451 set dummy ar; ac_word=$2
4452 echo "$as_me:4452: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 if test -n "$ac_ct_AR"; then
4458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4460 ac_save_IFS=$IFS; IFS=$ac_path_separator
4462 for ac_dir in $ac_dummy; do
4464 test -z "$ac_dir" && ac_dir=.
4465 $as_executable_p "$ac_dir/$ac_word" || continue
4466 ac_cv_prog_ac_ct_AR="ar"
4467 echo "$as_me:4467: found $ac_dir/$ac_word" >&5
4471 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4475 if test -n "$ac_ct_AR"; then
4476 echo "$as_me:4476: result: $ac_ct_AR" >&5
4477 echo "${ECHO_T}$ac_ct_AR" >&6
4479 echo "$as_me:4479: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4490 set dummy ${ac_tool_prefix}nm; ac_word=$2
4491 echo "$as_me:4491: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_NM+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$NM"; then
4497 ac_cv_prog_NM="$NM" # Let the user override the test.
4499 ac_save_IFS=$IFS; IFS=$ac_path_separator
4501 for ac_dir in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir=.
4504 $as_executable_p "$ac_dir/$ac_word" || continue
4505 ac_cv_prog_NM="${ac_tool_prefix}nm"
4506 echo "$as_me:4506: found $ac_dir/$ac_word" >&5
4513 if test -n "$NM"; then
4514 echo "$as_me:4514: result: $NM" >&5
4515 echo "${ECHO_T}$NM" >&6
4517 echo "$as_me:4517: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4522 if test -z "$ac_cv_prog_NM"; then
4524 # Extract the first word of "nm", so it can be a program name with args.
4525 set dummy nm; ac_word=$2
4526 echo "$as_me:4526: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$ac_ct_NM"; then
4532 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4534 ac_save_IFS=$IFS; IFS=$ac_path_separator
4536 for ac_dir in $ac_dummy; do
4538 test -z "$ac_dir" && ac_dir=.
4539 $as_executable_p "$ac_dir/$ac_word" || continue
4540 ac_cv_prog_ac_ct_NM="nm"
4541 echo "$as_me:4541: found $ac_dir/$ac_word" >&5
4545 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4548 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4549 if test -n "$ac_ct_NM"; then
4550 echo "$as_me:4550: result: $ac_ct_NM" >&5
4551 echo "${ECHO_T}$ac_ct_NM" >&6
4553 echo "$as_me:4553: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4562 if test -n "$ac_tool_prefix"; then
4563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4564 set dummy ${ac_tool_prefix}ar; ac_word=$2
4565 echo "$as_me:4565: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_prog_AR+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 if test -n "$AR"; then
4571 ac_cv_prog_AR="$AR" # Let the user override the test.
4573 ac_save_IFS=$IFS; IFS=$ac_path_separator
4575 for ac_dir in $ac_dummy; do
4577 test -z "$ac_dir" && ac_dir=.
4578 $as_executable_p "$ac_dir/$ac_word" || continue
4579 ac_cv_prog_AR="${ac_tool_prefix}ar"
4580 echo "$as_me:4580: found $ac_dir/$ac_word" >&5
4587 if test -n "$AR"; then
4588 echo "$as_me:4588: result: $AR" >&5
4589 echo "${ECHO_T}$AR" >&6
4591 echo "$as_me:4591: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4596 if test -z "$ac_cv_prog_AR"; then
4598 # Extract the first word of "ar", so it can be a program name with args.
4599 set dummy ar; ac_word=$2
4600 echo "$as_me:4600: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test -n "$ac_ct_AR"; then
4606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4608 ac_save_IFS=$IFS; IFS=$ac_path_separator
4610 for ac_dir in $ac_dummy; do
4612 test -z "$ac_dir" && ac_dir=.
4613 $as_executable_p "$ac_dir/$ac_word" || continue
4614 ac_cv_prog_ac_ct_AR="ar"
4615 echo "$as_me:4615: found $ac_dir/$ac_word" >&5
4619 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4623 if test -n "$ac_ct_AR"; then
4624 echo "$as_me:4624: result: $ac_ct_AR" >&5
4625 echo "${ECHO_T}$ac_ct_AR" >&6
4627 echo "$as_me:4627: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4636 echo "$as_me:4636: checking for options to update archives" >&5
4637 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4638 if test "${cf_cv_ar_flags+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cf_cv_ar_flags=unknown
4643 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4646 # check if $ARFLAGS already contains this choice
4647 if test "x$ARFLAGS" != "x" ; then
4648 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4649 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4655 rm -f conftest.$ac_cv_objext
4658 cat >conftest.$ac_ext <<EOF
4659 #line 4659 "configure"
4660 int testdata[3] = { 123, 456, 789 };
4662 if { (eval echo "$as_me:4662: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>&5
4665 echo "$as_me:4665: \$? = $ac_status" >&5
4666 (exit $ac_status); } ; then
4667 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4668 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4669 if test -f conftest.a ; then
4670 cf_cv_ar_flags=$cf_ar_flags
4674 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4676 echo "${as_me:-configure}:4676: testing cannot compile test-program ..." 1>&5
4681 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4684 echo "$as_me:4684: result: $cf_cv_ar_flags" >&5
4685 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4687 if test -n "$ARFLAGS" ; then
4688 if test -n "$cf_cv_ar_flags" ; then
4689 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4692 ARFLAGS=$cf_cv_ar_flags
4695 echo "$as_me:4695: checking if you have specified an install-prefix" >&5
4696 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4698 # Check whether --with-install-prefix or --without-install-prefix was given.
4699 if test "${with_install_prefix+set}" = set; then
4700 withval="$with_install_prefix"
4704 (*) DESTDIR="$withval"
4708 echo "$as_me:4708: result: $DESTDIR" >&5
4709 echo "${ECHO_T}$DESTDIR" >&6
4711 ###############################################################################
4713 # If we're cross-compiling, allow the user to override the tools and their
4714 # options. The configure script is oriented toward identifying the host
4715 # compiler, etc., but we need a build compiler to generate parts of the source.
4717 if test "$cross_compiling" = yes ; then
4719 # defaults that we might want to override
4720 : ${BUILD_CFLAGS:=''}
4721 : ${BUILD_CPPFLAGS:=''}
4722 : ${BUILD_LDFLAGS:=''}
4724 : ${BUILD_EXEEXT:='$x'}
4725 : ${BUILD_OBJEXT:='o'}
4727 # Check whether --with-build-cc or --without-build-cc was given.
4728 if test "${with_build_cc+set}" = set; then
4729 withval="$with_build_cc"
4732 for ac_prog in gcc clang c99 c89 cc cl
4734 # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 echo "$as_me:4736: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$BUILD_CC"; then
4742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744 ac_save_IFS=$IFS; IFS=$ac_path_separator
4746 for ac_dir in $ac_dummy; do
4748 test -z "$ac_dir" && ac_dir=.
4749 $as_executable_p "$ac_dir/$ac_word" || continue
4750 ac_cv_prog_BUILD_CC="$ac_prog"
4751 echo "$as_me:4751: found $ac_dir/$ac_word" >&5
4757 BUILD_CC=$ac_cv_prog_BUILD_CC
4758 if test -n "$BUILD_CC"; then
4759 echo "$as_me:4759: result: $BUILD_CC" >&5
4760 echo "${ECHO_T}$BUILD_CC" >&6
4762 echo "$as_me:4762: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4766 test -n "$BUILD_CC" && break
4768 test -n "$BUILD_CC" || BUILD_CC="none"
4771 echo "$as_me:4771: checking for native build C compiler" >&5
4772 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4773 echo "$as_me:4773: result: $BUILD_CC" >&5
4774 echo "${ECHO_T}$BUILD_CC" >&6
4776 echo "$as_me:4776: checking for native build C preprocessor" >&5
4777 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4779 # Check whether --with-build-cpp or --without-build-cpp was given.
4780 if test "${with_build_cpp+set}" = set; then
4781 withval="$with_build_cpp"
4782 BUILD_CPP="$withval"
4784 BUILD_CPP='${BUILD_CC} -E'
4786 echo "$as_me:4786: result: $BUILD_CPP" >&5
4787 echo "${ECHO_T}$BUILD_CPP" >&6
4789 echo "$as_me:4789: checking for native build C flags" >&5
4790 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4792 # Check whether --with-build-cflags or --without-build-cflags was given.
4793 if test "${with_build_cflags+set}" = set; then
4794 withval="$with_build_cflags"
4795 BUILD_CFLAGS="$withval"
4797 echo "$as_me:4797: result: $BUILD_CFLAGS" >&5
4798 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4800 echo "$as_me:4800: checking for native build C preprocessor-flags" >&5
4801 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4803 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4804 if test "${with_build_cppflags+set}" = set; then
4805 withval="$with_build_cppflags"
4806 BUILD_CPPFLAGS="$withval"
4808 echo "$as_me:4808: result: $BUILD_CPPFLAGS" >&5
4809 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4811 echo "$as_me:4811: checking for native build linker-flags" >&5
4812 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4814 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4815 if test "${with_build_ldflags+set}" = set; then
4816 withval="$with_build_ldflags"
4817 BUILD_LDFLAGS="$withval"
4819 echo "$as_me:4819: result: $BUILD_LDFLAGS" >&5
4820 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4822 echo "$as_me:4822: checking for native build linker-libraries" >&5
4823 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4825 # Check whether --with-build-libs or --without-build-libs was given.
4826 if test "${with_build_libs+set}" = set; then
4827 withval="$with_build_libs"
4828 BUILD_LIBS="$withval"
4830 echo "$as_me:4830: result: $BUILD_LIBS" >&5
4831 echo "${ECHO_T}$BUILD_LIBS" >&6
4833 # this assumes we're on Unix.
4837 : ${BUILD_CC:='${CC}'}
4839 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4840 { { echo "$as_me:4840: error: Cross-build requires two compilers.
4841 Use --with-build-cc to specify the native compiler." >&5
4842 echo "$as_me: error: Cross-build requires two compilers.
4843 Use --with-build-cc to specify the native compiler." >&2;}
4844 { (exit 1); exit 1; }; }
4848 : ${BUILD_CC:='${CC}'}
4849 : ${BUILD_CPP:='${CPP}'}
4850 : ${BUILD_CFLAGS:='${CFLAGS}'}
4851 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4852 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4853 : ${BUILD_LIBS:='${LIBS}'}
4854 : ${BUILD_EXEEXT:='$x'}
4855 : ${BUILD_OBJEXT:='o'}
4858 ###############################################################################
4860 ### Options to allow the user to specify the set of libraries which are used.
4861 ### Use "--without-normal --with-shared" to allow the default model to be
4862 ### shared, for example.
4865 echo "$as_me:4865: checking if libtool -version-number should be used" >&5
4866 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4868 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4869 if test "${enable_libtool_version+set}" = set; then
4870 enableval="$enable_libtool_version"
4871 test "$enableval" != no && enableval=yes
4872 if test "$enableval" != "yes" ; then
4873 cf_libtool_version=no
4875 cf_libtool_version=yes
4879 cf_libtool_version=yes
4882 echo "$as_me:4882: result: $cf_libtool_version" >&5
4883 echo "${ECHO_T}$cf_libtool_version" >&6
4885 if test "$cf_libtool_version" = yes ; then
4886 LIBTOOL_VERSION="-version-number"
4888 LIBTOOL_VERSION="-version-info"
4891 { echo "$as_me:4891: WARNING: VERSION was not set" >&5
4892 echo "$as_me: WARNING: VERSION was not set" >&2;}
4895 ABI_VERSION="$VERSION"
4896 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4898 echo "${as_me:-configure}:4898: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4902 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4903 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4905 echo "${as_me:-configure}:4905: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4909 { echo "$as_me:4909: WARNING: unexpected VERSION value: $VERSION" >&5
4910 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4917 # common library maintenance symbols that are convenient for libtool scripts:
4918 LIB_CREATE='${AR} -cr'
4919 LIB_OBJECT='${OBJECTS}'
4923 # symbols used to prop libtool up to enable it to determine what it should be
4931 echo "$as_me:4931: checking if you want to build libraries with libtool" >&5
4932 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4934 # Check whether --with-libtool or --without-libtool was given.
4935 if test "${with_libtool+set}" = set; then
4936 withval="$with_libtool"
4937 with_libtool=$withval
4941 echo "$as_me:4941: result: $with_libtool" >&5
4942 echo "${ECHO_T}$with_libtool" >&6
4943 if test "$with_libtool" != "no"; then
4945 if test "$with_libtool" != "yes" ; then
4947 if test "x$prefix" != xNONE; then
4948 cf_path_syntax="$prefix"
4950 cf_path_syntax="$ac_default_prefix"
4953 case ".$with_libtool" in
4958 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4960 (.\${*prefix}*|.\${*dir}*)
4961 eval with_libtool="$with_libtool"
4962 case ".$with_libtool" in
4964 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4969 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4972 { { echo "$as_me:4972: error: expected a pathname, not \"$with_libtool\"" >&5
4973 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4974 { (exit 1); exit 1; }; }
4978 LIBTOOL=$with_libtool
4980 if test -n "$ac_tool_prefix"; then
4981 for ac_prog in libtool glibtool
4983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4985 echo "$as_me:4985: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 if test -n "$LIBTOOL"; then
4991 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4993 ac_save_IFS=$IFS; IFS=$ac_path_separator
4995 for ac_dir in $ac_dummy; do
4997 test -z "$ac_dir" && ac_dir=.
4998 $as_executable_p "$ac_dir/$ac_word" || continue
4999 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5000 echo "$as_me:5000: found $ac_dir/$ac_word" >&5
5006 LIBTOOL=$ac_cv_prog_LIBTOOL
5007 if test -n "$LIBTOOL"; then
5008 echo "$as_me:5008: result: $LIBTOOL" >&5
5009 echo "${ECHO_T}$LIBTOOL" >&6
5011 echo "$as_me:5011: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5015 test -n "$LIBTOOL" && break
5018 if test -z "$LIBTOOL"; then
5019 ac_ct_LIBTOOL=$LIBTOOL
5020 for ac_prog in libtool glibtool
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 echo "$as_me:5024: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 if test -n "$ac_ct_LIBTOOL"; then
5030 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5032 ac_save_IFS=$IFS; IFS=$ac_path_separator
5034 for ac_dir in $ac_dummy; do
5036 test -z "$ac_dir" && ac_dir=.
5037 $as_executable_p "$ac_dir/$ac_word" || continue
5038 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5039 echo "$as_me:5039: found $ac_dir/$ac_word" >&5
5045 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5046 if test -n "$ac_ct_LIBTOOL"; then
5047 echo "$as_me:5047: result: $ac_ct_LIBTOOL" >&5
5048 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5050 echo "$as_me:5050: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5054 test -n "$ac_ct_LIBTOOL" && break
5056 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5058 LIBTOOL=$ac_ct_LIBTOOL
5061 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5063 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.].*//'`
5065 cf_cv_libtool_version=
5067 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5069 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5072 unset ac_cv_prog_ac_ct_LIBTOOL
5076 if test -n "$ac_tool_prefix"; then
5077 for ac_prog in glibtool
5079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5081 echo "$as_me:5081: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 if test -n "$LIBTOOL"; then
5087 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5089 ac_save_IFS=$IFS; IFS=$ac_path_separator
5091 for ac_dir in $ac_dummy; do
5093 test -z "$ac_dir" && ac_dir=.
5094 $as_executable_p "$ac_dir/$ac_word" || continue
5095 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5096 echo "$as_me:5096: found $ac_dir/$ac_word" >&5
5102 LIBTOOL=$ac_cv_prog_LIBTOOL
5103 if test -n "$LIBTOOL"; then
5104 echo "$as_me:5104: result: $LIBTOOL" >&5
5105 echo "${ECHO_T}$LIBTOOL" >&6
5107 echo "$as_me:5107: result: no" >&5
5108 echo "${ECHO_T}no" >&6
5111 test -n "$LIBTOOL" && break
5114 if test -z "$LIBTOOL"; then
5115 ac_ct_LIBTOOL=$LIBTOOL
5116 for ac_prog in glibtool
5118 # Extract the first word of "$ac_prog", so it can be a program name with args.
5119 set dummy $ac_prog; ac_word=$2
5120 echo "$as_me:5120: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 if test -n "$ac_ct_LIBTOOL"; then
5126 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5128 ac_save_IFS=$IFS; IFS=$ac_path_separator
5130 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 $as_executable_p "$ac_dir/$ac_word" || continue
5134 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5135 echo "$as_me:5135: found $ac_dir/$ac_word" >&5
5141 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5142 if test -n "$ac_ct_LIBTOOL"; then
5143 echo "$as_me:5143: result: $ac_ct_LIBTOOL" >&5
5144 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5146 echo "$as_me:5146: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5150 test -n "$ac_ct_LIBTOOL" && break
5152 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5154 LIBTOOL=$ac_ct_LIBTOOL
5157 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5159 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.].*//'`
5161 cf_cv_libtool_version=
5163 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5167 if test -z "$LIBTOOL" ; then
5168 { { echo "$as_me:5168: error: Cannot find libtool" >&5
5169 echo "$as_me: error: Cannot find libtool" >&2;}
5170 { (exit 1); exit 1; }; }
5172 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5173 LIB_OBJECT='${OBJECTS:.o=.lo}'
5175 LIB_CLEAN='${LIBTOOL} --mode=clean'
5176 LIB_COMPILE='${LIBTOOL} --mode=compile'
5177 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5178 LIB_INSTALL='${LIBTOOL} --mode=install'
5179 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5182 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5184 echo "$as_me:5184: checking version of $LIBTOOL" >&5
5185 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5187 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5189 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.].*//'`
5191 cf_cv_libtool_version=
5193 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5195 echo "$as_me:5195: result: $cf_cv_libtool_version" >&5
5196 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5197 if test -z "$cf_cv_libtool_version" ; then
5198 { { echo "$as_me:5198: error: This is not GNU libtool" >&5
5199 echo "$as_me: error: This is not GNU libtool" >&2;}
5200 { (exit 1); exit 1; }; }
5203 { { echo "$as_me:5203: error: GNU libtool has not been found" >&5
5204 echo "$as_me: error: GNU libtool has not been found" >&2;}
5205 { (exit 1); exit 1; }; }
5208 # special hack to add -no-undefined (which libtool should do for itself)
5210 case "$cf_cv_system_name" in
5211 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5212 LT_UNDEF=-no-undefined
5216 # special hack to add --tag option for C++ compiler
5217 case $cf_cv_libtool_version in
5218 (1.[5-9]*|[2-9].[0-9.a-z]*)
5219 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5220 LIBTOOL="$LIBTOOL --tag=CC"
5223 LIBTOOL_CXX="$LIBTOOL"
5231 test -z "$LIBTOOL" && ECHO_LT=
5233 if test "$with_libtool" != "no" ; then
5235 cf_list_models="$cf_list_models libtool"
5239 echo "$as_me:5239: checking if you want to build shared libraries" >&5
5240 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5242 # Check whether --with-shared or --without-shared was given.
5243 if test "${with_shared+set}" = set; then
5244 withval="$with_shared"
5245 with_shared=$withval
5249 echo "$as_me:5249: result: $with_shared" >&5
5250 echo "${ECHO_T}$with_shared" >&6
5251 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5253 echo "$as_me:5253: checking if you want to build static libraries" >&5
5254 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5256 # Check whether --with-normal or --without-normal was given.
5257 if test "${with_normal+set}" = set; then
5258 withval="$with_normal"
5259 with_normal=$withval
5263 echo "$as_me:5263: result: $with_normal" >&5
5264 echo "${ECHO_T}$with_normal" >&6
5265 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5267 echo "$as_me:5267: checking if you want to build debug libraries" >&5
5268 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5270 # Check whether --with-debug or --without-debug was given.
5271 if test "${with_debug+set}" = set; then
5272 withval="$with_debug"
5277 echo "$as_me:5277: result: $with_debug" >&5
5278 echo "${ECHO_T}$with_debug" >&6
5279 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5281 echo "$as_me:5281: checking if you want to build profiling libraries" >&5
5282 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5284 # Check whether --with-profile or --without-profile was given.
5285 if test "${with_profile+set}" = set; then
5286 withval="$with_profile"
5287 with_profile=$withval
5291 echo "$as_me:5291: result: $with_profile" >&5
5292 echo "${ECHO_T}$with_profile" >&6
5293 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5297 if test "X$cf_with_cxx_binding" != Xno; then
5298 if test "x$with_shared" = "xyes"; then
5299 echo "$as_me:5299: checking if you want to build C++ shared libraries" >&5
5300 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5302 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5303 if test "${with_cxx_shared+set}" = set; then
5304 withval="$with_cxx_shared"
5305 with_shared_cxx=$withval
5309 echo "$as_me:5309: result: $with_shared_cxx" >&5
5310 echo "${ECHO_T}$with_shared_cxx" >&6
5314 ###############################################################################
5316 echo "$as_me:5316: checking for specified models" >&5
5317 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5318 test -z "$cf_list_models" && cf_list_models=normal
5319 test "$with_libtool" != "no" && cf_list_models=libtool
5320 echo "$as_me:5320: result: $cf_list_models" >&5
5321 echo "${ECHO_T}$cf_list_models" >&6
5323 ### Use the first model as the default, and save its suffix for use in building
5324 ### up test-applications.
5325 echo "$as_me:5325: checking for default model" >&5
5326 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5327 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5328 echo "$as_me:5328: result: $DFT_LWR_MODEL" >&5
5329 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5331 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5342 echo "$as_me:5342: checking if you want to have a library-prefix" >&5
5343 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5345 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5346 if test "${with_lib_prefix+set}" = set; then
5347 withval="$with_lib_prefix"
5348 with_lib_prefix=$withval
5350 with_lib_prefix=auto
5352 echo "$as_me:5352: result: $with_lib_prefix" >&5
5353 echo "${ECHO_T}$with_lib_prefix" >&6
5355 if test $with_lib_prefix = auto
5358 case $cf_cv_system_name in
5360 if test "$DFT_LWR_MODEL" = libtool; then
5366 (*) LIB_PREFIX='lib'
5369 cf_prefix=$LIB_PREFIX
5371 elif test $with_lib_prefix = no
5375 LIB_PREFIX=$with_lib_prefix
5380 echo "$as_me:5380: checking for PATH separator" >&5
5381 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5382 case $cf_cv_system_name in
5383 (os2*) PATH_SEPARATOR=';' ;;
5384 (*) ${PATH_SEPARATOR:=':'} ;;
5387 echo "$as_me:5387: result: $PATH_SEPARATOR" >&5
5388 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5390 ###############################################################################
5392 echo "$as_me:5392: checking if you want to build a separate terminfo library" >&5
5393 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5395 # Check whether --with-termlib or --without-termlib was given.
5396 if test "${with_termlib+set}" = set; then
5397 withval="$with_termlib"
5398 with_termlib=$withval
5402 echo "$as_me:5402: result: $with_termlib" >&5
5403 echo "${ECHO_T}$with_termlib" >&6
5405 echo "$as_me:5405: checking if you want to build a separate tic library" >&5
5406 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5408 # Check whether --with-ticlib or --without-ticlib was given.
5409 if test "${with_ticlib+set}" = set; then
5410 withval="$with_ticlib"
5411 with_ticlib=$withval
5415 echo "$as_me:5415: result: $with_ticlib" >&5
5416 echo "${ECHO_T}$with_ticlib" >&6
5418 if test X"$CC_G_OPT" = X"" ; then
5420 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5423 if test X"$CXX_G_OPT" = X"" ; then
5425 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5428 echo "$as_me:5428: checking for default loader flags" >&5
5429 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5430 case $DFT_LWR_MODEL in
5431 (libtool) LD_MODEL='' ;;
5432 (normal) LD_MODEL='' ;;
5433 (debug) LD_MODEL=$CC_G_OPT ;;
5434 (profile) LD_MODEL='-pg';;
5435 (shared) LD_MODEL='' ;;
5437 echo "$as_me:5437: result: $LD_MODEL" >&5
5438 echo "${ECHO_T}$LD_MODEL" >&6
5440 case $DFT_LWR_MODEL in
5443 echo "$as_me:5443: checking if rpath option should be used" >&5
5444 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5446 # Check whether --enable-rpath or --disable-rpath was given.
5447 if test "${enable_rpath+set}" = set; then
5448 enableval="$enable_rpath"
5449 cf_cv_enable_rpath=$enableval
5451 cf_cv_enable_rpath=no
5453 echo "$as_me:5453: result: $cf_cv_enable_rpath" >&5
5454 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5456 echo "$as_me:5456: checking if shared libraries should be relinked during install" >&5
5457 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5459 # Check whether --enable-relink or --disable-relink was given.
5460 if test "${enable_relink+set}" = set; then
5461 enableval="$enable_relink"
5462 cf_cv_do_relink=$enableval
5466 echo "$as_me:5466: result: $cf_cv_do_relink" >&5
5467 echo "${ECHO_T}$cf_cv_do_relink" >&6
5471 # we will build libraries one-level down.
5475 if test "x$cf_cv_enable_rpath" != xno
5477 echo "$as_me:5477: checking for an rpath option" >&5
5478 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5479 case $cf_cv_system_name in
5481 if test "$GCC" = yes; then
5482 LD_RPATH_OPT="-Wl,-rpath,"
5484 LD_RPATH_OPT="-rpath "
5487 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5488 LD_RPATH_OPT="-Wl,-rpath,"
5490 (openbsd[2-9].*|mirbsd*)
5491 LD_RPATH_OPT="-Wl,-rpath,"
5494 LD_RPATH_OPT="-rpath "
5497 LD_RPATH_OPT="-Wl,-rpath,"
5500 LD_RPATH_OPT="-rpath "
5508 echo "$as_me:5508: result: $LD_RPATH_OPT" >&5
5509 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5511 case "x$LD_RPATH_OPT" in
5513 echo "$as_me:5513: checking if we need a space after rpath option" >&5
5514 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5515 cf_save_LIBS="$LIBS"
5517 cf_add_libs="${LD_RPATH_OPT}$libdir"
5518 # Filter out duplicates - this happens with badly-designed ".pc" files...
5519 for cf_add_1lib in $LIBS
5521 for cf_add_2lib in $cf_add_libs
5523 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5529 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line 5534 "configure"
5535 #include "confdefs.h"
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5549 echo "$as_me:5549: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:5552: \"$ac_try\"") >&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5564 LIBS="$cf_save_LIBS"
5565 echo "$as_me:5565: result: $cf_rpath_space" >&5
5566 echo "${ECHO_T}$cf_rpath_space" >&6
5567 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5576 INSTALL_LIB="-m 644"
5577 : ${rel_builddir:=.}
5583 cf_cv_do_symlinks=no
5585 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5587 echo "$as_me:5587: checking if release/abi version should be used for shared libs" >&5
5588 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5590 # Check whether --with-shlib-version or --without-shlib-version was given.
5591 if test "${with_shlib_version+set}" = set; then
5592 withval="$with_shlib_version"
5593 test -z "$withval" && withval=auto
5596 cf_cv_shlib_version=auto
5599 cf_cv_shlib_version=$withval
5602 echo "$as_me:5602: result: $withval" >&5
5603 echo "${ECHO_T}$withval" >&6
5604 { { echo "$as_me:5604: error: option value must be one of: rel, abi, or auto" >&5
5605 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5606 { (exit 1); exit 1; }; }
5611 cf_cv_shlib_version=auto
5613 echo "$as_me:5613: result: $cf_cv_shlib_version" >&5
5614 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5619 # Some less-capable ports of gcc support only -fpic
5623 if test "$GCC" = yes
5627 case $cf_cv_system_name in
5628 (*linux*) # e.g., PGI compiler
5634 if test "$cf_try_fPIC" = yes
5636 echo "$as_me:5636: checking which $CC option to use" >&5
5637 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5638 cf_save_CFLAGS="$CFLAGS"
5639 for CC_SHARED_OPTS in -fPIC -fpic ''
5641 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line 5643 "configure"
5644 #include "confdefs.h"
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:5655: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>&5
5658 echo "$as_me:5658: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:5661: \"$ac_try\"") >&5
5664 echo "$as_me:5664: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 rm -f conftest.$ac_objext conftest.$ac_ext
5673 echo "$as_me:5673: result: $CC_SHARED_OPTS" >&5
5674 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5675 CFLAGS="$cf_save_CFLAGS"
5678 cf_cv_shlib_version_infix=no
5680 case $cf_cv_system_name in
5681 (aix4.3-9*|aix[5-7]*)
5682 if test "$GCC" = yes; then
5683 CC_SHARED_OPTS='-Wl,-brtl'
5684 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5686 CC_SHARED_OPTS='-brtl'
5687 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5688 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5692 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5696 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5697 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5698 cf_cv_shlib_version=cygdll
5699 cf_cv_shlib_version_infix=cygdll
5702 cat >mk_shared_lib.sh <<-CF_EOF
5705 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5708 Linking shared library
5709 ** SHARED_LIB \$SHARED_LIB
5710 ** IMPORT_LIB \$IMPORT_LIB
5712 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5714 chmod +x mk_shared_lib.sh
5718 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5719 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5720 cf_cv_shlib_version=msysdll
5721 cf_cv_shlib_version_infix=msysdll
5724 cat >mk_shared_lib.sh <<-CF_EOF
5727 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5730 Linking shared library
5731 ** SHARED_LIB \$SHARED_LIB
5732 ** IMPORT_LIB \$IMPORT_LIB
5734 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5736 chmod +x mk_shared_lib.sh
5739 cf_try_cflags="no-cpp-precomp"
5740 CC_SHARED_OPTS="-dynamic"
5741 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5742 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5743 cf_cv_shlib_version_infix=yes
5744 echo "$as_me:5744: checking if ld -search_paths_first works" >&5
5745 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5746 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 cf_save_LDFLAGS=$LDFLAGS
5751 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5752 cat >conftest.$ac_ext <<_ACEOF
5753 #line 5753 "configure"
5754 #include "confdefs.h"
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:5765: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5774 echo "$as_me:5774: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 cf_cv_ldflags_search_paths_first=yes
5778 echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 cf_cv_ldflags_search_paths_first=no
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5783 LDFLAGS=$cf_save_LDFLAGS
5785 echo "$as_me:5785: result: $cf_cv_ldflags_search_paths_first" >&5
5786 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5787 if test $cf_cv_ldflags_search_paths_first = yes; then
5788 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5792 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5793 if test "$GCC" != yes; then
5796 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5797 INSTALL_LIB="-m 555"
5800 # (tested with gcc 2.7.2 -- I don't have c89)
5801 if test "$GCC" = yes; then
5802 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5805 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5807 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5808 # HP-UX shared libraries must be executable, and should be
5809 # readonly to exploit a quirk in the memory manager.
5810 INSTALL_LIB="-m 555"
5813 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5814 if test "$cf_cv_shlib_version" = rel; then
5815 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5817 cf_shared_soname='`basename $@`'
5820 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5823 if test "$cf_cv_enable_rpath" = yes ; then
5824 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5826 # tested with IRIX 5.2 and 'cc'.
5827 if test "$GCC" != yes; then
5828 CC_SHARED_OPTS='-KPIC'
5829 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5831 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5833 cf_cv_rm_so_locs=yes
5835 (linux*|gnu*|k*bsd*-gnu)
5836 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5837 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5838 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5840 if test "$cf_cv_enable_rpath" = yes ; then
5841 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5844 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5845 if test "$cf_cv_shlib_version" = rel; then
5846 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5848 cf_cv_shared_soname='`basename $@`'
5851 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5854 cf_cv_shlib_version=mingw
5855 cf_cv_shlib_version_infix=mingw
5858 if test "$DFT_LWR_MODEL" = "shared" ; then
5859 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5860 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5861 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5864 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5865 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5866 cat >mk_shared_lib.sh <<-CF_EOF
5869 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5872 Linking shared library
5873 ** SHARED_LIB \$SHARED_LIB
5874 ** IMPORT_LIB \$IMPORT_LIB
5876 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5878 chmod +x mk_shared_lib.sh
5880 (openbsd[2-9].*|mirbsd*)
5881 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5882 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5883 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5885 if test "$cf_cv_enable_rpath" = yes ; then
5886 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5888 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5890 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5891 if test "$cf_cv_shlib_version" = rel; then
5892 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5894 cf_cv_shared_soname='`basename $@`'
5897 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5899 (nto-qnx*|openbsd*|freebsd[12].*)
5900 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5901 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
5902 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5904 (dragonfly*|freebsd*)
5905 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5906 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5907 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5908 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5909 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5912 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5913 if test "$cf_cv_shlib_version" = rel; then
5914 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5916 cf_cv_shared_soname='`basename $@`'
5919 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5922 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5923 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5924 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5925 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5926 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5927 if test "$cf_cv_shlib_version" = auto; then
5928 if test -f /usr/libexec/ld.elf_so; then
5929 cf_cv_shlib_version=abi
5931 cf_cv_shlib_version=rel
5935 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5936 if test "$cf_cv_shlib_version" = rel; then
5937 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5939 cf_cv_shared_soname='`basename $@`'
5942 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5944 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
5948 # tested with OSF/1 V3.2 and 'cc'
5949 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5950 # link with shared libs).
5951 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5954 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5957 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5958 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5959 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5960 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5962 cf_cv_rm_so_locs=yes
5964 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
5965 # tested with osr5.0.5
5966 if test "$GCC" != yes; then
5967 CC_SHARED_OPTS='-belf -KPIC'
5969 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5970 if test "$cf_cv_enable_rpath" = yes ; then
5971 # only way is to set LD_RUN_PATH but no switch for it
5974 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5975 LINK_PROGS='LD_RUN_PATH=${libdir}'
5976 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5979 # tested with SunOS 4.1.1 and gcc 2.7.0
5980 if test "$GCC" != yes; then
5981 CC_SHARED_OPTS='-KPIC'
5983 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
5984 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5987 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5988 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5989 if test "$DFT_LWR_MODEL" = "shared" ; then
5990 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5991 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5993 if test "$cf_cv_enable_rpath" = yes ; then
5994 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5997 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5998 if test "$cf_cv_shlib_version" = rel; then
5999 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6001 cf_cv_shared_soname='`basename $@`'
6004 if test "$GCC" != yes; then
6005 cf_save_CFLAGS="$CFLAGS"
6006 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6008 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6009 cat >conftest.$ac_ext <<_ACEOF
6010 #line 6010 "configure"
6011 #include "confdefs.h"
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:6022: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>&5
6025 echo "$as_me:6025: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:6028: \"$ac_try\"") >&5
6031 echo "$as_me:6031: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6035 echo "$as_me: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 rm -f conftest.$ac_objext conftest.$ac_ext
6040 CFLAGS="$cf_save_CFLAGS"
6041 CC_SHARED_OPTS=$cf_shared_opts
6042 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6044 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6047 (sysv5uw7*|unix_sv*)
6048 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6049 if test "$GCC" != yes; then
6050 CC_SHARED_OPTS='-KPIC'
6052 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6055 CC_SHARED_OPTS='unknown'
6056 MK_SHARED_LIB='echo unknown'
6060 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6061 case "$cf_cv_shlib_version" in
6063 case "$MK_SHARED_LIB" in
6065 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6068 { echo "$as_me:6068: WARNING: ignored --with-shlib-version" >&5
6069 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6075 if test -n "$cf_try_cflags"
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6078 "${as_me:-configure}"
6080 int main(int argc, char *argv[])
6083 return (argv[argc-1] == 0) ;
6086 cf_save_CFLAGS="$CFLAGS"
6087 for cf_opt in $cf_try_cflags
6089 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6090 echo "$as_me:6090: checking if CFLAGS option -$cf_opt works" >&5
6091 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6092 if { (eval echo "$as_me:6092: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>&5
6095 echo "$as_me:6095: \$? = $ac_status" >&5
6096 (exit $ac_status); }; then
6097 echo "$as_me:6097: result: yes" >&5
6098 echo "${ECHO_T}yes" >&6
6099 cf_save_CFLAGS="$CFLAGS"
6101 echo "$as_me:6101: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6105 CFLAGS="$cf_save_CFLAGS"
6108 # RPATH_LIST is a colon-separated list of directories
6109 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6110 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6112 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6114 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6116 echo "${as_me:-configure}:6116: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6118 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6120 echo "${as_me:-configure}:6120: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6122 for model in $cf_list_models; do
6126 echo "$as_me:6126: checking for additional libtool options" >&5
6127 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6129 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6130 if test "${with_libtool_opts+set}" = set; then
6131 withval="$with_libtool_opts"
6132 with_libtool_opts=$withval
6134 with_libtool_opts=no
6136 echo "$as_me:6136: result: $with_libtool_opts" >&5
6137 echo "${ECHO_T}$with_libtool_opts" >&6
6139 case .$with_libtool_opts in
6143 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6147 echo "$as_me:6147: checking if exported-symbols file should be used" >&5
6148 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6150 # Check whether --with-export-syms or --without-export-syms was given.
6151 if test "${with_export_syms+set}" = set; then
6152 withval="$with_export_syms"
6153 with_export_syms=$withval
6157 if test "x$with_export_syms" = xyes
6159 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6162 echo "$as_me:6162: result: $with_export_syms" >&5
6163 echo "${ECHO_T}$with_export_syms" >&6
6164 if test "x$with_export_syms" != xno
6166 EXPORT_SYMS="-export-symbols $with_export_syms"
6172 if test "$CC_SHARED_OPTS" = "unknown"; then
6173 { { echo "$as_me:6173: error: Shared libraries are not supported in this version" >&5
6174 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6175 { (exit 1); exit 1; }; }
6177 # workaround for inept transition to PIE vs PIC...
6178 echo "$as_me:6178: checking if current CFLAGS link properly" >&5
6179 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6181 #line 6181 "configure"
6182 #include "confdefs.h"
6187 printf("Hello work\n");
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:6193: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>&5
6196 echo "$as_me:6196: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:6199: \"$ac_try\"") >&5
6202 echo "$as_me:6202: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6206 echo "$as_me: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6211 echo "$as_me:6211: result: $cf_cflags_work" >&5
6212 echo "${ECHO_T}$cf_cflags_work" >&6
6213 if test "$cf_cflags_work" = no
6215 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6217 echo "${as_me:-configure}:6217: testing try to work around by appending shared-options ..." 1>&5
6219 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6222 echo "$as_me:6222: checking if versioned-symbols file should be used" >&5
6223 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6225 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6226 if test "${with_versioned_syms+set}" = set; then
6227 withval="$with_versioned_syms"
6228 with_versioned_syms=$withval
6230 with_versioned_syms=no
6232 case "x$with_versioned_syms" in
6234 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6240 test -f "$with_versioned_syms" || { { echo "$as_me:6240: error: expected a filename: $with_versioned_syms" >&5
6241 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6242 { (exit 1); exit 1; }; }
6245 test -f "$with_versioned_syms" || { { echo "$as_me:6245: error: expected a filename: $with_versioned_syms" >&5
6246 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6247 { (exit 1); exit 1; }; }
6248 with_versioned_syms=`pwd`/"$with_versioned_syms"
6251 echo "$as_me:6251: result: $with_versioned_syms" >&5
6252 echo "${ECHO_T}$with_versioned_syms" >&6
6258 if test "x$with_versioned_syms" != xno
6260 RESULTING_SYMS=$with_versioned_syms
6261 case "x$MK_SHARED_LIB" in
6263 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6264 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6265 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6267 echo "${as_me:-configure}:6267: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6271 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6272 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6273 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6275 echo "${as_me:-configure}:6275: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6279 { echo "$as_me:6279: WARNING: this system does not support versioned-symbols" >&5
6280 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6284 # Linux ld can selectively override scope, e.g., of symbols beginning with
6285 # "_" by first declaring some as global, and then using a wildcard to
6286 # declare the others as local. Some other loaders cannot do this. Check
6287 # by constructing a (very) simple shared library and inspecting its
6289 if test "x$VERSIONED_SYMS" != "x"
6291 echo "$as_me:6291: checking if wildcards can be used to selectively omit symbols" >&5
6292 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6298 cat >conftest.ver <<EOF
6327 cat >conftest.$ac_ext <<EOF
6328 #line 6328 "configure"
6329 int _ismissing(void) { return 1; }
6330 int _localf1(void) { return 1; }
6331 int _localf2(void) { return 2; }
6332 int globalf1(void) { return 1; }
6333 int globalf2(void) { return 2; }
6334 int _sublocalf1(void) { return 1; }
6335 int _sublocalf2(void) { return 2; }
6336 int subglobalf1(void) { return 1; }
6337 int subglobalf2(void) { return 2; }
6339 cat >conftest.mk <<EOF
6342 CPPFLAGS=${CPPFLAGS}
6345 VERSIONED_SYMS=${VERSIONED_SYMS}
6346 RESULTING_SYMS=conftest.ver
6347 MK_SHARED_LIB=${MK_SHARED_LIB}
6348 conftest.so: conftest.$ac_cv_objext
6349 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6352 # compile source, make library
6353 if make -f conftest.mk 2>&5 >/dev/null
6355 # test for missing symbol in either Data or Text section
6356 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6357 test -n "$cf_missing" && WILDCARD_SYMS=yes
6359 echo "$as_me:6359: result: $WILDCARD_SYMS" >&5
6360 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6369 ### Checks for special libraries, must be done up-front.
6372 echo "$as_me:6372: checking if you want to link with the GPM mouse library" >&5
6373 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6375 # Check whether --with-gpm or --without-gpm was given.
6376 if test "${with_gpm+set}" = set; then
6382 echo "$as_me:6382: result: $with_gpm" >&5
6383 echo "${ECHO_T}$with_gpm" >&6
6385 if test "$with_gpm" != no ; then
6386 echo "$as_me:6386: checking for gpm.h" >&5
6387 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6388 if test "${ac_cv_header_gpm_h+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6392 #line 6392 "configure"
6393 #include "confdefs.h"
6396 if { (eval echo "$as_me:6396: \"$ac_cpp conftest.$ac_ext\"") >&5
6397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399 egrep -v '^ *\+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:6402: \$? = $ac_status" >&5
6403 (exit $ac_status); } >/dev/null; then
6404 if test -s conftest.err; then
6405 ac_cpp_err=$ac_c_preproc_warn_flag
6412 if test -z "$ac_cpp_err"; then
6413 ac_cv_header_gpm_h=yes
6415 echo "$as_me: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6417 ac_cv_header_gpm_h=no
6419 rm -f conftest.err conftest.$ac_ext
6421 echo "$as_me:6421: result: $ac_cv_header_gpm_h" >&5
6422 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6423 if test $ac_cv_header_gpm_h = yes; then
6425 cat >>confdefs.h <<\EOF
6426 #define HAVE_GPM_H 1
6429 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6430 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6432 echo "${as_me:-configure}:6432: testing assuming we really have GPM library ..." 1>&5
6434 cat >>confdefs.h <<\EOF
6435 #define HAVE_LIBGPM 1
6440 echo "$as_me:6440: checking for Gpm_Open in -lgpm" >&5
6441 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6442 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_check_lib_save_LIBS=$LIBS
6447 cat >conftest.$ac_ext <<_ACEOF
6448 #line 6448 "configure"
6449 #include "confdefs.h"
6451 /* Override any gcc2 internal prototype to avoid an error. */
6455 /* We use char because int might match the return type of a gcc2
6456 builtin and then its argument prototype would still apply. */
6466 rm -f conftest.$ac_objext conftest$ac_exeext
6467 if { (eval echo "$as_me:6467: \"$ac_link\"") >&5
6468 (eval $ac_link) 2>&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (eval echo "$as_me:6473: \"$ac_try\"") >&5
6476 echo "$as_me:6476: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_lib_gpm_Gpm_Open=yes
6480 echo "$as_me: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6482 ac_cv_lib_gpm_Gpm_Open=no
6484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6487 echo "$as_me:6487: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6488 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6489 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6493 if test "$with_gpm" = maybe; then
6494 { echo "$as_me:6494: WARNING: Cannot link with GPM library" >&5
6495 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6498 { { echo "$as_me:6498: error: Cannot link with GPM library" >&5
6499 echo "$as_me: error: Cannot link with GPM library" >&2;}
6500 { (exit 1); exit 1; }; }
6509 test "$with_gpm" != maybe && { echo "$as_me:6509: WARNING: Cannot find GPM header" >&5
6510 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6517 if test "$with_gpm" != no ; then
6518 echo "$as_me:6518: checking if you want to load GPM dynamically" >&5
6519 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6521 # Check whether --with-dlsym or --without-dlsym was given.
6522 if test "${with_dlsym+set}" = set; then
6523 withval="$with_dlsym"
6528 echo "$as_me:6528: result: $with_dlsym" >&5
6529 echo "${ECHO_T}$with_dlsym" >&6
6530 if test "x$with_dlsym" = xyes ; then
6533 echo "$as_me:6533: checking for dlsym" >&5
6534 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6535 if test "${ac_cv_func_dlsym+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 cat >conftest.$ac_ext <<_ACEOF
6539 #line 6539 "configure"
6540 #include "confdefs.h"
6541 #define dlsym autoconf_temporary
6542 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6557 /* The GNU C library defines stubs for functions which it implements
6558 to always fail with ENOSYS. Some functions are actually named
6559 something starting with __ and the normal name is an alias. */
6560 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6561 #error found stub for dlsym
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:6570: \"$ac_link\"") >&5
6571 (eval $ac_link) 2>&5
6573 echo "$as_me:6573: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:6576: \"$ac_try\"") >&5
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_cv_func_dlsym=yes
6583 echo "$as_me: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6589 echo "$as_me:6589: result: $ac_cv_func_dlsym" >&5
6590 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6591 if test $ac_cv_func_dlsym = yes; then
6596 echo "$as_me:6596: checking for dlsym in -ldl" >&5
6597 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6598 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_check_lib_save_LIBS=$LIBS
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line 6604 "configure"
6605 #include "confdefs.h"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (eval echo "$as_me:6623: \"$ac_link\"") >&5
6624 (eval $ac_link) 2>&5
6626 echo "$as_me:6626: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:6629: \"$ac_try\"") >&5
6632 echo "$as_me:6632: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_lib_dl_dlsym=yes
6636 echo "$as_me: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 ac_cv_lib_dl_dlsym=no
6640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6641 LIBS=$ac_check_lib_save_LIBS
6643 echo "$as_me:6643: result: $ac_cv_lib_dl_dlsym" >&5
6644 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6645 if test $ac_cv_lib_dl_dlsym = yes; then
6653 if test "$cf_have_dlsym" = yes ; then
6654 test "$cf_have_libdl" = yes && {
6656 # Filter out duplicates - this happens with badly-designed ".pc" files...
6657 for cf_add_1lib in $LIBS
6659 for cf_add_2lib in $cf_add_libs
6661 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6667 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6672 echo "$as_me:6672: checking whether able to link to dl*() functions" >&5
6673 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line 6675 "configure"
6676 #include "confdefs.h"
6683 if ((obj = dlopen("filename", 0)) != 0) {
6684 if (dlsym(obj, "symbolname") == 0) {
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:6693: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6696 echo "$as_me:6696: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -s conftest$ac_exeext'
6699 { (eval echo "$as_me:6699: \"$ac_try\"") >&5
6702 echo "$as_me:6702: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6705 cat >>confdefs.h <<\EOF
6706 #define HAVE_LIBDL 1
6710 echo "$as_me: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6713 { { echo "$as_me:6713: error: Cannot link test program for libdl" >&5
6714 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6715 { (exit 1); exit 1; }; }
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718 echo "$as_me:6718: result: ok" >&5
6719 echo "${ECHO_T}ok" >&6
6721 { { echo "$as_me:6721: error: Cannot find dlsym function" >&5
6722 echo "$as_me: error: Cannot find dlsym function" >&2;}
6723 { (exit 1); exit 1; }; }
6726 if test "x$with_gpm" != xyes ; then
6727 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6729 echo "${as_me:-configure}:6729: testing assuming soname for gpm is $with_gpm ..." 1>&5
6731 cf_cv_gpm_soname="$with_gpm"
6734 echo "$as_me:6734: checking for soname of gpm library" >&5
6735 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6736 if test "${cf_cv_gpm_soname+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cf_cv_gpm_soname=unknown
6741 if test "$cross_compiling" != yes ; then
6742 cat >conftest.$ac_ext <<CF_EOF
6746 if (Gpm_Open(0,0)) Gpm_Close();
6747 ${cf_cv_main_return:-return}(0);
6750 cf_save_LIBS="$LIBS"
6753 # Filter out duplicates - this happens with badly-designed ".pc" files...
6754 for cf_add_1lib in $LIBS
6756 for cf_add_2lib in $cf_add_libs
6758 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6764 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6768 if { (eval echo "$as_me:6768: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>&5
6771 echo "$as_me:6771: \$? = $ac_status" >&5
6772 (exit $ac_status); } ; then
6773 if { (eval echo "$as_me:6773: \"$ac_link\"") >&5
6774 (eval $ac_link) 2>&5
6776 echo "$as_me:6776: \$? = $ac_status" >&5
6777 (exit $ac_status); } ; then
6778 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
6779 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
6783 LIBS="$cf_save_LIBS"
6787 echo "$as_me:6787: result: $cf_cv_gpm_soname" >&5
6788 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
6791 test "$cf_cv_gpm_soname" != "unknown" &&
6792 cat >>confdefs.h <<EOF
6793 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
6796 SHLIB_LIST="-ldl $SHLIB_LIST"
6799 # Filter out duplicates - this happens with badly-designed ".pc" files...
6800 for cf_add_1lib in $PRIVATE_LIBS
6802 for cf_add_2lib in $cf_add_libs
6804 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6810 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6812 PRIVATE_LIBS="$cf_add_libs"
6815 SHLIB_LIST="-lgpm $SHLIB_LIST"
6818 # Filter out duplicates - this happens with badly-designed ".pc" files...
6819 for cf_add_1lib in $TEST_LIBS
6821 for cf_add_2lib in $cf_add_libs
6823 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6829 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6831 TEST_LIBS="$cf_add_libs"
6834 # Filter out duplicates - this happens with badly-designed ".pc" files...
6835 for cf_add_1lib in $PRIVATE_LIBS
6837 for cf_add_2lib in $cf_add_libs
6839 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6845 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6847 PRIVATE_LIBS="$cf_add_libs"
6851 cat >>confdefs.h <<\EOF
6852 #define HAVE_LIBGPM 1
6855 echo "$as_me:6855: checking for Gpm_Wgetch in -lgpm" >&5
6856 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
6857 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_check_lib_save_LIBS=$LIBS
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line 6863 "configure"
6864 #include "confdefs.h"
6866 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:6882: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6885 echo "$as_me:6885: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:6888: \"$ac_try\"") >&5
6891 echo "$as_me:6891: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_cv_lib_gpm_Gpm_Wgetch=yes
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 ac_cv_lib_gpm_Gpm_Wgetch=no
6899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6900 LIBS=$ac_check_lib_save_LIBS
6902 echo "$as_me:6902: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
6903 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
6904 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
6906 echo "$as_me:6906: checking if GPM is weakly bound to curses library" >&5
6907 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
6908 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 cf_cv_check_gpm_wgetch=unknown
6913 if test "$cross_compiling" != yes ; then
6915 cat >conftest.$ac_ext <<CF_EOF
6920 ${cf_cv_main_return:-return}(0);
6924 cf_save_LIBS="$LIBS"
6925 # This only works if we can look at the symbol table. If a shared
6926 # library is stripped for install, we cannot use that. So we're forced
6927 # to rely on the static library, noting that some packagers may not
6929 LIBS="-static -lgpm -dynamic $LIBS"
6930 if { (eval echo "$as_me:6930: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>&5
6933 echo "$as_me:6933: \$? = $ac_status" >&5
6934 (exit $ac_status); } ; then
6935 if { (eval echo "$as_me:6935: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:6938: \$? = $ac_status" >&5
6939 (exit $ac_status); } ; then
6940 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
6941 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
6942 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
6946 LIBS="$cf_save_LIBS"
6950 echo "$as_me:6950: result: $cf_cv_check_gpm_wgetch" >&5
6951 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
6953 if test "$cf_cv_check_gpm_wgetch" != yes ; then
6954 { echo "$as_me:6954: WARNING: GPM library is already linked with curses - read the FAQ" >&5
6955 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
6962 echo "$as_me:6962: checking if you want to use PCRE2 for regular-expressions" >&5
6963 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
6965 # Check whether --with-pcre2 or --without-pcre2 was given.
6966 if test "${with_pcre2+set}" = set; then
6967 withval="$with_pcre2"
6970 test -z "$with_pcre2" && with_pcre2=no
6971 echo "$as_me:6971: result: $with_pcre2" >&5
6972 echo "${ECHO_T}$with_pcre2" >&6
6974 if test "x$with_pcre2" != xno ; then
6976 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
6977 test -n "$verbose" && echo " found package libpcre2" 1>&6
6979 echo "${as_me:-configure}:6979: testing found package libpcre2 ..." 1>&5
6981 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
6982 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
6983 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
6985 echo "${as_me:-configure}:6985: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
6987 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
6989 echo "${as_me:-configure}:6989: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
6994 cf_new_extra_cppflags=
6996 for cf_add_cflags in $cf_pkgconfig_incs
6998 case $cf_fix_cppflags in
7000 case $cf_add_cflags in
7001 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7002 case $cf_add_cflags in
7004 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7006 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7007 && test -z "${cf_tst_cflags}" \
7008 && cf_fix_cppflags=yes
7010 if test $cf_fix_cppflags = yes ; then
7012 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7013 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7016 elif test "${cf_tst_cflags}" = "\"'" ; then
7018 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7019 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7029 case $cf_add_cflags in
7031 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7033 CPPFLAGS=`echo "$CPPFLAGS" | \
7034 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7035 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7040 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7041 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7048 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7049 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7056 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7057 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7059 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7061 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7062 && test -z "${cf_tst_cflags}" \
7063 && cf_fix_cppflags=no
7068 if test -n "$cf_new_cflags" ; then
7070 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7071 CFLAGS="${CFLAGS}$cf_new_cflags"
7075 if test -n "$cf_new_cppflags" ; then
7077 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7078 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7082 if test -n "$cf_new_extra_cppflags" ; then
7084 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7085 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7089 cf_add_libs="$cf_pkgconfig_libs"
7090 # Filter out duplicates - this happens with badly-designed ".pc" files...
7091 for cf_add_1lib in $LIBS
7093 for cf_add_2lib in $cf_add_libs
7095 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7101 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7110 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7111 test -n "$verbose" && echo " found package libpcre" 1>&6
7113 echo "${as_me:-configure}:7113: testing found package libpcre ..." 1>&5
7115 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7116 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7117 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7119 echo "${as_me:-configure}:7119: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7121 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7123 echo "${as_me:-configure}:7123: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7128 cf_new_extra_cppflags=
7130 for cf_add_cflags in $cf_pkgconfig_incs
7132 case $cf_fix_cppflags in
7134 case $cf_add_cflags in
7135 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7136 case $cf_add_cflags in
7138 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7141 && test -z "${cf_tst_cflags}" \
7142 && cf_fix_cppflags=yes
7144 if test $cf_fix_cppflags = yes ; then
7146 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7147 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7150 elif test "${cf_tst_cflags}" = "\"'" ; then
7152 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7153 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7163 case $cf_add_cflags in
7165 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7167 CPPFLAGS=`echo "$CPPFLAGS" | \
7168 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7169 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7174 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7175 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7182 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7183 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7190 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7191 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7193 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7195 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7196 && test -z "${cf_tst_cflags}" \
7197 && cf_fix_cppflags=no
7202 if test -n "$cf_new_cflags" ; then
7204 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7205 CFLAGS="${CFLAGS}$cf_new_cflags"
7209 if test -n "$cf_new_cppflags" ; then
7211 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7212 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7216 if test -n "$cf_new_extra_cppflags" ; then
7218 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7219 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7223 cf_add_libs="$cf_pkgconfig_libs"
7224 # Filter out duplicates - this happens with badly-designed ".pc" files...
7225 for cf_add_1lib in $LIBS
7227 for cf_add_2lib in $cf_add_libs
7229 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7235 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7244 { { echo "$as_me:7244: error: Cannot find PCRE2 library" >&5
7245 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7246 { (exit 1); exit 1; }; }
7251 cat >>confdefs.h <<\EOF
7252 #define HAVE_LIB_PCRE2 1
7255 # if pkgconfig gave no results, look for the libraries directly
7257 (*pcre2-posix*|*pcreposix*)
7260 echo "$as_me:7260: checking for regcomp in -lpcre2-posix" >&5
7261 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7262 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_check_lib_save_LIBS=$LIBS
7266 LIBS="-lpcre2-posix $LIBS"
7267 cat >conftest.$ac_ext <<_ACEOF
7268 #line 7268 "configure"
7269 #include "confdefs.h"
7271 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:7287: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>&5
7290 echo "$as_me:7290: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:7293: \"$ac_try\"") >&5
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_lib_pcre2_posix_regcomp=yes
7300 echo "$as_me: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7302 ac_cv_lib_pcre2_posix_regcomp=no
7304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7305 LIBS=$ac_check_lib_save_LIBS
7307 echo "$as_me:7307: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7308 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7309 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7311 cf_add_libs="-lpcre2-posix"
7312 # Filter out duplicates - this happens with badly-designed ".pc" files...
7313 for cf_add_1lib in $LIBS
7315 for cf_add_2lib in $cf_add_libs
7317 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7323 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7328 echo "$as_me:7328: checking for regcomp in -lpcreposix" >&5
7329 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7330 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 ac_check_lib_save_LIBS=$LIBS
7334 LIBS="-lpcreposix $LIBS"
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line 7336 "configure"
7337 #include "confdefs.h"
7339 /* Override any gcc2 internal prototype to avoid an error. */
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7354 rm -f conftest.$ac_objext conftest$ac_exeext
7355 if { (eval echo "$as_me:7355: \"$ac_link\"") >&5
7356 (eval $ac_link) 2>&5
7358 echo "$as_me:7358: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try='test -s conftest$ac_exeext'
7361 { (eval echo "$as_me:7361: \"$ac_try\"") >&5
7364 echo "$as_me:7364: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_lib_pcreposix_regcomp=yes
7368 echo "$as_me: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 ac_cv_lib_pcreposix_regcomp=no
7372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7373 LIBS=$ac_check_lib_save_LIBS
7375 echo "$as_me:7375: result: $ac_cv_lib_pcreposix_regcomp" >&5
7376 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7377 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7379 cf_add_libs="-lpcreposix"
7380 # Filter out duplicates - this happens with badly-designed ".pc" files...
7381 for cf_add_1lib in $LIBS
7383 for cf_add_2lib in $cf_add_libs
7385 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7391 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7396 { { echo "$as_me:7396: error: Cannot find PCRE2 POSIX library" >&5
7397 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7398 { (exit 1); exit 1; }; }
7406 # either way, check for the library header files
7408 for ac_header in pcre2-posix.h pcreposix.h
7410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7411 echo "$as_me:7411: checking for $ac_header" >&5
7412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line 7417 "configure"
7418 #include "confdefs.h"
7419 #include <$ac_header>
7421 if { (eval echo "$as_me:7421: \"$ac_cpp conftest.$ac_ext\"") >&5
7422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7424 egrep -v '^ *\+' conftest.er1 >conftest.err
7426 cat conftest.err >&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 (exit $ac_status); } >/dev/null; then
7429 if test -s conftest.err; then
7430 ac_cpp_err=$ac_c_preproc_warn_flag
7437 if test -z "$ac_cpp_err"; then
7438 eval "$as_ac_Header=yes"
7440 echo "$as_me: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7442 eval "$as_ac_Header=no"
7444 rm -f conftest.err conftest.$ac_ext
7446 echo "$as_me:7446: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<EOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458 # not everyone has "test -c"
7459 if test -c /dev/sysmouse 2>/dev/null ; then
7460 echo "$as_me:7460: checking if you want to use sysmouse" >&5
7461 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7463 # Check whether --with-sysmouse or --without-sysmouse was given.
7464 if test "${with_sysmouse+set}" = set; then
7465 withval="$with_sysmouse"
7466 cf_with_sysmouse=$withval
7468 cf_with_sysmouse=maybe
7470 if test "$cf_with_sysmouse" != no ; then
7471 cat >conftest.$ac_ext <<_ACEOF
7472 #line 7472 "configure"
7473 #include "confdefs.h"
7475 #include <osreldate.h>
7476 #if (__FreeBSD_version >= 400017)
7477 #include <sys/consio.h>
7478 #include <sys/fbio.h>
7480 #include <machine/console.h>
7487 struct mouse_info the_mouse;
7488 ioctl(0, CONS_MOUSECTL, &the_mouse);
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:7495: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>&5
7498 echo "$as_me:7498: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -s conftest.$ac_objext'
7501 { (eval echo "$as_me:7501: \"$ac_try\"") >&5
7504 echo "$as_me:7504: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 cf_with_sysmouse=yes
7508 echo "$as_me: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7512 rm -f conftest.$ac_objext conftest.$ac_ext
7514 echo "$as_me:7514: result: $cf_with_sysmouse" >&5
7515 echo "${ECHO_T}$cf_with_sysmouse" >&6
7516 test "$cf_with_sysmouse" = yes &&
7517 cat >>confdefs.h <<\EOF
7518 #define USE_SYSMOUSE 1
7523 # pretend that ncurses==ncursesw==ncursest
7524 echo "$as_me:7524: checking if you want to disable library suffixes" >&5
7525 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7527 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7528 if test "${enable_lib_suffixes+set}" = set; then
7529 enableval="$enable_lib_suffixes"
7530 test "$enableval" != no && enableval=yes
7531 if test "$enableval" != "yes" ; then
7532 disable_lib_suffixes=yes
7534 disable_lib_suffixes=no
7538 disable_lib_suffixes=no
7541 echo "$as_me:7541: result: $disable_lib_suffixes" >&5
7542 echo "${ECHO_T}$disable_lib_suffixes" >&6
7544 ### If we're building with rpath, try to link non-standard libs that way too.
7545 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7547 echo "$as_me:7547: checking if rpath-hack should be disabled" >&5
7548 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7550 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7551 if test "${enable_rpath_hack+set}" = set; then
7552 enableval="$enable_rpath_hack"
7553 test "$enableval" != no && enableval=yes
7554 if test "$enableval" != "yes" ; then
7555 cf_disable_rpath_hack=yes
7557 cf_disable_rpath_hack=no
7561 cf_disable_rpath_hack=no
7564 echo "$as_me:7564: result: $cf_disable_rpath_hack" >&5
7565 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7566 if test "$cf_disable_rpath_hack" = no ; then
7568 echo "$as_me:7568: checking for updated LDFLAGS" >&5
7569 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7570 if test -n "$LD_RPATH_OPT" ; then
7571 echo "$as_me:7571: result: maybe" >&5
7572 echo "${ECHO_T}maybe" >&6
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 echo "$as_me:7578: checking for $ac_word" >&5
7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7580 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 if test -n "$cf_ldd_prog"; then
7584 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7586 ac_save_IFS=$IFS; IFS=$ac_path_separator
7588 for ac_dir in $ac_dummy; do
7590 test -z "$ac_dir" && ac_dir=.
7591 $as_executable_p "$ac_dir/$ac_word" || continue
7592 ac_cv_prog_cf_ldd_prog="$ac_prog"
7593 echo "$as_me:7593: found $ac_dir/$ac_word" >&5
7599 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7600 if test -n "$cf_ldd_prog"; then
7601 echo "$as_me:7601: result: $cf_ldd_prog" >&5
7602 echo "${ECHO_T}$cf_ldd_prog" >&6
7604 echo "$as_me:7604: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7608 test -n "$cf_ldd_prog" && break
7610 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7612 cf_rpath_list="/usr/lib /lib"
7613 if test "$cf_ldd_prog" != no
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (eval echo "$as_me:7630: \"$ac_link\"") >&5
7631 (eval $ac_link) 2>&5
7633 echo "$as_me:7633: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:7636: \"$ac_try\"") >&5
7639 echo "$as_me:7639: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7642 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7644 echo "$as_me: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7649 # If we passed the link-test, but get a "not found" on a given library,
7650 # this could be due to inept reconfiguration of gcc to make it only
7651 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7652 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7653 # /usr/local libraries.
7654 if test -n "$cf_rpath_oops"
7656 for cf_rpath_src in $cf_rpath_oops
7658 for cf_rpath_dir in \
7663 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7665 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7667 echo "${as_me:-configure}:7667: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7669 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7677 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7679 echo "${as_me:-configure}:7679: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7681 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7683 echo "${as_me:-configure}:7683: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7686 for cf_rpath_src in $LDFLAGS
7688 case $cf_rpath_src in
7691 # check if this refers to a directory which we will ignore
7693 if test -n "$cf_rpath_list"
7695 for cf_rpath_item in $cf_rpath_list
7697 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7705 if test "$cf_rpath_skip" = no
7707 # transform the option
7708 if test "$LD_RPATH_OPT" = "-R " ; then
7709 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7711 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7714 # if we have not already added this, add it now
7715 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7716 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7718 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7720 echo "${as_me:-configure}:7720: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7722 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7727 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7729 LDFLAGS=$cf_rpath_dst
7731 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7733 echo "${as_me:-configure}:7733: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7735 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7737 echo "${as_me:-configure}:7737: testing ...checking LIBS $LIBS ..." 1>&5
7740 for cf_rpath_src in $LIBS
7742 case $cf_rpath_src in
7745 # check if this refers to a directory which we will ignore
7747 if test -n "$cf_rpath_list"
7749 for cf_rpath_item in $cf_rpath_list
7751 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7759 if test "$cf_rpath_skip" = no
7761 # transform the option
7762 if test "$LD_RPATH_OPT" = "-R " ; then
7763 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7765 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7768 # if we have not already added this, add it now
7769 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7770 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7772 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7774 echo "${as_me:-configure}:7774: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7776 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7781 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7785 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7787 echo "${as_me:-configure}:7787: testing ...checked LIBS $LIBS ..." 1>&5
7789 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7791 echo "${as_me:-configure}:7791: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7794 echo "$as_me:7794: result: no" >&5
7795 echo "${ECHO_T}no" >&6
7802 ###############################################################################
7804 ### use option --with-extra-suffix to append suffix to headers and libraries
7805 echo "$as_me:7805: checking if you wish to append extra suffix to header/library paths" >&5
7806 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7809 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7810 if test "${with_extra_suffix+set}" = set; then
7811 withval="$with_extra_suffix"
7816 EXTRA_SUFFIX=$cf_cv_abi_version
7819 EXTRA_SUFFIX=$withval
7824 echo "$as_me:7824: result: $EXTRA_SUFFIX" >&5
7825 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7827 ### use option --disable-overwrite to leave out the link to -lcurses
7828 echo "$as_me:7828: checking if you wish to install ncurses overwriting curses" >&5
7829 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7831 # Check whether --enable-overwrite or --disable-overwrite was given.
7832 if test "${enable_overwrite+set}" = set; then
7833 enableval="$enable_overwrite"
7834 with_overwrite=$enableval
7836 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7838 echo "$as_me:7838: result: $with_overwrite" >&5
7839 echo "${ECHO_T}$with_overwrite" >&6
7841 echo "$as_me:7841: checking if external terminfo-database is used" >&5
7842 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7844 # Check whether --enable-database or --disable-database was given.
7845 if test "${enable_database+set}" = set; then
7846 enableval="$enable_database"
7847 use_database=$enableval
7851 echo "$as_me:7851: result: $use_database" >&5
7852 echo "${ECHO_T}$use_database" >&6
7856 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7859 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7863 NCURSES_USE_DATABASE=0
7864 if test "$use_database" != no ; then
7865 NCURSES_USE_DATABASE=1
7867 echo "$as_me:7867: checking which terminfo source-file will be installed" >&5
7868 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7870 # Check whether --with-database or --without-database was given.
7871 if test "${with_database+set}" = set; then
7872 withval="$with_database"
7873 TERMINFO_SRC=$withval
7875 echo "$as_me:7875: result: $TERMINFO_SRC" >&5
7876 echo "${ECHO_T}$TERMINFO_SRC" >&6
7878 echo "$as_me:7878: checking whether to use hashed database instead of directory/tree" >&5
7879 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7881 # Check whether --with-hashed-db or --without-hashed-db was given.
7882 if test "${with_hashed_db+set}" = set; then
7883 withval="$with_hashed_db"
7888 echo "$as_me:7888: result: $with_hashed_db" >&5
7889 echo "${ECHO_T}$with_hashed_db" >&6
7894 echo "$as_me:7894: checking for list of fallback descriptions" >&5
7895 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7897 # Check whether --with-fallbacks or --without-fallbacks was given.
7898 if test "${with_fallbacks+set}" = set; then
7899 withval="$with_fallbacks"
7900 with_fallback=$withval
7904 echo "$as_me:7904: result: $with_fallback" >&5
7905 echo "${ECHO_T}$with_fallback" >&6
7907 case ".$with_fallback" in
7912 { echo "$as_me:7912: WARNING: expected a list of terminal descriptions" >&5
7913 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
7916 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
7921 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
7923 echo "$as_me:7923: checking if you want modern xterm or antique" >&5
7924 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7926 # Check whether --with-xterm-new or --without-xterm-new was given.
7927 if test "${with_xterm_new+set}" = set; then
7928 withval="$with_xterm_new"
7929 with_xterm_new=$withval
7933 case $with_xterm_new in
7934 (no) with_xterm_new=xterm-old;;
7935 (*) with_xterm_new=xterm-new;;
7937 echo "$as_me:7937: result: $with_xterm_new" >&5
7938 echo "${ECHO_T}$with_xterm_new" >&6
7939 WHICH_XTERM=$with_xterm_new
7941 echo "$as_me:7941: checking if xterm backspace sends BS or DEL" >&5
7942 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7944 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7945 if test "${with_xterm_kbs+set}" = set; then
7946 withval="$with_xterm_kbs"
7947 with_xterm_kbs=$withval
7951 case x$with_xterm_kbs in
7952 (xyes|xno|xBS|xbs|x8)
7959 with_xterm_kbs=$withval
7962 echo "$as_me:7962: result: $with_xterm_kbs" >&5
7963 echo "${ECHO_T}$with_xterm_kbs" >&6
7964 XTERM_KBS=$with_xterm_kbs
7967 if test "$use_database" = no ; then
7968 TERMINFO="${datadir}/terminfo"
7972 echo "$as_me:7972: checking for list of terminfo directories" >&5
7973 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7975 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7976 if test "${with_terminfo_dirs+set}" = set; then
7977 withval="$with_terminfo_dirs"
7980 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7982 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7984 for cf_src_path in $withval
7987 if test "x$prefix" != xNONE; then
7988 cf_path_syntax="$prefix"
7990 cf_path_syntax="$ac_default_prefix"
7993 case ".$cf_src_path" in
7998 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8000 (.\${*prefix}*|.\${*dir}*)
8001 eval cf_src_path="$cf_src_path"
8002 case ".$cf_src_path" in
8004 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8009 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8012 { { echo "$as_me:8012: error: expected a pathname, not \"$cf_src_path\"" >&5
8013 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8014 { (exit 1); exit 1; }; }
8018 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8019 cf_dst_path="${cf_dst_path}${cf_src_path}"
8023 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8024 # so we have to check/work around. We do prefer the result of "eval"...
8025 eval cf_dst_eval="$cf_dst_path"
8026 case "x$cf_dst_eval" in
8028 TERMINFO_DIRS=$cf_dst_path
8031 TERMINFO_DIRS="$cf_dst_eval"
8035 echo "$as_me:8035: result: $TERMINFO_DIRS" >&5
8036 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8037 test -n "$TERMINFO_DIRS" &&
8038 cat >>confdefs.h <<EOF
8039 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8042 case "x$TERMINFO" in
8044 { echo "$as_me:8044: WARNING: ignoring non-directory/file TERMINFO value" >&5
8045 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8050 echo "$as_me:8050: checking for default terminfo directory" >&5
8051 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8053 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8054 if test "${with_default_terminfo_dir+set}" = set; then
8055 withval="$with_default_terminfo_dir"
8058 withval="${TERMINFO:-${datadir}/terminfo}"
8059 fi; if test -n "${datadir}/terminfo" ; then
8061 if test "x$prefix" != xNONE; then
8062 cf_path_syntax="$prefix"
8064 cf_path_syntax="$ac_default_prefix"
8072 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8074 (.\${*prefix}*|.\${*dir}*)
8075 eval withval="$withval"
8078 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8083 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8086 { { echo "$as_me:8086: error: expected a pathname, not \"$withval\"" >&5
8087 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8088 { (exit 1); exit 1; }; }
8093 eval TERMINFO="$withval"
8095 echo "$as_me:8095: result: $TERMINFO" >&5
8096 echo "${ECHO_T}$TERMINFO" >&6
8098 cat >>confdefs.h <<EOF
8099 #define TERMINFO "$TERMINFO"
8104 ### use option --disable-big-core to make tic run on small machines
8105 ### We need 4Mb, check if we can allocate 50% more than that.
8106 echo "$as_me:8106: checking if big-core option selected" >&5
8107 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8109 # Check whether --enable-big-core or --disable-big-core was given.
8110 if test "${enable_big_core+set}" = set; then
8111 enableval="$enable_big_core"
8112 with_big_core=$enableval
8114 if test "$cross_compiling" = yes; then
8117 cat >conftest.$ac_ext <<_ACEOF
8118 #line 8118 "configure"
8119 #include "confdefs.h"
8124 unsigned long n = 6000000L;
8125 char *s = malloc(n);
8128 ${cf_cv_main_return:-return}(s == 0);
8131 rm -f conftest$ac_exeext
8132 if { (eval echo "$as_me:8132: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>&5
8135 echo "$as_me:8135: \$? = $ac_status" >&5
8136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8137 { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8140 echo "$as_me:8140: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8144 echo "$as_me: program exited with status $ac_status" >&5
8145 echo "$as_me: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8149 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8152 echo "$as_me:8152: result: $with_big_core" >&5
8153 echo "${ECHO_T}$with_big_core" >&6
8154 test "x$with_big_core" = "xyes" &&
8155 cat >>confdefs.h <<\EOF
8156 #define HAVE_BIG_CORE 1
8159 ### ISO C only guarantees 512-char strings, we have tables which load faster
8160 ### when constructed using "big" strings. More than the C compiler, the awk
8161 ### program is a limit on most vendor UNIX systems. Check that we can build.
8162 echo "$as_me:8162: checking if big-strings option selected" >&5
8163 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8165 # Check whether --enable-big-strings or --disable-big-strings was given.
8166 if test "${enable_big_strings+set}" = set; then
8167 enableval="$enable_big_strings"
8168 with_big_strings=$enableval
8173 eval with_big_strings=no
8176 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8177 | $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
8178 eval with_big_strings=yes
8180 eval with_big_strings=no
8186 echo "$as_me:8186: result: $with_big_strings" >&5
8187 echo "${ECHO_T}$with_big_strings" >&6
8190 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8192 ### use option --enable-termcap to compile in the termcap fallback support
8193 echo "$as_me:8193: checking if you want termcap-fallback support" >&5
8194 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8196 # Check whether --enable-termcap or --disable-termcap was given.
8197 if test "${enable_termcap+set}" = set; then
8198 enableval="$enable_termcap"
8199 with_termcap=$enableval
8203 echo "$as_me:8203: result: $with_termcap" >&5
8204 echo "${ECHO_T}$with_termcap" >&6
8206 NCURSES_USE_TERMCAP=0
8207 if test "x$with_termcap" != "xyes" ; then
8208 if test "$use_database" = no ; then
8209 if test -z "$with_fallback" ; then
8210 { { echo "$as_me:8210: error: You have disabled the database w/o specifying fallbacks" >&5
8211 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8212 { (exit 1); exit 1; }; }
8216 cat >>confdefs.h <<\EOF
8217 #define PURE_TERMINFO 1
8222 if test "$with_ticlib" != no ; then
8223 { { echo "$as_me:8223: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8224 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8225 { (exit 1); exit 1; }; }
8228 NCURSES_USE_TERMCAP=1
8229 echo "$as_me:8229: checking for list of termcap files" >&5
8230 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8232 # Check whether --with-termpath or --without-termpath was given.
8233 if test "${with_termpath+set}" = set; then
8234 withval="$with_termpath"
8237 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
8239 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8241 for cf_src_path in $withval
8244 if test "x$prefix" != xNONE; then
8245 cf_path_syntax="$prefix"
8247 cf_path_syntax="$ac_default_prefix"
8250 case ".$cf_src_path" in
8255 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8257 (.\${*prefix}*|.\${*dir}*)
8258 eval cf_src_path="$cf_src_path"
8259 case ".$cf_src_path" in
8261 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8266 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8269 { { echo "$as_me:8269: error: expected a pathname, not \"$cf_src_path\"" >&5
8270 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8271 { (exit 1); exit 1; }; }
8275 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8276 cf_dst_path="${cf_dst_path}${cf_src_path}"
8280 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8281 # so we have to check/work around. We do prefer the result of "eval"...
8282 eval cf_dst_eval="$cf_dst_path"
8283 case "x$cf_dst_eval" in
8285 TERMPATH=$cf_dst_path
8288 TERMPATH="$cf_dst_eval"
8292 echo "$as_me:8292: result: $TERMPATH" >&5
8293 echo "${ECHO_T}$TERMPATH" >&6
8294 test -n "$TERMPATH" &&
8295 cat >>confdefs.h <<EOF
8296 #define TERMPATH "$TERMPATH"
8299 ### use option --enable-getcap to use a hacked getcap for reading termcaps
8300 echo "$as_me:8300: checking if fast termcap-loader is needed" >&5
8301 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
8303 # Check whether --enable-getcap or --disable-getcap was given.
8304 if test "${enable_getcap+set}" = set; then
8305 enableval="$enable_getcap"
8306 with_getcap=$enableval
8310 echo "$as_me:8310: result: $with_getcap" >&5
8311 echo "${ECHO_T}$with_getcap" >&6
8312 test "x$with_getcap" = "xyes" &&
8313 cat >>confdefs.h <<\EOF
8314 #define USE_GETCAP 1
8317 echo "$as_me:8317: checking if translated termcaps will be cached in ~/.terminfo" >&5
8318 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
8320 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
8321 if test "${enable_getcap_cache+set}" = set; then
8322 enableval="$enable_getcap_cache"
8323 with_getcap_cache=$enableval
8325 with_getcap_cache=no
8327 echo "$as_me:8327: result: $with_getcap_cache" >&5
8328 echo "${ECHO_T}$with_getcap_cache" >&6
8329 test "x$with_getcap_cache" = "xyes" &&
8330 cat >>confdefs.h <<\EOF
8331 #define USE_GETCAP_CACHE 1
8336 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
8337 echo "$as_me:8337: checking if ~/.terminfo is wanted" >&5
8338 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
8340 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
8341 if test "${enable_home_terminfo+set}" = set; then
8342 enableval="$enable_home_terminfo"
8343 with_home_terminfo=$enableval
8345 with_home_terminfo=yes
8347 echo "$as_me:8347: result: $with_home_terminfo" >&5
8348 echo "${ECHO_T}$with_home_terminfo" >&6
8349 test "x$with_home_terminfo" = "xyes" &&
8350 cat >>confdefs.h <<\EOF
8351 #define USE_HOME_TERMINFO 1
8354 echo "$as_me:8354: checking if you want to use restricted environment when running as root" >&5
8355 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
8357 # Check whether --enable-root-environ or --disable-root-environ was given.
8358 if test "${enable_root_environ+set}" = set; then
8359 enableval="$enable_root_environ"
8360 with_root_environ=$enableval
8362 with_root_environ=yes
8364 echo "$as_me:8364: result: $with_root_environ" >&5
8365 echo "${ECHO_T}$with_root_environ" >&6
8366 test "x$with_root_environ" = xyes &&
8367 cat >>confdefs.h <<\EOF
8368 #define USE_ROOT_ENVIRON 1
8371 ### Use option --enable-symlinks to make tic use symlinks, not hard links
8372 ### to reduce storage requirements for the terminfo database.
8378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8379 echo "$as_me:8379: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line 8385 "configure"
8386 #include "confdefs.h"
8387 #include <$ac_header>
8389 if { (eval echo "$as_me:8389: \"$ac_cpp conftest.$ac_ext\"") >&5
8390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392 egrep -v '^ *\+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 (exit $ac_status); } >/dev/null; then
8397 if test -s conftest.err; then
8398 ac_cpp_err=$ac_c_preproc_warn_flag
8405 if test -z "$ac_cpp_err"; then
8406 eval "$as_ac_Header=yes"
8408 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 eval "$as_ac_Header=no"
8412 rm -f conftest.err conftest.$ac_ext
8414 echo "$as_me:8414: result: `eval echo '${'$as_ac_Header'}'`" >&5
8415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8417 cat >>confdefs.h <<EOF
8418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 echo "$as_me:8429: checking for $ac_func" >&5
8430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8431 if eval "test \"\${$as_ac_var+set}\" = set"; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8435 #line 8435 "configure"
8436 #include "confdefs.h"
8437 #define $ac_func autoconf_temporary
8438 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8445 /* We use char because int might match the return type of a gcc2
8446 builtin and then its argument prototype would still apply. */
8447 char $ac_func (void);
8453 /* The GNU C library defines stubs for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8457 #error found stub for $ac_func
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:8466: \"$ac_link\"") >&5
8467 (eval $ac_link) 2>&5
8469 echo "$as_me:8469: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (eval echo "$as_me:8472: \"$ac_try\"") >&5
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 eval "$as_ac_var=yes"
8479 echo "$as_me: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8481 eval "$as_ac_var=no"
8483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8485 echo "$as_me:8485: result: `eval echo '${'$as_ac_var'}'`" >&5
8486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8487 if test `eval echo '${'$as_ac_var'}'` = yes; then
8488 cat >>confdefs.h <<EOF
8489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8495 if test "$cross_compiling" = yes ; then
8501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8502 echo "$as_me:8502: checking for $ac_func" >&5
8503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_var+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.$ac_ext <<_ACEOF
8508 #line 8508 "configure"
8509 #include "confdefs.h"
8510 #define $ac_func autoconf_temporary
8511 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8520 char $ac_func (void);
8526 /* The GNU C library defines stubs for functions which it implements
8527 to always fail with ENOSYS. Some functions are actually named
8528 something starting with __ and the normal name is an alias. */
8529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8530 #error found stub for $ac_func
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:8539: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 eval "$as_ac_var=yes"
8552 echo "$as_me: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 eval "$as_ac_var=no"
8556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8558 echo "$as_me:8558: result: `eval echo '${'$as_ac_var'}'`" >&5
8559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8560 if test `eval echo '${'$as_ac_var'}'` = yes; then
8561 cat >>confdefs.h <<EOF
8562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8569 echo "$as_me:8569: checking if link/symlink functions work" >&5
8570 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
8571 if test "${cf_cv_link_funcs+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 for cf_func in link symlink ; do
8577 if test "$cross_compiling" = yes; then
8579 eval 'ac_cv_func_'$cf_func'=error'
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line 8582 "configure"
8583 #include "confdefs.h"
8585 #include <sys/types.h>
8586 #include <sys/stat.h>
8587 #ifdef HAVE_UNISTD_H
8593 char *src = "config.log";
8594 char *dst = "conftest.chk";
8599 fail = ($cf_func("config.log", "conftest.chk") < 0)
8600 || (stat(dst, &dst_sb) < 0)
8601 || (dst_sb.st_mtime != src_sb.st_mtime);
8607 ${cf_cv_main_return:-return} (fail);
8611 rm -f conftest$ac_exeext
8612 if { (eval echo "$as_me:8612: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>&5
8615 echo "$as_me:8615: \$? = $ac_status" >&5
8616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8617 { (eval echo "$as_me:8617: \"$ac_try\"") >&5
8620 echo "$as_me:8620: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8623 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
8624 eval 'ac_cv_func_'$cf_func'=yes'
8626 echo "$as_me: program exited with status $ac_status" >&5
8627 echo "$as_me: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 eval 'ac_cv_func_'$cf_func'=no'
8632 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
8638 echo "$as_me:8638: result: $cf_cv_link_funcs" >&5
8639 echo "${ECHO_T}$cf_cv_link_funcs" >&6
8640 test "$ac_cv_func_link" = yes &&
8641 cat >>confdefs.h <<\EOF
8645 test "$ac_cv_func_symlink" = yes &&
8646 cat >>confdefs.h <<\EOF
8647 #define HAVE_SYMLINK 1
8655 # soft links (symbolic links) are useful for some systems where hard links do
8656 # not work, or to make it simpler to copy terminfo trees around.
8657 if test "x$ac_cv_func_symlink" = xyes ; then
8658 echo "$as_me:8658: checking if tic should use symbolic links" >&5
8659 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
8661 # Check whether --enable-symlinks or --disable-symlinks was given.
8662 if test "${enable_symlinks+set}" = set; then
8663 enableval="$enable_symlinks"
8664 with_symlinks=$enableval
8668 echo "$as_me:8668: result: $with_symlinks" >&5
8669 echo "${ECHO_T}$with_symlinks" >&6
8672 # If we have hard links and did not choose to use soft links instead, there is
8673 # no reason to make this choice optional - use the hard links.
8674 if test "$with_symlinks" = no ; then
8675 echo "$as_me:8675: checking if tic should use hard links" >&5
8676 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
8677 if test "x$ac_cv_func_link" = xyes ; then
8682 echo "$as_me:8682: result: $with_links" >&5
8683 echo "${ECHO_T}$with_links" >&6
8686 test "x$with_links" = xyes &&
8687 cat >>confdefs.h <<\EOF
8691 test "x$with_symlinks" = xyes &&
8692 cat >>confdefs.h <<\EOF
8693 #define USE_SYMLINKS 1
8696 ### use option --enable-broken-linker to force on use of broken-linker support
8697 echo "$as_me:8697: checking if you want broken-linker support code" >&5
8698 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
8700 # Check whether --enable-broken_linker or --disable-broken_linker was given.
8701 if test "${enable_broken_linker+set}" = set; then
8702 enableval="$enable_broken_linker"
8703 with_broken_linker=$enableval
8705 with_broken_linker=${BROKEN_LINKER:-no}
8707 echo "$as_me:8707: result: $with_broken_linker" >&5
8708 echo "${ECHO_T}$with_broken_linker" >&6
8711 if test "x$with_broken_linker" = xyes ; then
8713 cat >>confdefs.h <<\EOF
8714 #define BROKEN_LINKER 1
8718 elif test "$DFT_LWR_MODEL" = shared ; then
8719 case $cf_cv_system_name in
8722 cat >>confdefs.h <<\EOF
8723 #define BROKEN_LINKER 1
8727 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
8729 echo "${as_me:-configure}:8729: testing cygwin linker is broken anyway ..." 1>&5
8735 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
8736 echo "$as_me:8736: checking if tputs should process BSD-style prefix padding" >&5
8737 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
8739 # Check whether --enable-bsdpad or --disable-bsdpad was given.
8740 if test "${enable_bsdpad+set}" = set; then
8741 enableval="$enable_bsdpad"
8742 with_bsdpad=$enableval
8746 echo "$as_me:8746: result: $with_bsdpad" >&5
8747 echo "${ECHO_T}$with_bsdpad" >&6
8748 test "x$with_bsdpad" = xyes &&
8749 cat >>confdefs.h <<\EOF
8753 ### use option --enable-widec to turn on use of wide-character support
8762 # Check to define _XOPEN_SOURCE "automatically"
8763 CPPFLAGS_before_XOPEN="$CPPFLAGS"
8765 echo "$as_me:8765: checking if the POSIX test-macros are already defined" >&5
8766 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
8767 if test "${cf_cv_posix_visible+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line 8772 "configure"
8773 #include "confdefs.h"
8779 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
8780 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
8781 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
8782 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
8783 #error conflicting symbols found
8790 rm -f conftest.$ac_objext
8791 if { (eval echo "$as_me:8791: \"$ac_compile\"") >&5
8792 (eval $ac_compile) 2>&5
8794 echo "$as_me:8794: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -s conftest.$ac_objext'
8797 { (eval echo "$as_me:8797: \"$ac_try\"") >&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 cf_cv_posix_visible=no
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 cf_cv_posix_visible=yes
8808 rm -f conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:8811: result: $cf_cv_posix_visible" >&5
8812 echo "${ECHO_T}$cf_cv_posix_visible" >&6
8814 if test "$cf_cv_posix_visible" = no; then
8817 cf_POSIX_C_SOURCE=199506L
8822 cf_xopen_source="-D_ALL_SOURCE"
8828 cf_xopen_source="-D_APPLE_C_SOURCE"
8831 cf_xopen_source="-D_DARWIN_C_SOURCE"
8834 (freebsd*|dragonfly*|midnightbsd*)
8835 # 5.x headers associate
8836 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
8837 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
8838 cf_POSIX_C_SOURCE=200112L
8840 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8843 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8846 cf_xopen_source="-D_HPUX_SOURCE"
8849 cf_xopen_source="-D_SGI_SOURCE"
8852 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
8854 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
8856 echo "$as_me:8856: checking if this is the GNU C library" >&5
8857 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
8858 if test "${cf_cv_gnu_library+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 cat >conftest.$ac_ext <<_ACEOF
8863 #line 8863 "configure"
8864 #include "confdefs.h"
8865 #include <sys/types.h>
8870 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
8872 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
8875 # error not GNU C library
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:8882: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>&5
8885 echo "$as_me:8885: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:8888: \"$ac_try\"") >&5
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 cf_cv_gnu_library=yes
8895 echo "$as_me: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8897 cf_cv_gnu_library=no
8899 rm -f conftest.$ac_objext conftest.$ac_ext
8902 echo "$as_me:8902: result: $cf_cv_gnu_library" >&5
8903 echo "${ECHO_T}$cf_cv_gnu_library" >&6
8905 if test x$cf_cv_gnu_library = xyes; then
8907 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
8908 # was changed to help a little. newlib incorporated the change about 4
8910 echo "$as_me:8910: checking if _DEFAULT_SOURCE can be used as a basis" >&5
8911 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
8912 if test "${cf_cv_gnu_library_219+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8919 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
8921 cat >conftest.$ac_ext <<_ACEOF
8922 #line 8922 "configure"
8923 #include "confdefs.h"
8924 #include <sys/types.h>
8929 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
8931 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
8934 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
8940 rm -f conftest.$ac_objext
8941 if { (eval echo "$as_me:8941: \"$ac_compile\"") >&5
8942 (eval $ac_compile) 2>&5
8944 echo "$as_me:8944: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (eval echo "$as_me:8947: \"$ac_try\"") >&5
8950 echo "$as_me:8950: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 cf_cv_gnu_library_219=yes
8954 echo "$as_me: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8956 cf_cv_gnu_library_219=no
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8962 echo "$as_me:8962: result: $cf_cv_gnu_library_219" >&5
8963 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
8965 if test "x$cf_cv_gnu_library_219" = xyes; then
8967 echo "$as_me:8967: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
8968 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
8969 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cf_new_extra_cppflags=
8978 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
8980 case $cf_fix_cppflags in
8982 case $cf_add_cflags in
8983 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8984 case $cf_add_cflags in
8986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8989 && test -z "${cf_tst_cflags}" \
8990 && cf_fix_cppflags=yes
8992 if test $cf_fix_cppflags = yes ; then
8994 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8995 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8998 elif test "${cf_tst_cflags}" = "\"'" ; then
9000 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9001 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9011 case $cf_add_cflags in
9013 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9015 CPPFLAGS=`echo "$CPPFLAGS" | \
9016 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9017 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9022 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9023 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9030 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9031 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9038 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9039 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9043 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9044 && test -z "${cf_tst_cflags}" \
9045 && cf_fix_cppflags=no
9050 if test -n "$cf_new_cflags" ; then
9052 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9053 CFLAGS="${CFLAGS}$cf_new_cflags"
9057 if test -n "$cf_new_cppflags" ; then
9059 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9060 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9064 if test -n "$cf_new_extra_cppflags" ; then
9066 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9067 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 #line 9072 "configure"
9073 #include "confdefs.h"
9076 #include <sys/types.h>
9082 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9085 # error GNU C library is too old
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:9092: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>&5
9095 echo "$as_me:9095: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -s conftest.$ac_objext'
9098 { (eval echo "$as_me:9098: \"$ac_try\"") >&5
9101 echo "$as_me:9101: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 cf_cv_gnu_dftsrc_219=yes
9105 echo "$as_me: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9107 cf_cv_gnu_dftsrc_219=no
9109 rm -f conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:9112: result: $cf_cv_gnu_dftsrc_219" >&5
9113 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9114 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9116 cf_cv_gnu_dftsrc_219=maybe
9119 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9121 echo "$as_me:9121: checking if we must define _GNU_SOURCE" >&5
9122 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9123 if test "${cf_cv_gnu_source+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line 9128 "configure"
9129 #include "confdefs.h"
9130 #include <sys/types.h>
9135 #ifndef _XOPEN_SOURCE
9136 #error expected _XOPEN_SOURCE to be defined
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:9143: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>&5
9146 echo "$as_me:9146: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -s conftest.$ac_objext'
9149 { (eval echo "$as_me:9149: \"$ac_try\"") >&5
9152 echo "$as_me:9152: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9156 echo "$as_me: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9163 cf_new_extra_cppflags=
9165 for cf_add_cflags in -D_GNU_SOURCE
9167 case $cf_fix_cppflags in
9169 case $cf_add_cflags in
9170 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9171 case $cf_add_cflags in
9173 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9175 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9176 && test -z "${cf_tst_cflags}" \
9177 && cf_fix_cppflags=yes
9179 if test $cf_fix_cppflags = yes ; then
9181 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9182 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9185 elif test "${cf_tst_cflags}" = "\"'" ; then
9187 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9188 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9198 case $cf_add_cflags in
9200 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9202 CPPFLAGS=`echo "$CPPFLAGS" | \
9203 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9204 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9209 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9210 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9217 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9218 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9225 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9226 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9228 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9230 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9231 && test -z "${cf_tst_cflags}" \
9232 && cf_fix_cppflags=no
9237 if test -n "$cf_new_cflags" ; then
9239 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9240 CFLAGS="${CFLAGS}$cf_new_cflags"
9244 if test -n "$cf_new_cppflags" ; then
9246 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9247 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9251 if test -n "$cf_new_extra_cppflags" ; then
9253 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9254 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9261 #include <sys/types.h>
9266 #ifdef _XOPEN_SOURCE
9267 #error expected _XOPEN_SOURCE to be undefined
9273 rm -f conftest.$ac_objext
9274 if { (eval echo "$as_me:9274: \"$ac_compile\"") >&5
9275 (eval $ac_compile) 2>&5
9277 echo "$as_me:9277: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -s conftest.$ac_objext'
9280 { (eval echo "$as_me:9280: \"$ac_try\"") >&5
9283 echo "$as_me:9283: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 cf_cv_gnu_source=yes
9291 rm -f conftest.$ac_objext conftest.$ac_ext
9295 rm -f conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:9298: result: $cf_cv_gnu_source" >&5
9299 echo "${ECHO_T}$cf_cv_gnu_source" >&6
9301 if test "$cf_cv_gnu_source" = yes
9303 echo "$as_me:9303: checking if we should also define _DEFAULT_SOURCE" >&5
9304 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
9305 if test "${cf_cv_default_source+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9310 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
9312 cat >conftest.$ac_ext <<_ACEOF
9313 #line 9313 "configure"
9314 #include "confdefs.h"
9315 #include <sys/types.h>
9320 #ifdef _DEFAULT_SOURCE
9321 #error expected _DEFAULT_SOURCE to be undefined
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:9328: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>&5
9331 echo "$as_me:9331: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -s conftest.$ac_objext'
9334 { (eval echo "$as_me:9334: \"$ac_try\"") >&5
9337 echo "$as_me:9337: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 cf_cv_default_source=no
9341 echo "$as_me: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 cf_cv_default_source=yes
9345 rm -f conftest.$ac_objext conftest.$ac_ext
9348 echo "$as_me:9348: result: $cf_cv_default_source" >&5
9349 echo "${ECHO_T}$cf_cv_default_source" >&6
9350 if test "$cf_cv_default_source" = yes
9353 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9354 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9364 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
9367 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
9370 if test "$cf_cv_posix_visible" = no; then
9372 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9374 cf_save_CFLAGS="$CFLAGS"
9375 cf_save_CPPFLAGS="$CPPFLAGS"
9377 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9378 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9379 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9381 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9382 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9383 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9385 echo "$as_me:9385: checking if we should define _POSIX_C_SOURCE" >&5
9386 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9387 if test "${cf_cv_posix_c_source+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 echo "${as_me:-configure}:9391: testing if the symbol is already defined go no further ..." 1>&5
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line 9394 "configure"
9395 #include "confdefs.h"
9396 #include <sys/types.h>
9401 #ifndef _POSIX_C_SOURCE
9408 rm -f conftest.$ac_objext
9409 if { (eval echo "$as_me:9409: \"$ac_compile\"") >&5
9410 (eval $ac_compile) 2>&5
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -s conftest.$ac_objext'
9415 { (eval echo "$as_me:9415: \"$ac_try\"") >&5
9418 echo "$as_me:9418: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 cf_cv_posix_c_source=no
9422 echo "$as_me: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 cf_want_posix_source=no
9425 case .$cf_POSIX_C_SOURCE in
9427 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9430 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9431 cf_want_posix_source=yes
9434 cf_want_posix_source=yes
9437 if test "$cf_want_posix_source" = yes ; then
9438 cat >conftest.$ac_ext <<_ACEOF
9439 #line 9439 "configure"
9440 #include "confdefs.h"
9441 #include <sys/types.h>
9446 #ifdef _POSIX_SOURCE
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:9454: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:9460: \"$ac_try\"") >&5
9463 echo "$as_me:9463: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
9471 rm -f conftest.$ac_objext conftest.$ac_ext
9474 echo "${as_me:-configure}:9474: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
9476 CFLAGS="$cf_trim_CFLAGS"
9477 CPPFLAGS="$cf_trim_CPPFLAGS"
9479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9480 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
9482 echo "${as_me:-configure}:9482: testing if the second compile does not leave our definition intact error ..." 1>&5
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line 9485 "configure"
9486 #include "confdefs.h"
9487 #include <sys/types.h>
9492 #ifndef _POSIX_C_SOURCE
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:9500: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>&5
9503 echo "$as_me:9503: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -s conftest.$ac_objext'
9506 { (eval echo "$as_me:9506: \"$ac_try\"") >&5
9509 echo "$as_me:9509: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9513 echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 cf_cv_posix_c_source=no
9517 rm -f conftest.$ac_objext conftest.$ac_ext
9518 CFLAGS="$cf_save_CFLAGS"
9519 CPPFLAGS="$cf_save_CPPFLAGS"
9522 rm -f conftest.$ac_objext conftest.$ac_ext
9525 echo "$as_me:9525: result: $cf_cv_posix_c_source" >&5
9526 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
9528 if test "$cf_cv_posix_c_source" != no ; then
9529 CFLAGS="$cf_trim_CFLAGS"
9530 CPPFLAGS="$cf_trim_CPPFLAGS"
9535 cf_new_extra_cppflags=
9537 for cf_add_cflags in $cf_cv_posix_c_source
9539 case $cf_fix_cppflags in
9541 case $cf_add_cflags in
9542 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9543 case $cf_add_cflags in
9545 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9547 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9548 && test -z "${cf_tst_cflags}" \
9549 && cf_fix_cppflags=yes
9551 if test $cf_fix_cppflags = yes ; then
9553 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9554 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9557 elif test "${cf_tst_cflags}" = "\"'" ; then
9559 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9560 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9570 case $cf_add_cflags in
9572 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9574 CPPFLAGS=`echo "$CPPFLAGS" | \
9575 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9576 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9581 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9582 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9589 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9590 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9600 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9602 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9603 && test -z "${cf_tst_cflags}" \
9604 && cf_fix_cppflags=no
9609 if test -n "$cf_new_cflags" ; then
9611 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9612 CFLAGS="${CFLAGS}$cf_new_cflags"
9616 if test -n "$cf_new_cppflags" ; then
9618 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9619 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9623 if test -n "$cf_new_extra_cppflags" ; then
9625 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9626 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9632 fi # cf_cv_posix_visible
9636 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
9639 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
9640 cf_xopen_source="-D_BSD_SOURCE"
9644 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
9647 cf_xopen_source="-D_OSF_SOURCE"
9650 cf_xopen_source="-D_QNX_SOURCE"
9653 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
9656 cf_xopen_source="-D__EXTENSIONS__"
9657 cf_cv_xopen_source=broken
9659 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
9665 echo "$as_me:9665: checking if we should define _XOPEN_SOURCE" >&5
9666 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9667 if test "${cf_cv_xopen_source+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 cat >conftest.$ac_ext <<_ACEOF
9672 #line 9672 "configure"
9673 #include "confdefs.h"
9677 #include <sys/types.h>
9683 #ifndef _XOPEN_SOURCE
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_xopen_source=no
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9708 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9709 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9711 cat >conftest.$ac_ext <<_ACEOF
9712 #line 9712 "configure"
9713 #include "confdefs.h"
9717 #include <sys/types.h>
9723 #ifdef _XOPEN_SOURCE
9730 rm -f conftest.$ac_objext
9731 if { (eval echo "$as_me:9731: \"$ac_compile\"") >&5
9732 (eval $ac_compile) 2>&5
9734 echo "$as_me:9734: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -s conftest.$ac_objext'
9737 { (eval echo "$as_me:9737: \"$ac_try\"") >&5
9740 echo "$as_me:9740: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 cf_cv_xopen_source=no
9744 echo "$as_me: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9748 rm -f conftest.$ac_objext conftest.$ac_ext
9752 rm -f conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:9755: result: $cf_cv_xopen_source" >&5
9756 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9758 if test "$cf_cv_xopen_source" != no ; then
9760 CFLAGS=`echo "$CFLAGS" | \
9761 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9762 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9764 CPPFLAGS=`echo "$CPPFLAGS" | \
9765 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9766 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9768 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9773 cf_new_extra_cppflags=
9775 for cf_add_cflags in $cf_temp_xopen_source
9777 case $cf_fix_cppflags in
9779 case $cf_add_cflags in
9780 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9781 case $cf_add_cflags in
9783 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9785 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9786 && test -z "${cf_tst_cflags}" \
9787 && cf_fix_cppflags=yes
9789 if test $cf_fix_cppflags = yes ; then
9791 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9792 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9795 elif test "${cf_tst_cflags}" = "\"'" ; then
9797 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9798 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9808 case $cf_add_cflags in
9810 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9812 CPPFLAGS=`echo "$CPPFLAGS" | \
9813 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9814 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9819 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9820 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9827 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9828 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9835 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9836 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9838 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9840 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9841 && test -z "${cf_tst_cflags}" \
9842 && cf_fix_cppflags=no
9847 if test -n "$cf_new_cflags" ; then
9849 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9850 CFLAGS="${CFLAGS}$cf_new_cflags"
9854 if test -n "$cf_new_cppflags" ; then
9856 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9857 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9861 if test -n "$cf_new_extra_cppflags" ; then
9863 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9864 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9870 if test "$cf_cv_posix_visible" = no; then
9872 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9874 cf_save_CFLAGS="$CFLAGS"
9875 cf_save_CPPFLAGS="$CPPFLAGS"
9877 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9878 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9879 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9881 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9882 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9883 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9885 echo "$as_me:9885: checking if we should define _POSIX_C_SOURCE" >&5
9886 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9887 if test "${cf_cv_posix_c_source+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 echo "${as_me:-configure}:9891: testing if the symbol is already defined go no further ..." 1>&5
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line 9894 "configure"
9895 #include "confdefs.h"
9896 #include <sys/types.h>
9901 #ifndef _POSIX_C_SOURCE
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:9909: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>&5
9912 echo "$as_me:9912: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:9915: \"$ac_try\"") >&5
9918 echo "$as_me:9918: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 cf_cv_posix_c_source=no
9922 echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 cf_want_posix_source=no
9925 case .$cf_POSIX_C_SOURCE in
9927 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9930 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9931 cf_want_posix_source=yes
9934 cf_want_posix_source=yes
9937 if test "$cf_want_posix_source" = yes ; then
9938 cat >conftest.$ac_ext <<_ACEOF
9939 #line 9939 "configure"
9940 #include "confdefs.h"
9941 #include <sys/types.h>
9946 #ifdef _POSIX_SOURCE
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:9954: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9957 echo "$as_me:9957: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:9960: \"$ac_try\"") >&5
9963 echo "$as_me:9963: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9967 echo "$as_me: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
9971 rm -f conftest.$ac_objext conftest.$ac_ext
9974 echo "${as_me:-configure}:9974: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
9976 CFLAGS="$cf_trim_CFLAGS"
9977 CPPFLAGS="$cf_trim_CPPFLAGS"
9979 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9980 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
9982 echo "${as_me:-configure}:9982: testing if the second compile does not leave our definition intact error ..." 1>&5
9984 cat >conftest.$ac_ext <<_ACEOF
9985 #line 9985 "configure"
9986 #include "confdefs.h"
9987 #include <sys/types.h>
9992 #ifndef _POSIX_C_SOURCE
9999 rm -f conftest.$ac_objext
10000 if { (eval echo "$as_me:10000: \"$ac_compile\"") >&5
10001 (eval $ac_compile) 2>&5
10003 echo "$as_me:10003: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -s conftest.$ac_objext'
10006 { (eval echo "$as_me:10006: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:10009: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10013 echo "$as_me: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 cf_cv_posix_c_source=no
10017 rm -f conftest.$ac_objext conftest.$ac_ext
10018 CFLAGS="$cf_save_CFLAGS"
10019 CPPFLAGS="$cf_save_CPPFLAGS"
10022 rm -f conftest.$ac_objext conftest.$ac_ext
10025 echo "$as_me:10025: result: $cf_cv_posix_c_source" >&5
10026 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10028 if test "$cf_cv_posix_c_source" != no ; then
10029 CFLAGS="$cf_trim_CFLAGS"
10030 CPPFLAGS="$cf_trim_CPPFLAGS"
10035 cf_new_extra_cppflags=
10037 for cf_add_cflags in $cf_cv_posix_c_source
10039 case $cf_fix_cppflags in
10041 case $cf_add_cflags in
10042 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10043 case $cf_add_cflags in
10045 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10047 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10048 && test -z "${cf_tst_cflags}" \
10049 && cf_fix_cppflags=yes
10051 if test $cf_fix_cppflags = yes ; then
10053 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10054 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10057 elif test "${cf_tst_cflags}" = "\"'" ; then
10059 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10060 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10066 case "$CPPFLAGS" in
10070 case $cf_add_cflags in
10072 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10074 CPPFLAGS=`echo "$CPPFLAGS" | \
10075 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10076 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10081 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10082 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10089 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10090 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10097 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10098 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10100 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10102 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10103 && test -z "${cf_tst_cflags}" \
10104 && cf_fix_cppflags=no
10109 if test -n "$cf_new_cflags" ; then
10111 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10112 CFLAGS="${CFLAGS}$cf_new_cflags"
10116 if test -n "$cf_new_cppflags" ; then
10118 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10119 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10123 if test -n "$cf_new_extra_cppflags" ; then
10125 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10126 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10132 fi # cf_cv_posix_visible
10137 if test -n "$cf_xopen_source" ; then
10142 cf_new_extra_cppflags=
10144 for cf_add_cflags in $cf_xopen_source
10146 case $cf_fix_cppflags in
10148 case $cf_add_cflags in
10149 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10150 case $cf_add_cflags in
10152 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10154 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10155 && test -z "${cf_tst_cflags}" \
10156 && cf_fix_cppflags=yes
10158 if test $cf_fix_cppflags = yes ; then
10160 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10161 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10164 elif test "${cf_tst_cflags}" = "\"'" ; then
10166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10167 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10173 case "$CPPFLAGS" in
10177 case $cf_add_cflags in
10179 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10181 CPPFLAGS=`echo "$CPPFLAGS" | \
10182 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10183 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10188 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10189 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10196 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10197 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10204 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10205 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10210 && test -z "${cf_tst_cflags}" \
10211 && cf_fix_cppflags=no
10216 if test -n "$cf_new_cflags" ; then
10217 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10219 echo "${as_me:-configure}:10219: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10221 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10222 CFLAGS="${CFLAGS}$cf_new_cflags"
10226 if test -n "$cf_new_cppflags" ; then
10227 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10229 echo "${as_me:-configure}:10229: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10231 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10232 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10236 if test -n "$cf_new_extra_cppflags" ; then
10237 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10239 echo "${as_me:-configure}:10239: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10241 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10242 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10248 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10249 echo "$as_me:10249: checking if _XOPEN_SOURCE really is set" >&5
10250 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line 10252 "configure"
10253 #include "confdefs.h"
10254 #include <stdlib.h>
10259 #ifndef _XOPEN_SOURCE
10266 rm -f conftest.$ac_objext
10267 if { (eval echo "$as_me:10267: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>&5
10270 echo "$as_me:10270: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:10273: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:10276: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 cf_XOPEN_SOURCE_set=yes
10280 echo "$as_me: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 cf_XOPEN_SOURCE_set=no
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10285 echo "$as_me:10285: result: $cf_XOPEN_SOURCE_set" >&5
10286 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
10287 if test $cf_XOPEN_SOURCE_set = yes
10289 cat >conftest.$ac_ext <<_ACEOF
10290 #line 10290 "configure"
10291 #include "confdefs.h"
10292 #include <stdlib.h>
10297 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:10305: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>&5
10308 echo "$as_me:10308: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:10311: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:10314: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 cf_XOPEN_SOURCE_set_ok=yes
10318 echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 cf_XOPEN_SOURCE_set_ok=no
10322 rm -f conftest.$ac_objext conftest.$ac_ext
10323 if test $cf_XOPEN_SOURCE_set_ok = no
10325 { echo "$as_me:10325: WARNING: _XOPEN_SOURCE is lower than requested" >&5
10326 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
10330 echo "$as_me:10330: checking if we should define _XOPEN_SOURCE" >&5
10331 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10332 if test "${cf_cv_xopen_source+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10337 #line 10337 "configure"
10338 #include "confdefs.h"
10340 #include <stdlib.h>
10341 #include <string.h>
10342 #include <sys/types.h>
10348 #ifndef _XOPEN_SOURCE
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:10356: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:10359: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:10362: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:10365: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 cf_cv_xopen_source=no
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 cf_save="$CPPFLAGS"
10373 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10374 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10376 cat >conftest.$ac_ext <<_ACEOF
10377 #line 10377 "configure"
10378 #include "confdefs.h"
10380 #include <stdlib.h>
10381 #include <string.h>
10382 #include <sys/types.h>
10388 #ifdef _XOPEN_SOURCE
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:10396: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>&5
10399 echo "$as_me:10399: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -s conftest.$ac_objext'
10402 { (eval echo "$as_me:10402: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:10405: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 cf_cv_xopen_source=no
10409 echo "$as_me: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10411 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10413 rm -f conftest.$ac_objext conftest.$ac_ext
10414 CPPFLAGS="$cf_save"
10417 rm -f conftest.$ac_objext conftest.$ac_ext
10420 echo "$as_me:10420: result: $cf_cv_xopen_source" >&5
10421 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10423 if test "$cf_cv_xopen_source" != no ; then
10425 CFLAGS=`echo "$CFLAGS" | \
10426 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10427 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10429 CPPFLAGS=`echo "$CPPFLAGS" | \
10430 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10431 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10433 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10438 cf_new_extra_cppflags=
10440 for cf_add_cflags in $cf_temp_xopen_source
10442 case $cf_fix_cppflags in
10444 case $cf_add_cflags in
10445 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10446 case $cf_add_cflags in
10448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10450 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10451 && test -z "${cf_tst_cflags}" \
10452 && cf_fix_cppflags=yes
10454 if test $cf_fix_cppflags = yes ; then
10456 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10457 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10460 elif test "${cf_tst_cflags}" = "\"'" ; then
10462 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10463 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10469 case "$CPPFLAGS" in
10473 case $cf_add_cflags in
10475 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10477 CPPFLAGS=`echo "$CPPFLAGS" | \
10478 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10479 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10484 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10485 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10492 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10493 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10500 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10501 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10503 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10505 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10506 && test -z "${cf_tst_cflags}" \
10507 && cf_fix_cppflags=no
10512 if test -n "$cf_new_cflags" ; then
10514 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10515 CFLAGS="${CFLAGS}$cf_new_cflags"
10519 if test -n "$cf_new_cppflags" ; then
10521 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10522 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10526 if test -n "$cf_new_extra_cppflags" ; then
10528 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10529 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10537 fi # cf_cv_posix_visible
10539 CPPFLAGS_after_XOPEN="$CPPFLAGS"
10541 # Work around breakage on OS X
10543 echo "$as_me:10543: checking if SIGWINCH is defined" >&5
10544 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
10545 if test "${cf_cv_define_sigwinch+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 cat >conftest.$ac_ext <<_ACEOF
10550 #line 10550 "configure"
10551 #include "confdefs.h"
10553 #include <sys/types.h>
10554 #include <sys/signal.h>
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:10565: \"$ac_compile\"") >&5
10566 (eval $ac_compile) 2>&5
10568 echo "$as_me:10568: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -s conftest.$ac_objext'
10571 { (eval echo "$as_me:10571: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:10574: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 cf_cv_define_sigwinch=yes
10578 echo "$as_me: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line 10581 "configure"
10582 #include "confdefs.h"
10584 #undef _XOPEN_SOURCE
10585 #undef _POSIX_SOURCE
10586 #undef _POSIX_C_SOURCE
10587 #include <sys/types.h>
10588 #include <sys/signal.h>
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:10599: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>&5
10602 echo "$as_me:10602: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -s conftest.$ac_objext'
10605 { (eval echo "$as_me:10605: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:10608: \$? = $ac_status" >&5
10609 (exit $ac_status); }; }; then
10610 cf_cv_define_sigwinch=maybe
10612 echo "$as_me: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10614 cf_cv_define_sigwinch=no
10616 rm -f conftest.$ac_objext conftest.$ac_ext
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10622 echo "$as_me:10622: result: $cf_cv_define_sigwinch" >&5
10623 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
10625 if test "$cf_cv_define_sigwinch" = maybe ; then
10626 echo "$as_me:10626: checking for actual SIGWINCH definition" >&5
10627 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
10628 if test "${cf_cv_fixup_sigwinch+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 cf_cv_fixup_sigwinch=unknown
10634 while test $cf_sigwinch != 1
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line 10637 "configure"
10638 #include "confdefs.h"
10640 #undef _XOPEN_SOURCE
10641 #undef _POSIX_SOURCE
10642 #undef _POSIX_C_SOURCE
10643 #include <sys/types.h>
10644 #include <sys/signal.h>
10650 #if SIGWINCH != $cf_sigwinch
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_fixup_sigwinch=$cf_sigwinch
10673 echo "$as_me: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 rm -f conftest.$ac_objext conftest.$ac_ext
10678 cf_sigwinch=`expr $cf_sigwinch - 1`
10682 echo "$as_me:10682: result: $cf_cv_fixup_sigwinch" >&5
10683 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
10685 if test "$cf_cv_fixup_sigwinch" != unknown ; then
10686 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
10690 # Checks for CODESET support.
10692 echo "$as_me:10692: checking for nl_langinfo and CODESET" >&5
10693 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10694 if test "${am_cv_langinfo_codeset+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line 10698 "configure"
10699 #include "confdefs.h"
10700 #include <langinfo.h>
10704 char* cs = nl_langinfo(CODESET);
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (eval echo "$as_me:10710: \"$ac_link\"") >&5
10711 (eval $ac_link) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:10716: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:10719: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 am_cv_langinfo_codeset=yes
10723 echo "$as_me: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10725 am_cv_langinfo_codeset=no
10727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10730 echo "$as_me:10730: result: $am_cv_langinfo_codeset" >&5
10731 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10732 if test $am_cv_langinfo_codeset = yes; then
10734 cat >>confdefs.h <<\EOF
10735 #define HAVE_LANGINFO_CODESET 1
10740 # use these variables to work around a defect in gcc's fixincludes.
10741 NCURSES_OK_WCHAR_T=
10744 echo "$as_me:10744: checking if you want wide-character code" >&5
10745 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
10747 # Check whether --enable-widec or --disable-widec was given.
10748 if test "${enable_widec+set}" = set; then
10749 enableval="$enable_widec"
10750 with_widec=$enableval
10754 echo "$as_me:10754: result: $with_widec" >&5
10755 echo "${ECHO_T}$with_widec" >&6
10757 NCURSES_WCWIDTH_GRAPHICS=1
10759 if test "x$with_widec" = xyes ; then
10760 if test "x$disable_lib_suffixes" = xno ; then
10761 LIB_SUFFIX="w${LIB_SUFFIX}"
10764 cat >>confdefs.h <<\EOF
10765 #define USE_WIDEC_SUPPORT 1
10768 cat >>confdefs.h <<\EOF
10769 #define NCURSES_WIDECHAR 1
10777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10778 echo "$as_me:10778: checking for $ac_header" >&5
10779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10784 #line 10784 "configure"
10785 #include "confdefs.h"
10786 #include <$ac_header>
10788 if { (eval echo "$as_me:10788: \"$ac_cpp conftest.$ac_ext\"") >&5
10789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10791 egrep -v '^ *\+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:10794: \$? = $ac_status" >&5
10795 (exit $ac_status); } >/dev/null; then
10796 if test -s conftest.err; then
10797 ac_cpp_err=$ac_c_preproc_warn_flag
10804 if test -z "$ac_cpp_err"; then
10805 eval "$as_ac_Header=yes"
10807 echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 eval "$as_ac_Header=no"
10811 rm -f conftest.err conftest.$ac_ext
10813 echo "$as_me:10813: result: `eval echo '${'$as_ac_Header'}'`" >&5
10814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10816 cat >>confdefs.h <<EOF
10817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10823 echo "$as_me:10823: checking if wchar.h can be used as is" >&5
10824 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
10825 if test "${cf_cv_wchar_h_okay+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10830 #line 10830 "configure"
10831 #include "confdefs.h"
10833 #include <stdlib.h>
10834 #ifdef HAVE_WCHAR_H
10837 #ifdef HAVE_WCTYPE_H
10838 #include <wctype.h>
10846 int bar = iswpunct(foo)
10851 rm -f conftest.$ac_objext
10852 if { (eval echo "$as_me:10852: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>&5
10855 echo "$as_me:10855: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -s conftest.$ac_objext'
10858 { (eval echo "$as_me:10858: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:10861: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 cf_cv_wchar_h_okay=yes
10865 echo "$as_me: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 cf_cv_wchar_h_okay=no
10869 rm -f conftest.$ac_objext conftest.$ac_ext
10871 echo "$as_me:10871: result: $cf_cv_wchar_h_okay" >&5
10872 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
10874 if test $cf_cv_wchar_h_okay = no
10877 echo "$as_me:10877: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
10878 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
10879 cat >conftest.$ac_ext <<_ACEOF
10880 #line 10880 "configure"
10881 #include "confdefs.h"
10882 #include <sys/types.h>
10888 #ifndef _XOPEN_SOURCE_EXTENDED
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:10896: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>&5
10899 echo "$as_me:10899: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:10902: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10909 echo "$as_me: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10913 rm -f conftest.$ac_objext conftest.$ac_ext
10914 echo "$as_me:10914: result: $cf_result" >&5
10915 echo "${ECHO_T}$cf_result" >&6
10917 if test "$cf_result" = yes ; then
10918 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
10919 elif test "x" != "x" ; then
10920 echo "$as_me:10920: checking checking for compatible value versus " >&5
10921 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line 10923 "configure"
10924 #include "confdefs.h"
10925 #include <sys/types.h>
10931 #if _XOPEN_SOURCE_EXTENDED- < 0
10938 rm -f conftest.$ac_objext
10939 if { (eval echo "$as_me:10939: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>&5
10942 echo "$as_me:10942: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -s conftest.$ac_objext'
10945 { (eval echo "$as_me:10945: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:10948: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10952 echo "$as_me: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10956 rm -f conftest.$ac_objext conftest.$ac_ext
10957 echo "$as_me:10957: result: $cf_result" >&5
10958 echo "${ECHO_T}$cf_result" >&6
10959 if test "$cf_result" = no ; then
10960 # perhaps we can override it - try...
10961 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
10967 echo "$as_me:10967: checking if wcwidth agrees graphics are single-width" >&5
10968 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
10969 if test "${cf_cv_wcwidth_graphics+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 cat >conftest.in <<CF_EOF
10975 0x250c upper left corner
10976 0x2514 lower left corner
10977 0x2510 upper right corner
10978 0x2518 lower right corner
10979 0x251c tee pointing left
10980 0x2524 tee pointing right
10981 0x2534 tee pointing up
10982 0x252c tee pointing down
10983 0x2500 horizontal line
10984 0x2502 vertical line
10985 0x253c large plus or crossover
10989 0x2592 checker board (stipple)
10990 0x00b0 degree symbol
10993 - Teletype 5410v1 symbols
10994 0x2190 arrow pointing left
10995 0x2192 arrow pointing right
10996 0x2193 arrow pointing down
10997 0x2191 arrow pointing up
10998 0x2592 board of squares
10999 0x2603 lantern symbol
11000 0x25ae solid square block
11001 - these defaults were invented for ncurses
11004 0x2264 less-than-or-equal-to
11005 0x2265 greater-than-or-equal-to
11008 0x00a3 pound-sterling symbol
11009 - thick-line-drawing
11010 0x250f upper left corner
11011 0x2517 lower left corner
11012 0x2513 upper right corner
11013 0x251b lower right corner
11014 0x2523 tee pointing left
11015 0x252b tee pointing right
11016 0x253b tee pointing up
11017 0x2533 tee pointing down
11018 0x2501 horizontal line
11019 0x2503 vertical line
11020 0x254b large plus or crossover
11021 - double-line-drawing
11022 0x2554 upper left corner
11023 0x255a lower left corner
11024 0x2557 upper right corner
11025 0x255d lower right corner
11026 0x2563 tee pointing left
11027 0x2560 tee pointing right
11028 0x2569 tee pointing up
11029 0x2566 tee pointing down
11030 0x2550 horizontal line
11031 0x2551 vertical line
11032 0x256c large plus or crossover
11034 if test "$cross_compiling" = yes; then
11035 cf_cv_wcwidth_graphics=unknown
11037 cat >conftest.$ac_ext <<_ACEOF
11038 #line 11038 "configure"
11039 #include "confdefs.h"
11041 #include <locale.h>
11052 char buffer[MY_LEN + 1];
11053 char notes[MY_LEN + 1];
11057 if (setlocale(LC_ALL, "en_US.UTF8") ||
11058 setlocale(LC_ALL, "en_US.UTF-8") ||
11059 setlocale(LC_ALL, "en_US.utf8") ||
11060 setlocale(LC_ALL, "en_US.utf-8")) {
11061 if ((fp = fopen("conftest.in", "r")) != 0) {
11062 while (fgets(buffer, MY_LEN, fp) != 0) {
11063 if (*buffer == '-') {
11064 fprintf(stderr, "\t%s", buffer);
11065 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11067 if (wcwidth(value) == 1)
11069 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11071 fprintf(stderr, "?\t%s", buffer);
11076 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11077 return (totals == passed) ? 0 : 1;
11081 rm -f conftest$ac_exeext
11082 if { (eval echo "$as_me:11082: \"$ac_link\"") >&5
11083 (eval $ac_link) 2>&5
11085 echo "$as_me:11085: \$? = $ac_status" >&5
11086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11087 { (eval echo "$as_me:11087: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11090 echo "$as_me:11090: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 cf_cv_wcwidth_graphics=yes
11094 echo "$as_me: program exited with status $ac_status" >&5
11095 echo "$as_me: failed program was:" >&5
11096 cat conftest.$ac_ext >&5
11097 cf_cv_wcwidth_graphics=no
11099 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:11103: result: $cf_cv_wcwidth_graphics" >&5
11104 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11106 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11108 # with_overwrite=no
11109 NCURSES_CH_T=cchar_t
11111 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11114 echo "$as_me:11114: checking for $ac_func" >&5
11115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_var+set}\" = set"; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line 11120 "configure"
11121 #include "confdefs.h"
11122 #define $ac_func autoconf_temporary
11123 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11130 /* We use char because int might match the return type of a gcc2
11131 builtin and then its argument prototype would still apply. */
11132 char $ac_func (void);
11138 /* The GNU C library defines stubs for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142 #error found stub for $ac_func
11145 return $ac_func ();
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (eval echo "$as_me:11151: \"$ac_link\"") >&5
11152 (eval $ac_link) 2>&5
11154 echo "$as_me:11154: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (eval echo "$as_me:11157: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:11160: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 eval "$as_ac_var=yes"
11164 echo "$as_me: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 eval "$as_ac_var=no"
11168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11170 echo "$as_me:11170: result: `eval echo '${'$as_ac_var'}'`" >&5
11171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11172 if test `eval echo '${'$as_ac_var'}'` = yes; then
11173 cat >>confdefs.h <<EOF
11174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11180 if test "x$ac_cv_func_putwc" != xyes ; then
11182 echo "$as_me:11182: checking for multibyte character support" >&5
11183 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11184 if test "${cf_cv_utf8_lib+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cf_save_LIBS="$LIBS"
11189 cat >conftest.$ac_ext <<_ACEOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11193 #include <stdlib.h>
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:11203: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>&5
11206 echo "$as_me:11206: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:11209: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:11212: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11216 echo "$as_me: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11219 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11220 # will be set on completion of the AC_TRY_LINK below.
11221 cf_cv_header_path_utf8=
11222 cf_cv_library_path_utf8=
11224 echo "${as_me:-configure}:11224: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11226 cf_save_LIBS="$LIBS"
11228 cat >conftest.$ac_ext <<_ACEOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11232 #include <libutf8.h>
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:11242: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11245 echo "$as_me:11245: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:11248: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:11251: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11254 cf_cv_find_linkage_utf8=yes
11255 cf_cv_header_path_utf8=/usr/include
11256 cf_cv_library_path_utf8=/usr/lib
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 LIBS="-lutf8 $cf_save_LIBS"
11264 cat >conftest.$ac_ext <<_ACEOF
11265 #line 11265 "configure"
11266 #include "confdefs.h"
11268 #include <libutf8.h>
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (eval echo "$as_me:11278: \"$ac_link\"") >&5
11279 (eval $ac_link) 2>&5
11281 echo "$as_me:11281: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -s conftest$ac_exeext'
11284 { (eval echo "$as_me:11284: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11287 echo "$as_me:11287: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11290 cf_cv_find_linkage_utf8=yes
11291 cf_cv_header_path_utf8=/usr/include
11292 cf_cv_library_path_utf8=/usr/lib
11293 cf_cv_library_file_utf8="-lutf8"
11296 echo "$as_me: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11299 cf_cv_find_linkage_utf8=no
11300 LIBS="$cf_save_LIBS"
11302 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
11304 echo "${as_me:-configure}:11304: testing find linkage for utf8 library ..." 1>&5
11306 echo "${as_me:-configure}:11306: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
11308 cf_save_CPPFLAGS="$CPPFLAGS"
11309 cf_test_CPPFLAGS="$CPPFLAGS"
11313 # collect the current set of include-directories from compiler flags
11314 cf_header_path_list=""
11315 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11316 for cf_header_path in $CPPFLAGS $CFLAGS
11318 case $cf_header_path in
11320 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11322 test "x$cf_header_path" != "xNONE" && \
11323 test -d "$cf_header_path" && \
11325 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11326 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
11327 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
11328 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
11329 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
11330 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
11333 cf_header_path_list="$cf_header_path_list $cf_search"
11339 # add the variations for the package we are looking for
11343 test "x$prefix" != "xNONE" && \
11344 test -d "$prefix" && \
11346 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11347 test -d $prefix/include && cf_search="$cf_search $prefix/include"
11348 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
11349 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
11350 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
11351 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
11354 for cf_subdir_prefix in \
11363 test "x$cf_subdir_prefix" != "x$prefix" && \
11364 test -d "$cf_subdir_prefix" && \
11365 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11366 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11367 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
11368 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
11369 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
11370 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
11371 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
11376 test "$includedir" != NONE && \
11377 test "$includedir" != "/usr/include" && \
11378 test -d "$includedir" && {
11379 test -d $includedir && cf_search="$cf_search $includedir"
11380 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
11383 test "$oldincludedir" != NONE && \
11384 test "$oldincludedir" != "/usr/include" && \
11385 test -d "$oldincludedir" && {
11386 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
11387 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
11390 cf_search="$cf_search $cf_header_path_list"
11392 for cf_cv_header_path_utf8 in $cf_search
11394 if test -d $cf_cv_header_path_utf8 ; then
11395 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
11397 echo "${as_me:-configure}:11397: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
11399 CPPFLAGS="$cf_save_CPPFLAGS"
11401 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11402 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
11404 cat >conftest.$ac_ext <<_ACEOF
11405 #line 11405 "configure"
11406 #include "confdefs.h"
11408 #include <libutf8.h>
11417 rm -f conftest.$ac_objext
11418 if { (eval echo "$as_me:11418: \"$ac_compile\"") >&5
11419 (eval $ac_compile) 2>&5
11421 echo "$as_me:11421: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:11424: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11430 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
11432 echo "${as_me:-configure}:11432: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
11434 cf_cv_find_linkage_utf8=maybe
11435 cf_test_CPPFLAGS="$CPPFLAGS"
11438 echo "$as_me: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11441 CPPFLAGS="$cf_save_CPPFLAGS"
11444 rm -f conftest.$ac_objext conftest.$ac_ext
11448 if test "$cf_cv_find_linkage_utf8" = maybe ; then
11450 echo "${as_me:-configure}:11450: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
11452 cf_save_LIBS="$LIBS"
11453 cf_save_LDFLAGS="$LDFLAGS"
11455 if test "$cf_cv_find_linkage_utf8" != yes ; then
11458 cf_library_path_list=""
11459 if test -n "${LDFLAGS}${LIBS}" ; then
11460 for cf_library_path in $LDFLAGS $LIBS
11462 case $cf_library_path in
11464 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11466 test "x$cf_library_path" != "xNONE" && \
11467 test -d "$cf_library_path" && \
11469 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11470 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
11471 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
11472 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
11473 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
11474 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
11477 cf_library_path_list="$cf_library_path_list $cf_search"
11485 test "x$prefix" != "xNONE" && \
11486 test -d "$prefix" && \
11488 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11489 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
11490 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
11491 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
11492 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
11493 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
11496 for cf_subdir_prefix in \
11505 test "x$cf_subdir_prefix" != "x$prefix" && \
11506 test -d "$cf_subdir_prefix" && \
11507 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11508 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11509 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
11510 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
11511 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
11512 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
11513 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
11518 cf_search="$cf_library_path_list $cf_search"
11520 for cf_cv_library_path_utf8 in $cf_search
11522 if test -d $cf_cv_library_path_utf8 ; then
11523 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
11525 echo "${as_me:-configure}:11525: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
11527 CPPFLAGS="$cf_test_CPPFLAGS"
11528 LIBS="-lutf8 $cf_save_LIBS"
11529 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line 11531 "configure"
11532 #include "confdefs.h"
11534 #include <libutf8.h>
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:11544: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>&5
11547 echo "$as_me:11547: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:11550: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:11553: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11556 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
11558 echo "${as_me:-configure}:11558: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
11560 cf_cv_find_linkage_utf8=yes
11561 cf_cv_library_file_utf8="-lutf8"
11564 echo "$as_me: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 CPPFLAGS="$cf_save_CPPFLAGS"
11568 LIBS="$cf_save_LIBS"
11569 LDFLAGS="$cf_save_LDFLAGS"
11572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11575 CPPFLAGS="$cf_save_CPPFLAGS"
11576 LDFLAGS="$cf_save_LDFLAGS"
11580 cf_cv_find_linkage_utf8=no
11584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11589 LIBS="$cf_save_LIBS"
11591 if test "$cf_cv_find_linkage_utf8" = yes ; then
11592 cf_cv_utf8_lib=add-on
11598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11600 echo "$as_me:11600: result: $cf_cv_utf8_lib" >&5
11601 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
11603 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
11604 # ncurses/ncursesw:
11605 if test "$cf_cv_utf8_lib" = "add-on" ; then
11607 cat >>confdefs.h <<\EOF
11608 #define HAVE_LIBUTF8_H 1
11611 if test -n "$cf_cv_header_path_utf8" ; then
11612 for cf_add_incdir in $cf_cv_header_path_utf8
11614 while test $cf_add_incdir != /usr/include
11616 if test -d $cf_add_incdir
11619 if test -n "$CFLAGS$CPPFLAGS" ; then
11620 # a loop is needed to ensure we can add subdirs of existing dirs
11621 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11622 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11623 cf_have_incdir=yes; break
11628 if test "$cf_have_incdir" = no ; then
11629 if test "$cf_add_incdir" = /usr/local/include ; then
11630 if test "$GCC" = yes
11632 cf_save_CPPFLAGS=$CPPFLAGS
11634 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11635 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11637 cat >conftest.$ac_ext <<_ACEOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11649 rm -f conftest.$ac_objext
11650 if { (eval echo "$as_me:11650: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>&5
11653 echo "$as_me:11653: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:11656: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:11659: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11663 echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11667 rm -f conftest.$ac_objext conftest.$ac_ext
11668 CPPFLAGS=$cf_save_CPPFLAGS
11673 if test "$cf_have_incdir" = no ; then
11674 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11676 echo "${as_me:-configure}:11676: testing adding $cf_add_incdir to include-path ..." 1>&5
11678 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11680 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11681 test "$cf_top_incdir" = "$cf_add_incdir" && break
11682 cf_add_incdir="$cf_top_incdir"
11693 if test -n "$cf_cv_library_path_utf8" ; then
11694 for cf_add_libdir in $cf_cv_library_path_utf8
11696 if test $cf_add_libdir = /usr/lib ; then
11698 elif test -d $cf_add_libdir
11701 if test -n "$LDFLAGS$LIBS" ; then
11702 # a loop is needed to ensure we can add subdirs of existing dirs
11703 for cf_test_libdir in $LDFLAGS $LIBS ; do
11704 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11705 cf_have_libdir=yes; break
11709 if test "$cf_have_libdir" = no ; then
11710 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11712 echo "${as_me:-configure}:11712: testing adding $cf_add_libdir to library-path ..." 1>&5
11714 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11720 cf_add_libs="$cf_cv_library_file_utf8"
11721 # Filter out duplicates - this happens with badly-designed ".pc" files...
11722 for cf_add_1lib in $LIBS
11724 for cf_add_2lib in $cf_add_libs
11726 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11732 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11734 LIBS="$cf_add_libs"
11738 if test "$cf_cv_utf8_lib" != no ; then
11743 # This is needed on Tru64 5.0 to declare mbstate_t
11744 echo "$as_me:11744: checking if we must include wchar.h to declare mbstate_t" >&5
11745 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
11746 if test "${cf_cv_mbstate_t+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11751 #line 11751 "configure"
11752 #include "confdefs.h"
11754 #include <stdlib.h>
11755 #include <stdarg.h>
11757 #ifdef HAVE_LIBUTF8_H
11758 #include <libutf8.h>
11768 rm -f conftest.$ac_objext
11769 if { (eval echo "$as_me:11769: \"$ac_compile\"") >&5
11770 (eval $ac_compile) 2>&5
11772 echo "$as_me:11772: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -s conftest.$ac_objext'
11775 { (eval echo "$as_me:11775: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:11778: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11782 echo "$as_me: failed program was:" >&5
11783 cat conftest.$ac_ext >&5
11784 cat >conftest.$ac_ext <<_ACEOF
11785 #line 11785 "configure"
11786 #include "confdefs.h"
11788 #include <stdlib.h>
11789 #include <stdarg.h>
11792 #ifdef HAVE_LIBUTF8_H
11793 #include <libutf8.h>
11803 rm -f conftest.$ac_objext
11804 if { (eval echo "$as_me:11804: \"$ac_compile\"") >&5
11805 (eval $ac_compile) 2>&5
11807 echo "$as_me:11807: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (eval echo "$as_me:11810: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:11813: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 cf_cv_mbstate_t=yes
11817 echo "$as_me: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 cf_cv_mbstate_t=unknown
11821 rm -f conftest.$ac_objext conftest.$ac_ext
11823 rm -f conftest.$ac_objext conftest.$ac_ext
11825 echo "$as_me:11825: result: $cf_cv_mbstate_t" >&5
11826 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
11828 if test "$cf_cv_mbstate_t" = yes ; then
11830 cat >>confdefs.h <<\EOF
11831 #define NEED_WCHAR_H 1
11837 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
11838 if test "$cf_cv_mbstate_t" = unknown ; then
11839 NCURSES_MBSTATE_T=1
11842 # This is needed on Tru64 5.0 to declare wchar_t
11843 echo "$as_me:11843: checking if we must include wchar.h to declare wchar_t" >&5
11844 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
11845 if test "${cf_cv_wchar_t+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 #line 11850 "configure"
11851 #include "confdefs.h"
11853 #include <stdlib.h>
11854 #include <stdarg.h>
11856 #ifdef HAVE_LIBUTF8_H
11857 #include <libutf8.h>
11867 rm -f conftest.$ac_objext
11868 if { (eval echo "$as_me:11868: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>&5
11871 echo "$as_me:11871: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:11874: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:11877: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11881 echo "$as_me: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11883 cat >conftest.$ac_ext <<_ACEOF
11884 #line 11884 "configure"
11885 #include "confdefs.h"
11887 #include <stdlib.h>
11888 #include <stdarg.h>
11891 #ifdef HAVE_LIBUTF8_H
11892 #include <libutf8.h>
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:11903: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11906 echo "$as_me:11906: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:11909: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:11912: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11916 echo "$as_me: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 cf_cv_wchar_t=unknown
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11922 rm -f conftest.$ac_objext conftest.$ac_ext
11924 echo "$as_me:11924: result: $cf_cv_wchar_t" >&5
11925 echo "${ECHO_T}$cf_cv_wchar_t" >&6
11927 if test "$cf_cv_wchar_t" = yes ; then
11929 cat >>confdefs.h <<\EOF
11930 #define NEED_WCHAR_H 1
11936 # if we do not find wchar_t in either place, use substitution to provide a fallback.
11937 if test "$cf_cv_wchar_t" = unknown ; then
11941 # if we find wchar_t in either place, use substitution to provide a fallback.
11942 if test "$cf_cv_wchar_t" != unknown ; then
11943 NCURSES_OK_WCHAR_T=1
11946 # This is needed on Tru64 5.0 to declare wint_t
11947 echo "$as_me:11947: checking if we must include wchar.h to declare wint_t" >&5
11948 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
11949 if test "${cf_cv_wint_t+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11954 #line 11954 "configure"
11955 #include "confdefs.h"
11957 #include <stdlib.h>
11958 #include <stdarg.h>
11960 #ifdef HAVE_LIBUTF8_H
11961 #include <libutf8.h>
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:11972: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>&5
11975 echo "$as_me:11975: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -s conftest.$ac_objext'
11978 { (eval echo "$as_me:11978: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11985 echo "$as_me: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line 11988 "configure"
11989 #include "confdefs.h"
11991 #include <stdlib.h>
11992 #include <stdarg.h>
11995 #ifdef HAVE_LIBUTF8_H
11996 #include <libutf8.h>
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:12007: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>&5
12010 echo "$as_me:12010: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (eval echo "$as_me:12013: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:12016: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12020 echo "$as_me: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 cf_cv_wint_t=unknown
12024 rm -f conftest.$ac_objext conftest.$ac_ext
12026 rm -f conftest.$ac_objext conftest.$ac_ext
12028 echo "$as_me:12028: result: $cf_cv_wint_t" >&5
12029 echo "${ECHO_T}$cf_cv_wint_t" >&6
12031 if test "$cf_cv_wint_t" = yes ; then
12033 cat >>confdefs.h <<\EOF
12034 #define NEED_WCHAR_H 1
12040 # if we do not find wint_t in either place, use substitution to provide a fallback.
12041 if test "$cf_cv_wint_t" = unknown ; then
12045 # if we find wint_t in either place, use substitution to provide a fallback.
12046 if test "$cf_cv_wint_t" != unknown ; then
12047 NCURSES_OK_WINT_T=1
12050 if test "$NCURSES_MBSTATE_T" != 0; then
12052 cat >>confdefs.h <<\EOF
12053 #define NEED_MBSTATE_T_DEF 1
12059 ### use option --disable-lp64 to allow long chtype
12060 echo "$as_me:12060: checking whether to enable _LP64 definition in curses.h" >&5
12061 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12063 # Check whether --enable-lp64 or --disable-lp64 was given.
12064 if test "${enable_lp64+set}" = set; then
12065 enableval="$enable_lp64"
12066 with_lp64=$enableval
12068 with_lp64=$cf_dft_with_lp64
12070 echo "$as_me:12070: result: $with_lp64" >&5
12071 echo "${ECHO_T}$with_lp64" >&6
12073 if test "x$with_lp64" = xyes ; then
12074 cf_cv_enable_lp64=1
12076 cf_cv_enable_lp64=0
12079 # Check whether --enable-largefile or --disable-largefile was given.
12080 if test "${enable_largefile+set}" = set; then
12081 enableval="$enable_largefile"
12084 if test "$enable_largefile" != no; then
12086 echo "$as_me:12086: checking for special C compiler options needed for large files" >&5
12087 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12088 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 ac_cv_sys_largefile_CC=no
12092 if test "$GCC" != yes; then
12095 # IRIX 6.2 and later do not support large files by default,
12096 # so use the C compiler's -n32 option if that helps.
12097 cat >conftest.$ac_ext <<_ACEOF
12098 #line 12098 "configure"
12099 #include "confdefs.h"
12100 #include <sys/types.h>
12101 /* Check that off_t can represent 2**63 - 1 correctly.
12102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12103 since some C++ compilers masquerading as C compilers
12104 incorrectly reject 9223372036854775807. */
12105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12107 && LARGE_OFF_T % 2147483647 == 1)
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:12118: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>&5
12121 echo "$as_me:12121: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:12124: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:12127: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12131 echo "$as_me: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12134 rm -f conftest.$ac_objext
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:12137: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>&5
12140 echo "$as_me:12140: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:12143: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:12146: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_sys_largefile_CC=' -n32'; break
12150 echo "$as_me: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12153 rm -f conftest.$ac_objext
12157 rm -f conftest.$ac_ext
12160 echo "$as_me:12160: result: $ac_cv_sys_largefile_CC" >&5
12161 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12162 if test "$ac_cv_sys_largefile_CC" != no; then
12163 CC=$CC$ac_cv_sys_largefile_CC
12166 echo "$as_me:12166: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12167 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12168 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 ac_cv_sys_file_offset_bits=no
12173 cat >conftest.$ac_ext <<_ACEOF
12174 #line 12174 "configure"
12175 #include "confdefs.h"
12176 #include <sys/types.h>
12177 /* Check that off_t can represent 2**63 - 1 correctly.
12178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12179 since some C++ compilers masquerading as C compilers
12180 incorrectly reject 9223372036854775807. */
12181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12183 && LARGE_OFF_T % 2147483647 == 1)
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:12194: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>&5
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:12200: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:12203: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12207 echo "$as_me: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12210 rm -f conftest.$ac_objext conftest.$ac_ext
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12214 #define _FILE_OFFSET_BITS 64
12215 #include <sys/types.h>
12216 /* Check that off_t can represent 2**63 - 1 correctly.
12217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12218 since some C++ compilers masquerading as C compilers
12219 incorrectly reject 9223372036854775807. */
12220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12222 && LARGE_OFF_T % 2147483647 == 1)
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:12233: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12236 echo "$as_me:12236: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:12239: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12242 echo "$as_me:12242: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_sys_file_offset_bits=64; break
12246 echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12249 rm -f conftest.$ac_objext conftest.$ac_ext
12253 echo "$as_me:12253: result: $ac_cv_sys_file_offset_bits" >&5
12254 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12255 if test "$ac_cv_sys_file_offset_bits" != no; then
12257 cat >>confdefs.h <<EOF
12258 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12263 echo "$as_me:12263: checking for _LARGE_FILES value needed for large files" >&5
12264 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12265 if test "${ac_cv_sys_large_files+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 ac_cv_sys_large_files=no
12270 cat >conftest.$ac_ext <<_ACEOF
12271 #line 12271 "configure"
12272 #include "confdefs.h"
12273 #include <sys/types.h>
12274 /* Check that off_t can represent 2**63 - 1 correctly.
12275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12276 since some C++ compilers masquerading as C compilers
12277 incorrectly reject 9223372036854775807. */
12278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12280 && LARGE_OFF_T % 2147483647 == 1)
12290 rm -f conftest.$ac_objext
12291 if { (eval echo "$as_me:12291: \"$ac_compile\"") >&5
12292 (eval $ac_compile) 2>&5
12294 echo "$as_me:12294: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -s conftest.$ac_objext'
12297 { (eval echo "$as_me:12297: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:12300: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12304 echo "$as_me: failed program was:" >&5
12305 cat conftest.$ac_ext >&5
12307 rm -f conftest.$ac_objext conftest.$ac_ext
12308 cat >conftest.$ac_ext <<_ACEOF
12309 #line 12309 "configure"
12310 #include "confdefs.h"
12311 #define _LARGE_FILES 1
12312 #include <sys/types.h>
12313 /* Check that off_t can represent 2**63 - 1 correctly.
12314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12315 since some C++ compilers masquerading as C compilers
12316 incorrectly reject 9223372036854775807. */
12317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12319 && LARGE_OFF_T % 2147483647 == 1)
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:12330: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>&5
12333 echo "$as_me:12333: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -s conftest.$ac_objext'
12336 { (eval echo "$as_me:12336: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:12339: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_sys_large_files=1; break
12343 echo "$as_me: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12346 rm -f conftest.$ac_objext conftest.$ac_ext
12350 echo "$as_me:12350: result: $ac_cv_sys_large_files" >&5
12351 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12352 if test "$ac_cv_sys_large_files" != no; then
12354 cat >>confdefs.h <<EOF
12355 #define _LARGE_FILES $ac_cv_sys_large_files
12362 if test "$enable_largefile" != no ; then
12363 echo "$as_me:12363: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12364 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12365 if test "${ac_cv_sys_largefile_source+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 ac_cv_sys_largefile_source=no
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12382 rm -f conftest.$ac_objext
12383 if { (eval echo "$as_me:12383: \"$ac_compile\"") >&5
12384 (eval $ac_compile) 2>&5
12386 echo "$as_me:12386: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -s conftest.$ac_objext'
12389 { (eval echo "$as_me:12389: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:12392: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12396 echo "$as_me: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12399 rm -f conftest.$ac_objext conftest.$ac_ext
12400 cat >conftest.$ac_ext <<_ACEOF
12401 #line 12401 "configure"
12402 #include "confdefs.h"
12403 #define _LARGEFILE_SOURCE 1
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:12414: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>&5
12417 echo "$as_me:12417: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:12420: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:12423: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_sys_largefile_source=1; break
12427 echo "$as_me: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12430 rm -f conftest.$ac_objext conftest.$ac_ext
12434 echo "$as_me:12434: result: $ac_cv_sys_largefile_source" >&5
12435 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12436 if test "$ac_cv_sys_largefile_source" != no; then
12438 cat >>confdefs.h <<EOF
12439 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12445 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12446 # in glibc 2.1.3, but that breaks too many other things.
12447 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12448 echo "$as_me:12448: checking for fseeko" >&5
12449 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12450 if test "${ac_cv_func_fseeko+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 cat >conftest.$ac_ext <<_ACEOF
12454 #line 12454 "configure"
12455 #include "confdefs.h"
12460 return fseeko && fseeko (stdin, 0, 0);
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:12466: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>&5
12469 echo "$as_me:12469: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:12472: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:12475: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_cv_func_fseeko=yes
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ac_cv_func_fseeko=no
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12485 echo "$as_me:12485: result: $ac_cv_func_fseeko" >&5
12486 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12487 if test $ac_cv_func_fseeko = yes; then
12489 cat >>confdefs.h <<\EOF
12490 #define HAVE_FSEEKO 1
12495 # Normally we would collect these definitions in the config.h,
12496 # but (like _XOPEN_SOURCE), some environments rely on having these
12497 # defined before any of the system headers are included. Another
12498 # case comes up with C++, e.g., on AIX the compiler compiles the
12499 # header files by themselves before looking at the body files it is
12500 # told to compile. For ncurses, those header files do not include
12502 if test "$ac_cv_sys_large_files" != no
12505 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12506 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
12509 if test "$ac_cv_sys_largefile_source" != no
12512 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12513 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
12516 if test "$ac_cv_sys_file_offset_bits" != no
12519 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12520 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12524 echo "$as_me:12524: checking whether to use struct dirent64" >&5
12525 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
12526 if test "${cf_cv_struct_dirent64+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 cat >conftest.$ac_ext <<_ACEOF
12531 #line 12531 "configure"
12532 #include "confdefs.h"
12534 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
12535 #include <sys/types.h>
12536 #include <dirent.h>
12542 /* if transitional largefile support is setup, this is true */
12543 extern struct dirent64 * readdir(DIR *);
12544 struct dirent64 *x = readdir((DIR *)0);
12545 struct dirent *y = readdir((DIR *)0);
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:12553: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>&5
12556 echo "$as_me:12556: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -s conftest.$ac_objext'
12559 { (eval echo "$as_me:12559: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:12562: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 cf_cv_struct_dirent64=yes
12566 echo "$as_me: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 cf_cv_struct_dirent64=no
12570 rm -f conftest.$ac_objext conftest.$ac_ext
12573 echo "$as_me:12573: result: $cf_cv_struct_dirent64" >&5
12574 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
12575 test "$cf_cv_struct_dirent64" = yes &&
12576 cat >>confdefs.h <<\EOF
12577 #define HAVE_STRUCT_DIRENT64 1
12582 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
12583 echo "$as_me:12583: checking if you want tparm not to use X/Open fixed-parameter list" >&5
12584 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
12586 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
12587 if test "${enable_tparm_varargs+set}" = set; then
12588 enableval="$enable_tparm_varargs"
12589 with_tparm_varargs=$enableval
12591 with_tparm_varargs=yes
12593 echo "$as_me:12593: result: $with_tparm_varargs" >&5
12594 echo "${ECHO_T}$with_tparm_varargs" >&6
12595 NCURSES_TPARM_VARARGS=0
12596 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
12598 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
12599 if test "$with_ticlib" != no ; then
12600 echo "$as_me:12600: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
12601 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
12603 # Check whether --enable-tic-depends or --disable-tic-depends was given.
12604 if test "${enable_tic_depends+set}" = set; then
12605 enableval="$enable_tic_depends"
12606 with_tic_depends=$enableval
12608 with_tic_depends=yes
12610 echo "$as_me:12610: result: $with_tic_depends" >&5
12611 echo "${ECHO_T}$with_tic_depends" >&6
12613 with_tic_depends=no
12616 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
12617 echo "$as_me:12617: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
12618 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
12620 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
12621 if test "${enable_wattr_macros+set}" = set; then
12622 enableval="$enable_wattr_macros"
12623 with_wattr_macros=$enableval
12625 with_wattr_macros=yes
12627 if [ "x$with_wattr_macros" != xyes ]; then
12628 NCURSES_WATTR_MACROS=0
12629 echo "$as_me:12629: result: yes" >&5
12630 echo "${ECHO_T}yes" >&6
12632 NCURSES_WATTR_MACROS=1
12633 echo "$as_me:12633: result: no" >&5
12634 echo "${ECHO_T}no" >&6
12637 echo "$as_me:12637: checking for X11 rgb file" >&5
12638 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
12640 # Check whether --with-x11-rgb or --without-x11-rgb was given.
12641 if test "${with_x11_rgb+set}" = set; then
12642 withval="$with_x11_rgb"
12648 if test "x$RGB_PATH" = xauto
12650 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
12652 /opt/local/share/X11/rgb.txt \
12653 /opt/X11/share/X11/rgb.txt \
12654 /usr/share/X11/rgb.txt \
12655 /usr/X11/share/X11/rgb.txt \
12656 /usr/X11/lib/X11/rgb.txt \
12657 /usr/lib/X11/rgb.txt \
12659 /usr/pkg/lib/X11/rgb.txt \
12660 /usr/X11R7/lib/X11/rgb.txt \
12661 /usr/X11R6/lib/X11/rgb.txt \
12662 /usr/X11R5/lib/X11/rgb.txt \
12663 /usr/X11R4/lib/X11/rgb.txt \
12664 /usr/local/lib/X11/rgb.txt \
12665 /usr/local/share/X11/rgb.txt \
12666 /usr/lib64/X11/rgb.txt
12668 if test -f "$cf_path" ; then
12669 RGB_PATH="$cf_path"
12676 if test "x$prefix" != xNONE; then
12677 cf_path_syntax="$prefix"
12679 cf_path_syntax="$ac_default_prefix"
12682 case ".$cf_path" in
12683 (.\$\(*\)*|.\'*\'*)
12687 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
12689 (.\${*prefix}*|.\${*dir}*)
12690 eval cf_path="$cf_path"
12691 case ".$cf_path" in
12693 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
12698 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
12701 { { echo "$as_me:12701: error: expected a pathname, not \"$cf_path\"" >&5
12702 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
12703 { (exit 1); exit 1; }; }
12709 echo "$as_me:12709: result: $RGB_PATH" >&5
12710 echo "${ECHO_T}$RGB_PATH" >&6
12712 cat >>confdefs.h <<EOF
12713 #define RGB_PATH "$cf_path"
12717 if test "$RGB_PATH" = no
12722 ### use option --with-bool to override bool's type
12723 echo "$as_me:12723: checking for type of bool" >&5
12724 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
12726 # Check whether --with-bool or --without-bool was given.
12727 if test "${with_bool+set}" = set; then
12728 withval="$with_bool"
12729 NCURSES_BOOL="$withval"
12733 echo "$as_me:12733: result: $NCURSES_BOOL" >&5
12734 echo "${ECHO_T}$NCURSES_BOOL" >&6
12736 echo "$as_me:12736: checking for alternate terminal capabilities file" >&5
12737 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
12739 # Check whether --with-caps or --without-caps was given.
12740 if test "${with_caps+set}" = set; then
12741 withval="$with_caps"
12742 TERMINFO_CAPS=Caps.$withval
12746 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
12747 echo "$as_me:12747: result: $TERMINFO_CAPS" >&5
12748 echo "${ECHO_T}$TERMINFO_CAPS" >&6
12750 ### use option --with-chtype to override chtype's type
12751 echo "$as_me:12751: checking for type of chtype" >&5
12752 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
12754 # Check whether --with-chtype or --without-chtype was given.
12755 if test "${with_chtype+set}" = set; then
12756 withval="$with_chtype"
12757 NCURSES_CHTYPE="$withval"
12759 NCURSES_CHTYPE=$cf_dft_chtype
12761 echo "$as_me:12761: result: $NCURSES_CHTYPE" >&5
12762 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
12764 ### use option --with-ospeed to override ospeed's type
12765 echo "$as_me:12765: checking for type of ospeed" >&5
12766 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
12768 # Check whether --with-ospeed or --without-ospeed was given.
12769 if test "${with_ospeed+set}" = set; then
12770 withval="$with_ospeed"
12771 NCURSES_OSPEED="$withval"
12773 NCURSES_OSPEED=short
12775 echo "$as_me:12775: result: $NCURSES_OSPEED" >&5
12776 echo "${ECHO_T}$NCURSES_OSPEED" >&6
12778 ### use option --with-mmask-t to override mmask_t's type
12779 echo "$as_me:12779: checking for type of mmask_t" >&5
12780 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
12782 # Check whether --with-mmask-t or --without-mmask-t was given.
12783 if test "${with_mmask_t+set}" = set; then
12784 withval="$with_mmask_t"
12785 NCURSES_MMASK_T="$withval"
12787 NCURSES_MMASK_T=$cf_dft_mmask_t
12789 echo "$as_me:12789: result: $NCURSES_MMASK_T" >&5
12790 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
12792 ### use option --with-ccharw-max to override CCHARW_MAX size
12793 echo "$as_me:12793: checking for size CCHARW_MAX" >&5
12794 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
12796 # Check whether --with-ccharw-max or --without-ccharw-max was given.
12797 if test "${with_ccharw_max+set}" = set; then
12798 withval="$with_ccharw_max"
12799 NCURSES_CCHARW_MAX="$withval"
12801 NCURSES_CCHARW_MAX=5
12803 echo "$as_me:12803: result: $NCURSES_CCHARW_MAX" >&5
12804 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
12806 echo "$as_me:12806: checking for ANSI C header files" >&5
12807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12808 if test "${ac_cv_header_stdc+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 cat >conftest.$ac_ext <<_ACEOF
12812 #line 12812 "configure"
12813 #include "confdefs.h"
12814 #include <stdlib.h>
12815 #include <stdarg.h>
12816 #include <string.h>
12820 if { (eval echo "$as_me:12820: \"$ac_cpp conftest.$ac_ext\"") >&5
12821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12823 egrep -v '^ *\+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 echo "$as_me:12826: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null; then
12828 if test -s conftest.err; then
12829 ac_cpp_err=$ac_c_preproc_warn_flag
12836 if test -z "$ac_cpp_err"; then
12837 ac_cv_header_stdc=yes
12839 echo "$as_me: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 ac_cv_header_stdc=no
12843 rm -f conftest.err conftest.$ac_ext
12845 if test $ac_cv_header_stdc = yes; then
12846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12847 cat >conftest.$ac_ext <<_ACEOF
12848 #line 12848 "configure"
12849 #include "confdefs.h"
12850 #include <string.h>
12853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12854 egrep "memchr" >/dev/null 2>&1; then
12857 ac_cv_header_stdc=no
12863 if test $ac_cv_header_stdc = yes; then
12864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12865 cat >conftest.$ac_ext <<_ACEOF
12866 #line 12866 "configure"
12867 #include "confdefs.h"
12868 #include <stdlib.h>
12871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12872 egrep "free" >/dev/null 2>&1; then
12875 ac_cv_header_stdc=no
12881 if test $ac_cv_header_stdc = yes; then
12882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12883 if test "$cross_compiling" = yes; then
12886 cat >conftest.$ac_ext <<_ACEOF
12887 #line 12887 "configure"
12888 #include "confdefs.h"
12890 #if ((' ' & 0x0FF) == 0x020)
12891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12894 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12895 || ('j' <= (c) && (c) <= 'r') \
12896 || ('s' <= (c) && (c) <= 'z'))
12897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12905 for (i = 0; i < 256; i++)
12906 if (XOR (islower (i), ISLOWER (i))
12907 || toupper (i) != TOUPPER (i))
12908 $ac_main_return(2);
12909 $ac_main_return (0);
12912 rm -f conftest$ac_exeext
12913 if { (eval echo "$as_me:12913: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>&5
12916 echo "$as_me:12916: \$? = $ac_status" >&5
12917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12918 { (eval echo "$as_me:12918: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:12921: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12925 echo "$as_me: program exited with status $ac_status" >&5
12926 echo "$as_me: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 ac_cv_header_stdc=no
12930 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12934 echo "$as_me:12934: result: $ac_cv_header_stdc" >&5
12935 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12936 if test $ac_cv_header_stdc = yes; then
12938 cat >>confdefs.h <<\EOF
12939 #define STDC_HEADERS 1
12944 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12947 inttypes.h stdint.h unistd.h
12949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12950 echo "$as_me:12950: checking for $ac_header" >&5
12951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 cat >conftest.$ac_ext <<_ACEOF
12956 #line 12956 "configure"
12957 #include "confdefs.h"
12958 $ac_includes_default
12959 #include <$ac_header>
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:12962: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>&5
12965 echo "$as_me:12965: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:12968: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:12971: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 eval "$as_ac_Header=yes"
12975 echo "$as_me: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 eval "$as_ac_Header=no"
12979 rm -f conftest.$ac_objext conftest.$ac_ext
12981 echo "$as_me:12981: result: `eval echo '${'$as_ac_Header'}'`" >&5
12982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12984 cat >>confdefs.h <<EOF
12985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991 echo "$as_me:12991: checking for signed char" >&5
12992 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12993 if test "${ac_cv_type_signed_char+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #line 12997 "configure"
12998 #include "confdefs.h"
12999 $ac_includes_default
13003 if ((signed char *) 0)
13005 if (sizeof (signed char))
13011 rm -f conftest.$ac_objext
13012 if { (eval echo "$as_me:13012: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>&5
13015 echo "$as_me:13015: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -s conftest.$ac_objext'
13018 { (eval echo "$as_me:13018: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:13021: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_type_signed_char=yes
13025 echo "$as_me: failed program was:" >&5
13026 cat conftest.$ac_ext >&5
13027 ac_cv_type_signed_char=no
13029 rm -f conftest.$ac_objext conftest.$ac_ext
13031 echo "$as_me:13031: result: $ac_cv_type_signed_char" >&5
13032 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13034 echo "$as_me:13034: checking size of signed char" >&5
13035 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13036 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 if test "$ac_cv_type_signed_char" = yes; then
13040 if test "$cross_compiling" = yes; then
13041 # Depending upon the size, compute the lo and hi bounds.
13042 cat >conftest.$ac_ext <<_ACEOF
13043 #line 13043 "configure"
13044 #include "confdefs.h"
13045 $ac_includes_default
13049 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:13055: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:13061: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:13064: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line 13069 "configure"
13070 #include "confdefs.h"
13071 $ac_includes_default
13075 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13080 rm -f conftest.$ac_objext
13081 if { (eval echo "$as_me:13081: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>&5
13084 echo "$as_me:13084: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:13087: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:13090: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 ac_hi=$ac_mid; break
13094 echo "$as_me: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13096 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13098 rm -f conftest.$ac_objext conftest.$ac_ext
13101 echo "$as_me: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13105 cat >conftest.$ac_ext <<_ACEOF
13106 #line 13106 "configure"
13107 #include "confdefs.h"
13108 $ac_includes_default
13112 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13117 rm -f conftest.$ac_objext
13118 if { (eval echo "$as_me:13118: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>&5
13121 echo "$as_me:13121: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -s conftest.$ac_objext'
13124 { (eval echo "$as_me:13124: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:13127: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 ac_lo=$ac_mid; break
13131 echo "$as_me: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13133 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13135 rm -f conftest.$ac_objext conftest.$ac_ext
13138 rm -f conftest.$ac_objext conftest.$ac_ext
13139 # Binary search between lo and hi bounds.
13140 while test "x$ac_lo" != "x$ac_hi"; do
13141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line 13143 "configure"
13144 #include "confdefs.h"
13145 $ac_includes_default
13149 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13154 rm -f conftest.$ac_objext
13155 if { (eval echo "$as_me:13155: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>&5
13158 echo "$as_me:13158: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -s conftest.$ac_objext'
13161 { (eval echo "$as_me:13161: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13164 echo "$as_me:13164: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13168 echo "$as_me: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13170 ac_lo=`expr $ac_mid + 1`
13172 rm -f conftest.$ac_objext conftest.$ac_ext
13174 ac_cv_sizeof_signed_char=$ac_lo
13176 if test "$cross_compiling" = yes; then
13177 { { echo "$as_me:13177: error: cannot run test program while cross compiling" >&5
13178 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13179 { (exit 1); exit 1; }; }
13181 cat >conftest.$ac_ext <<_ACEOF
13182 #line 13182 "configure"
13183 #include "confdefs.h"
13184 $ac_includes_default
13188 FILE *f = fopen ("conftest.val", "w");
13190 $ac_main_return (1);
13191 fprintf (f, "%d", (sizeof (signed char)));
13197 rm -f conftest$ac_exeext
13198 if { (eval echo "$as_me:13198: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>&5
13201 echo "$as_me:13201: \$? = $ac_status" >&5
13202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13203 { (eval echo "$as_me:13203: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_sizeof_signed_char=`cat conftest.val`
13210 echo "$as_me: program exited with status $ac_status" >&5
13211 echo "$as_me: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13214 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13219 ac_cv_sizeof_signed_char=0
13222 echo "$as_me:13222: result: $ac_cv_sizeof_signed_char" >&5
13223 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13224 cat >>confdefs.h <<EOF
13225 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13228 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13229 NCURSES_SBOOL="signed char"
13231 NCURSES_SBOOL="char"
13233 echo "$as_me:13233: checking if you want to use signed Boolean array in term.h" >&5
13234 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13236 # Check whether --enable-signed-char or --disable-signed-char was given.
13237 if test "${enable_signed_char+set}" = set; then
13238 enableval="$enable_signed_char"
13239 with_signed_char=$enableval
13241 with_signed_char=no
13243 echo "$as_me:13243: result: $with_signed_char" >&5
13244 echo "${ECHO_T}$with_signed_char" >&6
13245 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13247 ### use option --with-tparm-arg to override tparm's argument type
13248 echo "$as_me:13248: checking for type of tparm args" >&5
13249 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
13251 # Check whether --with-tparm-arg or --without-tparm-arg was given.
13252 if test "${with_tparm_arg+set}" = set; then
13253 withval="$with_tparm_arg"
13254 NCURSES_TPARM_ARG="$withval"
13256 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
13258 echo "$as_me:13258: result: $NCURSES_TPARM_ARG" >&5
13259 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
13261 ### Enable compiling-in rcs id's
13262 echo "$as_me:13262: checking if RCS identifiers should be compiled-in" >&5
13263 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
13265 # Check whether --with-rcs-ids or --without-rcs-ids was given.
13266 if test "${with_rcs_ids+set}" = set; then
13267 withval="$with_rcs_ids"
13268 with_rcs_ids=$withval
13272 echo "$as_me:13272: result: $with_rcs_ids" >&5
13273 echo "${ECHO_T}$with_rcs_ids" >&6
13274 test "x$with_rcs_ids" = xyes &&
13275 cat >>confdefs.h <<\EOF
13276 #define USE_RCS_IDS 1
13279 ###############################################################################
13281 echo "$as_me:13281: checking format of man-pages" >&5
13282 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
13284 # Check whether --with-manpage-format or --without-manpage-format was given.
13285 if test "${with_manpage_format+set}" = set; then
13286 withval="$with_manpage_format"
13287 MANPAGE_FORMAT=$withval
13289 MANPAGE_FORMAT=unknown
13292 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
13293 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
13297 case $MANPAGE_FORMAT in
13299 if test -z "$MANPATH" ; then
13300 MANPATH="/usr/man:/usr/share/man"
13303 # look for the 'date' man-page (it's most likely to be installed!)
13309 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
13310 for cf_dir in $MANPATH; do
13311 test -z "$cf_dir" && cf_dir=/usr/man
13312 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
13314 cf_test=`echo $cf_name | sed -e 's/*//'`
13315 if test "x$cf_test" = "x$cf_name" ; then
13318 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
13319 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
13320 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
13321 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
13335 # if we found a match in either man* or cat*, stop looking
13336 if test -n "$MANPAGE_FORMAT" ; then
13338 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
13339 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
13345 test $cf_found=yes && break
13348 # only check the first directory in $MANPATH where we find manpages
13349 if test -n "$MANPAGE_FORMAT" ; then
13353 # if we did not find the example, just assume it is normal
13354 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
13358 for cf_option in $MANPAGE_FORMAT; do
13360 (gzip|compress|BSDI|normal|formatted|catonly)
13363 cf_unknown="$cf_unknown $cf_option"
13370 echo "$as_me:13370: result: $MANPAGE_FORMAT" >&5
13371 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
13372 if test -n "$cf_unknown" ; then
13373 { echo "$as_me:13373: WARNING: Unexpected manpage-format $cf_unknown" >&5
13374 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
13377 echo "$as_me:13377: checking for manpage renaming" >&5
13378 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
13380 # Check whether --with-manpage-renames or --without-manpage-renames was given.
13381 if test "${with_manpage_renames+set}" = set; then
13382 withval="$with_manpage_renames"
13383 MANPAGE_RENAMES=$withval
13385 MANPAGE_RENAMES=yes
13388 case ".$MANPAGE_RENAMES" in
13392 # Debian 'man' program?
13393 if test -f /etc/debian_version ; then
13394 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
13401 if test "$MANPAGE_RENAMES" != no ; then
13402 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
13403 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
13404 elif test ! -f $MANPAGE_RENAMES ; then
13405 { { echo "$as_me:13405: error: not a filename: $MANPAGE_RENAMES" >&5
13406 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
13407 { (exit 1); exit 1; }; }
13410 test ! -d man && mkdir man
13412 # Construct a sed-script to perform renaming within man-pages
13413 if test -n "$MANPAGE_RENAMES" ; then
13414 test ! -d man && mkdir man
13415 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
13419 echo "$as_me:13419: result: $MANPAGE_RENAMES" >&5
13420 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
13422 echo "$as_me:13422: checking if manpage aliases will be installed" >&5
13423 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
13425 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
13426 if test "${with_manpage_aliases+set}" = set; then
13427 withval="$with_manpage_aliases"
13428 MANPAGE_ALIASES=$withval
13430 MANPAGE_ALIASES=yes
13433 echo "$as_me:13433: result: $MANPAGE_ALIASES" >&5
13434 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
13438 cf_use_symlinks=yes
13445 MANPAGE_SYMLINKS=no
13446 if test "$MANPAGE_ALIASES" = yes ; then
13447 echo "$as_me:13447: checking if manpage symlinks should be used" >&5
13448 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
13450 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
13451 if test "${with_manpage_symlinks+set}" = set; then
13452 withval="$with_manpage_symlinks"
13453 MANPAGE_SYMLINKS=$withval
13455 MANPAGE_SYMLINKS=$cf_use_symlinks
13458 if test "$$cf_use_symlinks" = no; then
13459 if test "$MANPAGE_SYMLINKS" = yes ; then
13460 { echo "$as_me:13460: WARNING: cannot make symlinks" >&5
13461 echo "$as_me: WARNING: cannot make symlinks" >&2;}
13462 MANPAGE_SYMLINKS=no
13466 echo "$as_me:13466: result: $MANPAGE_SYMLINKS" >&5
13467 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
13470 echo "$as_me:13470: checking for manpage tbl" >&5
13471 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
13473 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
13474 if test "${with_manpage_tbl+set}" = set; then
13475 withval="$with_manpage_tbl"
13476 MANPAGE_TBL=$withval
13481 echo "$as_me:13481: result: $MANPAGE_TBL" >&5
13482 echo "${ECHO_T}$MANPAGE_TBL" >&6
13484 if test "$prefix" = "NONE" ; then
13485 cf_prefix="$ac_default_prefix"
13487 cf_prefix="$prefix"
13490 case "$MANPAGE_FORMAT" in
13505 test ! -d man && mkdir man
13509 case "$MANPAGE_FORMAT" in
13512 cf_compress=compress
13520 cf_edit_man=./edit_man.sh
13521 cf_man_alias=`pwd`/man_alias.sed
13523 cat >$cf_edit_man <<CF_EOF
13525 # this script is generated by the configure-script CF_MAN_PAGES macro.
13527 prefix="$cf_prefix"
13528 datarootdir="$datarootdir"
13531 NCURSES_MAJOR="$NCURSES_MAJOR"
13532 NCURSES_MINOR="$NCURSES_MINOR"
13533 NCURSES_PATCH="$NCURSES_PATCH"
13535 NCURSES_OSPEED="$NCURSES_OSPEED"
13536 TERMINFO="$TERMINFO"
13539 INSTALL_DATA="$INSTALL_DATA"
13541 transform="$program_transform_name"
13543 TMP=\${TMPDIR:=/tmp}/man\$\$
13544 trap "rm -f \$TMP" 0 1 2 3 15
13556 top_srcdir=\$srcdir/..
13559 if test "\$form" = normal ; then
13560 if test "$cf_format" = yes ; then
13561 if test "$cf_inboth" = no ; then
13562 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
13566 cf_subdir=\$mandir/man
13567 cf_tables=$MANPAGE_TBL
13569 cf_subdir=\$mandir/cat
13573 # process the list of source-files
13578 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
13579 if test \$verb = installing ; then
13580 if test ! -d \$cf_subdir\${section} ; then
13581 mkdir -p \$cf_subdir\$section
13585 # replace variables in man page
13586 if test ! -f $cf_man_alias ; then
13587 cat >>$cf_man_alias <<-CF_EOF2
13588 s,@DATADIR@,\$datadir,g
13589 s,@TERMINFO@,\${TERMINFO:="no default value"},g
13590 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
13591 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
13592 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
13593 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
13594 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
13597 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
13599 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13600 cf_name=`echo $cf_name|sed "$program_transform_name"`
13601 cat >>$cf_edit_man <<-CF_EOF
13602 s,@$cf_NAME@,$cf_name,g
13606 cat >>$cf_edit_man <<CF_EOF
13608 echo "...made $cf_man_alias"
13612 cf_source=\`basename \$i\`
13613 inalias=\$cf_source
13614 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
13615 if test ! -f \$inalias ; then
13616 echo .. skipped \$cf_source
13621 if test "$MANPAGE_ALIASES" != no ; then
13622 cat >>$cf_edit_man <<CF_EOF
13624 test $with_curses_h = yes && nCurses=ncurses.3x
13625 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
13629 if test "$MANPAGE_RENAMES" = no ; then
13630 cat >>$cf_edit_man <<CF_EOF
13631 # perform program transformations for section 1 man pages
13632 if test \$section = 1 ; then
13633 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
13635 cf_target=\$cf_subdir\${section}/\$cf_source
13639 cat >>$cf_edit_man <<CF_EOF
13640 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
13641 if test -z "\$cf_target" ; then
13642 echo '? missing rename for '\$cf_source
13643 cf_target="\$cf_source"
13645 cf_target="\$cf_subdir\${section}/\${cf_target}"
13650 cat >>$cf_edit_man <<CF_EOF
13651 sed -f $cf_man_alias \\
13654 if test -f $MANPAGE_RENAMES ; then
13655 cat >>$cf_edit_man <<CF_EOF
13656 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
13659 cat >>$cf_edit_man <<CF_EOF
13664 cat >>$cf_edit_man <<CF_EOF
13665 if test \$cf_tables = yes ; then
13666 tbl \$TMP >\$TMP.out
13671 if test $with_overwrite != yes ; then
13672 cat >>$cf_edit_man <<CF_EOF
13673 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
13678 if test $with_curses_h != yes ; then
13679 cat >>$cf_edit_man <<CF_EOF
13680 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
13685 cat >>$cf_edit_man <<CF_EOF
13686 if test \$form = format ; then
13687 nroff -man \$TMP >\$TMP.out
13692 if test -n "$cf_compress" ; then
13693 cat >>$cf_edit_man <<CF_EOF
13694 if test \$verb = installing ; then
13695 if ( $cf_compress -f \$TMP )
13697 mv \$TMP.$cf_so_strip \$TMP
13700 cf_target="\$cf_target.$cf_so_strip"
13704 case "$MANPAGE_FORMAT" in
13706 cat >>$cf_edit_man <<CF_EOF
13707 if test \$form = format ; then
13708 # BSDI installs only .0 suffixes in the cat directories
13709 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
13715 cat >>$cf_edit_man <<CF_EOF
13716 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
13717 if test \$verb = installing ; then
13718 echo \$verb \$cf_target
13719 \$INSTALL_DATA \$TMP \$cf_target
13720 test -d \$cf_subdir\${section} &&
13721 test -n "\$aliases" && (
13722 cd \$cf_subdir\${section} && (
13723 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
13724 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
13725 cf_target=\`basename \$cf_target\`
13726 for cf_alias in \$aliases
13728 if test \$section = 1 ; then
13729 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
13732 if test "$MANPAGE_SYMLINKS" = yes ; then
13733 if test -f \$cf_alias\${suffix} ; then
13734 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
13739 echo .. \$verb alias \$cf_alias\${suffix}
13743 cat >>$cf_edit_man <<CF_EOF
13744 $LN_S \$cf_target \$cf_alias\${suffix}
13748 cat >>$cf_edit_man <<CF_EOF
13749 rm -f \$cf_alias\${suffix}
13750 $LN_S \$cf_target \$cf_alias\${suffix}
13754 cat >>$cf_edit_man <<CF_EOF
13755 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
13756 echo ".so \$cf_source" >\$TMP
13758 if test -n "$cf_compress" ; then
13759 cat >>$cf_edit_man <<CF_EOF
13760 if test -n "$cf_so_strip" ; then
13761 $cf_compress -f \$TMP
13762 mv \$TMP.$cf_so_strip \$TMP
13766 cat >>$cf_edit_man <<CF_EOF
13767 echo .. \$verb alias \$cf_alias\${suffix}
13768 rm -f \$cf_alias\${suffix}
13769 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
13774 elif test \$verb = removing ; then
13775 test -f \$cf_target && (
13776 echo \$verb \$cf_target
13779 test -d \$cf_subdir\${section} &&
13780 test -n "\$aliases" && (
13781 cd \$cf_subdir\${section} && (
13782 for cf_alias in \$aliases
13784 if test \$section = 1 ; then
13785 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
13788 echo .. \$verb alias \$cf_alias\${suffix}
13789 rm -f \$cf_alias\${suffix}
13801 if test $cf_inboth = yes ; then
13802 if test \$form != format ; then
13803 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
13809 chmod 755 $cf_edit_man
13811 ###############################################################################
13813 ### Note that some functions (such as const) are normally disabled anyway.
13814 echo "$as_me:13814: checking if you want to build with function extensions" >&5
13815 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
13817 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
13818 if test "${enable_ext_funcs+set}" = set; then
13819 enableval="$enable_ext_funcs"
13820 with_ext_funcs=$enableval
13824 echo "$as_me:13824: result: $with_ext_funcs" >&5
13825 echo "${ECHO_T}$with_ext_funcs" >&6
13826 if test "x$with_ext_funcs" = xyes ; then
13827 NCURSES_EXT_FUNCS=1
13829 cat >>confdefs.h <<\EOF
13830 #define NCURSES_EXT_FUNCS 1
13833 cat >>confdefs.h <<\EOF
13834 #define HAVE_ASSUME_DEFAULT_COLORS 1
13837 cat >>confdefs.h <<\EOF
13838 #define HAVE_CURSES_VERSION 1
13841 cat >>confdefs.h <<\EOF
13842 #define HAVE_HAS_KEY 1
13845 cat >>confdefs.h <<\EOF
13846 #define HAVE_RESIZETERM 1
13849 cat >>confdefs.h <<\EOF
13850 #define HAVE_RESIZE_TERM 1
13853 cat >>confdefs.h <<\EOF
13854 #define HAVE_TERM_ENTRY_H 1
13857 cat >>confdefs.h <<\EOF
13858 #define HAVE_USE_DEFAULT_COLORS 1
13861 cat >>confdefs.h <<\EOF
13862 #define HAVE_USE_EXTENDED_NAMES 1
13865 cat >>confdefs.h <<\EOF
13866 #define HAVE_USE_SCREEN 1
13869 cat >>confdefs.h <<\EOF
13870 #define HAVE_USE_WINDOW 1
13873 cat >>confdefs.h <<\EOF
13874 #define HAVE_WRESIZE 1
13877 GENERATED_EXT_FUNCS=generated
13878 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
13880 NCURSES_EXT_FUNCS=0
13881 GENERATED_EXT_FUNCS=
13884 echo "$as_me:13884: checking if you want to build with SCREEN extensions" >&5
13885 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
13887 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
13888 if test "${enable_sp_funcs+set}" = set; then
13889 enableval="$enable_sp_funcs"
13890 with_sp_funcs=$enableval
13892 with_sp_funcs=$cf_dft_ext_spfuncs
13894 echo "$as_me:13894: result: $with_sp_funcs" >&5
13895 echo "${ECHO_T}$with_sp_funcs" >&6
13896 if test "x$with_sp_funcs" = xyes ; then
13899 cat >>confdefs.h <<\EOF
13900 #define NCURSES_SP_FUNCS 1
13903 cat >>confdefs.h <<\EOF
13904 #define HAVE_TPUTS_SP 1
13907 GENERATED_SP_FUNCS=generated
13910 GENERATED_SP_FUNCS=
13913 echo "$as_me:13913: checking if you want to build with terminal-driver" >&5
13914 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
13916 # Check whether --enable-term-driver or --disable-term-driver was given.
13917 if test "${enable_term_driver+set}" = set; then
13918 enableval="$enable_term_driver"
13919 with_term_driver=$enableval
13921 with_term_driver=no
13923 echo "$as_me:13923: result: $with_term_driver" >&5
13924 echo "${ECHO_T}$with_term_driver" >&6
13925 if test "x$with_term_driver" = xyes ; then
13927 cat >>confdefs.h <<\EOF
13928 #define USE_TERM_DRIVER 1
13931 if test "x$with_termlib" != xno ; then
13932 { { echo "$as_me:13932: error: The term-driver option conflicts with the termlib option" >&5
13933 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
13934 { (exit 1); exit 1; }; }
13936 if test "x$with_sp_funcs" != xyes ; then
13937 { { echo "$as_me:13937: error: The term-driver option relies upon sp-funcs" >&5
13938 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
13939 { (exit 1); exit 1; }; }
13943 ### use option --enable-const to turn on use of const beyond that in XSI.
13944 echo "$as_me:13944: checking for extended use of const keyword" >&5
13945 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
13947 # Check whether --enable-const or --disable-const was given.
13948 if test "${enable_const+set}" = set; then
13949 enableval="$enable_const"
13950 with_ext_const=$enableval
13952 with_ext_const=$cf_dft_ext_const
13954 echo "$as_me:13954: result: $with_ext_const" >&5
13955 echo "${ECHO_T}$with_ext_const" >&6
13956 NCURSES_CONST='/*nothing*/'
13957 if test "x$with_ext_const" = xyes ; then
13958 NCURSES_CONST=const
13961 ### use option --enable-ext-colors to turn on use of colors beyond 16.
13962 echo "$as_me:13962: checking if you want to use extended colors" >&5
13963 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
13965 # Check whether --enable-ext-colors or --disable-ext-colors was given.
13966 if test "${enable_ext_colors+set}" = set; then
13967 enableval="$enable_ext_colors"
13968 with_ext_colors=$enableval
13970 with_ext_colors=$cf_dft_ext_colors
13972 echo "$as_me:13972: result: $with_ext_colors" >&5
13973 echo "${ECHO_T}$with_ext_colors" >&6
13974 NCURSES_EXT_COLORS=0
13975 if test "x$with_ext_colors" = xyes ; then
13976 if test "x$with_widec" != xyes ; then
13977 { echo "$as_me:13977: WARNING: This option applies only to wide-character library" >&5
13978 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
13980 # cannot be ABI 5 since it changes sizeof(cchar_t)
13982 if test "${with_abi_version+set}" != set; then
13983 case $cf_cv_rel_version in
13985 cf_cv_rel_version=6.0
13986 cf_cv_abi_version=6
13987 { echo "$as_me:13987: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13988 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13993 NCURSES_EXT_COLORS=1
13995 cat >>confdefs.h <<\EOF
13996 #define NCURSES_EXT_COLORS 1
13999 cat >>confdefs.h <<\EOF
14000 #define HAVE_ALLOC_PAIR 1
14003 cat >>confdefs.h <<\EOF
14004 #define HAVE_INIT_EXTENDED_COLOR 1
14007 cat >>confdefs.h <<\EOF
14008 #define HAVE_RESET_COLOR_PAIRS 1
14014 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14015 echo "$as_me:14015: checking if you want to use extended mouse encoding" >&5
14016 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14018 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14019 if test "${enable_ext_mouse+set}" = set; then
14020 enableval="$enable_ext_mouse"
14021 with_ext_mouse=$enableval
14023 with_ext_mouse=$cf_dft_ext_mouse
14025 echo "$as_me:14025: result: $with_ext_mouse" >&5
14026 echo "${ECHO_T}$with_ext_mouse" >&6
14027 NCURSES_MOUSE_VERSION=1
14028 if test "x$with_ext_mouse" = xyes ; then
14029 NCURSES_MOUSE_VERSION=2
14031 if test "${with_abi_version+set}" != set; then
14032 case $cf_cv_rel_version in
14034 cf_cv_rel_version=6.0
14035 cf_cv_abi_version=6
14036 { echo "$as_me:14036: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14037 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14044 ### use option --enable-ext-putwin to turn on extended screendumps
14045 echo "$as_me:14045: checking if you want to use extended putwin/screendump" >&5
14046 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14048 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14049 if test "${enable_ext_putwin+set}" = set; then
14050 enableval="$enable_ext_putwin"
14051 with_ext_putwin=$enableval
14053 with_ext_putwin=$cf_dft_ext_putwin
14055 echo "$as_me:14055: result: $with_ext_putwin" >&5
14056 echo "${ECHO_T}$with_ext_putwin" >&6
14057 if test "x$with_ext_putwin" = xyes ; then
14059 cat >>confdefs.h <<\EOF
14060 #define NCURSES_EXT_PUTWIN 1
14065 echo "$as_me:14065: checking if you want \$NCURSES_NO_PADDING code" >&5
14066 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14068 # Check whether --enable-no-padding or --disable-no-padding was given.
14069 if test "${enable_no_padding+set}" = set; then
14070 enableval="$enable_no_padding"
14071 with_no_padding=$enableval
14073 with_no_padding=$with_ext_funcs
14075 echo "$as_me:14075: result: $with_no_padding" >&5
14076 echo "${ECHO_T}$with_no_padding" >&6
14077 test "x$with_no_padding" = xyes &&
14078 cat >>confdefs.h <<\EOF
14079 #define NCURSES_NO_PADDING 1
14082 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14083 echo "$as_me:14083: checking if you want SIGWINCH handler" >&5
14084 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14086 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14087 if test "${enable_sigwinch+set}" = set; then
14088 enableval="$enable_sigwinch"
14089 with_sigwinch=$enableval
14091 with_sigwinch=$with_ext_funcs
14093 echo "$as_me:14093: result: $with_sigwinch" >&5
14094 echo "${ECHO_T}$with_sigwinch" >&6
14095 test "x$with_sigwinch" = xyes &&
14096 cat >>confdefs.h <<\EOF
14097 #define USE_SIGWINCH 1
14100 ### use option --enable-tcap-names to allow user to define new capabilities
14101 echo "$as_me:14101: checking if you want user-definable terminal capabilities like termcap" >&5
14102 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14104 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14105 if test "${enable_tcap_names+set}" = set; then
14106 enableval="$enable_tcap_names"
14107 with_tcap_names=$enableval
14109 with_tcap_names=$with_ext_funcs
14111 echo "$as_me:14111: result: $with_tcap_names" >&5
14112 echo "${ECHO_T}$with_tcap_names" >&6
14114 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14116 ##############################################################################
14118 echo "$as_me:14118: checking if you want to link with the pthread library" >&5
14119 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14121 # Check whether --with-pthread or --without-pthread was given.
14122 if test "${with_pthread+set}" = set; then
14123 withval="$with_pthread"
14124 with_pthread=$withval
14128 echo "$as_me:14128: result: $with_pthread" >&5
14129 echo "${ECHO_T}$with_pthread" >&6
14131 if test "$with_pthread" != no ; then
14132 echo "$as_me:14132: checking for pthread.h" >&5
14133 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14134 if test "${ac_cv_header_pthread_h+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cat >conftest.$ac_ext <<_ACEOF
14138 #line 14138 "configure"
14139 #include "confdefs.h"
14140 #include <pthread.h>
14142 if { (eval echo "$as_me:14142: \"$ac_cpp conftest.$ac_ext\"") >&5
14143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14145 egrep -v '^ *\+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 echo "$as_me:14148: \$? = $ac_status" >&5
14149 (exit $ac_status); } >/dev/null; then
14150 if test -s conftest.err; then
14151 ac_cpp_err=$ac_c_preproc_warn_flag
14158 if test -z "$ac_cpp_err"; then
14159 ac_cv_header_pthread_h=yes
14161 echo "$as_me: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 ac_cv_header_pthread_h=no
14165 rm -f conftest.err conftest.$ac_ext
14167 echo "$as_me:14167: result: $ac_cv_header_pthread_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14169 if test $ac_cv_header_pthread_h = yes; then
14171 cat >>confdefs.h <<\EOF
14172 #define HAVE_PTHREADS_H 1
14175 for cf_lib_pthread in pthread c_r
14177 echo "$as_me:14177: checking if we can link with the $cf_lib_pthread library" >&5
14178 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14179 cf_save_LIBS="$LIBS"
14181 cf_add_libs="-l$cf_lib_pthread"
14182 # Filter out duplicates - this happens with badly-designed ".pc" files...
14183 for cf_add_1lib in $LIBS
14185 for cf_add_2lib in $cf_add_libs
14187 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14193 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14195 LIBS="$cf_add_libs"
14197 cat >conftest.$ac_ext <<_ACEOF
14198 #line 14198 "configure"
14199 #include "confdefs.h"
14201 #include <pthread.h>
14207 int rc = pthread_create(0,0,0,0);
14208 int r2 = pthread_mutexattr_settype(0, 0);
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (eval echo "$as_me:14215: \"$ac_link\"") >&5
14216 (eval $ac_link) 2>&5
14218 echo "$as_me:14218: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -s conftest$ac_exeext'
14221 { (eval echo "$as_me:14221: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:14224: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14228 echo "$as_me: failed program was:" >&5
14229 cat conftest.$ac_ext >&5
14232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14233 LIBS="$cf_save_LIBS"
14234 echo "$as_me:14234: result: $with_pthread" >&5
14235 echo "${ECHO_T}$with_pthread" >&6
14236 test "$with_pthread" = yes && break
14239 if test "$with_pthread" = yes ; then
14241 cf_add_libs="-l$cf_lib_pthread"
14242 # Filter out duplicates - this happens with badly-designed ".pc" files...
14243 for cf_add_1lib in $LIBS
14245 for cf_add_2lib in $cf_add_libs
14247 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14253 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14255 LIBS="$cf_add_libs"
14257 cat >>confdefs.h <<\EOF
14258 #define HAVE_LIBPTHREADS 1
14262 { { echo "$as_me:14262: error: Cannot link with pthread library" >&5
14263 echo "$as_me: error: Cannot link with pthread library" >&2;}
14264 { (exit 1); exit 1; }; }
14271 if test "x$with_pthread" != xno; then
14272 echo "$as_me:14272: checking for pthread_kill" >&5
14273 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
14274 if test "${ac_cv_func_pthread_kill+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line 14278 "configure"
14279 #include "confdefs.h"
14280 #define pthread_kill autoconf_temporary
14281 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14282 #undef pthread_kill
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14290 char pthread_kill (void);
14296 /* The GNU C library defines stubs for functions which it implements
14297 to always fail with ENOSYS. Some functions are actually named
14298 something starting with __ and the normal name is an alias. */
14299 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
14300 #error found stub for pthread_kill
14303 return pthread_kill ();
14308 rm -f conftest.$ac_objext conftest$ac_exeext
14309 if { (eval echo "$as_me:14309: \"$ac_link\"") >&5
14310 (eval $ac_link) 2>&5
14312 echo "$as_me:14312: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -s conftest$ac_exeext'
14315 { (eval echo "$as_me:14315: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:14318: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_func_pthread_kill=yes
14322 echo "$as_me: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 ac_cv_func_pthread_kill=no
14326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14328 echo "$as_me:14328: result: $ac_cv_func_pthread_kill" >&5
14329 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
14330 if test $ac_cv_func_pthread_kill = yes; then
14332 echo "$as_me:14332: checking if you want to allow EINTR in wgetch with pthreads" >&5
14333 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
14335 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
14336 if test "${enable_pthreads_eintr+set}" = set; then
14337 enableval="$enable_pthreads_eintr"
14338 use_pthreads_eintr=$enableval
14340 use_pthreads_eintr=no
14342 echo "$as_me:14342: result: $use_pthreads_eintr" >&5
14343 echo "${ECHO_T}$use_pthreads_eintr" >&6
14344 if test "x$use_pthreads_eintr" = xyes ; then
14346 cat >>confdefs.h <<\EOF
14347 #define USE_PTHREADS_EINTR 1
14353 echo "$as_me:14353: checking if you want to use weak-symbols for pthreads" >&5
14354 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
14356 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
14357 if test "${enable_weak_symbols+set}" = set; then
14358 enableval="$enable_weak_symbols"
14359 use_weak_symbols=$enableval
14361 use_weak_symbols=no
14363 echo "$as_me:14363: result: $use_weak_symbols" >&5
14364 echo "${ECHO_T}$use_weak_symbols" >&6
14365 if test "x$use_weak_symbols" = xyes ; then
14367 echo "$as_me:14367: checking if $CC supports weak symbols" >&5
14368 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
14369 if test "${cf_cv_weak_symbols+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line 14374 "configure"
14375 #include "confdefs.h"
14382 #if defined(__GNUC__)
14383 # if defined __USE_ISOC99
14384 # define _cat_pragma(exp) _Pragma(#exp)
14385 # define _weak_pragma(exp) _cat_pragma(weak name)
14387 # define _weak_pragma(exp)
14389 # define _declare(name) __extension__ extern __typeof__(name) name
14390 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
14393 weak_symbol(fopen);
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:14400: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>&5
14403 echo "$as_me:14403: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -s conftest.$ac_objext'
14406 { (eval echo "$as_me:14406: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:14409: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 cf_cv_weak_symbols=yes
14413 echo "$as_me: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 cf_cv_weak_symbols=no
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14420 echo "$as_me:14420: result: $cf_cv_weak_symbols" >&5
14421 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
14424 cf_cv_weak_symbols=no
14427 if test "x$cf_cv_weak_symbols" = xyes ; then
14429 cat >>confdefs.h <<\EOF
14430 #define USE_WEAK_SYMBOLS 1
14437 if test "x$with_pthread" = "xyes" ; then
14439 cat >>confdefs.h <<\EOF
14440 #define USE_PTHREADS 1
14443 enable_reentrant=yes
14444 if test "x$cf_cv_weak_symbols" = xyes ; then
14447 cf_add_libs="-lpthread"
14448 # Filter out duplicates - this happens with badly-designed ".pc" files...
14449 for cf_add_1lib in $PRIVATE_LIBS
14451 for cf_add_2lib in $cf_add_libs
14453 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14459 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14461 PRIVATE_LIBS="$cf_add_libs"
14466 # Reentrant code has to be opaque; there's little advantage to making ncurses
14467 # opaque outside of that, so there is no --enable-opaque option. We can use
14468 # this option without --with-pthreads, but this will be always set for
14470 echo "$as_me:14470: checking if you want reentrant code" >&5
14471 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
14473 # Check whether --enable-reentrant or --disable-reentrant was given.
14474 if test "${enable_reentrant+set}" = set; then
14475 enableval="$enable_reentrant"
14476 with_reentrant=$enableval
14480 echo "$as_me:14480: result: $with_reentrant" >&5
14481 echo "${ECHO_T}$with_reentrant" >&6
14482 if test "x$with_reentrant" = xyes ; then
14483 cf_cv_enable_reentrant=1
14484 cf_cv_enable_opaque="NCURSES_INTERNALS"
14486 if test "x$cf_cv_weak_symbols" = xyes ; then
14488 # remove pthread library from $LIBS
14489 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
14491 cf_add_libs="-lpthread"
14492 # Filter out duplicates - this happens with badly-designed ".pc" files...
14493 for cf_add_1lib in $TEST_LIBS
14495 for cf_add_2lib in $cf_add_libs
14497 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14503 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14505 TEST_LIBS="$cf_add_libs"
14507 cf_add_libs="-lpthread"
14508 # Filter out duplicates - this happens with badly-designed ".pc" files...
14509 for cf_add_1lib in $TEST_LIBS2
14511 for cf_add_2lib in $cf_add_libs
14513 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14519 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14521 TEST_LIBS2="$cf_add_libs"
14523 cf_add_libs="-lpthread"
14524 # Filter out duplicates - this happens with badly-designed ".pc" files...
14525 for cf_add_1lib in $PRIVATE_LIBS
14527 for cf_add_2lib in $cf_add_libs
14529 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14535 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14537 PRIVATE_LIBS="$cf_add_libs"
14540 # when not using weak symbols but with_reentrant,
14541 # add 't' to the library suffix on all platforms
14542 # except cygwin, where we only do that if ALSO
14543 # compiling with full thread support.
14545 (*cygwin* | *msys*)
14546 if test "$with_pthread" = "yes" ; then
14547 if test "x$disable_lib_suffixes" = "xno" ; then
14548 LIB_SUFFIX="t${LIB_SUFFIX}"
14552 if test "x$disable_lib_suffixes" = "xno" ; then
14553 LIB_SUFFIX="t${LIB_SUFFIX}"
14559 cat >>confdefs.h <<\EOF
14560 #define USE_REENTRANT 1
14563 if test "${with_abi_version+set}" != set; then
14564 case $cf_cv_rel_version in
14566 cf_cv_rel_version=6.0
14567 cf_cv_abi_version=6
14568 { echo "$as_me:14568: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14569 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14575 cf_cv_enable_reentrant=0
14576 cf_cv_enable_opaque="NCURSES_OPAQUE"
14577 NCURSES_SIZE_T=short
14580 echo "$as_me:14580: checking if you want opaque curses-library structures" >&5
14581 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
14583 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
14584 if test "${enable_opaque_curses+set}" = set; then
14585 enableval="$enable_opaque_curses"
14586 test "$enableval" != yes && enableval=no
14587 if test "$enableval" != "no" ; then
14588 enable_opaque_curses=yes
14591 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
14592 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
14598 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
14599 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
14602 echo "$as_me:14602: result: $enable_opaque_curses" >&5
14603 echo "${ECHO_T}$enable_opaque_curses" >&6
14605 test "$cf_cv_enable_reentrant" = 1 && \
14606 test "$enable_opaque_curses" = no && \
14607 { { echo "$as_me:14607: error: reentrant configuration requires opaque library" >&5
14608 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
14609 { (exit 1); exit 1; }; }
14611 echo "$as_me:14611: checking if you want opaque form-library structures" >&5
14612 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
14614 # Check whether --enable-opaque-form or --disable-opaque-form was given.
14615 if test "${enable_opaque_form+set}" = set; then
14616 enableval="$enable_opaque_form"
14617 enable_opaque_form=yes
14619 enable_opaque_form=no
14621 echo "$as_me:14621: result: $enable_opaque_form" >&5
14622 echo "${ECHO_T}$enable_opaque_form" >&6
14624 echo "$as_me:14624: checking if you want opaque menu-library structures" >&5
14625 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
14627 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
14628 if test "${enable_opaque_menu+set}" = set; then
14629 enableval="$enable_opaque_menu"
14630 enable_opaque_menu=yes
14632 enable_opaque_menu=no
14634 echo "$as_me:14634: result: $enable_opaque_menu" >&5
14635 echo "${ECHO_T}$enable_opaque_menu" >&6
14637 echo "$as_me:14637: checking if you want opaque panel-library structures" >&5
14638 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
14640 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
14641 if test "${enable_opaque_panel+set}" = set; then
14642 enableval="$enable_opaque_panel"
14643 enable_opaque_panel=yes
14645 enable_opaque_panel=no
14647 echo "$as_me:14647: result: $enable_opaque_panel" >&5
14648 echo "${ECHO_T}$enable_opaque_panel" >&6
14650 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
14651 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
14652 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
14653 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
14655 ### Allow using a different wrap-prefix
14656 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
14657 echo "$as_me:14657: checking for prefix used to wrap public variables" >&5
14658 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
14660 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
14661 if test "${with_wrap_prefix+set}" = set; then
14662 withval="$with_wrap_prefix"
14663 NCURSES_WRAP_PREFIX=$withval
14665 NCURSES_WRAP_PREFIX=_nc_
14667 echo "$as_me:14667: result: $NCURSES_WRAP_PREFIX" >&5
14668 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
14670 NCURSES_WRAP_PREFIX=_nc_
14673 cat >>confdefs.h <<EOF
14674 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
14677 ###############################################################################
14678 # These options are relatively safe to experiment with.
14680 echo "$as_me:14680: checking if you want all development code" >&5
14681 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
14683 # Check whether --with-develop or --without-develop was given.
14684 if test "${with_develop+set}" = set; then
14685 withval="$with_develop"
14686 with_develop=$withval
14690 echo "$as_me:14690: result: $with_develop" >&5
14691 echo "${ECHO_T}$with_develop" >&6
14693 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
14694 echo "$as_me:14694: checking if you want hard-tabs code" >&5
14695 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
14697 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
14698 if test "${enable_hard_tabs+set}" = set; then
14699 enableval="$enable_hard_tabs"
14702 enable_hard_tabs=$with_develop
14704 echo "$as_me:14704: result: $enable_hard_tabs" >&5
14705 echo "${ECHO_T}$enable_hard_tabs" >&6
14706 test "x$enable_hard_tabs" = xyes &&
14707 cat >>confdefs.h <<\EOF
14708 #define USE_HARD_TABS 1
14711 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
14712 echo "$as_me:14712: checking if you want limited support for xmc" >&5
14713 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
14715 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
14716 if test "${enable_xmc_glitch+set}" = set; then
14717 enableval="$enable_xmc_glitch"
14720 enable_xmc_glitch=$with_develop
14722 echo "$as_me:14722: result: $enable_xmc_glitch" >&5
14723 echo "${ECHO_T}$enable_xmc_glitch" >&6
14724 test "x$enable_xmc_glitch" = xyes &&
14725 cat >>confdefs.h <<\EOF
14726 #define USE_XMC_SUPPORT 1
14729 ###############################################################################
14730 # These are just experimental, probably should not be in a package:
14732 echo "$as_me:14732: checking if you do not want to assume colors are white-on-black" >&5
14733 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
14735 # Check whether --enable-assumed-color or --disable-assumed-color was given.
14736 if test "${enable_assumed_color+set}" = set; then
14737 enableval="$enable_assumed_color"
14738 with_assumed_color=$enableval
14740 with_assumed_color=yes
14742 echo "$as_me:14742: result: $with_assumed_color" >&5
14743 echo "${ECHO_T}$with_assumed_color" >&6
14744 test "x$with_assumed_color" = xyes &&
14745 cat >>confdefs.h <<\EOF
14746 #define USE_ASSUMED_COLOR 1
14749 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
14750 echo "$as_me:14750: checking if you want hashmap scrolling-optimization code" >&5
14751 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
14753 # Check whether --enable-hashmap or --disable-hashmap was given.
14754 if test "${enable_hashmap+set}" = set; then
14755 enableval="$enable_hashmap"
14756 with_hashmap=$enableval
14760 echo "$as_me:14760: result: $with_hashmap" >&5
14761 echo "${ECHO_T}$with_hashmap" >&6
14762 test "x$with_hashmap" = xyes &&
14763 cat >>confdefs.h <<\EOF
14764 #define USE_HASHMAP 1
14767 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
14768 echo "$as_me:14768: checking if you want colorfgbg code" >&5
14769 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
14771 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
14772 if test "${enable_colorfgbg+set}" = set; then
14773 enableval="$enable_colorfgbg"
14774 with_colorfgbg=$enableval
14778 echo "$as_me:14778: result: $with_colorfgbg" >&5
14779 echo "${ECHO_T}$with_colorfgbg" >&6
14780 test "x$with_colorfgbg" = xyes &&
14781 cat >>confdefs.h <<\EOF
14782 #define USE_COLORFGBG 1
14785 ### use option --enable-interop to turn on use of bindings used for interop
14786 echo "$as_me:14786: checking if you want interop bindings" >&5
14787 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
14789 # Check whether --enable-interop or --disable-interop was given.
14790 if test "${enable_interop+set}" = set; then
14791 enableval="$enable_interop"
14792 with_exp_interop=$enableval
14794 with_exp_interop=$cf_dft_interop
14796 echo "$as_me:14796: result: $with_exp_interop" >&5
14797 echo "${ECHO_T}$with_exp_interop" >&6
14799 NCURSES_INTEROP_FUNCS=0
14800 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
14802 echo "$as_me:14802: checking if you want experimental safe-sprintf code" >&5
14803 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
14805 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
14806 if test "${enable_safe_sprintf+set}" = set; then
14807 enableval="$enable_safe_sprintf"
14808 with_safe_sprintf=$enableval
14810 with_safe_sprintf=no
14812 echo "$as_me:14812: result: $with_safe_sprintf" >&5
14813 echo "${ECHO_T}$with_safe_sprintf" >&6
14815 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
14816 # when hashmap is used scroll hints are useless
14817 if test "$with_hashmap" = no ; then
14818 echo "$as_me:14818: checking if you want to experiment without scrolling-hints code" >&5
14819 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
14821 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
14822 if test "${enable_scroll_hints+set}" = set; then
14823 enableval="$enable_scroll_hints"
14824 with_scroll_hints=$enableval
14826 with_scroll_hints=yes
14828 echo "$as_me:14828: result: $with_scroll_hints" >&5
14829 echo "${ECHO_T}$with_scroll_hints" >&6
14830 test "x$with_scroll_hints" = xyes &&
14831 cat >>confdefs.h <<\EOF
14832 #define USE_SCROLL_HINTS 1
14837 echo "$as_me:14837: checking if you want wgetch-events code" >&5
14838 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
14840 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
14841 if test "${enable_wgetch_events+set}" = set; then
14842 enableval="$enable_wgetch_events"
14843 with_wgetch_events=$enableval
14845 with_wgetch_events=no
14847 echo "$as_me:14847: result: $with_wgetch_events" >&5
14848 echo "${ECHO_T}$with_wgetch_events" >&6
14849 test "x$with_wgetch_events" = xyes &&
14850 cat >>confdefs.h <<\EOF
14851 #define NCURSES_WGETCH_EVENTS 1
14854 ###############################################################################
14856 ### use option --disable-echo to suppress full display compiling commands
14858 echo "$as_me:14858: checking if you want to see long compiling messages" >&5
14859 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
14861 # Check whether --enable-echo or --disable-echo was given.
14862 if test "${enable_echo+set}" = set; then
14863 enableval="$enable_echo"
14864 test "$enableval" != no && enableval=yes
14865 if test "$enableval" != "yes" ; then
14868 ECHO_LD='@echo linking $@;'
14869 RULE_CC='@echo compiling $<'
14870 SHOW_CC='@echo compiling $@'
14892 echo "$as_me:14892: result: $enableval" >&5
14893 echo "${ECHO_T}$enableval" >&6
14895 if test "x$enable_echo" = xyes; then
14898 ECHO_LINK='@ echo linking $@ ... ;'
14899 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
14900 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
14903 # --disable-stripping is used for debugging
14905 echo "$as_me:14905: checking if you want to install stripped executables" >&5
14906 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
14908 # Check whether --enable-stripping or --disable-stripping was given.
14909 if test "${enable_stripping+set}" = set; then
14910 enableval="$enable_stripping"
14911 test "$enableval" != no && enableval=yes
14912 if test "$enableval" != "yes" ; then
14922 echo "$as_me:14922: result: $with_stripping" >&5
14923 echo "${ECHO_T}$with_stripping" >&6
14925 if test "$with_stripping" = yes
14932 : ${INSTALL:=install}
14933 echo "$as_me:14933: checking if install accepts -p option" >&5
14934 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
14935 if test "${cf_cv_install_p+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 if $INSTALL -p conftest.in conftest.out 2>/dev/null
14945 if test -f conftest.out/conftest.in
14947 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
14948 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
14949 if test -s conftest.err
14953 cf_cv_install_p=yes
14964 echo "$as_me:14964: result: $cf_cv_install_p" >&5
14965 echo "${ECHO_T}$cf_cv_install_p" >&6
14967 echo "$as_me:14967: checking if install needs to be told about ownership" >&5
14968 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
14969 case `$ac_config_guess` in
14978 echo "$as_me:14978: result: $with_install_o" >&5
14979 echo "${ECHO_T}$with_install_o" >&6
14980 if test "x$with_install_o" = xyes
14982 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'`
14987 # If we're avoiding relinking of shared libraries during install, that is to
14988 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
14989 # the install program has "-p" (for preserving timestamps).
14990 cf_cv_do_reranlib=yes
14991 if test "x$cf_cv_install_p" = xyes
14993 if test "x$cf_cv_do_relink" != xyes
14995 cf_cv_do_reranlib=no
14997 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
15001 ### use option --enable-warnings to turn on all gcc warnings
15002 echo "$as_me:15002: checking if you want to see compiler warnings" >&5
15003 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
15005 # Check whether --enable-warnings or --disable-warnings was given.
15006 if test "${enable_warnings+set}" = set; then
15007 enableval="$enable_warnings"
15008 with_warnings=$enableval
15010 echo "$as_me:15010: result: $with_warnings" >&5
15011 echo "${ECHO_T}$with_warnings" >&6
15013 if test "x$with_warnings" = "xyes"; then
15015 ADAFLAGS="$ADAFLAGS -gnatg"
15019 if test "$GCC" = yes ; then
15022 echo "$as_me:15022: checking if this is really Intel C compiler" >&5
15023 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
15024 cf_save_CFLAGS="$CFLAGS"
15025 CFLAGS="$CFLAGS -no-gcc"
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line 15027 "configure"
15028 #include "confdefs.h"
15034 #ifdef __INTEL_COMPILER
15043 rm -f conftest.$ac_objext
15044 if { (eval echo "$as_me:15044: \"$ac_compile\"") >&5
15045 (eval $ac_compile) 2>&5
15047 echo "$as_me:15047: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -s conftest.$ac_objext'
15050 { (eval echo "$as_me:15050: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:15053: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
15056 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
15059 echo "$as_me: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15062 rm -f conftest.$ac_objext conftest.$ac_ext
15063 CFLAGS="$cf_save_CFLAGS"
15064 echo "$as_me:15064: result: $INTEL_COMPILER" >&5
15065 echo "${ECHO_T}$INTEL_COMPILER" >&6
15072 if test "$GCC" = yes ; then
15073 echo "$as_me:15073: checking if this is really Clang C compiler" >&5
15074 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
15075 cf_save_CFLAGS="$CFLAGS"
15076 CFLAGS="$CFLAGS -Qunused-arguments"
15077 cat >conftest.$ac_ext <<_ACEOF
15078 #line 15078 "configure"
15079 #include "confdefs.h"
15094 rm -f conftest.$ac_objext
15095 if { (eval echo "$as_me:15095: \"$ac_compile\"") >&5
15096 (eval $ac_compile) 2>&5
15098 echo "$as_me:15098: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (eval echo "$as_me:15101: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:15104: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15107 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15110 echo "$as_me: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15113 rm -f conftest.$ac_objext conftest.$ac_ext
15114 CFLAGS="$cf_save_CFLAGS"
15115 echo "$as_me:15115: result: $CLANG_COMPILER" >&5
15116 echo "${ECHO_T}$CLANG_COMPILER" >&6
15119 cat > conftest.$ac_ext <<EOF
15120 #line 15120 "${as_me:-configure}"
15121 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15124 if test "$INTEL_COMPILER" = yes
15126 # The "-wdXXX" options suppress warnings:
15127 # remark #1419: external declaration in primary source file
15128 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15129 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15130 # remark #193: zero used for undefined preprocessing identifier
15131 # remark #593: variable "curs_sb_left_arrow" was set but never used
15132 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15133 # remark #869: parameter "tw" was never referenced
15134 # remark #981: operands are evaluated in unspecified order
15135 # warning #279: controlling expression is constant
15137 { echo "$as_me:15137: checking for $CC warning options..." >&5
15138 echo "$as_me: checking for $CC warning options..." >&6;}
15139 cf_save_CFLAGS="$CFLAGS"
15140 EXTRA_CFLAGS="-Wall"
15152 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15153 if { (eval echo "$as_me:15153: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>&5
15156 echo "$as_me:15156: \$? = $ac_status" >&5
15157 (exit $ac_status); }; then
15158 test -n "$verbose" && echo "$as_me:15158: result: ... -$cf_opt" >&5
15159 echo "${ECHO_T}... -$cf_opt" >&6
15160 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15163 CFLAGS="$cf_save_CFLAGS"
15165 elif test "$GCC" = yes
15167 { echo "$as_me:15167: checking for $CC warning options..." >&5
15168 echo "$as_me: checking for $CC warning options..." >&6;}
15169 cf_save_CFLAGS="$CFLAGS"
15172 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
15173 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
15174 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
15175 for cf_opt in W Wall \
15176 Wbad-function-cast \
15179 Wdeclaration-after-statement \
15182 Wmissing-declarations \
15183 Wmissing-prototypes \
15187 Wstrict-prototypes \
15188 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
15190 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15191 if { (eval echo "$as_me:15191: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>&5
15194 echo "$as_me:15194: \$? = $ac_status" >&5
15195 (exit $ac_status); }; then
15196 test -n "$verbose" && echo "$as_me:15196: result: ... -$cf_opt" >&5
15197 echo "${ECHO_T}... -$cf_opt" >&6
15201 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15202 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
15206 case $GCC_VERSION in
15208 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15210 echo "${as_me:-configure}:15210: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15216 case $GCC_VERSION in
15218 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15220 echo "${as_me:-configure}:15220: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15226 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15229 CFLAGS="$cf_save_CFLAGS"
15233 if test "x$cf_with_cxx" = xyes ; then
15237 if test "$GCC" = yes ; then
15240 echo "$as_me:15240: checking if this is really Intel C++ compiler" >&5
15241 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
15242 cf_save_CFLAGS="$CXXFLAGS"
15243 CXXFLAGS="$CXXFLAGS -no-gcc"
15244 cat >conftest.$ac_ext <<_ACEOF
15245 #line 15245 "configure"
15246 #include "confdefs.h"
15252 #ifdef __INTEL_COMPILER
15261 rm -f conftest.$ac_objext
15262 if { (eval echo "$as_me:15262: \"$ac_compile\"") >&5
15263 (eval $ac_compile) 2>&5
15265 echo "$as_me:15265: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -s conftest.$ac_objext'
15268 { (eval echo "$as_me:15268: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:15271: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 INTEL_CPLUSPLUS=yes
15274 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
15277 echo "$as_me: failed program was:" >&5
15278 cat conftest.$ac_ext >&5
15280 rm -f conftest.$ac_objext conftest.$ac_ext
15281 CXXFLAGS="$cf_save_CFLAGS"
15282 echo "$as_me:15282: result: $INTEL_CPLUSPLUS" >&5
15283 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
15290 if test "$GCC" = yes ; then
15291 echo "$as_me:15291: checking if this is really Clang C++ compiler" >&5
15292 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
15293 cf_save_CFLAGS="$CXXFLAGS"
15294 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
15295 cat >conftest.$ac_ext <<_ACEOF
15296 #line 15296 "configure"
15297 #include "confdefs.h"
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:15313: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>&5
15316 echo "$as_me:15316: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:15319: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:15322: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 CLANG_CPLUSPLUS=yes
15325 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15328 echo "$as_me: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15331 rm -f conftest.$ac_objext conftest.$ac_ext
15332 CXXFLAGS="$cf_save_CFLAGS"
15333 echo "$as_me:15333: result: $CLANG_CPLUSPLUS" >&5
15334 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
15338 ac_cpp='$CXXCPP $CPPFLAGS'
15339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15342 ac_main_return=return
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15345 "configure"
15346 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15349 if test "$INTEL_CPLUSPLUS" = yes
15351 # The "-wdXXX" options suppress warnings:
15352 # remark #1419: external declaration in primary source file
15353 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15354 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15355 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15356 # remark #193: zero used for undefined preprocessing identifier
15357 # remark #593: variable "curs_sb_left_arrow" was set but never used
15358 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15359 # remark #869: parameter "tw" was never referenced
15360 # remark #981: operands are evaluated in unspecified order
15361 # warning #269: invalid format string conversion
15363 { echo "$as_me:15363: checking for $CC warning options..." >&5
15364 echo "$as_me: checking for $CC warning options..." >&6;}
15365 cf_save_CXXFLAGS="$CXXFLAGS"
15366 EXTRA_CXXFLAGS="-Wall"
15379 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
15380 if { (eval echo "$as_me:15380: \"$ac_compile\"") >&5
15381 (eval $ac_compile) 2>&5
15383 echo "$as_me:15383: \$? = $ac_status" >&5
15384 (exit $ac_status); }; then
15385 test -n "$verbose" && echo "$as_me:15385: result: ... -$cf_opt" >&5
15386 echo "${ECHO_T}... -$cf_opt" >&6
15387 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15390 CXXFLAGS="$cf_save_CXXFLAGS"
15392 elif test "$GXX" = yes
15394 { echo "$as_me:15394: checking for $CXX warning options..." >&5
15395 echo "$as_me: checking for $CXX warning options..." >&6;}
15396 cf_save_CXXFLAGS="$CXXFLAGS"
15397 EXTRA_CXXFLAGS="-W -Wall"
15398 cf_gxx_extra_warnings=""
15399 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
15400 case "$GCC_VERSION" in
15404 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
15411 Wignored-qualifiers \
15413 Woverloaded-virtual \
15421 Wundef $cf_gxx_extra_warnings Wno-unused
15423 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
15424 if { (eval echo "$as_me:15424: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>&5
15427 echo "$as_me:15427: \$? = $ac_status" >&5
15428 (exit $ac_status); }; then
15429 test -n "$verbose" && echo "$as_me:15429: result: ... -$cf_opt" >&5
15430 echo "${ECHO_T}... -$cf_opt" >&6
15431 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15433 test -n "$verbose" && echo "$as_me:15433: result: ... no -$cf_opt" >&5
15434 echo "${ECHO_T}... no -$cf_opt" >&6
15437 CXXFLAGS="$cf_save_CXXFLAGS"
15442 ac_cpp='$CPP $CPPFLAGS'
15443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15446 ac_main_return=return
15451 if test "$GCC" = yes
15453 cat > conftest.i <<EOF
15455 #define GCC_PRINTF 0
15458 #define GCC_SCANF 0
15460 #ifndef GCC_NORETURN
15461 #define GCC_NORETURN /* nothing */
15464 #define GCC_UNUSED /* nothing */
15467 if test "$GCC" = yes
15469 { echo "$as_me:15469: checking for $CC __attribute__ directives..." >&5
15470 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
15471 cat > conftest.$ac_ext <<EOF
15472 #line 15472 "${as_me:-configure}"
15473 #include "confdefs.h"
15474 #include "conftest.h"
15475 #include "conftest.i"
15477 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
15479 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
15482 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
15484 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
15486 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
15487 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
15488 extern void foo(void) GCC_NORETURN;
15489 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
15491 cf_printf_attribute=no
15492 cf_scanf_attribute=no
15493 for cf_attribute in scanf printf unused noreturn
15496 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15498 cf_directive="__attribute__(($cf_attribute))"
15499 echo "checking for $CC $cf_directive" 1>&5
15501 case $cf_attribute in
15503 cf_printf_attribute=yes
15504 cat >conftest.h <<EOF
15505 #define GCC_$cf_ATTRIBUTE 1
15509 cf_scanf_attribute=yes
15510 cat >conftest.h <<EOF
15511 #define GCC_$cf_ATTRIBUTE 1
15515 cat >conftest.h <<EOF
15516 #define GCC_$cf_ATTRIBUTE $cf_directive
15521 if { (eval echo "$as_me:15521: \"$ac_compile\"") >&5
15522 (eval $ac_compile) 2>&5
15524 echo "$as_me:15524: \$? = $ac_status" >&5
15525 (exit $ac_status); }; then
15526 test -n "$verbose" && echo "$as_me:15526: result: ... $cf_attribute" >&5
15527 echo "${ECHO_T}... $cf_attribute" >&6
15528 cat conftest.h >>confdefs.h
15529 case $cf_attribute in
15532 cat >>confdefs.h <<EOF
15533 #define GCC_NORETURN $cf_directive
15538 cf_value='/* nothing */'
15539 if test "$cf_printf_attribute" != no ; then
15540 cf_value='__attribute__((format(printf,fmt,var)))'
15542 cat >>confdefs.h <<\EOF
15543 #define GCC_PRINTF 1
15548 cat >>confdefs.h <<EOF
15549 #define GCC_PRINTFLIKE(fmt,var) $cf_value
15554 cf_value='/* nothing */'
15555 if test "$cf_scanf_attribute" != no ; then
15556 cf_value='__attribute__((format(scanf,fmt,var)))'
15558 cat >>confdefs.h <<\EOF
15559 #define GCC_SCANF 1
15564 cat >>confdefs.h <<EOF
15565 #define GCC_SCANFLIKE(fmt,var) $cf_value
15571 cat >>confdefs.h <<EOF
15572 #define GCC_UNUSED $cf_directive
15580 fgrep define conftest.i >>confdefs.h
15585 echo "$as_me:15585: checking if you want to work around bogus compiler/loader warnings" >&5
15586 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
15588 # Check whether --enable-string-hacks or --disable-string-hacks was given.
15589 if test "${enable_string_hacks+set}" = set; then
15590 enableval="$enable_string_hacks"
15591 with_string_hacks=$enableval
15593 with_string_hacks=no
15595 echo "$as_me:15595: result: $with_string_hacks" >&5
15596 echo "${ECHO_T}$with_string_hacks" >&6
15598 if test "x$with_string_hacks" = "xyes"; then
15600 cat >>confdefs.h <<\EOF
15601 #define USE_STRING_HACKS 1
15604 { echo "$as_me:15604: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
15605 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
15606 echo "$as_me:15606: checking for strlcat" >&5
15607 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
15608 if test "${ac_cv_func_strlcat+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 cat >conftest.$ac_ext <<_ACEOF
15612 #line 15612 "configure"
15613 #include "confdefs.h"
15614 #define strlcat autoconf_temporary
15615 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15622 /* We use char because int might match the return type of a gcc2
15623 builtin and then its argument prototype would still apply. */
15624 char strlcat (void);
15630 /* The GNU C library defines stubs for functions which it implements
15631 to always fail with ENOSYS. Some functions are actually named
15632 something starting with __ and the normal name is an alias. */
15633 #if defined (__stub_strlcat) || defined (__stub___strlcat)
15634 #error found stub for strlcat
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:15643: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>&5
15646 echo "$as_me:15646: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:15649: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:15652: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_func_strlcat=yes
15656 echo "$as_me: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15658 ac_cv_func_strlcat=no
15660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15662 echo "$as_me:15662: result: $ac_cv_func_strlcat" >&5
15663 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
15664 if test $ac_cv_func_strlcat = yes; then
15666 cat >>confdefs.h <<\EOF
15667 #define HAVE_STRLCAT 1
15672 echo "$as_me:15672: checking for strlcat in -lbsd" >&5
15673 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
15674 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 ac_check_lib_save_LIBS=$LIBS
15679 cat >conftest.$ac_ext <<_ACEOF
15680 #line 15680 "configure"
15681 #include "confdefs.h"
15683 /* Override any gcc2 internal prototype to avoid an error. */
15687 /* We use char because int might match the return type of a gcc2
15688 builtin and then its argument prototype would still apply. */
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (eval echo "$as_me:15699: \"$ac_link\"") >&5
15700 (eval $ac_link) 2>&5
15702 echo "$as_me:15702: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -s conftest$ac_exeext'
15705 { (eval echo "$as_me:15705: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:15708: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15710 ac_cv_lib_bsd_strlcat=yes
15712 echo "$as_me: failed program was:" >&5
15713 cat conftest.$ac_ext >&5
15714 ac_cv_lib_bsd_strlcat=no
15716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15717 LIBS=$ac_check_lib_save_LIBS
15719 echo "$as_me:15719: result: $ac_cv_lib_bsd_strlcat" >&5
15720 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
15721 if test $ac_cv_lib_bsd_strlcat = yes; then
15723 cf_add_libs="-lbsd"
15724 # Filter out duplicates - this happens with badly-designed ".pc" files...
15725 for cf_add_1lib in $LIBS
15727 for cf_add_2lib in $cf_add_libs
15729 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15735 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15737 LIBS="$cf_add_libs"
15739 for ac_header in bsd/string.h
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 echo "$as_me:15742: checking for $ac_header" >&5
15743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 cat >conftest.$ac_ext <<_ACEOF
15748 #line 15748 "configure"
15749 #include "confdefs.h"
15750 #include <$ac_header>
15752 if { (eval echo "$as_me:15752: \"$ac_cpp conftest.$ac_ext\"") >&5
15753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15755 egrep -v '^ *\+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 echo "$as_me:15758: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null; then
15760 if test -s conftest.err; then
15761 ac_cpp_err=$ac_c_preproc_warn_flag
15768 if test -z "$ac_cpp_err"; then
15769 eval "$as_ac_Header=yes"
15771 echo "$as_me: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 eval "$as_ac_Header=no"
15775 rm -f conftest.err conftest.$ac_ext
15777 echo "$as_me:15777: result: `eval echo '${'$as_ac_Header'}'`" >&5
15778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15780 cat >>confdefs.h <<EOF
15781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15787 cat >>confdefs.h <<\EOF
15788 #define HAVE_STRLCAT 1
15795 for ac_func in strlcpy snprintf
15797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15798 echo "$as_me:15798: checking for $ac_func" >&5
15799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15800 if eval "test \"\${$as_ac_var+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15804 #line 15804 "configure"
15805 #include "confdefs.h"
15806 #define $ac_func autoconf_temporary
15807 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15814 /* We use char because int might match the return type of a gcc2
15815 builtin and then its argument prototype would still apply. */
15816 char $ac_func (void);
15822 /* The GNU C library defines stubs for functions which it implements
15823 to always fail with ENOSYS. Some functions are actually named
15824 something starting with __ and the normal name is an alias. */
15825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15826 #error found stub for $ac_func
15829 return $ac_func ();
15834 rm -f conftest.$ac_objext conftest$ac_exeext
15835 if { (eval echo "$as_me:15835: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>&5
15838 echo "$as_me:15838: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -s conftest$ac_exeext'
15841 { (eval echo "$as_me:15841: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15844 echo "$as_me:15844: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 eval "$as_ac_var=yes"
15848 echo "$as_me: failed program was:" >&5
15849 cat conftest.$ac_ext >&5
15850 eval "$as_ac_var=no"
15852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15854 echo "$as_me:15854: result: `eval echo '${'$as_ac_var'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15856 if test `eval echo '${'$as_ac_var'}'` = yes; then
15857 cat >>confdefs.h <<EOF
15858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15866 ### use option --enable-assertions to turn on generation of assertion code
15867 echo "$as_me:15867: checking if you want to enable runtime assertions" >&5
15868 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
15870 # Check whether --enable-assertions or --disable-assertions was given.
15871 if test "${enable_assertions+set}" = set; then
15872 enableval="$enable_assertions"
15873 with_assertions=$enableval
15877 echo "$as_me:15877: result: $with_assertions" >&5
15878 echo "${ECHO_T}$with_assertions" >&6
15881 if test "$with_assertions" = no
15883 CPPFLAGS="$CPPFLAGS -DNDEBUG"
15886 ADAFLAGS="$ADAFLAGS -gnata"
15891 ### use option --disable-leaks to suppress "permanent" leaks, for testing
15893 echo "$as_me:15893: checking if you want to use dmalloc for testing" >&5
15894 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
15896 # Check whether --with-dmalloc or --without-dmalloc was given.
15897 if test "${with_dmalloc+set}" = set; then
15898 withval="$with_dmalloc"
15900 cat >>confdefs.h <<EOF
15901 #define USE_DMALLOC 1
15904 : ${with_cflags:=-g}
15905 : ${with_no_leaks:=yes}
15910 echo "$as_me:15910: result: ${with_dmalloc:-no}" >&5
15911 echo "${ECHO_T}${with_dmalloc:-no}" >&6
15913 case .$with_cflags in
15923 cf_new_extra_cppflags=
15925 for cf_add_cflags in -g
15927 case $cf_fix_cppflags in
15929 case $cf_add_cflags in
15930 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15931 case $cf_add_cflags in
15933 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15935 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15936 && test -z "${cf_tst_cflags}" \
15937 && cf_fix_cppflags=yes
15939 if test $cf_fix_cppflags = yes ; then
15941 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15942 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15945 elif test "${cf_tst_cflags}" = "\"'" ; then
15947 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15948 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15954 case "$CPPFLAGS" in
15958 case $cf_add_cflags in
15960 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15962 CPPFLAGS=`echo "$CPPFLAGS" | \
15963 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15964 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15969 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15970 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15977 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15978 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15990 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15991 && test -z "${cf_tst_cflags}" \
15992 && cf_fix_cppflags=no
15997 if test -n "$cf_new_cflags" ; then
15999 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16000 CFLAGS="${CFLAGS}$cf_new_cflags"
16004 if test -n "$cf_new_cppflags" ; then
16006 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16007 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16011 if test -n "$cf_new_extra_cppflags" ; then
16013 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16014 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16023 if test "$with_dmalloc" = yes ; then
16024 echo "$as_me:16024: checking for dmalloc.h" >&5
16025 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16026 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 cat >conftest.$ac_ext <<_ACEOF
16030 #line 16030 "configure"
16031 #include "confdefs.h"
16032 #include <dmalloc.h>
16034 if { (eval echo "$as_me:16034: \"$ac_cpp conftest.$ac_ext\"") >&5
16035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16037 egrep -v '^ *\+' conftest.er1 >conftest.err
16039 cat conftest.err >&5
16040 echo "$as_me:16040: \$? = $ac_status" >&5
16041 (exit $ac_status); } >/dev/null; then
16042 if test -s conftest.err; then
16043 ac_cpp_err=$ac_c_preproc_warn_flag
16050 if test -z "$ac_cpp_err"; then
16051 ac_cv_header_dmalloc_h=yes
16053 echo "$as_me: failed program was:" >&5
16054 cat conftest.$ac_ext >&5
16055 ac_cv_header_dmalloc_h=no
16057 rm -f conftest.err conftest.$ac_ext
16059 echo "$as_me:16059: result: $ac_cv_header_dmalloc_h" >&5
16060 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16061 if test $ac_cv_header_dmalloc_h = yes; then
16063 echo "$as_me:16063: checking for dmalloc_debug in -ldmalloc" >&5
16064 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16065 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 ac_check_lib_save_LIBS=$LIBS
16069 LIBS="-ldmalloc $LIBS"
16070 cat >conftest.$ac_ext <<_ACEOF
16071 #line 16071 "configure"
16072 #include "confdefs.h"
16074 /* Override any gcc2 internal prototype to avoid an error. */
16078 /* We use char because int might match the return type of a gcc2
16079 builtin and then its argument prototype would still apply. */
16080 char dmalloc_debug ();
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:16090: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>&5
16093 echo "$as_me:16093: \$? = $ac_status" >&5
16094 (exit $ac_status); } &&
16095 { ac_try='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:16096: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16099 echo "$as_me:16099: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_lib_dmalloc_dmalloc_debug=yes
16103 echo "$as_me: failed program was:" >&5
16104 cat conftest.$ac_ext >&5
16105 ac_cv_lib_dmalloc_dmalloc_debug=no
16107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16108 LIBS=$ac_check_lib_save_LIBS
16110 echo "$as_me:16110: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16111 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16112 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16113 cat >>confdefs.h <<EOF
16114 #define HAVE_LIBDMALLOC 1
16117 LIBS="-ldmalloc $LIBS"
16125 echo "$as_me:16125: checking if you want to use dbmalloc for testing" >&5
16126 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16128 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16129 if test "${with_dbmalloc+set}" = set; then
16130 withval="$with_dbmalloc"
16132 cat >>confdefs.h <<EOF
16133 #define USE_DBMALLOC 1
16136 : ${with_cflags:=-g}
16137 : ${with_no_leaks:=yes}
16142 echo "$as_me:16142: result: ${with_dbmalloc:-no}" >&5
16143 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16145 case .$with_cflags in
16155 cf_new_extra_cppflags=
16157 for cf_add_cflags in -g
16159 case $cf_fix_cppflags in
16161 case $cf_add_cflags in
16162 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16163 case $cf_add_cflags in
16165 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16167 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16168 && test -z "${cf_tst_cflags}" \
16169 && cf_fix_cppflags=yes
16171 if test $cf_fix_cppflags = yes ; then
16173 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16174 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16177 elif test "${cf_tst_cflags}" = "\"'" ; then
16179 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16180 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16186 case "$CPPFLAGS" in
16190 case $cf_add_cflags in
16192 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16194 CPPFLAGS=`echo "$CPPFLAGS" | \
16195 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16196 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16201 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16202 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16209 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16210 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16217 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16218 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16220 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16222 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16223 && test -z "${cf_tst_cflags}" \
16224 && cf_fix_cppflags=no
16229 if test -n "$cf_new_cflags" ; then
16231 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16232 CFLAGS="${CFLAGS}$cf_new_cflags"
16236 if test -n "$cf_new_cppflags" ; then
16238 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16239 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16243 if test -n "$cf_new_extra_cppflags" ; then
16245 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16246 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16255 if test "$with_dbmalloc" = yes ; then
16256 echo "$as_me:16256: checking for dbmalloc.h" >&5
16257 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16258 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line 16262 "configure"
16263 #include "confdefs.h"
16264 #include <dbmalloc.h>
16266 if { (eval echo "$as_me:16266: \"$ac_cpp conftest.$ac_ext\"") >&5
16267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16269 egrep -v '^ *\+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:16272: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null; then
16274 if test -s conftest.err; then
16275 ac_cpp_err=$ac_c_preproc_warn_flag
16282 if test -z "$ac_cpp_err"; then
16283 ac_cv_header_dbmalloc_h=yes
16285 echo "$as_me: failed program was:" >&5
16286 cat conftest.$ac_ext >&5
16287 ac_cv_header_dbmalloc_h=no
16289 rm -f conftest.err conftest.$ac_ext
16291 echo "$as_me:16291: result: $ac_cv_header_dbmalloc_h" >&5
16292 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16293 if test $ac_cv_header_dbmalloc_h = yes; then
16295 echo "$as_me:16295: checking for debug_malloc in -ldbmalloc" >&5
16296 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16297 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-ldbmalloc $LIBS"
16302 cat >conftest.$ac_ext <<_ACEOF
16303 #line 16303 "configure"
16304 #include "confdefs.h"
16306 /* Override any gcc2 internal prototype to avoid an error. */
16310 /* We use char because int might match the return type of a gcc2
16311 builtin and then its argument prototype would still apply. */
16312 char debug_malloc ();
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (eval echo "$as_me:16322: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>&5
16325 echo "$as_me:16325: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -s conftest$ac_exeext'
16328 { (eval echo "$as_me:16328: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16331 echo "$as_me:16331: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_lib_dbmalloc_debug_malloc=yes
16335 echo "$as_me: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16337 ac_cv_lib_dbmalloc_debug_malloc=no
16339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16340 LIBS=$ac_check_lib_save_LIBS
16342 echo "$as_me:16342: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16343 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16344 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16345 cat >>confdefs.h <<EOF
16346 #define HAVE_LIBDBMALLOC 1
16349 LIBS="-ldbmalloc $LIBS"
16357 echo "$as_me:16357: checking if you want to use valgrind for testing" >&5
16358 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
16360 # Check whether --with-valgrind or --without-valgrind was given.
16361 if test "${with_valgrind+set}" = set; then
16362 withval="$with_valgrind"
16364 cat >>confdefs.h <<EOF
16365 #define USE_VALGRIND 1
16368 : ${with_cflags:=-g}
16369 : ${with_no_leaks:=yes}
16374 echo "$as_me:16374: result: ${with_valgrind:-no}" >&5
16375 echo "${ECHO_T}${with_valgrind:-no}" >&6
16377 case .$with_cflags in
16387 cf_new_extra_cppflags=
16389 for cf_add_cflags in -g
16391 case $cf_fix_cppflags in
16393 case $cf_add_cflags in
16394 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16395 case $cf_add_cflags in
16397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16399 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16400 && test -z "${cf_tst_cflags}" \
16401 && cf_fix_cppflags=yes
16403 if test $cf_fix_cppflags = yes ; then
16405 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16406 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16409 elif test "${cf_tst_cflags}" = "\"'" ; then
16411 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16412 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16418 case "$CPPFLAGS" in
16422 case $cf_add_cflags in
16424 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16426 CPPFLAGS=`echo "$CPPFLAGS" | \
16427 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16428 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16433 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16434 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16441 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16442 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16449 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16450 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16452 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16454 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16455 && test -z "${cf_tst_cflags}" \
16456 && cf_fix_cppflags=no
16461 if test -n "$cf_new_cflags" ; then
16463 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16464 CFLAGS="${CFLAGS}$cf_new_cflags"
16468 if test -n "$cf_new_cppflags" ; then
16470 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16471 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16475 if test -n "$cf_new_extra_cppflags" ; then
16477 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16478 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16487 echo "$as_me:16487: checking if you want to perform memory-leak testing" >&5
16488 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
16490 # Check whether --enable-leaks or --disable-leaks was given.
16491 if test "${enable_leaks+set}" = set; then
16492 enableval="$enable_leaks"
16493 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
16495 : ${with_no_leaks:=no}
16497 echo "$as_me:16497: result: $with_no_leaks" >&5
16498 echo "${ECHO_T}$with_no_leaks" >&6
16500 if test "$with_no_leaks" = yes ; then
16502 cat >>confdefs.h <<\EOF
16506 cat >>confdefs.h <<\EOF
16507 #define YY_NO_LEAKS 1
16512 cat >>confdefs.h <<\EOF
16513 #define HAVE_NC_ALLOC_H 1
16516 ### use option --enable-expanded to generate certain macros as functions
16518 # Check whether --enable-expanded or --disable-expanded was given.
16519 if test "${enable_expanded+set}" = set; then
16520 enableval="$enable_expanded"
16521 test "x$enableval" = xyes &&
16522 cat >>confdefs.h <<\EOF
16523 #define NCURSES_EXPANDED 1
16528 ### use option --disable-macros to suppress macros in favor of functions
16530 # Check whether --enable-macros or --disable-macros was given.
16531 if test "${enable_macros+set}" = set; then
16532 enableval="$enable_macros"
16533 test "$enableval" = no &&
16534 cat >>confdefs.h <<\EOF
16535 #define NCURSES_NOMACROS 1
16540 # Normally we only add trace() to the debug-library. Allow this to be
16541 # extended to all models of the ncurses library:
16543 case "$CFLAGS $CPPFLAGS" in
16549 echo "$as_me:16549: checking whether to add trace feature to all models" >&5
16550 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
16552 # Check whether --with-trace or --without-trace was given.
16553 if test "${with_trace+set}" = set; then
16554 withval="$with_trace"
16555 cf_with_trace=$withval
16557 cf_with_trace=$cf_all_traces
16559 echo "$as_me:16559: result: $cf_with_trace" >&5
16560 echo "${ECHO_T}$cf_with_trace" >&6
16562 if test "x$cf_with_trace" = xyes ; then
16569 cf_new_extra_cppflags=
16571 for cf_add_cflags in -DTRACE
16573 case $cf_fix_cppflags in
16575 case $cf_add_cflags in
16576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16577 case $cf_add_cflags in
16579 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16582 && test -z "${cf_tst_cflags}" \
16583 && cf_fix_cppflags=yes
16585 if test $cf_fix_cppflags = yes ; then
16587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16591 elif test "${cf_tst_cflags}" = "\"'" ; then
16593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16600 case "$CPPFLAGS" in
16604 case $cf_add_cflags in
16606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16608 CPPFLAGS=`echo "$CPPFLAGS" | \
16609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16634 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16637 && test -z "${cf_tst_cflags}" \
16638 && cf_fix_cppflags=no
16643 if test -n "$cf_new_cflags" ; then
16645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16646 CFLAGS="${CFLAGS}$cf_new_cflags"
16650 if test -n "$cf_new_cppflags" ; then
16652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16657 if test -n "$cf_new_extra_cppflags" ; then
16659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16664 cat >>confdefs.h <<\EOF
16665 #define HAVE__TRACEF 1
16673 echo "$as_me:16673: checking if we want to use GNAT projects" >&5
16674 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
16676 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
16677 if test "${enable_gnat_projects+set}" = set; then
16678 enableval="$enable_gnat_projects"
16679 test "$enableval" != no && enableval=yes
16680 if test "$enableval" != "yes" ; then
16681 enable_gnat_projects=no
16683 enable_gnat_projects=yes
16687 enable_gnat_projects=yes
16690 echo "$as_me:16690: result: $enable_gnat_projects" >&5
16691 echo "${ECHO_T}$enable_gnat_projects" >&6
16693 ### Checks for libraries.
16694 case $cf_cv_system_name in
16695 (*mingw32*|*mingw64*)
16696 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
16697 LIBS=" -lpsapi $LIBS"
16700 echo "$as_me:16700: checking for gettimeofday" >&5
16701 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
16702 if test "${ac_cv_func_gettimeofday+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line 16706 "configure"
16707 #include "confdefs.h"
16708 #define gettimeofday autoconf_temporary
16709 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16710 #undef gettimeofday
16716 /* We use char because int might match the return type of a gcc2
16717 builtin and then its argument prototype would still apply. */
16718 char gettimeofday (void);
16724 /* The GNU C library defines stubs for functions which it implements
16725 to always fail with ENOSYS. Some functions are actually named
16726 something starting with __ and the normal name is an alias. */
16727 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
16728 #error found stub for gettimeofday
16731 return gettimeofday ();
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (eval echo "$as_me:16737: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>&5
16740 echo "$as_me:16740: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:16743: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:16746: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_func_gettimeofday=yes
16750 echo "$as_me: failed program was:" >&5
16751 cat conftest.$ac_ext >&5
16752 ac_cv_func_gettimeofday=no
16754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756 echo "$as_me:16756: result: $ac_cv_func_gettimeofday" >&5
16757 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
16758 if test $ac_cv_func_gettimeofday = yes; then
16760 cat >>confdefs.h <<\EOF
16761 #define HAVE_GETTIMEOFDAY 1
16766 echo "$as_me:16766: checking for gettimeofday in -lbsd" >&5
16767 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
16768 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 ac_check_lib_save_LIBS=$LIBS
16773 cat >conftest.$ac_ext <<_ACEOF
16774 #line 16774 "configure"
16775 #include "confdefs.h"
16777 /* Override any gcc2 internal prototype to avoid an error. */
16781 /* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
16783 char gettimeofday ();
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:16793: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>&5
16796 echo "$as_me:16796: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:16799: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:16802: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_lib_bsd_gettimeofday=yes
16806 echo "$as_me: failed program was:" >&5
16807 cat conftest.$ac_ext >&5
16808 ac_cv_lib_bsd_gettimeofday=no
16810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811 LIBS=$ac_check_lib_save_LIBS
16813 echo "$as_me:16813: result: $ac_cv_lib_bsd_gettimeofday" >&5
16814 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
16815 if test $ac_cv_lib_bsd_gettimeofday = yes; then
16817 cat >>confdefs.h <<\EOF
16818 #define HAVE_GETTIMEOFDAY 1
16821 cf_add_libs="-lbsd"
16822 # Filter out duplicates - this happens with badly-designed ".pc" files...
16823 for cf_add_1lib in $LIBS
16825 for cf_add_2lib in $cf_add_libs
16827 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16835 LIBS="$cf_add_libs"
16843 echo "$as_me:16843: checking if -lm needed for math functions" >&5
16844 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
16845 if test "${cf_cv_need_libm+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16850 #line 16850 "configure"
16851 #include "confdefs.h"
16854 #include <stdlib.h>
16860 double x = rand(); printf("result = %g\n", pow(sin(x),x))
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:16866: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>&5
16869 echo "$as_me:16869: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest$ac_exeext'
16872 { (eval echo "$as_me:16872: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:16875: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16879 echo "$as_me: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16881 cf_cv_need_libm=yes
16883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885 echo "$as_me:16885: result: $cf_cv_need_libm" >&5
16886 echo "${ECHO_T}$cf_cv_need_libm" >&6
16887 if test "$cf_cv_need_libm" = yes
16892 ### Checks for header files.
16893 echo "$as_me:16893: checking for ANSI C header files" >&5
16894 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16895 if test "${ac_cv_header_stdc+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 cat >conftest.$ac_ext <<_ACEOF
16899 #line 16899 "configure"
16900 #include "confdefs.h"
16901 #include <stdlib.h>
16902 #include <stdarg.h>
16903 #include <string.h>
16907 if { (eval echo "$as_me:16907: \"$ac_cpp conftest.$ac_ext\"") >&5
16908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16910 egrep -v '^ *\+' conftest.er1 >conftest.err
16912 cat conftest.err >&5
16913 echo "$as_me:16913: \$? = $ac_status" >&5
16914 (exit $ac_status); } >/dev/null; then
16915 if test -s conftest.err; then
16916 ac_cpp_err=$ac_c_preproc_warn_flag
16923 if test -z "$ac_cpp_err"; then
16924 ac_cv_header_stdc=yes
16926 echo "$as_me: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16928 ac_cv_header_stdc=no
16930 rm -f conftest.err conftest.$ac_ext
16932 if test $ac_cv_header_stdc = yes; then
16933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16934 cat >conftest.$ac_ext <<_ACEOF
16935 #line 16935 "configure"
16936 #include "confdefs.h"
16937 #include <string.h>
16940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16941 egrep "memchr" >/dev/null 2>&1; then
16944 ac_cv_header_stdc=no
16950 if test $ac_cv_header_stdc = yes; then
16951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16952 cat >conftest.$ac_ext <<_ACEOF
16953 #line 16953 "configure"
16954 #include "confdefs.h"
16955 #include <stdlib.h>
16958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16959 egrep "free" >/dev/null 2>&1; then
16962 ac_cv_header_stdc=no
16968 if test $ac_cv_header_stdc = yes; then
16969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16970 if test "$cross_compiling" = yes; then
16973 cat >conftest.$ac_ext <<_ACEOF
16974 #line 16974 "configure"
16975 #include "confdefs.h"
16977 #if ((' ' & 0x0FF) == 0x020)
16978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16981 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
16982 || ('j' <= (c) && (c) <= 'r') \
16983 || ('s' <= (c) && (c) <= 'z'))
16984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16992 for (i = 0; i < 256; i++)
16993 if (XOR (islower (i), ISLOWER (i))
16994 || toupper (i) != TOUPPER (i))
16995 $ac_main_return(2);
16996 $ac_main_return (0);
16999 rm -f conftest$ac_exeext
17000 if { (eval echo "$as_me:17000: \"$ac_link\"") >&5
17001 (eval $ac_link) 2>&5
17003 echo "$as_me:17003: \$? = $ac_status" >&5
17004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17005 { (eval echo "$as_me:17005: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:17008: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17012 echo "$as_me: program exited with status $ac_status" >&5
17013 echo "$as_me: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17015 ac_cv_header_stdc=no
17017 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17021 echo "$as_me:17021: result: $ac_cv_header_stdc" >&5
17022 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17023 if test $ac_cv_header_stdc = yes; then
17025 cat >>confdefs.h <<\EOF
17026 #define STDC_HEADERS 1
17031 ac_header_dirent=no
17032 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17033 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17034 echo "$as_me:17034: checking for $ac_hdr that defines DIR" >&5
17035 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 cat >conftest.$ac_ext <<_ACEOF
17040 #line 17040 "configure"
17041 #include "confdefs.h"
17042 #include <sys/types.h>
17054 rm -f conftest.$ac_objext
17055 if { (eval echo "$as_me:17055: \"$ac_compile\"") >&5
17056 (eval $ac_compile) 2>&5
17058 echo "$as_me:17058: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (eval echo "$as_me:17061: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:17064: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 eval "$as_ac_Header=yes"
17068 echo "$as_me: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 eval "$as_ac_Header=no"
17072 rm -f conftest.$ac_objext conftest.$ac_ext
17074 echo "$as_me:17074: result: `eval echo '${'$as_ac_Header'}'`" >&5
17075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17077 cat >>confdefs.h <<EOF
17078 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17081 ac_header_dirent=$ac_hdr; break
17085 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17086 if test $ac_header_dirent = dirent.h; then
17087 echo "$as_me:17087: checking for opendir in -ldir" >&5
17088 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
17089 if test "${ac_cv_lib_dir_opendir+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 ac_check_lib_save_LIBS=$LIBS
17094 cat >conftest.$ac_ext <<_ACEOF
17095 #line 17095 "configure"
17096 #include "confdefs.h"
17098 /* Override any gcc2 internal prototype to avoid an error. */
17102 /* We use char because int might match the return type of a gcc2
17103 builtin and then its argument prototype would still apply. */
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:17114: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>&5
17117 echo "$as_me:17117: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (eval echo "$as_me:17120: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:17123: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_lib_dir_opendir=yes
17127 echo "$as_me: failed program was:" >&5
17128 cat conftest.$ac_ext >&5
17129 ac_cv_lib_dir_opendir=no
17131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 echo "$as_me:17134: result: $ac_cv_lib_dir_opendir" >&5
17135 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
17136 if test $ac_cv_lib_dir_opendir = yes; then
17141 echo "$as_me:17141: checking for opendir in -lx" >&5
17142 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
17143 if test "${ac_cv_lib_x_opendir+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 ac_check_lib_save_LIBS=$LIBS
17148 cat >conftest.$ac_ext <<_ACEOF
17149 #line 17149 "configure"
17150 #include "confdefs.h"
17152 /* Override any gcc2 internal prototype to avoid an error. */
17156 /* We use char because int might match the return type of a gcc2
17157 builtin and then its argument prototype would still apply. */
17167 rm -f conftest.$ac_objext conftest$ac_exeext
17168 if { (eval echo "$as_me:17168: \"$ac_link\"") >&5
17169 (eval $ac_link) 2>&5
17171 echo "$as_me:17171: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (eval echo "$as_me:17174: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:17177: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_lib_x_opendir=yes
17181 echo "$as_me: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17183 ac_cv_lib_x_opendir=no
17185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 echo "$as_me:17188: result: $ac_cv_lib_x_opendir" >&5
17189 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
17190 if test $ac_cv_lib_x_opendir = yes; then
17196 echo "$as_me:17196: checking whether time.h and sys/time.h may both be included" >&5
17197 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17198 if test "${ac_cv_header_time+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 cat >conftest.$ac_ext <<_ACEOF
17202 #line 17202 "configure"
17203 #include "confdefs.h"
17204 #include <sys/types.h>
17205 #include <sys/time.h>
17211 if ((struct tm *) 0)
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:17218: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>&5
17221 echo "$as_me:17221: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -s conftest.$ac_objext'
17224 { (eval echo "$as_me:17224: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:17227: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_header_time=yes
17231 echo "$as_me: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 ac_cv_header_time=no
17235 rm -f conftest.$ac_objext conftest.$ac_ext
17237 echo "$as_me:17237: result: $ac_cv_header_time" >&5
17238 echo "${ECHO_T}$ac_cv_header_time" >&6
17239 if test $ac_cv_header_time = yes; then
17241 cat >>confdefs.h <<\EOF
17242 #define TIME_WITH_SYS_TIME 1
17249 cf_regex_libs="regex re"
17252 cf_regex_libs="gnurx $cf_regex_libs"
17256 echo "$as_me:17256: checking for regcomp" >&5
17257 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
17258 if test "${ac_cv_func_regcomp+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.$ac_ext <<_ACEOF
17262 #line 17262 "configure"
17263 #include "confdefs.h"
17264 #define regcomp autoconf_temporary
17265 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17272 /* We use char because int might match the return type of a gcc2
17273 builtin and then its argument prototype would still apply. */
17274 char regcomp (void);
17280 /* The GNU C library defines stubs for functions which it implements
17281 to always fail with ENOSYS. Some functions are actually named
17282 something starting with __ and the normal name is an alias. */
17283 #if defined (__stub_regcomp) || defined (__stub___regcomp)
17284 #error found stub for regcomp
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:17293: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17296 echo "$as_me:17296: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:17299: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:17302: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_func_regcomp=yes
17306 echo "$as_me: failed program was:" >&5
17307 cat conftest.$ac_ext >&5
17308 ac_cv_func_regcomp=no
17310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17312 echo "$as_me:17312: result: $ac_cv_func_regcomp" >&5
17313 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
17314 if test $ac_cv_func_regcomp = yes; then
17315 cf_regex_func=regcomp
17318 for cf_regex_lib in $cf_regex_libs
17320 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
17321 echo "$as_me:17321: checking for regcomp in -l$cf_regex_lib" >&5
17322 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
17323 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-l$cf_regex_lib $LIBS"
17328 cat >conftest.$ac_ext <<_ACEOF
17329 #line 17329 "configure"
17330 #include "confdefs.h"
17332 /* Override any gcc2 internal prototype to avoid an error. */
17336 /* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (eval echo "$as_me:17348: \"$ac_link\"") >&5
17349 (eval $ac_link) 2>&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -s conftest$ac_exeext'
17354 { (eval echo "$as_me:17354: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:17357: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 eval "$as_ac_Lib=yes"
17361 echo "$as_me: failed program was:" >&5
17362 cat conftest.$ac_ext >&5
17363 eval "$as_ac_Lib=no"
17365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17368 echo "$as_me:17368: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17369 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17370 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17372 cf_add_libs="-l$cf_regex_lib"
17373 # Filter out duplicates - this happens with badly-designed ".pc" files...
17374 for cf_add_1lib in $LIBS
17376 for cf_add_2lib in $cf_add_libs
17378 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17384 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17386 LIBS="$cf_add_libs"
17388 cf_regex_func=regcomp
17396 if test "$cf_regex_func" = no ; then
17397 echo "$as_me:17397: checking for compile" >&5
17398 echo $ECHO_N "checking for compile... $ECHO_C" >&6
17399 if test "${ac_cv_func_compile+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 cat >conftest.$ac_ext <<_ACEOF
17403 #line 17403 "configure"
17404 #include "confdefs.h"
17405 #define compile autoconf_temporary
17406 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17413 /* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17415 char compile (void);
17421 /* The GNU C library defines stubs for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined (__stub_compile) || defined (__stub___compile)
17425 #error found stub for compile
17433 rm -f conftest.$ac_objext conftest$ac_exeext
17434 if { (eval echo "$as_me:17434: \"$ac_link\"") >&5
17435 (eval $ac_link) 2>&5
17437 echo "$as_me:17437: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (eval echo "$as_me:17440: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:17443: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_cv_func_compile=yes
17447 echo "$as_me: failed program was:" >&5
17448 cat conftest.$ac_ext >&5
17449 ac_cv_func_compile=no
17451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17453 echo "$as_me:17453: result: $ac_cv_func_compile" >&5
17454 echo "${ECHO_T}$ac_cv_func_compile" >&6
17455 if test $ac_cv_func_compile = yes; then
17456 cf_regex_func=compile
17459 echo "$as_me:17459: checking for compile in -lgen" >&5
17460 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
17461 if test "${ac_cv_lib_gen_compile+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 ac_check_lib_save_LIBS=$LIBS
17466 cat >conftest.$ac_ext <<_ACEOF
17467 #line 17467 "configure"
17468 #include "confdefs.h"
17470 /* Override any gcc2 internal prototype to avoid an error. */
17474 /* We use char because int might match the return type of a gcc2
17475 builtin and then its argument prototype would still apply. */
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:17486: \"$ac_link\"") >&5
17487 (eval $ac_link) 2>&5
17489 echo "$as_me:17489: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -s conftest$ac_exeext'
17492 { (eval echo "$as_me:17492: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:17495: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_cv_lib_gen_compile=yes
17499 echo "$as_me: failed program was:" >&5
17500 cat conftest.$ac_ext >&5
17501 ac_cv_lib_gen_compile=no
17503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17504 LIBS=$ac_check_lib_save_LIBS
17506 echo "$as_me:17506: result: $ac_cv_lib_gen_compile" >&5
17507 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
17508 if test $ac_cv_lib_gen_compile = yes; then
17510 cf_add_libs="-lgen"
17511 # Filter out duplicates - this happens with badly-designed ".pc" files...
17512 for cf_add_1lib in $LIBS
17514 for cf_add_2lib in $cf_add_libs
17516 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17522 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17524 LIBS="$cf_add_libs"
17526 cf_regex_func=compile
17533 if test "$cf_regex_func" = no ; then
17534 { echo "$as_me:17534: WARNING: cannot find regular expression library" >&5
17535 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
17538 echo "$as_me:17538: checking for regular-expression headers" >&5
17539 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
17540 if test "${cf_cv_regex_hdrs+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cf_cv_regex_hdrs=no
17545 case $cf_regex_func in
17547 for cf_regex_hdr in regexp.h regexpr.h
17549 cat >conftest.$ac_ext <<_ACEOF
17550 #line 17550 "configure"
17551 #include "confdefs.h"
17552 #include <$cf_regex_hdr>
17557 char *p = compile("", "", "", 0);
17558 int x = step("", "");
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (eval echo "$as_me:17565: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>&5
17568 echo "$as_me:17568: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (eval echo "$as_me:17571: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:17574: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17577 cf_cv_regex_hdrs=$cf_regex_hdr
17581 echo "$as_me: failed program was:" >&5
17582 cat conftest.$ac_ext >&5
17584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17588 for cf_regex_hdr in regex.h
17590 cat >conftest.$ac_ext <<_ACEOF
17591 #line 17591 "configure"
17592 #include "confdefs.h"
17593 #include <sys/types.h>
17594 #include <$cf_regex_hdr>
17600 int x = regcomp(p, "", 0);
17601 int y = regexec(p, "", 0, 0, 0);
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (eval echo "$as_me:17609: \"$ac_link\"") >&5
17610 (eval $ac_link) 2>&5
17612 echo "$as_me:17612: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -s conftest$ac_exeext'
17615 { (eval echo "$as_me:17615: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17618 echo "$as_me:17618: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17621 cf_cv_regex_hdrs=$cf_regex_hdr
17625 echo "$as_me: failed program was:" >&5
17626 cat conftest.$ac_ext >&5
17628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17634 echo "$as_me:17634: result: $cf_cv_regex_hdrs" >&5
17635 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
17637 case $cf_cv_regex_hdrs in
17638 (no) { echo "$as_me:17638: WARNING: no regular expression header found" >&5
17639 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
17641 cat >>confdefs.h <<\EOF
17642 #define HAVE_REGEX_H_FUNCS 1
17646 cat >>confdefs.h <<\EOF
17647 #define HAVE_REGEXP_H_FUNCS 1
17651 cat >>confdefs.h <<\EOF
17652 #define HAVE_REGEXPR_H_FUNCS 1
17676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17677 echo "$as_me:17677: checking for $ac_header" >&5
17678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17683 #line 17683 "configure"
17684 #include "confdefs.h"
17685 #include <$ac_header>
17687 if { (eval echo "$as_me:17687: \"$ac_cpp conftest.$ac_ext\"") >&5
17688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17690 egrep -v '^ *\+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:17693: \$? = $ac_status" >&5
17694 (exit $ac_status); } >/dev/null; then
17695 if test -s conftest.err; then
17696 ac_cpp_err=$ac_c_preproc_warn_flag
17703 if test -z "$ac_cpp_err"; then
17704 eval "$as_ac_Header=yes"
17706 echo "$as_me: failed program was:" >&5
17707 cat conftest.$ac_ext >&5
17708 eval "$as_ac_Header=no"
17710 rm -f conftest.err conftest.$ac_ext
17712 echo "$as_me:17712: result: `eval echo '${'$as_ac_Header'}'`" >&5
17713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17715 cat >>confdefs.h <<EOF
17716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17722 for ac_header in unistd.h getopt.h
17724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17725 echo "$as_me:17725: checking for $ac_header" >&5
17726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 cat >conftest.$ac_ext <<_ACEOF
17731 #line 17731 "configure"
17732 #include "confdefs.h"
17733 #include <$ac_header>
17735 if { (eval echo "$as_me:17735: \"$ac_cpp conftest.$ac_ext\"") >&5
17736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17738 egrep -v '^ *\+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:17741: \$? = $ac_status" >&5
17742 (exit $ac_status); } >/dev/null; then
17743 if test -s conftest.err; then
17744 ac_cpp_err=$ac_c_preproc_warn_flag
17751 if test -z "$ac_cpp_err"; then
17752 eval "$as_ac_Header=yes"
17754 echo "$as_me: failed program was:" >&5
17755 cat conftest.$ac_ext >&5
17756 eval "$as_ac_Header=no"
17758 rm -f conftest.err conftest.$ac_ext
17760 echo "$as_me:17760: result: `eval echo '${'$as_ac_Header'}'`" >&5
17761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17763 cat >>confdefs.h <<EOF
17764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17770 echo "$as_me:17770: checking for header declaring getopt variables" >&5
17771 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
17772 if test "${cf_cv_getopt_header+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 cf_cv_getopt_header=none
17777 for cf_header in stdio.h stdlib.h unistd.h getopt.h
17779 cat >conftest.$ac_ext <<_ACEOF
17780 #line 17780 "configure"
17781 #include "confdefs.h"
17783 #include <$cf_header>
17787 int x = optind; char *y = optarg
17792 rm -f conftest.$ac_objext
17793 if { (eval echo "$as_me:17793: \"$ac_compile\"") >&5
17794 (eval $ac_compile) 2>&5
17796 echo "$as_me:17796: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest.$ac_objext'
17799 { (eval echo "$as_me:17799: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 cf_cv_getopt_header=$cf_header
17807 echo "$as_me: failed program was:" >&5
17808 cat conftest.$ac_ext >&5
17810 rm -f conftest.$ac_objext conftest.$ac_ext
17814 echo "$as_me:17814: result: $cf_cv_getopt_header" >&5
17815 echo "${ECHO_T}$cf_cv_getopt_header" >&6
17816 if test $cf_cv_getopt_header != none ; then
17818 cat >>confdefs.h <<\EOF
17819 #define HAVE_GETOPT_HEADER 1
17823 if test $cf_cv_getopt_header = getopt.h ; then
17825 cat >>confdefs.h <<\EOF
17826 #define NEED_GETOPT_H 1
17831 # check for ISC (this may also define _POSIX_SOURCE)
17832 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
17833 if test "x$ISC" = xyes ; then
17835 echo "$as_me:17835: checking for main in -lcposix" >&5
17836 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
17837 if test "${ac_cv_lib_cposix_main+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-lcposix $LIBS"
17842 cat >conftest.$ac_ext <<_ACEOF
17843 #line 17843 "configure"
17844 #include "confdefs.h"
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:17855: \"$ac_link\"") >&5
17856 (eval $ac_link) 2>&5
17858 echo "$as_me:17858: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (eval echo "$as_me:17861: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:17864: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_lib_cposix_main=yes
17868 echo "$as_me: failed program was:" >&5
17869 cat conftest.$ac_ext >&5
17870 ac_cv_lib_cposix_main=no
17872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17875 echo "$as_me:17875: result: $ac_cv_lib_cposix_main" >&5
17876 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
17877 if test $ac_cv_lib_cposix_main = yes; then
17878 cat >>confdefs.h <<EOF
17879 #define HAVE_LIBCPOSIX 1
17882 LIBS="-lcposix $LIBS"
17886 echo "$as_me:17886: checking for bzero in -linet" >&5
17887 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
17888 if test "${ac_cv_lib_inet_bzero+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-linet $LIBS"
17893 cat >conftest.$ac_ext <<_ACEOF
17894 #line 17894 "configure"
17895 #include "confdefs.h"
17897 /* Override any gcc2 internal prototype to avoid an error. */
17901 /* We use char because int might match the return type of a gcc2
17902 builtin and then its argument prototype would still apply. */
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (eval echo "$as_me:17913: \"$ac_link\"") >&5
17914 (eval $ac_link) 2>&5
17916 echo "$as_me:17916: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:17919: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:17922: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_inet_bzero=yes
17926 echo "$as_me: failed program was:" >&5
17927 cat conftest.$ac_ext >&5
17928 ac_cv_lib_inet_bzero=no
17930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17933 echo "$as_me:17933: result: $ac_cv_lib_inet_bzero" >&5
17934 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
17935 if test $ac_cv_lib_inet_bzero = yes; then
17937 cf_add_libs="-linet"
17938 # Filter out duplicates - this happens with badly-designed ".pc" files...
17939 for cf_add_1lib in $LIBS
17941 for cf_add_2lib in $cf_add_libs
17943 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17949 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17951 LIBS="$cf_add_libs"
17956 echo "$as_me:17956: checking if sys/time.h works with sys/select.h" >&5
17957 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
17958 if test "${cf_cv_sys_time_select+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 cat >conftest.$ac_ext <<_ACEOF
17963 #line 17963 "configure"
17964 #include "confdefs.h"
17966 #include <sys/types.h>
17967 #ifdef HAVE_SYS_TIME_H
17968 #include <sys/time.h>
17970 #ifdef HAVE_SYS_SELECT_H
17971 #include <sys/select.h>
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:17983: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>&5
17986 echo "$as_me:17986: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -s conftest.$ac_objext'
17989 { (eval echo "$as_me:17989: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:17992: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 cf_cv_sys_time_select=yes
17996 echo "$as_me: failed program was:" >&5
17997 cat conftest.$ac_ext >&5
17998 cf_cv_sys_time_select=no
18000 rm -f conftest.$ac_objext conftest.$ac_ext
18004 echo "$as_me:18004: result: $cf_cv_sys_time_select" >&5
18005 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
18006 test "$cf_cv_sys_time_select" = yes &&
18007 cat >>confdefs.h <<\EOF
18008 #define HAVE_SYS_TIME_SELECT 1
18011 ### checks for compiler characteristics
18013 ac_cpp='$CPP $CPPFLAGS'
18014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18017 ac_main_return=return
18019 echo "$as_me:18019: checking for an ANSI C-conforming const" >&5
18020 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18021 if test "${ac_cv_c_const+set}" = set; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 cat >conftest.$ac_ext <<_ACEOF
18025 #line 18025 "configure"
18026 #include "confdefs.h"
18031 /* FIXME: Include the comments suggested by Paul. */
18032 #ifndef __cplusplus
18033 /* Ultrix mips cc rejects this. */
18034 typedef int charset[2];
18036 /* SunOS 4.1.1 cc rejects this. */
18037 char const *const *ccp;
18039 /* NEC SVR4.0.2 mips cc rejects this. */
18040 struct point {int x, y;};
18041 static struct point const zero = {0,0};
18042 /* AIX XL C 1.02.0.0 rejects this.
18043 It does not let you subtract one const X* pointer from another in
18044 an arm of an if-expression whose if-part is not a constant
18046 const char *g = "string";
18047 ccp = &g + (g ? g-g : 0);
18048 /* HPUX 7.0 cc rejects these. */
18051 ccp = (char const *const *) p;
18052 { /* SCO 3.2v4 cc rejects this. */
18054 char const *s = 0 ? (char *) 0 : (char const *) 0;
18058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18059 int x[] = {25, 17};
18060 const int *foo = &x[0];
18063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18064 typedef const int *iptr;
18068 { /* AIX XL C 1.02.0.0 rejects this saying
18069 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18070 struct s { int j; const int *ap[3]; };
18071 struct s *b; b->j = 5;
18073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18074 const int foo = 10;
18082 rm -f conftest.$ac_objext
18083 if { (eval echo "$as_me:18083: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>&5
18086 echo "$as_me:18086: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -s conftest.$ac_objext'
18089 { (eval echo "$as_me:18089: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:18092: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18096 echo "$as_me: failed program was:" >&5
18097 cat conftest.$ac_ext >&5
18100 rm -f conftest.$ac_objext conftest.$ac_ext
18102 echo "$as_me:18102: result: $ac_cv_c_const" >&5
18103 echo "${ECHO_T}$ac_cv_c_const" >&6
18104 if test $ac_cv_c_const = no; then
18106 cat >>confdefs.h <<\EOF
18112 echo "$as_me:18112: checking for inline" >&5
18113 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18114 if test "${ac_cv_c_inline+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18118 for ac_kw in inline __inline__ __inline; do
18119 cat >conftest.$ac_ext <<_ACEOF
18120 #line 18120 "configure"
18121 #include "confdefs.h"
18122 #ifndef __cplusplus
18123 static $ac_kw int static_foo () {return 0; }
18124 $ac_kw int foo () {return 0; }
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:18129: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>&5
18132 echo "$as_me:18132: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (eval echo "$as_me:18135: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:18138: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_cv_c_inline=$ac_kw; break
18142 echo "$as_me: failed program was:" >&5
18143 cat conftest.$ac_ext >&5
18145 rm -f conftest.$ac_objext conftest.$ac_ext
18149 echo "$as_me:18149: result: $ac_cv_c_inline" >&5
18150 echo "${ECHO_T}$ac_cv_c_inline" >&6
18151 case $ac_cv_c_inline in
18154 cat >>confdefs.h <<\EOF
18158 *) cat >>confdefs.h <<EOF
18159 #define inline $ac_cv_c_inline
18165 if test "$ac_cv_c_inline" != no ; then
18166 NCURSES_INLINE=inline
18167 if test "$INTEL_COMPILER" = yes
18170 elif test "$CLANG_COMPILER" = yes
18173 elif test "$GCC" = yes
18175 echo "$as_me:18175: checking if $CC supports options to tune inlining" >&5
18176 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
18177 if test "${cf_cv_gcc_inline+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 cf_save_CFLAGS=$CFLAGS
18182 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
18183 cat >conftest.$ac_ext <<_ACEOF
18184 #line 18184 "configure"
18185 #include "confdefs.h"
18186 inline int foo(void) { return 1; }
18190 ${cf_cv_main_return:-return} foo()
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:18196: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>&5
18199 echo "$as_me:18199: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:18202: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:18205: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 cf_cv_gcc_inline=yes
18209 echo "$as_me: failed program was:" >&5
18210 cat conftest.$ac_ext >&5
18211 cf_cv_gcc_inline=no
18213 rm -f conftest.$ac_objext conftest.$ac_ext
18214 CFLAGS=$cf_save_CFLAGS
18217 echo "$as_me:18217: result: $cf_cv_gcc_inline" >&5
18218 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
18219 if test "$cf_cv_gcc_inline" = yes ; then
18224 cf_new_extra_cppflags=
18226 for cf_add_cflags in --param max-inline-insns-single=1200
18228 case $cf_fix_cppflags in
18230 case $cf_add_cflags in
18231 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18232 case $cf_add_cflags in
18234 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18236 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18237 && test -z "${cf_tst_cflags}" \
18238 && cf_fix_cppflags=yes
18240 if test $cf_fix_cppflags = yes ; then
18242 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18243 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18246 elif test "${cf_tst_cflags}" = "\"'" ; then
18248 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18249 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18255 case "$CPPFLAGS" in
18259 case $cf_add_cflags in
18261 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18263 CPPFLAGS=`echo "$CPPFLAGS" | \
18264 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18265 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18270 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18271 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18278 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18279 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18286 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18287 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18289 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18291 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18292 && test -z "${cf_tst_cflags}" \
18293 && cf_fix_cppflags=no
18298 if test -n "$cf_new_cflags" ; then
18300 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18301 CFLAGS="${CFLAGS}$cf_new_cflags"
18305 if test -n "$cf_new_cppflags" ; then
18307 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18308 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18312 if test -n "$cf_new_extra_cppflags" ; then
18314 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18315 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18323 echo "$as_me:18323: checking for signal global datatype" >&5
18324 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
18325 if test "${cf_cv_sig_atomic_t+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 "volatile sig_atomic_t" \
18334 cat >conftest.$ac_ext <<_ACEOF
18335 #line 18335 "configure"
18336 #include "confdefs.h"
18338 #include <sys/types.h>
18339 #include <signal.h>
18344 static void handler(int sig)
18351 signal(SIGINT, handler);
18357 rm -f conftest.$ac_objext
18358 if { (eval echo "$as_me:18358: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>&5
18361 echo "$as_me:18361: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -s conftest.$ac_objext'
18364 { (eval echo "$as_me:18364: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:18367: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 cf_cv_sig_atomic_t=$cf_type
18371 echo "$as_me: failed program was:" >&5
18372 cat conftest.$ac_ext >&5
18373 cf_cv_sig_atomic_t=no
18375 rm -f conftest.$ac_objext conftest.$ac_ext
18376 test "$cf_cv_sig_atomic_t" != no && break
18381 echo "$as_me:18381: result: $cf_cv_sig_atomic_t" >&5
18382 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
18383 test "$cf_cv_sig_atomic_t" != no &&
18384 cat >>confdefs.h <<EOF
18385 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
18388 if test $NCURSES_CHTYPE = auto ; then
18390 echo "$as_me:18390: checking for type of chtype" >&5
18391 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
18392 if test "${cf_cv_typeof_chtype+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 if test "$cross_compiling" = yes; then
18397 cf_cv_typeof_chtype=long
18399 cat >conftest.$ac_ext <<_ACEOF
18400 #line 18400 "configure"
18401 #include "confdefs.h"
18403 #define WANT_BITS 31
18407 FILE *fp = fopen("cf_test.out", "w");
18409 char *result = "long";
18410 if (sizeof(unsigned long) > sizeof(unsigned int)) {
18413 for (n = 0; n < WANT_BITS; n++) {
18416 if (y != 1 || x == 0) {
18422 * If x is nonzero, an int is big enough for the bits
18425 result = (x != 0) ? "int" : "long";
18430 ${cf_cv_main_return:-return}(0);
18434 rm -f conftest$ac_exeext
18435 if { (eval echo "$as_me:18435: \"$ac_link\"") >&5
18436 (eval $ac_link) 2>&5
18438 echo "$as_me:18438: \$? = $ac_status" >&5
18439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18440 { (eval echo "$as_me:18440: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:18443: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 cf_cv_typeof_chtype=`cat cf_test.out`
18447 echo "$as_me: program exited with status $ac_status" >&5
18448 echo "$as_me: failed program was:" >&5
18449 cat conftest.$ac_ext >&5
18450 cf_cv_typeof_chtype=long
18452 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18458 echo "$as_me:18458: result: $cf_cv_typeof_chtype" >&5
18459 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
18461 cat >>confdefs.h <<EOF
18462 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
18466 cf_cv_typeof_chtype=$NCURSES_CHTYPE
18468 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
18470 echo "$as_me:18470: checking if unsigned literals are legal" >&5
18471 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
18472 if test "${cf_cv_unsigned_literals+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
18477 #line 18477 "configure"
18478 #include "confdefs.h"
18483 long x = 1L + 1UL + 1U + 1
18488 rm -f conftest.$ac_objext
18489 if { (eval echo "$as_me:18489: \"$ac_compile\"") >&5
18490 (eval $ac_compile) 2>&5
18492 echo "$as_me:18492: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -s conftest.$ac_objext'
18495 { (eval echo "$as_me:18495: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 echo "$as_me:18498: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 cf_cv_unsigned_literals=yes
18502 echo "$as_me: failed program was:" >&5
18503 cat conftest.$ac_ext >&5
18504 cf_cv_unsigned_literals=no
18506 rm -f conftest.$ac_objext conftest.$ac_ext
18510 echo "$as_me:18510: result: $cf_cv_unsigned_literals" >&5
18511 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
18514 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
18515 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
18517 if test $NCURSES_MMASK_T = auto ; then
18518 cf_cv_typeof_mmask_t=long
18520 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
18522 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
18524 ### Checks for external-data
18526 echo "$as_me:18526: checking if external errno is declared" >&5
18527 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
18528 if test "${cf_cv_dcl_errno+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18533 #line 18533 "configure"
18534 #include "confdefs.h"
18536 #ifdef HAVE_STDLIB_H
18537 #include <stdlib.h>
18540 #include <sys/types.h>
18545 int x = (int) errno
18550 rm -f conftest.$ac_objext
18551 if { (eval echo "$as_me:18551: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>&5
18554 echo "$as_me:18554: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -s conftest.$ac_objext'
18557 { (eval echo "$as_me:18557: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18560 echo "$as_me:18560: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 cf_cv_dcl_errno=yes
18564 echo "$as_me: failed program was:" >&5
18565 cat conftest.$ac_ext >&5
18568 rm -f conftest.$ac_objext conftest.$ac_ext
18571 echo "$as_me:18571: result: $cf_cv_dcl_errno" >&5
18572 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
18574 if test "$cf_cv_dcl_errno" = no ; then
18576 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18578 cat >>confdefs.h <<EOF
18579 #define $cf_result 1
18584 # It's possible (for near-UNIX clones) that the data doesn't exist
18586 echo "$as_me:18586: checking if external errno exists" >&5
18587 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
18588 if test "${cf_cv_have_errno+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line 18593 "configure"
18594 #include "confdefs.h"
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:18608: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>&5
18611 echo "$as_me:18611: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (eval echo "$as_me:18614: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:18617: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 cf_cv_have_errno=yes
18621 echo "$as_me: failed program was:" >&5
18622 cat conftest.$ac_ext >&5
18623 cf_cv_have_errno=no
18625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18628 echo "$as_me:18628: result: $cf_cv_have_errno" >&5
18629 echo "${ECHO_T}$cf_cv_have_errno" >&6
18631 if test "$cf_cv_have_errno" = yes ; then
18633 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18635 cat >>confdefs.h <<EOF
18636 #define $cf_result 1
18641 echo "$as_me:18641: checking if data-only library module links" >&5
18642 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
18643 if test "${cf_cv_link_dataonly+set}" = set; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 cat >conftest.$ac_ext <<EOF
18649 #line 18649 "configure"
18650 int testdata[3] = { 123, 456, 789 };
18652 if { (eval echo "$as_me:18652: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>&5
18655 echo "$as_me:18655: \$? = $ac_status" >&5
18656 (exit $ac_status); } ; then
18657 mv conftest.o data.o && \
18658 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
18660 rm -f conftest.$ac_ext data.o
18661 cat >conftest.$ac_ext <<EOF
18662 #line 18662 "configure"
18666 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
18668 extern int testdata[3];
18669 return testdata[0] == 123
18670 && testdata[1] == 456
18671 && testdata[2] == 789;
18675 if { (eval echo "$as_me:18675: \"$ac_compile\"") >&5
18676 (eval $ac_compile) 2>&5
18678 echo "$as_me:18678: \$? = $ac_status" >&5
18679 (exit $ac_status); }; then
18680 mv conftest.o func.o && \
18681 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
18683 rm -f conftest.$ac_ext func.o
18684 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
18685 cf_saveLIBS="$LIBS"
18686 LIBS="conftest.a $LIBS"
18687 if test "$cross_compiling" = yes; then
18688 cf_cv_link_dataonly=unknown
18690 cat >conftest.$ac_ext <<_ACEOF
18691 #line 18691 "configure"
18692 #include "confdefs.h"
18696 extern int testfunc();
18697 ${cf_cv_main_return:-return} (!testfunc());
18701 rm -f conftest$ac_exeext
18702 if { (eval echo "$as_me:18702: \"$ac_link\"") >&5
18703 (eval $ac_link) 2>&5
18705 echo "$as_me:18705: \$? = $ac_status" >&5
18706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18707 { (eval echo "$as_me:18707: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:18710: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 cf_cv_link_dataonly=yes
18714 echo "$as_me: program exited with status $ac_status" >&5
18715 echo "$as_me: failed program was:" >&5
18716 cat conftest.$ac_ext >&5
18717 cf_cv_link_dataonly=no
18719 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18721 LIBS="$cf_saveLIBS"
18725 echo "$as_me:18725: result: $cf_cv_link_dataonly" >&5
18726 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
18728 if test "$cf_cv_link_dataonly" = no ; then
18730 cat >>confdefs.h <<\EOF
18731 #define BROKEN_LINKER 1
18737 ### Checks for library functions.
18766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18767 echo "$as_me:18767: checking for $ac_func" >&5
18768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18769 if eval "test \"\${$as_ac_var+set}\" = set"; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 cat >conftest.$ac_ext <<_ACEOF
18773 #line 18773 "configure"
18774 #include "confdefs.h"
18775 #define $ac_func autoconf_temporary
18776 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18783 /* We use char because int might match the return type of a gcc2
18784 builtin and then its argument prototype would still apply. */
18785 char $ac_func (void);
18791 /* The GNU C library defines stubs for functions which it implements
18792 to always fail with ENOSYS. Some functions are actually named
18793 something starting with __ and the normal name is an alias. */
18794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18795 #error found stub for $ac_func
18798 return $ac_func ();
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (eval echo "$as_me:18804: \"$ac_link\"") >&5
18805 (eval $ac_link) 2>&5
18807 echo "$as_me:18807: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
18809 { ac_try='test -s conftest$ac_exeext'
18810 { (eval echo "$as_me:18810: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:18813: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 eval "$as_ac_var=yes"
18817 echo "$as_me: failed program was:" >&5
18818 cat conftest.$ac_ext >&5
18819 eval "$as_ac_var=no"
18821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18823 echo "$as_me:18823: result: `eval echo '${'$as_ac_var'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18825 if test `eval echo '${'$as_ac_var'}'` = yes; then
18826 cat >>confdefs.h <<EOF
18827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18833 if test "x$ac_cv_func_getopt" = xno && \
18834 test "x$cf_with_progs$cf_with_tests" != xnono; then
18835 { { echo "$as_me:18835: error: getopt is required for building programs" >&5
18836 echo "$as_me: error: getopt is required for building programs" >&2;}
18837 { (exit 1); exit 1; }; }
18840 if test "x$with_safe_sprintf" = xyes
18842 if test "x$ac_cv_func_vsnprintf" = xyes
18844 { echo "$as_me:18844: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
18845 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
18848 cat >>confdefs.h <<\EOF
18849 #define USE_SAFE_SPRINTF 1
18855 if test "x$with_getcap" = "xyes" ; then
18857 echo "$as_me:18857: checking for terminal-capability database functions" >&5
18858 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
18859 if test "${cf_cv_cgetent+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 cat >conftest.$ac_ext <<_ACEOF
18864 #line 18864 "configure"
18865 #include "confdefs.h"
18867 #include <stdlib.h>
18874 char *db_array = temp;
18875 cgetent(&buf, &db_array, "vt100");
18876 cgetcap(buf, "tc", '=');
18877 cgetmatch(buf, "tc");
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (eval echo "$as_me:18884: \"$ac_link\"") >&5
18885 (eval $ac_link) 2>&5
18887 echo "$as_me:18887: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -s conftest$ac_exeext'
18890 { (eval echo "$as_me:18890: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18893 echo "$as_me:18893: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18897 echo "$as_me: failed program was:" >&5
18898 cat conftest.$ac_ext >&5
18901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18904 echo "$as_me:18904: result: $cf_cv_cgetent" >&5
18905 echo "${ECHO_T}$cf_cv_cgetent" >&6
18907 if test "$cf_cv_cgetent" = yes
18910 cat >>confdefs.h <<\EOF
18911 #define HAVE_BSD_CGETENT 1
18914 echo "$as_me:18914: checking if cgetent uses const parameter" >&5
18915 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
18916 if test "${cf_cv_cgetent_const+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line 18921 "configure"
18922 #include "confdefs.h"
18924 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
18925 #include <stdlib.h>
18932 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
18933 const char *db_array = temp;
18934 cgetent(&buf, &db_array, "vt100");
18936 cgetcap(buf, "tc", '=');
18937 cgetmatch(buf, "tc");
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:18944: \"$ac_link\"") >&5
18945 (eval $ac_link) 2>&5
18947 echo "$as_me:18947: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -s conftest$ac_exeext'
18950 { (eval echo "$as_me:18950: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:18953: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 cf_cv_cgetent_const=yes
18957 echo "$as_me: failed program was:" >&5
18958 cat conftest.$ac_ext >&5
18959 cf_cv_cgetent_const=no
18961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18964 echo "$as_me:18964: result: $cf_cv_cgetent_const" >&5
18965 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
18966 if test "$cf_cv_cgetent_const" = yes
18969 cat >>confdefs.h <<EOF
18970 #define CGETENT_CONST const
18978 echo "$as_me:18978: checking for isascii" >&5
18979 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
18980 if test "${cf_cv_have_isascii+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 cat >conftest.$ac_ext <<_ACEOF
18985 #line 18985 "configure"
18986 #include "confdefs.h"
18991 int x = isascii(' ')
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (eval echo "$as_me:18997: \"$ac_link\"") >&5
18998 (eval $ac_link) 2>&5
19000 echo "$as_me:19000: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -s conftest$ac_exeext'
19003 { (eval echo "$as_me:19003: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 echo "$as_me:19006: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 cf_cv_have_isascii=yes
19010 echo "$as_me: failed program was:" >&5
19011 cat conftest.$ac_ext >&5
19012 cf_cv_have_isascii=no
19014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19017 echo "$as_me:19017: result: $cf_cv_have_isascii" >&5
19018 echo "${ECHO_T}$cf_cv_have_isascii" >&6
19019 test "$cf_cv_have_isascii" = yes &&
19020 cat >>confdefs.h <<\EOF
19021 #define HAVE_ISASCII 1
19024 if test "$ac_cv_func_sigaction" = yes; then
19025 echo "$as_me:19025: checking whether sigaction needs _POSIX_SOURCE" >&5
19026 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
19027 cat >conftest.$ac_ext <<_ACEOF
19028 #line 19028 "configure"
19029 #include "confdefs.h"
19031 #include <sys/types.h>
19032 #include <signal.h>
19036 struct sigaction act
19041 rm -f conftest.$ac_objext
19042 if { (eval echo "$as_me:19042: \"$ac_compile\"") >&5
19043 (eval $ac_compile) 2>&5
19045 echo "$as_me:19045: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -s conftest.$ac_objext'
19048 { (eval echo "$as_me:19048: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:19051: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19055 echo "$as_me: failed program was:" >&5
19056 cat conftest.$ac_ext >&5
19058 cat >conftest.$ac_ext <<_ACEOF
19059 #line 19059 "configure"
19060 #include "confdefs.h"
19062 #define _POSIX_SOURCE
19063 #include <sys/types.h>
19064 #include <signal.h>
19068 struct sigaction act
19073 rm -f conftest.$ac_objext
19074 if { (eval echo "$as_me:19074: \"$ac_compile\"") >&5
19075 (eval $ac_compile) 2>&5
19077 echo "$as_me:19077: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -s conftest.$ac_objext'
19080 { (eval echo "$as_me:19080: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19083 echo "$as_me:19083: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19087 cat >>confdefs.h <<\EOF
19088 #define _POSIX_SOURCE 1
19092 echo "$as_me: failed program was:" >&5
19093 cat conftest.$ac_ext >&5
19096 rm -f conftest.$ac_objext conftest.$ac_ext
19098 rm -f conftest.$ac_objext conftest.$ac_ext
19099 echo "$as_me:19099: result: $sigact_bad" >&5
19100 echo "${ECHO_T}$sigact_bad" >&6
19103 echo "$as_me:19103: checking if nanosleep really works" >&5
19104 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
19105 if test "${cf_cv_func_nanosleep+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 if test "$cross_compiling" = yes; then
19110 cf_cv_func_nanosleep=unknown
19112 cat >conftest.$ac_ext <<_ACEOF
19113 #line 19113 "configure"
19114 #include "confdefs.h"
19120 #ifdef HAVE_SYS_TIME_H
19121 #include <sys/time.h>
19125 struct timespec ts1, ts2;
19128 ts1.tv_nsec = 750000000;
19132 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
19133 ${cf_cv_main_return:-return}(code != 0);
19137 rm -f conftest$ac_exeext
19138 if { (eval echo "$as_me:19138: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>&5
19141 echo "$as_me:19141: \$? = $ac_status" >&5
19142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19143 { (eval echo "$as_me:19143: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:19146: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 cf_cv_func_nanosleep=yes
19150 echo "$as_me: program exited with status $ac_status" >&5
19151 echo "$as_me: failed program was:" >&5
19152 cat conftest.$ac_ext >&5
19153 cf_cv_func_nanosleep=no
19155 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19158 echo "$as_me:19158: result: $cf_cv_func_nanosleep" >&5
19159 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
19161 test "$cf_cv_func_nanosleep" = "yes" &&
19162 cat >>confdefs.h <<\EOF
19163 #define HAVE_NANOSLEEP 1
19174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19175 echo "$as_me:19175: checking for $ac_header" >&5
19176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line 19181 "configure"
19182 #include "confdefs.h"
19183 #include <$ac_header>
19185 if { (eval echo "$as_me:19185: \"$ac_cpp conftest.$ac_ext\"") >&5
19186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19188 egrep -v '^ *\+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:19191: \$? = $ac_status" >&5
19192 (exit $ac_status); } >/dev/null; then
19193 if test -s conftest.err; then
19194 ac_cpp_err=$ac_c_preproc_warn_flag
19201 if test -z "$ac_cpp_err"; then
19202 eval "$as_ac_Header=yes"
19204 echo "$as_me: failed program was:" >&5
19205 cat conftest.$ac_ext >&5
19206 eval "$as_ac_Header=no"
19208 rm -f conftest.err conftest.$ac_ext
19210 echo "$as_me:19210: result: `eval echo '${'$as_ac_Header'}'`" >&5
19211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19213 cat >>confdefs.h <<EOF
19214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19220 if test "$ac_cv_header_termios_h" = yes ; then
19221 case "$CFLAGS $CPPFLAGS" in
19222 (*-D_POSIX_SOURCE*)
19223 termios_bad=dunno ;;
19224 (*) termios_bad=maybe ;;
19226 if test "$termios_bad" = maybe ; then
19227 echo "$as_me:19227: checking whether termios.h needs _POSIX_SOURCE" >&5
19228 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
19229 cat >conftest.$ac_ext <<_ACEOF
19230 #line 19230 "configure"
19231 #include "confdefs.h"
19232 #include <termios.h>
19236 struct termios foo; int x = foo.c_iflag
19241 rm -f conftest.$ac_objext
19242 if { (eval echo "$as_me:19242: \"$ac_compile\"") >&5
19243 (eval $ac_compile) 2>&5
19245 echo "$as_me:19245: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -s conftest.$ac_objext'
19248 { (eval echo "$as_me:19248: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:19251: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19255 echo "$as_me: failed program was:" >&5
19256 cat conftest.$ac_ext >&5
19258 cat >conftest.$ac_ext <<_ACEOF
19259 #line 19259 "configure"
19260 #include "confdefs.h"
19262 #define _POSIX_SOURCE
19263 #include <termios.h>
19267 struct termios foo; int x = foo.c_iflag
19272 rm -f conftest.$ac_objext
19273 if { (eval echo "$as_me:19273: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>&5
19276 echo "$as_me:19276: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (eval echo "$as_me:19279: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:19282: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 termios_bad=unknown
19286 echo "$as_me: failed program was:" >&5
19287 cat conftest.$ac_ext >&5
19289 cat >>confdefs.h <<\EOF
19290 #define _POSIX_SOURCE 1
19294 rm -f conftest.$ac_objext conftest.$ac_ext
19297 rm -f conftest.$ac_objext conftest.$ac_ext
19298 echo "$as_me:19298: result: $termios_bad" >&5
19299 echo "${ECHO_T}$termios_bad" >&6
19303 echo "$as_me:19303: checking for tcgetattr" >&5
19304 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
19305 if test "${cf_cv_have_tcgetattr+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 cat >conftest.$ac_ext <<_ACEOF
19310 #line 19310 "configure"
19311 #include "confdefs.h"
19313 #include <sys/types.h>
19314 #ifdef HAVE_UNISTD_H
19315 #include <unistd.h>
19317 #ifdef HAVE_TERMIOS_H
19318 #include <termios.h>
19319 #define TTY struct termios
19321 #ifdef HAVE_TERMIO_H
19322 #include <termio.h>
19323 #define TTY struct termio
19332 tcgetattr(1, &foo);
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (eval echo "$as_me:19338: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>&5
19341 echo "$as_me:19341: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
19343 { ac_try='test -s conftest$ac_exeext'
19344 { (eval echo "$as_me:19344: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19347 echo "$as_me:19347: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 cf_cv_have_tcgetattr=yes
19351 echo "$as_me: failed program was:" >&5
19352 cat conftest.$ac_ext >&5
19353 cf_cv_have_tcgetattr=no
19355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19357 echo "$as_me:19357: result: $cf_cv_have_tcgetattr" >&5
19358 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
19359 test "$cf_cv_have_tcgetattr" = yes &&
19360 cat >>confdefs.h <<\EOF
19361 #define HAVE_TCGETATTR 1
19364 echo "$as_me:19364: checking for vsscanf function or workaround" >&5
19365 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
19366 if test "${cf_cv_func_vsscanf+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 cat >conftest.$ac_ext <<_ACEOF
19371 #line 19371 "configure"
19372 #include "confdefs.h"
19374 #include <stdarg.h>
19381 vsscanf("from", "%d", ap)
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (eval echo "$as_me:19387: \"$ac_link\"") >&5
19388 (eval $ac_link) 2>&5
19390 echo "$as_me:19390: \$? = $ac_status" >&5
19391 (exit $ac_status); } &&
19392 { ac_try='test -s conftest$ac_exeext'
19393 { (eval echo "$as_me:19393: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:19396: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 cf_cv_func_vsscanf=vsscanf
19400 echo "$as_me: failed program was:" >&5
19401 cat conftest.$ac_ext >&5
19403 cat >conftest.$ac_ext <<_ACEOF
19404 #line 19404 "configure"
19405 #include "confdefs.h"
19407 #include <stdarg.h>
19414 char *str = "from";
19416 strbuf._flag = _IOREAD;
19417 strbuf._ptr = strbuf._base = (unsigned char *) str;
19418 strbuf._cnt = strlen(str);
19419 strbuf._file = _NFILE;
19420 return (vfscanf(&strbuf, "%d", ap))
19425 rm -f conftest.$ac_objext conftest$ac_exeext
19426 if { (eval echo "$as_me:19426: \"$ac_link\"") >&5
19427 (eval $ac_link) 2>&5
19429 echo "$as_me:19429: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -s conftest$ac_exeext'
19432 { (eval echo "$as_me:19432: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19435 echo "$as_me:19435: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 cf_cv_func_vsscanf=vfscanf
19439 echo "$as_me: failed program was:" >&5
19440 cat conftest.$ac_ext >&5
19442 cat >conftest.$ac_ext <<_ACEOF
19443 #line 19443 "configure"
19444 #include "confdefs.h"
19446 #include <stdarg.h>
19453 char *str = "from";
19455 strbuf._flag = _IOREAD;
19456 strbuf._ptr = strbuf._base = (unsigned char *) str;
19457 strbuf._cnt = strlen(str);
19458 strbuf._file = _NFILE;
19459 return (_doscan(&strbuf, "%d", ap))
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465 if { (eval echo "$as_me:19465: \"$ac_link\"") >&5
19466 (eval $ac_link) 2>&5
19468 echo "$as_me:19468: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -s conftest$ac_exeext'
19471 { (eval echo "$as_me:19471: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:19474: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 cf_cv_func_vsscanf=_doscan
19478 echo "$as_me: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19481 cf_cv_func_vsscanf=no
19483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19489 echo "$as_me:19489: result: $cf_cv_func_vsscanf" >&5
19490 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
19492 case $cf_cv_func_vsscanf in
19494 cat >>confdefs.h <<\EOF
19495 #define HAVE_VSSCANF 1
19499 cat >>confdefs.h <<\EOF
19500 #define HAVE_VFSCANF 1
19504 cat >>confdefs.h <<\EOF
19505 #define HAVE__DOSCAN 1
19514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19515 echo "$as_me:19515: checking for $ac_header" >&5
19516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19521 #line 19521 "configure"
19522 #include "confdefs.h"
19523 #include <$ac_header>
19525 if { (eval echo "$as_me:19525: \"$ac_cpp conftest.$ac_ext\"") >&5
19526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19528 egrep -v '^ *\+' conftest.er1 >conftest.err
19530 cat conftest.err >&5
19531 echo "$as_me:19531: \$? = $ac_status" >&5
19532 (exit $ac_status); } >/dev/null; then
19533 if test -s conftest.err; then
19534 ac_cpp_err=$ac_c_preproc_warn_flag
19541 if test -z "$ac_cpp_err"; then
19542 eval "$as_ac_Header=yes"
19544 echo "$as_me: failed program was:" >&5
19545 cat conftest.$ac_ext >&5
19546 eval "$as_ac_Header=no"
19548 rm -f conftest.err conftest.$ac_ext
19550 echo "$as_me:19550: result: `eval echo '${'$as_ac_Header'}'`" >&5
19551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19553 cat >>confdefs.h <<EOF
19554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19560 echo "$as_me:19560: checking for working mkstemp" >&5
19561 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
19562 if test "${cf_cv_func_mkstemp+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 if test "$cross_compiling" = yes; then
19568 cf_cv_func_mkstemp=maybe
19570 cat >conftest.$ac_ext <<_ACEOF
19571 #line 19571 "configure"
19572 #include "confdefs.h"
19574 #include <sys/types.h>
19575 #ifdef HAVE_UNISTD_H
19576 #include <unistd.h>
19578 #include <stdlib.h>
19580 #include <string.h>
19581 #include <sys/stat.h>
19584 char *tmpl = "conftestXXXXXX";
19592 for (n = 0; n < 2; ++n) {
19593 strcpy(name[n], tmpl);
19594 if ((fd = mkstemp(name[n])) >= 0) {
19595 if (!strcmp(name[n], tmpl)
19596 || stat(name[n], &sb) != 0
19597 || (sb.st_mode & S_IFMT) != S_IFREG
19598 || (sb.st_mode & 077) != 0) {
19605 && !strcmp(name[0], name[1]))
19607 ${cf_cv_main_return:-return}(result);
19611 rm -f conftest$ac_exeext
19612 if { (eval echo "$as_me:19612: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>&5
19615 echo "$as_me:19615: \$? = $ac_status" >&5
19616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19617 { (eval echo "$as_me:19617: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19620 echo "$as_me:19620: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 cf_cv_func_mkstemp=yes
19625 echo "$as_me: program exited with status $ac_status" >&5
19626 echo "$as_me: failed program was:" >&5
19627 cat conftest.$ac_ext >&5
19628 cf_cv_func_mkstemp=no
19631 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19635 echo "$as_me:19635: result: $cf_cv_func_mkstemp" >&5
19636 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
19637 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
19638 echo "$as_me:19638: checking for mkstemp" >&5
19639 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
19640 if test "${ac_cv_func_mkstemp+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 cat >conftest.$ac_ext <<_ACEOF
19644 #line 19644 "configure"
19645 #include "confdefs.h"
19646 #define mkstemp autoconf_temporary
19647 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19654 /* We use char because int might match the return type of a gcc2
19655 builtin and then its argument prototype would still apply. */
19656 char mkstemp (void);
19662 /* The GNU C library defines stubs for functions which it implements
19663 to always fail with ENOSYS. Some functions are actually named
19664 something starting with __ and the normal name is an alias. */
19665 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
19666 #error found stub for mkstemp
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (eval echo "$as_me:19675: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>&5
19678 echo "$as_me:19678: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -s conftest$ac_exeext'
19681 { (eval echo "$as_me:19681: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:19684: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19686 ac_cv_func_mkstemp=yes
19688 echo "$as_me: failed program was:" >&5
19689 cat conftest.$ac_ext >&5
19690 ac_cv_func_mkstemp=no
19692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19694 echo "$as_me:19694: result: $ac_cv_func_mkstemp" >&5
19695 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
19698 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
19700 cat >>confdefs.h <<\EOF
19701 #define HAVE_MKSTEMP 1
19706 # setup for prototype of fallback for vsscanf()
19708 if test "$cf_cv_func_vsscanf" = vsscanf ; then
19714 if test "x$cross_compiling" = xyes ; then
19715 { echo "$as_me:19715: WARNING: cross compiling: assume setvbuf params not reversed" >&5
19716 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
19718 echo "$as_me:19718: checking whether setvbuf arguments are reversed" >&5
19719 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
19720 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 if test "$cross_compiling" = yes; then
19724 { { echo "$as_me:19724: error: cannot run test program while cross compiling" >&5
19725 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
19726 { (exit 1); exit 1; }; }
19728 cat >conftest.$ac_ext <<_ACEOF
19729 #line 19729 "configure"
19730 #include "confdefs.h"
19732 /* If setvbuf has the reversed format, exit 0. */
19736 /* This call has the arguments reversed.
19737 A reversed system may check and see that the address of main
19738 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
19739 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
19740 $ac_main_return(1);
19741 putc('\r', stdout);
19742 $ac_main_return(0); /* Non-reversed systems segv here. */
19745 rm -f conftest$ac_exeext
19746 if { (eval echo "$as_me:19746: \"$ac_link\"") >&5
19747 (eval $ac_link) 2>&5
19749 echo "$as_me:19749: \$? = $ac_status" >&5
19750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19751 { (eval echo "$as_me:19751: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19754 echo "$as_me:19754: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
19756 ac_cv_func_setvbuf_reversed=yes
19758 echo "$as_me: program exited with status $ac_status" >&5
19759 echo "$as_me: failed program was:" >&5
19760 cat conftest.$ac_ext >&5
19761 ac_cv_func_setvbuf_reversed=no
19763 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19765 rm -f core core.* *.core
19767 echo "$as_me:19767: result: $ac_cv_func_setvbuf_reversed" >&5
19768 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
19769 if test $ac_cv_func_setvbuf_reversed = yes; then
19771 cat >>confdefs.h <<\EOF
19772 #define SETVBUF_REVERSED 1
19778 echo "$as_me:19778: checking for intptr_t" >&5
19779 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
19780 if test "${ac_cv_type_intptr_t+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 cat >conftest.$ac_ext <<_ACEOF
19784 #line 19784 "configure"
19785 #include "confdefs.h"
19786 $ac_includes_default
19790 if ((intptr_t *) 0)
19792 if (sizeof (intptr_t))
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:19799: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>&5
19802 echo "$as_me:19802: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:19805: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_cv_type_intptr_t=yes
19812 echo "$as_me: failed program was:" >&5
19813 cat conftest.$ac_ext >&5
19814 ac_cv_type_intptr_t=no
19816 rm -f conftest.$ac_objext conftest.$ac_ext
19818 echo "$as_me:19818: result: $ac_cv_type_intptr_t" >&5
19819 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
19820 if test $ac_cv_type_intptr_t = yes; then
19824 cat >>confdefs.h <<EOF
19825 #define intptr_t long
19830 echo "$as_me:19830: checking for ssize_t" >&5
19831 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
19832 if test "${ac_cv_type_ssize_t+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 cat >conftest.$ac_ext <<_ACEOF
19836 #line 19836 "configure"
19837 #include "confdefs.h"
19838 $ac_includes_default
19844 if (sizeof (ssize_t))
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:19851: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>&5
19854 echo "$as_me:19854: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -s conftest.$ac_objext'
19857 { (eval echo "$as_me:19857: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:19860: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_cv_type_ssize_t=yes
19864 echo "$as_me: failed program was:" >&5
19865 cat conftest.$ac_ext >&5
19866 ac_cv_type_ssize_t=no
19868 rm -f conftest.$ac_objext conftest.$ac_ext
19870 echo "$as_me:19870: result: $ac_cv_type_ssize_t" >&5
19871 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
19872 if test $ac_cv_type_ssize_t = yes; then
19876 cat >>confdefs.h <<EOF
19877 #define ssize_t int
19882 echo "$as_me:19882: checking for type sigaction_t" >&5
19883 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
19884 if test "${cf_cv_type_sigaction+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 cat >conftest.$ac_ext <<_ACEOF
19889 #line 19889 "configure"
19890 #include "confdefs.h"
19892 #include <signal.h>
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:19902: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>&5
19905 echo "$as_me:19905: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -s conftest.$ac_objext'
19908 { (eval echo "$as_me:19908: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19911 echo "$as_me:19911: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 cf_cv_type_sigaction=yes
19915 echo "$as_me: failed program was:" >&5
19916 cat conftest.$ac_ext >&5
19917 cf_cv_type_sigaction=no
19919 rm -f conftest.$ac_objext conftest.$ac_ext
19922 echo "$as_me:19922: result: $cf_cv_type_sigaction" >&5
19923 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
19924 test "$cf_cv_type_sigaction" = yes &&
19925 cat >>confdefs.h <<\EOF
19926 #define HAVE_TYPE_SIGACTION 1
19929 echo "$as_me:19929: checking declaration of size-change" >&5
19930 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
19931 if test "${cf_cv_sizechange+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 cf_cv_sizechange=unknown
19936 cf_save_CPPFLAGS="$CPPFLAGS"
19938 for cf_opts in "" "NEED_PTEM_H"
19941 CPPFLAGS="$cf_save_CPPFLAGS"
19942 if test -n "$cf_opts"
19945 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19946 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
19949 cat >conftest.$ac_ext <<_ACEOF
19950 #line 19950 "configure"
19951 #include "confdefs.h"
19952 #include <sys/types.h>
19953 #ifdef HAVE_TERMIOS_H
19954 #include <termios.h>
19956 #ifdef HAVE_TERMIO_H
19957 #include <termio.h>
19962 /* This is a workaround for SCO: they neglected to define struct winsize in
19963 * termios.h -- it's only in termio.h and ptem.h
19965 #include <sys/stream.h>
19966 #include <sys/ptem.h>
19969 #ifdef HAVE_SYS_IOCTL_H
19970 #include <sys/ioctl.h>
19978 struct ttysize win; /* SunOS 3.0... */
19979 int y = win.ts_lines;
19980 int x = win.ts_cols;
19983 struct winsize win; /* everything else */
19984 int y = win.ws_row;
19985 int x = win.ws_col;
19987 no TIOCGSIZE or TIOCGWINSZ
19988 #endif /* TIOCGWINSZ */
19989 #endif /* TIOCGSIZE */
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:19996: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>&5
19999 echo "$as_me:19999: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:20002: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:20005: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 cf_cv_sizechange=yes
20009 echo "$as_me: failed program was:" >&5
20010 cat conftest.$ac_ext >&5
20011 cf_cv_sizechange=no
20013 rm -f conftest.$ac_objext conftest.$ac_ext
20015 CPPFLAGS="$cf_save_CPPFLAGS"
20016 if test "$cf_cv_sizechange" = yes ; then
20017 echo "size-change succeeded ($cf_opts)" >&5
20018 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
20024 echo "$as_me:20024: result: $cf_cv_sizechange" >&5
20025 echo "${ECHO_T}$cf_cv_sizechange" >&6
20026 if test "$cf_cv_sizechange" != no ; then
20028 cat >>confdefs.h <<\EOF
20029 #define HAVE_SIZECHANGE 1
20032 case $cf_cv_sizechange in
20034 cat >>confdefs.h <<EOF
20035 #define $cf_cv_sizechange 1
20042 echo "$as_me:20042: checking for memmove" >&5
20043 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20044 if test "${ac_cv_func_memmove+set}" = set; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 cat >conftest.$ac_ext <<_ACEOF
20048 #line 20048 "configure"
20049 #include "confdefs.h"
20050 #define memmove autoconf_temporary
20051 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20058 /* We use char because int might match the return type of a gcc2
20059 builtin and then its argument prototype would still apply. */
20060 char memmove (void);
20066 /* The GNU C library defines stubs for functions which it implements
20067 to always fail with ENOSYS. Some functions are actually named
20068 something starting with __ and the normal name is an alias. */
20069 #if defined (__stub_memmove) || defined (__stub___memmove)
20070 #error found stub for memmove
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (eval echo "$as_me:20079: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>&5
20082 echo "$as_me:20082: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -s conftest$ac_exeext'
20085 { (eval echo "$as_me:20085: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:20088: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_func_memmove=yes
20092 echo "$as_me: failed program was:" >&5
20093 cat conftest.$ac_ext >&5
20094 ac_cv_func_memmove=no
20096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20098 echo "$as_me:20098: result: $ac_cv_func_memmove" >&5
20099 echo "${ECHO_T}$ac_cv_func_memmove" >&6
20100 if test $ac_cv_func_memmove = yes; then
20104 echo "$as_me:20104: checking for bcopy" >&5
20105 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
20106 if test "${ac_cv_func_bcopy+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 cat >conftest.$ac_ext <<_ACEOF
20110 #line 20110 "configure"
20111 #include "confdefs.h"
20112 #define bcopy autoconf_temporary
20113 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20120 /* We use char because int might match the return type of a gcc2
20121 builtin and then its argument prototype would still apply. */
20128 /* The GNU C library defines stubs for functions which it implements
20129 to always fail with ENOSYS. Some functions are actually named
20130 something starting with __ and the normal name is an alias. */
20131 #if defined (__stub_bcopy) || defined (__stub___bcopy)
20132 #error found stub for bcopy
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:20141: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>&5
20144 echo "$as_me:20144: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -s conftest$ac_exeext'
20147 { (eval echo "$as_me:20147: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:20150: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_func_bcopy=yes
20154 echo "$as_me: failed program was:" >&5
20155 cat conftest.$ac_ext >&5
20156 ac_cv_func_bcopy=no
20158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20160 echo "$as_me:20160: result: $ac_cv_func_bcopy" >&5
20161 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
20162 if test $ac_cv_func_bcopy = yes; then
20164 echo "$as_me:20164: checking if bcopy does overlapping moves" >&5
20165 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
20166 if test "${cf_cv_good_bcopy+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 if test "$cross_compiling" = yes; then
20171 cf_cv_good_bcopy=unknown
20173 cat >conftest.$ac_ext <<_ACEOF
20174 #line 20174 "configure"
20175 #include "confdefs.h"
20178 static char data[] = "abcdefghijklmnopqrstuwwxyz";
20180 bcopy(data, temp, sizeof(data));
20181 bcopy(temp+10, temp, 15);
20182 bcopy(temp+5, temp+15, 10);
20183 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
20187 rm -f conftest$ac_exeext
20188 if { (eval echo "$as_me:20188: \"$ac_link\"") >&5
20189 (eval $ac_link) 2>&5
20191 echo "$as_me:20191: \$? = $ac_status" >&5
20192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20193 { (eval echo "$as_me:20193: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:20196: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 cf_cv_good_bcopy=yes
20200 echo "$as_me: program exited with status $ac_status" >&5
20201 echo "$as_me: failed program was:" >&5
20202 cat conftest.$ac_ext >&5
20203 cf_cv_good_bcopy=no
20205 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20209 echo "$as_me:20209: result: $cf_cv_good_bcopy" >&5
20210 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
20213 cf_cv_good_bcopy=no
20216 if test "$cf_cv_good_bcopy" = yes ; then
20218 cat >>confdefs.h <<\EOF
20219 #define USE_OK_BCOPY 1
20224 cat >>confdefs.h <<\EOF
20225 #define USE_MY_MEMMOVE 1
20232 tty 2>&1 >/dev/null || {
20233 for ac_func in posix_openpt
20235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20236 echo "$as_me:20236: checking for $ac_func" >&5
20237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20238 if eval "test \"\${$as_ac_var+set}\" = set"; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 cat >conftest.$ac_ext <<_ACEOF
20242 #line 20242 "configure"
20243 #include "confdefs.h"
20244 #define $ac_func autoconf_temporary
20245 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20252 /* We use char because int might match the return type of a gcc2
20253 builtin and then its argument prototype would still apply. */
20254 char $ac_func (void);
20260 /* The GNU C library defines stubs for functions which it implements
20261 to always fail with ENOSYS. Some functions are actually named
20262 something starting with __ and the normal name is an alias. */
20263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20264 #error found stub for $ac_func
20267 return $ac_func ();
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (eval echo "$as_me:20273: \"$ac_link\"") >&5
20274 (eval $ac_link) 2>&5
20276 echo "$as_me:20276: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (eval echo "$as_me:20279: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:20282: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 eval "$as_ac_var=yes"
20286 echo "$as_me: failed program was:" >&5
20287 cat conftest.$ac_ext >&5
20288 eval "$as_ac_var=no"
20290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20292 echo "$as_me:20292: result: `eval echo '${'$as_ac_var'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20294 if test `eval echo '${'$as_ac_var'}'` = yes; then
20295 cat >>confdefs.h <<EOF
20296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20302 echo "$as_me:20302: checking if poll really works" >&5
20303 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
20304 if test "${cf_cv_working_poll+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 if test "$cross_compiling" = yes; then
20309 cf_cv_working_poll=unknown
20311 cat >conftest.$ac_ext <<_ACEOF
20312 #line 20312 "configure"
20313 #include "confdefs.h"
20315 #include <stdlib.h>
20317 #include <unistd.h>
20322 #include <sys/poll.h>
20325 struct pollfd myfds;
20328 /* check for Darwin bug with respect to "devices" */
20329 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
20332 myfds.events = POLLIN;
20335 ret = poll(&myfds, 1, 100);
20337 if (ret < 0 || (myfds.revents & POLLNVAL)) {
20342 fd = open("/dev/tty", 2); /* O_RDWR */
20344 #ifdef HAVE_POSIX_OPENPT
20346 fd = posix_openpt(O_RDWR);
20351 /* also check with standard input */
20353 myfds.events = POLLIN;
20355 ret = poll(&myfds, 1, 100);
20360 ${cf_cv_main_return:-return}(ret < 0);
20363 rm -f conftest$ac_exeext
20364 if { (eval echo "$as_me:20364: \"$ac_link\"") >&5
20365 (eval $ac_link) 2>&5
20367 echo "$as_me:20367: \$? = $ac_status" >&5
20368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369 { (eval echo "$as_me:20369: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:20372: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 cf_cv_working_poll=yes
20376 echo "$as_me: program exited with status $ac_status" >&5
20377 echo "$as_me: failed program was:" >&5
20378 cat conftest.$ac_ext >&5
20379 cf_cv_working_poll=no
20381 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20384 echo "$as_me:20384: result: $cf_cv_working_poll" >&5
20385 echo "${ECHO_T}$cf_cv_working_poll" >&6
20386 test "$cf_cv_working_poll" = "yes" &&
20387 cat >>confdefs.h <<\EOF
20388 #define HAVE_WORKING_POLL 1
20391 echo "$as_me:20391: checking for va_copy" >&5
20392 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20393 if test "${cf_cv_have_va_copy+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20398 #line 20398 "configure"
20399 #include "confdefs.h"
20401 #include <stdarg.h>
20407 static va_list dst;
20408 static va_list src;
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (eval echo "$as_me:20415: \"$ac_link\"") >&5
20416 (eval $ac_link) 2>&5
20418 echo "$as_me:20418: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -s conftest$ac_exeext'
20421 { (eval echo "$as_me:20421: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20424 echo "$as_me:20424: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 cf_cv_have_va_copy=yes
20428 echo "$as_me: failed program was:" >&5
20429 cat conftest.$ac_ext >&5
20430 cf_cv_have_va_copy=no
20432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20434 echo "$as_me:20434: result: $cf_cv_have_va_copy" >&5
20435 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
20437 if test "$cf_cv_have_va_copy" = yes;
20440 cat >>confdefs.h <<\EOF
20441 #define HAVE_VA_COPY 1
20444 else # !cf_cv_have_va_copy
20446 echo "$as_me:20446: checking for __va_copy" >&5
20447 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
20448 if test "${cf_cv_have___va_copy+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20452 cat >conftest.$ac_ext <<_ACEOF
20453 #line 20453 "configure"
20454 #include "confdefs.h"
20456 #include <stdarg.h>
20462 static va_list dst;
20463 static va_list src;
20464 __va_copy(dst, src)
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (eval echo "$as_me:20470: \"$ac_link\"") >&5
20471 (eval $ac_link) 2>&5
20473 echo "$as_me:20473: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
20475 { ac_try='test -s conftest$ac_exeext'
20476 { (eval echo "$as_me:20476: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20479 echo "$as_me:20479: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 cf_cv_have___va_copy=yes
20483 echo "$as_me: failed program was:" >&5
20484 cat conftest.$ac_ext >&5
20485 cf_cv_have___va_copy=no
20487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20489 echo "$as_me:20489: result: $cf_cv_have___va_copy" >&5
20490 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
20492 if test "$cf_cv_have___va_copy" = yes
20495 cat >>confdefs.h <<\EOF
20496 #define HAVE___VA_COPY 1
20499 else # !cf_cv_have___va_copy
20501 echo "$as_me:20501: checking for __builtin_va_copy" >&5
20502 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
20503 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20508 #line 20508 "configure"
20509 #include "confdefs.h"
20511 #include <stdarg.h>
20517 static va_list dst;
20518 static va_list src;
20519 __builtin_va_copy(dst, src)
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (eval echo "$as_me:20525: \"$ac_link\"") >&5
20526 (eval $ac_link) 2>&5
20528 echo "$as_me:20528: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (eval echo "$as_me:20531: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:20534: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 cf_cv_have___builtin_va_copy=yes
20538 echo "$as_me: failed program was:" >&5
20539 cat conftest.$ac_ext >&5
20540 cf_cv_have___builtin_va_copy=no
20542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20544 echo "$as_me:20544: result: $cf_cv_have___builtin_va_copy" >&5
20545 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
20547 test "$cf_cv_have___builtin_va_copy" = yes &&
20549 cat >>confdefs.h <<\EOF
20550 #define HAVE___BUILTIN_VA_COPY 1
20553 fi # cf_cv_have___va_copy
20555 fi # cf_cv_have_va_copy
20557 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
20562 echo "$as_me:20562: checking if we can simply copy va_list" >&5
20563 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
20564 if test "${cf_cv_pointer_va_list+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 cat >conftest.$ac_ext <<_ACEOF
20569 #line 20569 "configure"
20570 #include "confdefs.h"
20572 #include <stdarg.h>
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (eval echo "$as_me:20586: \"$ac_link\"") >&5
20587 (eval $ac_link) 2>&5
20589 echo "$as_me:20589: \$? = $ac_status" >&5
20590 (exit $ac_status); } &&
20591 { ac_try='test -s conftest$ac_exeext'
20592 { (eval echo "$as_me:20592: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:20595: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 cf_cv_pointer_va_list=yes
20599 echo "$as_me: failed program was:" >&5
20600 cat conftest.$ac_ext >&5
20601 cf_cv_pointer_va_list=no
20603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20605 echo "$as_me:20605: result: $cf_cv_pointer_va_list" >&5
20606 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
20608 if test "$cf_cv_pointer_va_list" = no
20610 echo "$as_me:20610: checking if we can copy va_list indirectly" >&5
20611 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
20612 if test "${cf_cv_array_va_list+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 cat >conftest.$ac_ext <<_ACEOF
20617 #line 20617 "configure"
20618 #include "confdefs.h"
20620 #include <stdarg.h>
20633 rm -f conftest.$ac_objext conftest$ac_exeext
20634 if { (eval echo "$as_me:20634: \"$ac_link\"") >&5
20635 (eval $ac_link) 2>&5
20637 echo "$as_me:20637: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:20640: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20643 echo "$as_me:20643: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 cf_cv_array_va_list=yes
20647 echo "$as_me: failed program was:" >&5
20648 cat conftest.$ac_ext >&5
20649 cf_cv_array_va_list=no
20651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20653 echo "$as_me:20653: result: $cf_cv_array_va_list" >&5
20654 echo "${ECHO_T}$cf_cv_array_va_list" >&6
20655 test "$cf_cv_array_va_list" = yes &&
20656 cat >>confdefs.h <<\EOF
20657 #define ARRAY_VA_LIST 1
20664 echo "$as_me:20664: checking for pid_t" >&5
20665 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20666 if test "${ac_cv_type_pid_t+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 cat >conftest.$ac_ext <<_ACEOF
20670 #line 20670 "configure"
20671 #include "confdefs.h"
20672 $ac_includes_default
20678 if (sizeof (pid_t))
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:20685: \"$ac_compile\"") >&5
20686 (eval $ac_compile) 2>&5
20688 echo "$as_me:20688: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:20691: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:20694: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_cv_type_pid_t=yes
20698 echo "$as_me: failed program was:" >&5
20699 cat conftest.$ac_ext >&5
20700 ac_cv_type_pid_t=no
20702 rm -f conftest.$ac_objext conftest.$ac_ext
20704 echo "$as_me:20704: result: $ac_cv_type_pid_t" >&5
20705 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20706 if test $ac_cv_type_pid_t = yes; then
20710 cat >>confdefs.h <<EOF
20716 for ac_header in unistd.h vfork.h
20718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20719 echo "$as_me:20719: checking for $ac_header" >&5
20720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20725 #line 20725 "configure"
20726 #include "confdefs.h"
20727 #include <$ac_header>
20729 if { (eval echo "$as_me:20729: \"$ac_cpp conftest.$ac_ext\"") >&5
20730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20732 egrep -v '^ *\+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:20735: \$? = $ac_status" >&5
20736 (exit $ac_status); } >/dev/null; then
20737 if test -s conftest.err; then
20738 ac_cpp_err=$ac_c_preproc_warn_flag
20745 if test -z "$ac_cpp_err"; then
20746 eval "$as_ac_Header=yes"
20748 echo "$as_me: failed program was:" >&5
20749 cat conftest.$ac_ext >&5
20750 eval "$as_ac_Header=no"
20752 rm -f conftest.err conftest.$ac_ext
20754 echo "$as_me:20754: result: `eval echo '${'$as_ac_Header'}'`" >&5
20755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20757 cat >>confdefs.h <<EOF
20758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20764 for ac_func in fork vfork
20766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20767 echo "$as_me:20767: checking for $ac_func" >&5
20768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20769 if eval "test \"\${$as_ac_var+set}\" = set"; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 cat >conftest.$ac_ext <<_ACEOF
20773 #line 20773 "configure"
20774 #include "confdefs.h"
20775 #define $ac_func autoconf_temporary
20776 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20783 /* We use char because int might match the return type of a gcc2
20784 builtin and then its argument prototype would still apply. */
20785 char $ac_func (void);
20791 /* The GNU C library defines stubs for functions which it implements
20792 to always fail with ENOSYS. Some functions are actually named
20793 something starting with __ and the normal name is an alias. */
20794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20795 #error found stub for $ac_func
20798 return $ac_func ();
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (eval echo "$as_me:20804: \"$ac_link\"") >&5
20805 (eval $ac_link) 2>&5
20807 echo "$as_me:20807: \$? = $ac_status" >&5
20808 (exit $ac_status); } &&
20809 { ac_try='test -s conftest$ac_exeext'
20810 { (eval echo "$as_me:20810: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20813 echo "$as_me:20813: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 eval "$as_ac_var=yes"
20817 echo "$as_me: failed program was:" >&5
20818 cat conftest.$ac_ext >&5
20819 eval "$as_ac_var=no"
20821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20823 echo "$as_me:20823: result: `eval echo '${'$as_ac_var'}'`" >&5
20824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20825 if test `eval echo '${'$as_ac_var'}'` = yes; then
20826 cat >>confdefs.h <<EOF
20827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20833 ac_cv_func_fork_works=$ac_cv_func_fork
20834 if test "x$ac_cv_func_fork" = xyes; then
20835 echo "$as_me:20835: checking for working fork" >&5
20836 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20837 if test "${ac_cv_func_fork_works+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 if test "$cross_compiling" = yes; then
20841 ac_cv_func_fork_works=cross
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* By Rüdiger Kuhlmann. */
20845 #include <sys/types.h>
20847 # include <unistd.h>
20849 /* Some systems only have a dummy stub for fork() */
20853 $ac_main_return (1);
20854 $ac_main_return (0);
20857 rm -f conftest$ac_exeext
20858 if { (eval echo "$as_me:20858: \"$ac_link\"") >&5
20859 (eval $ac_link) 2>&5
20861 echo "$as_me:20861: \$? = $ac_status" >&5
20862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20863 { (eval echo "$as_me:20863: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:20866: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_cv_func_fork_works=yes
20870 echo "$as_me: program exited with status $ac_status" >&5
20871 echo "$as_me: failed program was:" >&5
20872 cat conftest.$ac_ext >&5
20873 ac_cv_func_fork_works=no
20875 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20878 echo "$as_me:20878: result: $ac_cv_func_fork_works" >&5
20879 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20882 if test "x$ac_cv_func_fork_works" = xcross; then
20884 *-*-amigaos* | *-*-msdosdjgpp*)
20885 # Override, as these systems have only a dummy fork() stub
20886 ac_cv_func_fork_works=no
20889 ac_cv_func_fork_works=yes
20892 { echo "$as_me:20892: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
20893 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
20895 ac_cv_func_vfork_works=$ac_cv_func_vfork
20896 if test "x$ac_cv_func_vfork" = xyes; then
20897 echo "$as_me:20897: checking for working vfork" >&5
20898 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20899 if test "${ac_cv_func_vfork_works+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 if test "$cross_compiling" = yes; then
20903 ac_cv_func_vfork_works=cross
20905 cat >conftest.$ac_ext <<_ACEOF
20906 #line 20906 "configure"
20907 #include "confdefs.h"
20908 /* Thanks to Paul Eggert for this test. */
20910 #include <sys/types.h>
20911 #include <sys/stat.h>
20913 # include <unistd.h>
20916 # include <vfork.h>
20918 /* On some sparc systems, changes by the child to local and incoming
20919 argument registers are propagated back to the parent. The compiler
20920 is told about this with #include <vfork.h>, but some compilers
20921 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20922 static variable whose address is put into a register that is
20923 clobbered by the vfork. */
20926 sparc_address_test (int arg)
20928 sparc_address_test (arg) int arg;
20931 static pid_t child;
20949 pid_t parent = getpid ();
20952 sparc_address_test ();
20957 /* Here is another test for sparc vfork register problems. This
20958 test uses lots of local variables, at least as many local
20959 variables as main has allocated so far including compiler
20960 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20961 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20962 reuse the register of parent for one of the local variables,
20963 since it will think that parent can't possibly be used any more
20964 in this routine. Assigning to the local variable will thus
20965 munge parent in the parent process. */
20967 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20968 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20969 /* Convince the compiler that p..p7 are live; otherwise, it might
20970 use the same hardware register for all 8 local variables. */
20971 if (p != p1 || p != p2 || p != p3 || p != p4
20972 || p != p5 || p != p6 || p != p7)
20975 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20976 from child file descriptors. If the child closes a descriptor
20977 before it execs or exits, this munges the parent's descriptor
20978 as well. Test for this by closing stdout in the child. */
20979 _exit(close(fileno(stdout)) != 0);
20984 while (wait(&status) != child)
20987 /* Was there some problem with vforking? */
20990 /* Did the child fail? (This shouldn't happen.) */
20993 /* Did the vfork/compiler bug occur? */
20994 || parent != getpid()
20996 /* Did the file descriptor bug occur? */
20997 || fstat(fileno(stdout), &st) != 0
21002 rm -f conftest$ac_exeext
21003 if { (eval echo "$as_me:21003: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>&5
21006 echo "$as_me:21006: \$? = $ac_status" >&5
21007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21008 { (eval echo "$as_me:21008: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:21011: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_func_vfork_works=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 ac_cv_func_vfork_works=no
21020 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21023 echo "$as_me:21023: result: $ac_cv_func_vfork_works" >&5
21024 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21027 if test "x$ac_cv_func_fork_works" = xcross; then
21028 ac_cv_func_vfork_works=ac_cv_func_vfork
21029 { echo "$as_me:21029: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
21030 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
21033 if test "x$ac_cv_func_vfork_works" = xyes; then
21035 cat >>confdefs.h <<\EOF
21036 #define HAVE_WORKING_VFORK 1
21041 cat >>confdefs.h <<\EOF
21046 if test "x$ac_cv_func_fork_works" = xyes; then
21048 cat >>confdefs.h <<\EOF
21049 #define HAVE_WORKING_FORK 1
21054 echo "$as_me:21054: checking if fopen accepts explicit binary mode" >&5
21055 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
21056 if test "${cf_cv_fopen_bin_r+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 if test "$cross_compiling" = yes; then
21061 cf_cv_fopen_bin_r=unknown
21063 cat >conftest.$ac_ext <<_ACEOF
21064 #line 21064 "configure"
21065 #include "confdefs.h"
21069 FILE *fp = fopen("conftest.tmp", "wb");
21073 for (p = 0; p < 256; ++p) {
21077 fp = fopen("conftest.tmp", "rb");
21079 for (p = 0; p < 256; ++p) {
21082 fprintf(stderr, "OOPS:%d ->%d\n", p, q);
21093 ${cf_cv_main_return:-return} (rc);
21097 rm -f conftest$ac_exeext
21098 if { (eval echo "$as_me:21098: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>&5
21101 echo "$as_me:21101: \$? = $ac_status" >&5
21102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103 { (eval echo "$as_me:21103: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:21106: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 cf_cv_fopen_bin_r=yes
21110 echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 cat conftest.$ac_ext >&5
21113 cf_cv_fopen_bin_r=no
21115 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21119 echo "$as_me:21119: result: $cf_cv_fopen_bin_r" >&5
21120 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
21121 test "x$cf_cv_fopen_bin_r" != xno && cat >>confdefs.h <<\EOF
21122 #define USE_FOPEN_BIN_R 1
21125 # special check for test/ditto.c
21127 echo "$as_me:21127: checking for openpty in -lutil" >&5
21128 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
21129 if test "${ac_cv_lib_util_openpty+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 ac_check_lib_save_LIBS=$LIBS
21133 LIBS="-lutil $LIBS"
21134 cat >conftest.$ac_ext <<_ACEOF
21135 #line 21135 "configure"
21136 #include "confdefs.h"
21138 /* Override any gcc2 internal prototype to avoid an error. */
21142 /* We use char because int might match the return type of a gcc2
21143 builtin and then its argument prototype would still apply. */
21153 rm -f conftest.$ac_objext conftest$ac_exeext
21154 if { (eval echo "$as_me:21154: \"$ac_link\"") >&5
21155 (eval $ac_link) 2>&5
21157 echo "$as_me:21157: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -s conftest$ac_exeext'
21160 { (eval echo "$as_me:21160: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 ac_cv_lib_util_openpty=yes
21167 echo "$as_me: failed program was:" >&5
21168 cat conftest.$ac_ext >&5
21169 ac_cv_lib_util_openpty=no
21171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21172 LIBS=$ac_check_lib_save_LIBS
21174 echo "$as_me:21174: result: $ac_cv_lib_util_openpty" >&5
21175 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
21176 if test $ac_cv_lib_util_openpty = yes; then
21182 echo "$as_me:21182: checking for openpty header" >&5
21183 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
21184 if test "${cf_cv_func_openpty+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 cf_save_LIBS="$LIBS"
21189 test $cf_cv_lib_util = yes && {
21190 cf_add_libs="-lutil"
21191 # Filter out duplicates - this happens with badly-designed ".pc" files...
21192 for cf_add_1lib in $LIBS
21194 for cf_add_2lib in $cf_add_libs
21196 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21202 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21204 LIBS="$cf_add_libs"
21206 for cf_header in pty.h libutil.h util.h
21208 cat >conftest.$ac_ext <<_ACEOF
21209 #line 21209 "configure"
21210 #include "confdefs.h"
21212 #include <$cf_header>
21218 int x = openpty((int *)0, (int *)0, (char *)0,
21219 (struct termios *)0, (struct winsize *)0);
21225 rm -f conftest.$ac_objext conftest$ac_exeext
21226 if { (eval echo "$as_me:21226: \"$ac_link\"") >&5
21227 (eval $ac_link) 2>&5
21229 echo "$as_me:21229: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try='test -s conftest$ac_exeext'
21232 { (eval echo "$as_me:21232: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:21235: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21238 cf_cv_func_openpty=$cf_header
21242 echo "$as_me: failed program was:" >&5
21243 cat conftest.$ac_ext >&5
21245 cf_cv_func_openpty=no
21248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21250 LIBS="$cf_save_LIBS"
21253 echo "$as_me:21253: result: $cf_cv_func_openpty" >&5
21254 echo "${ECHO_T}$cf_cv_func_openpty" >&6
21256 if test "$cf_cv_func_openpty" != no ; then
21258 cat >>confdefs.h <<EOF
21259 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
21262 cat >>confdefs.h <<\EOF
21263 #define USE_XTERM_PTY 1
21266 if test "x$cf_cv_lib_util" = xyes ; then
21268 cf_add_libs="-lutil"
21269 # Filter out duplicates - this happens with badly-designed ".pc" files...
21270 for cf_add_1lib in $TEST_LIBS
21272 for cf_add_2lib in $cf_add_libs
21274 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21280 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21282 TEST_LIBS="$cf_add_libs"
21287 if test "$with_hashed_db" != no ; then
21289 cat >>confdefs.h <<\EOF
21290 #define USE_HASHED_DB 1
21293 case $with_hashed_db in
21297 if test -d "$with_hashed_db" ; then
21299 if test -n "$with_hashed_db/include" ; then
21300 for cf_add_incdir in $with_hashed_db/include
21302 while test $cf_add_incdir != /usr/include
21304 if test -d $cf_add_incdir
21307 if test -n "$CFLAGS$CPPFLAGS" ; then
21308 # a loop is needed to ensure we can add subdirs of existing dirs
21309 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
21310 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
21311 cf_have_incdir=yes; break
21316 if test "$cf_have_incdir" = no ; then
21317 if test "$cf_add_incdir" = /usr/local/include ; then
21318 if test "$GCC" = yes
21320 cf_save_CPPFLAGS=$CPPFLAGS
21322 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21323 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
21325 cat >conftest.$ac_ext <<_ACEOF
21326 #line 21326 "configure"
21327 #include "confdefs.h"
21337 rm -f conftest.$ac_objext
21338 if { (eval echo "$as_me:21338: \"$ac_compile\"") >&5
21339 (eval $ac_compile) 2>&5
21341 echo "$as_me:21341: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try='test -s conftest.$ac_objext'
21344 { (eval echo "$as_me:21344: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21347 echo "$as_me:21347: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21351 echo "$as_me: failed program was:" >&5
21352 cat conftest.$ac_ext >&5
21355 rm -f conftest.$ac_objext conftest.$ac_ext
21356 CPPFLAGS=$cf_save_CPPFLAGS
21361 if test "$cf_have_incdir" = no ; then
21362 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
21364 echo "${as_me:-configure}:21364: testing adding $cf_add_incdir to include-path ..." 1>&5
21366 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
21368 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
21369 test "$cf_top_incdir" = "$cf_add_incdir" && break
21370 cf_add_incdir="$cf_top_incdir"
21381 if test -n "$with_hashed_db/lib" ; then
21382 for cf_add_libdir in $with_hashed_db/lib
21384 if test $cf_add_libdir = /usr/lib ; then
21386 elif test -d $cf_add_libdir
21389 if test -n "$LDFLAGS$LIBS" ; then
21390 # a loop is needed to ensure we can add subdirs of existing dirs
21391 for cf_test_libdir in $LDFLAGS $LIBS ; do
21392 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
21393 cf_have_libdir=yes; break
21397 if test "$cf_have_libdir" = no ; then
21398 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
21400 echo "${as_me:-configure}:21400: testing adding $cf_add_libdir to library-path ..." 1>&5
21402 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
21409 case "$with_hashed_db" in
21411 { echo "$as_me:21411: WARNING: no such directory $with_hashed_db" >&5
21412 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
21418 test "x$prefix" != "xNONE" && \
21419 test -d "$prefix" && \
21421 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
21422 test -d $prefix/include && cf_search="$cf_search $prefix/include"
21423 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
21424 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
21425 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
21426 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
21429 for cf_subdir_prefix in \
21438 test "x$cf_subdir_prefix" != "x$prefix" && \
21439 test -d "$cf_subdir_prefix" && \
21440 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
21441 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
21442 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
21443 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
21444 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
21445 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
21446 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"
21451 for cf_item in $cf_search
21454 (*/$with_hashed_db)
21456 if test -n "$cf_item" ; then
21457 for cf_add_incdir in $cf_item
21459 while test $cf_add_incdir != /usr/include
21461 if test -d $cf_add_incdir
21464 if test -n "$CFLAGS$CPPFLAGS" ; then
21465 # a loop is needed to ensure we can add subdirs of existing dirs
21466 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
21467 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
21468 cf_have_incdir=yes; break
21473 if test "$cf_have_incdir" = no ; then
21474 if test "$cf_add_incdir" = /usr/local/include ; then
21475 if test "$GCC" = yes
21477 cf_save_CPPFLAGS=$CPPFLAGS
21479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21480 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
21482 cat >conftest.$ac_ext <<_ACEOF
21483 #line 21483 "configure"
21484 #include "confdefs.h"
21494 rm -f conftest.$ac_objext
21495 if { (eval echo "$as_me:21495: \"$ac_compile\"") >&5
21496 (eval $ac_compile) 2>&5
21498 echo "$as_me:21498: \$? = $ac_status" >&5
21499 (exit $ac_status); } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:21501: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21504 echo "$as_me:21504: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21508 echo "$as_me: failed program was:" >&5
21509 cat conftest.$ac_ext >&5
21512 rm -f conftest.$ac_objext conftest.$ac_ext
21513 CPPFLAGS=$cf_save_CPPFLAGS
21518 if test "$cf_have_incdir" = no ; then
21519 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
21521 echo "${as_me:-configure}:21521: testing adding $cf_add_incdir to include-path ..." 1>&5
21523 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
21525 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
21526 test "$cf_top_incdir" = "$cf_add_incdir" && break
21527 cf_add_incdir="$cf_top_incdir"
21544 test "x$prefix" != "xNONE" && \
21545 test -d "$prefix" && \
21547 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
21548 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
21549 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
21550 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
21551 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
21552 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
21555 for cf_subdir_prefix in \
21564 test "x$cf_subdir_prefix" != "x$prefix" && \
21565 test -d "$cf_subdir_prefix" && \
21566 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
21567 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
21568 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
21569 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
21570 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
21571 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
21572 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"
21577 for cf_item in $cf_search
21580 (*/$with_hashed_db)
21582 if test -n "$cf_item" ; then
21583 for cf_add_libdir in $cf_item
21585 if test $cf_add_libdir = /usr/lib ; then
21587 elif test -d $cf_add_libdir
21590 if test -n "$LDFLAGS$LIBS" ; then
21591 # a loop is needed to ensure we can add subdirs of existing dirs
21592 for cf_test_libdir in $LDFLAGS $LIBS ; do
21593 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
21594 cf_have_libdir=yes; break
21598 if test "$cf_have_libdir" = no ; then
21599 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
21601 echo "${as_me:-configure}:21601: testing adding $cf_add_libdir to library-path ..." 1>&5
21603 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
21618 echo "$as_me:21618: checking for db.h" >&5
21619 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
21620 if test "${ac_cv_header_db_h+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21623 cat >conftest.$ac_ext <<_ACEOF
21624 #line 21624 "configure"
21625 #include "confdefs.h"
21628 if { (eval echo "$as_me:21628: \"$ac_cpp conftest.$ac_ext\"") >&5
21629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21631 egrep -v '^ *\+' conftest.er1 >conftest.err
21633 cat conftest.err >&5
21634 echo "$as_me:21634: \$? = $ac_status" >&5
21635 (exit $ac_status); } >/dev/null; then
21636 if test -s conftest.err; then
21637 ac_cpp_err=$ac_c_preproc_warn_flag
21644 if test -z "$ac_cpp_err"; then
21645 ac_cv_header_db_h=yes
21647 echo "$as_me: failed program was:" >&5
21648 cat conftest.$ac_ext >&5
21649 ac_cv_header_db_h=no
21651 rm -f conftest.err conftest.$ac_ext
21653 echo "$as_me:21653: result: $ac_cv_header_db_h" >&5
21654 echo "${ECHO_T}$ac_cv_header_db_h" >&6
21655 if test $ac_cv_header_db_h = yes; then
21657 echo "$as_me:21657: checking for version of db" >&5
21658 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
21659 if test "${cf_cv_hashed_db_version+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 cf_cv_hashed_db_version=unknown
21665 for cf_db_version in 1 2 3 4 5 6
21668 echo "${as_me:-configure}:21668: testing checking for db version $cf_db_version ..." 1>&5
21670 cat >conftest.$ac_ext <<_ACEOF
21671 #line 21671 "configure"
21672 #include "confdefs.h"
21674 $ac_includes_default
21677 #ifdef DB_VERSION_MAJOR
21678 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
21679 #if $cf_db_version == DB_VERSION_MAJOR
21685 #if $cf_db_version == 1
21686 /* ok: assuming this is DB 1.8.5 */
21700 rm -f conftest.$ac_objext
21701 if { (eval echo "$as_me:21701: \"$ac_compile\"") >&5
21702 (eval $ac_compile) 2>&5
21704 echo "$as_me:21704: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
21706 { ac_try='test -s conftest.$ac_objext'
21707 { (eval echo "$as_me:21707: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21710 echo "$as_me:21710: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21713 cf_cv_hashed_db_version=$cf_db_version
21717 echo "$as_me: failed program was:" >&5
21718 cat conftest.$ac_ext >&5
21720 rm -f conftest.$ac_objext conftest.$ac_ext
21724 echo "$as_me:21724: result: $cf_cv_hashed_db_version" >&5
21725 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
21727 if test "$cf_cv_hashed_db_version" = unknown ; then
21728 { { echo "$as_me:21728: error: Cannot determine version of db" >&5
21729 echo "$as_me: error: Cannot determine version of db" >&2;}
21730 { (exit 1); exit 1; }; }
21733 echo "$as_me:21733: checking for db libraries" >&5
21734 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
21735 if test "${cf_cv_hashed_db_libs+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 cf_cv_hashed_db_libs=unknown
21740 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
21742 cf_save_libs="$LIBS"
21743 if test -n "$cf_db_libs"; then
21745 cf_add_libs="-l$cf_db_libs"
21746 # Filter out duplicates - this happens with badly-designed ".pc" files...
21747 for cf_add_1lib in $LIBS
21749 for cf_add_2lib in $cf_add_libs
21751 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21757 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21759 LIBS="$cf_add_libs"
21763 echo "${as_me:-configure}:21763: testing checking for library "$cf_db_libs" ..." 1>&5
21765 cat >conftest.$ac_ext <<_ACEOF
21766 #line 21766 "configure"
21767 #include "confdefs.h"
21769 $ac_includes_default
21776 char *path = "/tmp/foo";
21777 #ifdef DB_VERSION_MAJOR
21778 #if DB_VERSION_MAJOR >= 4
21780 db_create(&result, NULL, 0);
21781 result->open(result,
21788 #elif DB_VERSION_MAJOR >= 3
21790 db_create(&result, NULL, 0);
21791 result->open(result,
21797 #elif DB_VERSION_MAJOR >= 2
21806 #endif /* DB_VERSION_MAJOR */
21808 DB *result = dbopen(path,
21814 ${cf_cv_main_return:-return}(result != 0)
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (eval echo "$as_me:21821: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>&5
21824 echo "$as_me:21824: \$? = $ac_status" >&5
21825 (exit $ac_status); } &&
21826 { ac_try='test -s conftest$ac_exeext'
21827 { (eval echo "$as_me:21827: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21830 echo "$as_me:21830: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21833 if test -n "$cf_db_libs" ; then
21834 cf_cv_hashed_db_libs=$cf_db_libs
21836 cf_cv_hashed_db_libs=default
21838 LIBS="$cf_save_libs"
21842 echo "$as_me: failed program was:" >&5
21843 cat conftest.$ac_ext >&5
21845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21846 LIBS="$cf_save_libs"
21850 echo "$as_me:21850: result: $cf_cv_hashed_db_libs" >&5
21851 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
21853 if test "$cf_cv_hashed_db_libs" = unknown ; then
21854 { { echo "$as_me:21854: error: Cannot determine library for db" >&5
21855 echo "$as_me: error: Cannot determine library for db" >&2;}
21856 { (exit 1); exit 1; }; }
21857 elif test "$cf_cv_hashed_db_libs" != default ; then
21859 cf_add_libs="-l$cf_cv_hashed_db_libs"
21860 # Filter out duplicates - this happens with badly-designed ".pc" files...
21861 for cf_add_1lib in $LIBS
21863 for cf_add_2lib in $cf_add_libs
21865 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21871 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21873 LIBS="$cf_add_libs"
21880 { { echo "$as_me:21880: error: Cannot find db.h" >&5
21881 echo "$as_me: error: Cannot find db.h" >&2;}
21882 { (exit 1); exit 1; }; }
21888 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
21889 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
21890 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
21893 # Just in case, check if the C compiler has a bool type.
21895 echo "$as_me:21895: checking if we should include stdbool.h" >&5
21896 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
21898 if test "${cf_cv_header_stdbool_h+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 cat >conftest.$ac_ext <<_ACEOF
21903 #line 21903 "configure"
21904 #include "confdefs.h"
21914 rm -f conftest.$ac_objext
21915 if { (eval echo "$as_me:21915: \"$ac_compile\"") >&5
21916 (eval $ac_compile) 2>&5
21918 echo "$as_me:21918: \$? = $ac_status" >&5
21919 (exit $ac_status); } &&
21920 { ac_try='test -s conftest.$ac_objext'
21921 { (eval echo "$as_me:21921: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21924 echo "$as_me:21924: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21926 cf_cv_header_stdbool_h=0
21928 echo "$as_me: failed program was:" >&5
21929 cat conftest.$ac_ext >&5
21930 cat >conftest.$ac_ext <<_ACEOF
21931 #line 21931 "configure"
21932 #include "confdefs.h"
21935 #include <stdbool.h>
21946 rm -f conftest.$ac_objext
21947 if { (eval echo "$as_me:21947: \"$ac_compile\"") >&5
21948 (eval $ac_compile) 2>&5
21950 echo "$as_me:21950: \$? = $ac_status" >&5
21951 (exit $ac_status); } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:21953: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:21956: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 cf_cv_header_stdbool_h=1
21960 echo "$as_me: failed program was:" >&5
21961 cat conftest.$ac_ext >&5
21962 cf_cv_header_stdbool_h=0
21964 rm -f conftest.$ac_objext conftest.$ac_ext
21966 rm -f conftest.$ac_objext conftest.$ac_ext
21969 if test "$cf_cv_header_stdbool_h" = 1
21970 then echo "$as_me:21970: result: yes" >&5
21971 echo "${ECHO_T}yes" >&6
21972 else echo "$as_me:21972: result: no" >&5
21973 echo "${ECHO_T}no" >&6
21976 echo "$as_me:21976: checking for builtin bool type" >&5
21977 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
21979 if test "${cf_cv_cc_bool_type+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 cat >conftest.$ac_ext <<_ACEOF
21984 #line 21984 "configure"
21985 #include "confdefs.h"
21988 #include <sys/types.h>
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:21999: \"$ac_compile\"") >&5
22000 (eval $ac_compile) 2>&5
22002 echo "$as_me:22002: \$? = $ac_status" >&5
22003 (exit $ac_status); } &&
22004 { ac_try='test -s conftest.$ac_objext'
22005 { (eval echo "$as_me:22005: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22008 echo "$as_me:22008: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 cf_cv_cc_bool_type=1
22012 echo "$as_me: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22014 cf_cv_cc_bool_type=0
22016 rm -f conftest.$ac_objext conftest.$ac_ext
22020 if test "$cf_cv_cc_bool_type" = 1
22021 then echo "$as_me:22021: result: yes" >&5
22022 echo "${ECHO_T}yes" >&6
22023 else echo "$as_me:22023: result: no" >&5
22024 echo "${ECHO_T}no" >&6
22027 # Check for C++ compiler characteristics (and ensure that it's there!)
22028 if test -n "$CXX" ; then
22030 ac_cpp='$CXXCPP $CPPFLAGS'
22031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22034 ac_main_return=return
22036 if test -n "$GXX" ; then
22039 LIBS="$LIBS $CXXLIBS"
22040 echo "$as_me:22040: checking if we already have C++ library" >&5
22041 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
22042 cat >conftest.$ac_ext <<_ACEOF
22043 #line 22043 "configure"
22044 #include "confdefs.h"
22046 #include <iostream>
22051 std::cout << "Hello World!" << std::endl;
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (eval echo "$as_me:22057: \"$ac_link\"") >&5
22058 (eval $ac_link) 2>&5
22060 echo "$as_me:22060: \$? = $ac_status" >&5
22061 (exit $ac_status); } &&
22062 { ac_try='test -s conftest$ac_exeext'
22063 { (eval echo "$as_me:22063: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 echo "$as_me:22066: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 cf_have_libstdcpp=yes
22070 echo "$as_me: failed program was:" >&5
22071 cat conftest.$ac_ext >&5
22072 cf_have_libstdcpp=no
22074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22075 echo "$as_me:22075: result: $cf_have_libstdcpp" >&5
22076 echo "${ECHO_T}$cf_have_libstdcpp" >&6
22079 if test $cf_have_libstdcpp != yes
22081 case $cf_cv_system_name in
22083 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
22084 cf_stdcpp_libname=stdcpp
22086 cf_stdcpp_libname=stdc++
22090 cf_stdcpp_libname=stdc++
22094 echo "$as_me:22094: checking for library $cf_stdcpp_libname" >&5
22095 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
22096 if test "${cf_cv_libstdcpp+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 LIBS="$LIBS $CXXLIBS"
22103 cf_add_libs="-l$cf_stdcpp_libname"
22104 # Filter out duplicates - this happens with badly-designed ".pc" files...
22105 for cf_add_1lib in $LIBS
22107 for cf_add_2lib in $cf_add_libs
22109 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22115 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22117 LIBS="$cf_add_libs"
22119 cat >conftest.$ac_ext <<_ACEOF
22120 #line 22120 "configure"
22121 #include "confdefs.h"
22123 #include <iostream>
22128 std::cout << "Hello World!" << std::endl;
22133 rm -f conftest.$ac_objext conftest$ac_exeext
22134 if { (eval echo "$as_me:22134: \"$ac_link\"") >&5
22135 (eval $ac_link) 2>&5
22137 echo "$as_me:22137: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -s conftest$ac_exeext'
22140 { (eval echo "$as_me:22140: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:22143: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 cf_cv_libstdcpp=yes
22147 echo "$as_me: failed program was:" >&5
22148 cat conftest.$ac_ext >&5
22151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22155 echo "$as_me:22155: result: $cf_cv_libstdcpp" >&5
22156 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
22157 test "$cf_cv_libstdcpp" = yes && {
22158 cf_add_libs="-l$cf_stdcpp_libname"
22159 # Filter out duplicates - this happens with badly-designed ".pc" files...
22160 for cf_add_1lib in $CXXLIBS
22162 for cf_add_2lib in $cf_add_libs
22164 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22170 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22172 CXXLIBS="$cf_add_libs"
22177 echo "$as_me:22177: checking whether $CXX understands -c and -o together" >&5
22178 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
22179 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 cat > conftest.$ac_ext <<CF_EOF
22186 ${cf_cv_main_return:-return}(0);
22189 # We do the test twice because some compilers refuse to overwrite an
22190 # existing .o file with -o, though they will create one.
22191 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22192 if { (eval echo "$as_me:22192: \"$ac_try\"") >&5
22193 (eval $ac_try) 2>&5
22195 echo "$as_me:22195: \$? = $ac_status" >&5
22196 (exit $ac_status); } &&
22197 test -f conftest2.$ac_objext && { (eval echo "$as_me:22197: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:22200: \$? = $ac_status" >&5
22201 (exit $ac_status); };
22203 eval cf_cv_prog_CXX_c_o=yes
22205 eval cf_cv_prog_CXX_c_o=no
22210 if test $cf_cv_prog_CXX_c_o = yes; then
22211 echo "$as_me:22211: result: yes" >&5
22212 echo "${ECHO_T}yes" >&6
22214 echo "$as_me:22214: result: no" >&5
22215 echo "${ECHO_T}no" >&6
22218 case $GXX_VERSION in
22224 cf_cxx_library=unknown
22225 case $cf_cv_system_name in
22233 if test "$GXX" = yes; then
22234 echo "$as_me:22234: checking for lib$cf_gpp_libname" >&5
22235 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
22238 cf_add_libs="-l$cf_gpp_libname"
22239 # Filter out duplicates - this happens with badly-designed ".pc" files...
22240 for cf_add_1lib in $LIBS
22242 for cf_add_2lib in $cf_add_libs
22244 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22250 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22252 LIBS="$cf_add_libs"
22254 cat >conftest.$ac_ext <<_ACEOF
22255 #line 22255 "configure"
22256 #include "confdefs.h"
22258 #include <$cf_gpp_libname/builtin.h>
22263 two_arg_error_handler_t foo2 = lib_error_handler
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:22269: \"$ac_link\"") >&5
22270 (eval $ac_link) 2>&5
22272 echo "$as_me:22272: \$? = $ac_status" >&5
22273 (exit $ac_status); } &&
22274 { ac_try='test -s conftest$ac_exeext'
22275 { (eval echo "$as_me:22275: \"$ac_try\"") >&5
22276 (eval $ac_try) 2>&5
22278 echo "$as_me:22278: \$? = $ac_status" >&5
22279 (exit $ac_status); }; }; then
22282 cf_add_libs="-l$cf_gpp_libname"
22283 # Filter out duplicates - this happens with badly-designed ".pc" files...
22284 for cf_add_1lib in $CXXLIBS
22286 for cf_add_2lib in $cf_add_libs
22288 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22294 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22296 CXXLIBS="$cf_add_libs"
22298 if test "$cf_gpp_libname" = cpp ; then
22300 cat >>confdefs.h <<\EOF
22301 #define HAVE_GPP_BUILTIN_H 1
22306 cat >>confdefs.h <<\EOF
22307 #define HAVE_GXX_BUILTIN_H 1
22312 echo "$as_me: failed program was:" >&5
22313 cat conftest.$ac_ext >&5
22314 cat >conftest.$ac_ext <<_ACEOF
22315 #line 22315 "configure"
22316 #include "confdefs.h"
22318 #include <builtin.h>
22323 two_arg_error_handler_t foo2 = lib_error_handler
22328 rm -f conftest.$ac_objext conftest$ac_exeext
22329 if { (eval echo "$as_me:22329: \"$ac_link\"") >&5
22330 (eval $ac_link) 2>&5
22332 echo "$as_me:22332: \$? = $ac_status" >&5
22333 (exit $ac_status); } &&
22334 { ac_try='test -s conftest$ac_exeext'
22335 { (eval echo "$as_me:22335: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 echo "$as_me:22338: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22342 cf_add_libs="-l$cf_gpp_libname"
22343 # Filter out duplicates - this happens with badly-designed ".pc" files...
22344 for cf_add_1lib in $CXXLIBS
22346 for cf_add_2lib in $cf_add_libs
22348 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22354 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22356 CXXLIBS="$cf_add_libs"
22358 cat >>confdefs.h <<\EOF
22359 #define HAVE_BUILTIN_H 1
22363 echo "$as_me: failed program was:" >&5
22364 cat conftest.$ac_ext >&5
22367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22371 echo "$as_me:22371: result: $cf_cxx_library" >&5
22372 echo "${ECHO_T}$cf_cxx_library" >&6
22382 ac_cpp='$CXXCPP $CPPFLAGS'
22383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22386 ac_main_return=return
22387 echo "$as_me:22387: checking how to run the C++ preprocessor" >&5
22388 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
22389 if test -z "$CXXCPP"; then
22390 if test "${ac_cv_prog_CXXCPP+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 # Double quotes because CXXCPP needs to be expanded
22394 for CXXCPP in "$CXX -E" "/lib/cpp"
22396 ac_preproc_ok=false
22397 for ac_cxx_preproc_warn_flag in '' yes
22399 # Use a header file that comes with gcc, so configuring glibc
22400 # with a fresh cross-compiler works.
22401 # On the NeXT, cc -E runs the code through the compiler's parser,
22402 # not just through cpp. "Syntax error" is here to catch this case.
22403 cat >conftest.$ac_ext <<_ACEOF
22404 #line 22404 "configure"
22405 #include "confdefs.h"
22406 #include <assert.h>
22409 if { (eval echo "$as_me:22409: \"$ac_cpp conftest.$ac_ext\"") >&5
22410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22412 egrep -v '^ *\+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 echo "$as_me:22415: \$? = $ac_status" >&5
22416 (exit $ac_status); } >/dev/null; then
22417 if test -s conftest.err; then
22418 ac_cpp_err=$ac_cxx_preproc_warn_flag
22425 if test -z "$ac_cpp_err"; then
22428 echo "$as_me: failed program was:" >&5
22429 cat conftest.$ac_ext >&5
22430 # Broken: fails on valid input.
22433 rm -f conftest.err conftest.$ac_ext
22435 # OK, works on sane cases. Now check whether non-existent headers
22436 # can be detected and how.
22437 cat >conftest.$ac_ext <<_ACEOF
22438 #line 22438 "configure"
22439 #include "confdefs.h"
22440 #include <ac_nonexistent.h>
22442 if { (eval echo "$as_me:22442: \"$ac_cpp conftest.$ac_ext\"") >&5
22443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22445 egrep -v '^ *\+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 echo "$as_me:22448: \$? = $ac_status" >&5
22449 (exit $ac_status); } >/dev/null; then
22450 if test -s conftest.err; then
22451 ac_cpp_err=$ac_cxx_preproc_warn_flag
22458 if test -z "$ac_cpp_err"; then
22459 # Broken: success on invalid input.
22462 echo "$as_me: failed program was:" >&5
22463 cat conftest.$ac_ext >&5
22464 # Passes both tests.
22468 rm -f conftest.err conftest.$ac_ext
22471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22472 rm -f conftest.err conftest.$ac_ext
22473 if $ac_preproc_ok; then
22478 ac_cv_prog_CXXCPP=$CXXCPP
22481 CXXCPP=$ac_cv_prog_CXXCPP
22483 ac_cv_prog_CXXCPP=$CXXCPP
22485 echo "$as_me:22485: result: $CXXCPP" >&5
22486 echo "${ECHO_T}$CXXCPP" >&6
22487 ac_preproc_ok=false
22488 for ac_cxx_preproc_warn_flag in '' yes
22490 # Use a header file that comes with gcc, so configuring glibc
22491 # with a fresh cross-compiler works.
22492 # On the NeXT, cc -E runs the code through the compiler's parser,
22493 # not just through cpp. "Syntax error" is here to catch this case.
22494 cat >conftest.$ac_ext <<_ACEOF
22495 #line 22495 "configure"
22496 #include "confdefs.h"
22497 #include <assert.h>
22500 if { (eval echo "$as_me:22500: \"$ac_cpp conftest.$ac_ext\"") >&5
22501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22503 egrep -v '^ *\+' conftest.er1 >conftest.err
22505 cat conftest.err >&5
22506 echo "$as_me:22506: \$? = $ac_status" >&5
22507 (exit $ac_status); } >/dev/null; then
22508 if test -s conftest.err; then
22509 ac_cpp_err=$ac_cxx_preproc_warn_flag
22516 if test -z "$ac_cpp_err"; then
22519 echo "$as_me: failed program was:" >&5
22520 cat conftest.$ac_ext >&5
22521 # Broken: fails on valid input.
22524 rm -f conftest.err conftest.$ac_ext
22526 # OK, works on sane cases. Now check whether non-existent headers
22527 # can be detected and how.
22528 cat >conftest.$ac_ext <<_ACEOF
22529 #line 22529 "configure"
22530 #include "confdefs.h"
22531 #include <ac_nonexistent.h>
22533 if { (eval echo "$as_me:22533: \"$ac_cpp conftest.$ac_ext\"") >&5
22534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22536 egrep -v '^ *\+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 echo "$as_me:22539: \$? = $ac_status" >&5
22540 (exit $ac_status); } >/dev/null; then
22541 if test -s conftest.err; then
22542 ac_cpp_err=$ac_cxx_preproc_warn_flag
22549 if test -z "$ac_cpp_err"; then
22550 # Broken: success on invalid input.
22553 echo "$as_me: failed program was:" >&5
22554 cat conftest.$ac_ext >&5
22555 # Passes both tests.
22559 rm -f conftest.err conftest.$ac_ext
22562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22563 rm -f conftest.err conftest.$ac_ext
22564 if $ac_preproc_ok; then
22567 { { echo "$as_me:22567: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
22568 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
22569 { (exit 1); exit 1; }; }
22573 ac_cpp='$CXXCPP $CPPFLAGS'
22574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22577 ac_main_return=return
22579 for ac_header in typeinfo
22581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22582 echo "$as_me:22582: checking for $ac_header" >&5
22583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.$ac_ext <<_ACEOF
22588 #line 22588 "configure"
22589 #include "confdefs.h"
22590 #include <$ac_header>
22592 if { (eval echo "$as_me:22592: \"$ac_cpp conftest.$ac_ext\"") >&5
22593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22595 egrep -v '^ *\+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:22598: \$? = $ac_status" >&5
22599 (exit $ac_status); } >/dev/null; then
22600 if test -s conftest.err; then
22601 ac_cpp_err=$ac_cxx_preproc_warn_flag
22608 if test -z "$ac_cpp_err"; then
22609 eval "$as_ac_Header=yes"
22611 echo "$as_me: failed program was:" >&5
22612 cat conftest.$ac_ext >&5
22613 eval "$as_ac_Header=no"
22615 rm -f conftest.err conftest.$ac_ext
22617 echo "$as_me:22617: result: `eval echo '${'$as_ac_Header'}'`" >&5
22618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22620 cat >>confdefs.h <<EOF
22621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22627 for ac_header in iostream
22629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22630 echo "$as_me:22630: checking for $ac_header" >&5
22631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22633 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 cat >conftest.$ac_ext <<_ACEOF
22636 #line 22636 "configure"
22637 #include "confdefs.h"
22638 #include <$ac_header>
22640 if { (eval echo "$as_me:22640: \"$ac_cpp conftest.$ac_ext\"") >&5
22641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22643 egrep -v '^ *\+' conftest.er1 >conftest.err
22645 cat conftest.err >&5
22646 echo "$as_me:22646: \$? = $ac_status" >&5
22647 (exit $ac_status); } >/dev/null; then
22648 if test -s conftest.err; then
22649 ac_cpp_err=$ac_cxx_preproc_warn_flag
22656 if test -z "$ac_cpp_err"; then
22657 eval "$as_ac_Header=yes"
22659 echo "$as_me: failed program was:" >&5
22660 cat conftest.$ac_ext >&5
22661 eval "$as_ac_Header=no"
22663 rm -f conftest.err conftest.$ac_ext
22665 echo "$as_me:22665: result: `eval echo '${'$as_ac_Header'}'`" >&5
22666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22668 cat >>confdefs.h <<EOF
22669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22675 if test x"$ac_cv_header_iostream" = xyes ; then
22676 echo "$as_me:22676: checking if iostream uses std-namespace" >&5
22677 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
22678 cat >conftest.$ac_ext <<_ACEOF
22679 #line 22679 "configure"
22680 #include "confdefs.h"
22682 #include <iostream>
22689 cerr << "testing" << endl;
22695 rm -f conftest.$ac_objext
22696 if { (eval echo "$as_me:22696: \"$ac_compile\"") >&5
22697 (eval $ac_compile) 2>&5
22699 echo "$as_me:22699: \$? = $ac_status" >&5
22700 (exit $ac_status); } &&
22701 { ac_try='test -s conftest.$ac_objext'
22702 { (eval echo "$as_me:22702: \"$ac_try\"") >&5
22703 (eval $ac_try) 2>&5
22705 echo "$as_me:22705: \$? = $ac_status" >&5
22706 (exit $ac_status); }; }; then
22707 cf_iostream_namespace=yes
22709 echo "$as_me: failed program was:" >&5
22710 cat conftest.$ac_ext >&5
22711 cf_iostream_namespace=no
22713 rm -f conftest.$ac_objext conftest.$ac_ext
22714 echo "$as_me:22714: result: $cf_iostream_namespace" >&5
22715 echo "${ECHO_T}$cf_iostream_namespace" >&6
22716 if test "$cf_iostream_namespace" = yes ; then
22718 cat >>confdefs.h <<\EOF
22719 #define IOSTREAM_NAMESPACE 1
22725 echo "$as_me:22725: checking if we should include stdbool.h" >&5
22726 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
22728 if test "${cf_cv_header_stdbool_h+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 cat >conftest.$ac_ext <<_ACEOF
22733 #line 22733 "configure"
22734 #include "confdefs.h"
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:22745: \"$ac_compile\"") >&5
22746 (eval $ac_compile) 2>&5
22748 echo "$as_me:22748: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -s conftest.$ac_objext'
22751 { (eval echo "$as_me:22751: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:22754: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 cf_cv_header_stdbool_h=0
22758 echo "$as_me: failed program was:" >&5
22759 cat conftest.$ac_ext >&5
22760 cat >conftest.$ac_ext <<_ACEOF
22761 #line 22761 "configure"
22762 #include "confdefs.h"
22765 #include <stdbool.h>
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:22777: \"$ac_compile\"") >&5
22778 (eval $ac_compile) 2>&5
22780 echo "$as_me:22780: \$? = $ac_status" >&5
22781 (exit $ac_status); } &&
22782 { ac_try='test -s conftest.$ac_objext'
22783 { (eval echo "$as_me:22783: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:22786: \$? = $ac_status" >&5
22787 (exit $ac_status); }; }; then
22788 cf_cv_header_stdbool_h=1
22790 echo "$as_me: failed program was:" >&5
22791 cat conftest.$ac_ext >&5
22792 cf_cv_header_stdbool_h=0
22794 rm -f conftest.$ac_objext conftest.$ac_ext
22796 rm -f conftest.$ac_objext conftest.$ac_ext
22799 if test "$cf_cv_header_stdbool_h" = 1
22800 then echo "$as_me:22800: result: yes" >&5
22801 echo "${ECHO_T}yes" >&6
22802 else echo "$as_me:22802: result: no" >&5
22803 echo "${ECHO_T}no" >&6
22806 echo "$as_me:22806: checking for builtin bool type" >&5
22807 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
22809 if test "${cf_cv_builtin_bool+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 cat >conftest.$ac_ext <<_ACEOF
22814 #line 22814 "configure"
22815 #include "confdefs.h"
22818 #include <sys/types.h>
22828 rm -f conftest.$ac_objext
22829 if { (eval echo "$as_me:22829: \"$ac_compile\"") >&5
22830 (eval $ac_compile) 2>&5
22832 echo "$as_me:22832: \$? = $ac_status" >&5
22833 (exit $ac_status); } &&
22834 { ac_try='test -s conftest.$ac_objext'
22835 { (eval echo "$as_me:22835: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:22838: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 cf_cv_builtin_bool=1
22842 echo "$as_me: failed program was:" >&5
22843 cat conftest.$ac_ext >&5
22844 cf_cv_builtin_bool=0
22846 rm -f conftest.$ac_objext conftest.$ac_ext
22850 if test "$cf_cv_builtin_bool" = 1
22851 then echo "$as_me:22851: result: yes" >&5
22852 echo "${ECHO_T}yes" >&6
22853 else echo "$as_me:22853: result: no" >&5
22854 echo "${ECHO_T}no" >&6
22857 echo "$as_me:22857: checking for size of bool" >&5
22858 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
22859 if test "${cf_cv_type_of_bool+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 if test "$cross_compiling" = yes; then
22865 cf_cv_type_of_bool=unknown
22867 cat >conftest.$ac_ext <<_ACEOF
22868 #line 22868 "configure"
22869 #include "confdefs.h"
22871 #include <stdlib.h>
22874 #if defined(__cplusplus)
22876 #ifdef HAVE_GXX_BUILTIN_H
22877 #include <g++/builtin.h>
22878 #elif HAVE_GPP_BUILTIN_H
22879 #include <gpp/builtin.h>
22880 #elif HAVE_BUILTIN_H
22881 #include <builtin.h>
22886 #if $cf_cv_header_stdbool_h
22887 #include <stdbool.h>
22894 FILE *fp = fopen("cf_test.out", "w");
22897 if ((bool)(-x) >= 0)
22898 fputs("unsigned ", fp);
22899 if (sizeof(x) == sizeof(int)) fputs("int", fp);
22900 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
22901 else if (sizeof(x) == sizeof(short))fputs("short",fp);
22902 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
22905 ${cf_cv_main_return:-return}(0);
22909 rm -f conftest$ac_exeext
22910 if { (eval echo "$as_me:22910: \"$ac_link\"") >&5
22911 (eval $ac_link) 2>&5
22913 echo "$as_me:22913: \$? = $ac_status" >&5
22914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22915 { (eval echo "$as_me:22915: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22918 echo "$as_me:22918: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 cf_cv_type_of_bool=`cat cf_test.out`
22921 if test -z "$cf_cv_type_of_bool"; then
22922 cf_cv_type_of_bool=unknown
22925 echo "$as_me: program exited with status $ac_status" >&5
22926 echo "$as_me: failed program was:" >&5
22927 cat conftest.$ac_ext >&5
22928 cf_cv_type_of_bool=unknown
22930 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22936 echo "$as_me:22936: result: $cf_cv_type_of_bool" >&5
22937 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
22938 if test "$cf_cv_type_of_bool" = unknown ; then
22939 case .$NCURSES_BOOL in
22940 (.auto|.) NCURSES_BOOL=unsigned;;
22942 { echo "$as_me:22942: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
22943 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
22944 cf_cv_type_of_bool=$NCURSES_BOOL
22947 echo "$as_me:22947: checking for special defines needed for etip.h" >&5
22948 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
22949 cf_save_CXXFLAGS="$CXXFLAGS"
22952 # etip.h includes ncurses.h which includes ncurses_dll.h
22953 # But ncurses_dll.h is generated - fix here.
22954 test -d include || mkdir include
22955 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
22957 for cf_math in "" MATH_H
22959 for cf_excp in "" MATH_EXCEPTION
22961 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
22962 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
22963 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
22964 cat >conftest.$ac_ext <<_ACEOF
22965 #line 22965 "configure"
22966 #include "confdefs.h"
22968 #include <etip.h.in>
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:22979: \"$ac_compile\"") >&5
22980 (eval $ac_compile) 2>&5
22982 echo "$as_me:22982: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
22984 { ac_try='test -s conftest.$ac_objext'
22985 { (eval echo "$as_me:22985: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22988 echo "$as_me:22988: \$? = $ac_status" >&5
22989 (exit $ac_status); }; }; then
22991 test -n "$cf_math" && cat >>confdefs.h <<EOF
22992 #define ETIP_NEEDS_${cf_math} 1
22995 test -n "$cf_excp" && cat >>confdefs.h <<EOF
22996 #define ETIP_NEEDS_${cf_excp} 1
22999 cf_result="$cf_math $cf_excp"
23003 echo "$as_me: failed program was:" >&5
23004 cat conftest.$ac_ext >&5
23006 rm -f conftest.$ac_objext conftest.$ac_ext
23009 echo "$as_me:23009: result: $cf_result" >&5
23010 echo "${ECHO_T}$cf_result" >&6
23011 CXXFLAGS="$cf_save_CXXFLAGS"
23013 if test -n "$CXX"; then
23014 echo "$as_me:23014: checking if $CXX accepts parameter initialization" >&5
23015 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
23016 if test "${cf_cv_cpp_param_init+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 ac_cpp='$CXXCPP $CPPFLAGS'
23022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23025 ac_main_return=return
23027 if test "$cross_compiling" = yes; then
23028 cf_cv_cpp_param_init=unknown
23030 cat >conftest.$ac_ext <<_ACEOF
23031 #line 23031 "configure"
23032 #include "confdefs.h"
23042 TEST::TEST(int x = 1) // some compilers do not like second initializer
23049 rm -f conftest$ac_exeext
23050 if { (eval echo "$as_me:23050: \"$ac_link\"") >&5
23051 (eval $ac_link) 2>&5
23053 echo "$as_me:23053: \$? = $ac_status" >&5
23054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23055 { (eval echo "$as_me:23055: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23058 echo "$as_me:23058: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 cf_cv_cpp_param_init=yes
23062 echo "$as_me: program exited with status $ac_status" >&5
23063 echo "$as_me: failed program was:" >&5
23064 cat conftest.$ac_ext >&5
23065 cf_cv_cpp_param_init=no
23067 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23070 ac_cpp='$CXXCPP $CPPFLAGS'
23071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23074 ac_main_return=return
23077 echo "$as_me:23077: result: $cf_cv_cpp_param_init" >&5
23078 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
23080 test "$cf_cv_cpp_param_init" = yes &&
23081 cat >>confdefs.h <<\EOF
23082 #define CPP_HAS_PARAM_INIT 1
23085 if test -n "$CXX"; then
23087 echo "$as_me:23087: checking if $CXX accepts static_cast" >&5
23088 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
23089 if test "${cf_cv_cpp_static_cast+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23094 ac_cpp='$CXXCPP $CPPFLAGS'
23095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23098 ac_main_return=return
23100 cat >conftest.$ac_ext <<_ACEOF
23101 #line 23101 "configure"
23102 #include "confdefs.h"
23107 NCursesPanel(int nlines,
23117 template<class T> class NCursesUserPanel : public NCursesPanel
23120 NCursesUserPanel (int nlines,
23124 const T* p_UserData = static_cast<T*>(0))
23125 : NCursesPanel (nlines, ncols, begin_y, begin_x)
23128 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
23132 virtual ~NCursesUserPanel() {};
23139 const char* p_UserData = static_cast<char*>(0)
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:23145: \"$ac_compile\"") >&5
23146 (eval $ac_compile) 2>&5
23148 echo "$as_me:23148: \$? = $ac_status" >&5
23149 (exit $ac_status); } &&
23150 { ac_try='test -s conftest.$ac_objext'
23151 { (eval echo "$as_me:23151: \"$ac_try\"") >&5
23152 (eval $ac_try) 2>&5
23154 echo "$as_me:23154: \$? = $ac_status" >&5
23155 (exit $ac_status); }; }; then
23156 cf_cv_cpp_static_cast=yes
23158 echo "$as_me: failed program was:" >&5
23159 cat conftest.$ac_ext >&5
23160 cf_cv_cpp_static_cast=no
23162 rm -f conftest.$ac_objext conftest.$ac_ext
23165 ac_cpp='$CXXCPP $CPPFLAGS'
23166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23169 ac_main_return=return
23172 echo "$as_me:23172: result: $cf_cv_cpp_static_cast" >&5
23173 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
23177 test "$cf_cv_cpp_static_cast" = yes &&
23178 cat >>confdefs.h <<\EOF
23179 #define CPP_HAS_STATIC_CAST 1
23183 CXX_ARFLAGS='$(ARFLAGS)'
23184 case $cf_cv_system_name in
23186 if test "$GXX" != yes ; then
23188 CXX_ARFLAGS='-ar -o'
23192 CXXLDFLAGS="-u main"
23195 if test "$GXX" != yes ; then
23197 CXX_ARFLAGS='-xar -o'
23204 cf_cv_builtin_bool=1
23206 # Just because we are not configuring against C++ right now does not
23207 # mean that a user will not want to use C++. Some distributors disable
23208 # the C++ portion of this configuration as a shortcut (or just to avoid
23209 # compiling the demo in the c++ directory). So we need a reasonable
23210 # default for the 'bool' type.
23212 # Caveat: since the storage of the bool type is not standardized, it
23215 if test "$NCURSES_BOOL" != auto ; then
23216 cf_cv_type_of_bool=$NCURSES_BOOL
23217 cf_cv_header_stdbool_h=0
23219 if test "$cf_cv_header_stdbool_h" = 1 ; then
23221 echo "$as_me:23221: checking for size of bool" >&5
23222 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
23223 if test "${cf_cv_type_of_bool+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23228 if test "$cross_compiling" = yes; then
23229 cf_cv_type_of_bool=unknown
23231 cat >conftest.$ac_ext <<_ACEOF
23232 #line 23232 "configure"
23233 #include "confdefs.h"
23235 #include <stdlib.h>
23238 #if defined(__cplusplus)
23240 #ifdef HAVE_GXX_BUILTIN_H
23241 #include <g++/builtin.h>
23242 #elif HAVE_GPP_BUILTIN_H
23243 #include <gpp/builtin.h>
23244 #elif HAVE_BUILTIN_H
23245 #include <builtin.h>
23250 #if $cf_cv_header_stdbool_h
23251 #include <stdbool.h>
23258 FILE *fp = fopen("cf_test.out", "w");
23261 if ((bool)(-x) >= 0)
23262 fputs("unsigned ", fp);
23263 if (sizeof(x) == sizeof(int)) fputs("int", fp);
23264 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
23265 else if (sizeof(x) == sizeof(short))fputs("short",fp);
23266 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
23269 ${cf_cv_main_return:-return}(0);
23273 rm -f conftest$ac_exeext
23274 if { (eval echo "$as_me:23274: \"$ac_link\"") >&5
23275 (eval $ac_link) 2>&5
23277 echo "$as_me:23277: \$? = $ac_status" >&5
23278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23279 { (eval echo "$as_me:23279: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23282 echo "$as_me:23282: \$? = $ac_status" >&5
23283 (exit $ac_status); }; }; then
23284 cf_cv_type_of_bool=`cat cf_test.out`
23285 if test -z "$cf_cv_type_of_bool"; then
23286 cf_cv_type_of_bool=unknown
23289 echo "$as_me: program exited with status $ac_status" >&5
23290 echo "$as_me: failed program was:" >&5
23291 cat conftest.$ac_ext >&5
23292 cf_cv_type_of_bool=unknown
23294 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23300 echo "$as_me:23300: result: $cf_cv_type_of_bool" >&5
23301 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
23302 if test "$cf_cv_type_of_bool" = unknown ; then
23303 case .$NCURSES_BOOL in
23304 (.auto|.) NCURSES_BOOL=unsigned;;
23306 { echo "$as_me:23306: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
23307 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
23308 cf_cv_type_of_bool=$NCURSES_BOOL
23312 echo "$as_me:23312: checking for fallback type of bool" >&5
23313 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
23314 case "$host_cpu" in
23315 (i?86) cf_cv_type_of_bool=char ;;
23316 (*) cf_cv_type_of_bool=int ;;
23318 echo "$as_me:23318: result: $cf_cv_type_of_bool" >&5
23319 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
23324 # If the C compiler did not declare bool, and we did not determine that the C++
23325 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
23326 # ncurses library use the same type as C++ bool. Note that this allows one to
23327 # specify the type of bool in a configure-script option and postpone
23328 # integration with the C++ compiler provided that the types are compatible.
23330 if test $cf_cv_cc_bool_type = 1
23332 # oops: C has a bool. Unlikely, but C++ could differ.
23334 elif test $cf_cv_builtin_bool = 0
23339 # this is the normal case
23340 USE_CXX_BOOL='defined(__cplusplus)'
23343 if test -f "${srcdir}/Ada95/Makefile.in" ; then
23345 if test "$cf_with_ada" != "no" ; then
23346 if test "$with_libtool" != "no"; then
23347 { echo "$as_me:23347: WARNING: libtool does not support Ada - disabling feature" >&5
23348 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
23353 if test "$cf_with_ada" != "no" ; then
23355 cf_ada_make=gnatmake
23357 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
23358 set dummy $cf_ada_make; ac_word=$2
23359 echo "$as_me:23359: checking for $ac_word" >&5
23360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23361 if test "${ac_cv_prog_gnatmake_exists+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 if test -n "$gnatmake_exists"; then
23365 ac_cv_prog_gnatmake_exists="$gnatmake_exists" # Let the user override the test.
23367 ac_save_IFS=$IFS; IFS=$ac_path_separator
23369 for ac_dir in $ac_dummy; do
23371 test -z "$ac_dir" && ac_dir=.
23372 $as_executable_p "$ac_dir/$ac_word" || continue
23373 ac_cv_prog_gnatmake_exists="yes"
23374 echo "$as_me:23374: found $ac_dir/$ac_word" >&5
23378 test -z "$ac_cv_prog_gnatmake_exists" && ac_cv_prog_gnatmake_exists="no"
23381 gnatmake_exists=$ac_cv_prog_gnatmake_exists
23382 if test -n "$gnatmake_exists"; then
23383 echo "$as_me:23383: result: $gnatmake_exists" >&5
23384 echo "${ECHO_T}$gnatmake_exists" >&6
23386 echo "$as_me:23386: result: no" >&5
23387 echo "${ECHO_T}no" >&6
23390 if test "$ac_cv_prog_gnatmake_exists" = no; then
23392 cf_cv_prog_gnat_correct=no
23394 # Extract the first word of "gprconfig", so it can be a program name with args.
23395 set dummy gprconfig; ac_word=$2
23396 echo "$as_me:23396: checking for $ac_word" >&5
23397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23398 if test "${ac_cv_prog_gprconfig_exists+set}" = set; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 if test -n "$gprconfig_exists"; then
23402 ac_cv_prog_gprconfig_exists="$gprconfig_exists" # Let the user override the test.
23404 ac_save_IFS=$IFS; IFS=$ac_path_separator
23406 for ac_dir in $ac_dummy; do
23408 test -z "$ac_dir" && ac_dir=.
23409 $as_executable_p "$ac_dir/$ac_word" || continue
23410 ac_cv_prog_gprconfig_exists="yes"
23411 echo "$as_me:23411: found $ac_dir/$ac_word" >&5
23415 test -z "$ac_cv_prog_gprconfig_exists" && ac_cv_prog_gprconfig_exists="no"
23418 gprconfig_exists=$ac_cv_prog_gprconfig_exists
23419 if test -n "$gprconfig_exists"; then
23420 echo "$as_me:23420: result: $gprconfig_exists" >&5
23421 echo "${ECHO_T}$gprconfig_exists" >&6
23423 echo "$as_me:23423: result: no" >&5
23424 echo "${ECHO_T}no" >&6
23427 if test "$ac_cv_prog_gprconfig_exists" = yes
23429 rm -rf conftest* *~conftest*
23430 if mkdir conftest.src
23434 for cf_gprconfig in Ada C
23436 echo "$as_me:23436: checking for gprconfig name for $cf_gprconfig" >&5
23437 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
23438 if test $cf_gprconfig = C
23440 for cf_gprconfig_param in \
23441 $cf_gprconfig,,,,GNATGCC \
23442 $cf_gprconfig,,,,GCC \
23445 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
23446 test -n "$cf_gprconfig_value" && break
23449 cf_gprconfig_param=$cf_gprconfig
23450 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
23452 if test -n "$cf_gprconfig_value"
23454 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
23455 echo "$as_me:23455: result: $cf_gprconfig_value" >&5
23456 echo "${ECHO_T}$cf_gprconfig_value" >&6
23458 echo "$as_me:23458: result: missing" >&5
23459 echo "${ECHO_T}missing" >&6
23465 rm -rf conftest* *~conftest*
23468 # gprconfig is newer than gnatmake; we can continue...
23471 if test "x$cf_ada_config" != "x#"
23474 echo "$as_me:23474: checking for gnat version" >&5
23475 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
23476 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
23477 grep '[0-9].[0-9][0-9]*' |\
23478 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
23479 echo "$as_me:23479: result: $cf_gnat_version" >&5
23480 echo "${ECHO_T}$cf_gnat_version" >&6
23482 case $cf_gnat_version in
23483 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
23484 cf_cv_prog_gnat_correct=yes
23487 { echo "$as_me:23487: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
23488 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
23489 cf_cv_prog_gnat_correct=no
23493 # Extract the first word of "m4", so it can be a program name with args.
23494 set dummy m4; ac_word=$2
23495 echo "$as_me:23495: checking for $ac_word" >&5
23496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23497 if test "${ac_cv_prog_M4_exists+set}" = set; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23500 if test -n "$M4_exists"; then
23501 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
23503 ac_save_IFS=$IFS; IFS=$ac_path_separator
23505 for ac_dir in $ac_dummy; do
23507 test -z "$ac_dir" && ac_dir=.
23508 $as_executable_p "$ac_dir/$ac_word" || continue
23509 ac_cv_prog_M4_exists="yes"
23510 echo "$as_me:23510: found $ac_dir/$ac_word" >&5
23514 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
23517 M4_exists=$ac_cv_prog_M4_exists
23518 if test -n "$M4_exists"; then
23519 echo "$as_me:23519: result: $M4_exists" >&5
23520 echo "${ECHO_T}$M4_exists" >&6
23522 echo "$as_me:23522: result: no" >&5
23523 echo "${ECHO_T}no" >&6
23526 if test "$ac_cv_prog_M4_exists" = no; then
23527 cf_cv_prog_gnat_correct=no
23528 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
23530 if test "$cf_cv_prog_gnat_correct" = yes; then
23531 echo "$as_me:23531: checking if GNAT works" >&5
23532 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
23534 rm -rf conftest* *~conftest*
23535 cat >>conftest.ads <<CF_EOF
23536 procedure conftest;
23538 cat >>conftest.adb <<CF_EOF
23541 procedure conftest is
23543 Text_IO.Put ("Hello World");
23545 GNAT.OS_Lib.OS_Exit (0);
23548 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
23549 if ( ./conftest 1>&5 2>&1 ) ; then
23550 cf_cv_prog_gnat_correct=yes
23552 cf_cv_prog_gnat_correct=no
23555 cf_cv_prog_gnat_correct=no
23557 rm -rf conftest* *~conftest*
23559 echo "$as_me:23559: result: $cf_cv_prog_gnat_correct" >&5
23560 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
23563 cf_cv_prog_gnat_correct=no
23567 if test "x$cf_cv_prog_gnat_correct" = xyes; then
23569 ADAFLAGS="$ADAFLAGS -gnatpn"
23571 echo "$as_me:23571: checking optimization options for ADAFLAGS" >&5
23572 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
23576 ADAFLAGS="$ADAFLAGS -g"
23582 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
23584 ADAFLAGS="$ADAFLAGS $cf_O_flag"
23588 echo "$as_me:23588: result: $ADAFLAGS" >&5
23589 echo "${ECHO_T}$ADAFLAGS" >&6
23591 echo "$as_me:23591: checking if GNATPREP supports -T option" >&5
23592 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
23593 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
23594 echo $ECHO_N "(cached) $ECHO_C" >&6
23597 cf_cv_gnatprep_opt_t=no
23598 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
23601 echo "$as_me:23601: result: $cf_cv_gnatprep_opt_t" >&5
23602 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
23603 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
23605 echo "$as_me:23605: checking if GNAT supports generics" >&5
23606 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
23607 case $cf_gnat_version in
23609 cf_gnat_generics=yes
23612 cf_gnat_generics=no
23615 echo "$as_me:23615: result: $cf_gnat_generics" >&5
23616 echo "${ECHO_T}$cf_gnat_generics" >&6
23618 if test "$cf_gnat_generics" = yes
23620 cf_compile_generics=generics
23621 cf_generic_objects="\${GENOBJS}"
23623 cf_compile_generics=
23624 cf_generic_objects=
23627 echo "$as_me:23627: checking if GNAT supports SIGINT" >&5
23628 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
23629 if test "${cf_cv_gnat_sigint+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 rm -rf conftest* *~conftest*
23634 cat >>conftest.ads <<CF_EOF
23635 with Ada.Interrupts.Names;
23637 package ConfTest is
23639 pragma Warnings (Off); -- the next pragma exists since 3.11p
23640 pragma Unreserve_All_Interrupts;
23641 pragma Warnings (On);
23643 protected Process is
23645 function Continue return Boolean;
23646 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
23648 Done : Boolean := False;
23653 cat >>conftest.adb <<CF_EOF
23654 package body ConfTest is
23655 protected body Process is
23660 function Continue return Boolean is
23667 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
23668 cf_cv_gnat_sigint=yes
23670 cf_cv_gnat_sigint=no
23672 rm -rf conftest* *~conftest*
23675 echo "$as_me:23675: result: $cf_cv_gnat_sigint" >&5
23676 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
23678 if test $cf_cv_gnat_sigint = yes ; then
23681 USE_GNAT_SIGINT="#"
23684 cf_gnat_libraries=no
23685 cf_gnat_projects=no
23687 if test "$enable_gnat_projects" != no ; then
23688 echo "$as_me:23688: checking if GNAT supports project files" >&5
23689 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
23690 case $cf_gnat_version in
23694 case $cf_cv_system_name in
23698 rm -rf conftest* *~conftest*
23699 if mkdir conftest.src conftest.bin conftest.lib
23702 rm -rf conftest* *~conftest*
23703 cat >>library.gpr <<CF_EOF
23705 Kind := External ("LIB_KIND");
23706 for Library_Name use "ConfTest";
23707 for Object_Dir use ".";
23708 for Library_ALI_Dir use External("LIBRARY_DIR");
23709 for Library_Version use External ("SONAME");
23710 for Library_Kind use Kind;
23711 for Library_Dir use External("BUILD_DIR");
23712 Source_Dir := External ("SOURCE_DIR");
23713 for Source_Dirs use (Source_Dir);
23716 cat >>confpackage.ads <<CF_EOF
23717 package ConfPackage is
23718 procedure conftest;
23721 cat >>confpackage.adb <<CF_EOF
23723 package body ConfPackage is
23724 procedure conftest is
23726 Text_IO.Put ("Hello World");
23731 if ( $cf_ada_make $ADAFLAGS \
23733 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
23734 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
23735 -XSOURCE_DIR=`pwd` \
23736 -XSONAME=libConfTest.so.1 \
23737 -XLIB_KIND=static 1>&5 2>&1 ) ; then
23738 cf_gnat_projects=yes
23742 if test -f conftest.lib/confpackage.ali
23744 cf_gnat_libraries=yes
23746 rm -rf conftest* *~conftest*
23751 echo "$as_me:23751: result: $cf_gnat_projects" >&5
23752 echo "${ECHO_T}$cf_gnat_projects" >&6
23753 fi # enable_gnat_projects
23755 if test $cf_gnat_projects = yes
23757 echo "$as_me:23757: checking if GNAT supports libraries" >&5
23758 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
23759 echo "$as_me:23759: result: $cf_gnat_libraries" >&5
23760 echo "${ECHO_T}$cf_gnat_libraries" >&6
23763 if test "$cf_gnat_projects" = yes
23765 USE_OLD_MAKERULES="#"
23766 USE_GNAT_PROJECTS=""
23768 USE_OLD_MAKERULES=""
23769 USE_GNAT_PROJECTS="#"
23772 if test "$cf_gnat_libraries" = yes
23774 USE_GNAT_LIBRARIES=""
23776 USE_GNAT_LIBRARIES="#"
23779 echo "$as_me:23779: checking for ada-compiler" >&5
23780 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
23782 # Check whether --with-ada-compiler or --without-ada-compiler was given.
23783 if test "${with_ada_compiler+set}" = set; then
23784 withval="$with_ada_compiler"
23785 cf_ada_compiler=$withval
23787 cf_ada_compiler=gnatmake
23790 echo "$as_me:23790: result: $cf_ada_compiler" >&5
23791 echo "${ECHO_T}$cf_ada_compiler" >&6
23793 cf_ada_package=terminal_interface
23795 echo "$as_me:23795: checking for ada-include" >&5
23796 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
23798 # Check whether --with-ada-include or --without-ada-include was given.
23799 if test "${with_ada_include+set}" = set; then
23800 withval="$with_ada_include"
23803 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
23804 fi; if test -n "$prefix/share/ada/adainclude" ; then
23806 if test "x$prefix" != xNONE; then
23807 cf_path_syntax="$prefix"
23809 cf_path_syntax="$ac_default_prefix"
23812 case ".$withval" in
23813 (.\$\(*\)*|.\'*\'*)
23817 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
23819 (.\${*prefix}*|.\${*dir}*)
23820 eval withval="$withval"
23821 case ".$withval" in
23823 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23828 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23831 { { echo "$as_me:23831: error: expected a pathname, not \"$withval\"" >&5
23832 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
23833 { (exit 1); exit 1; }; }
23838 eval ADA_INCLUDE="$withval"
23840 echo "$as_me:23840: result: $ADA_INCLUDE" >&5
23841 echo "${ECHO_T}$ADA_INCLUDE" >&6
23843 echo "$as_me:23843: checking for ada-objects" >&5
23844 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
23846 # Check whether --with-ada-objects or --without-ada-objects was given.
23847 if test "${with_ada_objects+set}" = set; then
23848 withval="$with_ada_objects"
23851 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
23852 fi; if test -n "$prefix/lib/ada/adalib" ; then
23854 if test "x$prefix" != xNONE; then
23855 cf_path_syntax="$prefix"
23857 cf_path_syntax="$ac_default_prefix"
23860 case ".$withval" in
23861 (.\$\(*\)*|.\'*\'*)
23865 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
23867 (.\${*prefix}*|.\${*dir}*)
23868 eval withval="$withval"
23869 case ".$withval" in
23871 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23876 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
23879 { { echo "$as_me:23879: error: expected a pathname, not \"$withval\"" >&5
23880 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
23881 { (exit 1); exit 1; }; }
23886 eval ADA_OBJECTS="$withval"
23888 echo "$as_me:23888: result: $ADA_OBJECTS" >&5
23889 echo "${ECHO_T}$ADA_OBJECTS" >&6
23891 echo "$as_me:23891: checking if an Ada95 shared-library should be built" >&5
23892 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
23894 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
23895 if test "${with_ada_sharedlib+set}" = set; then
23896 withval="$with_ada_sharedlib"
23897 with_ada_sharedlib=$withval
23899 with_ada_sharedlib=no
23901 echo "$as_me:23901: result: $with_ada_sharedlib" >&5
23902 echo "${ECHO_T}$with_ada_sharedlib" >&6
23904 if test "x$with_ada_sharedlib" != xno
23906 if test "x$cf_gnat_projects" != xyes
23908 { echo "$as_me:23908: WARNING: disabling shared-library since GNAT projects are not supported" >&5
23909 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
23910 with_ada_sharedlib=no
23914 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
23915 MAKE_ADA_SHAREDLIB="#"
23917 if test "x$with_ada_sharedlib" != xno
23919 MAKE_ADA_SHAREDLIB=
23920 if test "x$with_ada_sharedlib" != xyes
23922 ADA_SHAREDLIB="$with_ada_sharedlib"
23932 # do this "late" to avoid conflict with header-checks
23933 if test "x$with_widec" = xyes ; then
23934 echo "$as_me:23934: checking for wchar_t" >&5
23935 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
23936 if test "${ac_cv_type_wchar_t+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 cat >conftest.$ac_ext <<_ACEOF
23940 #line 23940 "configure"
23941 #include "confdefs.h"
23942 $ac_includes_default
23948 if (sizeof (wchar_t))
23954 rm -f conftest.$ac_objext
23955 if { (eval echo "$as_me:23955: \"$ac_compile\"") >&5
23956 (eval $ac_compile) 2>&5
23958 echo "$as_me:23958: \$? = $ac_status" >&5
23959 (exit $ac_status); } &&
23960 { ac_try='test -s conftest.$ac_objext'
23961 { (eval echo "$as_me:23961: \"$ac_try\"") >&5
23962 (eval $ac_try) 2>&5
23964 echo "$as_me:23964: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 ac_cv_type_wchar_t=yes
23968 echo "$as_me: failed program was:" >&5
23969 cat conftest.$ac_ext >&5
23970 ac_cv_type_wchar_t=no
23972 rm -f conftest.$ac_objext conftest.$ac_ext
23974 echo "$as_me:23974: result: $ac_cv_type_wchar_t" >&5
23975 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
23977 echo "$as_me:23977: checking size of wchar_t" >&5
23978 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
23979 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 if test "$ac_cv_type_wchar_t" = yes; then
23983 if test "$cross_compiling" = yes; then
23984 # Depending upon the size, compute the lo and hi bounds.
23985 cat >conftest.$ac_ext <<_ACEOF
23986 #line 23986 "configure"
23987 #include "confdefs.h"
23988 $ac_includes_default
23992 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
23997 rm -f conftest.$ac_objext
23998 if { (eval echo "$as_me:23998: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>&5
24001 echo "$as_me:24001: \$? = $ac_status" >&5
24002 (exit $ac_status); } &&
24003 { ac_try='test -s conftest.$ac_objext'
24004 { (eval echo "$as_me:24004: \"$ac_try\"") >&5
24005 (eval $ac_try) 2>&5
24007 echo "$as_me:24007: \$? = $ac_status" >&5
24008 (exit $ac_status); }; }; then
24011 cat >conftest.$ac_ext <<_ACEOF
24012 #line 24012 "configure"
24013 #include "confdefs.h"
24014 $ac_includes_default
24018 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:24024: \"$ac_compile\"") >&5
24025 (eval $ac_compile) 2>&5
24027 echo "$as_me:24027: \$? = $ac_status" >&5
24028 (exit $ac_status); } &&
24029 { ac_try='test -s conftest.$ac_objext'
24030 { (eval echo "$as_me:24030: \"$ac_try\"") >&5
24031 (eval $ac_try) 2>&5
24033 echo "$as_me:24033: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_hi=$ac_mid; break
24037 echo "$as_me: failed program was:" >&5
24038 cat conftest.$ac_ext >&5
24039 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
24041 rm -f conftest.$ac_objext conftest.$ac_ext
24044 echo "$as_me: failed program was:" >&5
24045 cat conftest.$ac_ext >&5
24048 cat >conftest.$ac_ext <<_ACEOF
24049 #line 24049 "configure"
24050 #include "confdefs.h"
24051 $ac_includes_default
24055 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
24060 rm -f conftest.$ac_objext
24061 if { (eval echo "$as_me:24061: \"$ac_compile\"") >&5
24062 (eval $ac_compile) 2>&5
24064 echo "$as_me:24064: \$? = $ac_status" >&5
24065 (exit $ac_status); } &&
24066 { ac_try='test -s conftest.$ac_objext'
24067 { (eval echo "$as_me:24067: \"$ac_try\"") >&5
24068 (eval $ac_try) 2>&5
24070 echo "$as_me:24070: \$? = $ac_status" >&5
24071 (exit $ac_status); }; }; then
24072 ac_lo=$ac_mid; break
24074 echo "$as_me: failed program was:" >&5
24075 cat conftest.$ac_ext >&5
24076 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
24078 rm -f conftest.$ac_objext conftest.$ac_ext
24081 rm -f conftest.$ac_objext conftest.$ac_ext
24082 # Binary search between lo and hi bounds.
24083 while test "x$ac_lo" != "x$ac_hi"; do
24084 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24085 cat >conftest.$ac_ext <<_ACEOF
24086 #line 24086 "configure"
24087 #include "confdefs.h"
24088 $ac_includes_default
24092 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
24097 rm -f conftest.$ac_objext
24098 if { (eval echo "$as_me:24098: \"$ac_compile\"") >&5
24099 (eval $ac_compile) 2>&5
24101 echo "$as_me:24101: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -s conftest.$ac_objext'
24104 { (eval echo "$as_me:24104: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24107 echo "$as_me:24107: \$? = $ac_status" >&5
24108 (exit $ac_status); }; }; then
24111 echo "$as_me: failed program was:" >&5
24112 cat conftest.$ac_ext >&5
24113 ac_lo=`expr $ac_mid + 1`
24115 rm -f conftest.$ac_objext conftest.$ac_ext
24117 ac_cv_sizeof_wchar_t=$ac_lo
24119 if test "$cross_compiling" = yes; then
24120 { { echo "$as_me:24120: error: cannot run test program while cross compiling" >&5
24121 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24122 { (exit 1); exit 1; }; }
24124 cat >conftest.$ac_ext <<_ACEOF
24125 #line 24125 "configure"
24126 #include "confdefs.h"
24127 $ac_includes_default
24131 FILE *f = fopen ("conftest.val", "w");
24133 $ac_main_return (1);
24134 fprintf (f, "%d", (sizeof (wchar_t)));
24140 rm -f conftest$ac_exeext
24141 if { (eval echo "$as_me:24141: \"$ac_link\"") >&5
24142 (eval $ac_link) 2>&5
24144 echo "$as_me:24144: \$? = $ac_status" >&5
24145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24146 { (eval echo "$as_me:24146: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24149 echo "$as_me:24149: \$? = $ac_status" >&5
24150 (exit $ac_status); }; }; then
24151 ac_cv_sizeof_wchar_t=`cat conftest.val`
24153 echo "$as_me: program exited with status $ac_status" >&5
24154 echo "$as_me: failed program was:" >&5
24155 cat conftest.$ac_ext >&5
24157 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24162 ac_cv_sizeof_wchar_t=0
24165 echo "$as_me:24165: result: $ac_cv_sizeof_wchar_t" >&5
24166 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
24167 cat >>confdefs.h <<EOF
24168 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24173 ### Construct the ncurses library-subsets, if any, from this set of keywords:
24174 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
24176 ### ticlib modules may be a separate library, otherwise contained in termlib.
24177 ### termlib modules may be a separate library, otherwise contained in ncurses.
24179 ### The of "+" or " " between the tokens controls the way the script
24180 ### chooses to split module lists into libraries.
24182 ### (see CF_LIB_RULES).
24183 echo "$as_me:24183: checking for library subsets" >&5
24184 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
24187 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
24188 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
24189 if test "$with_ticlib" != no ; then
24190 LIB_SUBSETS="${LIB_SUBSETS} "
24192 LIB_SUBSETS="${LIB_SUBSETS}+"
24196 LIB_SUBSETS="${LIB_SUBSETS}termlib"
24197 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
24199 if test "$with_termlib" != no ; then
24200 LIB_SUBSETS="${LIB_SUBSETS} "
24202 LIB_SUBSETS="${LIB_SUBSETS}+"
24205 LIB_SUBSETS="${LIB_SUBSETS}base"
24207 # Most term-driver calls are to tinfo, but some like init_pair are to the
24208 # base library (so it resides in base).
24209 if test "$with_term_driver" != no ; then
24210 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
24211 case $cf_cv_system_name in
24212 (*mingw32*|*mingw64*)
24213 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
24214 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
24217 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
24222 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
24223 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
24225 echo "$as_me:24225: result: $LIB_SUBSETS" >&5
24226 echo "${ECHO_T}$LIB_SUBSETS" >&6
24228 ### Construct the list of include-directories to be generated
24230 if test "$srcdir" != "."; then
24231 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
24233 CPPFLAGS="-I../include $CPPFLAGS"
24234 if test "$srcdir" != "."; then
24235 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
24237 CPPFLAGS="-I. $CPPFLAGS"
24239 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
24240 if test "$srcdir" != "."; then
24241 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
24243 if test "$GCC" != yes; then
24244 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
24245 elif test "$includedir" != "/usr/include"; then
24246 if test "$includedir" = '${prefix}/include' ; then
24247 if test x$prefix != x/usr ; then
24248 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
24251 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
24255 ### Build up pieces for makefile rules
24256 echo "$as_me:24256: checking default library suffix" >&5
24257 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
24259 case $DFT_LWR_MODEL in
24260 (libtool) DFT_ARG_SUFFIX='' ;;
24261 (normal) DFT_ARG_SUFFIX='' ;;
24262 (debug) DFT_ARG_SUFFIX='_g' ;;
24263 (profile) DFT_ARG_SUFFIX='_p' ;;
24264 (shared) DFT_ARG_SUFFIX='' ;;
24266 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
24267 echo "$as_me:24267: result: $DFT_ARG_SUFFIX" >&5
24268 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
24270 echo "$as_me:24270: checking default library-dependency suffix" >&5
24271 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
24273 case X$DFT_LWR_MODEL in
24275 DFT_LIB_SUFFIX='.la'
24276 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24279 DFT_LIB_SUFFIX='_g.a'
24280 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24283 DFT_LIB_SUFFIX='_p.a'
24284 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24287 case $cf_cv_system_name in
24289 DFT_LIB_SUFFIX='.so'
24290 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24292 (cygwin*|msys*|mingw*)
24293 DFT_LIB_SUFFIX='.dll'
24294 DFT_DEP_SUFFIX='.dll.a'
24297 DFT_LIB_SUFFIX='.dylib'
24298 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24303 DFT_LIB_SUFFIX='.so'
24304 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24307 DFT_LIB_SUFFIX='.sl'
24308 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24313 DFT_LIB_SUFFIX='.so'
24314 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24319 DFT_LIB_SUFFIX='.a'
24320 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
24323 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24325 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
24326 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
24328 echo "$as_me:24328: result: $DFT_DEP_SUFFIX" >&5
24329 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
24331 echo "$as_me:24331: checking default object directory" >&5
24332 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
24334 case $DFT_LWR_MODEL in
24335 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
24336 (normal) DFT_OBJ_SUBDIR='objects' ;;
24337 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
24338 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
24340 case $cf_cv_system_name in
24342 DFT_OBJ_SUBDIR='objects' ;;
24344 DFT_OBJ_SUBDIR='obj_s' ;;
24347 echo "$as_me:24347: result: $DFT_OBJ_SUBDIR" >&5
24348 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
24350 if test "x$cf_with_cxx" = xyes ; then
24351 echo "$as_me:24351: checking c++ library-dependency suffix" >&5
24352 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
24353 if test "$with_libtool" != "no"; then
24354 # libtool thinks it can make c++ shared libraries (perhaps only g++)
24355 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
24356 elif test "$with_shared_cxx" != "no"; then
24357 # also for g++ users...
24358 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
24360 # we normally make a static library because C/C++ library rules differ
24364 CXX_LIB_SUFFIX='.la'
24365 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24368 CXX_LIB_SUFFIX='_g.a'
24369 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24372 CXX_LIB_SUFFIX='_p.a'
24373 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24376 case $cf_cv_system_name in
24378 CXX_LIB_SUFFIX='.so'
24379 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24381 (cygwin*|msys*|mingw*)
24382 CXX_LIB_SUFFIX='.dll'
24383 CXX_DEP_SUFFIX='.dll.a'
24386 CXX_LIB_SUFFIX='.dylib'
24387 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24392 CXX_LIB_SUFFIX='.so'
24393 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24396 CXX_LIB_SUFFIX='.sl'
24397 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24402 CXX_LIB_SUFFIX='.so'
24403 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24408 CXX_LIB_SUFFIX='.a'
24409 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
24412 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24414 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
24415 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
24419 echo "$as_me:24419: result: $CXX_LIB_SUFFIX" >&5
24420 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
24424 # do not want -ldl in build except as needed for -lncurses dependency
24425 if test "x$with_dlsym" = xyes ; then
24426 if test $DFT_LWR_MODEL = shared || \
24427 test $DFT_LWR_MODEL = libtool ; then
24429 # remove dl library from $LIBS
24430 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
24434 ### Set up low-level terminfo dependencies for makefiles.
24436 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
24437 # do not need libdl
24439 if test "x$with_dlsym" = xyes ; then
24441 # remove dl library from $SHLIB_LIST
24442 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
24446 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
24447 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
24448 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
24449 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
24451 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
24454 if test "$with_ticlib" != no ; then
24456 if test "x$with_ticlib" != xyes ; then
24457 TICS_NAME=$with_ticlib
24458 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
24459 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24460 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24461 TICS_LIB_SUFFIX="${with_ticlib}"
24463 TICS_SUFFIX=${DFT_LIB_SUFFIX}
24464 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
24465 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
24466 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
24468 TICS_LDFLAGS="-L${LIB_DIR}"
24469 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
24471 TICS_SUFFIX=${DFT_LIB_SUFFIX}
24472 TICS_LDFLAGS="-L${LIB_DIR}"
24473 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
24476 if test "$with_termlib" != no ; then
24478 if test "x$with_termlib" != xyes ; then
24479 TINFO_NAME=$with_termlib
24480 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
24481 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24482 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
24483 TINFO_LIB_SUFFIX="${with_termlib}"
24485 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
24486 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
24487 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
24488 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
24491 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
24492 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
24493 if test "$DFT_LWR_MODEL" = "libtool"; then
24494 TEST_ARGS="${TEST_DEPS}"
24495 TEST_ARG2="${TEST_DEP2}"
24496 TINFO_LDFLAGS="-L${LIB_DIR}"
24497 TINFO_LIBS="$TEST_ARGS"
24498 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
24499 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
24501 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
24502 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
24503 if test "x$with_term_driver" != xno ; then
24504 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
24505 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
24506 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
24508 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
24509 TINFO_LIBS="$TEST_ARGS"
24511 TINFO_LDFLAGS="-L${LIB_DIR}"
24512 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
24515 # the next lines are needed for linking libtic over libncurses
24516 TINFO_NAME=${LIB_NAME}
24517 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
24518 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
24519 if test "x$with_tic_depends" = xyes ; then
24520 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
24522 TICS_LIST="$SHLIB_LIST"
24525 TINFO_LDFLAGS="-L${LIB_DIR}"
24526 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
24529 if test "$DFT_LWR_MODEL" = shared ; then
24530 case $cf_cv_system_name in
24532 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
24538 if test "x$with_dlsym" = xyes ; then
24540 # remove dl library from $TICS_LIST
24541 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
24545 if test "$DFT_LWR_MODEL" = "libtool"; then
24550 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
24552 case $DFT_LWR_MODEL in
24553 (normal|debug|profile)
24555 if test "$GCC" = yes ; then
24556 case $cf_cv_system_name in
24557 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
24561 (*) # normally, except when broken
24562 LDFLAGS_STATIC=-static
24563 LDFLAGS_SHARED=-dynamic
24567 case $cf_cv_system_name in
24568 (aix[4-7]*) # from ld manpage
24569 LDFLAGS_STATIC=-bstatic
24570 LDFLAGS_SHARED=-bdynamic
24572 (hpux*) # from ld manpage for hpux10.20, hpux11.11
24573 # We could also use just "archive" and "shared".
24574 LDFLAGS_STATIC=-Wl,-a,archive_shared
24575 LDFLAGS_SHARED=-Wl,-a,shared_archive
24577 (irix*) # from ld manpage IRIX64
24578 LDFLAGS_STATIC=-Bstatic
24579 LDFLAGS_SHARED=-Bdynamic
24581 (osf[45]*) # from ld manpage osf4.0d, osf5.1
24582 # alternative "-oldstyle_liblookup" (not in cc manpage)
24583 LDFLAGS_STATIC=-noso
24584 LDFLAGS_SHARED=-so_archive
24587 LDFLAGS_STATIC=-Bstatic
24588 LDFLAGS_SHARED=-Bdynamic
24593 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
24595 echo "$as_me:24595: checking if linker supports switching between static/dynamic" >&5
24596 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
24598 rm -f libconftest.a
24599 cat >conftest.$ac_ext <<EOF
24600 #line 24600 "configure"
24602 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
24604 if { (eval echo "$as_me:24604: \"$ac_compile\"") >&5
24605 (eval $ac_compile) 2>&5
24607 echo "$as_me:24607: \$? = $ac_status" >&5
24608 (exit $ac_status); } ; then
24609 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
24610 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
24614 cf_save_LIBS="$LIBS"
24616 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
24617 cat >conftest.$ac_ext <<_ACEOF
24618 #line 24618 "configure"
24619 #include "confdefs.h"
24621 #line 24621 "configure"
24623 int cf_ldflags_static(FILE *fp);
24629 return cf_ldflags_static(stdin);
24635 rm -f conftest.$ac_objext conftest$ac_exeext
24636 if { (eval echo "$as_me:24636: \"$ac_link\"") >&5
24637 (eval $ac_link) 2>&5
24639 echo "$as_me:24639: \$? = $ac_status" >&5
24640 (exit $ac_status); } &&
24641 { ac_try='test -s conftest$ac_exeext'
24642 { (eval echo "$as_me:24642: \"$ac_try\"") >&5
24643 (eval $ac_try) 2>&5
24645 echo "$as_me:24645: \$? = $ac_status" >&5
24646 (exit $ac_status); }; }; then
24648 # some linkers simply ignore the -dynamic
24649 case x`file conftest$ac_exeext 2>/dev/null` in
24651 cf_ldflags_static=no
24654 cf_ldflags_static=yes
24659 echo "$as_me: failed program was:" >&5
24660 cat conftest.$ac_ext >&5
24661 cf_ldflags_static=no
24663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24665 rm -f libconftest.*
24666 LIBS="$cf_save_LIBS"
24668 echo "$as_me:24668: result: $cf_ldflags_static" >&5
24669 echo "${ECHO_T}$cf_ldflags_static" >&6
24671 if test $cf_ldflags_static != yes
24684 echo "$as_me:24684: checking where we will install curses.h" >&5
24685 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
24688 if test "$with_overwrite" = no && \
24689 ( test "x$includedir" = 'x${prefix}/include' || \
24690 test "x$includedir" = "x${prefix}/include" )
24692 includesubdir="/ncurses${USE_LIB_SUFFIX}"
24694 echo "$as_me:24694: result: ${includedir}${includesubdir}" >&5
24695 echo "${ECHO_T}${includedir}${includesubdir}" >&6
24697 ### Resolve a conflict between normal and wide-curses by forcing applications
24698 ### that will need libutf8 to add it to their configure script.
24699 if test "$with_overwrite" != no ; then
24700 if test "$NCURSES_LIBUTF8" = 1 ; then
24701 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
24702 { echo "$as_me:24702: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
24703 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
24706 WITH_OVERWRITE=$with_overwrite
24708 # used to separate tack out of the tree
24711 ### predefined stuff for the test programs
24713 cat >>confdefs.h <<\EOF
24714 #define HAVE_SLK_COLOR 1
24717 ### Construct the list of subdirectories for which we'll customize makefiles
24718 ### with the appropriate compile-rules.
24720 echo "$as_me:24720: checking for src modules" >&5
24721 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
24723 # dependencies and linker-arguments for test-programs
24724 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
24725 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
24726 if test "$DFT_LWR_MODEL" = "libtool"; then
24727 TEST_ARGS="${TEST_DEPS}"
24728 TEST_ARG2="${TEST_DEP2}"
24730 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
24731 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
24734 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
24736 for cf_dir in $modules_to_build
24738 if test -f $srcdir/$cf_dir/modules; then
24740 # We may/may not have tack in the distribution, though the
24742 if test $cf_dir = tack ; then
24743 if test "x$cf_with_tack" != "xyes"; then
24748 if test -z "$cf_cv_src_modules"; then
24749 cf_cv_src_modules=$cf_dir
24751 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
24754 # Make the ncurses_cfg.h file record the library interface files as
24755 # well. These are header files that are the same name as their
24756 # directory. Ncurses is the only library that does not follow
24758 if test $cf_dir = tack ; then
24760 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
24762 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24764 cat >>confdefs.h <<EOF
24765 #define HAVE_${cf_have_include}_H 1
24768 cat >>confdefs.h <<EOF
24769 #define HAVE_LIB${cf_have_include} 1
24772 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
24773 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
24774 if test "$DFT_LWR_MODEL" = "libtool"; then
24775 TEST_ARGS="${TEST_DEPS}"
24776 TEST_ARG2="${TEST_DEP2}"
24778 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
24779 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
24781 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
24785 echo "$as_me:24785: result: $cf_cv_src_modules" >&5
24786 echo "${ECHO_T}$cf_cv_src_modules" >&6
24788 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
24789 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
24792 if test "x$cf_with_manpages" != xno ; then
24793 SRC_SUBDIRS="$SRC_SUBDIRS man"
24795 SRC_SUBDIRS="$SRC_SUBDIRS include"
24796 for cf_dir in $cf_cv_src_modules
24798 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
24800 if test "x$cf_with_tests" != "xno" ; then
24801 SRC_SUBDIRS="$SRC_SUBDIRS test"
24803 # always make this, to install the ncurses-config script
24804 SRC_SUBDIRS="$SRC_SUBDIRS misc"
24805 if test "$cf_with_cxx_binding" != no; then
24806 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
24807 SRC_SUBDIRS="$SRC_SUBDIRS c++"
24810 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
24811 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
24814 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
24815 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
24816 ADA_SUBDIRS="gen src"
24817 if test "x$cf_with_tests" != "xno" ; then
24818 ADA_SUBDIRS="$ADA_SUBDIRS samples"
24823 for cf_dir in $SRC_SUBDIRS
24825 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
24828 if test -n "$ADA_SUBDIRS"; then
24829 for cf_dir in $ADA_SUBDIRS
24831 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
24836 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24837 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
24838 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
24842 for cf_item in $cf_list_models
24846 (libtool) cf_subdir='obj_lo' ;;
24847 (normal) cf_subdir='objects' ;;
24848 (debug) cf_subdir='obj_g' ;;
24849 (profile) cf_subdir='obj_p' ;;
24851 case $cf_cv_system_name in
24853 cf_subdir='objects' ;;
24855 cf_subdir='obj_s' ;;
24859 for cf_item2 in $DIRS_TO_MAKE
24861 test $cf_item2 = $cf_subdir && break
24863 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
24865 for cf_dir in $DIRS_TO_MAKE
24867 test ! -d $cf_dir && mkdir $cf_dir
24870 # symbols that differ when compiling Ada95 by itself.
24871 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
24873 # values to use as strings
24875 cat >>confdefs.h <<EOF
24876 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
24879 cat >>confdefs.h <<EOF
24880 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
24883 ### Now that we're done running tests, add the compiler-warnings, if any
24888 cf_new_extra_cppflags=
24890 for cf_add_cflags in $EXTRA_CFLAGS
24892 case $cf_fix_cppflags in
24894 case $cf_add_cflags in
24895 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
24896 case $cf_add_cflags in
24898 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
24900 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
24901 && test -z "${cf_tst_cflags}" \
24902 && cf_fix_cppflags=yes
24904 if test $cf_fix_cppflags = yes ; then
24906 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
24907 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
24910 elif test "${cf_tst_cflags}" = "\"'" ; then
24912 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
24913 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
24919 case "$CPPFLAGS" in
24923 case $cf_add_cflags in
24925 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
24927 CPPFLAGS=`echo "$CPPFLAGS" | \
24928 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
24929 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
24934 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
24935 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
24942 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
24943 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
24950 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
24951 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
24953 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
24955 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
24956 && test -z "${cf_tst_cflags}" \
24957 && cf_fix_cppflags=no
24962 if test -n "$cf_new_cflags" ; then
24964 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
24965 CFLAGS="${CFLAGS}$cf_new_cflags"
24969 if test -n "$cf_new_cppflags" ; then
24971 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24972 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
24976 if test -n "$cf_new_extra_cppflags" ; then
24978 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
24979 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
24983 ### Define substitutions for header files to avoid name-pollution
24985 if test "x$cf_cv_have_tcgetattr" = xyes ; then
24991 if test "x$ac_cv_header_stdint_h" = xyes ; then
24997 if test "x$ac_cv_header_termio_h" = xyes ; then
25003 if test "x$ac_cv_header_termios_h" = xyes ; then
25009 ################################################################################
25010 test "x$use_database" = xyes && \
25011 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
25013 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
25014 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
25016 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
25017 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
25020 # Extract the first word of "tic", so it can be a program name with args.
25021 set dummy tic; ac_word=$2
25022 echo "$as_me:25022: checking for $ac_word" >&5
25023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25024 if test "${ac_cv_path_TIC_PATH+set}" = set; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
25032 ac_save_IFS=$IFS; IFS=$ac_path_separator
25033 ac_dummy="$PATH:/usr/local/ncurses/bin"
25034 for ac_dir in $ac_dummy; do
25036 test -z "$ac_dir" && ac_dir=.
25037 if $as_executable_p "$ac_dir/$ac_word"; then
25038 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
25039 echo "$as_me:25039: found $ac_dir/$ac_word" >&5
25044 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
25048 TIC_PATH=$ac_cv_path_TIC_PATH
25050 if test -n "$TIC_PATH"; then
25051 echo "$as_me:25051: result: $TIC_PATH" >&5
25052 echo "${ECHO_T}$TIC_PATH" >&6
25054 echo "$as_me:25054: result: no" >&5
25055 echo "${ECHO_T}no" >&6
25058 if test -n "$FALLBACK_LIST"
25060 if test "$TIC_PATH" = unknown
25062 { echo "$as_me:25062: WARNING: no tic program found for fallbacks" >&5
25063 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
25067 if test "x$cf_with_tests" != xno ; then
25073 ADAHTML_DIR=../../doc/html/ada
25075 # these could be configurable, but are not currently
25081 # workaround for OS/2 (20151017)
25082 case $cf_cv_system_name in
25084 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
25091 # workaround for g++ versus Solaris (20131116)
25092 case $cf_cv_system_name in
25094 case "x$CPPFLAGS" in
25095 (*-D_XOPEN_SOURCE_EXTENDED*)
25096 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
25098 echo "${as_me:-configure}:25098: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
25100 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
25101 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
25107 # Help to automatically enable the extended curses features when using either
25108 # the *-config or the ".pc" files by adding defines.
25109 echo "$as_me:25109: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
25110 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
25112 for cf_loop1 in $CPPFLAGS_after_XOPEN
25115 for cf_loop2 in $CPPFLAGS_before_XOPEN
25117 if test "x$cf_loop1" = "x$cf_loop2"
25123 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
25125 echo "$as_me:25125: result: $PKG_CFLAGS" >&5
25126 echo "${ECHO_T}$PKG_CFLAGS" >&6
25128 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
25129 case "x$NCURSES_OSPEED" in
25138 cat >>confdefs.h <<EOF
25139 #define NCURSES_OSPEED_COMPAT $cf_compatible
25142 case "x$cf_cv_typeof_chtype" in
25143 (xshort|xint|xlong)
25144 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
25148 case "x$cf_cv_typeof_mmask_t" in
25149 (xshort|xint|xlong)
25150 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
25154 # substitute into misc/Makefile to suppress
25155 # (un)install.data from the
25156 # (un)install rules.
25157 if test "x$cf_with_db_install" = "xno"; then
25159 MISC_UNINSTALL_DATA=
25161 MISC_INSTALL_DATA=install.data
25162 MISC_UNINSTALL_DATA=uninstall.data
25165 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
25168 MAKE_DATABASE="$MAKE_TERMINFO"
25173 if test -n "$PACKAGE"
25175 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
25177 echo "package: $PACKAGE"
25183 if test -n "$RESULTING_SYMS"
25185 cf_filter_syms=$cf_dft_filter_syms
25186 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
25188 echo "${as_me:-configure}:25188: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
25192 if test "x$WILDCARD_SYMS" = xno
25197 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
25199 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
25200 if test $cf_filter_syms = yes
25202 RESULTING_SYMS=resulting.map
25205 if test "x$cross_compiling" = xyes ; then
25206 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
25209 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
25213 cat >>confdefs.h <<\EOF
25214 #define HAVE_CURSES_DATA_BOOLNAMES 1
25217 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile"
25218 ac_config_commands="$ac_config_commands default"
25219 cat >confcache <<\_ACEOF
25220 # This file is a shell script that caches the results of configure
25221 # tests run on this system so they can be shared between configure
25222 # scripts and configure runs, see configure's option --config-cache.
25223 # It is not useful on other systems. If it contains results you don't
25224 # want to keep, you may remove or edit it.
25226 # config.status only pays attention to the cache file if you give it
25227 # the --recheck option to rerun configure.
25229 # `ac_cv_env_foo' variables (set or unset) will be overriden when
25230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25231 # following values.
25235 # The following way of writing the cache mishandles newlines in values,
25236 # but we know of no workaround that is simple, portable, and efficient.
25237 # So, don't put newlines in cache variables' values.
25238 # Ultrix sh set writes to stderr and can't be redirected directly,
25239 # and sets the high bit in the cache file unless we assign to the vars.
25242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25244 # `set' does not quote correctly, so add quotes (double-quote
25245 # substitution turns \\\\ into \\, and sed turns \\ into \).
25248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25251 # `set' quotes correctly as required by POSIX, so do not add quotes.
25253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25264 if cmp -s $cache_file confcache; then :; else
25265 if test -w $cache_file; then
25266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25267 cat confcache >$cache_file
25269 echo "not updating unwritable cache $cache_file"
25274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25275 # Let make expand exec_prefix.
25276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25280 # trailing colons and then remove the whole line if VPATH becomes empty
25281 # (actually we leave an empty line to preserve line numbers).
25282 if test "x$srcdir" = x.; then
25283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25284 s/:*\$(srcdir):*/:/;
25285 s/:*\${srcdir}:*/:/;
25287 s/^\([^=]*=[ ]*\):*/\1/;
25293 DEFS=-DHAVE_CONFIG_H
25295 : ${CONFIG_STATUS=./config.status}
25296 ac_clean_files_save=$ac_clean_files
25297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25298 { echo "$as_me:25298: creating $CONFIG_STATUS" >&5
25299 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25300 cat >$CONFIG_STATUS <<_ACEOF
25302 # Generated automatically by configure.
25303 # Run this file to recreate the current configuration.
25304 # Compiler output produced by configure, useful for debugging
25305 # configure, is in config.log if it exists.
25308 SHELL=\${CONFIG_SHELL-$SHELL}
25309 ac_cs_invocation="\$0 \$@"
25313 cat >>$CONFIG_STATUS <<\_ACEOF
25314 # Be Bourne compatible
25315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25318 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25322 # Name of the executable.
25323 as_me=`echo "$0" |sed 's,.*[\\/],,'`
25325 if expr a : '\(a\)' >/dev/null 2>&1; then
25331 rm -f conf$$ conf$$.exe conf$$.file
25333 if ln -s conf$$.file conf$$ 2>/dev/null; then
25334 # We could just check for DJGPP; but this test a) works b) is more generic
25335 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25336 if test -f conf$$.exe; then
25337 # Don't use ln at all; we don't have any links
25342 elif ln conf$$.file conf$$ 2>/dev/null; then
25347 rm -f conf$$ conf$$.exe conf$$.file
25349 as_executable_p="test -f"
25351 # Support unset when possible.
25352 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
25359 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
25360 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
25361 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
25362 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
25363 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
25364 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
25365 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
25366 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
25369 # We need space, tab and new line, in precisely that order.
25375 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
25381 # Files that config.status was made for.
25382 if test -n "$ac_config_files"; then
25383 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25386 if test -n "$ac_config_headers"; then
25387 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25390 if test -n "$ac_config_links"; then
25391 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25394 if test -n "$ac_config_commands"; then
25395 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25398 cat >>$CONFIG_STATUS <<\EOF
25401 \`$as_me' instantiates files from templates according to the
25402 current configuration.
25404 Usage: $0 [OPTIONS] [FILE]...
25406 -h, --help print this help, then exit
25407 -V, --version print version number, then exit
25408 -d, --debug don't remove temporary files
25409 --recheck update $as_me by reconfiguring in the same conditions
25410 --file=FILE[:TEMPLATE]
25411 instantiate the configuration file FILE
25412 --header=FILE[:TEMPLATE]
25413 instantiate the configuration header FILE
25415 Configuration files:
25418 Configuration headers:
25421 Configuration commands:
25424 Report bugs to <dickey@invisible-island.net>."
25427 cat >>$CONFIG_STATUS <<EOF
25430 configured by $0, generated by GNU Autoconf 2.52.20181006,
25431 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25433 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25434 Free Software Foundation, Inc.
25435 This config.status script is free software; the Free Software Foundation
25436 gives unlimited permission to copy, distribute and modify it."
25441 cat >>$CONFIG_STATUS <<\EOF
25442 # If no file are specified by the user, then we need to provide default
25443 # value. By we need to know if files were specified by the user.
25449 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25450 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25452 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25456 *) # This is not an option, so the user has probably given explicit
25458 ac_need_defaults=false;;
25462 # Handling of the options.
25464 cat >>$CONFIG_STATUS <<EOF
25465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25466 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25467 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25469 cat >>$CONFIG_STATUS <<\EOF
25470 --version | --vers* | -V )
25471 echo "$ac_cs_version"; exit 0 ;;
25473 # Conflict between --help and --header
25474 { { echo "$as_me:25474: error: ambiguous option: $1
25475 Try \`$0 --help' for more information." >&5
25476 echo "$as_me: error: ambiguous option: $1
25477 Try \`$0 --help' for more information." >&2;}
25478 { (exit 1); exit 1; }; };;
25479 --help | --hel | -h )
25480 echo "$ac_cs_usage"; exit 0 ;;
25481 --debug | --d* | -d )
25483 --file | --fil | --fi | --f )
25485 CONFIG_FILES="$CONFIG_FILES $1"
25486 ac_need_defaults=false;;
25487 --header | --heade | --head | --hea )
25489 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25490 ac_need_defaults=false;;
25492 # This is an error.
25493 -*) { { echo "$as_me:25493: error: unrecognized option: $1
25494 Try \`$0 --help' for more information." >&5
25495 echo "$as_me: error: unrecognized option: $1
25496 Try \`$0 --help' for more information." >&2;}
25497 { (exit 1); exit 1; }; } ;;
25499 *) ac_config_targets="$ac_config_targets $1" ;;
25508 ## ----------------------- ##
25509 ## Running config.status. ##
25510 ## ----------------------- ##
25512 This file was extended by $as_me 2.52.20181006, executed with
25513 CONFIG_FILES = $CONFIG_FILES
25514 CONFIG_HEADERS = $CONFIG_HEADERS
25515 CONFIG_LINKS = $CONFIG_LINKS
25516 CONFIG_COMMANDS = $CONFIG_COMMANDS
25517 > $ac_cs_invocation
25518 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25523 cat >>$CONFIG_STATUS <<EOF
25525 # INIT-COMMANDS section.
25528 ### Special initialization commands, used to pass information from the
25529 ### configuration-run into config.status
25532 ALTERNATE_SYMS="$ALTERNATE_SYMS"
25533 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
25534 DFT_LWR_MODEL="$DFT_LWR_MODEL"
25536 EXTRA_SUFFIX="$EXTRA_SUFFIX"
25537 LDCONFIG="$LDCONFIG"
25538 LIBTOOL_VERSION="$LIBTOOL_VERSION"
25539 LIB_NAME="$LIB_NAME"
25540 LIB_PREFIX="$LIB_PREFIX"
25541 LIB_SUBSETS="$LIB_SUBSETS"
25542 LIB_SUFFIX="$LIB_SUFFIX"
25543 LIB_TRACING="$LIB_TRACING"
25545 MAKE_TERMINFO="$MAKE_TERMINFO"
25546 NCURSES_MAJOR="$NCURSES_MAJOR"
25547 NCURSES_MINOR="$NCURSES_MINOR"
25548 NCURSES_OSPEED="$NCURSES_OSPEED"
25549 NCURSES_PATCH="$NCURSES_PATCH"
25550 SRC_SUBDIRS="$SRC_SUBDIRS"
25551 TERMINFO="$TERMINFO"
25552 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
25553 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
25554 TICS_NAME="$TICS_NAME"
25555 TICS_SUFFIX="$TICS_SUFFIX"
25556 TIC_PATH="$TIC_PATH"
25557 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
25558 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
25559 TINFO_NAME="$TINFO_NAME"
25560 TINFO_SUFFIX="$TINFO_SUFFIX"
25561 UNALTERED_SYMS="$UNALTERED_SYMS"
25562 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
25563 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
25564 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
25565 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
25566 WILDCARD_SYMS="$WILDCARD_SYMS"
25567 WITH_CURSES_H="$with_curses_h"
25568 WITH_ECHO="${enable_echo:=yes}"
25569 WITH_OVERWRITE="$with_overwrite"
25570 cf_LIST_MODELS="$cf_list_models"
25571 cf_cv_abi_version="$cf_cv_abi_version"
25572 cf_cv_do_relink="$cf_cv_do_relink"
25573 cf_cv_do_reranlib="$cf_cv_do_reranlib"
25574 cf_cv_do_symlinks="$cf_cv_do_symlinks"
25575 cf_cv_enable_lp64="$cf_cv_enable_lp64"
25576 cf_cv_enable_opaque="$cf_cv_enable_opaque"
25577 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
25578 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
25579 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
25580 cf_cv_rel_version="$cf_cv_rel_version"
25581 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
25582 cf_cv_shared_soname='$cf_cv_shared_soname'
25583 cf_cv_shlib_version="$cf_cv_shlib_version"
25584 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
25585 cf_cv_system_name="$cf_cv_system_name"
25586 cf_cv_term_driver="$with_term_driver"
25587 cf_with_ada="$cf_with_ada"
25588 cf_with_cxx_binding="$cf_with_cxx_binding"
25589 cf_with_db_install="$cf_with_db_install"
25590 cf_with_manpages="$cf_with_manpages"
25591 cf_with_tests="$cf_with_tests"
25594 with_shared_cxx="$with_shared_cxx"
25598 cat >>$CONFIG_STATUS <<\EOF
25599 for ac_config_target in $ac_config_targets
25601 case "$ac_config_target" in
25602 # Handling of arguments.
25603 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
25604 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
25605 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
25606 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
25607 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
25608 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
25609 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
25610 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25611 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25612 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
25613 *) { { echo "$as_me:25613: error: invalid argument: $ac_config_target" >&5
25614 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25615 { (exit 1); exit 1; }; };;
25619 # If the user did not use the arguments to specify the items to instantiate,
25620 # then the envvar interface is used. Set only those that are not.
25621 # We use the long form for the default assignment because of an extremely
25622 # bizarre bug on SunOS 4.1.3.
25623 if $ac_need_defaults; then
25624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25629 # Create a temporary directory, and hook for its removal unless debugging.
25632 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25633 trap '{ (exit 1); exit 1; }' 1 2 13 15
25636 # Create a (secure) tmp directory for tmp files.
25639 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25640 test -n "$tmp" && test -d "$tmp"
25643 tmp=$TMPDIR/cs$$-$RANDOM
25644 (umask 077 && mkdir $tmp)
25647 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25648 { (exit 1); exit 1; }
25653 cat >>$CONFIG_STATUS <<EOF
25656 # CONFIG_FILES section.
25659 # No need to generate the scripts if there are no CONFIG_FILES.
25660 # This happens for instance when ./config.status config.h
25661 if test -n "\$CONFIG_FILES"; then
25662 # Protect against being on the right side of a sed subst in config.status.
25663 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25664 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25665 s,@SHELL@,$SHELL,;t t
25666 s,@exec_prefix@,$exec_prefix,;t t
25667 s,@prefix@,$prefix,;t t
25668 s,@program_transform_name@,$program_transform_name,;t t
25669 s,@bindir@,$bindir,;t t
25670 s,@sbindir@,$sbindir,;t t
25671 s,@libexecdir@,$libexecdir,;t t
25672 s,@datarootdir@,$datarootdir,;t t
25673 s,@datadir@,$datadir,;t t
25674 s,@sysconfdir@,$sysconfdir,;t t
25675 s,@sharedstatedir@,$sharedstatedir,;t t
25676 s,@localstatedir@,$localstatedir,;t t
25677 s,@runstatedir@,$runstatedir,;t t
25678 s,@libdir@,$libdir,;t t
25679 s,@includedir@,$includedir,;t t
25680 s,@oldincludedir@,$oldincludedir,;t t
25681 s,@infodir@,$infodir,;t t
25682 s,@mandir@,$mandir,;t t
25683 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25684 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25685 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25686 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25687 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25688 s,@build_alias@,$build_alias,;t t
25689 s,@host_alias@,$host_alias,;t t
25690 s,@target_alias@,$target_alias,;t t
25691 s,@ECHO_C@,$ECHO_C,;t t
25692 s,@ECHO_N@,$ECHO_N,;t t
25693 s,@ECHO_T@,$ECHO_T,;t t
25694 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25695 s,@DEFS@,$DEFS,;t t
25696 s,@LIBS@,$LIBS,;t t
25697 s,@top_builddir@,$top_builddir,;t t
25698 s,@EGREP@,$EGREP,;t t
25699 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
25700 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
25701 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
25702 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
25703 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
25704 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
25705 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
25706 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
25707 s,@VERSION@,$VERSION,;t t
25708 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
25709 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
25710 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
25711 s,@PACKAGE@,$PACKAGE,;t t
25712 s,@build@,$build,;t t
25713 s,@build_cpu@,$build_cpu,;t t
25714 s,@build_vendor@,$build_vendor,;t t
25715 s,@build_os@,$build_os,;t t
25716 s,@host@,$host,;t t
25717 s,@host_cpu@,$host_cpu,;t t
25718 s,@host_vendor@,$host_vendor,;t t
25719 s,@host_os@,$host_os,;t t
25720 s,@target@,$target,;t t
25721 s,@target_cpu@,$target_cpu,;t t
25722 s,@target_vendor@,$target_vendor,;t t
25723 s,@target_os@,$target_os,;t t
25725 s,@CFLAGS@,$CFLAGS,;t t
25726 s,@LDFLAGS@,$LDFLAGS,;t t
25727 s,@CPPFLAGS@,$CPPFLAGS,;t t
25728 s,@ac_ct_CC@,$ac_ct_CC,;t t
25729 s,@EXEEXT@,$EXEEXT,;t t
25730 s,@OBJEXT@,$OBJEXT,;t t
25731 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
25733 s,@LDCONFIG@,$LDCONFIG,;t t
25735 s,@CXXFLAGS@,$CXXFLAGS,;t t
25736 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25738 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25739 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25740 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25741 s,@LINT@,$LINT,;t t
25742 s,@LINT_OPTS@,$LINT_OPTS,;t t
25743 s,@LN_S@,$LN_S,;t t
25744 s,@cf_config_suffix@,$cf_config_suffix,;t t
25745 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25746 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
25747 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
25748 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
25749 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
25750 s,@SET_MAKE@,$SET_MAKE,;t t
25751 s,@CTAGS@,$CTAGS,;t t
25752 s,@ETAGS@,$ETAGS,;t t
25753 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
25754 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
25755 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
25756 s,@RANLIB@,$RANLIB,;t t
25757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25759 s,@ac_ct_LD@,$ac_ct_LD,;t t
25761 s,@ac_ct_AR@,$ac_ct_AR,;t t
25763 s,@ac_ct_NM@,$ac_ct_NM,;t t
25764 s,@ARFLAGS@,$ARFLAGS,;t t
25765 s,@DESTDIR@,$DESTDIR,;t t
25766 s,@BUILD_CC@,$BUILD_CC,;t t
25767 s,@BUILD_CPP@,$BUILD_CPP,;t t
25768 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25769 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
25770 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25771 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
25772 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
25773 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
25774 s,@cf_list_models@,$cf_list_models,;t t
25775 s,@ABI_VERSION@,$ABI_VERSION,;t t
25776 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
25777 s,@LIBTOOL@,$LIBTOOL,;t t
25778 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
25779 s,@LT_UNDEF@,$LT_UNDEF,;t t
25780 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
25781 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
25782 s,@LIB_CREATE@,$LIB_CREATE,;t t
25783 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
25784 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
25785 s,@LIB_PREP@,$LIB_PREP,;t t
25786 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
25787 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
25788 s,@LIB_LINK@,$LIB_LINK,;t t
25789 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
25790 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
25791 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
25792 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
25793 s,@TICS_NAME@,$TICS_NAME,;t t
25794 s,@TINFO_NAME@,$TINFO_NAME,;t t
25795 s,@LIB_NAME@,$LIB_NAME,;t t
25796 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
25797 s,@CC_G_OPT@,$CC_G_OPT,;t t
25798 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
25799 s,@LD_MODEL@,$LD_MODEL,;t t
25800 s,@shlibdir@,$shlibdir,;t t
25801 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
25802 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
25803 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
25804 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
25805 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
25806 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
25807 s,@LINK_PROGS@,$LINK_PROGS,;t t
25808 s,@LINK_TESTS@,$LINK_TESTS,;t t
25809 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
25810 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
25811 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
25812 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
25813 s,@RPATH_LIST@,$RPATH_LIST,;t t
25814 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
25815 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
25816 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
25817 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
25818 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
25819 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
25820 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
25821 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
25822 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
25823 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
25824 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
25825 s,@XTERM_KBS@,$XTERM_KBS,;t t
25826 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
25827 s,@TERMINFO@,$TERMINFO,;t t
25828 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
25829 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
25830 s,@TERMPATH@,$TERMPATH,;t t
25831 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
25832 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
25833 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
25834 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
25835 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
25836 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
25837 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
25838 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
25839 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
25840 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
25841 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
25842 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
25843 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
25844 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
25845 s,@RGB_PATH@,$RGB_PATH,;t t
25846 s,@no_x11_rgb@,$no_x11_rgb,;t t
25847 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
25848 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
25849 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
25850 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
25851 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
25852 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
25853 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
25854 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
25855 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
25856 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
25857 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
25858 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
25859 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
25860 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
25861 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
25862 s,@PTHREAD@,$PTHREAD,;t t
25863 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
25864 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
25865 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
25866 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
25867 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
25868 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
25869 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
25870 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
25871 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
25872 s,@ECHO_LT@,$ECHO_LT,;t t
25873 s,@ECHO_LD@,$ECHO_LD,;t t
25874 s,@RULE_CC@,$RULE_CC,;t t
25875 s,@SHOW_CC@,$SHOW_CC,;t t
25876 s,@ECHO_CC@,$ECHO_CC,;t t
25877 s,@ECHO_LINK@,$ECHO_LINK,;t t
25878 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
25879 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
25880 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
25881 s,@ADAFLAGS@,$ADAFLAGS,;t t
25882 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
25883 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
25884 s,@ADA_TRACE@,$ADA_TRACE,;t t
25885 s,@MATH_LIB@,$MATH_LIB,;t t
25886 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
25887 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
25888 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
25889 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
25890 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
25891 s,@TEST_LIBS@,$TEST_LIBS,;t t
25892 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
25893 s,@CXXCPP@,$CXXCPP,;t t
25894 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
25895 s,@CXX_AR@,$CXX_AR,;t t
25896 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
25897 s,@CXXLIBS@,$CXXLIBS,;t t
25898 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
25899 s,@gnatmake_exists@,$gnatmake_exists,;t t
25900 s,@gprconfig_exists@,$gprconfig_exists,;t t
25901 s,@M4_exists@,$M4_exists,;t t
25902 s,@cf_ada_make@,$cf_ada_make,;t t
25903 s,@cf_ada_config@,$cf_ada_config,;t t
25904 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
25905 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
25906 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
25907 s,@cf_compile_generics@,$cf_compile_generics,;t t
25908 s,@cf_generic_objects@,$cf_generic_objects,;t t
25909 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
25910 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
25911 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
25912 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
25913 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
25914 s,@cf_ada_package@,$cf_ada_package,;t t
25915 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
25916 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
25917 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
25918 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
25919 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
25920 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
25921 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
25922 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
25923 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
25924 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
25925 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
25926 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
25927 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
25928 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
25929 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
25930 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
25931 s,@TICS_LIBS@,$TICS_LIBS,;t t
25932 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
25933 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
25934 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
25935 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
25936 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
25937 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
25938 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
25939 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
25940 s,@includesubdir@,$includesubdir,;t t
25941 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
25942 s,@TICS_LIST@,$TICS_LIST,;t t
25943 s,@TINFO_LIST@,$TINFO_LIST,;t t
25944 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
25945 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
25946 s,@TEST_ARGS@,$TEST_ARGS,;t t
25947 s,@TEST_DEPS@,$TEST_DEPS,;t t
25948 s,@TEST_ARG2@,$TEST_ARG2,;t t
25949 s,@TEST_DEP2@,$TEST_DEP2,;t t
25950 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
25951 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
25952 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
25953 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
25954 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
25955 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
25956 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
25957 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
25958 s,@cross_compiling@,$cross_compiling,;t t
25959 s,@TIC_PATH@,$TIC_PATH,;t t
25960 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
25961 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
25962 s,@PANEL_NAME@,$PANEL_NAME,;t t
25963 s,@MENU_NAME@,$MENU_NAME,;t t
25964 s,@FORM_NAME@,$FORM_NAME,;t t
25965 s,@CXX_NAME@,$CXX_NAME,;t t
25966 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
25967 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
25968 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
25969 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
25970 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
25971 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
25972 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
25973 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
25974 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
25979 cat >>$CONFIG_STATUS <<\EOF
25980 # Split the substitutions into bite-sized pieces for seds with
25981 # small command number limits, like on Digital OSF/1 and HP-UX.
25982 ac_max_sed_lines=48
25983 ac_sed_frag=1 # Number of current file.
25984 ac_beg=1 # First line for current file.
25985 ac_end=$ac_max_sed_lines # Line after last line for current file.
25988 while $ac_more_lines; do
25989 if test $ac_beg -gt 1; then
25990 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25992 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25994 if test ! -s $tmp/subs.frag; then
25995 ac_more_lines=false
25997 # The purpose of the label and of the branching condition is to
25998 # speed up the sed processing (if there are no `@' at all, there
25999 # is no need to browse any of the substitutions).
26000 # These are the two extra sed commands mentioned above.
26002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26003 # It is possible to make a multiline substitution using escaped newlines.
26004 # Ensure that we do not split the substitution between script fragments.
26006 ac_END=`expr $ac_end + $ac_max_sed_lines`
26007 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
26008 if test -s $tmp/subs.next; then
26009 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
26010 if test ! -s $tmp/subs.edit; then
26011 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
26012 if test ! -s $tmp/subs.edit; then
26013 if test $ac_beg -gt 1; then
26014 ac_end=`expr $ac_end - 1`
26021 if test -z "$ac_sed_cmds"; then
26022 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26024 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26026 ac_sed_frag=`expr $ac_sed_frag + 1`
26028 ac_end=`expr $ac_end + $ac_max_sed_lines`
26031 if test -z "$ac_sed_cmds"; then
26034 fi # test -n "$CONFIG_FILES"
26037 cat >>$CONFIG_STATUS <<\EOF
26038 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26041 - | *:- | *:-:* ) # input from stdin
26043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26047 * ) ac_file_in=$ac_file.in ;;
26050 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26051 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26052 X"$ac_file" : 'X\(//\)[^/]' \| \
26053 X"$ac_file" : 'X\(//\)$' \| \
26054 X"$ac_file" : 'X\(/\)' \| \
26055 . : '\(.\)' 2>/dev/null ||
26057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26059 /^X\(\/\/\)$/{ s//\1/; q; }
26060 /^X\(\/\).*/{ s//\1/; q; }
26062 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
26063 { case "$ac_dir" in
26064 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26068 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26069 case $as_mkdir_dir in
26070 # Skip DOS drivespec
26071 ?:) as_incr_dir=$as_mkdir_dir ;;
26073 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26074 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26079 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
26080 # A "../" for each directory in $ac_dir_suffix.
26081 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
26083 ac_dir_suffix= ac_dots=
26088 if test -z "$ac_dots"; then
26091 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
26093 [\\/]* | ?:[\\/]* )
26094 ac_srcdir=$srcdir$ac_dir_suffix;
26095 ac_top_srcdir=$srcdir ;;
26096 *) # Relative path.
26097 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
26098 ac_top_srcdir=$ac_dots$srcdir ;;
26102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26103 *) ac_INSTALL=$ac_dots$INSTALL ;;
26106 if test x"$ac_file" != x-; then
26107 { echo "$as_me:26107: creating $ac_file" >&5
26108 echo "$as_me: creating $ac_file" >&6;}
26111 # Let's still pretend it is `configure' which instantiates (i.e., don't
26112 # use $as_me), people would be surprised to read:
26113 # /* config.h. Generated automatically by config.status. */
26114 configure_input="Generated automatically from `echo $ac_file_in |
26115 sed 's,.*/,,'` by configure."
26117 # First look for the input files in the build tree, otherwise in the
26119 ac_file_inputs=`IFS=:
26120 for f in $ac_file_in; do
26122 -) echo $tmp/stdin ;;
26124 # Absolute (can't be DOS-style, as IFS=:)
26125 test -f "$f" || { { echo "$as_me:26125: error: cannot find input file: $f" >&5
26126 echo "$as_me: error: cannot find input file: $f" >&2;}
26127 { (exit 1); exit 1; }; }
26130 if test -f "$f"; then
26133 elif test -f "$srcdir/$f"; then
26138 { { echo "$as_me:26138: error: cannot find input file: $f" >&5
26139 echo "$as_me: error: cannot find input file: $f" >&2;}
26140 { (exit 1); exit 1; }; }
26143 done` || { (exit 1); exit 1; }
26145 cat >>$CONFIG_STATUS <<\EOF
26146 ac_warn_datarootdir=no
26147 if test x"$ac_file" != x-; then
26148 for ac_item in $ac_file_inputs
26150 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
26151 if test -n "$ac_seen"; then
26152 ac_used=`grep '@datarootdir@' $ac_item`
26153 if test -z "$ac_used"; then
26154 { echo "$as_me:26154: WARNING: datarootdir was used implicitly but not set:
26156 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
26158 ac_warn_datarootdir=yes
26161 ac_seen=`grep '${datarootdir}' $ac_item`
26162 if test -n "$ac_seen"; then
26163 { echo "$as_me:26163: WARNING: datarootdir was used explicitly but not set:
26165 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
26167 ac_warn_datarootdir=yes
26172 if test "x$ac_warn_datarootdir" = xyes; then
26173 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
26177 cat >>$CONFIG_STATUS <<EOF
26181 cat >>$CONFIG_STATUS <<\EOF
26183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26184 s,@configure_input@,$configure_input,;t t
26185 s,@srcdir@,$ac_srcdir,;t t
26186 s,@top_srcdir@,$ac_top_srcdir,;t t
26187 s,@INSTALL@,$ac_INSTALL,;t t
26188 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26190 if test x"$ac_file" != x-; then
26191 cp $tmp/out $ac_file
26193 for ac_name in prefix exec_prefix datarootdir
26195 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
26196 if test -n "$ac_seen"; then
26197 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
26198 if test -z "$ac_init"; then
26199 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
26200 { echo "$as_me:26200: WARNING: Variable $ac_name is used but was not set:
26202 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
26207 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
26208 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
26209 if test -s $tmp/out; then
26210 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
26211 { echo "$as_me:26211: WARNING: Some variables may not be substituted:
26213 echo "$as_me: WARNING: Some variables may not be substituted:
26223 cat >>$CONFIG_STATUS <<\EOF
26226 # CONFIG_HEADER section.
26229 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26230 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26232 # ac_d sets the value in "#define NAME VALUE" lines.
26233 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26234 ac_dB='[ ].*$,\1#\2'
26237 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
26238 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26239 ac_iB='\([ ]\),\1#\2define\3'
26242 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26243 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26244 ac_uB='$,\1#\2define\3'
26248 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26249 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26251 - | *:- | *:-:* ) # input from stdin
26253 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26255 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26257 * ) ac_file_in=$ac_file.in ;;
26260 test x"$ac_file" != x- && { echo "$as_me:26260: creating $ac_file" >&5
26261 echo "$as_me: creating $ac_file" >&6;}
26263 # First look for the input files in the build tree, otherwise in the
26265 ac_file_inputs=`IFS=:
26266 for f in $ac_file_in; do
26268 -) echo $tmp/stdin ;;
26270 # Absolute (can't be DOS-style, as IFS=:)
26271 test -f "$f" || { { echo "$as_me:26271: error: cannot find input file: $f" >&5
26272 echo "$as_me: error: cannot find input file: $f" >&2;}
26273 { (exit 1); exit 1; }; }
26276 if test -f "$f"; then
26279 elif test -f "$srcdir/$f"; then
26284 { { echo "$as_me:26284: error: cannot find input file: $f" >&5
26285 echo "$as_me: error: cannot find input file: $f" >&2;}
26286 { (exit 1); exit 1; }; }
26289 done` || { (exit 1); exit 1; }
26290 # Remove the trailing spaces.
26291 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26295 # Transform confdefs.h into a list of #define's. We won't use it as a sed
26296 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
26297 # be either 'cat' or 'sort'.
26298 cat confdefs.h | uniq >conftest.vals
26300 # Break up conftest.vals because some shells have a limit on
26301 # the size of here documents, and old seds have small limits too.
26303 rm -f conftest.tail
26304 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
26305 while grep . conftest.vals >/dev/null
26307 # Write chunks of a limited-size here document to conftest.frag.
26308 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
26309 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
26310 echo 'CEOF' >> $CONFIG_STATUS
26311 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
26312 rm -f conftest.vals
26313 mv conftest.tail conftest.vals
26315 rm -f conftest.vals
26317 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
26319 echo ' cat >> conftest.edit <<CEOF
26320 /@DEFS@/r conftest.frag
26323 sed -f conftest.edit $tmp/in > $tmp/out
26325 mv $tmp/out $tmp/in
26326 rm -f conftest.edit conftest.frag
26327 ' >> $CONFIG_STATUS
26329 cat >>$CONFIG_STATUS <<\EOF
26330 # Let's still pretend it is `configure' which instantiates (i.e., don't
26331 # use $as_me), people would be surprised to read:
26332 # /* config.h. Generated automatically by config.status. */
26333 if test x"$ac_file" = x-; then
26334 echo "/* Generated automatically by configure. */" >$tmp/config.h
26336 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
26338 cat $tmp/in >>$tmp/config.h
26340 if test x"$ac_file" != x-; then
26341 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
26342 { echo "$as_me:26342: $ac_file is unchanged" >&5
26343 echo "$as_me: $ac_file is unchanged" >&6;}
26345 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26346 X"$ac_file" : 'X\(//\)[^/]' \| \
26347 X"$ac_file" : 'X\(//\)$' \| \
26348 X"$ac_file" : 'X\(/\)' \| \
26349 . : '\(.\)' 2>/dev/null ||
26351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26353 /^X\(\/\/\)$/{ s//\1/; q; }
26354 /^X\(\/\).*/{ s//\1/; q; }
26356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
26357 { case "$ac_dir" in
26358 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26362 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26363 case $as_mkdir_dir in
26364 # Skip DOS drivespec
26365 ?:) as_incr_dir=$as_mkdir_dir ;;
26367 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26368 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26375 mv $tmp/config.h $ac_file
26379 rm -f $tmp/config.h
26383 cat >>$CONFIG_STATUS <<\EOF
26385 # CONFIG_COMMANDS section.
26387 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26388 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26389 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26393 if test "x$cf_with_tests" != xno ; then
26397 if test ! -d $srcdir/$cf_dir; then
26399 elif test -f $srcdir/$cf_dir/programs; then
26400 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
26406 cf_prefix=$LIB_PREFIX
26408 case $cf_cv_shlib_version in
26409 (cygdll|msysdll|mingw)
26410 TINFO_NAME=$TINFO_ARG_SUFFIX
26415 if test -n "$TINFO_SUFFIX" ; then
26416 case $TINFO_SUFFIX in
26418 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
26419 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
26422 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
26423 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
26426 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
26427 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
26432 for cf_dir in $SRC_SUBDIRS
26434 if test ! -d $srcdir/$cf_dir ; then
26436 elif test -f $srcdir/$cf_dir/modules; then
26441 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
26443 cf_awk_program="$cf_awk_program\
26444 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
26445 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
26449 if test "x$WILDCARD_SYMS" = xno
26451 cf_awk_program="$cf_awk_program\
26452 /[ ]_\\*;/ { skip=1; next; }\
26456 if test "x$cf_awk_program" != "x"
26458 cat >>$cf_dir/Makefile <<CF_EOF
26460 # Generated by CF_LIB_RULES
26461 resulting.map: $UNALTERED_SYMS
26462 $AWK 'BEGIN { skip = 1; last=""; } \
26464 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
26465 skip = 0; last = \$\$0; } \
26466 END { print last; }' < $UNALTERED_SYMS >\$@
26469 rm -f resulting.map
26473 for cf_item in $cf_LIST_MODELS
26479 cf_depsuf=$cf_suffix
26483 cf_depsuf=$cf_suffix
26487 cf_depsuf=$cf_suffix
26490 case $cf_cv_system_name in
26493 cf_depsuf=$cf_suffix
26495 (cygwin*|msys*|mingw*)
26501 cf_depsuf=$cf_suffix
26507 cf_depsuf=$cf_suffix
26511 cf_depsuf=$cf_suffix
26517 cf_depsuf=$cf_suffix
26523 cf_depsuf=$cf_suffix
26526 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
26528 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
26529 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
26533 test "$cf_dir" = c++ && cf_libname=ncurses++
26534 if test $cf_item = shared ; then
26535 if test -n "${LIB_SUFFIX}"
26537 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
26539 cf_shared_suffix="$cf_suffix"
26541 if test "$cf_cv_do_symlinks" = yes ; then
26544 case "$cf_cv_shlib_version" in
26546 cf_version_name=REL_VERSION
26549 cf_version_name=ABI_VERSION
26553 if test -n "$cf_version_name"
26555 case "$cf_cv_system_name" in
26558 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
26561 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
26565 if test -n "${USE_LIB_SUFFIX}"
26567 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
26569 cf_shared_suffix="$cf_suffix"
26572 # cygwin needs import library, and has unique naming convention
26573 # use autodetected ${cf_prefix} for import lib and static lib, but
26574 # use 'cyg' prefix for shared lib.
26575 case $cf_cv_shlib_version in
26577 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
26578 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
26581 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
26582 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
26585 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
26586 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
26592 if test -n "$cf_add_lib"
26594 Libs_To_Make="$Libs_To_Make $cf_add_lib"
26598 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
26599 Libs_To_Make="$Libs_To_Make $cf_add_lib"
26602 if test $cf_dir = ncurses ; then
26603 cf_subsets="$LIB_SUBSETS"
26604 cf_r_parts="$cf_subsets"
26605 cf_liblist="$Libs_To_Make"
26607 while test -n "$cf_r_parts"
26609 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
26610 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
26611 if test "$cf_l_parts" != "$cf_r_parts" ; then
26613 case $cf_l_parts in
26615 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
26618 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
26624 if test -n "$cf_add_lib"; then
26625 Libs_To_Make="$cf_add_lib $Libs_To_Make"
26632 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
26635 if test $cf_dir = c++; then
26636 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
26638 for cf_item in $Libs_To_Make
26644 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
26647 for cf_test in $cf_list
26649 if test "$cf_test" = "$cf_item"
26651 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
26656 test -n "$cf_item" && cf_list="$cf_list $cf_item"
26658 Libs_To_Make="$cf_list"
26662 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
26663 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
26664 $cf_dir/Makefile >$cf_dir/Makefile.out
26665 mv $cf_dir/Makefile.out $cf_dir/Makefile
26667 $AWK -f $srcdir/mk-0th.awk \
26668 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
26669 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
26671 for cf_subset in $cf_subsets
26674 for cf_item in $cf_LIST_MODELS
26677 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
26679 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26682 if test "$CXX_MODEL" = SHARED; then
26683 case $cf_cv_shlib_version in
26684 (cygdll|msysdll|mingw)
26685 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
26687 echo "${as_me:-configure}:26687: testing overriding CXX_MODEL to SHARED ..." 1>&5
26689 with_shared_cxx=yes
26692 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
26700 cf_depsuf=$cf_suffix
26704 cf_depsuf=$cf_suffix
26708 cf_depsuf=$cf_suffix
26711 case $cf_cv_system_name in
26714 cf_depsuf=$cf_suffix
26716 (cygwin*|msys*|mingw*)
26722 cf_depsuf=$cf_suffix
26728 cf_depsuf=$cf_suffix
26732 cf_depsuf=$cf_suffix
26738 cf_depsuf=$cf_suffix
26744 cf_depsuf=$cf_suffix
26747 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
26749 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
26750 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
26754 (libtool) cf_subdir='obj_lo' ;;
26755 (normal) cf_subdir='objects' ;;
26756 (debug) cf_subdir='obj_g' ;;
26757 (profile) cf_subdir='obj_p' ;;
26759 case $cf_cv_system_name in
26761 cf_subdir='objects' ;;
26763 cf_subdir='obj_s' ;;
26767 # Test for case where we build libtinfo with a different name.
26769 if test $cf_dir = ncurses ; then
26772 cf_libname=${cf_libname}$USE_LIB_SUFFIX
26775 cf_libname=$TINFO_LIB_SUFFIX
26778 cf_libname=$TICS_LIB_SUFFIX
26781 elif test $cf_dir = c++ ; then
26782 cf_libname=ncurses++$USE_LIB_SUFFIX
26784 cf_libname=${cf_libname}$USE_LIB_SUFFIX
26786 if test -n "${USE_ARG_SUFFIX}" ; then
26787 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
26788 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
26791 # These dependencies really are for development, not
26792 # builds, but they are useful in porting, too.
26793 cf_depend="../include/ncurses_cfg.h"
26794 if test "$srcdir" = "."; then
26797 cf_reldir="\${srcdir}"
26800 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
26801 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
26802 elif test -f $srcdir/$cf_dir/curses.priv.h; then
26803 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
26807 old_cf_suffix="$cf_suffix"
26808 if test "$cf_cv_shlib_version_infix" = yes ; then
26809 if test -n "$USE_LIB_SUFFIX" ; then
26810 case $USE_LIB_SUFFIX in
26812 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
26813 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
26814 cf_dir_suffix=tw$EXTRA_SUFFIX
26817 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
26818 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
26819 cf_dir_suffix=t$EXTRA_SUFFIX
26822 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
26823 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
26824 cf_dir_suffix=w$EXTRA_SUFFIX
26827 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
26828 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
26829 cf_dir_suffix=$EXTRA_SUFFIX
26835 $AWK -f $srcdir/mk-1st.awk \
26836 name=${cf_libname}${cf_dir_suffix} \
26837 traces=$LIB_TRACING \
26839 CXX_MODEL=$CXX_MODEL \
26841 prefix=$cf_prefix \
26842 suffix=$cf_suffix \
26843 subset=$cf_subset \
26844 driver=$cf_cv_term_driver \
26846 TermlibRoot=$TINFO_NAME \
26847 TermlibSuffix=$TINFO_SUFFIX \
26848 ShlibVer=$cf_cv_shlib_version \
26849 ShlibVerInfix=$cf_cv_shlib_version_infix \
26850 ReLink=${cf_cv_do_relink:-no} \
26851 ReRanlib=${cf_cv_do_reranlib:-yes} \
26852 DoLinks=$cf_cv_do_symlinks \
26853 rmSoLocs=$cf_cv_rm_so_locs \
26854 ldconfig="$LDCONFIG" \
26855 overwrite=$WITH_OVERWRITE \
26856 depend="$cf_depend" \
26858 libtool_version="$LIBTOOL_VERSION" \
26859 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
26861 cf_suffix="$old_cf_suffix"
26863 for cf_subdir2 in $cf_subdirs lib
26865 test $cf_subdir = $cf_subdir2 && break
26867 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
26868 $AWK -f $srcdir/mk-2nd.awk \
26870 traces=$LIB_TRACING \
26873 subset=$cf_subset \
26876 crenames=$cf_cv_prog_CC_c_o \
26877 cxxrenames=$cf_cv_prog_CXX_c_o \
26878 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
26879 cf_subdirs="$cf_subdirs $cf_subdir"
26884 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
26887 for cf_dir in $SRC_SUBDIRS
26889 if test ! -d $srcdir/$cf_dir ; then
26893 if test -f $cf_dir/Makefile ; then
26896 echo 'libs \' >> Makefile
26897 echo 'install.libs \' >> Makefile
26898 echo 'uninstall.libs ::' >> Makefile
26899 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
26904 if test -f $srcdir/$cf_dir/modules; then
26906 if test -f $srcdir/$cf_dir/headers; then
26907 cat >> Makefile <<CF_EOF
26908 install.includes \\
26909 uninstall.includes \\
26912 if test "$cf_dir" != "c++" ; then
26913 echo 'lint \' >> Makefile
26915 cat >> Makefile <<CF_EOF
26921 uninstall.$cf_dir ::
26922 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
26924 elif test -f $srcdir/$cf_dir/headers; then
26925 cat >> Makefile <<CF_EOF
26930 install.includes \\
26931 uninstall.includes ::
26932 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
26937 if test "x$cf_with_db_install" = xyes; then
26938 cat >> Makefile <<CF_EOF
26940 install.libs uninstall.libs \\
26941 install.data uninstall.data ::
26942 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
26945 cat >> Makefile <<CF_EOF
26947 install.libs uninstall.libs ::
26948 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
26952 if test "x$cf_with_manpages" = xyes; then
26953 cat >> Makefile <<CF_EOF
26957 cd man && \${MAKE} \${TOP_MFLAGS} \$@
26961 cat >> Makefile <<CF_EOF
26964 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
26965 rm -f headers.sh headers.sed mk_shared_lib.sh
26966 rm -f edit_man.* man_alias.*
26967 rm -rf \${DIRS_TO_MAKE}
26970 # Special case: tack's manpage lives in its own directory.
26971 if test "x$cf_with_manpages" = xyes; then
26972 if test "x$cf_with_tack" = "xyes"; then
26973 cat >> Makefile <<CF_EOF
26977 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
26982 rm -f headers.sed headers.sh
26984 echo creating headers.sh
26985 cat >headers.sh <<CF_EOF
26987 # This shell script is generated by the 'configure' script. It is invoked in a
26988 # subdirectory of the build tree. It generates a sed-script in the parent
26989 # directory that is used to adjust includes for header files that reside in a
26990 # subdirectory of /usr/include, etc.
26992 while test \$# != 3
26994 PRG="\$PRG \$1"; shift
26999 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
27000 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
27001 echo installing \$SRC in \$DST
27004 if test $WITH_CURSES_H = yes; then
27005 cat >>headers.sh <<CF_EOF
27008 END=\`basename \$DST\`
27009 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
27011 NAME=\`basename \$i\`
27012 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
27016 echo "" >> \$TMPSED
27022 cat >>headers.sh <<CF_EOF
27025 END=\`basename \$DST\`
27026 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
27028 NAME=\`basename \$i\`
27029 if test "\$NAME" = "curses.h"
27031 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
27034 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
27038 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
27043 cat >>headers.sh <<CF_EOF
27045 sed -f \$TMPSED \$SRC > \$TMPSRC
27046 NAME=\`basename \$SRC\`
27048 if test $WITH_CURSES_H != yes; then
27049 cat >>headers.sh <<CF_EOF
27050 test "\$NAME" = "curses.h" && NAME=ncurses.h
27053 cat >>headers.sh <<CF_EOF
27054 # Just in case someone gzip'd manpages, remove the conflicting copy.
27055 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
27057 eval \$PRG \$TMPSRC \$DST/\$NAME
27058 rm -f \$TMPSRC \$TMPSED
27061 chmod 0755 headers.sh
27063 for cf_dir in $SRC_SUBDIRS
27065 if test ! -d $srcdir/$cf_dir ; then
27069 if test -f $srcdir/$cf_dir/headers; then
27070 $AWK -f $srcdir/mk-hdr.awk \
27071 subset="$LIB_SUBSETS" \
27072 compat="$WITH_CURSES_H" \
27073 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
27076 if test -f $srcdir/$cf_dir/modules; then
27077 if test "$cf_dir" != "c++" ; then
27078 cat >>$cf_dir/Makefile <<"CF_EOF"
27079 depend : ${AUTO_SRC}
27080 makedepend -- ${CPPFLAGS} -- ${C_SRC}
27082 # DO NOT DELETE THIS LINE -- make depend depends on it.
27088 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
27089 if test -z "$USE_OLD_MAKERULES" ; then
27090 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
27098 cat >>$CONFIG_STATUS <<\EOF
27100 { (exit 0); exit 0; }
27102 chmod +x $CONFIG_STATUS
27103 ac_clean_files=$ac_clean_files_save
27105 # configure is writing to config.log, and then calls config.status.
27106 # config.status does its own redirection, appending to config.log.
27107 # Unfortunately, on DOS this fails, as config.log is still kept open
27108 # by configure, so config.status won't be able to write to it; its
27109 # output is simply discarded. So we exec the FD to /dev/null,
27110 # effectively closing config.log, so it can be properly (re)opened and
27111 # appended to by config.status. When coming back to configure, we
27112 # need to make the FD available again.
27113 if test "$no_create" != yes; then
27116 $SHELL $CONFIG_STATUS || ac_cs_success=false
27118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27119 # would make configure fail if this is the last instruction.
27120 $ac_cs_success || { (exit 1); exit 1; }
27122 ${MAKE:-make} preinstall