2 # From configure.in Revision: 1.716 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200802.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
615 ac_env_CXX_set=${CXX+set}
616 ac_env_CXX_value=$CXX
617 ac_cv_env_CXX_set=${CXX+set}
618 ac_cv_env_CXX_value=$CXX
619 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
620 ac_env_CXXFLAGS_value=$CXXFLAGS
621 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
623 ac_env_CXXCPP_set=${CXXCPP+set}
624 ac_env_CXXCPP_value=$CXXCPP
625 ac_cv_env_CXXCPP_set=${CXXCPP+set}
626 ac_cv_env_CXXCPP_value=$CXXCPP
629 # Report the --help message.
631 if test "$ac_init_help" = "long"; then
632 # Omit some internal or obsolete options to make the list less imposing.
633 # This message is too long to be a string in the A/UX 3.1 sh.
635 \`configure' configures this package to adapt to many kinds of systems.
637 Usage: $0 [OPTION]... [VAR=VALUE]...
639 To assign environment variables (e.g., CC, CFLAGS...), specify them as
640 VAR=VALUE. See below for descriptions of some of the useful variables.
642 Defaults for the options are specified in brackets.
645 -h, --help display this help and exit
646 --help=short display options specific to this package
647 --help=recursive display the short help of all the included packages
648 -V, --version display version information and exit
649 -q, --quiet, --silent do not print \`checking...' messages
650 --cache-file=FILE cache test results in FILE [disabled]
651 -C, --config-cache alias for \`--cache-file=config.cache'
652 -n, --no-create do not create output files
653 --srcdir=DIR find the sources in DIR [configure dir or \`..']
658 Installation directories:
659 --prefix=PREFIX install architecture-independent files in PREFIX
661 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 By default, \`make install' will install all the files in
665 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
666 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
667 for instance \`--prefix=\$HOME'.
669 For better control, use the options below.
671 Fine tuning of the installation directories:
672 --bindir=DIR user executables [EPREFIX/bin]
673 --sbindir=DIR system admin executables [EPREFIX/sbin]
674 --libexecdir=DIR program executables [EPREFIX/libexec]
675 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
676 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
677 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
678 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
679 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
680 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
681 --libdir=DIR object code libraries [EPREFIX/lib]
682 --includedir=DIR C header files [PREFIX/include]
683 --oldincludedir=DIR C header files for non-gcc [/usr/include]
684 --infodir=DIR info documentation [DATAROOTDIR/info]
685 --mandir=DIR man documentation [DATAROOTDIR/man]
691 --program-prefix=PREFIX prepend PREFIX to installed program names
692 --program-suffix=SUFFIX append SUFFIX to installed program names
693 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
696 --build=BUILD configure for building on BUILD [guessed]
697 --host=HOST build programs to run on HOST [BUILD]
698 --target=TARGET configure for building compilers for TARGET [HOST]
702 if test -n "$ac_init_help"; then
707 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
708 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
714 --with-rel-version=XXX override derived release version
715 --with-abi-version=XXX override derived ABI version
716 --with-system-type=XXX test: override derived host system-type
717 --without-ada suppress check for Ada compiler, don't build demo
718 --without-cxx do not adjust ncurses bool to match C++
719 --without-cxx-binding do not build C++ binding and demo
720 --disable-db-install suppress install of terminal database
721 --without-manpages suppress install of manpages
722 --without-progs suppress build/install with programs (e.g., tic)
723 --without-tack suppress build/install with tack program
724 --without-tests suppress build/install with test-programs
725 --without-curses-h install curses.h as ncurses.h only
726 --with-config-suffix=X suffixes ncursesXX-config file
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-pkg-config-libdir=XXX use given directory for installing pc-files
729 --enable-pc-files generate and install .pc files for pkg-config
730 --with-pc-suffix suffixes pc-files
731 --enable-mixed-case tic should assume mixed-case filenames
732 --with-install-prefix prefixes actual install-location ($DESTDIR)
733 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
734 --with-build-cc=XXX the build C compiler ($BUILD_CC)
735 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
736 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
737 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
738 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
739 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
740 Options to Specify the Libraries Built/Used:
741 --disable-libtool-version enable to use libtool's incompatible naming scheme
742 --with-libtool generate libraries with libtool
743 --with-shared generate shared-libraries
744 --with-normal generate normal-libraries (default)
745 --with-debug generate debug-libraries (default)
746 --with-profile generate profile-libraries
747 --with-cxx-shared generate C++ shared-libraries
748 --with-lib-prefix override library-prefix
749 --with-termlib generate separate terminfo library
750 --with-ticlib generate separate tic library
751 --enable-rpath use rpath option when generating shared libraries
752 --disable-relink relink shared libraries during install
753 --with-shlib-version=X Specify rel or abi version for shared libs
754 --with-libtool-opts=XXX specify additional libtool options
755 --with-export-syms=XXX limit exported symbols using libtool
756 --with-versioned-syms=X markup versioned symbols using ld
757 --with-gpm use Alessandro Rubini's GPM library
758 --without-dlsym do not use dlsym() to load GPM dynamically
759 --with-pcre2 use PCRE2 for regular-expressions
760 --with-sysmouse use sysmouse (FreeBSD console)
761 --disable-lib-suffixes disable library suffixes
762 --disable-rpath-hack don't add rpath options for additional libraries
763 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
764 Fine-Tuning Your Configuration:
765 --with-extra-suffix=X append extra suffix to header/library paths
766 --disable-overwrite put headers in subdir, omit link to -lcurses
767 --disable-database do not use terminfo, only fallbacks/termcap
768 --with-database=XXX specify terminfo source to install
769 --with-hashed-db specify hashed-database library
770 --with-fallbacks=XXX specify list of fallback terminal descriptions
771 --with-tic-path=XXX specify path of tic for fallbacks
772 --with-infocmp-path=XXX specify path of infocmp for fallbacks
773 --without-xterm-new specify if xterm terminfo should be old version
774 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
775 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
776 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
777 --disable-big-core assume machine has little memory
778 --disable-big-strings assume compiler has only standard-size strings
779 --enable-termcap compile in termcap fallback support
780 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
781 --enable-getcap fast termcap load, no xrefs to terminfo
782 --enable-getcap-cache cache translated termcaps in ~/.terminfo
783 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
784 --disable-root-environ restrict environment when running as root
785 --enable-symlinks make tic use symbolic links not hard links
786 --enable-broken_linker compile with broken-linker support code
787 --enable-bsdpad recognize BSD-style prefix padding
788 --enable-widec compile with wide-char/UTF-8 code
789 --disable-lp64 allow chtype to be long (ignore _LP64)
790 --disable-largefile omit support for large files
791 --disable-tparm-varargs compile tparm() without varargs interface
792 --disable-tic-depends link tic library without explicit dependency on ncurses library
793 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
794 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
795 --with-bool=TYPE override fallback type of bool variable
796 --with-caps=alt compile with alternate Caps file
797 --with-chtype=TYPE override type of chtype
798 --with-ospeed=TYPE override type of ospeed variable
799 --with-mmask-t=TYPE override type of mmask_t
800 --with-ccharw-max=XXX override size CCHARW_MAX
801 --enable-signed-char compile using signed Boolean's in term.h
802 --with-tparm-arg=TYPE override parameter type of tparm
803 --with-rcs-ids compile-in RCS identifiers
804 Options to Specify How Manpages are Installed:
805 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
806 optionally formatted/catonly, e.g., gzip,formatted
807 --with-manpage-renames specify manpage-renaming
808 --with-manpage-aliases specify manpage-aliases using .so
809 --with-manpage-symlinks specify manpage-aliases using symlinks
810 --with-manpage-tbl specify manpage processing with tbl
812 --disable-ext-funcs disable function-extensions
813 --enable-sp-funcs enable SCREEN-extensions
814 --enable-term-driver enable terminal-driver
815 --enable-const compile with extra/non-standard const
816 --enable-ext-colors compile for 256-color support
817 --enable-ext-mouse compile for extended mouse-encoding
818 --enable-ext-putwin compile with extended putwin/screendump
819 --enable-no-padding compile with $NCURSES_NO_PADDING code
820 --enable-sigwinch compile with SIGWINCH handler
821 --enable-tcap-names compile with user-definable terminal capabilities
823 --with-pthread use POSIX thread library
824 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
825 --enable-weak-symbols enable weak-symbols for pthreads
826 --enable-reentrant compile with reentrant code
827 --enable-opaque-curses make curses WINDOW, etc., "opaque"
828 --enable-opaque-form make form-library structures "opaque"
829 --enable-opaque-menu make menu-library structures "opaque"
830 --enable-opaque-panel make panel-library structures "opaque"
831 --with-wrap-prefix=XXX override prefix used for public variables
833 --without-develop disable development options
834 --enable-hard-tabs compile with hard-tabs code
835 --enable-xmc-glitch compile with support for xmc (magic-cookie)
837 --disable-assumed-color do not assume anything about default-colors
838 --disable-hashmap compile without hashmap scrolling-optimization
839 --enable-colorfgbg compile-in experimental $COLORFGBG code
840 --enable-fvisibility compile with -fvisibility=hidden
841 --enable-interop compile-in interop bindings
842 --enable-safe-sprintf compile with experimental safe-sprintf code
843 --disable-scroll-hints compile without scroll-hints code
844 --enable-wgetch-events compile with wgetch-events code
845 Testing/development Options:
846 --disable-echo do not display "compiling" commands
847 --disable-stripping do not strip (debug info) installed executables
848 --enable-warnings build: turn on GCC compiler warnings
849 --enable-string-hacks work around bogus compiler/loader warnings
850 --enable-assertions test: turn on generation of assertion code
851 --with-dmalloc test: use Gray Watson's dmalloc library
852 --with-dbmalloc test: use Conor Cahill's dbmalloc library
853 --with-valgrind test: use valgrind
854 --disable-leaks test: free permanent memory, analyze leaks
855 --enable-expanded test: generate functions for certain macros
856 --disable-macros test: use functions rather than macros
857 --with-trace test: add trace() function to all models of ncurses
858 --disable-gnat-projects test: disable GNAT projects even if usable
860 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
861 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
862 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
863 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
864 --with-ada-libname=XXX override default Ada library-name
865 --with-form-libname=XXX override form basename of library
866 --with-menu-libname=XXX override menu basename of library
867 --with-panel-libname=XXX override panel basename of library
868 --with-cxx-libname=XXX override ncurses++ basename of library
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
878 CXX C++ compiler command
879 CXXFLAGS C++ compiler flags
880 CXXCPP C++ preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
893 # A "../" for each directory in /$ac_subdir.
894 ac_dots=`echo $ac_subdir |
895 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
898 .) # No --srcdir option. We are building in place.
899 ac_sub_srcdir=$srcdir ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_sub_srcdir=$srcdir/$ac_subdir ;;
903 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
906 # Check for guested configure; otherwise get Cygnus style configure.
907 if test -f $ac_sub_srcdir/configure.gnu; then
909 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
910 elif test -f $ac_sub_srcdir/configure; then
912 $SHELL $ac_sub_srcdir/configure --help=recursive
913 elif test -f $ac_sub_srcdir/configure.ac ||
914 test -f $ac_sub_srcdir/configure.in; then
918 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
924 test -n "$ac_init_help" && exit 0
925 if $ac_init_version; then
928 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
929 Free Software Foundation, Inc.
930 This configure script is free software; the Free Software Foundation
931 gives unlimited permission to copy, distribute and modify it.
937 This file contains any messages produced by compilers while
938 running configure, to aid debugging if configure makes a mistake.
940 It was created by $as_me, which was
941 generated by GNU Autoconf 2.52.20200802. Invocation command line was
952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
964 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981 # Keep a trace of the command line.
982 # Strip out --no-create and --no-recursion so they do not pile up.
983 # Also quote any args containing shell meta-characters.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c) ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
993 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
995 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
997 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1000 # Get rid of the leading space.
1003 # When interrupted or exit'd, cleanup temporary files, and complete
1004 # config.log. We remove comments because anyway the quotes in there
1005 # would cause problems or look ugly.
1006 trap 'exit_status=$?
1007 # Save into config.log some information that might help in debugging.
1009 echo "## ----------------- ##" >&5
1010 echo "## Cache variables. ##" >&5
1011 echo "## ----------------- ##" >&5
1013 # The following way of writing the cache mishandles newlines in values,
1016 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1019 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028 sed "/^$/d" confdefs.h >conftest.log
1029 if test -s conftest.log; then
1031 echo "## ------------ ##" >&5
1032 echo "## confdefs.h. ##" >&5
1033 echo "## ------------ ##" >&5
1035 cat conftest.log >&5
1038 test "$ac_signal" != 0 &&
1039 echo "$as_me: caught signal $ac_signal" >&5
1040 echo "$as_me: exit $exit_status" >&5
1041 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1044 for ac_signal in 1 2 13 15; do
1045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1050 rm -rf conftest* confdefs.h
1051 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1054 # Let the site file select an alternate cache file if it wants to.
1055 # Prefer explicitly selected file to automatically selected ones.
1056 if test -z "$CONFIG_SITE"; then
1057 if test "x$prefix" != xNONE; then
1058 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1060 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1063 for ac_site_file in $CONFIG_SITE; do
1064 if test -r "$ac_site_file"; then
1065 { echo "$as_me:1065: loading site script $ac_site_file" >&5
1066 echo "$as_me: loading site script $ac_site_file" >&6;}
1067 cat "$ac_site_file" >&5
1072 if test -r "$cache_file"; then
1073 # Some versions of bash will fail to source /dev/null (special
1074 # files actually), so we avoid doing that.
1075 if test -f "$cache_file"; then
1076 { echo "$as_me:1076: loading cache $cache_file" >&5
1077 echo "$as_me: loading cache $cache_file" >&6;}
1079 [\\/]* | ?:[\\/]* ) . $cache_file;;
1080 *) . ./$cache_file;;
1084 { echo "$as_me:1084: creating cache $cache_file" >&5
1085 echo "$as_me: creating cache $cache_file" >&6;}
1089 # Check that the precious variables saved in the cache have kept the same
1091 ac_cache_corrupted=false
1092 for ac_var in `(set) 2>&1 |
1093 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1095 eval ac_new_set=\$ac_env_${ac_var}_set
1096 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1097 eval ac_new_val="\$ac_env_${ac_var}_value"
1098 case $ac_old_set,$ac_new_set in
1100 { echo "$as_me:1100: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1101 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1102 ac_cache_corrupted=: ;;
1104 { echo "$as_me:1104: error: \`$ac_var' was not set in the previous run" >&5
1105 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1106 ac_cache_corrupted=: ;;
1109 if test "x$ac_old_val" != "x$ac_new_val"; then
1110 { echo "$as_me:1110: error: \`$ac_var' has changed since the previous run:" >&5
1111 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1112 { echo "$as_me:1112: former value: $ac_old_val" >&5
1113 echo "$as_me: former value: $ac_old_val" >&2;}
1114 { echo "$as_me:1114: current value: $ac_new_val" >&5
1115 echo "$as_me: current value: $ac_new_val" >&2;}
1116 ac_cache_corrupted=:
1119 # Pass precious variables to config.status. It doesn't matter if
1120 # we pass some twice (in addition to the command line arguments).
1121 if test "$ac_new_set" = set; then
1123 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1125 ac_configure_args="$ac_configure_args '$ac_arg'"
1127 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1132 if $ac_cache_corrupted; then
1133 { echo "$as_me:1133: error: changes in the environment can compromise the build" >&5
1134 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1135 { { echo "$as_me:1135: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1136 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1137 { (exit 1); exit 1; }; }
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1145 ac_main_return=return
1147 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1148 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1153 echo "#! $SHELL" >conftest.sh
1154 echo "exit 0" >>conftest.sh
1155 chmod +x conftest.sh
1156 if { (echo "$as_me:1156: PATH=\".;.\"; conftest.sh") >&5
1157 (PATH=".;."; conftest.sh) 2>&5
1159 echo "$as_me:1159: \$? = $ac_status" >&5
1160 (exit $ac_status); }; then
1161 ac_path_separator=';'
1165 PATH_SEPARATOR="$ac_path_separator"
1168 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1172 echo "$as_me:1172: checking for egrep" >&5
1173 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1174 if test "${ac_cv_prog_egrep+set}" = set; then
1175 echo $ECHO_N "(cached) $ECHO_C" >&6
1177 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1178 then ac_cv_prog_egrep='grep -E'
1179 else ac_cv_prog_egrep='egrep'
1182 echo "$as_me:1182: result: $ac_cv_prog_egrep" >&5
1183 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1184 EGREP=$ac_cv_prog_egrep
1186 test -z "$EGREP" && { { echo "$as_me:1186: error: No egrep program found" >&5
1187 echo "$as_me: error: No egrep program found" >&2;}
1188 { (exit 1); exit 1; }; }
1190 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1191 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1192 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1193 cf_cv_abi_version=${NCURSES_MAJOR}
1194 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1195 cf_cv_timestamp=`date`
1196 echo "$as_me:1196: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1197 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1199 if test -f $srcdir/VERSION ; then
1200 echo "$as_me:1200: checking for package version" >&5
1201 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1203 # if there are not enough fields, cut returns the last one...
1204 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1205 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1206 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1208 # this is how CF_BUNDLED_INTL uses $VERSION:
1209 VERSION="$cf_field1"
1211 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1212 test -z "$VERSION_MAJOR" && { { echo "$as_me:1212: error: missing major-version" >&5
1213 echo "$as_me: error: missing major-version" >&2;}
1214 { (exit 1); exit 1; }; }
1216 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1217 test -z "$VERSION_MINOR" && { { echo "$as_me:1217: error: missing minor-version" >&5
1218 echo "$as_me: error: missing minor-version" >&2;}
1219 { (exit 1); exit 1; }; }
1221 echo "$as_me:1221: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1222 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1224 echo "$as_me:1224: checking for package patch date" >&5
1225 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1226 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1227 case .$VERSION_PATCH in
1229 { { echo "$as_me:1229: error: missing patch-date $VERSION_PATCH" >&5
1230 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1231 { (exit 1); exit 1; }; }
1233 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1236 { { echo "$as_me:1236: error: illegal patch-date $VERSION_PATCH" >&5
1237 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1238 { (exit 1); exit 1; }; }
1241 echo "$as_me:1241: result: $VERSION_PATCH" >&5
1242 echo "${ECHO_T}$VERSION_PATCH" >&6
1244 { { echo "$as_me:1244: error: did not find $srcdir/VERSION" >&5
1245 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1246 { (exit 1); exit 1; }; }
1249 # show the actual data that we have for versions:
1250 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1252 echo "${as_me:-configure}:1252: testing ABI VERSION $VERSION ..." 1>&5
1254 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1256 echo "${as_me:-configure}:1256: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1258 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1260 echo "${as_me:-configure}:1260: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1262 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1264 echo "${as_me:-configure}:1264: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1269 cat >>confdefs.h <<EOF
1270 #define PACKAGE "$PACKAGE"
1273 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1275 cat >>confdefs.h <<EOF
1276 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1279 cat >>confdefs.h <<EOF
1280 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1283 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1285 # Check whether --with-rel-version or --without-rel-version was given.
1286 if test "${with_rel_version+set}" = set; then
1287 withval="$with_rel_version"
1288 { echo "$as_me:1288: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1289 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1290 cf_cv_rel_version=$withval
1293 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1294 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1296 if test -n "$NCURSES_MAJOR" ; then
1297 case $NCURSES_MAJOR in
1301 { { echo "$as_me:1301: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1302 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1303 { (exit 1); exit 1; }; }
1307 { { echo "$as_me:1307: error: Release major-version value is empty" >&5
1308 echo "$as_me: error: Release major-version value is empty" >&2;}
1309 { (exit 1); exit 1; }; }
1312 if test -n "$NCURSES_MINOR" ; then
1313 case $NCURSES_MINOR in
1317 { { echo "$as_me:1317: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1318 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1319 { (exit 1); exit 1; }; }
1323 { { echo "$as_me:1323: error: Release minor-version value is empty" >&5
1324 echo "$as_me: error: Release minor-version value is empty" >&2;}
1325 { (exit 1); exit 1; }; }
1328 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1330 # Check whether --with-abi-version or --without-abi-version was given.
1331 if test "${with_abi_version+set}" = set; then
1332 withval="$with_abi_version"
1334 if test "x$cf_cv_abi_version" != "x$withval"
1336 { echo "$as_me:1336: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1337 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1338 case $cf_cv_rel_version in
1340 cf_cv_rel_version=$withval.0
1343 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1347 cf_cv_abi_version=$withval
1350 if test -n "$cf_cv_abi_version" ; then
1351 case $cf_cv_abi_version in
1355 { { echo "$as_me:1355: error: ABI version is not a number: $cf_cv_abi_version" >&5
1356 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1357 { (exit 1); exit 1; }; }
1361 { { echo "$as_me:1361: error: ABI version value is empty" >&5
1362 echo "$as_me: error: ABI version value is empty" >&2;}
1363 { (exit 1); exit 1; }; }
1366 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1368 case $cf_cv_rel_version in
1370 cf_cv_rel_version=$with_abi_version.0
1376 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377 if test -f $ac_dir/install-sh; then
1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1381 elif test -f $ac_dir/install.sh; then
1383 ac_install_sh="$ac_aux_dir/install.sh -c"
1385 elif test -f $ac_dir/shtool; then
1387 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:1392: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394 { (exit 1); exit 1; }; }
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:1402: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:1406: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:1415: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:1419: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:1424: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:1431: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:1440: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:1445: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1453 echo "$as_me:1453: checking target system type" >&5
1454 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1455 if test "${ac_cv_target+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 ac_cv_target_alias=$target_alias
1459 test "x$ac_cv_target_alias" = "x" &&
1460 ac_cv_target_alias=$ac_cv_host_alias
1461 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1462 { { echo "$as_me:1462: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:1467: result: $ac_cv_target" >&5
1468 echo "${ECHO_T}$ac_cv_target" >&6
1469 target=$ac_cv_target
1470 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474 # The aliases save the names the user supplied, while $host etc.
1475 # will get canonicalized.
1476 test -n "$target_alias" &&
1477 test "$program_prefix$program_suffix$program_transform_name" = \
1479 program_prefix=${target_alias}-
1480 system_name="$host_os"
1482 system_name="`(uname -s -r) 2>/dev/null`"
1483 if test -z "$system_name" ; then
1484 system_name="`(hostname) 2>/dev/null`"
1487 test -n "$system_name" &&
1488 cat >>confdefs.h <<EOF
1489 #define SYSTEM_NAME "$system_name"
1492 if test "${cf_cv_system_name+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 cf_cv_system_name="$system_name"
1498 test -z "$system_name" && system_name="$cf_cv_system_name"
1499 test -n "$cf_cv_system_name" && echo "$as_me:1499: result: Configuring for $cf_cv_system_name" >&5
1500 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1502 if test ".$system_name" != ".$cf_cv_system_name" ; then
1503 echo "$as_me:1503: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1504 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1505 { { echo "$as_me:1505: error: \"Please remove config.cache and try again.\"" >&5
1506 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1507 { (exit 1); exit 1; }; }
1510 # Check whether --with-system-type or --without-system-type was given.
1511 if test "${with_system_type+set}" = set; then
1512 withval="$with_system_type"
1513 { echo "$as_me:1513: WARNING: overriding system type to $withval" >&5
1514 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1515 cf_cv_system_name=$withval
1520 ### Save the given $CFLAGS to allow user-override.
1521 cf_user_CFLAGS="$CFLAGS"
1523 ### Default install-location
1525 echo "$as_me:1525: checking for prefix" >&5
1526 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1527 if test "x$prefix" = "xNONE" ; then
1528 case "$cf_cv_system_name" in
1529 # non-vendor systems don't have a conflict
1530 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1533 (*) prefix=$ac_default_prefix
1537 echo "$as_me:1537: result: $prefix" >&5
1538 echo "${ECHO_T}$prefix" >&6
1540 if test "x$prefix" = "xNONE" ; then
1541 echo "$as_me:1541: checking for default include-directory" >&5
1542 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1543 test -n "$verbose" && echo 1>&6
1546 $includedir/ncurses \
1548 $prefix/include/ncurses \
1549 /usr/local/include \
1550 /usr/local/include/ncurses \
1552 /usr/include/ncurses
1554 cf_dir=`eval echo $cf_symbol`
1555 if test -f $cf_dir/curses.h ; then
1556 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1557 includedir="$cf_symbol"
1558 test -n "$verbose" && echo $ac_n " found " 1>&6
1562 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1564 echo "$as_me:1564: result: $includedir" >&5
1565 echo "${ECHO_T}$includedir" >&6
1568 ### Defaults for ncurses ABI
1570 case x$cf_cv_abi_version in
1572 cf_dft_ext_colors=yes
1573 cf_dft_ext_const=yes
1574 cf_dft_ext_mouse=yes
1575 cf_dft_ext_putwin=yes
1576 cf_dft_ext_spfuncs=yes
1577 cf_dft_filter_syms=yes
1578 cf_dft_chtype=uint32_t
1579 cf_dft_mmask_t=uint32_t
1581 cf_dft_tparm_arg=intptr_t
1582 cf_dft_with_lp64=yes
1585 cf_dft_ext_colors=no
1588 cf_dft_ext_putwin=no
1589 cf_dft_ext_spfuncs=no
1590 cf_dft_filter_syms=no
1594 cf_dft_tparm_arg=long
1599 ### Checks for programs.
1601 # Check whether --with-ada or --without-ada was given.
1602 if test "${with_ada+set}" = set; then
1604 cf_with_ada=$withval
1609 if test "x$cf_with_ada" = xyes
1611 cf_prog_cc="gnatgcc gcc cc"
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 ac_main_return=return
1622 if test -n "$ac_tool_prefix"; then
1623 for ac_prog in $cf_prog_cc
1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1627 echo "$as_me:1627: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 ac_save_IFS=$IFS; IFS=$ac_path_separator
1637 for ac_dir in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir=.
1640 $as_executable_p "$ac_dir/$ac_word" || continue
1641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1642 echo "$as_me:1642: found $ac_dir/$ac_word" >&5
1649 if test -n "$CC"; then
1650 echo "$as_me:1650: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1653 echo "$as_me:1653: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1657 test -n "$CC" && break
1660 if test -z "$CC"; then
1662 for ac_prog in $cf_prog_cc
1664 # Extract the first word of "$ac_prog", so it can be a program name with args.
1665 set dummy $ac_prog; ac_word=$2
1666 echo "$as_me:1666: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 ac_save_IFS=$IFS; IFS=$ac_path_separator
1676 for ac_dir in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 $as_executable_p "$ac_dir/$ac_word" || continue
1680 ac_cv_prog_ac_ct_CC="$ac_prog"
1681 echo "$as_me:1681: found $ac_dir/$ac_word" >&5
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:1689: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1692 echo "$as_me:1692: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1696 test -n "$ac_ct_CC" && break
1702 test -z "$CC" && { { echo "$as_me:1702: error: no acceptable cc found in \$PATH" >&5
1703 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1704 { (exit 1); exit 1; }; }
1706 # Provide some information about the compiler.
1707 echo "$as_me:1707:" \
1708 "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:1710: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:1715: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:1720: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1738 ac_clean_files_save=$ac_clean_files
1739 ac_clean_files="$ac_clean_files a.out a.exe"
1740 # Try to create an executable without -o first, disregard a.out.
1741 # It will help us diagnose broken compilers, and finding out an intuition
1743 echo "$as_me:1743: checking for C compiler default output" >&5
1744 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1745 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1746 if { (eval echo "$as_me:1746: \"$ac_link_default\"") >&5
1747 (eval $ac_link_default) 2>&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); }; then
1751 # Find the output, starting from the most likely. This scheme is
1752 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1754 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1755 ls a.out conftest 2>/dev/null;
1756 ls a.* conftest.* 2>/dev/null`; do
1758 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1759 a.out ) # We found the default executable, but exeext='' is most
1762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1763 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1770 echo "$as_me: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1772 { { echo "$as_me:1772: error: C compiler cannot create executables" >&5
1773 echo "$as_me: error: C compiler cannot create executables" >&2;}
1774 { (exit 77); exit 77; }; }
1777 ac_exeext=$ac_cv_exeext
1778 echo "$as_me:1778: result: $ac_file" >&5
1779 echo "${ECHO_T}$ac_file" >&6
1781 # Check the compiler produces executables we can run. If not, either
1782 # the compiler is broken, or we cross compile.
1783 echo "$as_me:1783: checking whether the C compiler works" >&5
1784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1786 # If not cross compiling, check that we can run a simple program.
1787 if test "$cross_compiling" != yes; then
1788 if { ac_try='./$ac_file'
1789 { (eval echo "$as_me:1789: \"$ac_try\"") >&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; }; then
1796 if test "$cross_compiling" = maybe; then
1799 { { echo "$as_me:1799: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&5
1801 echo "$as_me: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'." >&2;}
1803 { (exit 1); exit 1; }; }
1807 echo "$as_me:1807: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1810 rm -f a.out a.exe conftest$ac_cv_exeext
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:1814: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:1816: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1819 echo "$as_me:1819: checking for executable suffix" >&5
1820 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1821 if { (eval echo "$as_me:1821: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 { { echo "$as_me:1840: error: cannot compute EXEEXT: cannot compile and link" >&5
1841 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest$ac_cv_exeext
1846 echo "$as_me:1846: result: $ac_cv_exeext" >&5
1847 echo "${ECHO_T}$ac_cv_exeext" >&6
1849 rm -f conftest.$ac_ext
1850 EXEEXT=$ac_cv_exeext
1852 echo "$as_me:1852: checking for object suffix" >&5
1853 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1854 if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line 1858 "configure"
1859 #include "confdefs.h"
1869 rm -f conftest.o conftest.obj
1870 if { (eval echo "$as_me:1870: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>&5
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1883 echo "$as_me: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 { { echo "$as_me:1885: error: cannot compute OBJEXT: cannot compile" >&5
1886 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 echo "$as_me:1892: result: $ac_cv_objext" >&5
1893 echo "${ECHO_T}$ac_cv_objext" >&6
1894 OBJEXT=$ac_cv_objext
1896 echo "$as_me:1896: checking whether we are using the GNU C compiler" >&5
1897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 cat >conftest.$ac_ext <<_ACEOF
1902 #line 1902 "configure"
1903 #include "confdefs.h"
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:1917: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:1923: \"$ac_try\"") >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1934 rm -f conftest.$ac_objext conftest.$ac_ext
1935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1938 echo "$as_me:1938: result: $ac_cv_c_compiler_gnu" >&5
1939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1940 GCC=`test $ac_compiler_gnu = yes && echo yes`
1941 ac_test_CFLAGS=${CFLAGS+set}
1942 ac_save_CFLAGS=$CFLAGS
1944 echo "$as_me:1944: checking whether $CC accepts -g" >&5
1945 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1946 if test "${ac_cv_prog_cc_g+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line 1950 "configure"
1951 #include "confdefs.h"
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:1962: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:1968: \"$ac_try\"") >&5
1971 echo "$as_me:1971: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1979 rm -f conftest.$ac_objext conftest.$ac_ext
1981 echo "$as_me:1981: result: $ac_cv_prog_cc_g" >&5
1982 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1983 if test "$ac_test_CFLAGS" = set; then
1984 CFLAGS=$ac_save_CFLAGS
1985 elif test $ac_cv_prog_cc_g = yes; then
1986 if test "$GCC" = yes; then
1992 if test "$GCC" = yes; then
1998 # Some people use a C++ compiler to compile C. Since we use `exit',
1999 # in C++ we need to declare it. In case someone uses the same compiler
2000 # for both compiling C and C++ we need to have the C++ compiler decide
2001 # the declaration of exit, since it's the most demanding environment.
2002 cat >conftest.$ac_ext <<_ACEOF
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:2008: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:2014: \"$ac_try\"") >&5
2017 echo "$as_me:2017: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 for ac_declaration in \
2021 '#include <stdlib.h>' \
2022 'extern "C" void std::exit (int) throw (); using std::exit;' \
2023 'extern "C" void std::exit (int); using std::exit;' \
2024 'extern "C" void exit (int) throw ();' \
2025 'extern "C" void exit (int);' \
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:2042: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:2048: \"$ac_try\"") >&5
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 echo "$as_me: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2059 rm -f conftest.$ac_objext conftest.$ac_ext
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line 2061 "configure"
2062 #include "confdefs.h"
2072 rm -f conftest.$ac_objext
2073 if { (eval echo "$as_me:2073: \"$ac_compile\"") >&5
2074 (eval $ac_compile) 2>&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:2079: \"$ac_try\"") >&5
2082 echo "$as_me:2082: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2092 if test -n "$ac_declaration"; then
2093 echo '#ifdef __cplusplus' >>confdefs.h
2094 echo $ac_declaration >>confdefs.h
2095 echo '#endif' >>confdefs.h
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cpp='$CPP $CPPFLAGS'
2105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108 ac_main_return=return
2111 if test "$GCC" = yes ; then
2112 echo "$as_me:2112: checking version of $CC" >&5
2113 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2114 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2115 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2116 echo "$as_me:2116: result: $GCC_VERSION" >&5
2117 echo "${ECHO_T}$GCC_VERSION" >&6
2122 if test "$GCC" = yes ; then
2125 echo "$as_me:2125: checking if this is really Intel C compiler" >&5
2126 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2127 cf_save_CFLAGS="$CFLAGS"
2128 CFLAGS="$CFLAGS -no-gcc"
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line 2130 "configure"
2131 #include "confdefs.h"
2137 #ifdef __INTEL_COMPILER
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:2147: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2159 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2166 CFLAGS="$cf_save_CFLAGS"
2167 echo "$as_me:2167: result: $INTEL_COMPILER" >&5
2168 echo "${ECHO_T}$INTEL_COMPILER" >&6
2175 if test "$GCC" = yes ; then
2176 echo "$as_me:2176: checking if this is really Clang C compiler" >&5
2177 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2178 cf_save_CFLAGS="$CFLAGS"
2179 CFLAGS="$CFLAGS -Qunused-arguments"
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line 2181 "configure"
2182 #include "confdefs.h"
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:2198: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:2201: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:2204: \"$ac_try\"") >&5
2207 echo "$as_me:2207: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2210 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2217 CFLAGS="$cf_save_CFLAGS"
2218 echo "$as_me:2218: result: $CLANG_COMPILER" >&5
2219 echo "${ECHO_T}$CLANG_COMPILER" >&6
2222 echo "$as_me:2222: checking for $CC option to accept ANSI C" >&5
2223 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2224 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 ac_cv_prog_cc_stdc=no
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line 2230 "configure"
2231 #include "confdefs.h"
2234 #include <sys/types.h>
2235 #include <sys/stat.h>
2236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2237 struct buf { int x; };
2238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2239 static char *e (p, i)
2245 static char *f (char * (*g) (char **, int), char **p, ...)
2250 s = g (p, va_arg (v,int));
2254 int test (int i, double x);
2255 struct s1 {int (*f) (int a);};
2256 struct s2 {int (*f) (double a);};
2257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2268 # Don't try gcc -ansi; that turns off useful extensions and
2269 # breaks some systems' header files.
2270 # AIX -qlanglvl=ansi
2271 # Ultrix and OSF/1 -std1
2272 # HP-UX 10.20 and later -Ae
2273 # HP-UX older versions -Aa -D_HPUX_SOURCE
2274 # SVR4 -Xc -D__EXTENSIONS__
2275 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2277 CC="$ac_save_CC $ac_arg"
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:2279: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:2282: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:2285: \"$ac_try\"") >&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_cv_prog_cc_stdc=$ac_arg
2293 echo "$as_me: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 rm -f conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:2305: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:2308: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # This should have been defined by AC_PROG_CC
2316 echo "$as_me:2316: checking \$CFLAGS variable" >&5
2317 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2320 echo "$as_me:2320: result: broken" >&5
2321 echo "${ECHO_T}broken" >&6
2322 { echo "$as_me:2322: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2323 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2326 for cf_arg in $cf_flags
2332 cf_new_extra_cppflags=
2334 for cf_add_cflags in $cf_arg
2336 case $cf_fix_cppflags in
2338 case $cf_add_cflags in
2339 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2340 case $cf_add_cflags in
2342 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2344 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2345 && test -z "${cf_tst_cflags}" \
2346 && cf_fix_cppflags=yes
2348 if test $cf_fix_cppflags = yes ; then
2350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2354 elif test "${cf_tst_cflags}" = "\"'" ; then
2356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2367 case $cf_add_cflags in
2369 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2371 CPPFLAGS=`echo "$CPPFLAGS" | \
2372 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2373 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2378 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2379 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2386 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2387 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2394 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2395 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2399 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2400 && test -z "${cf_tst_cflags}" \
2401 && cf_fix_cppflags=no
2406 if test -n "$cf_new_cflags" ; then
2408 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2409 CFLAGS="${CFLAGS}$cf_new_cflags"
2413 if test -n "$cf_new_cppflags" ; then
2415 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2416 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2420 if test -n "$cf_new_extra_cppflags" ; then
2422 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2423 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2430 echo "$as_me:2430: result: ok" >&5
2431 echo "${ECHO_T}ok" >&6
2435 echo "$as_me:2435: checking \$CC variable" >&5
2436 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2439 echo "$as_me:2439: result: broken" >&5
2440 echo "${ECHO_T}broken" >&6
2441 { echo "$as_me:2441: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2442 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2444 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2445 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2447 for cf_arg in $cf_flags
2455 cf_new_extra_cppflags=
2457 for cf_add_cflags in $cf_arg
2459 case $cf_fix_cppflags in
2461 case $cf_add_cflags in
2462 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2463 case $cf_add_cflags in
2465 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2467 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2468 && test -z "${cf_tst_cflags}" \
2469 && cf_fix_cppflags=yes
2471 if test $cf_fix_cppflags = yes ; then
2473 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2474 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2477 elif test "${cf_tst_cflags}" = "\"'" ; then
2479 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2480 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2490 case $cf_add_cflags in
2492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2494 CPPFLAGS=`echo "$CPPFLAGS" | \
2495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2501 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2502 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2509 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2510 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2522 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2523 && test -z "${cf_tst_cflags}" \
2524 && cf_fix_cppflags=no
2529 if test -n "$cf_new_cflags" ; then
2531 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2532 CFLAGS="${CFLAGS}$cf_new_cflags"
2536 if test -n "$cf_new_cppflags" ; then
2538 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2539 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2543 if test -n "$cf_new_extra_cppflags" ; then
2545 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2546 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2556 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2558 echo "${as_me:-configure}:2558: testing resulting CC: '$CC' ..." 1>&5
2560 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2562 echo "${as_me:-configure}:2562: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2564 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2566 echo "${as_me:-configure}:2566: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2570 echo "$as_me:2570: result: ok" >&5
2571 echo "${ECHO_T}ok" >&6
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 ac_main_return=return
2581 echo "$as_me:2581: checking how to run the C preprocessor" >&5
2582 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2583 # On Suns, sometimes $CPP names a directory.
2584 if test -n "$CPP" && test -d "$CPP"; then
2587 if test -z "$CPP"; then
2588 if test "${ac_cv_prog_CPP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 # Double quotes because CPP needs to be expanded
2592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2595 for ac_c_preproc_warn_flag in '' yes
2597 # Use a header file that comes with gcc, so configuring glibc
2598 # with a fresh cross-compiler works.
2599 # On the NeXT, cc -E runs the code through the compiler's parser,
2600 # not just through cpp. "Syntax error" is here to catch this case.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line 2602 "configure"
2603 #include "confdefs.h"
2607 if { (eval echo "$as_me:2607: \"$ac_cpp conftest.$ac_ext\"") >&5
2608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2610 egrep -v '^ *\+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); } >/dev/null; then
2615 if test -s conftest.err; then
2616 ac_cpp_err=$ac_c_preproc_warn_flag
2623 if test -z "$ac_cpp_err"; then
2626 echo "$as_me: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 # Broken: fails on valid input.
2631 rm -f conftest.err conftest.$ac_ext
2633 # OK, works on sane cases. Now check whether non-existent headers
2634 # can be detected and how.
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line 2636 "configure"
2637 #include "confdefs.h"
2638 #include <ac_nonexistent.h>
2640 if { (eval echo "$as_me:2640: \"$ac_cpp conftest.$ac_ext\"") >&5
2641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643 egrep -v '^ *\+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:2646: \$? = $ac_status" >&5
2647 (exit $ac_status); } >/dev/null; then
2648 if test -s conftest.err; then
2649 ac_cpp_err=$ac_c_preproc_warn_flag
2656 if test -z "$ac_cpp_err"; then
2657 # Broken: success on invalid input.
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 # Passes both tests.
2666 rm -f conftest.err conftest.$ac_ext
2669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2670 rm -f conftest.err conftest.$ac_ext
2671 if $ac_preproc_ok; then
2683 echo "$as_me:2683: result: $CPP" >&5
2684 echo "${ECHO_T}$CPP" >&6
2686 for ac_c_preproc_warn_flag in '' yes
2688 # Use a header file that comes with gcc, so configuring glibc
2689 # with a fresh cross-compiler works.
2690 # On the NeXT, cc -E runs the code through the compiler's parser,
2691 # not just through cpp. "Syntax error" is here to catch this case.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line 2693 "configure"
2694 #include "confdefs.h"
2698 if { (eval echo "$as_me:2698: \"$ac_cpp conftest.$ac_ext\"") >&5
2699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701 egrep -v '^ *\+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:2704: \$? = $ac_status" >&5
2705 (exit $ac_status); } >/dev/null; then
2706 if test -s conftest.err; then
2707 ac_cpp_err=$ac_c_preproc_warn_flag
2714 if test -z "$ac_cpp_err"; then
2717 echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 # Broken: fails on valid input.
2722 rm -f conftest.err conftest.$ac_ext
2724 # OK, works on sane cases. Now check whether non-existent headers
2725 # can be detected and how.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line 2727 "configure"
2728 #include "confdefs.h"
2729 #include <ac_nonexistent.h>
2731 if { (eval echo "$as_me:2731: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 egrep -v '^ *\+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2747 if test -z "$ac_cpp_err"; then
2748 # Broken: success on invalid input.
2751 echo "$as_me: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 # Passes both tests.
2757 rm -f conftest.err conftest.$ac_ext
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2765 { { echo "$as_me:2765: error: C preprocessor \"$CPP\" fails sanity check" >&5
2766 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2767 { (exit 1); exit 1; }; }
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_main_return=return
2777 if test $ac_cv_c_compiler_gnu = yes; then
2778 echo "$as_me:2778: checking whether $CC needs -traditional" >&5
2779 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2780 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 ac_pattern="Autoconf.*'x'"
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2788 int Autoconf = TIOCGETP;
2790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2791 egrep "$ac_pattern" >/dev/null 2>&1; then
2792 ac_cv_prog_gcc_traditional=yes
2794 ac_cv_prog_gcc_traditional=no
2798 if test $ac_cv_prog_gcc_traditional = no; then
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line 2800 "configure"
2801 #include "confdefs.h"
2803 int Autoconf = TCGETA;
2805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2806 egrep "$ac_pattern" >/dev/null 2>&1; then
2807 ac_cv_prog_gcc_traditional=yes
2813 echo "$as_me:2813: result: $ac_cv_prog_gcc_traditional" >&5
2814 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2815 if test $ac_cv_prog_gcc_traditional = yes; then
2816 CC="$CC -traditional"
2820 echo "$as_me:2820: checking whether $CC understands -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2822 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 cat > conftest.$ac_ext <<CF_EOF
2829 ${cf_cv_main_return:-return}(0);
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2835 if { (eval echo "$as_me:2835: \"$ac_try\"") >&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 test -f conftest2.$ac_objext && { (eval echo "$as_me:2840: \"$ac_try\"") >&5
2843 echo "$as_me:2843: \$? = $ac_status" >&5
2844 (exit $ac_status); };
2846 eval cf_cv_prog_CC_c_o=yes
2848 eval cf_cv_prog_CC_c_o=no
2853 if test $cf_cv_prog_CC_c_o = yes; then
2854 echo "$as_me:2854: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6
2857 echo "$as_me:2857: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 if test "$cross_compiling" = yes ; then
2864 case "$cf_cv_system_name" in
2865 (dragonfly*|mirbsd*|freebsd*)
2866 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2868 (*) LDPATH=$PATH:/sbin:/usr/sbin
2869 # Extract the first word of "ldconfig", so it can be a program name with args.
2870 set dummy ldconfig; ac_word=$2
2871 echo "$as_me:2871: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2881 ac_save_IFS=$IFS; IFS=$ac_path_separator
2883 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if $as_executable_p "$ac_dir/$ac_word"; then
2887 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2888 echo "$as_me:2888: found $ac_dir/$ac_word" >&5
2896 LDCONFIG=$ac_cv_path_LDCONFIG
2898 if test -n "$LDCONFIG"; then
2899 echo "$as_me:2899: result: $LDCONFIG" >&5
2900 echo "${ECHO_T}$LDCONFIG" >&6
2902 echo "$as_me:2902: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2910 echo "$as_me:2910: checking if you want to ensure bool is consistent with C++" >&5
2911 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2913 # Check whether --with-cxx or --without-cxx was given.
2914 if test "${with_cxx+set}" = set; then
2916 cf_with_cxx=$withval
2920 echo "$as_me:2920: result: $cf_with_cxx" >&5
2921 echo "${ECHO_T}$cf_with_cxx" >&6
2922 if test "X$cf_with_cxx" = Xno ; then
2926 # with autoconf 2.13, we can change the error to a warning:
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:2938: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CXX+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CXX"; then
2944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2946 ac_save_IFS=$IFS; IFS=$ac_path_separator
2948 for ac_dir in $ac_dummy; do
2950 test -z "$ac_dir" && ac_dir=.
2951 $as_executable_p "$ac_dir/$ac_word" || continue
2952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:2953: found $ac_dir/$ac_word" >&5
2960 if test -n "$CXX"; then
2961 echo "$as_me:2961: result: $CXX" >&5
2962 echo "${ECHO_T}$CXX" >&6
2964 echo "$as_me:2964: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2968 test -n "$CXX" && break
2971 if test -z "$CXX"; then
2973 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 echo "$as_me:2977: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$ac_ct_CXX"; then
2983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2985 ac_save_IFS=$IFS; IFS=$ac_path_separator
2987 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 $as_executable_p "$ac_dir/$ac_word" || continue
2991 ac_cv_prog_ac_ct_CXX="$ac_prog"
2992 echo "$as_me:2992: found $ac_dir/$ac_word" >&5
2998 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2999 if test -n "$ac_ct_CXX"; then
3000 echo "$as_me:3000: result: $ac_ct_CXX" >&5
3001 echo "${ECHO_T}$ac_ct_CXX" >&6
3003 echo "$as_me:3003: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3007 test -n "$ac_ct_CXX" && break
3009 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3014 # Provide some information about the compiler.
3015 echo "$as_me:3015:" \
3016 "checking for C++ compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (eval echo "$as_me:3018: \"$ac_compiler --version </dev/null >&5\"") >&5
3019 (eval $ac_compiler --version </dev/null >&5) 2>&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:3023: \"$ac_compiler -v </dev/null >&5\"") >&5
3024 (eval $ac_compiler -v </dev/null >&5) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (eval echo "$as_me:3028: \"$ac_compiler -V </dev/null >&5\"") >&5
3029 (eval $ac_compiler -V </dev/null >&5) 2>&5
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); }
3034 echo "$as_me:3034: checking whether we are using the GNU C++ compiler" >&5
3035 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line 3040 "configure"
3041 #include "confdefs.h"
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:3055: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3058 echo "$as_me:3058: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:3061: \"$ac_try\"") >&5
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3072 rm -f conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3076 echo "$as_me:3076: result: $ac_cv_cxx_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3078 GXX=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CXXFLAGS=${CXXFLAGS+set}
3080 ac_save_CXXFLAGS=$CXXFLAGS
3082 echo "$as_me:3082: checking whether $CXX accepts -g" >&5
3083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3084 if test "${ac_cv_prog_cxx_g+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:3100: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:3103: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:3106: \"$ac_try\"") >&5
3109 echo "$as_me:3109: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_prog_cxx_g=yes
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:3119: result: $ac_cv_prog_cxx_g" >&5
3120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3121 if test "$ac_test_CXXFLAGS" = set; then
3122 CXXFLAGS=$ac_save_CXXFLAGS
3123 elif test $ac_cv_prog_cxx_g = yes; then
3124 if test "$GXX" = yes; then
3130 if test "$GXX" = yes; then
3136 for ac_declaration in \
3138 '#include <stdlib.h>' \
3139 'extern "C" void std::exit (int) throw (); using std::exit;' \
3140 'extern "C" void std::exit (int); using std::exit;' \
3141 'extern "C" void exit (int) throw ();' \
3142 'extern "C" void exit (int);' \
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line 3146 "configure"
3147 #include "confdefs.h"
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:3159: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:3165: \"$ac_try\"") >&5
3168 echo "$as_me:3168: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3176 rm -f conftest.$ac_objext conftest.$ac_ext
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line 3178 "configure"
3179 #include "confdefs.h"
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:3196: \"$ac_try\"") >&5
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3209 if test -n "$ac_declaration"; then
3210 echo '#ifdef __cplusplus' >>confdefs.h
3211 echo $ac_declaration >>confdefs.h
3212 echo '#endif' >>confdefs.h
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_main_return=return
3223 ac_cpp='$CXXCPP $CPPFLAGS'
3224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3227 ac_main_return=return
3229 if test "x$cf_with_cxx" != xno
3231 # Several of the C++ configurations do not work, particularly when
3232 # cross-compiling (20140913 -TD)
3233 echo "$as_me:3233: checking if $CXX works" >&5
3234 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3236 save_CPPFLAGS="$CPPFLAGS"
3237 eval cf_includedir=${includedir}
3238 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3240 cat >conftest.$ac_ext <<_ACEOF
3241 #line 3241 "configure"
3242 #include "confdefs.h"
3251 printf("Hello world!\n")
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:3264: \"$ac_try\"") >&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276 CPPFLAGS="$save_CPPFLAGS"
3278 echo "$as_me:3278: result: $cf_cxx_works" >&5
3279 echo "${ECHO_T}$cf_cxx_works" >&6
3280 if test "x$cf_cxx_works" = xno
3282 { echo "$as_me:3282: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3283 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3284 cf_with_cxx=no; CXX=""; GXX="";
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 ac_main_return=return
3294 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3295 if test "$CXX" = "g++" ; then
3296 # Extract the first word of "g++", so it can be a program name with args.
3297 set dummy g++; ac_word=$2
3298 echo "$as_me:3298: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_path_CXX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3308 ac_save_IFS=$IFS; IFS=$ac_path_separator
3310 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if $as_executable_p "$ac_dir/$ac_word"; then
3314 ac_cv_path_CXX="$ac_dir/$ac_word"
3315 echo "$as_me:3315: found $ac_dir/$ac_word" >&5
3325 if test -n "$CXX"; then
3326 echo "$as_me:3326: result: $CXX" >&5
3327 echo "${ECHO_T}$CXX" >&6
3329 echo "$as_me:3329: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3336 { echo "$as_me:3336: WARNING: You don't have any C++ compiler, too bad" >&5
3337 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3338 cf_with_cxx=no; CXX=""; GXX="";
3344 if test "$GXX" = yes; then
3345 echo "$as_me:3345: checking version of ${CXX:-g++}" >&5
3346 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3347 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3348 if test -z "$GXX_VERSION"
3353 echo "$as_me:3353: result: $GXX_VERSION" >&5
3354 echo "${ECHO_T}$GXX_VERSION" >&6
3357 case $GXX_VERSION in
3361 { echo "$as_me:3361: WARNING: templates do not work" >&5
3362 echo "$as_me: WARNING: templates do not work" >&2;}
3366 echo "$as_me:3366: checking if you want to build C++ binding and demo" >&5
3367 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3369 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3370 if test "${with_cxx_binding+set}" = set; then
3371 withval="$with_cxx_binding"
3372 cf_with_cxx_binding=$withval
3374 cf_with_cxx_binding=$cf_with_cxx
3376 echo "$as_me:3376: result: $cf_with_cxx_binding" >&5
3377 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3379 echo "$as_me:3379: checking if you want to build with Ada" >&5
3380 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3381 echo "$as_me:3381: result: $cf_with_ada" >&5
3382 echo "${ECHO_T}$cf_with_ada" >&6
3384 echo "$as_me:3384: checking if you want to install terminal database" >&5
3385 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3387 # Check whether --enable-db-install or --disable-db-install was given.
3388 if test "${enable_db_install+set}" = set; then
3389 enableval="$enable_db_install"
3390 cf_with_db_install=$enableval
3392 cf_with_db_install=yes
3394 echo "$as_me:3394: result: $cf_with_db_install" >&5
3395 echo "${ECHO_T}$cf_with_db_install" >&6
3397 echo "$as_me:3397: checking if you want to install manpages" >&5
3398 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3400 # Check whether --with-manpages or --without-manpages was given.
3401 if test "${with_manpages+set}" = set; then
3402 withval="$with_manpages"
3403 cf_with_manpages=$withval
3405 cf_with_manpages=yes
3407 echo "$as_me:3407: result: $cf_with_manpages" >&5
3408 echo "${ECHO_T}$cf_with_manpages" >&6
3410 echo "$as_me:3410: checking if you want to build programs such as tic" >&5
3411 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3413 # Check whether --with-progs or --without-progs was given.
3414 if test "${with_progs+set}" = set; then
3415 withval="$with_progs"
3416 cf_with_progs=$withval
3420 echo "$as_me:3420: result: $cf_with_progs" >&5
3421 echo "${ECHO_T}$cf_with_progs" >&6
3423 if test -f $srcdir/tack/tack.h; then
3424 if test "x$cross_compiling" = xyes ; then
3425 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3427 echo "${as_me:-configure}:3427: testing ignoring tack because we are cross-compiling ..." 1>&5
3431 echo "$as_me:3431: checking if you want to build the tack program" >&5
3432 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3434 # Check whether --with-tack or --without-tack was given.
3435 if test "${with_tack+set}" = set; then
3436 withval="$with_tack"
3437 cf_with_tack=$withval
3439 cf_with_tack=$cf_with_progs
3441 echo "$as_me:3441: result: $cf_with_tack" >&5
3442 echo "${ECHO_T}$cf_with_tack" >&6
3448 echo "$as_me:3448: checking if you want to build test-programs" >&5
3449 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3451 # Check whether --with-tests or --without-tests was given.
3452 if test "${with_tests+set}" = set; then
3453 withval="$with_tests"
3454 cf_with_tests=$withval
3458 echo "$as_me:3458: result: $cf_with_tests" >&5
3459 echo "${ECHO_T}$cf_with_tests" >&6
3461 echo "$as_me:3461: checking if you wish to install curses.h" >&5
3462 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3464 # Check whether --with-curses-h or --without-curses-h was given.
3465 if test "${with_curses_h+set}" = set; then
3466 withval="$with_curses_h"
3467 with_curses_h=$withval
3471 echo "$as_me:3471: result: $with_curses_h" >&5
3472 echo "${ECHO_T}$with_curses_h" >&6
3474 modules_to_build="ncurses"
3475 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3476 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3477 modules_to_build="$modules_to_build panel menu form"
3479 test "$program_prefix" != NONE &&
3480 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3484 # Double any \ or $. echo might interpret backslashes.
3485 # By default was `s,x,x', remove it if useless.
3486 cat <<\_ACEOF >conftest.sed
3487 s/[\\$]/&&/g;s/;s,x,x,$//
3489 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3492 for ac_prog in mawk gawk nawk awk
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 echo "$as_me:3496: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_AWK+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -n "$AWK"; then
3502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3504 ac_save_IFS=$IFS; IFS=$ac_path_separator
3506 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 $as_executable_p "$ac_dir/$ac_word" || continue
3510 ac_cv_prog_AWK="$ac_prog"
3511 echo "$as_me:3511: found $ac_dir/$ac_word" >&5
3518 if test -n "$AWK"; then
3519 echo "$as_me:3519: result: $AWK" >&5
3520 echo "${ECHO_T}$AWK" >&6
3522 echo "$as_me:3522: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3526 test -n "$AWK" && break
3529 test -z "$AWK" && { { echo "$as_me:3529: error: No awk program found" >&5
3530 echo "$as_me: error: No awk program found" >&2;}
3531 { (exit 1); exit 1; }; }
3533 echo "$as_me:3533: checking for egrep" >&5
3534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3535 if test "${ac_cv_prog_egrep+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3539 then ac_cv_prog_egrep='grep -E'
3540 else ac_cv_prog_egrep='egrep'
3543 echo "$as_me:3543: result: $ac_cv_prog_egrep" >&5
3544 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3545 EGREP=$ac_cv_prog_egrep
3547 test -z "$EGREP" && { { echo "$as_me:3547: error: No egrep program found" >&5
3548 echo "$as_me: error: No egrep program found" >&2;}
3549 { (exit 1); exit 1; }; }
3551 # Find a good install program. We prefer a C program (faster),
3552 # so one script is as good as another. But avoid the broken or
3553 # incompatible versions:
3554 # SysV /etc/install, /usr/sbin/install
3555 # SunOS /usr/etc/install
3556 # IRIX /sbin/install
3558 # AmigaOS /C/install, which installs bootblocks on floppy discs
3559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562 # ./install, which can be erroneously created by make from ./install.sh.
3563 echo "$as_me:3563: checking for a BSD compatible install" >&5
3564 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3565 if test -z "$INSTALL"; then
3566 if test "${ac_cv_path_install+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 ac_save_IFS=$IFS; IFS=$ac_path_separator
3570 for ac_dir in $PATH; do
3572 # Account for people who put trailing slashes in PATH elements.
3574 / | ./ | .// | /cC/* \
3575 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3578 # OSF1 and SCO ODT 3.0 have their own names for install.
3579 # Don't use installbsd from OSF since it installs stuff as root
3581 for ac_prog in ginstall scoinst install; do
3582 if $as_executable_p "$ac_dir/$ac_prog"; then
3583 if test $ac_prog = install &&
3584 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3585 # AIX install. It has an incompatible calling convention.
3587 elif test $ac_prog = install &&
3588 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3589 # program-specific install script used by HP pwplus--don't use.
3592 ac_cv_path_install="$ac_dir/$ac_prog -c"
3602 if test "${ac_cv_path_install+set}" = set; then
3603 INSTALL=$ac_cv_path_install
3605 # As a last resort, use the slow shell script. We don't cache a
3606 # path for INSTALL within a source directory, because that will
3607 # break other packages using the cache if that directory is
3608 # removed, or if the path is relative.
3609 INSTALL=$ac_install_sh
3612 echo "$as_me:3612: result: $INSTALL" >&5
3613 echo "${ECHO_T}$INSTALL" >&6
3615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3616 # It thinks the first close brace ends the variable substitution.
3617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3627 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3628 test -z "$cf_dir" && cf_dir=.
3629 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3633 for ac_prog in lint cppcheck splint
3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
3636 set dummy $ac_prog; ac_word=$2
3637 echo "$as_me:3637: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_prog_LINT+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test -n "$LINT"; then
3643 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3645 ac_save_IFS=$IFS; IFS=$ac_path_separator
3647 for ac_dir in $ac_dummy; do
3649 test -z "$ac_dir" && ac_dir=.
3650 $as_executable_p "$ac_dir/$ac_word" || continue
3651 ac_cv_prog_LINT="$ac_prog"
3652 echo "$as_me:3652: found $ac_dir/$ac_word" >&5
3658 LINT=$ac_cv_prog_LINT
3659 if test -n "$LINT"; then
3660 echo "$as_me:3660: result: $LINT" >&5
3661 echo "${ECHO_T}$LINT" >&6
3663 echo "$as_me:3663: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 test -n "$LINT" && break
3671 (xcppcheck|x*/cppcheck)
3672 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3676 echo "$as_me:3676: checking whether ln -s works" >&5
3677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3679 if test "$LN_S" = "ln -s"; then
3680 echo "$as_me:3680: result: yes" >&5
3681 echo "${ECHO_T}yes" >&6
3683 echo "$as_me:3683: result: no, using $LN_S" >&5
3684 echo "${ECHO_T}no, using $LN_S" >&6
3687 echo "$as_me:3687: checking if $LN_S -f options work" >&5
3688 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3690 rm -f conf$$.src conf$$dst
3692 echo first >conf$$.src
3693 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3698 rm -f conf$$.dst conf$$src
3699 echo "$as_me:3699: result: $cf_prog_ln_sf" >&5
3700 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3702 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3704 echo "$as_me:3704: checking for long file names" >&5
3705 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3706 if test "${ac_cv_sys_long_file_names+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_cv_sys_long_file_names=yes
3710 # Test for long file names in all the places we know might matter:
3711 # . the current directory, where building will happen
3712 # $prefix/lib where we will be installing things
3713 # $exec_prefix/lib likewise
3714 # eval it to expand exec_prefix.
3715 # $TMPDIR if set, where it might want to write temporary files
3716 # if $TMPDIR is not set:
3717 # /tmp where it might want to write temporary files
3720 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3723 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3725 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3726 test -d $ac_dir || continue
3727 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3728 ac_xdir=$ac_dir/cf$$
3729 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3730 ac_tf1=$ac_xdir/conftest9012345
3731 ac_tf2=$ac_xdir/conftest9012346
3732 (echo 1 >$ac_tf1) 2>/dev/null
3733 (echo 2 >$ac_tf2) 2>/dev/null
3734 ac_val=`cat $ac_tf1 2>/dev/null`
3735 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3736 ac_cv_sys_long_file_names=no
3737 rm -rf $ac_xdir 2>/dev/null
3740 rm -rf $ac_xdir 2>/dev/null
3743 echo "$as_me:3743: result: $ac_cv_sys_long_file_names" >&5
3744 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3745 if test $ac_cv_sys_long_file_names = yes; then
3747 cat >>confdefs.h <<\EOF
3748 #define HAVE_LONG_FILE_NAMES 1
3753 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3754 # of package conflict.
3757 # Check whether --with-config-suffix or --without-config-suffix was given.
3758 if test "${with_config_suffix+set}" = set; then
3759 withval="$with_config_suffix"
3762 { echo "$as_me:3762: WARNING: expected a value for config-suffix option" >&5
3763 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3765 (*) cf_config_suffix="$withval"
3770 # If we find pkg-config, check if we should install the ".pc" files.
3772 echo "$as_me:3772: checking if you want to use pkg-config" >&5
3773 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3775 # Check whether --with-pkg-config or --without-pkg-config was given.
3776 if test "${with_pkg_config+set}" = set; then
3777 withval="$with_pkg_config"
3778 cf_pkg_config=$withval
3782 echo "$as_me:3782: result: $cf_pkg_config" >&5
3783 echo "${ECHO_T}$cf_pkg_config" >&6
3785 case $cf_pkg_config in
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if $as_executable_p "$ac_dir/$ac_word"; then
3810 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3821 if test -n "$PKG_CONFIG"; then
3822 echo "$as_me:3822: result: $PKG_CONFIG" >&5
3823 echo "${ECHO_T}$PKG_CONFIG" >&6
3825 echo "$as_me:3825: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3830 if test -z "$ac_cv_path_PKG_CONFIG"; then
3831 ac_pt_PKG_CONFIG=$PKG_CONFIG
3832 # Extract the first word of "pkg-config", so it can be a program name with args.
3833 set dummy pkg-config; ac_word=$2
3834 echo "$as_me:3834: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 case $ac_pt_PKG_CONFIG in
3841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3844 ac_save_IFS=$IFS; IFS=$ac_path_separator
3846 for ac_dir in $ac_dummy; do
3848 test -z "$ac_dir" && ac_dir=.
3849 if $as_executable_p "$ac_dir/$ac_word"; then
3850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3851 echo "$as_me:3851: found $ac_dir/$ac_word" >&5
3856 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3860 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3862 if test -n "$ac_pt_PKG_CONFIG"; then
3863 echo "$as_me:3863: result: $ac_pt_PKG_CONFIG" >&5
3864 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3866 echo "$as_me:3866: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3870 PKG_CONFIG=$ac_pt_PKG_CONFIG
3872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3881 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3882 if test "$PKG_CONFIG" != none ; then
3884 if test "x$prefix" != xNONE; then
3885 cf_path_syntax="$prefix"
3887 cf_path_syntax="$ac_default_prefix"
3890 case ".$PKG_CONFIG" in
3895 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3897 (.\${*prefix}*|.\${*dir}*)
3898 eval PKG_CONFIG="$PKG_CONFIG"
3899 case ".$PKG_CONFIG" in
3901 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3906 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3909 { { echo "$as_me:3909: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3910 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3911 { (exit 1); exit 1; }; }
3915 elif test "x$cf_pkg_config" != xno ; then
3916 { echo "$as_me:3916: WARNING: pkg-config is not installed" >&5
3917 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3922 echo "$as_me:3922: checking for pkg-config library directory" >&5
3923 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3926 echo "$as_me:3926: checking for $PKG_CONFIG library directory" >&5
3927 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3931 PKG_CONFIG_LIBDIR=no
3933 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3934 if test "${with_pkg_config_libdir+set}" = set; then
3935 withval="$with_pkg_config_libdir"
3936 PKG_CONFIG_LIBDIR=$withval
3938 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3941 case x$PKG_CONFIG_LIBDIR in
3945 # Look for the library directory using the same prefix as the executable
3946 if test "x$PKG_CONFIG" = xnone
3950 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3953 # If you don't like using the default architecture, you have to specify the
3954 # intended library directory and corresponding compiler/linker options.
3956 # This case allows for Debian's 2014-flavor of multiarch, along with the
3957 # most common variations before that point. Some other variants spell the
3958 # directory differently, e.g., "pkg-config", and put it in unusual places.
3959 # pkg-config has always been poorly standardized, which is ironic...
3960 case x`(arch) 2>/dev/null` in
3963 $cf_path/lib/*64-linux-gnu \
3971 $cf_path/lib/*-linux-gnu \
3979 test -n "$verbose" && echo " list..." 1>&6
3981 echo "${as_me:-configure}:3981: testing list... ..." 1>&5
3983 for cf_config in $cf_search_path
3985 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3987 echo "${as_me:-configure}:3987: testing checking $cf_config/pkgconfig ..." 1>&5
3989 if test -d $cf_config/pkgconfig
3991 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3992 echo "$as_me:3992: checking done" >&5
3993 echo $ECHO_N "checking done... $ECHO_C" >&6
4002 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4003 echo "$as_me:4003: result: $PKG_CONFIG_LIBDIR" >&5
4004 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4007 if test "x$PKG_CONFIG" != xnone
4009 echo "$as_me:4009: checking if we should install .pc files for $PKG_CONFIG" >&5
4010 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4012 echo "$as_me:4012: checking if we should install .pc files" >&5
4013 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4016 # Check whether --enable-pc-files or --disable-pc-files was given.
4017 if test "${enable_pc_files+set}" = set; then
4018 enableval="$enable_pc_files"
4019 enable_pc_files=$enableval
4023 echo "$as_me:4023: result: $enable_pc_files" >&5
4024 echo "${ECHO_T}$enable_pc_files" >&6
4026 if test "x$enable_pc_files" != xno
4029 case "x$PKG_CONFIG_LIBDIR" in
4031 { echo "$as_me:4031: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4032 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4036 if test "x$prefix" != xNONE; then
4037 cf_path_syntax="$prefix"
4039 cf_path_syntax="$ac_default_prefix"
4042 case ".$PKG_CONFIG_LIBDIR" in
4047 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4049 (.\${*prefix}*|.\${*dir}*)
4050 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4051 case ".$PKG_CONFIG_LIBDIR" in
4053 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4058 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4061 { { echo "$as_me:4061: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4062 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4063 { (exit 1); exit 1; }; }
4073 if test -z "$MAKE_PC_FILES"
4075 echo "$as_me:4075: checking for suffix to add to pc-files" >&5
4076 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4078 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4079 if test "${with_pc_suffix+set}" = set; then
4080 withval="$with_pc_suffix"
4085 (*) PC_MODULE_SUFFIX="$withval"
4089 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4090 echo "$as_me:4090: result: $PC_MODULE_SUFFIX" >&5
4091 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4092 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4096 echo "$as_me:4096: checking if we should assume mixed-case filenames" >&5
4097 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4099 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4100 if test "${enable_mixed_case+set}" = set; then
4101 enableval="$enable_mixed_case"
4102 enable_mixedcase=$enableval
4104 enable_mixedcase=auto
4106 echo "$as_me:4106: result: $enable_mixedcase" >&5
4107 echo "${ECHO_T}$enable_mixedcase" >&6
4108 if test "$enable_mixedcase" = "auto" ; then
4110 echo "$as_me:4110: checking if filesystem supports mixed-case filenames" >&5
4111 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4112 if test "${cf_cv_mixedcase+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test "$cross_compiling" = yes ; then
4117 case $target_alias in
4118 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4126 rm -f conftest CONFTEST
4128 if test -f CONFTEST ; then
4133 rm -f conftest CONFTEST
4137 echo "$as_me:4137: result: $cf_cv_mixedcase" >&5
4138 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4139 test "$cf_cv_mixedcase" = yes &&
4140 cat >>confdefs.h <<\EOF
4141 #define MIXEDCASE_FILENAMES 1
4145 cf_cv_mixedcase=$enable_mixedcase
4146 if test "x$enable_mixedcase" = "xyes" ; then
4148 cat >>confdefs.h <<\EOF
4149 #define MIXEDCASE_FILENAMES 1
4155 # do this after mixed-case option (tags/TAGS is not as important as tic).
4156 echo "$as_me:4156: checking whether ${MAKE-make} sets \${MAKE}" >&5
4157 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4158 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4159 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 cat >conftest.make <<\EOF
4164 @echo 'ac_maketemp="${MAKE}"'
4166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4167 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4168 if test -n "$ac_maketemp"; then
4169 eval ac_cv_prog_make_${ac_make}_set=yes
4171 eval ac_cv_prog_make_${ac_make}_set=no
4175 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4176 echo "$as_me:4176: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 SET_MAKE="MAKE=${MAKE-make}"
4185 for ac_prog in exctags ctags
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 echo "$as_me:4189: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_CTAGS+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$CTAGS"; then
4195 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4197 ac_save_IFS=$IFS; IFS=$ac_path_separator
4199 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 $as_executable_p "$ac_dir/$ac_word" || continue
4203 ac_cv_prog_CTAGS="$ac_prog"
4204 echo "$as_me:4204: found $ac_dir/$ac_word" >&5
4210 CTAGS=$ac_cv_prog_CTAGS
4211 if test -n "$CTAGS"; then
4212 echo "$as_me:4212: result: $CTAGS" >&5
4213 echo "${ECHO_T}$CTAGS" >&6
4215 echo "$as_me:4215: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 test -n "$CTAGS" && break
4222 for ac_prog in exetags etags
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 echo "$as_me:4226: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_ETAGS+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$ETAGS"; then
4232 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4234 ac_save_IFS=$IFS; IFS=$ac_path_separator
4236 for ac_dir in $ac_dummy; do
4238 test -z "$ac_dir" && ac_dir=.
4239 $as_executable_p "$ac_dir/$ac_word" || continue
4240 ac_cv_prog_ETAGS="$ac_prog"
4241 echo "$as_me:4241: found $ac_dir/$ac_word" >&5
4247 ETAGS=$ac_cv_prog_ETAGS
4248 if test -n "$ETAGS"; then
4249 echo "$as_me:4249: result: $ETAGS" >&5
4250 echo "${ECHO_T}$ETAGS" >&6
4252 echo "$as_me:4252: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4256 test -n "$ETAGS" && break
4259 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4260 set dummy ${CTAGS:-ctags}; ac_word=$2
4261 echo "$as_me:4261: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$MAKE_LOWER_TAGS"; then
4267 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4271 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4276 echo "$as_me:4276: found $ac_dir/$ac_word" >&5
4280 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4283 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4284 if test -n "$MAKE_LOWER_TAGS"; then
4285 echo "$as_me:4285: result: $MAKE_LOWER_TAGS" >&5
4286 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4288 echo "$as_me:4288: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4292 if test "$cf_cv_mixedcase" = yes ; then
4293 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4294 set dummy ${ETAGS:-etags}; ac_word=$2
4295 echo "$as_me:4295: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$MAKE_UPPER_TAGS"; then
4301 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4303 ac_save_IFS=$IFS; IFS=$ac_path_separator
4305 for ac_dir in $ac_dummy; do
4307 test -z "$ac_dir" && ac_dir=.
4308 $as_executable_p "$ac_dir/$ac_word" || continue
4309 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4310 echo "$as_me:4310: found $ac_dir/$ac_word" >&5
4314 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4317 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4318 if test -n "$MAKE_UPPER_TAGS"; then
4319 echo "$as_me:4319: result: $MAKE_UPPER_TAGS" >&5
4320 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4330 if test "$MAKE_UPPER_TAGS" = yes ; then
4336 if test "$MAKE_LOWER_TAGS" = yes ; then
4342 echo "$as_me:4342: checking for makeflags variable" >&5
4343 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4344 if test "${cf_cv_makeflags+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4351 cat >cf_makeflags.tmp <<CF_EOF
4354 @ echo '.$cf_option'
4356 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4357 case "$cf_result" in
4359 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4360 case "$cf_result" in
4361 (.*CC=*) cf_cv_makeflags=
4363 (*) cf_cv_makeflags=$cf_option
4372 echo "${as_me:-configure}:4372: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4377 rm -f cf_makeflags.tmp
4380 echo "$as_me:4380: result: $cf_cv_makeflags" >&5
4381 echo "${ECHO_T}$cf_cv_makeflags" >&6
4383 if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4386 echo "$as_me:4386: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_prog_RANLIB+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$RANLIB"; then
4392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4394 ac_save_IFS=$IFS; IFS=$ac_path_separator
4396 for ac_dir in $ac_dummy; do
4398 test -z "$ac_dir" && ac_dir=.
4399 $as_executable_p "$ac_dir/$ac_word" || continue
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 echo "$as_me:4401: found $ac_dir/$ac_word" >&5
4407 RANLIB=$ac_cv_prog_RANLIB
4408 if test -n "$RANLIB"; then
4409 echo "$as_me:4409: result: $RANLIB" >&5
4410 echo "${ECHO_T}$RANLIB" >&6
4412 echo "$as_me:4412: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4417 if test -z "$ac_cv_prog_RANLIB"; then
4418 ac_ct_RANLIB=$RANLIB
4419 # Extract the first word of "ranlib", so it can be a program name with args.
4420 set dummy ranlib; ac_word=$2
4421 echo "$as_me:4421: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 if test -n "$ac_ct_RANLIB"; then
4427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4429 ac_save_IFS=$IFS; IFS=$ac_path_separator
4431 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 $as_executable_p "$ac_dir/$ac_word" || continue
4435 ac_cv_prog_ac_ct_RANLIB="ranlib"
4436 echo "$as_me:4436: found $ac_dir/$ac_word" >&5
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:4445: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4448 echo "$as_me:4448: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 RANLIB=$ac_ct_RANLIB
4454 RANLIB="$ac_cv_prog_RANLIB"
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4459 set dummy ${ac_tool_prefix}ld; ac_word=$2
4460 echo "$as_me:4460: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_LD+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$LD"; then
4466 ac_cv_prog_LD="$LD" # Let the user override the test.
4468 ac_save_IFS=$IFS; IFS=$ac_path_separator
4470 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 $as_executable_p "$ac_dir/$ac_word" || continue
4474 ac_cv_prog_LD="${ac_tool_prefix}ld"
4475 echo "$as_me:4475: found $ac_dir/$ac_word" >&5
4482 if test -n "$LD"; then
4483 echo "$as_me:4483: result: $LD" >&5
4484 echo "${ECHO_T}$LD" >&6
4486 echo "$as_me:4486: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4491 if test -z "$ac_cv_prog_LD"; then
4493 # Extract the first word of "ld", so it can be a program name with args.
4494 set dummy ld; ac_word=$2
4495 echo "$as_me:4495: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$ac_ct_LD"; then
4501 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4503 ac_save_IFS=$IFS; IFS=$ac_path_separator
4505 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 $as_executable_p "$ac_dir/$ac_word" || continue
4509 ac_cv_prog_ac_ct_LD="ld"
4510 echo "$as_me:4510: found $ac_dir/$ac_word" >&5
4514 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4517 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4518 if test -n "$ac_ct_LD"; then
4519 echo "$as_me:4519: result: $ac_ct_LD" >&5
4520 echo "${ECHO_T}$ac_ct_LD" >&6
4522 echo "$as_me:4522: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}ar; ac_word=$2
4534 echo "$as_me:4534: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_AR+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 if test -n "$AR"; then
4540 ac_cv_prog_AR="$AR" # Let the user override the test.
4542 ac_save_IFS=$IFS; IFS=$ac_path_separator
4544 for ac_dir in $ac_dummy; do
4546 test -z "$ac_dir" && ac_dir=.
4547 $as_executable_p "$ac_dir/$ac_word" || continue
4548 ac_cv_prog_AR="${ac_tool_prefix}ar"
4549 echo "$as_me:4549: found $ac_dir/$ac_word" >&5
4556 if test -n "$AR"; then
4557 echo "$as_me:4557: result: $AR" >&5
4558 echo "${ECHO_T}$AR" >&6
4560 echo "$as_me:4560: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4565 if test -z "$ac_cv_prog_AR"; then
4567 # Extract the first word of "ar", so it can be a program name with args.
4568 set dummy ar; ac_word=$2
4569 echo "$as_me:4569: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if test -n "$ac_ct_AR"; then
4575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4577 ac_save_IFS=$IFS; IFS=$ac_path_separator
4579 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 $as_executable_p "$ac_dir/$ac_word" || continue
4583 ac_cv_prog_ac_ct_AR="ar"
4584 echo "$as_me:4584: found $ac_dir/$ac_word" >&5
4588 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4592 if test -n "$ac_ct_AR"; then
4593 echo "$as_me:4593: result: $ac_ct_AR" >&5
4594 echo "${ECHO_T}$ac_ct_AR" >&6
4596 echo "$as_me:4596: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}nm; ac_word=$2
4608 echo "$as_me:4608: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_NM+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$NM"; then
4614 ac_cv_prog_NM="$NM" # Let the user override the test.
4616 ac_save_IFS=$IFS; IFS=$ac_path_separator
4618 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 $as_executable_p "$ac_dir/$ac_word" || continue
4622 ac_cv_prog_NM="${ac_tool_prefix}nm"
4623 echo "$as_me:4623: found $ac_dir/$ac_word" >&5
4630 if test -n "$NM"; then
4631 echo "$as_me:4631: result: $NM" >&5
4632 echo "${ECHO_T}$NM" >&6
4634 echo "$as_me:4634: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4639 if test -z "$ac_cv_prog_NM"; then
4641 # Extract the first word of "nm", so it can be a program name with args.
4642 set dummy nm; ac_word=$2
4643 echo "$as_me:4643: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$ac_ct_NM"; then
4649 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4651 ac_save_IFS=$IFS; IFS=$ac_path_separator
4653 for ac_dir in $ac_dummy; do
4655 test -z "$ac_dir" && ac_dir=.
4656 $as_executable_p "$ac_dir/$ac_word" || continue
4657 ac_cv_prog_ac_ct_NM="nm"
4658 echo "$as_me:4658: found $ac_dir/$ac_word" >&5
4662 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4665 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4666 if test -n "$ac_ct_NM"; then
4667 echo "$as_me:4667: result: $ac_ct_NM" >&5
4668 echo "${ECHO_T}$ac_ct_NM" >&6
4670 echo "$as_me:4670: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ar; ac_word=$2
4682 echo "$as_me:4682: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_prog_AR+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$AR"; then
4688 ac_cv_prog_AR="$AR" # Let the user override the test.
4690 ac_save_IFS=$IFS; IFS=$ac_path_separator
4692 for ac_dir in $ac_dummy; do
4694 test -z "$ac_dir" && ac_dir=.
4695 $as_executable_p "$ac_dir/$ac_word" || continue
4696 ac_cv_prog_AR="${ac_tool_prefix}ar"
4697 echo "$as_me:4697: found $ac_dir/$ac_word" >&5
4704 if test -n "$AR"; then
4705 echo "$as_me:4705: result: $AR" >&5
4706 echo "${ECHO_T}$AR" >&6
4708 echo "$as_me:4708: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4713 if test -z "$ac_cv_prog_AR"; then
4715 # Extract the first word of "ar", so it can be a program name with args.
4716 set dummy ar; ac_word=$2
4717 echo "$as_me:4717: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$ac_ct_AR"; then
4723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4725 ac_save_IFS=$IFS; IFS=$ac_path_separator
4727 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 $as_executable_p "$ac_dir/$ac_word" || continue
4731 ac_cv_prog_ac_ct_AR="ar"
4732 echo "$as_me:4732: found $ac_dir/$ac_word" >&5
4736 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4739 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4740 if test -n "$ac_ct_AR"; then
4741 echo "$as_me:4741: result: $ac_ct_AR" >&5
4742 echo "${ECHO_T}$ac_ct_AR" >&6
4744 echo "$as_me:4744: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4753 echo "$as_me:4753: checking for options to update archives" >&5
4754 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4755 if test "${cf_cv_ar_flags+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 case $cf_cv_system_name in
4762 cat >mk_static_lib.sh <<-EOF
4767 exec \$MSVC_BIN -out:"\$out" \$@
4769 chmod +x mk_static_lib.sh
4770 AR=`pwd`/mk_static_lib.sh
4773 cf_cv_ar_flags=unknown
4774 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4777 # check if $ARFLAGS already contains this choice
4778 if test "x$ARFLAGS" != "x" ; then
4779 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4780 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4786 rm -f conftest.$ac_cv_objext
4789 cat >conftest.$ac_ext <<EOF
4790 #line 4790 "configure"
4791 int testdata[3] = { 123, 456, 789 };
4793 if { (eval echo "$as_me:4793: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); } ; then
4798 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4799 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4800 if test -f conftest.a ; then
4801 cf_cv_ar_flags=$cf_ar_flags
4805 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4807 echo "${as_me:-configure}:4807: testing cannot compile test-program ..." 1>&5
4812 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4817 echo "$as_me:4817: result: $cf_cv_ar_flags" >&5
4818 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4820 if test -n "$ARFLAGS" ; then
4821 if test -n "$cf_cv_ar_flags" ; then
4822 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4825 ARFLAGS=$cf_cv_ar_flags
4828 echo "$as_me:4828: checking if you have specified an install-prefix" >&5
4829 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4831 # Check whether --with-install-prefix or --without-install-prefix was given.
4832 if test "${with_install_prefix+set}" = set; then
4833 withval="$with_install_prefix"
4837 (*) DESTDIR="$withval"
4841 echo "$as_me:4841: result: $DESTDIR" >&5
4842 echo "${ECHO_T}$DESTDIR" >&6
4844 ###############################################################################
4846 # If we're cross-compiling, allow the user to override the tools and their
4847 # options. The configure script is oriented toward identifying the host
4848 # compiler, etc., but we need a build compiler to generate parts of the source.
4850 case $cf_cv_system_name in
4852 LDFLAGS="$LDFLAGS user32.lib"
4857 if test "$cross_compiling" = yes ; then
4859 # defaults that we might want to override
4860 : ${BUILD_CFLAGS:=''}
4861 : ${BUILD_CPPFLAGS:=''}
4862 : ${BUILD_LDFLAGS:=''}
4864 : ${BUILD_EXEEXT:='$x'}
4865 : ${BUILD_OBJEXT:='o'}
4867 # Check whether --with-build-cc or --without-build-cc was given.
4868 if test "${with_build_cc+set}" = set; then
4869 withval="$with_build_cc"
4872 for ac_prog in gcc clang c99 c89 cc cl
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 echo "$as_me:4876: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test -n "$BUILD_CC"; then
4882 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4884 ac_save_IFS=$IFS; IFS=$ac_path_separator
4886 for ac_dir in $ac_dummy; do
4888 test -z "$ac_dir" && ac_dir=.
4889 $as_executable_p "$ac_dir/$ac_word" || continue
4890 ac_cv_prog_BUILD_CC="$ac_prog"
4891 echo "$as_me:4891: found $ac_dir/$ac_word" >&5
4897 BUILD_CC=$ac_cv_prog_BUILD_CC
4898 if test -n "$BUILD_CC"; then
4899 echo "$as_me:4899: result: $BUILD_CC" >&5
4900 echo "${ECHO_T}$BUILD_CC" >&6
4902 echo "$as_me:4902: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4906 test -n "$BUILD_CC" && break
4908 test -n "$BUILD_CC" || BUILD_CC="none"
4911 echo "$as_me:4911: checking for native build C compiler" >&5
4912 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4913 echo "$as_me:4913: result: $BUILD_CC" >&5
4914 echo "${ECHO_T}$BUILD_CC" >&6
4916 echo "$as_me:4916: checking for native build C preprocessor" >&5
4917 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4919 # Check whether --with-build-cpp or --without-build-cpp was given.
4920 if test "${with_build_cpp+set}" = set; then
4921 withval="$with_build_cpp"
4922 BUILD_CPP="$withval"
4924 BUILD_CPP='${BUILD_CC} -E'
4926 echo "$as_me:4926: result: $BUILD_CPP" >&5
4927 echo "${ECHO_T}$BUILD_CPP" >&6
4929 echo "$as_me:4929: checking for native build C flags" >&5
4930 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4932 # Check whether --with-build-cflags or --without-build-cflags was given.
4933 if test "${with_build_cflags+set}" = set; then
4934 withval="$with_build_cflags"
4935 BUILD_CFLAGS="$withval"
4937 echo "$as_me:4937: result: $BUILD_CFLAGS" >&5
4938 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4940 echo "$as_me:4940: checking for native build C preprocessor-flags" >&5
4941 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4943 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4944 if test "${with_build_cppflags+set}" = set; then
4945 withval="$with_build_cppflags"
4946 BUILD_CPPFLAGS="$withval"
4948 echo "$as_me:4948: result: $BUILD_CPPFLAGS" >&5
4949 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4951 echo "$as_me:4951: checking for native build linker-flags" >&5
4952 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4954 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4955 if test "${with_build_ldflags+set}" = set; then
4956 withval="$with_build_ldflags"
4957 BUILD_LDFLAGS="$withval"
4959 echo "$as_me:4959: result: $BUILD_LDFLAGS" >&5
4960 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4962 echo "$as_me:4962: checking for native build linker-libraries" >&5
4963 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4965 # Check whether --with-build-libs or --without-build-libs was given.
4966 if test "${with_build_libs+set}" = set; then
4967 withval="$with_build_libs"
4968 BUILD_LIBS="$withval"
4970 echo "$as_me:4970: result: $BUILD_LIBS" >&5
4971 echo "${ECHO_T}$BUILD_LIBS" >&6
4973 # this assumes we're on Unix.
4977 : ${BUILD_CC:='${CC}'}
4979 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4980 { { echo "$as_me:4980: error: Cross-build requires two compilers.
4981 Use --with-build-cc to specify the native compiler." >&5
4982 echo "$as_me: error: Cross-build requires two compilers.
4983 Use --with-build-cc to specify the native compiler." >&2;}
4984 { (exit 1); exit 1; }; }
4988 : ${BUILD_CC:='${CC}'}
4989 : ${BUILD_CPP:='${CPP}'}
4990 : ${BUILD_CFLAGS:='${CFLAGS}'}
4991 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4992 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4993 : ${BUILD_LIBS:='${LIBS}'}
4994 : ${BUILD_EXEEXT:='$x'}
4995 : ${BUILD_OBJEXT:='o'}
4998 ###############################################################################
5000 ### Options to allow the user to specify the set of libraries which are used.
5001 ### Use "--without-normal --with-shared" to allow the default model to be
5002 ### shared, for example.
5005 echo "$as_me:5005: checking if libtool -version-number should be used" >&5
5006 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5008 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5009 if test "${enable_libtool_version+set}" = set; then
5010 enableval="$enable_libtool_version"
5011 test "$enableval" != no && enableval=yes
5012 if test "$enableval" != "yes" ; then
5013 cf_libtool_version=no
5015 cf_libtool_version=yes
5019 cf_libtool_version=yes
5022 echo "$as_me:5022: result: $cf_libtool_version" >&5
5023 echo "${ECHO_T}$cf_libtool_version" >&6
5025 if test "$cf_libtool_version" = yes ; then
5026 LIBTOOL_VERSION="-version-number"
5028 LIBTOOL_VERSION="-version-info"
5031 { echo "$as_me:5031: WARNING: VERSION was not set" >&5
5032 echo "$as_me: WARNING: VERSION was not set" >&2;}
5035 ABI_VERSION="$VERSION"
5036 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5038 echo "${as_me:-configure}:5038: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5042 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5043 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5045 echo "${as_me:-configure}:5045: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5049 { echo "$as_me:5049: WARNING: unexpected VERSION value: $VERSION" >&5
5050 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5057 # common library maintenance symbols that are convenient for libtool scripts:
5058 LIB_CREATE='${AR} -cr'
5059 LIB_OBJECT='${OBJECTS}'
5063 # symbols used to prop libtool up to enable it to determine what it should be
5071 echo "$as_me:5071: checking if you want to build libraries with libtool" >&5
5072 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5074 # Check whether --with-libtool or --without-libtool was given.
5075 if test "${with_libtool+set}" = set; then
5076 withval="$with_libtool"
5077 with_libtool=$withval
5081 echo "$as_me:5081: result: $with_libtool" >&5
5082 echo "${ECHO_T}$with_libtool" >&6
5083 if test "$with_libtool" != "no"; then
5085 if test "$with_libtool" != "yes" ; then
5087 if test "x$prefix" != xNONE; then
5088 cf_path_syntax="$prefix"
5090 cf_path_syntax="$ac_default_prefix"
5093 case ".$with_libtool" in
5098 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5100 (.\${*prefix}*|.\${*dir}*)
5101 eval with_libtool="$with_libtool"
5102 case ".$with_libtool" in
5104 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5109 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5112 { { echo "$as_me:5112: error: expected a pathname, not \"$with_libtool\"" >&5
5113 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5114 { (exit 1); exit 1; }; }
5118 LIBTOOL=$with_libtool
5120 if test -n "$ac_tool_prefix"; then
5121 for ac_prog in libtool glibtool
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 echo "$as_me:5125: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5127 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$LIBTOOL"; then
5131 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5133 ac_save_IFS=$IFS; IFS=$ac_path_separator
5135 for ac_dir in $ac_dummy; do
5137 test -z "$ac_dir" && ac_dir=.
5138 $as_executable_p "$ac_dir/$ac_word" || continue
5139 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5140 echo "$as_me:5140: found $ac_dir/$ac_word" >&5
5146 LIBTOOL=$ac_cv_prog_LIBTOOL
5147 if test -n "$LIBTOOL"; then
5148 echo "$as_me:5148: result: $LIBTOOL" >&5
5149 echo "${ECHO_T}$LIBTOOL" >&6
5151 echo "$as_me:5151: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5155 test -n "$LIBTOOL" && break
5158 if test -z "$LIBTOOL"; then
5159 ac_ct_LIBTOOL=$LIBTOOL
5160 for ac_prog in libtool glibtool
5162 # Extract the first word of "$ac_prog", so it can be a program name with args.
5163 set dummy $ac_prog; ac_word=$2
5164 echo "$as_me:5164: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$ac_ct_LIBTOOL"; then
5170 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5172 ac_save_IFS=$IFS; IFS=$ac_path_separator
5174 for ac_dir in $ac_dummy; do
5176 test -z "$ac_dir" && ac_dir=.
5177 $as_executable_p "$ac_dir/$ac_word" || continue
5178 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5179 echo "$as_me:5179: found $ac_dir/$ac_word" >&5
5185 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5186 if test -n "$ac_ct_LIBTOOL"; then
5187 echo "$as_me:5187: result: $ac_ct_LIBTOOL" >&5
5188 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5190 echo "$as_me:5190: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5194 test -n "$ac_ct_LIBTOOL" && break
5196 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5198 LIBTOOL=$ac_ct_LIBTOOL
5201 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5203 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5205 cf_cv_libtool_version=
5207 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5209 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5212 unset ac_cv_prog_ac_ct_LIBTOOL
5216 if test -n "$ac_tool_prefix"; then
5217 for ac_prog in glibtool
5219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 echo "$as_me:5221: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 if test -n "$LIBTOOL"; then
5227 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5229 ac_save_IFS=$IFS; IFS=$ac_path_separator
5231 for ac_dir in $ac_dummy; do
5233 test -z "$ac_dir" && ac_dir=.
5234 $as_executable_p "$ac_dir/$ac_word" || continue
5235 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5236 echo "$as_me:5236: found $ac_dir/$ac_word" >&5
5242 LIBTOOL=$ac_cv_prog_LIBTOOL
5243 if test -n "$LIBTOOL"; then
5244 echo "$as_me:5244: result: $LIBTOOL" >&5
5245 echo "${ECHO_T}$LIBTOOL" >&6
5247 echo "$as_me:5247: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5251 test -n "$LIBTOOL" && break
5254 if test -z "$LIBTOOL"; then
5255 ac_ct_LIBTOOL=$LIBTOOL
5256 for ac_prog in glibtool
5258 # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 echo "$as_me:5260: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test -n "$ac_ct_LIBTOOL"; then
5266 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5268 ac_save_IFS=$IFS; IFS=$ac_path_separator
5270 for ac_dir in $ac_dummy; do
5272 test -z "$ac_dir" && ac_dir=.
5273 $as_executable_p "$ac_dir/$ac_word" || continue
5274 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5275 echo "$as_me:5275: found $ac_dir/$ac_word" >&5
5281 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5282 if test -n "$ac_ct_LIBTOOL"; then
5283 echo "$as_me:5283: result: $ac_ct_LIBTOOL" >&5
5284 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5286 echo "$as_me:5286: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5290 test -n "$ac_ct_LIBTOOL" && break
5292 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5294 LIBTOOL=$ac_ct_LIBTOOL
5297 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5299 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5301 cf_cv_libtool_version=
5303 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5307 if test -z "$LIBTOOL" ; then
5308 { { echo "$as_me:5308: error: Cannot find libtool" >&5
5309 echo "$as_me: error: Cannot find libtool" >&2;}
5310 { (exit 1); exit 1; }; }
5312 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5313 LIB_OBJECT='${OBJECTS:.o=.lo}'
5315 LIB_CLEAN='${LIBTOOL} --mode=clean'
5316 LIB_COMPILE='${LIBTOOL} --mode=compile'
5317 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5318 LIB_INSTALL='${LIBTOOL} --mode=install'
5319 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5322 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5324 echo "$as_me:5324: checking version of $LIBTOOL" >&5
5325 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5327 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5329 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5331 cf_cv_libtool_version=
5333 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5335 echo "$as_me:5335: result: $cf_cv_libtool_version" >&5
5336 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5337 if test -z "$cf_cv_libtool_version" ; then
5338 { { echo "$as_me:5338: error: This is not GNU libtool" >&5
5339 echo "$as_me: error: This is not GNU libtool" >&2;}
5340 { (exit 1); exit 1; }; }
5343 { { echo "$as_me:5343: error: GNU libtool has not been found" >&5
5344 echo "$as_me: error: GNU libtool has not been found" >&2;}
5345 { (exit 1); exit 1; }; }
5348 # special hack to add -no-undefined (which libtool should do for itself)
5350 case "$cf_cv_system_name" in
5351 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5352 LT_UNDEF=-no-undefined
5356 # special hack to add --tag option for C++ compiler
5357 case $cf_cv_libtool_version in
5358 (1.[5-9]*|[2-9].[0-9.a-z]*)
5359 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5360 LIBTOOL="$LIBTOOL --tag=CC"
5363 LIBTOOL_CXX="$LIBTOOL"
5371 test -z "$LIBTOOL" && ECHO_LT=
5373 if test "$with_libtool" != "no" ; then
5375 cf_list_models="$cf_list_models libtool"
5379 echo "$as_me:5379: checking if you want to build shared libraries" >&5
5380 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5382 # Check whether --with-shared or --without-shared was given.
5383 if test "${with_shared+set}" = set; then
5384 withval="$with_shared"
5385 with_shared=$withval
5389 echo "$as_me:5389: result: $with_shared" >&5
5390 echo "${ECHO_T}$with_shared" >&6
5391 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5393 echo "$as_me:5393: checking if you want to build static libraries" >&5
5394 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5396 # Check whether --with-normal or --without-normal was given.
5397 if test "${with_normal+set}" = set; then
5398 withval="$with_normal"
5399 with_normal=$withval
5403 echo "$as_me:5403: result: $with_normal" >&5
5404 echo "${ECHO_T}$with_normal" >&6
5405 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5407 echo "$as_me:5407: checking if you want to build debug libraries" >&5
5408 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5410 # Check whether --with-debug or --without-debug was given.
5411 if test "${with_debug+set}" = set; then
5412 withval="$with_debug"
5417 echo "$as_me:5417: result: $with_debug" >&5
5418 echo "${ECHO_T}$with_debug" >&6
5419 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5421 echo "$as_me:5421: checking if you want to build profiling libraries" >&5
5422 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5424 # Check whether --with-profile or --without-profile was given.
5425 if test "${with_profile+set}" = set; then
5426 withval="$with_profile"
5427 with_profile=$withval
5431 echo "$as_me:5431: result: $with_profile" >&5
5432 echo "${ECHO_T}$with_profile" >&6
5433 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5437 if test "X$cf_with_cxx_binding" != Xno; then
5438 if test "x$with_shared" = "xyes"; then
5439 echo "$as_me:5439: checking if you want to build C++ shared libraries" >&5
5440 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5442 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5443 if test "${with_cxx_shared+set}" = set; then
5444 withval="$with_cxx_shared"
5445 with_shared_cxx=$withval
5449 echo "$as_me:5449: result: $with_shared_cxx" >&5
5450 echo "${ECHO_T}$with_shared_cxx" >&6
5454 ###############################################################################
5456 echo "$as_me:5456: checking for specified models" >&5
5457 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5458 test -z "$cf_list_models" && cf_list_models=normal
5459 test "$with_libtool" != "no" && cf_list_models=libtool
5460 echo "$as_me:5460: result: $cf_list_models" >&5
5461 echo "${ECHO_T}$cf_list_models" >&6
5463 ### Use the first model as the default, and save its suffix for use in building
5464 ### up test-applications.
5465 echo "$as_me:5465: checking for default model" >&5
5466 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5467 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5468 echo "$as_me:5468: result: $DFT_LWR_MODEL" >&5
5469 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5471 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5482 echo "$as_me:5482: checking if you want to have a library-prefix" >&5
5483 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5485 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5486 if test "${with_lib_prefix+set}" = set; then
5487 withval="$with_lib_prefix"
5488 with_lib_prefix=$withval
5490 with_lib_prefix=auto
5492 echo "$as_me:5492: result: $with_lib_prefix" >&5
5493 echo "${ECHO_T}$with_lib_prefix" >&6
5495 if test $with_lib_prefix = auto
5498 case $cf_cv_system_name in
5500 if test "$DFT_LWR_MODEL" = libtool; then
5509 (*) LIB_PREFIX='lib'
5512 cf_prefix=$LIB_PREFIX
5514 elif test $with_lib_prefix = no
5518 LIB_PREFIX=$with_lib_prefix
5523 echo "$as_me:5523: checking for PATH separator" >&5
5524 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5525 case $cf_cv_system_name in
5526 (os2*) PATH_SEPARATOR=';' ;;
5527 (*) ${PATH_SEPARATOR:=':'} ;;
5530 echo "$as_me:5530: result: $PATH_SEPARATOR" >&5
5531 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5533 ###############################################################################
5535 echo "$as_me:5535: checking if you want to build a separate terminfo library" >&5
5536 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5538 # Check whether --with-termlib or --without-termlib was given.
5539 if test "${with_termlib+set}" = set; then
5540 withval="$with_termlib"
5541 with_termlib=$withval
5545 echo "$as_me:5545: result: $with_termlib" >&5
5546 echo "${ECHO_T}$with_termlib" >&6
5548 echo "$as_me:5548: checking if you want to build a separate tic library" >&5
5549 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5551 # Check whether --with-ticlib or --without-ticlib was given.
5552 if test "${with_ticlib+set}" = set; then
5553 withval="$with_ticlib"
5554 with_ticlib=$withval
5558 echo "$as_me:5558: result: $with_ticlib" >&5
5559 echo "${ECHO_T}$with_ticlib" >&6
5561 if test X"$CC_G_OPT" = X"" ; then
5563 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5566 if test X"$CXX_G_OPT" = X"" ; then
5568 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5571 echo "$as_me:5571: checking for default loader flags" >&5
5572 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5573 case $DFT_LWR_MODEL in
5574 (libtool) LD_MODEL='' ;;
5575 (normal) LD_MODEL='' ;;
5576 (debug) LD_MODEL=$CC_G_OPT ;;
5577 (profile) LD_MODEL='-pg';;
5578 (shared) LD_MODEL='' ;;
5580 echo "$as_me:5580: result: $LD_MODEL" >&5
5581 echo "${ECHO_T}$LD_MODEL" >&6
5583 case $DFT_LWR_MODEL in
5586 echo "$as_me:5586: checking if rpath option should be used" >&5
5587 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5589 # Check whether --enable-rpath or --disable-rpath was given.
5590 if test "${enable_rpath+set}" = set; then
5591 enableval="$enable_rpath"
5592 cf_cv_enable_rpath=$enableval
5594 cf_cv_enable_rpath=no
5596 echo "$as_me:5596: result: $cf_cv_enable_rpath" >&5
5597 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5599 echo "$as_me:5599: checking if shared libraries should be relinked during install" >&5
5600 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5602 # Check whether --enable-relink or --disable-relink was given.
5603 if test "${enable_relink+set}" = set; then
5604 enableval="$enable_relink"
5605 cf_cv_do_relink=$enableval
5609 echo "$as_me:5609: result: $cf_cv_do_relink" >&5
5610 echo "${ECHO_T}$cf_cv_do_relink" >&6
5614 # we will build libraries one-level down.
5618 if test "x$cf_cv_enable_rpath" != xno
5620 echo "$as_me:5620: checking for an rpath option" >&5
5621 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5622 case $cf_cv_system_name in
5624 if test "$GCC" = yes; then
5625 LD_RPATH_OPT="-Wl,-rpath,"
5627 LD_RPATH_OPT="-rpath "
5630 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5631 LD_RPATH_OPT="-Wl,-rpath,"
5633 (openbsd[2-9].*|mirbsd*)
5634 LD_RPATH_OPT="-Wl,-rpath,"
5637 LD_RPATH_OPT="-rpath "
5640 LD_RPATH_OPT="-Wl,-rpath,"
5643 LD_RPATH_OPT="-rpath "
5651 echo "$as_me:5651: result: $LD_RPATH_OPT" >&5
5652 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5654 case "x$LD_RPATH_OPT" in
5656 echo "$as_me:5656: checking if we need a space after rpath option" >&5
5657 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5658 cf_save_LIBS="$LIBS"
5663 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5665 for cf_add_1lib in $cf_add_0lib; do
5666 for cf_add_2lib in $cf_add_libs; do
5667 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5672 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5676 cat >conftest.$ac_ext <<_ACEOF
5677 #line 5677 "configure"
5678 #include "confdefs.h"
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (eval echo "$as_me:5689: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5692 echo "$as_me:5692: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -s conftest$ac_exeext'
5695 { (eval echo "$as_me:5695: \"$ac_try\"") >&5
5698 echo "$as_me:5698: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5702 echo "$as_me: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5707 LIBS="$cf_save_LIBS"
5708 echo "$as_me:5708: result: $cf_rpath_space" >&5
5709 echo "${ECHO_T}$cf_rpath_space" >&6
5710 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5719 INSTALL_LIB="-m 644"
5720 : ${rel_builddir:=.}
5726 cf_cv_do_symlinks=no
5728 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5730 echo "$as_me:5730: checking if release/abi version should be used for shared libs" >&5
5731 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5733 # Check whether --with-shlib-version or --without-shlib-version was given.
5734 if test "${with_shlib_version+set}" = set; then
5735 withval="$with_shlib_version"
5736 test -z "$withval" && withval=auto
5739 cf_cv_shlib_version=auto
5742 cf_cv_shlib_version=$withval
5745 echo "$as_me:5745: result: $withval" >&5
5746 echo "${ECHO_T}$withval" >&6
5747 { { echo "$as_me:5747: error: option value must be one of: rel, abi, or auto" >&5
5748 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5749 { (exit 1); exit 1; }; }
5754 cf_cv_shlib_version=auto
5756 echo "$as_me:5756: result: $cf_cv_shlib_version" >&5
5757 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5762 # Some less-capable ports of gcc support only -fpic
5766 if test "$GCC" = yes
5770 case $cf_cv_system_name in
5771 (*linux*) # e.g., PGI compiler
5777 if test "$cf_try_fPIC" = yes
5779 echo "$as_me:5779: checking which $CC option to use" >&5
5780 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5781 cf_save_CFLAGS="$CFLAGS"
5782 for CC_SHARED_OPTS in -fPIC -fpic ''
5784 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line 5786 "configure"
5787 #include "confdefs.h"
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:5798: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:5804: \"$ac_try\"") >&5
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5814 rm -f conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:5816: result: $CC_SHARED_OPTS" >&5
5817 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5818 CFLAGS="$cf_save_CFLAGS"
5821 cf_cv_shlib_version_infix=no
5823 case $cf_cv_system_name in
5824 (aix4.3-9*|aix[5-7]*)
5825 if test "$GCC" = yes; then
5826 CC_SHARED_OPTS='-Wl,-brtl'
5827 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5829 CC_SHARED_OPTS='-brtl'
5830 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5831 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5835 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5839 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5840 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5841 cf_cv_shlib_version=cygdll
5842 cf_cv_shlib_version_infix=cygdll
5845 cat >mk_shared_lib.sh <<-CF_EOF
5848 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5851 Linking shared library
5852 ** SHARED_LIB \$SHARED_LIB
5853 ** IMPORT_LIB \$IMPORT_LIB
5855 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5857 chmod +x mk_shared_lib.sh
5861 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5862 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5863 cf_cv_shlib_version=msysdll
5864 cf_cv_shlib_version_infix=msysdll
5867 cat >mk_shared_lib.sh <<-CF_EOF
5870 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5873 Linking shared library
5874 ** SHARED_LIB \$SHARED_LIB
5875 ** IMPORT_LIB \$IMPORT_LIB
5877 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5879 chmod +x mk_shared_lib.sh
5882 cf_try_cflags="no-cpp-precomp"
5883 CC_SHARED_OPTS="-dynamic"
5884 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5885 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5886 cf_cv_shlib_version_infix=yes
5887 echo "$as_me:5887: checking if ld -search_paths_first works" >&5
5888 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5889 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cf_save_LDFLAGS=$LDFLAGS
5894 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line 5896 "configure"
5897 #include "confdefs.h"
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:5908: \"$ac_link\"") >&5
5909 (eval $ac_link) 2>&5
5911 echo "$as_me:5911: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -s conftest$ac_exeext'
5914 { (eval echo "$as_me:5914: \"$ac_try\"") >&5
5917 echo "$as_me:5917: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 cf_cv_ldflags_search_paths_first=yes
5921 echo "$as_me: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 cf_cv_ldflags_search_paths_first=no
5925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5926 LDFLAGS=$cf_save_LDFLAGS
5928 echo "$as_me:5928: result: $cf_cv_ldflags_search_paths_first" >&5
5929 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5930 if test $cf_cv_ldflags_search_paths_first = yes; then
5931 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5935 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5936 if test "$GCC" != yes; then
5939 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5940 INSTALL_LIB="-m 555"
5943 # (tested with gcc 2.7.2 -- I don't have c89)
5944 if test "$GCC" = yes; then
5945 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5948 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5950 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5951 # HP-UX shared libraries must be executable, and should be
5952 # readonly to exploit a quirk in the memory manager.
5953 INSTALL_LIB="-m 555"
5956 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5957 if test "$cf_cv_shlib_version" = rel; then
5958 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5960 cf_shared_soname='`basename $@`'
5963 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5966 if test "$cf_cv_enable_rpath" = yes ; then
5967 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5969 # tested with IRIX 5.2 and 'cc'.
5970 if test "$GCC" != yes; then
5971 CC_SHARED_OPTS='-KPIC'
5972 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5974 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5976 cf_cv_rm_so_locs=yes
5978 (linux*|gnu*|k*bsd*-gnu)
5979 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5980 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5981 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5983 if test "$cf_cv_enable_rpath" = yes ; then
5984 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5987 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5988 if test "$cf_cv_shlib_version" = rel; then
5989 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5991 cf_cv_shared_soname='`basename $@`'
5994 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5997 cf_cv_shlib_version=msvcdll
5998 cf_cv_shlib_version_infix=msvcdll
6001 if test "$DFT_LWR_MODEL" = "shared" ; then
6002 LOCAL_LDFLAGS="-link -dll"
6003 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6004 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6007 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6008 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6009 cat >mk_shared_lib.sh <<-CF_EOF
6012 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6017 Linking shared library
6018 ** SHARED LIB \$SHARED_LIB
6019 ** IMPORT_LIB \$IMPORT_LIB
6021 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6022 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6023 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6025 chmod +x mk_shared_lib.sh
6026 cat >mk_prog.sh <<-CF_EOF
6029 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6032 ldopts=("/subsystem:console")
6035 while test \$# -gt 0; do
6038 # ignore -link argument
6041 # ignore runtime-library option
6056 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6059 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6065 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6066 ldopts+=("\${linkarg}")
6074 ldopts+=("-out:\$1")
6083 if [ "\$isdll" -ne 0 ]; then
6084 for lib in \${libs[*]}; do
6085 ldopts+=("\$lib.dll.lib")
6088 for lib in \${libs[*]}; do
6089 ldopts+=("\$lib.lib")
6094 ** ld options: "\${ldopts[@]}"
6096 exec \$LD \${ldopts[@]}
6099 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6100 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6103 cf_cv_shlib_version=mingw
6104 cf_cv_shlib_version_infix=mingw
6107 if test "$DFT_LWR_MODEL" = "shared" ; then
6108 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6109 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6110 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6113 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6114 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6115 cat >mk_shared_lib.sh <<-CF_EOF
6118 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6121 Linking shared library
6122 ** SHARED_LIB \$SHARED_LIB
6123 ** IMPORT_LIB \$IMPORT_LIB
6125 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6127 chmod +x mk_shared_lib.sh
6129 (openbsd[2-9].*|mirbsd*)
6130 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6131 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6132 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6134 if test "$cf_cv_enable_rpath" = yes ; then
6135 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6137 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6139 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6140 if test "$cf_cv_shlib_version" = rel; then
6141 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6143 cf_cv_shared_soname='`basename $@`'
6146 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6148 (nto-qnx*|openbsd*|freebsd[12].*)
6149 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6150 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6151 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6153 (dragonfly*|freebsd*)
6154 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6155 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6156 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6157 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6158 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6161 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6162 if test "$cf_cv_shlib_version" = rel; then
6163 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6165 cf_cv_shared_soname='`basename $@`'
6168 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6171 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6172 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6173 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6174 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6175 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6176 if test "$cf_cv_shlib_version" = auto; then
6177 if test -f /usr/libexec/ld.elf_so; then
6178 cf_cv_shlib_version=abi
6180 cf_cv_shlib_version=rel
6184 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6185 if test "$cf_cv_shlib_version" = rel; then
6186 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6188 cf_cv_shared_soname='`basename $@`'
6191 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6193 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
6197 # tested with OSF/1 V3.2 and 'cc'
6198 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6199 # link with shared libs).
6200 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6203 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6206 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6207 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6208 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6209 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6211 cf_cv_rm_so_locs=yes
6213 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6214 # tested with osr5.0.5
6215 if test "$GCC" != yes; then
6216 CC_SHARED_OPTS='-belf -KPIC'
6218 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6219 if test "$cf_cv_enable_rpath" = yes ; then
6220 # only way is to set LD_RUN_PATH but no switch for it
6223 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6224 LINK_PROGS='LD_RUN_PATH=${libdir}'
6225 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6228 # tested with SunOS 4.1.1 and gcc 2.7.0
6229 if test "$GCC" != yes; then
6230 CC_SHARED_OPTS='-KPIC'
6232 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6233 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6236 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6237 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6238 if test "$DFT_LWR_MODEL" = "shared" ; then
6239 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6240 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6242 if test "$cf_cv_enable_rpath" = yes ; then
6243 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6246 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6247 if test "$cf_cv_shlib_version" = rel; then
6248 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6250 cf_cv_shared_soname='`basename $@`'
6253 if test "$GCC" != yes; then
6254 cf_save_CFLAGS="$CFLAGS"
6255 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6257 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259 #line 6259 "configure"
6260 #include "confdefs.h"
6270 rm -f conftest.$ac_objext
6271 if { (eval echo "$as_me:6271: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>&5
6274 echo "$as_me:6274: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -s conftest.$ac_objext'
6277 { (eval echo "$as_me:6277: \"$ac_try\"") >&5
6280 echo "$as_me:6280: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6284 echo "$as_me: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 rm -f conftest.$ac_objext conftest.$ac_ext
6289 CFLAGS="$cf_save_CFLAGS"
6290 CC_SHARED_OPTS=$cf_shared_opts
6291 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6293 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6296 (sysv5uw7*|unix_sv*)
6297 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6298 if test "$GCC" != yes; then
6299 CC_SHARED_OPTS='-KPIC'
6301 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6304 CC_SHARED_OPTS='unknown'
6305 MK_SHARED_LIB='echo unknown'
6309 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6310 case "$cf_cv_shlib_version" in
6312 case "$MK_SHARED_LIB" in
6314 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6317 { echo "$as_me:6317: WARNING: ignored --with-shlib-version" >&5
6318 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6324 if test -n "$cf_try_cflags"
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6327 "${as_me:-configure}"
6329 int main(int argc, char *argv[])
6332 return (argv[argc-1] == 0) ;
6335 cf_save_CFLAGS="$CFLAGS"
6336 for cf_opt in $cf_try_cflags
6338 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6339 echo "$as_me:6339: checking if CFLAGS option -$cf_opt works" >&5
6340 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6341 if { (eval echo "$as_me:6341: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>&5
6344 echo "$as_me:6344: \$? = $ac_status" >&5
6345 (exit $ac_status); }; then
6346 echo "$as_me:6346: result: yes" >&5
6347 echo "${ECHO_T}yes" >&6
6348 cf_save_CFLAGS="$CFLAGS"
6350 echo "$as_me:6350: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6354 CFLAGS="$cf_save_CFLAGS"
6357 # RPATH_LIST is a colon-separated list of directories
6358 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6359 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6361 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6363 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6365 echo "${as_me:-configure}:6365: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6367 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6369 echo "${as_me:-configure}:6369: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6371 for model in $cf_list_models; do
6375 echo "$as_me:6375: checking for additional libtool options" >&5
6376 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6378 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6379 if test "${with_libtool_opts+set}" = set; then
6380 withval="$with_libtool_opts"
6381 with_libtool_opts=$withval
6383 with_libtool_opts=no
6385 echo "$as_me:6385: result: $with_libtool_opts" >&5
6386 echo "${ECHO_T}$with_libtool_opts" >&6
6388 case .$with_libtool_opts in
6392 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6396 echo "$as_me:6396: checking if exported-symbols file should be used" >&5
6397 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6399 # Check whether --with-export-syms or --without-export-syms was given.
6400 if test "${with_export_syms+set}" = set; then
6401 withval="$with_export_syms"
6402 with_export_syms=$withval
6406 if test "x$with_export_syms" = xyes
6408 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6411 echo "$as_me:6411: result: $with_export_syms" >&5
6412 echo "${ECHO_T}$with_export_syms" >&6
6413 if test "x$with_export_syms" != xno
6415 EXPORT_SYMS="-export-symbols $with_export_syms"
6421 if test "$CC_SHARED_OPTS" = "unknown"; then
6422 { { echo "$as_me:6422: error: Shared libraries are not supported in this version" >&5
6423 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6424 { (exit 1); exit 1; }; }
6426 # workaround for inept transition to PIE vs PIC...
6427 echo "$as_me:6427: checking if current CFLAGS link properly" >&5
6428 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6430 #line 6430 "configure"
6431 #include "confdefs.h"
6436 printf("Hello work\n");
6441 rm -f conftest.$ac_objext conftest$ac_exeext
6442 if { (eval echo "$as_me:6442: \"$ac_link\"") >&5
6443 (eval $ac_link) 2>&5
6445 echo "$as_me:6445: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:6448: \"$ac_try\"") >&5
6451 echo "$as_me:6451: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6455 echo "$as_me: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6460 echo "$as_me:6460: result: $cf_cflags_work" >&5
6461 echo "${ECHO_T}$cf_cflags_work" >&6
6462 if test "$cf_cflags_work" = no
6464 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6466 echo "${as_me:-configure}:6466: testing try to work around by appending shared-options ..." 1>&5
6468 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6471 echo "$as_me:6471: checking if versioned-symbols file should be used" >&5
6472 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6474 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6475 if test "${with_versioned_syms+set}" = set; then
6476 withval="$with_versioned_syms"
6477 with_versioned_syms=$withval
6479 with_versioned_syms=no
6481 case "x$with_versioned_syms" in
6483 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6489 test -f "$with_versioned_syms" || { { echo "$as_me:6489: error: expected a filename: $with_versioned_syms" >&5
6490 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6491 { (exit 1); exit 1; }; }
6494 test -f "$with_versioned_syms" || { { echo "$as_me:6494: error: expected a filename: $with_versioned_syms" >&5
6495 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6496 { (exit 1); exit 1; }; }
6497 with_versioned_syms=`pwd`/"$with_versioned_syms"
6500 echo "$as_me:6500: result: $with_versioned_syms" >&5
6501 echo "${ECHO_T}$with_versioned_syms" >&6
6507 if test "x$with_versioned_syms" != xno
6509 RESULTING_SYMS=$with_versioned_syms
6510 case "x$MK_SHARED_LIB" in
6512 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6513 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6514 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6516 echo "${as_me:-configure}:6516: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6520 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6521 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6522 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6524 echo "${as_me:-configure}:6524: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6528 { echo "$as_me:6528: WARNING: this system does not support versioned-symbols" >&5
6529 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6533 # Linux ld can selectively override scope, e.g., of symbols beginning with
6534 # "_" by first declaring some as global, and then using a wildcard to
6535 # declare the others as local. Some other loaders cannot do this. Check
6536 # by constructing a (very) simple shared library and inspecting its
6538 if test "x$VERSIONED_SYMS" != "x"
6540 echo "$as_me:6540: checking if wildcards can be used to selectively omit symbols" >&5
6541 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6547 cat >conftest.ver <<EOF
6576 cat >conftest.$ac_ext <<EOF
6577 #line 6577 "configure"
6578 int _ismissing(void) { return 1; }
6579 int _localf1(void) { return 1; }
6580 int _localf2(void) { return 2; }
6581 int globalf1(void) { return 1; }
6582 int globalf2(void) { return 2; }
6583 int _sublocalf1(void) { return 1; }
6584 int _sublocalf2(void) { return 2; }
6585 int subglobalf1(void) { return 1; }
6586 int subglobalf2(void) { return 2; }
6588 cat >conftest.mk <<EOF
6591 CPPFLAGS=${CPPFLAGS}
6594 VERSIONED_SYMS=${VERSIONED_SYMS}
6595 RESULTING_SYMS=conftest.ver
6596 MK_SHARED_LIB=${MK_SHARED_LIB}
6597 conftest.so: conftest.$ac_cv_objext
6598 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6601 # compile source, make library
6602 if make -f conftest.mk 2>&5 >/dev/null
6604 # test for missing symbol in either Data or Text section
6605 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6606 test -n "$cf_missing" && WILDCARD_SYMS=yes
6608 echo "$as_me:6608: result: $WILDCARD_SYMS" >&5
6609 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6618 ### Checks for special libraries, must be done up-front.
6621 echo "$as_me:6621: checking if you want to link with the GPM mouse library" >&5
6622 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6624 # Check whether --with-gpm or --without-gpm was given.
6625 if test "${with_gpm+set}" = set; then
6631 echo "$as_me:6631: result: $with_gpm" >&5
6632 echo "${ECHO_T}$with_gpm" >&6
6634 if test "$with_gpm" != no ; then
6635 echo "$as_me:6635: checking for gpm.h" >&5
6636 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6637 if test "${ac_cv_header_gpm_h+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line 6641 "configure"
6642 #include "confdefs.h"
6645 if { (eval echo "$as_me:6645: \"$ac_cpp conftest.$ac_ext\"") >&5
6646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6648 egrep -v '^ *\+' conftest.er1 >conftest.err
6650 cat conftest.err >&5
6651 echo "$as_me:6651: \$? = $ac_status" >&5
6652 (exit $ac_status); } >/dev/null; then
6653 if test -s conftest.err; then
6654 ac_cpp_err=$ac_c_preproc_warn_flag
6661 if test -z "$ac_cpp_err"; then
6662 ac_cv_header_gpm_h=yes
6664 echo "$as_me: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 ac_cv_header_gpm_h=no
6668 rm -f conftest.err conftest.$ac_ext
6670 echo "$as_me:6670: result: $ac_cv_header_gpm_h" >&5
6671 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6672 if test $ac_cv_header_gpm_h = yes; then
6674 cat >>confdefs.h <<\EOF
6675 #define HAVE_GPM_H 1
6678 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6679 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6681 echo "${as_me:-configure}:6681: testing assuming we really have GPM library ..." 1>&5
6683 cat >>confdefs.h <<\EOF
6684 #define HAVE_LIBGPM 1
6689 echo "$as_me:6689: checking for Gpm_Open in -lgpm" >&5
6690 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6691 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_check_lib_save_LIBS=$LIBS
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line 6697 "configure"
6698 #include "confdefs.h"
6700 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (eval echo "$as_me:6716: \"$ac_link\"") >&5
6717 (eval $ac_link) 2>&5
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest$ac_exeext'
6722 { (eval echo "$as_me:6722: \"$ac_try\"") >&5
6725 echo "$as_me:6725: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 ac_cv_lib_gpm_Gpm_Open=yes
6729 echo "$as_me: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6731 ac_cv_lib_gpm_Gpm_Open=no
6733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6734 LIBS=$ac_check_lib_save_LIBS
6736 echo "$as_me:6736: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6737 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6738 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6742 if test "$with_gpm" = maybe; then
6743 { echo "$as_me:6743: WARNING: Cannot link with GPM library" >&5
6744 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6747 { { echo "$as_me:6747: error: Cannot link with GPM library" >&5
6748 echo "$as_me: error: Cannot link with GPM library" >&2;}
6749 { (exit 1); exit 1; }; }
6758 test "$with_gpm" != maybe && { echo "$as_me:6758: WARNING: Cannot find GPM header" >&5
6759 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6766 if test "$with_gpm" != no ; then
6767 echo "$as_me:6767: checking if you want to load GPM dynamically" >&5
6768 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6770 # Check whether --with-dlsym or --without-dlsym was given.
6771 if test "${with_dlsym+set}" = set; then
6772 withval="$with_dlsym"
6777 echo "$as_me:6777: result: $with_dlsym" >&5
6778 echo "${ECHO_T}$with_dlsym" >&6
6779 if test "x$with_dlsym" = xyes ; then
6782 echo "$as_me:6782: checking for dlsym" >&5
6783 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6784 if test "${ac_cv_func_dlsym+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6788 #line 6788 "configure"
6789 #include "confdefs.h"
6790 #define dlsym autoconf_temporary
6791 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 /* The GNU C library defines stubs for functions which it implements
6807 to always fail with ENOSYS. Some functions are actually named
6808 something starting with __ and the normal name is an alias. */
6809 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6810 #error found stub for dlsym
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:6819: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>&5
6822 echo "$as_me:6822: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:6825: \"$ac_try\"") >&5
6828 echo "$as_me:6828: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_func_dlsym=yes
6832 echo "$as_me: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 echo "$as_me:6838: result: $ac_cv_func_dlsym" >&5
6839 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6840 if test $ac_cv_func_dlsym = yes; then
6845 echo "$as_me:6845: checking for dlsym in -ldl" >&5
6846 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6847 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_check_lib_save_LIBS=$LIBS
6852 cat >conftest.$ac_ext <<_ACEOF
6853 #line 6853 "configure"
6854 #include "confdefs.h"
6856 /* Override any gcc2 internal prototype to avoid an error. */
6860 /* We use char because int might match the return type of a gcc2
6861 builtin and then its argument prototype would still apply. */
6871 rm -f conftest.$ac_objext conftest$ac_exeext
6872 if { (eval echo "$as_me:6872: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>&5
6875 echo "$as_me:6875: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -s conftest$ac_exeext'
6878 { (eval echo "$as_me:6878: \"$ac_try\"") >&5
6881 echo "$as_me:6881: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_cv_lib_dl_dlsym=yes
6885 echo "$as_me: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 ac_cv_lib_dl_dlsym=no
6889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6890 LIBS=$ac_check_lib_save_LIBS
6892 echo "$as_me:6892: result: $ac_cv_lib_dl_dlsym" >&5
6893 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6894 if test $ac_cv_lib_dl_dlsym = yes; then
6902 if test "$cf_have_dlsym" = yes ; then
6903 test "$cf_have_libdl" = yes && {
6907 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6909 for cf_add_1lib in $cf_add_0lib; do
6910 for cf_add_2lib in $cf_add_libs; do
6911 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6916 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6921 echo "$as_me:6921: checking whether able to link to dl*() functions" >&5
6922 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6924 #line 6924 "configure"
6925 #include "confdefs.h"
6932 if ((obj = dlopen("filename", 0)) != 0) {
6933 if (dlsym(obj, "symbolname") == 0) {
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:6942: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:6948: \"$ac_try\"") >&5
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6954 cat >>confdefs.h <<\EOF
6955 #define HAVE_LIBDL 1
6959 echo "$as_me: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 { { echo "$as_me:6962: error: Cannot link test program for libdl" >&5
6963 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6964 { (exit 1); exit 1; }; }
6966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 echo "$as_me:6967: result: ok" >&5
6968 echo "${ECHO_T}ok" >&6
6970 { { echo "$as_me:6970: error: Cannot find dlsym function" >&5
6971 echo "$as_me: error: Cannot find dlsym function" >&2;}
6972 { (exit 1); exit 1; }; }
6975 if test "x$with_gpm" != xyes ; then
6976 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6978 echo "${as_me:-configure}:6978: testing assuming soname for gpm is $with_gpm ..." 1>&5
6980 cf_cv_gpm_soname="$with_gpm"
6983 echo "$as_me:6983: checking for soname of gpm library" >&5
6984 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6985 if test "${cf_cv_gpm_soname+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cf_cv_gpm_soname=unknown
6990 if test "$cross_compiling" != yes ; then
6991 cat >conftest.$ac_ext <<CF_EOF
6995 if (Gpm_Open(0,0)) Gpm_Close();
6996 ${cf_cv_main_return:-return}(0);
6999 cf_save_LIBS="$LIBS"
7004 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7006 for cf_add_1lib in $cf_add_0lib; do
7007 for cf_add_2lib in $cf_add_libs; do
7008 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7013 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7017 if { (eval echo "$as_me:7017: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>&5
7020 echo "$as_me:7020: \$? = $ac_status" >&5
7021 (exit $ac_status); } ; then
7022 if { (eval echo "$as_me:7022: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 (exit $ac_status); } ; then
7027 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
7028 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7032 LIBS="$cf_save_LIBS"
7036 echo "$as_me:7036: result: $cf_cv_gpm_soname" >&5
7037 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7040 test "$cf_cv_gpm_soname" != "unknown" &&
7041 cat >>confdefs.h <<EOF
7042 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7045 SHLIB_LIST="-ldl $SHLIB_LIST"
7047 cf_add_libs="$PRIVATE_LIBS"
7050 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7052 for cf_add_1lib in $cf_add_0lib; do
7053 for cf_add_2lib in $cf_add_libs; do
7054 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7059 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7061 PRIVATE_LIBS="$cf_add_libs"
7064 SHLIB_LIST="-lgpm $SHLIB_LIST"
7066 cf_add_libs="$TEST_LIBS"
7069 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7071 for cf_add_1lib in $cf_add_0lib; do
7072 for cf_add_2lib in $cf_add_libs; do
7073 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7078 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7080 TEST_LIBS="$cf_add_libs"
7082 cf_add_libs="$PRIVATE_LIBS"
7085 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7087 for cf_add_1lib in $cf_add_0lib; do
7088 for cf_add_2lib in $cf_add_libs; do
7089 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7094 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7096 PRIVATE_LIBS="$cf_add_libs"
7100 cat >>confdefs.h <<\EOF
7101 #define HAVE_LIBGPM 1
7104 echo "$as_me:7104: checking for Gpm_Wgetch in -lgpm" >&5
7105 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7106 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_check_lib_save_LIBS=$LIBS
7111 cat >conftest.$ac_ext <<_ACEOF
7112 #line 7112 "configure"
7113 #include "confdefs.h"
7115 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131 if { (eval echo "$as_me:7131: \"$ac_link\"") >&5
7132 (eval $ac_link) 2>&5
7134 echo "$as_me:7134: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try='test -s conftest$ac_exeext'
7137 { (eval echo "$as_me:7137: \"$ac_try\"") >&5
7140 echo "$as_me:7140: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_lib_gpm_Gpm_Wgetch=yes
7144 echo "$as_me: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 ac_cv_lib_gpm_Gpm_Wgetch=no
7148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7149 LIBS=$ac_check_lib_save_LIBS
7151 echo "$as_me:7151: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7152 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7153 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
7155 echo "$as_me:7155: checking if GPM is weakly bound to curses library" >&5
7156 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7157 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 cf_cv_check_gpm_wgetch=unknown
7162 if test "$cross_compiling" != yes ; then
7164 cat >conftest.$ac_ext <<CF_EOF
7169 ${cf_cv_main_return:-return}(0);
7173 cf_save_LIBS="$LIBS"
7174 # This only works if we can look at the symbol table. If a shared
7175 # library is stripped for install, we cannot use that. So we're forced
7176 # to rely on the static library, noting that some packagers may not
7178 LIBS="-static -lgpm -dynamic $LIBS"
7179 if { (eval echo "$as_me:7179: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>&5
7182 echo "$as_me:7182: \$? = $ac_status" >&5
7183 (exit $ac_status); } ; then
7184 if { (eval echo "$as_me:7184: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 (exit $ac_status); } ; then
7189 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
7190 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7191 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7195 LIBS="$cf_save_LIBS"
7199 echo "$as_me:7199: result: $cf_cv_check_gpm_wgetch" >&5
7200 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7202 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7203 { echo "$as_me:7203: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7204 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7211 echo "$as_me:7211: checking if you want to use PCRE2 for regular-expressions" >&5
7212 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7214 # Check whether --with-pcre2 or --without-pcre2 was given.
7215 if test "${with_pcre2+set}" = set; then
7216 withval="$with_pcre2"
7219 test -z "$with_pcre2" && with_pcre2=no
7220 echo "$as_me:7220: result: $with_pcre2" >&5
7221 echo "${ECHO_T}$with_pcre2" >&6
7223 if test "x$with_pcre2" != xno ; then
7225 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
7226 test -n "$verbose" && echo " found package libpcre2" 1>&6
7228 echo "${as_me:-configure}:7228: testing found package libpcre2 ..." 1>&5
7230 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
7231 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
7232 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7234 echo "${as_me:-configure}:7234: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7236 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7238 echo "${as_me:-configure}:7238: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7243 cf_new_extra_cppflags=
7245 for cf_add_cflags in $cf_pkgconfig_incs
7247 case $cf_fix_cppflags in
7249 case $cf_add_cflags in
7250 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7251 case $cf_add_cflags in
7253 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7255 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7256 && test -z "${cf_tst_cflags}" \
7257 && cf_fix_cppflags=yes
7259 if test $cf_fix_cppflags = yes ; then
7261 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7262 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7265 elif test "${cf_tst_cflags}" = "\"'" ; then
7267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7278 case $cf_add_cflags in
7280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7282 CPPFLAGS=`echo "$CPPFLAGS" | \
7283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7289 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7290 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7297 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7298 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7308 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7310 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7311 && test -z "${cf_tst_cflags}" \
7312 && cf_fix_cppflags=no
7317 if test -n "$cf_new_cflags" ; then
7319 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7320 CFLAGS="${CFLAGS}$cf_new_cflags"
7324 if test -n "$cf_new_cppflags" ; then
7326 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7327 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7331 if test -n "$cf_new_extra_cppflags" ; then
7333 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7334 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7341 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7343 for cf_add_1lib in $cf_add_0lib; do
7344 for cf_add_2lib in $cf_add_libs; do
7345 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7350 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7359 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7360 test -n "$verbose" && echo " found package libpcre" 1>&6
7362 echo "${as_me:-configure}:7362: testing found package libpcre ..." 1>&5
7364 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7365 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7366 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7368 echo "${as_me:-configure}:7368: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7370 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7372 echo "${as_me:-configure}:7372: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7377 cf_new_extra_cppflags=
7379 for cf_add_cflags in $cf_pkgconfig_incs
7381 case $cf_fix_cppflags in
7383 case $cf_add_cflags in
7384 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7385 case $cf_add_cflags in
7387 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7389 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7390 && test -z "${cf_tst_cflags}" \
7391 && cf_fix_cppflags=yes
7393 if test $cf_fix_cppflags = yes ; then
7395 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7396 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7399 elif test "${cf_tst_cflags}" = "\"'" ; then
7401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7412 case $cf_add_cflags in
7414 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7416 CPPFLAGS=`echo "$CPPFLAGS" | \
7417 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7418 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7423 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7424 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7431 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7432 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7439 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7440 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7442 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7444 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7445 && test -z "${cf_tst_cflags}" \
7446 && cf_fix_cppflags=no
7451 if test -n "$cf_new_cflags" ; then
7453 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7454 CFLAGS="${CFLAGS}$cf_new_cflags"
7458 if test -n "$cf_new_cppflags" ; then
7460 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7461 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7465 if test -n "$cf_new_extra_cppflags" ; then
7467 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7468 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7475 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7477 for cf_add_1lib in $cf_add_0lib; do
7478 for cf_add_2lib in $cf_add_libs; do
7479 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7484 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7493 { { echo "$as_me:7493: error: Cannot find PCRE2 library" >&5
7494 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7495 { (exit 1); exit 1; }; }
7500 cat >>confdefs.h <<\EOF
7501 #define HAVE_LIB_PCRE2 1
7504 # if pkgconfig gave no results, look for the libraries directly
7506 (*pcre2-posix*|*pcreposix*)
7509 echo "$as_me:7509: checking for regcomp in -lpcre2-posix" >&5
7510 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7511 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 ac_check_lib_save_LIBS=$LIBS
7515 LIBS="-lpcre2-posix $LIBS"
7516 cat >conftest.$ac_ext <<_ACEOF
7517 #line 7517 "configure"
7518 #include "confdefs.h"
7520 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (eval echo "$as_me:7536: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>&5
7539 echo "$as_me:7539: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -s conftest$ac_exeext'
7542 { (eval echo "$as_me:7542: \"$ac_try\"") >&5
7545 echo "$as_me:7545: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_lib_pcre2_posix_regcomp=yes
7549 echo "$as_me: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7551 ac_cv_lib_pcre2_posix_regcomp=no
7553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7554 LIBS=$ac_check_lib_save_LIBS
7556 echo "$as_me:7556: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7557 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7558 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7563 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7565 for cf_add_1lib in $cf_add_0lib; do
7566 for cf_add_2lib in $cf_add_libs; do
7567 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7572 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7577 echo "$as_me:7577: checking for regcomp in -lpcreposix" >&5
7578 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7579 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_check_lib_save_LIBS=$LIBS
7583 LIBS="-lpcreposix $LIBS"
7584 cat >conftest.$ac_ext <<_ACEOF
7585 #line 7585 "configure"
7586 #include "confdefs.h"
7588 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:7604: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7607 echo "$as_me:7607: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:7610: \"$ac_try\"") >&5
7613 echo "$as_me:7613: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_lib_pcreposix_regcomp=yes
7617 echo "$as_me: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 ac_cv_lib_pcreposix_regcomp=no
7621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7624 echo "$as_me:7624: result: $ac_cv_lib_pcreposix_regcomp" >&5
7625 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7626 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7631 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7633 for cf_add_1lib in $cf_add_0lib; do
7634 for cf_add_2lib in $cf_add_libs; do
7635 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7640 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7645 { { echo "$as_me:7645: error: Cannot find PCRE2 POSIX library" >&5
7646 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7647 { (exit 1); exit 1; }; }
7655 # either way, check for the library header files
7657 for ac_header in pcre2posix.h pcreposix.h
7659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7660 echo "$as_me:7660: checking for $ac_header" >&5
7661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7668 #include <$ac_header>
7670 if { (eval echo "$as_me:7670: \"$ac_cpp conftest.$ac_ext\"") >&5
7671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7673 egrep -v '^ *\+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:7676: \$? = $ac_status" >&5
7677 (exit $ac_status); } >/dev/null; then
7678 if test -s conftest.err; then
7679 ac_cpp_err=$ac_c_preproc_warn_flag
7686 if test -z "$ac_cpp_err"; then
7687 eval "$as_ac_Header=yes"
7689 echo "$as_me: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7691 eval "$as_ac_Header=no"
7693 rm -f conftest.err conftest.$ac_ext
7695 echo "$as_me:7695: result: `eval echo '${'$as_ac_Header'}'`" >&5
7696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h <<EOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7707 # not everyone has "test -c"
7708 if test -c /dev/sysmouse 2>/dev/null ; then
7709 echo "$as_me:7709: checking if you want to use sysmouse" >&5
7710 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7712 # Check whether --with-sysmouse or --without-sysmouse was given.
7713 if test "${with_sysmouse+set}" = set; then
7714 withval="$with_sysmouse"
7715 cf_with_sysmouse=$withval
7717 cf_with_sysmouse=maybe
7719 if test "$cf_with_sysmouse" != no ; then
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line 7721 "configure"
7722 #include "confdefs.h"
7724 #include <osreldate.h>
7725 #if (__FreeBSD_version >= 400017)
7726 #include <sys/consio.h>
7727 #include <sys/fbio.h>
7729 #include <machine/console.h>
7736 struct mouse_info the_mouse;
7737 ioctl(0, CONS_MOUSECTL, &the_mouse);
7743 rm -f conftest.$ac_objext
7744 if { (eval echo "$as_me:7744: \"$ac_compile\"") >&5
7745 (eval $ac_compile) 2>&5
7747 echo "$as_me:7747: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -s conftest.$ac_objext'
7750 { (eval echo "$as_me:7750: \"$ac_try\"") >&5
7753 echo "$as_me:7753: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 cf_with_sysmouse=yes
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7761 rm -f conftest.$ac_objext conftest.$ac_ext
7763 echo "$as_me:7763: result: $cf_with_sysmouse" >&5
7764 echo "${ECHO_T}$cf_with_sysmouse" >&6
7765 test "$cf_with_sysmouse" = yes &&
7766 cat >>confdefs.h <<\EOF
7767 #define USE_SYSMOUSE 1
7772 # pretend that ncurses==ncursesw==ncursest
7773 echo "$as_me:7773: checking if you want to disable library suffixes" >&5
7774 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7776 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7777 if test "${enable_lib_suffixes+set}" = set; then
7778 enableval="$enable_lib_suffixes"
7779 test "$enableval" != no && enableval=yes
7780 if test "$enableval" != "yes" ; then
7781 disable_lib_suffixes=yes
7783 disable_lib_suffixes=no
7787 disable_lib_suffixes=no
7790 echo "$as_me:7790: result: $disable_lib_suffixes" >&5
7791 echo "${ECHO_T}$disable_lib_suffixes" >&6
7793 ### If we're building with rpath, try to link non-standard libs that way too.
7794 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7796 echo "$as_me:7796: checking if rpath-hack should be disabled" >&5
7797 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7799 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7800 if test "${enable_rpath_hack+set}" = set; then
7801 enableval="$enable_rpath_hack"
7802 test "$enableval" != no && enableval=yes
7803 if test "$enableval" != "yes" ; then
7804 cf_disable_rpath_hack=yes
7806 cf_disable_rpath_hack=no
7810 cf_disable_rpath_hack=no
7813 echo "$as_me:7813: result: $cf_disable_rpath_hack" >&5
7814 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7815 if test "$cf_disable_rpath_hack" = no ; then
7817 echo "$as_me:7817: checking for updated LDFLAGS" >&5
7818 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7819 if test -n "$LD_RPATH_OPT" ; then
7820 echo "$as_me:7820: result: maybe" >&5
7821 echo "${ECHO_T}maybe" >&6
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 echo "$as_me:7827: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 if test -n "$cf_ldd_prog"; then
7833 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7835 ac_save_IFS=$IFS; IFS=$ac_path_separator
7837 for ac_dir in $ac_dummy; do
7839 test -z "$ac_dir" && ac_dir=.
7840 $as_executable_p "$ac_dir/$ac_word" || continue
7841 ac_cv_prog_cf_ldd_prog="$ac_prog"
7842 echo "$as_me:7842: found $ac_dir/$ac_word" >&5
7848 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7849 if test -n "$cf_ldd_prog"; then
7850 echo "$as_me:7850: result: $cf_ldd_prog" >&5
7851 echo "${ECHO_T}$cf_ldd_prog" >&6
7853 echo "$as_me:7853: result: no" >&5
7854 echo "${ECHO_T}no" >&6
7857 test -n "$cf_ldd_prog" && break
7859 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7861 cf_rpath_list="/usr/lib /lib"
7862 if test "$cf_ldd_prog" != no
7866 cat >conftest.$ac_ext <<_ACEOF
7867 #line 7867 "configure"
7868 #include "confdefs.h"
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:7879: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7882 echo "$as_me:7882: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:7885: \"$ac_try\"") >&5
7888 echo "$as_me:7888: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7891 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7893 echo "$as_me: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7898 # If we passed the link-test, but get a "not found" on a given library,
7899 # this could be due to inept reconfiguration of gcc to make it only
7900 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7901 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7902 # /usr/local libraries.
7903 if test -n "$cf_rpath_oops"
7905 for cf_rpath_src in $cf_rpath_oops
7907 for cf_rpath_dir in \
7912 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7914 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7916 echo "${as_me:-configure}:7916: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7918 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7926 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7928 echo "${as_me:-configure}:7928: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7930 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7932 echo "${as_me:-configure}:7932: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7935 for cf_rpath_src in $LDFLAGS
7937 case $cf_rpath_src in
7940 # check if this refers to a directory which we will ignore
7942 if test -n "$cf_rpath_list"
7944 for cf_rpath_item in $cf_rpath_list
7946 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7954 if test "$cf_rpath_skip" = no
7956 # transform the option
7957 if test "$LD_RPATH_OPT" = "-R " ; then
7958 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7960 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7963 # if we have not already added this, add it now
7964 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7965 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7967 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7969 echo "${as_me:-configure}:7969: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7971 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7976 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7978 LDFLAGS=$cf_rpath_dst
7980 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7982 echo "${as_me:-configure}:7982: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7984 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7986 echo "${as_me:-configure}:7986: testing ...checking LIBS $LIBS ..." 1>&5
7989 for cf_rpath_src in $LIBS
7991 case $cf_rpath_src in
7994 # check if this refers to a directory which we will ignore
7996 if test -n "$cf_rpath_list"
7998 for cf_rpath_item in $cf_rpath_list
8000 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8008 if test "$cf_rpath_skip" = no
8010 # transform the option
8011 if test "$LD_RPATH_OPT" = "-R " ; then
8012 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8014 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8017 # if we have not already added this, add it now
8018 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8019 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8021 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8023 echo "${as_me:-configure}:8023: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8025 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8030 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8034 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8036 echo "${as_me:-configure}:8036: testing ...checked LIBS $LIBS ..." 1>&5
8038 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8040 echo "${as_me:-configure}:8040: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8043 echo "$as_me:8043: result: no" >&5
8044 echo "${ECHO_T}no" >&6
8051 ### Depending on the system, someone may use rpath to build ncurses but not
8052 # want users of the package to rely upon that feature. Give those people an
8053 # option to suppress that detail from EXTRA_LDFLAGS.
8054 EXTRA_PKG_LDFLAGS="$EXTRA_LDFLAGS"
8055 if test -n "$EXTRA_PKG_LDFLAGS"
8057 echo "$as_me:8057: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8058 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8060 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8061 if test "${enable_pkg_ldflags+set}" = set; then
8062 enableval="$enable_pkg_ldflags"
8063 test "$enableval" != no && enableval=yes
8064 if test "$enableval" != "yes" ; then
8065 disable_pkg_ldflags=yes
8067 disable_pkg_ldflags=no
8071 disable_pkg_ldflags=no
8074 echo "$as_me:8074: result: $disable_pkg_ldflags" >&5
8075 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8076 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8079 ###############################################################################
8081 ### use option --with-extra-suffix to append suffix to headers and libraries
8082 echo "$as_me:8082: checking if you wish to append extra suffix to header/library paths" >&5
8083 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8086 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8087 if test "${with_extra_suffix+set}" = set; then
8088 withval="$with_extra_suffix"
8093 EXTRA_SUFFIX=$cf_cv_abi_version
8096 EXTRA_SUFFIX=$withval
8101 echo "$as_me:8101: result: $EXTRA_SUFFIX" >&5
8102 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8104 ### use option --disable-overwrite to leave out the link to -lcurses
8105 echo "$as_me:8105: checking if you wish to install ncurses overwriting curses" >&5
8106 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8108 # Check whether --enable-overwrite or --disable-overwrite was given.
8109 if test "${enable_overwrite+set}" = set; then
8110 enableval="$enable_overwrite"
8111 with_overwrite=$enableval
8113 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8115 echo "$as_me:8115: result: $with_overwrite" >&5
8116 echo "${ECHO_T}$with_overwrite" >&6
8118 echo "$as_me:8118: checking if external terminfo-database is used" >&5
8119 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8121 # Check whether --enable-database or --disable-database was given.
8122 if test "${enable_database+set}" = set; then
8123 enableval="$enable_database"
8124 use_database=$enableval
8128 echo "$as_me:8128: result: $use_database" >&5
8129 echo "${ECHO_T}$use_database" >&6
8133 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8136 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8140 NCURSES_USE_DATABASE=0
8141 if test "$use_database" != no ; then
8142 NCURSES_USE_DATABASE=1
8144 echo "$as_me:8144: checking which terminfo source-file will be installed" >&5
8145 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8147 # Check whether --with-database or --without-database was given.
8148 if test "${with_database+set}" = set; then
8149 withval="$with_database"
8150 TERMINFO_SRC=$withval
8152 echo "$as_me:8152: result: $TERMINFO_SRC" >&5
8153 echo "${ECHO_T}$TERMINFO_SRC" >&6
8155 echo "$as_me:8155: checking whether to use hashed database instead of directory/tree" >&5
8156 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8158 # Check whether --with-hashed-db or --without-hashed-db was given.
8159 if test "${with_hashed_db+set}" = set; then
8160 withval="$with_hashed_db"
8165 echo "$as_me:8165: result: $with_hashed_db" >&5
8166 echo "${ECHO_T}$with_hashed_db" >&6
8171 echo "$as_me:8171: checking for list of fallback descriptions" >&5
8172 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8174 # Check whether --with-fallbacks or --without-fallbacks was given.
8175 if test "${with_fallbacks+set}" = set; then
8176 withval="$with_fallbacks"
8177 with_fallback=$withval
8181 echo "$as_me:8181: result: $with_fallback" >&5
8182 echo "${ECHO_T}$with_fallback" >&6
8184 case ".$with_fallback" in
8189 { echo "$as_me:8189: WARNING: expected a list of terminal descriptions" >&5
8190 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8193 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8197 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8198 # tree for generating the terminal descriptions that will be compiled into the
8199 # library. If your toolchain is old, it may not handle current terminal
8200 # databases. Use configure-options to point to the tools which will be used,
8201 # rather than the first ones found on the $PATH.
8202 if test -n "$ac_tool_prefix"; then
8203 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8204 set dummy ${ac_tool_prefix}tic; ac_word=$2
8205 echo "$as_me:8205: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8207 if test "${ac_cv_prog_TIC+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 if test -n "$TIC"; then
8211 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8213 ac_save_IFS=$IFS; IFS=$ac_path_separator
8215 for ac_dir in $ac_dummy; do
8217 test -z "$ac_dir" && ac_dir=.
8218 $as_executable_p "$ac_dir/$ac_word" || continue
8219 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8220 echo "$as_me:8220: found $ac_dir/$ac_word" >&5
8227 if test -n "$TIC"; then
8228 echo "$as_me:8228: result: $TIC" >&5
8229 echo "${ECHO_T}$TIC" >&6
8231 echo "$as_me:8231: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8236 if test -z "$ac_cv_prog_TIC"; then
8238 # Extract the first word of "tic", so it can be a program name with args.
8239 set dummy tic; ac_word=$2
8240 echo "$as_me:8240: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8242 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 if test -n "$ac_ct_TIC"; then
8246 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8248 ac_save_IFS=$IFS; IFS=$ac_path_separator
8250 for ac_dir in $ac_dummy; do
8252 test -z "$ac_dir" && ac_dir=.
8253 $as_executable_p "$ac_dir/$ac_word" || continue
8254 ac_cv_prog_ac_ct_TIC="tic"
8255 echo "$as_me:8255: found $ac_dir/$ac_word" >&5
8261 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8262 if test -n "$ac_ct_TIC"; then
8263 echo "$as_me:8263: result: $ac_ct_TIC" >&5
8264 echo "${ECHO_T}$ac_ct_TIC" >&6
8266 echo "$as_me:8266: result: no" >&5
8267 echo "${ECHO_T}no" >&6
8272 TIC="$ac_cv_prog_TIC"
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8278 echo "$as_me:8278: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 if test -n "$INFOCMP"; then
8284 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8286 ac_save_IFS=$IFS; IFS=$ac_path_separator
8288 for ac_dir in $ac_dummy; do
8290 test -z "$ac_dir" && ac_dir=.
8291 $as_executable_p "$ac_dir/$ac_word" || continue
8292 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8293 echo "$as_me:8293: found $ac_dir/$ac_word" >&5
8299 INFOCMP=$ac_cv_prog_INFOCMP
8300 if test -n "$INFOCMP"; then
8301 echo "$as_me:8301: result: $INFOCMP" >&5
8302 echo "${ECHO_T}$INFOCMP" >&6
8304 echo "$as_me:8304: result: no" >&5
8305 echo "${ECHO_T}no" >&6
8309 if test -z "$ac_cv_prog_INFOCMP"; then
8310 ac_ct_INFOCMP=$INFOCMP
8311 # Extract the first word of "infocmp", so it can be a program name with args.
8312 set dummy infocmp; ac_word=$2
8313 echo "$as_me:8313: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 if test -n "$ac_ct_INFOCMP"; then
8319 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8321 ac_save_IFS=$IFS; IFS=$ac_path_separator
8323 for ac_dir in $ac_dummy; do
8325 test -z "$ac_dir" && ac_dir=.
8326 $as_executable_p "$ac_dir/$ac_word" || continue
8327 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8328 echo "$as_me:8328: found $ac_dir/$ac_word" >&5
8334 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8335 if test -n "$ac_ct_INFOCMP"; then
8336 echo "$as_me:8336: result: $ac_ct_INFOCMP" >&5
8337 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8339 echo "$as_me:8339: result: no" >&5
8340 echo "${ECHO_T}no" >&6
8343 INFOCMP=$ac_ct_INFOCMP
8345 INFOCMP="$ac_cv_prog_INFOCMP"
8348 if test -n "$FALLBACK_LIST"
8351 # Check whether --with-tic-path or --without-tic-path was given.
8352 if test "${with_tic_path+set}" = set; then
8353 withval="$with_tic_path"
8354 echo "$as_me:8354: checking for tic program for fallbacks" >&5
8355 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8357 echo "$as_me:8357: result: $TIC" >&5
8358 echo "${ECHO_T}$TIC" >&6
8360 if test "x$prefix" != xNONE; then
8361 cf_path_syntax="$prefix"
8363 cf_path_syntax="$ac_default_prefix"
8371 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8373 (.\${*prefix}*|.\${*dir}*)
8377 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8382 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8385 { { echo "$as_me:8385: error: expected a pathname, not \"$TIC\"" >&5
8386 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8387 { (exit 1); exit 1; }; }
8393 test -z "$TIC" && TIC=tic
8394 for ac_prog in $TIC tic
8396 # Extract the first word of "$ac_prog", so it can be a program name with args.
8397 set dummy $ac_prog; ac_word=$2
8398 echo "$as_me:8398: checking for $ac_word" >&5
8399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8400 if test "${ac_cv_path_TIC+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8408 ac_save_IFS=$IFS; IFS=$ac_path_separator
8409 ac_dummy="$PATH:/usr/local/ncurses/bin"
8410 for ac_dir in $ac_dummy; do
8412 test -z "$ac_dir" && ac_dir=.
8413 if $as_executable_p "$ac_dir/$ac_word"; then
8414 ac_cv_path_TIC="$ac_dir/$ac_word"
8415 echo "$as_me:8415: found $ac_dir/$ac_word" >&5
8425 if test -n "$TIC"; then
8426 echo "$as_me:8426: result: $TIC" >&5
8427 echo "${ECHO_T}$TIC" >&6
8429 echo "$as_me:8429: result: no" >&5
8430 echo "${ECHO_T}no" >&6
8433 test -n "$TIC" && break
8435 test -n "$TIC" || TIC="$TIC"
8439 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8440 for cf_temp in $ac_cv_path_TIC
8442 if test -z "$cf_path_prog" ; then
8443 if test "$with_full_paths" = yes ; then
8445 if test "x$prefix" != xNONE; then
8446 cf_path_syntax="$prefix"
8448 cf_path_syntax="$ac_default_prefix"
8456 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8458 (.\${*prefix}*|.\${*dir}*)
8459 eval cf_temp="$cf_temp"
8462 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8467 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8474 cf_path_prog="$cf_temp"
8476 cf_path_prog="`basename $cf_temp`"
8478 elif test -z "$cf_path_args" ; then
8479 cf_path_args="$cf_temp"
8481 cf_path_args="$cf_path_args $cf_temp"
8486 if test -n "$cf_path_prog" ; then
8488 echo "${as_me:-configure}:8488: testing defining path for ${cf_path_prog} ..." 1>&5
8490 cat >>confdefs.h <<EOF
8491 #define TIC_PATH "$cf_path_prog"
8494 test -n "$cf_path_args" &&
8495 cat >>confdefs.h <<EOF
8496 #define TIC_ARGS "$cf_path_args"
8503 { echo "$as_me:8503: WARNING: no tic program found for fallbacks" >&5
8504 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8509 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8510 if test "${with_infocmp_path+set}" = set; then
8511 withval="$with_infocmp_path"
8512 echo "$as_me:8512: checking for infocmp program for fallbacks" >&5
8513 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8515 echo "$as_me:8515: result: $INFOCMP" >&5
8516 echo "${ECHO_T}$INFOCMP" >&6
8518 if test "x$prefix" != xNONE; then
8519 cf_path_syntax="$prefix"
8521 cf_path_syntax="$ac_default_prefix"
8529 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8531 (.\${*prefix}*|.\${*dir}*)
8532 eval INFOCMP="$INFOCMP"
8535 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8540 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8543 { { echo "$as_me:8543: error: expected a pathname, not \"$INFOCMP\"" >&5
8544 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8545 { (exit 1); exit 1; }; }
8551 test -z "$INFOCMP" && INFOCMP=infocmp
8552 for ac_prog in $INFOCMP infocmp
8554 # Extract the first word of "$ac_prog", so it can be a program name with args.
8555 set dummy $ac_prog; ac_word=$2
8556 echo "$as_me:8556: checking for $ac_word" >&5
8557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8558 if test "${ac_cv_path_INFOCMP+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8566 ac_save_IFS=$IFS; IFS=$ac_path_separator
8567 ac_dummy="$PATH:/usr/local/ncurses/bin"
8568 for ac_dir in $ac_dummy; do
8570 test -z "$ac_dir" && ac_dir=.
8571 if $as_executable_p "$ac_dir/$ac_word"; then
8572 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8573 echo "$as_me:8573: found $ac_dir/$ac_word" >&5
8581 INFOCMP=$ac_cv_path_INFOCMP
8583 if test -n "$INFOCMP"; then
8584 echo "$as_me:8584: result: $INFOCMP" >&5
8585 echo "${ECHO_T}$INFOCMP" >&6
8587 echo "$as_me:8587: result: no" >&5
8588 echo "${ECHO_T}no" >&6
8591 test -n "$INFOCMP" && break
8593 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8597 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8598 for cf_temp in $ac_cv_path_INFOCMP
8600 if test -z "$cf_path_prog" ; then
8601 if test "$with_full_paths" = yes ; then
8603 if test "x$prefix" != xNONE; then
8604 cf_path_syntax="$prefix"
8606 cf_path_syntax="$ac_default_prefix"
8614 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8616 (.\${*prefix}*|.\${*dir}*)
8617 eval cf_temp="$cf_temp"
8620 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8625 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8632 cf_path_prog="$cf_temp"
8634 cf_path_prog="`basename $cf_temp`"
8636 elif test -z "$cf_path_args" ; then
8637 cf_path_args="$cf_temp"
8639 cf_path_args="$cf_path_args $cf_temp"
8644 if test -n "$cf_path_prog" ; then
8646 echo "${as_me:-configure}:8646: testing defining path for ${cf_path_prog} ..." 1>&5
8648 cat >>confdefs.h <<EOF
8649 #define INFOCMP_PATH "$cf_path_prog"
8652 test -n "$cf_path_args" &&
8653 cat >>confdefs.h <<EOF
8654 #define INFOCMP_ARGS "$cf_path_args"
8659 if test -z "$INFOCMP"
8661 { echo "$as_me:8661: WARNING: no infocmp program found for fallbacks" >&5
8662 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8667 test -z "$TIC" && FALLBACK_LIST=
8668 test -z "$INFOCMP" && FALLBACK_LIST=
8669 if test -z "$FALLBACK_LIST"
8671 { echo "$as_me:8671: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8672 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8677 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8679 echo "$as_me:8679: checking if you want modern xterm or antique" >&5
8680 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8682 # Check whether --with-xterm-new or --without-xterm-new was given.
8683 if test "${with_xterm_new+set}" = set; then
8684 withval="$with_xterm_new"
8685 with_xterm_new=$withval
8689 case $with_xterm_new in
8690 (no) with_xterm_new=xterm-old;;
8691 (*) with_xterm_new=xterm-new;;
8693 echo "$as_me:8693: result: $with_xterm_new" >&5
8694 echo "${ECHO_T}$with_xterm_new" >&6
8695 WHICH_XTERM=$with_xterm_new
8697 echo "$as_me:8697: checking if xterm backspace sends BS or DEL" >&5
8698 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8700 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8701 if test "${with_xterm_kbs+set}" = set; then
8702 withval="$with_xterm_kbs"
8703 with_xterm_kbs=$withval
8707 case x$with_xterm_kbs in
8708 (xyes|xno|xBS|xbs|x8)
8715 with_xterm_kbs=$withval
8718 echo "$as_me:8718: result: $with_xterm_kbs" >&5
8719 echo "${ECHO_T}$with_xterm_kbs" >&6
8720 XTERM_KBS=$with_xterm_kbs
8723 if test "$use_database" = no ; then
8724 TERMINFO="${datadir}/terminfo"
8728 echo "$as_me:8728: checking for list of terminfo directories" >&5
8729 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8731 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8732 if test "${with_terminfo_dirs+set}" = set; then
8733 withval="$with_terminfo_dirs"
8736 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8738 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8740 for cf_src_path in $withval
8743 if test "x$prefix" != xNONE; then
8744 cf_path_syntax="$prefix"
8746 cf_path_syntax="$ac_default_prefix"
8749 case ".$cf_src_path" in
8754 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8756 (.\${*prefix}*|.\${*dir}*)
8757 eval cf_src_path="$cf_src_path"
8758 case ".$cf_src_path" in
8760 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8765 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8768 { { echo "$as_me:8768: error: expected a pathname, not \"$cf_src_path\"" >&5
8769 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8770 { (exit 1); exit 1; }; }
8774 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8775 cf_dst_path="${cf_dst_path}${cf_src_path}"
8779 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8780 # so we have to check/work around. We do prefer the result of "eval"...
8781 eval cf_dst_eval="$cf_dst_path"
8782 case "x$cf_dst_eval" in
8784 TERMINFO_DIRS=$cf_dst_path
8787 TERMINFO_DIRS="$cf_dst_eval"
8791 echo "$as_me:8791: result: $TERMINFO_DIRS" >&5
8792 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8793 test -n "$TERMINFO_DIRS" &&
8794 cat >>confdefs.h <<EOF
8795 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8798 case "x$TERMINFO" in
8800 { echo "$as_me:8800: WARNING: ignoring non-directory/file TERMINFO value" >&5
8801 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8806 echo "$as_me:8806: checking for default terminfo directory" >&5
8807 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8809 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8810 if test "${with_default_terminfo_dir+set}" = set; then
8811 withval="$with_default_terminfo_dir"
8814 withval="${TERMINFO:-${datadir}/terminfo}"
8815 fi; if test -n "${datadir}/terminfo" ; then
8817 if test "x$prefix" != xNONE; then
8818 cf_path_syntax="$prefix"
8820 cf_path_syntax="$ac_default_prefix"
8828 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8830 (.\${*prefix}*|.\${*dir}*)
8831 eval withval="$withval"
8834 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8839 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8842 { { echo "$as_me:8842: error: expected a pathname, not \"$withval\"" >&5
8843 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8844 { (exit 1); exit 1; }; }
8849 eval TERMINFO="$withval"
8851 echo "$as_me:8851: result: $TERMINFO" >&5
8852 echo "${ECHO_T}$TERMINFO" >&6
8854 cat >>confdefs.h <<EOF
8855 #define TERMINFO "$TERMINFO"
8860 ### use option --disable-big-core to make tic run on small machines
8861 ### We need 4Mb, check if we can allocate 50% more than that.
8862 echo "$as_me:8862: checking if big-core option selected" >&5
8863 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8865 # Check whether --enable-big-core or --disable-big-core was given.
8866 if test "${enable_big_core+set}" = set; then
8867 enableval="$enable_big_core"
8868 with_big_core=$enableval
8870 if test "$cross_compiling" = yes; then
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line 8874 "configure"
8875 #include "confdefs.h"
8880 unsigned long n = 6000000L;
8881 char *s = malloc(n);
8884 ${cf_cv_main_return:-return}(s == 0);
8887 rm -f conftest$ac_exeext
8888 if { (eval echo "$as_me:8888: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>&5
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8893 { (eval echo "$as_me:8893: \"$ac_try\"") >&5
8896 echo "$as_me:8896: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8900 echo "$as_me: program exited with status $ac_status" >&5
8901 echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8905 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8908 echo "$as_me:8908: result: $with_big_core" >&5
8909 echo "${ECHO_T}$with_big_core" >&6
8910 test "x$with_big_core" = "xyes" &&
8911 cat >>confdefs.h <<\EOF
8912 #define HAVE_BIG_CORE 1
8915 ### ISO C only guarantees 512-char strings, we have tables which load faster
8916 ### when constructed using "big" strings. More than the C compiler, the awk
8917 ### program is a limit on most vendor UNIX systems. Check that we can build.
8918 echo "$as_me:8918: checking if big-strings option selected" >&5
8919 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8921 # Check whether --enable-big-strings or --disable-big-strings was given.
8922 if test "${enable_big_strings+set}" = set; then
8923 enableval="$enable_big_strings"
8924 with_big_strings=$enableval
8929 eval with_big_strings=no
8932 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8933 | $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
8934 eval with_big_strings=yes
8936 eval with_big_strings=no
8942 echo "$as_me:8942: result: $with_big_strings" >&5
8943 echo "${ECHO_T}$with_big_strings" >&6
8946 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8948 ### use option --enable-termcap to compile in the termcap fallback support
8949 echo "$as_me:8949: checking if you want termcap-fallback support" >&5
8950 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8952 # Check whether --enable-termcap or --disable-termcap was given.
8953 if test "${enable_termcap+set}" = set; then
8954 enableval="$enable_termcap"
8955 with_termcap=$enableval
8959 echo "$as_me:8959: result: $with_termcap" >&5
8960 echo "${ECHO_T}$with_termcap" >&6
8962 NCURSES_USE_TERMCAP=0
8963 if test "x$with_termcap" != "xyes" ; then
8964 if test "$use_database" = no ; then
8965 if test -z "$with_fallback" ; then
8966 { { echo "$as_me:8966: error: You have disabled the database w/o specifying fallbacks" >&5
8967 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8968 { (exit 1); exit 1; }; }
8972 cat >>confdefs.h <<\EOF
8973 #define PURE_TERMINFO 1
8978 if test "$with_ticlib" != no ; then
8979 { { echo "$as_me:8979: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8980 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8981 { (exit 1); exit 1; }; }
8984 NCURSES_USE_TERMCAP=1
8985 echo "$as_me:8985: checking for list of termcap files" >&5
8986 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8988 # Check whether --with-termpath or --without-termpath was given.
8989 if test "${with_termpath+set}" = set; then
8990 withval="$with_termpath"
8993 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
8995 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8997 for cf_src_path in $withval
9000 if test "x$prefix" != xNONE; then
9001 cf_path_syntax="$prefix"
9003 cf_path_syntax="$ac_default_prefix"
9006 case ".$cf_src_path" in
9011 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9013 (.\${*prefix}*|.\${*dir}*)
9014 eval cf_src_path="$cf_src_path"
9015 case ".$cf_src_path" in
9017 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
9022 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
9025 { { echo "$as_me:9025: error: expected a pathname, not \"$cf_src_path\"" >&5
9026 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9027 { (exit 1); exit 1; }; }
9031 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9032 cf_dst_path="${cf_dst_path}${cf_src_path}"
9036 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9037 # so we have to check/work around. We do prefer the result of "eval"...
9038 eval cf_dst_eval="$cf_dst_path"
9039 case "x$cf_dst_eval" in
9041 TERMPATH=$cf_dst_path
9044 TERMPATH="$cf_dst_eval"
9048 echo "$as_me:9048: result: $TERMPATH" >&5
9049 echo "${ECHO_T}$TERMPATH" >&6
9050 test -n "$TERMPATH" &&
9051 cat >>confdefs.h <<EOF
9052 #define TERMPATH "$TERMPATH"
9055 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9056 echo "$as_me:9056: checking if fast termcap-loader is needed" >&5
9057 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9059 # Check whether --enable-getcap or --disable-getcap was given.
9060 if test "${enable_getcap+set}" = set; then
9061 enableval="$enable_getcap"
9062 with_getcap=$enableval
9066 echo "$as_me:9066: result: $with_getcap" >&5
9067 echo "${ECHO_T}$with_getcap" >&6
9068 test "x$with_getcap" = "xyes" &&
9069 cat >>confdefs.h <<\EOF
9070 #define USE_GETCAP 1
9073 echo "$as_me:9073: checking if translated termcaps will be cached in ~/.terminfo" >&5
9074 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9076 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9077 if test "${enable_getcap_cache+set}" = set; then
9078 enableval="$enable_getcap_cache"
9079 with_getcap_cache=$enableval
9081 with_getcap_cache=no
9083 echo "$as_me:9083: result: $with_getcap_cache" >&5
9084 echo "${ECHO_T}$with_getcap_cache" >&6
9085 test "x$with_getcap_cache" = "xyes" &&
9086 cat >>confdefs.h <<\EOF
9087 #define USE_GETCAP_CACHE 1
9092 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9093 echo "$as_me:9093: checking if ~/.terminfo is wanted" >&5
9094 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9096 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9097 if test "${enable_home_terminfo+set}" = set; then
9098 enableval="$enable_home_terminfo"
9099 with_home_terminfo=$enableval
9101 with_home_terminfo=yes
9103 echo "$as_me:9103: result: $with_home_terminfo" >&5
9104 echo "${ECHO_T}$with_home_terminfo" >&6
9105 test "x$with_home_terminfo" = "xyes" &&
9106 cat >>confdefs.h <<\EOF
9107 #define USE_HOME_TERMINFO 1
9110 echo "$as_me:9110: checking if you want to use restricted environment when running as root" >&5
9111 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
9113 # Check whether --enable-root-environ or --disable-root-environ was given.
9114 if test "${enable_root_environ+set}" = set; then
9115 enableval="$enable_root_environ"
9116 with_root_environ=$enableval
9118 with_root_environ=yes
9120 echo "$as_me:9120: result: $with_root_environ" >&5
9121 echo "${ECHO_T}$with_root_environ" >&6
9122 test "x$with_root_environ" = xyes &&
9123 cat >>confdefs.h <<\EOF
9124 #define USE_ROOT_ENVIRON 1
9127 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9128 ### to reduce storage requirements for the terminfo database.
9134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135 echo "$as_me:9135: checking for $ac_header" >&5
9136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9143 #include <$ac_header>
9145 if { (eval echo "$as_me:9145: \"$ac_cpp conftest.$ac_ext\"") >&5
9146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9148 egrep -v '^ *\+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:9151: \$? = $ac_status" >&5
9152 (exit $ac_status); } >/dev/null; then
9153 if test -s conftest.err; then
9154 ac_cpp_err=$ac_c_preproc_warn_flag
9161 if test -z "$ac_cpp_err"; then
9162 eval "$as_ac_Header=yes"
9164 echo "$as_me: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9166 eval "$as_ac_Header=no"
9168 rm -f conftest.err conftest.$ac_ext
9170 echo "$as_me:9170: result: `eval echo '${'$as_ac_Header'}'`" >&5
9171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173 cat >>confdefs.h <<EOF
9174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9185 echo "$as_me:9185: checking for $ac_func" >&5
9186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9187 if eval "test \"\${$as_ac_var+set}\" = set"; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line 9191 "configure"
9192 #include "confdefs.h"
9193 #define $ac_func autoconf_temporary
9194 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9203 char $ac_func (void);
9209 /* The GNU C library defines stubs for functions which it implements
9210 to always fail with ENOSYS. Some functions are actually named
9211 something starting with __ and the normal name is an alias. */
9212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9213 #error found stub for $ac_func
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (eval echo "$as_me:9222: \"$ac_link\"") >&5
9223 (eval $ac_link) 2>&5
9225 echo "$as_me:9225: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:9228: \"$ac_try\"") >&5
9231 echo "$as_me:9231: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 eval "$as_ac_var=yes"
9235 echo "$as_me: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9237 eval "$as_ac_var=no"
9239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9241 echo "$as_me:9241: result: `eval echo '${'$as_ac_var'}'`" >&5
9242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9243 if test `eval echo '${'$as_ac_var'}'` = yes; then
9244 cat >>confdefs.h <<EOF
9245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9251 if test "$cross_compiling" = yes ; then
9257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9258 echo "$as_me:9258: checking for $ac_func" >&5
9259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9260 if eval "test \"\${$as_ac_var+set}\" = set"; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9264 #line 9264 "configure"
9265 #include "confdefs.h"
9266 #define $ac_func autoconf_temporary
9267 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9274 /* We use char because int might match the return type of a gcc2
9275 builtin and then its argument prototype would still apply. */
9276 char $ac_func (void);
9282 /* The GNU C library defines stubs for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9286 #error found stub for $ac_func
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (eval echo "$as_me:9295: \"$ac_link\"") >&5
9296 (eval $ac_link) 2>&5
9298 echo "$as_me:9298: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:9301: \"$ac_try\"") >&5
9304 echo "$as_me:9304: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 eval "$as_ac_var=yes"
9308 echo "$as_me: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 eval "$as_ac_var=no"
9312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9314 echo "$as_me:9314: result: `eval echo '${'$as_ac_var'}'`" >&5
9315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9316 if test `eval echo '${'$as_ac_var'}'` = yes; then
9317 cat >>confdefs.h <<EOF
9318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9325 echo "$as_me:9325: checking if link/symlink functions work" >&5
9326 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9327 if test "${cf_cv_link_funcs+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 for cf_func in link symlink ; do
9333 if test "$cross_compiling" = yes; then
9335 eval 'ac_cv_func_'$cf_func'=error'
9337 cat >conftest.$ac_ext <<_ACEOF
9338 #line 9338 "configure"
9339 #include "confdefs.h"
9341 #include <sys/types.h>
9342 #include <sys/stat.h>
9343 #ifdef HAVE_UNISTD_H
9349 char *src = "config.log";
9350 char *dst = "conftest.chk";
9355 fail = ($cf_func("config.log", "conftest.chk") < 0)
9356 || (stat(dst, &dst_sb) < 0)
9357 || (dst_sb.st_mtime != src_sb.st_mtime);
9363 ${cf_cv_main_return:-return} (fail);
9367 rm -f conftest$ac_exeext
9368 if { (eval echo "$as_me:9368: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>&5
9371 echo "$as_me:9371: \$? = $ac_status" >&5
9372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9373 { (eval echo "$as_me:9373: \"$ac_try\"") >&5
9376 echo "$as_me:9376: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9379 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9380 eval 'ac_cv_func_'$cf_func'=yes'
9382 echo "$as_me: program exited with status $ac_status" >&5
9383 echo "$as_me: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 eval 'ac_cv_func_'$cf_func'=no'
9388 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9391 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9394 echo "$as_me:9394: result: $cf_cv_link_funcs" >&5
9395 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9396 test "$ac_cv_func_link" = yes &&
9397 cat >>confdefs.h <<\EOF
9401 test "$ac_cv_func_symlink" = yes &&
9402 cat >>confdefs.h <<\EOF
9403 #define HAVE_SYMLINK 1
9411 # soft links (symbolic links) are useful for some systems where hard links do
9412 # not work, or to make it simpler to copy terminfo trees around.
9413 if test "x$ac_cv_func_symlink" = xyes ; then
9414 echo "$as_me:9414: checking if tic should use symbolic links" >&5
9415 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9417 # Check whether --enable-symlinks or --disable-symlinks was given.
9418 if test "${enable_symlinks+set}" = set; then
9419 enableval="$enable_symlinks"
9420 with_symlinks=$enableval
9424 echo "$as_me:9424: result: $with_symlinks" >&5
9425 echo "${ECHO_T}$with_symlinks" >&6
9428 # If we have hard links and did not choose to use soft links instead, there is
9429 # no reason to make this choice optional - use the hard links.
9430 if test "$with_symlinks" = no ; then
9431 echo "$as_me:9431: checking if tic should use hard links" >&5
9432 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9433 if test "x$ac_cv_func_link" = xyes ; then
9438 echo "$as_me:9438: result: $with_links" >&5
9439 echo "${ECHO_T}$with_links" >&6
9442 test "x$with_links" = xyes &&
9443 cat >>confdefs.h <<\EOF
9447 test "x$with_symlinks" = xyes &&
9448 cat >>confdefs.h <<\EOF
9449 #define USE_SYMLINKS 1
9452 ### use option --enable-broken-linker to force on use of broken-linker support
9454 echo "$as_me:9454: checking if you want broken-linker support code" >&5
9455 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9457 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9458 if test "${enable_broken_linker+set}" = set; then
9459 enableval="$enable_broken_linker"
9460 with_broken_linker=$enableval
9462 with_broken_linker=no
9464 echo "$as_me:9464: result: $with_broken_linker" >&5
9465 echo "${ECHO_T}$with_broken_linker" >&6
9467 : ${BROKEN_LINKER:=0}
9468 if test "x$with_broken_linker" = xyes ; then
9470 cat >>confdefs.h <<\EOF
9471 #define BROKEN_LINKER 1
9477 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9478 echo "$as_me:9478: checking if tputs should process BSD-style prefix padding" >&5
9479 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9481 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9482 if test "${enable_bsdpad+set}" = set; then
9483 enableval="$enable_bsdpad"
9484 with_bsdpad=$enableval
9488 echo "$as_me:9488: result: $with_bsdpad" >&5
9489 echo "${ECHO_T}$with_bsdpad" >&6
9490 test "x$with_bsdpad" = xyes &&
9491 cat >>confdefs.h <<\EOF
9495 ### use option --enable-widec to turn on use of wide-character support
9504 # Check to define _XOPEN_SOURCE "automatically"
9505 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9507 echo "$as_me:9507: checking if the POSIX test-macros are already defined" >&5
9508 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9509 if test "${cf_cv_posix_visible+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 cat >conftest.$ac_ext <<_ACEOF
9514 #line 9514 "configure"
9515 #include "confdefs.h"
9521 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9522 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9523 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9524 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9525 #error conflicting symbols found
9532 rm -f conftest.$ac_objext
9533 if { (eval echo "$as_me:9533: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9536 echo "$as_me:9536: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:9539: \"$ac_try\"") >&5
9542 echo "$as_me:9542: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 cf_cv_posix_visible=no
9546 echo "$as_me: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9548 cf_cv_posix_visible=yes
9550 rm -f conftest.$ac_objext conftest.$ac_ext
9553 echo "$as_me:9553: result: $cf_cv_posix_visible" >&5
9554 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9556 if test "$cf_cv_posix_visible" = no; then
9559 cf_POSIX_C_SOURCE=199506L
9564 cf_xopen_source="-D_ALL_SOURCE"
9570 cf_xopen_source="-D_APPLE_C_SOURCE"
9573 cf_xopen_source="-D_DARWIN_C_SOURCE"
9576 (freebsd*|dragonfly*|midnightbsd*)
9577 # 5.x headers associate
9578 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9579 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9580 cf_POSIX_C_SOURCE=200112L
9582 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9585 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9588 cf_xopen_source="-D_HPUX_SOURCE"
9591 cf_xopen_source="-D_SGI_SOURCE"
9594 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9596 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9598 echo "$as_me:9598: checking if this is the GNU C library" >&5
9599 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9600 if test "${cf_cv_gnu_library+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9605 #line 9605 "configure"
9606 #include "confdefs.h"
9607 #include <sys/types.h>
9612 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9614 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9617 # error not GNU C library
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:9624: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>&5
9627 echo "$as_me:9627: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -s conftest.$ac_objext'
9630 { (eval echo "$as_me:9630: \"$ac_try\"") >&5
9633 echo "$as_me:9633: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 cf_cv_gnu_library=yes
9637 echo "$as_me: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 cf_cv_gnu_library=no
9641 rm -f conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:9644: result: $cf_cv_gnu_library" >&5
9645 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9647 if test x$cf_cv_gnu_library = xyes; then
9649 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9650 # was changed to help a little. newlib incorporated the change about 4
9652 echo "$as_me:9652: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9653 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9654 if test "${cf_cv_gnu_library_219+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9661 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line 9664 "configure"
9665 #include "confdefs.h"
9666 #include <sys/types.h>
9671 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9673 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9676 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:9683: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>&5
9686 echo "$as_me:9686: \$? = $ac_status" >&5
9687 (exit $ac_status); } &&
9688 { ac_try='test -s conftest.$ac_objext'
9689 { (eval echo "$as_me:9689: \"$ac_try\"") >&5
9692 echo "$as_me:9692: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 cf_cv_gnu_library_219=yes
9696 echo "$as_me: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 cf_cv_gnu_library_219=no
9700 rm -f conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:9704: result: $cf_cv_gnu_library_219" >&5
9705 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9707 if test "x$cf_cv_gnu_library_219" = xyes; then
9709 echo "$as_me:9709: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9710 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9711 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 cf_new_extra_cppflags=
9720 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9722 case $cf_fix_cppflags in
9724 case $cf_add_cflags in
9725 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9726 case $cf_add_cflags in
9728 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9730 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9731 && test -z "${cf_tst_cflags}" \
9732 && cf_fix_cppflags=yes
9734 if test $cf_fix_cppflags = yes ; then
9736 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9737 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9740 elif test "${cf_tst_cflags}" = "\"'" ; then
9742 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9743 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9753 case $cf_add_cflags in
9755 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9757 CPPFLAGS=`echo "$CPPFLAGS" | \
9758 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9759 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9764 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9765 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9772 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9773 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9780 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9781 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9783 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9785 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9786 && test -z "${cf_tst_cflags}" \
9787 && cf_fix_cppflags=no
9792 if test -n "$cf_new_cflags" ; then
9794 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9795 CFLAGS="${CFLAGS}$cf_new_cflags"
9799 if test -n "$cf_new_cppflags" ; then
9801 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9802 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9806 if test -n "$cf_new_extra_cppflags" ; then
9808 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9809 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9813 cat >conftest.$ac_ext <<_ACEOF
9814 #line 9814 "configure"
9815 #include "confdefs.h"
9818 #include <sys/types.h>
9824 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9827 # error GNU C library is too old
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:9834: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>&5
9837 echo "$as_me:9837: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -s conftest.$ac_objext'
9840 { (eval echo "$as_me:9840: \"$ac_try\"") >&5
9843 echo "$as_me:9843: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 cf_cv_gnu_dftsrc_219=yes
9847 echo "$as_me: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 cf_cv_gnu_dftsrc_219=no
9851 rm -f conftest.$ac_objext conftest.$ac_ext
9854 echo "$as_me:9854: result: $cf_cv_gnu_dftsrc_219" >&5
9855 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9856 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9858 cf_cv_gnu_dftsrc_219=maybe
9861 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9863 echo "$as_me:9863: checking if we must define _GNU_SOURCE" >&5
9864 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9865 if test "${cf_cv_gnu_source+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.$ac_ext <<_ACEOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9872 #include <sys/types.h>
9877 #ifndef _XOPEN_SOURCE
9878 #error expected _XOPEN_SOURCE to be defined
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:9885: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>&5
9888 echo "$as_me:9888: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
9890 { ac_try='test -s conftest.$ac_objext'
9891 { (eval echo "$as_me:9891: \"$ac_try\"") >&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9898 echo "$as_me: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9905 cf_new_extra_cppflags=
9907 for cf_add_cflags in -D_GNU_SOURCE
9909 case $cf_fix_cppflags in
9911 case $cf_add_cflags in
9912 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9913 case $cf_add_cflags in
9915 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9917 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9918 && test -z "${cf_tst_cflags}" \
9919 && cf_fix_cppflags=yes
9921 if test $cf_fix_cppflags = yes ; then
9923 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9924 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9927 elif test "${cf_tst_cflags}" = "\"'" ; then
9929 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9930 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9940 case $cf_add_cflags in
9942 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9944 CPPFLAGS=`echo "$CPPFLAGS" | \
9945 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9946 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9951 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9952 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9959 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9960 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9967 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9968 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9970 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9972 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9973 && test -z "${cf_tst_cflags}" \
9974 && cf_fix_cppflags=no
9979 if test -n "$cf_new_cflags" ; then
9981 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9982 CFLAGS="${CFLAGS}$cf_new_cflags"
9986 if test -n "$cf_new_cppflags" ; then
9988 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9989 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9993 if test -n "$cf_new_extra_cppflags" ; then
9995 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9996 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line 10001 "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10008 #ifdef _XOPEN_SOURCE
10009 #error expected _XOPEN_SOURCE to be undefined
10015 rm -f conftest.$ac_objext
10016 if { (eval echo "$as_me:10016: \"$ac_compile\"") >&5
10017 (eval $ac_compile) 2>&5
10019 echo "$as_me:10019: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -s conftest.$ac_objext'
10022 { (eval echo "$as_me:10022: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:10025: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 cf_cv_gnu_source=no
10029 echo "$as_me: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 cf_cv_gnu_source=yes
10033 rm -f conftest.$ac_objext conftest.$ac_ext
10034 CPPFLAGS="$cf_save"
10037 rm -f conftest.$ac_objext conftest.$ac_ext
10040 echo "$as_me:10040: result: $cf_cv_gnu_source" >&5
10041 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10043 if test "$cf_cv_gnu_source" = yes
10045 echo "$as_me:10045: checking if we should also define _DEFAULT_SOURCE" >&5
10046 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10047 if test "${cf_cv_default_source+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10052 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10054 cat >conftest.$ac_ext <<_ACEOF
10055 #line 10055 "configure"
10056 #include "confdefs.h"
10057 #include <sys/types.h>
10062 #ifdef _DEFAULT_SOURCE
10063 #error expected _DEFAULT_SOURCE to be undefined
10069 rm -f conftest.$ac_objext
10070 if { (eval echo "$as_me:10070: \"$ac_compile\"") >&5
10071 (eval $ac_compile) 2>&5
10073 echo "$as_me:10073: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -s conftest.$ac_objext'
10076 { (eval echo "$as_me:10076: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:10079: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 cf_cv_default_source=no
10083 echo "$as_me: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 cf_cv_default_source=yes
10087 rm -f conftest.$ac_objext conftest.$ac_ext
10090 echo "$as_me:10090: result: $cf_cv_default_source" >&5
10091 echo "${ECHO_T}$cf_cv_default_source" >&6
10092 if test "$cf_cv_default_source" = yes
10095 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10096 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10106 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10109 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10112 if test "$cf_cv_posix_visible" = no; then
10114 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10116 cf_save_CFLAGS="$CFLAGS"
10117 cf_save_CPPFLAGS="$CPPFLAGS"
10119 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10120 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10121 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10123 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10124 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10125 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10127 echo "$as_me:10127: checking if we should define _POSIX_C_SOURCE" >&5
10128 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10129 if test "${cf_cv_posix_c_source+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 echo "${as_me:-configure}:10133: testing if the symbol is already defined go no further ..." 1>&5
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line 10136 "configure"
10137 #include "confdefs.h"
10138 #include <sys/types.h>
10143 #ifndef _POSIX_C_SOURCE
10150 rm -f conftest.$ac_objext
10151 if { (eval echo "$as_me:10151: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>&5
10154 echo "$as_me:10154: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -s conftest.$ac_objext'
10157 { (eval echo "$as_me:10157: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:10160: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 cf_cv_posix_c_source=no
10164 echo "$as_me: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10166 cf_want_posix_source=no
10167 case .$cf_POSIX_C_SOURCE in
10169 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10172 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10173 cf_want_posix_source=yes
10176 cf_want_posix_source=yes
10179 if test "$cf_want_posix_source" = yes ; then
10180 cat >conftest.$ac_ext <<_ACEOF
10181 #line 10181 "configure"
10182 #include "confdefs.h"
10183 #include <sys/types.h>
10188 #ifdef _POSIX_SOURCE
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:10196: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10199 echo "$as_me:10199: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:10202: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:10205: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10216 echo "${as_me:-configure}:10216: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10218 CFLAGS="$cf_trim_CFLAGS"
10219 CPPFLAGS="$cf_trim_CPPFLAGS"
10221 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10222 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10224 echo "${as_me:-configure}:10224: testing if the second compile does not leave our definition intact error ..." 1>&5
10226 cat >conftest.$ac_ext <<_ACEOF
10227 #line 10227 "configure"
10228 #include "confdefs.h"
10229 #include <sys/types.h>
10234 #ifndef _POSIX_C_SOURCE
10241 rm -f conftest.$ac_objext
10242 if { (eval echo "$as_me:10242: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>&5
10245 echo "$as_me:10245: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:10248: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 echo "$as_me:10251: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10255 echo "$as_me: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10257 cf_cv_posix_c_source=no
10259 rm -f conftest.$ac_objext conftest.$ac_ext
10260 CFLAGS="$cf_save_CFLAGS"
10261 CPPFLAGS="$cf_save_CPPFLAGS"
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10267 echo "$as_me:10267: result: $cf_cv_posix_c_source" >&5
10268 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10270 if test "$cf_cv_posix_c_source" != no ; then
10271 CFLAGS="$cf_trim_CFLAGS"
10272 CPPFLAGS="$cf_trim_CPPFLAGS"
10277 cf_new_extra_cppflags=
10279 for cf_add_cflags in $cf_cv_posix_c_source
10281 case $cf_fix_cppflags in
10283 case $cf_add_cflags in
10284 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10285 case $cf_add_cflags in
10287 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10289 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10290 && test -z "${cf_tst_cflags}" \
10291 && cf_fix_cppflags=yes
10293 if test $cf_fix_cppflags = yes ; then
10295 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10296 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10299 elif test "${cf_tst_cflags}" = "\"'" ; then
10301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10308 case "$CPPFLAGS" in
10312 case $cf_add_cflags in
10314 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10316 CPPFLAGS=`echo "$CPPFLAGS" | \
10317 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10318 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10323 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10324 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10331 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10332 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10339 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10340 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10342 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10344 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10345 && test -z "${cf_tst_cflags}" \
10346 && cf_fix_cppflags=no
10351 if test -n "$cf_new_cflags" ; then
10353 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10354 CFLAGS="${CFLAGS}$cf_new_cflags"
10358 if test -n "$cf_new_cppflags" ; then
10360 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10361 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10365 if test -n "$cf_new_extra_cppflags" ; then
10367 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10368 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10374 fi # cf_cv_posix_visible
10378 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10381 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10382 cf_xopen_source="-D_BSD_SOURCE"
10383 cf_XOPEN_SOURCE=600
10386 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10389 cf_xopen_source="-D_OSF_SOURCE"
10392 cf_xopen_source="-D_QNX_SOURCE"
10395 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10398 cf_xopen_source="-D__EXTENSIONS__"
10399 cf_cv_xopen_source=broken
10401 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10407 echo "$as_me:10407: checking if we should define _XOPEN_SOURCE" >&5
10408 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10409 if test "${cf_cv_xopen_source+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line 10414 "configure"
10415 #include "confdefs.h"
10417 #include <stdlib.h>
10418 #include <string.h>
10419 #include <sys/types.h>
10425 #ifndef _XOPEN_SOURCE
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:10433: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10436 echo "$as_me:10436: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:10439: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:10442: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 cf_cv_xopen_source=no
10446 echo "$as_me: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10448 cf_save="$CPPFLAGS"
10450 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10451 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10453 cat >conftest.$ac_ext <<_ACEOF
10454 #line 10454 "configure"
10455 #include "confdefs.h"
10457 #include <stdlib.h>
10458 #include <string.h>
10459 #include <sys/types.h>
10465 #ifdef _XOPEN_SOURCE
10472 rm -f conftest.$ac_objext
10473 if { (eval echo "$as_me:10473: \"$ac_compile\"") >&5
10474 (eval $ac_compile) 2>&5
10476 echo "$as_me:10476: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:10479: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:10482: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 cf_cv_xopen_source=no
10486 echo "$as_me: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10488 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10490 rm -f conftest.$ac_objext conftest.$ac_ext
10491 CPPFLAGS="$cf_save"
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me:10497: result: $cf_cv_xopen_source" >&5
10498 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10500 if test "$cf_cv_xopen_source" != no ; then
10502 CFLAGS=`echo "$CFLAGS" | \
10503 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10504 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10506 CPPFLAGS=`echo "$CPPFLAGS" | \
10507 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10508 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10510 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10515 cf_new_extra_cppflags=
10517 for cf_add_cflags in $cf_temp_xopen_source
10519 case $cf_fix_cppflags in
10521 case $cf_add_cflags in
10522 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10523 case $cf_add_cflags in
10525 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10527 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10528 && test -z "${cf_tst_cflags}" \
10529 && cf_fix_cppflags=yes
10531 if test $cf_fix_cppflags = yes ; then
10533 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10534 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10537 elif test "${cf_tst_cflags}" = "\"'" ; then
10539 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10540 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10546 case "$CPPFLAGS" in
10550 case $cf_add_cflags in
10552 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10554 CPPFLAGS=`echo "$CPPFLAGS" | \
10555 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10556 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10561 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10562 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10569 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10570 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10577 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10578 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10580 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10582 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10583 && test -z "${cf_tst_cflags}" \
10584 && cf_fix_cppflags=no
10589 if test -n "$cf_new_cflags" ; then
10591 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10592 CFLAGS="${CFLAGS}$cf_new_cflags"
10596 if test -n "$cf_new_cppflags" ; then
10598 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10599 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10603 if test -n "$cf_new_extra_cppflags" ; then
10605 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10606 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10612 if test "$cf_cv_posix_visible" = no; then
10614 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10616 cf_save_CFLAGS="$CFLAGS"
10617 cf_save_CPPFLAGS="$CPPFLAGS"
10619 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10620 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10621 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10623 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10624 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10625 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10627 echo "$as_me:10627: checking if we should define _POSIX_C_SOURCE" >&5
10628 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10629 if test "${cf_cv_posix_c_source+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 echo "${as_me:-configure}:10633: testing if the symbol is already defined go no further ..." 1>&5
10635 cat >conftest.$ac_ext <<_ACEOF
10636 #line 10636 "configure"
10637 #include "confdefs.h"
10638 #include <sys/types.h>
10643 #ifndef _POSIX_C_SOURCE
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:10651: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>&5
10654 echo "$as_me:10654: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -s conftest.$ac_objext'
10657 { (eval echo "$as_me:10657: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:10660: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 cf_cv_posix_c_source=no
10664 echo "$as_me: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 cf_want_posix_source=no
10667 case .$cf_POSIX_C_SOURCE in
10669 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10672 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10673 cf_want_posix_source=yes
10676 cf_want_posix_source=yes
10679 if test "$cf_want_posix_source" = yes ; then
10680 cat >conftest.$ac_ext <<_ACEOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10683 #include <sys/types.h>
10688 #ifdef _POSIX_SOURCE
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:10696: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>&5
10699 echo "$as_me:10699: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -s conftest.$ac_objext'
10702 { (eval echo "$as_me:10702: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10705 echo "$as_me:10705: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10709 echo "$as_me: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10711 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10713 rm -f conftest.$ac_objext conftest.$ac_ext
10716 echo "${as_me:-configure}:10716: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10718 CFLAGS="$cf_trim_CFLAGS"
10719 CPPFLAGS="$cf_trim_CPPFLAGS"
10721 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10722 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10724 echo "${as_me:-configure}:10724: testing if the second compile does not leave our definition intact error ..." 1>&5
10726 cat >conftest.$ac_ext <<_ACEOF
10727 #line 10727 "configure"
10728 #include "confdefs.h"
10729 #include <sys/types.h>
10734 #ifndef _POSIX_C_SOURCE
10741 rm -f conftest.$ac_objext
10742 if { (eval echo "$as_me:10742: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>&5
10745 echo "$as_me:10745: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -s conftest.$ac_objext'
10748 { (eval echo "$as_me:10748: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:10751: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10755 echo "$as_me: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 cf_cv_posix_c_source=no
10759 rm -f conftest.$ac_objext conftest.$ac_ext
10760 CFLAGS="$cf_save_CFLAGS"
10761 CPPFLAGS="$cf_save_CPPFLAGS"
10764 rm -f conftest.$ac_objext conftest.$ac_ext
10767 echo "$as_me:10767: result: $cf_cv_posix_c_source" >&5
10768 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10770 if test "$cf_cv_posix_c_source" != no ; then
10771 CFLAGS="$cf_trim_CFLAGS"
10772 CPPFLAGS="$cf_trim_CPPFLAGS"
10777 cf_new_extra_cppflags=
10779 for cf_add_cflags in $cf_cv_posix_c_source
10781 case $cf_fix_cppflags in
10783 case $cf_add_cflags in
10784 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10785 case $cf_add_cflags in
10787 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10789 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10790 && test -z "${cf_tst_cflags}" \
10791 && cf_fix_cppflags=yes
10793 if test $cf_fix_cppflags = yes ; then
10795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10799 elif test "${cf_tst_cflags}" = "\"'" ; then
10801 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10802 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10808 case "$CPPFLAGS" in
10812 case $cf_add_cflags in
10814 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10816 CPPFLAGS=`echo "$CPPFLAGS" | \
10817 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10818 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10823 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10824 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10831 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10832 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10839 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10840 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10842 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10844 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10845 && test -z "${cf_tst_cflags}" \
10846 && cf_fix_cppflags=no
10851 if test -n "$cf_new_cflags" ; then
10853 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10854 CFLAGS="${CFLAGS}$cf_new_cflags"
10858 if test -n "$cf_new_cppflags" ; then
10860 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10861 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10865 if test -n "$cf_new_extra_cppflags" ; then
10867 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10868 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10874 fi # cf_cv_posix_visible
10879 if test -n "$cf_xopen_source" ; then
10884 cf_new_extra_cppflags=
10886 for cf_add_cflags in $cf_xopen_source
10888 case $cf_fix_cppflags in
10890 case $cf_add_cflags in
10891 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10892 case $cf_add_cflags in
10894 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10896 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10897 && test -z "${cf_tst_cflags}" \
10898 && cf_fix_cppflags=yes
10900 if test $cf_fix_cppflags = yes ; then
10902 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10903 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10906 elif test "${cf_tst_cflags}" = "\"'" ; then
10908 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10909 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10915 case "$CPPFLAGS" in
10919 case $cf_add_cflags in
10921 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10923 CPPFLAGS=`echo "$CPPFLAGS" | \
10924 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10925 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10930 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10931 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10938 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10939 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10946 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10947 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10949 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10951 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10952 && test -z "${cf_tst_cflags}" \
10953 && cf_fix_cppflags=no
10958 if test -n "$cf_new_cflags" ; then
10959 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10961 echo "${as_me:-configure}:10961: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10963 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10964 CFLAGS="${CFLAGS}$cf_new_cflags"
10968 if test -n "$cf_new_cppflags" ; then
10969 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10971 echo "${as_me:-configure}:10971: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10973 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10974 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10978 if test -n "$cf_new_extra_cppflags" ; then
10979 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10981 echo "${as_me:-configure}:10981: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10983 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10984 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10990 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10991 echo "$as_me:10991: checking if _XOPEN_SOURCE really is set" >&5
10992 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
10993 cat >conftest.$ac_ext <<_ACEOF
10994 #line 10994 "configure"
10995 #include "confdefs.h"
10996 #include <stdlib.h>
11001 #ifndef _XOPEN_SOURCE
11008 rm -f conftest.$ac_objext
11009 if { (eval echo "$as_me:11009: \"$ac_compile\"") >&5
11010 (eval $ac_compile) 2>&5
11012 echo "$as_me:11012: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:11015: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:11018: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 cf_XOPEN_SOURCE_set=yes
11022 echo "$as_me: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11024 cf_XOPEN_SOURCE_set=no
11026 rm -f conftest.$ac_objext conftest.$ac_ext
11027 echo "$as_me:11027: result: $cf_XOPEN_SOURCE_set" >&5
11028 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11029 if test $cf_XOPEN_SOURCE_set = yes
11031 cat >conftest.$ac_ext <<_ACEOF
11032 #line 11032 "configure"
11033 #include "confdefs.h"
11034 #include <stdlib.h>
11039 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11046 rm -f conftest.$ac_objext
11047 if { (eval echo "$as_me:11047: \"$ac_compile\"") >&5
11048 (eval $ac_compile) 2>&5
11050 echo "$as_me:11050: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -s conftest.$ac_objext'
11053 { (eval echo "$as_me:11053: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:11056: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 cf_XOPEN_SOURCE_set_ok=yes
11060 echo "$as_me: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 cf_XOPEN_SOURCE_set_ok=no
11064 rm -f conftest.$ac_objext conftest.$ac_ext
11065 if test $cf_XOPEN_SOURCE_set_ok = no
11067 { echo "$as_me:11067: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11068 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11072 echo "$as_me:11072: checking if we should define _XOPEN_SOURCE" >&5
11073 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11074 if test "${cf_cv_xopen_source+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 cat >conftest.$ac_ext <<_ACEOF
11079 #line 11079 "configure"
11080 #include "confdefs.h"
11082 #include <stdlib.h>
11083 #include <string.h>
11084 #include <sys/types.h>
11090 #ifndef _XOPEN_SOURCE
11097 rm -f conftest.$ac_objext
11098 if { (eval echo "$as_me:11098: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>&5
11101 echo "$as_me:11101: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (eval echo "$as_me:11104: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 cf_cv_xopen_source=no
11111 echo "$as_me: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11113 cf_save="$CPPFLAGS"
11115 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11116 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 #line 11119 "configure"
11120 #include "confdefs.h"
11122 #include <stdlib.h>
11123 #include <string.h>
11124 #include <sys/types.h>
11130 #ifdef _XOPEN_SOURCE
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:11138: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>&5
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -s conftest.$ac_objext'
11144 { (eval echo "$as_me:11144: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:11147: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 cf_cv_xopen_source=no
11151 echo "$as_me: failed program was:" >&5
11152 cat conftest.$ac_ext >&5
11153 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11155 rm -f conftest.$ac_objext conftest.$ac_ext
11156 CPPFLAGS="$cf_save"
11159 rm -f conftest.$ac_objext conftest.$ac_ext
11162 echo "$as_me:11162: result: $cf_cv_xopen_source" >&5
11163 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11165 if test "$cf_cv_xopen_source" != no ; then
11167 CFLAGS=`echo "$CFLAGS" | \
11168 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11169 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11171 CPPFLAGS=`echo "$CPPFLAGS" | \
11172 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11173 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11175 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11180 cf_new_extra_cppflags=
11182 for cf_add_cflags in $cf_temp_xopen_source
11184 case $cf_fix_cppflags in
11186 case $cf_add_cflags in
11187 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11188 case $cf_add_cflags in
11190 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11192 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11193 && test -z "${cf_tst_cflags}" \
11194 && cf_fix_cppflags=yes
11196 if test $cf_fix_cppflags = yes ; then
11198 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11199 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11202 elif test "${cf_tst_cflags}" = "\"'" ; then
11204 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11205 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11211 case "$CPPFLAGS" in
11215 case $cf_add_cflags in
11217 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11219 CPPFLAGS=`echo "$CPPFLAGS" | \
11220 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11221 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11226 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11227 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11234 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11235 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11242 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11243 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11245 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11247 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11248 && test -z "${cf_tst_cflags}" \
11249 && cf_fix_cppflags=no
11254 if test -n "$cf_new_cflags" ; then
11256 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11257 CFLAGS="${CFLAGS}$cf_new_cflags"
11261 if test -n "$cf_new_cppflags" ; then
11263 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11264 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11268 if test -n "$cf_new_extra_cppflags" ; then
11270 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11271 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11279 fi # cf_cv_posix_visible
11281 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11283 # Work around breakage on OS X
11285 echo "$as_me:11285: checking if SIGWINCH is defined" >&5
11286 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11287 if test "${cf_cv_define_sigwinch+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11292 #line 11292 "configure"
11293 #include "confdefs.h"
11295 #include <sys/types.h>
11296 #include <sys/signal.h>
11301 int x = SIGWINCH; (void)x
11306 rm -f conftest.$ac_objext
11307 if { (eval echo "$as_me:11307: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>&5
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:11313: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:11316: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 cf_cv_define_sigwinch=yes
11320 echo "$as_me: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11322 cat >conftest.$ac_ext <<_ACEOF
11323 #line 11323 "configure"
11324 #include "confdefs.h"
11326 #undef _XOPEN_SOURCE
11327 #undef _POSIX_SOURCE
11328 #undef _POSIX_C_SOURCE
11329 #include <sys/types.h>
11330 #include <sys/signal.h>
11335 int x = SIGWINCH; (void)x
11340 rm -f conftest.$ac_objext
11341 if { (eval echo "$as_me:11341: \"$ac_compile\"") >&5
11342 (eval $ac_compile) 2>&5
11344 echo "$as_me:11344: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:11347: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:11350: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 cf_cv_define_sigwinch=maybe
11354 echo "$as_me: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11356 cf_cv_define_sigwinch=no
11358 rm -f conftest.$ac_objext conftest.$ac_ext
11361 rm -f conftest.$ac_objext conftest.$ac_ext
11364 echo "$as_me:11364: result: $cf_cv_define_sigwinch" >&5
11365 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11367 if test "$cf_cv_define_sigwinch" = maybe ; then
11368 echo "$as_me:11368: checking for actual SIGWINCH definition" >&5
11369 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11370 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cf_cv_fixup_sigwinch=unknown
11376 while test $cf_sigwinch != 1
11378 cat >conftest.$ac_ext <<_ACEOF
11379 #line 11379 "configure"
11380 #include "confdefs.h"
11382 #undef _XOPEN_SOURCE
11383 #undef _POSIX_SOURCE
11384 #undef _POSIX_C_SOURCE
11385 #include <sys/types.h>
11386 #include <sys/signal.h>
11392 #if SIGWINCH != $cf_sigwinch
11395 int x = SIGWINCH; (void)x
11400 rm -f conftest.$ac_objext
11401 if { (eval echo "$as_me:11401: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11404 echo "$as_me:11404: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:11407: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:11410: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 cf_cv_fixup_sigwinch=$cf_sigwinch
11415 echo "$as_me: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11418 rm -f conftest.$ac_objext conftest.$ac_ext
11420 cf_sigwinch=`expr $cf_sigwinch - 1`
11424 echo "$as_me:11424: result: $cf_cv_fixup_sigwinch" >&5
11425 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11427 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11428 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11432 # Checks for CODESET support.
11434 echo "$as_me:11434: checking for nl_langinfo and CODESET" >&5
11435 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11436 if test "${am_cv_langinfo_codeset+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 #line 11440 "configure"
11441 #include "confdefs.h"
11442 #include <langinfo.h>
11446 char* cs = nl_langinfo(CODESET); (void)cs
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (eval echo "$as_me:11452: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>&5
11455 echo "$as_me:11455: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -s conftest$ac_exeext'
11458 { (eval echo "$as_me:11458: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 am_cv_langinfo_codeset=yes
11465 echo "$as_me: failed program was:" >&5
11466 cat conftest.$ac_ext >&5
11467 am_cv_langinfo_codeset=no
11469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11472 echo "$as_me:11472: result: $am_cv_langinfo_codeset" >&5
11473 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11474 if test $am_cv_langinfo_codeset = yes; then
11476 cat >>confdefs.h <<\EOF
11477 #define HAVE_LANGINFO_CODESET 1
11482 # use these variables to work around a defect in gcc's fixincludes.
11483 NCURSES_OK_WCHAR_T=
11486 echo "$as_me:11486: checking if you want wide-character code" >&5
11487 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11489 # Check whether --enable-widec or --disable-widec was given.
11490 if test "${enable_widec+set}" = set; then
11491 enableval="$enable_widec"
11492 with_widec=$enableval
11496 echo "$as_me:11496: result: $with_widec" >&5
11497 echo "${ECHO_T}$with_widec" >&6
11499 NCURSES_WCWIDTH_GRAPHICS=1
11501 if test "x$with_widec" = xyes ; then
11502 if test "x$disable_lib_suffixes" = xno ; then
11503 LIB_SUFFIX="w${LIB_SUFFIX}"
11506 cat >>confdefs.h <<\EOF
11507 #define USE_WIDEC_SUPPORT 1
11510 cat >>confdefs.h <<\EOF
11511 #define NCURSES_WIDECHAR 1
11519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11520 echo "$as_me:11520: checking for $ac_header" >&5
11521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line 11526 "configure"
11527 #include "confdefs.h"
11528 #include <$ac_header>
11530 if { (eval echo "$as_me:11530: \"$ac_cpp conftest.$ac_ext\"") >&5
11531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11533 egrep -v '^ *\+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 echo "$as_me:11536: \$? = $ac_status" >&5
11537 (exit $ac_status); } >/dev/null; then
11538 if test -s conftest.err; then
11539 ac_cpp_err=$ac_c_preproc_warn_flag
11546 if test -z "$ac_cpp_err"; then
11547 eval "$as_ac_Header=yes"
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 eval "$as_ac_Header=no"
11553 rm -f conftest.err conftest.$ac_ext
11555 echo "$as_me:11555: result: `eval echo '${'$as_ac_Header'}'`" >&5
11556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11558 cat >>confdefs.h <<EOF
11559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 echo "$as_me:11565: checking if wchar.h can be used as is" >&5
11566 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11567 if test "${cf_cv_wchar_h_okay+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11572 #line 11572 "configure"
11573 #include "confdefs.h"
11575 #include <stdlib.h>
11576 #ifdef HAVE_WCHAR_H
11579 #ifdef HAVE_WCTYPE_H
11580 #include <wctype.h>
11588 int bar = iswpunct(foo)
11593 rm -f conftest.$ac_objext
11594 if { (eval echo "$as_me:11594: \"$ac_compile\"") >&5
11595 (eval $ac_compile) 2>&5
11597 echo "$as_me:11597: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -s conftest.$ac_objext'
11600 { (eval echo "$as_me:11600: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:11603: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 cf_cv_wchar_h_okay=yes
11607 echo "$as_me: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 cf_cv_wchar_h_okay=no
11611 rm -f conftest.$ac_objext conftest.$ac_ext
11613 echo "$as_me:11613: result: $cf_cv_wchar_h_okay" >&5
11614 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11616 if test $cf_cv_wchar_h_okay = no
11619 echo "$as_me:11619: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11620 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11622 #line 11622 "configure"
11623 #include "confdefs.h"
11624 #include <sys/types.h>
11630 #ifndef _XOPEN_SOURCE_EXTENDED
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:11638: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>&5
11641 echo "$as_me:11641: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:11644: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:11647: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11651 echo "$as_me: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11655 rm -f conftest.$ac_objext conftest.$ac_ext
11656 echo "$as_me:11656: result: $cf_result" >&5
11657 echo "${ECHO_T}$cf_result" >&6
11659 if test "$cf_result" = yes ; then
11660 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11661 elif test "x" != "x" ; then
11662 echo "$as_me:11662: checking checking for compatible value versus " >&5
11663 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11665 #line 11665 "configure"
11666 #include "confdefs.h"
11667 #include <sys/types.h>
11673 #if _XOPEN_SOURCE_EXTENDED- < 0
11680 rm -f conftest.$ac_objext
11681 if { (eval echo "$as_me:11681: \"$ac_compile\"") >&5
11682 (eval $ac_compile) 2>&5
11684 echo "$as_me:11684: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (eval echo "$as_me:11687: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11690 echo "$as_me:11690: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11698 rm -f conftest.$ac_objext conftest.$ac_ext
11699 echo "$as_me:11699: result: $cf_result" >&5
11700 echo "${ECHO_T}$cf_result" >&6
11701 if test "$cf_result" = no ; then
11702 # perhaps we can override it - try...
11703 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11709 echo "$as_me:11709: checking if wcwidth agrees graphics are single-width" >&5
11710 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11711 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.in <<CF_EOF
11717 0x250c upper left corner
11718 0x2514 lower left corner
11719 0x2510 upper right corner
11720 0x2518 lower right corner
11721 0x251c tee pointing left
11722 0x2524 tee pointing right
11723 0x2534 tee pointing up
11724 0x252c tee pointing down
11725 0x2500 horizontal line
11726 0x2502 vertical line
11727 0x253c large plus or crossover
11731 0x2592 checker board (stipple)
11732 0x00b0 degree symbol
11735 - Teletype 5410v1 symbols
11736 0x2190 arrow pointing left
11737 0x2192 arrow pointing right
11738 0x2193 arrow pointing down
11739 0x2191 arrow pointing up
11740 0x2592 board of squares
11741 0x2603 lantern symbol
11742 0x25ae solid square block
11743 - these defaults were invented for ncurses
11746 0x2264 less-than-or-equal-to
11747 0x2265 greater-than-or-equal-to
11750 0x00a3 pound-sterling symbol
11751 - thick-line-drawing
11752 0x250f upper left corner
11753 0x2517 lower left corner
11754 0x2513 upper right corner
11755 0x251b lower right corner
11756 0x2523 tee pointing left
11757 0x252b tee pointing right
11758 0x253b tee pointing up
11759 0x2533 tee pointing down
11760 0x2501 horizontal line
11761 0x2503 vertical line
11762 0x254b large plus or crossover
11763 - double-line-drawing
11764 0x2554 upper left corner
11765 0x255a lower left corner
11766 0x2557 upper right corner
11767 0x255d lower right corner
11768 0x2563 tee pointing left
11769 0x2560 tee pointing right
11770 0x2569 tee pointing up
11771 0x2566 tee pointing down
11772 0x2550 horizontal line
11773 0x2551 vertical line
11774 0x256c large plus or crossover
11776 if test "$cross_compiling" = yes; then
11777 cf_cv_wcwidth_graphics=unknown
11779 cat >conftest.$ac_ext <<_ACEOF
11780 #line 11780 "configure"
11781 #include "confdefs.h"
11783 #include <locale.h>
11794 char buffer[MY_LEN + 1];
11795 char notes[MY_LEN + 1];
11799 if (setlocale(LC_ALL, "en_US.UTF8") ||
11800 setlocale(LC_ALL, "en_US.UTF-8") ||
11801 setlocale(LC_ALL, "en_US.utf8") ||
11802 setlocale(LC_ALL, "en_US.utf-8")) {
11803 if ((fp = fopen("conftest.in", "r")) != 0) {
11804 while (fgets(buffer, MY_LEN, fp) != 0) {
11805 if (*buffer == '-') {
11806 fprintf(stderr, "\t%s", buffer);
11807 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11809 if (wcwidth(value) == 1)
11811 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11813 fprintf(stderr, "?\t%s", buffer);
11818 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11819 return (totals == passed) ? 0 : 1;
11823 rm -f conftest$ac_exeext
11824 if { (eval echo "$as_me:11824: \"$ac_link\"") >&5
11825 (eval $ac_link) 2>&5
11827 echo "$as_me:11827: \$? = $ac_status" >&5
11828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11829 { (eval echo "$as_me:11829: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:11832: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 cf_cv_wcwidth_graphics=yes
11836 echo "$as_me: program exited with status $ac_status" >&5
11837 echo "$as_me: failed program was:" >&5
11838 cat conftest.$ac_ext >&5
11839 cf_cv_wcwidth_graphics=no
11841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11845 echo "$as_me:11845: result: $cf_cv_wcwidth_graphics" >&5
11846 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11848 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11850 # with_overwrite=no
11851 NCURSES_CH_T=cchar_t
11853 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11856 echo "$as_me:11856: checking for $ac_func" >&5
11857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11858 if eval "test \"\${$as_ac_var+set}\" = set"; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 cat >conftest.$ac_ext <<_ACEOF
11862 #line 11862 "configure"
11863 #include "confdefs.h"
11864 #define $ac_func autoconf_temporary
11865 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char $ac_func (void);
11880 /* The GNU C library defines stubs for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 #error found stub for $ac_func
11887 return $ac_func ();
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:11893: \"$ac_link\"") >&5
11894 (eval $ac_link) 2>&5
11896 echo "$as_me:11896: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (eval echo "$as_me:11899: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:11902: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 eval "$as_ac_var=yes"
11906 echo "$as_me: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 eval "$as_ac_var=no"
11910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11912 echo "$as_me:11912: result: `eval echo '${'$as_ac_var'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11914 if test `eval echo '${'$as_ac_var'}'` = yes; then
11915 cat >>confdefs.h <<EOF
11916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 if test "x$ac_cv_func_putwc" != xyes ; then
11924 echo "$as_me:11924: checking for multibyte character support" >&5
11925 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11926 if test "${cf_cv_utf8_lib+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 cf_save_LIBS="$LIBS"
11931 cat >conftest.$ac_ext <<_ACEOF
11932 #line 11932 "configure"
11933 #include "confdefs.h"
11935 #include <stdlib.h>
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:11945: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>&5
11948 echo "$as_me:11948: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (eval echo "$as_me:11951: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11958 echo "$as_me: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11961 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11962 # will be set on completion of the AC_TRY_LINK below.
11963 cf_cv_header_path_utf8=
11964 cf_cv_library_path_utf8=
11966 echo "${as_me:-configure}:11966: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11968 cf_save_LIBS="$LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 #line 11971 "configure"
11972 #include "confdefs.h"
11974 #include <libutf8.h>
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (eval echo "$as_me:11984: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>&5
11987 echo "$as_me:11987: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:11990: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:11993: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11996 cf_cv_find_linkage_utf8=yes
11997 cf_cv_header_path_utf8=/usr/include
11998 cf_cv_library_path_utf8=/usr/lib
12001 echo "$as_me: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12004 LIBS="-lutf8 $cf_save_LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 #line 12007 "configure"
12008 #include "confdefs.h"
12010 #include <libutf8.h>
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (eval echo "$as_me:12020: \"$ac_link\"") >&5
12021 (eval $ac_link) 2>&5
12023 echo "$as_me:12023: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:12026: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:12029: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12032 cf_cv_find_linkage_utf8=yes
12033 cf_cv_header_path_utf8=/usr/include
12034 cf_cv_library_path_utf8=/usr/lib
12035 cf_cv_library_file_utf8="-lutf8"
12038 echo "$as_me: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12041 cf_cv_find_linkage_utf8=no
12042 LIBS="$cf_save_LIBS"
12044 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12046 echo "${as_me:-configure}:12046: testing find linkage for utf8 library ..." 1>&5
12048 echo "${as_me:-configure}:12048: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12050 cf_save_CPPFLAGS="$CPPFLAGS"
12051 cf_test_CPPFLAGS="$CPPFLAGS"
12055 # collect the current set of include-directories from compiler flags
12056 cf_header_path_list=""
12057 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12058 for cf_header_path in $CPPFLAGS $CFLAGS
12060 case $cf_header_path in
12062 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12064 test "x$cf_header_path" != "xNONE" && \
12065 test -d "$cf_header_path" && \
12067 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12068 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
12069 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
12070 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
12071 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
12072 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12075 cf_header_path_list="$cf_header_path_list $cf_search"
12081 # add the variations for the package we are looking for
12085 test "x$prefix" != "xNONE" && \
12086 test -d "$prefix" && \
12088 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12089 test -d $prefix/include && cf_search="$cf_search $prefix/include"
12090 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
12091 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
12092 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
12093 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
12096 for cf_subdir_prefix in \
12105 test "x$cf_subdir_prefix" != "x$prefix" && \
12106 test -d "$cf_subdir_prefix" && \
12107 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12108 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12109 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
12110 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12111 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12112 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12113 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12118 test "$includedir" != NONE && \
12119 test "$includedir" != "/usr/include" && \
12120 test -d "$includedir" && {
12121 test -d $includedir && cf_search="$cf_search $includedir"
12122 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
12125 test "$oldincludedir" != NONE && \
12126 test "$oldincludedir" != "/usr/include" && \
12127 test -d "$oldincludedir" && {
12128 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
12129 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
12132 cf_search="$cf_search $cf_header_path_list"
12134 for cf_cv_header_path_utf8 in $cf_search
12136 if test -d $cf_cv_header_path_utf8 ; then
12137 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12139 echo "${as_me:-configure}:12139: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12141 CPPFLAGS="$cf_save_CPPFLAGS"
12143 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12144 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12146 cat >conftest.$ac_ext <<_ACEOF
12147 #line 12147 "configure"
12148 #include "confdefs.h"
12150 #include <libutf8.h>
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:12160: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12163 echo "$as_me:12163: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:12166: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:12169: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12172 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12174 echo "${as_me:-configure}:12174: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12176 cf_cv_find_linkage_utf8=maybe
12177 cf_test_CPPFLAGS="$CPPFLAGS"
12180 echo "$as_me: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12183 CPPFLAGS="$cf_save_CPPFLAGS"
12186 rm -f conftest.$ac_objext conftest.$ac_ext
12190 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12192 echo "${as_me:-configure}:12192: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12194 cf_save_LIBS="$LIBS"
12195 cf_save_LDFLAGS="$LDFLAGS"
12197 if test "$cf_cv_find_linkage_utf8" != yes ; then
12200 cf_library_path_list=""
12201 if test -n "${LDFLAGS}${LIBS}" ; then
12202 for cf_library_path in $LDFLAGS $LIBS
12204 case $cf_library_path in
12206 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12208 test "x$cf_library_path" != "xNONE" && \
12209 test -d "$cf_library_path" && \
12211 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12212 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
12213 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
12214 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12215 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
12216 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12219 cf_library_path_list="$cf_library_path_list $cf_search"
12227 test "x$prefix" != "xNONE" && \
12228 test -d "$prefix" && \
12230 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12231 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
12232 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
12233 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
12234 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
12235 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
12238 for cf_subdir_prefix in \
12247 test "x$cf_subdir_prefix" != "x$prefix" && \
12248 test -d "$cf_subdir_prefix" && \
12249 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12250 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12251 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
12252 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12253 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12254 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12255 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12260 cf_search="$cf_library_path_list $cf_search"
12262 for cf_cv_library_path_utf8 in $cf_search
12264 if test -d $cf_cv_library_path_utf8 ; then
12265 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12267 echo "${as_me:-configure}:12267: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12269 CPPFLAGS="$cf_test_CPPFLAGS"
12270 LIBS="-lutf8 $cf_save_LIBS"
12271 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12272 cat >conftest.$ac_ext <<_ACEOF
12273 #line 12273 "configure"
12274 #include "confdefs.h"
12276 #include <libutf8.h>
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:12286: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -s conftest$ac_exeext'
12292 { (eval echo "$as_me:12292: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:12295: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12298 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12300 echo "${as_me:-configure}:12300: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12302 cf_cv_find_linkage_utf8=yes
12303 cf_cv_library_file_utf8="-lutf8"
12306 echo "$as_me: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12309 CPPFLAGS="$cf_save_CPPFLAGS"
12310 LIBS="$cf_save_LIBS"
12311 LDFLAGS="$cf_save_LDFLAGS"
12314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12317 CPPFLAGS="$cf_save_CPPFLAGS"
12318 LDFLAGS="$cf_save_LDFLAGS"
12322 cf_cv_find_linkage_utf8=no
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12331 LIBS="$cf_save_LIBS"
12333 if test "$cf_cv_find_linkage_utf8" = yes ; then
12334 cf_cv_utf8_lib=add-on
12340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12342 echo "$as_me:12342: result: $cf_cv_utf8_lib" >&5
12343 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12345 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12346 # ncurses/ncursesw:
12347 if test "$cf_cv_utf8_lib" = "add-on" ; then
12349 cat >>confdefs.h <<\EOF
12350 #define HAVE_LIBUTF8_H 1
12353 if test -n "$cf_cv_header_path_utf8" ; then
12354 for cf_add_incdir in $cf_cv_header_path_utf8
12356 while test $cf_add_incdir != /usr/include
12358 if test -d $cf_add_incdir
12361 if test -n "$CFLAGS$CPPFLAGS" ; then
12362 # a loop is needed to ensure we can add subdirs of existing dirs
12363 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12364 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12365 cf_have_incdir=yes; break
12370 if test "$cf_have_incdir" = no ; then
12371 if test "$cf_add_incdir" = /usr/local/include ; then
12372 if test "$GCC" = yes
12374 cf_save_CPPFLAGS=$CPPFLAGS
12376 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12377 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12379 cat >conftest.$ac_ext <<_ACEOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12391 rm -f conftest.$ac_objext
12392 if { (eval echo "$as_me:12392: \"$ac_compile\"") >&5
12393 (eval $ac_compile) 2>&5
12395 echo "$as_me:12395: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:12398: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12409 rm -f conftest.$ac_objext conftest.$ac_ext
12410 CPPFLAGS=$cf_save_CPPFLAGS
12415 if test "$cf_have_incdir" = no ; then
12416 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12418 echo "${as_me:-configure}:12418: testing adding $cf_add_incdir to include-path ..." 1>&5
12420 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12422 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12423 test "$cf_top_incdir" = "$cf_add_incdir" && break
12424 cf_add_incdir="$cf_top_incdir"
12435 if test -n "$cf_cv_library_path_utf8" ; then
12436 for cf_add_libdir in $cf_cv_library_path_utf8
12438 if test $cf_add_libdir = /usr/lib ; then
12440 elif test -d $cf_add_libdir
12443 if test -n "$LDFLAGS$LIBS" ; then
12444 # a loop is needed to ensure we can add subdirs of existing dirs
12445 for cf_test_libdir in $LDFLAGS $LIBS ; do
12446 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12447 cf_have_libdir=yes; break
12451 if test "$cf_have_libdir" = no ; then
12452 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12454 echo "${as_me:-configure}:12454: testing adding $cf_add_libdir to library-path ..." 1>&5
12456 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12462 cf_add_libs="$LIBS"
12465 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12466 # filter duplicates
12467 for cf_add_1lib in $cf_add_0lib; do
12468 for cf_add_2lib in $cf_add_libs; do
12469 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12474 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12476 LIBS="$cf_add_libs"
12480 if test "$cf_cv_utf8_lib" != no ; then
12485 # This is needed on Tru64 5.0 to declare mbstate_t
12486 echo "$as_me:12486: checking if we must include wchar.h to declare mbstate_t" >&5
12487 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12488 if test "${cf_cv_mbstate_t+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line 12493 "configure"
12494 #include "confdefs.h"
12496 #include <stdlib.h>
12497 #include <stdarg.h>
12499 #ifdef HAVE_LIBUTF8_H
12500 #include <libutf8.h>
12510 rm -f conftest.$ac_objext
12511 if { (eval echo "$as_me:12511: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12514 echo "$as_me:12514: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:12517: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:12520: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12524 echo "$as_me: failed program was:" >&5
12525 cat conftest.$ac_ext >&5
12526 cat >conftest.$ac_ext <<_ACEOF
12527 #line 12527 "configure"
12528 #include "confdefs.h"
12530 #include <stdlib.h>
12531 #include <stdarg.h>
12534 #ifdef HAVE_LIBUTF8_H
12535 #include <libutf8.h>
12545 rm -f conftest.$ac_objext
12546 if { (eval echo "$as_me:12546: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>&5
12549 echo "$as_me:12549: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:12552: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:12555: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 cf_cv_mbstate_t=yes
12559 echo "$as_me: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12561 cf_cv_mbstate_t=unknown
12563 rm -f conftest.$ac_objext conftest.$ac_ext
12565 rm -f conftest.$ac_objext conftest.$ac_ext
12567 echo "$as_me:12567: result: $cf_cv_mbstate_t" >&5
12568 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12570 if test "$cf_cv_mbstate_t" = yes ; then
12572 cat >>confdefs.h <<\EOF
12573 #define NEED_WCHAR_H 1
12579 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12580 if test "$cf_cv_mbstate_t" = unknown ; then
12581 NCURSES_MBSTATE_T=1
12584 # This is needed on Tru64 5.0 to declare wchar_t
12585 echo "$as_me:12585: checking if we must include wchar.h to declare wchar_t" >&5
12586 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12587 if test "${cf_cv_wchar_t+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line 12592 "configure"
12593 #include "confdefs.h"
12595 #include <stdlib.h>
12596 #include <stdarg.h>
12598 #ifdef HAVE_LIBUTF8_H
12599 #include <libutf8.h>
12609 rm -f conftest.$ac_objext
12610 if { (eval echo "$as_me:12610: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:12616: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12623 echo "$as_me: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12625 cat >conftest.$ac_ext <<_ACEOF
12626 #line 12626 "configure"
12627 #include "confdefs.h"
12629 #include <stdlib.h>
12630 #include <stdarg.h>
12633 #ifdef HAVE_LIBUTF8_H
12634 #include <libutf8.h>
12644 rm -f conftest.$ac_objext
12645 if { (eval echo "$as_me:12645: \"$ac_compile\"") >&5
12646 (eval $ac_compile) 2>&5
12648 echo "$as_me:12648: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
12650 { ac_try='test -s conftest.$ac_objext'
12651 { (eval echo "$as_me:12651: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:12654: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12658 echo "$as_me: failed program was:" >&5
12659 cat conftest.$ac_ext >&5
12660 cf_cv_wchar_t=unknown
12662 rm -f conftest.$ac_objext conftest.$ac_ext
12664 rm -f conftest.$ac_objext conftest.$ac_ext
12666 echo "$as_me:12666: result: $cf_cv_wchar_t" >&5
12667 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12669 if test "$cf_cv_wchar_t" = yes ; then
12671 cat >>confdefs.h <<\EOF
12672 #define NEED_WCHAR_H 1
12678 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12679 if test "$cf_cv_wchar_t" = unknown ; then
12683 # if we find wchar_t in either place, use substitution to provide a fallback.
12684 if test "$cf_cv_wchar_t" != unknown ; then
12685 NCURSES_OK_WCHAR_T=1
12688 # This is needed on Tru64 5.0 to declare wint_t
12689 echo "$as_me:12689: checking if we must include wchar.h to declare wint_t" >&5
12690 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12691 if test "${cf_cv_wint_t+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line 12696 "configure"
12697 #include "confdefs.h"
12699 #include <stdlib.h>
12700 #include <stdarg.h>
12702 #ifdef HAVE_LIBUTF8_H
12703 #include <libutf8.h>
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:12714: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12717 echo "$as_me:12717: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:12720: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:12723: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12727 echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 cat >conftest.$ac_ext <<_ACEOF
12730 #line 12730 "configure"
12731 #include "confdefs.h"
12733 #include <stdlib.h>
12734 #include <stdarg.h>
12737 #ifdef HAVE_LIBUTF8_H
12738 #include <libutf8.h>
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:12749: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>&5
12752 echo "$as_me:12752: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:12755: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:12758: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12762 echo "$as_me: failed program was:" >&5
12763 cat conftest.$ac_ext >&5
12764 cf_cv_wint_t=unknown
12766 rm -f conftest.$ac_objext conftest.$ac_ext
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12770 echo "$as_me:12770: result: $cf_cv_wint_t" >&5
12771 echo "${ECHO_T}$cf_cv_wint_t" >&6
12773 if test "$cf_cv_wint_t" = yes ; then
12775 cat >>confdefs.h <<\EOF
12776 #define NEED_WCHAR_H 1
12782 # if we do not find wint_t in either place, use substitution to provide a fallback.
12783 if test "$cf_cv_wint_t" = unknown ; then
12787 # if we find wint_t in either place, use substitution to provide a fallback.
12788 if test "$cf_cv_wint_t" != unknown ; then
12789 NCURSES_OK_WINT_T=1
12792 if test "$NCURSES_MBSTATE_T" != 0; then
12794 cat >>confdefs.h <<\EOF
12795 #define NEED_MBSTATE_T_DEF 1
12801 ### use option --disable-lp64 to allow long chtype
12802 echo "$as_me:12802: checking whether to enable _LP64 definition in curses.h" >&5
12803 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12805 # Check whether --enable-lp64 or --disable-lp64 was given.
12806 if test "${enable_lp64+set}" = set; then
12807 enableval="$enable_lp64"
12808 with_lp64=$enableval
12810 with_lp64=$cf_dft_with_lp64
12812 echo "$as_me:12812: result: $with_lp64" >&5
12813 echo "${ECHO_T}$with_lp64" >&6
12815 if test "x$with_lp64" = xyes ; then
12816 cf_cv_enable_lp64=1
12818 cf_cv_enable_lp64=0
12821 # Check whether --enable-largefile or --disable-largefile was given.
12822 if test "${enable_largefile+set}" = set; then
12823 enableval="$enable_largefile"
12826 if test "$enable_largefile" != no; then
12828 echo "$as_me:12828: checking for special C compiler options needed for large files" >&5
12829 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12830 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 ac_cv_sys_largefile_CC=no
12834 if test "$GCC" != yes; then
12837 # IRIX 6.2 and later do not support large files by default,
12838 # so use the C compiler's -n32 option if that helps.
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line 12840 "configure"
12841 #include "confdefs.h"
12842 #include <sys/types.h>
12843 /* Check that off_t can represent 2**63 - 1 correctly.
12844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12845 since some C++ compilers masquerading as C compilers
12846 incorrectly reject 9223372036854775807. */
12847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12849 && LARGE_OFF_T % 2147483647 == 1)
12859 rm -f conftest.$ac_objext
12860 if { (eval echo "$as_me:12860: \"$ac_compile\"") >&5
12861 (eval $ac_compile) 2>&5
12863 echo "$as_me:12863: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (eval echo "$as_me:12866: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:12869: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12873 echo "$as_me: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12876 rm -f conftest.$ac_objext
12878 rm -f conftest.$ac_objext
12879 if { (eval echo "$as_me:12879: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12882 echo "$as_me:12882: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:12885: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:12888: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_cv_sys_largefile_CC=' -n32'; break
12892 echo "$as_me: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12895 rm -f conftest.$ac_objext
12899 rm -f conftest.$ac_ext
12902 echo "$as_me:12902: result: $ac_cv_sys_largefile_CC" >&5
12903 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12904 if test "$ac_cv_sys_largefile_CC" != no; then
12905 CC=$CC$ac_cv_sys_largefile_CC
12908 echo "$as_me:12908: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12909 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12910 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 ac_cv_sys_file_offset_bits=no
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line 12916 "configure"
12917 #include "confdefs.h"
12918 #include <sys/types.h>
12919 /* Check that off_t can represent 2**63 - 1 correctly.
12920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12921 since some C++ compilers masquerading as C compilers
12922 incorrectly reject 9223372036854775807. */
12923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12925 && LARGE_OFF_T % 2147483647 == 1)
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:12936: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>&5
12939 echo "$as_me:12939: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:12942: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:12945: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12949 echo "$as_me: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12953 cat >conftest.$ac_ext <<_ACEOF
12954 #line 12954 "configure"
12955 #include "confdefs.h"
12956 #define _FILE_OFFSET_BITS 64
12957 #include <sys/types.h>
12958 /* Check that off_t can represent 2**63 - 1 correctly.
12959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12960 since some C++ compilers masquerading as C compilers
12961 incorrectly reject 9223372036854775807. */
12962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12964 && LARGE_OFF_T % 2147483647 == 1)
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:12975: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12978 echo "$as_me:12978: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:12981: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:12984: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_sys_file_offset_bits=64; break
12988 echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12991 rm -f conftest.$ac_objext conftest.$ac_ext
12995 echo "$as_me:12995: result: $ac_cv_sys_file_offset_bits" >&5
12996 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12997 if test "$ac_cv_sys_file_offset_bits" != no; then
12999 cat >>confdefs.h <<EOF
13000 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13005 echo "$as_me:13005: checking for _LARGE_FILES value needed for large files" >&5
13006 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13007 if test "${ac_cv_sys_large_files+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 ac_cv_sys_large_files=no
13012 cat >conftest.$ac_ext <<_ACEOF
13013 #line 13013 "configure"
13014 #include "confdefs.h"
13015 #include <sys/types.h>
13016 /* Check that off_t can represent 2**63 - 1 correctly.
13017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13018 since some C++ compilers masquerading as C compilers
13019 incorrectly reject 9223372036854775807. */
13020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13022 && LARGE_OFF_T % 2147483647 == 1)
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:13033: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>&5
13036 echo "$as_me:13036: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:13039: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:13042: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13046 echo "$as_me: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13049 rm -f conftest.$ac_objext conftest.$ac_ext
13050 cat >conftest.$ac_ext <<_ACEOF
13051 #line 13051 "configure"
13052 #include "confdefs.h"
13053 #define _LARGE_FILES 1
13054 #include <sys/types.h>
13055 /* Check that off_t can represent 2**63 - 1 correctly.
13056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13057 since some C++ compilers masquerading as C compilers
13058 incorrectly reject 9223372036854775807. */
13059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13061 && LARGE_OFF_T % 2147483647 == 1)
13071 rm -f conftest.$ac_objext
13072 if { (eval echo "$as_me:13072: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>&5
13075 echo "$as_me:13075: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -s conftest.$ac_objext'
13078 { (eval echo "$as_me:13078: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_sys_large_files=1; break
13085 echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13088 rm -f conftest.$ac_objext conftest.$ac_ext
13092 echo "$as_me:13092: result: $ac_cv_sys_large_files" >&5
13093 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13094 if test "$ac_cv_sys_large_files" != no; then
13096 cat >>confdefs.h <<EOF
13097 #define _LARGE_FILES $ac_cv_sys_large_files
13104 if test "$enable_largefile" != no ; then
13105 echo "$as_me:13105: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13106 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13107 if test "${ac_cv_sys_largefile_source+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 ac_cv_sys_largefile_source=no
13112 cat >conftest.$ac_ext <<_ACEOF
13113 #line 13113 "configure"
13114 #include "confdefs.h"
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>&5
13128 echo "$as_me:13128: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:13131: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:13134: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13138 echo "$as_me: failed program was:" >&5
13139 cat conftest.$ac_ext >&5
13141 rm -f conftest.$ac_objext conftest.$ac_ext
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line 13143 "configure"
13144 #include "confdefs.h"
13145 #define _LARGEFILE_SOURCE 1
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:13156: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>&5
13159 echo "$as_me:13159: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:13162: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:13165: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_sys_largefile_source=1; break
13169 echo "$as_me: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13172 rm -f conftest.$ac_objext conftest.$ac_ext
13176 echo "$as_me:13176: result: $ac_cv_sys_largefile_source" >&5
13177 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13178 if test "$ac_cv_sys_largefile_source" != no; then
13180 cat >>confdefs.h <<EOF
13181 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13187 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13188 # in glibc 2.1.3, but that breaks too many other things.
13189 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13190 echo "$as_me:13190: checking for fseeko" >&5
13191 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13192 if test "${ac_cv_func_fseeko+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line 13196 "configure"
13197 #include "confdefs.h"
13202 return fseeko && fseeko (stdin, 0, 0);
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (eval echo "$as_me:13208: \"$ac_link\"") >&5
13209 (eval $ac_link) 2>&5
13211 echo "$as_me:13211: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:13214: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:13217: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_func_fseeko=yes
13221 echo "$as_me: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 ac_cv_func_fseeko=no
13225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13227 echo "$as_me:13227: result: $ac_cv_func_fseeko" >&5
13228 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13229 if test $ac_cv_func_fseeko = yes; then
13231 cat >>confdefs.h <<\EOF
13232 #define HAVE_FSEEKO 1
13237 # Normally we would collect these definitions in the config.h,
13238 # but (like _XOPEN_SOURCE), some environments rely on having these
13239 # defined before any of the system headers are included. Another
13240 # case comes up with C++, e.g., on AIX the compiler compiles the
13241 # header files by themselves before looking at the body files it is
13242 # told to compile. For ncurses, those header files do not include
13244 if test "$ac_cv_sys_large_files" != no
13247 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13248 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13251 if test "$ac_cv_sys_largefile_source" != no
13254 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13255 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13258 if test "$ac_cv_sys_file_offset_bits" != no
13261 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13262 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13266 echo "$as_me:13266: checking whether to use struct dirent64" >&5
13267 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13268 if test "${cf_cv_struct_dirent64+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 cat >conftest.$ac_ext <<_ACEOF
13273 #line 13273 "configure"
13274 #include "confdefs.h"
13276 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13277 #include <sys/types.h>
13278 #include <dirent.h>
13284 /* if transitional largefile support is setup, this is true */
13285 extern struct dirent64 * readdir(DIR *);
13286 struct dirent64 *x = readdir((DIR *)0);
13287 struct dirent *y = readdir((DIR *)0);
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:13296: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>&5
13299 echo "$as_me:13299: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:13302: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:13305: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 cf_cv_struct_dirent64=yes
13309 echo "$as_me: failed program was:" >&5
13310 cat conftest.$ac_ext >&5
13311 cf_cv_struct_dirent64=no
13313 rm -f conftest.$ac_objext conftest.$ac_ext
13316 echo "$as_me:13316: result: $cf_cv_struct_dirent64" >&5
13317 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13318 test "$cf_cv_struct_dirent64" = yes &&
13319 cat >>confdefs.h <<\EOF
13320 #define HAVE_STRUCT_DIRENT64 1
13325 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13326 echo "$as_me:13326: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13327 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13329 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13330 if test "${enable_tparm_varargs+set}" = set; then
13331 enableval="$enable_tparm_varargs"
13332 with_tparm_varargs=$enableval
13334 with_tparm_varargs=yes
13336 echo "$as_me:13336: result: $with_tparm_varargs" >&5
13337 echo "${ECHO_T}$with_tparm_varargs" >&6
13338 NCURSES_TPARM_VARARGS=0
13339 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13341 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13342 if test "$with_ticlib" != no ; then
13343 echo "$as_me:13343: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13344 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13346 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13347 if test "${enable_tic_depends+set}" = set; then
13348 enableval="$enable_tic_depends"
13349 with_tic_depends=$enableval
13351 with_tic_depends=yes
13353 echo "$as_me:13353: result: $with_tic_depends" >&5
13354 echo "${ECHO_T}$with_tic_depends" >&6
13356 with_tic_depends=no
13359 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13360 echo "$as_me:13360: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13361 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13363 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13364 if test "${enable_wattr_macros+set}" = set; then
13365 enableval="$enable_wattr_macros"
13366 with_wattr_macros=$enableval
13368 with_wattr_macros=yes
13370 if [ "x$with_wattr_macros" != xyes ]; then
13371 NCURSES_WATTR_MACROS=0
13372 echo "$as_me:13372: result: yes" >&5
13373 echo "${ECHO_T}yes" >&6
13375 NCURSES_WATTR_MACROS=1
13376 echo "$as_me:13376: result: no" >&5
13377 echo "${ECHO_T}no" >&6
13380 echo "$as_me:13380: checking for X11 rgb file" >&5
13381 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13383 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13384 if test "${with_x11_rgb+set}" = set; then
13385 withval="$with_x11_rgb"
13391 if test "x$RGB_PATH" = xauto
13393 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13395 /opt/local/share/X11/rgb.txt \
13396 /opt/X11/share/X11/rgb.txt \
13397 /usr/share/X11/rgb.txt \
13398 /usr/X11/share/X11/rgb.txt \
13399 /usr/X11/lib/X11/rgb.txt \
13400 /usr/lib/X11/rgb.txt \
13402 /usr/pkg/lib/X11/rgb.txt \
13403 /usr/X11R7/lib/X11/rgb.txt \
13404 /usr/X11R6/lib/X11/rgb.txt \
13405 /usr/X11R5/lib/X11/rgb.txt \
13406 /usr/X11R4/lib/X11/rgb.txt \
13407 /usr/local/lib/X11/rgb.txt \
13408 /usr/local/share/X11/rgb.txt \
13409 /usr/lib64/X11/rgb.txt
13411 if test -f "$cf_path" ; then
13412 RGB_PATH="$cf_path"
13419 if test "x$prefix" != xNONE; then
13420 cf_path_syntax="$prefix"
13422 cf_path_syntax="$ac_default_prefix"
13425 case ".$cf_path" in
13426 (.\$\(*\)*|.\'*\'*)
13430 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13432 (.\${*prefix}*|.\${*dir}*)
13433 eval cf_path="$cf_path"
13434 case ".$cf_path" in
13436 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13441 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13444 { { echo "$as_me:13444: error: expected a pathname, not \"$cf_path\"" >&5
13445 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13446 { (exit 1); exit 1; }; }
13452 echo "$as_me:13452: result: $RGB_PATH" >&5
13453 echo "${ECHO_T}$RGB_PATH" >&6
13455 cat >>confdefs.h <<EOF
13456 #define RGB_PATH "$cf_path"
13460 if test "$RGB_PATH" = no
13465 ### use option --with-bool to override bool's type
13466 echo "$as_me:13466: checking for type of bool" >&5
13467 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13469 # Check whether --with-bool or --without-bool was given.
13470 if test "${with_bool+set}" = set; then
13471 withval="$with_bool"
13472 NCURSES_BOOL="$withval"
13476 echo "$as_me:13476: result: $NCURSES_BOOL" >&5
13477 echo "${ECHO_T}$NCURSES_BOOL" >&6
13479 echo "$as_me:13479: checking for alternate terminal capabilities file" >&5
13480 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13482 # Check whether --with-caps or --without-caps was given.
13483 if test "${with_caps+set}" = set; then
13484 withval="$with_caps"
13485 TERMINFO_CAPS=Caps.$withval
13489 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13490 echo "$as_me:13490: result: $TERMINFO_CAPS" >&5
13491 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13493 ### use option --with-chtype to override chtype's type
13494 echo "$as_me:13494: checking for type of chtype" >&5
13495 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13497 # Check whether --with-chtype or --without-chtype was given.
13498 if test "${with_chtype+set}" = set; then
13499 withval="$with_chtype"
13500 NCURSES_CHTYPE="$withval"
13502 NCURSES_CHTYPE=$cf_dft_chtype
13504 echo "$as_me:13504: result: $NCURSES_CHTYPE" >&5
13505 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13507 ### use option --with-ospeed to override ospeed's type
13508 echo "$as_me:13508: checking for type of ospeed" >&5
13509 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13511 # Check whether --with-ospeed or --without-ospeed was given.
13512 if test "${with_ospeed+set}" = set; then
13513 withval="$with_ospeed"
13514 NCURSES_OSPEED="$withval"
13516 NCURSES_OSPEED=short
13518 echo "$as_me:13518: result: $NCURSES_OSPEED" >&5
13519 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13521 ### use option --with-mmask-t to override mmask_t's type
13522 echo "$as_me:13522: checking for type of mmask_t" >&5
13523 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13525 # Check whether --with-mmask-t or --without-mmask-t was given.
13526 if test "${with_mmask_t+set}" = set; then
13527 withval="$with_mmask_t"
13528 NCURSES_MMASK_T="$withval"
13530 NCURSES_MMASK_T=$cf_dft_mmask_t
13532 echo "$as_me:13532: result: $NCURSES_MMASK_T" >&5
13533 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13535 ### use option --with-ccharw-max to override CCHARW_MAX size
13536 echo "$as_me:13536: checking for size CCHARW_MAX" >&5
13537 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13539 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13540 if test "${with_ccharw_max+set}" = set; then
13541 withval="$with_ccharw_max"
13542 NCURSES_CCHARW_MAX="$withval"
13544 NCURSES_CCHARW_MAX=5
13546 echo "$as_me:13546: result: $NCURSES_CCHARW_MAX" >&5
13547 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13549 echo "$as_me:13549: checking for ANSI C header files" >&5
13550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13551 if test "${ac_cv_header_stdc+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 cat >conftest.$ac_ext <<_ACEOF
13555 #line 13555 "configure"
13556 #include "confdefs.h"
13557 #include <stdlib.h>
13558 #include <stdarg.h>
13559 #include <string.h>
13563 if { (eval echo "$as_me:13563: \"$ac_cpp conftest.$ac_ext\"") >&5
13564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13566 egrep -v '^ *\+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:13569: \$? = $ac_status" >&5
13570 (exit $ac_status); } >/dev/null; then
13571 if test -s conftest.err; then
13572 ac_cpp_err=$ac_c_preproc_warn_flag
13579 if test -z "$ac_cpp_err"; then
13580 ac_cv_header_stdc=yes
13582 echo "$as_me: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13584 ac_cv_header_stdc=no
13586 rm -f conftest.err conftest.$ac_ext
13588 if test $ac_cv_header_stdc = yes; then
13589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13590 cat >conftest.$ac_ext <<_ACEOF
13591 #line 13591 "configure"
13592 #include "confdefs.h"
13593 #include <string.h>
13596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13597 egrep "memchr" >/dev/null 2>&1; then
13600 ac_cv_header_stdc=no
13606 if test $ac_cv_header_stdc = yes; then
13607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13608 cat >conftest.$ac_ext <<_ACEOF
13609 #line 13609 "configure"
13610 #include "confdefs.h"
13611 #include <stdlib.h>
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 egrep "free" >/dev/null 2>&1; then
13618 ac_cv_header_stdc=no
13624 if test $ac_cv_header_stdc = yes; then
13625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13626 if test "$cross_compiling" = yes; then
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line 13630 "configure"
13631 #include "confdefs.h"
13633 #if ((' ' & 0x0FF) == 0x020)
13634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13637 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13638 || ('j' <= (c) && (c) <= 'r') \
13639 || ('s' <= (c) && (c) <= 'z'))
13640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13648 for (i = 0; i < 256; i++)
13649 if (XOR (islower (i), ISLOWER (i))
13650 || toupper (i) != TOUPPER (i))
13651 $ac_main_return(2);
13652 $ac_main_return (0);
13655 rm -f conftest$ac_exeext
13656 if { (eval echo "$as_me:13656: \"$ac_link\"") >&5
13657 (eval $ac_link) 2>&5
13659 echo "$as_me:13659: \$? = $ac_status" >&5
13660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13661 { (eval echo "$as_me:13661: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:13664: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13668 echo "$as_me: program exited with status $ac_status" >&5
13669 echo "$as_me: failed program was:" >&5
13670 cat conftest.$ac_ext >&5
13671 ac_cv_header_stdc=no
13673 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13677 echo "$as_me:13677: result: $ac_cv_header_stdc" >&5
13678 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13679 if test $ac_cv_header_stdc = yes; then
13681 cat >>confdefs.h <<\EOF
13682 #define STDC_HEADERS 1
13687 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13690 inttypes.h stdint.h unistd.h
13692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 echo "$as_me:13693: checking for $ac_header" >&5
13694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 cat >conftest.$ac_ext <<_ACEOF
13699 #line 13699 "configure"
13700 #include "confdefs.h"
13701 $ac_includes_default
13702 #include <$ac_header>
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:13705: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>&5
13708 echo "$as_me:13708: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -s conftest.$ac_objext'
13711 { (eval echo "$as_me:13711: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:13714: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 eval "$as_ac_Header=yes"
13718 echo "$as_me: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13720 eval "$as_ac_Header=no"
13722 rm -f conftest.$ac_objext conftest.$ac_ext
13724 echo "$as_me:13724: result: `eval echo '${'$as_ac_Header'}'`" >&5
13725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727 cat >>confdefs.h <<EOF
13728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13734 echo "$as_me:13734: checking for signed char" >&5
13735 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13736 if test "${ac_cv_type_signed_char+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 cat >conftest.$ac_ext <<_ACEOF
13740 #line 13740 "configure"
13741 #include "confdefs.h"
13742 $ac_includes_default
13746 if ((signed char *) 0)
13748 if (sizeof (signed char))
13754 rm -f conftest.$ac_objext
13755 if { (eval echo "$as_me:13755: \"$ac_compile\"") >&5
13756 (eval $ac_compile) 2>&5
13758 echo "$as_me:13758: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:13761: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:13764: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_type_signed_char=yes
13768 echo "$as_me: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13770 ac_cv_type_signed_char=no
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13774 echo "$as_me:13774: result: $ac_cv_type_signed_char" >&5
13775 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13777 echo "$as_me:13777: checking size of signed char" >&5
13778 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13779 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 if test "$ac_cv_type_signed_char" = yes; then
13783 if test "$cross_compiling" = yes; then
13784 # Depending upon the size, compute the lo and hi bounds.
13785 cat >conftest.$ac_ext <<_ACEOF
13786 #line 13786 "configure"
13787 #include "confdefs.h"
13788 $ac_includes_default
13792 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:13798: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>&5
13801 echo "$as_me:13801: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (eval echo "$as_me:13804: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:13807: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13811 cat >conftest.$ac_ext <<_ACEOF
13812 #line 13812 "configure"
13813 #include "confdefs.h"
13814 $ac_includes_default
13818 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13823 rm -f conftest.$ac_objext
13824 if { (eval echo "$as_me:13824: \"$ac_compile\"") >&5
13825 (eval $ac_compile) 2>&5
13827 echo "$as_me:13827: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (eval echo "$as_me:13830: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13833 echo "$as_me:13833: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_hi=$ac_mid; break
13837 echo "$as_me: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13841 rm -f conftest.$ac_objext conftest.$ac_ext
13844 echo "$as_me: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13848 cat >conftest.$ac_ext <<_ACEOF
13849 #line 13849 "configure"
13850 #include "confdefs.h"
13851 $ac_includes_default
13855 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13860 rm -f conftest.$ac_objext
13861 if { (eval echo "$as_me:13861: \"$ac_compile\"") >&5
13862 (eval $ac_compile) 2>&5
13864 echo "$as_me:13864: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -s conftest.$ac_objext'
13867 { (eval echo "$as_me:13867: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:13870: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_lo=$ac_mid; break
13874 echo "$as_me: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13878 rm -f conftest.$ac_objext conftest.$ac_ext
13881 rm -f conftest.$ac_objext conftest.$ac_ext
13882 # Binary search between lo and hi bounds.
13883 while test "x$ac_lo" != "x$ac_hi"; do
13884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13885 cat >conftest.$ac_ext <<_ACEOF
13886 #line 13886 "configure"
13887 #include "confdefs.h"
13888 $ac_includes_default
13892 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:13898: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>&5
13901 echo "$as_me:13901: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (eval echo "$as_me:13904: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:13907: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13911 echo "$as_me: failed program was:" >&5
13912 cat conftest.$ac_ext >&5
13913 ac_lo=`expr $ac_mid + 1`
13915 rm -f conftest.$ac_objext conftest.$ac_ext
13917 ac_cv_sizeof_signed_char=$ac_lo
13919 if test "$cross_compiling" = yes; then
13920 { { echo "$as_me:13920: error: cannot run test program while cross compiling" >&5
13921 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13922 { (exit 1); exit 1; }; }
13924 cat >conftest.$ac_ext <<_ACEOF
13925 #line 13925 "configure"
13926 #include "confdefs.h"
13927 $ac_includes_default
13931 FILE *f = fopen ("conftest.val", "w");
13933 $ac_main_return (1);
13934 fprintf (f, "%d", (sizeof (signed char)));
13940 rm -f conftest$ac_exeext
13941 if { (eval echo "$as_me:13941: \"$ac_link\"") >&5
13942 (eval $ac_link) 2>&5
13944 echo "$as_me:13944: \$? = $ac_status" >&5
13945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13946 { (eval echo "$as_me:13946: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:13949: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_sizeof_signed_char=`cat conftest.val`
13953 echo "$as_me: program exited with status $ac_status" >&5
13954 echo "$as_me: failed program was:" >&5
13955 cat conftest.$ac_ext >&5
13957 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13962 ac_cv_sizeof_signed_char=0
13965 echo "$as_me:13965: result: $ac_cv_sizeof_signed_char" >&5
13966 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13967 cat >>confdefs.h <<EOF
13968 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13971 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13972 NCURSES_SBOOL="signed char"
13974 NCURSES_SBOOL="char"
13976 echo "$as_me:13976: checking if you want to use signed Boolean array in term.h" >&5
13977 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13979 # Check whether --enable-signed-char or --disable-signed-char was given.
13980 if test "${enable_signed_char+set}" = set; then
13981 enableval="$enable_signed_char"
13982 with_signed_char=$enableval
13984 with_signed_char=no
13986 echo "$as_me:13986: result: $with_signed_char" >&5
13987 echo "${ECHO_T}$with_signed_char" >&6
13988 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13990 ### use option --with-tparm-arg to override tparm's argument type
13991 echo "$as_me:13991: checking for type of tparm args" >&5
13992 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
13994 # Check whether --with-tparm-arg or --without-tparm-arg was given.
13995 if test "${with_tparm_arg+set}" = set; then
13996 withval="$with_tparm_arg"
13997 NCURSES_TPARM_ARG="$withval"
13999 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14001 echo "$as_me:14001: result: $NCURSES_TPARM_ARG" >&5
14002 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14004 ### Enable compiling-in rcs id's
14005 echo "$as_me:14005: checking if RCS identifiers should be compiled-in" >&5
14006 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14008 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14009 if test "${with_rcs_ids+set}" = set; then
14010 withval="$with_rcs_ids"
14011 with_rcs_ids=$withval
14015 echo "$as_me:14015: result: $with_rcs_ids" >&5
14016 echo "${ECHO_T}$with_rcs_ids" >&6
14017 test "x$with_rcs_ids" = xyes &&
14018 cat >>confdefs.h <<\EOF
14019 #define USE_RCS_IDS 1
14022 ###############################################################################
14024 echo "$as_me:14024: checking format of man-pages" >&5
14025 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14027 # Check whether --with-manpage-format or --without-manpage-format was given.
14028 if test "${with_manpage_format+set}" = set; then
14029 withval="$with_manpage_format"
14030 MANPAGE_FORMAT=$withval
14032 MANPAGE_FORMAT=unknown
14035 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14036 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14040 case $MANPAGE_FORMAT in
14042 if test -z "$MANPATH" ; then
14043 MANPATH="/usr/man:/usr/share/man"
14046 # look for the 'date' man-page (it's most likely to be installed!)
14052 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14053 for cf_dir in $MANPATH; do
14054 test -z "$cf_dir" && cf_dir=/usr/man
14055 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
14057 cf_test=`echo $cf_name | sed -e 's/*//'`
14058 if test "x$cf_test" = "x$cf_name" ; then
14061 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14062 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14063 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14064 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14078 # if we found a match in either man* or cat*, stop looking
14079 if test -n "$MANPAGE_FORMAT" ; then
14081 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14082 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14088 test $cf_found=yes && break
14091 # only check the first directory in $MANPATH where we find manpages
14092 if test -n "$MANPAGE_FORMAT" ; then
14096 # if we did not find the example, just assume it is normal
14097 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14101 for cf_option in $MANPAGE_FORMAT; do
14103 (gzip|compress|BSDI|normal|formatted|catonly)
14106 cf_unknown="$cf_unknown $cf_option"
14113 echo "$as_me:14113: result: $MANPAGE_FORMAT" >&5
14114 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14115 if test -n "$cf_unknown" ; then
14116 { echo "$as_me:14116: WARNING: Unexpected manpage-format $cf_unknown" >&5
14117 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14120 echo "$as_me:14120: checking for manpage renaming" >&5
14121 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14123 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14124 if test "${with_manpage_renames+set}" = set; then
14125 withval="$with_manpage_renames"
14126 MANPAGE_RENAMES=$withval
14128 MANPAGE_RENAMES=yes
14131 case ".$MANPAGE_RENAMES" in
14135 # Debian 'man' program?
14136 if test -f /etc/debian_version ; then
14137 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
14144 if test "$MANPAGE_RENAMES" != no ; then
14145 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
14146 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
14147 elif test ! -f $MANPAGE_RENAMES ; then
14148 { { echo "$as_me:14148: error: not a filename: $MANPAGE_RENAMES" >&5
14149 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14150 { (exit 1); exit 1; }; }
14153 test ! -d man && mkdir man
14155 # Construct a sed-script to perform renaming within man-pages
14156 if test -n "$MANPAGE_RENAMES" ; then
14157 test ! -d man && mkdir man
14158 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
14162 echo "$as_me:14162: result: $MANPAGE_RENAMES" >&5
14163 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14165 echo "$as_me:14165: checking if manpage aliases will be installed" >&5
14166 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14168 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14169 if test "${with_manpage_aliases+set}" = set; then
14170 withval="$with_manpage_aliases"
14171 MANPAGE_ALIASES=$withval
14173 MANPAGE_ALIASES=yes
14176 echo "$as_me:14176: result: $MANPAGE_ALIASES" >&5
14177 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14181 cf_use_symlinks=yes
14188 MANPAGE_SYMLINKS=no
14189 if test "$MANPAGE_ALIASES" = yes ; then
14190 echo "$as_me:14190: checking if manpage symlinks should be used" >&5
14191 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14193 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14194 if test "${with_manpage_symlinks+set}" = set; then
14195 withval="$with_manpage_symlinks"
14196 MANPAGE_SYMLINKS=$withval
14198 MANPAGE_SYMLINKS=$cf_use_symlinks
14201 if test "$$cf_use_symlinks" = no; then
14202 if test "$MANPAGE_SYMLINKS" = yes ; then
14203 { echo "$as_me:14203: WARNING: cannot make symlinks" >&5
14204 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14205 MANPAGE_SYMLINKS=no
14209 echo "$as_me:14209: result: $MANPAGE_SYMLINKS" >&5
14210 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14213 echo "$as_me:14213: checking for manpage tbl" >&5
14214 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14216 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14217 if test "${with_manpage_tbl+set}" = set; then
14218 withval="$with_manpage_tbl"
14219 MANPAGE_TBL=$withval
14224 echo "$as_me:14224: result: $MANPAGE_TBL" >&5
14225 echo "${ECHO_T}$MANPAGE_TBL" >&6
14227 if test "$prefix" = "NONE" ; then
14228 cf_prefix="$ac_default_prefix"
14230 cf_prefix="$prefix"
14233 case "$MANPAGE_FORMAT" in
14248 test ! -d man && mkdir man
14252 case "$MANPAGE_FORMAT" in
14255 cf_compress=compress
14263 cf_edit_man=./edit_man.sh
14264 cf_man_alias=`pwd`/man_alias.sed
14266 cat >$cf_edit_man <<CF_EOF
14268 # this script is generated by the configure-script CF_MAN_PAGES macro.
14270 prefix="$cf_prefix"
14271 datarootdir="$datarootdir"
14274 NCURSES_MAJOR="$NCURSES_MAJOR"
14275 NCURSES_MINOR="$NCURSES_MINOR"
14276 NCURSES_PATCH="$NCURSES_PATCH"
14278 NCURSES_OSPEED="$NCURSES_OSPEED"
14279 TERMINFO="$TERMINFO"
14282 INSTALL_DATA="$INSTALL_DATA"
14284 transform="$program_transform_name"
14286 TMP=\${TMPDIR:=/tmp}/man\$\$
14287 trap "rm -f \$TMP" 0 1 2 3 15
14299 top_srcdir=\$srcdir/..
14302 if test "\$form" = normal ; then
14303 if test "$cf_format" = yes ; then
14304 if test "$cf_inboth" = no ; then
14305 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14309 cf_subdir=\$mandir/man
14310 cf_tables=$MANPAGE_TBL
14312 cf_subdir=\$mandir/cat
14316 # process the list of source-files
14321 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14322 if test \$verb = installing ; then
14323 if test ! -d \$cf_subdir\${section} ; then
14324 mkdir -p \$cf_subdir\$section
14328 # replace variables in man page
14329 if test ! -f $cf_man_alias ; then
14330 cat >>$cf_man_alias <<-CF_EOF2
14331 s,@DATADIR@,\$datadir,g
14332 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14333 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14334 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14335 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14336 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14337 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14340 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14342 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14343 cf_name=`echo $cf_name|sed "$program_transform_name"`
14344 cat >>$cf_edit_man <<-CF_EOF
14345 s,@$cf_NAME@,$cf_name,g
14349 cat >>$cf_edit_man <<CF_EOF
14351 echo "...made $cf_man_alias"
14355 cf_source=\`basename \$i\`
14356 inalias=\$cf_source
14357 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
14358 if test ! -f \$inalias ; then
14359 echo .. skipped \$cf_source
14364 if test "$MANPAGE_ALIASES" != no ; then
14365 cat >>$cf_edit_man <<CF_EOF
14367 test $with_curses_h = yes && nCurses=ncurses.3x
14368 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
14372 if test "$MANPAGE_RENAMES" = no ; then
14373 cat >>$cf_edit_man <<CF_EOF
14374 # perform program transformations for section 1 man pages
14375 if test \$section = 1 ; then
14376 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14378 cf_target=\$cf_subdir\${section}/\$cf_source
14382 cat >>$cf_edit_man <<CF_EOF
14383 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14384 if test -z "\$cf_target" ; then
14385 echo '? missing rename for '\$cf_source
14386 cf_target="\$cf_source"
14388 cf_target="\$cf_subdir\${section}/\${cf_target}"
14393 cat >>$cf_edit_man <<CF_EOF
14394 sed -f $cf_man_alias \\
14397 if test -f $MANPAGE_RENAMES ; then
14398 cat >>$cf_edit_man <<CF_EOF
14399 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
14402 cat >>$cf_edit_man <<CF_EOF
14407 cat >>$cf_edit_man <<CF_EOF
14408 if test \$cf_tables = yes ; then
14409 tbl \$TMP >\$TMP.out
14414 if test $with_overwrite != yes ; then
14415 cat >>$cf_edit_man <<CF_EOF
14416 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14421 if test $with_curses_h != yes ; then
14422 cat >>$cf_edit_man <<CF_EOF
14423 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14428 cat >>$cf_edit_man <<CF_EOF
14429 if test \$form = format ; then
14430 nroff -man \$TMP >\$TMP.out
14435 if test -n "$cf_compress" ; then
14436 cat >>$cf_edit_man <<CF_EOF
14437 if test \$verb = installing ; then
14438 if ( $cf_compress -f \$TMP )
14440 mv \$TMP.$cf_so_strip \$TMP
14443 cf_target="\$cf_target.$cf_so_strip"
14447 case "$MANPAGE_FORMAT" in
14449 cat >>$cf_edit_man <<CF_EOF
14450 if test \$form = format ; then
14451 # BSDI installs only .0 suffixes in the cat directories
14452 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
14458 cat >>$cf_edit_man <<CF_EOF
14459 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
14460 if test \$verb = installing ; then
14461 echo \$verb \$cf_target
14462 \$INSTALL_DATA \$TMP \$cf_target
14463 test -d \$cf_subdir\${section} &&
14464 test -n "\$aliases" && (
14465 cd \$cf_subdir\${section} && (
14466 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
14467 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
14468 cf_target=\`basename \$cf_target\`
14469 for cf_alias in \$aliases
14471 if test \$section = 1 ; then
14472 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14475 if test "$MANPAGE_SYMLINKS" = yes ; then
14476 if test -f \$cf_alias\${suffix} ; then
14477 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
14482 echo .. \$verb alias \$cf_alias\${suffix}
14486 cat >>$cf_edit_man <<CF_EOF
14487 $LN_S \$cf_target \$cf_alias\${suffix}
14491 cat >>$cf_edit_man <<CF_EOF
14492 rm -f \$cf_alias\${suffix}
14493 $LN_S \$cf_target \$cf_alias\${suffix}
14497 cat >>$cf_edit_man <<CF_EOF
14498 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14499 echo ".so \$cf_source" >\$TMP
14501 if test -n "$cf_compress" ; then
14502 cat >>$cf_edit_man <<CF_EOF
14503 if test -n "$cf_so_strip" ; then
14504 $cf_compress -f \$TMP
14505 mv \$TMP.$cf_so_strip \$TMP
14509 cat >>$cf_edit_man <<CF_EOF
14510 echo .. \$verb alias \$cf_alias\${suffix}
14511 rm -f \$cf_alias\${suffix}
14512 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
14517 elif test \$verb = removing ; then
14518 test -f \$cf_target && (
14519 echo \$verb \$cf_target
14522 test -d \$cf_subdir\${section} &&
14523 test -n "\$aliases" && (
14524 cd \$cf_subdir\${section} && (
14525 for cf_alias in \$aliases
14527 if test \$section = 1 ; then
14528 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14531 echo .. \$verb alias \$cf_alias\${suffix}
14532 rm -f \$cf_alias\${suffix}
14544 if test $cf_inboth = yes ; then
14545 if test \$form != format ; then
14546 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14552 chmod 755 $cf_edit_man
14554 ###############################################################################
14556 ### Note that some functions (such as const) are normally disabled anyway.
14557 echo "$as_me:14557: checking if you want to build with function extensions" >&5
14558 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14560 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14561 if test "${enable_ext_funcs+set}" = set; then
14562 enableval="$enable_ext_funcs"
14563 with_ext_funcs=$enableval
14567 echo "$as_me:14567: result: $with_ext_funcs" >&5
14568 echo "${ECHO_T}$with_ext_funcs" >&6
14569 if test "x$with_ext_funcs" = xyes ; then
14570 NCURSES_EXT_FUNCS=1
14572 cat >>confdefs.h <<\EOF
14573 #define NCURSES_EXT_FUNCS 1
14576 cat >>confdefs.h <<\EOF
14577 #define HAVE_ASSUME_DEFAULT_COLORS 1
14580 cat >>confdefs.h <<\EOF
14581 #define HAVE_CURSES_VERSION 1
14584 cat >>confdefs.h <<\EOF
14585 #define HAVE_HAS_KEY 1
14588 cat >>confdefs.h <<\EOF
14589 #define HAVE_RESIZETERM 1
14592 cat >>confdefs.h <<\EOF
14593 #define HAVE_RESIZE_TERM 1
14596 cat >>confdefs.h <<\EOF
14597 #define HAVE_TERM_ENTRY_H 1
14600 cat >>confdefs.h <<\EOF
14601 #define HAVE_USE_DEFAULT_COLORS 1
14604 cat >>confdefs.h <<\EOF
14605 #define HAVE_USE_EXTENDED_NAMES 1
14608 cat >>confdefs.h <<\EOF
14609 #define HAVE_USE_SCREEN 1
14612 cat >>confdefs.h <<\EOF
14613 #define HAVE_USE_WINDOW 1
14616 cat >>confdefs.h <<\EOF
14617 #define HAVE_WRESIZE 1
14620 GENERATED_EXT_FUNCS=generated
14621 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14623 NCURSES_EXT_FUNCS=0
14624 GENERATED_EXT_FUNCS=
14627 echo "$as_me:14627: checking if you want to build with SCREEN extensions" >&5
14628 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14630 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14631 if test "${enable_sp_funcs+set}" = set; then
14632 enableval="$enable_sp_funcs"
14633 with_sp_funcs=$enableval
14635 with_sp_funcs=$cf_dft_ext_spfuncs
14637 echo "$as_me:14637: result: $with_sp_funcs" >&5
14638 echo "${ECHO_T}$with_sp_funcs" >&6
14639 if test "x$with_sp_funcs" = xyes ; then
14642 cat >>confdefs.h <<\EOF
14643 #define NCURSES_SP_FUNCS 1
14646 cat >>confdefs.h <<\EOF
14647 #define HAVE_TPUTS_SP 1
14650 GENERATED_SP_FUNCS=generated
14653 GENERATED_SP_FUNCS=
14656 echo "$as_me:14656: checking if you want to build with terminal-driver" >&5
14657 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14659 # Check whether --enable-term-driver or --disable-term-driver was given.
14660 if test "${enable_term_driver+set}" = set; then
14661 enableval="$enable_term_driver"
14662 with_term_driver=$enableval
14664 with_term_driver=no
14666 echo "$as_me:14666: result: $with_term_driver" >&5
14667 echo "${ECHO_T}$with_term_driver" >&6
14668 if test "x$with_term_driver" = xyes ; then
14670 cat >>confdefs.h <<\EOF
14671 #define USE_TERM_DRIVER 1
14674 if test "x$with_termlib" != xno ; then
14675 { { echo "$as_me:14675: error: The term-driver option conflicts with the termlib option" >&5
14676 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14677 { (exit 1); exit 1; }; }
14679 if test "x$with_sp_funcs" != xyes ; then
14680 { { echo "$as_me:14680: error: The term-driver option relies upon sp-funcs" >&5
14681 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14682 { (exit 1); exit 1; }; }
14686 ### use option --enable-const to turn on use of const beyond that in XSI.
14687 echo "$as_me:14687: checking for extended use of const keyword" >&5
14688 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14690 # Check whether --enable-const or --disable-const was given.
14691 if test "${enable_const+set}" = set; then
14692 enableval="$enable_const"
14693 with_ext_const=$enableval
14695 with_ext_const=$cf_dft_ext_const
14697 echo "$as_me:14697: result: $with_ext_const" >&5
14698 echo "${ECHO_T}$with_ext_const" >&6
14699 NCURSES_CONST='/*nothing*/'
14700 if test "x$with_ext_const" = xyes ; then
14701 NCURSES_CONST=const
14704 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14705 echo "$as_me:14705: checking if you want to use extended colors" >&5
14706 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14708 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14709 if test "${enable_ext_colors+set}" = set; then
14710 enableval="$enable_ext_colors"
14711 with_ext_colors=$enableval
14713 with_ext_colors=$cf_dft_ext_colors
14715 echo "$as_me:14715: result: $with_ext_colors" >&5
14716 echo "${ECHO_T}$with_ext_colors" >&6
14717 NCURSES_EXT_COLORS=0
14718 if test "x$with_ext_colors" = xyes ; then
14719 if test "x$with_widec" != xyes ; then
14720 { echo "$as_me:14720: WARNING: This option applies only to wide-character library" >&5
14721 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14723 # cannot be ABI 5 since it changes sizeof(cchar_t)
14725 if test "${with_abi_version+set}" != set; then
14726 case $cf_cv_rel_version in
14728 cf_cv_rel_version=6.0
14729 cf_cv_abi_version=6
14730 { echo "$as_me:14730: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14731 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14736 NCURSES_EXT_COLORS=1
14738 cat >>confdefs.h <<\EOF
14739 #define NCURSES_EXT_COLORS 1
14742 cat >>confdefs.h <<\EOF
14743 #define HAVE_ALLOC_PAIR 1
14746 cat >>confdefs.h <<\EOF
14747 #define HAVE_INIT_EXTENDED_COLOR 1
14750 cat >>confdefs.h <<\EOF
14751 #define HAVE_RESET_COLOR_PAIRS 1
14757 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14758 echo "$as_me:14758: checking if you want to use extended mouse encoding" >&5
14759 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14761 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14762 if test "${enable_ext_mouse+set}" = set; then
14763 enableval="$enable_ext_mouse"
14764 with_ext_mouse=$enableval
14766 with_ext_mouse=$cf_dft_ext_mouse
14768 echo "$as_me:14768: result: $with_ext_mouse" >&5
14769 echo "${ECHO_T}$with_ext_mouse" >&6
14770 NCURSES_MOUSE_VERSION=1
14771 if test "x$with_ext_mouse" = xyes ; then
14772 NCURSES_MOUSE_VERSION=2
14774 if test "${with_abi_version+set}" != set; then
14775 case $cf_cv_rel_version in
14777 cf_cv_rel_version=6.0
14778 cf_cv_abi_version=6
14779 { echo "$as_me:14779: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14780 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14787 ### use option --enable-ext-putwin to turn on extended screendumps
14788 echo "$as_me:14788: checking if you want to use extended putwin/screendump" >&5
14789 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14791 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14792 if test "${enable_ext_putwin+set}" = set; then
14793 enableval="$enable_ext_putwin"
14794 with_ext_putwin=$enableval
14796 with_ext_putwin=$cf_dft_ext_putwin
14798 echo "$as_me:14798: result: $with_ext_putwin" >&5
14799 echo "${ECHO_T}$with_ext_putwin" >&6
14800 if test "x$with_ext_putwin" = xyes ; then
14802 cat >>confdefs.h <<\EOF
14803 #define NCURSES_EXT_PUTWIN 1
14808 echo "$as_me:14808: checking if you want \$NCURSES_NO_PADDING code" >&5
14809 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14811 # Check whether --enable-no-padding or --disable-no-padding was given.
14812 if test "${enable_no_padding+set}" = set; then
14813 enableval="$enable_no_padding"
14814 with_no_padding=$enableval
14816 with_no_padding=$with_ext_funcs
14818 echo "$as_me:14818: result: $with_no_padding" >&5
14819 echo "${ECHO_T}$with_no_padding" >&6
14820 test "x$with_no_padding" = xyes &&
14821 cat >>confdefs.h <<\EOF
14822 #define NCURSES_NO_PADDING 1
14825 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14826 echo "$as_me:14826: checking if you want SIGWINCH handler" >&5
14827 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14829 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14830 if test "${enable_sigwinch+set}" = set; then
14831 enableval="$enable_sigwinch"
14832 with_sigwinch=$enableval
14834 with_sigwinch=$with_ext_funcs
14836 echo "$as_me:14836: result: $with_sigwinch" >&5
14837 echo "${ECHO_T}$with_sigwinch" >&6
14838 test "x$with_sigwinch" = xyes &&
14839 cat >>confdefs.h <<\EOF
14840 #define USE_SIGWINCH 1
14843 ### use option --enable-tcap-names to allow user to define new capabilities
14844 echo "$as_me:14844: checking if you want user-definable terminal capabilities like termcap" >&5
14845 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14847 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14848 if test "${enable_tcap_names+set}" = set; then
14849 enableval="$enable_tcap_names"
14850 with_tcap_names=$enableval
14852 with_tcap_names=$with_ext_funcs
14854 echo "$as_me:14854: result: $with_tcap_names" >&5
14855 echo "${ECHO_T}$with_tcap_names" >&6
14857 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14859 ##############################################################################
14861 echo "$as_me:14861: checking if you want to link with the pthread library" >&5
14862 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14864 # Check whether --with-pthread or --without-pthread was given.
14865 if test "${with_pthread+set}" = set; then
14866 withval="$with_pthread"
14867 with_pthread=$withval
14871 echo "$as_me:14871: result: $with_pthread" >&5
14872 echo "${ECHO_T}$with_pthread" >&6
14874 if test "$with_pthread" != no ; then
14875 echo "$as_me:14875: checking for pthread.h" >&5
14876 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14877 if test "${ac_cv_header_pthread_h+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14881 #line 14881 "configure"
14882 #include "confdefs.h"
14883 #include <pthread.h>
14885 if { (eval echo "$as_me:14885: \"$ac_cpp conftest.$ac_ext\"") >&5
14886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14888 egrep -v '^ *\+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 echo "$as_me:14891: \$? = $ac_status" >&5
14892 (exit $ac_status); } >/dev/null; then
14893 if test -s conftest.err; then
14894 ac_cpp_err=$ac_c_preproc_warn_flag
14901 if test -z "$ac_cpp_err"; then
14902 ac_cv_header_pthread_h=yes
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_cv_header_pthread_h=no
14908 rm -f conftest.err conftest.$ac_ext
14910 echo "$as_me:14910: result: $ac_cv_header_pthread_h" >&5
14911 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14912 if test $ac_cv_header_pthread_h = yes; then
14914 cat >>confdefs.h <<\EOF
14915 #define HAVE_PTHREADS_H 1
14918 for cf_lib_pthread in pthread c_r
14920 echo "$as_me:14920: checking if we can link with the $cf_lib_pthread library" >&5
14921 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14922 cf_save_LIBS="$LIBS"
14924 cf_add_libs="$LIBS"
14927 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14928 # filter duplicates
14929 for cf_add_1lib in $cf_add_0lib; do
14930 for cf_add_2lib in $cf_add_libs; do
14931 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14936 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14938 LIBS="$cf_add_libs"
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line 14941 "configure"
14942 #include "confdefs.h"
14944 #include <pthread.h>
14950 int rc = pthread_create(0,0,0,0);
14951 int r2 = pthread_mutexattr_settype(0, 0);
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (eval echo "$as_me:14958: \"$ac_link\"") >&5
14959 (eval $ac_link) 2>&5
14961 echo "$as_me:14961: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:14964: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:14967: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14971 echo "$as_me: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14976 LIBS="$cf_save_LIBS"
14977 echo "$as_me:14977: result: $with_pthread" >&5
14978 echo "${ECHO_T}$with_pthread" >&6
14979 test "$with_pthread" = yes && break
14982 if test "$with_pthread" = yes ; then
14984 cf_add_libs="$LIBS"
14987 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14988 # filter duplicates
14989 for cf_add_1lib in $cf_add_0lib; do
14990 for cf_add_2lib in $cf_add_libs; do
14991 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14996 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14998 LIBS="$cf_add_libs"
15000 cat >>confdefs.h <<\EOF
15001 #define HAVE_LIBPTHREADS 1
15005 { { echo "$as_me:15005: error: Cannot link with pthread library" >&5
15006 echo "$as_me: error: Cannot link with pthread library" >&2;}
15007 { (exit 1); exit 1; }; }
15014 if test "x$with_pthread" != xno; then
15015 echo "$as_me:15015: checking for pthread_kill" >&5
15016 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15017 if test "${ac_cv_func_pthread_kill+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 cat >conftest.$ac_ext <<_ACEOF
15021 #line 15021 "configure"
15022 #include "confdefs.h"
15023 #define pthread_kill autoconf_temporary
15024 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15025 #undef pthread_kill
15031 /* We use char because int might match the return type of a gcc2
15032 builtin and then its argument prototype would still apply. */
15033 char pthread_kill (void);
15039 /* The GNU C library defines stubs for functions which it implements
15040 to always fail with ENOSYS. Some functions are actually named
15041 something starting with __ and the normal name is an alias. */
15042 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15043 #error found stub for pthread_kill
15046 return pthread_kill ();
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (eval echo "$as_me:15052: \"$ac_link\"") >&5
15053 (eval $ac_link) 2>&5
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (eval echo "$as_me:15058: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 echo "$as_me:15061: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_func_pthread_kill=yes
15065 echo "$as_me: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 ac_cv_func_pthread_kill=no
15069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15071 echo "$as_me:15071: result: $ac_cv_func_pthread_kill" >&5
15072 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15073 if test $ac_cv_func_pthread_kill = yes; then
15075 echo "$as_me:15075: checking if you want to allow EINTR in wgetch with pthreads" >&5
15076 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15078 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15079 if test "${enable_pthreads_eintr+set}" = set; then
15080 enableval="$enable_pthreads_eintr"
15081 use_pthreads_eintr=$enableval
15083 use_pthreads_eintr=no
15085 echo "$as_me:15085: result: $use_pthreads_eintr" >&5
15086 echo "${ECHO_T}$use_pthreads_eintr" >&6
15087 if test "x$use_pthreads_eintr" = xyes ; then
15089 cat >>confdefs.h <<\EOF
15090 #define USE_PTHREADS_EINTR 1
15096 echo "$as_me:15096: checking if you want to use weak-symbols for pthreads" >&5
15097 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15099 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15100 if test "${enable_weak_symbols+set}" = set; then
15101 enableval="$enable_weak_symbols"
15102 use_weak_symbols=$enableval
15104 use_weak_symbols=no
15106 echo "$as_me:15106: result: $use_weak_symbols" >&5
15107 echo "${ECHO_T}$use_weak_symbols" >&6
15108 if test "x$use_weak_symbols" = xyes ; then
15110 echo "$as_me:15110: checking if $CC supports weak symbols" >&5
15111 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15112 if test "${cf_cv_weak_symbols+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line 15117 "configure"
15118 #include "confdefs.h"
15125 #if defined(__GNUC__)
15126 # if defined __USE_ISOC99
15127 # define _cat_pragma(exp) _Pragma(#exp)
15128 # define _weak_pragma(exp) _cat_pragma(weak name)
15130 # define _weak_pragma(exp)
15132 # define _declare(name) __extension__ extern __typeof__(name) name
15133 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15136 weak_symbol(fopen);
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:15143: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>&5
15146 echo "$as_me:15146: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:15149: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:15152: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 cf_cv_weak_symbols=yes
15156 echo "$as_me: failed program was:" >&5
15157 cat conftest.$ac_ext >&5
15158 cf_cv_weak_symbols=no
15160 rm -f conftest.$ac_objext conftest.$ac_ext
15163 echo "$as_me:15163: result: $cf_cv_weak_symbols" >&5
15164 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15167 cf_cv_weak_symbols=no
15170 if test "x$cf_cv_weak_symbols" = xyes ; then
15172 cat >>confdefs.h <<\EOF
15173 #define USE_WEAK_SYMBOLS 1
15180 if test "x$with_pthread" = "xyes" ; then
15182 cat >>confdefs.h <<\EOF
15183 #define USE_PTHREADS 1
15186 enable_reentrant=yes
15187 if test "x$cf_cv_weak_symbols" = xyes ; then
15190 cf_add_libs="$PRIVATE_LIBS"
15193 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15194 # filter duplicates
15195 for cf_add_1lib in $cf_add_0lib; do
15196 for cf_add_2lib in $cf_add_libs; do
15197 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15202 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15204 PRIVATE_LIBS="$cf_add_libs"
15209 # Reentrant code has to be opaque; there's little advantage to making ncurses
15210 # opaque outside of that, so there is no --enable-opaque option. We can use
15211 # this option without --with-pthreads, but this will be always set for
15213 echo "$as_me:15213: checking if you want reentrant code" >&5
15214 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15216 # Check whether --enable-reentrant or --disable-reentrant was given.
15217 if test "${enable_reentrant+set}" = set; then
15218 enableval="$enable_reentrant"
15219 with_reentrant=$enableval
15223 echo "$as_me:15223: result: $with_reentrant" >&5
15224 echo "${ECHO_T}$with_reentrant" >&6
15225 if test "x$with_reentrant" = xyes ; then
15226 cf_cv_enable_reentrant=1
15227 cf_cv_enable_opaque="NCURSES_INTERNALS"
15229 if test "x$cf_cv_weak_symbols" = xyes ; then
15231 # remove pthread library from $LIBS
15232 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15234 cf_add_libs="$TEST_LIBS"
15237 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15238 # filter duplicates
15239 for cf_add_1lib in $cf_add_0lib; do
15240 for cf_add_2lib in $cf_add_libs; do
15241 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15246 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15248 TEST_LIBS="$cf_add_libs"
15250 cf_add_libs="$TEST_LIBS2"
15253 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15254 # filter duplicates
15255 for cf_add_1lib in $cf_add_0lib; do
15256 for cf_add_2lib in $cf_add_libs; do
15257 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15262 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15264 TEST_LIBS2="$cf_add_libs"
15266 cf_add_libs="$PRIVATE_LIBS"
15269 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15270 # filter duplicates
15271 for cf_add_1lib in $cf_add_0lib; do
15272 for cf_add_2lib in $cf_add_libs; do
15273 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15278 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15280 PRIVATE_LIBS="$cf_add_libs"
15283 # when not using weak symbols but with_reentrant,
15284 # add 't' to the library suffix on all platforms
15285 # except cygwin, where we only do that if ALSO
15286 # compiling with full thread support.
15288 (*cygwin* | *msys*)
15289 if test "$with_pthread" = "yes" ; then
15290 if test "x$disable_lib_suffixes" = "xno" ; then
15291 LIB_SUFFIX="t${LIB_SUFFIX}"
15295 if test "x$disable_lib_suffixes" = "xno" ; then
15296 LIB_SUFFIX="t${LIB_SUFFIX}"
15302 cat >>confdefs.h <<\EOF
15303 #define USE_REENTRANT 1
15306 if test "${with_abi_version+set}" != set; then
15307 case $cf_cv_rel_version in
15309 cf_cv_rel_version=6.0
15310 cf_cv_abi_version=6
15311 { echo "$as_me:15311: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15312 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15318 cf_cv_enable_reentrant=0
15319 cf_cv_enable_opaque="NCURSES_OPAQUE"
15320 NCURSES_SIZE_T=short
15323 echo "$as_me:15323: checking if you want opaque curses-library structures" >&5
15324 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15326 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15327 if test "${enable_opaque_curses+set}" = set; then
15328 enableval="$enable_opaque_curses"
15329 test "$enableval" != yes && enableval=no
15330 if test "$enableval" != "no" ; then
15331 enable_opaque_curses=yes
15334 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15335 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15341 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15342 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15345 echo "$as_me:15345: result: $enable_opaque_curses" >&5
15346 echo "${ECHO_T}$enable_opaque_curses" >&6
15348 test "$cf_cv_enable_reentrant" = 1 && \
15349 test "$enable_opaque_curses" = no && \
15350 { { echo "$as_me:15350: error: reentrant configuration requires opaque library" >&5
15351 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15352 { (exit 1); exit 1; }; }
15354 echo "$as_me:15354: checking if you want opaque form-library structures" >&5
15355 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15357 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15358 if test "${enable_opaque_form+set}" = set; then
15359 enableval="$enable_opaque_form"
15360 enable_opaque_form=yes
15362 enable_opaque_form=no
15364 echo "$as_me:15364: result: $enable_opaque_form" >&5
15365 echo "${ECHO_T}$enable_opaque_form" >&6
15367 echo "$as_me:15367: checking if you want opaque menu-library structures" >&5
15368 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15370 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15371 if test "${enable_opaque_menu+set}" = set; then
15372 enableval="$enable_opaque_menu"
15373 enable_opaque_menu=yes
15375 enable_opaque_menu=no
15377 echo "$as_me:15377: result: $enable_opaque_menu" >&5
15378 echo "${ECHO_T}$enable_opaque_menu" >&6
15380 echo "$as_me:15380: checking if you want opaque panel-library structures" >&5
15381 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15383 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15384 if test "${enable_opaque_panel+set}" = set; then
15385 enableval="$enable_opaque_panel"
15386 enable_opaque_panel=yes
15388 enable_opaque_panel=no
15390 echo "$as_me:15390: result: $enable_opaque_panel" >&5
15391 echo "${ECHO_T}$enable_opaque_panel" >&6
15393 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15394 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15395 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15396 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15398 ### Allow using a different wrap-prefix
15399 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15400 echo "$as_me:15400: checking for prefix used to wrap public variables" >&5
15401 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15403 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15404 if test "${with_wrap_prefix+set}" = set; then
15405 withval="$with_wrap_prefix"
15406 NCURSES_WRAP_PREFIX=$withval
15408 NCURSES_WRAP_PREFIX=_nc_
15410 echo "$as_me:15410: result: $NCURSES_WRAP_PREFIX" >&5
15411 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15413 NCURSES_WRAP_PREFIX=_nc_
15416 cat >>confdefs.h <<EOF
15417 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15420 ###############################################################################
15421 # These options are relatively safe to experiment with.
15423 echo "$as_me:15423: checking if you want all development code" >&5
15424 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15426 # Check whether --with-develop or --without-develop was given.
15427 if test "${with_develop+set}" = set; then
15428 withval="$with_develop"
15429 with_develop=$withval
15433 echo "$as_me:15433: result: $with_develop" >&5
15434 echo "${ECHO_T}$with_develop" >&6
15436 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15437 echo "$as_me:15437: checking if you want hard-tabs code" >&5
15438 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15440 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15441 if test "${enable_hard_tabs+set}" = set; then
15442 enableval="$enable_hard_tabs"
15445 enable_hard_tabs=$with_develop
15447 echo "$as_me:15447: result: $enable_hard_tabs" >&5
15448 echo "${ECHO_T}$enable_hard_tabs" >&6
15449 test "x$enable_hard_tabs" = xyes &&
15450 cat >>confdefs.h <<\EOF
15451 #define USE_HARD_TABS 1
15454 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15455 echo "$as_me:15455: checking if you want limited support for xmc" >&5
15456 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15458 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15459 if test "${enable_xmc_glitch+set}" = set; then
15460 enableval="$enable_xmc_glitch"
15463 enable_xmc_glitch=$with_develop
15465 echo "$as_me:15465: result: $enable_xmc_glitch" >&5
15466 echo "${ECHO_T}$enable_xmc_glitch" >&6
15467 test "x$enable_xmc_glitch" = xyes &&
15468 cat >>confdefs.h <<\EOF
15469 #define USE_XMC_SUPPORT 1
15472 ###############################################################################
15473 # These are just experimental, probably should not be in a package:
15475 echo "$as_me:15475: checking if you do not want to assume colors are white-on-black" >&5
15476 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15478 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15479 if test "${enable_assumed_color+set}" = set; then
15480 enableval="$enable_assumed_color"
15481 with_assumed_color=$enableval
15483 with_assumed_color=yes
15485 echo "$as_me:15485: result: $with_assumed_color" >&5
15486 echo "${ECHO_T}$with_assumed_color" >&6
15487 test "x$with_assumed_color" = xyes &&
15488 cat >>confdefs.h <<\EOF
15489 #define USE_ASSUMED_COLOR 1
15492 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15493 echo "$as_me:15493: checking if you want hashmap scrolling-optimization code" >&5
15494 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15496 # Check whether --enable-hashmap or --disable-hashmap was given.
15497 if test "${enable_hashmap+set}" = set; then
15498 enableval="$enable_hashmap"
15499 with_hashmap=$enableval
15503 echo "$as_me:15503: result: $with_hashmap" >&5
15504 echo "${ECHO_T}$with_hashmap" >&6
15505 test "x$with_hashmap" = xyes &&
15506 cat >>confdefs.h <<\EOF
15507 #define USE_HASHMAP 1
15510 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15511 echo "$as_me:15511: checking if you want colorfgbg code" >&5
15512 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15514 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15515 if test "${enable_colorfgbg+set}" = set; then
15516 enableval="$enable_colorfgbg"
15517 with_colorfgbg=$enableval
15521 echo "$as_me:15521: result: $with_colorfgbg" >&5
15522 echo "${ECHO_T}$with_colorfgbg" >&6
15523 test "x$with_colorfgbg" = xyes &&
15524 cat >>confdefs.h <<\EOF
15525 #define USE_COLORFGBG 1
15528 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15529 echo "$as_me:15529: checking if you want to use gcc -fvisibility option" >&5
15530 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15532 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15533 if test "${enable_fvisibility+set}" = set; then
15534 enableval="$enable_fvisibility"
15535 cf_with_fvisibility=$enableval
15537 cf_with_fvisibility=no
15539 echo "$as_me:15539: result: $cf_with_fvisibility" >&5
15540 echo "${ECHO_T}$cf_with_fvisibility" >&6
15543 NCURSES_CXX_IMPEXP=
15544 if test "x$cf_with_fvisibility" = xyes; then
15546 echo "$as_me:15546: checking if $CC -fvisibility=hidden option works" >&5
15547 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15548 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cf_save_cflags="$CFLAGS"
15553 CFLAGS="$CFLAGS -fvisibility=hidden"
15554 cat >conftest.$ac_ext <<_ACEOF
15555 #line 15555 "configure"
15556 #include "confdefs.h"
15558 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15564 if (somefunc()) return 1;
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (eval echo "$as_me:15571: \"$ac_link\"") >&5
15572 (eval $ac_link) 2>&5
15574 echo "$as_me:15574: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:15577: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:15580: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 cf_cv_fvisibility_hidden=yes
15584 echo "$as_me: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 cf_cv_fvisibility_hidden=no
15588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15589 CFLAGS=$cf_save_cflags
15592 echo "$as_me:15592: result: $cf_cv_fvisibility_hidden" >&5
15593 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
15595 if test "x$cf_cv_fvisibility_hidden" = xyes
15601 cf_new_extra_cppflags=
15603 for cf_add_cflags in -fvisibility=hidden
15605 case $cf_fix_cppflags in
15607 case $cf_add_cflags in
15608 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15609 case $cf_add_cflags in
15611 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15613 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15614 && test -z "${cf_tst_cflags}" \
15615 && cf_fix_cppflags=yes
15617 if test $cf_fix_cppflags = yes ; then
15619 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15620 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15623 elif test "${cf_tst_cflags}" = "\"'" ; then
15625 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15626 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15632 case "$CPPFLAGS" in
15636 case $cf_add_cflags in
15638 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15640 CPPFLAGS=`echo "$CPPFLAGS" | \
15641 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15642 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15647 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15648 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15655 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15656 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15663 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15664 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15666 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15668 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15669 && test -z "${cf_tst_cflags}" \
15670 && cf_fix_cppflags=no
15675 if test -n "$cf_new_cflags" ; then
15677 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15678 CFLAGS="${CFLAGS}$cf_new_cflags"
15682 if test -n "$cf_new_cppflags" ; then
15684 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15685 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15689 if test -n "$cf_new_extra_cppflags" ; then
15691 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15692 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15696 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
15701 ac_cpp='$CXXCPP $CPPFLAGS'
15702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15705 ac_main_return=return
15707 echo "$as_me:15707: checking if $CXX -fvisibility=hidden option works" >&5
15708 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
15709 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 cf_save_cflags="$CXXFLAGS"
15714 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15715 cat >conftest.$ac_ext <<_ACEOF
15716 #line 15716 "configure"
15717 #include "confdefs.h"
15719 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15725 if (somefunc()) return 1;
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:15732: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15735 echo "$as_me:15735: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:15738: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:15741: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 cf_cv_fvisibility_hidden2=yes
15745 echo "$as_me: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15747 cf_cv_fvisibility_hidden2=no
15749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15750 CXXFLAGS=$cf_save_cflags
15753 echo "$as_me:15753: result: $cf_cv_fvisibility_hidden2" >&5
15754 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
15756 if test "x$cf_cv_fvisibility_hidden2" = xyes
15759 cf_save_CXXFLAGS="$CFLAGS"
15765 cf_new_extra_cppflags=
15767 for cf_add_cflags in -fvisibility=hidden
15769 case $cf_fix_cppflags in
15771 case $cf_add_cflags in
15772 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15773 case $cf_add_cflags in
15775 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15777 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15778 && test -z "${cf_tst_cflags}" \
15779 && cf_fix_cppflags=yes
15781 if test $cf_fix_cppflags = yes ; then
15783 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15784 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15787 elif test "${cf_tst_cflags}" = "\"'" ; then
15789 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15790 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15796 case "$CPPFLAGS" in
15800 case $cf_add_cflags in
15802 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15804 CPPFLAGS=`echo "$CPPFLAGS" | \
15805 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15806 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15811 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15812 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15819 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15820 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15827 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15828 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15830 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15832 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15833 && test -z "${cf_tst_cflags}" \
15834 && cf_fix_cppflags=no
15839 if test -n "$cf_new_cflags" ; then
15841 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15842 CFLAGS="${CFLAGS}$cf_new_cflags"
15846 if test -n "$cf_new_cppflags" ; then
15848 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15849 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15853 if test -n "$cf_new_extra_cppflags" ; then
15855 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15856 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15861 CFLAGS="$cf_save_CXXFLAGS"
15863 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
15866 ac_cpp='$CPP $CPPFLAGS'
15867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870 ac_main_return=return
15875 ### use option --enable-interop to turn on use of bindings used for interop
15876 echo "$as_me:15876: checking if you want interop bindings" >&5
15877 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
15879 # Check whether --enable-interop or --disable-interop was given.
15880 if test "${enable_interop+set}" = set; then
15881 enableval="$enable_interop"
15882 with_exp_interop=$enableval
15884 with_exp_interop=$cf_dft_interop
15886 echo "$as_me:15886: result: $with_exp_interop" >&5
15887 echo "${ECHO_T}$with_exp_interop" >&6
15889 NCURSES_INTEROP_FUNCS=0
15890 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
15892 echo "$as_me:15892: checking if you want experimental safe-sprintf code" >&5
15893 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
15895 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
15896 if test "${enable_safe_sprintf+set}" = set; then
15897 enableval="$enable_safe_sprintf"
15898 with_safe_sprintf=$enableval
15900 with_safe_sprintf=no
15902 echo "$as_me:15902: result: $with_safe_sprintf" >&5
15903 echo "${ECHO_T}$with_safe_sprintf" >&6
15905 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
15906 # when hashmap is used scroll hints are useless
15907 if test "$with_hashmap" = no ; then
15908 echo "$as_me:15908: checking if you want to experiment without scrolling-hints code" >&5
15909 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
15911 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
15912 if test "${enable_scroll_hints+set}" = set; then
15913 enableval="$enable_scroll_hints"
15914 with_scroll_hints=$enableval
15916 with_scroll_hints=yes
15918 echo "$as_me:15918: result: $with_scroll_hints" >&5
15919 echo "${ECHO_T}$with_scroll_hints" >&6
15920 test "x$with_scroll_hints" = xyes &&
15921 cat >>confdefs.h <<\EOF
15922 #define USE_SCROLL_HINTS 1
15927 echo "$as_me:15927: checking if you want wgetch-events code" >&5
15928 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
15930 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
15931 if test "${enable_wgetch_events+set}" = set; then
15932 enableval="$enable_wgetch_events"
15933 with_wgetch_events=$enableval
15935 with_wgetch_events=no
15937 echo "$as_me:15937: result: $with_wgetch_events" >&5
15938 echo "${ECHO_T}$with_wgetch_events" >&6
15939 test "x$with_wgetch_events" = xyes &&
15940 cat >>confdefs.h <<\EOF
15941 #define NCURSES_WGETCH_EVENTS 1
15944 ###############################################################################
15946 ### use option --disable-echo to suppress full display compiling commands
15948 echo "$as_me:15948: checking if you want to see long compiling messages" >&5
15949 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
15951 # Check whether --enable-echo or --disable-echo was given.
15952 if test "${enable_echo+set}" = set; then
15953 enableval="$enable_echo"
15954 test "$enableval" != no && enableval=yes
15955 if test "$enableval" != "yes" ; then
15958 ECHO_LD='@echo linking $@;'
15959 RULE_CC='@echo compiling $<'
15960 SHOW_CC='@echo compiling $@'
15982 echo "$as_me:15982: result: $enableval" >&5
15983 echo "${ECHO_T}$enableval" >&6
15985 if test "x$enable_echo" = xyes; then
15988 ECHO_LINK='@ echo linking $@ ... ;'
15989 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
15990 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
15993 # --disable-stripping is used for debugging
15995 echo "$as_me:15995: checking if you want to install stripped executables" >&5
15996 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
15998 # Check whether --enable-stripping or --disable-stripping was given.
15999 if test "${enable_stripping+set}" = set; then
16000 enableval="$enable_stripping"
16001 test "$enableval" != no && enableval=yes
16002 if test "$enableval" != "yes" ; then
16012 echo "$as_me:16012: result: $with_stripping" >&5
16013 echo "${ECHO_T}$with_stripping" >&6
16015 if test "$with_stripping" = yes
16022 : ${INSTALL:=install}
16023 echo "$as_me:16023: checking if install accepts -p option" >&5
16024 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16025 if test "${cf_cv_install_p+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16035 if test -f conftest.out/conftest.in
16037 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16038 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16039 if test -s conftest.err
16043 cf_cv_install_p=yes
16054 echo "$as_me:16054: result: $cf_cv_install_p" >&5
16055 echo "${ECHO_T}$cf_cv_install_p" >&6
16057 echo "$as_me:16057: checking if install needs to be told about ownership" >&5
16058 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16059 case `$ac_config_guess` in
16068 echo "$as_me:16068: result: $with_install_o" >&5
16069 echo "${ECHO_T}$with_install_o" >&6
16070 if test "x$with_install_o" = xyes
16072 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'`
16077 # If we're avoiding relinking of shared libraries during install, that is to
16078 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16079 # the install program has "-p" (for preserving timestamps).
16080 cf_cv_do_reranlib=yes
16081 if test "x$cf_cv_install_p" = xyes
16083 if test "x$cf_cv_do_relink" != xyes
16085 cf_cv_do_reranlib=no
16087 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16091 ### use option --enable-warnings to turn on all gcc warnings
16092 echo "$as_me:16092: checking if you want to see compiler warnings" >&5
16093 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
16095 # Check whether --enable-warnings or --disable-warnings was given.
16096 if test "${enable_warnings+set}" = set; then
16097 enableval="$enable_warnings"
16098 with_warnings=$enableval
16100 echo "$as_me:16100: result: $with_warnings" >&5
16101 echo "${ECHO_T}$with_warnings" >&6
16103 if test "x$with_warnings" = "xyes"; then
16105 ADAFLAGS="$ADAFLAGS -gnatg"
16107 if test "x$have_x" = xyes; then
16109 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16110 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16111 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16112 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16113 for cf_X_CFLAGS in $X_CFLAGS
16115 case "x$cf_X_CFLAGS" in
16117 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16120 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16125 cat >conftest.$ac_ext <<_ACEOF
16126 #line 16126 "configure"
16127 #include "confdefs.h"
16129 #include <stdlib.h>
16130 #include <X11/Intrinsic.h>
16135 String foo = malloc(1); (void)foo
16140 rm -f conftest.$ac_objext
16141 if { (eval echo "$as_me:16141: \"$ac_compile\"") >&5
16142 (eval $ac_compile) 2>&5
16144 echo "$as_me:16144: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -s conftest.$ac_objext'
16147 { (eval echo "$as_me:16147: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:16150: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16153 echo "$as_me:16153: checking for X11/Xt const-feature" >&5
16154 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16155 if test "${cf_cv_const_x_string+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 cat >conftest.$ac_ext <<_ACEOF
16160 #line 16160 "configure"
16161 #include "confdefs.h"
16163 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16164 #undef XTSTRINGDEFINES /* X11R5 and later */
16165 #include <stdlib.h>
16166 #include <X11/Intrinsic.h>
16171 String foo = malloc(1); *foo = 0
16176 rm -f conftest.$ac_objext
16177 if { (eval echo "$as_me:16177: \"$ac_compile\"") >&5
16178 (eval $ac_compile) 2>&5
16180 echo "$as_me:16180: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -s conftest.$ac_objext'
16183 { (eval echo "$as_me:16183: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16186 echo "$as_me:16186: \$? = $ac_status" >&5
16187 (exit $ac_status); }; }; then
16189 cf_cv_const_x_string=no
16192 echo "$as_me: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16195 cf_cv_const_x_string=yes
16198 rm -f conftest.$ac_objext conftest.$ac_ext
16201 echo "$as_me:16201: result: $cf_cv_const_x_string" >&5
16202 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16204 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16205 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16206 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16208 case $cf_cv_const_x_string in
16211 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16212 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16217 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16218 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16224 echo "$as_me: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16227 rm -f conftest.$ac_objext conftest.$ac_ext
16229 cat > conftest.$ac_ext <<EOF
16230 #line 16230 "${as_me:-configure}"
16231 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16233 if test "$INTEL_COMPILER" = yes
16235 # The "-wdXXX" options suppress warnings:
16236 # remark #1419: external declaration in primary source file
16237 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16238 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16239 # remark #193: zero used for undefined preprocessing identifier
16240 # remark #593: variable "curs_sb_left_arrow" was set but never used
16241 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16242 # remark #869: parameter "tw" was never referenced
16243 # remark #981: operands are evaluated in unspecified order
16244 # warning #279: controlling expression is constant
16246 { echo "$as_me:16246: checking for $CC warning options..." >&5
16247 echo "$as_me: checking for $CC warning options..." >&6;}
16248 cf_save_CFLAGS="$CFLAGS"
16249 EXTRA_CFLAGS="-Wall"
16261 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16262 if { (eval echo "$as_me:16262: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>&5
16265 echo "$as_me:16265: \$? = $ac_status" >&5
16266 (exit $ac_status); }; then
16267 test -n "$verbose" && echo "$as_me:16267: result: ... -$cf_opt" >&5
16268 echo "${ECHO_T}... -$cf_opt" >&6
16269 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16272 CFLAGS="$cf_save_CFLAGS"
16273 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16275 { echo "$as_me:16275: checking for $CC warning options..." >&5
16276 echo "$as_me: checking for $CC warning options..." >&6;}
16277 cf_save_CFLAGS="$CFLAGS"
16280 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16281 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16282 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16283 for cf_opt in W Wall \
16284 Wbad-function-cast \
16287 Wdeclaration-after-statement \
16290 Wmissing-declarations \
16291 Wmissing-prototypes \
16295 Wstrict-prototypes \
16296 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16298 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16299 if { (eval echo "$as_me:16299: \"$ac_compile\"") >&5
16300 (eval $ac_compile) 2>&5
16302 echo "$as_me:16302: \$? = $ac_status" >&5
16303 (exit $ac_status); }; then
16304 test -n "$verbose" && echo "$as_me:16304: result: ... -$cf_opt" >&5
16305 echo "${ECHO_T}... -$cf_opt" >&6
16308 case $GCC_VERSION in
16310 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16312 echo "${as_me:-configure}:16312: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16318 case $GCC_VERSION in
16320 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16322 echo "${as_me:-configure}:16322: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16328 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16331 CFLAGS="$cf_save_CFLAGS"
16335 if test "x$cf_with_cxx" = xyes ; then
16339 if test "$GCC" = yes ; then
16342 echo "$as_me:16342: checking if this is really Intel C++ compiler" >&5
16343 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
16344 cf_save_CFLAGS="$CXXFLAGS"
16345 CXXFLAGS="$CXXFLAGS -no-gcc"
16346 cat >conftest.$ac_ext <<_ACEOF
16347 #line 16347 "configure"
16348 #include "confdefs.h"
16354 #ifdef __INTEL_COMPILER
16363 rm -f conftest.$ac_objext
16364 if { (eval echo "$as_me:16364: \"$ac_compile\"") >&5
16365 (eval $ac_compile) 2>&5
16367 echo "$as_me:16367: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -s conftest.$ac_objext'
16370 { (eval echo "$as_me:16370: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:16373: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 INTEL_CPLUSPLUS=yes
16376 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16379 echo "$as_me: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
16382 rm -f conftest.$ac_objext conftest.$ac_ext
16383 CXXFLAGS="$cf_save_CFLAGS"
16384 echo "$as_me:16384: result: $INTEL_CPLUSPLUS" >&5
16385 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
16392 if test "$GCC" = yes ; then
16393 echo "$as_me:16393: checking if this is really Clang C++ compiler" >&5
16394 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
16395 cf_save_CFLAGS="$CXXFLAGS"
16396 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
16397 cat >conftest.$ac_ext <<_ACEOF
16398 #line 16398 "configure"
16399 #include "confdefs.h"
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:16415: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>&5
16418 echo "$as_me:16418: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -s conftest.$ac_objext'
16421 { (eval echo "$as_me:16421: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16424 echo "$as_me:16424: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 CLANG_CPLUSPLUS=yes
16427 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16430 echo "$as_me: failed program was:" >&5
16431 cat conftest.$ac_ext >&5
16433 rm -f conftest.$ac_objext conftest.$ac_ext
16434 CXXFLAGS="$cf_save_CFLAGS"
16435 echo "$as_me:16435: result: $CLANG_CPLUSPLUS" >&5
16436 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
16440 ac_cpp='$CXXCPP $CPPFLAGS'
16441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16444 ac_main_return=return
16446 cat > conftest.$ac_ext <<EOF
16447 #line 16447 "configure"
16448 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16451 if test "$INTEL_CPLUSPLUS" = yes
16453 # The "-wdXXX" options suppress warnings:
16454 # remark #1419: external declaration in primary source file
16455 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16456 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16457 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16458 # remark #193: zero used for undefined preprocessing identifier
16459 # remark #593: variable "curs_sb_left_arrow" was set but never used
16460 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16461 # remark #869: parameter "tw" was never referenced
16462 # remark #981: operands are evaluated in unspecified order
16463 # warning #269: invalid format string conversion
16465 { echo "$as_me:16465: checking for $CC warning options..." >&5
16466 echo "$as_me: checking for $CC warning options..." >&6;}
16467 cf_save_CXXFLAGS="$CXXFLAGS"
16468 EXTRA_CXXFLAGS="-Wall"
16481 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
16482 if { (eval echo "$as_me:16482: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 (exit $ac_status); }; then
16487 test -n "$verbose" && echo "$as_me:16487: result: ... -$cf_opt" >&5
16488 echo "${ECHO_T}... -$cf_opt" >&6
16489 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16492 CXXFLAGS="$cf_save_CXXFLAGS"
16494 elif test "$GXX" = yes
16496 { echo "$as_me:16496: checking for $CXX warning options..." >&5
16497 echo "$as_me: checking for $CXX warning options..." >&6;}
16498 cf_save_CXXFLAGS="$CXXFLAGS"
16499 EXTRA_CXXFLAGS="-W -Wall"
16500 cf_gxx_extra_warnings=""
16501 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
16502 case "$GCC_VERSION" in
16506 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
16513 Wignored-qualifiers \
16515 Woverloaded-virtual \
16523 Wundef $cf_gxx_extra_warnings Wno-unused
16525 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
16526 if { (eval echo "$as_me:16526: \"$ac_compile\"") >&5
16527 (eval $ac_compile) 2>&5
16529 echo "$as_me:16529: \$? = $ac_status" >&5
16530 (exit $ac_status); }; then
16531 test -n "$verbose" && echo "$as_me:16531: result: ... -$cf_opt" >&5
16532 echo "${ECHO_T}... -$cf_opt" >&6
16533 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16535 test -n "$verbose" && echo "$as_me:16535: result: ... no -$cf_opt" >&5
16536 echo "${ECHO_T}... no -$cf_opt" >&6
16539 CXXFLAGS="$cf_save_CXXFLAGS"
16544 ac_cpp='$CPP $CPPFLAGS'
16545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16548 ac_main_return=return
16553 if test "$GCC" = yes
16555 cat > conftest.i <<EOF
16557 #define GCC_PRINTF 0
16560 #define GCC_SCANF 0
16562 #ifndef GCC_NORETURN
16563 #define GCC_NORETURN /* nothing */
16566 #define GCC_UNUSED /* nothing */
16569 if test "$GCC" = yes
16571 { echo "$as_me:16571: checking for $CC __attribute__ directives..." >&5
16572 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16573 cat > conftest.$ac_ext <<EOF
16574 #line 16574 "${as_me:-configure}"
16575 #include "confdefs.h"
16576 #include "conftest.h"
16577 #include "conftest.i"
16579 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16581 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16584 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16586 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16588 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16589 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16590 extern void foo(void) GCC_NORETURN;
16591 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
16593 cf_printf_attribute=no
16594 cf_scanf_attribute=no
16595 for cf_attribute in scanf printf unused noreturn
16598 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16600 cf_directive="__attribute__(($cf_attribute))"
16601 echo "checking for $CC $cf_directive" 1>&5
16603 case $cf_attribute in
16605 cf_printf_attribute=yes
16606 cat >conftest.h <<EOF
16607 #define GCC_$cf_ATTRIBUTE 1
16611 cf_scanf_attribute=yes
16612 cat >conftest.h <<EOF
16613 #define GCC_$cf_ATTRIBUTE 1
16617 cat >conftest.h <<EOF
16618 #define GCC_$cf_ATTRIBUTE $cf_directive
16623 if { (eval echo "$as_me:16623: \"$ac_compile\"") >&5
16624 (eval $ac_compile) 2>&5
16626 echo "$as_me:16626: \$? = $ac_status" >&5
16627 (exit $ac_status); }; then
16628 test -n "$verbose" && echo "$as_me:16628: result: ... $cf_attribute" >&5
16629 echo "${ECHO_T}... $cf_attribute" >&6
16630 cat conftest.h >>confdefs.h
16631 case $cf_attribute in
16634 cat >>confdefs.h <<EOF
16635 #define GCC_NORETURN $cf_directive
16640 cf_value='/* nothing */'
16641 if test "$cf_printf_attribute" != no ; then
16642 cf_value='__attribute__((format(printf,fmt,var)))'
16644 cat >>confdefs.h <<\EOF
16645 #define GCC_PRINTF 1
16650 cat >>confdefs.h <<EOF
16651 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16656 cf_value='/* nothing */'
16657 if test "$cf_scanf_attribute" != no ; then
16658 cf_value='__attribute__((format(scanf,fmt,var)))'
16660 cat >>confdefs.h <<\EOF
16661 #define GCC_SCANF 1
16666 cat >>confdefs.h <<EOF
16667 #define GCC_SCANFLIKE(fmt,var) $cf_value
16673 cat >>confdefs.h <<EOF
16674 #define GCC_UNUSED $cf_directive
16682 fgrep define conftest.i >>confdefs.h
16687 echo "$as_me:16687: checking if you want to work around bogus compiler/loader warnings" >&5
16688 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
16690 # Check whether --enable-string-hacks or --disable-string-hacks was given.
16691 if test "${enable_string_hacks+set}" = set; then
16692 enableval="$enable_string_hacks"
16693 with_string_hacks=$enableval
16695 with_string_hacks=no
16697 echo "$as_me:16697: result: $with_string_hacks" >&5
16698 echo "${ECHO_T}$with_string_hacks" >&6
16700 if test "x$with_string_hacks" = "xyes"; then
16702 cat >>confdefs.h <<\EOF
16703 #define USE_STRING_HACKS 1
16706 { echo "$as_me:16706: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
16707 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
16708 echo "$as_me:16708: checking for strlcat" >&5
16709 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
16710 if test "${ac_cv_func_strlcat+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 cat >conftest.$ac_ext <<_ACEOF
16714 #line 16714 "configure"
16715 #include "confdefs.h"
16716 #define strlcat autoconf_temporary
16717 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16724 /* We use char because int might match the return type of a gcc2
16725 builtin and then its argument prototype would still apply. */
16726 char strlcat (void);
16732 /* The GNU C library defines stubs for functions which it implements
16733 to always fail with ENOSYS. Some functions are actually named
16734 something starting with __ and the normal name is an alias. */
16735 #if defined (__stub_strlcat) || defined (__stub___strlcat)
16736 #error found stub for strlcat
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (eval echo "$as_me:16745: \"$ac_link\"") >&5
16746 (eval $ac_link) 2>&5
16748 echo "$as_me:16748: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (eval echo "$as_me:16751: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:16754: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_func_strlcat=yes
16758 echo "$as_me: failed program was:" >&5
16759 cat conftest.$ac_ext >&5
16760 ac_cv_func_strlcat=no
16762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16764 echo "$as_me:16764: result: $ac_cv_func_strlcat" >&5
16765 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
16766 if test $ac_cv_func_strlcat = yes; then
16768 cat >>confdefs.h <<\EOF
16769 #define HAVE_STRLCAT 1
16774 echo "$as_me:16774: checking for strlcat in -lbsd" >&5
16775 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
16776 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 ac_check_lib_save_LIBS=$LIBS
16781 cat >conftest.$ac_ext <<_ACEOF
16782 #line 16782 "configure"
16783 #include "confdefs.h"
16785 /* Override any gcc2 internal prototype to avoid an error. */
16789 /* We use char because int might match the return type of a gcc2
16790 builtin and then its argument prototype would still apply. */
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (eval echo "$as_me:16801: \"$ac_link\"") >&5
16802 (eval $ac_link) 2>&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -s conftest$ac_exeext'
16807 { (eval echo "$as_me:16807: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:16810: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_cv_lib_bsd_strlcat=yes
16814 echo "$as_me: failed program was:" >&5
16815 cat conftest.$ac_ext >&5
16816 ac_cv_lib_bsd_strlcat=no
16818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16821 echo "$as_me:16821: result: $ac_cv_lib_bsd_strlcat" >&5
16822 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
16823 if test $ac_cv_lib_bsd_strlcat = yes; then
16825 cf_add_libs="$LIBS"
16828 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16829 # filter duplicates
16830 for cf_add_1lib in $cf_add_0lib; do
16831 for cf_add_2lib in $cf_add_libs; do
16832 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16837 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16839 LIBS="$cf_add_libs"
16841 for ac_header in bsd/string.h
16843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16844 echo "$as_me:16844: checking for $ac_header" >&5
16845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16850 #line 16850 "configure"
16851 #include "confdefs.h"
16852 #include <$ac_header>
16854 if { (eval echo "$as_me:16854: \"$ac_cpp conftest.$ac_ext\"") >&5
16855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16857 egrep -v '^ *\+' conftest.er1 >conftest.err
16859 cat conftest.err >&5
16860 echo "$as_me:16860: \$? = $ac_status" >&5
16861 (exit $ac_status); } >/dev/null; then
16862 if test -s conftest.err; then
16863 ac_cpp_err=$ac_c_preproc_warn_flag
16870 if test -z "$ac_cpp_err"; then
16871 eval "$as_ac_Header=yes"
16873 echo "$as_me: failed program was:" >&5
16874 cat conftest.$ac_ext >&5
16875 eval "$as_ac_Header=no"
16877 rm -f conftest.err conftest.$ac_ext
16879 echo "$as_me:16879: result: `eval echo '${'$as_ac_Header'}'`" >&5
16880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16882 cat >>confdefs.h <<EOF
16883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16889 cat >>confdefs.h <<\EOF
16890 #define HAVE_STRLCAT 1
16897 for ac_func in strlcpy snprintf
16899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16900 echo "$as_me:16900: checking for $ac_func" >&5
16901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16902 if eval "test \"\${$as_ac_var+set}\" = set"; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16906 #line 16906 "configure"
16907 #include "confdefs.h"
16908 #define $ac_func autoconf_temporary
16909 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16918 char $ac_func (void);
16924 /* The GNU C library defines stubs for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16928 #error found stub for $ac_func
16931 return $ac_func ();
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:16937: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>&5
16940 echo "$as_me:16940: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (eval echo "$as_me:16943: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 echo "$as_me:16946: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 eval "$as_ac_var=yes"
16950 echo "$as_me: failed program was:" >&5
16951 cat conftest.$ac_ext >&5
16952 eval "$as_ac_var=no"
16954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16956 echo "$as_me:16956: result: `eval echo '${'$as_ac_var'}'`" >&5
16957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16958 if test `eval echo '${'$as_ac_var'}'` = yes; then
16959 cat >>confdefs.h <<EOF
16960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968 ### use option --enable-assertions to turn on generation of assertion code
16969 echo "$as_me:16969: checking if you want to enable runtime assertions" >&5
16970 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
16972 # Check whether --enable-assertions or --disable-assertions was given.
16973 if test "${enable_assertions+set}" = set; then
16974 enableval="$enable_assertions"
16975 with_assertions=$enableval
16979 echo "$as_me:16979: result: $with_assertions" >&5
16980 echo "${ECHO_T}$with_assertions" >&6
16983 if test "$with_assertions" = no
16985 CPPFLAGS="$CPPFLAGS -DNDEBUG"
16988 ADAFLAGS="$ADAFLAGS -gnata"
16993 ### use option --disable-leaks to suppress "permanent" leaks, for testing
16995 echo "$as_me:16995: checking if you want to use dmalloc for testing" >&5
16996 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16998 # Check whether --with-dmalloc or --without-dmalloc was given.
16999 if test "${with_dmalloc+set}" = set; then
17000 withval="$with_dmalloc"
17002 cat >>confdefs.h <<EOF
17003 #define USE_DMALLOC 1
17006 : ${with_cflags:=-g}
17007 : ${with_no_leaks:=yes}
17012 echo "$as_me:17012: result: ${with_dmalloc:-no}" >&5
17013 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17015 case .$with_cflags in
17025 cf_new_extra_cppflags=
17027 for cf_add_cflags in -g
17029 case $cf_fix_cppflags in
17031 case $cf_add_cflags in
17032 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17033 case $cf_add_cflags in
17035 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17037 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17038 && test -z "${cf_tst_cflags}" \
17039 && cf_fix_cppflags=yes
17041 if test $cf_fix_cppflags = yes ; then
17043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17047 elif test "${cf_tst_cflags}" = "\"'" ; then
17049 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17050 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17056 case "$CPPFLAGS" in
17060 case $cf_add_cflags in
17062 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17064 CPPFLAGS=`echo "$CPPFLAGS" | \
17065 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17066 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17071 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17072 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17079 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17080 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17087 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17088 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17093 && test -z "${cf_tst_cflags}" \
17094 && cf_fix_cppflags=no
17099 if test -n "$cf_new_cflags" ; then
17101 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17102 CFLAGS="${CFLAGS}$cf_new_cflags"
17106 if test -n "$cf_new_cppflags" ; then
17108 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17109 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17113 if test -n "$cf_new_extra_cppflags" ; then
17115 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17116 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17125 if test "$with_dmalloc" = yes ; then
17126 echo "$as_me:17126: checking for dmalloc.h" >&5
17127 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17128 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 cat >conftest.$ac_ext <<_ACEOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17134 #include <dmalloc.h>
17136 if { (eval echo "$as_me:17136: \"$ac_cpp conftest.$ac_ext\"") >&5
17137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17139 egrep -v '^ *\+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:17142: \$? = $ac_status" >&5
17143 (exit $ac_status); } >/dev/null; then
17144 if test -s conftest.err; then
17145 ac_cpp_err=$ac_c_preproc_warn_flag
17152 if test -z "$ac_cpp_err"; then
17153 ac_cv_header_dmalloc_h=yes
17155 echo "$as_me: failed program was:" >&5
17156 cat conftest.$ac_ext >&5
17157 ac_cv_header_dmalloc_h=no
17159 rm -f conftest.err conftest.$ac_ext
17161 echo "$as_me:17161: result: $ac_cv_header_dmalloc_h" >&5
17162 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17163 if test $ac_cv_header_dmalloc_h = yes; then
17165 echo "$as_me:17165: checking for dmalloc_debug in -ldmalloc" >&5
17166 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17167 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 ac_check_lib_save_LIBS=$LIBS
17171 LIBS="-ldmalloc $LIBS"
17172 cat >conftest.$ac_ext <<_ACEOF
17173 #line 17173 "configure"
17174 #include "confdefs.h"
17176 /* Override any gcc2 internal prototype to avoid an error. */
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17182 char dmalloc_debug ();
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (eval echo "$as_me:17192: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17195 echo "$as_me:17195: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (eval echo "$as_me:17198: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:17201: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_lib_dmalloc_dmalloc_debug=yes
17205 echo "$as_me: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17207 ac_cv_lib_dmalloc_dmalloc_debug=no
17209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17212 echo "$as_me:17212: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17213 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17214 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17215 cat >>confdefs.h <<EOF
17216 #define HAVE_LIBDMALLOC 1
17219 LIBS="-ldmalloc $LIBS"
17227 echo "$as_me:17227: checking if you want to use dbmalloc for testing" >&5
17228 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17230 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17231 if test "${with_dbmalloc+set}" = set; then
17232 withval="$with_dbmalloc"
17234 cat >>confdefs.h <<EOF
17235 #define USE_DBMALLOC 1
17238 : ${with_cflags:=-g}
17239 : ${with_no_leaks:=yes}
17244 echo "$as_me:17244: result: ${with_dbmalloc:-no}" >&5
17245 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17247 case .$with_cflags in
17257 cf_new_extra_cppflags=
17259 for cf_add_cflags in -g
17261 case $cf_fix_cppflags in
17263 case $cf_add_cflags in
17264 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17265 case $cf_add_cflags in
17267 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17269 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17270 && test -z "${cf_tst_cflags}" \
17271 && cf_fix_cppflags=yes
17273 if test $cf_fix_cppflags = yes ; then
17275 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17276 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17279 elif test "${cf_tst_cflags}" = "\"'" ; then
17281 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17282 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17288 case "$CPPFLAGS" in
17292 case $cf_add_cflags in
17294 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17296 CPPFLAGS=`echo "$CPPFLAGS" | \
17297 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17298 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17303 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17304 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17311 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17312 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17319 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17320 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17322 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17324 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17325 && test -z "${cf_tst_cflags}" \
17326 && cf_fix_cppflags=no
17331 if test -n "$cf_new_cflags" ; then
17333 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17334 CFLAGS="${CFLAGS}$cf_new_cflags"
17338 if test -n "$cf_new_cppflags" ; then
17340 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17341 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17345 if test -n "$cf_new_extra_cppflags" ; then
17347 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17348 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17357 if test "$with_dbmalloc" = yes ; then
17358 echo "$as_me:17358: checking for dbmalloc.h" >&5
17359 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17360 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 cat >conftest.$ac_ext <<_ACEOF
17364 #line 17364 "configure"
17365 #include "confdefs.h"
17366 #include <dbmalloc.h>
17368 if { (eval echo "$as_me:17368: \"$ac_cpp conftest.$ac_ext\"") >&5
17369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17371 egrep -v '^ *\+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:17374: \$? = $ac_status" >&5
17375 (exit $ac_status); } >/dev/null; then
17376 if test -s conftest.err; then
17377 ac_cpp_err=$ac_c_preproc_warn_flag
17384 if test -z "$ac_cpp_err"; then
17385 ac_cv_header_dbmalloc_h=yes
17387 echo "$as_me: failed program was:" >&5
17388 cat conftest.$ac_ext >&5
17389 ac_cv_header_dbmalloc_h=no
17391 rm -f conftest.err conftest.$ac_ext
17393 echo "$as_me:17393: result: $ac_cv_header_dbmalloc_h" >&5
17394 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17395 if test $ac_cv_header_dbmalloc_h = yes; then
17397 echo "$as_me:17397: checking for debug_malloc in -ldbmalloc" >&5
17398 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17399 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 ac_check_lib_save_LIBS=$LIBS
17403 LIBS="-ldbmalloc $LIBS"
17404 cat >conftest.$ac_ext <<_ACEOF
17405 #line 17405 "configure"
17406 #include "confdefs.h"
17408 /* Override any gcc2 internal prototype to avoid an error. */
17412 /* We use char because int might match the return type of a gcc2
17413 builtin and then its argument prototype would still apply. */
17414 char debug_malloc ();
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:17424: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17427 echo "$as_me:17427: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:17430: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:17433: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_dbmalloc_debug_malloc=yes
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ac_cv_lib_dbmalloc_debug_malloc=no
17441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 echo "$as_me:17444: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17445 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17446 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17447 cat >>confdefs.h <<EOF
17448 #define HAVE_LIBDBMALLOC 1
17451 LIBS="-ldbmalloc $LIBS"
17459 echo "$as_me:17459: checking if you want to use valgrind for testing" >&5
17460 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17462 # Check whether --with-valgrind or --without-valgrind was given.
17463 if test "${with_valgrind+set}" = set; then
17464 withval="$with_valgrind"
17466 cat >>confdefs.h <<EOF
17467 #define USE_VALGRIND 1
17470 : ${with_cflags:=-g}
17471 : ${with_no_leaks:=yes}
17476 echo "$as_me:17476: result: ${with_valgrind:-no}" >&5
17477 echo "${ECHO_T}${with_valgrind:-no}" >&6
17479 case .$with_cflags in
17489 cf_new_extra_cppflags=
17491 for cf_add_cflags in -g
17493 case $cf_fix_cppflags in
17495 case $cf_add_cflags in
17496 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17497 case $cf_add_cflags in
17499 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17501 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17502 && test -z "${cf_tst_cflags}" \
17503 && cf_fix_cppflags=yes
17505 if test $cf_fix_cppflags = yes ; then
17507 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17508 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17511 elif test "${cf_tst_cflags}" = "\"'" ; then
17513 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17514 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17520 case "$CPPFLAGS" in
17524 case $cf_add_cflags in
17526 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17528 CPPFLAGS=`echo "$CPPFLAGS" | \
17529 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17530 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17535 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17536 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17543 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17544 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17554 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17556 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17557 && test -z "${cf_tst_cflags}" \
17558 && cf_fix_cppflags=no
17563 if test -n "$cf_new_cflags" ; then
17565 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17566 CFLAGS="${CFLAGS}$cf_new_cflags"
17570 if test -n "$cf_new_cppflags" ; then
17572 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17573 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17577 if test -n "$cf_new_extra_cppflags" ; then
17579 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17580 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17589 echo "$as_me:17589: checking if you want to perform memory-leak testing" >&5
17590 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17592 # Check whether --enable-leaks or --disable-leaks was given.
17593 if test "${enable_leaks+set}" = set; then
17594 enableval="$enable_leaks"
17595 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17597 : ${with_no_leaks:=no}
17599 echo "$as_me:17599: result: $with_no_leaks" >&5
17600 echo "${ECHO_T}$with_no_leaks" >&6
17602 if test "$with_no_leaks" = yes ; then
17604 cat >>confdefs.h <<\EOF
17608 cat >>confdefs.h <<\EOF
17609 #define YY_NO_LEAKS 1
17614 cat >>confdefs.h <<\EOF
17615 #define HAVE_NC_ALLOC_H 1
17618 ### use option --enable-expanded to generate certain macros as functions
17620 # Check whether --enable-expanded or --disable-expanded was given.
17621 if test "${enable_expanded+set}" = set; then
17622 enableval="$enable_expanded"
17623 test "x$enableval" = xyes &&
17624 cat >>confdefs.h <<\EOF
17625 #define NCURSES_EXPANDED 1
17630 ### use option --disable-macros to suppress macros in favor of functions
17632 # Check whether --enable-macros or --disable-macros was given.
17633 if test "${enable_macros+set}" = set; then
17634 enableval="$enable_macros"
17635 test "$enableval" = no &&
17636 cat >>confdefs.h <<\EOF
17637 #define NCURSES_NOMACROS 1
17642 # Normally we only add trace() to the debug-library. Allow this to be
17643 # extended to all models of the ncurses library:
17645 case "$CFLAGS $CPPFLAGS" in
17651 echo "$as_me:17651: checking whether to add trace feature to all models" >&5
17652 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
17654 # Check whether --with-trace or --without-trace was given.
17655 if test "${with_trace+set}" = set; then
17656 withval="$with_trace"
17657 cf_with_trace=$withval
17659 cf_with_trace=$cf_all_traces
17661 echo "$as_me:17661: result: $cf_with_trace" >&5
17662 echo "${ECHO_T}$cf_with_trace" >&6
17664 if test "x$cf_with_trace" = xyes ; then
17671 cf_new_extra_cppflags=
17673 for cf_add_cflags in -DTRACE
17675 case $cf_fix_cppflags in
17677 case $cf_add_cflags in
17678 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17679 case $cf_add_cflags in
17681 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17683 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17684 && test -z "${cf_tst_cflags}" \
17685 && cf_fix_cppflags=yes
17687 if test $cf_fix_cppflags = yes ; then
17689 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17690 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17693 elif test "${cf_tst_cflags}" = "\"'" ; then
17695 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17696 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17702 case "$CPPFLAGS" in
17706 case $cf_add_cflags in
17708 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17710 CPPFLAGS=`echo "$CPPFLAGS" | \
17711 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17712 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17717 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17718 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17725 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17726 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17733 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17734 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17736 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17738 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17739 && test -z "${cf_tst_cflags}" \
17740 && cf_fix_cppflags=no
17745 if test -n "$cf_new_cflags" ; then
17747 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17748 CFLAGS="${CFLAGS}$cf_new_cflags"
17752 if test -n "$cf_new_cppflags" ; then
17754 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17755 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17759 if test -n "$cf_new_extra_cppflags" ; then
17761 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17762 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17766 cat >>confdefs.h <<\EOF
17767 #define HAVE__TRACEF 1
17775 echo "$as_me:17775: checking if we want to use GNAT projects" >&5
17776 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17778 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17779 if test "${enable_gnat_projects+set}" = set; then
17780 enableval="$enable_gnat_projects"
17781 test "$enableval" != no && enableval=yes
17782 if test "$enableval" != "yes" ; then
17783 enable_gnat_projects=no
17785 enable_gnat_projects=yes
17789 enable_gnat_projects=yes
17792 echo "$as_me:17792: result: $enable_gnat_projects" >&5
17793 echo "${ECHO_T}$enable_gnat_projects" >&6
17795 ### Checks for libraries.
17796 case $cf_cv_system_name in
17797 (*mingw32*|*mingw64*)
17798 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
17799 # Note: WINVER may be a problem with Windows 10
17802 echo "$as_me:17802: checking for gettimeofday" >&5
17803 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17804 if test "${ac_cv_func_gettimeofday+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 cat >conftest.$ac_ext <<_ACEOF
17808 #line 17808 "configure"
17809 #include "confdefs.h"
17810 #define gettimeofday autoconf_temporary
17811 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17812 #undef gettimeofday
17818 /* We use char because int might match the return type of a gcc2
17819 builtin and then its argument prototype would still apply. */
17820 char gettimeofday (void);
17826 /* The GNU C library defines stubs for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17830 #error found stub for gettimeofday
17833 return gettimeofday ();
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:17839: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>&5
17842 echo "$as_me:17842: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (eval echo "$as_me:17845: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:17848: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_cv_func_gettimeofday=yes
17852 echo "$as_me: failed program was:" >&5
17853 cat conftest.$ac_ext >&5
17854 ac_cv_func_gettimeofday=no
17856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17858 echo "$as_me:17858: result: $ac_cv_func_gettimeofday" >&5
17859 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17860 if test $ac_cv_func_gettimeofday = yes; then
17862 cat >>confdefs.h <<\EOF
17863 #define HAVE_GETTIMEOFDAY 1
17868 echo "$as_me:17868: checking for gettimeofday in -lbsd" >&5
17869 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
17870 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 ac_check_lib_save_LIBS=$LIBS
17875 cat >conftest.$ac_ext <<_ACEOF
17876 #line 17876 "configure"
17877 #include "confdefs.h"
17879 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17885 char gettimeofday ();
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:17895: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>&5
17898 echo "$as_me:17898: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (eval echo "$as_me:17901: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:17904: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_cv_lib_bsd_gettimeofday=yes
17908 echo "$as_me: failed program was:" >&5
17909 cat conftest.$ac_ext >&5
17910 ac_cv_lib_bsd_gettimeofday=no
17912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17913 LIBS=$ac_check_lib_save_LIBS
17915 echo "$as_me:17915: result: $ac_cv_lib_bsd_gettimeofday" >&5
17916 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
17917 if test $ac_cv_lib_bsd_gettimeofday = yes; then
17919 cat >>confdefs.h <<\EOF
17920 #define HAVE_GETTIMEOFDAY 1
17923 cf_add_libs="$LIBS"
17926 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17927 # filter duplicates
17928 for cf_add_1lib in $cf_add_0lib; do
17929 for cf_add_2lib in $cf_add_libs; do
17930 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17935 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17937 LIBS="$cf_add_libs"
17945 echo "$as_me:17945: checking if -lm needed for math functions" >&5
17946 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
17947 if test "${cf_cv_need_libm+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17952 #line 17952 "configure"
17953 #include "confdefs.h"
17956 #include <stdlib.h>
17962 double x = rand(); printf("result = %g\n", pow(sin(x),x))
17967 rm -f conftest.$ac_objext conftest$ac_exeext
17968 if { (eval echo "$as_me:17968: \"$ac_link\"") >&5
17969 (eval $ac_link) 2>&5
17971 echo "$as_me:17971: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -s conftest$ac_exeext'
17974 { (eval echo "$as_me:17974: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:17977: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17981 echo "$as_me: failed program was:" >&5
17982 cat conftest.$ac_ext >&5
17983 cf_cv_need_libm=yes
17985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17987 echo "$as_me:17987: result: $cf_cv_need_libm" >&5
17988 echo "${ECHO_T}$cf_cv_need_libm" >&6
17989 if test "$cf_cv_need_libm" = yes
17994 ### Checks for header files.
17995 echo "$as_me:17995: checking for ANSI C header files" >&5
17996 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17997 if test "${ac_cv_header_stdc+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 cat >conftest.$ac_ext <<_ACEOF
18001 #line 18001 "configure"
18002 #include "confdefs.h"
18003 #include <stdlib.h>
18004 #include <stdarg.h>
18005 #include <string.h>
18009 if { (eval echo "$as_me:18009: \"$ac_cpp conftest.$ac_ext\"") >&5
18010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18012 egrep -v '^ *\+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 echo "$as_me:18015: \$? = $ac_status" >&5
18016 (exit $ac_status); } >/dev/null; then
18017 if test -s conftest.err; then
18018 ac_cpp_err=$ac_c_preproc_warn_flag
18025 if test -z "$ac_cpp_err"; then
18026 ac_cv_header_stdc=yes
18028 echo "$as_me: failed program was:" >&5
18029 cat conftest.$ac_ext >&5
18030 ac_cv_header_stdc=no
18032 rm -f conftest.err conftest.$ac_ext
18034 if test $ac_cv_header_stdc = yes; then
18035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18036 cat >conftest.$ac_ext <<_ACEOF
18037 #line 18037 "configure"
18038 #include "confdefs.h"
18039 #include <string.h>
18042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18043 egrep "memchr" >/dev/null 2>&1; then
18046 ac_cv_header_stdc=no
18052 if test $ac_cv_header_stdc = yes; then
18053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18054 cat >conftest.$ac_ext <<_ACEOF
18055 #line 18055 "configure"
18056 #include "confdefs.h"
18057 #include <stdlib.h>
18060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18061 egrep "free" >/dev/null 2>&1; then
18064 ac_cv_header_stdc=no
18070 if test $ac_cv_header_stdc = yes; then
18071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18072 if test "$cross_compiling" = yes; then
18075 cat >conftest.$ac_ext <<_ACEOF
18076 #line 18076 "configure"
18077 #include "confdefs.h"
18079 #if ((' ' & 0x0FF) == 0x020)
18080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18083 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18084 || ('j' <= (c) && (c) <= 'r') \
18085 || ('s' <= (c) && (c) <= 'z'))
18086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18094 for (i = 0; i < 256; i++)
18095 if (XOR (islower (i), ISLOWER (i))
18096 || toupper (i) != TOUPPER (i))
18097 $ac_main_return(2);
18098 $ac_main_return (0);
18101 rm -f conftest$ac_exeext
18102 if { (eval echo "$as_me:18102: \"$ac_link\"") >&5
18103 (eval $ac_link) 2>&5
18105 echo "$as_me:18105: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (eval echo "$as_me:18107: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:18110: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18114 echo "$as_me: program exited with status $ac_status" >&5
18115 echo "$as_me: failed program was:" >&5
18116 cat conftest.$ac_ext >&5
18117 ac_cv_header_stdc=no
18119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me:18123: result: $ac_cv_header_stdc" >&5
18124 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18125 if test $ac_cv_header_stdc = yes; then
18127 cat >>confdefs.h <<\EOF
18128 #define STDC_HEADERS 1
18133 ac_header_dirent=no
18134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18135 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18136 echo "$as_me:18136: checking for $ac_hdr that defines DIR" >&5
18137 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 cat >conftest.$ac_ext <<_ACEOF
18142 #line 18142 "configure"
18143 #include "confdefs.h"
18144 #include <sys/types.h>
18156 rm -f conftest.$ac_objext
18157 if { (eval echo "$as_me:18157: \"$ac_compile\"") >&5
18158 (eval $ac_compile) 2>&5
18160 echo "$as_me:18160: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -s conftest.$ac_objext'
18163 { (eval echo "$as_me:18163: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:18166: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 eval "$as_ac_Header=yes"
18170 echo "$as_me: failed program was:" >&5
18171 cat conftest.$ac_ext >&5
18172 eval "$as_ac_Header=no"
18174 rm -f conftest.$ac_objext conftest.$ac_ext
18176 echo "$as_me:18176: result: `eval echo '${'$as_ac_Header'}'`" >&5
18177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18179 cat >>confdefs.h <<EOF
18180 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18183 ac_header_dirent=$ac_hdr; break
18187 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18188 if test $ac_header_dirent = dirent.h; then
18189 echo "$as_me:18189: checking for opendir in -ldir" >&5
18190 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18191 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 ac_check_lib_save_LIBS=$LIBS
18196 cat >conftest.$ac_ext <<_ACEOF
18197 #line 18197 "configure"
18198 #include "confdefs.h"
18200 /* Override any gcc2 internal prototype to avoid an error. */
18204 /* We use char because int might match the return type of a gcc2
18205 builtin and then its argument prototype would still apply. */
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (eval echo "$as_me:18216: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>&5
18219 echo "$as_me:18219: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -s conftest$ac_exeext'
18222 { (eval echo "$as_me:18222: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18225 echo "$as_me:18225: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_cv_lib_dir_opendir=yes
18229 echo "$as_me: failed program was:" >&5
18230 cat conftest.$ac_ext >&5
18231 ac_cv_lib_dir_opendir=no
18233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 echo "$as_me:18236: result: $ac_cv_lib_dir_opendir" >&5
18237 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18238 if test $ac_cv_lib_dir_opendir = yes; then
18243 echo "$as_me:18243: checking for opendir in -lx" >&5
18244 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18245 if test "${ac_cv_lib_x_opendir+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS=$LIBS
18250 cat >conftest.$ac_ext <<_ACEOF
18251 #line 18251 "configure"
18252 #include "confdefs.h"
18254 /* Override any gcc2 internal prototype to avoid an error. */
18258 /* We use char because int might match the return type of a gcc2
18259 builtin and then its argument prototype would still apply. */
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (eval echo "$as_me:18270: \"$ac_link\"") >&5
18271 (eval $ac_link) 2>&5
18273 echo "$as_me:18273: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:18276: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:18279: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_lib_x_opendir=yes
18283 echo "$as_me: failed program was:" >&5
18284 cat conftest.$ac_ext >&5
18285 ac_cv_lib_x_opendir=no
18287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18288 LIBS=$ac_check_lib_save_LIBS
18290 echo "$as_me:18290: result: $ac_cv_lib_x_opendir" >&5
18291 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18292 if test $ac_cv_lib_x_opendir = yes; then
18298 echo "$as_me:18298: checking whether time.h and sys/time.h may both be included" >&5
18299 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18300 if test "${ac_cv_header_time+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line 18304 "configure"
18305 #include "confdefs.h"
18306 #include <sys/types.h>
18307 #include <sys/time.h>
18313 if ((struct tm *) 0)
18319 rm -f conftest.$ac_objext
18320 if { (eval echo "$as_me:18320: \"$ac_compile\"") >&5
18321 (eval $ac_compile) 2>&5
18323 echo "$as_me:18323: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -s conftest.$ac_objext'
18326 { (eval echo "$as_me:18326: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18329 echo "$as_me:18329: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 ac_cv_header_time=yes
18333 echo "$as_me: failed program was:" >&5
18334 cat conftest.$ac_ext >&5
18335 ac_cv_header_time=no
18337 rm -f conftest.$ac_objext conftest.$ac_ext
18339 echo "$as_me:18339: result: $ac_cv_header_time" >&5
18340 echo "${ECHO_T}$ac_cv_header_time" >&6
18341 if test $ac_cv_header_time = yes; then
18343 cat >>confdefs.h <<\EOF
18344 #define TIME_WITH_SYS_TIME 1
18351 cf_regex_libs="regex re"
18354 cf_regex_libs="systre gnurx $cf_regex_libs"
18358 echo "$as_me:18358: checking for regcomp" >&5
18359 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
18360 if test "${ac_cv_func_regcomp+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 cat >conftest.$ac_ext <<_ACEOF
18364 #line 18364 "configure"
18365 #include "confdefs.h"
18366 #define regcomp autoconf_temporary
18367 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18374 /* We use char because int might match the return type of a gcc2
18375 builtin and then its argument prototype would still apply. */
18376 char regcomp (void);
18382 /* The GNU C library defines stubs for functions which it implements
18383 to always fail with ENOSYS. Some functions are actually named
18384 something starting with __ and the normal name is an alias. */
18385 #if defined (__stub_regcomp) || defined (__stub___regcomp)
18386 #error found stub for regcomp
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:18395: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>&5
18398 echo "$as_me:18398: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -s conftest$ac_exeext'
18401 { (eval echo "$as_me:18401: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18404 echo "$as_me:18404: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_cv_func_regcomp=yes
18408 echo "$as_me: failed program was:" >&5
18409 cat conftest.$ac_ext >&5
18410 ac_cv_func_regcomp=no
18412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18414 echo "$as_me:18414: result: $ac_cv_func_regcomp" >&5
18415 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
18416 if test $ac_cv_func_regcomp = yes; then
18417 cf_regex_func=regcomp
18420 for cf_regex_lib in $cf_regex_libs
18422 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
18423 echo "$as_me:18423: checking for regcomp in -l$cf_regex_lib" >&5
18424 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
18425 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 ac_check_lib_save_LIBS=$LIBS
18429 LIBS="-l$cf_regex_lib $LIBS"
18430 cat >conftest.$ac_ext <<_ACEOF
18431 #line 18431 "configure"
18432 #include "confdefs.h"
18434 /* Override any gcc2 internal prototype to avoid an error. */
18438 /* We use char because int might match the return type of a gcc2
18439 builtin and then its argument prototype would still apply. */
18449 rm -f conftest.$ac_objext conftest$ac_exeext
18450 if { (eval echo "$as_me:18450: \"$ac_link\"") >&5
18451 (eval $ac_link) 2>&5
18453 echo "$as_me:18453: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -s conftest$ac_exeext'
18456 { (eval echo "$as_me:18456: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18459 echo "$as_me:18459: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 eval "$as_ac_Lib=yes"
18463 echo "$as_me: failed program was:" >&5
18464 cat conftest.$ac_ext >&5
18465 eval "$as_ac_Lib=no"
18467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18468 LIBS=$ac_check_lib_save_LIBS
18470 echo "$as_me:18470: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18471 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18472 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18474 cf_add_libs="$LIBS"
18477 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18478 # filter duplicates
18479 for cf_add_1lib in $cf_add_0lib; do
18480 for cf_add_2lib in $cf_add_libs; do
18481 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18486 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18488 LIBS="$cf_add_libs"
18490 cf_regex_func=regcomp
18498 if test "$cf_regex_func" = no ; then
18499 echo "$as_me:18499: checking for compile" >&5
18500 echo $ECHO_N "checking for compile... $ECHO_C" >&6
18501 if test "${ac_cv_func_compile+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 cat >conftest.$ac_ext <<_ACEOF
18505 #line 18505 "configure"
18506 #include "confdefs.h"
18507 #define compile autoconf_temporary
18508 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18515 /* We use char because int might match the return type of a gcc2
18516 builtin and then its argument prototype would still apply. */
18517 char compile (void);
18523 /* The GNU C library defines stubs for functions which it implements
18524 to always fail with ENOSYS. Some functions are actually named
18525 something starting with __ and the normal name is an alias. */
18526 #if defined (__stub_compile) || defined (__stub___compile)
18527 #error found stub for compile
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (eval echo "$as_me:18536: \"$ac_link\"") >&5
18537 (eval $ac_link) 2>&5
18539 echo "$as_me:18539: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:18542: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:18545: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_func_compile=yes
18549 echo "$as_me: failed program was:" >&5
18550 cat conftest.$ac_ext >&5
18551 ac_cv_func_compile=no
18553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18555 echo "$as_me:18555: result: $ac_cv_func_compile" >&5
18556 echo "${ECHO_T}$ac_cv_func_compile" >&6
18557 if test $ac_cv_func_compile = yes; then
18558 cf_regex_func=compile
18561 echo "$as_me:18561: checking for compile in -lgen" >&5
18562 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
18563 if test "${ac_cv_lib_gen_compile+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 ac_check_lib_save_LIBS=$LIBS
18568 cat >conftest.$ac_ext <<_ACEOF
18569 #line 18569 "configure"
18570 #include "confdefs.h"
18572 /* Override any gcc2 internal prototype to avoid an error. */
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (eval echo "$as_me:18588: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>&5
18591 echo "$as_me:18591: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (eval echo "$as_me:18594: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18597 echo "$as_me:18597: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_cv_lib_gen_compile=yes
18601 echo "$as_me: failed program was:" >&5
18602 cat conftest.$ac_ext >&5
18603 ac_cv_lib_gen_compile=no
18605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18608 echo "$as_me:18608: result: $ac_cv_lib_gen_compile" >&5
18609 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
18610 if test $ac_cv_lib_gen_compile = yes; then
18612 cf_add_libs="$LIBS"
18615 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18616 # filter duplicates
18617 for cf_add_1lib in $cf_add_0lib; do
18618 for cf_add_2lib in $cf_add_libs; do
18619 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18624 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18626 LIBS="$cf_add_libs"
18628 cf_regex_func=compile
18635 if test "$cf_regex_func" = no ; then
18636 { echo "$as_me:18636: WARNING: cannot find regular expression library" >&5
18637 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
18640 echo "$as_me:18640: checking for regular-expression headers" >&5
18641 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
18642 if test "${cf_cv_regex_hdrs+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 cf_cv_regex_hdrs=no
18647 case $cf_regex_func in
18649 for cf_regex_hdr in regexp.h regexpr.h
18651 cat >conftest.$ac_ext <<_ACEOF
18652 #line 18652 "configure"
18653 #include "confdefs.h"
18654 #include <$cf_regex_hdr>
18659 char *p = compile("", "", "", 0);
18660 int x = step("", "");
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (eval echo "$as_me:18669: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>&5
18672 echo "$as_me:18672: \$? = $ac_status" >&5
18673 (exit $ac_status); } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (eval echo "$as_me:18675: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18678 echo "$as_me:18678: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18681 cf_cv_regex_hdrs=$cf_regex_hdr
18685 echo "$as_me: failed program was:" >&5
18686 cat conftest.$ac_ext >&5
18688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18692 for cf_regex_hdr in regex.h
18694 cat >conftest.$ac_ext <<_ACEOF
18695 #line 18695 "configure"
18696 #include "confdefs.h"
18697 #include <sys/types.h>
18698 #include <$cf_regex_hdr>
18704 int x = regcomp(p, "", 0);
18705 int y = regexec(p, "", 0, 0, 0);
18714 rm -f conftest.$ac_objext conftest$ac_exeext
18715 if { (eval echo "$as_me:18715: \"$ac_link\"") >&5
18716 (eval $ac_link) 2>&5
18718 echo "$as_me:18718: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -s conftest$ac_exeext'
18721 { (eval echo "$as_me:18721: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18724 echo "$as_me:18724: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18727 cf_cv_regex_hdrs=$cf_regex_hdr
18731 echo "$as_me: failed program was:" >&5
18732 cat conftest.$ac_ext >&5
18734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18740 echo "$as_me:18740: result: $cf_cv_regex_hdrs" >&5
18741 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
18743 case $cf_cv_regex_hdrs in
18744 (no) { echo "$as_me:18744: WARNING: no regular expression header found" >&5
18745 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
18747 cat >>confdefs.h <<\EOF
18748 #define HAVE_REGEX_H_FUNCS 1
18752 cat >>confdefs.h <<\EOF
18753 #define HAVE_REGEXP_H_FUNCS 1
18757 cat >>confdefs.h <<\EOF
18758 #define HAVE_REGEXPR_H_FUNCS 1
18781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18782 echo "$as_me:18782: checking for $ac_header" >&5
18783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 cat >conftest.$ac_ext <<_ACEOF
18788 #line 18788 "configure"
18789 #include "confdefs.h"
18790 #include <$ac_header>
18792 if { (eval echo "$as_me:18792: \"$ac_cpp conftest.$ac_ext\"") >&5
18793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18795 egrep -v '^ *\+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:18798: \$? = $ac_status" >&5
18799 (exit $ac_status); } >/dev/null; then
18800 if test -s conftest.err; then
18801 ac_cpp_err=$ac_c_preproc_warn_flag
18808 if test -z "$ac_cpp_err"; then
18809 eval "$as_ac_Header=yes"
18811 echo "$as_me: failed program was:" >&5
18812 cat conftest.$ac_ext >&5
18813 eval "$as_ac_Header=no"
18815 rm -f conftest.err conftest.$ac_ext
18817 echo "$as_me:18817: result: `eval echo '${'$as_ac_Header'}'`" >&5
18818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18820 cat >>confdefs.h <<EOF
18821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18827 for ac_header in unistd.h getopt.h
18829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18830 echo "$as_me:18830: checking for $ac_header" >&5
18831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18836 #line 18836 "configure"
18837 #include "confdefs.h"
18838 #include <$ac_header>
18840 if { (eval echo "$as_me:18840: \"$ac_cpp conftest.$ac_ext\"") >&5
18841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18843 egrep -v '^ *\+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:18846: \$? = $ac_status" >&5
18847 (exit $ac_status); } >/dev/null; then
18848 if test -s conftest.err; then
18849 ac_cpp_err=$ac_c_preproc_warn_flag
18856 if test -z "$ac_cpp_err"; then
18857 eval "$as_ac_Header=yes"
18859 echo "$as_me: failed program was:" >&5
18860 cat conftest.$ac_ext >&5
18861 eval "$as_ac_Header=no"
18863 rm -f conftest.err conftest.$ac_ext
18865 echo "$as_me:18865: result: `eval echo '${'$as_ac_Header'}'`" >&5
18866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18868 cat >>confdefs.h <<EOF
18869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18875 echo "$as_me:18875: checking for header declaring getopt variables" >&5
18876 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18877 if test "${cf_cv_getopt_header+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 cf_cv_getopt_header=none
18882 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18884 cat >conftest.$ac_ext <<_ACEOF
18885 #line 18885 "configure"
18886 #include "confdefs.h"
18888 #include <$cf_header>
18892 int x = optind; char *y = optarg
18897 rm -f conftest.$ac_objext
18898 if { (eval echo "$as_me:18898: \"$ac_compile\"") >&5
18899 (eval $ac_compile) 2>&5
18901 echo "$as_me:18901: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -s conftest.$ac_objext'
18904 { (eval echo "$as_me:18904: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18907 echo "$as_me:18907: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 cf_cv_getopt_header=$cf_header
18912 echo "$as_me: failed program was:" >&5
18913 cat conftest.$ac_ext >&5
18915 rm -f conftest.$ac_objext conftest.$ac_ext
18919 echo "$as_me:18919: result: $cf_cv_getopt_header" >&5
18920 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18921 if test $cf_cv_getopt_header != none ; then
18923 cat >>confdefs.h <<\EOF
18924 #define HAVE_GETOPT_HEADER 1
18928 if test $cf_cv_getopt_header = getopt.h ; then
18930 cat >>confdefs.h <<\EOF
18931 #define NEED_GETOPT_H 1
18936 echo "$as_me:18936: checking if external environ is declared" >&5
18937 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
18938 if test "${cf_cv_dcl_environ+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 cat >conftest.$ac_ext <<_ACEOF
18943 #line 18943 "configure"
18944 #include "confdefs.h"
18946 #ifdef HAVE_STDLIB_H
18947 #include <stdlib.h>
18949 #include <unistd.h>
18953 int x = (int) environ
18958 rm -f conftest.$ac_objext
18959 if { (eval echo "$as_me:18959: \"$ac_compile\"") >&5
18960 (eval $ac_compile) 2>&5
18962 echo "$as_me:18962: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:18965: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18968 echo "$as_me:18968: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 cf_cv_dcl_environ=yes
18972 echo "$as_me: failed program was:" >&5
18973 cat conftest.$ac_ext >&5
18974 cf_cv_dcl_environ=no
18976 rm -f conftest.$ac_objext conftest.$ac_ext
18979 echo "$as_me:18979: result: $cf_cv_dcl_environ" >&5
18980 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
18982 if test "$cf_cv_dcl_environ" = no ; then
18984 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18986 cat >>confdefs.h <<EOF
18987 #define $cf_result 1
18992 # It's possible (for near-UNIX clones) that the data doesn't exist
18994 echo "$as_me:18994: checking if external environ exists" >&5
18995 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
18996 if test "${cf_cv_have_environ+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 cat >conftest.$ac_ext <<_ACEOF
19001 #line 19001 "configure"
19002 #include "confdefs.h"
19005 extern int environ;
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (eval echo "$as_me:19016: \"$ac_link\"") >&5
19017 (eval $ac_link) 2>&5
19019 echo "$as_me:19019: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try='test -s conftest$ac_exeext'
19022 { (eval echo "$as_me:19022: \"$ac_try\"") >&5
19023 (eval $ac_try) 2>&5
19025 echo "$as_me:19025: \$? = $ac_status" >&5
19026 (exit $ac_status); }; }; then
19027 cf_cv_have_environ=yes
19029 echo "$as_me: failed program was:" >&5
19030 cat conftest.$ac_ext >&5
19031 cf_cv_have_environ=no
19033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19036 echo "$as_me:19036: result: $cf_cv_have_environ" >&5
19037 echo "${ECHO_T}$cf_cv_have_environ" >&6
19039 if test "$cf_cv_have_environ" = yes ; then
19041 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19043 cat >>confdefs.h <<EOF
19044 #define $cf_result 1
19049 echo "$as_me:19049: checking for getenv" >&5
19050 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
19051 if test "${ac_cv_func_getenv+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 cat >conftest.$ac_ext <<_ACEOF
19055 #line 19055 "configure"
19056 #include "confdefs.h"
19057 #define getenv autoconf_temporary
19058 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19065 /* We use char because int might match the return type of a gcc2
19066 builtin and then its argument prototype would still apply. */
19067 char getenv (void);
19073 /* The GNU C library defines stubs for functions which it implements
19074 to always fail with ENOSYS. Some functions are actually named
19075 something starting with __ and the normal name is an alias. */
19076 #if defined (__stub_getenv) || defined (__stub___getenv)
19077 #error found stub for getenv
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (eval echo "$as_me:19086: \"$ac_link\"") >&5
19087 (eval $ac_link) 2>&5
19089 echo "$as_me:19089: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:19092: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:19095: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_func_getenv=yes
19099 echo "$as_me: failed program was:" >&5
19100 cat conftest.$ac_ext >&5
19101 ac_cv_func_getenv=no
19103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19105 echo "$as_me:19105: result: $ac_cv_func_getenv" >&5
19106 echo "${ECHO_T}$ac_cv_func_getenv" >&6
19108 for ac_func in putenv setenv strdup
19110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19111 echo "$as_me:19111: checking for $ac_func" >&5
19112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19113 if eval "test \"\${$as_ac_var+set}\" = set"; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19116 cat >conftest.$ac_ext <<_ACEOF
19117 #line 19117 "configure"
19118 #include "confdefs.h"
19119 #define $ac_func autoconf_temporary
19120 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19127 /* We use char because int might match the return type of a gcc2
19128 builtin and then its argument prototype would still apply. */
19129 char $ac_func (void);
19135 /* The GNU C library defines stubs for functions which it implements
19136 to always fail with ENOSYS. Some functions are actually named
19137 something starting with __ and the normal name is an alias. */
19138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19139 #error found stub for $ac_func
19142 return $ac_func ();
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (eval echo "$as_me:19148: \"$ac_link\"") >&5
19149 (eval $ac_link) 2>&5
19151 echo "$as_me:19151: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:19154: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:19157: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 eval "$as_ac_var=yes"
19161 echo "$as_me: failed program was:" >&5
19162 cat conftest.$ac_ext >&5
19163 eval "$as_ac_var=no"
19165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19167 echo "$as_me:19167: result: `eval echo '${'$as_ac_var'}'`" >&5
19168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19169 if test `eval echo '${'$as_ac_var'}'` = yes; then
19170 cat >>confdefs.h <<EOF
19171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19177 echo "$as_me:19177: checking if getenv returns consistent values" >&5
19178 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
19179 if test "${cf_cv_consistent_getenv+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 if test "$cross_compiling" = yes; then
19184 cf_cv_consistent_getenv=unknown
19186 cat >conftest.$ac_ext <<_ACEOF
19187 #line 19187 "configure"
19188 #include "confdefs.h"
19190 #include <stdlib.h>
19191 #include <unistd.h>
19193 #include <string.h>
19194 #include <sys/types.h>
19196 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
19197 extern char **environ; /* POSIX, but some systems are not... */
19200 #if defined(HAVE_STRDUP)
19201 #define str_alloc(s) strdup(s)
19203 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
19206 static void set_value(const char *name, const char *value)
19208 #if defined(HAVE_SETENV)
19209 setenv(name, value, 1);
19210 #elif defined(HAVE_PUTENV)
19212 sprintf(buffer, "%s=%s", name, value);
19213 putenv(str_alloc(buffer));
19215 #error neither putenv/setenv found
19221 size_t numenv, limit, j;
19226 for (numenv = 0; environ[numenv]; ++numenv) ;
19227 limit = numenv + 10;
19228 mynames = (char **) calloc(limit + 1, sizeof(char *));
19229 myvalues = (char **) calloc(limit + 1, sizeof(char *));
19230 mypointer = (char **) calloc(limit + 1, sizeof(char *));
19231 #if defined(HAVE_ENVIRON)
19232 for (j = 0; environ[j]; ++j) {
19233 mynames[j] = str_alloc(environ[j]);
19234 equals = strchr(mynames[j], '=');
19237 myvalues[j] = str_alloc(equals);
19239 myvalues[j] = str_alloc("");
19243 for (j = numenv; j < limit; ++j) {
19251 sprintf(name, "TERM%lu", (unsigned long) k);
19252 for (jk = 0; jk < j; ++jk) {
19253 if (!strcmp(name, mynames[jk])) {
19260 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
19261 set_value(name, value);
19262 mynames[j] = str_alloc(name);
19263 myvalues[j] = str_alloc(value);
19265 for (pass = 0; pass < 3; ++pass) {
19266 for (j = 0; j < limit; ++j) {
19267 char *value = getenv(mynames[j]);
19270 fprintf(stderr, "getenv returned null for %s\n", mynames[j]);
19271 ${cf_cv_main_return:-return}(1);
19272 } else if (value != mypointer[j]) {
19273 fprintf(stderr, "getenv returned different pointer for %s\n", mynames[j]);
19274 ${cf_cv_main_return:-return}(1);
19275 } else if (strcmp(value, myvalues[j])) {
19276 fprintf(stderr, "getenv returned different value for %s\n", mynames[j]);
19277 ${cf_cv_main_return:-return}(1);
19281 mypointer[j] = value;
19282 for (k = 0; k < j; ++k) {
19283 if (mypointer[j] == mypointer[k]) {
19284 fprintf(stderr, "getenv returned same pointer for %s and %s\n", mynames[j], mynames[k]);
19285 ${cf_cv_main_return:-return}(1);
19291 ${cf_cv_main_return:-return}(0);
19295 rm -f conftest$ac_exeext
19296 if { (eval echo "$as_me:19296: \"$ac_link\"") >&5
19297 (eval $ac_link) 2>&5
19299 echo "$as_me:19299: \$? = $ac_status" >&5
19300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19301 { (eval echo "$as_me:19301: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:19304: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 cf_cv_consistent_getenv=yes
19308 echo "$as_me: program exited with status $ac_status" >&5
19309 echo "$as_me: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 cf_cv_consistent_getenv=no
19313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19317 echo "$as_me:19317: result: $cf_cv_consistent_getenv" >&5
19318 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
19320 if test "x$cf_cv_consistent_getenv" = xno
19323 cat >>confdefs.h <<\EOF
19324 #define HAVE_CONSISTENT_GETENV 1
19329 if test "x$cf_cv_consistent_getenv" = xno && \
19330 test "x$cf_with_trace" = xyes
19332 { echo "$as_me:19332: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
19333 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
19336 echo "$as_me:19336: checking if sys/time.h works with sys/select.h" >&5
19337 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
19338 if test "${cf_cv_sys_time_select+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 cat >conftest.$ac_ext <<_ACEOF
19343 #line 19343 "configure"
19344 #include "confdefs.h"
19346 #include <sys/types.h>
19347 #ifdef HAVE_SYS_TIME_H
19348 #include <sys/time.h>
19350 #ifdef HAVE_SYS_SELECT_H
19351 #include <sys/select.h>
19362 rm -f conftest.$ac_objext
19363 if { (eval echo "$as_me:19363: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>&5
19366 echo "$as_me:19366: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:19369: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:19372: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 cf_cv_sys_time_select=yes
19376 echo "$as_me: failed program was:" >&5
19377 cat conftest.$ac_ext >&5
19378 cf_cv_sys_time_select=no
19380 rm -f conftest.$ac_objext conftest.$ac_ext
19384 echo "$as_me:19384: result: $cf_cv_sys_time_select" >&5
19385 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
19386 test "$cf_cv_sys_time_select" = yes &&
19387 cat >>confdefs.h <<\EOF
19388 #define HAVE_SYS_TIME_SELECT 1
19391 ### checks for compiler characteristics
19393 ac_cpp='$CPP $CPPFLAGS'
19394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19397 ac_main_return=return
19399 echo "$as_me:19399: checking for an ANSI C-conforming const" >&5
19400 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19401 if test "${ac_cv_c_const+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 cat >conftest.$ac_ext <<_ACEOF
19405 #line 19405 "configure"
19406 #include "confdefs.h"
19411 /* FIXME: Include the comments suggested by Paul. */
19412 #ifndef __cplusplus
19413 /* Ultrix mips cc rejects this. */
19414 typedef int charset[2];
19416 /* SunOS 4.1.1 cc rejects this. */
19417 char const *const *ccp;
19419 /* NEC SVR4.0.2 mips cc rejects this. */
19420 struct point {int x, y;};
19421 static struct point const zero = {0,0};
19422 /* AIX XL C 1.02.0.0 rejects this.
19423 It does not let you subtract one const X* pointer from another in
19424 an arm of an if-expression whose if-part is not a constant
19426 const char *g = "string";
19427 ccp = &g + (g ? g-g : 0);
19428 /* HPUX 7.0 cc rejects these. */
19431 ccp = (char const *const *) p;
19432 { /* SCO 3.2v4 cc rejects this. */
19434 char const *s = 0 ? (char *) 0 : (char const *) 0;
19438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19439 int x[] = {25, 17};
19440 const int *foo = &x[0];
19443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19444 typedef const int *iptr;
19448 { /* AIX XL C 1.02.0.0 rejects this saying
19449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19450 struct s { int j; const int *ap[3]; };
19451 struct s *b; b->j = 5;
19453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19454 const int foo = 10;
19462 rm -f conftest.$ac_objext
19463 if { (eval echo "$as_me:19463: \"$ac_compile\"") >&5
19464 (eval $ac_compile) 2>&5
19466 echo "$as_me:19466: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:19469: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19472 echo "$as_me:19472: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19476 echo "$as_me: failed program was:" >&5
19477 cat conftest.$ac_ext >&5
19480 rm -f conftest.$ac_objext conftest.$ac_ext
19482 echo "$as_me:19482: result: $ac_cv_c_const" >&5
19483 echo "${ECHO_T}$ac_cv_c_const" >&6
19484 if test $ac_cv_c_const = no; then
19486 cat >>confdefs.h <<\EOF
19492 echo "$as_me:19492: checking for inline" >&5
19493 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19494 if test "${ac_cv_c_inline+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 for ac_kw in inline __inline__ __inline; do
19499 cat >conftest.$ac_ext <<_ACEOF
19500 #line 19500 "configure"
19501 #include "confdefs.h"
19502 #ifndef __cplusplus
19503 static $ac_kw int static_foo () {return 0; }
19504 $ac_kw int foo () {return 0; }
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:19509: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>&5
19512 echo "$as_me:19512: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (eval echo "$as_me:19515: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:19518: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_c_inline=$ac_kw; break
19522 echo "$as_me: failed program was:" >&5
19523 cat conftest.$ac_ext >&5
19525 rm -f conftest.$ac_objext conftest.$ac_ext
19529 echo "$as_me:19529: result: $ac_cv_c_inline" >&5
19530 echo "${ECHO_T}$ac_cv_c_inline" >&6
19531 case $ac_cv_c_inline in
19534 cat >>confdefs.h <<\EOF
19538 *) cat >>confdefs.h <<EOF
19539 #define inline $ac_cv_c_inline
19545 if test "$ac_cv_c_inline" != no ; then
19546 NCURSES_INLINE=inline
19547 if test "$INTEL_COMPILER" = yes
19550 elif test "$CLANG_COMPILER" = yes
19553 elif test "$GCC" = yes
19555 echo "$as_me:19555: checking if $CC supports options to tune inlining" >&5
19556 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
19557 if test "${cf_cv_gcc_inline+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 cf_save_CFLAGS=$CFLAGS
19562 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
19563 cat >conftest.$ac_ext <<_ACEOF
19564 #line 19564 "configure"
19565 #include "confdefs.h"
19566 inline int foo(void) { return 1; }
19570 ${cf_cv_main_return:-return} foo()
19575 rm -f conftest.$ac_objext
19576 if { (eval echo "$as_me:19576: \"$ac_compile\"") >&5
19577 (eval $ac_compile) 2>&5
19579 echo "$as_me:19579: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:19582: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:19585: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 cf_cv_gcc_inline=yes
19589 echo "$as_me: failed program was:" >&5
19590 cat conftest.$ac_ext >&5
19591 cf_cv_gcc_inline=no
19593 rm -f conftest.$ac_objext conftest.$ac_ext
19594 CFLAGS=$cf_save_CFLAGS
19597 echo "$as_me:19597: result: $cf_cv_gcc_inline" >&5
19598 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
19599 if test "$cf_cv_gcc_inline" = yes ; then
19604 cf_new_extra_cppflags=
19606 for cf_add_cflags in --param max-inline-insns-single=1200
19608 case $cf_fix_cppflags in
19610 case $cf_add_cflags in
19611 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19612 case $cf_add_cflags in
19614 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19616 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19617 && test -z "${cf_tst_cflags}" \
19618 && cf_fix_cppflags=yes
19620 if test $cf_fix_cppflags = yes ; then
19622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19626 elif test "${cf_tst_cflags}" = "\"'" ; then
19628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19635 case "$CPPFLAGS" in
19639 case $cf_add_cflags in
19641 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19643 CPPFLAGS=`echo "$CPPFLAGS" | \
19644 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19645 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19650 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19651 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19658 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19659 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19666 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19667 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19669 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19671 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19672 && test -z "${cf_tst_cflags}" \
19673 && cf_fix_cppflags=no
19678 if test -n "$cf_new_cflags" ; then
19680 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19681 CFLAGS="${CFLAGS}$cf_new_cflags"
19685 if test -n "$cf_new_cppflags" ; then
19687 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19688 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19692 if test -n "$cf_new_extra_cppflags" ; then
19694 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19695 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19703 echo "$as_me:19703: checking for signal global datatype" >&5
19704 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
19705 if test "${cf_cv_sig_atomic_t+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 "volatile sig_atomic_t" \
19714 cat >conftest.$ac_ext <<_ACEOF
19715 #line 19715 "configure"
19716 #include "confdefs.h"
19718 #include <sys/types.h>
19719 #include <signal.h>
19724 static void handler(int sig)
19732 signal(SIGINT, handler);
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:19739: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>&5
19742 echo "$as_me:19742: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:19745: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:19748: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 cf_cv_sig_atomic_t=$cf_type
19752 echo "$as_me: failed program was:" >&5
19753 cat conftest.$ac_ext >&5
19754 cf_cv_sig_atomic_t=no
19756 rm -f conftest.$ac_objext conftest.$ac_ext
19757 test "$cf_cv_sig_atomic_t" != no && break
19762 echo "$as_me:19762: result: $cf_cv_sig_atomic_t" >&5
19763 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
19764 test "$cf_cv_sig_atomic_t" != no &&
19765 cat >>confdefs.h <<EOF
19766 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
19769 if test $NCURSES_CHTYPE = auto ; then
19771 echo "$as_me:19771: checking for type of chtype" >&5
19772 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
19773 if test "${cf_cv_typeof_chtype+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 if test "$cross_compiling" = yes; then
19778 cf_cv_typeof_chtype=long
19780 cat >conftest.$ac_ext <<_ACEOF
19781 #line 19781 "configure"
19782 #include "confdefs.h"
19784 #define WANT_BITS 31
19788 FILE *fp = fopen("cf_test.out", "w");
19790 char *result = "long";
19791 if (sizeof(unsigned long) > sizeof(unsigned int)) {
19794 for (n = 0; n < WANT_BITS; n++) {
19797 if (y != 1 || x == 0) {
19803 * If x is nonzero, an int is big enough for the bits
19806 result = (x != 0) ? "int" : "long";
19811 ${cf_cv_main_return:-return}(0);
19815 rm -f conftest$ac_exeext
19816 if { (eval echo "$as_me:19816: \"$ac_link\"") >&5
19817 (eval $ac_link) 2>&5
19819 echo "$as_me:19819: \$? = $ac_status" >&5
19820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19821 { (eval echo "$as_me:19821: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:19824: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 cf_cv_typeof_chtype=`cat cf_test.out`
19828 echo "$as_me: program exited with status $ac_status" >&5
19829 echo "$as_me: failed program was:" >&5
19830 cat conftest.$ac_ext >&5
19831 cf_cv_typeof_chtype=long
19833 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19839 echo "$as_me:19839: result: $cf_cv_typeof_chtype" >&5
19840 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
19842 cat >>confdefs.h <<EOF
19843 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
19847 cf_cv_typeof_chtype=$NCURSES_CHTYPE
19849 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
19851 echo "$as_me:19851: checking if unsigned literals are legal" >&5
19852 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
19853 if test "${cf_cv_unsigned_literals+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 cat >conftest.$ac_ext <<_ACEOF
19858 #line 19858 "configure"
19859 #include "confdefs.h"
19864 long x = 1L + 1UL + 1U + 1
19869 rm -f conftest.$ac_objext
19870 if { (eval echo "$as_me:19870: \"$ac_compile\"") >&5
19871 (eval $ac_compile) 2>&5
19873 echo "$as_me:19873: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -s conftest.$ac_objext'
19876 { (eval echo "$as_me:19876: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19879 echo "$as_me:19879: \$? = $ac_status" >&5
19880 (exit $ac_status); }; }; then
19881 cf_cv_unsigned_literals=yes
19883 echo "$as_me: failed program was:" >&5
19884 cat conftest.$ac_ext >&5
19885 cf_cv_unsigned_literals=no
19887 rm -f conftest.$ac_objext conftest.$ac_ext
19891 echo "$as_me:19891: result: $cf_cv_unsigned_literals" >&5
19892 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
19895 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
19896 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
19898 if test $NCURSES_MMASK_T = auto ; then
19899 cf_cv_typeof_mmask_t=long
19901 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
19903 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
19905 ### Checks for external-data
19907 echo "$as_me:19907: checking if external errno is declared" >&5
19908 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
19909 if test "${cf_cv_dcl_errno+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19914 #line 19914 "configure"
19915 #include "confdefs.h"
19917 #ifdef HAVE_STDLIB_H
19918 #include <stdlib.h>
19921 #include <sys/types.h>
19926 int x = (int) errno; (void)x
19931 rm -f conftest.$ac_objext
19932 if { (eval echo "$as_me:19932: \"$ac_compile\"") >&5
19933 (eval $ac_compile) 2>&5
19935 echo "$as_me:19935: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:19938: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:19941: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 cf_cv_dcl_errno=yes
19945 echo "$as_me: failed program was:" >&5
19946 cat conftest.$ac_ext >&5
19949 rm -f conftest.$ac_objext conftest.$ac_ext
19952 echo "$as_me:19952: result: $cf_cv_dcl_errno" >&5
19953 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
19955 if test "$cf_cv_dcl_errno" = no ; then
19957 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19959 cat >>confdefs.h <<EOF
19960 #define $cf_result 1
19965 # It's possible (for near-UNIX clones) that the data doesn't exist
19967 echo "$as_me:19967: checking if external errno exists" >&5
19968 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
19969 if test "${cf_cv_have_errno+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 cat >conftest.$ac_ext <<_ACEOF
19974 #line 19974 "configure"
19975 #include "confdefs.h"
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:19989: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>&5
19992 echo "$as_me:19992: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -s conftest$ac_exeext'
19995 { (eval echo "$as_me:19995: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:19998: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 cf_cv_have_errno=yes
20002 echo "$as_me: failed program was:" >&5
20003 cat conftest.$ac_ext >&5
20004 cf_cv_have_errno=no
20006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20009 echo "$as_me:20009: result: $cf_cv_have_errno" >&5
20010 echo "${ECHO_T}$cf_cv_have_errno" >&6
20012 if test "$cf_cv_have_errno" = yes ; then
20014 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20016 cat >>confdefs.h <<EOF
20017 #define $cf_result 1
20022 echo "$as_me:20022: checking if data-only library module links" >&5
20023 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
20024 if test "${cf_cv_link_dataonly+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 cat >conftest.$ac_ext <<EOF
20030 #line 20030 "configure"
20031 int testdata[3] = { 123, 456, 789 };
20033 if { (eval echo "$as_me:20033: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>&5
20036 echo "$as_me:20036: \$? = $ac_status" >&5
20037 (exit $ac_status); } ; then
20038 mv conftest.o data.o && \
20039 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
20041 rm -f conftest.$ac_ext data.o
20042 cat >conftest.$ac_ext <<EOF
20043 #line 20043 "configure"
20047 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
20049 extern int testdata[3];
20050 return testdata[0] == 123
20051 && testdata[1] == 456
20052 && testdata[2] == 789;
20056 if { (eval echo "$as_me:20056: \"$ac_compile\"") >&5
20057 (eval $ac_compile) 2>&5
20059 echo "$as_me:20059: \$? = $ac_status" >&5
20060 (exit $ac_status); }; then
20061 mv conftest.o func.o && \
20062 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
20064 rm -f conftest.$ac_ext func.o
20065 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
20066 cf_saveLIBS="$LIBS"
20067 LIBS="conftest.a $LIBS"
20068 if test "$cross_compiling" = yes; then
20069 cf_cv_link_dataonly=unknown
20071 cat >conftest.$ac_ext <<_ACEOF
20072 #line 20072 "configure"
20073 #include "confdefs.h"
20077 extern int testfunc();
20078 ${cf_cv_main_return:-return} (!testfunc());
20082 rm -f conftest$ac_exeext
20083 if { (eval echo "$as_me:20083: \"$ac_link\"") >&5
20084 (eval $ac_link) 2>&5
20086 echo "$as_me:20086: \$? = $ac_status" >&5
20087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20088 { (eval echo "$as_me:20088: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 echo "$as_me:20091: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 cf_cv_link_dataonly=yes
20095 echo "$as_me: program exited with status $ac_status" >&5
20096 echo "$as_me: failed program was:" >&5
20097 cat conftest.$ac_ext >&5
20098 cf_cv_link_dataonly=no
20100 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20102 LIBS="$cf_saveLIBS"
20106 echo "$as_me:20106: result: $cf_cv_link_dataonly" >&5
20107 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
20109 if test "$cf_cv_link_dataonly" = no ; then
20111 cat >>confdefs.h <<\EOF
20112 #define BROKEN_LINKER 1
20118 ### Checks for library functions.
20148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20149 echo "$as_me:20149: checking for $ac_func" >&5
20150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20151 if eval "test \"\${$as_ac_var+set}\" = set"; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 cat >conftest.$ac_ext <<_ACEOF
20155 #line 20155 "configure"
20156 #include "confdefs.h"
20157 #define $ac_func autoconf_temporary
20158 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20165 /* We use char because int might match the return type of a gcc2
20166 builtin and then its argument prototype would still apply. */
20167 char $ac_func (void);
20173 /* The GNU C library defines stubs for functions which it implements
20174 to always fail with ENOSYS. Some functions are actually named
20175 something starting with __ and the normal name is an alias. */
20176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20177 #error found stub for $ac_func
20180 return $ac_func ();
20185 rm -f conftest.$ac_objext conftest$ac_exeext
20186 if { (eval echo "$as_me:20186: \"$ac_link\"") >&5
20187 (eval $ac_link) 2>&5
20189 echo "$as_me:20189: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try='test -s conftest$ac_exeext'
20192 { (eval echo "$as_me:20192: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20195 echo "$as_me:20195: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 eval "$as_ac_var=yes"
20199 echo "$as_me: failed program was:" >&5
20200 cat conftest.$ac_ext >&5
20201 eval "$as_ac_var=no"
20203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20205 echo "$as_me:20205: result: `eval echo '${'$as_ac_var'}'`" >&5
20206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20207 if test `eval echo '${'$as_ac_var'}'` = yes; then
20208 cat >>confdefs.h <<EOF
20209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20215 if test "x$ac_cv_func_getopt" = xno && \
20216 test "x$cf_with_progs$cf_with_tests" != xnono; then
20217 { { echo "$as_me:20217: error: getopt is required for building programs" >&5
20218 echo "$as_me: error: getopt is required for building programs" >&2;}
20219 { (exit 1); exit 1; }; }
20222 if test "x$with_safe_sprintf" = xyes
20224 if test "x$ac_cv_func_vsnprintf" = xyes
20226 { echo "$as_me:20226: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
20227 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
20230 cat >>confdefs.h <<\EOF
20231 #define USE_SAFE_SPRINTF 1
20237 if test "x$with_getcap" = "xyes" ; then
20239 echo "$as_me:20239: checking for terminal-capability database functions" >&5
20240 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
20241 if test "${cf_cv_cgetent+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 cat >conftest.$ac_ext <<_ACEOF
20246 #line 20246 "configure"
20247 #include "confdefs.h"
20249 #include <stdlib.h>
20256 char *db_array = temp;
20257 cgetent(&buf, &db_array, "vt100");
20258 cgetcap(buf, "tc", '=');
20259 cgetmatch(buf, "tc");
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (eval echo "$as_me:20266: \"$ac_link\"") >&5
20267 (eval $ac_link) 2>&5
20269 echo "$as_me:20269: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -s conftest$ac_exeext'
20272 { (eval echo "$as_me:20272: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:20275: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20279 echo "$as_me: failed program was:" >&5
20280 cat conftest.$ac_ext >&5
20283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20286 echo "$as_me:20286: result: $cf_cv_cgetent" >&5
20287 echo "${ECHO_T}$cf_cv_cgetent" >&6
20289 if test "$cf_cv_cgetent" = yes
20292 cat >>confdefs.h <<\EOF
20293 #define HAVE_BSD_CGETENT 1
20296 echo "$as_me:20296: checking if cgetent uses const parameter" >&5
20297 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
20298 if test "${cf_cv_cgetent_const+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 cat >conftest.$ac_ext <<_ACEOF
20303 #line 20303 "configure"
20304 #include "confdefs.h"
20306 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
20307 #include <stdlib.h>
20314 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
20315 const char *db_array = temp;
20316 cgetent(&buf, &db_array, "vt100");
20318 cgetcap(buf, "tc", '=');
20319 cgetmatch(buf, "tc");
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (eval echo "$as_me:20326: \"$ac_link\"") >&5
20327 (eval $ac_link) 2>&5
20329 echo "$as_me:20329: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -s conftest$ac_exeext'
20332 { (eval echo "$as_me:20332: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:20335: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 cf_cv_cgetent_const=yes
20339 echo "$as_me: failed program was:" >&5
20340 cat conftest.$ac_ext >&5
20341 cf_cv_cgetent_const=no
20343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20346 echo "$as_me:20346: result: $cf_cv_cgetent_const" >&5
20347 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
20348 if test "$cf_cv_cgetent_const" = yes
20351 cat >>confdefs.h <<EOF
20352 #define CGETENT_CONST const
20360 echo "$as_me:20360: checking for isascii" >&5
20361 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
20362 if test "${cf_cv_have_isascii+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20367 #line 20367 "configure"
20368 #include "confdefs.h"
20373 int x = isascii(' ')
20378 rm -f conftest.$ac_objext conftest$ac_exeext
20379 if { (eval echo "$as_me:20379: \"$ac_link\"") >&5
20380 (eval $ac_link) 2>&5
20382 echo "$as_me:20382: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -s conftest$ac_exeext'
20385 { (eval echo "$as_me:20385: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20388 echo "$as_me:20388: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 cf_cv_have_isascii=yes
20392 echo "$as_me: failed program was:" >&5
20393 cat conftest.$ac_ext >&5
20394 cf_cv_have_isascii=no
20396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20399 echo "$as_me:20399: result: $cf_cv_have_isascii" >&5
20400 echo "${ECHO_T}$cf_cv_have_isascii" >&6
20401 test "$cf_cv_have_isascii" = yes &&
20402 cat >>confdefs.h <<\EOF
20403 #define HAVE_ISASCII 1
20406 if test "$ac_cv_func_sigaction" = yes; then
20407 echo "$as_me:20407: checking whether sigaction needs _POSIX_SOURCE" >&5
20408 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
20409 cat >conftest.$ac_ext <<_ACEOF
20410 #line 20410 "configure"
20411 #include "confdefs.h"
20413 #include <sys/types.h>
20414 #include <signal.h>
20418 struct sigaction act
20423 rm -f conftest.$ac_objext
20424 if { (eval echo "$as_me:20424: \"$ac_compile\"") >&5
20425 (eval $ac_compile) 2>&5
20427 echo "$as_me:20427: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (eval echo "$as_me:20430: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:20433: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20437 echo "$as_me: failed program was:" >&5
20438 cat conftest.$ac_ext >&5
20440 cat >conftest.$ac_ext <<_ACEOF
20441 #line 20441 "configure"
20442 #include "confdefs.h"
20444 #define _POSIX_SOURCE
20445 #include <sys/types.h>
20446 #include <signal.h>
20450 struct sigaction act
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:20456: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>&5
20459 echo "$as_me:20459: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -s conftest.$ac_objext'
20462 { (eval echo "$as_me:20462: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20465 echo "$as_me:20465: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20469 cat >>confdefs.h <<\EOF
20470 #define _POSIX_SOURCE 1
20474 echo "$as_me: failed program was:" >&5
20475 cat conftest.$ac_ext >&5
20478 rm -f conftest.$ac_objext conftest.$ac_ext
20480 rm -f conftest.$ac_objext conftest.$ac_ext
20481 echo "$as_me:20481: result: $sigact_bad" >&5
20482 echo "${ECHO_T}$sigact_bad" >&6
20485 echo "$as_me:20485: checking if nanosleep really works" >&5
20486 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
20487 if test "${cf_cv_func_nanosleep+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 if test "$cross_compiling" = yes; then
20492 cf_cv_func_nanosleep=unknown
20494 cat >conftest.$ac_ext <<_ACEOF
20495 #line 20495 "configure"
20496 #include "confdefs.h"
20502 #ifdef HAVE_SYS_TIME_H
20503 #include <sys/time.h>
20507 struct timespec ts1, ts2;
20510 ts1.tv_nsec = 750000000;
20514 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
20515 ${cf_cv_main_return:-return}(code != 0);
20519 rm -f conftest$ac_exeext
20520 if { (eval echo "$as_me:20520: \"$ac_link\"") >&5
20521 (eval $ac_link) 2>&5
20523 echo "$as_me:20523: \$? = $ac_status" >&5
20524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20525 { (eval echo "$as_me:20525: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:20528: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 cf_cv_func_nanosleep=yes
20532 echo "$as_me: program exited with status $ac_status" >&5
20533 echo "$as_me: failed program was:" >&5
20534 cat conftest.$ac_ext >&5
20535 cf_cv_func_nanosleep=no
20537 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20540 echo "$as_me:20540: result: $cf_cv_func_nanosleep" >&5
20541 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
20543 test "$cf_cv_func_nanosleep" = "yes" &&
20544 cat >>confdefs.h <<\EOF
20545 #define HAVE_NANOSLEEP 1
20556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20557 echo "$as_me:20557: checking for $ac_header" >&5
20558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 cat >conftest.$ac_ext <<_ACEOF
20563 #line 20563 "configure"
20564 #include "confdefs.h"
20565 #include <$ac_header>
20567 if { (eval echo "$as_me:20567: \"$ac_cpp conftest.$ac_ext\"") >&5
20568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20570 egrep -v '^ *\+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:20573: \$? = $ac_status" >&5
20574 (exit $ac_status); } >/dev/null; then
20575 if test -s conftest.err; then
20576 ac_cpp_err=$ac_c_preproc_warn_flag
20583 if test -z "$ac_cpp_err"; then
20584 eval "$as_ac_Header=yes"
20586 echo "$as_me: failed program was:" >&5
20587 cat conftest.$ac_ext >&5
20588 eval "$as_ac_Header=no"
20590 rm -f conftest.err conftest.$ac_ext
20592 echo "$as_me:20592: result: `eval echo '${'$as_ac_Header'}'`" >&5
20593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20595 cat >>confdefs.h <<EOF
20596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20602 if test "$ac_cv_header_termios_h" = yes ; then
20603 case "$CFLAGS $CPPFLAGS" in
20604 (*-D_POSIX_SOURCE*)
20605 termios_bad=dunno ;;
20606 (*) termios_bad=maybe ;;
20608 if test "$termios_bad" = maybe ; then
20609 echo "$as_me:20609: checking whether termios.h needs _POSIX_SOURCE" >&5
20610 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
20611 cat >conftest.$ac_ext <<_ACEOF
20612 #line 20612 "configure"
20613 #include "confdefs.h"
20614 #include <termios.h>
20618 struct termios foo; int x = foo.c_iflag = 1; (void)x
20623 rm -f conftest.$ac_objext
20624 if { (eval echo "$as_me:20624: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>&5
20627 echo "$as_me:20627: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:20630: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:20633: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20637 echo "$as_me: failed program was:" >&5
20638 cat conftest.$ac_ext >&5
20640 cat >conftest.$ac_ext <<_ACEOF
20641 #line 20641 "configure"
20642 #include "confdefs.h"
20644 #define _POSIX_SOURCE
20645 #include <termios.h>
20649 struct termios foo; int x = foo.c_iflag = 2; (void)x
20654 rm -f conftest.$ac_objext
20655 if { (eval echo "$as_me:20655: \"$ac_compile\"") >&5
20656 (eval $ac_compile) 2>&5
20658 echo "$as_me:20658: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -s conftest.$ac_objext'
20661 { (eval echo "$as_me:20661: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:20664: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 termios_bad=unknown
20668 echo "$as_me: failed program was:" >&5
20669 cat conftest.$ac_ext >&5
20671 cat >>confdefs.h <<\EOF
20672 #define _POSIX_SOURCE 1
20676 rm -f conftest.$ac_objext conftest.$ac_ext
20679 rm -f conftest.$ac_objext conftest.$ac_ext
20680 echo "$as_me:20680: result: $termios_bad" >&5
20681 echo "${ECHO_T}$termios_bad" >&6
20685 echo "$as_me:20685: checking for tcgetattr" >&5
20686 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
20687 if test "${cf_cv_have_tcgetattr+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 cat >conftest.$ac_ext <<_ACEOF
20692 #line 20692 "configure"
20693 #include "confdefs.h"
20695 #include <sys/types.h>
20696 #ifdef HAVE_UNISTD_H
20697 #include <unistd.h>
20699 #ifdef HAVE_TERMIOS_H
20700 #include <termios.h>
20701 #define TTY struct termios
20703 #ifdef HAVE_TERMIO_H
20704 #include <termio.h>
20705 #define TTY struct termio
20714 tcgetattr(1, &foo);
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (eval echo "$as_me:20720: \"$ac_link\"") >&5
20721 (eval $ac_link) 2>&5
20723 echo "$as_me:20723: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -s conftest$ac_exeext'
20726 { (eval echo "$as_me:20726: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:20729: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 cf_cv_have_tcgetattr=yes
20733 echo "$as_me: failed program was:" >&5
20734 cat conftest.$ac_ext >&5
20735 cf_cv_have_tcgetattr=no
20737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20739 echo "$as_me:20739: result: $cf_cv_have_tcgetattr" >&5
20740 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
20741 test "$cf_cv_have_tcgetattr" = yes &&
20742 cat >>confdefs.h <<\EOF
20743 #define HAVE_TCGETATTR 1
20746 echo "$as_me:20746: checking for vsscanf function or workaround" >&5
20747 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
20748 if test "${cf_cv_func_vsscanf+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 cat >conftest.$ac_ext <<_ACEOF
20753 #line 20753 "configure"
20754 #include "confdefs.h"
20756 #include <stdarg.h>
20763 vsscanf("from", "%d", ap)
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (eval echo "$as_me:20769: \"$ac_link\"") >&5
20770 (eval $ac_link) 2>&5
20772 echo "$as_me:20772: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -s conftest$ac_exeext'
20775 { (eval echo "$as_me:20775: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20778 echo "$as_me:20778: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 cf_cv_func_vsscanf=vsscanf
20782 echo "$as_me: failed program was:" >&5
20783 cat conftest.$ac_ext >&5
20785 cat >conftest.$ac_ext <<_ACEOF
20786 #line 20786 "configure"
20787 #include "confdefs.h"
20789 #include <stdarg.h>
20796 char *str = "from";
20798 strbuf._flag = _IOREAD;
20799 strbuf._ptr = strbuf._base = (unsigned char *) str;
20800 strbuf._cnt = strlen(str);
20801 strbuf._file = _NFILE;
20802 return (vfscanf(&strbuf, "%d", ap))
20807 rm -f conftest.$ac_objext conftest$ac_exeext
20808 if { (eval echo "$as_me:20808: \"$ac_link\"") >&5
20809 (eval $ac_link) 2>&5
20811 echo "$as_me:20811: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -s conftest$ac_exeext'
20814 { (eval echo "$as_me:20814: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:20817: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 cf_cv_func_vsscanf=vfscanf
20821 echo "$as_me: failed program was:" >&5
20822 cat conftest.$ac_ext >&5
20824 cat >conftest.$ac_ext <<_ACEOF
20825 #line 20825 "configure"
20826 #include "confdefs.h"
20828 #include <stdarg.h>
20835 char *str = "from";
20837 strbuf._flag = _IOREAD;
20838 strbuf._ptr = strbuf._base = (unsigned char *) str;
20839 strbuf._cnt = strlen(str);
20840 strbuf._file = _NFILE;
20841 return (_doscan(&strbuf, "%d", ap))
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (eval echo "$as_me:20847: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>&5
20850 echo "$as_me:20850: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
20852 { ac_try='test -s conftest$ac_exeext'
20853 { (eval echo "$as_me:20853: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:20856: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 cf_cv_func_vsscanf=_doscan
20860 echo "$as_me: failed program was:" >&5
20861 cat conftest.$ac_ext >&5
20863 cf_cv_func_vsscanf=no
20865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20871 echo "$as_me:20871: result: $cf_cv_func_vsscanf" >&5
20872 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
20874 case $cf_cv_func_vsscanf in
20876 cat >>confdefs.h <<\EOF
20877 #define HAVE_VSSCANF 1
20881 cat >>confdefs.h <<\EOF
20882 #define HAVE_VFSCANF 1
20886 cat >>confdefs.h <<\EOF
20887 #define HAVE__DOSCAN 1
20896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20897 echo "$as_me:20897: checking for $ac_header" >&5
20898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 cat >conftest.$ac_ext <<_ACEOF
20903 #line 20903 "configure"
20904 #include "confdefs.h"
20905 #include <$ac_header>
20907 if { (eval echo "$as_me:20907: \"$ac_cpp conftest.$ac_ext\"") >&5
20908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20910 egrep -v '^ *\+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:20913: \$? = $ac_status" >&5
20914 (exit $ac_status); } >/dev/null; then
20915 if test -s conftest.err; then
20916 ac_cpp_err=$ac_c_preproc_warn_flag
20923 if test -z "$ac_cpp_err"; then
20924 eval "$as_ac_Header=yes"
20926 echo "$as_me: failed program was:" >&5
20927 cat conftest.$ac_ext >&5
20928 eval "$as_ac_Header=no"
20930 rm -f conftest.err conftest.$ac_ext
20932 echo "$as_me:20932: result: `eval echo '${'$as_ac_Header'}'`" >&5
20933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20935 cat >>confdefs.h <<EOF
20936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20942 echo "$as_me:20942: checking for working mkstemp" >&5
20943 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
20944 if test "${cf_cv_func_mkstemp+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 if test "$cross_compiling" = yes; then
20950 cf_cv_func_mkstemp=maybe
20952 cat >conftest.$ac_ext <<_ACEOF
20953 #line 20953 "configure"
20954 #include "confdefs.h"
20956 #include <sys/types.h>
20957 #ifdef HAVE_UNISTD_H
20958 #include <unistd.h>
20960 #include <stdlib.h>
20962 #include <string.h>
20963 #include <sys/stat.h>
20966 char *tmpl = "conftestXXXXXX";
20974 for (n = 0; n < 2; ++n) {
20975 strcpy(name[n], tmpl);
20976 if ((fd = mkstemp(name[n])) >= 0) {
20977 if (!strcmp(name[n], tmpl)
20978 || stat(name[n], &sb) != 0
20979 || (sb.st_mode & S_IFMT) != S_IFREG
20980 || (sb.st_mode & 077) != 0) {
20987 && !strcmp(name[0], name[1]))
20989 ${cf_cv_main_return:-return}(result);
20993 rm -f conftest$ac_exeext
20994 if { (eval echo "$as_me:20994: \"$ac_link\"") >&5
20995 (eval $ac_link) 2>&5
20997 echo "$as_me:20997: \$? = $ac_status" >&5
20998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20999 { (eval echo "$as_me:20999: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:21002: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 cf_cv_func_mkstemp=yes
21007 echo "$as_me: program exited with status $ac_status" >&5
21008 echo "$as_me: failed program was:" >&5
21009 cat conftest.$ac_ext >&5
21010 cf_cv_func_mkstemp=no
21013 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21017 echo "$as_me:21017: result: $cf_cv_func_mkstemp" >&5
21018 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
21019 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
21020 echo "$as_me:21020: checking for mkstemp" >&5
21021 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
21022 if test "${ac_cv_func_mkstemp+set}" = set; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 cat >conftest.$ac_ext <<_ACEOF
21026 #line 21026 "configure"
21027 #include "confdefs.h"
21028 #define mkstemp autoconf_temporary
21029 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21036 /* We use char because int might match the return type of a gcc2
21037 builtin and then its argument prototype would still apply. */
21038 char mkstemp (void);
21044 /* The GNU C library defines stubs for functions which it implements
21045 to always fail with ENOSYS. Some functions are actually named
21046 something starting with __ and the normal name is an alias. */
21047 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21048 #error found stub for mkstemp
21056 rm -f conftest.$ac_objext conftest$ac_exeext
21057 if { (eval echo "$as_me:21057: \"$ac_link\"") >&5
21058 (eval $ac_link) 2>&5
21060 echo "$as_me:21060: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -s conftest$ac_exeext'
21063 { (eval echo "$as_me:21063: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21066 echo "$as_me:21066: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_func_mkstemp=yes
21070 echo "$as_me: failed program was:" >&5
21071 cat conftest.$ac_ext >&5
21072 ac_cv_func_mkstemp=no
21074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21076 echo "$as_me:21076: result: $ac_cv_func_mkstemp" >&5
21077 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21080 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
21082 cat >>confdefs.h <<\EOF
21083 #define HAVE_MKSTEMP 1
21088 # setup for prototype of fallback for vsscanf()
21090 if test "$cf_cv_func_vsscanf" = vsscanf ; then
21096 if test "x$cross_compiling" = xyes ; then
21097 { echo "$as_me:21097: WARNING: cross compiling: assume setvbuf params not reversed" >&5
21098 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
21100 echo "$as_me:21100: checking whether setvbuf arguments are reversed" >&5
21101 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
21102 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 if test "$cross_compiling" = yes; then
21106 { { echo "$as_me:21106: error: cannot run test program while cross compiling" >&5
21107 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21108 { (exit 1); exit 1; }; }
21110 cat >conftest.$ac_ext <<_ACEOF
21111 #line 21111 "configure"
21112 #include "confdefs.h"
21114 /* If setvbuf has the reversed format, exit 0. */
21118 /* This call has the arguments reversed.
21119 A reversed system may check and see that the address of main
21120 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21121 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
21122 $ac_main_return(1);
21123 putc('\r', stdout);
21124 $ac_main_return(0); /* Non-reversed systems segv here. */
21127 rm -f conftest$ac_exeext
21128 if { (eval echo "$as_me:21128: \"$ac_link\"") >&5
21129 (eval $ac_link) 2>&5
21131 echo "$as_me:21131: \$? = $ac_status" >&5
21132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21133 { (eval echo "$as_me:21133: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21136 echo "$as_me:21136: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_cv_func_setvbuf_reversed=yes
21140 echo "$as_me: program exited with status $ac_status" >&5
21141 echo "$as_me: failed program was:" >&5
21142 cat conftest.$ac_ext >&5
21143 ac_cv_func_setvbuf_reversed=no
21145 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21147 rm -f core core.* *.core
21149 echo "$as_me:21149: result: $ac_cv_func_setvbuf_reversed" >&5
21150 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
21151 if test $ac_cv_func_setvbuf_reversed = yes; then
21153 cat >>confdefs.h <<\EOF
21154 #define SETVBUF_REVERSED 1
21160 echo "$as_me:21160: checking for intptr_t" >&5
21161 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21162 if test "${ac_cv_type_intptr_t+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 cat >conftest.$ac_ext <<_ACEOF
21166 #line 21166 "configure"
21167 #include "confdefs.h"
21168 $ac_includes_default
21172 if ((intptr_t *) 0)
21174 if (sizeof (intptr_t))
21180 rm -f conftest.$ac_objext
21181 if { (eval echo "$as_me:21181: \"$ac_compile\"") >&5
21182 (eval $ac_compile) 2>&5
21184 echo "$as_me:21184: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -s conftest.$ac_objext'
21187 { (eval echo "$as_me:21187: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21190 echo "$as_me:21190: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 ac_cv_type_intptr_t=yes
21194 echo "$as_me: failed program was:" >&5
21195 cat conftest.$ac_ext >&5
21196 ac_cv_type_intptr_t=no
21198 rm -f conftest.$ac_objext conftest.$ac_ext
21200 echo "$as_me:21200: result: $ac_cv_type_intptr_t" >&5
21201 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21202 if test $ac_cv_type_intptr_t = yes; then
21206 cat >>confdefs.h <<EOF
21207 #define intptr_t long
21212 echo "$as_me:21212: checking for ssize_t" >&5
21213 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21214 if test "${ac_cv_type_ssize_t+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 cat >conftest.$ac_ext <<_ACEOF
21218 #line 21218 "configure"
21219 #include "confdefs.h"
21220 $ac_includes_default
21226 if (sizeof (ssize_t))
21232 rm -f conftest.$ac_objext
21233 if { (eval echo "$as_me:21233: \"$ac_compile\"") >&5
21234 (eval $ac_compile) 2>&5
21236 echo "$as_me:21236: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:21239: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:21242: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_type_ssize_t=yes
21246 echo "$as_me: failed program was:" >&5
21247 cat conftest.$ac_ext >&5
21248 ac_cv_type_ssize_t=no
21250 rm -f conftest.$ac_objext conftest.$ac_ext
21252 echo "$as_me:21252: result: $ac_cv_type_ssize_t" >&5
21253 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21254 if test $ac_cv_type_ssize_t = yes; then
21258 cat >>confdefs.h <<EOF
21259 #define ssize_t int
21264 echo "$as_me:21264: checking for type sigaction_t" >&5
21265 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
21266 if test "${cf_cv_type_sigaction+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21271 #line 21271 "configure"
21272 #include "confdefs.h"
21274 #include <signal.h>
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:21284: \"$ac_compile\"") >&5
21285 (eval $ac_compile) 2>&5
21287 echo "$as_me:21287: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -s conftest.$ac_objext'
21290 { (eval echo "$as_me:21290: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:21293: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 cf_cv_type_sigaction=yes
21297 echo "$as_me: failed program was:" >&5
21298 cat conftest.$ac_ext >&5
21299 cf_cv_type_sigaction=no
21301 rm -f conftest.$ac_objext conftest.$ac_ext
21304 echo "$as_me:21304: result: $cf_cv_type_sigaction" >&5
21305 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
21306 test "$cf_cv_type_sigaction" = yes &&
21307 cat >>confdefs.h <<\EOF
21308 #define HAVE_TYPE_SIGACTION 1
21311 echo "$as_me:21311: checking declaration of size-change" >&5
21312 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
21313 if test "${cf_cv_sizechange+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 cf_cv_sizechange=unknown
21318 cf_save_CPPFLAGS="$CPPFLAGS"
21320 for cf_opts in "" "NEED_PTEM_H"
21323 CPPFLAGS="$cf_save_CPPFLAGS"
21324 if test -n "$cf_opts"
21327 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21328 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
21331 cat >conftest.$ac_ext <<_ACEOF
21332 #line 21332 "configure"
21333 #include "confdefs.h"
21334 #include <sys/types.h>
21335 #ifdef HAVE_TERMIOS_H
21336 #include <termios.h>
21338 #ifdef HAVE_TERMIO_H
21339 #include <termio.h>
21344 /* This is a workaround for SCO: they neglected to define struct winsize in
21345 * termios.h -- it's only in termio.h and ptem.h
21347 #include <sys/stream.h>
21348 #include <sys/ptem.h>
21351 #ifdef HAVE_SYS_IOCTL_H
21352 #include <sys/ioctl.h>
21360 struct ttysize win; /* SunOS 3.0... */
21361 int y = win.ts_lines = 2;
21362 int x = win.ts_cols = 1;
21367 struct winsize win; /* everything else */
21368 int y = win.ws_row = 2;
21369 int x = win.ws_col = 1;
21373 no TIOCGSIZE or TIOCGWINSZ
21374 #endif /* TIOCGWINSZ */
21375 #endif /* TIOCGSIZE */
21381 rm -f conftest.$ac_objext
21382 if { (eval echo "$as_me:21382: \"$ac_compile\"") >&5
21383 (eval $ac_compile) 2>&5
21385 echo "$as_me:21385: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -s conftest.$ac_objext'
21388 { (eval echo "$as_me:21388: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21391 echo "$as_me:21391: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
21393 cf_cv_sizechange=yes
21395 echo "$as_me: failed program was:" >&5
21396 cat conftest.$ac_ext >&5
21397 cf_cv_sizechange=no
21399 rm -f conftest.$ac_objext conftest.$ac_ext
21401 CPPFLAGS="$cf_save_CPPFLAGS"
21402 if test "$cf_cv_sizechange" = yes ; then
21403 echo "size-change succeeded ($cf_opts)" >&5
21404 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
21410 echo "$as_me:21410: result: $cf_cv_sizechange" >&5
21411 echo "${ECHO_T}$cf_cv_sizechange" >&6
21412 if test "$cf_cv_sizechange" != no ; then
21414 cat >>confdefs.h <<\EOF
21415 #define HAVE_SIZECHANGE 1
21418 case $cf_cv_sizechange in
21420 cat >>confdefs.h <<EOF
21421 #define $cf_cv_sizechange 1
21428 echo "$as_me:21428: checking for memmove" >&5
21429 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
21430 if test "${ac_cv_func_memmove+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 cat >conftest.$ac_ext <<_ACEOF
21434 #line 21434 "configure"
21435 #include "confdefs.h"
21436 #define memmove autoconf_temporary
21437 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21444 /* We use char because int might match the return type of a gcc2
21445 builtin and then its argument prototype would still apply. */
21446 char memmove (void);
21452 /* The GNU C library defines stubs for functions which it implements
21453 to always fail with ENOSYS. Some functions are actually named
21454 something starting with __ and the normal name is an alias. */
21455 #if defined (__stub_memmove) || defined (__stub___memmove)
21456 #error found stub for memmove
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (eval echo "$as_me:21465: \"$ac_link\"") >&5
21466 (eval $ac_link) 2>&5
21468 echo "$as_me:21468: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try='test -s conftest$ac_exeext'
21471 { (eval echo "$as_me:21471: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 echo "$as_me:21474: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_func_memmove=yes
21478 echo "$as_me: failed program was:" >&5
21479 cat conftest.$ac_ext >&5
21480 ac_cv_func_memmove=no
21482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21484 echo "$as_me:21484: result: $ac_cv_func_memmove" >&5
21485 echo "${ECHO_T}$ac_cv_func_memmove" >&6
21486 if test $ac_cv_func_memmove = yes; then
21490 echo "$as_me:21490: checking for bcopy" >&5
21491 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
21492 if test "${ac_cv_func_bcopy+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21495 cat >conftest.$ac_ext <<_ACEOF
21496 #line 21496 "configure"
21497 #include "confdefs.h"
21498 #define bcopy autoconf_temporary
21499 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21506 /* We use char because int might match the return type of a gcc2
21507 builtin and then its argument prototype would still apply. */
21514 /* The GNU C library defines stubs for functions which it implements
21515 to always fail with ENOSYS. Some functions are actually named
21516 something starting with __ and the normal name is an alias. */
21517 #if defined (__stub_bcopy) || defined (__stub___bcopy)
21518 #error found stub for bcopy
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (eval echo "$as_me:21527: \"$ac_link\"") >&5
21528 (eval $ac_link) 2>&5
21530 echo "$as_me:21530: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
21532 { ac_try='test -s conftest$ac_exeext'
21533 { (eval echo "$as_me:21533: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:21536: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_func_bcopy=yes
21540 echo "$as_me: failed program was:" >&5
21541 cat conftest.$ac_ext >&5
21542 ac_cv_func_bcopy=no
21544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21546 echo "$as_me:21546: result: $ac_cv_func_bcopy" >&5
21547 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
21548 if test $ac_cv_func_bcopy = yes; then
21550 echo "$as_me:21550: checking if bcopy does overlapping moves" >&5
21551 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
21552 if test "${cf_cv_good_bcopy+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 if test "$cross_compiling" = yes; then
21557 cf_cv_good_bcopy=unknown
21559 cat >conftest.$ac_ext <<_ACEOF
21560 #line 21560 "configure"
21561 #include "confdefs.h"
21564 static char data[] = "abcdefghijklmnopqrstuwwxyz";
21566 bcopy(data, temp, sizeof(data));
21567 bcopy(temp+10, temp, 15);
21568 bcopy(temp+5, temp+15, 10);
21569 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
21573 rm -f conftest$ac_exeext
21574 if { (eval echo "$as_me:21574: \"$ac_link\"") >&5
21575 (eval $ac_link) 2>&5
21577 echo "$as_me:21577: \$? = $ac_status" >&5
21578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21579 { (eval echo "$as_me:21579: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21582 echo "$as_me:21582: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
21584 cf_cv_good_bcopy=yes
21586 echo "$as_me: program exited with status $ac_status" >&5
21587 echo "$as_me: failed program was:" >&5
21588 cat conftest.$ac_ext >&5
21589 cf_cv_good_bcopy=no
21591 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21595 echo "$as_me:21595: result: $cf_cv_good_bcopy" >&5
21596 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
21599 cf_cv_good_bcopy=no
21602 if test "$cf_cv_good_bcopy" = yes ; then
21604 cat >>confdefs.h <<\EOF
21605 #define USE_OK_BCOPY 1
21610 cat >>confdefs.h <<\EOF
21611 #define USE_MY_MEMMOVE 1
21618 tty 2>&1 >/dev/null || {
21619 for ac_func in posix_openpt
21621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21622 echo "$as_me:21622: checking for $ac_func" >&5
21623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21624 if eval "test \"\${$as_ac_var+set}\" = set"; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 cat >conftest.$ac_ext <<_ACEOF
21628 #line 21628 "configure"
21629 #include "confdefs.h"
21630 #define $ac_func autoconf_temporary
21631 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21638 /* We use char because int might match the return type of a gcc2
21639 builtin and then its argument prototype would still apply. */
21640 char $ac_func (void);
21646 /* The GNU C library defines stubs for functions which it implements
21647 to always fail with ENOSYS. Some functions are actually named
21648 something starting with __ and the normal name is an alias. */
21649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21650 #error found stub for $ac_func
21653 return $ac_func ();
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (eval echo "$as_me:21659: \"$ac_link\"") >&5
21660 (eval $ac_link) 2>&5
21662 echo "$as_me:21662: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -s conftest$ac_exeext'
21665 { (eval echo "$as_me:21665: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21668 echo "$as_me:21668: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 eval "$as_ac_var=yes"
21672 echo "$as_me: failed program was:" >&5
21673 cat conftest.$ac_ext >&5
21674 eval "$as_ac_var=no"
21676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21678 echo "$as_me:21678: result: `eval echo '${'$as_ac_var'}'`" >&5
21679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21680 if test `eval echo '${'$as_ac_var'}'` = yes; then
21681 cat >>confdefs.h <<EOF
21682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21688 echo "$as_me:21688: checking if poll really works" >&5
21689 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
21690 if test "${cf_cv_working_poll+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 if test "$cross_compiling" = yes; then
21695 cf_cv_working_poll=unknown
21697 cat >conftest.$ac_ext <<_ACEOF
21698 #line 21698 "configure"
21699 #include "confdefs.h"
21701 #include <stdlib.h>
21703 #include <unistd.h>
21708 #include <sys/poll.h>
21711 struct pollfd myfds;
21714 /* check for Darwin bug with respect to "devices" */
21715 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
21718 myfds.events = POLLIN;
21721 ret = poll(&myfds, 1, 100);
21723 if (ret < 0 || (myfds.revents & POLLNVAL)) {
21728 fd = open("/dev/tty", 2); /* O_RDWR */
21730 #ifdef HAVE_POSIX_OPENPT
21732 fd = posix_openpt(O_RDWR);
21737 /* also check with standard input */
21739 myfds.events = POLLIN;
21741 ret = poll(&myfds, 1, 100);
21746 ${cf_cv_main_return:-return}(ret < 0);
21749 rm -f conftest$ac_exeext
21750 if { (eval echo "$as_me:21750: \"$ac_link\"") >&5
21751 (eval $ac_link) 2>&5
21753 echo "$as_me:21753: \$? = $ac_status" >&5
21754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21755 { (eval echo "$as_me:21755: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21758 echo "$as_me:21758: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760 cf_cv_working_poll=yes
21762 echo "$as_me: program exited with status $ac_status" >&5
21763 echo "$as_me: failed program was:" >&5
21764 cat conftest.$ac_ext >&5
21765 cf_cv_working_poll=no
21767 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21770 echo "$as_me:21770: result: $cf_cv_working_poll" >&5
21771 echo "${ECHO_T}$cf_cv_working_poll" >&6
21772 test "$cf_cv_working_poll" = "yes" &&
21773 cat >>confdefs.h <<\EOF
21774 #define HAVE_WORKING_POLL 1
21777 echo "$as_me:21777: checking for va_copy" >&5
21778 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21779 if test "${cf_cv_have_va_copy+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 cat >conftest.$ac_ext <<_ACEOF
21784 #line 21784 "configure"
21785 #include "confdefs.h"
21787 #include <stdarg.h>
21793 static va_list dst;
21794 static va_list src;
21800 rm -f conftest.$ac_objext conftest$ac_exeext
21801 if { (eval echo "$as_me:21801: \"$ac_link\"") >&5
21802 (eval $ac_link) 2>&5
21804 echo "$as_me:21804: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
21806 { ac_try='test -s conftest$ac_exeext'
21807 { (eval echo "$as_me:21807: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:21810: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
21812 cf_cv_have_va_copy=yes
21814 echo "$as_me: failed program was:" >&5
21815 cat conftest.$ac_ext >&5
21816 cf_cv_have_va_copy=no
21818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21820 echo "$as_me:21820: result: $cf_cv_have_va_copy" >&5
21821 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
21823 if test "$cf_cv_have_va_copy" = yes;
21826 cat >>confdefs.h <<\EOF
21827 #define HAVE_VA_COPY 1
21830 else # !cf_cv_have_va_copy
21832 echo "$as_me:21832: checking for __va_copy" >&5
21833 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
21834 if test "${cf_cv_have___va_copy+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 cat >conftest.$ac_ext <<_ACEOF
21839 #line 21839 "configure"
21840 #include "confdefs.h"
21842 #include <stdarg.h>
21848 static va_list dst;
21849 static va_list src;
21850 __va_copy(dst, src)
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:21856: \"$ac_link\"") >&5
21857 (eval $ac_link) 2>&5
21859 echo "$as_me:21859: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try='test -s conftest$ac_exeext'
21862 { (eval echo "$as_me:21862: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21865 echo "$as_me:21865: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 cf_cv_have___va_copy=yes
21869 echo "$as_me: failed program was:" >&5
21870 cat conftest.$ac_ext >&5
21871 cf_cv_have___va_copy=no
21873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21875 echo "$as_me:21875: result: $cf_cv_have___va_copy" >&5
21876 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
21878 if test "$cf_cv_have___va_copy" = yes
21881 cat >>confdefs.h <<\EOF
21882 #define HAVE___VA_COPY 1
21885 else # !cf_cv_have___va_copy
21887 echo "$as_me:21887: checking for __builtin_va_copy" >&5
21888 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
21889 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 cat >conftest.$ac_ext <<_ACEOF
21894 #line 21894 "configure"
21895 #include "confdefs.h"
21897 #include <stdarg.h>
21903 static va_list dst;
21904 static va_list src;
21905 __builtin_va_copy(dst, src)
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (eval echo "$as_me:21911: \"$ac_link\"") >&5
21912 (eval $ac_link) 2>&5
21914 echo "$as_me:21914: \$? = $ac_status" >&5
21915 (exit $ac_status); } &&
21916 { ac_try='test -s conftest$ac_exeext'
21917 { (eval echo "$as_me:21917: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21920 echo "$as_me:21920: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 cf_cv_have___builtin_va_copy=yes
21924 echo "$as_me: failed program was:" >&5
21925 cat conftest.$ac_ext >&5
21926 cf_cv_have___builtin_va_copy=no
21928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21930 echo "$as_me:21930: result: $cf_cv_have___builtin_va_copy" >&5
21931 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
21933 test "$cf_cv_have___builtin_va_copy" = yes &&
21935 cat >>confdefs.h <<\EOF
21936 #define HAVE___BUILTIN_VA_COPY 1
21939 fi # cf_cv_have___va_copy
21941 fi # cf_cv_have_va_copy
21943 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
21948 echo "$as_me:21948: checking if we can simply copy va_list" >&5
21949 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
21950 if test "${cf_cv_pointer_va_list+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 cat >conftest.$ac_ext <<_ACEOF
21955 #line 21955 "configure"
21956 #include "confdefs.h"
21958 #include <stdarg.h>
21971 rm -f conftest.$ac_objext conftest$ac_exeext
21972 if { (eval echo "$as_me:21972: \"$ac_link\"") >&5
21973 (eval $ac_link) 2>&5
21975 echo "$as_me:21975: \$? = $ac_status" >&5
21976 (exit $ac_status); } &&
21977 { ac_try='test -s conftest$ac_exeext'
21978 { (eval echo "$as_me:21978: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21981 echo "$as_me:21981: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 cf_cv_pointer_va_list=yes
21985 echo "$as_me: failed program was:" >&5
21986 cat conftest.$ac_ext >&5
21987 cf_cv_pointer_va_list=no
21989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21991 echo "$as_me:21991: result: $cf_cv_pointer_va_list" >&5
21992 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
21994 if test "$cf_cv_pointer_va_list" = no
21996 echo "$as_me:21996: checking if we can copy va_list indirectly" >&5
21997 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
21998 if test "${cf_cv_array_va_list+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 cat >conftest.$ac_ext <<_ACEOF
22003 #line 22003 "configure"
22004 #include "confdefs.h"
22006 #include <stdarg.h>
22019 rm -f conftest.$ac_objext conftest$ac_exeext
22020 if { (eval echo "$as_me:22020: \"$ac_link\"") >&5
22021 (eval $ac_link) 2>&5
22023 echo "$as_me:22023: \$? = $ac_status" >&5
22024 (exit $ac_status); } &&
22025 { ac_try='test -s conftest$ac_exeext'
22026 { (eval echo "$as_me:22026: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:22029: \$? = $ac_status" >&5
22030 (exit $ac_status); }; }; then
22031 cf_cv_array_va_list=yes
22033 echo "$as_me: failed program was:" >&5
22034 cat conftest.$ac_ext >&5
22035 cf_cv_array_va_list=no
22037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22039 echo "$as_me:22039: result: $cf_cv_array_va_list" >&5
22040 echo "${ECHO_T}$cf_cv_array_va_list" >&6
22041 test "$cf_cv_array_va_list" = yes &&
22042 cat >>confdefs.h <<\EOF
22043 #define ARRAY_VA_LIST 1
22050 echo "$as_me:22050: checking for pid_t" >&5
22051 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22052 if test "${ac_cv_type_pid_t+set}" = set; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 cat >conftest.$ac_ext <<_ACEOF
22056 #line 22056 "configure"
22057 #include "confdefs.h"
22058 $ac_includes_default
22064 if (sizeof (pid_t))
22070 rm -f conftest.$ac_objext
22071 if { (eval echo "$as_me:22071: \"$ac_compile\"") >&5
22072 (eval $ac_compile) 2>&5
22074 echo "$as_me:22074: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
22076 { ac_try='test -s conftest.$ac_objext'
22077 { (eval echo "$as_me:22077: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:22080: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_cv_type_pid_t=yes
22084 echo "$as_me: failed program was:" >&5
22085 cat conftest.$ac_ext >&5
22086 ac_cv_type_pid_t=no
22088 rm -f conftest.$ac_objext conftest.$ac_ext
22090 echo "$as_me:22090: result: $ac_cv_type_pid_t" >&5
22091 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22092 if test $ac_cv_type_pid_t = yes; then
22096 cat >>confdefs.h <<EOF
22102 for ac_header in unistd.h vfork.h
22104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22105 echo "$as_me:22105: checking for $ac_header" >&5
22106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 cat >conftest.$ac_ext <<_ACEOF
22111 #line 22111 "configure"
22112 #include "confdefs.h"
22113 #include <$ac_header>
22115 if { (eval echo "$as_me:22115: \"$ac_cpp conftest.$ac_ext\"") >&5
22116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22118 egrep -v '^ *\+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 echo "$as_me:22121: \$? = $ac_status" >&5
22122 (exit $ac_status); } >/dev/null; then
22123 if test -s conftest.err; then
22124 ac_cpp_err=$ac_c_preproc_warn_flag
22131 if test -z "$ac_cpp_err"; then
22132 eval "$as_ac_Header=yes"
22134 echo "$as_me: failed program was:" >&5
22135 cat conftest.$ac_ext >&5
22136 eval "$as_ac_Header=no"
22138 rm -f conftest.err conftest.$ac_ext
22140 echo "$as_me:22140: result: `eval echo '${'$as_ac_Header'}'`" >&5
22141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22143 cat >>confdefs.h <<EOF
22144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22150 for ac_func in fork vfork
22152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22153 echo "$as_me:22153: checking for $ac_func" >&5
22154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22155 if eval "test \"\${$as_ac_var+set}\" = set"; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 cat >conftest.$ac_ext <<_ACEOF
22159 #line 22159 "configure"
22160 #include "confdefs.h"
22161 #define $ac_func autoconf_temporary
22162 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22169 /* We use char because int might match the return type of a gcc2
22170 builtin and then its argument prototype would still apply. */
22171 char $ac_func (void);
22177 /* The GNU C library defines stubs for functions which it implements
22178 to always fail with ENOSYS. Some functions are actually named
22179 something starting with __ and the normal name is an alias. */
22180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22181 #error found stub for $ac_func
22184 return $ac_func ();
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (eval echo "$as_me:22190: \"$ac_link\"") >&5
22191 (eval $ac_link) 2>&5
22193 echo "$as_me:22193: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
22195 { ac_try='test -s conftest$ac_exeext'
22196 { (eval echo "$as_me:22196: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22199 echo "$as_me:22199: \$? = $ac_status" >&5
22200 (exit $ac_status); }; }; then
22201 eval "$as_ac_var=yes"
22203 echo "$as_me: failed program was:" >&5
22204 cat conftest.$ac_ext >&5
22205 eval "$as_ac_var=no"
22207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22209 echo "$as_me:22209: result: `eval echo '${'$as_ac_var'}'`" >&5
22210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22211 if test `eval echo '${'$as_ac_var'}'` = yes; then
22212 cat >>confdefs.h <<EOF
22213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22219 ac_cv_func_fork_works=$ac_cv_func_fork
22220 if test "x$ac_cv_func_fork" = xyes; then
22221 echo "$as_me:22221: checking for working fork" >&5
22222 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22223 if test "${ac_cv_func_fork_works+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 if test "$cross_compiling" = yes; then
22227 ac_cv_func_fork_works=cross
22229 cat >conftest.$ac_ext <<_ACEOF
22230 /* By Rüdiger Kuhlmann. */
22231 #include <sys/types.h>
22233 # include <unistd.h>
22235 /* Some systems only have a dummy stub for fork() */
22239 $ac_main_return (1);
22240 $ac_main_return (0);
22243 rm -f conftest$ac_exeext
22244 if { (eval echo "$as_me:22244: \"$ac_link\"") >&5
22245 (eval $ac_link) 2>&5
22247 echo "$as_me:22247: \$? = $ac_status" >&5
22248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22249 { (eval echo "$as_me:22249: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22252 echo "$as_me:22252: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_func_fork_works=yes
22256 echo "$as_me: program exited with status $ac_status" >&5
22257 echo "$as_me: failed program was:" >&5
22258 cat conftest.$ac_ext >&5
22259 ac_cv_func_fork_works=no
22261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22264 echo "$as_me:22264: result: $ac_cv_func_fork_works" >&5
22265 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22268 if test "x$ac_cv_func_fork_works" = xcross; then
22270 *-*-amigaos* | *-*-msdosdjgpp*)
22271 # Override, as these systems have only a dummy fork() stub
22272 ac_cv_func_fork_works=no
22275 ac_cv_func_fork_works=yes
22278 { echo "$as_me:22278: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
22279 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
22281 ac_cv_func_vfork_works=$ac_cv_func_vfork
22282 if test "x$ac_cv_func_vfork" = xyes; then
22283 echo "$as_me:22283: checking for working vfork" >&5
22284 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22285 if test "${ac_cv_func_vfork_works+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22288 if test "$cross_compiling" = yes; then
22289 ac_cv_func_vfork_works=cross
22291 cat >conftest.$ac_ext <<_ACEOF
22292 #line 22292 "configure"
22293 #include "confdefs.h"
22294 /* Thanks to Paul Eggert for this test. */
22296 #include <sys/types.h>
22297 #include <sys/stat.h>
22299 # include <unistd.h>
22302 # include <vfork.h>
22304 /* On some sparc systems, changes by the child to local and incoming
22305 argument registers are propagated back to the parent. The compiler
22306 is told about this with #include <vfork.h>, but some compilers
22307 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22308 static variable whose address is put into a register that is
22309 clobbered by the vfork. */
22312 sparc_address_test (int arg)
22314 sparc_address_test (arg) int arg;
22317 static pid_t child;
22335 pid_t parent = getpid ();
22338 sparc_address_test ();
22343 /* Here is another test for sparc vfork register problems. This
22344 test uses lots of local variables, at least as many local
22345 variables as main has allocated so far including compiler
22346 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22347 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22348 reuse the register of parent for one of the local variables,
22349 since it will think that parent can't possibly be used any more
22350 in this routine. Assigning to the local variable will thus
22351 munge parent in the parent process. */
22353 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22354 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22355 /* Convince the compiler that p..p7 are live; otherwise, it might
22356 use the same hardware register for all 8 local variables. */
22357 if (p != p1 || p != p2 || p != p3 || p != p4
22358 || p != p5 || p != p6 || p != p7)
22361 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22362 from child file descriptors. If the child closes a descriptor
22363 before it execs or exits, this munges the parent's descriptor
22364 as well. Test for this by closing stdout in the child. */
22365 _exit(close(fileno(stdout)) != 0);
22370 while (wait(&status) != child)
22373 /* Was there some problem with vforking? */
22376 /* Did the child fail? (This shouldn't happen.) */
22379 /* Did the vfork/compiler bug occur? */
22380 || parent != getpid()
22382 /* Did the file descriptor bug occur? */
22383 || fstat(fileno(stdout), &st) != 0
22388 rm -f conftest$ac_exeext
22389 if { (eval echo "$as_me:22389: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>&5
22392 echo "$as_me:22392: \$? = $ac_status" >&5
22393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22394 { (eval echo "$as_me:22394: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:22397: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 ac_cv_func_vfork_works=yes
22401 echo "$as_me: program exited with status $ac_status" >&5
22402 echo "$as_me: failed program was:" >&5
22403 cat conftest.$ac_ext >&5
22404 ac_cv_func_vfork_works=no
22406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22409 echo "$as_me:22409: result: $ac_cv_func_vfork_works" >&5
22410 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22413 if test "x$ac_cv_func_fork_works" = xcross; then
22414 ac_cv_func_vfork_works=ac_cv_func_vfork
22415 { echo "$as_me:22415: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
22416 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
22419 if test "x$ac_cv_func_vfork_works" = xyes; then
22421 cat >>confdefs.h <<\EOF
22422 #define HAVE_WORKING_VFORK 1
22427 cat >>confdefs.h <<\EOF
22432 if test "x$ac_cv_func_fork_works" = xyes; then
22434 cat >>confdefs.h <<\EOF
22435 #define HAVE_WORKING_FORK 1
22440 echo "$as_me:22440: checking if fopen accepts explicit binary mode" >&5
22441 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
22442 if test "${cf_cv_fopen_bin_r+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 if test "$cross_compiling" = yes; then
22447 cf_cv_fopen_bin_r=unknown
22449 cat >conftest.$ac_ext <<_ACEOF
22450 #line 22450 "configure"
22451 #include "confdefs.h"
22455 FILE *fp = fopen("conftest.tmp", "wb");
22459 for (p = 0; p < 256; ++p) {
22463 fp = fopen("conftest.tmp", "rb");
22465 for (p = 0; p < 256; ++p) {
22478 ${cf_cv_main_return:-return} (rc);
22482 rm -f conftest$ac_exeext
22483 if { (eval echo "$as_me:22483: \"$ac_link\"") >&5
22484 (eval $ac_link) 2>&5
22486 echo "$as_me:22486: \$? = $ac_status" >&5
22487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22488 { (eval echo "$as_me:22488: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:22491: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 cf_cv_fopen_bin_r=yes
22495 echo "$as_me: program exited with status $ac_status" >&5
22496 echo "$as_me: failed program was:" >&5
22497 cat conftest.$ac_ext >&5
22498 cf_cv_fopen_bin_r=no
22500 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22504 echo "$as_me:22504: result: $cf_cv_fopen_bin_r" >&5
22505 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
22506 test "x$cf_cv_fopen_bin_r" != xno &&
22507 cat >>confdefs.h <<\EOF
22508 #define USE_FOPEN_BIN_R 1
22511 # special check for test/ditto.c
22513 echo "$as_me:22513: checking for openpty in -lutil" >&5
22514 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
22515 if test "${ac_cv_lib_util_openpty+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 ac_check_lib_save_LIBS=$LIBS
22519 LIBS="-lutil $LIBS"
22520 cat >conftest.$ac_ext <<_ACEOF
22521 #line 22521 "configure"
22522 #include "confdefs.h"
22524 /* Override any gcc2 internal prototype to avoid an error. */
22528 /* We use char because int might match the return type of a gcc2
22529 builtin and then its argument prototype would still apply. */
22539 rm -f conftest.$ac_objext conftest$ac_exeext
22540 if { (eval echo "$as_me:22540: \"$ac_link\"") >&5
22541 (eval $ac_link) 2>&5
22543 echo "$as_me:22543: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
22545 { ac_try='test -s conftest$ac_exeext'
22546 { (eval echo "$as_me:22546: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22549 echo "$as_me:22549: \$? = $ac_status" >&5
22550 (exit $ac_status); }; }; then
22551 ac_cv_lib_util_openpty=yes
22553 echo "$as_me: failed program was:" >&5
22554 cat conftest.$ac_ext >&5
22555 ac_cv_lib_util_openpty=no
22557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22558 LIBS=$ac_check_lib_save_LIBS
22560 echo "$as_me:22560: result: $ac_cv_lib_util_openpty" >&5
22561 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
22562 if test $ac_cv_lib_util_openpty = yes; then
22568 echo "$as_me:22568: checking for openpty header" >&5
22569 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
22570 if test "${cf_cv_func_openpty+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22574 cf_save_LIBS="$LIBS"
22575 test $cf_cv_lib_util = yes && {
22576 cf_add_libs="$LIBS"
22579 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22580 # filter duplicates
22581 for cf_add_1lib in $cf_add_0lib; do
22582 for cf_add_2lib in $cf_add_libs; do
22583 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22588 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22590 LIBS="$cf_add_libs"
22592 for cf_header in pty.h libutil.h util.h
22594 cat >conftest.$ac_ext <<_ACEOF
22595 #line 22595 "configure"
22596 #include "confdefs.h"
22598 #include <$cf_header>
22604 int x = openpty((int *)0, (int *)0, (char *)0,
22605 (struct termios *)0, (struct winsize *)0);
22611 rm -f conftest.$ac_objext conftest$ac_exeext
22612 if { (eval echo "$as_me:22612: \"$ac_link\"") >&5
22613 (eval $ac_link) 2>&5
22615 echo "$as_me:22615: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -s conftest$ac_exeext'
22618 { (eval echo "$as_me:22618: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:22621: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22624 cf_cv_func_openpty=$cf_header
22628 echo "$as_me: failed program was:" >&5
22629 cat conftest.$ac_ext >&5
22631 cf_cv_func_openpty=no
22634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22636 LIBS="$cf_save_LIBS"
22639 echo "$as_me:22639: result: $cf_cv_func_openpty" >&5
22640 echo "${ECHO_T}$cf_cv_func_openpty" >&6
22642 if test "$cf_cv_func_openpty" != no ; then
22644 cat >>confdefs.h <<EOF
22645 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
22648 cat >>confdefs.h <<\EOF
22649 #define USE_XTERM_PTY 1
22652 if test "x$cf_cv_lib_util" = xyes ; then
22654 cf_add_libs="$TEST_LIBS"
22657 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22658 # filter duplicates
22659 for cf_add_1lib in $cf_add_0lib; do
22660 for cf_add_2lib in $cf_add_libs; do
22661 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22666 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22668 TEST_LIBS="$cf_add_libs"
22673 if test "$with_hashed_db" != no ; then
22675 cat >>confdefs.h <<\EOF
22676 #define USE_HASHED_DB 1
22679 case $with_hashed_db in
22683 if test -d "$with_hashed_db" ; then
22685 if test -n "$with_hashed_db/include" ; then
22686 for cf_add_incdir in $with_hashed_db/include
22688 while test $cf_add_incdir != /usr/include
22690 if test -d $cf_add_incdir
22693 if test -n "$CFLAGS$CPPFLAGS" ; then
22694 # a loop is needed to ensure we can add subdirs of existing dirs
22695 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22696 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22697 cf_have_incdir=yes; break
22702 if test "$cf_have_incdir" = no ; then
22703 if test "$cf_add_incdir" = /usr/local/include ; then
22704 if test "$GCC" = yes
22706 cf_save_CPPFLAGS=$CPPFLAGS
22708 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22709 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22711 cat >conftest.$ac_ext <<_ACEOF
22712 #line 22712 "configure"
22713 #include "confdefs.h"
22723 rm -f conftest.$ac_objext
22724 if { (eval echo "$as_me:22724: \"$ac_compile\"") >&5
22725 (eval $ac_compile) 2>&5
22727 echo "$as_me:22727: \$? = $ac_status" >&5
22728 (exit $ac_status); } &&
22729 { ac_try='test -s conftest.$ac_objext'
22730 { (eval echo "$as_me:22730: \"$ac_try\"") >&5
22731 (eval $ac_try) 2>&5
22733 echo "$as_me:22733: \$? = $ac_status" >&5
22734 (exit $ac_status); }; }; then
22737 echo "$as_me: failed program was:" >&5
22738 cat conftest.$ac_ext >&5
22741 rm -f conftest.$ac_objext conftest.$ac_ext
22742 CPPFLAGS=$cf_save_CPPFLAGS
22747 if test "$cf_have_incdir" = no ; then
22748 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22750 echo "${as_me:-configure}:22750: testing adding $cf_add_incdir to include-path ..." 1>&5
22752 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22754 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22755 test "$cf_top_incdir" = "$cf_add_incdir" && break
22756 cf_add_incdir="$cf_top_incdir"
22767 if test -n "$with_hashed_db/lib" ; then
22768 for cf_add_libdir in $with_hashed_db/lib
22770 if test $cf_add_libdir = /usr/lib ; then
22772 elif test -d $cf_add_libdir
22775 if test -n "$LDFLAGS$LIBS" ; then
22776 # a loop is needed to ensure we can add subdirs of existing dirs
22777 for cf_test_libdir in $LDFLAGS $LIBS ; do
22778 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22779 cf_have_libdir=yes; break
22783 if test "$cf_have_libdir" = no ; then
22784 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22786 echo "${as_me:-configure}:22786: testing adding $cf_add_libdir to library-path ..." 1>&5
22788 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22795 case "$with_hashed_db" in
22797 { echo "$as_me:22797: WARNING: no such directory $with_hashed_db" >&5
22798 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
22804 test "x$prefix" != "xNONE" && \
22805 test -d "$prefix" && \
22807 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
22808 test -d $prefix/include && cf_search="$cf_search $prefix/include"
22809 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
22810 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
22811 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
22812 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
22815 for cf_subdir_prefix in \
22824 test "x$cf_subdir_prefix" != "x$prefix" && \
22825 test -d "$cf_subdir_prefix" && \
22826 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22827 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
22828 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
22829 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
22830 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
22831 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
22832 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"
22837 for cf_item in $cf_search
22840 (*/$with_hashed_db)
22842 if test -n "$cf_item" ; then
22843 for cf_add_incdir in $cf_item
22845 while test $cf_add_incdir != /usr/include
22847 if test -d $cf_add_incdir
22850 if test -n "$CFLAGS$CPPFLAGS" ; then
22851 # a loop is needed to ensure we can add subdirs of existing dirs
22852 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22853 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22854 cf_have_incdir=yes; break
22859 if test "$cf_have_incdir" = no ; then
22860 if test "$cf_add_incdir" = /usr/local/include ; then
22861 if test "$GCC" = yes
22863 cf_save_CPPFLAGS=$CPPFLAGS
22865 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22866 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22868 cat >conftest.$ac_ext <<_ACEOF
22869 #line 22869 "configure"
22870 #include "confdefs.h"
22880 rm -f conftest.$ac_objext
22881 if { (eval echo "$as_me:22881: \"$ac_compile\"") >&5
22882 (eval $ac_compile) 2>&5
22884 echo "$as_me:22884: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
22886 { ac_try='test -s conftest.$ac_objext'
22887 { (eval echo "$as_me:22887: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22890 echo "$as_me:22890: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22894 echo "$as_me: failed program was:" >&5
22895 cat conftest.$ac_ext >&5
22898 rm -f conftest.$ac_objext conftest.$ac_ext
22899 CPPFLAGS=$cf_save_CPPFLAGS
22904 if test "$cf_have_incdir" = no ; then
22905 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22907 echo "${as_me:-configure}:22907: testing adding $cf_add_incdir to include-path ..." 1>&5
22909 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22911 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22912 test "$cf_top_incdir" = "$cf_add_incdir" && break
22913 cf_add_incdir="$cf_top_incdir"
22930 test "x$prefix" != "xNONE" && \
22931 test -d "$prefix" && \
22933 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
22934 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
22935 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
22936 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
22937 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
22938 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
22941 for cf_subdir_prefix in \
22950 test "x$cf_subdir_prefix" != "x$prefix" && \
22951 test -d "$cf_subdir_prefix" && \
22952 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22953 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
22954 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
22955 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
22956 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
22957 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
22958 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"
22963 for cf_item in $cf_search
22966 (*/$with_hashed_db)
22968 if test -n "$cf_item" ; then
22969 for cf_add_libdir in $cf_item
22971 if test $cf_add_libdir = /usr/lib ; then
22973 elif test -d $cf_add_libdir
22976 if test -n "$LDFLAGS$LIBS" ; then
22977 # a loop is needed to ensure we can add subdirs of existing dirs
22978 for cf_test_libdir in $LDFLAGS $LIBS ; do
22979 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22980 cf_have_libdir=yes; break
22984 if test "$cf_have_libdir" = no ; then
22985 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22987 echo "${as_me:-configure}:22987: testing adding $cf_add_libdir to library-path ..." 1>&5
22989 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23004 echo "$as_me:23004: checking for db.h" >&5
23005 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
23006 if test "${ac_cv_header_db_h+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 cat >conftest.$ac_ext <<_ACEOF
23010 #line 23010 "configure"
23011 #include "confdefs.h"
23014 if { (eval echo "$as_me:23014: \"$ac_cpp conftest.$ac_ext\"") >&5
23015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23017 egrep -v '^ *\+' conftest.er1 >conftest.err
23019 cat conftest.err >&5
23020 echo "$as_me:23020: \$? = $ac_status" >&5
23021 (exit $ac_status); } >/dev/null; then
23022 if test -s conftest.err; then
23023 ac_cpp_err=$ac_c_preproc_warn_flag
23030 if test -z "$ac_cpp_err"; then
23031 ac_cv_header_db_h=yes
23033 echo "$as_me: failed program was:" >&5
23034 cat conftest.$ac_ext >&5
23035 ac_cv_header_db_h=no
23037 rm -f conftest.err conftest.$ac_ext
23039 echo "$as_me:23039: result: $ac_cv_header_db_h" >&5
23040 echo "${ECHO_T}$ac_cv_header_db_h" >&6
23041 if test $ac_cv_header_db_h = yes; then
23043 echo "$as_me:23043: checking for version of db" >&5
23044 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
23045 if test "${cf_cv_hashed_db_version+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 cf_cv_hashed_db_version=unknown
23051 for cf_db_version in 1 2 3 4 5 6
23054 echo "${as_me:-configure}:23054: testing checking for db version $cf_db_version ..." 1>&5
23056 cat >conftest.$ac_ext <<_ACEOF
23057 #line 23057 "configure"
23058 #include "confdefs.h"
23060 $ac_includes_default
23063 #ifdef DB_VERSION_MAJOR
23064 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
23065 #if $cf_db_version == DB_VERSION_MAJOR
23071 #if $cf_db_version == 1
23072 /* ok: assuming this is DB 1.8.5 */
23086 rm -f conftest.$ac_objext
23087 if { (eval echo "$as_me:23087: \"$ac_compile\"") >&5
23088 (eval $ac_compile) 2>&5
23090 echo "$as_me:23090: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -s conftest.$ac_objext'
23093 { (eval echo "$as_me:23093: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23096 echo "$as_me:23096: \$? = $ac_status" >&5
23097 (exit $ac_status); }; }; then
23099 cf_cv_hashed_db_version=$cf_db_version
23103 echo "$as_me: failed program was:" >&5
23104 cat conftest.$ac_ext >&5
23106 rm -f conftest.$ac_objext conftest.$ac_ext
23110 echo "$as_me:23110: result: $cf_cv_hashed_db_version" >&5
23111 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
23113 if test "$cf_cv_hashed_db_version" = unknown ; then
23114 { { echo "$as_me:23114: error: Cannot determine version of db" >&5
23115 echo "$as_me: error: Cannot determine version of db" >&2;}
23116 { (exit 1); exit 1; }; }
23119 echo "$as_me:23119: checking for db libraries" >&5
23120 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
23121 if test "${cf_cv_hashed_db_libs+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 cf_cv_hashed_db_libs=unknown
23126 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
23128 cf_save_libs="$LIBS"
23129 if test -n "$cf_db_libs"; then
23131 cf_add_libs="$LIBS"
23134 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23135 # filter duplicates
23136 for cf_add_1lib in $cf_add_0lib; do
23137 for cf_add_2lib in $cf_add_libs; do
23138 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23143 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23145 LIBS="$cf_add_libs"
23149 echo "${as_me:-configure}:23149: testing checking for library "$cf_db_libs" ..." 1>&5
23151 cat >conftest.$ac_ext <<_ACEOF
23152 #line 23152 "configure"
23153 #include "confdefs.h"
23155 $ac_includes_default
23162 char *path = "/tmp/foo";
23163 #ifdef DB_VERSION_MAJOR
23164 #if DB_VERSION_MAJOR >= 4
23166 db_create(&result, NULL, 0);
23167 result->open(result,
23174 #elif DB_VERSION_MAJOR >= 3
23176 db_create(&result, NULL, 0);
23177 result->open(result,
23183 #elif DB_VERSION_MAJOR >= 2
23192 #endif /* DB_VERSION_MAJOR */
23194 DB *result = dbopen(path,
23200 ${cf_cv_main_return:-return}(result != 0)
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (eval echo "$as_me:23207: \"$ac_link\"") >&5
23208 (eval $ac_link) 2>&5
23210 echo "$as_me:23210: \$? = $ac_status" >&5
23211 (exit $ac_status); } &&
23212 { ac_try='test -s conftest$ac_exeext'
23213 { (eval echo "$as_me:23213: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23216 echo "$as_me:23216: \$? = $ac_status" >&5
23217 (exit $ac_status); }; }; then
23219 if test -n "$cf_db_libs" ; then
23220 cf_cv_hashed_db_libs=$cf_db_libs
23222 cf_cv_hashed_db_libs=default
23224 LIBS="$cf_save_libs"
23228 echo "$as_me: failed program was:" >&5
23229 cat conftest.$ac_ext >&5
23231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23232 LIBS="$cf_save_libs"
23236 echo "$as_me:23236: result: $cf_cv_hashed_db_libs" >&5
23237 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
23239 if test "$cf_cv_hashed_db_libs" = unknown ; then
23240 { { echo "$as_me:23240: error: Cannot determine library for db" >&5
23241 echo "$as_me: error: Cannot determine library for db" >&2;}
23242 { (exit 1); exit 1; }; }
23243 elif test "$cf_cv_hashed_db_libs" != default ; then
23245 cf_add_libs="$LIBS"
23248 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23249 # filter duplicates
23250 for cf_add_1lib in $cf_add_0lib; do
23251 for cf_add_2lib in $cf_add_libs; do
23252 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23257 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23259 LIBS="$cf_add_libs"
23266 { { echo "$as_me:23266: error: Cannot find db.h" >&5
23267 echo "$as_me: error: Cannot find db.h" >&2;}
23268 { (exit 1); exit 1; }; }
23274 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
23275 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23276 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23279 # Just in case, check if the C compiler has a bool type.
23281 echo "$as_me:23281: checking if we should include stdbool.h" >&5
23282 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
23284 if test "${cf_cv_header_stdbool_h+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23289 #line 23289 "configure"
23290 #include "confdefs.h"
23300 rm -f conftest.$ac_objext
23301 if { (eval echo "$as_me:23301: \"$ac_compile\"") >&5
23302 (eval $ac_compile) 2>&5
23304 echo "$as_me:23304: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
23306 { ac_try='test -s conftest.$ac_objext'
23307 { (eval echo "$as_me:23307: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23310 echo "$as_me:23310: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 cf_cv_header_stdbool_h=0
23314 echo "$as_me: failed program was:" >&5
23315 cat conftest.$ac_ext >&5
23316 cat >conftest.$ac_ext <<_ACEOF
23317 #line 23317 "configure"
23318 #include "confdefs.h"
23321 #include <stdbool.h>
23332 rm -f conftest.$ac_objext
23333 if { (eval echo "$as_me:23333: \"$ac_compile\"") >&5
23334 (eval $ac_compile) 2>&5
23336 echo "$as_me:23336: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -s conftest.$ac_objext'
23339 { (eval echo "$as_me:23339: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:23342: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 cf_cv_header_stdbool_h=1
23346 echo "$as_me: failed program was:" >&5
23347 cat conftest.$ac_ext >&5
23348 cf_cv_header_stdbool_h=0
23350 rm -f conftest.$ac_objext conftest.$ac_ext
23352 rm -f conftest.$ac_objext conftest.$ac_ext
23355 if test "$cf_cv_header_stdbool_h" = 1
23356 then echo "$as_me:23356: result: yes" >&5
23357 echo "${ECHO_T}yes" >&6
23358 else echo "$as_me:23358: result: no" >&5
23359 echo "${ECHO_T}no" >&6
23362 echo "$as_me:23362: checking for builtin bool type" >&5
23363 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
23365 if test "${cf_cv_cc_bool_type+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 cat >conftest.$ac_ext <<_ACEOF
23370 #line 23370 "configure"
23371 #include "confdefs.h"
23374 #include <sys/types.h>
23384 rm -f conftest.$ac_objext
23385 if { (eval echo "$as_me:23385: \"$ac_compile\"") >&5
23386 (eval $ac_compile) 2>&5
23388 echo "$as_me:23388: \$? = $ac_status" >&5
23389 (exit $ac_status); } &&
23390 { ac_try='test -s conftest.$ac_objext'
23391 { (eval echo "$as_me:23391: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23394 echo "$as_me:23394: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396 cf_cv_cc_bool_type=1
23398 echo "$as_me: failed program was:" >&5
23399 cat conftest.$ac_ext >&5
23400 cf_cv_cc_bool_type=0
23402 rm -f conftest.$ac_objext conftest.$ac_ext
23406 if test "$cf_cv_cc_bool_type" = 1
23407 then echo "$as_me:23407: result: yes" >&5
23408 echo "${ECHO_T}yes" >&6
23409 else echo "$as_me:23409: result: no" >&5
23410 echo "${ECHO_T}no" >&6
23413 # Check for C++ compiler characteristics (and ensure that it's there!)
23414 if test -n "$CXX" ; then
23416 ac_cpp='$CXXCPP $CPPFLAGS'
23417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23420 ac_main_return=return
23422 if test -n "$GXX" ; then
23425 LIBS="$LIBS $CXXLIBS"
23426 echo "$as_me:23426: checking if we already have C++ library" >&5
23427 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
23428 cat >conftest.$ac_ext <<_ACEOF
23429 #line 23429 "configure"
23430 #include "confdefs.h"
23432 #include <iostream>
23437 std::cout << "Hello World!" << std::endl;
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:23443: \"$ac_link\"") >&5
23444 (eval $ac_link) 2>&5
23446 echo "$as_me:23446: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:23449: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:23452: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 cf_have_libstdcpp=yes
23456 echo "$as_me: failed program was:" >&5
23457 cat conftest.$ac_ext >&5
23458 cf_have_libstdcpp=no
23460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23461 echo "$as_me:23461: result: $cf_have_libstdcpp" >&5
23462 echo "${ECHO_T}$cf_have_libstdcpp" >&6
23465 if test $cf_have_libstdcpp != yes
23467 case $cf_cv_system_name in
23469 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
23470 cf_stdcpp_libname=stdcpp
23472 cf_stdcpp_libname=stdc++
23476 cf_stdcpp_libname=stdc++
23480 echo "$as_me:23480: checking for library $cf_stdcpp_libname" >&5
23481 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
23482 if test "${cf_cv_libstdcpp+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 LIBS="$LIBS $CXXLIBS"
23489 cf_add_libs="$LIBS"
23492 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23493 # filter duplicates
23494 for cf_add_1lib in $cf_add_0lib; do
23495 for cf_add_2lib in $cf_add_libs; do
23496 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23501 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23503 LIBS="$cf_add_libs"
23505 cat >conftest.$ac_ext <<_ACEOF
23506 #line 23506 "configure"
23507 #include "confdefs.h"
23509 #include <iostream>
23514 std::cout << "Hello World!" << std::endl;
23519 rm -f conftest.$ac_objext conftest$ac_exeext
23520 if { (eval echo "$as_me:23520: \"$ac_link\"") >&5
23521 (eval $ac_link) 2>&5
23523 echo "$as_me:23523: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -s conftest$ac_exeext'
23526 { (eval echo "$as_me:23526: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23529 echo "$as_me:23529: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23531 cf_cv_libstdcpp=yes
23533 echo "$as_me: failed program was:" >&5
23534 cat conftest.$ac_ext >&5
23537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23541 echo "$as_me:23541: result: $cf_cv_libstdcpp" >&5
23542 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
23543 test "$cf_cv_libstdcpp" = yes && {
23544 cf_add_libs="$CXXLIBS"
23547 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23548 # filter duplicates
23549 for cf_add_1lib in $cf_add_0lib; do
23550 for cf_add_2lib in $cf_add_libs; do
23551 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23556 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23558 CXXLIBS="$cf_add_libs"
23563 echo "$as_me:23563: checking whether $CXX understands -c and -o together" >&5
23564 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
23565 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 cat > conftest.$ac_ext <<CF_EOF
23572 ${cf_cv_main_return:-return}(0);
23575 # We do the test twice because some compilers refuse to overwrite an
23576 # existing .o file with -o, though they will create one.
23577 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23578 if { (eval echo "$as_me:23578: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23581 echo "$as_me:23581: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 test -f conftest2.$ac_objext && { (eval echo "$as_me:23583: \"$ac_try\"") >&5
23584 (eval $ac_try) 2>&5
23586 echo "$as_me:23586: \$? = $ac_status" >&5
23587 (exit $ac_status); };
23589 eval cf_cv_prog_CXX_c_o=yes
23591 eval cf_cv_prog_CXX_c_o=no
23596 if test $cf_cv_prog_CXX_c_o = yes; then
23597 echo "$as_me:23597: result: yes" >&5
23598 echo "${ECHO_T}yes" >&6
23600 echo "$as_me:23600: result: no" >&5
23601 echo "${ECHO_T}no" >&6
23604 case $GXX_VERSION in
23605 (1.*|2.[0-6]*|[1-9][0-9].*)
23610 cf_cxx_library=unknown
23611 case $cf_cv_system_name in
23619 if test "$GXX" = yes; then
23620 echo "$as_me:23620: checking for lib$cf_gpp_libname" >&5
23621 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
23624 cf_add_libs="$LIBS"
23627 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23628 # filter duplicates
23629 for cf_add_1lib in $cf_add_0lib; do
23630 for cf_add_2lib in $cf_add_libs; do
23631 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23636 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23638 LIBS="$cf_add_libs"
23640 cat >conftest.$ac_ext <<_ACEOF
23641 #line 23641 "configure"
23642 #include "confdefs.h"
23644 #include <$cf_gpp_libname/builtin.h>
23649 two_arg_error_handler_t foo2 = lib_error_handler
23654 rm -f conftest.$ac_objext conftest$ac_exeext
23655 if { (eval echo "$as_me:23655: \"$ac_link\"") >&5
23656 (eval $ac_link) 2>&5
23658 echo "$as_me:23658: \$? = $ac_status" >&5
23659 (exit $ac_status); } &&
23660 { ac_try='test -s conftest$ac_exeext'
23661 { (eval echo "$as_me:23661: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23664 echo "$as_me:23664: \$? = $ac_status" >&5
23665 (exit $ac_status); }; }; then
23668 cf_add_libs="$CXXLIBS"
23671 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23672 # filter duplicates
23673 for cf_add_1lib in $cf_add_0lib; do
23674 for cf_add_2lib in $cf_add_libs; do
23675 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23680 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23682 CXXLIBS="$cf_add_libs"
23684 if test "$cf_gpp_libname" = cpp ; then
23686 cat >>confdefs.h <<\EOF
23687 #define HAVE_GPP_BUILTIN_H 1
23692 cat >>confdefs.h <<\EOF
23693 #define HAVE_GXX_BUILTIN_H 1
23698 echo "$as_me: failed program was:" >&5
23699 cat conftest.$ac_ext >&5
23700 cat >conftest.$ac_ext <<_ACEOF
23701 #line 23701 "configure"
23702 #include "confdefs.h"
23704 #include <builtin.h>
23709 two_arg_error_handler_t foo2 = lib_error_handler
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (eval echo "$as_me:23715: \"$ac_link\"") >&5
23716 (eval $ac_link) 2>&5
23718 echo "$as_me:23718: \$? = $ac_status" >&5
23719 (exit $ac_status); } &&
23720 { ac_try='test -s conftest$ac_exeext'
23721 { (eval echo "$as_me:23721: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23724 echo "$as_me:23724: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23728 cf_add_libs="$CXXLIBS"
23731 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23732 # filter duplicates
23733 for cf_add_1lib in $cf_add_0lib; do
23734 for cf_add_2lib in $cf_add_libs; do
23735 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23740 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23742 CXXLIBS="$cf_add_libs"
23744 cat >>confdefs.h <<\EOF
23745 #define HAVE_BUILTIN_H 1
23749 echo "$as_me: failed program was:" >&5
23750 cat conftest.$ac_ext >&5
23753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23757 echo "$as_me:23757: result: $cf_cxx_library" >&5
23758 echo "${ECHO_T}$cf_cxx_library" >&6
23768 ac_cpp='$CXXCPP $CPPFLAGS'
23769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23772 ac_main_return=return
23773 echo "$as_me:23773: checking how to run the C++ preprocessor" >&5
23774 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23775 if test -z "$CXXCPP"; then
23776 if test "${ac_cv_prog_CXXCPP+set}" = set; then
23777 echo $ECHO_N "(cached) $ECHO_C" >&6
23779 # Double quotes because CXXCPP needs to be expanded
23780 for CXXCPP in "$CXX -E" "/lib/cpp"
23782 ac_preproc_ok=false
23783 for ac_cxx_preproc_warn_flag in '' yes
23785 # Use a header file that comes with gcc, so configuring glibc
23786 # with a fresh cross-compiler works.
23787 # On the NeXT, cc -E runs the code through the compiler's parser,
23788 # not just through cpp. "Syntax error" is here to catch this case.
23789 cat >conftest.$ac_ext <<_ACEOF
23790 #line 23790 "configure"
23791 #include "confdefs.h"
23792 #include <assert.h>
23795 if { (eval echo "$as_me:23795: \"$ac_cpp conftest.$ac_ext\"") >&5
23796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23798 egrep -v '^ *\+' conftest.er1 >conftest.err
23800 cat conftest.err >&5
23801 echo "$as_me:23801: \$? = $ac_status" >&5
23802 (exit $ac_status); } >/dev/null; then
23803 if test -s conftest.err; then
23804 ac_cpp_err=$ac_cxx_preproc_warn_flag
23811 if test -z "$ac_cpp_err"; then
23814 echo "$as_me: failed program was:" >&5
23815 cat conftest.$ac_ext >&5
23816 # Broken: fails on valid input.
23819 rm -f conftest.err conftest.$ac_ext
23821 # OK, works on sane cases. Now check whether non-existent headers
23822 # can be detected and how.
23823 cat >conftest.$ac_ext <<_ACEOF
23824 #line 23824 "configure"
23825 #include "confdefs.h"
23826 #include <ac_nonexistent.h>
23828 if { (eval echo "$as_me:23828: \"$ac_cpp conftest.$ac_ext\"") >&5
23829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23831 egrep -v '^ *\+' conftest.er1 >conftest.err
23833 cat conftest.err >&5
23834 echo "$as_me:23834: \$? = $ac_status" >&5
23835 (exit $ac_status); } >/dev/null; then
23836 if test -s conftest.err; then
23837 ac_cpp_err=$ac_cxx_preproc_warn_flag
23844 if test -z "$ac_cpp_err"; then
23845 # Broken: success on invalid input.
23848 echo "$as_me: failed program was:" >&5
23849 cat conftest.$ac_ext >&5
23850 # Passes both tests.
23854 rm -f conftest.err conftest.$ac_ext
23857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23858 rm -f conftest.err conftest.$ac_ext
23859 if $ac_preproc_ok; then
23864 ac_cv_prog_CXXCPP=$CXXCPP
23867 CXXCPP=$ac_cv_prog_CXXCPP
23869 ac_cv_prog_CXXCPP=$CXXCPP
23871 echo "$as_me:23871: result: $CXXCPP" >&5
23872 echo "${ECHO_T}$CXXCPP" >&6
23873 ac_preproc_ok=false
23874 for ac_cxx_preproc_warn_flag in '' yes
23876 # Use a header file that comes with gcc, so configuring glibc
23877 # with a fresh cross-compiler works.
23878 # On the NeXT, cc -E runs the code through the compiler's parser,
23879 # not just through cpp. "Syntax error" is here to catch this case.
23880 cat >conftest.$ac_ext <<_ACEOF
23881 #line 23881 "configure"
23882 #include "confdefs.h"
23883 #include <assert.h>
23886 if { (eval echo "$as_me:23886: \"$ac_cpp conftest.$ac_ext\"") >&5
23887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23889 egrep -v '^ *\+' conftest.er1 >conftest.err
23891 cat conftest.err >&5
23892 echo "$as_me:23892: \$? = $ac_status" >&5
23893 (exit $ac_status); } >/dev/null; then
23894 if test -s conftest.err; then
23895 ac_cpp_err=$ac_cxx_preproc_warn_flag
23902 if test -z "$ac_cpp_err"; then
23905 echo "$as_me: failed program was:" >&5
23906 cat conftest.$ac_ext >&5
23907 # Broken: fails on valid input.
23910 rm -f conftest.err conftest.$ac_ext
23912 # OK, works on sane cases. Now check whether non-existent headers
23913 # can be detected and how.
23914 cat >conftest.$ac_ext <<_ACEOF
23915 #line 23915 "configure"
23916 #include "confdefs.h"
23917 #include <ac_nonexistent.h>
23919 if { (eval echo "$as_me:23919: \"$ac_cpp conftest.$ac_ext\"") >&5
23920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23922 egrep -v '^ *\+' conftest.er1 >conftest.err
23924 cat conftest.err >&5
23925 echo "$as_me:23925: \$? = $ac_status" >&5
23926 (exit $ac_status); } >/dev/null; then
23927 if test -s conftest.err; then
23928 ac_cpp_err=$ac_cxx_preproc_warn_flag
23935 if test -z "$ac_cpp_err"; then
23936 # Broken: success on invalid input.
23939 echo "$as_me: failed program was:" >&5
23940 cat conftest.$ac_ext >&5
23941 # Passes both tests.
23945 rm -f conftest.err conftest.$ac_ext
23948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23949 rm -f conftest.err conftest.$ac_ext
23950 if $ac_preproc_ok; then
23953 { { echo "$as_me:23953: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
23954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
23955 { (exit 1); exit 1; }; }
23959 ac_cpp='$CXXCPP $CPPFLAGS'
23960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23963 ac_main_return=return
23965 for ac_header in typeinfo
23967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23968 echo "$as_me:23968: checking for $ac_header" >&5
23969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23971 echo $ECHO_N "(cached) $ECHO_C" >&6
23973 cat >conftest.$ac_ext <<_ACEOF
23974 #line 23974 "configure"
23975 #include "confdefs.h"
23976 #include <$ac_header>
23978 if { (eval echo "$as_me:23978: \"$ac_cpp conftest.$ac_ext\"") >&5
23979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23981 egrep -v '^ *\+' conftest.er1 >conftest.err
23983 cat conftest.err >&5
23984 echo "$as_me:23984: \$? = $ac_status" >&5
23985 (exit $ac_status); } >/dev/null; then
23986 if test -s conftest.err; then
23987 ac_cpp_err=$ac_cxx_preproc_warn_flag
23994 if test -z "$ac_cpp_err"; then
23995 eval "$as_ac_Header=yes"
23997 echo "$as_me: failed program was:" >&5
23998 cat conftest.$ac_ext >&5
23999 eval "$as_ac_Header=no"
24001 rm -f conftest.err conftest.$ac_ext
24003 echo "$as_me:24003: result: `eval echo '${'$as_ac_Header'}'`" >&5
24004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24006 cat >>confdefs.h <<EOF
24007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24013 for ac_header in iostream
24015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24016 echo "$as_me:24016: checking for $ac_header" >&5
24017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24021 cat >conftest.$ac_ext <<_ACEOF
24022 #line 24022 "configure"
24023 #include "confdefs.h"
24024 #include <$ac_header>
24026 if { (eval echo "$as_me:24026: \"$ac_cpp conftest.$ac_ext\"") >&5
24027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24029 egrep -v '^ *\+' conftest.er1 >conftest.err
24031 cat conftest.err >&5
24032 echo "$as_me:24032: \$? = $ac_status" >&5
24033 (exit $ac_status); } >/dev/null; then
24034 if test -s conftest.err; then
24035 ac_cpp_err=$ac_cxx_preproc_warn_flag
24042 if test -z "$ac_cpp_err"; then
24043 eval "$as_ac_Header=yes"
24045 echo "$as_me: failed program was:" >&5
24046 cat conftest.$ac_ext >&5
24047 eval "$as_ac_Header=no"
24049 rm -f conftest.err conftest.$ac_ext
24051 echo "$as_me:24051: result: `eval echo '${'$as_ac_Header'}'`" >&5
24052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24054 cat >>confdefs.h <<EOF
24055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24061 if test x"$ac_cv_header_iostream" = xyes ; then
24062 echo "$as_me:24062: checking if iostream uses std-namespace" >&5
24063 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
24064 cat >conftest.$ac_ext <<_ACEOF
24065 #line 24065 "configure"
24066 #include "confdefs.h"
24068 #include <iostream>
24075 cerr << "testing" << endl;
24081 rm -f conftest.$ac_objext
24082 if { (eval echo "$as_me:24082: \"$ac_compile\"") >&5
24083 (eval $ac_compile) 2>&5
24085 echo "$as_me:24085: \$? = $ac_status" >&5
24086 (exit $ac_status); } &&
24087 { ac_try='test -s conftest.$ac_objext'
24088 { (eval echo "$as_me:24088: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24091 echo "$as_me:24091: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
24093 cf_iostream_namespace=yes
24095 echo "$as_me: failed program was:" >&5
24096 cat conftest.$ac_ext >&5
24097 cf_iostream_namespace=no
24099 rm -f conftest.$ac_objext conftest.$ac_ext
24100 echo "$as_me:24100: result: $cf_iostream_namespace" >&5
24101 echo "${ECHO_T}$cf_iostream_namespace" >&6
24102 if test "$cf_iostream_namespace" = yes ; then
24104 cat >>confdefs.h <<\EOF
24105 #define IOSTREAM_NAMESPACE 1
24111 echo "$as_me:24111: checking if we should include stdbool.h" >&5
24112 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24114 if test "${cf_cv_header_stdbool_h+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 cat >conftest.$ac_ext <<_ACEOF
24119 #line 24119 "configure"
24120 #include "confdefs.h"
24130 rm -f conftest.$ac_objext
24131 if { (eval echo "$as_me:24131: \"$ac_compile\"") >&5
24132 (eval $ac_compile) 2>&5
24134 echo "$as_me:24134: \$? = $ac_status" >&5
24135 (exit $ac_status); } &&
24136 { ac_try='test -s conftest.$ac_objext'
24137 { (eval echo "$as_me:24137: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24140 echo "$as_me:24140: \$? = $ac_status" >&5
24141 (exit $ac_status); }; }; then
24142 cf_cv_header_stdbool_h=0
24144 echo "$as_me: failed program was:" >&5
24145 cat conftest.$ac_ext >&5
24146 cat >conftest.$ac_ext <<_ACEOF
24147 #line 24147 "configure"
24148 #include "confdefs.h"
24151 #include <stdbool.h>
24162 rm -f conftest.$ac_objext
24163 if { (eval echo "$as_me:24163: \"$ac_compile\"") >&5
24164 (eval $ac_compile) 2>&5
24166 echo "$as_me:24166: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
24168 { ac_try='test -s conftest.$ac_objext'
24169 { (eval echo "$as_me:24169: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24172 echo "$as_me:24172: \$? = $ac_status" >&5
24173 (exit $ac_status); }; }; then
24174 cf_cv_header_stdbool_h=1
24176 echo "$as_me: failed program was:" >&5
24177 cat conftest.$ac_ext >&5
24178 cf_cv_header_stdbool_h=0
24180 rm -f conftest.$ac_objext conftest.$ac_ext
24182 rm -f conftest.$ac_objext conftest.$ac_ext
24185 if test "$cf_cv_header_stdbool_h" = 1
24186 then echo "$as_me:24186: result: yes" >&5
24187 echo "${ECHO_T}yes" >&6
24188 else echo "$as_me:24188: result: no" >&5
24189 echo "${ECHO_T}no" >&6
24192 echo "$as_me:24192: checking for builtin bool type" >&5
24193 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24195 if test "${cf_cv_builtin_bool+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
24199 cat >conftest.$ac_ext <<_ACEOF
24200 #line 24200 "configure"
24201 #include "confdefs.h"
24204 #include <sys/types.h>
24214 rm -f conftest.$ac_objext
24215 if { (eval echo "$as_me:24215: \"$ac_compile\"") >&5
24216 (eval $ac_compile) 2>&5
24218 echo "$as_me:24218: \$? = $ac_status" >&5
24219 (exit $ac_status); } &&
24220 { ac_try='test -s conftest.$ac_objext'
24221 { (eval echo "$as_me:24221: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24224 echo "$as_me:24224: \$? = $ac_status" >&5
24225 (exit $ac_status); }; }; then
24226 cf_cv_builtin_bool=1
24228 echo "$as_me: failed program was:" >&5
24229 cat conftest.$ac_ext >&5
24230 cf_cv_builtin_bool=0
24232 rm -f conftest.$ac_objext conftest.$ac_ext
24236 if test "$cf_cv_builtin_bool" = 1
24237 then echo "$as_me:24237: result: yes" >&5
24238 echo "${ECHO_T}yes" >&6
24239 else echo "$as_me:24239: result: no" >&5
24240 echo "${ECHO_T}no" >&6
24243 echo "$as_me:24243: checking for size of bool" >&5
24244 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24245 if test "${cf_cv_type_of_bool+set}" = set; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24250 if test "$cross_compiling" = yes; then
24251 cf_cv_type_of_bool=unknown
24253 cat >conftest.$ac_ext <<_ACEOF
24254 #line 24254 "configure"
24255 #include "confdefs.h"
24257 #include <stdlib.h>
24260 #if defined(__cplusplus)
24262 #ifdef HAVE_GXX_BUILTIN_H
24263 #include <g++/builtin.h>
24264 #elif HAVE_GPP_BUILTIN_H
24265 #include <gpp/builtin.h>
24266 #elif HAVE_BUILTIN_H
24267 #include <builtin.h>
24272 #if $cf_cv_header_stdbool_h
24273 #include <stdbool.h>
24280 FILE *fp = fopen("cf_test.out", "w");
24283 if ((bool)(-x) >= 0)
24284 fputs("unsigned ", fp);
24285 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24286 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24287 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24288 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24291 ${cf_cv_main_return:-return}(0);
24295 rm -f conftest$ac_exeext
24296 if { (eval echo "$as_me:24296: \"$ac_link\"") >&5
24297 (eval $ac_link) 2>&5
24299 echo "$as_me:24299: \$? = $ac_status" >&5
24300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24301 { (eval echo "$as_me:24301: \"$ac_try\"") >&5
24302 (eval $ac_try) 2>&5
24304 echo "$as_me:24304: \$? = $ac_status" >&5
24305 (exit $ac_status); }; }; then
24306 cf_cv_type_of_bool=`cat cf_test.out`
24307 if test -z "$cf_cv_type_of_bool"; then
24308 cf_cv_type_of_bool=unknown
24311 echo "$as_me: program exited with status $ac_status" >&5
24312 echo "$as_me: failed program was:" >&5
24313 cat conftest.$ac_ext >&5
24314 cf_cv_type_of_bool=unknown
24316 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24322 echo "$as_me:24322: result: $cf_cv_type_of_bool" >&5
24323 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24324 if test "$cf_cv_type_of_bool" = unknown ; then
24325 case .$NCURSES_BOOL in
24326 (.auto|.) NCURSES_BOOL=unsigned;;
24328 { echo "$as_me:24328: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24329 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24330 cf_cv_type_of_bool=$NCURSES_BOOL
24333 echo "$as_me:24333: checking for special defines needed for etip.h" >&5
24334 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
24335 cf_save_CXXFLAGS="$CXXFLAGS"
24338 # etip.h includes ncurses.h which includes ncurses_dll.h
24339 # But ncurses_dll.h is generated - fix here.
24340 test -d include || mkdir include
24341 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
24343 for cf_math in "" MATH_H
24345 for cf_excp in "" MATH_EXCEPTION
24347 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
24348 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
24349 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
24350 cat >conftest.$ac_ext <<_ACEOF
24351 #line 24351 "configure"
24352 #include "confdefs.h"
24354 #include <etip.h.in>
24364 rm -f conftest.$ac_objext
24365 if { (eval echo "$as_me:24365: \"$ac_compile\"") >&5
24366 (eval $ac_compile) 2>&5
24368 echo "$as_me:24368: \$? = $ac_status" >&5
24369 (exit $ac_status); } &&
24370 { ac_try='test -s conftest.$ac_objext'
24371 { (eval echo "$as_me:24371: \"$ac_try\"") >&5
24372 (eval $ac_try) 2>&5
24374 echo "$as_me:24374: \$? = $ac_status" >&5
24375 (exit $ac_status); }; }; then
24377 test -n "$cf_math" && cat >>confdefs.h <<EOF
24378 #define ETIP_NEEDS_${cf_math} 1
24381 test -n "$cf_excp" && cat >>confdefs.h <<EOF
24382 #define ETIP_NEEDS_${cf_excp} 1
24385 cf_result="$cf_math $cf_excp"
24389 echo "$as_me: failed program was:" >&5
24390 cat conftest.$ac_ext >&5
24392 rm -f conftest.$ac_objext conftest.$ac_ext
24395 echo "$as_me:24395: result: $cf_result" >&5
24396 echo "${ECHO_T}$cf_result" >&6
24397 CXXFLAGS="$cf_save_CXXFLAGS"
24399 if test -n "$CXX"; then
24400 echo "$as_me:24400: checking if $CXX accepts parameter initialization" >&5
24401 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
24402 if test "${cf_cv_cpp_param_init+set}" = set; then
24403 echo $ECHO_N "(cached) $ECHO_C" >&6
24407 ac_cpp='$CXXCPP $CPPFLAGS'
24408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24411 ac_main_return=return
24413 if test "$cross_compiling" = yes; then
24414 cf_cv_cpp_param_init=unknown
24416 cat >conftest.$ac_ext <<_ACEOF
24417 #line 24417 "configure"
24418 #include "confdefs.h"
24428 TEST::TEST(int x = 1) // some compilers do not like second initializer
24435 rm -f conftest$ac_exeext
24436 if { (eval echo "$as_me:24436: \"$ac_link\"") >&5
24437 (eval $ac_link) 2>&5
24439 echo "$as_me:24439: \$? = $ac_status" >&5
24440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24441 { (eval echo "$as_me:24441: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24444 echo "$as_me:24444: \$? = $ac_status" >&5
24445 (exit $ac_status); }; }; then
24446 cf_cv_cpp_param_init=yes
24448 echo "$as_me: program exited with status $ac_status" >&5
24449 echo "$as_me: failed program was:" >&5
24450 cat conftest.$ac_ext >&5
24451 cf_cv_cpp_param_init=no
24453 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24456 ac_cpp='$CXXCPP $CPPFLAGS'
24457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24460 ac_main_return=return
24463 echo "$as_me:24463: result: $cf_cv_cpp_param_init" >&5
24464 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
24466 test "$cf_cv_cpp_param_init" = yes &&
24467 cat >>confdefs.h <<\EOF
24468 #define CPP_HAS_PARAM_INIT 1
24471 if test -n "$CXX"; then
24473 echo "$as_me:24473: checking if $CXX accepts static_cast" >&5
24474 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
24475 if test "${cf_cv_cpp_static_cast+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 ac_cpp='$CXXCPP $CPPFLAGS'
24481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24484 ac_main_return=return
24486 cat >conftest.$ac_ext <<_ACEOF
24487 #line 24487 "configure"
24488 #include "confdefs.h"
24493 NCursesPanel(int nlines,
24503 template<class T> class NCursesUserPanel : public NCursesPanel
24506 NCursesUserPanel (int nlines,
24510 const T* p_UserData = static_cast<T*>(0))
24511 : NCursesPanel (nlines, ncols, begin_y, begin_x)
24514 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
24518 virtual ~NCursesUserPanel() {};
24525 const char* p_UserData = static_cast<char*>(0)
24530 rm -f conftest.$ac_objext
24531 if { (eval echo "$as_me:24531: \"$ac_compile\"") >&5
24532 (eval $ac_compile) 2>&5
24534 echo "$as_me:24534: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
24536 { ac_try='test -s conftest.$ac_objext'
24537 { (eval echo "$as_me:24537: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:24540: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 cf_cv_cpp_static_cast=yes
24544 echo "$as_me: failed program was:" >&5
24545 cat conftest.$ac_ext >&5
24546 cf_cv_cpp_static_cast=no
24548 rm -f conftest.$ac_objext conftest.$ac_ext
24551 ac_cpp='$CXXCPP $CPPFLAGS'
24552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24555 ac_main_return=return
24558 echo "$as_me:24558: result: $cf_cv_cpp_static_cast" >&5
24559 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
24563 test "$cf_cv_cpp_static_cast" = yes &&
24564 cat >>confdefs.h <<\EOF
24565 #define CPP_HAS_STATIC_CAST 1
24569 CXX_ARFLAGS='$(ARFLAGS)'
24570 case $cf_cv_system_name in
24572 if test "$GXX" != yes ; then
24574 CXX_ARFLAGS='-ar -o'
24578 CXXLDFLAGS="-u main"
24581 if test "$GXX" != yes ; then
24583 CXX_ARFLAGS='-xar -o'
24590 cf_cv_builtin_bool=1
24592 # Just because we are not configuring against C++ right now does not
24593 # mean that a user will not want to use C++. Some distributors disable
24594 # the C++ portion of this configuration as a shortcut (or just to avoid
24595 # compiling the demo in the c++ directory). So we need a reasonable
24596 # default for the 'bool' type.
24598 # Caveat: since the storage of the bool type is not standardized, it
24601 if test "$NCURSES_BOOL" != auto ; then
24602 cf_cv_type_of_bool=$NCURSES_BOOL
24603 cf_cv_header_stdbool_h=0
24605 if test "$cf_cv_header_stdbool_h" = 1 ; then
24607 echo "$as_me:24607: checking for size of bool" >&5
24608 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24609 if test "${cf_cv_type_of_bool+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 if test "$cross_compiling" = yes; then
24615 cf_cv_type_of_bool=unknown
24617 cat >conftest.$ac_ext <<_ACEOF
24618 #line 24618 "configure"
24619 #include "confdefs.h"
24621 #include <stdlib.h>
24624 #if defined(__cplusplus)
24626 #ifdef HAVE_GXX_BUILTIN_H
24627 #include <g++/builtin.h>
24628 #elif HAVE_GPP_BUILTIN_H
24629 #include <gpp/builtin.h>
24630 #elif HAVE_BUILTIN_H
24631 #include <builtin.h>
24636 #if $cf_cv_header_stdbool_h
24637 #include <stdbool.h>
24644 FILE *fp = fopen("cf_test.out", "w");
24647 if ((bool)(-x) >= 0)
24648 fputs("unsigned ", fp);
24649 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24650 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24651 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24652 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24655 ${cf_cv_main_return:-return}(0);
24659 rm -f conftest$ac_exeext
24660 if { (eval echo "$as_me:24660: \"$ac_link\"") >&5
24661 (eval $ac_link) 2>&5
24663 echo "$as_me:24663: \$? = $ac_status" >&5
24664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24665 { (eval echo "$as_me:24665: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24668 echo "$as_me:24668: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 cf_cv_type_of_bool=`cat cf_test.out`
24671 if test -z "$cf_cv_type_of_bool"; then
24672 cf_cv_type_of_bool=unknown
24675 echo "$as_me: program exited with status $ac_status" >&5
24676 echo "$as_me: failed program was:" >&5
24677 cat conftest.$ac_ext >&5
24678 cf_cv_type_of_bool=unknown
24680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24686 echo "$as_me:24686: result: $cf_cv_type_of_bool" >&5
24687 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24688 if test "$cf_cv_type_of_bool" = unknown ; then
24689 case .$NCURSES_BOOL in
24690 (.auto|.) NCURSES_BOOL=unsigned;;
24692 { echo "$as_me:24692: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24693 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24694 cf_cv_type_of_bool=$NCURSES_BOOL
24698 echo "$as_me:24698: checking for fallback type of bool" >&5
24699 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
24700 case "$host_cpu" in
24701 (i?86) cf_cv_type_of_bool=char ;;
24702 (*) cf_cv_type_of_bool=int ;;
24704 echo "$as_me:24704: result: $cf_cv_type_of_bool" >&5
24705 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24710 # If the C compiler did not declare bool, and we did not determine that the C++
24711 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
24712 # ncurses library use the same type as C++ bool. Note that this allows one to
24713 # specify the type of bool in a configure-script option and postpone
24714 # integration with the C++ compiler provided that the types are compatible.
24716 if test $cf_cv_cc_bool_type = 1
24718 # oops: C has a bool. Unlikely, but C++ could differ.
24720 elif test $cf_cv_builtin_bool = 0
24725 # this is the normal case
24726 USE_CXX_BOOL='defined(__cplusplus)'
24729 if test -f "${srcdir}/Ada95/Makefile.in" ; then
24731 if test "$cf_with_ada" != "no" ; then
24732 if test "$with_libtool" != "no"; then
24733 { echo "$as_me:24733: WARNING: libtool does not support Ada - disabling feature" >&5
24734 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
24739 if test "$cf_with_ada" != "no" ; then
24741 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
24744 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24746 unset ac_cv_path_cf_TEMP_gnat
24748 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
24749 set dummy $cf_prog_gnat; ac_word=$2
24750 echo "$as_me:24750: checking for $ac_word" >&5
24751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24752 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24755 case $cf_TEMP_gnat in
24757 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
24760 ac_save_IFS=$IFS; IFS=$ac_path_separator
24762 for ac_dir in $ac_dummy; do
24764 test -z "$ac_dir" && ac_dir=.
24765 if $as_executable_p "$ac_dir/$ac_word"; then
24766 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
24767 echo "$as_me:24767: found $ac_dir/$ac_word" >&5
24772 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
24776 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
24778 if test -n "$cf_TEMP_gnat"; then
24779 echo "$as_me:24779: result: $cf_TEMP_gnat" >&5
24780 echo "${ECHO_T}$cf_TEMP_gnat" >&6
24782 echo "$as_me:24782: result: no" >&5
24783 echo "${ECHO_T}no" >&6
24786 eval cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat
24788 if test "x$cf_TEMP_gnat" != xno; then
24789 unset cf_cv_gnat_version
24792 echo "$as_me:24792: checking for $cf_prog_gnat version" >&5
24793 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
24794 if test "${cf_cv_gnat_version+set}" = set; then
24795 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
24799 grep '[0-9].[0-9][0-9]*' |\
24800 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24803 echo "$as_me:24803: result: $cf_cv_gnat_version" >&5
24804 echo "${ECHO_T}$cf_cv_gnat_version" >&6
24805 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
24806 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
24809 eval cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat
24812 unset cf_cv_gnat_version
24813 unset ac_cv_path_cf_TEMP_gnat
24816 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
24818 cf_cv_prog_gnat_correct=no
24820 cf_ada_make=gnatmake
24821 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
24822 # gprconfig is newer than gnatmake; we can continue...
24825 rm -rf conftest* *~conftest*
24826 if mkdir conftest.src
24830 for cf_gprconfig in Ada C
24832 echo "$as_me:24832: checking for gprconfig name for $cf_gprconfig" >&5
24833 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
24834 if test $cf_gprconfig = C
24836 for cf_gprconfig_param in \
24837 $cf_gprconfig,,,,GNATGCC \
24838 $cf_gprconfig,,,,GCC \
24841 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24842 test -n "$cf_gprconfig_value" && break
24845 cf_gprconfig_param=$cf_gprconfig
24846 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24848 if test -n "$cf_gprconfig_value"
24850 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
24851 echo "$as_me:24851: result: $cf_gprconfig_value" >&5
24852 echo "${ECHO_T}$cf_gprconfig_value" >&6
24854 echo "$as_me:24854: result: missing" >&5
24855 echo "${ECHO_T}missing" >&6
24861 rm -rf conftest* *~conftest*
24864 if test "x$cf_ada_config" != "x#"
24867 echo "$as_me:24867: checking for gnat version" >&5
24868 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
24869 if test "${cf_cv_gnat_version+set}" = set; then
24870 echo $ECHO_N "(cached) $ECHO_C" >&6
24873 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
24874 grep '[0-9].[0-9][0-9]*' |\
24875 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24878 echo "$as_me:24878: result: $cf_cv_gnat_version" >&5
24879 echo "${ECHO_T}$cf_cv_gnat_version" >&6
24880 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
24882 case $cf_cv_gnat_version in
24883 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
24884 cf_cv_prog_gnat_correct=yes
24887 { echo "$as_me:24887: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
24888 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
24889 cf_cv_prog_gnat_correct=no
24893 # Extract the first word of "m4", so it can be a program name with args.
24894 set dummy m4; ac_word=$2
24895 echo "$as_me:24895: checking for $ac_word" >&5
24896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24897 if test "${ac_cv_prog_M4_exists+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 if test -n "$M4_exists"; then
24901 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
24903 ac_save_IFS=$IFS; IFS=$ac_path_separator
24905 for ac_dir in $ac_dummy; do
24907 test -z "$ac_dir" && ac_dir=.
24908 $as_executable_p "$ac_dir/$ac_word" || continue
24909 ac_cv_prog_M4_exists="yes"
24910 echo "$as_me:24910: found $ac_dir/$ac_word" >&5
24914 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
24917 M4_exists=$ac_cv_prog_M4_exists
24918 if test -n "$M4_exists"; then
24919 echo "$as_me:24919: result: $M4_exists" >&5
24920 echo "${ECHO_T}$M4_exists" >&6
24922 echo "$as_me:24922: result: no" >&5
24923 echo "${ECHO_T}no" >&6
24926 if test "$ac_cv_prog_M4_exists" = no; then
24927 cf_cv_prog_gnat_correct=no
24928 { echo "$as_me:24928: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
24929 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
24931 if test "$cf_cv_prog_gnat_correct" = yes; then
24932 echo "$as_me:24932: checking if GNAT works" >&5
24933 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
24935 rm -rf conftest* *~conftest*
24936 cat >>conftest.ads <<CF_EOF
24937 procedure conftest;
24939 cat >>conftest.adb <<CF_EOF
24942 procedure conftest is
24944 Text_IO.Put ("Hello World");
24946 GNAT.OS_Lib.OS_Exit (0);
24949 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24950 if ( ./conftest 1>&5 2>&1 ) ; then
24951 cf_cv_prog_gnat_correct=yes
24953 cf_cv_prog_gnat_correct=no
24956 cf_cv_prog_gnat_correct=no
24958 rm -rf conftest* *~conftest*
24960 echo "$as_me:24960: result: $cf_cv_prog_gnat_correct" >&5
24961 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
24964 cf_cv_prog_gnat_correct=no
24968 if test "x$cf_cv_prog_gnat_correct" = xyes; then
24970 ADAFLAGS="$ADAFLAGS -gnatpn"
24972 echo "$as_me:24972: checking optimization options for ADAFLAGS" >&5
24973 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
24977 ADAFLAGS="$ADAFLAGS -g"
24983 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
24985 ADAFLAGS="$ADAFLAGS $cf_O_flag"
24989 echo "$as_me:24989: result: $ADAFLAGS" >&5
24990 echo "${ECHO_T}$ADAFLAGS" >&6
24992 echo "$as_me:24992: checking if GNATPREP supports -T option" >&5
24993 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
24994 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 cf_cv_gnatprep_opt_t=no
24999 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
25002 echo "$as_me:25002: result: $cf_cv_gnatprep_opt_t" >&5
25003 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
25004 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
25006 echo "$as_me:25006: checking if GNAT supports generics" >&5
25007 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
25008 case $cf_cv_gnat_version in
25009 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
25010 cf_gnat_generics=yes
25013 cf_gnat_generics=no
25016 echo "$as_me:25016: result: $cf_gnat_generics" >&5
25017 echo "${ECHO_T}$cf_gnat_generics" >&6
25019 if test "$cf_gnat_generics" = yes
25021 cf_compile_generics=generics
25022 cf_generic_objects="\${GENOBJS}"
25024 cf_compile_generics=
25025 cf_generic_objects=
25028 echo "$as_me:25028: checking if GNAT supports SIGINT" >&5
25029 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
25030 if test "${cf_cv_gnat_sigint+set}" = set; then
25031 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 rm -rf conftest* *~conftest*
25035 cat >>conftest.ads <<CF_EOF
25036 with Ada.Interrupts.Names;
25038 package ConfTest is
25040 pragma Warnings (Off); -- the next pragma exists since 3.11p
25041 pragma Unreserve_All_Interrupts;
25042 pragma Warnings (On);
25044 protected Process is
25046 function Continue return Boolean;
25047 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
25049 Done : Boolean := False;
25054 cat >>conftest.adb <<CF_EOF
25055 package body ConfTest is
25056 protected body Process is
25061 function Continue return Boolean is
25068 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
25069 cf_cv_gnat_sigint=yes
25071 cf_cv_gnat_sigint=no
25073 rm -rf conftest* *~conftest*
25076 echo "$as_me:25076: result: $cf_cv_gnat_sigint" >&5
25077 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
25079 if test $cf_cv_gnat_sigint = yes ; then
25082 USE_GNAT_SIGINT="#"
25085 cf_gnat_libraries=no
25086 cf_gnat_projects=no
25088 if test "$enable_gnat_projects" != no ; then
25089 echo "$as_me:25089: checking if GNAT supports project files" >&5
25090 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
25091 case $cf_cv_gnat_version in
25095 case $cf_cv_system_name in
25099 rm -rf conftest* *~conftest*
25100 if mkdir conftest.src conftest.bin conftest.lib
25103 rm -rf conftest* *~conftest*
25104 cat >>library.gpr <<CF_EOF
25106 Kind := External ("LIB_KIND");
25107 for Library_Name use "ConfTest";
25108 for Object_Dir use ".";
25109 for Library_ALI_Dir use External("LIBRARY_DIR");
25110 for Library_Version use External ("SONAME");
25111 for Library_Kind use Kind;
25112 for Library_Dir use External("BUILD_DIR");
25113 Source_Dir := External ("SOURCE_DIR");
25114 for Source_Dirs use (Source_Dir);
25117 cat >>confpackage.ads <<CF_EOF
25118 package ConfPackage is
25119 procedure conftest;
25122 cat >>confpackage.adb <<CF_EOF
25124 package body ConfPackage is
25125 procedure conftest is
25127 Text_IO.Put ("Hello World");
25132 if ( $cf_ada_make $ADAFLAGS \
25134 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
25135 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
25136 -XSOURCE_DIR=`pwd` \
25137 -XSONAME=libConfTest.so.1 \
25138 -XLIB_KIND=static 1>&5 2>&1 ) ; then
25139 cf_gnat_projects=yes
25143 if test -f conftest.lib/confpackage.ali
25145 cf_gnat_libraries=yes
25147 rm -rf conftest* *~conftest*
25152 echo "$as_me:25152: result: $cf_gnat_projects" >&5
25153 echo "${ECHO_T}$cf_gnat_projects" >&6
25154 fi # enable_gnat_projects
25156 if test $cf_gnat_projects = yes
25158 echo "$as_me:25158: checking if GNAT supports libraries" >&5
25159 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
25160 echo "$as_me:25160: result: $cf_gnat_libraries" >&5
25161 echo "${ECHO_T}$cf_gnat_libraries" >&6
25164 if test "$cf_gnat_projects" = yes
25166 USE_OLD_MAKERULES="#"
25167 USE_GNAT_PROJECTS=""
25169 USE_OLD_MAKERULES=""
25170 USE_GNAT_PROJECTS="#"
25173 if test "$cf_gnat_libraries" = yes
25175 USE_GNAT_LIBRARIES=""
25177 USE_GNAT_LIBRARIES="#"
25180 echo "$as_me:25180: checking for ada-compiler" >&5
25181 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
25183 # Check whether --with-ada-compiler or --without-ada-compiler was given.
25184 if test "${with_ada_compiler+set}" = set; then
25185 withval="$with_ada_compiler"
25186 cf_ada_compiler=$withval
25188 cf_ada_compiler=gnatmake
25191 echo "$as_me:25191: result: $cf_ada_compiler" >&5
25192 echo "${ECHO_T}$cf_ada_compiler" >&6
25194 cf_ada_package=terminal_interface
25196 echo "$as_me:25196: checking for ada-include" >&5
25197 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
25199 # Check whether --with-ada-include or --without-ada-include was given.
25200 if test "${with_ada_include+set}" = set; then
25201 withval="$with_ada_include"
25204 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
25205 fi; if test -n "$prefix/share/ada/adainclude" ; then
25207 if test "x$prefix" != xNONE; then
25208 cf_path_syntax="$prefix"
25210 cf_path_syntax="$ac_default_prefix"
25213 case ".$withval" in
25214 (.\$\(*\)*|.\'*\'*)
25218 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25220 (.\${*prefix}*|.\${*dir}*)
25221 eval withval="$withval"
25222 case ".$withval" in
25224 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25229 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25232 { { echo "$as_me:25232: error: expected a pathname, not \"$withval\"" >&5
25233 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25234 { (exit 1); exit 1; }; }
25239 eval ADA_INCLUDE="$withval"
25241 echo "$as_me:25241: result: $ADA_INCLUDE" >&5
25242 echo "${ECHO_T}$ADA_INCLUDE" >&6
25244 echo "$as_me:25244: checking for ada-objects" >&5
25245 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
25247 # Check whether --with-ada-objects or --without-ada-objects was given.
25248 if test "${with_ada_objects+set}" = set; then
25249 withval="$with_ada_objects"
25252 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
25253 fi; if test -n "$prefix/lib/ada/adalib" ; then
25255 if test "x$prefix" != xNONE; then
25256 cf_path_syntax="$prefix"
25258 cf_path_syntax="$ac_default_prefix"
25261 case ".$withval" in
25262 (.\$\(*\)*|.\'*\'*)
25266 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25268 (.\${*prefix}*|.\${*dir}*)
25269 eval withval="$withval"
25270 case ".$withval" in
25272 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25277 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25280 { { echo "$as_me:25280: error: expected a pathname, not \"$withval\"" >&5
25281 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25282 { (exit 1); exit 1; }; }
25287 eval ADA_OBJECTS="$withval"
25289 echo "$as_me:25289: result: $ADA_OBJECTS" >&5
25290 echo "${ECHO_T}$ADA_OBJECTS" >&6
25292 echo "$as_me:25292: checking if an Ada95 shared-library should be built" >&5
25293 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
25295 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
25296 if test "${with_ada_sharedlib+set}" = set; then
25297 withval="$with_ada_sharedlib"
25298 with_ada_sharedlib=$withval
25300 with_ada_sharedlib=no
25302 echo "$as_me:25302: result: $with_ada_sharedlib" >&5
25303 echo "${ECHO_T}$with_ada_sharedlib" >&6
25305 if test "x$with_ada_sharedlib" != xno
25307 if test "x$cf_gnat_projects" != xyes
25309 { echo "$as_me:25309: WARNING: disabling shared-library since GNAT projects are not supported" >&5
25310 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
25311 with_ada_sharedlib=no
25315 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
25316 MAKE_ADA_SHAREDLIB="#"
25318 if test "x$with_ada_sharedlib" != xno
25320 MAKE_ADA_SHAREDLIB=
25321 if test "x$with_ada_sharedlib" != xyes
25323 ADA_SHAREDLIB="$with_ada_sharedlib"
25327 # allow the Ada binding to be renamed
25329 echo "$as_me:25329: checking for ada-libname" >&5
25330 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
25332 # Check whether --with-ada-libname or --without-ada-libname was given.
25333 if test "${with_ada_libname+set}" = set; then
25334 withval="$with_ada_libname"
25335 ADA_LIBNAME=$withval
25337 ADA_LIBNAME=AdaCurses
25339 case "x$ADA_LIBNAME" in
25341 ADA_LIBNAME=AdaCurses
25345 echo "$as_me:25345: result: $ADA_LIBNAME" >&5
25346 echo "${ECHO_T}$ADA_LIBNAME" >&6
25354 # do this "late" to avoid conflict with header-checks
25355 if test "x$with_widec" = xyes ; then
25356 echo "$as_me:25356: checking for wchar_t" >&5
25357 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
25358 if test "${ac_cv_type_wchar_t+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25361 cat >conftest.$ac_ext <<_ACEOF
25362 #line 25362 "configure"
25363 #include "confdefs.h"
25364 $ac_includes_default
25370 if (sizeof (wchar_t))
25376 rm -f conftest.$ac_objext
25377 if { (eval echo "$as_me:25377: \"$ac_compile\"") >&5
25378 (eval $ac_compile) 2>&5
25380 echo "$as_me:25380: \$? = $ac_status" >&5
25381 (exit $ac_status); } &&
25382 { ac_try='test -s conftest.$ac_objext'
25383 { (eval echo "$as_me:25383: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25386 echo "$as_me:25386: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_type_wchar_t=yes
25390 echo "$as_me: failed program was:" >&5
25391 cat conftest.$ac_ext >&5
25392 ac_cv_type_wchar_t=no
25394 rm -f conftest.$ac_objext conftest.$ac_ext
25396 echo "$as_me:25396: result: $ac_cv_type_wchar_t" >&5
25397 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
25399 echo "$as_me:25399: checking size of wchar_t" >&5
25400 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
25401 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 if test "$ac_cv_type_wchar_t" = yes; then
25405 if test "$cross_compiling" = yes; then
25406 # Depending upon the size, compute the lo and hi bounds.
25407 cat >conftest.$ac_ext <<_ACEOF
25408 #line 25408 "configure"
25409 #include "confdefs.h"
25410 $ac_includes_default
25414 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
25419 rm -f conftest.$ac_objext
25420 if { (eval echo "$as_me:25420: \"$ac_compile\"") >&5
25421 (eval $ac_compile) 2>&5
25423 echo "$as_me:25423: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
25425 { ac_try='test -s conftest.$ac_objext'
25426 { (eval echo "$as_me:25426: \"$ac_try\"") >&5
25427 (eval $ac_try) 2>&5
25429 echo "$as_me:25429: \$? = $ac_status" >&5
25430 (exit $ac_status); }; }; then
25433 cat >conftest.$ac_ext <<_ACEOF
25434 #line 25434 "configure"
25435 #include "confdefs.h"
25436 $ac_includes_default
25440 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:25446: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>&5
25449 echo "$as_me:25449: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -s conftest.$ac_objext'
25452 { (eval echo "$as_me:25452: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25455 echo "$as_me:25455: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 ac_hi=$ac_mid; break
25459 echo "$as_me: failed program was:" >&5
25460 cat conftest.$ac_ext >&5
25461 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
25463 rm -f conftest.$ac_objext conftest.$ac_ext
25466 echo "$as_me: failed program was:" >&5
25467 cat conftest.$ac_ext >&5
25470 cat >conftest.$ac_ext <<_ACEOF
25471 #line 25471 "configure"
25472 #include "confdefs.h"
25473 $ac_includes_default
25477 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
25482 rm -f conftest.$ac_objext
25483 if { (eval echo "$as_me:25483: \"$ac_compile\"") >&5
25484 (eval $ac_compile) 2>&5
25486 echo "$as_me:25486: \$? = $ac_status" >&5
25487 (exit $ac_status); } &&
25488 { ac_try='test -s conftest.$ac_objext'
25489 { (eval echo "$as_me:25489: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25492 echo "$as_me:25492: \$? = $ac_status" >&5
25493 (exit $ac_status); }; }; then
25494 ac_lo=$ac_mid; break
25496 echo "$as_me: failed program was:" >&5
25497 cat conftest.$ac_ext >&5
25498 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
25500 rm -f conftest.$ac_objext conftest.$ac_ext
25503 rm -f conftest.$ac_objext conftest.$ac_ext
25504 # Binary search between lo and hi bounds.
25505 while test "x$ac_lo" != "x$ac_hi"; do
25506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25507 cat >conftest.$ac_ext <<_ACEOF
25508 #line 25508 "configure"
25509 #include "confdefs.h"
25510 $ac_includes_default
25514 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25519 rm -f conftest.$ac_objext
25520 if { (eval echo "$as_me:25520: \"$ac_compile\"") >&5
25521 (eval $ac_compile) 2>&5
25523 echo "$as_me:25523: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:25526: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25529 echo "$as_me:25529: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25533 echo "$as_me: failed program was:" >&5
25534 cat conftest.$ac_ext >&5
25535 ac_lo=`expr $ac_mid + 1`
25537 rm -f conftest.$ac_objext conftest.$ac_ext
25539 ac_cv_sizeof_wchar_t=$ac_lo
25541 if test "$cross_compiling" = yes; then
25542 { { echo "$as_me:25542: error: cannot run test program while cross compiling" >&5
25543 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25544 { (exit 1); exit 1; }; }
25546 cat >conftest.$ac_ext <<_ACEOF
25547 #line 25547 "configure"
25548 #include "confdefs.h"
25549 $ac_includes_default
25553 FILE *f = fopen ("conftest.val", "w");
25555 $ac_main_return (1);
25556 fprintf (f, "%d", (sizeof (wchar_t)));
25562 rm -f conftest$ac_exeext
25563 if { (eval echo "$as_me:25563: \"$ac_link\"") >&5
25564 (eval $ac_link) 2>&5
25566 echo "$as_me:25566: \$? = $ac_status" >&5
25567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25568 { (eval echo "$as_me:25568: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25571 echo "$as_me:25571: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25573 ac_cv_sizeof_wchar_t=`cat conftest.val`
25575 echo "$as_me: program exited with status $ac_status" >&5
25576 echo "$as_me: failed program was:" >&5
25577 cat conftest.$ac_ext >&5
25579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25584 ac_cv_sizeof_wchar_t=0
25587 echo "$as_me:25587: result: $ac_cv_sizeof_wchar_t" >&5
25588 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
25589 cat >>confdefs.h <<EOF
25590 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25593 # cross-compiling to mingw can run into the problem that attempting to
25594 # link with the regex library fails, causing the test to not set this to
25595 # a number. "recent" autoconf does not address this problem either -TD
25596 if test -z "$ac_cv_sizeof_wchar_t"
25598 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
25600 echo "${as_me:-configure}:25600: testing test failed (assume 2) ..." 1>&5
25602 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
25603 mv confdefs.tmp confdefs.h
25604 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
25608 ### Construct the ncurses library-subsets, if any, from this set of keywords:
25609 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
25611 ### ticlib modules may be a separate library, otherwise contained in termlib.
25612 ### termlib modules may be a separate library, otherwise contained in ncurses.
25614 ### The of "+" or " " between the tokens controls the way the script
25615 ### chooses to split module lists into libraries.
25617 ### (see CF_LIB_RULES).
25618 echo "$as_me:25618: checking for library subsets" >&5
25619 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
25622 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
25623 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
25624 if test "$with_ticlib" != no ; then
25625 LIB_SUBSETS="${LIB_SUBSETS} "
25627 LIB_SUBSETS="${LIB_SUBSETS}+"
25631 LIB_SUBSETS="${LIB_SUBSETS}termlib"
25632 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
25634 if test "$with_termlib" != no ; then
25635 LIB_SUBSETS="${LIB_SUBSETS} "
25637 LIB_SUBSETS="${LIB_SUBSETS}+"
25640 LIB_SUBSETS="${LIB_SUBSETS}base"
25642 # Most term-driver calls are to tinfo, but some like init_pair are to the
25643 # base library (so it resides in base).
25644 if test "$with_term_driver" != no ; then
25645 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
25646 case $cf_cv_system_name in
25647 (*mingw32*|*mingw64*)
25648 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
25649 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
25652 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
25657 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
25658 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
25660 echo "$as_me:25660: result: $LIB_SUBSETS" >&5
25661 echo "${ECHO_T}$LIB_SUBSETS" >&6
25663 ### Construct the list of include-directories to be generated
25665 if test "$srcdir" != "."; then
25666 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
25668 CPPFLAGS="-I../include $CPPFLAGS"
25669 if test "$srcdir" != "."; then
25670 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
25672 CPPFLAGS="-I. $CPPFLAGS"
25674 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
25675 if test "$srcdir" != "."; then
25676 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
25678 if test "$GCC" != yes; then
25679 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25680 elif test "$includedir" != "/usr/include"; then
25681 if test "$includedir" = '${prefix}/include' ; then
25682 if test x$prefix != x/usr ; then
25683 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25686 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25690 ### Build up pieces for makefile rules
25691 echo "$as_me:25691: checking default library suffix" >&5
25692 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
25694 case $DFT_LWR_MODEL in
25695 (libtool) DFT_ARG_SUFFIX='' ;;
25696 (normal) DFT_ARG_SUFFIX='' ;;
25697 (debug) DFT_ARG_SUFFIX='_g' ;;
25698 (profile) DFT_ARG_SUFFIX='_p' ;;
25699 (shared) DFT_ARG_SUFFIX='' ;;
25701 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
25702 echo "$as_me:25702: result: $DFT_ARG_SUFFIX" >&5
25703 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
25705 echo "$as_me:25705: checking default library-dependency suffix" >&5
25706 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
25708 case X$DFT_LWR_MODEL in
25710 DFT_LIB_SUFFIX='.la'
25711 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25714 case $cf_cv_system_name in
25716 DFT_LIB_SUFFIX='_g.lib'
25719 DFT_LIB_SUFFIX='_g.a'
25722 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25725 case $cf_cv_system_name in
25727 DFT_LIB_SUFFIX='_p.lib'
25730 DFT_LIB_SUFFIX='_p.a'
25733 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25736 case $cf_cv_system_name in
25738 DFT_LIB_SUFFIX='.so'
25739 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25742 DFT_LIB_SUFFIX='.dll'
25743 DFT_DEP_SUFFIX='.dll.lib'
25745 (cygwin*|msys*|mingw*)
25746 DFT_LIB_SUFFIX='.dll'
25747 DFT_DEP_SUFFIX='.dll.a'
25750 DFT_LIB_SUFFIX='.dylib'
25751 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25756 DFT_LIB_SUFFIX='.so'
25757 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25760 DFT_LIB_SUFFIX='.sl'
25761 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25766 DFT_LIB_SUFFIX='.so'
25767 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25774 DFT_LIB_SUFFIX='.lib'
25777 DFT_LIB_SUFFIX='.a'
25780 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25783 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25785 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
25786 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
25788 echo "$as_me:25788: result: $DFT_DEP_SUFFIX" >&5
25789 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
25791 echo "$as_me:25791: checking default object directory" >&5
25792 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
25794 case $DFT_LWR_MODEL in
25795 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
25796 (normal) DFT_OBJ_SUBDIR='objects' ;;
25797 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
25798 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
25800 case $cf_cv_system_name in
25802 DFT_OBJ_SUBDIR='objects' ;;
25804 DFT_OBJ_SUBDIR='obj_s' ;;
25807 echo "$as_me:25807: result: $DFT_OBJ_SUBDIR" >&5
25808 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
25810 if test "x$cf_with_cxx" = xyes ; then
25811 echo "$as_me:25811: checking c++ library-dependency suffix" >&5
25812 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
25813 if test "$with_libtool" != "no"; then
25814 # libtool thinks it can make c++ shared libraries (perhaps only g++)
25815 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25816 elif test "$with_shared_cxx" != "no"; then
25817 # also for g++ users...
25818 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25820 # we normally make a static library because C/C++ library rules differ
25824 CXX_LIB_SUFFIX='.la'
25825 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25828 case $cf_cv_system_name in
25830 CXX_LIB_SUFFIX='_g.lib'
25833 CXX_LIB_SUFFIX='_g.a'
25836 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25839 case $cf_cv_system_name in
25841 CXX_LIB_SUFFIX='_p.lib'
25844 CXX_LIB_SUFFIX='_p.a'
25847 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25850 case $cf_cv_system_name in
25852 CXX_LIB_SUFFIX='.so'
25853 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25856 CXX_LIB_SUFFIX='.dll'
25857 CXX_DEP_SUFFIX='.dll.lib'
25859 (cygwin*|msys*|mingw*)
25860 CXX_LIB_SUFFIX='.dll'
25861 CXX_DEP_SUFFIX='.dll.a'
25864 CXX_LIB_SUFFIX='.dylib'
25865 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25870 CXX_LIB_SUFFIX='.so'
25871 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25874 CXX_LIB_SUFFIX='.sl'
25875 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25880 CXX_LIB_SUFFIX='.so'
25881 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25888 CXX_LIB_SUFFIX='.lib'
25891 CXX_LIB_SUFFIX='.a'
25894 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25897 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25899 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
25900 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
25904 echo "$as_me:25904: result: $CXX_LIB_SUFFIX" >&5
25905 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
25909 # do not want -ldl in build except as needed for -lncurses dependency
25910 if test "x$with_dlsym" = xyes ; then
25911 if test $DFT_LWR_MODEL = shared || \
25912 test $DFT_LWR_MODEL = libtool ; then
25914 # remove dl library from $LIBS
25915 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25919 ### Set up low-level terminfo dependencies for makefiles.
25921 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
25922 # do not need libdl
25924 if test "x$with_dlsym" = xyes ; then
25926 # remove dl library from $SHLIB_LIST
25927 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25931 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
25932 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
25933 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
25934 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
25936 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
25939 if test "$with_ticlib" != no ; then
25941 if test "x$with_ticlib" != xyes ; then
25942 TICS_NAME=$with_ticlib
25943 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25944 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25945 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25946 TICS_LIB_SUFFIX="${with_ticlib}"
25948 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25949 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
25950 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
25951 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
25953 TICS_LDFLAGS="-L${LIB_DIR}"
25954 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
25956 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25957 TICS_LDFLAGS="-L${LIB_DIR}"
25958 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25961 if test "$with_termlib" != no ; then
25963 if test "x$with_termlib" != xyes ; then
25964 TINFO_NAME=$with_termlib
25965 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25966 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25967 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25968 TINFO_LIB_SUFFIX="${with_termlib}"
25970 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25971 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
25972 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
25973 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
25976 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25977 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25978 if test "$DFT_LWR_MODEL" = "libtool"; then
25979 TEST_ARGS="${TEST_DEPS}"
25980 TEST_ARG2="${TEST_DEP2}"
25981 TINFO_LDFLAGS="-L${LIB_DIR}"
25982 TINFO_LIBS="$TEST_ARGS"
25983 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
25984 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
25986 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
25987 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
25988 if test "x$with_term_driver" != xno ; then
25989 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25990 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
25991 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
25993 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25994 TINFO_LIBS="$TEST_ARGS"
25996 TINFO_LDFLAGS="-L${LIB_DIR}"
25997 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
26000 # the next lines are needed for linking libtic over libncurses
26001 TINFO_NAME=${LIB_NAME}
26002 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
26003 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
26004 if test "x$with_tic_depends" = xyes ; then
26005 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
26007 TICS_LIST="$SHLIB_LIST"
26010 TINFO_LDFLAGS="-L${LIB_DIR}"
26011 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
26014 if test "$DFT_LWR_MODEL" = shared ; then
26015 case $cf_cv_system_name in
26017 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
26023 if test "x$with_dlsym" = xyes ; then
26025 # remove dl library from $TICS_LIST
26026 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
26030 if test "$DFT_LWR_MODEL" = "libtool"; then
26035 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
26037 case $DFT_LWR_MODEL in
26038 (normal|debug|profile)
26040 if test "$GCC" = yes ; then
26041 case $cf_cv_system_name in
26042 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
26046 (*) # normally, except when broken
26047 LDFLAGS_STATIC=-static
26048 LDFLAGS_SHARED=-dynamic
26052 case $cf_cv_system_name in
26053 (aix[4-7]*) # from ld manpage
26054 LDFLAGS_STATIC=-bstatic
26055 LDFLAGS_SHARED=-bdynamic
26057 (hpux*) # from ld manpage for hpux10.20, hpux11.11
26058 # We could also use just "archive" and "shared".
26059 LDFLAGS_STATIC=-Wl,-a,archive_shared
26060 LDFLAGS_SHARED=-Wl,-a,shared_archive
26062 (irix*) # from ld manpage IRIX64
26063 LDFLAGS_STATIC=-Bstatic
26064 LDFLAGS_SHARED=-Bdynamic
26066 (osf[45]*) # from ld manpage osf4.0d, osf5.1
26067 # alternative "-oldstyle_liblookup" (not in cc manpage)
26068 LDFLAGS_STATIC=-noso
26069 LDFLAGS_SHARED=-so_archive
26072 LDFLAGS_STATIC=-Bstatic
26073 LDFLAGS_SHARED=-Bdynamic
26078 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
26080 echo "$as_me:26080: checking if linker supports switching between static/dynamic" >&5
26081 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
26083 rm -f libconftest.a
26084 cat >conftest.$ac_ext <<EOF
26085 #line 26085 "configure"
26087 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
26089 if { (eval echo "$as_me:26089: \"$ac_compile\"") >&5
26090 (eval $ac_compile) 2>&5
26092 echo "$as_me:26092: \$? = $ac_status" >&5
26093 (exit $ac_status); } ; then
26094 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
26095 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
26099 cf_save_LIBS="$LIBS"
26101 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
26102 cat >conftest.$ac_ext <<_ACEOF
26103 #line 26103 "configure"
26104 #include "confdefs.h"
26106 #line 26106 "configure"
26108 int cf_ldflags_static(FILE *fp);
26114 return cf_ldflags_static(stdin);
26120 rm -f conftest.$ac_objext conftest$ac_exeext
26121 if { (eval echo "$as_me:26121: \"$ac_link\"") >&5
26122 (eval $ac_link) 2>&5
26124 echo "$as_me:26124: \$? = $ac_status" >&5
26125 (exit $ac_status); } &&
26126 { ac_try='test -s conftest$ac_exeext'
26127 { (eval echo "$as_me:26127: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26130 echo "$as_me:26130: \$? = $ac_status" >&5
26131 (exit $ac_status); }; }; then
26133 # some linkers simply ignore the -dynamic
26134 case x`file conftest$ac_exeext 2>/dev/null` in
26136 cf_ldflags_static=no
26139 cf_ldflags_static=yes
26144 echo "$as_me: failed program was:" >&5
26145 cat conftest.$ac_ext >&5
26146 cf_ldflags_static=no
26148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26150 rm -f libconftest.*
26151 LIBS="$cf_save_LIBS"
26153 echo "$as_me:26153: result: $cf_ldflags_static" >&5
26154 echo "${ECHO_T}$cf_ldflags_static" >&6
26156 if test $cf_ldflags_static != yes
26169 echo "$as_me:26169: checking where we will install curses.h" >&5
26170 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
26173 if test "$with_overwrite" = no && \
26174 ( test "x$includedir" = 'x${prefix}/include' || \
26175 test "x$includedir" = "x${prefix}/include" )
26177 includesubdir="/ncurses${USE_LIB_SUFFIX}"
26179 echo "$as_me:26179: result: ${includedir}${includesubdir}" >&5
26180 echo "${ECHO_T}${includedir}${includesubdir}" >&6
26182 ### Resolve a conflict between normal and wide-curses by forcing applications
26183 ### that will need libutf8 to add it to their configure script.
26184 if test "$with_overwrite" != no ; then
26185 if test "$NCURSES_LIBUTF8" = 1 ; then
26186 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
26187 { echo "$as_me:26187: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
26188 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
26191 WITH_OVERWRITE=$with_overwrite
26193 ### At least on MinGW a shared library build without libtool
26194 ### requires adding the additional libs to the link list.
26195 case $cf_cv_system_name in
26196 (*mingw32*|*mingw64*)
26197 if test "$DFT_LWR_MODEL" != "libtool"; then
26198 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
26204 # used to separate tack out of the tree
26207 ### predefined stuff for the test programs
26209 cat >>confdefs.h <<\EOF
26210 #define HAVE_SLK_COLOR 1
26213 # pkgsrc uses these
26215 echo "$as_me:26215: checking for desired basename for form library" >&5
26216 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
26218 # Check whether --with-form-libname or --without-form-libname was given.
26219 if test "${with_form_libname+set}" = set; then
26220 withval="$with_form_libname"
26221 with_lib_basename=$withval
26223 with_lib_basename=form
26225 FORM_NAME="$with_lib_basename"
26227 case "x$FORM_NAME" in
26235 echo "$as_me:26235: result: $FORM_NAME" >&5
26236 echo "${ECHO_T}$FORM_NAME" >&6
26238 echo "$as_me:26238: checking for desired basename for menu library" >&5
26239 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
26241 # Check whether --with-menu-libname or --without-menu-libname was given.
26242 if test "${with_menu_libname+set}" = set; then
26243 withval="$with_menu_libname"
26244 with_lib_basename=$withval
26246 with_lib_basename=menu
26248 MENU_NAME="$with_lib_basename"
26250 case "x$MENU_NAME" in
26258 echo "$as_me:26258: result: $MENU_NAME" >&5
26259 echo "${ECHO_T}$MENU_NAME" >&6
26261 echo "$as_me:26261: checking for desired basename for panel library" >&5
26262 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
26264 # Check whether --with-panel-libname or --without-panel-libname was given.
26265 if test "${with_panel_libname+set}" = set; then
26266 withval="$with_panel_libname"
26267 with_lib_basename=$withval
26269 with_lib_basename=panel
26271 PANEL_NAME="$with_lib_basename"
26273 case "x$PANEL_NAME" in
26281 echo "$as_me:26281: result: $PANEL_NAME" >&5
26282 echo "${ECHO_T}$PANEL_NAME" >&6
26284 echo "$as_me:26284: checking for desired basename for cxx library" >&5
26285 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
26287 # Check whether --with-cxx-libname or --without-cxx-libname was given.
26288 if test "${with_cxx_libname+set}" = set; then
26289 withval="$with_cxx_libname"
26290 with_lib_basename=$withval
26292 with_lib_basename=ncurses++
26294 CXX_NAME="$with_lib_basename"
26296 case "x$CXX_NAME" in
26304 echo "$as_me:26304: result: $CXX_NAME" >&5
26305 echo "${ECHO_T}$CXX_NAME" >&6
26307 ### Construct the list of subdirectories for which we'll customize makefiles
26308 ### with the appropriate compile-rules.
26310 echo "$as_me:26310: checking for src modules" >&5
26311 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
26313 # dependencies and linker-arguments for test-programs
26314 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
26315 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
26316 if test "$DFT_LWR_MODEL" = "libtool"; then
26317 TEST_ARGS="${TEST_DEPS}"
26318 TEST_ARG2="${TEST_DEP2}"
26320 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
26321 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
26324 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
26326 for cf_dir in $modules_to_build
26328 if test -f $srcdir/$cf_dir/modules; then
26330 # We may/may not have tack in the distribution, though the
26332 if test $cf_dir = tack ; then
26333 if test "x$cf_with_tack" != "xyes"; then
26338 if test -z "$cf_cv_src_modules"; then
26339 cf_cv_src_modules=$cf_dir
26341 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
26344 # Make the ncurses_cfg.h file record the library interface files as
26345 # well. These are header files that are the same name as their
26346 # directory. Ncurses is the only library that does not follow
26348 if test $cf_dir = tack ; then
26350 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
26352 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26354 cat >>confdefs.h <<EOF
26355 #define HAVE_${cf_have_include}_H 1
26358 cat >>confdefs.h <<EOF
26359 #define HAVE_LIB${cf_have_include} 1
26362 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26364 eval TEST_ROOT=\$${cf_map_lib_basename}_NAME
26366 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
26367 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
26368 if test "$DFT_LWR_MODEL" = "libtool"; then
26369 TEST_ARGS="${TEST_DEPS}"
26370 TEST_ARG2="${TEST_DEP2}"
26372 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
26373 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
26375 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
26379 echo "$as_me:26379: result: $cf_cv_src_modules" >&5
26380 echo "${ECHO_T}$cf_cv_src_modules" >&6
26382 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
26383 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
26386 if test "x$cf_with_manpages" != xno ; then
26387 SRC_SUBDIRS="$SRC_SUBDIRS man"
26389 SRC_SUBDIRS="$SRC_SUBDIRS include"
26390 for cf_dir in $cf_cv_src_modules
26392 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
26394 if test "x$cf_with_tests" != "xno" ; then
26395 SRC_SUBDIRS="$SRC_SUBDIRS test"
26397 # always make this, to install the ncurses-config script
26398 SRC_SUBDIRS="$SRC_SUBDIRS misc"
26399 if test "$cf_with_cxx_binding" != no; then
26400 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
26401 SRC_SUBDIRS="$SRC_SUBDIRS c++"
26404 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
26405 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
26408 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
26409 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
26410 ADA_SUBDIRS="gen src"
26411 if test "x$cf_with_tests" != "xno" ; then
26412 ADA_SUBDIRS="$ADA_SUBDIRS samples"
26417 for cf_dir in $SRC_SUBDIRS
26419 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
26422 if test -n "$ADA_SUBDIRS"; then
26423 for cf_dir in $ADA_SUBDIRS
26425 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
26430 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
26431 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
26432 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
26433 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
26437 for cf_item in $cf_list_models
26441 (libtool) cf_subdir='obj_lo' ;;
26442 (normal) cf_subdir='objects' ;;
26443 (debug) cf_subdir='obj_g' ;;
26444 (profile) cf_subdir='obj_p' ;;
26446 case $cf_cv_system_name in
26448 cf_subdir='objects' ;;
26450 cf_subdir='obj_s' ;;
26454 for cf_item2 in $DIRS_TO_MAKE
26456 test $cf_item2 = $cf_subdir && break
26458 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
26460 for cf_dir in $DIRS_TO_MAKE
26462 test ! -d $cf_dir && mkdir $cf_dir
26465 # symbols that differ when compiling Ada95 by itself.
26466 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
26468 # values to use as strings
26470 cat >>confdefs.h <<EOF
26471 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
26474 cat >>confdefs.h <<EOF
26475 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
26478 ### Now that we're done running tests, add the compiler-warnings, if any
26483 cf_new_extra_cppflags=
26485 for cf_add_cflags in $EXTRA_CFLAGS
26487 case $cf_fix_cppflags in
26489 case $cf_add_cflags in
26490 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
26491 case $cf_add_cflags in
26493 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
26495 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
26496 && test -z "${cf_tst_cflags}" \
26497 && cf_fix_cppflags=yes
26499 if test $cf_fix_cppflags = yes ; then
26501 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26502 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26505 elif test "${cf_tst_cflags}" = "\"'" ; then
26507 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26508 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26514 case "$CPPFLAGS" in
26518 case $cf_add_cflags in
26520 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
26522 CPPFLAGS=`echo "$CPPFLAGS" | \
26523 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
26524 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
26529 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
26530 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
26537 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
26538 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
26545 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26546 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26548 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
26550 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
26551 && test -z "${cf_tst_cflags}" \
26552 && cf_fix_cppflags=no
26557 if test -n "$cf_new_cflags" ; then
26559 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
26560 CFLAGS="${CFLAGS}$cf_new_cflags"
26564 if test -n "$cf_new_cppflags" ; then
26566 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
26567 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
26571 if test -n "$cf_new_extra_cppflags" ; then
26573 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
26574 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
26578 ### Define substitutions for header files to avoid name-pollution
26580 if test "x$cf_cv_have_tcgetattr" = xyes ; then
26586 if test "x$ac_cv_header_stdint_h" = xyes ; then
26592 if test "x$ac_cv_header_termio_h" = xyes ; then
26598 if test "x$ac_cv_header_termios_h" = xyes ; then
26604 ################################################################################
26605 test "x$use_database" = xyes && \
26606 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
26608 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
26609 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
26611 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
26612 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
26615 if test "x$cf_with_tests" != xno ; then
26621 ADAHTML_DIR=../../doc/html/ada
26623 # workaround for OS/2 (20151017)
26624 case $cf_cv_system_name in
26626 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
26633 # workaround for g++ versus Solaris (20131116)
26634 case $cf_cv_system_name in
26636 case "x$CPPFLAGS" in
26637 (*-D_XOPEN_SOURCE_EXTENDED*)
26638 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
26640 echo "${as_me:-configure}:26640: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
26642 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
26643 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
26649 # Help to automatically enable the extended curses features when using either
26650 # the *-config or the ".pc" files by adding defines.
26651 echo "$as_me:26651: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
26652 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
26654 for cf_loop1 in $CPPFLAGS_after_XOPEN
26657 for cf_loop2 in $CPPFLAGS_before_XOPEN
26659 if test "x$cf_loop1" = "x$cf_loop2"
26665 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
26667 echo "$as_me:26667: result: $PKG_CFLAGS" >&5
26668 echo "${ECHO_T}$PKG_CFLAGS" >&6
26670 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
26671 case "x$NCURSES_OSPEED" in
26680 cat >>confdefs.h <<EOF
26681 #define NCURSES_OSPEED_COMPAT $cf_compatible
26684 case "x$cf_cv_typeof_chtype" in
26685 (xshort|xint|xlong)
26686 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
26690 case "x$cf_cv_typeof_mmask_t" in
26691 (xshort|xint|xlong)
26692 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
26696 # substitute into misc/Makefile to suppress
26697 # (un)install.data from the
26698 # (un)install rules.
26699 if test "x$cf_with_db_install" = "xno"; then
26701 MISC_UNINSTALL_DATA=
26703 MISC_INSTALL_DATA=install.data
26704 MISC_UNINSTALL_DATA=uninstall.data
26707 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
26710 MAKE_DATABASE="$MAKE_TERMINFO"
26713 if test -n "$PACKAGE"
26715 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
26717 echo "package: $PACKAGE"
26723 if test -n "$RESULTING_SYMS"
26725 cf_filter_syms=$cf_dft_filter_syms
26726 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
26728 echo "${as_me:-configure}:26728: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
26732 if test "x$WILDCARD_SYMS" = xno
26737 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
26739 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
26740 if test $cf_filter_syms = yes
26742 RESULTING_SYMS=resulting.map
26745 if test "x$cross_compiling" = xyes ; then
26746 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
26749 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
26753 # This is used for the *-config script and *.pc data files.
26755 echo "$as_me:26755: checking for linker search path" >&5
26756 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
26757 if test "${cf_cv_ld_searchpath+set}" = set; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 if test "$cross_compiling" != yes ; then
26763 # GNU binutils' ld does not involve permissions which may stop ldconfig.
26764 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
26766 # The -NX options tell newer versions of Linux ldconfig to not attempt to
26767 # update the cache, which makes it run faster.
26768 test -z "$cf_pathlist" && \
26769 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
26771 test -z "$cf_pathlist" &&
26772 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
26774 # This works with OpenBSD 6.5, which lists only filenames
26775 test -z "$cf_pathlist" &&
26776 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
26778 if test -z "$cf_pathlist"
26780 # dyld default path with MacOS
26781 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
26783 # do this to bypass check
26784 cf_cv_ld_searchpath='$HOME/lib'
26785 cf_pathlist="/usr/local/lib /lib /usr/lib"
26789 if test -z "$cf_pathlist"
26791 # Solaris is hardcoded
26792 if test -d /opt/SUNWspro/lib
26794 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
26795 elif test -d /usr/ccs/lib
26797 cf_pathlist="/usr/ccs/lib /usr/lib"
26803 # If nothing else, assume it is conventional
26804 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
26806 # Finally, check that this is only directories
26807 for cf_path in $0 $cf_pathlist
26809 if test -d "$cf_path"; then
26810 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
26811 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
26815 # Ensure that it is nonempty
26816 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
26819 echo "$as_me:26819: result: $cf_cv_ld_searchpath" >&5
26820 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
26822 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
26824 cat >>confdefs.h <<\EOF
26825 #define HAVE_CURSES_DATA_BOOLNAMES 1
26828 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
26829 ac_config_commands="$ac_config_commands default"
26830 cat >confcache <<\_ACEOF
26831 # This file is a shell script that caches the results of configure
26832 # tests run on this system so they can be shared between configure
26833 # scripts and configure runs, see configure's option --config-cache.
26834 # It is not useful on other systems. If it contains results you don't
26835 # want to keep, you may remove or edit it.
26837 # config.status only pays attention to the cache file if you give it
26838 # the --recheck option to rerun configure.
26840 # `ac_cv_env_foo' variables (set or unset) will be overriden when
26841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26842 # following values.
26846 # The following way of writing the cache mishandles newlines in values,
26847 # but we know of no workaround that is simple, portable, and efficient.
26848 # So, don't put newlines in cache variables' values.
26849 # Ultrix sh set writes to stderr and can't be redirected directly,
26850 # and sets the high bit in the cache file unless we assign to the vars.
26853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26855 # `set' does not quote correctly, so add quotes (double-quote
26856 # substitution turns \\\\ into \\, and sed turns \\ into \).
26859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26862 # `set' quotes correctly as required by POSIX, so do not add quotes.
26864 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26873 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26875 if cmp -s $cache_file confcache; then :; else
26876 if test -w $cache_file; then
26877 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26878 cat confcache >$cache_file
26880 echo "not updating unwritable cache $cache_file"
26885 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26886 # Let make expand exec_prefix.
26887 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26891 # trailing colons and then remove the whole line if VPATH becomes empty
26892 # (actually we leave an empty line to preserve line numbers).
26893 if test "x$srcdir" = x.; then
26894 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26895 s/:*\$(srcdir):*/:/;
26896 s/:*\${srcdir}:*/:/;
26898 s/^\([^=]*=[ ]*\):*/\1/;
26904 DEFS=-DHAVE_CONFIG_H
26906 : ${CONFIG_STATUS=./config.status}
26907 ac_clean_files_save=$ac_clean_files
26908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26909 { echo "$as_me:26909: creating $CONFIG_STATUS" >&5
26910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26911 cat >$CONFIG_STATUS <<_ACEOF
26913 # Generated automatically by configure.
26914 # Run this file to recreate the current configuration.
26915 # Compiler output produced by configure, useful for debugging
26916 # configure, is in config.log if it exists.
26919 SHELL=\${CONFIG_SHELL-$SHELL}
26920 ac_cs_invocation="\$0 \$@"
26922 CLICOLOR_FORCE= GREP_OPTIONS=
26923 unset CLICOLOR_FORCE GREP_OPTIONS
26926 cat >>$CONFIG_STATUS <<\_ACEOF
26927 # Be Bourne compatible
26928 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26931 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26935 # Name of the executable.
26936 as_me=`echo "$0" |sed 's,.*[\\/],,'`
26938 if expr a : '\(a\)' >/dev/null 2>&1; then
26944 rm -f conf$$ conf$$.exe conf$$.file
26946 if ln -s conf$$.file conf$$ 2>/dev/null; then
26947 # We could just check for DJGPP; but this test a) works b) is more generic
26948 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26949 if test -f conf$$.exe; then
26950 # Don't use ln at all; we don't have any links
26955 elif ln conf$$.file conf$$ 2>/dev/null; then
26960 rm -f conf$$ conf$$.exe conf$$.file
26962 as_executable_p="test -f"
26964 # Support unset when possible.
26965 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26972 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26973 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26974 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26975 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26976 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26977 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26978 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26979 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26982 # We need space, tab and new line, in precisely that order.
26988 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
26994 # Files that config.status was made for.
26995 if test -n "$ac_config_files"; then
26996 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26999 if test -n "$ac_config_headers"; then
27000 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27003 if test -n "$ac_config_links"; then
27004 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27007 if test -n "$ac_config_commands"; then
27008 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27011 cat >>$CONFIG_STATUS <<\EOF
27014 \`$as_me' instantiates files from templates according to the
27015 current configuration.
27017 Usage: $0 [OPTIONS] [FILE]...
27019 -h, --help print this help, then exit
27020 -V, --version print version number, then exit
27021 -d, --debug don't remove temporary files
27022 --recheck update $as_me by reconfiguring in the same conditions
27023 --file=FILE[:TEMPLATE]
27024 instantiate the configuration file FILE
27025 --header=FILE[:TEMPLATE]
27026 instantiate the configuration header FILE
27028 Configuration files:
27031 Configuration headers:
27034 Configuration commands:
27037 Report bugs to <dickey@invisible-island.net>."
27040 cat >>$CONFIG_STATUS <<EOF
27043 configured by $0, generated by GNU Autoconf 2.52.20200802,
27044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27046 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
27047 Free Software Foundation, Inc.
27048 This config.status script is free software; the Free Software Foundation
27049 gives unlimited permission to copy, distribute and modify it."
27054 cat >>$CONFIG_STATUS <<\EOF
27055 # If no file are specified by the user, then we need to provide default
27056 # value. By we need to know if files were specified by the user.
27062 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27063 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27065 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
27069 *) # This is not an option, so the user has probably given explicit
27071 ac_need_defaults=false;;
27075 # Handling of the options.
27077 cat >>$CONFIG_STATUS <<EOF
27078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27079 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
27080 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
27082 cat >>$CONFIG_STATUS <<\EOF
27083 --version | --vers* | -V )
27084 echo "$ac_cs_version"; exit 0 ;;
27086 # Conflict between --help and --header
27087 { { echo "$as_me:27087: error: ambiguous option: $1
27088 Try \`$0 --help' for more information." >&5
27089 echo "$as_me: error: ambiguous option: $1
27090 Try \`$0 --help' for more information." >&2;}
27091 { (exit 1); exit 1; }; };;
27092 --help | --hel | -h )
27093 echo "$ac_cs_usage"; exit 0 ;;
27094 --debug | --d* | -d )
27096 --file | --fil | --fi | --f )
27098 CONFIG_FILES="$CONFIG_FILES $1"
27099 ac_need_defaults=false;;
27100 --header | --heade | --head | --hea )
27102 CONFIG_HEADERS="$CONFIG_HEADERS $1"
27103 ac_need_defaults=false;;
27105 # This is an error.
27106 -*) { { echo "$as_me:27106: error: unrecognized option: $1
27107 Try \`$0 --help' for more information." >&5
27108 echo "$as_me: error: unrecognized option: $1
27109 Try \`$0 --help' for more information." >&2;}
27110 { (exit 1); exit 1; }; } ;;
27112 *) ac_config_targets="$ac_config_targets $1" ;;
27121 ## ----------------------- ##
27122 ## Running config.status. ##
27123 ## ----------------------- ##
27125 This file was extended by $as_me 2.52.20200802, executed with
27126 CONFIG_FILES = $CONFIG_FILES
27127 CONFIG_HEADERS = $CONFIG_HEADERS
27128 CONFIG_LINKS = $CONFIG_LINKS
27129 CONFIG_COMMANDS = $CONFIG_COMMANDS
27130 > $ac_cs_invocation
27131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27136 cat >>$CONFIG_STATUS <<EOF
27138 # INIT-COMMANDS section.
27141 ### Special initialization commands, used to pass information from the
27142 ### configuration-run into config.status
27144 ALTERNATE_SYMS="$ALTERNATE_SYMS"
27146 CXX_NAME="$CXX_NAME"
27147 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
27148 DFT_LWR_MODEL="$DFT_LWR_MODEL"
27150 EXTRA_SUFFIX="$EXTRA_SUFFIX"
27151 FORM_NAME="$FORM_NAME"
27152 LDCONFIG="$LDCONFIG"
27153 LIBTOOL_VERSION="$LIBTOOL_VERSION"
27154 LIB_NAME="$LIB_NAME"
27155 LIB_PREFIX="$LIB_PREFIX"
27156 LIB_SUBSETS="$LIB_SUBSETS"
27157 LIB_SUFFIX="$LIB_SUFFIX"
27158 LIB_TRACING="$LIB_TRACING"
27160 MAKE_TERMINFO="$MAKE_TERMINFO"
27161 MENU_NAME="$MENU_NAME"
27162 NCURSES_MAJOR="$NCURSES_MAJOR"
27163 NCURSES_MINOR="$NCURSES_MINOR"
27164 NCURSES_OSPEED="$NCURSES_OSPEED"
27165 NCURSES_PATCH="$NCURSES_PATCH"
27166 PANEL_NAME="$PANEL_NAME"
27167 SRC_SUBDIRS="$SRC_SUBDIRS"
27168 TERMINFO="$TERMINFO"
27169 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
27170 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
27171 TICS_NAME="$TICS_NAME"
27172 TICS_SUFFIX="$TICS_SUFFIX"
27173 TIC_PATH="$TIC_PATH"
27174 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
27175 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
27176 TINFO_NAME="$TINFO_NAME"
27177 TINFO_SUFFIX="$TINFO_SUFFIX"
27178 UNALTERED_SYMS="$UNALTERED_SYMS"
27179 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
27180 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
27181 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
27182 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
27183 WILDCARD_SYMS="$WILDCARD_SYMS"
27184 WITH_CURSES_H="$with_curses_h"
27185 WITH_ECHO="${enable_echo:=yes}"
27186 WITH_OVERWRITE="$with_overwrite"
27187 cf_LIST_MODELS="$cf_list_models"
27188 cf_cv_abi_version="$cf_cv_abi_version"
27189 cf_cv_do_relink="$cf_cv_do_relink"
27190 cf_cv_do_reranlib="$cf_cv_do_reranlib"
27191 cf_cv_do_symlinks="$cf_cv_do_symlinks"
27192 cf_cv_enable_lp64="$cf_cv_enable_lp64"
27193 cf_cv_enable_opaque="$cf_cv_enable_opaque"
27194 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
27195 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
27196 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
27197 cf_cv_rel_version="$cf_cv_rel_version"
27198 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
27199 cf_cv_shared_soname='$cf_cv_shared_soname'
27200 cf_cv_shlib_version="$cf_cv_shlib_version"
27201 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
27202 cf_cv_system_name="$cf_cv_system_name"
27203 cf_cv_term_driver="$with_term_driver"
27204 cf_with_ada="$cf_with_ada"
27205 cf_with_cxx_binding="$cf_with_cxx_binding"
27206 cf_with_db_install="$cf_with_db_install"
27207 cf_with_manpages="$cf_with_manpages"
27208 cf_with_tests="$cf_with_tests"
27211 with_shared_cxx="$with_shared_cxx"
27215 cat >>$CONFIG_STATUS <<\EOF
27216 for ac_config_target in $ac_config_targets
27218 case "$ac_config_target" in
27219 # Handling of arguments.
27220 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
27221 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
27222 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
27223 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
27224 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
27225 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
27226 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27227 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27228 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
27229 *) { { echo "$as_me:27229: error: invalid argument: $ac_config_target" >&5
27230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27231 { (exit 1); exit 1; }; };;
27235 # If the user did not use the arguments to specify the items to instantiate,
27236 # then the envvar interface is used. Set only those that are not.
27237 # We use the long form for the default assignment because of an extremely
27238 # bizarre bug on SunOS 4.1.3.
27239 if $ac_need_defaults; then
27240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27245 # Create a temporary directory, and hook for its removal unless debugging.
27248 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27249 trap '{ (exit 1); exit 1; }' 1 2 13 15
27252 # Create a (secure) tmp directory for tmp files.
27255 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
27256 test -n "$tmp" && test -d "$tmp"
27259 tmp=$TMPDIR/cs$$-$RANDOM
27260 (umask 077 && mkdir $tmp)
27263 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
27264 { (exit 1); exit 1; }
27269 cat >>$CONFIG_STATUS <<EOF
27272 # CONFIG_FILES section.
27275 # No need to generate the scripts if there are no CONFIG_FILES.
27276 # This happens for instance when ./config.status config.h
27277 if test -n "\$CONFIG_FILES"; then
27278 # Protect against being on the right side of a sed subst in config.status.
27279 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27280 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27281 s,@SHELL@,$SHELL,;t t
27282 s,@exec_prefix@,$exec_prefix,;t t
27283 s,@prefix@,$prefix,;t t
27284 s,@program_transform_name@,$program_transform_name,;t t
27285 s,@bindir@,$bindir,;t t
27286 s,@sbindir@,$sbindir,;t t
27287 s,@libexecdir@,$libexecdir,;t t
27288 s,@datarootdir@,$datarootdir,;t t
27289 s,@datadir@,$datadir,;t t
27290 s,@sysconfdir@,$sysconfdir,;t t
27291 s,@sharedstatedir@,$sharedstatedir,;t t
27292 s,@localstatedir@,$localstatedir,;t t
27293 s,@runstatedir@,$runstatedir,;t t
27294 s,@libdir@,$libdir,;t t
27295 s,@includedir@,$includedir,;t t
27296 s,@oldincludedir@,$oldincludedir,;t t
27297 s,@infodir@,$infodir,;t t
27298 s,@mandir@,$mandir,;t t
27299 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27300 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27301 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27302 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27303 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27304 s,@build_alias@,$build_alias,;t t
27305 s,@host_alias@,$host_alias,;t t
27306 s,@target_alias@,$target_alias,;t t
27307 s,@ECHO_C@,$ECHO_C,;t t
27308 s,@ECHO_N@,$ECHO_N,;t t
27309 s,@ECHO_T@,$ECHO_T,;t t
27310 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27311 s,@DEFS@,$DEFS,;t t
27312 s,@LIBS@,$LIBS,;t t
27313 s,@top_builddir@,$top_builddir,;t t
27314 s,@EGREP@,$EGREP,;t t
27315 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
27316 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
27317 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
27318 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
27319 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
27320 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
27321 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
27322 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
27323 s,@VERSION@,$VERSION,;t t
27324 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
27325 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
27326 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
27327 s,@PACKAGE@,$PACKAGE,;t t
27328 s,@build@,$build,;t t
27329 s,@build_cpu@,$build_cpu,;t t
27330 s,@build_vendor@,$build_vendor,;t t
27331 s,@build_os@,$build_os,;t t
27332 s,@host@,$host,;t t
27333 s,@host_cpu@,$host_cpu,;t t
27334 s,@host_vendor@,$host_vendor,;t t
27335 s,@host_os@,$host_os,;t t
27336 s,@target@,$target,;t t
27337 s,@target_cpu@,$target_cpu,;t t
27338 s,@target_vendor@,$target_vendor,;t t
27339 s,@target_os@,$target_os,;t t
27341 s,@CFLAGS@,$CFLAGS,;t t
27342 s,@LDFLAGS@,$LDFLAGS,;t t
27343 s,@CPPFLAGS@,$CPPFLAGS,;t t
27344 s,@ac_ct_CC@,$ac_ct_CC,;t t
27345 s,@EXEEXT@,$EXEEXT,;t t
27346 s,@OBJEXT@,$OBJEXT,;t t
27347 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
27349 s,@LDCONFIG@,$LDCONFIG,;t t
27351 s,@CXXFLAGS@,$CXXFLAGS,;t t
27352 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27354 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27355 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27356 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27357 s,@LINT@,$LINT,;t t
27358 s,@LINT_OPTS@,$LINT_OPTS,;t t
27359 s,@LN_S@,$LN_S,;t t
27360 s,@cf_config_suffix@,$cf_config_suffix,;t t
27361 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27362 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
27363 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
27364 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
27365 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
27366 s,@SET_MAKE@,$SET_MAKE,;t t
27367 s,@CTAGS@,$CTAGS,;t t
27368 s,@ETAGS@,$ETAGS,;t t
27369 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
27370 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
27371 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
27372 s,@RANLIB@,$RANLIB,;t t
27373 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27375 s,@ac_ct_LD@,$ac_ct_LD,;t t
27377 s,@ac_ct_AR@,$ac_ct_AR,;t t
27379 s,@ac_ct_NM@,$ac_ct_NM,;t t
27380 s,@ARFLAGS@,$ARFLAGS,;t t
27381 s,@DESTDIR@,$DESTDIR,;t t
27382 s,@BUILD_CC@,$BUILD_CC,;t t
27383 s,@BUILD_CPP@,$BUILD_CPP,;t t
27384 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
27385 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
27386 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
27387 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
27388 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
27389 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
27390 s,@cf_list_models@,$cf_list_models,;t t
27391 s,@ABI_VERSION@,$ABI_VERSION,;t t
27392 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
27393 s,@LIBTOOL@,$LIBTOOL,;t t
27394 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
27395 s,@LT_UNDEF@,$LT_UNDEF,;t t
27396 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
27397 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
27398 s,@LIB_CREATE@,$LIB_CREATE,;t t
27399 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
27400 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
27401 s,@LIB_PREP@,$LIB_PREP,;t t
27402 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
27403 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
27404 s,@LIB_LINK@,$LIB_LINK,;t t
27405 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
27406 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
27407 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
27408 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
27409 s,@TICS_NAME@,$TICS_NAME,;t t
27410 s,@TINFO_NAME@,$TINFO_NAME,;t t
27411 s,@LIB_NAME@,$LIB_NAME,;t t
27412 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
27413 s,@CC_G_OPT@,$CC_G_OPT,;t t
27414 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
27415 s,@LD_MODEL@,$LD_MODEL,;t t
27416 s,@shlibdir@,$shlibdir,;t t
27417 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
27418 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
27419 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
27420 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
27421 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
27422 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
27423 s,@LINK_PROGS@,$LINK_PROGS,;t t
27424 s,@LINK_TESTS@,$LINK_TESTS,;t t
27425 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
27426 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27427 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
27428 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
27429 s,@RPATH_LIST@,$RPATH_LIST,;t t
27430 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
27431 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
27432 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
27433 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
27434 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
27435 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
27436 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
27437 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
27438 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
27440 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
27441 s,@INFOCMP@,$INFOCMP,;t t
27442 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
27443 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
27444 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
27445 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
27446 s,@XTERM_KBS@,$XTERM_KBS,;t t
27447 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
27448 s,@TERMINFO@,$TERMINFO,;t t
27449 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
27450 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
27451 s,@TERMPATH@,$TERMPATH,;t t
27452 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
27453 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
27454 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
27455 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
27456 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
27457 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
27458 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
27459 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
27460 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
27461 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
27462 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
27463 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
27464 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
27465 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
27466 s,@RGB_PATH@,$RGB_PATH,;t t
27467 s,@no_x11_rgb@,$no_x11_rgb,;t t
27468 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
27469 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
27470 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
27471 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
27472 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
27473 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
27474 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
27475 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
27476 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
27477 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
27478 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
27479 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
27480 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
27481 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
27482 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
27483 s,@PTHREAD@,$PTHREAD,;t t
27484 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
27485 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
27486 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
27487 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
27488 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
27489 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
27490 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
27491 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
27492 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
27493 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
27494 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
27495 s,@ECHO_LT@,$ECHO_LT,;t t
27496 s,@ECHO_LD@,$ECHO_LD,;t t
27497 s,@RULE_CC@,$RULE_CC,;t t
27498 s,@SHOW_CC@,$SHOW_CC,;t t
27499 s,@ECHO_CC@,$ECHO_CC,;t t
27500 s,@ECHO_LINK@,$ECHO_LINK,;t t
27501 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
27502 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
27503 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
27504 s,@ADAFLAGS@,$ADAFLAGS,;t t
27505 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
27506 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
27507 s,@ADA_TRACE@,$ADA_TRACE,;t t
27508 s,@MATH_LIB@,$MATH_LIB,;t t
27509 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
27510 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
27511 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
27512 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
27513 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
27514 s,@TEST_LIBS@,$TEST_LIBS,;t t
27515 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
27516 s,@CXXCPP@,$CXXCPP,;t t
27517 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
27518 s,@CXX_AR@,$CXX_AR,;t t
27519 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
27520 s,@CXXLIBS@,$CXXLIBS,;t t
27521 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
27522 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
27523 s,@M4_exists@,$M4_exists,;t t
27524 s,@cf_ada_make@,$cf_ada_make,;t t
27525 s,@cf_ada_config@,$cf_ada_config,;t t
27526 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
27527 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
27528 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
27529 s,@cf_compile_generics@,$cf_compile_generics,;t t
27530 s,@cf_generic_objects@,$cf_generic_objects,;t t
27531 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
27532 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
27533 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
27534 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
27535 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
27536 s,@cf_ada_package@,$cf_ada_package,;t t
27537 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
27538 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
27539 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
27540 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
27541 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
27542 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
27543 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
27544 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
27545 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
27546 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
27547 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
27548 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
27549 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
27550 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
27551 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
27552 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
27553 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
27554 s,@TICS_LIBS@,$TICS_LIBS,;t t
27555 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
27556 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
27557 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
27558 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
27559 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
27560 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
27561 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
27562 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
27563 s,@includesubdir@,$includesubdir,;t t
27564 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
27565 s,@TICS_LIST@,$TICS_LIST,;t t
27566 s,@TINFO_LIST@,$TINFO_LIST,;t t
27567 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
27568 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
27569 s,@FORM_NAME@,$FORM_NAME,;t t
27570 s,@MENU_NAME@,$MENU_NAME,;t t
27571 s,@PANEL_NAME@,$PANEL_NAME,;t t
27572 s,@CXX_NAME@,$CXX_NAME,;t t
27573 s,@TEST_ARGS@,$TEST_ARGS,;t t
27574 s,@TEST_DEPS@,$TEST_DEPS,;t t
27575 s,@TEST_ARG2@,$TEST_ARG2,;t t
27576 s,@TEST_DEP2@,$TEST_DEP2,;t t
27577 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
27578 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
27579 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
27580 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
27581 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
27582 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
27583 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
27584 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
27585 s,@cross_compiling@,$cross_compiling,;t t
27586 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
27587 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
27588 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
27589 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
27590 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
27591 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
27592 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
27593 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
27594 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
27595 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
27596 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
27597 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
27602 cat >>$CONFIG_STATUS <<\EOF
27603 # Split the substitutions into bite-sized pieces for seds with
27604 # small command number limits, like on Digital OSF/1 and HP-UX.
27605 ac_max_sed_lines=48
27606 ac_sed_frag=1 # Number of current file.
27607 ac_beg=1 # First line for current file.
27608 ac_end=$ac_max_sed_lines # Line after last line for current file.
27611 while $ac_more_lines; do
27612 if test $ac_beg -gt 1; then
27613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27615 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27617 if test ! -s $tmp/subs.frag; then
27618 ac_more_lines=false
27620 # The purpose of the label and of the branching condition is to
27621 # speed up the sed processing (if there are no `@' at all, there
27622 # is no need to browse any of the substitutions).
27623 # These are the two extra sed commands mentioned above.
27625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27626 # It is possible to make a multiline substitution using escaped newlines.
27627 # Ensure that we do not split the substitution between script fragments.
27629 ac_END=`expr $ac_end + $ac_max_sed_lines`
27630 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
27631 if test -s $tmp/subs.next; then
27632 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
27633 if test ! -s $tmp/subs.edit; then
27634 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
27635 if test ! -s $tmp/subs.edit; then
27636 if test $ac_beg -gt 1; then
27637 ac_end=`expr $ac_end - 1`
27644 if test -z "$ac_sed_cmds"; then
27645 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27647 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27649 ac_sed_frag=`expr $ac_sed_frag + 1`
27651 ac_end=`expr $ac_end + $ac_max_sed_lines`
27654 if test -z "$ac_sed_cmds"; then
27657 fi # test -n "$CONFIG_FILES"
27660 cat >>$CONFIG_STATUS <<\EOF
27661 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27664 - | *:- | *:-:* ) # input from stdin
27666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27670 * ) ac_file_in=$ac_file.in ;;
27673 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27674 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27675 X"$ac_file" : 'X\(//\)[^/]' \| \
27676 X"$ac_file" : 'X\(//\)$' \| \
27677 X"$ac_file" : 'X\(/\)' \| \
27678 . : '\(.\)' 2>/dev/null ||
27680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27682 /^X\(\/\/\)$/{ s//\1/; q; }
27683 /^X\(\/\).*/{ s//\1/; q; }
27685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27686 { case "$ac_dir" in
27687 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27691 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27692 case $as_mkdir_dir in
27693 # Skip DOS drivespec
27694 ?:) as_incr_dir=$as_mkdir_dir ;;
27696 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27697 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27702 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
27703 # A "../" for each directory in $ac_dir_suffix.
27704 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
27706 ac_dir_suffix= ac_dots=
27711 if test -z "$ac_dots"; then
27714 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
27716 [\\/]* | ?:[\\/]* )
27717 ac_srcdir=$srcdir$ac_dir_suffix;
27718 ac_top_srcdir=$srcdir ;;
27719 *) # Relative path.
27720 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
27721 ac_top_srcdir=$ac_dots$srcdir ;;
27725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27726 *) ac_INSTALL=$ac_dots$INSTALL ;;
27729 if test x"$ac_file" != x-; then
27730 { echo "$as_me:27730: creating $ac_file" >&5
27731 echo "$as_me: creating $ac_file" >&6;}
27734 # Let's still pretend it is `configure' which instantiates (i.e., don't
27735 # use $as_me), people would be surprised to read:
27736 # /* config.h. Generated automatically by config.status. */
27737 configure_input="Generated automatically from `echo $ac_file_in |
27738 sed 's,.*/,,'` by configure."
27740 # First look for the input files in the build tree, otherwise in the
27742 ac_file_inputs=`IFS=:
27743 for f in $ac_file_in; do
27745 -) echo $tmp/stdin ;;
27747 # Absolute (can't be DOS-style, as IFS=:)
27748 test -f "$f" || { { echo "$as_me:27748: error: cannot find input file: $f" >&5
27749 echo "$as_me: error: cannot find input file: $f" >&2;}
27750 { (exit 1); exit 1; }; }
27753 if test -f "$f"; then
27756 elif test -f "$srcdir/$f"; then
27761 { { echo "$as_me:27761: error: cannot find input file: $f" >&5
27762 echo "$as_me: error: cannot find input file: $f" >&2;}
27763 { (exit 1); exit 1; }; }
27766 done` || { (exit 1); exit 1; }
27768 cat >>$CONFIG_STATUS <<\EOF
27769 ac_warn_datarootdir=no
27770 if test x"$ac_file" != x-; then
27771 for ac_item in $ac_file_inputs
27773 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
27774 if test -n "$ac_seen"; then
27775 ac_used=`grep '@datarootdir@' $ac_item`
27776 if test -z "$ac_used"; then
27777 { echo "$as_me:27777: WARNING: datarootdir was used implicitly but not set:
27779 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
27781 ac_warn_datarootdir=yes
27784 ac_seen=`grep '${datarootdir}' $ac_item`
27785 if test -n "$ac_seen"; then
27786 { echo "$as_me:27786: WARNING: datarootdir was used explicitly but not set:
27788 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
27790 ac_warn_datarootdir=yes
27795 if test "x$ac_warn_datarootdir" = xyes; then
27796 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
27800 cat >>$CONFIG_STATUS <<EOF
27804 cat >>$CONFIG_STATUS <<\EOF
27806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27807 s,@configure_input@,$configure_input,;t t
27808 s,@srcdir@,$ac_srcdir,;t t
27809 s,@top_srcdir@,$ac_top_srcdir,;t t
27810 s,@INSTALL@,$ac_INSTALL,;t t
27811 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27813 if test x"$ac_file" != x-; then
27814 cp $tmp/out $ac_file
27816 for ac_name in prefix exec_prefix datarootdir
27818 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
27819 if test -n "$ac_seen"; then
27820 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
27821 if test -z "$ac_init"; then
27822 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
27823 { echo "$as_me:27823: WARNING: Variable $ac_name is used but was not set:
27825 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
27830 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
27831 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
27832 if test -s $tmp/out; then
27833 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
27834 { echo "$as_me:27834: WARNING: Some variables may not be substituted:
27836 echo "$as_me: WARNING: Some variables may not be substituted:
27846 cat >>$CONFIG_STATUS <<\EOF
27849 # CONFIG_HEADER section.
27852 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27853 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27855 # ac_d sets the value in "#define NAME VALUE" lines.
27856 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27857 ac_dB='[ ].*$,\1#\2'
27860 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
27861 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27862 ac_iB='\([ ]\),\1#\2define\3'
27865 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27866 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27867 ac_uB='$,\1#\2define\3'
27871 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27874 - | *:- | *:-:* ) # input from stdin
27876 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27878 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27880 * ) ac_file_in=$ac_file.in ;;
27883 test x"$ac_file" != x- && { echo "$as_me:27883: creating $ac_file" >&5
27884 echo "$as_me: creating $ac_file" >&6;}
27886 # First look for the input files in the build tree, otherwise in the
27888 ac_file_inputs=`IFS=:
27889 for f in $ac_file_in; do
27891 -) echo $tmp/stdin ;;
27893 # Absolute (can't be DOS-style, as IFS=:)
27894 test -f "$f" || { { echo "$as_me:27894: error: cannot find input file: $f" >&5
27895 echo "$as_me: error: cannot find input file: $f" >&2;}
27896 { (exit 1); exit 1; }; }
27899 if test -f "$f"; then
27902 elif test -f "$srcdir/$f"; then
27907 { { echo "$as_me:27907: error: cannot find input file: $f" >&5
27908 echo "$as_me: error: cannot find input file: $f" >&2;}
27909 { (exit 1); exit 1; }; }
27912 done` || { (exit 1); exit 1; }
27913 # Remove the trailing spaces.
27914 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27918 # Transform confdefs.h into a list of #define's. We won't use it as a sed
27919 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
27920 # be either 'cat' or 'sort'.
27921 cat confdefs.h | uniq >conftest.vals
27923 # Break up conftest.vals because some shells have a limit on
27924 # the size of here documents, and old seds have small limits too.
27926 rm -f conftest.tail
27927 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
27928 while grep . conftest.vals >/dev/null
27930 # Write chunks of a limited-size here document to conftest.frag.
27931 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
27932 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
27933 echo 'CEOF' >> $CONFIG_STATUS
27934 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27935 rm -f conftest.vals
27936 mv conftest.tail conftest.vals
27938 rm -f conftest.vals
27940 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
27942 echo ' cat >> conftest.edit <<CEOF
27943 /@DEFS@/r conftest.frag
27946 sed -f conftest.edit $tmp/in > $tmp/out
27948 mv $tmp/out $tmp/in
27949 rm -f conftest.edit conftest.frag
27950 ' >> $CONFIG_STATUS
27952 cat >>$CONFIG_STATUS <<\EOF
27953 # Let's still pretend it is `configure' which instantiates (i.e., don't
27954 # use $as_me), people would be surprised to read:
27955 # /* config.h. Generated automatically by config.status. */
27956 if test x"$ac_file" = x-; then
27957 echo "/* Generated automatically by configure. */" >$tmp/config.h
27959 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
27961 cat $tmp/in >>$tmp/config.h
27963 if test x"$ac_file" != x-; then
27964 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
27965 { echo "$as_me:27965: $ac_file is unchanged" >&5
27966 echo "$as_me: $ac_file is unchanged" >&6;}
27968 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27969 X"$ac_file" : 'X\(//\)[^/]' \| \
27970 X"$ac_file" : 'X\(//\)$' \| \
27971 X"$ac_file" : 'X\(/\)' \| \
27972 . : '\(.\)' 2>/dev/null ||
27974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27976 /^X\(\/\/\)$/{ s//\1/; q; }
27977 /^X\(\/\).*/{ s//\1/; q; }
27979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27980 { case "$ac_dir" in
27981 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27985 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27986 case $as_mkdir_dir in
27987 # Skip DOS drivespec
27988 ?:) as_incr_dir=$as_mkdir_dir ;;
27990 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27991 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27998 mv $tmp/config.h $ac_file
28002 rm -f $tmp/config.h
28006 cat >>$CONFIG_STATUS <<\EOF
28008 # CONFIG_COMMANDS section.
28010 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28011 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28012 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28016 if test "x$cf_with_tests" != xno ; then
28020 if test ! -d $srcdir/$cf_dir; then
28022 elif test -f $srcdir/$cf_dir/programs; then
28023 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
28029 cf_prefix=$LIB_PREFIX
28031 case $cf_cv_shlib_version in
28032 (cygdll|msysdll|mingw|msvcdll)
28033 TINFO_NAME=$TINFO_ARG_SUFFIX
28038 if test -n "$TINFO_SUFFIX" ; then
28039 case $TINFO_SUFFIX in
28041 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
28042 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
28045 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
28046 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
28049 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
28050 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
28055 for cf_dir in $SRC_SUBDIRS
28057 if test ! -d $srcdir/$cf_dir ; then
28059 elif test -f $srcdir/$cf_dir/modules; then
28064 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
28066 cf_awk_program="$cf_awk_program\
28067 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
28068 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
28072 if test "x$WILDCARD_SYMS" = xno
28074 cf_awk_program="$cf_awk_program\
28075 /[ ]_\\*;/ { skip=1; next; }\
28079 if test "x$cf_awk_program" != "x"
28081 cat >>$cf_dir/Makefile <<CF_EOF
28083 # Generated by CF_LIB_RULES
28084 resulting.map: $UNALTERED_SYMS
28085 $AWK 'BEGIN { skip = 1; last=""; } \
28087 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
28088 skip = 0; last = \$\$0; } \
28089 END { print last; }' < $UNALTERED_SYMS >\$@
28092 rm -f resulting.map
28096 for cf_item in $cf_LIST_MODELS
28102 cf_depsuf=$cf_suffix
28105 case $cf_cv_system_name in
28113 cf_depsuf=$cf_suffix
28116 case $cf_cv_system_name in
28124 cf_depsuf=$cf_suffix
28127 case $cf_cv_system_name in
28130 cf_depsuf=$cf_suffix
28134 cf_depsuf='.dll.lib'
28136 (cygwin*|msys*|mingw*)
28142 cf_depsuf=$cf_suffix
28148 cf_depsuf=$cf_suffix
28152 cf_depsuf=$cf_suffix
28158 cf_depsuf=$cf_suffix
28171 cf_depsuf=$cf_suffix
28174 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28176 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28177 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28180 if test "$cf_dir" = "c++"
28183 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28185 eval cf_libname=\$${cf_map_lib_basename}_NAME
28189 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28191 eval cf_libname=\$${cf_map_lib_basename}_NAME
28194 test -z "$cf_libname" && cf_libname="$cf_dir"
28195 if test $cf_item = shared ; then
28196 if test -n "${LIB_SUFFIX}"
28198 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28200 cf_shared_suffix="$cf_suffix"
28202 if test "$cf_cv_do_symlinks" = yes ; then
28205 case "$cf_cv_shlib_version" in
28207 cf_version_name=REL_VERSION
28210 cf_version_name=ABI_VERSION
28214 if test -n "$cf_version_name"
28216 case "$cf_cv_system_name" in
28219 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
28222 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
28226 if test -n "${USE_LIB_SUFFIX}"
28228 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28230 cf_shared_suffix="$cf_suffix"
28233 # cygwin needs import library, and has unique naming convention
28234 # use autodetected ${cf_prefix} for import lib and static lib, but
28235 # use 'cyg' prefix for shared lib.
28236 case $cf_cv_shlib_version in
28238 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28239 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
28242 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28243 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
28246 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28247 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
28250 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28251 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
28257 if test -n "$cf_add_lib"
28259 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28263 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
28264 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28267 if test $cf_dir = ncurses ; then
28268 cf_subsets="$LIB_SUBSETS"
28269 cf_r_parts="$cf_subsets"
28270 cf_liblist="$Libs_To_Make"
28272 while test -n "$cf_r_parts"
28274 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
28275 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
28276 if test "$cf_l_parts" != "$cf_r_parts" ; then
28278 case $cf_l_parts in
28280 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
28283 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
28289 if test -n "$cf_add_lib"; then
28290 Libs_To_Make="$cf_add_lib $Libs_To_Make"
28297 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
28300 if test $cf_dir = c++; then
28301 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
28303 for cf_item in $Libs_To_Make
28309 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
28312 for cf_test in $cf_list
28314 if test "$cf_test" = "$cf_item"
28316 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
28321 test -n "$cf_item" && cf_list="$cf_list $cf_item"
28323 Libs_To_Make="$cf_list"
28327 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
28328 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
28329 $cf_dir/Makefile >$cf_dir/Makefile.out
28330 mv $cf_dir/Makefile.out $cf_dir/Makefile
28332 $AWK -f $srcdir/mk-0th.awk \
28333 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
28334 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28336 for cf_subset in $cf_subsets
28339 for cf_item in $cf_LIST_MODELS
28342 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
28344 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28347 if test "$CXX_MODEL" = SHARED; then
28348 case $cf_cv_shlib_version in
28349 (cygdll|msysdll|mingw|msvcdll)
28350 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
28352 echo "${as_me:-configure}:28352: testing overriding CXX_MODEL to SHARED ..." 1>&5
28354 with_shared_cxx=yes
28357 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
28365 cf_depsuf=$cf_suffix
28368 case $cf_cv_system_name in
28376 cf_depsuf=$cf_suffix
28379 case $cf_cv_system_name in
28387 cf_depsuf=$cf_suffix
28390 case $cf_cv_system_name in
28393 cf_depsuf=$cf_suffix
28397 cf_depsuf='.dll.lib'
28399 (cygwin*|msys*|mingw*)
28405 cf_depsuf=$cf_suffix
28411 cf_depsuf=$cf_suffix
28415 cf_depsuf=$cf_suffix
28421 cf_depsuf=$cf_suffix
28434 cf_depsuf=$cf_suffix
28437 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28439 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28440 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28444 (libtool) cf_subdir='obj_lo' ;;
28445 (normal) cf_subdir='objects' ;;
28446 (debug) cf_subdir='obj_g' ;;
28447 (profile) cf_subdir='obj_p' ;;
28449 case $cf_cv_system_name in
28451 cf_subdir='objects' ;;
28453 cf_subdir='obj_s' ;;
28457 # Test for case where we build libtinfo with a different name.
28459 if test $cf_dir = ncurses ; then
28462 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28465 cf_libname=$TINFO_LIB_SUFFIX
28468 cf_libname=$TICS_LIB_SUFFIX
28471 elif test $cf_dir = c++ ; then
28473 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28475 eval cf_libname=\$${cf_map_lib_basename}_NAME
28477 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28480 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28482 eval cf_libname=\$${cf_map_lib_basename}_NAME
28484 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28486 if test -n "${USE_ARG_SUFFIX}" ; then
28487 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
28488 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
28491 # These dependencies really are for development, not
28492 # builds, but they are useful in porting, too.
28493 cf_depend="../include/ncurses_cfg.h"
28494 if test "$srcdir" = "."; then
28497 cf_reldir="\${srcdir}"
28500 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
28501 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
28502 elif test -f $srcdir/$cf_dir/curses.priv.h; then
28503 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
28507 old_cf_suffix="$cf_suffix"
28508 if test "$cf_cv_shlib_version_infix" = yes ; then
28509 if test -n "$USE_LIB_SUFFIX" ; then
28510 case $USE_LIB_SUFFIX in
28512 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
28513 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
28514 cf_dir_suffix=tw$EXTRA_SUFFIX
28517 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
28518 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
28519 cf_dir_suffix=t$EXTRA_SUFFIX
28522 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
28523 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
28524 cf_dir_suffix=w$EXTRA_SUFFIX
28527 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
28528 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
28529 cf_dir_suffix=$EXTRA_SUFFIX
28535 $AWK -f $srcdir/mk-1st.awk \
28536 name=${cf_libname}${cf_dir_suffix} \
28537 traces=$LIB_TRACING \
28539 CXX_MODEL=$CXX_MODEL \
28541 prefix=$cf_prefix \
28542 suffix=$cf_suffix \
28543 subset=$cf_subset \
28544 driver=$cf_cv_term_driver \
28546 TermlibRoot=$TINFO_NAME \
28547 TermlibSuffix=$TINFO_SUFFIX \
28548 ShlibVer=$cf_cv_shlib_version \
28549 ShlibVerInfix=$cf_cv_shlib_version_infix \
28550 ReLink=${cf_cv_do_relink:-no} \
28551 ReRanlib=${cf_cv_do_reranlib:-yes} \
28552 DoLinks=$cf_cv_do_symlinks \
28553 rmSoLocs=$cf_cv_rm_so_locs \
28554 ldconfig="$LDCONFIG" \
28555 overwrite=$WITH_OVERWRITE \
28556 depend="$cf_depend" \
28558 libtool_version="$LIBTOOL_VERSION" \
28559 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28561 cf_suffix="$old_cf_suffix"
28563 for cf_subdir2 in $cf_subdirs lib
28565 test $cf_subdir = $cf_subdir2 && break
28567 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
28568 $AWK -f $srcdir/mk-2nd.awk \
28570 traces=$LIB_TRACING \
28573 subset=$cf_subset \
28576 crenames=$cf_cv_prog_CC_c_o \
28577 cxxrenames=$cf_cv_prog_CXX_c_o \
28578 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28579 cf_subdirs="$cf_subdirs $cf_subdir"
28584 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
28587 for cf_dir in $SRC_SUBDIRS
28589 if test ! -d $srcdir/$cf_dir ; then
28593 if test -f $cf_dir/Makefile ; then
28596 echo 'libs \' >> Makefile
28597 echo 'install.libs \' >> Makefile
28598 echo 'uninstall.libs ::' >> Makefile
28599 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
28604 if test -f $srcdir/$cf_dir/modules; then
28606 if test -f $srcdir/$cf_dir/headers; then
28607 cat >> Makefile <<CF_EOF
28608 install.includes \\
28609 uninstall.includes \\
28612 if test "$cf_dir" != "c++" ; then
28613 echo 'lint \' >> Makefile
28615 cat >> Makefile <<CF_EOF
28621 uninstall.$cf_dir ::
28622 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
28624 elif test -f $srcdir/$cf_dir/headers; then
28625 cat >> Makefile <<CF_EOF
28630 install.includes \\
28631 uninstall.includes ::
28632 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
28637 if test "x$cf_with_db_install" = xyes; then
28638 cat >> Makefile <<CF_EOF
28640 install.libs uninstall.libs \\
28641 install.data uninstall.data ::
28642 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
28645 cat >> Makefile <<CF_EOF
28647 install.libs uninstall.libs ::
28648 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
28652 if test "x$cf_with_manpages" = xyes; then
28653 cat >> Makefile <<CF_EOF
28657 cd man && \${MAKE} \${TOP_MFLAGS} \$@
28661 cat >> Makefile <<CF_EOF
28664 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
28665 rm -f headers.sh headers.sed mk_shared_lib.sh
28666 rm -f edit_man.* man_alias.*
28667 rm -rf \${DIRS_TO_MAKE}
28670 # Special case: tack's manpage lives in its own directory.
28671 if test "x$cf_with_manpages" = xyes; then
28672 if test "x$cf_with_tack" = "xyes"; then
28673 cat >> Makefile <<CF_EOF
28677 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
28682 rm -f headers.sed headers.sh
28684 echo creating headers.sh
28685 cat >headers.sh <<CF_EOF
28687 # This shell script is generated by the 'configure' script. It is invoked in a
28688 # subdirectory of the build tree. It generates a sed-script in the parent
28689 # directory that is used to adjust includes for header files that reside in a
28690 # subdirectory of /usr/include, etc.
28692 while test \$# != 3
28694 PRG="\$PRG \$1"; shift
28699 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
28700 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
28701 echo installing \$SRC in \$DST
28704 if test $WITH_CURSES_H = yes; then
28705 cat >>headers.sh <<CF_EOF
28708 END=\`basename \$DST\`
28709 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
28711 NAME=\`basename \$i\`
28712 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
28716 echo "" >> \$TMPSED
28722 cat >>headers.sh <<CF_EOF
28725 END=\`basename \$DST\`
28726 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
28728 NAME=\`basename \$i\`
28729 if test "\$NAME" = "curses.h"
28731 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
28734 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
28738 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
28743 cat >>headers.sh <<CF_EOF
28745 sed -f \$TMPSED \$SRC > \$TMPSRC
28746 NAME=\`basename \$SRC\`
28748 if test $WITH_CURSES_H != yes; then
28749 cat >>headers.sh <<CF_EOF
28750 test "\$NAME" = "curses.h" && NAME=ncurses.h
28753 cat >>headers.sh <<CF_EOF
28754 # Just in case someone gzip'd manpages, remove the conflicting copy.
28755 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
28757 eval \$PRG \$TMPSRC \$DST/\$NAME
28758 rm -f \$TMPSRC \$TMPSED
28761 chmod 0755 headers.sh
28763 for cf_dir in $SRC_SUBDIRS
28765 if test ! -d $srcdir/$cf_dir ; then
28769 if test -f $srcdir/$cf_dir/headers; then
28770 $AWK -f $srcdir/mk-hdr.awk \
28771 subset="$LIB_SUBSETS" \
28772 compat="$WITH_CURSES_H" \
28773 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
28776 if test -f $srcdir/$cf_dir/modules; then
28777 if test "$cf_dir" != "c++" ; then
28778 cat >>$cf_dir/Makefile <<"CF_EOF"
28779 depend : ${AUTO_SRC}
28780 makedepend -- ${CPPFLAGS} -- ${C_SRC}
28782 # DO NOT DELETE THIS LINE -- make depend depends on it.
28788 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28789 if test -z "$USE_OLD_MAKERULES" ; then
28790 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
28798 cat >>$CONFIG_STATUS <<\EOF
28800 { (exit 0); exit 0; }
28802 chmod +x $CONFIG_STATUS
28803 ac_clean_files=$ac_clean_files_save
28805 # configure is writing to config.log, and then calls config.status.
28806 # config.status does its own redirection, appending to config.log.
28807 # Unfortunately, on DOS this fails, as config.log is still kept open
28808 # by configure, so config.status won't be able to write to it; its
28809 # output is simply discarded. So we exec the FD to /dev/null,
28810 # effectively closing config.log, so it can be properly (re)opened and
28811 # appended to by config.status. When coming back to configure, we
28812 # need to make the FD available again.
28813 if test "$no_create" != yes; then
28816 $SHELL $CONFIG_STATUS || ac_cs_success=false
28818 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28819 # would make configure fail if this is the last instruction.
28820 $ac_cs_success || { (exit 1); exit 1; }
28822 ${MAKE:-make} preinstall