2 # From configure.in Revision: 1.752 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20210509.
6 # Copyright 2003-2020,2021 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --without-ada suppress check for Ada compiler, don't build demo
720 --without-cxx do not adjust ncurses bool to match C++
721 --without-cxx-binding do not build C++ binding and demo
722 --disable-db-install suppress install of terminal database
723 --without-manpages suppress install of manpages
724 --without-progs suppress build/install with programs (e.g., tic)
725 --without-tack suppress build/install with tack program
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --enable-symlinks make tic use symbolic links not hard links
789 --enable-broken_linker compile with broken-linker support code
790 --enable-bsdpad recognize BSD-style prefix padding
791 --enable-widec compile with wide-char/UTF-8 code
792 --disable-lp64 allow chtype to be long (ignore _LP64)
793 --disable-largefile omit support for large files
794 --disable-tparm-varargs compile tparm() without varargs interface
795 --disable-tic-depends link tic library without explicit dependency on ncurses library
796 --enable-wattr-macros enable wattr* macros
797 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
798 --with-bool=TYPE override fallback type of bool variable
799 --with-caps=alt compile with alternate Caps file
800 --with-chtype=TYPE override type of chtype
801 --with-ospeed=TYPE override type of ospeed variable
802 --with-mmask-t=TYPE override type of mmask_t
803 --with-ccharw-max=XXX override size CCHARW_MAX
804 --enable-signed-char compile using signed Boolean's in term.h
805 --with-tparm-arg=TYPE override parameter type of tparm
806 --with-rcs-ids compile-in RCS identifiers
807 Options to Specify How Manpages are Installed:
808 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
809 optionally formatted/catonly, e.g., gzip,formatted
810 --with-manpage-renames specify manpage-renaming
811 --with-manpage-aliases specify manpage-aliases using .so
812 --with-manpage-symlinks specify manpage-aliases using symlinks
813 --with-manpage-tbl specify manpage processing with tbl
815 --disable-ext-funcs disable function-extensions
816 --enable-sp-funcs enable SCREEN-extensions
817 --enable-term-driver enable terminal-driver
818 --enable-const compile with extra/non-standard const
819 --enable-ext-colors compile for 256-color support
820 --enable-ext-mouse compile for extended mouse-encoding
821 --enable-ext-putwin compile with extended putwin/screendump
822 --enable-no-padding compile with $NCURSES_NO_PADDING code
823 --enable-sigwinch compile with SIGWINCH handler
824 --enable-tcap-names compile with user-definable terminal capabilities
826 --with-pthread use POSIX thread library
827 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
828 --enable-weak-symbols enable weak-symbols for pthreads
829 --enable-reentrant compile with reentrant code
830 --enable-opaque-curses make curses WINDOW, etc., "opaque"
831 --enable-opaque-form make form-library structures "opaque"
832 --enable-opaque-menu make menu-library structures "opaque"
833 --enable-opaque-panel make panel-library structures "opaque"
834 --with-wrap-prefix=XXX override prefix used for public variables
836 --without-develop disable development options
837 --enable-hard-tabs compile with hard-tabs code
838 --enable-xmc-glitch compile with support for xmc (magic-cookie)
840 --disable-assumed-color do not assume anything about default-colors
841 --disable-hashmap compile without hashmap scrolling-optimization
842 --enable-colorfgbg compile-in experimental $COLORFGBG code
843 --enable-fvisibility compile with -fvisibility=hidden
844 --enable-interop compile-in interop bindings
845 --enable-safe-sprintf compile with experimental safe-sprintf code
846 --disable-scroll-hints compile without scroll-hints code
847 --enable-wgetch-events compile with wgetch-events code
848 --enable-exp-win32 compile with experimental-Windows driver
849 Testing/development Options:
850 --disable-echo do not display "compiling" commands
851 --disable-stripping do not strip (debug info) installed executables
852 --enable-warnings test: turn on gcc compiler warnings
853 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
854 --enable-string-hacks work around bogus compiler/loader warnings
855 --enable-assertions test: turn on generation of assertion code
856 --with-dmalloc test: use Gray Watson's dmalloc library
857 --with-dbmalloc test: use Conor Cahill's dbmalloc library
858 --with-valgrind test: use valgrind
859 --disable-leaks test: free permanent memory, analyze leaks
860 --enable-expanded test: generate functions for certain macros
861 --disable-macros test: use functions rather than macros
862 --with-trace test: add trace() function to all models of ncurses
863 --disable-gnat-projects test: disable GNAT projects even if usable
865 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
866 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
867 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
868 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
869 --with-ada-libname=XXX override default Ada library-name
870 --with-form-libname=XXX override form basename of library
871 --with-menu-libname=XXX override menu basename of library
872 --with-panel-libname=XXX override panel basename of library
873 --with-cxx-libname=XXX override ncurses++ basename of library
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
883 CXX C++ compiler command
884 CXXFLAGS C++ compiler flags
885 CXXCPP C++ preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
898 # A "../" for each directory in /$ac_subdir.
899 ac_dots=`echo "$ac_subdir" |
900 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
903 .) # No --srcdir option. We are building in place.
904 ac_sub_srcdir="$srcdir" ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
908 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f "$ac_sub_srcdir/configure.gnu"; then
914 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
915 elif test -f "$ac_sub_srcdir/configure"; then
917 $SHELL "$ac_sub_srcdir/configure" --help=recursive
918 elif test -f "$ac_sub_srcdir/configure.ac" ||
919 test -f "$ac_sub_srcdir/configure.in"; then
921 "$ac_configure" --help
923 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
929 test -n "$ac_init_help" && exit 0
930 if "$ac_init_version"; then
933 Copyright 2003-2020,2021 Thomas E. Dickey
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.52.20210509. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c) ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1001 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1006 # Get rid of the leading space.
1009 # When interrupted or exit'd, cleanup temporary files, and complete
1010 # config.log. We remove comments because anyway the quotes in there
1011 # would cause problems or look ugly.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1015 echo "## ----------------- ##" >&5
1016 echo "## Cache variables. ##" >&5
1017 echo "## ----------------- ##" >&5
1019 # The following way of writing the cache mishandles newlines in values,
1022 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034 sed "/^$/d" confdefs.h >conftest.log
1035 if test -s conftest.log; then
1037 echo "## ------------ ##" >&5
1038 echo "## confdefs.h. ##" >&5
1039 echo "## ------------ ##" >&5
1041 cat conftest.log >&5
1044 test "$ac_signal" != 0 &&
1045 echo "$as_me: caught signal $ac_signal" >&5
1046 echo "$as_me: exit $exit_status" >&5
1047 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1050 for ac_signal in 1 2 13 15; do
1051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1056 rm -rf conftest* confdefs.h
1057 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1060 # Let the site file select an alternate cache file if it wants to.
1061 # Prefer explicitly selected file to automatically selected ones.
1062 if test -z "$CONFIG_SITE"; then
1063 if test "x$prefix" != xNONE; then
1064 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1069 for ac_site_file in $CONFIG_SITE; do
1070 if test -r "$ac_site_file"; then
1071 { echo "$as_me:1071: loading site script $ac_site_file" >&5
1072 echo "$as_me: loading site script $ac_site_file" >&6;}
1073 cat "$ac_site_file" >&5
1078 if test -r "$cache_file"; then
1079 # Some versions of bash will fail to source /dev/null (special
1080 # files actually), so we avoid doing that.
1081 if test -f "$cache_file"; then
1082 { echo "$as_me:1082: loading cache $cache_file" >&5
1083 echo "$as_me: loading cache $cache_file" >&6;}
1085 [\\/]* | ?:[\\/]* ) . $cache_file;;
1086 *) . ./$cache_file;;
1090 { echo "$as_me:1090: creating cache $cache_file" >&5
1091 echo "$as_me: creating cache $cache_file" >&6;}
1095 # Check that the precious variables saved in the cache have kept the same
1097 ac_cache_corrupted=false
1098 for ac_var in `(set) 2>&1 |
1099 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1100 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1101 eval ac_new_set=\$ac_env_${ac_var}_set
1102 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1103 eval ac_new_val="\$ac_env_${ac_var}_value"
1104 case "$ac_old_set,$ac_new_set" in
1106 { echo "$as_me:1106: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1107 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1108 ac_cache_corrupted=: ;;
1110 { echo "$as_me:1110: error: \`$ac_var' was not set in the previous run" >&5
1111 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1112 ac_cache_corrupted=: ;;
1115 if test "x$ac_old_val" != "x$ac_new_val"; then
1116 { echo "$as_me:1116: error: \`$ac_var' has changed since the previous run:" >&5
1117 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1118 { echo "$as_me:1118: former value: $ac_old_val" >&5
1119 echo "$as_me: former value: $ac_old_val" >&2;}
1120 { echo "$as_me:1120: current value: $ac_new_val" >&5
1121 echo "$as_me: current value: $ac_new_val" >&2;}
1122 ac_cache_corrupted=:
1125 # Pass precious variables to config.status. It doesn't matter if
1126 # we pass some twice (in addition to the command line arguments).
1127 if test "$ac_new_set" = set; then
1128 case "$ac_new_val" in
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1131 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1138 if "$ac_cache_corrupted"; then
1139 { echo "$as_me:1139: error: changes in the environment can compromise the build" >&5
1140 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1141 { { echo "$as_me:1141: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1142 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1143 { (exit 1); exit 1; }; }
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1149 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1151 ac_main_return="return"
1153 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1155 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1167 echo "#! $SHELL" >conftest.sh
1168 echo "exit 0" >>conftest.sh
1169 chmod +x conftest.sh
1170 if { (echo "$as_me:1170: PATH=\".;.\"; conftest.sh") >&5
1171 (PATH=".;."; conftest.sh) 2>&5
1173 echo "$as_me:1173: \$? = $ac_status" >&5
1174 (exit "$ac_status"); }; then
1175 ac_path_separator=';'
1179 PATH_SEPARATOR="$ac_path_separator"
1182 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1186 for ac_prog in ggrep grep
1188 # Extract the first word of "$ac_prog", so it can be a program name with args.
1189 set dummy $ac_prog; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_GREP+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 if test -n "$GREP"; then
1196 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1200 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_GREP="$ac_prog"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1211 GREP=$ac_cv_prog_GREP
1212 if test -n "$GREP"; then
1213 echo "$as_me:1213: result: $GREP" >&5
1214 echo "${ECHO_T}$GREP" >&6
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1220 test -n "$GREP" && break
1222 test -n "$GREP" || GREP=": "
1224 echo "$as_me:1224: checking for egrep" >&5
1225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1226 if test "${ac_cv_path_EGREP+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1230 then ac_cv_path_EGREP="$GREP -E"
1232 for ac_prog in gegrep egrep
1234 # Extract the first word of "$ac_prog", so it can be a program name with args.
1235 set dummy $ac_prog; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_path_EGREP+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1243 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1246 ac_save_IFS=$IFS; IFS=$ac_path_separator
1248 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if $as_executable_p "$ac_dir/$ac_word"; then
1252 ac_cv_path_EGREP="$ac_dir/$ac_word"
1253 echo "$as_me:1253: found $ac_dir/$ac_word" >&5
1261 EGREP=$ac_cv_path_EGREP
1263 if test -n "$EGREP"; then
1264 echo "$as_me:1264: result: $EGREP" >&5
1265 echo "${ECHO_T}$EGREP" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1271 test -n "$EGREP" && break
1273 test -n "$EGREP" || EGREP=": "
1275 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1275: error: cannot find workable egrep" >&5
1276 echo "$as_me: error: cannot find workable egrep" >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_path_EGREP" >&5
1281 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1282 EGREP="$ac_cv_path_EGREP"
1284 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1285 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1286 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1287 cf_cv_abi_version=${NCURSES_MAJOR}
1288 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1289 cf_cv_timestamp=`date`
1290 echo "$as_me:1290: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1291 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1293 if test -f "$srcdir/VERSION" ; then
1294 echo "$as_me:1294: checking for package version" >&5
1295 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1297 # if there are not enough fields, cut returns the last one...
1298 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1299 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1300 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1302 # this is how CF_BUNDLED_INTL uses $VERSION:
1303 VERSION="$cf_field1"
1305 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1306 test -z "$VERSION_MAJOR" && { { echo "$as_me:1306: error: missing major-version" >&5
1307 echo "$as_me: error: missing major-version" >&2;}
1308 { (exit 1); exit 1; }; }
1310 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1311 test -z "$VERSION_MINOR" && { { echo "$as_me:1311: error: missing minor-version" >&5
1312 echo "$as_me: error: missing minor-version" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:1315: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1316 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1318 echo "$as_me:1318: checking for package patch date" >&5
1319 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1320 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1321 case .$VERSION_PATCH in
1323 { { echo "$as_me:1323: error: missing patch-date $VERSION_PATCH" >&5
1324 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1325 { (exit 1); exit 1; }; }
1327 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1330 { { echo "$as_me:1330: error: illegal patch-date $VERSION_PATCH" >&5
1331 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:1335: result: $VERSION_PATCH" >&5
1336 echo "${ECHO_T}$VERSION_PATCH" >&6
1338 { { echo "$as_me:1338: error: did not find $srcdir/VERSION" >&5
1339 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1340 { (exit 1); exit 1; }; }
1343 # show the actual data that we have for versions:
1344 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1346 echo "${as_me:-configure}:1346: testing ABI VERSION $VERSION ..." 1>&5
1348 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1350 echo "${as_me:-configure}:1350: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1352 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1354 echo "${as_me:-configure}:1354: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1356 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1358 echo "${as_me:-configure}:1358: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1363 cat >>confdefs.h <<EOF
1364 #define PACKAGE "$PACKAGE"
1367 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1369 cat >>confdefs.h <<EOF
1370 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1373 cat >>confdefs.h <<EOF
1374 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1377 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1379 # Check whether --with-rel-version or --without-rel-version was given.
1380 if test "${with_rel_version+set}" = set; then
1381 withval="$with_rel_version"
1382 { echo "$as_me:1382: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1383 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1384 cf_cv_rel_version=$withval
1387 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1388 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1390 if test -n "$NCURSES_MAJOR" ; then
1391 case $NCURSES_MAJOR in
1395 { { echo "$as_me:1395: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1396 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1397 { (exit 1); exit 1; }; }
1401 { { echo "$as_me:1401: error: Release major-version value is empty" >&5
1402 echo "$as_me: error: Release major-version value is empty" >&2;}
1403 { (exit 1); exit 1; }; }
1406 if test -n "$NCURSES_MINOR" ; then
1407 case $NCURSES_MINOR in
1411 { { echo "$as_me:1411: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1412 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1413 { (exit 1); exit 1; }; }
1417 { { echo "$as_me:1417: error: Release minor-version value is empty" >&5
1418 echo "$as_me: error: Release minor-version value is empty" >&2;}
1419 { (exit 1); exit 1; }; }
1422 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1424 # Check whether --with-abi-version or --without-abi-version was given.
1425 if test "${with_abi_version+set}" = set; then
1426 withval="$with_abi_version"
1428 if test "x$cf_cv_abi_version" != "x$withval"
1430 { echo "$as_me:1430: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1431 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1432 case "$cf_cv_rel_version" in
1434 cf_cv_rel_version=$withval.0
1437 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1441 cf_cv_abi_version=$withval
1444 if test -n "$cf_cv_abi_version" ; then
1445 case $cf_cv_abi_version in
1449 { { echo "$as_me:1449: error: ABI version is not a number: $cf_cv_abi_version" >&5
1450 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1451 { (exit 1); exit 1; }; }
1455 { { echo "$as_me:1455: error: ABI version value is empty" >&5
1456 echo "$as_me: error: ABI version value is empty" >&2;}
1457 { (exit 1); exit 1; }; }
1460 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1462 case "$cf_cv_rel_version" in
1464 cf_cv_rel_version=$with_abi_version.0
1470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1471 if test -f "$ac_dir/install-sh"; then
1473 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 elif test -f "$ac_dir/install.sh"; then
1477 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 elif test -f "$ac_dir/shtool"; then
1481 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 if test -z "$ac_aux_dir"; then
1486 { { echo "$as_me:1486: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1487 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488 { (exit 1); exit 1; }; }
1490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1494 # Make sure we can run config.sub.
1495 $ac_config_sub sun4 >/dev/null 2>&1 ||
1496 { { echo "$as_me:1496: error: cannot run $ac_config_sub" >&5
1497 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498 { (exit 1); exit 1; }; }
1500 echo "$as_me:1500: checking build system type" >&5
1501 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502 if test "${ac_cv_build+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 ac_cv_build_alias=$build_alias
1506 test -z "$ac_cv_build_alias" &&
1507 ac_cv_build_alias=`$ac_config_guess`
1508 test -z "$ac_cv_build_alias" &&
1509 { { echo "$as_me:1509: error: cannot guess build type; you must specify one" >&5
1510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511 { (exit 1); exit 1; }; }
1512 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1513 { { echo "$as_me:1513: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:1518: result: $ac_cv_build" >&5
1519 echo "${ECHO_T}$ac_cv_build" >&6
1521 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$as_me:1525: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1534 { { echo "$as_me:1534: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:1539: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1542 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1547 echo "$as_me:1547: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1556 { { echo "$as_me:1556: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 test -n "$target_alias" &&
1571 test "$program_prefix$program_suffix$program_transform_name" = \
1573 program_prefix=${target_alias}-
1574 system_name="$host_os"
1576 system_name="`(uname -s -r) 2>/dev/null`"
1577 if test -z "$system_name" ; then
1578 system_name="`(hostname) 2>/dev/null`"
1581 test -n "$system_name" &&
1582 cat >>confdefs.h <<EOF
1583 #define SYSTEM_NAME "$system_name"
1586 if test "${cf_cv_system_name+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 cf_cv_system_name="$system_name"
1592 test -z "$system_name" && system_name="$cf_cv_system_name"
1593 test -n "$cf_cv_system_name" && echo "$as_me:1593: result: Configuring for $cf_cv_system_name" >&5
1594 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1596 if test ".$system_name" != ".$cf_cv_system_name" ; then
1597 echo "$as_me:1597: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1598 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1599 { { echo "$as_me:1599: error: \"Please remove config.cache and try again.\"" >&5
1600 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1601 { (exit 1); exit 1; }; }
1604 # Check whether --with-system-type or --without-system-type was given.
1605 if test "${with_system_type+set}" = set; then
1606 withval="$with_system_type"
1607 { echo "$as_me:1607: WARNING: overriding system type to $withval" >&5
1608 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1609 cf_cv_system_name=$withval
1614 ### Save the given $CFLAGS to allow user-override.
1615 cf_user_CFLAGS="$CFLAGS"
1617 ### Default install-location
1618 echo "$as_me:1618: checking for fgrep" >&5
1619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1620 if test "${ac_cv_path_FGREP+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1624 then ac_cv_path_FGREP="$GREP -F"
1626 for ac_prog in gfgrep fgrep
1628 # Extract the first word of "$ac_prog", so it can be a program name with args.
1629 set dummy $ac_prog; ac_word=$2
1630 echo "$as_me:1630: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_path_FGREP+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1640 ac_save_IFS=$IFS; IFS=$ac_path_separator
1642 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if $as_executable_p "$ac_dir/$ac_word"; then
1646 ac_cv_path_FGREP="$ac_dir/$ac_word"
1647 echo "$as_me:1647: found $ac_dir/$ac_word" >&5
1655 FGREP=$ac_cv_path_FGREP
1657 if test -n "$FGREP"; then
1658 echo "$as_me:1658: result: $FGREP" >&5
1659 echo "${ECHO_T}$FGREP" >&6
1661 echo "$as_me:1661: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1665 test -n "$FGREP" && break
1667 test -n "$FGREP" || FGREP=": "
1669 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1669: error: cannot find workable fgrep" >&5
1670 echo "$as_me: error: cannot find workable fgrep" >&2;}
1671 { (exit 1); exit 1; }; }
1674 echo "$as_me:1674: result: $ac_cv_path_FGREP" >&5
1675 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1676 FGREP="$ac_cv_path_FGREP"
1678 echo "$as_me:1678: checking for prefix" >&5
1679 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1680 if test "x$prefix" = "xNONE" ; then
1681 case "$cf_cv_system_name" in
1682 # non-vendor systems don't have a conflict
1683 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1686 (*) prefix=$ac_default_prefix
1690 echo "$as_me:1690: result: $prefix" >&5
1691 echo "${ECHO_T}$prefix" >&6
1693 if test "x$prefix" = "xNONE" ; then
1694 echo "$as_me:1694: checking for default include-directory" >&5
1695 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1696 test -n "$verbose" && echo 1>&6
1699 "$includedir/ncurses" \
1701 "$prefix/include/ncurses" \
1702 /usr/local/include \
1703 /usr/local/include/ncurses \
1705 /usr/include/ncurses
1707 cf_dir=`eval echo "$cf_symbol"`
1708 if test -f "$cf_dir/curses.h" ; then
1709 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1710 includedir="$cf_symbol"
1711 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1715 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1717 echo "$as_me:1717: result: $includedir" >&5
1718 echo "${ECHO_T}$includedir" >&6
1721 ### Defaults for ncurses ABI
1726 cf_dft_ext_colors=no
1729 cf_dft_ext_putwin=no
1730 cf_dft_ext_spfuncs=no
1731 cf_dft_filter_syms=no
1734 cf_dft_opaque_curses=no
1735 cf_dft_ordinate_type=short
1736 cf_dft_signed_char=no
1737 cf_dft_tparm_arg=long
1741 case x$cf_cv_abi_version in
1743 cf_dft_chtype=uint32_t
1744 cf_dft_ext_colors=yes
1745 cf_dft_ext_const=yes
1746 cf_dft_ext_mouse=yes
1747 cf_dft_ext_putwin=yes
1748 cf_dft_ext_spfuncs=yes
1749 cf_dft_filter_syms=yes
1751 cf_dft_mmask_t=uint32_t
1752 cf_dft_tparm_arg=intptr_t
1753 cf_dft_with_lp64=yes
1758 case x$cf_cv_abi_version in
1761 cf_dft_mmask_t=uint64_t
1762 cf_dft_opaque_curses=yes
1763 cf_dft_ordinate_type=int
1764 cf_dft_signed_char=yes
1765 # also: remove the wgetch-events feature in ABI 7
1769 ### Checks for programs.
1771 # Check whether --with-ada or --without-ada was given.
1772 if test "${with_ada+set}" = set; then
1774 cf_with_ada=$withval
1779 if test "x$cf_with_ada" = xyes
1781 cf_prog_cc="gnatgcc gcc cc"
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1789 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 ac_main_return="return"
1792 if test -n "$ac_tool_prefix"; then
1793 for ac_prog in $cf_prog_cc
1795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1797 echo "$as_me:1797: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 ac_save_IFS=$IFS; IFS=$ac_path_separator
1807 for ac_dir in $ac_dummy; do
1809 test -z "$ac_dir" && ac_dir=.
1810 $as_executable_p "$ac_dir/$ac_word" || continue
1811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1812 echo "$as_me:1812: found $ac_dir/$ac_word" >&5
1819 if test -n "$CC"; then
1820 echo "$as_me:1820: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:1823: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1827 test -n "$CC" && break
1830 if test -z "$CC"; then
1832 for ac_prog in $cf_prog_cc
1834 # Extract the first word of "$ac_prog", so it can be a program name with args.
1835 set dummy $ac_prog; ac_word=$2
1836 echo "$as_me:1836: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 ac_save_IFS=$IFS; IFS=$ac_path_separator
1846 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 $as_executable_p "$ac_dir/$ac_word" || continue
1850 ac_cv_prog_ac_ct_CC="$ac_prog"
1851 echo "$as_me:1851: found $ac_dir/$ac_word" >&5
1857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 echo "$as_me:1859: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6
1862 echo "$as_me:1862: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$ac_ct_CC" && break
1872 test -z "$CC" && { { echo "$as_me:1872: error: no acceptable cc found in \$PATH" >&5
1873 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1874 { (exit 1); exit 1; }; }
1876 # Provide some information about the compiler.
1877 echo "$as_me:1877:" \
1878 "checking for C compiler version" >&5
1879 ac_compiler=`set X $ac_compile; echo "$2"`
1880 { (eval echo "$as_me:1880: \"$ac_compiler --version </dev/null >&5\"") >&5
1881 (eval $ac_compiler --version </dev/null >&5) 2>&5
1883 echo "$as_me:1883: \$? = $ac_status" >&5
1884 (exit "$ac_status"); }
1885 { (eval echo "$as_me:1885: \"$ac_compiler -v </dev/null >&5\"") >&5
1886 (eval $ac_compiler -v </dev/null >&5) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit "$ac_status"); }
1890 { (eval echo "$as_me:1890: \"$ac_compiler -V </dev/null >&5\"") >&5
1891 (eval $ac_compiler -V </dev/null >&5) 2>&5
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit "$ac_status"); }
1896 cat >"conftest.$ac_ext" <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1908 ac_clean_files_save=$ac_clean_files
1909 ac_clean_files="$ac_clean_files a.out a.exe"
1910 # Try to create an executable without -o first, disregard a.out.
1911 # It will help us diagnose broken compilers, and finding out an intuition
1913 echo "$as_me:1913: checking for C compiler default output" >&5
1914 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1915 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1916 if { (eval echo "$as_me:1916: \"$ac_link_default\"") >&5
1917 (eval $ac_link_default) 2>&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit "$ac_status"); }; then
1921 # Find the output, starting from the most likely. This scheme is
1922 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1924 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1925 ls a.out conftest 2>/dev/null;
1926 ls a.* conftest.* 2>/dev/null`; do
1928 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1929 a.out ) # We found the default executable, but exeext='' is most
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1940 echo "$as_me: failed program was:" >&5
1941 cat "conftest.$ac_ext" >&5
1942 { { echo "$as_me:1942: error: C compiler cannot create executables" >&5
1943 echo "$as_me: error: C compiler cannot create executables" >&2;}
1944 { (exit 77); exit 77; }; }
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:1948: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1951 # Check the compiler produces executables we can run. If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:1953: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958 if { ac_try='./$ac_file'
1959 { (eval echo "$as_me:1959: \"$ac_try\"") >&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit "$ac_status"); }; }; then
1966 if test "$cross_compiling" = maybe; then
1969 { { echo "$as_me:1969: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'." >&2;}
1973 { (exit 1); exit 1; }; }
1977 echo "$as_me:1977: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1980 rm -f a.out a.exe "conftest$ac_cv_exeext"
1981 ac_clean_files=$ac_clean_files_save
1982 # Check the compiler produces executables we can run. If not, either
1983 # the compiler is broken, or we cross compile.
1984 echo "$as_me:1984: checking whether we are cross compiling" >&5
1985 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1986 echo "$as_me:1986: result: $cross_compiling" >&5
1987 echo "${ECHO_T}$cross_compiling" >&6
1989 echo "$as_me:1989: checking for executable suffix" >&5
1990 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1991 if { (eval echo "$as_me:1991: \"$ac_link\"") >&5
1992 (eval $ac_link) 2>&5
1994 echo "$as_me:1994: \$? = $ac_status" >&5
1995 (exit "$ac_status"); }; then
1996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1998 # work properly (i.e., refer to `conftest.exe'), while it won't with
2000 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2002 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2010 { { echo "$as_me:2010: error: cannot compute EXEEXT: cannot compile and link" >&5
2011 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2012 { (exit 1); exit 1; }; }
2015 rm -f "conftest$ac_cv_exeext"
2016 echo "$as_me:2016: result: $ac_cv_exeext" >&5
2017 echo "${ECHO_T}$ac_cv_exeext" >&6
2019 rm -f "conftest.$ac_ext"
2020 EXEEXT=$ac_cv_exeext
2022 echo "$as_me:2022: checking for object suffix" >&5
2023 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2024 if test "${ac_cv_objext+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 cat >"conftest.$ac_ext" <<_ACEOF
2028 #line 2028 "configure"
2029 #include "confdefs.h"
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:2040: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit "$ac_status"); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2053 echo "$as_me: failed program was:" >&5
2054 cat "conftest.$ac_ext" >&5
2055 { { echo "$as_me:2055: error: cannot compute OBJEXT: cannot compile" >&5
2056 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2057 { (exit 1); exit 1; }; }
2060 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2062 echo "$as_me:2062: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2066 echo "$as_me:2066: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 cat >"conftest.$ac_ext" <<_ACEOF
2072 #line 2072 "configure"
2073 #include "confdefs.h"
2086 rm -f "conftest.$ac_objext"
2087 if { (eval echo "$as_me:2087: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
2090 echo "$as_me:2090: \$? = $ac_status" >&5
2091 (exit "$ac_status"); } &&
2092 { ac_try='test -s "conftest.$ac_objext"'
2093 { (eval echo "$as_me:2093: \"$ac_try\"") >&5
2096 echo "$as_me:2096: \$? = $ac_status" >&5
2097 (exit "$ac_status"); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 cat "conftest.$ac_ext" >&5
2104 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2108 echo "$as_me:2108: result: $ac_cv_c_compiler_gnu" >&5
2109 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2110 GCC=`test $ac_compiler_gnu = yes && echo yes`
2111 ac_test_CFLAGS=${CFLAGS+set}
2112 ac_save_CFLAGS=$CFLAGS
2114 echo "$as_me:2114: checking whether $CC accepts -g" >&5
2115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2116 if test "${ac_cv_prog_cc_g+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 cat >"conftest.$ac_ext" <<_ACEOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2131 rm -f "conftest.$ac_objext"
2132 if { (eval echo "$as_me:2132: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit "$ac_status"); } &&
2137 { ac_try='test -s "conftest.$ac_objext"'
2138 { (eval echo "$as_me:2138: \"$ac_try\"") >&5
2141 echo "$as_me:2141: \$? = $ac_status" >&5
2142 (exit "$ac_status"); }; }; then
2145 echo "$as_me: failed program was:" >&5
2146 cat "conftest.$ac_ext" >&5
2149 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2151 echo "$as_me:2151: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2168 # Some people use a C++ compiler to compile C. Since we use `exit',
2169 # in C++ we need to declare it. In case someone uses the same compiler
2170 # for both compiling C and C++ we need to have the C++ compiler decide
2171 # the declaration of exit, since it's the most demanding environment.
2172 cat >"conftest.$ac_ext" <<_ACEOF
2177 rm -f "conftest.$ac_objext"
2178 if { (eval echo "$as_me:2178: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit "$ac_status"); } &&
2183 { ac_try='test -s "conftest.$ac_objext"'
2184 { (eval echo "$as_me:2184: \"$ac_try\"") >&5
2187 echo "$as_me:2187: \$? = $ac_status" >&5
2188 (exit "$ac_status"); }; }; then
2189 for ac_declaration in \
2191 '#include <stdlib.h>' \
2192 'extern "C" void std::exit (int) throw (); using std::exit;' \
2193 'extern "C" void std::exit (int); using std::exit;' \
2194 'extern "C" void exit (int) throw ();' \
2195 'extern "C" void exit (int);' \
2198 cat >"conftest.$ac_ext" <<_ACEOF
2199 #line 2199 "configure"
2200 #include "confdefs.h"
2211 rm -f "conftest.$ac_objext"
2212 if { (eval echo "$as_me:2212: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2215 echo "$as_me:2215: \$? = $ac_status" >&5
2216 (exit "$ac_status"); } &&
2217 { ac_try='test -s "conftest.$ac_objext"'
2218 { (eval echo "$as_me:2218: \"$ac_try\"") >&5
2221 echo "$as_me:2221: \$? = $ac_status" >&5
2222 (exit "$ac_status"); }; }; then
2225 echo "$as_me: failed program was:" >&5
2226 cat "conftest.$ac_ext" >&5
2229 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2230 cat >"conftest.$ac_ext" <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2242 rm -f "conftest.$ac_objext"
2243 if { (eval echo "$as_me:2243: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:2246: \$? = $ac_status" >&5
2247 (exit "$ac_status"); } &&
2248 { ac_try='test -s "conftest.$ac_objext"'
2249 { (eval echo "$as_me:2249: \"$ac_try\"") >&5
2252 echo "$as_me:2252: \$? = $ac_status" >&5
2253 (exit "$ac_status"); }; }; then
2256 echo "$as_me: failed program was:" >&5
2257 cat "conftest.$ac_ext" >&5
2259 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2262 if test -n "$ac_declaration"; then
2263 echo '#ifdef __cplusplus' >>confdefs.h
2264 echo "$ac_declaration" >>confdefs.h
2265 echo '#endif' >>confdefs.h
2269 echo "$as_me: failed program was:" >&5
2270 cat "conftest.$ac_ext" >&5
2272 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2276 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278 ac_main_return="return"
2281 if test "$GCC" = yes ; then
2282 echo "$as_me:2282: checking version of $CC" >&5
2283 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2284 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.].*//'`"
2285 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2286 echo "$as_me:2286: result: $GCC_VERSION" >&5
2287 echo "${ECHO_T}$GCC_VERSION" >&6
2292 if test "$GCC" = yes ; then
2295 echo "$as_me:2295: checking if this is really Intel C compiler" >&5
2296 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2297 cf_save_CFLAGS="$CFLAGS"
2298 CFLAGS="$CFLAGS -no-gcc"
2299 cat >"conftest.$ac_ext" <<_ACEOF
2300 #line 2300 "configure"
2301 #include "confdefs.h"
2307 #ifdef __INTEL_COMPILER
2316 rm -f "conftest.$ac_objext"
2317 if { (eval echo "$as_me:2317: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2320 echo "$as_me:2320: \$? = $ac_status" >&5
2321 (exit "$ac_status"); } &&
2322 { ac_try='test -s "conftest.$ac_objext"'
2323 { (eval echo "$as_me:2323: \"$ac_try\"") >&5
2326 echo "$as_me:2326: \$? = $ac_status" >&5
2327 (exit "$ac_status"); }; }; then
2329 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2332 echo "$as_me: failed program was:" >&5
2333 cat "conftest.$ac_ext" >&5
2335 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2336 CFLAGS="$cf_save_CFLAGS"
2337 echo "$as_me:2337: result: $INTEL_COMPILER" >&5
2338 echo "${ECHO_T}$INTEL_COMPILER" >&6
2345 if test "$GCC" = yes ; then
2346 echo "$as_me:2346: checking if this is really Clang C compiler" >&5
2347 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2348 cf_save_CFLAGS="$CFLAGS"
2349 cat >"conftest.$ac_ext" <<_ACEOF
2350 #line 2350 "configure"
2351 #include "confdefs.h"
2366 rm -f "conftest.$ac_objext"
2367 if { (eval echo "$as_me:2367: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>&5
2370 echo "$as_me:2370: \$? = $ac_status" >&5
2371 (exit "$ac_status"); } &&
2372 { ac_try='test -s "conftest.$ac_objext"'
2373 { (eval echo "$as_me:2373: \"$ac_try\"") >&5
2376 echo "$as_me:2376: \$? = $ac_status" >&5
2377 (exit "$ac_status"); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 cat "conftest.$ac_ext" >&5
2384 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2385 CFLAGS="$cf_save_CFLAGS"
2386 echo "$as_me:2386: result: $CLANG_COMPILER" >&5
2387 echo "${ECHO_T}$CLANG_COMPILER" >&6
2392 if test "x$CLANG_COMPILER" = "xyes" ; then
2394 (c[1-9][0-9]|*/c[1-9][0-9])
2395 { echo "$as_me:2395: WARNING: replacing broken compiler alias $CC" >&5
2396 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2397 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2402 echo "$as_me:2402: checking version of $CC" >&5
2403 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2404 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2405 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2406 echo "$as_me:2406: result: $CLANG_VERSION" >&5
2407 echo "${ECHO_T}$CLANG_VERSION" >&6
2409 for cf_clang_opt in \
2410 -Qunused-arguments \
2411 -Wno-error=implicit-function-declaration
2413 echo "$as_me:2413: checking if option $cf_clang_opt works" >&5
2414 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2415 cf_save_CFLAGS="$CFLAGS"
2416 CFLAGS="$CFLAGS $cf_clang_opt"
2417 cat >"conftest.$ac_ext" <<_ACEOF
2418 #line 2418 "configure"
2419 #include "confdefs.h"
2426 printf("hello!\\n");
2431 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2432 if { (eval echo "$as_me:2432: \"$ac_link\"") >&5
2433 (eval $ac_link) 2>&5
2435 echo "$as_me:2435: \$? = $ac_status" >&5
2436 (exit "$ac_status"); } &&
2437 { ac_try='test -s "conftest$ac_exeext"'
2438 { (eval echo "$as_me:2438: \"$ac_try\"") >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit "$ac_status"); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 cat "conftest.$ac_ext" >&5
2451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2452 echo "$as_me:2452: result: $cf_clang_optok" >&5
2453 echo "${ECHO_T}$cf_clang_optok" >&6
2454 CFLAGS="$cf_save_CFLAGS"
2455 if test "$cf_clang_optok" = yes; then
2456 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2458 echo "${as_me:-configure}:2458: testing adding option $cf_clang_opt ..." 1>&5
2460 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2461 CFLAGS="${CFLAGS}$cf_clang_opt"
2467 echo "$as_me:2467: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 ac_cv_prog_cc_stdc=no
2474 cat >"conftest.$ac_ext" <<_ACEOF
2475 #line 2475 "configure"
2476 #include "confdefs.h"
2479 #include <sys/types.h>
2480 #include <sys/stat.h>
2481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2482 struct buf { int x; };
2483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2484 static char *e (p, i)
2490 static char *f (char * (*g) (char **, int), char **p, ...)
2495 s = g (p, va_arg (v,int));
2499 int test (int i, double x);
2500 struct s1 {int (*f) (int a);};
2501 struct s2 {int (*f) (double a);};
2502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2508 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2513 # Don't try gcc -ansi; that turns off useful extensions and
2514 # breaks some systems' header files.
2515 # AIX -qlanglvl=ansi
2516 # Ultrix and OSF/1 -std1
2517 # HP-UX 10.20 and later -Ae
2518 # HP-UX older versions -Aa -D_HPUX_SOURCE
2519 # SVR4 -Xc -D__EXTENSIONS__
2520 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2522 CC="$ac_save_CC $ac_arg"
2523 rm -f "conftest.$ac_objext"
2524 if { (eval echo "$as_me:2524: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:2527: \$? = $ac_status" >&5
2528 (exit "$ac_status"); } &&
2529 { ac_try='test -s "conftest.$ac_objext"'
2530 { (eval echo "$as_me:2530: \"$ac_try\"") >&5
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit "$ac_status"); }; }; then
2535 ac_cv_prog_cc_stdc=$ac_arg
2538 echo "$as_me: failed program was:" >&5
2539 cat "conftest.$ac_ext" >&5
2541 rm -f "conftest.$ac_objext"
2543 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2548 case "x$ac_cv_prog_cc_stdc" in
2550 echo "$as_me:2550: result: none needed" >&5
2551 echo "${ECHO_T}none needed" >&6 ;;
2553 echo "$as_me:2553: result: $ac_cv_prog_cc_stdc" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2555 CC="$CC $ac_cv_prog_cc_stdc" ;;
2558 # This should have been defined by AC_PROG_CC
2561 echo "$as_me:2561: checking \$CFLAGS variable" >&5
2562 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2565 echo "$as_me:2565: result: broken" >&5
2566 echo "${ECHO_T}broken" >&6
2567 { echo "$as_me:2567: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2568 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2571 for cf_arg in $cf_flags
2577 cf_new_extra_cppflags=
2579 for cf_add_cflags in $cf_arg
2581 case "$cf_fix_cppflags" in
2583 case "$cf_add_cflags" in
2584 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2585 case "$cf_add_cflags" in
2587 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2590 && test -z "${cf_tst_cflags}" \
2591 && cf_fix_cppflags=yes
2593 if test "$cf_fix_cppflags" = yes ; then
2595 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2596 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2599 elif test "${cf_tst_cflags}" = "\"'" ; then
2601 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2602 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2612 case "$cf_add_cflags" in
2614 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2616 CPPFLAGS=`echo "$CPPFLAGS" | \
2617 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2618 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2623 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2624 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2631 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2632 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2639 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2640 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2642 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2644 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2645 && test -z "${cf_tst_cflags}" \
2646 && cf_fix_cppflags=no
2651 if test -n "$cf_new_cflags" ; then
2653 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2654 CFLAGS="${CFLAGS}$cf_new_cflags"
2658 if test -n "$cf_new_cppflags" ; then
2660 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2661 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2665 if test -n "$cf_new_extra_cppflags" ; then
2667 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2668 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2675 echo "$as_me:2675: result: ok" >&5
2676 echo "${ECHO_T}ok" >&6
2680 echo "$as_me:2680: checking \$CC variable" >&5
2681 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2684 echo "$as_me:2684: result: broken" >&5
2685 echo "${ECHO_T}broken" >&6
2686 { echo "$as_me:2686: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2687 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2689 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2690 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2692 for cf_arg in $cf_flags
2700 cf_new_extra_cppflags=
2702 for cf_add_cflags in $cf_arg
2704 case "$cf_fix_cppflags" in
2706 case "$cf_add_cflags" in
2707 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2708 case "$cf_add_cflags" in
2710 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2712 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2713 && test -z "${cf_tst_cflags}" \
2714 && cf_fix_cppflags=yes
2716 if test "$cf_fix_cppflags" = yes ; then
2718 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2719 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2722 elif test "${cf_tst_cflags}" = "\"'" ; then
2724 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2725 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2735 case "$cf_add_cflags" in
2737 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2739 CPPFLAGS=`echo "$CPPFLAGS" | \
2740 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2741 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2746 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2747 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2754 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2755 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2762 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2763 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2765 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2767 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2768 && test -z "${cf_tst_cflags}" \
2769 && cf_fix_cppflags=no
2774 if test -n "$cf_new_cflags" ; then
2776 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2777 CFLAGS="${CFLAGS}$cf_new_cflags"
2781 if test -n "$cf_new_cppflags" ; then
2783 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2784 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2788 if test -n "$cf_new_extra_cppflags" ; then
2790 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2791 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2801 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2803 echo "${as_me:-configure}:2803: testing resulting CC: '$CC' ..." 1>&5
2805 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2807 echo "${as_me:-configure}:2807: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2809 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2811 echo "${as_me:-configure}:2811: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2815 echo "$as_me:2815: result: ok" >&5
2816 echo "${ECHO_T}ok" >&6
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2823 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 ac_main_return="return"
2826 echo "$as_me:2826: checking how to run the C preprocessor" >&5
2827 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2828 # On Suns, sometimes $CPP names a directory.
2829 if test -n "$CPP" && test -d "$CPP"; then
2832 if test -z "$CPP"; then
2833 if test "${ac_cv_prog_CPP+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 # Double quotes because CPP needs to be expanded
2837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2840 for ac_c_preproc_warn_flag in '' yes
2842 # Use a header file that comes with gcc, so configuring glibc
2843 # with a fresh cross-compiler works.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp. "Syntax error" is here to catch this case.
2846 cat >"conftest.$ac_ext" <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2852 if { (eval echo "$as_me:2852: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2853 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2855 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2857 cat conftest.err >&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit "$ac_status"); } >/dev/null; then
2860 if test -s conftest.err; then
2861 ac_cpp_err=$ac_c_preproc_warn_flag
2868 if test -z "$ac_cpp_err"; then
2871 echo "$as_me: failed program was:" >&5
2872 cat "conftest.$ac_ext" >&5
2873 # Broken: fails on valid input.
2876 rm -f conftest.err "conftest.$ac_ext"
2878 # OK, works on sane cases. Now check whether non-existent headers
2879 # can be detected and how.
2880 cat >"conftest.$ac_ext" <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2883 #include <ac_nonexistent.h>
2885 if { (eval echo "$as_me:2885: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2886 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2888 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit "$ac_status"); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2901 if test -z "$ac_cpp_err"; then
2902 # Broken: success on invalid input.
2905 echo "$as_me: failed program was:" >&5
2906 cat "conftest.$ac_ext" >&5
2907 # Passes both tests.
2911 rm -f conftest.err "conftest.$ac_ext"
2914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2915 rm -f conftest.err "conftest.$ac_ext"
2916 if $ac_preproc_ok; then
2928 echo "$as_me:2928: result: $CPP" >&5
2929 echo "${ECHO_T}$CPP" >&6
2931 for ac_c_preproc_warn_flag in '' yes
2933 # Use a header file that comes with gcc, so configuring glibc
2934 # with a fresh cross-compiler works.
2935 # On the NeXT, cc -E runs the code through the compiler's parser,
2936 # not just through cpp. "Syntax error" is here to catch this case.
2937 cat >"conftest.$ac_ext" <<_ACEOF
2938 #line 2938 "configure"
2939 #include "confdefs.h"
2943 if { (eval echo "$as_me:2943: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2944 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2946 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:2949: \$? = $ac_status" >&5
2950 (exit "$ac_status"); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2959 if test -z "$ac_cpp_err"; then
2962 echo "$as_me: failed program was:" >&5
2963 cat "conftest.$ac_ext" >&5
2964 # Broken: fails on valid input.
2967 rm -f conftest.err "conftest.$ac_ext"
2969 # OK, works on sane cases. Now check whether non-existent headers
2970 # can be detected and how.
2971 cat >"conftest.$ac_ext" <<_ACEOF
2972 #line 2972 "configure"
2973 #include "confdefs.h"
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:2976: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2977 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2979 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:2982: \$? = $ac_status" >&5
2983 (exit "$ac_status"); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2992 if test -z "$ac_cpp_err"; then
2993 # Broken: success on invalid input.
2996 echo "$as_me: failed program was:" >&5
2997 cat "conftest.$ac_ext" >&5
2998 # Passes both tests.
3002 rm -f conftest.err "conftest.$ac_ext"
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err "conftest.$ac_ext"
3007 if $ac_preproc_ok; then
3010 { { echo "$as_me:3010: error: C preprocessor \"$CPP\" fails sanity check" >&5
3011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3012 { (exit 1); exit 1; }; }
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3018 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 ac_main_return="return"
3022 if test $ac_cv_c_compiler_gnu = yes; then
3023 echo "$as_me:3023: checking whether $CC needs -traditional" >&5
3024 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3025 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 ac_pattern="Autoconf.*'x'"
3029 cat >"conftest.$ac_ext" <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3033 int Autoconf = TIOCGETP;
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037 ac_cv_prog_gcc_traditional=yes
3039 ac_cv_prog_gcc_traditional=no
3043 if test $ac_cv_prog_gcc_traditional = no; then
3044 cat >"conftest.$ac_ext" <<_ACEOF
3045 #line 3045 "configure"
3046 #include "confdefs.h"
3048 int Autoconf = TCGETA;
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3052 ac_cv_prog_gcc_traditional=yes
3058 echo "$as_me:3058: result: $ac_cv_prog_gcc_traditional" >&5
3059 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3060 if test $ac_cv_prog_gcc_traditional = yes; then
3061 CC="$CC -traditional"
3065 echo "$as_me:3065: checking whether $CC understands -c and -o together" >&5
3066 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3067 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat > conftest.$ac_ext <<CF_EOF
3074 ${cf_cv_main_return:-return}(0);
3077 # We do the test twice because some compilers refuse to overwrite an
3078 # existing .o file with -o, though they will create one.
3079 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3080 if { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit "$ac_status"); } &&
3085 test -f conftest2.$ac_objext && { (eval echo "$as_me:3085: \"$ac_try\"") >&5
3088 echo "$as_me:3088: \$? = $ac_status" >&5
3089 (exit "$ac_status"); };
3091 eval cf_cv_prog_CC_c_o=yes
3093 eval cf_cv_prog_CC_c_o=no
3098 if test "$cf_cv_prog_CC_c_o" = yes; then
3099 echo "$as_me:3099: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3102 echo "$as_me:3102: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3106 if test "$cross_compiling" = yes ; then
3109 case "$cf_cv_system_name" in
3110 (dragonfly*|mirbsd*|freebsd*)
3111 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3113 (*) LDPATH=$PATH:/sbin:/usr/sbin
3114 # Extract the first word of "ldconfig", so it can be a program name with args.
3115 set dummy ldconfig; ac_word=$2
3116 echo "$as_me:3116: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3126 ac_save_IFS=$IFS; IFS=$ac_path_separator
3128 for ac_dir in $ac_dummy; do
3130 test -z "$ac_dir" && ac_dir=.
3131 if $as_executable_p "$ac_dir/$ac_word"; then
3132 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3133 echo "$as_me:3133: found $ac_dir/$ac_word" >&5
3141 LDCONFIG=$ac_cv_path_LDCONFIG
3143 if test -n "$LDCONFIG"; then
3144 echo "$as_me:3144: result: $LDCONFIG" >&5
3145 echo "${ECHO_T}$LDCONFIG" >&6
3147 echo "$as_me:3147: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3155 echo "$as_me:3155: checking if you want to ensure bool is consistent with C++" >&5
3156 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3158 # Check whether --with-cxx or --without-cxx was given.
3159 if test "${with_cxx+set}" = set; then
3161 cf_with_cxx=$withval
3165 echo "$as_me:3165: result: $cf_with_cxx" >&5
3166 echo "${ECHO_T}$cf_with_cxx" >&6
3167 if test "X$cf_with_cxx" = Xno ; then
3171 # with autoconf 2.13, we can change the error to a warning:
3173 ac_cpp='$CXXCPP $CPPFLAGS'
3174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3175 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3177 ac_main_return="return"
3178 if test -n "$ac_tool_prefix"; then
3179 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3183 echo "$as_me:3183: checking for $ac_word" >&5
3184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3185 if test "${ac_cv_prog_CXX+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 if test -n "$CXX"; then
3189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3191 ac_save_IFS=$IFS; IFS=$ac_path_separator
3193 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 $as_executable_p "$ac_dir/$ac_word" || continue
3197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3198 echo "$as_me:3198: found $ac_dir/$ac_word" >&5
3205 if test -n "$CXX"; then
3206 echo "$as_me:3206: result: $CXX" >&5
3207 echo "${ECHO_T}$CXX" >&6
3209 echo "$as_me:3209: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 test -n "$CXX" && break
3216 if test -z "$CXX"; then
3218 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3220 # Extract the first word of "$ac_prog", so it can be a program name with args.
3221 set dummy $ac_prog; ac_word=$2
3222 echo "$as_me:3222: checking for $ac_word" >&5
3223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 if test -n "$ac_ct_CXX"; then
3228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3230 ac_save_IFS=$IFS; IFS=$ac_path_separator
3232 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 $as_executable_p "$ac_dir/$ac_word" || continue
3236 ac_cv_prog_ac_ct_CXX="$ac_prog"
3237 echo "$as_me:3237: found $ac_dir/$ac_word" >&5
3243 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3244 if test -n "$ac_ct_CXX"; then
3245 echo "$as_me:3245: result: $ac_ct_CXX" >&5
3246 echo "${ECHO_T}$ac_ct_CXX" >&6
3248 echo "$as_me:3248: result: no" >&5
3249 echo "${ECHO_T}no" >&6
3252 test -n "$ac_ct_CXX" && break
3254 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3259 # Provide some information about the compiler.
3260 echo "$as_me:3260:" \
3261 "checking for C++ compiler version" >&5
3262 ac_compiler=`set X $ac_compile; echo $2`
3263 { (eval echo "$as_me:3263: \"$ac_compiler --version </dev/null >&5\"") >&5
3264 (eval $ac_compiler --version </dev/null >&5) 2>&5
3266 echo "$as_me:3266: \$? = $ac_status" >&5
3267 (exit "$ac_status"); }
3268 { (eval echo "$as_me:3268: \"$ac_compiler -v </dev/null >&5\"") >&5
3269 (eval $ac_compiler -v </dev/null >&5) 2>&5
3271 echo "$as_me:3271: \$? = $ac_status" >&5
3272 (exit "$ac_status"); }
3273 { (eval echo "$as_me:3273: \"$ac_compiler -V </dev/null >&5\"") >&5
3274 (eval $ac_compiler -V </dev/null >&5) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit "$ac_status"); }
3279 echo "$as_me:3279: checking whether we are using the GNU C++ compiler" >&5
3280 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3281 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 cat >"conftest.$ac_ext" <<_ACEOF
3285 #line 3285 "configure"
3286 #include "confdefs.h"
3299 rm -f "conftest.$ac_objext"
3300 if { (eval echo "$as_me:3300: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>&5
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit "$ac_status"); } &&
3305 { ac_try='test -s "conftest.$ac_objext"'
3306 { (eval echo "$as_me:3306: \"$ac_try\"") >&5
3309 echo "$as_me:3309: \$? = $ac_status" >&5
3310 (exit "$ac_status"); }; }; then
3313 echo "$as_me: failed program was:" >&5
3314 cat "conftest.$ac_ext" >&5
3317 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3318 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3321 echo "$as_me:3321: result: $ac_cv_cxx_compiler_gnu" >&5
3322 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3323 GXX=`test $ac_compiler_gnu = yes && echo yes`
3324 ac_test_CXXFLAGS=${CXXFLAGS+set}
3325 ac_save_CXXFLAGS=$CXXFLAGS
3327 echo "$as_me:3327: checking whether $CXX accepts -g" >&5
3328 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3329 if test "${ac_cv_prog_cxx_g+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >"conftest.$ac_ext" <<_ACEOF
3333 #line 3333 "configure"
3334 #include "confdefs.h"
3344 rm -f "conftest.$ac_objext"
3345 if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>&5
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit "$ac_status"); } &&
3350 { ac_try='test -s "conftest.$ac_objext"'
3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit "$ac_status"); }; }; then
3356 ac_cv_prog_cxx_g=yes
3358 echo "$as_me: failed program was:" >&5
3359 cat "conftest.$ac_ext" >&5
3362 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3364 echo "$as_me:3364: result: $ac_cv_prog_cxx_g" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3366 if test "$ac_test_CXXFLAGS" = set; then
3367 CXXFLAGS=$ac_save_CXXFLAGS
3368 elif test $ac_cv_prog_cxx_g = yes; then
3369 if test "$GXX" = yes; then
3375 if test "$GXX" = yes; then
3381 for ac_declaration in \
3383 '#include <stdlib.h>' \
3384 'extern "C" void std::exit (int) throw (); using std::exit;' \
3385 'extern "C" void std::exit (int); using std::exit;' \
3386 'extern "C" void exit (int) throw ();' \
3387 'extern "C" void exit (int);' \
3390 cat >"conftest.$ac_ext" <<_ACEOF
3391 #line 3391 "configure"
3392 #include "confdefs.h"
3403 rm -f "conftest.$ac_objext"
3404 if { (eval echo "$as_me:3404: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3407 echo "$as_me:3407: \$? = $ac_status" >&5
3408 (exit "$ac_status"); } &&
3409 { ac_try='test -s "conftest.$ac_objext"'
3410 { (eval echo "$as_me:3410: \"$ac_try\"") >&5
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit "$ac_status"); }; }; then
3417 echo "$as_me: failed program was:" >&5
3418 cat "conftest.$ac_ext" >&5
3421 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3422 cat >"conftest.$ac_ext" <<_ACEOF
3423 #line 3423 "configure"
3424 #include "confdefs.h"
3434 rm -f "conftest.$ac_objext"
3435 if { (eval echo "$as_me:3435: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>&5
3438 echo "$as_me:3438: \$? = $ac_status" >&5
3439 (exit "$ac_status"); } &&
3440 { ac_try='test -s "conftest.$ac_objext"'
3441 { (eval echo "$as_me:3441: \"$ac_try\"") >&5
3444 echo "$as_me:3444: \$? = $ac_status" >&5
3445 (exit "$ac_status"); }; }; then
3448 echo "$as_me: failed program was:" >&5
3449 cat "conftest.$ac_ext" >&5
3451 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3454 if test -n "$ac_declaration"; then
3455 echo '#ifdef __cplusplus' >>confdefs.h
3456 echo "$ac_declaration" >>confdefs.h
3457 echo '#endif' >>confdefs.h
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3463 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 ac_main_return="return"
3468 ac_cpp='$CXXCPP $CPPFLAGS'
3469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3470 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3472 ac_main_return="return"
3474 if test "x$cf_with_cxx" != xno
3476 # Several of the C++ configurations do not work, particularly when
3477 # cross-compiling (20140913 -TD)
3478 echo "$as_me:3478: checking if $CXX works" >&5
3479 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3481 save_CPPFLAGS="$CPPFLAGS"
3482 eval cf_includedir=${includedir}
3483 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3485 cat >"conftest.$ac_ext" <<_ACEOF
3486 #line 3486 "configure"
3487 #include "confdefs.h"
3496 printf("Hello world!\n")
3502 rm -f "conftest.$ac_objext"
3503 if { (eval echo "$as_me:3503: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>&5
3506 echo "$as_me:3506: \$? = $ac_status" >&5
3507 (exit "$ac_status"); } &&
3508 { ac_try='test -s "conftest.$ac_objext"'
3509 { (eval echo "$as_me:3509: \"$ac_try\"") >&5
3512 echo "$as_me:3512: \$? = $ac_status" >&5
3513 (exit "$ac_status"); }; }; then
3516 echo "$as_me: failed program was:" >&5
3517 cat "conftest.$ac_ext" >&5
3520 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3521 CPPFLAGS="$save_CPPFLAGS"
3523 echo "$as_me:3523: result: $cf_cxx_works" >&5
3524 echo "${ECHO_T}$cf_cxx_works" >&6
3525 if test "x$cf_cxx_works" = xno
3527 { echo "$as_me:3527: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3528 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3529 cf_with_cxx=no; CXX=""; GXX="";
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3535 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 ac_main_return="return"
3539 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3540 if test "$CXX" = "g++" ; then
3541 # Extract the first word of "g++", so it can be a program name with args.
3542 set dummy g++; ac_word=$2
3543 echo "$as_me:3543: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_path_CXX+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3553 ac_save_IFS=$IFS; IFS=$ac_path_separator
3555 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if $as_executable_p "$ac_dir/$ac_word"; then
3559 ac_cv_path_CXX="$ac_dir/$ac_word"
3560 echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3570 if test -n "$CXX"; then
3571 echo "$as_me:3571: result: $CXX" >&5
3572 echo "${ECHO_T}$CXX" >&6
3574 echo "$as_me:3574: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3581 { echo "$as_me:3581: WARNING: You don't have any C++ compiler, too bad" >&5
3582 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3583 cf_with_cxx=no; CXX=""; GXX="";
3589 if test "$GXX" = yes; then
3590 echo "$as_me:3590: checking version of ${CXX:-g++}" >&5
3591 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3592 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3593 if test -z "$GXX_VERSION"
3598 echo "$as_me:3598: result: $GXX_VERSION" >&5
3599 echo "${ECHO_T}$GXX_VERSION" >&6
3602 case "$GXX_VERSION" in
3606 { echo "$as_me:3606: WARNING: templates do not work" >&5
3607 echo "$as_me: WARNING: templates do not work" >&2;}
3611 echo "$as_me:3611: checking if you want to build C++ binding and demo" >&5
3612 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3614 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3615 if test "${with_cxx_binding+set}" = set; then
3616 withval="$with_cxx_binding"
3617 cf_with_cxx_binding=$withval
3619 cf_with_cxx_binding=$cf_with_cxx
3621 echo "$as_me:3621: result: $cf_with_cxx_binding" >&5
3622 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3624 echo "$as_me:3624: checking if you want to build with Ada" >&5
3625 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3626 echo "$as_me:3626: result: $cf_with_ada" >&5
3627 echo "${ECHO_T}$cf_with_ada" >&6
3629 echo "$as_me:3629: checking if you want to install terminal database" >&5
3630 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3632 # Check whether --enable-db-install or --disable-db-install was given.
3633 if test "${enable_db_install+set}" = set; then
3634 enableval="$enable_db_install"
3635 cf_with_db_install=$enableval
3637 cf_with_db_install=yes
3639 echo "$as_me:3639: result: $cf_with_db_install" >&5
3640 echo "${ECHO_T}$cf_with_db_install" >&6
3642 echo "$as_me:3642: checking if you want to install manpages" >&5
3643 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3645 # Check whether --with-manpages or --without-manpages was given.
3646 if test "${with_manpages+set}" = set; then
3647 withval="$with_manpages"
3648 cf_with_manpages=$withval
3650 cf_with_manpages=yes
3652 echo "$as_me:3652: result: $cf_with_manpages" >&5
3653 echo "${ECHO_T}$cf_with_manpages" >&6
3655 echo "$as_me:3655: checking if you want to build programs such as tic" >&5
3656 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3658 # Check whether --with-progs or --without-progs was given.
3659 if test "${with_progs+set}" = set; then
3660 withval="$with_progs"
3661 cf_with_progs=$withval
3665 echo "$as_me:3665: result: $cf_with_progs" >&5
3666 echo "${ECHO_T}$cf_with_progs" >&6
3668 if test -f "$srcdir/tack/tack.h" ; then
3669 if test "x$cross_compiling" = xyes ; then
3670 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3672 echo "${as_me:-configure}:3672: testing ignoring tack because we are cross-compiling ..." 1>&5
3676 echo "$as_me:3676: checking if you want to build the tack program" >&5
3677 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3679 # Check whether --with-tack or --without-tack was given.
3680 if test "${with_tack+set}" = set; then
3681 withval="$with_tack"
3682 cf_with_tack=$withval
3684 cf_with_tack=$cf_with_progs
3686 echo "$as_me:3686: result: $cf_with_tack" >&5
3687 echo "${ECHO_T}$cf_with_tack" >&6
3693 echo "$as_me:3693: checking if you want to build test-programs" >&5
3694 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3696 # Check whether --with-tests or --without-tests was given.
3697 if test "${with_tests+set}" = set; then
3698 withval="$with_tests"
3699 cf_with_tests=$withval
3703 echo "$as_me:3703: result: $cf_with_tests" >&5
3704 echo "${ECHO_T}$cf_with_tests" >&6
3706 echo "$as_me:3706: checking if you wish to install curses.h" >&5
3707 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3709 # Check whether --with-curses-h or --without-curses-h was given.
3710 if test "${with_curses_h+set}" = set; then
3711 withval="$with_curses_h"
3712 with_curses_h=$withval
3716 echo "$as_me:3716: result: $with_curses_h" >&5
3717 echo "${ECHO_T}$with_curses_h" >&6
3719 modules_to_build="ncurses"
3720 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3721 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3722 modules_to_build="$modules_to_build panel menu form"
3724 test "$program_prefix" != NONE &&
3725 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3726 # Use a double $ so make ignores it.
3727 test "$program_suffix" != NONE &&
3728 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3729 # Double any \ or $. echo might interpret backslashes.
3730 # By default was `s,x,x', remove it if useless.
3731 cat <<\_ACEOF >conftest.sed
3732 s/[\\$]/&&/g;s/;s,x,x,$//
3734 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3737 for ac_prog in mawk gawk nawk awk
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 echo "$as_me:3741: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_AWK+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 if test -n "$AWK"; then
3747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3749 ac_save_IFS=$IFS; IFS=$ac_path_separator
3751 for ac_dir in $ac_dummy; do
3753 test -z "$ac_dir" && ac_dir=.
3754 $as_executable_p "$ac_dir/$ac_word" || continue
3755 ac_cv_prog_AWK="$ac_prog"
3756 echo "$as_me:3756: found $ac_dir/$ac_word" >&5
3763 if test -n "$AWK"; then
3764 echo "$as_me:3764: result: $AWK" >&5
3765 echo "${ECHO_T}$AWK" >&6
3767 echo "$as_me:3767: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 test -n "$AWK" && break
3774 test -z "$AWK" && { { echo "$as_me:3774: error: No awk program found" >&5
3775 echo "$as_me: error: No awk program found" >&2;}
3776 { (exit 1); exit 1; }; }
3778 # Find a good install program. We prefer a C program (faster),
3779 # so one script is as good as another. But avoid the broken or
3780 # incompatible versions:
3781 # SysV /etc/install, /usr/sbin/install
3782 # SunOS /usr/etc/install
3783 # IRIX /sbin/install
3785 # AmigaOS /C/install, which installs bootblocks on floppy discs
3786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3789 # ./install, which can be erroneously created by make from ./install.sh.
3790 echo "$as_me:3790: checking for a BSD compatible install" >&5
3791 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3792 if test -z "$INSTALL"; then
3793 if test "${ac_cv_path_install+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_save_IFS=$IFS; IFS=$ac_path_separator
3797 for ac_dir in $PATH; do
3799 # Account for people who put trailing slashes in PATH elements.
3801 / | ./ | .// | /cC/* \
3802 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3805 # OSF1 and SCO ODT 3.0 have their own names for install.
3806 # Don't use installbsd from OSF since it installs stuff as root
3808 for ac_prog in ginstall scoinst install; do
3809 if $as_executable_p "$ac_dir/$ac_prog"; then
3810 if test $ac_prog = install &&
3811 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3812 # AIX install. It has an incompatible calling convention.
3814 elif test $ac_prog = install &&
3815 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3816 # program-specific install script used by HP pwplus--don't use.
3819 ac_cv_path_install="$ac_dir/$ac_prog -c"
3829 if test "${ac_cv_path_install+set}" = set; then
3830 INSTALL=$ac_cv_path_install
3832 # As a last resort, use the slow shell script. We don't cache a
3833 # path for INSTALL within a source directory, because that will
3834 # break other packages using the cache if that directory is
3835 # removed, or if the path is relative.
3836 INSTALL=$ac_install_sh
3839 echo "$as_me:3839: result: $INSTALL" >&5
3840 echo "${ECHO_T}$INSTALL" >&6
3842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3843 # It thinks the first close brace ends the variable substitution.
3844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3855 test -z "$cf_dir" && cf_dir=.
3856 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3860 for ac_prog in lint cppcheck splint
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 echo "$as_me:3864: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_LINT+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$LINT"; then
3870 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3872 ac_save_IFS=$IFS; IFS=$ac_path_separator
3874 for ac_dir in $ac_dummy; do
3876 test -z "$ac_dir" && ac_dir=.
3877 $as_executable_p "$ac_dir/$ac_word" || continue
3878 ac_cv_prog_LINT="$ac_prog"
3879 echo "$as_me:3879: found $ac_dir/$ac_word" >&5
3885 LINT=$ac_cv_prog_LINT
3886 if test -n "$LINT"; then
3887 echo "$as_me:3887: result: $LINT" >&5
3888 echo "${ECHO_T}$LINT" >&6
3890 echo "$as_me:3890: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3894 test -n "$LINT" && break
3898 (xcppcheck|x*/cppcheck)
3899 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3903 echo "$as_me:3903: checking whether ln -s works" >&5
3904 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3906 if test "$LN_S" = "ln -s"; then
3907 echo "$as_me:3907: result: yes" >&5
3908 echo "${ECHO_T}yes" >&6
3910 echo "$as_me:3910: result: no, using $LN_S" >&5
3911 echo "${ECHO_T}no, using $LN_S" >&6
3914 echo "$as_me:3914: checking if $LN_S -f options work" >&5
3915 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3917 rm -f conf$$.src conf$$dst
3919 echo first >conf$$.src
3920 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3925 rm -f conf$$.dst conf$$src
3926 echo "$as_me:3926: result: $cf_prog_ln_sf" >&5
3927 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3929 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3931 echo "$as_me:3931: checking for long file names" >&5
3932 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3933 if test "${ac_cv_sys_long_file_names+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_cv_sys_long_file_names=yes
3937 # Test for long file names in all the places we know might matter:
3938 # . the current directory, where building will happen
3939 # $prefix/lib where we will be installing things
3940 # $exec_prefix/lib likewise
3941 # eval it to expand exec_prefix.
3942 # $TMPDIR if set, where it might want to write temporary files
3943 # if $TMPDIR is not set:
3944 # /tmp where it might want to write temporary files
3947 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3950 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3952 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3953 test -d "$ac_dir" || continue
3954 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3955 ac_xdir=$ac_dir/cf$$
3956 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3957 ac_tf1=$ac_xdir/conftest9012345
3958 ac_tf2=$ac_xdir/conftest9012346
3959 (echo 1 >"$ac_tf1") 2>/dev/null
3960 (echo 2 >"$ac_tf2") 2>/dev/null
3961 ac_val=`cat "$ac_tf1" 2>/dev/null`
3962 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3963 ac_cv_sys_long_file_names=no
3964 rm -rf "$ac_xdir" 2>/dev/null
3967 rm -rf "$ac_xdir" 2>/dev/null
3970 echo "$as_me:3970: result: $ac_cv_sys_long_file_names" >&5
3971 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3972 if test "$ac_cv_sys_long_file_names" = yes; then
3974 cat >>confdefs.h <<\EOF
3975 #define HAVE_LONG_FILE_NAMES 1
3980 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3981 # of package conflict.
3984 # Check whether --with-config-suffix or --without-config-suffix was given.
3985 if test "${with_config_suffix+set}" = set; then
3986 withval="$with_config_suffix"
3989 { echo "$as_me:3989: WARNING: expected a value for config-suffix option" >&5
3990 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3992 (*) cf_config_suffix="$withval"
3997 # If we find pkg-config, check if we should install the ".pc" files.
3999 echo "$as_me:3999: checking if you want to use pkg-config" >&5
4000 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4002 # Check whether --with-pkg-config or --without-pkg-config was given.
4003 if test "${with_pkg_config+set}" = set; then
4004 withval="$with_pkg_config"
4005 cf_pkg_config=$withval
4009 echo "$as_me:4009: result: $cf_pkg_config" >&5
4010 echo "${ECHO_T}$cf_pkg_config" >&6
4012 case "$cf_pkg_config" in
4018 if test -n "$ac_tool_prefix"; then
4019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4020 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4021 echo "$as_me:4021: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4031 ac_save_IFS=$IFS; IFS=$ac_path_separator
4033 for ac_dir in $ac_dummy; do
4035 test -z "$ac_dir" && ac_dir=.
4036 if $as_executable_p "$ac_dir/$ac_word"; then
4037 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4038 echo "$as_me:4038: found $ac_dir/$ac_word" >&5
4046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4048 if test -n "$PKG_CONFIG"; then
4049 echo "$as_me:4049: result: $PKG_CONFIG" >&5
4050 echo "${ECHO_T}$PKG_CONFIG" >&6
4052 echo "$as_me:4052: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4057 if test -z "$ac_cv_path_PKG_CONFIG"; then
4058 ac_pt_PKG_CONFIG=$PKG_CONFIG
4059 # Extract the first word of "pkg-config", so it can be a program name with args.
4060 set dummy pkg-config; ac_word=$2
4061 echo "$as_me:4061: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 case $ac_pt_PKG_CONFIG in
4068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4071 ac_save_IFS=$IFS; IFS=$ac_path_separator
4073 for ac_dir in $ac_dummy; do
4075 test -z "$ac_dir" && ac_dir=.
4076 if $as_executable_p "$ac_dir/$ac_word"; then
4077 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4078 echo "$as_me:4078: found $ac_dir/$ac_word" >&5
4083 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4087 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4089 if test -n "$ac_pt_PKG_CONFIG"; then
4090 echo "$as_me:4090: result: $ac_pt_PKG_CONFIG" >&5
4091 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4097 PKG_CONFIG=$ac_pt_PKG_CONFIG
4099 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4108 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4109 if test "$PKG_CONFIG" != none ; then
4111 if test "x$prefix" != xNONE; then
4112 cf_path_syntax="$prefix"
4114 cf_path_syntax="$ac_default_prefix"
4117 case ".$PKG_CONFIG" in
4122 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4124 (.\$\{*prefix\}*|.\$\{*dir\}*)
4125 eval PKG_CONFIG="$PKG_CONFIG"
4126 case ".$PKG_CONFIG" in
4128 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4133 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4136 { { echo "$as_me:4136: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4137 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4138 { (exit 1); exit 1; }; }
4142 elif test "x$cf_pkg_config" != xno ; then
4143 { echo "$as_me:4143: WARNING: pkg-config is not installed" >&5
4144 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4147 case "$PKG_CONFIG" in
4149 echo "$as_me:4149: checking for pkg-config library directory" >&5
4150 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4153 echo "$as_me:4153: checking for $PKG_CONFIG library directory" >&5
4154 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4158 # if $PKG_CONFIG_LIBDIR is set, try to use that
4159 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,'`
4161 # if the option is used, let that override. otherwise default to "libdir"
4163 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4164 if test "${with_pkg_config_libdir+set}" = set; then
4165 withval="$with_pkg_config_libdir"
4166 cf_search_path=$withval
4168 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4171 case "x$cf_search_path" in
4173 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4174 echo "$as_me:4174: result: $PKG_CONFIG_LIBDIR" >&5
4175 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4184 PKG_CONFIG_LIBDIR="$cf_search_path"
4185 echo "$as_me:4185: result: $PKG_CONFIG_LIBDIR" >&5
4186 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4190 echo "$as_me:4190: result: auto" >&5
4191 echo "${ECHO_T}auto" >&6
4193 # Look for the library directory using the same prefix as the executable
4194 echo "$as_me:4194: checking for search-list" >&5
4195 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4196 if test "x$PKG_CONFIG" != xnone
4198 # works for pkg-config since version 0.24 (2009)
4199 # works for pkgconf since version 0.8.3 (2012)
4200 for cf_pkg_program in \
4201 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4205 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4206 test -n "$cf_search_path" && break
4209 # works for pkg-config since import in 2005 of original 2001 HP code.
4210 test -z "$cf_search_path" && \
4212 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4213 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4214 sub(\"^[^']*'\",\"\"); \
4215 sub(\"'.*\",\"\"); \
4216 printf \" %s\", \\$0; } \
4221 echo "$as_me:4221: result: $cf_search_path" >&5
4222 echo "${ECHO_T}$cf_search_path" >&6
4225 { { echo "$as_me:4225: error: Unexpected option value: $cf_search_path" >&5
4226 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4227 { (exit 1); exit 1; }; }
4231 if test -n "$cf_search_path"
4233 echo "$as_me:4233: checking for first directory" >&5
4234 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4235 cf_pkg_config_path=none
4236 for cf_config in $cf_search_path
4238 if test -d "$cf_config"
4240 cf_pkg_config_path=$cf_config
4244 echo "$as_me:4244: result: $cf_pkg_config_path" >&5
4245 echo "${ECHO_T}$cf_pkg_config_path" >&6
4247 if test "x$cf_pkg_config_path" != xnone ; then
4248 # limit this to the first directory found
4249 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4252 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4254 echo "$as_me:4254: checking for workaround" >&5
4255 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4256 if test "$prefix" = "NONE" ; then
4257 cf_prefix="$ac_default_prefix"
4261 eval cf_libdir=$libdir
4262 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4264 for cf_config in $cf_search_path
4267 $cf_libdir/pkgconfig)
4268 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4272 test -z "$cf_backup" && cf_backup=$cf_config
4276 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4277 echo "$as_me:4277: result: $PKG_CONFIG_LIBDIR" >&5
4278 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4282 if test "x$PKG_CONFIG" != xnone
4284 echo "$as_me:4284: checking if we should install .pc files for $PKG_CONFIG" >&5
4285 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4287 echo "$as_me:4287: checking if we should install .pc files" >&5
4288 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4291 # Check whether --enable-pc-files or --disable-pc-files was given.
4292 if test "${enable_pc_files+set}" = set; then
4293 enableval="$enable_pc_files"
4294 enable_pc_files=$enableval
4298 echo "$as_me:4298: result: $enable_pc_files" >&5
4299 echo "${ECHO_T}$enable_pc_files" >&6
4301 if test "x$enable_pc_files" != xno
4304 case "x$PKG_CONFIG_LIBDIR" in
4306 { echo "$as_me:4306: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4307 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4310 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4312 if test "x$prefix" != xNONE; then
4313 cf_path_syntax="$prefix"
4315 cf_path_syntax="$ac_default_prefix"
4318 case ".$cf_pkg_config_libdir" in
4323 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4325 (.\$\{*prefix\}*|.\$\{*dir\}*)
4326 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4327 case ".$cf_pkg_config_libdir" in
4329 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4334 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4337 { { echo "$as_me:4337: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4338 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4339 { (exit 1); exit 1; }; }
4349 if test -z "$MAKE_PC_FILES"
4351 echo "$as_me:4351: checking for suffix to add to pc-files" >&5
4352 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4354 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4355 if test "${with_pc_suffix+set}" = set; then
4356 withval="$with_pc_suffix"
4361 (*) PC_MODULE_SUFFIX="$withval"
4365 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4366 echo "$as_me:4366: result: $PC_MODULE_SUFFIX" >&5
4367 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4368 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4372 echo "$as_me:4372: checking if we should assume mixed-case filenames" >&5
4373 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4375 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4376 if test "${enable_mixed_case+set}" = set; then
4377 enableval="$enable_mixed_case"
4378 enable_mixedcase=$enableval
4380 enable_mixedcase=auto
4382 echo "$as_me:4382: result: $enable_mixedcase" >&5
4383 echo "${ECHO_T}$enable_mixedcase" >&6
4384 if test "$enable_mixedcase" = "auto" ; then
4386 echo "$as_me:4386: checking if filesystem supports mixed-case filenames" >&5
4387 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4388 if test "${cf_cv_mixedcase+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test "$cross_compiling" = yes ; then
4393 case "$target_alias" in
4394 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4402 rm -f conftest CONFTEST
4404 if test -f CONFTEST ; then
4409 rm -f conftest CONFTEST
4413 echo "$as_me:4413: result: $cf_cv_mixedcase" >&5
4414 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4415 test "$cf_cv_mixedcase" = yes &&
4416 cat >>confdefs.h <<\EOF
4417 #define MIXEDCASE_FILENAMES 1
4421 cf_cv_mixedcase=$enable_mixedcase
4422 if test "x$enable_mixedcase" = "xyes" ; then
4424 cat >>confdefs.h <<\EOF
4425 #define MIXEDCASE_FILENAMES 1
4431 # do this after mixed-case option (tags/TAGS is not as important as tic).
4432 echo "$as_me:4432: checking whether ${MAKE-make} sets \${MAKE}" >&5
4433 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4434 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4435 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 cat >conftest.make <<\EOF
4440 @echo 'ac_maketemp="${MAKE}"'
4442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4443 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4444 if test -n "$ac_maketemp"; then
4445 eval ac_cv_prog_make_${ac_make}_set=yes
4447 eval ac_cv_prog_make_${ac_make}_set=no
4451 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4452 echo "$as_me:4452: result: yes" >&5
4453 echo "${ECHO_T}yes" >&6
4456 echo "$as_me:4456: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4458 SET_MAKE="MAKE=${MAKE-make}"
4461 echo "$as_me:4461: checking for \".PHONY\" make-support" >&5
4462 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4463 if test "${cf_cv_make_PHONY+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 mkdir conftest || exit 1
4471 cat >makefile <<'CF_EOF'
4475 @echo "** making $@ $(DATA)"
4477 @echo "** making $@ $(DATA)"
4479 @echo "** making $@ $(DATA)"
4482 @echo "** making $@ $(DATA)"
4485 for cf_data in 1 2 3
4487 ${MAKE:-make} always DATA=$cf_data
4488 ${MAKE:-make} once DATA=$cf_data
4489 ${MAKE:-make} -t always once
4490 if test -f always ; then
4491 echo "no (case 1)" > ../conftest.tmp
4492 elif test ! -f always.out ; then
4493 echo "no (case 2)" > ../conftest.tmp
4494 elif test ! -f once.out ; then
4495 echo "no (case 3)" > ../conftest.tmp
4496 elif ! cmp -s always.out once.out ; then
4497 echo "no (case 4)" > ../conftest.tmp
4498 diff always.out once.out
4500 cf_check="`cat always.out`"
4501 if test "x$cf_check" != "x$cf_data" ; then
4502 echo "no (case 5)" > ../conftest.tmp
4504 echo yes > ../conftest.tmp
4512 cf_cv_make_PHONY="`cat conftest.tmp`"
4516 echo "$as_me:4516: result: $cf_cv_make_PHONY" >&5
4517 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4520 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4521 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4523 for ac_prog in exctags ctags
4525 # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 echo "$as_me:4527: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_prog_CTAGS+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 if test -n "$CTAGS"; then
4533 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4535 ac_save_IFS=$IFS; IFS=$ac_path_separator
4537 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 $as_executable_p "$ac_dir/$ac_word" || continue
4541 ac_cv_prog_CTAGS="$ac_prog"
4542 echo "$as_me:4542: found $ac_dir/$ac_word" >&5
4548 CTAGS=$ac_cv_prog_CTAGS
4549 if test -n "$CTAGS"; then
4550 echo "$as_me:4550: result: $CTAGS" >&5
4551 echo "${ECHO_T}$CTAGS" >&6
4553 echo "$as_me:4553: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4557 test -n "$CTAGS" && break
4560 for ac_prog in exetags etags
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 echo "$as_me:4564: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_ETAGS+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$ETAGS"; then
4570 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4572 ac_save_IFS=$IFS; IFS=$ac_path_separator
4574 for ac_dir in $ac_dummy; do
4576 test -z "$ac_dir" && ac_dir=.
4577 $as_executable_p "$ac_dir/$ac_word" || continue
4578 ac_cv_prog_ETAGS="$ac_prog"
4579 echo "$as_me:4579: found $ac_dir/$ac_word" >&5
4585 ETAGS=$ac_cv_prog_ETAGS
4586 if test -n "$ETAGS"; then
4587 echo "$as_me:4587: result: $ETAGS" >&5
4588 echo "${ECHO_T}$ETAGS" >&6
4590 echo "$as_me:4590: result: no" >&5
4591 echo "${ECHO_T}no" >&6
4594 test -n "$ETAGS" && break
4597 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4598 set dummy ${CTAGS:-ctags}; ac_word=$2
4599 echo "$as_me:4599: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$MAKE_LOWER_TAGS"; then
4605 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4607 ac_save_IFS=$IFS; IFS=$ac_path_separator
4609 for ac_dir in $ac_dummy; do
4611 test -z "$ac_dir" && ac_dir=.
4612 $as_executable_p "$ac_dir/$ac_word" || continue
4613 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4614 echo "$as_me:4614: found $ac_dir/$ac_word" >&5
4618 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4621 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4622 if test -n "$MAKE_LOWER_TAGS"; then
4623 echo "$as_me:4623: result: $MAKE_LOWER_TAGS" >&5
4624 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4626 echo "$as_me:4626: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4630 if test "$cf_cv_mixedcase" = yes ; then
4631 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4632 set dummy ${ETAGS:-etags}; ac_word=$2
4633 echo "$as_me:4633: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 if test -n "$MAKE_UPPER_TAGS"; then
4639 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4641 ac_save_IFS=$IFS; IFS=$ac_path_separator
4643 for ac_dir in $ac_dummy; do
4645 test -z "$ac_dir" && ac_dir=.
4646 $as_executable_p "$ac_dir/$ac_word" || continue
4647 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4648 echo "$as_me:4648: found $ac_dir/$ac_word" >&5
4652 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4655 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4656 if test -n "$MAKE_UPPER_TAGS"; then
4657 echo "$as_me:4657: result: $MAKE_UPPER_TAGS" >&5
4658 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4660 echo "$as_me:4660: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4668 if test "$MAKE_UPPER_TAGS" = yes ; then
4674 if test "$MAKE_LOWER_TAGS" = yes ; then
4680 echo "$as_me:4680: checking for makeflags variable" >&5
4681 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4682 if test "${cf_cv_makeflags+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4689 cat >cf_makeflags.tmp <<CF_EOF
4692 @ echo '.$cf_option'
4694 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4695 case "$cf_result" in
4697 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4698 case "$cf_result" in
4699 (.*CC=*) cf_cv_makeflags=
4701 (*) cf_cv_makeflags=$cf_option
4710 echo "${as_me:-configure}:4710: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4715 rm -f cf_makeflags.tmp
4718 echo "$as_me:4718: result: $cf_cv_makeflags" >&5
4719 echo "${ECHO_T}$cf_cv_makeflags" >&6
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4724 echo "$as_me:4724: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$RANLIB"; then
4730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4732 ac_save_IFS=$IFS; IFS=$ac_path_separator
4734 for ac_dir in $ac_dummy; do
4736 test -z "$ac_dir" && ac_dir=.
4737 $as_executable_p "$ac_dir/$ac_word" || continue
4738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4739 echo "$as_me:4739: found $ac_dir/$ac_word" >&5
4745 RANLIB=$ac_cv_prog_RANLIB
4746 if test -n "$RANLIB"; then
4747 echo "$as_me:4747: result: $RANLIB" >&5
4748 echo "${ECHO_T}$RANLIB" >&6
4750 echo "$as_me:4750: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4755 if test -z "$ac_cv_prog_RANLIB"; then
4756 ac_ct_RANLIB=$RANLIB
4757 # Extract the first word of "ranlib", so it can be a program name with args.
4758 set dummy ranlib; ac_word=$2
4759 echo "$as_me:4759: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 if test -n "$ac_ct_RANLIB"; then
4765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4767 ac_save_IFS=$IFS; IFS=$ac_path_separator
4769 for ac_dir in $ac_dummy; do
4771 test -z "$ac_dir" && ac_dir=.
4772 $as_executable_p "$ac_dir/$ac_word" || continue
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 echo "$as_me:4774: found $ac_dir/$ac_word" >&5
4778 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782 if test -n "$ac_ct_RANLIB"; then
4783 echo "$as_me:4783: result: $ac_ct_RANLIB" >&5
4784 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4786 echo "$as_me:4786: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 RANLIB=$ac_ct_RANLIB
4792 RANLIB="$ac_cv_prog_RANLIB"
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}ld; ac_word=$2
4798 echo "$as_me:4798: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_LD+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 if test -n "$LD"; then
4804 ac_cv_prog_LD="$LD" # Let the user override the test.
4806 ac_save_IFS=$IFS; IFS=$ac_path_separator
4808 for ac_dir in $ac_dummy; do
4810 test -z "$ac_dir" && ac_dir=.
4811 $as_executable_p "$ac_dir/$ac_word" || continue
4812 ac_cv_prog_LD="${ac_tool_prefix}ld"
4813 echo "$as_me:4813: found $ac_dir/$ac_word" >&5
4820 if test -n "$LD"; then
4821 echo "$as_me:4821: result: $LD" >&5
4822 echo "${ECHO_T}$LD" >&6
4824 echo "$as_me:4824: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4829 if test -z "$ac_cv_prog_LD"; then
4831 # Extract the first word of "ld", so it can be a program name with args.
4832 set dummy ld; ac_word=$2
4833 echo "$as_me:4833: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4835 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 if test -n "$ac_ct_LD"; then
4839 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4841 ac_save_IFS=$IFS; IFS=$ac_path_separator
4843 for ac_dir in $ac_dummy; do
4845 test -z "$ac_dir" && ac_dir=.
4846 $as_executable_p "$ac_dir/$ac_word" || continue
4847 ac_cv_prog_ac_ct_LD="ld"
4848 echo "$as_me:4848: found $ac_dir/$ac_word" >&5
4852 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4855 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4856 if test -n "$ac_ct_LD"; then
4857 echo "$as_me:4857: result: $ac_ct_LD" >&5
4858 echo "${ECHO_T}$ac_ct_LD" >&6
4860 echo "$as_me:4860: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}ar; ac_word=$2
4872 echo "$as_me:4872: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_prog_AR+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 if test -n "$AR"; then
4878 ac_cv_prog_AR="$AR" # Let the user override the test.
4880 ac_save_IFS=$IFS; IFS=$ac_path_separator
4882 for ac_dir in $ac_dummy; do
4884 test -z "$ac_dir" && ac_dir=.
4885 $as_executable_p "$ac_dir/$ac_word" || continue
4886 ac_cv_prog_AR="${ac_tool_prefix}ar"
4887 echo "$as_me:4887: found $ac_dir/$ac_word" >&5
4894 if test -n "$AR"; then
4895 echo "$as_me:4895: result: $AR" >&5
4896 echo "${ECHO_T}$AR" >&6
4898 echo "$as_me:4898: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4903 if test -z "$ac_cv_prog_AR"; then
4905 # Extract the first word of "ar", so it can be a program name with args.
4906 set dummy ar; ac_word=$2
4907 echo "$as_me:4907: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$ac_ct_AR"; then
4913 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4915 ac_save_IFS=$IFS; IFS=$ac_path_separator
4917 for ac_dir in $ac_dummy; do
4919 test -z "$ac_dir" && ac_dir=.
4920 $as_executable_p "$ac_dir/$ac_word" || continue
4921 ac_cv_prog_ac_ct_AR="ar"
4922 echo "$as_me:4922: found $ac_dir/$ac_word" >&5
4926 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4930 if test -n "$ac_ct_AR"; then
4931 echo "$as_me:4931: result: $ac_ct_AR" >&5
4932 echo "${ECHO_T}$ac_ct_AR" >&6
4934 echo "$as_me:4934: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4943 if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}nm; ac_word=$2
4946 echo "$as_me:4946: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948 if test "${ac_cv_prog_NM+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 if test -n "$NM"; then
4952 ac_cv_prog_NM="$NM" # Let the user override the test.
4954 ac_save_IFS=$IFS; IFS=$ac_path_separator
4956 for ac_dir in $ac_dummy; do
4958 test -z "$ac_dir" && ac_dir=.
4959 $as_executable_p "$ac_dir/$ac_word" || continue
4960 ac_cv_prog_NM="${ac_tool_prefix}nm"
4961 echo "$as_me:4961: found $ac_dir/$ac_word" >&5
4968 if test -n "$NM"; then
4969 echo "$as_me:4969: result: $NM" >&5
4970 echo "${ECHO_T}$NM" >&6
4972 echo "$as_me:4972: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4977 if test -z "$ac_cv_prog_NM"; then
4979 # Extract the first word of "nm", so it can be a program name with args.
4980 set dummy nm; ac_word=$2
4981 echo "$as_me:4981: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$ac_ct_NM"; then
4987 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4989 ac_save_IFS=$IFS; IFS=$ac_path_separator
4991 for ac_dir in $ac_dummy; do
4993 test -z "$ac_dir" && ac_dir=.
4994 $as_executable_p "$ac_dir/$ac_word" || continue
4995 ac_cv_prog_ac_ct_NM="nm"
4996 echo "$as_me:4996: found $ac_dir/$ac_word" >&5
5000 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5003 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5004 if test -n "$ac_ct_NM"; then
5005 echo "$as_me:5005: result: $ac_ct_NM" >&5
5006 echo "${ECHO_T}$ac_ct_NM" >&6
5008 echo "$as_me:5008: result: no" >&5
5009 echo "${ECHO_T}no" >&6
5017 if test -n "$ac_tool_prefix"; then
5018 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5019 set dummy ${ac_tool_prefix}ar; ac_word=$2
5020 echo "$as_me:5020: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_AR+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 if test -n "$AR"; then
5026 ac_cv_prog_AR="$AR" # Let the user override the test.
5028 ac_save_IFS=$IFS; IFS=$ac_path_separator
5030 for ac_dir in $ac_dummy; do
5032 test -z "$ac_dir" && ac_dir=.
5033 $as_executable_p "$ac_dir/$ac_word" || continue
5034 ac_cv_prog_AR="${ac_tool_prefix}ar"
5035 echo "$as_me:5035: found $ac_dir/$ac_word" >&5
5042 if test -n "$AR"; then
5043 echo "$as_me:5043: result: $AR" >&5
5044 echo "${ECHO_T}$AR" >&6
5046 echo "$as_me:5046: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5051 if test -z "$ac_cv_prog_AR"; then
5053 # Extract the first word of "ar", so it can be a program name with args.
5054 set dummy ar; ac_word=$2
5055 echo "$as_me:5055: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 if test -n "$ac_ct_AR"; then
5061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5063 ac_save_IFS=$IFS; IFS=$ac_path_separator
5065 for ac_dir in $ac_dummy; do
5067 test -z "$ac_dir" && ac_dir=.
5068 $as_executable_p "$ac_dir/$ac_word" || continue
5069 ac_cv_prog_ac_ct_AR="ar"
5070 echo "$as_me:5070: found $ac_dir/$ac_word" >&5
5074 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5078 if test -n "$ac_ct_AR"; then
5079 echo "$as_me:5079: result: $ac_ct_AR" >&5
5080 echo "${ECHO_T}$ac_ct_AR" >&6
5082 echo "$as_me:5082: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5091 echo "$as_me:5091: checking for options to update archives" >&5
5092 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5093 if test "${cf_cv_ar_flags+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 case "$cf_cv_system_name" in
5100 cat >mk_static_lib.sh <<-EOF
5105 exec \$MSVC_BIN -out:"\$out" \$@
5107 chmod +x mk_static_lib.sh
5108 AR=`pwd`/mk_static_lib.sh
5111 cf_cv_ar_flags=unknown
5112 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5115 # check if $ARFLAGS already contains this choice
5116 if test "x$ARFLAGS" != "x" ; then
5117 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5118 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5124 rm -f "conftest.$ac_cv_objext"
5127 cat >"conftest.$ac_ext" <<EOF
5128 #line 5128 "configure"
5129 int testdata[3] = { 123, 456, 789 };
5131 if { (eval echo "$as_me:5131: \"$ac_compile\"") >&5
5132 (eval $ac_compile) 2>&5
5134 echo "$as_me:5134: \$? = $ac_status" >&5
5135 (exit "$ac_status"); } ; then
5136 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5137 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5138 if test -f conftest.a ; then
5139 cf_cv_ar_flags="$cf_ar_flags"
5143 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5145 echo "${as_me:-configure}:5145: testing cannot compile test-program ..." 1>&5
5150 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5155 echo "$as_me:5155: result: $cf_cv_ar_flags" >&5
5156 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5158 if test -n "$ARFLAGS" ; then
5159 if test -n "$cf_cv_ar_flags" ; then
5160 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5163 ARFLAGS=$cf_cv_ar_flags
5166 echo "$as_me:5166: checking if you have specified an install-prefix" >&5
5167 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5169 # Check whether --with-install-prefix or --without-install-prefix was given.
5170 if test "${with_install_prefix+set}" = set; then
5171 withval="$with_install_prefix"
5175 (*) DESTDIR="$withval"
5179 echo "$as_me:5179: result: $DESTDIR" >&5
5180 echo "${ECHO_T}$DESTDIR" >&6
5182 ###############################################################################
5184 # If we're cross-compiling, allow the user to override the tools and their
5185 # options. The configure script is oriented toward identifying the host
5186 # compiler, etc., but we need a build compiler to generate parts of the source.
5188 case "$cf_cv_system_name" in
5190 LDFLAGS="$LDFLAGS user32.lib"
5195 if test "$cross_compiling" = yes ; then
5197 # defaults that we might want to override
5198 : ${BUILD_CFLAGS:=''}
5199 : ${BUILD_CPPFLAGS:=''}
5200 : ${BUILD_LDFLAGS:=''}
5202 : ${BUILD_EXEEXT:='$x'}
5203 : ${BUILD_OBJEXT:='o'}
5205 # Check whether --with-build-cc or --without-build-cc was given.
5206 if test "${with_build_cc+set}" = set; then
5207 withval="$with_build_cc"
5210 for ac_prog in gcc clang c99 c89 cc cl
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 echo "$as_me:5214: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if test -n "$BUILD_CC"; then
5220 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5222 ac_save_IFS=$IFS; IFS=$ac_path_separator
5224 for ac_dir in $ac_dummy; do
5226 test -z "$ac_dir" && ac_dir=.
5227 $as_executable_p "$ac_dir/$ac_word" || continue
5228 ac_cv_prog_BUILD_CC="$ac_prog"
5229 echo "$as_me:5229: found $ac_dir/$ac_word" >&5
5235 BUILD_CC=$ac_cv_prog_BUILD_CC
5236 if test -n "$BUILD_CC"; then
5237 echo "$as_me:5237: result: $BUILD_CC" >&5
5238 echo "${ECHO_T}$BUILD_CC" >&6
5240 echo "$as_me:5240: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5244 test -n "$BUILD_CC" && break
5246 test -n "$BUILD_CC" || BUILD_CC="none"
5249 echo "$as_me:5249: checking for native build C compiler" >&5
5250 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5251 echo "$as_me:5251: result: $BUILD_CC" >&5
5252 echo "${ECHO_T}$BUILD_CC" >&6
5254 echo "$as_me:5254: checking for native build C preprocessor" >&5
5255 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5257 # Check whether --with-build-cpp or --without-build-cpp was given.
5258 if test "${with_build_cpp+set}" = set; then
5259 withval="$with_build_cpp"
5260 BUILD_CPP="$withval"
5262 BUILD_CPP='${BUILD_CC} -E'
5264 echo "$as_me:5264: result: $BUILD_CPP" >&5
5265 echo "${ECHO_T}$BUILD_CPP" >&6
5267 echo "$as_me:5267: checking for native build C flags" >&5
5268 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5270 # Check whether --with-build-cflags or --without-build-cflags was given.
5271 if test "${with_build_cflags+set}" = set; then
5272 withval="$with_build_cflags"
5273 BUILD_CFLAGS="$withval"
5275 echo "$as_me:5275: result: $BUILD_CFLAGS" >&5
5276 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5278 echo "$as_me:5278: checking for native build C preprocessor-flags" >&5
5279 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5281 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5282 if test "${with_build_cppflags+set}" = set; then
5283 withval="$with_build_cppflags"
5284 BUILD_CPPFLAGS="$withval"
5286 echo "$as_me:5286: result: $BUILD_CPPFLAGS" >&5
5287 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5289 echo "$as_me:5289: checking for native build linker-flags" >&5
5290 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5292 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5293 if test "${with_build_ldflags+set}" = set; then
5294 withval="$with_build_ldflags"
5295 BUILD_LDFLAGS="$withval"
5297 echo "$as_me:5297: result: $BUILD_LDFLAGS" >&5
5298 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5300 echo "$as_me:5300: checking for native build linker-libraries" >&5
5301 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5303 # Check whether --with-build-libs or --without-build-libs was given.
5304 if test "${with_build_libs+set}" = set; then
5305 withval="$with_build_libs"
5306 BUILD_LIBS="$withval"
5308 echo "$as_me:5308: result: $BUILD_LIBS" >&5
5309 echo "${ECHO_T}$BUILD_LIBS" >&6
5311 # this assumes we're on Unix.
5315 : ${BUILD_CC:='${CC}'}
5317 echo "$as_me:5317: checking if the build-compiler \"$BUILD_CC\" works" >&5
5318 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5320 cf_save_crossed=$cross_compiling
5321 cf_save_ac_link=$ac_link
5323 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5325 if test "$cross_compiling" = yes; then
5326 cf_ok_build_cc=unknown
5328 cat >"conftest.$ac_ext" <<_ACEOF
5329 #line 5329 "configure"
5330 #include "confdefs.h"
5332 int main(int argc, char *argv[])
5334 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5338 rm -f "conftest$ac_exeext"
5339 if { (eval echo "$as_me:5339: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>&5
5342 echo "$as_me:5342: \$? = $ac_status" >&5
5343 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5344 { (eval echo "$as_me:5344: \"$ac_try\"") >&5
5347 echo "$as_me:5347: \$? = $ac_status" >&5
5348 (exit "$ac_status"); }; }; then
5351 echo "$as_me: program exited with status $ac_status" >&5
5352 echo "$as_me: failed program was:" >&5
5353 cat "conftest.$ac_ext" >&5
5356 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5359 cross_compiling=$cf_save_crossed
5360 ac_link=$cf_save_ac_link
5362 echo "$as_me:5362: result: $cf_ok_build_cc" >&5
5363 echo "${ECHO_T}$cf_ok_build_cc" >&6
5365 if test "$cf_ok_build_cc" != yes
5367 { { echo "$as_me:5367: error: Cross-build requires two compilers.
5368 Use --with-build-cc to specify the native compiler." >&5
5369 echo "$as_me: error: Cross-build requires two compilers.
5370 Use --with-build-cc to specify the native compiler." >&2;}
5371 { (exit 1); exit 1; }; }
5375 : ${BUILD_CC:='${CC}'}
5376 : ${BUILD_CPP:='${CPP}'}
5377 : ${BUILD_CFLAGS:='${CFLAGS}'}
5378 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5379 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5380 : ${BUILD_LIBS:='${LIBS}'}
5381 : ${BUILD_EXEEXT:='$x'}
5382 : ${BUILD_OBJEXT:='o'}
5385 ###############################################################################
5387 ### Options to allow the user to specify the set of libraries which are used.
5388 ### Use "--without-normal --with-shared" to allow the default model to be
5389 ### shared, for example.
5392 echo "$as_me:5392: checking if libtool -version-number should be used" >&5
5393 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5395 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5396 if test "${enable_libtool_version+set}" = set; then
5397 enableval="$enable_libtool_version"
5398 test "$enableval" != no && enableval=yes
5399 if test "$enableval" != "yes" ; then
5400 cf_libtool_version=no
5402 cf_libtool_version=yes
5406 cf_libtool_version=yes
5409 echo "$as_me:5409: result: $cf_libtool_version" >&5
5410 echo "${ECHO_T}$cf_libtool_version" >&6
5412 if test "$cf_libtool_version" = yes ; then
5413 LIBTOOL_VERSION="-version-number"
5415 LIBTOOL_VERSION="-version-info"
5418 { echo "$as_me:5418: WARNING: VERSION was not set" >&5
5419 echo "$as_me: WARNING: VERSION was not set" >&2;}
5422 ABI_VERSION="$VERSION"
5423 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5425 echo "${as_me:-configure}:5425: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5429 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5430 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5432 echo "${as_me:-configure}:5432: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5436 { echo "$as_me:5436: WARNING: unexpected VERSION value: $VERSION" >&5
5437 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5444 # common library maintenance symbols that are convenient for libtool scripts:
5445 LIB_CREATE='${AR} -cr'
5446 LIB_OBJECT='${OBJECTS}'
5450 # symbols used to prop libtool up to enable it to determine what it should be
5458 echo "$as_me:5458: checking if you want to build libraries with libtool" >&5
5459 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5461 # Check whether --with-libtool or --without-libtool was given.
5462 if test "${with_libtool+set}" = set; then
5463 withval="$with_libtool"
5464 with_libtool=$withval
5468 echo "$as_me:5468: result: $with_libtool" >&5
5469 echo "${ECHO_T}$with_libtool" >&6
5470 if test "$with_libtool" != "no"; then
5472 if test "$with_libtool" != "yes" ; then
5474 if test "x$prefix" != xNONE; then
5475 cf_path_syntax="$prefix"
5477 cf_path_syntax="$ac_default_prefix"
5480 case ".$with_libtool" in
5485 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5487 (.\$\{*prefix\}*|.\$\{*dir\}*)
5488 eval with_libtool="$with_libtool"
5489 case ".$with_libtool" in
5491 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5496 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5499 { { echo "$as_me:5499: error: expected a pathname, not \"$with_libtool\"" >&5
5500 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5501 { (exit 1); exit 1; }; }
5505 LIBTOOL=$with_libtool
5507 if test -n "$ac_tool_prefix"; then
5508 for ac_prog in libtool glibtool
5510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5512 echo "$as_me:5512: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 if test -n "$LIBTOOL"; then
5518 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5520 ac_save_IFS=$IFS; IFS=$ac_path_separator
5522 for ac_dir in $ac_dummy; do
5524 test -z "$ac_dir" && ac_dir=.
5525 $as_executable_p "$ac_dir/$ac_word" || continue
5526 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5527 echo "$as_me:5527: found $ac_dir/$ac_word" >&5
5533 LIBTOOL=$ac_cv_prog_LIBTOOL
5534 if test -n "$LIBTOOL"; then
5535 echo "$as_me:5535: result: $LIBTOOL" >&5
5536 echo "${ECHO_T}$LIBTOOL" >&6
5538 echo "$as_me:5538: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5542 test -n "$LIBTOOL" && break
5545 if test -z "$LIBTOOL"; then
5546 ac_ct_LIBTOOL=$LIBTOOL
5547 for ac_prog in libtool glibtool
5549 # Extract the first word of "$ac_prog", so it can be a program name with args.
5550 set dummy $ac_prog; ac_word=$2
5551 echo "$as_me:5551: checking for $ac_word" >&5
5552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5553 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 if test -n "$ac_ct_LIBTOOL"; then
5557 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5559 ac_save_IFS=$IFS; IFS=$ac_path_separator
5561 for ac_dir in $ac_dummy; do
5563 test -z "$ac_dir" && ac_dir=.
5564 $as_executable_p "$ac_dir/$ac_word" || continue
5565 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5566 echo "$as_me:5566: found $ac_dir/$ac_word" >&5
5572 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5573 if test -n "$ac_ct_LIBTOOL"; then
5574 echo "$as_me:5574: result: $ac_ct_LIBTOOL" >&5
5575 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5577 echo "$as_me:5577: result: no" >&5
5578 echo "${ECHO_T}no" >&6
5581 test -n "$ac_ct_LIBTOOL" && break
5583 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5585 LIBTOOL=$ac_ct_LIBTOOL
5588 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5590 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.].*//'`
5592 cf_cv_libtool_version=
5594 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5596 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5599 unset ac_cv_prog_ac_ct_LIBTOOL
5603 if test -n "$ac_tool_prefix"; then
5604 for ac_prog in glibtool
5606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5608 echo "$as_me:5608: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 if test -n "$LIBTOOL"; then
5614 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5616 ac_save_IFS=$IFS; IFS=$ac_path_separator
5618 for ac_dir in $ac_dummy; do
5620 test -z "$ac_dir" && ac_dir=.
5621 $as_executable_p "$ac_dir/$ac_word" || continue
5622 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5623 echo "$as_me:5623: found $ac_dir/$ac_word" >&5
5629 LIBTOOL=$ac_cv_prog_LIBTOOL
5630 if test -n "$LIBTOOL"; then
5631 echo "$as_me:5631: result: $LIBTOOL" >&5
5632 echo "${ECHO_T}$LIBTOOL" >&6
5634 echo "$as_me:5634: result: no" >&5
5635 echo "${ECHO_T}no" >&6
5638 test -n "$LIBTOOL" && break
5641 if test -z "$LIBTOOL"; then
5642 ac_ct_LIBTOOL=$LIBTOOL
5643 for ac_prog in glibtool
5645 # Extract the first word of "$ac_prog", so it can be a program name with args.
5646 set dummy $ac_prog; ac_word=$2
5647 echo "$as_me:5647: checking for $ac_word" >&5
5648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 if test -n "$ac_ct_LIBTOOL"; then
5653 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5655 ac_save_IFS=$IFS; IFS=$ac_path_separator
5657 for ac_dir in $ac_dummy; do
5659 test -z "$ac_dir" && ac_dir=.
5660 $as_executable_p "$ac_dir/$ac_word" || continue
5661 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5662 echo "$as_me:5662: found $ac_dir/$ac_word" >&5
5668 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5669 if test -n "$ac_ct_LIBTOOL"; then
5670 echo "$as_me:5670: result: $ac_ct_LIBTOOL" >&5
5671 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5673 echo "$as_me:5673: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5677 test -n "$ac_ct_LIBTOOL" && break
5679 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5681 LIBTOOL=$ac_ct_LIBTOOL
5684 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5686 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.].*//'`
5688 cf_cv_libtool_version=
5690 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5694 if test -z "$LIBTOOL" ; then
5695 { { echo "$as_me:5695: error: Cannot find libtool" >&5
5696 echo "$as_me: error: Cannot find libtool" >&2;}
5697 { (exit 1); exit 1; }; }
5699 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5700 LIB_OBJECT='${OBJECTS:.o=.lo}'
5702 LIB_CLEAN='${LIBTOOL} --mode=clean'
5703 LIB_COMPILE='${LIBTOOL} --mode=compile'
5704 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5705 LIB_INSTALL='${LIBTOOL} --mode=install'
5706 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5709 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5711 echo "$as_me:5711: checking version of $LIBTOOL" >&5
5712 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5714 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5716 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.].*//'`
5718 cf_cv_libtool_version=
5720 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5722 echo "$as_me:5722: result: $cf_cv_libtool_version" >&5
5723 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5724 if test -n "$cf_cv_libtool_version"
5726 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5727 case "x$cf_check_libtool_version" in
5728 (*...GNU-libtool...*)
5731 { { echo "$as_me:5731: error: This is not GNU libtool" >&5
5732 echo "$as_me: error: This is not GNU libtool" >&2;}
5733 { (exit 1); exit 1; }; }
5737 { { echo "$as_me:5737: error: No version found for $LIBTOOL" >&5
5738 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5739 { (exit 1); exit 1; }; }
5742 { { echo "$as_me:5742: error: GNU libtool has not been found" >&5
5743 echo "$as_me: error: GNU libtool has not been found" >&2;}
5744 { (exit 1); exit 1; }; }
5747 # special hack to add -no-undefined (which libtool should do for itself)
5749 case "$cf_cv_system_name" in
5750 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5751 LT_UNDEF=-no-undefined
5755 # special hack to add --tag option for C++ compiler
5756 case "$cf_cv_libtool_version" in
5757 (1.[5-9]*|[2-9].[0-9.a-z]*)
5758 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5759 LIBTOOL="$LIBTOOL --tag=CC"
5762 LIBTOOL_CXX="$LIBTOOL"
5770 test -z "$LIBTOOL" && ECHO_LT=
5772 if test "$with_libtool" != "no" ; then
5774 cf_list_models="$cf_list_models libtool"
5778 echo "$as_me:5778: checking if you want to build shared libraries" >&5
5779 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5781 # Check whether --with-shared or --without-shared was given.
5782 if test "${with_shared+set}" = set; then
5783 withval="$with_shared"
5784 with_shared=$withval
5788 echo "$as_me:5788: result: $with_shared" >&5
5789 echo "${ECHO_T}$with_shared" >&6
5790 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5792 echo "$as_me:5792: checking if you want to build static libraries" >&5
5793 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5795 # Check whether --with-normal or --without-normal was given.
5796 if test "${with_normal+set}" = set; then
5797 withval="$with_normal"
5798 with_normal=$withval
5802 echo "$as_me:5802: result: $with_normal" >&5
5803 echo "${ECHO_T}$with_normal" >&6
5804 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5806 echo "$as_me:5806: checking if you want to build debug libraries" >&5
5807 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5809 # Check whether --with-debug or --without-debug was given.
5810 if test "${with_debug+set}" = set; then
5811 withval="$with_debug"
5816 echo "$as_me:5816: result: $with_debug" >&5
5817 echo "${ECHO_T}$with_debug" >&6
5818 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5820 echo "$as_me:5820: checking if you want to build profiling libraries" >&5
5821 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5823 # Check whether --with-profile or --without-profile was given.
5824 if test "${with_profile+set}" = set; then
5825 withval="$with_profile"
5826 with_profile=$withval
5830 echo "$as_me:5830: result: $with_profile" >&5
5831 echo "${ECHO_T}$with_profile" >&6
5832 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5836 if test "X$cf_with_cxx_binding" != Xno; then
5837 if test "x$with_shared" = "xyes"; then
5838 echo "$as_me:5838: checking if you want to build C++ shared libraries" >&5
5839 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5841 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5842 if test "${with_cxx_shared+set}" = set; then
5843 withval="$with_cxx_shared"
5844 with_shared_cxx=$withval
5848 echo "$as_me:5848: result: $with_shared_cxx" >&5
5849 echo "${ECHO_T}$with_shared_cxx" >&6
5853 ###############################################################################
5855 echo "$as_me:5855: checking for specified models" >&5
5856 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5857 test -z "$cf_list_models" && cf_list_models=normal
5858 test "$with_libtool" != "no" && cf_list_models=libtool
5859 echo "$as_me:5859: result: $cf_list_models" >&5
5860 echo "${ECHO_T}$cf_list_models" >&6
5862 ### Use the first model as the default, and save its suffix for use in building
5863 ### up test-applications.
5864 echo "$as_me:5864: checking for default model" >&5
5865 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5866 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5867 echo "$as_me:5867: result: $DFT_LWR_MODEL" >&5
5868 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5870 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5881 echo "$as_me:5881: checking if you want to have a library-prefix" >&5
5882 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5884 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5885 if test "${with_lib_prefix+set}" = set; then
5886 withval="$with_lib_prefix"
5887 with_lib_prefix=$withval
5889 with_lib_prefix=auto
5891 echo "$as_me:5891: result: $with_lib_prefix" >&5
5892 echo "${ECHO_T}$with_lib_prefix" >&6
5894 if test "$with_lib_prefix" = auto
5897 case "$cf_cv_system_name" in
5899 if test "$DFT_LWR_MODEL" = libtool; then
5908 (*) LIB_PREFIX='lib'
5911 cf_prefix=$LIB_PREFIX
5913 elif test "$with_lib_prefix" = no
5917 LIB_PREFIX=$with_lib_prefix
5922 echo "$as_me:5922: checking for PATH separator" >&5
5923 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5924 case "$cf_cv_system_name" in
5925 (os2*) PATH_SEPARATOR=';' ;;
5926 (*) ${PATH_SEPARATOR:=':'} ;;
5929 echo "$as_me:5929: result: $PATH_SEPARATOR" >&5
5930 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5932 ###############################################################################
5934 echo "$as_me:5934: checking if you want to build a separate terminfo library" >&5
5935 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5937 # Check whether --with-termlib or --without-termlib was given.
5938 if test "${with_termlib+set}" = set; then
5939 withval="$with_termlib"
5940 with_termlib=$withval
5944 echo "$as_me:5944: result: $with_termlib" >&5
5945 echo "${ECHO_T}$with_termlib" >&6
5947 echo "$as_me:5947: checking if you want to build a separate tic library" >&5
5948 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5950 # Check whether --with-ticlib or --without-ticlib was given.
5951 if test "${with_ticlib+set}" = set; then
5952 withval="$with_ticlib"
5953 with_ticlib=$withval
5957 echo "$as_me:5957: result: $with_ticlib" >&5
5958 echo "${ECHO_T}$with_ticlib" >&6
5960 if test X"$CC_G_OPT" = X"" ; then
5962 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5965 if test X"$CXX_G_OPT" = X"" ; then
5967 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5970 echo "$as_me:5970: checking for default loader flags" >&5
5971 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5972 case "$DFT_LWR_MODEL" in
5973 (libtool) LD_MODEL='' ;;
5974 (normal) LD_MODEL='' ;;
5975 (debug) LD_MODEL=$CC_G_OPT ;;
5976 (profile) LD_MODEL='-pg';;
5977 (shared) LD_MODEL='' ;;
5979 echo "$as_me:5979: result: $LD_MODEL" >&5
5980 echo "${ECHO_T}$LD_MODEL" >&6
5982 case "$DFT_LWR_MODEL" in
5985 echo "$as_me:5985: checking if rpath option should be used" >&5
5986 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5988 # Check whether --enable-rpath or --disable-rpath was given.
5989 if test "${enable_rpath+set}" = set; then
5990 enableval="$enable_rpath"
5991 cf_cv_enable_rpath=$enableval
5993 cf_cv_enable_rpath=no
5995 echo "$as_me:5995: result: $cf_cv_enable_rpath" >&5
5996 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5998 echo "$as_me:5998: checking if shared libraries should be relinked during install" >&5
5999 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6001 # Check whether --enable-relink or --disable-relink was given.
6002 if test "${enable_relink+set}" = set; then
6003 enableval="$enable_relink"
6004 cf_cv_do_relink=$enableval
6008 echo "$as_me:6008: result: $cf_cv_do_relink" >&5
6009 echo "${ECHO_T}$cf_cv_do_relink" >&6
6013 # we will build libraries one-level down.
6017 if test "x$cf_cv_enable_rpath" != xno
6019 echo "$as_me:6019: checking for an rpath option" >&5
6020 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6021 case "$cf_cv_system_name" in
6023 if test "$GCC" = yes; then
6024 LD_RPATH_OPT="-Wl,-rpath,"
6026 LD_RPATH_OPT="-rpath "
6029 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6030 LD_RPATH_OPT="-Wl,-rpath,"
6032 (openbsd[2-9].*|mirbsd*)
6033 LD_RPATH_OPT="-Wl,-rpath,"
6036 LD_RPATH_OPT="-rpath "
6039 LD_RPATH_OPT="-Wl,-rpath,"
6042 LD_RPATH_OPT="-rpath "
6050 echo "$as_me:6050: result: $LD_RPATH_OPT" >&5
6051 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6053 case "x$LD_RPATH_OPT" in
6055 echo "$as_me:6055: checking if we need a space after rpath option" >&5
6056 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6057 cf_save_LIBS="$LIBS"
6062 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6064 for cf_add_1lib in $cf_add_0lib; do
6065 for cf_add_2lib in $cf_add_libs; do
6066 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6071 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6075 cat >"conftest.$ac_ext" <<_ACEOF
6076 #line 6076 "configure"
6077 #include "confdefs.h"
6087 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6088 if { (eval echo "$as_me:6088: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>&5
6091 echo "$as_me:6091: \$? = $ac_status" >&5
6092 (exit "$ac_status"); } &&
6093 { ac_try='test -s "conftest$ac_exeext"'
6094 { (eval echo "$as_me:6094: \"$ac_try\"") >&5
6097 echo "$as_me:6097: \$? = $ac_status" >&5
6098 (exit "$ac_status"); }; }; then
6101 echo "$as_me: failed program was:" >&5
6102 cat "conftest.$ac_ext" >&5
6105 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6106 LIBS="$cf_save_LIBS"
6107 echo "$as_me:6107: result: $cf_rpath_space" >&5
6108 echo "${ECHO_T}$cf_rpath_space" >&6
6109 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6118 INSTALL_LIB="-m 644"
6119 : ${rel_builddir:=.}
6125 cf_cv_do_symlinks=no
6127 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6129 echo "$as_me:6129: checking if release/abi version should be used for shared libs" >&5
6130 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6132 # Check whether --with-shlib-version or --without-shlib-version was given.
6133 if test "${with_shlib_version+set}" = set; then
6134 withval="$with_shlib_version"
6135 test -z "$withval" && withval=auto
6138 cf_cv_shlib_version=auto
6141 cf_cv_shlib_version=$withval
6144 echo "$as_me:6144: result: $withval" >&5
6145 echo "${ECHO_T}$withval" >&6
6146 { { echo "$as_me:6146: error: option value must be one of: rel, abi, or auto" >&5
6147 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6148 { (exit 1); exit 1; }; }
6153 cf_cv_shlib_version=auto
6155 echo "$as_me:6155: result: $cf_cv_shlib_version" >&5
6156 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6161 # Some less-capable ports of gcc support only -fpic
6165 if test "$GCC" = yes
6169 case "$cf_cv_system_name" in
6170 (*linux*) # e.g., PGI compiler
6176 if test "$cf_try_fPIC" = yes
6178 echo "$as_me:6178: checking which $CC option to use" >&5
6179 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6180 cf_save_CFLAGS="$CFLAGS"
6181 for CC_SHARED_OPTS in -fPIC -fpic ''
6183 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6184 cat >"conftest.$ac_ext" <<_ACEOF
6185 #line 6185 "configure"
6186 #include "confdefs.h"
6196 rm -f "conftest.$ac_objext"
6197 if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 (exit "$ac_status"); } &&
6202 { ac_try='test -s "conftest.$ac_objext"'
6203 { (eval echo "$as_me:6203: \"$ac_try\"") >&5
6206 echo "$as_me:6206: \$? = $ac_status" >&5
6207 (exit "$ac_status"); }; }; then
6210 echo "$as_me: failed program was:" >&5
6211 cat "conftest.$ac_ext" >&5
6213 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6215 echo "$as_me:6215: result: $CC_SHARED_OPTS" >&5
6216 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6217 CFLAGS="$cf_save_CFLAGS"
6220 cf_cv_shlib_version_infix=no
6222 case "$cf_cv_system_name" in
6223 (aix4.3-9*|aix[5-7]*)
6224 if test "$GCC" = yes; then
6225 CC_SHARED_OPTS='-Wl,-brtl'
6226 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6228 CC_SHARED_OPTS='-brtl'
6229 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6230 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6234 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6238 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6239 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6240 cf_cv_shlib_version=cygdll
6241 cf_cv_shlib_version_infix=cygdll
6244 cat >mk_shared_lib.sh <<-CF_EOF
6247 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6250 Linking shared library
6251 ** SHARED_LIB \$SHARED_LIB
6252 ** IMPORT_LIB \$IMPORT_LIB
6254 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6256 chmod +x mk_shared_lib.sh
6260 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6261 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6262 cf_cv_shlib_version=msysdll
6263 cf_cv_shlib_version_infix=msysdll
6266 cat >mk_shared_lib.sh <<-CF_EOF
6269 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6272 Linking shared library
6273 ** SHARED_LIB \$SHARED_LIB
6274 ** IMPORT_LIB \$IMPORT_LIB
6276 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6278 chmod +x mk_shared_lib.sh
6281 cf_try_cflags="no-cpp-precomp"
6282 CC_SHARED_OPTS="-dynamic"
6283 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6284 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6285 cf_cv_shlib_version_infix=yes
6286 echo "$as_me:6286: checking if ld -search_paths_first works" >&5
6287 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6288 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cf_save_LDFLAGS=$LDFLAGS
6293 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6294 cat >"conftest.$ac_ext" <<_ACEOF
6295 #line 6295 "configure"
6296 #include "confdefs.h"
6306 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6307 if { (eval echo "$as_me:6307: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 (exit "$ac_status"); } &&
6312 { ac_try='test -s "conftest$ac_exeext"'
6313 { (eval echo "$as_me:6313: \"$ac_try\"") >&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 (exit "$ac_status"); }; }; then
6318 cf_cv_ldflags_search_paths_first=yes
6320 echo "$as_me: failed program was:" >&5
6321 cat "conftest.$ac_ext" >&5
6322 cf_cv_ldflags_search_paths_first=no
6324 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6325 LDFLAGS=$cf_save_LDFLAGS
6327 echo "$as_me:6327: result: $cf_cv_ldflags_search_paths_first" >&5
6328 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6329 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6330 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6335 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6336 if test "$cf_cv_shlib_version" = rel; then
6337 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6339 cf_cv_shared_soname='`basename $@`'
6342 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6345 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6346 if test "$GCC" != yes; then
6349 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6350 INSTALL_LIB="-m 555"
6353 # (tested with gcc 2.7.2 -- I don't have c89)
6354 if test "$GCC" = yes; then
6355 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6358 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6360 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6361 # HP-UX shared libraries must be executable, and should be
6362 # readonly to exploit a quirk in the memory manager.
6363 INSTALL_LIB="-m 555"
6366 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6367 if test "$cf_cv_shlib_version" = rel; then
6368 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6370 cf_shared_soname='`basename $@`'
6373 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6376 if test "$cf_cv_enable_rpath" = yes ; then
6377 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6379 # tested with IRIX 5.2 and 'cc'.
6380 if test "$GCC" != yes; then
6381 CC_SHARED_OPTS='-KPIC'
6382 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6384 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6386 cf_cv_rm_so_locs=yes
6388 (linux*|gnu*|k*bsd*-gnu)
6389 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6390 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6391 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6393 if test "$cf_cv_enable_rpath" = yes ; then
6394 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6397 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6398 if test "$cf_cv_shlib_version" = rel; then
6399 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6401 cf_cv_shared_soname='`basename $@`'
6404 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6407 cf_cv_shlib_version=msvcdll
6408 cf_cv_shlib_version_infix=msvcdll
6411 if test "$DFT_LWR_MODEL" = "shared" ; then
6412 LOCAL_LDFLAGS="-link -dll"
6413 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6414 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6417 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6418 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6419 cat >mk_shared_lib.sh <<-CF_EOF
6422 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6427 Linking shared library
6428 ** SHARED LIB \$SHARED_LIB
6429 ** IMPORT_LIB \$IMPORT_LIB
6431 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6432 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6433 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6435 chmod +x mk_shared_lib.sh
6436 cat >mk_prog.sh <<-CF_EOF
6439 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6442 ldopts=("/subsystem:console")
6445 while test \$# -gt 0; do
6448 # ignore -link argument
6451 # ignore runtime-library option
6466 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6469 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6475 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6476 ldopts+=("\${linkarg}")
6484 ldopts+=("-out:\$1")
6493 if [ "\$isdll" -ne 0 ]; then
6494 for lib in \${libs[*]}; do
6495 ldopts+=("\$lib.dll.lib")
6498 for lib in \${libs[*]}; do
6499 ldopts+=("\$lib.lib")
6504 ** ld options: "\${ldopts[@]}"
6506 exec \$LD \${ldopts[@]}
6509 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6510 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6513 cf_cv_shlib_version=mingw
6514 cf_cv_shlib_version_infix=mingw
6517 if test "$DFT_LWR_MODEL" = "shared" ; then
6518 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6519 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6520 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6523 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6524 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6525 cat >mk_shared_lib.sh <<-CF_EOF
6528 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6531 Linking shared library
6532 ** SHARED_LIB \$SHARED_LIB
6533 ** IMPORT_LIB \$IMPORT_LIB
6535 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6537 chmod +x mk_shared_lib.sh
6539 (openbsd[2-9].*|mirbsd*)
6540 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6541 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6542 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6544 if test "$cf_cv_enable_rpath" = yes ; then
6545 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6547 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6549 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6550 if test "$cf_cv_shlib_version" = rel; then
6551 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6553 cf_cv_shared_soname='`basename $@`'
6556 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6560 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6564 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6566 (nto-qnx*|openbsd*|freebsd[12].*)
6567 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6568 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6569 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6571 (dragonfly*|freebsd*)
6572 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6573 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6574 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6575 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6576 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6579 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6580 if test "$cf_cv_shlib_version" = rel; then
6581 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6583 cf_cv_shared_soname='`basename $@`'
6586 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6589 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6590 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6591 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6592 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6593 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6594 if test "$cf_cv_shlib_version" = auto; then
6595 if test -f /usr/libexec/ld.elf_so; then
6596 cf_cv_shlib_version=abi
6598 cf_cv_shlib_version=rel
6602 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6603 if test "$cf_cv_shlib_version" = rel; then
6604 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6606 cf_cv_shared_soname='`basename $@`'
6609 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6611 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6615 # tested with OSF/1 V3.2 and 'cc'
6616 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6617 # link with shared libs).
6618 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6621 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6624 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6625 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6626 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6627 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6629 cf_cv_rm_so_locs=yes
6631 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6632 # tested with osr5.0.5
6633 if test "$GCC" != yes; then
6634 CC_SHARED_OPTS='-belf -KPIC'
6636 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6637 if test "$cf_cv_enable_rpath" = yes ; then
6638 # only way is to set LD_RUN_PATH but no switch for it
6641 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6642 LINK_PROGS='LD_RUN_PATH=${libdir}'
6643 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6646 # tested with SunOS 4.1.1 and gcc 2.7.0
6647 if test "$GCC" != yes; then
6648 CC_SHARED_OPTS='-KPIC'
6650 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6651 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6654 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6655 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6656 if test "$DFT_LWR_MODEL" = "shared" ; then
6657 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6658 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6660 if test "$cf_cv_enable_rpath" = yes ; then
6661 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6664 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6665 if test "$cf_cv_shlib_version" = rel; then
6666 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6668 cf_cv_shared_soname='`basename $@`'
6671 if test "$GCC" != yes; then
6672 cf_save_CFLAGS="$CFLAGS"
6673 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6675 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6676 cat >"conftest.$ac_ext" <<_ACEOF
6677 #line 6677 "configure"
6678 #include "confdefs.h"
6688 rm -f "conftest.$ac_objext"
6689 if { (eval echo "$as_me:6689: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>&5
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit "$ac_status"); } &&
6694 { ac_try='test -s "conftest.$ac_objext"'
6695 { (eval echo "$as_me:6695: \"$ac_try\"") >&5
6698 echo "$as_me:6698: \$? = $ac_status" >&5
6699 (exit "$ac_status"); }; }; then
6702 echo "$as_me: failed program was:" >&5
6703 cat "conftest.$ac_ext" >&5
6705 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6707 CFLAGS="$cf_save_CFLAGS"
6708 CC_SHARED_OPTS=$cf_shared_opts
6709 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6711 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6714 (sysv5uw7*|unix_sv*)
6715 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6716 if test "$GCC" != yes; then
6717 CC_SHARED_OPTS='-KPIC'
6719 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6722 CC_SHARED_OPTS='unknown'
6723 MK_SHARED_LIB='echo unknown'
6727 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6728 case "$cf_cv_shlib_version" in
6730 case "$MK_SHARED_LIB" in
6732 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6735 { echo "$as_me:6735: WARNING: ignored --with-shlib-version" >&5
6736 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6742 if test -n "$cf_try_cflags"
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6745 "${as_me:-configure}"
6747 int main(int argc, char *argv[])
6750 return (argv[argc-1] == 0) ;
6753 cf_save_CFLAGS="$CFLAGS"
6754 for cf_opt in $cf_try_cflags
6756 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6757 echo "$as_me:6757: checking if CFLAGS option -$cf_opt works" >&5
6758 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6759 if { (eval echo "$as_me:6759: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit "$ac_status"); }; then
6764 echo "$as_me:6764: result: yes" >&5
6765 echo "${ECHO_T}yes" >&6
6766 cf_save_CFLAGS="$CFLAGS"
6768 echo "$as_me:6768: result: no" >&5
6769 echo "${ECHO_T}no" >&6
6772 CFLAGS="$cf_save_CFLAGS"
6775 # RPATH_LIST is a colon-separated list of directories
6776 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6777 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6779 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6781 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6783 echo "${as_me:-configure}:6783: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6785 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6787 echo "${as_me:-configure}:6787: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6789 for model in $cf_list_models ; do
6793 echo "$as_me:6793: checking for additional libtool options" >&5
6794 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6796 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6797 if test "${with_libtool_opts+set}" = set; then
6798 withval="$with_libtool_opts"
6799 with_libtool_opts=$withval
6801 with_libtool_opts=no
6803 echo "$as_me:6803: result: $with_libtool_opts" >&5
6804 echo "${ECHO_T}$with_libtool_opts" >&6
6806 case .$with_libtool_opts in
6810 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6814 echo "$as_me:6814: checking if exported-symbols file should be used" >&5
6815 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6817 # Check whether --with-export-syms or --without-export-syms was given.
6818 if test "${with_export_syms+set}" = set; then
6819 withval="$with_export_syms"
6820 with_export_syms=$withval
6824 if test "x$with_export_syms" = xyes
6826 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6829 echo "$as_me:6829: result: $with_export_syms" >&5
6830 echo "${ECHO_T}$with_export_syms" >&6
6831 if test "x$with_export_syms" != xno
6833 EXPORT_SYMS="-export-symbols $with_export_syms"
6839 if test "$CC_SHARED_OPTS" = "unknown"; then
6840 { { echo "$as_me:6840: error: Shared libraries are not supported in this version" >&5
6841 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6842 { (exit 1); exit 1; }; }
6844 # workaround for inept transition to PIE vs PIC...
6845 echo "$as_me:6845: checking if current CFLAGS link properly" >&5
6846 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6847 cat >"conftest.$ac_ext" <<_ACEOF
6848 #line 6848 "configure"
6849 #include "confdefs.h"
6854 printf("Hello work\\n");
6859 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6860 if { (eval echo "$as_me:6860: \"$ac_link\"") >&5
6861 (eval $ac_link) 2>&5
6863 echo "$as_me:6863: \$? = $ac_status" >&5
6864 (exit "$ac_status"); } &&
6865 { ac_try='test -s "conftest$ac_exeext"'
6866 { (eval echo "$as_me:6866: \"$ac_try\"") >&5
6869 echo "$as_me:6869: \$? = $ac_status" >&5
6870 (exit "$ac_status"); }; }; then
6873 echo "$as_me: failed program was:" >&5
6874 cat "conftest.$ac_ext" >&5
6877 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6878 echo "$as_me:6878: result: $cf_cflags_work" >&5
6879 echo "${ECHO_T}$cf_cflags_work" >&6
6880 if test "$cf_cflags_work" = no
6882 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6884 echo "${as_me:-configure}:6884: testing try to work around by appending shared-options ..." 1>&5
6886 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6889 echo "$as_me:6889: checking if versioned-symbols file should be used" >&5
6890 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6892 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6893 if test "${with_versioned_syms+set}" = set; then
6894 withval="$with_versioned_syms"
6895 with_versioned_syms=$withval
6897 with_versioned_syms=no
6899 case "x$with_versioned_syms" in
6901 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6907 test -f "$with_versioned_syms" || { { echo "$as_me:6907: error: expected a filename: $with_versioned_syms" >&5
6908 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6909 { (exit 1); exit 1; }; }
6912 test -f "$with_versioned_syms" || { { echo "$as_me:6912: error: expected a filename: $with_versioned_syms" >&5
6913 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6914 { (exit 1); exit 1; }; }
6915 with_versioned_syms=`pwd`/"$with_versioned_syms"
6918 echo "$as_me:6918: result: $with_versioned_syms" >&5
6919 echo "${ECHO_T}$with_versioned_syms" >&6
6925 if test "x$with_versioned_syms" != xno
6927 RESULTING_SYMS=$with_versioned_syms
6928 case "x$MK_SHARED_LIB" in
6930 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6931 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6932 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6934 echo "${as_me:-configure}:6934: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6938 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6939 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6940 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6942 echo "${as_me:-configure}:6942: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6946 { echo "$as_me:6946: WARNING: this system does not support versioned-symbols" >&5
6947 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6951 # Linux ld can selectively override scope, e.g., of symbols beginning with
6952 # "_" by first declaring some as global, and then using a wildcard to
6953 # declare the others as local. Some other loaders cannot do this. Check
6954 # by constructing a (very) simple shared library and inspecting its
6956 if test "x$VERSIONED_SYMS" != "x"
6958 echo "$as_me:6958: checking if wildcards can be used to selectively omit symbols" >&5
6959 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6965 cat >conftest.ver <<EOF
6994 cat >conftest.$ac_ext <<EOF
6995 #line 6995 "configure"
6996 int _ismissing(void) { return 1; }
6997 int _localf1(void) { return 1; }
6998 int _localf2(void) { return 2; }
6999 int globalf1(void) { return 1; }
7000 int globalf2(void) { return 2; }
7001 int _sublocalf1(void) { return 1; }
7002 int _sublocalf2(void) { return 2; }
7003 int subglobalf1(void) { return 1; }
7004 int subglobalf2(void) { return 2; }
7006 cat >conftest.mk <<EOF
7009 CPPFLAGS=${CPPFLAGS}
7012 VERSIONED_SYMS=${VERSIONED_SYMS}
7013 RESULTING_SYMS=conftest.ver
7014 MK_SHARED_LIB=${MK_SHARED_LIB}
7015 conftest.so: conftest.$ac_cv_objext
7016 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7019 # compile source, make library
7020 if make -f conftest.mk 2>&5 >/dev/null
7022 # test for missing symbol in either Data or Text section
7023 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7024 test -n "$cf_missing" && WILDCARD_SYMS=yes
7026 echo "$as_me:7026: result: $WILDCARD_SYMS" >&5
7027 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7036 ### Checks for special libraries, must be done up-front.
7039 echo "$as_me:7039: checking if you want to link with the GPM mouse library" >&5
7040 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7042 # Check whether --with-gpm or --without-gpm was given.
7043 if test "${with_gpm+set}" = set; then
7049 echo "$as_me:7049: result: $with_gpm" >&5
7050 echo "${ECHO_T}$with_gpm" >&6
7052 if test "$with_gpm" != no ; then
7053 echo "$as_me:7053: checking for gpm.h" >&5
7054 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7055 if test "${ac_cv_header_gpm_h+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >"conftest.$ac_ext" <<_ACEOF
7059 #line 7059 "configure"
7060 #include "confdefs.h"
7063 if { (eval echo "$as_me:7063: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7064 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7066 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:7069: \$? = $ac_status" >&5
7070 (exit "$ac_status"); } >/dev/null; then
7071 if test -s conftest.err; then
7072 ac_cpp_err=$ac_c_preproc_warn_flag
7079 if test -z "$ac_cpp_err"; then
7080 ac_cv_header_gpm_h=yes
7082 echo "$as_me: failed program was:" >&5
7083 cat "conftest.$ac_ext" >&5
7084 ac_cv_header_gpm_h=no
7086 rm -f conftest.err "conftest.$ac_ext"
7088 echo "$as_me:7088: result: $ac_cv_header_gpm_h" >&5
7089 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7090 if test "$ac_cv_header_gpm_h" = yes; then
7092 cat >>confdefs.h <<\EOF
7093 #define HAVE_GPM_H 1
7096 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7097 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7099 echo "${as_me:-configure}:7099: testing assuming we really have GPM library ..." 1>&5
7101 cat >>confdefs.h <<\EOF
7102 #define HAVE_LIBGPM 1
7107 echo "$as_me:7107: checking for Gpm_Open in -lgpm" >&5
7108 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7109 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_check_lib_save_LIBS=$LIBS
7114 cat >"conftest.$ac_ext" <<_ACEOF
7115 #line 7115 "configure"
7116 #include "confdefs.h"
7118 /* Override any gcc2 internal prototype to avoid an error. */
7122 /* We use char because int might match the return type of a gcc2
7123 builtin and then its argument prototype would still apply. */
7133 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7134 if { (eval echo "$as_me:7134: \"$ac_link\"") >&5
7135 (eval $ac_link) 2>&5
7137 echo "$as_me:7137: \$? = $ac_status" >&5
7138 (exit "$ac_status"); } &&
7139 { ac_try='test -s "conftest$ac_exeext"'
7140 { (eval echo "$as_me:7140: \"$ac_try\"") >&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 (exit "$ac_status"); }; }; then
7145 ac_cv_lib_gpm_Gpm_Open=yes
7147 echo "$as_me: failed program was:" >&5
7148 cat "conftest.$ac_ext" >&5
7149 ac_cv_lib_gpm_Gpm_Open=no
7151 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7152 LIBS=$ac_check_lib_save_LIBS
7154 echo "$as_me:7154: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7155 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7156 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7160 if test "$with_gpm" = maybe; then
7161 { echo "$as_me:7161: WARNING: Cannot link with GPM library" >&5
7162 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7165 { { echo "$as_me:7165: error: Cannot link with GPM library" >&5
7166 echo "$as_me: error: Cannot link with GPM library" >&2;}
7167 { (exit 1); exit 1; }; }
7176 test "$with_gpm" != maybe && { echo "$as_me:7176: WARNING: Cannot find GPM header" >&5
7177 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7184 if test "$with_gpm" != no ; then
7185 echo "$as_me:7185: checking if you want to load GPM dynamically" >&5
7186 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7188 # Check whether --with-dlsym or --without-dlsym was given.
7189 if test "${with_dlsym+set}" = set; then
7190 withval="$with_dlsym"
7195 echo "$as_me:7195: result: $with_dlsym" >&5
7196 echo "${ECHO_T}$with_dlsym" >&6
7197 if test "x$with_dlsym" = xyes ; then
7200 echo "$as_me:7200: checking for dlsym" >&5
7201 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7202 if test "${ac_cv_func_dlsym+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >"conftest.$ac_ext" <<_ACEOF
7206 #line 7206 "configure"
7207 #include "confdefs.h"
7208 #define dlsym autoconf_temporary
7209 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7224 /* The GNU C library defines stubs for functions which it implements
7225 to always fail with ENOSYS. Some functions are actually named
7226 something starting with __ and the normal name is an alias. */
7227 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7228 #error found stub for dlsym
7236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7237 if { (eval echo "$as_me:7237: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>&5
7240 echo "$as_me:7240: \$? = $ac_status" >&5
7241 (exit "$ac_status"); } &&
7242 { ac_try='test -s "conftest$ac_exeext"'
7243 { (eval echo "$as_me:7243: \"$ac_try\"") >&5
7246 echo "$as_me:7246: \$? = $ac_status" >&5
7247 (exit "$ac_status"); }; }; then
7248 ac_cv_func_dlsym=yes
7250 echo "$as_me: failed program was:" >&5
7251 cat "conftest.$ac_ext" >&5
7254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7256 echo "$as_me:7256: result: $ac_cv_func_dlsym" >&5
7257 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7258 if test "$ac_cv_func_dlsym" = yes; then
7263 echo "$as_me:7263: checking for dlsym in -ldl" >&5
7264 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7265 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_check_lib_save_LIBS=$LIBS
7270 cat >"conftest.$ac_ext" <<_ACEOF
7271 #line 7271 "configure"
7272 #include "confdefs.h"
7274 /* Override any gcc2 internal prototype to avoid an error. */
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7289 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7290 if { (eval echo "$as_me:7290: \"$ac_link\"") >&5
7291 (eval $ac_link) 2>&5
7293 echo "$as_me:7293: \$? = $ac_status" >&5
7294 (exit "$ac_status"); } &&
7295 { ac_try='test -s "conftest$ac_exeext"'
7296 { (eval echo "$as_me:7296: \"$ac_try\"") >&5
7299 echo "$as_me:7299: \$? = $ac_status" >&5
7300 (exit "$ac_status"); }; }; then
7301 ac_cv_lib_dl_dlsym=yes
7303 echo "$as_me: failed program was:" >&5
7304 cat "conftest.$ac_ext" >&5
7305 ac_cv_lib_dl_dlsym=no
7307 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7308 LIBS=$ac_check_lib_save_LIBS
7310 echo "$as_me:7310: result: $ac_cv_lib_dl_dlsym" >&5
7311 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7312 if test "$ac_cv_lib_dl_dlsym" = yes; then
7320 if test "$cf_have_dlsym" = yes ; then
7321 test "$cf_have_libdl" = yes && {
7325 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7327 for cf_add_1lib in $cf_add_0lib; do
7328 for cf_add_2lib in $cf_add_libs; do
7329 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7334 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7339 echo "$as_me:7339: checking whether able to link to dl*() functions" >&5
7340 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7341 cat >"conftest.$ac_ext" <<_ACEOF
7342 #line 7342 "configure"
7343 #include "confdefs.h"
7350 if ((obj = dlopen("filename", 0)) != 0) {
7351 if (dlsym(obj, "symbolname") == 0) {
7359 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7360 if { (eval echo "$as_me:7360: \"$ac_link\"") >&5
7361 (eval $ac_link) 2>&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit "$ac_status"); } &&
7365 { ac_try='test -s "conftest$ac_exeext"'
7366 { (eval echo "$as_me:7366: \"$ac_try\"") >&5
7369 echo "$as_me:7369: \$? = $ac_status" >&5
7370 (exit "$ac_status"); }; }; then
7372 cat >>confdefs.h <<\EOF
7373 #define HAVE_LIBDL 1
7377 echo "$as_me: failed program was:" >&5
7378 cat "conftest.$ac_ext" >&5
7380 { { echo "$as_me:7380: error: Cannot link test program for libdl" >&5
7381 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7382 { (exit 1); exit 1; }; }
7384 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7385 echo "$as_me:7385: result: ok" >&5
7386 echo "${ECHO_T}ok" >&6
7388 { { echo "$as_me:7388: error: Cannot find dlsym function" >&5
7389 echo "$as_me: error: Cannot find dlsym function" >&2;}
7390 { (exit 1); exit 1; }; }
7393 if test "x$with_gpm" != xyes ; then
7394 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7396 echo "${as_me:-configure}:7396: testing assuming soname for gpm is $with_gpm ..." 1>&5
7398 cf_cv_gpm_soname="$with_gpm"
7401 echo "$as_me:7401: checking for soname of gpm library" >&5
7402 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7403 if test "${cf_cv_gpm_soname+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 cf_cv_gpm_soname=unknown
7408 if test "$cross_compiling" != yes ; then
7409 cat >conftest.$ac_ext <<CF_EOF
7413 if (Gpm_Open(0,0)) Gpm_Close();
7414 ${cf_cv_main_return:-return}(0);
7417 cf_save_LIBS="$LIBS"
7422 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7424 for cf_add_1lib in $cf_add_0lib; do
7425 for cf_add_2lib in $cf_add_libs; do
7426 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7431 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7435 if { (eval echo "$as_me:7435: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>&5
7438 echo "$as_me:7438: \$? = $ac_status" >&5
7439 (exit "$ac_status"); } ; then
7440 if { (eval echo "$as_me:7440: \"$ac_link\"") >&5
7441 (eval $ac_link) 2>&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 (exit "$ac_status"); } ; then
7445 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7446 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7450 LIBS="$cf_save_LIBS"
7454 echo "$as_me:7454: result: $cf_cv_gpm_soname" >&5
7455 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7458 test "$cf_cv_gpm_soname" != "unknown" &&
7459 cat >>confdefs.h <<EOF
7460 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7463 SHLIB_LIST="-ldl $SHLIB_LIST"
7465 cf_add_libs="$PRIVATE_LIBS"
7468 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7470 for cf_add_1lib in $cf_add_0lib; do
7471 for cf_add_2lib in $cf_add_libs; do
7472 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7477 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7479 PRIVATE_LIBS="$cf_add_libs"
7482 SHLIB_LIST="-lgpm $SHLIB_LIST"
7484 cf_add_libs="$TEST_LIBS"
7487 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7489 for cf_add_1lib in $cf_add_0lib; do
7490 for cf_add_2lib in $cf_add_libs; do
7491 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7496 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7498 TEST_LIBS="$cf_add_libs"
7500 cf_add_libs="$PRIVATE_LIBS"
7503 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7505 for cf_add_1lib in $cf_add_0lib; do
7506 for cf_add_2lib in $cf_add_libs; do
7507 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7512 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7514 PRIVATE_LIBS="$cf_add_libs"
7518 cat >>confdefs.h <<\EOF
7519 #define HAVE_LIBGPM 1
7522 echo "$as_me:7522: checking for Gpm_Wgetch in -lgpm" >&5
7523 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7524 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 ac_check_lib_save_LIBS=$LIBS
7529 cat >"conftest.$ac_ext" <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7533 /* Override any gcc2 internal prototype to avoid an error. */
7537 /* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */
7548 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7549 if { (eval echo "$as_me:7549: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit "$ac_status"); } &&
7554 { ac_try='test -s "conftest$ac_exeext"'
7555 { (eval echo "$as_me:7555: \"$ac_try\"") >&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 (exit "$ac_status"); }; }; then
7560 ac_cv_lib_gpm_Gpm_Wgetch=yes
7562 echo "$as_me: failed program was:" >&5
7563 cat "conftest.$ac_ext" >&5
7564 ac_cv_lib_gpm_Gpm_Wgetch=no
7566 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7567 LIBS=$ac_check_lib_save_LIBS
7569 echo "$as_me:7569: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7570 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7571 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7573 echo "$as_me:7573: checking if GPM is weakly bound to curses library" >&5
7574 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7575 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cf_cv_check_gpm_wgetch=unknown
7580 if test "$cross_compiling" != yes ; then
7582 cat >conftest.$ac_ext <<CF_EOF
7587 ${cf_cv_main_return:-return}(0);
7591 cf_save_LIBS="$LIBS"
7592 # This only works if we can look at the symbol table. If a shared
7593 # library is stripped for install, we cannot use that. So we're forced
7594 # to rely on the static library, noting that some packagers may not
7596 LIBS="-static -lgpm -dynamic $LIBS"
7597 if { (eval echo "$as_me:7597: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 (exit "$ac_status"); } ; then
7602 if { (eval echo "$as_me:7602: \"$ac_link\"") >&5
7603 (eval $ac_link) 2>&5
7605 echo "$as_me:7605: \$? = $ac_status" >&5
7606 (exit "$ac_status"); } ; then
7607 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7608 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7609 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7613 LIBS="$cf_save_LIBS"
7617 echo "$as_me:7617: result: $cf_cv_check_gpm_wgetch" >&5
7618 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7620 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7621 { echo "$as_me:7621: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7622 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7629 echo "$as_me:7629: checking if you want to use PCRE2 for regular-expressions" >&5
7630 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7632 # Check whether --with-pcre2 or --without-pcre2 was given.
7633 if test "${with_pcre2+set}" = set; then
7634 withval="$with_pcre2"
7637 test -z "$with_pcre2" && with_pcre2=no
7638 echo "$as_me:7638: result: $with_pcre2" >&5
7639 echo "${ECHO_T}$with_pcre2" >&6
7641 if test "x$with_pcre2" != xno ; then
7643 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
7646 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
7647 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
7649 echo "${as_me:-configure}:7649: testing found package $cf_with_pcre2 ..." 1>&5
7651 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
7652 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
7653 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7655 echo "${as_me:-configure}:7655: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7657 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7659 echo "${as_me:-configure}:7659: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7664 cf_new_extra_cppflags=
7666 for cf_add_cflags in $cf_pkgconfig_incs
7668 case "$cf_fix_cppflags" in
7670 case "$cf_add_cflags" in
7671 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7672 case "$cf_add_cflags" in
7674 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7676 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7677 && test -z "${cf_tst_cflags}" \
7678 && cf_fix_cppflags=yes
7680 if test "$cf_fix_cppflags" = yes ; then
7682 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7683 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7686 elif test "${cf_tst_cflags}" = "\"'" ; then
7688 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7689 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7699 case "$cf_add_cflags" in
7701 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7703 CPPFLAGS=`echo "$CPPFLAGS" | \
7704 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7705 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7710 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7711 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7718 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7719 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7726 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7727 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7729 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7731 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7732 && test -z "${cf_tst_cflags}" \
7733 && cf_fix_cppflags=no
7738 if test -n "$cf_new_cflags" ; then
7740 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7741 CFLAGS="${CFLAGS}$cf_new_cflags"
7745 if test -n "$cf_new_cppflags" ; then
7747 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7748 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7752 if test -n "$cf_new_extra_cppflags" ; then
7754 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7755 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7762 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7764 for cf_add_1lib in $cf_add_0lib; do
7765 for cf_add_2lib in $cf_add_libs; do
7766 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7771 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7775 cf_with_pcre2_ok=yes; break
7783 cf_with_pcre2_ok=yes || { { echo "$as_me:7783: error: Cannot find PCRE2 library" >&5
7784 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7785 { (exit 1); exit 1; }; }
7787 cat >>confdefs.h <<\EOF
7788 #define HAVE_LIB_PCRE2 1
7791 # if pkgconfig gave no results, look for the libraries directly
7793 (*pcre2-posix*|*pcreposix*)
7796 echo "$as_me:7796: checking for regcomp in -lpcre2-posix" >&5
7797 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7798 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_check_lib_save_LIBS=$LIBS
7802 LIBS="-lpcre2-posix $LIBS"
7803 cat >"conftest.$ac_ext" <<_ACEOF
7804 #line 7804 "configure"
7805 #include "confdefs.h"
7807 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7822 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7823 if { (eval echo "$as_me:7823: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>&5
7826 echo "$as_me:7826: \$? = $ac_status" >&5
7827 (exit "$ac_status"); } &&
7828 { ac_try='test -s "conftest$ac_exeext"'
7829 { (eval echo "$as_me:7829: \"$ac_try\"") >&5
7832 echo "$as_me:7832: \$? = $ac_status" >&5
7833 (exit "$ac_status"); }; }; then
7834 ac_cv_lib_pcre2_posix_regcomp=yes
7836 echo "$as_me: failed program was:" >&5
7837 cat "conftest.$ac_ext" >&5
7838 ac_cv_lib_pcre2_posix_regcomp=no
7840 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7841 LIBS=$ac_check_lib_save_LIBS
7843 echo "$as_me:7843: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7844 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7845 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7850 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7852 for cf_add_1lib in $cf_add_0lib; do
7853 for cf_add_2lib in $cf_add_libs; do
7854 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7859 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7864 echo "$as_me:7864: checking for regcomp in -lpcreposix" >&5
7865 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7866 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lpcreposix $LIBS"
7871 cat >"conftest.$ac_ext" <<_ACEOF
7872 #line 7872 "configure"
7873 #include "confdefs.h"
7875 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7890 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7891 if { (eval echo "$as_me:7891: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>&5
7894 echo "$as_me:7894: \$? = $ac_status" >&5
7895 (exit "$ac_status"); } &&
7896 { ac_try='test -s "conftest$ac_exeext"'
7897 { (eval echo "$as_me:7897: \"$ac_try\"") >&5
7900 echo "$as_me:7900: \$? = $ac_status" >&5
7901 (exit "$ac_status"); }; }; then
7902 ac_cv_lib_pcreposix_regcomp=yes
7904 echo "$as_me: failed program was:" >&5
7905 cat "conftest.$ac_ext" >&5
7906 ac_cv_lib_pcreposix_regcomp=no
7908 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7909 LIBS=$ac_check_lib_save_LIBS
7911 echo "$as_me:7911: result: $ac_cv_lib_pcreposix_regcomp" >&5
7912 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7913 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7918 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7920 for cf_add_1lib in $cf_add_0lib; do
7921 for cf_add_2lib in $cf_add_libs; do
7922 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7927 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7932 { { echo "$as_me:7932: error: Cannot find PCRE2 POSIX library" >&5
7933 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7934 { (exit 1); exit 1; }; }
7942 # either way, check for the library header files
7944 for ac_header in pcre2posix.h pcreposix.h
7946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7947 echo "$as_me:7947: checking for $ac_header" >&5
7948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >"conftest.$ac_ext" <<_ACEOF
7953 #line 7953 "configure"
7954 #include "confdefs.h"
7955 #include <$ac_header>
7957 if { (eval echo "$as_me:7957: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7958 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7960 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 (exit "$ac_status"); } >/dev/null; then
7965 if test -s conftest.err; then
7966 ac_cpp_err=$ac_c_preproc_warn_flag
7973 if test -z "$ac_cpp_err"; then
7974 eval "$as_ac_Header=yes"
7976 echo "$as_me: failed program was:" >&5
7977 cat "conftest.$ac_ext" >&5
7978 eval "$as_ac_Header=no"
7980 rm -f conftest.err "conftest.$ac_ext"
7982 echo "$as_me:7982: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7983 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7984 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7985 cat >>confdefs.h <<EOF
7986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7992 for ac_func in PCRE2regcomp
7994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7995 echo "$as_me:7995: checking for $ac_func" >&5
7996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7997 if eval "test \"\${$as_ac_var+set}\" = set"; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 cat >"conftest.$ac_ext" <<_ACEOF
8001 #line 8001 "configure"
8002 #include "confdefs.h"
8003 #define $ac_func autoconf_temporary
8004 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013 char $ac_func (void);
8019 /* The GNU C library defines stubs for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8023 #error found stub for $ac_func
8031 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8032 if { (eval echo "$as_me:8032: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>&5
8035 echo "$as_me:8035: \$? = $ac_status" >&5
8036 (exit "$ac_status"); } &&
8037 { ac_try='test -s "conftest$ac_exeext"'
8038 { (eval echo "$as_me:8038: \"$ac_try\"") >&5
8041 echo "$as_me:8041: \$? = $ac_status" >&5
8042 (exit "$ac_status"); }; }; then
8043 eval "$as_ac_var=yes"
8045 echo "$as_me: failed program was:" >&5
8046 cat "conftest.$ac_ext" >&5
8047 eval "$as_ac_var=no"
8049 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8051 echo "$as_me:8051: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8052 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8053 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8054 cat >>confdefs.h <<EOF
8055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8063 # not everyone has "test -c"
8064 if test -c /dev/sysmouse 2>/dev/null ; then
8065 echo "$as_me:8065: checking if you want to use sysmouse" >&5
8066 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8068 # Check whether --with-sysmouse or --without-sysmouse was given.
8069 if test "${with_sysmouse+set}" = set; then
8070 withval="$with_sysmouse"
8071 cf_with_sysmouse=$withval
8073 cf_with_sysmouse=maybe
8075 if test "$cf_with_sysmouse" != no ; then
8076 cat >"conftest.$ac_ext" <<_ACEOF
8077 #line 8077 "configure"
8078 #include "confdefs.h"
8080 #include <osreldate.h>
8081 #if (__FreeBSD_version >= 400017)
8082 #include <sys/consio.h>
8083 #include <sys/fbio.h>
8085 #include <machine/console.h>
8092 struct mouse_info the_mouse;
8093 ioctl(0, CONS_MOUSECTL, &the_mouse);
8099 rm -f "conftest.$ac_objext"
8100 if { (eval echo "$as_me:8100: \"$ac_compile\"") >&5
8101 (eval $ac_compile) 2>&5
8103 echo "$as_me:8103: \$? = $ac_status" >&5
8104 (exit "$ac_status"); } &&
8105 { ac_try='test -s "conftest.$ac_objext"'
8106 { (eval echo "$as_me:8106: \"$ac_try\"") >&5
8109 echo "$as_me:8109: \$? = $ac_status" >&5
8110 (exit "$ac_status"); }; }; then
8111 cf_with_sysmouse=yes
8113 echo "$as_me: failed program was:" >&5
8114 cat "conftest.$ac_ext" >&5
8117 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8119 echo "$as_me:8119: result: $cf_with_sysmouse" >&5
8120 echo "${ECHO_T}$cf_with_sysmouse" >&6
8121 test "$cf_with_sysmouse" = yes &&
8122 cat >>confdefs.h <<\EOF
8123 #define USE_SYSMOUSE 1
8128 # pretend that ncurses==ncursesw==ncursest
8129 echo "$as_me:8129: checking if you want to disable library suffixes" >&5
8130 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8132 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8133 if test "${enable_lib_suffixes+set}" = set; then
8134 enableval="$enable_lib_suffixes"
8135 test "$enableval" != no && enableval=yes
8136 if test "$enableval" != "yes" ; then
8137 disable_lib_suffixes=yes
8139 disable_lib_suffixes=no
8143 disable_lib_suffixes=no
8146 echo "$as_me:8146: result: $disable_lib_suffixes" >&5
8147 echo "${ECHO_T}$disable_lib_suffixes" >&6
8149 ### If we're building with rpath, try to link non-standard libs that way too.
8150 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8152 echo "$as_me:8152: checking if rpath-hack should be disabled" >&5
8153 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8155 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8156 if test "${enable_rpath_hack+set}" = set; then
8157 enableval="$enable_rpath_hack"
8158 test "$enableval" != no && enableval=yes
8159 if test "$enableval" != "yes" ; then
8160 enable_rpath_hack=no
8162 enable_rpath_hack=yes
8166 enable_rpath_hack=yes
8169 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8170 echo "$as_me:8170: result: $cf_disable_rpath_hack" >&5
8171 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8173 if test "$enable_rpath_hack" = yes ; then
8175 echo "$as_me:8175: checking for updated LDFLAGS" >&5
8176 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8177 if test -n "$LD_RPATH_OPT" ; then
8178 echo "$as_me:8178: result: maybe" >&5
8179 echo "${ECHO_T}maybe" >&6
8183 # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 echo "$as_me:8185: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8187 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 if test -n "$cf_ldd_prog"; then
8191 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8193 ac_save_IFS=$IFS; IFS=$ac_path_separator
8195 for ac_dir in $ac_dummy; do
8197 test -z "$ac_dir" && ac_dir=.
8198 $as_executable_p "$ac_dir/$ac_word" || continue
8199 ac_cv_prog_cf_ldd_prog="$ac_prog"
8200 echo "$as_me:8200: found $ac_dir/$ac_word" >&5
8206 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8207 if test -n "$cf_ldd_prog"; then
8208 echo "$as_me:8208: result: $cf_ldd_prog" >&5
8209 echo "${ECHO_T}$cf_ldd_prog" >&6
8211 echo "$as_me:8211: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8215 test -n "$cf_ldd_prog" && break
8217 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8219 cf_rpath_list="/usr/lib /lib"
8220 if test "$cf_ldd_prog" != no
8224 cat >"conftest.$ac_ext" <<_ACEOF
8225 #line 8225 "configure"
8226 #include "confdefs.h"
8236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8237 if { (eval echo "$as_me:8237: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 (exit "$ac_status"); } &&
8242 { ac_try='test -s "conftest$ac_exeext"'
8243 { (eval echo "$as_me:8243: \"$ac_try\"") >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 (exit "$ac_status"); }; }; then
8248 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8249 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8251 echo "$as_me: failed program was:" >&5
8252 cat "conftest.$ac_ext" >&5
8254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8256 # If we passed the link-test, but get a "not found" on a given library,
8257 # this could be due to inept reconfiguration of gcc to make it only
8258 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8259 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8260 # /usr/local libraries.
8261 if test -n "$cf_rpath_oops"
8263 for cf_rpath_src in $cf_rpath_oops
8265 for cf_rpath_dir in \
8270 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8272 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8274 echo "${as_me:-configure}:8274: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8276 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8284 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8286 echo "${as_me:-configure}:8286: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8288 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8290 echo "${as_me:-configure}:8290: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8293 for cf_rpath_src in $LDFLAGS
8295 case "$cf_rpath_src" in
8298 # check if this refers to a directory which we will ignore
8300 if test -n "$cf_rpath_list"
8302 for cf_rpath_item in $cf_rpath_list
8304 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8312 if test "$cf_rpath_skip" = no
8314 # transform the option
8315 if test "$LD_RPATH_OPT" = "-R " ; then
8316 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8318 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8321 # if we have not already added this, add it now
8322 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8323 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8325 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8327 echo "${as_me:-configure}:8327: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8329 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8334 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8336 LDFLAGS=$cf_rpath_dst
8338 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8340 echo "${as_me:-configure}:8340: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8342 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8344 echo "${as_me:-configure}:8344: testing ...checking LIBS $LIBS ..." 1>&5
8347 for cf_rpath_src in $LIBS
8349 case "$cf_rpath_src" in
8352 # check if this refers to a directory which we will ignore
8354 if test -n "$cf_rpath_list"
8356 for cf_rpath_item in $cf_rpath_list
8358 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8366 if test "$cf_rpath_skip" = no
8368 # transform the option
8369 if test "$LD_RPATH_OPT" = "-R " ; then
8370 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8372 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8375 # if we have not already added this, add it now
8376 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8377 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8379 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8381 echo "${as_me:-configure}:8381: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8383 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8388 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8392 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8394 echo "${as_me:-configure}:8394: testing ...checked LIBS $LIBS ..." 1>&5
8396 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8398 echo "${as_me:-configure}:8398: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8401 echo "$as_me:8401: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8409 ### Depending on the system, someone may use rpath to build ncurses but not
8410 # want users of the package to rely upon that feature. Give those people an
8411 # option to suppress that detail from EXTRA_LDFLAGS.
8412 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8413 if test -n "$EXTRA_PKG_LDFLAGS"
8415 echo "$as_me:8415: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8416 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8418 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8419 if test "${enable_pkg_ldflags+set}" = set; then
8420 enableval="$enable_pkg_ldflags"
8421 test "$enableval" != no && enableval=yes
8422 if test "$enableval" != "yes" ; then
8423 disable_pkg_ldflags=yes
8425 disable_pkg_ldflags=no
8429 disable_pkg_ldflags=no
8432 echo "$as_me:8432: result: $disable_pkg_ldflags" >&5
8433 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8434 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8437 ###############################################################################
8439 ### use option --with-extra-suffix to append suffix to headers and libraries
8440 echo "$as_me:8440: checking if you wish to append extra suffix to header/library paths" >&5
8441 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8444 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8445 if test "${with_extra_suffix+set}" = set; then
8446 withval="$with_extra_suffix"
8451 EXTRA_SUFFIX=$cf_cv_abi_version
8454 EXTRA_SUFFIX=$withval
8459 echo "$as_me:8459: result: $EXTRA_SUFFIX" >&5
8460 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8462 ### use option --disable-overwrite to leave out the link to -lcurses
8463 echo "$as_me:8463: checking if you wish to install ncurses overwriting curses" >&5
8464 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8466 # Check whether --enable-overwrite or --disable-overwrite was given.
8467 if test "${enable_overwrite+set}" = set; then
8468 enableval="$enable_overwrite"
8469 with_overwrite=$enableval
8471 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8473 echo "$as_me:8473: result: $with_overwrite" >&5
8474 echo "${ECHO_T}$with_overwrite" >&6
8476 echo "$as_me:8476: checking if external terminfo-database is used" >&5
8477 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8479 # Check whether --enable-database or --disable-database was given.
8480 if test "${enable_database+set}" = set; then
8481 enableval="$enable_database"
8482 use_database=$enableval
8486 echo "$as_me:8486: result: $use_database" >&5
8487 echo "${ECHO_T}$use_database" >&6
8491 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8494 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8498 NCURSES_USE_DATABASE=0
8499 if test "$use_database" != no ; then
8500 NCURSES_USE_DATABASE=1
8502 echo "$as_me:8502: checking which terminfo source-file will be installed" >&5
8503 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8505 # Check whether --with-database or --without-database was given.
8506 if test "${with_database+set}" = set; then
8507 withval="$with_database"
8508 TERMINFO_SRC=$withval
8510 echo "$as_me:8510: result: $TERMINFO_SRC" >&5
8511 echo "${ECHO_T}$TERMINFO_SRC" >&6
8513 echo "$as_me:8513: checking whether to use hashed database instead of directory/tree" >&5
8514 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8516 # Check whether --with-hashed-db or --without-hashed-db was given.
8517 if test "${with_hashed_db+set}" = set; then
8518 withval="$with_hashed_db"
8523 echo "$as_me:8523: result: $with_hashed_db" >&5
8524 echo "${ECHO_T}$with_hashed_db" >&6
8529 echo "$as_me:8529: checking for list of fallback descriptions" >&5
8530 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8532 # Check whether --with-fallbacks or --without-fallbacks was given.
8533 if test "${with_fallbacks+set}" = set; then
8534 withval="$with_fallbacks"
8535 with_fallback=$withval
8539 echo "$as_me:8539: result: $with_fallback" >&5
8540 echo "${ECHO_T}$with_fallback" >&6
8542 case ".$with_fallback" in
8547 { echo "$as_me:8547: WARNING: expected a list of terminal descriptions" >&5
8548 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8551 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8555 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8556 # tree for generating the terminal descriptions that will be compiled into the
8557 # library. If your toolchain is old, it may not handle current terminal
8558 # databases. Use configure-options to point to the tools which will be used,
8559 # rather than the first ones found on the $PATH.
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}tic; ac_word=$2
8563 echo "$as_me:8563: checking for $ac_word" >&5
8564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8565 if test "${ac_cv_prog_TIC+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 if test -n "$TIC"; then
8569 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8571 ac_save_IFS=$IFS; IFS=$ac_path_separator
8573 for ac_dir in $ac_dummy; do
8575 test -z "$ac_dir" && ac_dir=.
8576 $as_executable_p "$ac_dir/$ac_word" || continue
8577 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8578 echo "$as_me:8578: found $ac_dir/$ac_word" >&5
8585 if test -n "$TIC"; then
8586 echo "$as_me:8586: result: $TIC" >&5
8587 echo "${ECHO_T}$TIC" >&6
8589 echo "$as_me:8589: result: no" >&5
8590 echo "${ECHO_T}no" >&6
8594 if test -z "$ac_cv_prog_TIC"; then
8596 # Extract the first word of "tic", so it can be a program name with args.
8597 set dummy tic; ac_word=$2
8598 echo "$as_me:8598: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8600 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 if test -n "$ac_ct_TIC"; then
8604 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8606 ac_save_IFS=$IFS; IFS=$ac_path_separator
8608 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 $as_executable_p "$ac_dir/$ac_word" || continue
8612 ac_cv_prog_ac_ct_TIC="tic"
8613 echo "$as_me:8613: found $ac_dir/$ac_word" >&5
8619 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8620 if test -n "$ac_ct_TIC"; then
8621 echo "$as_me:8621: result: $ac_ct_TIC" >&5
8622 echo "${ECHO_T}$ac_ct_TIC" >&6
8624 echo "$as_me:8624: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8630 TIC="$ac_cv_prog_TIC"
8633 if test -n "$ac_tool_prefix"; then
8634 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8635 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8636 echo "$as_me:8636: checking for $ac_word" >&5
8637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8638 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 if test -n "$INFOCMP"; then
8642 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8644 ac_save_IFS=$IFS; IFS=$ac_path_separator
8646 for ac_dir in $ac_dummy; do
8648 test -z "$ac_dir" && ac_dir=.
8649 $as_executable_p "$ac_dir/$ac_word" || continue
8650 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8651 echo "$as_me:8651: found $ac_dir/$ac_word" >&5
8657 INFOCMP=$ac_cv_prog_INFOCMP
8658 if test -n "$INFOCMP"; then
8659 echo "$as_me:8659: result: $INFOCMP" >&5
8660 echo "${ECHO_T}$INFOCMP" >&6
8662 echo "$as_me:8662: result: no" >&5
8663 echo "${ECHO_T}no" >&6
8667 if test -z "$ac_cv_prog_INFOCMP"; then
8668 ac_ct_INFOCMP=$INFOCMP
8669 # Extract the first word of "infocmp", so it can be a program name with args.
8670 set dummy infocmp; ac_word=$2
8671 echo "$as_me:8671: checking for $ac_word" >&5
8672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8673 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 if test -n "$ac_ct_INFOCMP"; then
8677 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8679 ac_save_IFS=$IFS; IFS=$ac_path_separator
8681 for ac_dir in $ac_dummy; do
8683 test -z "$ac_dir" && ac_dir=.
8684 $as_executable_p "$ac_dir/$ac_word" || continue
8685 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8686 echo "$as_me:8686: found $ac_dir/$ac_word" >&5
8692 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8693 if test -n "$ac_ct_INFOCMP"; then
8694 echo "$as_me:8694: result: $ac_ct_INFOCMP" >&5
8695 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8697 echo "$as_me:8697: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8701 INFOCMP=$ac_ct_INFOCMP
8703 INFOCMP="$ac_cv_prog_INFOCMP"
8706 if test -n "$FALLBACK_LIST"
8709 # Check whether --with-tic-path or --without-tic-path was given.
8710 if test "${with_tic_path+set}" = set; then
8711 withval="$with_tic_path"
8712 echo "$as_me:8712: checking for tic program for fallbacks" >&5
8713 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8715 echo "$as_me:8715: result: $TIC" >&5
8716 echo "${ECHO_T}$TIC" >&6
8718 if test "x$prefix" != xNONE; then
8719 cf_path_syntax="$prefix"
8721 cf_path_syntax="$ac_default_prefix"
8729 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8731 (.\$\{*prefix\}*|.\$\{*dir\}*)
8735 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8740 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8743 { { echo "$as_me:8743: error: expected a pathname, not \"$TIC\"" >&5
8744 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8745 { (exit 1); exit 1; }; }
8751 test -z "$TIC" && TIC="tic"
8752 for ac_prog in $TIC tic
8754 # Extract the first word of "$ac_prog", so it can be a program name with args.
8755 set dummy $ac_prog; ac_word=$2
8756 echo "$as_me:8756: checking for $ac_word" >&5
8757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8758 if test "${ac_cv_path_TIC+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8766 ac_save_IFS=$IFS; IFS=$ac_path_separator
8767 ac_dummy="$PATH:/usr/local/ncurses/bin"
8768 for ac_dir in $ac_dummy; do
8770 test -z "$ac_dir" && ac_dir=.
8771 if $as_executable_p "$ac_dir/$ac_word"; then
8772 ac_cv_path_TIC="$ac_dir/$ac_word"
8773 echo "$as_me:8773: found $ac_dir/$ac_word" >&5
8783 if test -n "$TIC"; then
8784 echo "$as_me:8784: result: $TIC" >&5
8785 echo "${ECHO_T}$TIC" >&6
8787 echo "$as_me:8787: result: no" >&5
8788 echo "${ECHO_T}no" >&6
8791 test -n "$TIC" && break
8793 test -n "$TIC" || TIC="$TIC"
8797 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8798 for cf_temp in $ac_cv_path_TIC
8800 if test -z "$cf_path_prog" ; then
8801 if test "$with_full_paths" = yes ; then
8803 if test "x$prefix" != xNONE; then
8804 cf_path_syntax="$prefix"
8806 cf_path_syntax="$ac_default_prefix"
8814 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8816 (.\$\{*prefix\}*|.\$\{*dir\}*)
8817 eval cf_temp="$cf_temp"
8820 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8825 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8832 cf_path_prog="$cf_temp"
8834 cf_path_prog="`basename "$cf_temp"`"
8836 elif test -z "$cf_path_args" ; then
8837 cf_path_args="$cf_temp"
8839 cf_path_args="$cf_path_args $cf_temp"
8844 if test -n "$cf_path_prog" ; then
8846 echo "${as_me:-configure}:8846: testing defining path for ${cf_path_prog} ..." 1>&5
8848 cat >>confdefs.h <<EOF
8849 #define TIC_PATH "$cf_path_prog"
8852 test -n "$cf_path_args" &&
8853 cat >>confdefs.h <<EOF
8854 #define TIC_ARGS "$cf_path_args"
8861 { echo "$as_me:8861: WARNING: no tic program found for fallbacks" >&5
8862 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8867 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8868 if test "${with_infocmp_path+set}" = set; then
8869 withval="$with_infocmp_path"
8870 echo "$as_me:8870: checking for infocmp program for fallbacks" >&5
8871 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8873 echo "$as_me:8873: result: $INFOCMP" >&5
8874 echo "${ECHO_T}$INFOCMP" >&6
8876 if test "x$prefix" != xNONE; then
8877 cf_path_syntax="$prefix"
8879 cf_path_syntax="$ac_default_prefix"
8887 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8889 (.\$\{*prefix\}*|.\$\{*dir\}*)
8890 eval INFOCMP="$INFOCMP"
8893 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8898 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8901 { { echo "$as_me:8901: error: expected a pathname, not \"$INFOCMP\"" >&5
8902 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8903 { (exit 1); exit 1; }; }
8909 test -z "$INFOCMP" && INFOCMP="infocmp"
8910 for ac_prog in $INFOCMP infocmp
8912 # Extract the first word of "$ac_prog", so it can be a program name with args.
8913 set dummy $ac_prog; ac_word=$2
8914 echo "$as_me:8914: checking for $ac_word" >&5
8915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8916 if test "${ac_cv_path_INFOCMP+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8924 ac_save_IFS=$IFS; IFS=$ac_path_separator
8925 ac_dummy="$PATH:/usr/local/ncurses/bin"
8926 for ac_dir in $ac_dummy; do
8928 test -z "$ac_dir" && ac_dir=.
8929 if $as_executable_p "$ac_dir/$ac_word"; then
8930 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8931 echo "$as_me:8931: found $ac_dir/$ac_word" >&5
8939 INFOCMP=$ac_cv_path_INFOCMP
8941 if test -n "$INFOCMP"; then
8942 echo "$as_me:8942: result: $INFOCMP" >&5
8943 echo "${ECHO_T}$INFOCMP" >&6
8945 echo "$as_me:8945: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8949 test -n "$INFOCMP" && break
8951 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8955 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8956 for cf_temp in $ac_cv_path_INFOCMP
8958 if test -z "$cf_path_prog" ; then
8959 if test "$with_full_paths" = yes ; then
8961 if test "x$prefix" != xNONE; then
8962 cf_path_syntax="$prefix"
8964 cf_path_syntax="$ac_default_prefix"
8972 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8974 (.\$\{*prefix\}*|.\$\{*dir\}*)
8975 eval cf_temp="$cf_temp"
8978 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8983 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8990 cf_path_prog="$cf_temp"
8992 cf_path_prog="`basename "$cf_temp"`"
8994 elif test -z "$cf_path_args" ; then
8995 cf_path_args="$cf_temp"
8997 cf_path_args="$cf_path_args $cf_temp"
9002 if test -n "$cf_path_prog" ; then
9004 echo "${as_me:-configure}:9004: testing defining path for ${cf_path_prog} ..." 1>&5
9006 cat >>confdefs.h <<EOF
9007 #define INFOCMP_PATH "$cf_path_prog"
9010 test -n "$cf_path_args" &&
9011 cat >>confdefs.h <<EOF
9012 #define INFOCMP_ARGS "$cf_path_args"
9017 if test -z "$INFOCMP"
9019 { echo "$as_me:9019: WARNING: no infocmp program found for fallbacks" >&5
9020 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9025 test -z "$TIC" && FALLBACK_LIST=
9026 test -z "$INFOCMP" && FALLBACK_LIST=
9027 if test -z "$FALLBACK_LIST"
9029 { echo "$as_me:9029: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9030 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9035 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9037 echo "$as_me:9037: checking if you want modern xterm or antique" >&5
9038 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9040 # Check whether --with-xterm-new or --without-xterm-new was given.
9041 if test "${with_xterm_new+set}" = set; then
9042 withval="$with_xterm_new"
9043 with_xterm_new=$withval
9047 case "$with_xterm_new" in
9048 (no) with_xterm_new=xterm-old;;
9049 (*) with_xterm_new=xterm-new;;
9051 echo "$as_me:9051: result: $with_xterm_new" >&5
9052 echo "${ECHO_T}$with_xterm_new" >&6
9053 WHICH_XTERM=$with_xterm_new
9056 (*linux-gnu|*cygwin|*mingw32|*msys)
9064 echo "$as_me:9064: checking if xterm backspace sends BS or DEL" >&5
9065 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9067 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9068 if test "${with_xterm_kbs+set}" = set; then
9069 withval="$with_xterm_kbs"
9070 with_xterm_kbs=$withval
9074 case x$with_xterm_kbs in
9075 (xyes|xno|xBS|xbs|x8)
9082 with_xterm_kbs=$withval
9085 echo "$as_me:9085: result: $with_xterm_kbs" >&5
9086 echo "${ECHO_T}$with_xterm_kbs" >&6
9087 XTERM_KBS=$with_xterm_kbs
9089 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9091 { echo "$as_me:9091: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os" >&5
9092 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os" >&2;}
9096 if test "$use_database" = no ; then
9097 TERMINFO="${datadir}/terminfo"
9101 echo "$as_me:9101: checking for list of terminfo directories" >&5
9102 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9104 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9105 if test "${with_terminfo_dirs+set}" = set; then
9106 withval="$with_terminfo_dirs"
9109 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9111 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9113 for cf_src_path in $withval
9116 if test "x$prefix" != xNONE; then
9117 cf_path_syntax="$prefix"
9119 cf_path_syntax="$ac_default_prefix"
9122 case ".$cf_src_path" in
9127 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9129 (.\$\{*prefix\}*|.\$\{*dir\}*)
9130 eval cf_src_path="$cf_src_path"
9131 case ".$cf_src_path" in
9133 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9138 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9141 { { echo "$as_me:9141: error: expected a pathname, not \"$cf_src_path\"" >&5
9142 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9143 { (exit 1); exit 1; }; }
9147 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9148 cf_dst_path="${cf_dst_path}${cf_src_path}"
9152 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9153 # so we have to check/work around. We do prefer the result of "eval"...
9154 eval cf_dst_eval="$cf_dst_path"
9155 case "x$cf_dst_eval" in
9157 TERMINFO_DIRS=$cf_dst_path
9160 TERMINFO_DIRS="$cf_dst_eval"
9164 echo "$as_me:9164: result: $TERMINFO_DIRS" >&5
9165 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9166 test -n "$TERMINFO_DIRS" &&
9167 cat >>confdefs.h <<EOF
9168 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9171 case "x$TERMINFO" in
9173 { echo "$as_me:9173: WARNING: ignoring non-directory/file TERMINFO value" >&5
9174 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9179 echo "$as_me:9179: checking for default terminfo directory" >&5
9180 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9182 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9183 if test "${with_default_terminfo_dir+set}" = set; then
9184 withval="$with_default_terminfo_dir"
9187 withval="${TERMINFO:-${datadir}/terminfo}"
9188 fi; if test -n "${datadir}/terminfo" ; then
9190 if test "x$prefix" != xNONE; then
9191 cf_path_syntax="$prefix"
9193 cf_path_syntax="$ac_default_prefix"
9201 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9203 (.\$\{*prefix\}*|.\$\{*dir\}*)
9204 eval withval="$withval"
9207 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9212 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9215 { { echo "$as_me:9215: error: expected a pathname, not \"$withval\"" >&5
9216 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9217 { (exit 1); exit 1; }; }
9222 eval TERMINFO="$withval"
9224 echo "$as_me:9224: result: $TERMINFO" >&5
9225 echo "${ECHO_T}$TERMINFO" >&6
9227 cat >>confdefs.h <<EOF
9228 #define TERMINFO "$TERMINFO"
9233 ### use option --disable-big-core to make tic run on small machines
9234 ### We need 4Mb, check if we can allocate 50% more than that.
9235 echo "$as_me:9235: checking if big-core option selected" >&5
9236 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9238 # Check whether --enable-big-core or --disable-big-core was given.
9239 if test "${enable_big_core+set}" = set; then
9240 enableval="$enable_big_core"
9241 with_big_core=$enableval
9243 if test "$cross_compiling" = yes; then
9246 cat >"conftest.$ac_ext" <<_ACEOF
9247 #line 9247 "configure"
9248 #include "confdefs.h"
9253 unsigned long n = 6000000L;
9254 char *s = malloc(n);
9257 ${cf_cv_main_return:-return}(s == 0);
9260 rm -f "conftest$ac_exeext"
9261 if { (eval echo "$as_me:9261: \"$ac_link\"") >&5
9262 (eval $ac_link) 2>&5
9264 echo "$as_me:9264: \$? = $ac_status" >&5
9265 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9266 { (eval echo "$as_me:9266: \"$ac_try\"") >&5
9269 echo "$as_me:9269: \$? = $ac_status" >&5
9270 (exit "$ac_status"); }; }; then
9273 echo "$as_me: program exited with status $ac_status" >&5
9274 echo "$as_me: failed program was:" >&5
9275 cat "conftest.$ac_ext" >&5
9278 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9281 echo "$as_me:9281: result: $with_big_core" >&5
9282 echo "${ECHO_T}$with_big_core" >&6
9283 test "x$with_big_core" = "xyes" &&
9284 cat >>confdefs.h <<\EOF
9285 #define HAVE_BIG_CORE 1
9288 ### ISO C only guarantees 512-char strings, we have tables which load faster
9289 ### when constructed using "big" strings. More than the C compiler, the awk
9290 ### program is a limit on most vendor UNIX systems. Check that we can build.
9291 echo "$as_me:9291: checking if big-strings option selected" >&5
9292 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9294 # Check whether --enable-big-strings or --disable-big-strings was given.
9295 if test "${enable_big_strings+set}" = set; then
9296 enableval="$enable_big_strings"
9297 with_big_strings=$enableval
9302 eval with_big_strings=no
9305 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9306 | $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
9307 eval with_big_strings=yes
9309 eval with_big_strings=no
9315 echo "$as_me:9315: result: $with_big_strings" >&5
9316 echo "${ECHO_T}$with_big_strings" >&6
9319 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9321 ### use option --enable-termcap to compile in the termcap fallback support
9322 echo "$as_me:9322: checking if you want termcap-fallback support" >&5
9323 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9325 # Check whether --enable-termcap or --disable-termcap was given.
9326 if test "${enable_termcap+set}" = set; then
9327 enableval="$enable_termcap"
9328 with_termcap=$enableval
9332 echo "$as_me:9332: result: $with_termcap" >&5
9333 echo "${ECHO_T}$with_termcap" >&6
9335 NCURSES_USE_TERMCAP=0
9336 if test "x$with_termcap" != "xyes" ; then
9337 if test "$use_database" = no ; then
9338 if test -z "$with_fallback" ; then
9339 { { echo "$as_me:9339: error: You have disabled the database w/o specifying fallbacks" >&5
9340 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9341 { (exit 1); exit 1; }; }
9345 cat >>confdefs.h <<\EOF
9346 #define PURE_TERMINFO 1
9351 if test "$with_ticlib" != no ; then
9352 { { echo "$as_me:9352: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9353 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9354 { (exit 1); exit 1; }; }
9357 NCURSES_USE_TERMCAP=1
9358 echo "$as_me:9358: checking for list of termcap files" >&5
9359 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9361 # Check whether --with-termpath or --without-termpath was given.
9362 if test "${with_termpath+set}" = set; then
9363 withval="$with_termpath"
9366 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9368 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9370 for cf_src_path in $withval
9373 if test "x$prefix" != xNONE; then
9374 cf_path_syntax="$prefix"
9376 cf_path_syntax="$ac_default_prefix"
9379 case ".$cf_src_path" in
9384 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9386 (.\$\{*prefix\}*|.\$\{*dir\}*)
9387 eval cf_src_path="$cf_src_path"
9388 case ".$cf_src_path" in
9390 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9395 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9398 { { echo "$as_me:9398: error: expected a pathname, not \"$cf_src_path\"" >&5
9399 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9400 { (exit 1); exit 1; }; }
9404 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9405 cf_dst_path="${cf_dst_path}${cf_src_path}"
9409 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9410 # so we have to check/work around. We do prefer the result of "eval"...
9411 eval cf_dst_eval="$cf_dst_path"
9412 case "x$cf_dst_eval" in
9414 TERMPATH=$cf_dst_path
9417 TERMPATH="$cf_dst_eval"
9421 echo "$as_me:9421: result: $TERMPATH" >&5
9422 echo "${ECHO_T}$TERMPATH" >&6
9423 test -n "$TERMPATH" &&
9424 cat >>confdefs.h <<EOF
9425 #define TERMPATH "$TERMPATH"
9428 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9429 echo "$as_me:9429: checking if fast termcap-loader is needed" >&5
9430 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9432 # Check whether --enable-getcap or --disable-getcap was given.
9433 if test "${enable_getcap+set}" = set; then
9434 enableval="$enable_getcap"
9435 with_getcap=$enableval
9439 echo "$as_me:9439: result: $with_getcap" >&5
9440 echo "${ECHO_T}$with_getcap" >&6
9441 test "x$with_getcap" = "xyes" &&
9442 cat >>confdefs.h <<\EOF
9443 #define USE_GETCAP 1
9446 echo "$as_me:9446: checking if translated termcaps will be cached in ~/.terminfo" >&5
9447 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9449 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9450 if test "${enable_getcap_cache+set}" = set; then
9451 enableval="$enable_getcap_cache"
9452 with_getcap_cache=$enableval
9454 with_getcap_cache=no
9456 echo "$as_me:9456: result: $with_getcap_cache" >&5
9457 echo "${ECHO_T}$with_getcap_cache" >&6
9458 test "x$with_getcap_cache" = "xyes" &&
9459 cat >>confdefs.h <<\EOF
9460 #define USE_GETCAP_CACHE 1
9465 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9466 echo "$as_me:9466: checking if ~/.terminfo is wanted" >&5
9467 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9469 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9470 if test "${enable_home_terminfo+set}" = set; then
9471 enableval="$enable_home_terminfo"
9472 with_home_terminfo=$enableval
9474 with_home_terminfo=yes
9476 echo "$as_me:9476: result: $with_home_terminfo" >&5
9477 echo "${ECHO_T}$with_home_terminfo" >&6
9478 test "x$with_home_terminfo" = "xyes" &&
9479 cat >>confdefs.h <<\EOF
9480 #define USE_HOME_TERMINFO 1
9483 echo "$as_me:9483: checking if you want to permit root to use ncurses environment variables" >&5
9484 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9486 # Check whether --enable-root-environ or --disable-root-environ was given.
9487 if test "${enable_root_environ+set}" = set; then
9488 enableval="$enable_root_environ"
9489 with_root_environ=$enableval
9491 with_root_environ=yes
9493 echo "$as_me:9493: result: $with_root_environ" >&5
9494 echo "${ECHO_T}$with_root_environ" >&6
9495 test "x$with_root_environ" = xyes &&
9496 cat >>confdefs.h <<\EOF
9497 #define USE_ROOT_ENVIRON 1
9500 echo "$as_me:9500: checking if you want to permit setuid programs to access all files" >&5
9501 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9503 # Check whether --enable-root-environ or --disable-root-environ was given.
9504 if test "${enable_root_environ+set}" = set; then
9505 enableval="$enable_root_environ"
9506 with_root_access=$enableval
9508 with_root_access=yes
9510 echo "$as_me:9510: result: $with_root_access" >&5
9511 echo "${ECHO_T}$with_root_access" >&6
9512 test "x$with_root_access" = xyes &&
9513 cat >>confdefs.h <<\EOF
9514 #define USE_ROOT_ACCESS 1
9517 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9518 ### to reduce storage requirements for the terminfo database.
9524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9525 echo "$as_me:9525: checking for $ac_header" >&5
9526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 cat >"conftest.$ac_ext" <<_ACEOF
9531 #line 9531 "configure"
9532 #include "confdefs.h"
9533 #include <$ac_header>
9535 if { (eval echo "$as_me:9535: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9536 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9538 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:9541: \$? = $ac_status" >&5
9542 (exit "$ac_status"); } >/dev/null; then
9543 if test -s conftest.err; then
9544 ac_cpp_err=$ac_c_preproc_warn_flag
9551 if test -z "$ac_cpp_err"; then
9552 eval "$as_ac_Header=yes"
9554 echo "$as_me: failed program was:" >&5
9555 cat "conftest.$ac_ext" >&5
9556 eval "$as_ac_Header=no"
9558 rm -f conftest.err "conftest.$ac_ext"
9560 echo "$as_me:9560: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9561 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9562 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9563 cat >>confdefs.h <<EOF
9564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:9575: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >"conftest.$ac_ext" <<_ACEOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9583 #define $ac_func autoconf_temporary
9584 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9591 /* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */
9593 char $ac_func (void);
9599 /* The GNU C library defines stubs for functions which it implements
9600 to always fail with ENOSYS. Some functions are actually named
9601 something starting with __ and the normal name is an alias. */
9602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9603 #error found stub for $ac_func
9611 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9612 if { (eval echo "$as_me:9612: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>&5
9615 echo "$as_me:9615: \$? = $ac_status" >&5
9616 (exit "$ac_status"); } &&
9617 { ac_try='test -s "conftest$ac_exeext"'
9618 { (eval echo "$as_me:9618: \"$ac_try\"") >&5
9621 echo "$as_me:9621: \$? = $ac_status" >&5
9622 (exit "$ac_status"); }; }; then
9623 eval "$as_ac_var=yes"
9625 echo "$as_me: failed program was:" >&5
9626 cat "conftest.$ac_ext" >&5
9627 eval "$as_ac_var=no"
9629 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9631 echo "$as_me:9631: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9632 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9633 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9634 cat >>confdefs.h <<EOF
9635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9641 if test "$cross_compiling" = yes ; then
9647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9648 echo "$as_me:9648: checking for $ac_func" >&5
9649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9650 if eval "test \"\${$as_ac_var+set}\" = set"; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 cat >"conftest.$ac_ext" <<_ACEOF
9654 #line 9654 "configure"
9655 #include "confdefs.h"
9656 #define $ac_func autoconf_temporary
9657 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char $ac_func (void);
9672 /* The GNU C library defines stubs for functions which it implements
9673 to always fail with ENOSYS. Some functions are actually named
9674 something starting with __ and the normal name is an alias. */
9675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9676 #error found stub for $ac_func
9684 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9685 if { (eval echo "$as_me:9685: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9688 echo "$as_me:9688: \$? = $ac_status" >&5
9689 (exit "$ac_status"); } &&
9690 { ac_try='test -s "conftest$ac_exeext"'
9691 { (eval echo "$as_me:9691: \"$ac_try\"") >&5
9694 echo "$as_me:9694: \$? = $ac_status" >&5
9695 (exit "$ac_status"); }; }; then
9696 eval "$as_ac_var=yes"
9698 echo "$as_me: failed program was:" >&5
9699 cat "conftest.$ac_ext" >&5
9700 eval "$as_ac_var=no"
9702 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9704 echo "$as_me:9704: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9706 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9707 cat >>confdefs.h <<EOF
9708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715 echo "$as_me:9715: checking if link/symlink functions work" >&5
9716 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9717 if test "${cf_cv_link_funcs+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 for cf_func in link symlink ; do
9723 if test "$cross_compiling" = yes; then
9725 eval 'ac_cv_func_'$cf_func'=error'
9727 cat >"conftest.$ac_ext" <<_ACEOF
9728 #line 9728 "configure"
9729 #include "confdefs.h"
9732 #include <sys/types.h>
9733 #include <sys/stat.h>
9734 #ifdef HAVE_UNISTD_H
9740 char *src = "conftest.tmp";
9741 char *dst = "conftest.chk";
9742 struct stat src_sb, dst_sb;
9743 FILE *fp = fopen(src, "w");
9744 if (fp == 0) { fail = 3; } else {
9745 fclose(fp); stat(src, &src_sb);
9746 if ($cf_func(src, dst) < 0) {
9748 } else if (stat(dst, &dst_sb) < 0) {
9751 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
9752 if (diff < 0) diff = -diff;
9753 if (diff > 2) fail = 3;
9757 unlink(dst); unlink(src);
9759 remove(dst); remove(src);
9761 ${cf_cv_main_return:-return} (fail);
9765 rm -f "conftest$ac_exeext"
9766 if { (eval echo "$as_me:9766: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9769 echo "$as_me:9769: \$? = $ac_status" >&5
9770 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9771 { (eval echo "$as_me:9771: \"$ac_try\"") >&5
9774 echo "$as_me:9774: \$? = $ac_status" >&5
9775 (exit "$ac_status"); }; }; then
9777 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9778 eval 'ac_cv_func_'$cf_func'=yes'
9780 echo "$as_me: program exited with status $ac_status" >&5
9781 echo "$as_me: failed program was:" >&5
9782 cat "conftest.$ac_ext" >&5
9784 eval 'ac_cv_func_'$cf_func'=no'
9786 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9789 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9792 echo "$as_me:9792: result: $cf_cv_link_funcs" >&5
9793 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9794 test "$ac_cv_func_link" = yes &&
9795 cat >>confdefs.h <<\EOF
9799 test "$ac_cv_func_symlink" = yes &&
9800 cat >>confdefs.h <<\EOF
9801 #define HAVE_SYMLINK 1
9809 # soft links (symbolic links) are useful for some systems where hard links do
9810 # not work, or to make it simpler to copy terminfo trees around.
9811 if test "x$ac_cv_func_symlink" = xyes ; then
9812 echo "$as_me:9812: checking if tic should use symbolic links" >&5
9813 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9815 # Check whether --enable-symlinks or --disable-symlinks was given.
9816 if test "${enable_symlinks+set}" = set; then
9817 enableval="$enable_symlinks"
9818 with_symlinks=$enableval
9822 echo "$as_me:9822: result: $with_symlinks" >&5
9823 echo "${ECHO_T}$with_symlinks" >&6
9826 # If we have hard links and did not choose to use soft links instead, there is
9827 # no reason to make this choice optional - use the hard links.
9828 if test "$with_symlinks" = no ; then
9829 echo "$as_me:9829: checking if tic should use hard links" >&5
9830 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9831 if test "x$ac_cv_func_link" = xyes ; then
9836 echo "$as_me:9836: result: $with_links" >&5
9837 echo "${ECHO_T}$with_links" >&6
9840 test "x$with_links" = xyes &&
9841 cat >>confdefs.h <<\EOF
9845 test "x$with_symlinks" = xyes &&
9846 cat >>confdefs.h <<\EOF
9847 #define USE_SYMLINKS 1
9850 ### use option --enable-broken-linker to force on use of broken-linker support
9852 echo "$as_me:9852: checking if you want broken-linker support code" >&5
9853 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9855 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9856 if test "${enable_broken_linker+set}" = set; then
9857 enableval="$enable_broken_linker"
9858 with_broken_linker=$enableval
9860 with_broken_linker=no
9862 echo "$as_me:9862: result: $with_broken_linker" >&5
9863 echo "${ECHO_T}$with_broken_linker" >&6
9865 : "${BROKEN_LINKER:=0}"
9866 if test "x$with_broken_linker" = xyes ; then
9868 cat >>confdefs.h <<\EOF
9869 #define BROKEN_LINKER 1
9875 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9876 echo "$as_me:9876: checking if tputs should process BSD-style prefix padding" >&5
9877 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9879 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9880 if test "${enable_bsdpad+set}" = set; then
9881 enableval="$enable_bsdpad"
9882 with_bsdpad=$enableval
9886 echo "$as_me:9886: result: $with_bsdpad" >&5
9887 echo "${ECHO_T}$with_bsdpad" >&6
9888 test "x$with_bsdpad" = xyes &&
9889 cat >>confdefs.h <<\EOF
9893 ### use option --enable-widec to turn on use of wide-character support
9902 # Check to define _XOPEN_SOURCE "automatically"
9903 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9905 echo "$as_me:9905: checking if the POSIX test-macros are already defined" >&5
9906 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9907 if test "${cf_cv_posix_visible+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >"conftest.$ac_ext" <<_ACEOF
9912 #line 9912 "configure"
9913 #include "confdefs.h"
9919 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9920 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9921 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9922 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9923 #error conflicting symbols found
9930 rm -f "conftest.$ac_objext"
9931 if { (eval echo "$as_me:9931: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit "$ac_status"); } &&
9936 { ac_try='test -s "conftest.$ac_objext"'
9937 { (eval echo "$as_me:9937: \"$ac_try\"") >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 (exit "$ac_status"); }; }; then
9942 cf_cv_posix_visible=no
9944 echo "$as_me: failed program was:" >&5
9945 cat "conftest.$ac_ext" >&5
9946 cf_cv_posix_visible=yes
9948 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9951 echo "$as_me:9951: result: $cf_cv_posix_visible" >&5
9952 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9954 if test "$cf_cv_posix_visible" = no; then
9957 cf_POSIX_C_SOURCE=199506L
9962 cf_xopen_source="-D_ALL_SOURCE"
9968 cf_xopen_source="-D_APPLE_C_SOURCE"
9971 cf_xopen_source="-D_DARWIN_C_SOURCE"
9974 (freebsd*|dragonfly*|midnightbsd*)
9975 # 5.x headers associate
9976 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9977 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9978 cf_POSIX_C_SOURCE=200112L
9980 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9983 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9986 cf_xopen_source="-D_HPUX_SOURCE"
9989 cf_xopen_source="-D_SGI_SOURCE"
9992 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9994 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9996 echo "$as_me:9996: checking if this is the GNU C library" >&5
9997 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9998 if test "${cf_cv_gnu_library+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 cat >"conftest.$ac_ext" <<_ACEOF
10003 #line 10003 "configure"
10004 #include "confdefs.h"
10005 #include <sys/types.h>
10010 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10012 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10015 # error not GNU C library
10021 rm -f "conftest.$ac_objext"
10022 if { (eval echo "$as_me:10022: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>&5
10025 echo "$as_me:10025: \$? = $ac_status" >&5
10026 (exit "$ac_status"); } &&
10027 { ac_try='test -s "conftest.$ac_objext"'
10028 { (eval echo "$as_me:10028: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:10031: \$? = $ac_status" >&5
10032 (exit "$ac_status"); }; }; then
10033 cf_cv_gnu_library=yes
10035 echo "$as_me: failed program was:" >&5
10036 cat "conftest.$ac_ext" >&5
10037 cf_cv_gnu_library=no
10039 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10042 echo "$as_me:10042: result: $cf_cv_gnu_library" >&5
10043 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10045 if test x$cf_cv_gnu_library = xyes; then
10047 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10048 # was changed to help a little. newlib incorporated the change about 4
10050 echo "$as_me:10050: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10051 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10052 if test "${cf_cv_gnu_library_219+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cf_save="$CPPFLAGS"
10058 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10059 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10061 cat >"conftest.$ac_ext" <<_ACEOF
10062 #line 10062 "configure"
10063 #include "confdefs.h"
10064 #include <sys/types.h>
10069 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10071 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10074 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10080 rm -f "conftest.$ac_objext"
10081 if { (eval echo "$as_me:10081: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>&5
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit "$ac_status"); } &&
10086 { ac_try='test -s "conftest.$ac_objext"'
10087 { (eval echo "$as_me:10087: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10090 echo "$as_me:10090: \$? = $ac_status" >&5
10091 (exit "$ac_status"); }; }; then
10092 cf_cv_gnu_library_219=yes
10094 echo "$as_me: failed program was:" >&5
10095 cat "conftest.$ac_ext" >&5
10096 cf_cv_gnu_library_219=no
10098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10099 CPPFLAGS="$cf_save"
10102 echo "$as_me:10102: result: $cf_cv_gnu_library_219" >&5
10103 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10105 if test "x$cf_cv_gnu_library_219" = xyes; then
10106 cf_save="$CPPFLAGS"
10107 echo "$as_me:10107: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10108 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10109 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 cf_new_extra_cppflags=
10118 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10120 case "$cf_fix_cppflags" in
10122 case "$cf_add_cflags" in
10123 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10124 case "$cf_add_cflags" in
10126 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10128 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10129 && test -z "${cf_tst_cflags}" \
10130 && cf_fix_cppflags=yes
10132 if test "$cf_fix_cppflags" = yes ; then
10134 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10135 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10138 elif test "${cf_tst_cflags}" = "\"'" ; then
10140 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10141 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10147 case "$CPPFLAGS" in
10151 case "$cf_add_cflags" in
10153 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10155 CPPFLAGS=`echo "$CPPFLAGS" | \
10156 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10157 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10162 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10163 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10170 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10171 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10178 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10179 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10181 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10183 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10184 && test -z "${cf_tst_cflags}" \
10185 && cf_fix_cppflags=no
10190 if test -n "$cf_new_cflags" ; then
10192 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10193 CFLAGS="${CFLAGS}$cf_new_cflags"
10197 if test -n "$cf_new_cppflags" ; then
10199 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10200 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10204 if test -n "$cf_new_extra_cppflags" ; then
10206 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10207 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10211 cat >"conftest.$ac_ext" <<_ACEOF
10212 #line 10212 "configure"
10213 #include "confdefs.h"
10215 #include <limits.h>
10216 #include <sys/types.h>
10222 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10225 # error GNU C library is too old
10231 rm -f "conftest.$ac_objext"
10232 if { (eval echo "$as_me:10232: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>&5
10235 echo "$as_me:10235: \$? = $ac_status" >&5
10236 (exit "$ac_status"); } &&
10237 { ac_try='test -s "conftest.$ac_objext"'
10238 { (eval echo "$as_me:10238: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:10241: \$? = $ac_status" >&5
10242 (exit "$ac_status"); }; }; then
10243 cf_cv_gnu_dftsrc_219=yes
10245 echo "$as_me: failed program was:" >&5
10246 cat "conftest.$ac_ext" >&5
10247 cf_cv_gnu_dftsrc_219=no
10249 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10252 echo "$as_me:10252: result: $cf_cv_gnu_dftsrc_219" >&5
10253 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10254 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10256 cf_cv_gnu_dftsrc_219=maybe
10259 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10261 echo "$as_me:10261: checking if we must define _GNU_SOURCE" >&5
10262 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10263 if test "${cf_cv_gnu_source+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 cat >"conftest.$ac_ext" <<_ACEOF
10268 #line 10268 "configure"
10269 #include "confdefs.h"
10270 #include <sys/types.h>
10275 #ifndef _XOPEN_SOURCE
10276 #error expected _XOPEN_SOURCE to be defined
10282 rm -f "conftest.$ac_objext"
10283 if { (eval echo "$as_me:10283: \"$ac_compile\"") >&5
10284 (eval $ac_compile) 2>&5
10286 echo "$as_me:10286: \$? = $ac_status" >&5
10287 (exit "$ac_status"); } &&
10288 { ac_try='test -s "conftest.$ac_objext"'
10289 { (eval echo "$as_me:10289: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10292 echo "$as_me:10292: \$? = $ac_status" >&5
10293 (exit "$ac_status"); }; }; then
10294 cf_cv_gnu_source=no
10296 echo "$as_me: failed program was:" >&5
10297 cat "conftest.$ac_ext" >&5
10298 cf_save="$CPPFLAGS"
10303 cf_new_extra_cppflags=
10305 for cf_add_cflags in -D_GNU_SOURCE
10307 case "$cf_fix_cppflags" in
10309 case "$cf_add_cflags" in
10310 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10311 case "$cf_add_cflags" in
10313 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10315 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10316 && test -z "${cf_tst_cflags}" \
10317 && cf_fix_cppflags=yes
10319 if test "$cf_fix_cppflags" = yes ; then
10321 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10322 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10325 elif test "${cf_tst_cflags}" = "\"'" ; then
10327 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10328 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10334 case "$CPPFLAGS" in
10338 case "$cf_add_cflags" in
10340 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10342 CPPFLAGS=`echo "$CPPFLAGS" | \
10343 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10344 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10349 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10350 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10357 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10358 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10365 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10366 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10368 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10370 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10371 && test -z "${cf_tst_cflags}" \
10372 && cf_fix_cppflags=no
10377 if test -n "$cf_new_cflags" ; then
10379 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10380 CFLAGS="${CFLAGS}$cf_new_cflags"
10384 if test -n "$cf_new_cppflags" ; then
10386 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10387 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10391 if test -n "$cf_new_extra_cppflags" ; then
10393 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10394 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10398 cat >"conftest.$ac_ext" <<_ACEOF
10399 #line 10399 "configure"
10400 #include "confdefs.h"
10401 #include <sys/types.h>
10406 #ifdef _XOPEN_SOURCE
10407 #error expected _XOPEN_SOURCE to be undefined
10413 rm -f "conftest.$ac_objext"
10414 if { (eval echo "$as_me:10414: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:10417: \$? = $ac_status" >&5
10418 (exit "$ac_status"); } &&
10419 { ac_try='test -s "conftest.$ac_objext"'
10420 { (eval echo "$as_me:10420: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:10423: \$? = $ac_status" >&5
10424 (exit "$ac_status"); }; }; then
10425 cf_cv_gnu_source=no
10427 echo "$as_me: failed program was:" >&5
10428 cat "conftest.$ac_ext" >&5
10429 cf_cv_gnu_source=yes
10431 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10432 CPPFLAGS="$cf_save"
10435 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10438 echo "$as_me:10438: result: $cf_cv_gnu_source" >&5
10439 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10441 if test "$cf_cv_gnu_source" = yes
10443 echo "$as_me:10443: checking if we should also define _DEFAULT_SOURCE" >&5
10444 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10445 if test "${cf_cv_default_source+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10450 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10452 cat >"conftest.$ac_ext" <<_ACEOF
10453 #line 10453 "configure"
10454 #include "confdefs.h"
10455 #include <sys/types.h>
10460 #ifdef _DEFAULT_SOURCE
10461 #error expected _DEFAULT_SOURCE to be undefined
10467 rm -f "conftest.$ac_objext"
10468 if { (eval echo "$as_me:10468: \"$ac_compile\"") >&5
10469 (eval $ac_compile) 2>&5
10471 echo "$as_me:10471: \$? = $ac_status" >&5
10472 (exit "$ac_status"); } &&
10473 { ac_try='test -s "conftest.$ac_objext"'
10474 { (eval echo "$as_me:10474: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:10477: \$? = $ac_status" >&5
10478 (exit "$ac_status"); }; }; then
10479 cf_cv_default_source=no
10481 echo "$as_me: failed program was:" >&5
10482 cat "conftest.$ac_ext" >&5
10483 cf_cv_default_source=yes
10485 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10488 echo "$as_me:10488: result: $cf_cv_default_source" >&5
10489 echo "${ECHO_T}$cf_cv_default_source" >&6
10490 if test "$cf_cv_default_source" = yes
10493 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10494 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10504 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10507 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10510 if test "$cf_cv_posix_visible" = no; then
10512 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10514 cf_save_CFLAGS="$CFLAGS"
10515 cf_save_CPPFLAGS="$CPPFLAGS"
10517 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10518 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10519 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10521 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10522 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10523 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10525 echo "$as_me:10525: checking if we should define _POSIX_C_SOURCE" >&5
10526 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10527 if test "${cf_cv_posix_c_source+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 echo "${as_me:-configure}:10531: testing if the symbol is already defined go no further ..." 1>&5
10533 cat >"conftest.$ac_ext" <<_ACEOF
10534 #line 10534 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10541 #ifndef _POSIX_C_SOURCE
10548 rm -f "conftest.$ac_objext"
10549 if { (eval echo "$as_me:10549: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>&5
10552 echo "$as_me:10552: \$? = $ac_status" >&5
10553 (exit "$ac_status"); } &&
10554 { ac_try='test -s "conftest.$ac_objext"'
10555 { (eval echo "$as_me:10555: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:10558: \$? = $ac_status" >&5
10559 (exit "$ac_status"); }; }; then
10560 cf_cv_posix_c_source=no
10562 echo "$as_me: failed program was:" >&5
10563 cat "conftest.$ac_ext" >&5
10564 cf_want_posix_source=no
10565 case .$cf_POSIX_C_SOURCE in
10567 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10570 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10571 cf_want_posix_source=yes
10574 cf_want_posix_source=yes
10577 if test "$cf_want_posix_source" = yes ; then
10578 cat >"conftest.$ac_ext" <<_ACEOF
10579 #line 10579 "configure"
10580 #include "confdefs.h"
10581 #include <sys/types.h>
10586 #ifdef _POSIX_SOURCE
10593 rm -f "conftest.$ac_objext"
10594 if { (eval echo "$as_me:10594: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>&5
10597 echo "$as_me:10597: \$? = $ac_status" >&5
10598 (exit "$ac_status"); } &&
10599 { ac_try='test -s "conftest.$ac_objext"'
10600 { (eval echo "$as_me:10600: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:10603: \$? = $ac_status" >&5
10604 (exit "$ac_status"); }; }; then
10607 echo "$as_me: failed program was:" >&5
10608 cat "conftest.$ac_ext" >&5
10609 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10611 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10614 echo "${as_me:-configure}:10614: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10616 CFLAGS="$cf_trim_CFLAGS"
10617 CPPFLAGS="$cf_trim_CPPFLAGS"
10619 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10620 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10622 echo "${as_me:-configure}:10622: testing if the second compile does not leave our definition intact error ..." 1>&5
10624 cat >"conftest.$ac_ext" <<_ACEOF
10625 #line 10625 "configure"
10626 #include "confdefs.h"
10627 #include <sys/types.h>
10632 #ifndef _POSIX_C_SOURCE
10639 rm -f "conftest.$ac_objext"
10640 if { (eval echo "$as_me:10640: \"$ac_compile\"") >&5
10641 (eval $ac_compile) 2>&5
10643 echo "$as_me:10643: \$? = $ac_status" >&5
10644 (exit "$ac_status"); } &&
10645 { ac_try='test -s "conftest.$ac_objext"'
10646 { (eval echo "$as_me:10646: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:10649: \$? = $ac_status" >&5
10650 (exit "$ac_status"); }; }; then
10653 echo "$as_me: failed program was:" >&5
10654 cat "conftest.$ac_ext" >&5
10655 cf_cv_posix_c_source=no
10657 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10658 CFLAGS="$cf_save_CFLAGS"
10659 CPPFLAGS="$cf_save_CPPFLAGS"
10662 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10665 echo "$as_me:10665: result: $cf_cv_posix_c_source" >&5
10666 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10668 if test "$cf_cv_posix_c_source" != no ; then
10669 CFLAGS="$cf_trim_CFLAGS"
10670 CPPFLAGS="$cf_trim_CPPFLAGS"
10675 cf_new_extra_cppflags=
10677 for cf_add_cflags in $cf_cv_posix_c_source
10679 case "$cf_fix_cppflags" in
10681 case "$cf_add_cflags" in
10682 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10683 case "$cf_add_cflags" in
10685 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10687 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10688 && test -z "${cf_tst_cflags}" \
10689 && cf_fix_cppflags=yes
10691 if test "$cf_fix_cppflags" = yes ; then
10693 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10694 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10697 elif test "${cf_tst_cflags}" = "\"'" ; then
10699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10706 case "$CPPFLAGS" in
10710 case "$cf_add_cflags" in
10712 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10714 CPPFLAGS=`echo "$CPPFLAGS" | \
10715 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10716 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10721 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10722 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10729 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10730 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10737 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10738 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10740 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10743 && test -z "${cf_tst_cflags}" \
10744 && cf_fix_cppflags=no
10749 if test -n "$cf_new_cflags" ; then
10751 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10752 CFLAGS="${CFLAGS}$cf_new_cflags"
10756 if test -n "$cf_new_cppflags" ; then
10758 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10759 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10763 if test -n "$cf_new_extra_cppflags" ; then
10765 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10766 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10772 fi # cf_cv_posix_visible
10776 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10779 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
10780 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
10781 # Abusing the conformance level is a workaround.
10782 { echo "$as_me:10782: WARNING: this system does not provide usable locale support" >&5
10783 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
10784 cf_xopen_source="-D_BSD_SOURCE"
10785 cf_XOPEN_SOURCE=700
10788 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10789 cf_xopen_source="-D_BSD_SOURCE"
10790 cf_XOPEN_SOURCE=600
10793 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10796 cf_xopen_source="-D_OSF_SOURCE"
10799 cf_xopen_source="-D_QNX_SOURCE"
10802 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10805 cf_xopen_source="-D__EXTENSIONS__"
10806 cf_cv_xopen_source=broken
10808 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10814 echo "$as_me:10814: checking if we should define _XOPEN_SOURCE" >&5
10815 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10816 if test "${cf_cv_xopen_source+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 cat >"conftest.$ac_ext" <<_ACEOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10824 #include <stdlib.h>
10825 #include <string.h>
10826 #include <sys/types.h>
10832 #ifndef _XOPEN_SOURCE
10840 rm -f "conftest.$ac_objext"
10841 if { (eval echo "$as_me:10841: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>&5
10844 echo "$as_me:10844: \$? = $ac_status" >&5
10845 (exit "$ac_status"); } &&
10846 { ac_try='test -s "conftest.$ac_objext"'
10847 { (eval echo "$as_me:10847: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:10850: \$? = $ac_status" >&5
10851 (exit "$ac_status"); }; }; then
10852 cf_cv_xopen_source=no
10854 echo "$as_me: failed program was:" >&5
10855 cat "conftest.$ac_ext" >&5
10856 cf_save="$CPPFLAGS"
10858 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10859 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10861 cat >"conftest.$ac_ext" <<_ACEOF
10862 #line 10862 "configure"
10863 #include "confdefs.h"
10865 #include <stdlib.h>
10866 #include <string.h>
10867 #include <sys/types.h>
10873 #ifndef _XOPEN_SOURCE
10881 rm -f "conftest.$ac_objext"
10882 if { (eval echo "$as_me:10882: \"$ac_compile\"") >&5
10883 (eval $ac_compile) 2>&5
10885 echo "$as_me:10885: \$? = $ac_status" >&5
10886 (exit "$ac_status"); } &&
10887 { ac_try='test -s "conftest.$ac_objext"'
10888 { (eval echo "$as_me:10888: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:10891: \$? = $ac_status" >&5
10892 (exit "$ac_status"); }; }; then
10893 cf_cv_xopen_source=no
10895 echo "$as_me: failed program was:" >&5
10896 cat "conftest.$ac_ext" >&5
10897 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10899 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10900 CPPFLAGS="$cf_save"
10903 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10906 echo "$as_me:10906: result: $cf_cv_xopen_source" >&5
10907 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10909 if test "$cf_cv_xopen_source" != no ; then
10911 CFLAGS=`echo "$CFLAGS" | \
10912 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10913 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10915 CPPFLAGS=`echo "$CPPFLAGS" | \
10916 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10917 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10919 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10921 for cf_add_cflags in $cf_temp_xopen_source
10923 case "x$cf_add_cflags" in
10926 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10929 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10930 test "$CFLAGS" != "$cf_old_cflag" || break
10932 CFLAGS="$cf_old_cflag"
10935 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10938 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10939 test "$CPPFLAGS" != "$cf_old_cflag" || break
10941 CPPFLAGS="$cf_old_cflag"
10950 cf_new_extra_cppflags=
10952 for cf_add_cflags in $cf_add_cflags
10954 case "$cf_fix_cppflags" in
10956 case "$cf_add_cflags" in
10957 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10958 case "$cf_add_cflags" in
10960 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10962 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10963 && test -z "${cf_tst_cflags}" \
10964 && cf_fix_cppflags=yes
10966 if test "$cf_fix_cppflags" = yes ; then
10968 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10969 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10972 elif test "${cf_tst_cflags}" = "\"'" ; then
10974 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10975 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10981 case "$CPPFLAGS" in
10985 case "$cf_add_cflags" in
10987 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10989 CPPFLAGS=`echo "$CPPFLAGS" | \
10990 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10991 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10996 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10997 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11004 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11005 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11012 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11013 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11015 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11017 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11018 && test -z "${cf_tst_cflags}" \
11019 && cf_fix_cppflags=no
11024 if test -n "$cf_new_cflags" ; then
11026 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11027 CFLAGS="${CFLAGS}$cf_new_cflags"
11031 if test -n "$cf_new_cppflags" ; then
11033 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11034 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11038 if test -n "$cf_new_extra_cppflags" ; then
11040 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11041 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11049 cf_save_xopen_cppflags="$CPPFLAGS"
11051 if test "$cf_cv_posix_visible" = no; then
11053 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11055 cf_save_CFLAGS="$CFLAGS"
11056 cf_save_CPPFLAGS="$CPPFLAGS"
11058 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11059 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11060 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11062 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11063 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11064 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11066 echo "$as_me:11066: checking if we should define _POSIX_C_SOURCE" >&5
11067 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11068 if test "${cf_cv_posix_c_source+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 echo "${as_me:-configure}:11072: testing if the symbol is already defined go no further ..." 1>&5
11074 cat >"conftest.$ac_ext" <<_ACEOF
11075 #line 11075 "configure"
11076 #include "confdefs.h"
11077 #include <sys/types.h>
11082 #ifndef _POSIX_C_SOURCE
11089 rm -f "conftest.$ac_objext"
11090 if { (eval echo "$as_me:11090: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>&5
11093 echo "$as_me:11093: \$? = $ac_status" >&5
11094 (exit "$ac_status"); } &&
11095 { ac_try='test -s "conftest.$ac_objext"'
11096 { (eval echo "$as_me:11096: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:11099: \$? = $ac_status" >&5
11100 (exit "$ac_status"); }; }; then
11101 cf_cv_posix_c_source=no
11103 echo "$as_me: failed program was:" >&5
11104 cat "conftest.$ac_ext" >&5
11105 cf_want_posix_source=no
11106 case .$cf_POSIX_C_SOURCE in
11108 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11111 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11112 cf_want_posix_source=yes
11115 cf_want_posix_source=yes
11118 if test "$cf_want_posix_source" = yes ; then
11119 cat >"conftest.$ac_ext" <<_ACEOF
11120 #line 11120 "configure"
11121 #include "confdefs.h"
11122 #include <sys/types.h>
11127 #ifdef _POSIX_SOURCE
11134 rm -f "conftest.$ac_objext"
11135 if { (eval echo "$as_me:11135: \"$ac_compile\"") >&5
11136 (eval $ac_compile) 2>&5
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 (exit "$ac_status"); } &&
11140 { ac_try='test -s "conftest.$ac_objext"'
11141 { (eval echo "$as_me:11141: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit "$ac_status"); }; }; then
11148 echo "$as_me: failed program was:" >&5
11149 cat "conftest.$ac_ext" >&5
11150 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11152 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11155 echo "${as_me:-configure}:11155: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11157 CFLAGS="$cf_trim_CFLAGS"
11158 CPPFLAGS="$cf_trim_CPPFLAGS"
11160 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11161 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11163 echo "${as_me:-configure}:11163: testing if the second compile does not leave our definition intact error ..." 1>&5
11165 cat >"conftest.$ac_ext" <<_ACEOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11168 #include <sys/types.h>
11173 #ifndef _POSIX_C_SOURCE
11180 rm -f "conftest.$ac_objext"
11181 if { (eval echo "$as_me:11181: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>&5
11184 echo "$as_me:11184: \$? = $ac_status" >&5
11185 (exit "$ac_status"); } &&
11186 { ac_try='test -s "conftest.$ac_objext"'
11187 { (eval echo "$as_me:11187: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:11190: \$? = $ac_status" >&5
11191 (exit "$ac_status"); }; }; then
11194 echo "$as_me: failed program was:" >&5
11195 cat "conftest.$ac_ext" >&5
11196 cf_cv_posix_c_source=no
11198 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11199 CFLAGS="$cf_save_CFLAGS"
11200 CPPFLAGS="$cf_save_CPPFLAGS"
11203 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11206 echo "$as_me:11206: result: $cf_cv_posix_c_source" >&5
11207 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11209 if test "$cf_cv_posix_c_source" != no ; then
11210 CFLAGS="$cf_trim_CFLAGS"
11211 CPPFLAGS="$cf_trim_CPPFLAGS"
11216 cf_new_extra_cppflags=
11218 for cf_add_cflags in $cf_cv_posix_c_source
11220 case "$cf_fix_cppflags" in
11222 case "$cf_add_cflags" in
11223 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11224 case "$cf_add_cflags" in
11226 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11228 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11229 && test -z "${cf_tst_cflags}" \
11230 && cf_fix_cppflags=yes
11232 if test "$cf_fix_cppflags" = yes ; then
11234 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11235 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11238 elif test "${cf_tst_cflags}" = "\"'" ; then
11240 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11241 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11247 case "$CPPFLAGS" in
11251 case "$cf_add_cflags" in
11253 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11255 CPPFLAGS=`echo "$CPPFLAGS" | \
11256 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11257 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11262 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11263 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11270 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11271 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11278 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11279 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11281 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11283 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11284 && test -z "${cf_tst_cflags}" \
11285 && cf_fix_cppflags=no
11290 if test -n "$cf_new_cflags" ; then
11292 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11293 CFLAGS="${CFLAGS}$cf_new_cflags"
11297 if test -n "$cf_new_cppflags" ; then
11299 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11300 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11304 if test -n "$cf_new_extra_cppflags" ; then
11306 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11307 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11313 fi # cf_cv_posix_visible
11315 # Some of these niche implementations use copy/paste, double-check...
11316 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE inteferes" 1>&6
11318 echo "${as_me:-configure}:11318: testing checking if _POSIX_C_SOURCE inteferes ..." 1>&5
11320 cat >"conftest.$ac_ext" <<_ACEOF
11321 #line 11321 "configure"
11322 #include "confdefs.h"
11324 #include <stdlib.h>
11325 #include <string.h>
11326 #include <sys/types.h>
11332 #ifndef _XOPEN_SOURCE
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
11354 echo "$as_me: failed program was:" >&5
11355 cat "conftest.$ac_ext" >&5
11357 { echo "$as_me:11357: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11358 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11359 CPPFLAGS="$cf_save_xopen_cppflags"
11361 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11365 if test -n "$cf_xopen_source" ; then
11367 for cf_add_cflags in $cf_xopen_source
11369 case "x$cf_add_cflags" in
11372 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11375 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11376 test "$CFLAGS" != "$cf_old_cflag" || break
11377 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11379 echo "${as_me:-configure}:11379: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11381 CFLAGS="$cf_old_cflag"
11384 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11387 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11388 test "$CPPFLAGS" != "$cf_old_cflag" || break
11389 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11391 echo "${as_me:-configure}:11391: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11393 CPPFLAGS="$cf_old_cflag"
11402 cf_new_extra_cppflags=
11404 for cf_add_cflags in $cf_add_cflags
11406 case "$cf_fix_cppflags" in
11408 case "$cf_add_cflags" in
11409 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11410 case "$cf_add_cflags" in
11412 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11414 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11415 && test -z "${cf_tst_cflags}" \
11416 && cf_fix_cppflags=yes
11418 if test "$cf_fix_cppflags" = yes ; then
11420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11424 elif test "${cf_tst_cflags}" = "\"'" ; then
11426 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11433 case "$CPPFLAGS" in
11437 case "$cf_add_cflags" in
11439 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11441 CPPFLAGS=`echo "$CPPFLAGS" | \
11442 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11443 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11448 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11449 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11456 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11457 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11464 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11465 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11467 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11469 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11470 && test -z "${cf_tst_cflags}" \
11471 && cf_fix_cppflags=no
11476 if test -n "$cf_new_cflags" ; then
11477 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11479 echo "${as_me:-configure}:11479: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11481 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11482 CFLAGS="${CFLAGS}$cf_new_cflags"
11486 if test -n "$cf_new_cppflags" ; then
11487 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11489 echo "${as_me:-configure}:11489: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11491 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11492 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11496 if test -n "$cf_new_extra_cppflags" ; then
11497 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11499 echo "${as_me:-configure}:11499: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11501 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11502 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11510 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11511 echo "$as_me:11511: checking if _XOPEN_SOURCE really is set" >&5
11512 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11513 cat >"conftest.$ac_ext" <<_ACEOF
11514 #line 11514 "configure"
11515 #include "confdefs.h"
11516 #include <stdlib.h>
11521 #ifndef _XOPEN_SOURCE
11528 rm -f "conftest.$ac_objext"
11529 if { (eval echo "$as_me:11529: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>&5
11532 echo "$as_me:11532: \$? = $ac_status" >&5
11533 (exit "$ac_status"); } &&
11534 { ac_try='test -s "conftest.$ac_objext"'
11535 { (eval echo "$as_me:11535: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:11538: \$? = $ac_status" >&5
11539 (exit "$ac_status"); }; }; then
11540 cf_XOPEN_SOURCE_set=yes
11542 echo "$as_me: failed program was:" >&5
11543 cat "conftest.$ac_ext" >&5
11544 cf_XOPEN_SOURCE_set=no
11546 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11547 echo "$as_me:11547: result: $cf_XOPEN_SOURCE_set" >&5
11548 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11549 if test "$cf_XOPEN_SOURCE_set" = yes
11551 cat >"conftest.$ac_ext" <<_ACEOF
11552 #line 11552 "configure"
11553 #include "confdefs.h"
11554 #include <stdlib.h>
11559 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11566 rm -f "conftest.$ac_objext"
11567 if { (eval echo "$as_me:11567: \"$ac_compile\"") >&5
11568 (eval $ac_compile) 2>&5
11570 echo "$as_me:11570: \$? = $ac_status" >&5
11571 (exit "$ac_status"); } &&
11572 { ac_try='test -s "conftest.$ac_objext"'
11573 { (eval echo "$as_me:11573: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:11576: \$? = $ac_status" >&5
11577 (exit "$ac_status"); }; }; then
11578 cf_XOPEN_SOURCE_set_ok=yes
11580 echo "$as_me: failed program was:" >&5
11581 cat "conftest.$ac_ext" >&5
11582 cf_XOPEN_SOURCE_set_ok=no
11584 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11585 if test "$cf_XOPEN_SOURCE_set_ok" = no
11587 { echo "$as_me:11587: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11588 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11592 echo "$as_me:11592: checking if we should define _XOPEN_SOURCE" >&5
11593 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11594 if test "${cf_cv_xopen_source+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 cat >"conftest.$ac_ext" <<_ACEOF
11599 #line 11599 "configure"
11600 #include "confdefs.h"
11602 #include <stdlib.h>
11603 #include <string.h>
11604 #include <sys/types.h>
11610 #ifndef _XOPEN_SOURCE
11618 rm -f "conftest.$ac_objext"
11619 if { (eval echo "$as_me:11619: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11622 echo "$as_me:11622: \$? = $ac_status" >&5
11623 (exit "$ac_status"); } &&
11624 { ac_try='test -s "conftest.$ac_objext"'
11625 { (eval echo "$as_me:11625: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:11628: \$? = $ac_status" >&5
11629 (exit "$ac_status"); }; }; then
11630 cf_cv_xopen_source=no
11632 echo "$as_me: failed program was:" >&5
11633 cat "conftest.$ac_ext" >&5
11634 cf_save="$CPPFLAGS"
11636 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11637 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11639 cat >"conftest.$ac_ext" <<_ACEOF
11640 #line 11640 "configure"
11641 #include "confdefs.h"
11643 #include <stdlib.h>
11644 #include <string.h>
11645 #include <sys/types.h>
11651 #ifndef _XOPEN_SOURCE
11659 rm -f "conftest.$ac_objext"
11660 if { (eval echo "$as_me:11660: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>&5
11663 echo "$as_me:11663: \$? = $ac_status" >&5
11664 (exit "$ac_status"); } &&
11665 { ac_try='test -s "conftest.$ac_objext"'
11666 { (eval echo "$as_me:11666: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 (exit "$ac_status"); }; }; then
11671 cf_cv_xopen_source=no
11673 echo "$as_me: failed program was:" >&5
11674 cat "conftest.$ac_ext" >&5
11675 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11677 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11678 CPPFLAGS="$cf_save"
11681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11684 echo "$as_me:11684: result: $cf_cv_xopen_source" >&5
11685 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11687 if test "$cf_cv_xopen_source" != no ; then
11689 CFLAGS=`echo "$CFLAGS" | \
11690 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11691 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11693 CPPFLAGS=`echo "$CPPFLAGS" | \
11694 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11695 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11697 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11699 for cf_add_cflags in $cf_temp_xopen_source
11701 case "x$cf_add_cflags" in
11704 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11707 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11708 test "$CFLAGS" != "$cf_old_cflag" || break
11710 CFLAGS="$cf_old_cflag"
11713 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11716 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11717 test "$CPPFLAGS" != "$cf_old_cflag" || break
11719 CPPFLAGS="$cf_old_cflag"
11728 cf_new_extra_cppflags=
11730 for cf_add_cflags in $cf_add_cflags
11732 case "$cf_fix_cppflags" in
11734 case "$cf_add_cflags" in
11735 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11736 case "$cf_add_cflags" in
11738 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11741 && test -z "${cf_tst_cflags}" \
11742 && cf_fix_cppflags=yes
11744 if test "$cf_fix_cppflags" = yes ; then
11746 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11747 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11750 elif test "${cf_tst_cflags}" = "\"'" ; then
11752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11759 case "$CPPFLAGS" in
11763 case "$cf_add_cflags" in
11765 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11767 CPPFLAGS=`echo "$CPPFLAGS" | \
11768 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11769 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11774 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11775 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11782 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11783 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11790 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11791 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11793 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11795 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11796 && test -z "${cf_tst_cflags}" \
11797 && cf_fix_cppflags=no
11802 if test -n "$cf_new_cflags" ; then
11804 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11805 CFLAGS="${CFLAGS}$cf_new_cflags"
11809 if test -n "$cf_new_cppflags" ; then
11811 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11812 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11816 if test -n "$cf_new_extra_cppflags" ; then
11818 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11819 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11829 fi # cf_cv_posix_visible
11831 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11833 # Work around breakage on OS X
11835 echo "$as_me:11835: checking if SIGWINCH is defined" >&5
11836 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11837 if test "${cf_cv_define_sigwinch+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 cat >"conftest.$ac_ext" <<_ACEOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11845 #include <sys/types.h>
11846 #include <sys/signal.h>
11851 int x = SIGWINCH; (void)x
11856 rm -f "conftest.$ac_objext"
11857 if { (eval echo "$as_me:11857: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11860 echo "$as_me:11860: \$? = $ac_status" >&5
11861 (exit "$ac_status"); } &&
11862 { ac_try='test -s "conftest.$ac_objext"'
11863 { (eval echo "$as_me:11863: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:11866: \$? = $ac_status" >&5
11867 (exit "$ac_status"); }; }; then
11868 cf_cv_define_sigwinch=yes
11870 echo "$as_me: failed program was:" >&5
11871 cat "conftest.$ac_ext" >&5
11872 cat >"conftest.$ac_ext" <<_ACEOF
11873 #line 11873 "configure"
11874 #include "confdefs.h"
11876 #undef _XOPEN_SOURCE
11877 #undef _POSIX_SOURCE
11878 #undef _POSIX_C_SOURCE
11879 #include <sys/types.h>
11880 #include <sys/signal.h>
11885 int x = SIGWINCH; (void)x
11890 rm -f "conftest.$ac_objext"
11891 if { (eval echo "$as_me:11891: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>&5
11894 echo "$as_me:11894: \$? = $ac_status" >&5
11895 (exit "$ac_status"); } &&
11896 { ac_try='test -s "conftest.$ac_objext"'
11897 { (eval echo "$as_me:11897: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:11900: \$? = $ac_status" >&5
11901 (exit "$ac_status"); }; }; then
11902 cf_cv_define_sigwinch=maybe
11904 echo "$as_me: failed program was:" >&5
11905 cat "conftest.$ac_ext" >&5
11906 cf_cv_define_sigwinch=no
11908 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11911 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11914 echo "$as_me:11914: result: $cf_cv_define_sigwinch" >&5
11915 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11917 if test "$cf_cv_define_sigwinch" = maybe ; then
11918 echo "$as_me:11918: checking for actual SIGWINCH definition" >&5
11919 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11920 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cf_cv_fixup_sigwinch=unknown
11926 while test "$cf_sigwinch" != 1
11928 cat >"conftest.$ac_ext" <<_ACEOF
11929 #line 11929 "configure"
11930 #include "confdefs.h"
11932 #undef _XOPEN_SOURCE
11933 #undef _POSIX_SOURCE
11934 #undef _POSIX_C_SOURCE
11935 #include <sys/types.h>
11936 #include <sys/signal.h>
11942 #if SIGWINCH != $cf_sigwinch
11945 int x = SIGWINCH; (void)x
11950 rm -f "conftest.$ac_objext"
11951 if { (eval echo "$as_me:11951: \"$ac_compile\"") >&5
11952 (eval $ac_compile) 2>&5
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit "$ac_status"); } &&
11956 { ac_try='test -s "conftest.$ac_objext"'
11957 { (eval echo "$as_me:11957: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11960 echo "$as_me:11960: \$? = $ac_status" >&5
11961 (exit "$ac_status"); }; }; then
11962 cf_cv_fixup_sigwinch=$cf_sigwinch
11965 echo "$as_me: failed program was:" >&5
11966 cat "conftest.$ac_ext" >&5
11968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11970 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11974 echo "$as_me:11974: result: $cf_cv_fixup_sigwinch" >&5
11975 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11977 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11978 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11982 # Checks for CODESET support.
11984 echo "$as_me:11984: checking for nl_langinfo and CODESET" >&5
11985 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11986 if test "${am_cv_langinfo_codeset+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 cat >"conftest.$ac_ext" <<_ACEOF
11990 #line 11990 "configure"
11991 #include "confdefs.h"
11992 #include <langinfo.h>
11996 char* cs = nl_langinfo(CODESET); (void)cs
12001 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12002 if { (eval echo "$as_me:12002: \"$ac_link\"") >&5
12003 (eval $ac_link) 2>&5
12005 echo "$as_me:12005: \$? = $ac_status" >&5
12006 (exit "$ac_status"); } &&
12007 { ac_try='test -s "conftest$ac_exeext"'
12008 { (eval echo "$as_me:12008: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12011 echo "$as_me:12011: \$? = $ac_status" >&5
12012 (exit "$ac_status"); }; }; then
12013 am_cv_langinfo_codeset=yes
12015 echo "$as_me: failed program was:" >&5
12016 cat "conftest.$ac_ext" >&5
12017 am_cv_langinfo_codeset=no
12019 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12022 echo "$as_me:12022: result: $am_cv_langinfo_codeset" >&5
12023 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12024 if test "$am_cv_langinfo_codeset" = yes; then
12026 cat >>confdefs.h <<\EOF
12027 #define HAVE_LANGINFO_CODESET 1
12032 # use these variables to work around a defect in gcc's fixincludes.
12033 NCURSES_OK_WCHAR_T=
12036 echo "$as_me:12036: checking if you want wide-character code" >&5
12037 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12039 # Check whether --enable-widec or --disable-widec was given.
12040 if test "${enable_widec+set}" = set; then
12041 enableval="$enable_widec"
12042 with_widec=$enableval
12046 echo "$as_me:12046: result: $with_widec" >&5
12047 echo "${ECHO_T}$with_widec" >&6
12049 NCURSES_WCWIDTH_GRAPHICS=1
12051 if test "x$with_widec" = xyes ; then
12052 if test "x$disable_lib_suffixes" = xno ; then
12053 LIB_SUFFIX="w${LIB_SUFFIX}"
12056 cat >>confdefs.h <<\EOF
12057 #define USE_WIDEC_SUPPORT 1
12060 cat >>confdefs.h <<\EOF
12061 #define NCURSES_WIDECHAR 1
12064 case "$CPPFLAGS" in
12068 { echo "$as_me:12068: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12069 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12070 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12071 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 echo "$as_me:12081: checking for $ac_header" >&5
12082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 cat >"conftest.$ac_ext" <<_ACEOF
12087 #line 12087 "configure"
12088 #include "confdefs.h"
12089 #include <$ac_header>
12091 if { (eval echo "$as_me:12091: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12092 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12094 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12096 cat conftest.err >&5
12097 echo "$as_me:12097: \$? = $ac_status" >&5
12098 (exit "$ac_status"); } >/dev/null; then
12099 if test -s conftest.err; then
12100 ac_cpp_err=$ac_c_preproc_warn_flag
12107 if test -z "$ac_cpp_err"; then
12108 eval "$as_ac_Header=yes"
12110 echo "$as_me: failed program was:" >&5
12111 cat "conftest.$ac_ext" >&5
12112 eval "$as_ac_Header=no"
12114 rm -f conftest.err "conftest.$ac_ext"
12116 echo "$as_me:12116: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12117 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12118 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12119 cat >>confdefs.h <<EOF
12120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126 echo "$as_me:12126: checking if wchar.h can be used as is" >&5
12127 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12128 if test "${cf_cv_wchar_h_okay+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >"conftest.$ac_ext" <<_ACEOF
12133 #line 12133 "configure"
12134 #include "confdefs.h"
12136 #include <stdlib.h>
12137 #ifdef HAVE_WCHAR_H
12140 #ifdef HAVE_WCTYPE_H
12141 #include <wctype.h>
12149 int bar = iswpunct(foo)
12154 rm -f "conftest.$ac_objext"
12155 if { (eval echo "$as_me:12155: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>&5
12158 echo "$as_me:12158: \$? = $ac_status" >&5
12159 (exit "$ac_status"); } &&
12160 { ac_try='test -s "conftest.$ac_objext"'
12161 { (eval echo "$as_me:12161: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:12164: \$? = $ac_status" >&5
12165 (exit "$ac_status"); }; }; then
12166 cf_cv_wchar_h_okay=yes
12168 echo "$as_me: failed program was:" >&5
12169 cat "conftest.$ac_ext" >&5
12170 cf_cv_wchar_h_okay=no
12172 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12174 echo "$as_me:12174: result: $cf_cv_wchar_h_okay" >&5
12175 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12177 if test "$cf_cv_wchar_h_okay" = no
12180 echo "$as_me:12180: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12181 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12182 cat >"conftest.$ac_ext" <<_ACEOF
12183 #line 12183 "configure"
12184 #include "confdefs.h"
12185 #include <sys/types.h>
12191 #ifndef _XOPEN_SOURCE_EXTENDED
12198 rm -f "conftest.$ac_objext"
12199 if { (eval echo "$as_me:12199: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>&5
12202 echo "$as_me:12202: \$? = $ac_status" >&5
12203 (exit "$ac_status"); } &&
12204 { ac_try='test -s "conftest.$ac_objext"'
12205 { (eval echo "$as_me:12205: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:12208: \$? = $ac_status" >&5
12209 (exit "$ac_status"); }; }; then
12212 echo "$as_me: failed program was:" >&5
12213 cat "conftest.$ac_ext" >&5
12216 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12217 echo "$as_me:12217: result: $cf_result" >&5
12218 echo "${ECHO_T}$cf_result" >&6
12220 if test "$cf_result" = yes ; then
12221 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12222 elif test "x" != "x" ; then
12223 echo "$as_me:12223: checking checking for compatible value versus " >&5
12224 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12225 cat >"conftest.$ac_ext" <<_ACEOF
12226 #line 12226 "configure"
12227 #include "confdefs.h"
12228 #include <sys/types.h>
12234 #if _XOPEN_SOURCE_EXTENDED- < 0
12241 rm -f "conftest.$ac_objext"
12242 if { (eval echo "$as_me:12242: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit "$ac_status"); } &&
12247 { ac_try='test -s "conftest.$ac_objext"'
12248 { (eval echo "$as_me:12248: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:12251: \$? = $ac_status" >&5
12252 (exit "$ac_status"); }; }; then
12255 echo "$as_me: failed program was:" >&5
12256 cat "conftest.$ac_ext" >&5
12259 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12260 echo "$as_me:12260: result: $cf_result" >&5
12261 echo "${ECHO_T}$cf_result" >&6
12262 if test "$cf_result" = no ; then
12263 # perhaps we can override it - try...
12264 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12270 echo "$as_me:12270: checking if wcwidth agrees graphics are single-width" >&5
12271 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12272 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 cat >conftest.in <<CF_EOF
12278 0x250c upper left corner
12279 0x2514 lower left corner
12280 0x2510 upper right corner
12281 0x2518 lower right corner
12282 0x251c tee pointing left
12283 0x2524 tee pointing right
12284 0x2534 tee pointing up
12285 0x252c tee pointing down
12286 0x2500 horizontal line
12287 0x2502 vertical line
12288 0x253c large plus or crossover
12292 0x2592 checker board (stipple)
12293 0x00b0 degree symbol
12296 - Teletype 5410v1 symbols
12297 0x2190 arrow pointing left
12298 0x2192 arrow pointing right
12299 0x2193 arrow pointing down
12300 0x2191 arrow pointing up
12301 0x2592 board of squares
12302 0x2603 lantern symbol
12303 0x25ae solid square block
12304 - these defaults were invented for ncurses
12307 0x2264 less-than-or-equal-to
12308 0x2265 greater-than-or-equal-to
12311 0x00a3 pound-sterling symbol
12312 - thick-line-drawing
12313 0x250f upper left corner
12314 0x2517 lower left corner
12315 0x2513 upper right corner
12316 0x251b lower right corner
12317 0x2523 tee pointing left
12318 0x252b tee pointing right
12319 0x253b tee pointing up
12320 0x2533 tee pointing down
12321 0x2501 horizontal line
12322 0x2503 vertical line
12323 0x254b large plus or crossover
12324 - double-line-drawing
12325 0x2554 upper left corner
12326 0x255a lower left corner
12327 0x2557 upper right corner
12328 0x255d lower right corner
12329 0x2563 tee pointing left
12330 0x2560 tee pointing right
12331 0x2569 tee pointing up
12332 0x2566 tee pointing down
12333 0x2550 horizontal line
12334 0x2551 vertical line
12335 0x256c large plus or crossover
12337 if test "$cross_compiling" = yes; then
12338 cf_cv_wcwidth_graphics=unknown
12340 cat >"conftest.$ac_ext" <<_ACEOF
12341 #line 12341 "configure"
12342 #include "confdefs.h"
12344 #include <locale.h>
12355 char buffer[MY_LEN + 1];
12356 char notes[MY_LEN + 1];
12360 if (setlocale(LC_ALL, "en_US.UTF8") ||
12361 setlocale(LC_ALL, "en_US.UTF-8") ||
12362 setlocale(LC_ALL, "en_US.utf8") ||
12363 setlocale(LC_ALL, "en_US.utf-8")) {
12364 if ((fp = fopen("conftest.in", "r")) != 0) {
12365 while (fgets(buffer, MY_LEN, fp) != 0) {
12366 if (*buffer == '-') {
12367 fprintf(stderr, "\\t%s", buffer);
12368 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12370 if (wcwidth(value) == 1)
12372 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12374 fprintf(stderr, "?\\t%s", buffer);
12379 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12380 return (totals == passed) ? 0 : 1;
12384 rm -f "conftest$ac_exeext"
12385 if { (eval echo "$as_me:12385: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>&5
12388 echo "$as_me:12388: \$? = $ac_status" >&5
12389 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12390 { (eval echo "$as_me:12390: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:12393: \$? = $ac_status" >&5
12394 (exit "$ac_status"); }; }; then
12395 cf_cv_wcwidth_graphics=yes
12397 echo "$as_me: program exited with status $ac_status" >&5
12398 echo "$as_me: failed program was:" >&5
12399 cat "conftest.$ac_ext" >&5
12400 cf_cv_wcwidth_graphics=no
12402 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12406 echo "$as_me:12406: result: $cf_cv_wcwidth_graphics" >&5
12407 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12409 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12411 # with_overwrite=no
12412 NCURSES_CH_T=cchar_t
12414 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12417 echo "$as_me:12417: checking for $ac_func" >&5
12418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12419 if eval "test \"\${$as_ac_var+set}\" = set"; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 cat >"conftest.$ac_ext" <<_ACEOF
12423 #line 12423 "configure"
12424 #include "confdefs.h"
12425 #define $ac_func autoconf_temporary
12426 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12433 /* We use char because int might match the return type of a gcc2
12434 builtin and then its argument prototype would still apply. */
12435 char $ac_func (void);
12441 /* The GNU C library defines stubs for functions which it implements
12442 to always fail with ENOSYS. Some functions are actually named
12443 something starting with __ and the normal name is an alias. */
12444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12445 #error found stub for $ac_func
12448 return $ac_func ();
12453 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12454 if { (eval echo "$as_me:12454: \"$ac_link\"") >&5
12455 (eval $ac_link) 2>&5
12457 echo "$as_me:12457: \$? = $ac_status" >&5
12458 (exit "$ac_status"); } &&
12459 { ac_try='test -s "conftest$ac_exeext"'
12460 { (eval echo "$as_me:12460: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:12463: \$? = $ac_status" >&5
12464 (exit "$ac_status"); }; }; then
12465 eval "$as_ac_var=yes"
12467 echo "$as_me: failed program was:" >&5
12468 cat "conftest.$ac_ext" >&5
12469 eval "$as_ac_var=no"
12471 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12473 echo "$as_me:12473: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12474 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12475 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12476 cat >>confdefs.h <<EOF
12477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12483 if test "x$ac_cv_func_putwc" != xyes ; then
12485 for ac_header in wchar.h
12487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488 echo "$as_me:12488: checking for $ac_header" >&5
12489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 cat >"conftest.$ac_ext" <<_ACEOF
12494 #line 12494 "configure"
12495 #include "confdefs.h"
12496 #include <$ac_header>
12498 if { (eval echo "$as_me:12498: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12499 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12501 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:12504: \$? = $ac_status" >&5
12505 (exit "$ac_status"); } >/dev/null; then
12506 if test -s conftest.err; then
12507 ac_cpp_err=$ac_c_preproc_warn_flag
12514 if test -z "$ac_cpp_err"; then
12515 eval "$as_ac_Header=yes"
12517 echo "$as_me: failed program was:" >&5
12518 cat "conftest.$ac_ext" >&5
12519 eval "$as_ac_Header=no"
12521 rm -f conftest.err "conftest.$ac_ext"
12523 echo "$as_me:12523: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12524 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12525 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12526 cat >>confdefs.h <<EOF
12527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12533 echo "$as_me:12533: checking for multibyte character support" >&5
12534 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12535 if test "${cf_cv_utf8_lib+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 cf_save_LIBS="$LIBS"
12540 cat >"conftest.$ac_ext" <<_ACEOF
12541 #line 12541 "configure"
12542 #include "confdefs.h"
12544 #include <stdlib.h>
12546 #ifdef HAVE_WCHAR_H
12558 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12559 if { (eval echo "$as_me:12559: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>&5
12562 echo "$as_me:12562: \$? = $ac_status" >&5
12563 (exit "$ac_status"); } &&
12564 { ac_try='test -s "conftest$ac_exeext"'
12565 { (eval echo "$as_me:12565: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:12568: \$? = $ac_status" >&5
12569 (exit "$ac_status"); }; }; then
12572 echo "$as_me: failed program was:" >&5
12573 cat "conftest.$ac_ext" >&5
12575 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12576 # will be set on completion of the AC_TRY_LINK below.
12577 cf_cv_header_path_utf8=
12578 cf_cv_library_path_utf8=
12580 echo "${as_me:-configure}:12580: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12582 cf_save_LIBS="$LIBS"
12584 cat >"conftest.$ac_ext" <<_ACEOF
12585 #line 12585 "configure"
12586 #include "confdefs.h"
12588 #include <libutf8.h>
12597 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12598 if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>&5
12601 echo "$as_me:12601: \$? = $ac_status" >&5
12602 (exit "$ac_status"); } &&
12603 { ac_try='test -s "conftest$ac_exeext"'
12604 { (eval echo "$as_me:12604: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:12607: \$? = $ac_status" >&5
12608 (exit "$ac_status"); }; }; then
12610 cf_cv_find_linkage_utf8=yes
12611 cf_cv_header_path_utf8=/usr/include
12612 cf_cv_library_path_utf8=/usr/lib
12615 echo "$as_me: failed program was:" >&5
12616 cat "conftest.$ac_ext" >&5
12618 LIBS="-lutf8 $cf_save_LIBS"
12620 cat >"conftest.$ac_ext" <<_ACEOF
12621 #line 12621 "configure"
12622 #include "confdefs.h"
12624 #include <libutf8.h>
12633 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12634 if { (eval echo "$as_me:12634: \"$ac_link\"") >&5
12635 (eval $ac_link) 2>&5
12637 echo "$as_me:12637: \$? = $ac_status" >&5
12638 (exit "$ac_status"); } &&
12639 { ac_try='test -s "conftest$ac_exeext"'
12640 { (eval echo "$as_me:12640: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12643 echo "$as_me:12643: \$? = $ac_status" >&5
12644 (exit "$ac_status"); }; }; then
12646 cf_cv_find_linkage_utf8=yes
12647 cf_cv_header_path_utf8=/usr/include
12648 cf_cv_library_path_utf8=/usr/lib
12649 cf_cv_library_file_utf8="-lutf8"
12652 echo "$as_me: failed program was:" >&5
12653 cat "conftest.$ac_ext" >&5
12655 cf_cv_find_linkage_utf8=no
12656 LIBS="$cf_save_LIBS"
12658 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12660 echo "${as_me:-configure}:12660: testing find linkage for utf8 library ..." 1>&5
12662 echo "${as_me:-configure}:12662: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12664 cf_save_CPPFLAGS="$CPPFLAGS"
12665 cf_test_CPPFLAGS="$CPPFLAGS"
12669 # collect the current set of include-directories from compiler flags
12670 cf_header_path_list=""
12671 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12672 for cf_header_path in $CPPFLAGS $CFLAGS
12674 case "$cf_header_path" in
12676 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12678 test "x$cf_header_path" != "xNONE" && \
12679 test -d "$cf_header_path" && \
12681 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12682 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12683 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12684 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12685 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12686 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12689 cf_header_path_list="$cf_header_path_list $cf_search"
12695 # add the variations for the package we are looking for
12699 test "x$prefix" != "xNONE" && \
12700 test -d "$prefix" && \
12702 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12703 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12704 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12705 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12706 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12707 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12710 for cf_subdir_prefix in \
12719 test "x$cf_subdir_prefix" != "x$prefix" && \
12720 test -d "$cf_subdir_prefix" && \
12721 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12722 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12723 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12724 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12725 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12726 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12727 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12732 test "$includedir" != NONE && \
12733 test "$includedir" != "/usr/include" && \
12734 test -d "$includedir" && {
12735 test -d "$includedir" && cf_search="$cf_search $includedir"
12736 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12739 test "$oldincludedir" != NONE && \
12740 test "$oldincludedir" != "/usr/include" && \
12741 test -d "$oldincludedir" && {
12742 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12743 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12746 cf_search="$cf_search $cf_header_path_list"
12748 for cf_cv_header_path_utf8 in $cf_search
12750 if test -d "$cf_cv_header_path_utf8" ; then
12751 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12753 echo "${as_me:-configure}:12753: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12755 CPPFLAGS="$cf_save_CPPFLAGS"
12757 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12758 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12760 cat >"conftest.$ac_ext" <<_ACEOF
12761 #line 12761 "configure"
12762 #include "confdefs.h"
12764 #include <libutf8.h>
12773 rm -f "conftest.$ac_objext"
12774 if { (eval echo "$as_me:12774: \"$ac_compile\"") >&5
12775 (eval $ac_compile) 2>&5
12777 echo "$as_me:12777: \$? = $ac_status" >&5
12778 (exit "$ac_status"); } &&
12779 { ac_try='test -s "conftest.$ac_objext"'
12780 { (eval echo "$as_me:12780: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 (exit "$ac_status"); }; }; then
12786 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12788 echo "${as_me:-configure}:12788: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12790 cf_cv_find_linkage_utf8=maybe
12791 cf_test_CPPFLAGS="$CPPFLAGS"
12794 echo "$as_me: failed program was:" >&5
12795 cat "conftest.$ac_ext" >&5
12797 CPPFLAGS="$cf_save_CPPFLAGS"
12800 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12804 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12806 echo "${as_me:-configure}:12806: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12808 cf_save_LIBS="$LIBS"
12809 cf_save_LDFLAGS="$LDFLAGS"
12811 if test "$cf_cv_find_linkage_utf8" != yes ; then
12814 cf_library_path_list=""
12815 if test -n "${LDFLAGS}${LIBS}" ; then
12816 for cf_library_path in $LDFLAGS $LIBS
12818 case "$cf_library_path" in
12820 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12822 test "x$cf_library_path" != "xNONE" && \
12823 test -d "$cf_library_path" && \
12825 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12826 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12827 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12828 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12829 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12830 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12833 cf_library_path_list="$cf_library_path_list $cf_search"
12841 test "x$prefix" != "xNONE" && \
12842 test -d "$prefix" && \
12844 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12845 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12846 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12847 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12848 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12849 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12852 for cf_subdir_prefix in \
12861 test "x$cf_subdir_prefix" != "x$prefix" && \
12862 test -d "$cf_subdir_prefix" && \
12863 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12864 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12865 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12866 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12867 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12868 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12869 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12874 cf_search="$cf_library_path_list $cf_search"
12876 for cf_cv_library_path_utf8 in $cf_search
12878 if test -d "$cf_cv_library_path_utf8" ; then
12879 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12881 echo "${as_me:-configure}:12881: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12883 CPPFLAGS="$cf_test_CPPFLAGS"
12884 LIBS="-lutf8 $cf_save_LIBS"
12885 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12886 cat >"conftest.$ac_ext" <<_ACEOF
12887 #line 12887 "configure"
12888 #include "confdefs.h"
12890 #include <libutf8.h>
12899 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12900 if { (eval echo "$as_me:12900: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>&5
12903 echo "$as_me:12903: \$? = $ac_status" >&5
12904 (exit "$ac_status"); } &&
12905 { ac_try='test -s "conftest$ac_exeext"'
12906 { (eval echo "$as_me:12906: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:12909: \$? = $ac_status" >&5
12910 (exit "$ac_status"); }; }; then
12912 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12914 echo "${as_me:-configure}:12914: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12916 cf_cv_find_linkage_utf8=yes
12917 cf_cv_library_file_utf8="-lutf8"
12920 echo "$as_me: failed program was:" >&5
12921 cat "conftest.$ac_ext" >&5
12923 CPPFLAGS="$cf_save_CPPFLAGS"
12924 LIBS="$cf_save_LIBS"
12925 LDFLAGS="$cf_save_LDFLAGS"
12928 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12931 CPPFLAGS="$cf_save_CPPFLAGS"
12932 LDFLAGS="$cf_save_LDFLAGS"
12936 cf_cv_find_linkage_utf8=no
12940 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12943 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12945 LIBS="$cf_save_LIBS"
12947 if test "$cf_cv_find_linkage_utf8" = yes ; then
12948 cf_cv_utf8_lib=add-on
12954 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12956 echo "$as_me:12956: result: $cf_cv_utf8_lib" >&5
12957 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12959 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12960 # ncurses/ncursesw:
12961 if test "$cf_cv_utf8_lib" = "add-on" ; then
12963 cat >>confdefs.h <<\EOF
12964 #define HAVE_LIBUTF8_H 1
12967 if test -n "$cf_cv_header_path_utf8" ; then
12968 for cf_add_incdir in $cf_cv_header_path_utf8
12970 while test "$cf_add_incdir" != /usr/include
12972 if test -d "$cf_add_incdir"
12975 if test -n "$CFLAGS$CPPFLAGS" ; then
12976 # a loop is needed to ensure we can add subdirs of existing dirs
12977 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12978 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12979 cf_have_incdir=yes; break
12984 if test "$cf_have_incdir" = no ; then
12985 if test "$cf_add_incdir" = /usr/local/include ; then
12986 if test "$GCC" = yes
12988 cf_save_CPPFLAGS=$CPPFLAGS
12990 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12991 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12993 cat >"conftest.$ac_ext" <<_ACEOF
12994 #line 12994 "configure"
12995 #include "confdefs.h"
13005 rm -f "conftest.$ac_objext"
13006 if { (eval echo "$as_me:13006: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>&5
13009 echo "$as_me:13009: \$? = $ac_status" >&5
13010 (exit "$ac_status"); } &&
13011 { ac_try='test -s "conftest.$ac_objext"'
13012 { (eval echo "$as_me:13012: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:13015: \$? = $ac_status" >&5
13016 (exit "$ac_status"); }; }; then
13019 echo "$as_me: failed program was:" >&5
13020 cat "conftest.$ac_ext" >&5
13023 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13024 CPPFLAGS=$cf_save_CPPFLAGS
13029 if test "$cf_have_incdir" = no ; then
13030 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13032 echo "${as_me:-configure}:13032: testing adding $cf_add_incdir to include-path ..." 1>&5
13034 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13036 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13037 test "$cf_top_incdir" = "$cf_add_incdir" && break
13038 cf_add_incdir="$cf_top_incdir"
13049 if test -n "$cf_cv_library_path_utf8" ; then
13050 for cf_add_libdir in $cf_cv_library_path_utf8
13052 if test "$cf_add_libdir" = /usr/lib ; then
13054 elif test -d "$cf_add_libdir"
13057 if test -n "$LDFLAGS$LIBS" ; then
13058 # a loop is needed to ensure we can add subdirs of existing dirs
13059 for cf_test_libdir in $LDFLAGS $LIBS ; do
13060 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13061 cf_have_libdir=yes; break
13065 if test "$cf_have_libdir" = no ; then
13066 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13068 echo "${as_me:-configure}:13068: testing adding $cf_add_libdir to library-path ..." 1>&5
13070 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13076 cf_add_libs="$LIBS"
13079 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13080 # filter duplicates
13081 for cf_add_1lib in $cf_add_0lib; do
13082 for cf_add_2lib in $cf_add_libs; do
13083 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13088 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13090 LIBS="$cf_add_libs"
13094 if test "$cf_cv_utf8_lib" != no ; then
13099 # This is needed on Tru64 5.0 to declare mbstate_t
13100 echo "$as_me:13100: checking if we must include wchar.h to declare mbstate_t" >&5
13101 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13102 if test "${cf_cv_mbstate_t+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 cat >"conftest.$ac_ext" <<_ACEOF
13107 #line 13107 "configure"
13108 #include "confdefs.h"
13110 #include <stdlib.h>
13111 #include <stdarg.h>
13113 #ifdef HAVE_LIBUTF8_H
13114 #include <libutf8.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
13140 cat >"conftest.$ac_ext" <<_ACEOF
13141 #line 13141 "configure"
13142 #include "confdefs.h"
13144 #include <stdlib.h>
13145 #include <stdarg.h>
13148 #ifdef HAVE_LIBUTF8_H
13149 #include <libutf8.h>
13159 rm -f "conftest.$ac_objext"
13160 if { (eval echo "$as_me:13160: \"$ac_compile\"") >&5
13161 (eval $ac_compile) 2>&5
13163 echo "$as_me:13163: \$? = $ac_status" >&5
13164 (exit "$ac_status"); } &&
13165 { ac_try='test -s "conftest.$ac_objext"'
13166 { (eval echo "$as_me:13166: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:13169: \$? = $ac_status" >&5
13170 (exit "$ac_status"); }; }; then
13171 cf_cv_mbstate_t=yes
13173 echo "$as_me: failed program was:" >&5
13174 cat "conftest.$ac_ext" >&5
13175 cf_cv_mbstate_t=unknown
13177 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13179 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13181 echo "$as_me:13181: result: $cf_cv_mbstate_t" >&5
13182 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13184 if test "$cf_cv_mbstate_t" = yes ; then
13186 cat >>confdefs.h <<\EOF
13187 #define NEED_WCHAR_H 1
13193 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13194 if test "$cf_cv_mbstate_t" = unknown ; then
13195 NCURSES_MBSTATE_T=1
13198 # This is needed on Tru64 5.0 to declare wchar_t
13199 echo "$as_me:13199: checking if we must include wchar.h to declare wchar_t" >&5
13200 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13201 if test "${cf_cv_wchar_t+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 cat >"conftest.$ac_ext" <<_ACEOF
13206 #line 13206 "configure"
13207 #include "confdefs.h"
13209 #include <stdlib.h>
13210 #include <stdarg.h>
13212 #ifdef HAVE_LIBUTF8_H
13213 #include <libutf8.h>
13223 rm -f "conftest.$ac_objext"
13224 if { (eval echo "$as_me:13224: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>&5
13227 echo "$as_me:13227: \$? = $ac_status" >&5
13228 (exit "$ac_status"); } &&
13229 { ac_try='test -s "conftest.$ac_objext"'
13230 { (eval echo "$as_me:13230: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:13233: \$? = $ac_status" >&5
13234 (exit "$ac_status"); }; }; then
13237 echo "$as_me: failed program was:" >&5
13238 cat "conftest.$ac_ext" >&5
13239 cat >"conftest.$ac_ext" <<_ACEOF
13240 #line 13240 "configure"
13241 #include "confdefs.h"
13243 #include <stdlib.h>
13244 #include <stdarg.h>
13247 #ifdef HAVE_LIBUTF8_H
13248 #include <libutf8.h>
13258 rm -f "conftest.$ac_objext"
13259 if { (eval echo "$as_me:13259: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>&5
13262 echo "$as_me:13262: \$? = $ac_status" >&5
13263 (exit "$ac_status"); } &&
13264 { ac_try='test -s "conftest.$ac_objext"'
13265 { (eval echo "$as_me:13265: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:13268: \$? = $ac_status" >&5
13269 (exit "$ac_status"); }; }; then
13272 echo "$as_me: failed program was:" >&5
13273 cat "conftest.$ac_ext" >&5
13274 cf_cv_wchar_t=unknown
13276 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13278 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13280 echo "$as_me:13280: result: $cf_cv_wchar_t" >&5
13281 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13283 if test "$cf_cv_wchar_t" = yes ; then
13285 cat >>confdefs.h <<\EOF
13286 #define NEED_WCHAR_H 1
13292 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13293 if test "$cf_cv_wchar_t" = unknown ; then
13297 # if we find wchar_t in either place, use substitution to provide a fallback.
13298 if test "$cf_cv_wchar_t" != unknown ; then
13299 NCURSES_OK_WCHAR_T=1
13302 # This is needed on Tru64 5.0 to declare wint_t
13303 echo "$as_me:13303: checking if we must include wchar.h to declare wint_t" >&5
13304 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13305 if test "${cf_cv_wint_t+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 cat >"conftest.$ac_ext" <<_ACEOF
13310 #line 13310 "configure"
13311 #include "confdefs.h"
13313 #include <stdlib.h>
13314 #include <stdarg.h>
13316 #ifdef HAVE_LIBUTF8_H
13317 #include <libutf8.h>
13327 rm -f "conftest.$ac_objext"
13328 if { (eval echo "$as_me:13328: \"$ac_compile\"") >&5
13329 (eval $ac_compile) 2>&5
13331 echo "$as_me:13331: \$? = $ac_status" >&5
13332 (exit "$ac_status"); } &&
13333 { ac_try='test -s "conftest.$ac_objext"'
13334 { (eval echo "$as_me:13334: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:13337: \$? = $ac_status" >&5
13338 (exit "$ac_status"); }; }; then
13341 echo "$as_me: failed program was:" >&5
13342 cat "conftest.$ac_ext" >&5
13343 cat >"conftest.$ac_ext" <<_ACEOF
13344 #line 13344 "configure"
13345 #include "confdefs.h"
13347 #include <stdlib.h>
13348 #include <stdarg.h>
13351 #ifdef HAVE_LIBUTF8_H
13352 #include <libutf8.h>
13362 rm -f "conftest.$ac_objext"
13363 if { (eval echo "$as_me:13363: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>&5
13366 echo "$as_me:13366: \$? = $ac_status" >&5
13367 (exit "$ac_status"); } &&
13368 { ac_try='test -s "conftest.$ac_objext"'
13369 { (eval echo "$as_me:13369: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:13372: \$? = $ac_status" >&5
13373 (exit "$ac_status"); }; }; then
13376 echo "$as_me: failed program was:" >&5
13377 cat "conftest.$ac_ext" >&5
13378 cf_cv_wint_t=unknown
13380 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13382 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13384 echo "$as_me:13384: result: $cf_cv_wint_t" >&5
13385 echo "${ECHO_T}$cf_cv_wint_t" >&6
13387 if test "$cf_cv_wint_t" = yes ; then
13389 cat >>confdefs.h <<\EOF
13390 #define NEED_WCHAR_H 1
13396 # if we do not find wint_t in either place, use substitution to provide a fallback.
13397 if test "$cf_cv_wint_t" = unknown ; then
13401 # if we find wint_t in either place, use substitution to provide a fallback.
13402 if test "$cf_cv_wint_t" != unknown ; then
13403 NCURSES_OK_WINT_T=1
13406 if test "$NCURSES_MBSTATE_T" != 0; then
13408 cat >>confdefs.h <<\EOF
13409 #define NEED_MBSTATE_T_DEF 1
13415 ### use option --disable-lp64 to allow long chtype
13416 echo "$as_me:13416: checking whether to enable _LP64 definition in curses.h" >&5
13417 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13419 # Check whether --enable-lp64 or --disable-lp64 was given.
13420 if test "${enable_lp64+set}" = set; then
13421 enableval="$enable_lp64"
13422 with_lp64=$enableval
13424 with_lp64=$cf_dft_with_lp64
13426 echo "$as_me:13426: result: $with_lp64" >&5
13427 echo "${ECHO_T}$with_lp64" >&6
13429 if test "x$with_lp64" = xyes ; then
13430 cf_cv_enable_lp64=1
13432 cf_cv_enable_lp64=0
13435 # Check whether --enable-largefile or --disable-largefile was given.
13436 if test "${enable_largefile+set}" = set; then
13437 enableval="$enable_largefile"
13440 if test "$enable_largefile" != no; then
13442 echo "$as_me:13442: checking for special C compiler options needed for large files" >&5
13443 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13444 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 ac_cv_sys_largefile_CC=no
13448 if test "$GCC" != yes; then
13451 # IRIX 6.2 and later do not support large files by default,
13452 # so use the C compiler's -n32 option if that helps.
13453 cat >"conftest.$ac_ext" <<_ACEOF
13454 #line 13454 "configure"
13455 #include "confdefs.h"
13456 #include <sys/types.h>
13457 /* Check that off_t can represent 2**63 - 1 correctly.
13458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13459 since some C++ compilers masquerading as C compilers
13460 incorrectly reject 9223372036854775807. */
13461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13463 && LARGE_OFF_T % 2147483647 == 1)
13473 rm -f "conftest.$ac_objext"
13474 if { (eval echo "$as_me:13474: \"$ac_compile\"") >&5
13475 (eval $ac_compile) 2>&5
13477 echo "$as_me:13477: \$? = $ac_status" >&5
13478 (exit "$ac_status"); } &&
13479 { ac_try='test -s "conftest.$ac_objext"'
13480 { (eval echo "$as_me:13480: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:13483: \$? = $ac_status" >&5
13484 (exit "$ac_status"); }; }; then
13487 echo "$as_me: failed program was:" >&5
13488 cat "conftest.$ac_ext" >&5
13490 rm -f "conftest.$ac_objext"
13492 rm -f "conftest.$ac_objext"
13493 if { (eval echo "$as_me:13493: \"$ac_compile\"") >&5
13494 (eval $ac_compile) 2>&5
13496 echo "$as_me:13496: \$? = $ac_status" >&5
13497 (exit "$ac_status"); } &&
13498 { ac_try='test -s "conftest.$ac_objext"'
13499 { (eval echo "$as_me:13499: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:13502: \$? = $ac_status" >&5
13503 (exit "$ac_status"); }; }; then
13504 ac_cv_sys_largefile_CC=' -n32'; break
13506 echo "$as_me: failed program was:" >&5
13507 cat "conftest.$ac_ext" >&5
13509 rm -f "conftest.$ac_objext"
13513 rm -f "conftest.$ac_ext"
13516 echo "$as_me:13516: result: $ac_cv_sys_largefile_CC" >&5
13517 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13518 if test "$ac_cv_sys_largefile_CC" != no; then
13519 CC=$CC$ac_cv_sys_largefile_CC
13522 echo "$as_me:13522: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13523 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13524 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 ac_cv_sys_file_offset_bits=no
13529 cat >"conftest.$ac_ext" <<_ACEOF
13530 #line 13530 "configure"
13531 #include "confdefs.h"
13532 #include <sys/types.h>
13533 /* Check that off_t can represent 2**63 - 1 correctly.
13534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13535 since some C++ compilers masquerading as C compilers
13536 incorrectly reject 9223372036854775807. */
13537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13539 && LARGE_OFF_T % 2147483647 == 1)
13549 rm -f "conftest.$ac_objext"
13550 if { (eval echo "$as_me:13550: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>&5
13553 echo "$as_me:13553: \$? = $ac_status" >&5
13554 (exit "$ac_status"); } &&
13555 { ac_try='test -s "conftest.$ac_objext"'
13556 { (eval echo "$as_me:13556: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:13559: \$? = $ac_status" >&5
13560 (exit "$ac_status"); }; }; then
13563 echo "$as_me: failed program was:" >&5
13564 cat "conftest.$ac_ext" >&5
13566 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13567 cat >"conftest.$ac_ext" <<_ACEOF
13568 #line 13568 "configure"
13569 #include "confdefs.h"
13570 #define _FILE_OFFSET_BITS 64
13571 #include <sys/types.h>
13572 /* Check that off_t can represent 2**63 - 1 correctly.
13573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13574 since some C++ compilers masquerading as C compilers
13575 incorrectly reject 9223372036854775807. */
13576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13578 && LARGE_OFF_T % 2147483647 == 1)
13588 rm -f "conftest.$ac_objext"
13589 if { (eval echo "$as_me:13589: \"$ac_compile\"") >&5
13590 (eval $ac_compile) 2>&5
13592 echo "$as_me:13592: \$? = $ac_status" >&5
13593 (exit "$ac_status"); } &&
13594 { ac_try='test -s "conftest.$ac_objext"'
13595 { (eval echo "$as_me:13595: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:13598: \$? = $ac_status" >&5
13599 (exit "$ac_status"); }; }; then
13600 ac_cv_sys_file_offset_bits=64; break
13602 echo "$as_me: failed program was:" >&5
13603 cat "conftest.$ac_ext" >&5
13605 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13609 echo "$as_me:13609: result: $ac_cv_sys_file_offset_bits" >&5
13610 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13611 if test "$ac_cv_sys_file_offset_bits" != no; then
13613 cat >>confdefs.h <<EOF
13614 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13619 echo "$as_me:13619: checking for _LARGE_FILES value needed for large files" >&5
13620 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13621 if test "${ac_cv_sys_large_files+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 ac_cv_sys_large_files=no
13626 cat >"conftest.$ac_ext" <<_ACEOF
13627 #line 13627 "configure"
13628 #include "confdefs.h"
13629 #include <sys/types.h>
13630 /* Check that off_t can represent 2**63 - 1 correctly.
13631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13632 since some C++ compilers masquerading as C compilers
13633 incorrectly reject 9223372036854775807. */
13634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13636 && LARGE_OFF_T % 2147483647 == 1)
13646 rm -f "conftest.$ac_objext"
13647 if { (eval echo "$as_me:13647: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 (exit "$ac_status"); } &&
13652 { ac_try='test -s "conftest.$ac_objext"'
13653 { (eval echo "$as_me:13653: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:13656: \$? = $ac_status" >&5
13657 (exit "$ac_status"); }; }; then
13660 echo "$as_me: failed program was:" >&5
13661 cat "conftest.$ac_ext" >&5
13663 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13664 cat >"conftest.$ac_ext" <<_ACEOF
13665 #line 13665 "configure"
13666 #include "confdefs.h"
13667 #define _LARGE_FILES 1
13668 #include <sys/types.h>
13669 /* Check that off_t can represent 2**63 - 1 correctly.
13670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13671 since some C++ compilers masquerading as C compilers
13672 incorrectly reject 9223372036854775807. */
13673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13675 && LARGE_OFF_T % 2147483647 == 1)
13685 rm -f "conftest.$ac_objext"
13686 if { (eval echo "$as_me:13686: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>&5
13689 echo "$as_me:13689: \$? = $ac_status" >&5
13690 (exit "$ac_status"); } &&
13691 { ac_try='test -s "conftest.$ac_objext"'
13692 { (eval echo "$as_me:13692: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:13695: \$? = $ac_status" >&5
13696 (exit "$ac_status"); }; }; then
13697 ac_cv_sys_large_files=1; break
13699 echo "$as_me: failed program was:" >&5
13700 cat "conftest.$ac_ext" >&5
13702 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13706 echo "$as_me:13706: result: $ac_cv_sys_large_files" >&5
13707 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13708 if test "$ac_cv_sys_large_files" != no; then
13710 cat >>confdefs.h <<EOF
13711 #define _LARGE_FILES $ac_cv_sys_large_files
13718 if test "$enable_largefile" != no ; then
13719 echo "$as_me:13719: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13720 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13721 if test "${ac_cv_sys_largefile_source+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 ac_cv_sys_largefile_source=no
13726 cat >"conftest.$ac_ext" <<_ACEOF
13727 #line 13727 "configure"
13728 #include "confdefs.h"
13738 rm -f "conftest.$ac_objext"
13739 if { (eval echo "$as_me:13739: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>&5
13742 echo "$as_me:13742: \$? = $ac_status" >&5
13743 (exit "$ac_status"); } &&
13744 { ac_try='test -s "conftest.$ac_objext"'
13745 { (eval echo "$as_me:13745: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:13748: \$? = $ac_status" >&5
13749 (exit "$ac_status"); }; }; then
13752 echo "$as_me: failed program was:" >&5
13753 cat "conftest.$ac_ext" >&5
13755 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13756 cat >"conftest.$ac_ext" <<_ACEOF
13757 #line 13757 "configure"
13758 #include "confdefs.h"
13759 #define _LARGEFILE_SOURCE 1
13769 rm -f "conftest.$ac_objext"
13770 if { (eval echo "$as_me:13770: \"$ac_compile\"") >&5
13771 (eval $ac_compile) 2>&5
13773 echo "$as_me:13773: \$? = $ac_status" >&5
13774 (exit "$ac_status"); } &&
13775 { ac_try='test -s "conftest.$ac_objext"'
13776 { (eval echo "$as_me:13776: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:13779: \$? = $ac_status" >&5
13780 (exit "$ac_status"); }; }; then
13781 ac_cv_sys_largefile_source=1; break
13783 echo "$as_me: failed program was:" >&5
13784 cat "conftest.$ac_ext" >&5
13786 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13790 echo "$as_me:13790: result: $ac_cv_sys_largefile_source" >&5
13791 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13792 if test "$ac_cv_sys_largefile_source" != no; then
13794 cat >>confdefs.h <<EOF
13795 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13801 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13802 # in glibc 2.1.3, but that breaks too many other things.
13803 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13804 echo "$as_me:13804: checking for fseeko" >&5
13805 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13806 if test "${ac_cv_func_fseeko+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >"conftest.$ac_ext" <<_ACEOF
13810 #line 13810 "configure"
13811 #include "confdefs.h"
13816 return fseeko && fseeko (stdin, 0, 0);
13821 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13822 if { (eval echo "$as_me:13822: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>&5
13825 echo "$as_me:13825: \$? = $ac_status" >&5
13826 (exit "$ac_status"); } &&
13827 { ac_try='test -s "conftest$ac_exeext"'
13828 { (eval echo "$as_me:13828: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:13831: \$? = $ac_status" >&5
13832 (exit "$ac_status"); }; }; then
13833 ac_cv_func_fseeko=yes
13835 echo "$as_me: failed program was:" >&5
13836 cat "conftest.$ac_ext" >&5
13837 ac_cv_func_fseeko=no
13839 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13841 echo "$as_me:13841: result: $ac_cv_func_fseeko" >&5
13842 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13843 if test $ac_cv_func_fseeko = yes; then
13845 cat >>confdefs.h <<\EOF
13846 #define HAVE_FSEEKO 1
13851 # Normally we would collect these definitions in the config.h,
13852 # but (like _XOPEN_SOURCE), some environments rely on having these
13853 # defined before any of the system headers are included. Another
13854 # case comes up with C++, e.g., on AIX the compiler compiles the
13855 # header files by themselves before looking at the body files it is
13856 # told to compile. For ncurses, those header files do not include
13858 if test "$ac_cv_sys_large_files" != no
13861 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13862 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13865 if test "$ac_cv_sys_largefile_source" != no
13868 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13869 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13872 if test "$ac_cv_sys_file_offset_bits" != no
13875 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13876 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13880 echo "$as_me:13880: checking whether to use struct dirent64" >&5
13881 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13882 if test "${cf_cv_struct_dirent64+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 cat >"conftest.$ac_ext" <<_ACEOF
13887 #line 13887 "configure"
13888 #include "confdefs.h"
13890 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13891 #include <sys/types.h>
13892 #include <dirent.h>
13898 /* if transitional largefile support is setup, this is true */
13899 extern struct dirent64 * readdir(DIR *);
13900 struct dirent64 *x = readdir((DIR *)0);
13901 struct dirent *y = readdir((DIR *)0);
13909 rm -f "conftest.$ac_objext"
13910 if { (eval echo "$as_me:13910: \"$ac_compile\"") >&5
13911 (eval $ac_compile) 2>&5
13913 echo "$as_me:13913: \$? = $ac_status" >&5
13914 (exit "$ac_status"); } &&
13915 { ac_try='test -s "conftest.$ac_objext"'
13916 { (eval echo "$as_me:13916: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:13919: \$? = $ac_status" >&5
13920 (exit "$ac_status"); }; }; then
13921 cf_cv_struct_dirent64=yes
13923 echo "$as_me: failed program was:" >&5
13924 cat "conftest.$ac_ext" >&5
13925 cf_cv_struct_dirent64=no
13927 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13930 echo "$as_me:13930: result: $cf_cv_struct_dirent64" >&5
13931 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13932 test "$cf_cv_struct_dirent64" = yes &&
13933 cat >>confdefs.h <<\EOF
13934 #define HAVE_STRUCT_DIRENT64 1
13939 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13940 echo "$as_me:13940: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13941 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13943 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13944 if test "${enable_tparm_varargs+set}" = set; then
13945 enableval="$enable_tparm_varargs"
13946 with_tparm_varargs=$enableval
13948 with_tparm_varargs=yes
13950 echo "$as_me:13950: result: $with_tparm_varargs" >&5
13951 echo "${ECHO_T}$with_tparm_varargs" >&6
13952 NCURSES_TPARM_VARARGS=0
13953 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13955 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13956 if test "$with_ticlib" != no ; then
13957 echo "$as_me:13957: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13958 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13960 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13961 if test "${enable_tic_depends+set}" = set; then
13962 enableval="$enable_tic_depends"
13963 with_tic_depends=$enableval
13965 with_tic_depends=yes
13967 echo "$as_me:13967: result: $with_tic_depends" >&5
13968 echo "${ECHO_T}$with_tic_depends" >&6
13970 with_tic_depends=no
13973 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
13974 echo "$as_me:13974: checking if you want to enable wattr* macros" >&5
13975 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
13977 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13978 if test "${enable_wattr_macros+set}" = set; then
13979 enableval="$enable_wattr_macros"
13980 with_wattr_macros=$enableval
13982 with_wattr_macros=no
13984 if [ "x$with_wattr_macros" != xyes ]; then
13985 NCURSES_WATTR_MACROS=0
13986 echo "$as_me:13986: result: no" >&5
13987 echo "${ECHO_T}no" >&6
13989 NCURSES_WATTR_MACROS=1
13990 echo "$as_me:13990: result: yes" >&5
13991 echo "${ECHO_T}yes" >&6
13994 echo "$as_me:13994: checking for X11 rgb file" >&5
13995 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13997 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13998 if test "${with_x11_rgb+set}" = set; then
13999 withval="$with_x11_rgb"
14005 if test "x$RGB_PATH" = xauto
14007 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14009 /opt/local/share/X11/rgb.txt \
14010 /opt/X11/share/X11/rgb.txt \
14011 /usr/share/X11/rgb.txt \
14012 /usr/X11/share/X11/rgb.txt \
14013 /usr/X11/lib/X11/rgb.txt \
14014 /usr/lib/X11/rgb.txt \
14016 /usr/pkg/lib/X11/rgb.txt \
14017 /usr/X11R7/lib/X11/rgb.txt \
14018 /usr/X11R6/lib/X11/rgb.txt \
14019 /usr/X11R5/lib/X11/rgb.txt \
14020 /usr/X11R4/lib/X11/rgb.txt \
14021 /usr/local/lib/X11/rgb.txt \
14022 /usr/local/share/X11/rgb.txt \
14023 /usr/lib64/X11/rgb.txt
14025 if test -f "$cf_path" ; then
14026 RGB_PATH="$cf_path"
14033 if test "x$prefix" != xNONE; then
14034 cf_path_syntax="$prefix"
14036 cf_path_syntax="$ac_default_prefix"
14039 case ".$cf_path" in
14040 (.\$\(*\)*|.\'*\'*)
14044 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14046 (.\$\{*prefix\}*|.\$\{*dir\}*)
14047 eval cf_path="$cf_path"
14048 case ".$cf_path" in
14050 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14055 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14058 { { echo "$as_me:14058: error: expected a pathname, not \"$cf_path\"" >&5
14059 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14060 { (exit 1); exit 1; }; }
14066 echo "$as_me:14066: result: $RGB_PATH" >&5
14067 echo "${ECHO_T}$RGB_PATH" >&6
14069 cat >>confdefs.h <<EOF
14070 #define RGB_PATH "$cf_path"
14074 if test "$RGB_PATH" = no
14079 ### use option --with-bool to override bool's type
14080 echo "$as_me:14080: checking for type of bool" >&5
14081 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14083 # Check whether --with-bool or --without-bool was given.
14084 if test "${with_bool+set}" = set; then
14085 withval="$with_bool"
14086 NCURSES_BOOL="$withval"
14090 echo "$as_me:14090: result: $NCURSES_BOOL" >&5
14091 echo "${ECHO_T}$NCURSES_BOOL" >&6
14093 echo "$as_me:14093: checking for alternate terminal capabilities file" >&5
14094 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14096 # Check whether --with-caps or --without-caps was given.
14097 if test "${with_caps+set}" = set; then
14098 withval="$with_caps"
14099 TERMINFO_CAPS=Caps.$withval
14103 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14105 { echo "$as_me:14105: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14106 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14109 echo "$as_me:14109: result: $TERMINFO_CAPS" >&5
14110 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14112 ### use option --with-chtype to override chtype's type
14113 echo "$as_me:14113: checking for type of chtype" >&5
14114 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14116 # Check whether --with-chtype or --without-chtype was given.
14117 if test "${with_chtype+set}" = set; then
14118 withval="$with_chtype"
14119 NCURSES_CHTYPE="$withval"
14121 NCURSES_CHTYPE=$cf_dft_chtype
14123 echo "$as_me:14123: result: $NCURSES_CHTYPE" >&5
14124 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14126 ### use option --with-ospeed to override ospeed's type
14127 echo "$as_me:14127: checking for type of ospeed" >&5
14128 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14130 # Check whether --with-ospeed or --without-ospeed was given.
14131 if test "${with_ospeed+set}" = set; then
14132 withval="$with_ospeed"
14133 NCURSES_OSPEED="$withval"
14135 NCURSES_OSPEED=short
14137 echo "$as_me:14137: result: $NCURSES_OSPEED" >&5
14138 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14140 ### use option --with-mmask-t to override mmask_t's type
14141 echo "$as_me:14141: checking for type of mmask_t" >&5
14142 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14144 # Check whether --with-mmask-t or --without-mmask-t was given.
14145 if test "${with_mmask_t+set}" = set; then
14146 withval="$with_mmask_t"
14147 NCURSES_MMASK_T="$withval"
14149 NCURSES_MMASK_T=$cf_dft_mmask_t
14151 echo "$as_me:14151: result: $NCURSES_MMASK_T" >&5
14152 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14154 ### use option --with-ccharw-max to override CCHARW_MAX size
14155 echo "$as_me:14155: checking for size CCHARW_MAX" >&5
14156 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14158 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14159 if test "${with_ccharw_max+set}" = set; then
14160 withval="$with_ccharw_max"
14161 NCURSES_CCHARW_MAX="$withval"
14163 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14165 echo "$as_me:14165: result: $NCURSES_CCHARW_MAX" >&5
14166 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14168 echo "$as_me:14168: checking for ANSI C header files" >&5
14169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14170 if test "${ac_cv_header_stdc+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >"conftest.$ac_ext" <<_ACEOF
14174 #line 14174 "configure"
14175 #include "confdefs.h"
14176 #include <stdlib.h>
14177 #include <stdarg.h>
14178 #include <string.h>
14182 if { (eval echo "$as_me:14182: \"$ac_cpp "conftest.$ac_ext"\"") >&5
14183 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
14185 $EGREP -v '^ *\+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:14188: \$? = $ac_status" >&5
14189 (exit "$ac_status"); } >/dev/null; then
14190 if test -s conftest.err; then
14191 ac_cpp_err=$ac_c_preproc_warn_flag
14198 if test -z "$ac_cpp_err"; then
14199 ac_cv_header_stdc=yes
14201 echo "$as_me: failed program was:" >&5
14202 cat "conftest.$ac_ext" >&5
14203 ac_cv_header_stdc=no
14205 rm -f conftest.err "conftest.$ac_ext"
14207 if test $ac_cv_header_stdc = yes; then
14208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14209 cat >"conftest.$ac_ext" <<_ACEOF
14210 #line 14210 "configure"
14211 #include "confdefs.h"
14212 #include <string.h>
14215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14216 $EGREP "memchr" >/dev/null 2>&1; then
14219 ac_cv_header_stdc=no
14225 if test $ac_cv_header_stdc = yes; then
14226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14227 cat >"conftest.$ac_ext" <<_ACEOF
14228 #line 14228 "configure"
14229 #include "confdefs.h"
14230 #include <stdlib.h>
14233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14234 $EGREP "free" >/dev/null 2>&1; then
14237 ac_cv_header_stdc=no
14243 if test $ac_cv_header_stdc = yes; then
14244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14245 if test "$cross_compiling" = yes; then
14248 cat >"conftest.$ac_ext" <<_ACEOF
14249 #line 14249 "configure"
14250 #include "confdefs.h"
14252 #if ((' ' & 0x0FF) == 0x020)
14253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14256 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14257 || ('j' <= (c) && (c) <= 'r') \
14258 || ('s' <= (c) && (c) <= 'z'))
14259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14267 for (i = 0; i < 256; i++)
14268 if (XOR (islower (i), ISLOWER (i))
14269 || toupper (i) != TOUPPER (i))
14270 $ac_main_return(2);
14271 $ac_main_return (0);
14274 rm -f "conftest$ac_exeext"
14275 if { (eval echo "$as_me:14275: \"$ac_link\"") >&5
14276 (eval $ac_link) 2>&5
14278 echo "$as_me:14278: \$? = $ac_status" >&5
14279 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14280 { (eval echo "$as_me:14280: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:14283: \$? = $ac_status" >&5
14284 (exit "$ac_status"); }; }; then
14287 echo "$as_me: program exited with status $ac_status" >&5
14288 echo "$as_me: failed program was:" >&5
14289 cat "conftest.$ac_ext" >&5
14290 ac_cv_header_stdc=no
14292 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14296 echo "$as_me:14296: result: $ac_cv_header_stdc" >&5
14297 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14298 if test $ac_cv_header_stdc = yes; then
14300 cat >>confdefs.h <<\EOF
14301 #define STDC_HEADERS 1
14306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14308 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14309 inttypes.h stdint.h unistd.h
14311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14312 echo "$as_me:14312: checking for $ac_header" >&5
14313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >"conftest.$ac_ext" <<_ACEOF
14318 #line 14318 "configure"
14319 #include "confdefs.h"
14320 $ac_includes_default
14321 #include <$ac_header>
14323 rm -f "conftest.$ac_objext"
14324 if { (eval echo "$as_me:14324: \"$ac_compile\"") >&5
14325 (eval $ac_compile) 2>&5
14327 echo "$as_me:14327: \$? = $ac_status" >&5
14328 (exit "$ac_status"); } &&
14329 { ac_try='test -s "conftest.$ac_objext"'
14330 { (eval echo "$as_me:14330: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:14333: \$? = $ac_status" >&5
14334 (exit "$ac_status"); }; }; then
14335 eval "$as_ac_Header=yes"
14337 echo "$as_me: failed program was:" >&5
14338 cat "conftest.$ac_ext" >&5
14339 eval "$as_ac_Header=no"
14341 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14343 echo "$as_me:14343: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
14345 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
14346 cat >>confdefs.h <<EOF
14347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14353 echo "$as_me:14353: checking for signed char" >&5
14354 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14355 if test "${ac_cv_type_signed_char+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >"conftest.$ac_ext" <<_ACEOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361 $ac_includes_default
14365 if ((signed char *) 0)
14367 if (sizeof (signed char))
14373 rm -f "conftest.$ac_objext"
14374 if { (eval echo "$as_me:14374: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>&5
14377 echo "$as_me:14377: \$? = $ac_status" >&5
14378 (exit "$ac_status"); } &&
14379 { ac_try='test -s "conftest.$ac_objext"'
14380 { (eval echo "$as_me:14380: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:14383: \$? = $ac_status" >&5
14384 (exit "$ac_status"); }; }; then
14385 ac_cv_type_signed_char=yes
14387 echo "$as_me: failed program was:" >&5
14388 cat "conftest.$ac_ext" >&5
14389 ac_cv_type_signed_char=no
14391 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14393 echo "$as_me:14393: result: $ac_cv_type_signed_char" >&5
14394 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14396 echo "$as_me:14396: checking size of signed char" >&5
14397 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14398 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 if test "$ac_cv_type_signed_char" = yes; then
14402 if test "$cross_compiling" = yes; then
14403 # Depending upon the size, compute the lo and hi bounds.
14404 cat >"conftest.$ac_ext" <<_ACEOF
14405 #line 14405 "configure"
14406 #include "confdefs.h"
14407 $ac_includes_default
14411 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14416 rm -f "conftest.$ac_objext"
14417 if { (eval echo "$as_me:14417: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>&5
14420 echo "$as_me:14420: \$? = $ac_status" >&5
14421 (exit "$ac_status"); } &&
14422 { ac_try='test -s "conftest.$ac_objext"'
14423 { (eval echo "$as_me:14423: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:14426: \$? = $ac_status" >&5
14427 (exit "$ac_status"); }; }; then
14430 cat >"conftest.$ac_ext" <<_ACEOF
14431 #line 14431 "configure"
14432 #include "confdefs.h"
14433 $ac_includes_default
14437 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14442 rm -f "conftest.$ac_objext"
14443 if { (eval echo "$as_me:14443: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit "$ac_status"); } &&
14448 { ac_try='test -s "conftest.$ac_objext"'
14449 { (eval echo "$as_me:14449: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 (exit "$ac_status"); }; }; then
14454 ac_hi=$ac_mid; break
14456 echo "$as_me: failed program was:" >&5
14457 cat "conftest.$ac_ext" >&5
14458 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14460 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14463 echo "$as_me: failed program was:" >&5
14464 cat "conftest.$ac_ext" >&5
14467 cat >"conftest.$ac_ext" <<_ACEOF
14468 #line 14468 "configure"
14469 #include "confdefs.h"
14470 $ac_includes_default
14474 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14479 rm -f "conftest.$ac_objext"
14480 if { (eval echo "$as_me:14480: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>&5
14483 echo "$as_me:14483: \$? = $ac_status" >&5
14484 (exit "$ac_status"); } &&
14485 { ac_try='test -s "conftest.$ac_objext"'
14486 { (eval echo "$as_me:14486: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:14489: \$? = $ac_status" >&5
14490 (exit "$ac_status"); }; }; then
14491 ac_lo=$ac_mid; break
14493 echo "$as_me: failed program was:" >&5
14494 cat "conftest.$ac_ext" >&5
14495 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14497 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14500 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14501 # Binary search between lo and hi bounds.
14502 while test "x$ac_lo" != "x$ac_hi"; do
14503 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14504 cat >"conftest.$ac_ext" <<_ACEOF
14505 #line 14505 "configure"
14506 #include "confdefs.h"
14507 $ac_includes_default
14511 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14516 rm -f "conftest.$ac_objext"
14517 if { (eval echo "$as_me:14517: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>&5
14520 echo "$as_me:14520: \$? = $ac_status" >&5
14521 (exit "$ac_status"); } &&
14522 { ac_try='test -s "conftest.$ac_objext"'
14523 { (eval echo "$as_me:14523: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 (exit "$ac_status"); }; }; then
14530 echo "$as_me: failed program was:" >&5
14531 cat "conftest.$ac_ext" >&5
14532 ac_lo=`expr "$ac_mid" + 1`
14534 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14536 ac_cv_sizeof_signed_char=$ac_lo
14538 if test "$cross_compiling" = yes; then
14539 { { echo "$as_me:14539: error: cannot run test program while cross compiling" >&5
14540 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14541 { (exit 1); exit 1; }; }
14543 cat >"conftest.$ac_ext" <<_ACEOF
14544 #line 14544 "configure"
14545 #include "confdefs.h"
14546 $ac_includes_default
14550 FILE *f = fopen ("conftest.val", "w");
14552 $ac_main_return (1);
14553 fprintf (f, "%ld", (long)(sizeof (signed char)));
14559 rm -f "conftest$ac_exeext"
14560 if { (eval echo "$as_me:14560: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>&5
14563 echo "$as_me:14563: \$? = $ac_status" >&5
14564 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14565 { (eval echo "$as_me:14565: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:14568: \$? = $ac_status" >&5
14569 (exit "$ac_status"); }; }; then
14570 ac_cv_sizeof_signed_char=`cat conftest.val`
14572 echo "$as_me: program exited with status $ac_status" >&5
14573 echo "$as_me: failed program was:" >&5
14574 cat "conftest.$ac_ext" >&5
14576 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14581 ac_cv_sizeof_signed_char=0
14584 echo "$as_me:14584: result: $ac_cv_sizeof_signed_char" >&5
14585 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14586 cat >>confdefs.h <<EOF
14587 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14590 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14591 NCURSES_SBOOL="signed char"
14593 NCURSES_SBOOL="char"
14595 echo "$as_me:14595: checking if you want to use signed Boolean array in term.h" >&5
14596 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14598 # Check whether --enable-signed-char or --disable-signed-char was given.
14599 if test "${enable_signed_char+set}" = set; then
14600 enableval="$enable_signed_char"
14601 with_signed_char=$enableval
14603 with_signed_char=$cf_dft_signed_char
14605 echo "$as_me:14605: result: $with_signed_char" >&5
14606 echo "${ECHO_T}$with_signed_char" >&6
14607 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14609 ### use option --with-tparm-arg to override tparm's argument type
14610 echo "$as_me:14610: checking for type of tparm args" >&5
14611 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14613 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14614 if test "${with_tparm_arg+set}" = set; then
14615 withval="$with_tparm_arg"
14616 NCURSES_TPARM_ARG="$withval"
14618 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14620 echo "$as_me:14620: result: $NCURSES_TPARM_ARG" >&5
14621 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14623 ### Enable compiling-in rcs id's
14624 echo "$as_me:14624: checking if RCS identifiers should be compiled-in" >&5
14625 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14627 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14628 if test "${with_rcs_ids+set}" = set; then
14629 withval="$with_rcs_ids"
14630 with_rcs_ids=$withval
14634 echo "$as_me:14634: result: $with_rcs_ids" >&5
14635 echo "${ECHO_T}$with_rcs_ids" >&6
14636 test "x$with_rcs_ids" = xyes &&
14637 cat >>confdefs.h <<\EOF
14638 #define USE_RCS_IDS 1
14641 ###############################################################################
14643 echo "$as_me:14643: checking format of man-pages" >&5
14644 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14646 # Check whether --with-manpage-format or --without-manpage-format was given.
14647 if test "${with_manpage_format+set}" = set; then
14648 withval="$with_manpage_format"
14649 MANPAGE_FORMAT=$withval
14651 MANPAGE_FORMAT=unknown
14654 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14655 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14659 case "$MANPAGE_FORMAT" in
14661 if test -z "$MANPATH" ; then
14662 MANPATH="/usr/man:/usr/share/man"
14665 # look for the 'date' man-page (it is most likely to be installed!)
14671 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14672 for cf_dir in $MANPATH; do
14673 test -z "$cf_dir" && cf_dir=/usr/man
14674 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
14676 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14677 if test "x$cf_test" = "x$cf_name" ; then
14680 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14681 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14682 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14683 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14697 # if we found a match in either man* or cat*, stop looking
14698 if test -n "$MANPAGE_FORMAT" ; then
14700 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14701 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14707 test "$cf_found" = yes && break
14710 # only check the first directory in $MANPATH where we find manpages
14711 if test -n "$MANPAGE_FORMAT" ; then
14715 # if we did not find the example, just assume it is normal
14716 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14720 for cf_option in $MANPAGE_FORMAT; do
14721 case "$cf_option" in
14722 (gzip|compress|BSDI|normal|formatted|catonly)
14725 cf_unknown="$cf_unknown $cf_option"
14732 echo "$as_me:14732: result: $MANPAGE_FORMAT" >&5
14733 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14734 if test -n "$cf_unknown" ; then
14735 { echo "$as_me:14735: WARNING: Unexpected manpage-format $cf_unknown" >&5
14736 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14739 echo "$as_me:14739: checking for manpage renaming" >&5
14740 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14742 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14743 if test "${with_manpage_renames+set}" = set; then
14744 withval="$with_manpage_renames"
14745 MANPAGE_RENAMES=$withval
14747 MANPAGE_RENAMES=yes
14750 case ".$MANPAGE_RENAMES" in
14754 # Debian 'man' program?
14755 if test -f /etc/debian_version ; then
14756 MANPAGE_RENAMES=man/man_db.renames
14763 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
14764 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
14765 elif test "$MANPAGE_RENAMES" = no ; then
14767 elif test ! -f "$MANPAGE_RENAMES" ; then
14768 { { echo "$as_me:14768: error: not a filename: $MANPAGE_RENAMES" >&5
14769 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14770 { (exit 1); exit 1; }; }
14773 echo "$as_me:14773: result: $MANPAGE_RENAMES" >&5
14774 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14776 echo "$as_me:14776: checking if manpage aliases will be installed" >&5
14777 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14779 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14780 if test "${with_manpage_aliases+set}" = set; then
14781 withval="$with_manpage_aliases"
14782 MANPAGE_ALIASES=$withval
14784 MANPAGE_ALIASES=yes
14787 echo "$as_me:14787: result: $MANPAGE_ALIASES" >&5
14788 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14792 cf_use_symlinks=yes
14799 MANPAGE_SYMLINKS=no
14800 if test "$MANPAGE_ALIASES" = yes ; then
14801 echo "$as_me:14801: checking if manpage symlinks should be used" >&5
14802 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14804 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14805 if test "${with_manpage_symlinks+set}" = set; then
14806 withval="$with_manpage_symlinks"
14807 MANPAGE_SYMLINKS=$withval
14809 MANPAGE_SYMLINKS=$cf_use_symlinks
14812 if test "$$cf_use_symlinks" = no; then
14813 if test "$MANPAGE_SYMLINKS" = yes ; then
14814 { echo "$as_me:14814: WARNING: cannot make symlinks" >&5
14815 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14816 MANPAGE_SYMLINKS=no
14820 echo "$as_me:14820: result: $MANPAGE_SYMLINKS" >&5
14821 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14824 echo "$as_me:14824: checking for manpage tbl" >&5
14825 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14827 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14828 if test "${with_manpage_tbl+set}" = set; then
14829 withval="$with_manpage_tbl"
14830 MANPAGE_TBL=$withval
14835 echo "$as_me:14835: result: $MANPAGE_TBL" >&5
14836 echo "${ECHO_T}$MANPAGE_TBL" >&6
14838 if test "$prefix" = "NONE" ; then
14839 cf_prefix="$ac_default_prefix"
14841 cf_prefix="$prefix"
14844 case "$MANPAGE_FORMAT" in
14859 test ! -d man && mkdir man
14863 case "$MANPAGE_FORMAT" in
14866 cf_compress=compress
14874 cf_edit_man=./edit_man.sh
14875 cf_man_alias=`pwd`/man_alias.sed
14877 cat >$cf_edit_man <<CF_EOF
14879 # this script is generated by the configure-script CF_MAN_PAGES macro.
14881 prefix="$cf_prefix"
14882 datarootdir="$datarootdir"
14885 NCURSES_MAJOR="$NCURSES_MAJOR"
14886 NCURSES_MINOR="$NCURSES_MINOR"
14887 NCURSES_PATCH="$NCURSES_PATCH"
14889 NCURSES_OSPEED="$NCURSES_OSPEED"
14890 TERMINFO="$TERMINFO"
14893 INSTALL_DATA="$INSTALL_DATA"
14895 transform="$program_transform_name"
14897 TMP=\${TMPDIR:=/tmp}/man\$\$
14898 trap "rm -f \$TMP; exit 1" 1 2 3 15
14899 trap "rm -f \$TMP" 0
14911 top_srcdir=\$srcdir/..
14914 if test "\$form" = normal ; then
14915 if test "$cf_format" = yes ; then
14916 if test "$cf_inboth" = no ; then
14917 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14921 cf_subdir=\$mandir/man
14922 cf_tables=$MANPAGE_TBL
14924 cf_subdir=\$mandir/cat
14928 # process the list of source-files
14929 for i in "\$@" ; do
14933 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14934 if test "\$verb" = installing ; then
14935 if test ! -d "\$cf_subdir\${section}" ; then
14936 mkdir -p "\$cf_subdir\$section"
14940 # replace variables in man page
14941 if test ! -f "$cf_man_alias" ; then
14942 cat >>$cf_man_alias <<-CF_EOF2
14943 s,@DATADIR@,\$datadir,g
14944 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14945 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14946 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14947 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14948 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14949 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14952 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14954 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14955 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14956 cat >>$cf_edit_man <<-CF_EOF
14957 s,@$cf_NAME@,$cf_name,g
14961 cat >>$cf_edit_man <<CF_EOF
14963 echo "...made $cf_man_alias"
14967 cf_source=\`basename "\$i"\`
14968 inalias=\$cf_source
14969 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14970 if test ! -f "\$inalias" ; then
14971 echo ".. skipped \$cf_source"
14976 if test "$MANPAGE_ALIASES" != no ; then
14977 cat >>$cf_edit_man <<CF_EOF
14979 test "$with_curses_h" = yes && nCurses=ncurses.3x
14980 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14984 if test "$MANPAGE_RENAMES" = no ; then
14985 cat >>$cf_edit_man <<CF_EOF
14986 # perform program transformations for section 1 man pages
14987 if test \$section = 1 ; then
14988 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14990 cf_target=\$cf_subdir\${section}/\$cf_source
14994 cat >>$cf_edit_man <<CF_EOF
14995 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14996 if test -z "\$cf_target" ; then
14997 echo "? missing rename for \$cf_source"
14998 cf_target="\$cf_source"
15000 cf_target="\$cf_subdir\${section}/\${cf_target}"
15005 cat >>$cf_edit_man <<CF_EOF
15006 sed -f "$cf_man_alias" \\
15009 if test "$MANPAGE_RENAMES" != no ; then
15010 cat >>$cf_edit_man <<CF_EOF
15011 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15014 cat >>$cf_edit_man <<CF_EOF
15019 cat >>$cf_edit_man <<CF_EOF
15020 if test \$cf_tables = yes ; then
15021 tbl \$TMP >\$TMP.out
15026 if test "$with_overwrite" != yes ; then
15027 cat >>$cf_edit_man <<CF_EOF
15028 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15033 if test "$with_curses_h" != yes ; then
15034 cat >>$cf_edit_man <<CF_EOF
15035 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15040 cat >>$cf_edit_man <<CF_EOF
15041 if test "\$form" = format ; then
15042 nroff -man \$TMP >\$TMP.out
15047 if test -n "$cf_compress" ; then
15048 cat >>$cf_edit_man <<CF_EOF
15049 if test "\$verb" = installing ; then
15050 if ( "$cf_compress" -f \$TMP )
15052 mv \$TMP.$cf_so_strip \$TMP
15055 cf_target="\$cf_target.$cf_so_strip"
15059 case "$MANPAGE_FORMAT" in
15061 cat >>$cf_edit_man <<CF_EOF
15062 if test "\$form" = format ; then
15063 # BSDI installs only .0 suffixes in the cat directories
15064 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15070 cat >>$cf_edit_man <<CF_EOF
15071 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15072 if test "\$verb" = installing ; then
15073 echo "\$verb \$cf_target"
15074 \$INSTALL_DATA \$TMP "\$cf_target"
15075 test -d "\$cf_subdir\${section}" &&
15076 test -n "\$aliases" && (
15077 cd "\$cf_subdir\${section}" && (
15078 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15079 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
15080 cf_target=\`basename "\$cf_target"\`
15081 for cf_alias in \$aliases
15083 if test "\$section" = 1 ; then
15084 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15087 if test "$MANPAGE_SYMLINKS" = yes ; then
15088 if test -f "\$cf_alias\${suffix}" ; then
15089 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15094 echo ".. \$verb alias \$cf_alias\${suffix}"
15098 cat >>$cf_edit_man <<CF_EOF
15099 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15103 cat >>$cf_edit_man <<CF_EOF
15104 rm -f "\$cf_alias\${suffix}"
15105 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15109 cat >>$cf_edit_man <<CF_EOF
15110 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15111 echo ".so \$cf_source" >\$TMP
15113 if test -n "$cf_compress" ; then
15114 cat >>$cf_edit_man <<CF_EOF
15115 if test -n "$cf_so_strip" ; then
15116 "$cf_compress" -f \$TMP
15117 mv \$TMP.$cf_so_strip \$TMP
15121 cat >>$cf_edit_man <<CF_EOF
15122 echo ".. \$verb alias \$cf_alias\${suffix}"
15123 rm -f "\$cf_alias\${suffix}"
15124 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15129 elif test "\$verb" = removing ; then
15130 test -f "\$cf_target" && (
15131 echo "\$verb \$cf_target"
15132 rm -f "\$cf_target"
15134 test -d "\$cf_subdir\${section}" &&
15135 test -n "\$aliases" && (
15136 cd "\$cf_subdir\${section}" && (
15137 for cf_alias in \$aliases
15139 if test "\$section" = 1 ; then
15140 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15143 echo ".. \$verb alias \$cf_alias\${suffix}"
15144 rm -f "\$cf_alias\${suffix}"
15156 if test "$cf_inboth" = yes ; then
15157 if test "\$form" != format ; then
15158 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15164 chmod 755 "$cf_edit_man"
15166 ###############################################################################
15168 ### Note that some functions (such as const) are normally disabled anyway.
15169 echo "$as_me:15169: checking if you want to build with function extensions" >&5
15170 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15172 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15173 if test "${enable_ext_funcs+set}" = set; then
15174 enableval="$enable_ext_funcs"
15175 with_ext_funcs=$enableval
15179 echo "$as_me:15179: result: $with_ext_funcs" >&5
15180 echo "${ECHO_T}$with_ext_funcs" >&6
15181 if test "x$with_ext_funcs" = xyes ; then
15182 NCURSES_EXT_FUNCS=1
15184 cat >>confdefs.h <<\EOF
15185 #define NCURSES_EXT_FUNCS 1
15188 cat >>confdefs.h <<\EOF
15189 #define HAVE_ASSUME_DEFAULT_COLORS 1
15192 cat >>confdefs.h <<\EOF
15193 #define HAVE_CURSES_VERSION 1
15196 cat >>confdefs.h <<\EOF
15197 #define HAVE_HAS_KEY 1
15200 cat >>confdefs.h <<\EOF
15201 #define HAVE_RESIZETERM 1
15204 cat >>confdefs.h <<\EOF
15205 #define HAVE_RESIZE_TERM 1
15208 cat >>confdefs.h <<\EOF
15209 #define HAVE_TERM_ENTRY_H 1
15212 cat >>confdefs.h <<\EOF
15213 #define HAVE_USE_DEFAULT_COLORS 1
15216 cat >>confdefs.h <<\EOF
15217 #define HAVE_USE_EXTENDED_NAMES 1
15220 cat >>confdefs.h <<\EOF
15221 #define HAVE_USE_SCREEN 1
15224 cat >>confdefs.h <<\EOF
15225 #define HAVE_USE_WINDOW 1
15228 cat >>confdefs.h <<\EOF
15229 #define HAVE_WRESIZE 1
15232 GENERATED_EXT_FUNCS=generated
15233 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15235 NCURSES_EXT_FUNCS=0
15236 GENERATED_EXT_FUNCS=
15239 echo "$as_me:15239: checking if you want to build with SCREEN extensions" >&5
15240 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15242 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15243 if test "${enable_sp_funcs+set}" = set; then
15244 enableval="$enable_sp_funcs"
15245 with_sp_funcs=$enableval
15247 with_sp_funcs=$cf_dft_ext_spfuncs
15249 echo "$as_me:15249: result: $with_sp_funcs" >&5
15250 echo "${ECHO_T}$with_sp_funcs" >&6
15251 if test "x$with_sp_funcs" = xyes ; then
15254 cat >>confdefs.h <<\EOF
15255 #define NCURSES_SP_FUNCS 1
15258 cat >>confdefs.h <<\EOF
15259 #define HAVE_TPUTS_SP 1
15262 GENERATED_SP_FUNCS=generated
15265 GENERATED_SP_FUNCS=
15268 echo "$as_me:15268: checking if you want to build with terminal-driver" >&5
15269 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15271 # Check whether --enable-term-driver or --disable-term-driver was given.
15272 if test "${enable_term_driver+set}" = set; then
15273 enableval="$enable_term_driver"
15274 with_term_driver=$enableval
15276 with_term_driver=no
15278 echo "$as_me:15278: result: $with_term_driver" >&5
15279 echo "${ECHO_T}$with_term_driver" >&6
15280 if test "x$with_term_driver" = xyes ; then
15282 cat >>confdefs.h <<\EOF
15283 #define USE_TERM_DRIVER 1
15286 if test "x$with_termlib" != xno ; then
15287 { { echo "$as_me:15287: error: The term-driver option conflicts with the termlib option" >&5
15288 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15289 { (exit 1); exit 1; }; }
15291 if test "x$with_sp_funcs" != xyes ; then
15292 { { echo "$as_me:15292: error: The term-driver option relies upon sp-funcs" >&5
15293 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15294 { (exit 1); exit 1; }; }
15298 ### use option --enable-const to turn on use of const beyond that in XSI.
15299 echo "$as_me:15299: checking for extended use of const keyword" >&5
15300 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15302 # Check whether --enable-const or --disable-const was given.
15303 if test "${enable_const+set}" = set; then
15304 enableval="$enable_const"
15305 with_ext_const=$enableval
15307 with_ext_const=$cf_dft_ext_const
15309 echo "$as_me:15309: result: $with_ext_const" >&5
15310 echo "${ECHO_T}$with_ext_const" >&6
15311 NCURSES_CONST='/*nothing*/'
15312 if test "x$with_ext_const" = xyes ; then
15313 NCURSES_CONST=const
15316 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15317 echo "$as_me:15317: checking if you want to use extended colors" >&5
15318 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15320 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15321 if test "${enable_ext_colors+set}" = set; then
15322 enableval="$enable_ext_colors"
15323 with_ext_colors=$enableval
15325 with_ext_colors=$cf_dft_ext_colors
15327 echo "$as_me:15327: result: $with_ext_colors" >&5
15328 echo "${ECHO_T}$with_ext_colors" >&6
15329 NCURSES_EXT_COLORS=0
15330 if test "x$with_ext_colors" = xyes ; then
15331 if test "x$with_widec" != xyes ; then
15332 { echo "$as_me:15332: WARNING: This option applies only to wide-character library" >&5
15333 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15335 # cannot be ABI 5 since it changes sizeof(cchar_t)
15337 if test "${with_abi_version+set}" != set; then
15338 case "$cf_cv_rel_version" in
15340 cf_cv_rel_version=6.0
15341 cf_cv_abi_version=6
15342 { echo "$as_me:15342: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15343 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15348 NCURSES_EXT_COLORS=1
15350 cat >>confdefs.h <<\EOF
15351 #define NCURSES_EXT_COLORS 1
15354 cat >>confdefs.h <<\EOF
15355 #define HAVE_ALLOC_PAIR 1
15358 cat >>confdefs.h <<\EOF
15359 #define HAVE_INIT_EXTENDED_COLOR 1
15362 cat >>confdefs.h <<\EOF
15363 #define HAVE_RESET_COLOR_PAIRS 1
15369 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15370 echo "$as_me:15370: checking if you want to use extended mouse encoding" >&5
15371 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15373 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15374 if test "${enable_ext_mouse+set}" = set; then
15375 enableval="$enable_ext_mouse"
15376 with_ext_mouse=$enableval
15378 with_ext_mouse=$cf_dft_ext_mouse
15380 echo "$as_me:15380: result: $with_ext_mouse" >&5
15381 echo "${ECHO_T}$with_ext_mouse" >&6
15382 if test "x$with_ext_mouse" = xyes ; then
15384 if test "${with_abi_version+set}" != set; then
15385 case "$cf_cv_rel_version" in
15387 cf_cv_rel_version=6.0
15388 cf_cv_abi_version=6
15389 { echo "$as_me:15389: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15390 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15397 case $cf_cv_abi_version in
15399 NCURSES_MOUSE_VERSION=1
15402 NCURSES_MOUSE_VERSION=2
15405 NCURSES_MOUSE_VERSION=3
15409 ### use option --enable-ext-putwin to turn on extended screendumps
15410 echo "$as_me:15410: checking if you want to use extended putwin/screendump" >&5
15411 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15413 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15414 if test "${enable_ext_putwin+set}" = set; then
15415 enableval="$enable_ext_putwin"
15416 with_ext_putwin=$enableval
15418 with_ext_putwin=$cf_dft_ext_putwin
15420 echo "$as_me:15420: result: $with_ext_putwin" >&5
15421 echo "${ECHO_T}$with_ext_putwin" >&6
15422 if test "x$with_ext_putwin" = xyes ; then
15424 cat >>confdefs.h <<\EOF
15425 #define NCURSES_EXT_PUTWIN 1
15430 echo "$as_me:15430: checking if you want \$NCURSES_NO_PADDING code" >&5
15431 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15433 # Check whether --enable-no-padding or --disable-no-padding was given.
15434 if test "${enable_no_padding+set}" = set; then
15435 enableval="$enable_no_padding"
15436 with_no_padding=$enableval
15438 with_no_padding=$with_ext_funcs
15440 echo "$as_me:15440: result: $with_no_padding" >&5
15441 echo "${ECHO_T}$with_no_padding" >&6
15442 test "x$with_no_padding" = xyes &&
15443 cat >>confdefs.h <<\EOF
15444 #define NCURSES_NO_PADDING 1
15447 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15448 echo "$as_me:15448: checking if you want SIGWINCH handler" >&5
15449 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15451 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15452 if test "${enable_sigwinch+set}" = set; then
15453 enableval="$enable_sigwinch"
15454 with_sigwinch=$enableval
15456 with_sigwinch=$with_ext_funcs
15458 echo "$as_me:15458: result: $with_sigwinch" >&5
15459 echo "${ECHO_T}$with_sigwinch" >&6
15460 test "x$with_sigwinch" = xyes &&
15461 cat >>confdefs.h <<\EOF
15462 #define USE_SIGWINCH 1
15465 ### use option --enable-tcap-names to allow user to define new capabilities
15466 echo "$as_me:15466: checking if you want user-definable terminal capabilities like termcap" >&5
15467 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15469 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15470 if test "${enable_tcap_names+set}" = set; then
15471 enableval="$enable_tcap_names"
15472 with_tcap_names=$enableval
15474 with_tcap_names=$with_ext_funcs
15476 echo "$as_me:15476: result: $with_tcap_names" >&5
15477 echo "${ECHO_T}$with_tcap_names" >&6
15479 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15481 ##############################################################################
15483 echo "$as_me:15483: checking if you want to link with the pthread library" >&5
15484 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15486 # Check whether --with-pthread or --without-pthread was given.
15487 if test "${with_pthread+set}" = set; then
15488 withval="$with_pthread"
15489 with_pthread=$withval
15493 echo "$as_me:15493: result: $with_pthread" >&5
15494 echo "${ECHO_T}$with_pthread" >&6
15496 if test "$with_pthread" != no ; then
15497 echo "$as_me:15497: checking for pthread.h" >&5
15498 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15499 if test "${ac_cv_header_pthread_h+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >"conftest.$ac_ext" <<_ACEOF
15503 #line 15503 "configure"
15504 #include "confdefs.h"
15505 #include <pthread.h>
15507 if { (eval echo "$as_me:15507: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15508 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15510 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 echo "$as_me:15513: \$? = $ac_status" >&5
15514 (exit "$ac_status"); } >/dev/null; then
15515 if test -s conftest.err; then
15516 ac_cpp_err=$ac_c_preproc_warn_flag
15523 if test -z "$ac_cpp_err"; then
15524 ac_cv_header_pthread_h=yes
15526 echo "$as_me: failed program was:" >&5
15527 cat "conftest.$ac_ext" >&5
15528 ac_cv_header_pthread_h=no
15530 rm -f conftest.err "conftest.$ac_ext"
15532 echo "$as_me:15532: result: $ac_cv_header_pthread_h" >&5
15533 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15534 if test "$ac_cv_header_pthread_h" = yes; then
15536 cat >>confdefs.h <<\EOF
15537 #define HAVE_PTHREADS_H 1
15540 for cf_lib_pthread in pthread c_r
15542 echo "$as_me:15542: checking if we can link with the $cf_lib_pthread library" >&5
15543 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15544 cf_save_LIBS="$LIBS"
15546 cf_add_libs="$LIBS"
15549 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15550 # filter duplicates
15551 for cf_add_1lib in $cf_add_0lib; do
15552 for cf_add_2lib in $cf_add_libs; do
15553 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15558 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15560 LIBS="$cf_add_libs"
15562 cat >"conftest.$ac_ext" <<_ACEOF
15563 #line 15563 "configure"
15564 #include "confdefs.h"
15566 #include <pthread.h>
15572 int rc = pthread_create(0,0,0,0);
15573 int r2 = pthread_mutexattr_settype(0, 0);
15579 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15580 if { (eval echo "$as_me:15580: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
15583 echo "$as_me:15583: \$? = $ac_status" >&5
15584 (exit "$ac_status"); } &&
15585 { ac_try='test -s "conftest$ac_exeext"'
15586 { (eval echo "$as_me:15586: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:15589: \$? = $ac_status" >&5
15590 (exit "$ac_status"); }; }; then
15593 echo "$as_me: failed program was:" >&5
15594 cat "conftest.$ac_ext" >&5
15597 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15598 LIBS="$cf_save_LIBS"
15599 echo "$as_me:15599: result: $with_pthread" >&5
15600 echo "${ECHO_T}$with_pthread" >&6
15601 test "$with_pthread" = yes && break
15604 if test "$with_pthread" = yes ; then
15606 cf_add_libs="$LIBS"
15609 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15610 # filter duplicates
15611 for cf_add_1lib in $cf_add_0lib; do
15612 for cf_add_2lib in $cf_add_libs; do
15613 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15618 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15620 LIBS="$cf_add_libs"
15622 cat >>confdefs.h <<\EOF
15623 #define HAVE_LIBPTHREADS 1
15627 { { echo "$as_me:15627: error: Cannot link with pthread library" >&5
15628 echo "$as_me: error: Cannot link with pthread library" >&2;}
15629 { (exit 1); exit 1; }; }
15636 if test "x$with_pthread" != xno; then
15637 echo "$as_me:15637: checking for pthread_kill" >&5
15638 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15639 if test "${ac_cv_func_pthread_kill+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 cat >"conftest.$ac_ext" <<_ACEOF
15643 #line 15643 "configure"
15644 #include "confdefs.h"
15645 #define pthread_kill autoconf_temporary
15646 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15647 #undef pthread_kill
15653 /* We use char because int might match the return type of a gcc2
15654 builtin and then its argument prototype would still apply. */
15655 char pthread_kill (void);
15661 /* The GNU C library defines stubs for functions which it implements
15662 to always fail with ENOSYS. Some functions are actually named
15663 something starting with __ and the normal name is an alias. */
15664 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15665 #error found stub for pthread_kill
15668 return pthread_kill ();
15673 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15674 if { (eval echo "$as_me:15674: \"$ac_link\"") >&5
15675 (eval $ac_link) 2>&5
15677 echo "$as_me:15677: \$? = $ac_status" >&5
15678 (exit "$ac_status"); } &&
15679 { ac_try='test -s "conftest$ac_exeext"'
15680 { (eval echo "$as_me:15680: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:15683: \$? = $ac_status" >&5
15684 (exit "$ac_status"); }; }; then
15685 ac_cv_func_pthread_kill=yes
15687 echo "$as_me: failed program was:" >&5
15688 cat "conftest.$ac_ext" >&5
15689 ac_cv_func_pthread_kill=no
15691 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15693 echo "$as_me:15693: result: $ac_cv_func_pthread_kill" >&5
15694 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15695 if test "$ac_cv_func_pthread_kill" = yes; then
15697 echo "$as_me:15697: checking if you want to allow EINTR in wgetch with pthreads" >&5
15698 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15700 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15701 if test "${enable_pthreads_eintr+set}" = set; then
15702 enableval="$enable_pthreads_eintr"
15703 use_pthreads_eintr=$enableval
15705 use_pthreads_eintr=no
15707 echo "$as_me:15707: result: $use_pthreads_eintr" >&5
15708 echo "${ECHO_T}$use_pthreads_eintr" >&6
15709 if test "x$use_pthreads_eintr" = xyes ; then
15711 cat >>confdefs.h <<\EOF
15712 #define USE_PTHREADS_EINTR 1
15718 echo "$as_me:15718: checking if you want to use weak-symbols for pthreads" >&5
15719 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15721 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15722 if test "${enable_weak_symbols+set}" = set; then
15723 enableval="$enable_weak_symbols"
15724 use_weak_symbols=$enableval
15726 use_weak_symbols=no
15728 echo "$as_me:15728: result: $use_weak_symbols" >&5
15729 echo "${ECHO_T}$use_weak_symbols" >&6
15730 if test "x$use_weak_symbols" = xyes ; then
15732 echo "$as_me:15732: checking if $CC supports weak symbols" >&5
15733 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15734 if test "${cf_cv_weak_symbols+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 cat >"conftest.$ac_ext" <<_ACEOF
15739 #line 15739 "configure"
15740 #include "confdefs.h"
15747 #if defined(__GNUC__)
15748 # if defined __USE_ISOC99
15749 # define _cat_pragma(exp) _Pragma(#exp)
15750 # define _weak_pragma(exp) _cat_pragma(weak name)
15752 # define _weak_pragma(exp)
15754 # define _declare(name) __extension__ extern __typeof__(name) name
15755 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15758 weak_symbol(fopen);
15764 rm -f "conftest.$ac_objext"
15765 if { (eval echo "$as_me:15765: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>&5
15768 echo "$as_me:15768: \$? = $ac_status" >&5
15769 (exit "$ac_status"); } &&
15770 { ac_try='test -s "conftest.$ac_objext"'
15771 { (eval echo "$as_me:15771: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:15774: \$? = $ac_status" >&5
15775 (exit "$ac_status"); }; }; then
15776 cf_cv_weak_symbols=yes
15778 echo "$as_me: failed program was:" >&5
15779 cat "conftest.$ac_ext" >&5
15780 cf_cv_weak_symbols=no
15782 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15785 echo "$as_me:15785: result: $cf_cv_weak_symbols" >&5
15786 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15789 cf_cv_weak_symbols=no
15792 if test "x$cf_cv_weak_symbols" = xyes ; then
15794 cat >>confdefs.h <<\EOF
15795 #define USE_WEAK_SYMBOLS 1
15802 if test "x$with_pthread" = "xyes" ; then
15804 cat >>confdefs.h <<\EOF
15805 #define USE_PTHREADS 1
15808 enable_reentrant=yes
15809 if test "x$cf_cv_weak_symbols" = xyes ; then
15812 cf_add_libs="$PRIVATE_LIBS"
15815 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15816 # filter duplicates
15817 for cf_add_1lib in $cf_add_0lib; do
15818 for cf_add_2lib in $cf_add_libs; do
15819 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15824 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15826 PRIVATE_LIBS="$cf_add_libs"
15831 # Reentrant code has to be opaque; there's little advantage to making ncurses
15832 # opaque outside of that, so there is no --enable-opaque option. We can use
15833 # this option without --with-pthreads, but this will be always set for
15835 echo "$as_me:15835: checking if you want reentrant code" >&5
15836 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15838 # Check whether --enable-reentrant or --disable-reentrant was given.
15839 if test "${enable_reentrant+set}" = set; then
15840 enableval="$enable_reentrant"
15841 with_reentrant=$enableval
15845 echo "$as_me:15845: result: $with_reentrant" >&5
15846 echo "${ECHO_T}$with_reentrant" >&6
15847 if test "x$with_reentrant" = xyes ; then
15848 cf_cv_enable_reentrant=1
15849 cf_cv_enable_opaque="NCURSES_INTERNALS"
15851 if test "x$cf_cv_weak_symbols" = xyes ; then
15853 # remove pthread library from $LIBS
15854 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15856 cf_add_libs="$TEST_LIBS"
15859 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15860 # filter duplicates
15861 for cf_add_1lib in $cf_add_0lib; do
15862 for cf_add_2lib in $cf_add_libs; do
15863 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15868 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15870 TEST_LIBS="$cf_add_libs"
15872 cf_add_libs="$TEST_LIBS2"
15875 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15876 # filter duplicates
15877 for cf_add_1lib in $cf_add_0lib; do
15878 for cf_add_2lib in $cf_add_libs; do
15879 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15884 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15886 TEST_LIBS2="$cf_add_libs"
15888 cf_add_libs="$PRIVATE_LIBS"
15891 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15892 # filter duplicates
15893 for cf_add_1lib in $cf_add_0lib; do
15894 for cf_add_2lib in $cf_add_libs; do
15895 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15900 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15902 PRIVATE_LIBS="$cf_add_libs"
15905 # when not using weak symbols but with_reentrant,
15906 # add 't' to the library suffix on all platforms
15907 # except cygwin, where we only do that if ALSO
15908 # compiling with full thread support.
15910 (*cygwin* | *msys*)
15911 if test "$with_pthread" = "yes" ; then
15912 if test "x$disable_lib_suffixes" = "xno" ; then
15913 LIB_SUFFIX="t${LIB_SUFFIX}"
15917 if test "x$disable_lib_suffixes" = "xno" ; then
15918 LIB_SUFFIX="t${LIB_SUFFIX}"
15924 cat >>confdefs.h <<\EOF
15925 #define USE_REENTRANT 1
15928 if test "${with_abi_version+set}" != set; then
15929 case "$cf_cv_rel_version" in
15931 cf_cv_rel_version=6.0
15932 cf_cv_abi_version=6
15933 { echo "$as_me:15933: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15934 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15940 cf_cv_enable_reentrant=0
15941 cf_cv_enable_opaque="NCURSES_OPAQUE"
15942 NCURSES_SIZE_T=$cf_dft_ordinate_type
15945 echo "$as_me:15945: checking if you want opaque curses-library structures" >&5
15946 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15948 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15949 if test "${enable_opaque_curses+set}" = set; then
15950 enableval="$enable_opaque_curses"
15951 test "$enableval" != yes && enableval=no
15952 if test "$enableval" != "no" ; then
15953 enable_opaque_curses=yes
15956 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15957 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
15963 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15964 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
15967 echo "$as_me:15967: result: $enable_opaque_curses" >&5
15968 echo "${ECHO_T}$enable_opaque_curses" >&6
15970 test "$cf_cv_enable_reentrant" = 1 && \
15971 test "$enable_opaque_curses" = no && \
15972 { { echo "$as_me:15972: error: reentrant configuration requires opaque library" >&5
15973 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15974 { (exit 1); exit 1; }; }
15976 echo "$as_me:15976: checking if you want opaque form-library structures" >&5
15977 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15979 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15980 if test "${enable_opaque_form+set}" = set; then
15981 enableval="$enable_opaque_form"
15982 enable_opaque_form=yes
15984 enable_opaque_form=no
15986 echo "$as_me:15986: result: $enable_opaque_form" >&5
15987 echo "${ECHO_T}$enable_opaque_form" >&6
15989 echo "$as_me:15989: checking if you want opaque menu-library structures" >&5
15990 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15992 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15993 if test "${enable_opaque_menu+set}" = set; then
15994 enableval="$enable_opaque_menu"
15995 enable_opaque_menu=yes
15997 enable_opaque_menu=no
15999 echo "$as_me:15999: result: $enable_opaque_menu" >&5
16000 echo "${ECHO_T}$enable_opaque_menu" >&6
16002 echo "$as_me:16002: checking if you want opaque panel-library structures" >&5
16003 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
16005 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16006 if test "${enable_opaque_panel+set}" = set; then
16007 enableval="$enable_opaque_panel"
16008 enable_opaque_panel=yes
16010 enable_opaque_panel=no
16012 echo "$as_me:16012: result: $enable_opaque_panel" >&5
16013 echo "${ECHO_T}$enable_opaque_panel" >&6
16015 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16016 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16017 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16018 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16020 ### Allow using a different wrap-prefix
16021 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16022 echo "$as_me:16022: checking for prefix used to wrap public variables" >&5
16023 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16025 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16026 if test "${with_wrap_prefix+set}" = set; then
16027 withval="$with_wrap_prefix"
16028 NCURSES_WRAP_PREFIX=$withval
16030 NCURSES_WRAP_PREFIX=_nc_
16032 echo "$as_me:16032: result: $NCURSES_WRAP_PREFIX" >&5
16033 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16035 NCURSES_WRAP_PREFIX=_nc_
16038 cat >>confdefs.h <<EOF
16039 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16042 ###############################################################################
16043 # These options are relatively safe to experiment with.
16045 echo "$as_me:16045: checking if you want all development code" >&5
16046 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16048 # Check whether --with-develop or --without-develop was given.
16049 if test "${with_develop+set}" = set; then
16050 withval="$with_develop"
16051 with_develop=$withval
16055 echo "$as_me:16055: result: $with_develop" >&5
16056 echo "${ECHO_T}$with_develop" >&6
16058 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16059 echo "$as_me:16059: checking if you want hard-tabs code" >&5
16060 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16062 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16063 if test "${enable_hard_tabs+set}" = set; then
16064 enableval="$enable_hard_tabs"
16067 enable_hard_tabs=$with_develop
16069 echo "$as_me:16069: result: $enable_hard_tabs" >&5
16070 echo "${ECHO_T}$enable_hard_tabs" >&6
16071 test "x$enable_hard_tabs" = xyes &&
16072 cat >>confdefs.h <<\EOF
16073 #define USE_HARD_TABS 1
16076 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16077 echo "$as_me:16077: checking if you want limited support for xmc" >&5
16078 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16080 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16081 if test "${enable_xmc_glitch+set}" = set; then
16082 enableval="$enable_xmc_glitch"
16085 enable_xmc_glitch=$with_develop
16087 echo "$as_me:16087: result: $enable_xmc_glitch" >&5
16088 echo "${ECHO_T}$enable_xmc_glitch" >&6
16089 test "x$enable_xmc_glitch" = xyes &&
16090 cat >>confdefs.h <<\EOF
16091 #define USE_XMC_SUPPORT 1
16094 ###############################################################################
16095 # These are just experimental, probably should not be in a package:
16097 echo "$as_me:16097: checking if you do not want to assume colors are white-on-black" >&5
16098 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16100 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16101 if test "${enable_assumed_color+set}" = set; then
16102 enableval="$enable_assumed_color"
16103 with_assumed_color=$enableval
16105 with_assumed_color=yes
16107 echo "$as_me:16107: result: $with_assumed_color" >&5
16108 echo "${ECHO_T}$with_assumed_color" >&6
16109 test "x$with_assumed_color" = xyes &&
16110 cat >>confdefs.h <<\EOF
16111 #define USE_ASSUMED_COLOR 1
16114 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16115 echo "$as_me:16115: checking if you want hashmap scrolling-optimization code" >&5
16116 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16118 # Check whether --enable-hashmap or --disable-hashmap was given.
16119 if test "${enable_hashmap+set}" = set; then
16120 enableval="$enable_hashmap"
16121 with_hashmap=$enableval
16125 echo "$as_me:16125: result: $with_hashmap" >&5
16126 echo "${ECHO_T}$with_hashmap" >&6
16127 test "x$with_hashmap" = xyes &&
16128 cat >>confdefs.h <<\EOF
16129 #define USE_HASHMAP 1
16132 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16133 echo "$as_me:16133: checking if you want colorfgbg code" >&5
16134 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16136 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16137 if test "${enable_colorfgbg+set}" = set; then
16138 enableval="$enable_colorfgbg"
16139 with_colorfgbg=$enableval
16143 echo "$as_me:16143: result: $with_colorfgbg" >&5
16144 echo "${ECHO_T}$with_colorfgbg" >&6
16145 test "x$with_colorfgbg" = xyes &&
16146 cat >>confdefs.h <<\EOF
16147 #define USE_COLORFGBG 1
16150 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16151 echo "$as_me:16151: checking if you want to use gcc -fvisibility option" >&5
16152 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16154 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16155 if test "${enable_fvisibility+set}" = set; then
16156 enableval="$enable_fvisibility"
16157 cf_with_fvisibility=$enableval
16159 cf_with_fvisibility=no
16161 echo "$as_me:16161: result: $cf_with_fvisibility" >&5
16162 echo "${ECHO_T}$cf_with_fvisibility" >&6
16165 NCURSES_CXX_IMPEXP=
16166 if test "x$cf_with_fvisibility" = xyes; then
16168 echo "$as_me:16168: checking if $CC -fvisibility=hidden option works" >&5
16169 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16170 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 cf_save_cflags="$CFLAGS"
16175 CFLAGS="$CFLAGS -fvisibility=hidden"
16176 cat >"conftest.$ac_ext" <<_ACEOF
16177 #line 16177 "configure"
16178 #include "confdefs.h"
16180 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16186 if (somefunc()) return 1;
16192 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16193 if { (eval echo "$as_me:16193: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit "$ac_status"); } &&
16198 { ac_try='test -s "conftest$ac_exeext"'
16199 { (eval echo "$as_me:16199: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:16202: \$? = $ac_status" >&5
16203 (exit "$ac_status"); }; }; then
16204 cf_cv_fvisibility_hidden=yes
16206 echo "$as_me: failed program was:" >&5
16207 cat "conftest.$ac_ext" >&5
16208 cf_cv_fvisibility_hidden=no
16210 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16211 CFLAGS=$cf_save_cflags
16214 echo "$as_me:16214: result: $cf_cv_fvisibility_hidden" >&5
16215 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16217 if test "x$cf_cv_fvisibility_hidden" = xyes
16223 cf_new_extra_cppflags=
16225 for cf_add_cflags in -fvisibility=hidden
16227 case "$cf_fix_cppflags" in
16229 case "$cf_add_cflags" in
16230 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16231 case "$cf_add_cflags" in
16233 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16235 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16236 && test -z "${cf_tst_cflags}" \
16237 && cf_fix_cppflags=yes
16239 if test "$cf_fix_cppflags" = yes ; then
16241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16245 elif test "${cf_tst_cflags}" = "\"'" ; then
16247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16254 case "$CPPFLAGS" in
16258 case "$cf_add_cflags" in
16260 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16262 CPPFLAGS=`echo "$CPPFLAGS" | \
16263 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16264 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16269 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16270 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16277 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16278 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16285 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16286 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16288 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16290 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16291 && test -z "${cf_tst_cflags}" \
16292 && cf_fix_cppflags=no
16297 if test -n "$cf_new_cflags" ; then
16299 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16300 CFLAGS="${CFLAGS}$cf_new_cflags"
16304 if test -n "$cf_new_cppflags" ; then
16306 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16307 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16311 if test -n "$cf_new_extra_cppflags" ; then
16313 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16314 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16318 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16323 ac_cpp='$CXXCPP $CPPFLAGS'
16324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16325 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16327 ac_main_return="return"
16329 echo "$as_me:16329: checking if $CXX -fvisibility=hidden option works" >&5
16330 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16331 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 cf_save_cflags="$CXXFLAGS"
16336 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16337 cat >"conftest.$ac_ext" <<_ACEOF
16338 #line 16338 "configure"
16339 #include "confdefs.h"
16341 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16347 if (somefunc()) return 1;
16353 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16354 if { (eval echo "$as_me:16354: \"$ac_link\"") >&5
16355 (eval $ac_link) 2>&5
16357 echo "$as_me:16357: \$? = $ac_status" >&5
16358 (exit "$ac_status"); } &&
16359 { ac_try='test -s "conftest$ac_exeext"'
16360 { (eval echo "$as_me:16360: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16363 echo "$as_me:16363: \$? = $ac_status" >&5
16364 (exit "$ac_status"); }; }; then
16365 cf_cv_fvisibility_hidden2=yes
16367 echo "$as_me: failed program was:" >&5
16368 cat "conftest.$ac_ext" >&5
16369 cf_cv_fvisibility_hidden2=no
16371 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16372 CXXFLAGS=$cf_save_cflags
16375 echo "$as_me:16375: result: $cf_cv_fvisibility_hidden2" >&5
16376 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16378 if test "x$cf_cv_fvisibility_hidden2" = xyes
16381 cf_save_CXXFLAGS="$CFLAGS"
16387 cf_new_extra_cppflags=
16389 for cf_add_cflags in -fvisibility=hidden
16391 case "$cf_fix_cppflags" in
16393 case "$cf_add_cflags" in
16394 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16395 case "$cf_add_cflags" in
16397 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16399 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16400 && test -z "${cf_tst_cflags}" \
16401 && cf_fix_cppflags=yes
16403 if test "$cf_fix_cppflags" = yes ; then
16405 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16406 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16409 elif test "${cf_tst_cflags}" = "\"'" ; then
16411 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16412 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16418 case "$CPPFLAGS" in
16422 case "$cf_add_cflags" in
16424 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16426 CPPFLAGS=`echo "$CPPFLAGS" | \
16427 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16428 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16433 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16434 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16441 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16442 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16449 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16450 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16452 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16454 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16455 && test -z "${cf_tst_cflags}" \
16456 && cf_fix_cppflags=no
16461 if test -n "$cf_new_cflags" ; then
16463 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16464 CFLAGS="${CFLAGS}$cf_new_cflags"
16468 if test -n "$cf_new_cppflags" ; then
16470 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16471 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16475 if test -n "$cf_new_extra_cppflags" ; then
16477 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16478 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16483 CFLAGS="$cf_save_CXXFLAGS"
16485 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16488 ac_cpp='$CPP $CPPFLAGS'
16489 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16490 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16492 ac_main_return="return"
16497 ### use option --enable-interop to turn on use of bindings used for interop
16498 echo "$as_me:16498: checking if you want interop bindings" >&5
16499 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16501 # Check whether --enable-interop or --disable-interop was given.
16502 if test "${enable_interop+set}" = set; then
16503 enableval="$enable_interop"
16504 with_exp_interop=$enableval
16506 with_exp_interop=$cf_dft_interop
16508 echo "$as_me:16508: result: $with_exp_interop" >&5
16509 echo "${ECHO_T}$with_exp_interop" >&6
16511 NCURSES_INTEROP_FUNCS=0
16512 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16514 echo "$as_me:16514: checking if you want experimental safe-sprintf code" >&5
16515 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16517 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16518 if test "${enable_safe_sprintf+set}" = set; then
16519 enableval="$enable_safe_sprintf"
16520 with_safe_sprintf=$enableval
16522 with_safe_sprintf=no
16524 echo "$as_me:16524: result: $with_safe_sprintf" >&5
16525 echo "${ECHO_T}$with_safe_sprintf" >&6
16527 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16528 # when hashmap is used scroll hints are useless
16529 if test "$with_hashmap" = no ; then
16530 echo "$as_me:16530: checking if you want to experiment without scrolling-hints code" >&5
16531 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16533 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16534 if test "${enable_scroll_hints+set}" = set; then
16535 enableval="$enable_scroll_hints"
16536 with_scroll_hints=$enableval
16538 with_scroll_hints=yes
16540 echo "$as_me:16540: result: $with_scroll_hints" >&5
16541 echo "${ECHO_T}$with_scroll_hints" >&6
16542 test "x$with_scroll_hints" = xyes &&
16543 cat >>confdefs.h <<\EOF
16544 #define USE_SCROLL_HINTS 1
16549 echo "$as_me:16549: checking if you want wgetch-events code" >&5
16550 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16552 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16553 if test "${enable_wgetch_events+set}" = set; then
16554 enableval="$enable_wgetch_events"
16555 with_wgetch_events=$enableval
16557 with_wgetch_events=no
16559 echo "$as_me:16559: result: $with_wgetch_events" >&5
16560 echo "${ECHO_T}$with_wgetch_events" >&6
16561 if test "x$with_wgetch_events" = xyes ; then
16563 cat >>confdefs.h <<\EOF
16564 #define NCURSES_WGETCH_EVENTS 1
16567 NCURSES_WGETCH_EVENTS=1
16569 NCURSES_WGETCH_EVENTS=0
16572 case "$cf_cv_system_name" in
16573 (*mingw32*|*mingw64*|*-msvc*)
16574 echo "$as_me:16574: checking if you want experimental-Windows driver" >&5
16575 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16577 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16578 if test "${enable_exp_win32+set}" = set; then
16579 enableval="$enable_exp_win32"
16580 with_exp_win32=$enableval
16584 echo "$as_me:16584: result: $with_exp_win32" >&5
16585 echo "${ECHO_T}$with_exp_win32" >&6
16586 if test "x$with_exp_win32" = xyes
16589 cat >>confdefs.h <<\EOF
16590 #define EXP_WIN32_DRIVER 1
16594 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16596 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16606 ###############################################################################
16608 ### use option --disable-echo to suppress full display compiling commands
16610 echo "$as_me:16610: checking if you want to see long compiling messages" >&5
16611 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16613 # Check whether --enable-echo or --disable-echo was given.
16614 if test "${enable_echo+set}" = set; then
16615 enableval="$enable_echo"
16616 test "$enableval" != no && enableval=yes
16617 if test "$enableval" != "yes" ; then
16620 ECHO_LD='@echo linking $@;'
16621 RULE_CC='@echo compiling $<'
16622 SHOW_CC='@echo compiling $@'
16644 echo "$as_me:16644: result: $enableval" >&5
16645 echo "${ECHO_T}$enableval" >&6
16647 if test "x$enable_echo" = xyes; then
16650 ECHO_LINK='@ echo linking $@ ... ;'
16651 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16652 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16655 # --disable-stripping is used for debugging
16657 echo "$as_me:16657: checking if you want to install stripped executables" >&5
16658 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16660 # Check whether --enable-stripping or --disable-stripping was given.
16661 if test "${enable_stripping+set}" = set; then
16662 enableval="$enable_stripping"
16663 test "$enableval" != no && enableval=yes
16664 if test "$enableval" != "yes" ; then
16665 enable_stripping=no
16667 enable_stripping=yes
16671 enable_stripping=yes
16674 echo "$as_me:16674: result: $enable_stripping" >&5
16675 echo "${ECHO_T}$enable_stripping" >&6
16677 if test "$enable_stripping" = yes
16684 : "${INSTALL:=install}"
16685 echo "$as_me:16685: checking if install accepts -p option" >&5
16686 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16687 if test "${cf_cv_install_p+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16697 if test -f conftest.out/conftest.in
16699 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16700 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16701 if test -s conftest.err
16705 cf_cv_install_p=yes
16716 echo "$as_me:16716: result: $cf_cv_install_p" >&5
16717 echo "${ECHO_T}$cf_cv_install_p" >&6
16719 echo "$as_me:16719: checking if install needs to be told about ownership" >&5
16720 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16721 case `$ac_config_guess` in
16730 echo "$as_me:16730: result: $with_install_o" >&5
16731 echo "${ECHO_T}$with_install_o" >&6
16732 if test "x$with_install_o" = xyes
16734 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'`"
16739 # If we're avoiding relinking of shared libraries during install, that is to
16740 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16741 # the install program has "-p" (for preserving timestamps).
16742 cf_cv_do_reranlib=yes
16743 if test "x$cf_cv_install_p" = xyes
16745 if test "x$cf_cv_do_relink" != xyes
16747 cf_cv_do_reranlib=no
16749 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16753 ### use option --enable-warnings to turn on all gcc warnings
16755 echo "$as_me:16755: checking if you want to use C11 _Noreturn feature" >&5
16756 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
16758 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
16759 if test "${enable_stdnoreturn+set}" = set; then
16760 enableval="$enable_stdnoreturn"
16761 test "$enableval" != yes && enableval=no
16762 if test "$enableval" != "no" ; then
16763 enable_stdnoreturn=yes
16765 enable_stdnoreturn=no
16769 enable_stdnoreturn=no
16772 echo "$as_me:16772: result: $enable_stdnoreturn" >&5
16773 echo "${ECHO_T}$enable_stdnoreturn" >&6
16775 if test $enable_stdnoreturn = yes; then
16776 echo "$as_me:16776: checking for C11 _Noreturn feature" >&5
16777 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
16778 if test "${cf_cv_c11_noreturn+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 cat >"conftest.$ac_ext" <<_ACEOF
16782 #line 16782 "configure"
16783 #include "confdefs.h"
16786 #include <stdlib.h>
16787 #include <stdnoreturn.h>
16788 static _Noreturn void giveup(void) { exit(0); }
16793 if (feof(stdin)) giveup()
16798 rm -f "conftest.$ac_objext"
16799 if { (eval echo "$as_me:16799: \"$ac_compile\"") >&5
16800 (eval $ac_compile) 2>&5
16802 echo "$as_me:16802: \$? = $ac_status" >&5
16803 (exit "$ac_status"); } &&
16804 { ac_try='test -s "conftest.$ac_objext"'
16805 { (eval echo "$as_me:16805: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16808 echo "$as_me:16808: \$? = $ac_status" >&5
16809 (exit "$ac_status"); }; }; then
16810 cf_cv_c11_noreturn=yes
16812 echo "$as_me: failed program was:" >&5
16813 cat "conftest.$ac_ext" >&5
16814 cf_cv_c11_noreturn=no
16816 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16819 echo "$as_me:16819: result: $cf_cv_c11_noreturn" >&5
16820 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
16822 cf_cv_c11_noreturn=no,
16825 if test "$cf_cv_c11_noreturn" = yes; then
16827 cat >>confdefs.h <<\EOF
16828 #define HAVE_STDNORETURN_H 1
16831 cat >>confdefs.h <<EOF
16832 #define STDC_NORETURN _Noreturn
16835 HAVE_STDNORETURN_H=1
16837 HAVE_STDNORETURN_H=0
16840 if test "$GCC" = yes || test "$GXX" = yes
16843 if test "$GCC" = yes || test "$GXX" = yes
16848 for cf_temp_scan in $CFLAGS
16850 case "x$cf_temp_scan" in
16853 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16854 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16859 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16860 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16865 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16866 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16871 if test "x$CFLAGS" != "x$cf_temp_flags"
16873 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16875 echo "${as_me:-configure}:16875: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16877 CFLAGS="$cf_temp_flags"
16878 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16880 echo "${as_me:-configure}:16880: testing ... fixed $CFLAGS ..." 1>&5
16882 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16884 echo "${as_me:-configure}:16884: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16891 if test "$GCC" = yes || test "$GXX" = yes
16896 for cf_temp_scan in $CPPFLAGS
16898 case "x$cf_temp_scan" in
16901 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16902 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16907 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16908 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16913 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16914 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16919 if test "x$CPPFLAGS" != "x$cf_temp_flags"
16921 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16923 echo "${as_me:-configure}:16923: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16925 CPPFLAGS="$cf_temp_flags"
16926 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16928 echo "${as_me:-configure}:16928: testing ... fixed $CPPFLAGS ..." 1>&5
16930 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16932 echo "${as_me:-configure}:16932: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16939 if test "$GCC" = yes || test "$GXX" = yes
16944 for cf_temp_scan in $LDFLAGS
16946 case "x$cf_temp_scan" in
16949 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16950 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16955 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16956 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16961 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16962 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16967 if test "x$LDFLAGS" != "x$cf_temp_flags"
16969 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16971 echo "${as_me:-configure}:16971: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16973 LDFLAGS="$cf_temp_flags"
16974 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16976 echo "${as_me:-configure}:16976: testing ... fixed $LDFLAGS ..." 1>&5
16978 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16980 echo "${as_me:-configure}:16980: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16987 echo "$as_me:16987: checking if you want to turn on gcc warnings" >&5
16988 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16990 # Check whether --enable-warnings or --disable-warnings was given.
16991 if test "${enable_warnings+set}" = set; then
16992 enableval="$enable_warnings"
16993 test "$enableval" != yes && enableval=no
16994 if test "$enableval" != "no" ; then
16995 enable_warnings=yes
17004 echo "$as_me:17004: result: $enable_warnings" >&5
17005 echo "${ECHO_T}$enable_warnings" >&6
17006 if test "$enable_warnings" = "yes"
17009 if test "x$have_x" = xyes; then
17011 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17012 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17013 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17014 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17015 for cf_X_CFLAGS in $X_CFLAGS
17017 case "x$cf_X_CFLAGS" in
17019 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17022 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17027 cat >"conftest.$ac_ext" <<_ACEOF
17028 #line 17028 "configure"
17029 #include "confdefs.h"
17031 #include <stdlib.h>
17032 #include <X11/Intrinsic.h>
17037 String foo = malloc(1); free((void*)foo)
17042 rm -f "conftest.$ac_objext"
17043 if { (eval echo "$as_me:17043: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>&5
17046 echo "$as_me:17046: \$? = $ac_status" >&5
17047 (exit "$ac_status"); } &&
17048 { ac_try='test -s "conftest.$ac_objext"'
17049 { (eval echo "$as_me:17049: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:17052: \$? = $ac_status" >&5
17053 (exit "$ac_status"); }; }; then
17055 echo "$as_me:17055: checking for X11/Xt const-feature" >&5
17056 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17057 if test "${cf_cv_const_x_string+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 cat >"conftest.$ac_ext" <<_ACEOF
17062 #line 17062 "configure"
17063 #include "confdefs.h"
17065 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17066 #undef XTSTRINGDEFINES /* X11R5 and later */
17067 #include <stdlib.h>
17068 #include <X11/Intrinsic.h>
17073 String foo = malloc(1); *foo = 0
17078 rm -f "conftest.$ac_objext"
17079 if { (eval echo "$as_me:17079: \"$ac_compile\"") >&5
17080 (eval $ac_compile) 2>&5
17082 echo "$as_me:17082: \$? = $ac_status" >&5
17083 (exit "$ac_status"); } &&
17084 { ac_try='test -s "conftest.$ac_objext"'
17085 { (eval echo "$as_me:17085: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17088 echo "$as_me:17088: \$? = $ac_status" >&5
17089 (exit "$ac_status"); }; }; then
17091 cf_cv_const_x_string=no
17094 echo "$as_me: failed program was:" >&5
17095 cat "conftest.$ac_ext" >&5
17097 cf_cv_const_x_string=yes
17100 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17103 echo "$as_me:17103: result: $cf_cv_const_x_string" >&5
17104 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17106 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17107 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17108 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17110 case "$cf_cv_const_x_string" in
17113 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17114 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17119 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17120 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17126 echo "$as_me: failed program was:" >&5
17127 cat "conftest.$ac_ext" >&5
17129 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17131 cat > "conftest.$ac_ext" <<EOF
17132 #line 17132 "${as_me:-configure}"
17133 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17135 if test "$INTEL_COMPILER" = yes
17137 # The "-wdXXX" options suppress warnings:
17138 # remark #1419: external declaration in primary source file
17139 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17140 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17141 # remark #193: zero used for undefined preprocessing identifier
17142 # remark #593: variable "curs_sb_left_arrow" was set but never used
17143 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17144 # remark #869: parameter "tw" was never referenced
17145 # remark #981: operands are evaluated in unspecified order
17146 # warning #279: controlling expression is constant
17148 { echo "$as_me:17148: checking for $CC warning options..." >&5
17149 echo "$as_me: checking for $CC warning options..." >&6;}
17150 cf_save_CFLAGS="$CFLAGS"
17151 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17163 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17164 if { (eval echo "$as_me:17164: \"$ac_compile\"") >&5
17165 (eval $ac_compile) 2>&5
17167 echo "$as_me:17167: \$? = $ac_status" >&5
17168 (exit "$ac_status"); }; then
17169 test -n "$verbose" && echo "$as_me:17169: result: ... -$cf_opt" >&5
17170 echo "${ECHO_T}... -$cf_opt" >&6
17171 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17174 CFLAGS="$cf_save_CFLAGS"
17175 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17177 { echo "$as_me:17177: checking for $CC warning options..." >&5
17178 echo "$as_me: checking for $CC warning options..." >&6;}
17179 cf_save_CFLAGS="$CFLAGS"
17181 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17182 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17183 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17184 for cf_opt in W Wall \
17185 Wbad-function-cast \
17188 Wdeclaration-after-statement \
17191 Wmissing-declarations \
17192 Wmissing-prototypes \
17196 Wstrict-prototypes \
17197 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17199 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17200 if { (eval echo "$as_me:17200: \"$ac_compile\"") >&5
17201 (eval $ac_compile) 2>&5
17203 echo "$as_me:17203: \$? = $ac_status" >&5
17204 (exit "$ac_status"); }; then
17205 test -n "$verbose" && echo "$as_me:17205: result: ... -$cf_opt" >&5
17206 echo "${ECHO_T}... -$cf_opt" >&6
17209 case "$GCC_VERSION" in
17211 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17213 echo "${as_me:-configure}:17213: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17219 case "$GCC_VERSION" in
17221 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17223 echo "${as_me:-configure}:17223: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17229 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17232 CFLAGS="$cf_save_CFLAGS"
17238 if test "$GCC" = yes || test "$GXX" = yes
17240 cat > conftest.i <<EOF
17242 #define GCC_PRINTF 0
17245 #define GCC_SCANF 0
17247 #ifndef GCC_NORETURN
17248 #define GCC_NORETURN /* nothing */
17251 #define GCC_UNUSED /* nothing */
17254 if test "$GCC" = yes
17256 { echo "$as_me:17256: checking for $CC __attribute__ directives..." >&5
17257 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17258 cat > "conftest.$ac_ext" <<EOF
17259 #line 17259 "${as_me:-configure}"
17260 #include "confdefs.h"
17261 #include "conftest.h"
17262 #include "conftest.i"
17264 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17266 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17269 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17271 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17273 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17274 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17275 extern GCC_NORETURN void foo(void);
17276 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17278 cf_printf_attribute=no
17279 cf_scanf_attribute=no
17280 for cf_attribute in scanf printf unused noreturn
17283 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17285 cf_directive="__attribute__(($cf_attribute))"
17286 echo "checking for $CC $cf_directive" 1>&5
17288 case "$cf_attribute" in
17290 cf_printf_attribute=yes
17291 cat >conftest.h <<EOF
17292 #define GCC_$cf_ATTRIBUTE 1
17296 cf_scanf_attribute=yes
17297 cat >conftest.h <<EOF
17298 #define GCC_$cf_ATTRIBUTE 1
17302 cat >conftest.h <<EOF
17303 #define GCC_$cf_ATTRIBUTE $cf_directive
17308 if { (eval echo "$as_me:17308: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>&5
17311 echo "$as_me:17311: \$? = $ac_status" >&5
17312 (exit "$ac_status"); }; then
17313 test -n "$verbose" && echo "$as_me:17313: result: ... $cf_attribute" >&5
17314 echo "${ECHO_T}... $cf_attribute" >&6
17315 cat conftest.h >>confdefs.h
17316 case "$cf_attribute" in
17319 cat >>confdefs.h <<EOF
17320 #define GCC_NORETURN $cf_directive
17325 cf_value='/* nothing */'
17326 if test "$cf_printf_attribute" != no ; then
17327 cf_value='__attribute__((format(printf,fmt,var)))'
17329 cat >>confdefs.h <<\EOF
17330 #define GCC_PRINTF 1
17335 cat >>confdefs.h <<EOF
17336 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17341 cf_value='/* nothing */'
17342 if test "$cf_scanf_attribute" != no ; then
17343 cf_value='__attribute__((format(scanf,fmt,var)))'
17345 cat >>confdefs.h <<\EOF
17346 #define GCC_SCANF 1
17351 cat >>confdefs.h <<EOF
17352 #define GCC_SCANFLIKE(fmt,var) $cf_value
17358 cat >>confdefs.h <<EOF
17359 #define GCC_UNUSED $cf_directive
17367 ${FGREP-fgrep} define conftest.i >>confdefs.h
17374 if test "x$enable_warnings" = "xyes"; then
17376 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17378 if test "x$cf_with_cxx" = xyes ; then
17382 if test "$GCC" = yes ; then
17385 echo "$as_me:17385: checking if this is really Intel C++ compiler" >&5
17386 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17387 cf_save_CFLAGS="$CXXFLAGS"
17388 CXXFLAGS="$CXXFLAGS -no-gcc"
17389 cat >"conftest.$ac_ext" <<_ACEOF
17390 #line 17390 "configure"
17391 #include "confdefs.h"
17397 #ifdef __INTEL_COMPILER
17406 rm -f "conftest.$ac_objext"
17407 if { (eval echo "$as_me:17407: \"$ac_compile\"") >&5
17408 (eval $ac_compile) 2>&5
17410 echo "$as_me:17410: \$? = $ac_status" >&5
17411 (exit "$ac_status"); } &&
17412 { ac_try='test -s "conftest.$ac_objext"'
17413 { (eval echo "$as_me:17413: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17416 echo "$as_me:17416: \$? = $ac_status" >&5
17417 (exit "$ac_status"); }; }; then
17418 INTEL_CPLUSPLUS=yes
17419 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17422 echo "$as_me: failed program was:" >&5
17423 cat "conftest.$ac_ext" >&5
17425 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17426 CXXFLAGS="$cf_save_CFLAGS"
17427 echo "$as_me:17427: result: $INTEL_CPLUSPLUS" >&5
17428 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17435 if test "$GCC" = yes ; then
17436 echo "$as_me:17436: checking if this is really Clang C++ compiler" >&5
17437 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17438 cf_save_CFLAGS="$CXXFLAGS"
17439 cat >"conftest.$ac_ext" <<_ACEOF
17440 #line 17440 "configure"
17441 #include "confdefs.h"
17456 rm -f "conftest.$ac_objext"
17457 if { (eval echo "$as_me:17457: \"$ac_compile\"") >&5
17458 (eval $ac_compile) 2>&5
17460 echo "$as_me:17460: \$? = $ac_status" >&5
17461 (exit "$ac_status"); } &&
17462 { ac_try='test -s "conftest.$ac_objext"'
17463 { (eval echo "$as_me:17463: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:17466: \$? = $ac_status" >&5
17467 (exit "$ac_status"); }; }; then
17468 CLANG_CPLUSPLUS=yes
17471 echo "$as_me: failed program was:" >&5
17472 cat "conftest.$ac_ext" >&5
17474 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17475 CXXFLAGS="$cf_save_CFLAGS"
17476 echo "$as_me:17476: result: $CLANG_CPLUSPLUS" >&5
17477 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17482 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17484 (c[1-9][0-9]|*/c[1-9][0-9])
17485 { echo "$as_me:17485: WARNING: replacing broken compiler alias $CC" >&5
17486 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17487 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17492 echo "$as_me:17492: checking version of $CC" >&5
17493 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17494 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
17495 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17496 echo "$as_me:17496: result: $CLANG_VERSION" >&5
17497 echo "${ECHO_T}$CLANG_VERSION" >&6
17499 for cf_clang_opt in \
17500 -Qunused-arguments \
17501 -Wno-error=implicit-function-declaration
17503 echo "$as_me:17503: checking if option $cf_clang_opt works" >&5
17504 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17505 cf_save_CFLAGS="$CFLAGS"
17506 CFLAGS="$CFLAGS $cf_clang_opt"
17507 cat >"conftest.$ac_ext" <<_ACEOF
17508 #line 17508 "configure"
17509 #include "confdefs.h"
17516 printf("hello!\\n");
17521 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17522 if { (eval echo "$as_me:17522: \"$ac_link\"") >&5
17523 (eval $ac_link) 2>&5
17525 echo "$as_me:17525: \$? = $ac_status" >&5
17526 (exit "$ac_status"); } &&
17527 { ac_try='test -s "conftest$ac_exeext"'
17528 { (eval echo "$as_me:17528: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:17531: \$? = $ac_status" >&5
17532 (exit "$ac_status"); }; }; then
17536 echo "$as_me: failed program was:" >&5
17537 cat "conftest.$ac_ext" >&5
17541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17542 echo "$as_me:17542: result: $cf_clang_optok" >&5
17543 echo "${ECHO_T}$cf_clang_optok" >&6
17544 CFLAGS="$cf_save_CFLAGS"
17545 if test "$cf_clang_optok" = yes; then
17546 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17548 echo "${as_me:-configure}:17548: testing adding option $cf_clang_opt ..." 1>&5
17550 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17551 CFLAGS="${CFLAGS}$cf_clang_opt"
17558 ac_cpp='$CXXCPP $CPPFLAGS'
17559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17560 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17562 ac_main_return="return"
17564 cat > conftest.$ac_ext <<EOF
17565 #line 17565 "configure"
17566 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17569 if test "$INTEL_CPLUSPLUS" = yes
17571 # The "-wdXXX" options suppress warnings:
17572 # remark #1419: external declaration in primary source file
17573 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17574 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17575 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17576 # remark #193: zero used for undefined preprocessing identifier
17577 # remark #593: variable "curs_sb_left_arrow" was set but never used
17578 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17579 # remark #869: parameter "tw" was never referenced
17580 # remark #981: operands are evaluated in unspecified order
17581 # warning #269: invalid format string conversion
17583 { echo "$as_me:17583: checking for $CC warning options..." >&5
17584 echo "$as_me: checking for $CC warning options..." >&6;}
17585 cf_save_CXXFLAGS="$CXXFLAGS"
17586 EXTRA_CXXFLAGS="-Wall"
17599 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17600 if { (eval echo "$as_me:17600: \"$ac_compile\"") >&5
17601 (eval $ac_compile) 2>&5
17603 echo "$as_me:17603: \$? = $ac_status" >&5
17604 (exit "$ac_status"); }; then
17605 test -n "$verbose" && echo "$as_me:17605: result: ... -$cf_opt" >&5
17606 echo "${ECHO_T}... -$cf_opt" >&6
17607 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17610 CXXFLAGS="$cf_save_CXXFLAGS"
17612 elif test "$GXX" = yes
17614 { echo "$as_me:17614: checking for $CXX warning options..." >&5
17615 echo "$as_me: checking for $CXX warning options..." >&6;}
17616 cf_save_CXXFLAGS="$CXXFLAGS"
17617 EXTRA_CXXFLAGS="-W -Wall"
17618 cf_gxx_extra_warnings=""
17619 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17620 case "$GXX_VERSION" in
17624 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17631 Wignored-qualifiers \
17633 Woverloaded-virtual \
17641 Wundef $cf_gxx_extra_warnings Wno-unused
17643 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17644 if { (eval echo "$as_me:17644: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>&5
17647 echo "$as_me:17647: \$? = $ac_status" >&5
17648 (exit "$ac_status"); }; then
17649 test -n "$verbose" && echo "$as_me:17649: result: ... -$cf_opt" >&5
17650 echo "${ECHO_T}... -$cf_opt" >&6
17651 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17653 test -n "$verbose" && echo "$as_me:17653: result: ... no -$cf_opt" >&5
17654 echo "${ECHO_T}... no -$cf_opt" >&6
17657 CXXFLAGS="$cf_save_CXXFLAGS"
17662 ac_cpp='$CPP $CPPFLAGS'
17663 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17664 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17666 ac_main_return="return"
17671 echo "$as_me:17671: checking if you want to work around bogus compiler/loader warnings" >&5
17672 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17674 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17675 if test "${enable_string_hacks+set}" = set; then
17676 enableval="$enable_string_hacks"
17677 enable_string_hacks=$enableval
17679 enable_string_hacks=no
17681 echo "$as_me:17681: result: $enable_string_hacks" >&5
17682 echo "${ECHO_T}$enable_string_hacks" >&6
17684 if test "x$enable_string_hacks" = "xyes"; then
17686 cat >>confdefs.h <<\EOF
17687 #define USE_STRING_HACKS 1
17690 { echo "$as_me:17690: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17691 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17692 echo "$as_me:17692: checking for strlcat" >&5
17693 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17694 if test "${ac_cv_func_strlcat+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 cat >"conftest.$ac_ext" <<_ACEOF
17698 #line 17698 "configure"
17699 #include "confdefs.h"
17700 #define strlcat autoconf_temporary
17701 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17708 /* We use char because int might match the return type of a gcc2
17709 builtin and then its argument prototype would still apply. */
17710 char strlcat (void);
17716 /* The GNU C library defines stubs for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17720 #error found stub for strlcat
17728 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17729 if { (eval echo "$as_me:17729: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>&5
17732 echo "$as_me:17732: \$? = $ac_status" >&5
17733 (exit "$ac_status"); } &&
17734 { ac_try='test -s "conftest$ac_exeext"'
17735 { (eval echo "$as_me:17735: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:17738: \$? = $ac_status" >&5
17739 (exit "$ac_status"); }; }; then
17740 ac_cv_func_strlcat=yes
17742 echo "$as_me: failed program was:" >&5
17743 cat "conftest.$ac_ext" >&5
17744 ac_cv_func_strlcat=no
17746 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17748 echo "$as_me:17748: result: $ac_cv_func_strlcat" >&5
17749 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17750 if test "$ac_cv_func_strlcat" = yes; then
17752 cat >>confdefs.h <<\EOF
17753 #define HAVE_STRLCAT 1
17758 echo "$as_me:17758: checking for strlcat in -lbsd" >&5
17759 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17760 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 ac_check_lib_save_LIBS=$LIBS
17765 cat >"conftest.$ac_ext" <<_ACEOF
17766 #line 17766 "configure"
17767 #include "confdefs.h"
17769 /* Override any gcc2 internal prototype to avoid an error. */
17773 /* We use char because int might match the return type of a gcc2
17774 builtin and then its argument prototype would still apply. */
17784 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17785 if { (eval echo "$as_me:17785: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>&5
17788 echo "$as_me:17788: \$? = $ac_status" >&5
17789 (exit "$ac_status"); } &&
17790 { ac_try='test -s "conftest$ac_exeext"'
17791 { (eval echo "$as_me:17791: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17794 echo "$as_me:17794: \$? = $ac_status" >&5
17795 (exit "$ac_status"); }; }; then
17796 ac_cv_lib_bsd_strlcat=yes
17798 echo "$as_me: failed program was:" >&5
17799 cat "conftest.$ac_ext" >&5
17800 ac_cv_lib_bsd_strlcat=no
17802 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17803 LIBS=$ac_check_lib_save_LIBS
17805 echo "$as_me:17805: result: $ac_cv_lib_bsd_strlcat" >&5
17806 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17807 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17809 cf_add_libs="$LIBS"
17812 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17813 # filter duplicates
17814 for cf_add_1lib in $cf_add_0lib; do
17815 for cf_add_2lib in $cf_add_libs; do
17816 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17821 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17823 LIBS="$cf_add_libs"
17825 for ac_header in bsd/string.h
17827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17828 echo "$as_me:17828: checking for $ac_header" >&5
17829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 cat >"conftest.$ac_ext" <<_ACEOF
17834 #line 17834 "configure"
17835 #include "confdefs.h"
17836 #include <$ac_header>
17838 if { (eval echo "$as_me:17838: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17839 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17841 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:17844: \$? = $ac_status" >&5
17845 (exit "$ac_status"); } >/dev/null; then
17846 if test -s conftest.err; then
17847 ac_cpp_err=$ac_c_preproc_warn_flag
17854 if test -z "$ac_cpp_err"; then
17855 eval "$as_ac_Header=yes"
17857 echo "$as_me: failed program was:" >&5
17858 cat "conftest.$ac_ext" >&5
17859 eval "$as_ac_Header=no"
17861 rm -f conftest.err "conftest.$ac_ext"
17863 echo "$as_me:17863: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17864 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17865 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17866 cat >>confdefs.h <<EOF
17867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17873 cat >>confdefs.h <<\EOF
17874 #define HAVE_STRLCAT 1
17881 for ac_func in strlcpy snprintf
17883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17884 echo "$as_me:17884: checking for $ac_func" >&5
17885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17886 if eval "test \"\${$as_ac_var+set}\" = set"; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 cat >"conftest.$ac_ext" <<_ACEOF
17890 #line 17890 "configure"
17891 #include "confdefs.h"
17892 #define $ac_func autoconf_temporary
17893 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17900 /* We use char because int might match the return type of a gcc2
17901 builtin and then its argument prototype would still apply. */
17902 char $ac_func (void);
17908 /* The GNU C library defines stubs for functions which it implements
17909 to always fail with ENOSYS. Some functions are actually named
17910 something starting with __ and the normal name is an alias. */
17911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17912 #error found stub for $ac_func
17915 return $ac_func ();
17920 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17921 if { (eval echo "$as_me:17921: \"$ac_link\"") >&5
17922 (eval $ac_link) 2>&5
17924 echo "$as_me:17924: \$? = $ac_status" >&5
17925 (exit "$ac_status"); } &&
17926 { ac_try='test -s "conftest$ac_exeext"'
17927 { (eval echo "$as_me:17927: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:17930: \$? = $ac_status" >&5
17931 (exit "$ac_status"); }; }; then
17932 eval "$as_ac_var=yes"
17934 echo "$as_me: failed program was:" >&5
17935 cat "conftest.$ac_ext" >&5
17936 eval "$as_ac_var=no"
17938 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17940 echo "$as_me:17940: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17941 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17942 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17943 cat >>confdefs.h <<EOF
17944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17952 ### use option --enable-assertions to turn on generation of assertion code
17953 echo "$as_me:17953: checking if you want to enable runtime assertions" >&5
17954 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17956 # Check whether --enable-assertions or --disable-assertions was given.
17957 if test "${enable_assertions+set}" = set; then
17958 enableval="$enable_assertions"
17959 with_assertions=$enableval
17963 echo "$as_me:17963: result: $with_assertions" >&5
17964 echo "${ECHO_T}$with_assertions" >&6
17967 if test "$with_assertions" = no
17969 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17972 ADAFLAGS="$ADAFLAGS -gnata"
17977 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17979 echo "$as_me:17979: checking if you want to use dmalloc for testing" >&5
17980 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17982 # Check whether --with-dmalloc or --without-dmalloc was given.
17983 if test "${with_dmalloc+set}" = set; then
17984 withval="$with_dmalloc"
17985 case "x$withval" in
17988 : "${with_cflags:=-g}"
17989 : "${enable_leaks:=no}"
17992 cat >>confdefs.h <<EOF
17993 #define USE_DMALLOC 1
18001 echo "$as_me:18001: result: ${with_dmalloc:-no}" >&5
18002 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18004 case ".$with_cflags" in
18014 cf_new_extra_cppflags=
18016 for cf_add_cflags in -g
18018 case "$cf_fix_cppflags" in
18020 case "$cf_add_cflags" in
18021 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18022 case "$cf_add_cflags" in
18024 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18026 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18027 && test -z "${cf_tst_cflags}" \
18028 && cf_fix_cppflags=yes
18030 if test "$cf_fix_cppflags" = yes ; then
18032 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18033 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18036 elif test "${cf_tst_cflags}" = "\"'" ; then
18038 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18039 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18045 case "$CPPFLAGS" in
18049 case "$cf_add_cflags" in
18051 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18053 CPPFLAGS=`echo "$CPPFLAGS" | \
18054 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18055 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18060 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18061 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18068 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18069 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18076 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18077 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18079 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18081 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18082 && test -z "${cf_tst_cflags}" \
18083 && cf_fix_cppflags=no
18088 if test -n "$cf_new_cflags" ; then
18090 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18091 CFLAGS="${CFLAGS}$cf_new_cflags"
18095 if test -n "$cf_new_cppflags" ; then
18097 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18098 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18102 if test -n "$cf_new_extra_cppflags" ; then
18104 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18105 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18114 if test "$with_dmalloc" = yes ; then
18115 echo "$as_me:18115: checking for dmalloc.h" >&5
18116 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18117 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 cat >"conftest.$ac_ext" <<_ACEOF
18121 #line 18121 "configure"
18122 #include "confdefs.h"
18123 #include <dmalloc.h>
18125 if { (eval echo "$as_me:18125: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18126 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18128 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18130 cat conftest.err >&5
18131 echo "$as_me:18131: \$? = $ac_status" >&5
18132 (exit "$ac_status"); } >/dev/null; then
18133 if test -s conftest.err; then
18134 ac_cpp_err=$ac_c_preproc_warn_flag
18141 if test -z "$ac_cpp_err"; then
18142 ac_cv_header_dmalloc_h=yes
18144 echo "$as_me: failed program was:" >&5
18145 cat "conftest.$ac_ext" >&5
18146 ac_cv_header_dmalloc_h=no
18148 rm -f conftest.err "conftest.$ac_ext"
18150 echo "$as_me:18150: result: $ac_cv_header_dmalloc_h" >&5
18151 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18152 if test "$ac_cv_header_dmalloc_h" = yes; then
18154 echo "$as_me:18154: checking for dmalloc_debug in -ldmalloc" >&5
18155 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18156 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 ac_check_lib_save_LIBS=$LIBS
18160 LIBS="-ldmalloc $LIBS"
18161 cat >"conftest.$ac_ext" <<_ACEOF
18162 #line 18162 "configure"
18163 #include "confdefs.h"
18165 /* Override any gcc2 internal prototype to avoid an error. */
18169 /* We use char because int might match the return type of a gcc2
18170 builtin and then its argument prototype would still apply. */
18171 char dmalloc_debug ();
18180 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18181 if { (eval echo "$as_me:18181: \"$ac_link\"") >&5
18182 (eval $ac_link) 2>&5
18184 echo "$as_me:18184: \$? = $ac_status" >&5
18185 (exit "$ac_status"); } &&
18186 { ac_try='test -s "conftest$ac_exeext"'
18187 { (eval echo "$as_me:18187: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18190 echo "$as_me:18190: \$? = $ac_status" >&5
18191 (exit "$ac_status"); }; }; then
18192 ac_cv_lib_dmalloc_dmalloc_debug=yes
18194 echo "$as_me: failed program was:" >&5
18195 cat "conftest.$ac_ext" >&5
18196 ac_cv_lib_dmalloc_dmalloc_debug=no
18198 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18199 LIBS=$ac_check_lib_save_LIBS
18201 echo "$as_me:18201: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18202 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18203 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18204 cat >>confdefs.h <<EOF
18205 #define HAVE_LIBDMALLOC 1
18208 LIBS="-ldmalloc $LIBS"
18216 echo "$as_me:18216: checking if you want to use dbmalloc for testing" >&5
18217 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18219 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18220 if test "${with_dbmalloc+set}" = set; then
18221 withval="$with_dbmalloc"
18222 case "x$withval" in
18225 : "${with_cflags:=-g}"
18226 : "${enable_leaks:=no}"
18229 cat >>confdefs.h <<EOF
18230 #define USE_DBMALLOC 1
18238 echo "$as_me:18238: result: ${with_dbmalloc:-no}" >&5
18239 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18241 case ".$with_cflags" in
18251 cf_new_extra_cppflags=
18253 for cf_add_cflags in -g
18255 case "$cf_fix_cppflags" in
18257 case "$cf_add_cflags" in
18258 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18259 case "$cf_add_cflags" in
18261 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18263 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18264 && test -z "${cf_tst_cflags}" \
18265 && cf_fix_cppflags=yes
18267 if test "$cf_fix_cppflags" = yes ; then
18269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18273 elif test "${cf_tst_cflags}" = "\"'" ; then
18275 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18276 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18282 case "$CPPFLAGS" in
18286 case "$cf_add_cflags" in
18288 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18290 CPPFLAGS=`echo "$CPPFLAGS" | \
18291 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18292 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18297 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18298 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18305 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18306 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18313 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18314 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18316 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18318 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18319 && test -z "${cf_tst_cflags}" \
18320 && cf_fix_cppflags=no
18325 if test -n "$cf_new_cflags" ; then
18327 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18328 CFLAGS="${CFLAGS}$cf_new_cflags"
18332 if test -n "$cf_new_cppflags" ; then
18334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18335 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18339 if test -n "$cf_new_extra_cppflags" ; then
18341 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18342 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18351 if test "$with_dbmalloc" = yes ; then
18352 echo "$as_me:18352: checking for dbmalloc.h" >&5
18353 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18354 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 cat >"conftest.$ac_ext" <<_ACEOF
18358 #line 18358 "configure"
18359 #include "confdefs.h"
18360 #include <dbmalloc.h>
18362 if { (eval echo "$as_me:18362: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18363 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18365 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18367 cat conftest.err >&5
18368 echo "$as_me:18368: \$? = $ac_status" >&5
18369 (exit "$ac_status"); } >/dev/null; then
18370 if test -s conftest.err; then
18371 ac_cpp_err=$ac_c_preproc_warn_flag
18378 if test -z "$ac_cpp_err"; then
18379 ac_cv_header_dbmalloc_h=yes
18381 echo "$as_me: failed program was:" >&5
18382 cat "conftest.$ac_ext" >&5
18383 ac_cv_header_dbmalloc_h=no
18385 rm -f conftest.err "conftest.$ac_ext"
18387 echo "$as_me:18387: result: $ac_cv_header_dbmalloc_h" >&5
18388 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18389 if test "$ac_cv_header_dbmalloc_h" = yes; then
18391 echo "$as_me:18391: checking for debug_malloc in -ldbmalloc" >&5
18392 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18393 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 ac_check_lib_save_LIBS=$LIBS
18397 LIBS="-ldbmalloc $LIBS"
18398 cat >"conftest.$ac_ext" <<_ACEOF
18399 #line 18399 "configure"
18400 #include "confdefs.h"
18402 /* Override any gcc2 internal prototype to avoid an error. */
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18408 char debug_malloc ();
18417 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18418 if { (eval echo "$as_me:18418: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>&5
18421 echo "$as_me:18421: \$? = $ac_status" >&5
18422 (exit "$ac_status"); } &&
18423 { ac_try='test -s "conftest$ac_exeext"'
18424 { (eval echo "$as_me:18424: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:18427: \$? = $ac_status" >&5
18428 (exit "$ac_status"); }; }; then
18429 ac_cv_lib_dbmalloc_debug_malloc=yes
18431 echo "$as_me: failed program was:" >&5
18432 cat "conftest.$ac_ext" >&5
18433 ac_cv_lib_dbmalloc_debug_malloc=no
18435 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18436 LIBS=$ac_check_lib_save_LIBS
18438 echo "$as_me:18438: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18439 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18440 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18441 cat >>confdefs.h <<EOF
18442 #define HAVE_LIBDBMALLOC 1
18445 LIBS="-ldbmalloc $LIBS"
18453 echo "$as_me:18453: checking if you want to use valgrind for testing" >&5
18454 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18456 # Check whether --with-valgrind or --without-valgrind was given.
18457 if test "${with_valgrind+set}" = set; then
18458 withval="$with_valgrind"
18459 case "x$withval" in
18462 : "${with_cflags:=-g}"
18463 : "${enable_leaks:=no}"
18466 cat >>confdefs.h <<EOF
18467 #define USE_VALGRIND 1
18475 echo "$as_me:18475: result: ${with_valgrind:-no}" >&5
18476 echo "${ECHO_T}${with_valgrind:-no}" >&6
18478 case ".$with_cflags" in
18488 cf_new_extra_cppflags=
18490 for cf_add_cflags in -g
18492 case "$cf_fix_cppflags" in
18494 case "$cf_add_cflags" in
18495 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18496 case "$cf_add_cflags" in
18498 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18500 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18501 && test -z "${cf_tst_cflags}" \
18502 && cf_fix_cppflags=yes
18504 if test "$cf_fix_cppflags" = yes ; then
18506 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18507 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18510 elif test "${cf_tst_cflags}" = "\"'" ; then
18512 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18513 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18519 case "$CPPFLAGS" in
18523 case "$cf_add_cflags" in
18525 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18527 CPPFLAGS=`echo "$CPPFLAGS" | \
18528 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18529 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18534 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18535 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18542 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18543 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18550 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18551 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18553 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18555 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18556 && test -z "${cf_tst_cflags}" \
18557 && cf_fix_cppflags=no
18562 if test -n "$cf_new_cflags" ; then
18564 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18565 CFLAGS="${CFLAGS}$cf_new_cflags"
18569 if test -n "$cf_new_cppflags" ; then
18571 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18572 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18576 if test -n "$cf_new_extra_cppflags" ; then
18578 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18579 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18588 echo "$as_me:18588: checking if you want to perform memory-leak testing" >&5
18589 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18591 # Check whether --enable-leaks or --disable-leaks was given.
18592 if test "${enable_leaks+set}" = set; then
18593 enableval="$enable_leaks"
18594 enable_leaks=$enableval
18598 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18599 echo "$as_me:18599: result: $with_no_leaks" >&5
18600 echo "${ECHO_T}$with_no_leaks" >&6
18602 if test "$enable_leaks" = no ; then
18604 cat >>confdefs.h <<\EOF
18608 cat >>confdefs.h <<\EOF
18609 #define YY_NO_LEAKS 1
18614 cat >>confdefs.h <<\EOF
18615 #define HAVE_NC_ALLOC_H 1
18618 ### use option --enable-expanded to generate certain macros as functions
18620 # Check whether --enable-expanded or --disable-expanded was given.
18621 if test "${enable_expanded+set}" = set; then
18622 enableval="$enable_expanded"
18623 test "x$enableval" = xyes &&
18624 cat >>confdefs.h <<\EOF
18625 #define NCURSES_EXPANDED 1
18630 ### use option --disable-macros to suppress macros in favor of functions
18632 # Check whether --enable-macros or --disable-macros was given.
18633 if test "${enable_macros+set}" = set; then
18634 enableval="$enable_macros"
18635 test "$enableval" = no &&
18636 cat >>confdefs.h <<\EOF
18637 #define NCURSES_NOMACROS 1
18642 # Normally we only add trace() to the debug-library. Allow this to be
18643 # extended to all models of the ncurses library:
18645 case "$CFLAGS $CPPFLAGS" in
18651 echo "$as_me:18651: checking whether to add trace feature to all models" >&5
18652 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18654 # Check whether --with-trace or --without-trace was given.
18655 if test "${with_trace+set}" = set; then
18656 withval="$with_trace"
18657 cf_with_trace=$withval
18659 cf_with_trace=$cf_all_traces
18661 echo "$as_me:18661: result: $cf_with_trace" >&5
18662 echo "${ECHO_T}$cf_with_trace" >&6
18664 if test "x$cf_with_trace" = xyes ; then
18671 cf_new_extra_cppflags=
18673 for cf_add_cflags in -DTRACE
18675 case "$cf_fix_cppflags" in
18677 case "$cf_add_cflags" in
18678 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18679 case "$cf_add_cflags" in
18681 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18683 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18684 && test -z "${cf_tst_cflags}" \
18685 && cf_fix_cppflags=yes
18687 if test "$cf_fix_cppflags" = yes ; then
18689 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18690 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18693 elif test "${cf_tst_cflags}" = "\"'" ; then
18695 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18696 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18702 case "$CPPFLAGS" in
18706 case "$cf_add_cflags" in
18708 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18710 CPPFLAGS=`echo "$CPPFLAGS" | \
18711 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18712 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18717 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18718 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18725 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18726 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18733 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18734 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18736 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18738 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18739 && test -z "${cf_tst_cflags}" \
18740 && cf_fix_cppflags=no
18745 if test -n "$cf_new_cflags" ; then
18747 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18748 CFLAGS="${CFLAGS}$cf_new_cflags"
18752 if test -n "$cf_new_cppflags" ; then
18754 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18755 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18759 if test -n "$cf_new_extra_cppflags" ; then
18761 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18762 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18766 cat >>confdefs.h <<\EOF
18767 #define HAVE__TRACEF 1
18775 echo "$as_me:18775: checking if we want to use GNAT projects" >&5
18776 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18778 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18779 if test "${enable_gnat_projects+set}" = set; then
18780 enableval="$enable_gnat_projects"
18781 test "$enableval" != no && enableval=yes
18782 if test "$enableval" != "yes" ; then
18783 enable_gnat_projects=no
18785 enable_gnat_projects=yes
18789 enable_gnat_projects=yes
18792 echo "$as_me:18792: result: $enable_gnat_projects" >&5
18793 echo "${ECHO_T}$enable_gnat_projects" >&6
18795 ### Checks for libraries.
18796 case "$cf_cv_system_name" in
18797 (*mingw32*|*mingw64*)
18798 # Note: WINVER may be a problem with Windows 10
18799 if test "x$with_exp_win32" = xyes ; then
18800 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18802 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18805 echo "$as_me:18805: checking if ssp library is needed" >&5
18806 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
18807 if test "${cf_cv_need_libssp+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 cat >"conftest.$ac_ext" <<_ACEOF
18812 #line 18812 "configure"
18813 #include "confdefs.h"
18815 #include <sys/types.h>
18816 #include <dirent.h>
18822 DIR *dp = opendir(".");
18828 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18829 if { (eval echo "$as_me:18829: \"$ac_link\"") >&5
18830 (eval $ac_link) 2>&5
18832 echo "$as_me:18832: \$? = $ac_status" >&5
18833 (exit "$ac_status"); } &&
18834 { ac_try='test -s "conftest$ac_exeext"'
18835 { (eval echo "$as_me:18835: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18838 echo "$as_me:18838: \$? = $ac_status" >&5
18839 (exit "$ac_status"); }; }; then
18840 cf_cv_need_libssp=no
18842 echo "$as_me: failed program was:" >&5
18843 cat "conftest.$ac_ext" >&5
18845 cf_save_LIBS="$LIBS"
18847 cat >"conftest.$ac_ext" <<_ACEOF
18848 #line 18848 "configure"
18849 #include "confdefs.h"
18851 #include <sys/types.h>
18852 #include <dirent.h>
18858 DIR *dp = opendir(".");
18864 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18865 if { (eval echo "$as_me:18865: \"$ac_link\"") >&5
18866 (eval $ac_link) 2>&5
18868 echo "$as_me:18868: \$? = $ac_status" >&5
18869 (exit "$ac_status"); } &&
18870 { ac_try='test -s "conftest$ac_exeext"'
18871 { (eval echo "$as_me:18871: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18874 echo "$as_me:18874: \$? = $ac_status" >&5
18875 (exit "$ac_status"); }; }; then
18876 cf_cv_need_libssp=yes
18878 echo "$as_me: failed program was:" >&5
18879 cat "conftest.$ac_ext" >&5
18880 cf_cv_need_libssp=maybe
18882 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18883 LIBS="$cf_save_LIBS"
18886 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18888 echo "$as_me:18888: result: $cf_cv_need_libssp" >&5
18889 echo "${ECHO_T}$cf_cv_need_libssp" >&6
18891 if test "x$cf_cv_need_libssp" = xyes
18894 cf_add_libs="$LIBS"
18897 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18898 # filter duplicates
18899 for cf_add_1lib in $cf_add_0lib; do
18900 for cf_add_2lib in $cf_add_libs; do
18901 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18906 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18908 LIBS="$cf_add_libs"
18914 echo "$as_me:18914: checking for gettimeofday" >&5
18915 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18916 if test "${ac_cv_func_gettimeofday+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 cat >"conftest.$ac_ext" <<_ACEOF
18920 #line 18920 "configure"
18921 #include "confdefs.h"
18922 #define gettimeofday autoconf_temporary
18923 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18924 #undef gettimeofday
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18932 char gettimeofday (void);
18938 /* The GNU C library defines stubs for functions which it implements
18939 to always fail with ENOSYS. Some functions are actually named
18940 something starting with __ and the normal name is an alias. */
18941 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18942 #error found stub for gettimeofday
18945 return gettimeofday ();
18950 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18951 if { (eval echo "$as_me:18951: \"$ac_link\"") >&5
18952 (eval $ac_link) 2>&5
18954 echo "$as_me:18954: \$? = $ac_status" >&5
18955 (exit "$ac_status"); } &&
18956 { ac_try='test -s "conftest$ac_exeext"'
18957 { (eval echo "$as_me:18957: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:18960: \$? = $ac_status" >&5
18961 (exit "$ac_status"); }; }; then
18962 ac_cv_func_gettimeofday=yes
18964 echo "$as_me: failed program was:" >&5
18965 cat "conftest.$ac_ext" >&5
18966 ac_cv_func_gettimeofday=no
18968 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18970 echo "$as_me:18970: result: $ac_cv_func_gettimeofday" >&5
18971 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18972 if test "$ac_cv_func_gettimeofday" = yes; then
18974 cat >>confdefs.h <<\EOF
18975 #define HAVE_GETTIMEOFDAY 1
18980 echo "$as_me:18980: checking for gettimeofday in -lbsd" >&5
18981 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18982 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18985 ac_check_lib_save_LIBS=$LIBS
18987 cat >"conftest.$ac_ext" <<_ACEOF
18988 #line 18988 "configure"
18989 #include "confdefs.h"
18991 /* Override any gcc2 internal prototype to avoid an error. */
18995 /* We use char because int might match the return type of a gcc2
18996 builtin and then its argument prototype would still apply. */
18997 char gettimeofday ();
19006 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19007 if { (eval echo "$as_me:19007: \"$ac_link\"") >&5
19008 (eval $ac_link) 2>&5
19010 echo "$as_me:19010: \$? = $ac_status" >&5
19011 (exit "$ac_status"); } &&
19012 { ac_try='test -s "conftest$ac_exeext"'
19013 { (eval echo "$as_me:19013: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19016 echo "$as_me:19016: \$? = $ac_status" >&5
19017 (exit "$ac_status"); }; }; then
19018 ac_cv_lib_bsd_gettimeofday=yes
19020 echo "$as_me: failed program was:" >&5
19021 cat "conftest.$ac_ext" >&5
19022 ac_cv_lib_bsd_gettimeofday=no
19024 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19025 LIBS=$ac_check_lib_save_LIBS
19027 echo "$as_me:19027: result: $ac_cv_lib_bsd_gettimeofday" >&5
19028 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
19029 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
19031 cat >>confdefs.h <<\EOF
19032 #define HAVE_GETTIMEOFDAY 1
19035 cf_add_libs="$LIBS"
19038 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19039 # filter duplicates
19040 for cf_add_1lib in $cf_add_0lib; do
19041 for cf_add_2lib in $cf_add_libs; do
19042 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19047 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19049 LIBS="$cf_add_libs"
19057 echo "$as_me:19057: checking if -lm needed for math functions" >&5
19058 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19059 if test "${cf_cv_need_libm+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 cat >"conftest.$ac_ext" <<_ACEOF
19064 #line 19064 "configure"
19065 #include "confdefs.h"
19068 #include <stdlib.h>
19074 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19079 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19080 if { (eval echo "$as_me:19080: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>&5
19083 echo "$as_me:19083: \$? = $ac_status" >&5
19084 (exit "$ac_status"); } &&
19085 { ac_try='test -s "conftest$ac_exeext"'
19086 { (eval echo "$as_me:19086: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:19089: \$? = $ac_status" >&5
19090 (exit "$ac_status"); }; }; then
19093 echo "$as_me: failed program was:" >&5
19094 cat "conftest.$ac_ext" >&5
19095 cf_cv_need_libm=yes
19097 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19099 echo "$as_me:19099: result: $cf_cv_need_libm" >&5
19100 echo "${ECHO_T}$cf_cv_need_libm" >&6
19102 if test "$cf_cv_need_libm" = yes
19105 cf_save_LIBS="$LIBS"
19107 echo "$as_me:19107: checking if -lm is available for math functions" >&5
19108 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19109 if test "${cf_cv_have_libm+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 cat >"conftest.$ac_ext" <<_ACEOF
19114 #line 19114 "configure"
19115 #include "confdefs.h"
19118 #include <stdlib.h>
19124 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19129 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19130 if { (eval echo "$as_me:19130: \"$ac_link\"") >&5
19131 (eval $ac_link) 2>&5
19133 echo "$as_me:19133: \$? = $ac_status" >&5
19134 (exit "$ac_status"); } &&
19135 { ac_try='test -s "conftest$ac_exeext"'
19136 { (eval echo "$as_me:19136: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:19139: \$? = $ac_status" >&5
19140 (exit "$ac_status"); }; }; then
19141 cf_cv_have_libm=yes
19143 echo "$as_me: failed program was:" >&5
19144 cat "conftest.$ac_ext" >&5
19147 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19149 echo "$as_me:19149: result: $cf_cv_have_libm" >&5
19150 echo "${ECHO_T}$cf_cv_have_libm" >&6
19151 LIBS="$cf_save_LIBS"
19153 if test "$cf_cv_have_libm" = yes
19158 cf_cv_have_libm=yes
19161 if test "$cf_cv_have_libm" = yes
19164 cat >>confdefs.h <<\EOF
19165 #define HAVE_MATH_FUNCS 1
19170 ### Checks for header files.
19171 echo "$as_me:19171: checking for ANSI C header files" >&5
19172 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19173 if test "${ac_cv_header_stdc+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 cat >"conftest.$ac_ext" <<_ACEOF
19177 #line 19177 "configure"
19178 #include "confdefs.h"
19179 #include <stdlib.h>
19180 #include <stdarg.h>
19181 #include <string.h>
19185 if { (eval echo "$as_me:19185: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19186 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19188 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:19191: \$? = $ac_status" >&5
19192 (exit "$ac_status"); } >/dev/null; then
19193 if test -s conftest.err; then
19194 ac_cpp_err=$ac_c_preproc_warn_flag
19201 if test -z "$ac_cpp_err"; then
19202 ac_cv_header_stdc=yes
19204 echo "$as_me: failed program was:" >&5
19205 cat "conftest.$ac_ext" >&5
19206 ac_cv_header_stdc=no
19208 rm -f conftest.err "conftest.$ac_ext"
19210 if test $ac_cv_header_stdc = yes; then
19211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19212 cat >"conftest.$ac_ext" <<_ACEOF
19213 #line 19213 "configure"
19214 #include "confdefs.h"
19215 #include <string.h>
19218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19219 $EGREP "memchr" >/dev/null 2>&1; then
19222 ac_cv_header_stdc=no
19228 if test $ac_cv_header_stdc = yes; then
19229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19230 cat >"conftest.$ac_ext" <<_ACEOF
19231 #line 19231 "configure"
19232 #include "confdefs.h"
19233 #include <stdlib.h>
19236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19237 $EGREP "free" >/dev/null 2>&1; then
19240 ac_cv_header_stdc=no
19246 if test $ac_cv_header_stdc = yes; then
19247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19248 if test "$cross_compiling" = yes; then
19251 cat >"conftest.$ac_ext" <<_ACEOF
19252 #line 19252 "configure"
19253 #include "confdefs.h"
19255 #if ((' ' & 0x0FF) == 0x020)
19256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19259 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
19260 || ('j' <= (c) && (c) <= 'r') \
19261 || ('s' <= (c) && (c) <= 'z'))
19262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19270 for (i = 0; i < 256; i++)
19271 if (XOR (islower (i), ISLOWER (i))
19272 || toupper (i) != TOUPPER (i))
19273 $ac_main_return(2);
19274 $ac_main_return (0);
19277 rm -f "conftest$ac_exeext"
19278 if { (eval echo "$as_me:19278: \"$ac_link\"") >&5
19279 (eval $ac_link) 2>&5
19281 echo "$as_me:19281: \$? = $ac_status" >&5
19282 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
19283 { (eval echo "$as_me:19283: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19286 echo "$as_me:19286: \$? = $ac_status" >&5
19287 (exit "$ac_status"); }; }; then
19290 echo "$as_me: program exited with status $ac_status" >&5
19291 echo "$as_me: failed program was:" >&5
19292 cat "conftest.$ac_ext" >&5
19293 ac_cv_header_stdc=no
19295 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
19299 echo "$as_me:19299: result: $ac_cv_header_stdc" >&5
19300 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19301 if test $ac_cv_header_stdc = yes; then
19303 cat >>confdefs.h <<\EOF
19304 #define STDC_HEADERS 1
19309 ac_header_dirent=no
19310 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19311 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19312 echo "$as_me:19312: checking for $ac_hdr that defines DIR" >&5
19313 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 cat >"conftest.$ac_ext" <<_ACEOF
19318 #line 19318 "configure"
19319 #include "confdefs.h"
19320 #include <sys/types.h>
19332 rm -f "conftest.$ac_objext"
19333 if { (eval echo "$as_me:19333: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>&5
19336 echo "$as_me:19336: \$? = $ac_status" >&5
19337 (exit "$ac_status"); } &&
19338 { ac_try='test -s "conftest.$ac_objext"'
19339 { (eval echo "$as_me:19339: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:19342: \$? = $ac_status" >&5
19343 (exit "$ac_status"); }; }; then
19344 eval "$as_ac_Header=yes"
19346 echo "$as_me: failed program was:" >&5
19347 cat "conftest.$ac_ext" >&5
19348 eval "$as_ac_Header=no"
19350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19352 echo "$as_me:19352: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19353 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19354 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19355 cat >>confdefs.h <<EOF
19356 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19359 ac_header_dirent=$ac_hdr; break
19363 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19364 if test $ac_header_dirent = dirent.h; then
19365 echo "$as_me:19365: checking for opendir in -ldir" >&5
19366 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
19367 if test "${ac_cv_lib_dir_opendir+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 ac_check_lib_save_LIBS=$LIBS
19372 cat >"conftest.$ac_ext" <<_ACEOF
19373 #line 19373 "configure"
19374 #include "confdefs.h"
19376 /* Override any gcc2 internal prototype to avoid an error. */
19380 /* We use char because int might match the return type of a gcc2
19381 builtin and then its argument prototype would still apply. */
19391 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19392 if { (eval echo "$as_me:19392: \"$ac_link\"") >&5
19393 (eval $ac_link) 2>&5
19395 echo "$as_me:19395: \$? = $ac_status" >&5
19396 (exit "$ac_status"); } &&
19397 { ac_try='test -s "conftest$ac_exeext"'
19398 { (eval echo "$as_me:19398: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19401 echo "$as_me:19401: \$? = $ac_status" >&5
19402 (exit "$ac_status"); }; }; then
19403 ac_cv_lib_dir_opendir=yes
19405 echo "$as_me: failed program was:" >&5
19406 cat "conftest.$ac_ext" >&5
19407 ac_cv_lib_dir_opendir=no
19409 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19410 LIBS=$ac_check_lib_save_LIBS
19412 echo "$as_me:19412: result: $ac_cv_lib_dir_opendir" >&5
19413 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
19414 if test "$ac_cv_lib_dir_opendir" = yes; then
19419 echo "$as_me:19419: checking for opendir in -lx" >&5
19420 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
19421 if test "${ac_cv_lib_x_opendir+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_check_lib_save_LIBS=$LIBS
19426 cat >"conftest.$ac_ext" <<_ACEOF
19427 #line 19427 "configure"
19428 #include "confdefs.h"
19430 /* Override any gcc2 internal prototype to avoid an error. */
19434 /* We use char because int might match the return type of a gcc2
19435 builtin and then its argument prototype would still apply. */
19445 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19446 if { (eval echo "$as_me:19446: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>&5
19449 echo "$as_me:19449: \$? = $ac_status" >&5
19450 (exit "$ac_status"); } &&
19451 { ac_try='test -s "conftest$ac_exeext"'
19452 { (eval echo "$as_me:19452: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:19455: \$? = $ac_status" >&5
19456 (exit "$ac_status"); }; }; then
19457 ac_cv_lib_x_opendir=yes
19459 echo "$as_me: failed program was:" >&5
19460 cat "conftest.$ac_ext" >&5
19461 ac_cv_lib_x_opendir=no
19463 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19464 LIBS=$ac_check_lib_save_LIBS
19466 echo "$as_me:19466: result: $ac_cv_lib_x_opendir" >&5
19467 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
19468 if test "$ac_cv_lib_x_opendir" = yes; then
19474 echo "$as_me:19474: checking whether time.h and sys/time.h may both be included" >&5
19475 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19476 if test "${ac_cv_header_time+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 cat >"conftest.$ac_ext" <<_ACEOF
19480 #line 19480 "configure"
19481 #include "confdefs.h"
19482 #include <sys/types.h>
19483 #include <sys/time.h>
19489 if ((struct tm *) 0)
19495 rm -f "conftest.$ac_objext"
19496 if { (eval echo "$as_me:19496: \"$ac_compile\"") >&5
19497 (eval $ac_compile) 2>&5
19499 echo "$as_me:19499: \$? = $ac_status" >&5
19500 (exit "$ac_status"); } &&
19501 { ac_try='test -s "conftest.$ac_objext"'
19502 { (eval echo "$as_me:19502: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19505 echo "$as_me:19505: \$? = $ac_status" >&5
19506 (exit "$ac_status"); }; }; then
19507 ac_cv_header_time=yes
19509 echo "$as_me: failed program was:" >&5
19510 cat "conftest.$ac_ext" >&5
19511 ac_cv_header_time=no
19513 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19515 echo "$as_me:19515: result: $ac_cv_header_time" >&5
19516 echo "${ECHO_T}$ac_cv_header_time" >&6
19517 if test $ac_cv_header_time = yes; then
19519 cat >>confdefs.h <<\EOF
19520 #define TIME_WITH_SYS_TIME 1
19529 # -lsystre -ltre -lintl -liconv
19530 echo "$as_me:19530: checking for regcomp in -lsystre" >&5
19531 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19532 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lsystre $LIBS"
19537 cat >"conftest.$ac_ext" <<_ACEOF
19538 #line 19538 "configure"
19539 #include "confdefs.h"
19541 /* Override any gcc2 internal prototype to avoid an error. */
19545 /* We use char because int might match the return type of a gcc2
19546 builtin and then its argument prototype would still apply. */
19556 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19557 if { (eval echo "$as_me:19557: \"$ac_link\"") >&5
19558 (eval $ac_link) 2>&5
19560 echo "$as_me:19560: \$? = $ac_status" >&5
19561 (exit "$ac_status"); } &&
19562 { ac_try='test -s "conftest$ac_exeext"'
19563 { (eval echo "$as_me:19563: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:19566: \$? = $ac_status" >&5
19567 (exit "$ac_status"); }; }; then
19568 ac_cv_lib_systre_regcomp=yes
19570 echo "$as_me: failed program was:" >&5
19571 cat "conftest.$ac_ext" >&5
19572 ac_cv_lib_systre_regcomp=no
19574 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19575 LIBS=$ac_check_lib_save_LIBS
19577 echo "$as_me:19577: result: $ac_cv_lib_systre_regcomp" >&5
19578 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19579 if test "$ac_cv_lib_systre_regcomp" = yes; then
19581 echo "$as_me:19581: checking for libiconv_open in -liconv" >&5
19582 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19583 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 ac_check_lib_save_LIBS=$LIBS
19587 LIBS="-liconv $LIBS"
19588 cat >"conftest.$ac_ext" <<_ACEOF
19589 #line 19589 "configure"
19590 #include "confdefs.h"
19592 /* Override any gcc2 internal prototype to avoid an error. */
19596 /* We use char because int might match the return type of a gcc2
19597 builtin and then its argument prototype would still apply. */
19598 char libiconv_open ();
19607 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19608 if { (eval echo "$as_me:19608: \"$ac_link\"") >&5
19609 (eval $ac_link) 2>&5
19611 echo "$as_me:19611: \$? = $ac_status" >&5
19612 (exit "$ac_status"); } &&
19613 { ac_try='test -s "conftest$ac_exeext"'
19614 { (eval echo "$as_me:19614: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:19617: \$? = $ac_status" >&5
19618 (exit "$ac_status"); }; }; then
19619 ac_cv_lib_iconv_libiconv_open=yes
19621 echo "$as_me: failed program was:" >&5
19622 cat "conftest.$ac_ext" >&5
19623 ac_cv_lib_iconv_libiconv_open=no
19625 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19626 LIBS=$ac_check_lib_save_LIBS
19628 echo "$as_me:19628: result: $ac_cv_lib_iconv_libiconv_open" >&5
19629 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19630 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19632 cf_add_libs="$LIBS"
19635 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19636 # filter duplicates
19637 for cf_add_1lib in $cf_add_0lib; do
19638 for cf_add_2lib in $cf_add_libs; do
19639 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19644 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19646 LIBS="$cf_add_libs"
19650 echo "$as_me:19650: checking for libintl_gettext in -lintl" >&5
19651 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19652 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-lintl $LIBS"
19657 cat >"conftest.$ac_ext" <<_ACEOF
19658 #line 19658 "configure"
19659 #include "confdefs.h"
19661 /* Override any gcc2 internal prototype to avoid an error. */
19665 /* We use char because int might match the return type of a gcc2
19666 builtin and then its argument prototype would still apply. */
19667 char libintl_gettext ();
19671 libintl_gettext ();
19676 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19677 if { (eval echo "$as_me:19677: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>&5
19680 echo "$as_me:19680: \$? = $ac_status" >&5
19681 (exit "$ac_status"); } &&
19682 { ac_try='test -s "conftest$ac_exeext"'
19683 { (eval echo "$as_me:19683: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19686 echo "$as_me:19686: \$? = $ac_status" >&5
19687 (exit "$ac_status"); }; }; then
19688 ac_cv_lib_intl_libintl_gettext=yes
19690 echo "$as_me: failed program was:" >&5
19691 cat "conftest.$ac_ext" >&5
19692 ac_cv_lib_intl_libintl_gettext=no
19694 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19695 LIBS=$ac_check_lib_save_LIBS
19697 echo "$as_me:19697: result: $ac_cv_lib_intl_libintl_gettext" >&5
19698 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19699 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19701 cf_add_libs="$LIBS"
19704 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19705 # filter duplicates
19706 for cf_add_1lib in $cf_add_0lib; do
19707 for cf_add_2lib in $cf_add_libs; do
19708 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19713 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19715 LIBS="$cf_add_libs"
19719 echo "$as_me:19719: checking for tre_regcomp in -ltre" >&5
19720 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19721 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 ac_check_lib_save_LIBS=$LIBS
19726 cat >"conftest.$ac_ext" <<_ACEOF
19727 #line 19727 "configure"
19728 #include "confdefs.h"
19730 /* Override any gcc2 internal prototype to avoid an error. */
19734 /* We use char because int might match the return type of a gcc2
19735 builtin and then its argument prototype would still apply. */
19736 char tre_regcomp ();
19745 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19746 if { (eval echo "$as_me:19746: \"$ac_link\"") >&5
19747 (eval $ac_link) 2>&5
19749 echo "$as_me:19749: \$? = $ac_status" >&5
19750 (exit "$ac_status"); } &&
19751 { ac_try='test -s "conftest$ac_exeext"'
19752 { (eval echo "$as_me:19752: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:19755: \$? = $ac_status" >&5
19756 (exit "$ac_status"); }; }; then
19757 ac_cv_lib_tre_tre_regcomp=yes
19759 echo "$as_me: failed program was:" >&5
19760 cat "conftest.$ac_ext" >&5
19761 ac_cv_lib_tre_tre_regcomp=no
19763 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19764 LIBS=$ac_check_lib_save_LIBS
19766 echo "$as_me:19766: result: $ac_cv_lib_tre_tre_regcomp" >&5
19767 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19768 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19770 cf_add_libs="$LIBS"
19773 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19774 # filter duplicates
19775 for cf_add_1lib in $cf_add_0lib; do
19776 for cf_add_2lib in $cf_add_libs; do
19777 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19782 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19784 LIBS="$cf_add_libs"
19788 cf_add_libs="$LIBS"
19791 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19792 # filter duplicates
19793 for cf_add_1lib in $cf_add_0lib; do
19794 for cf_add_2lib in $cf_add_libs; do
19795 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19800 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19802 LIBS="$cf_add_libs"
19804 cf_regex_func=regcomp
19808 echo "$as_me:19808: checking for regcomp in -lgnurx" >&5
19809 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19810 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 ac_check_lib_save_LIBS=$LIBS
19814 LIBS="-lgnurx $LIBS"
19815 cat >"conftest.$ac_ext" <<_ACEOF
19816 #line 19816 "configure"
19817 #include "confdefs.h"
19819 /* Override any gcc2 internal prototype to avoid an error. */
19823 /* We use char because int might match the return type of a gcc2
19824 builtin and then its argument prototype would still apply. */
19834 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19835 if { (eval echo "$as_me:19835: \"$ac_link\"") >&5
19836 (eval $ac_link) 2>&5
19838 echo "$as_me:19838: \$? = $ac_status" >&5
19839 (exit "$ac_status"); } &&
19840 { ac_try='test -s "conftest$ac_exeext"'
19841 { (eval echo "$as_me:19841: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19844 echo "$as_me:19844: \$? = $ac_status" >&5
19845 (exit "$ac_status"); }; }; then
19846 ac_cv_lib_gnurx_regcomp=yes
19848 echo "$as_me: failed program was:" >&5
19849 cat "conftest.$ac_ext" >&5
19850 ac_cv_lib_gnurx_regcomp=no
19852 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19853 LIBS=$ac_check_lib_save_LIBS
19855 echo "$as_me:19855: result: $ac_cv_lib_gnurx_regcomp" >&5
19856 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19857 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19859 cf_add_libs="$LIBS"
19862 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19863 # filter duplicates
19864 for cf_add_1lib in $cf_add_0lib; do
19865 for cf_add_2lib in $cf_add_libs; do
19866 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19871 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19873 LIBS="$cf_add_libs"
19875 cf_regex_func=regcomp
19882 cf_regex_libs="regex re"
19883 echo "$as_me:19883: checking for regcomp" >&5
19884 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19885 if test "${ac_cv_func_regcomp+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 cat >"conftest.$ac_ext" <<_ACEOF
19889 #line 19889 "configure"
19890 #include "confdefs.h"
19891 #define regcomp autoconf_temporary
19892 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19899 /* We use char because int might match the return type of a gcc2
19900 builtin and then its argument prototype would still apply. */
19901 char regcomp (void);
19907 /* The GNU C library defines stubs for functions which it implements
19908 to always fail with ENOSYS. Some functions are actually named
19909 something starting with __ and the normal name is an alias. */
19910 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19911 #error found stub for regcomp
19919 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19920 if { (eval echo "$as_me:19920: \"$ac_link\"") >&5
19921 (eval $ac_link) 2>&5
19923 echo "$as_me:19923: \$? = $ac_status" >&5
19924 (exit "$ac_status"); } &&
19925 { ac_try='test -s "conftest$ac_exeext"'
19926 { (eval echo "$as_me:19926: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19929 echo "$as_me:19929: \$? = $ac_status" >&5
19930 (exit "$ac_status"); }; }; then
19931 ac_cv_func_regcomp=yes
19933 echo "$as_me: failed program was:" >&5
19934 cat "conftest.$ac_ext" >&5
19935 ac_cv_func_regcomp=no
19937 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19939 echo "$as_me:19939: result: $ac_cv_func_regcomp" >&5
19940 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19941 if test "$ac_cv_func_regcomp" = yes; then
19942 cf_regex_func=regcomp
19945 for cf_regex_lib in $cf_regex_libs
19947 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19948 echo "$as_me:19948: checking for regcomp in -l$cf_regex_lib" >&5
19949 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19950 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-l$cf_regex_lib $LIBS"
19955 cat >"conftest.$ac_ext" <<_ACEOF
19956 #line 19956 "configure"
19957 #include "confdefs.h"
19959 /* Override any gcc2 internal prototype to avoid an error. */
19963 /* We use char because int might match the return type of a gcc2
19964 builtin and then its argument prototype would still apply. */
19974 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19975 if { (eval echo "$as_me:19975: \"$ac_link\"") >&5
19976 (eval $ac_link) 2>&5
19978 echo "$as_me:19978: \$? = $ac_status" >&5
19979 (exit "$ac_status"); } &&
19980 { ac_try='test -s "conftest$ac_exeext"'
19981 { (eval echo "$as_me:19981: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19984 echo "$as_me:19984: \$? = $ac_status" >&5
19985 (exit "$ac_status"); }; }; then
19986 eval "$as_ac_Lib=yes"
19988 echo "$as_me: failed program was:" >&5
19989 cat "conftest.$ac_ext" >&5
19990 eval "$as_ac_Lib=no"
19992 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19993 LIBS=$ac_check_lib_save_LIBS
19995 echo "$as_me:19995: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19996 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19997 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19999 cf_add_libs="$LIBS"
20002 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20003 # filter duplicates
20004 for cf_add_1lib in $cf_add_0lib; do
20005 for cf_add_2lib in $cf_add_libs; do
20006 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20011 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20013 LIBS="$cf_add_libs"
20015 cf_regex_func=regcomp
20026 if test "$cf_regex_func" = no ; then
20027 echo "$as_me:20027: checking for compile" >&5
20028 echo $ECHO_N "checking for compile... $ECHO_C" >&6
20029 if test "${ac_cv_func_compile+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 cat >"conftest.$ac_ext" <<_ACEOF
20033 #line 20033 "configure"
20034 #include "confdefs.h"
20035 #define compile autoconf_temporary
20036 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20043 /* We use char because int might match the return type of a gcc2
20044 builtin and then its argument prototype would still apply. */
20045 char compile (void);
20051 /* The GNU C library defines stubs for functions which it implements
20052 to always fail with ENOSYS. Some functions are actually named
20053 something starting with __ and the normal name is an alias. */
20054 #if defined (__stub_compile) || defined (__stub___compile)
20055 #error found stub for compile
20063 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20064 if { (eval echo "$as_me:20064: \"$ac_link\"") >&5
20065 (eval $ac_link) 2>&5
20067 echo "$as_me:20067: \$? = $ac_status" >&5
20068 (exit "$ac_status"); } &&
20069 { ac_try='test -s "conftest$ac_exeext"'
20070 { (eval echo "$as_me:20070: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20073 echo "$as_me:20073: \$? = $ac_status" >&5
20074 (exit "$ac_status"); }; }; then
20075 ac_cv_func_compile=yes
20077 echo "$as_me: failed program was:" >&5
20078 cat "conftest.$ac_ext" >&5
20079 ac_cv_func_compile=no
20081 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20083 echo "$as_me:20083: result: $ac_cv_func_compile" >&5
20084 echo "${ECHO_T}$ac_cv_func_compile" >&6
20085 if test "$ac_cv_func_compile" = yes; then
20086 cf_regex_func=compile
20089 echo "$as_me:20089: checking for compile in -lgen" >&5
20090 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
20091 if test "${ac_cv_lib_gen_compile+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 ac_check_lib_save_LIBS=$LIBS
20096 cat >"conftest.$ac_ext" <<_ACEOF
20097 #line 20097 "configure"
20098 #include "confdefs.h"
20100 /* Override any gcc2 internal prototype to avoid an error. */
20104 /* We use char because int might match the return type of a gcc2
20105 builtin and then its argument prototype would still apply. */
20115 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20116 if { (eval echo "$as_me:20116: \"$ac_link\"") >&5
20117 (eval $ac_link) 2>&5
20119 echo "$as_me:20119: \$? = $ac_status" >&5
20120 (exit "$ac_status"); } &&
20121 { ac_try='test -s "conftest$ac_exeext"'
20122 { (eval echo "$as_me:20122: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20125 echo "$as_me:20125: \$? = $ac_status" >&5
20126 (exit "$ac_status"); }; }; then
20127 ac_cv_lib_gen_compile=yes
20129 echo "$as_me: failed program was:" >&5
20130 cat "conftest.$ac_ext" >&5
20131 ac_cv_lib_gen_compile=no
20133 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20134 LIBS=$ac_check_lib_save_LIBS
20136 echo "$as_me:20136: result: $ac_cv_lib_gen_compile" >&5
20137 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
20138 if test "$ac_cv_lib_gen_compile" = yes; then
20140 cf_add_libs="$LIBS"
20143 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20144 # filter duplicates
20145 for cf_add_1lib in $cf_add_0lib; do
20146 for cf_add_2lib in $cf_add_libs; do
20147 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20152 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20154 LIBS="$cf_add_libs"
20156 cf_regex_func=compile
20163 if test "$cf_regex_func" = no ; then
20164 { echo "$as_me:20164: WARNING: cannot find regular expression library" >&5
20165 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
20168 echo "$as_me:20168: checking for regular-expression headers" >&5
20169 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
20170 if test "${cf_cv_regex_hdrs+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 cf_cv_regex_hdrs=no
20175 case "$cf_regex_func" in
20177 for cf_regex_hdr in regexp.h regexpr.h
20179 cat >"conftest.$ac_ext" <<_ACEOF
20180 #line 20180 "configure"
20181 #include "confdefs.h"
20182 #include <$cf_regex_hdr>
20187 char *p = compile("", "", "", 0);
20188 int x = step("", "");
20196 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20197 if { (eval echo "$as_me:20197: \"$ac_link\"") >&5
20198 (eval $ac_link) 2>&5
20200 echo "$as_me:20200: \$? = $ac_status" >&5
20201 (exit "$ac_status"); } &&
20202 { ac_try='test -s "conftest$ac_exeext"'
20203 { (eval echo "$as_me:20203: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20206 echo "$as_me:20206: \$? = $ac_status" >&5
20207 (exit "$ac_status"); }; }; then
20209 cf_cv_regex_hdrs=$cf_regex_hdr
20213 echo "$as_me: failed program was:" >&5
20214 cat "conftest.$ac_ext" >&5
20216 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20220 for cf_regex_hdr in regex.h
20222 cat >"conftest.$ac_ext" <<_ACEOF
20223 #line 20223 "configure"
20224 #include "confdefs.h"
20225 #include <sys/types.h>
20226 #include <$cf_regex_hdr>
20232 int x = regcomp(p, "", 0);
20233 int y = regexec(p, "", 0, 0, 0);
20242 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20243 if { (eval echo "$as_me:20243: \"$ac_link\"") >&5
20244 (eval $ac_link) 2>&5
20246 echo "$as_me:20246: \$? = $ac_status" >&5
20247 (exit "$ac_status"); } &&
20248 { ac_try='test -s "conftest$ac_exeext"'
20249 { (eval echo "$as_me:20249: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:20252: \$? = $ac_status" >&5
20253 (exit "$ac_status"); }; }; then
20255 cf_cv_regex_hdrs=$cf_regex_hdr
20259 echo "$as_me: failed program was:" >&5
20260 cat "conftest.$ac_ext" >&5
20262 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20268 echo "$as_me:20268: result: $cf_cv_regex_hdrs" >&5
20269 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20271 case "$cf_cv_regex_hdrs" in
20272 (no) { echo "$as_me:20272: WARNING: no regular expression header found" >&5
20273 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20275 cat >>confdefs.h <<\EOF
20276 #define HAVE_REGEX_H_FUNCS 1
20280 cat >>confdefs.h <<\EOF
20281 #define HAVE_REGEXP_H_FUNCS 1
20285 cat >>confdefs.h <<\EOF
20286 #define HAVE_REGEXPR_H_FUNCS 1
20308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20309 echo "$as_me:20309: checking for $ac_header" >&5
20310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 cat >"conftest.$ac_ext" <<_ACEOF
20315 #line 20315 "configure"
20316 #include "confdefs.h"
20317 #include <$ac_header>
20319 if { (eval echo "$as_me:20319: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20320 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20322 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20324 cat conftest.err >&5
20325 echo "$as_me:20325: \$? = $ac_status" >&5
20326 (exit "$ac_status"); } >/dev/null; then
20327 if test -s conftest.err; then
20328 ac_cpp_err=$ac_c_preproc_warn_flag
20335 if test -z "$ac_cpp_err"; then
20336 eval "$as_ac_Header=yes"
20338 echo "$as_me: failed program was:" >&5
20339 cat "conftest.$ac_ext" >&5
20340 eval "$as_ac_Header=no"
20342 rm -f conftest.err "conftest.$ac_ext"
20344 echo "$as_me:20344: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20345 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20346 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20347 cat >>confdefs.h <<EOF
20348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20354 for ac_header in unistd.h getopt.h
20356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20357 echo "$as_me:20357: checking for $ac_header" >&5
20358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 cat >"conftest.$ac_ext" <<_ACEOF
20363 #line 20363 "configure"
20364 #include "confdefs.h"
20365 #include <$ac_header>
20367 if { (eval echo "$as_me:20367: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20368 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20370 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:20373: \$? = $ac_status" >&5
20374 (exit "$ac_status"); } >/dev/null; then
20375 if test -s conftest.err; then
20376 ac_cpp_err=$ac_c_preproc_warn_flag
20383 if test -z "$ac_cpp_err"; then
20384 eval "$as_ac_Header=yes"
20386 echo "$as_me: failed program was:" >&5
20387 cat "conftest.$ac_ext" >&5
20388 eval "$as_ac_Header=no"
20390 rm -f conftest.err "conftest.$ac_ext"
20392 echo "$as_me:20392: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20393 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20394 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20395 cat >>confdefs.h <<EOF
20396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20402 echo "$as_me:20402: checking for header declaring getopt variables" >&5
20403 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20404 if test "${cf_cv_getopt_header+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 cf_cv_getopt_header=none
20409 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20411 cat >"conftest.$ac_ext" <<_ACEOF
20412 #line 20412 "configure"
20413 #include "confdefs.h"
20415 #include <$cf_header>
20419 int x = optind; char *y = optarg; (void)x; (void)y
20424 rm -f "conftest.$ac_objext"
20425 if { (eval echo "$as_me:20425: \"$ac_compile\"") >&5
20426 (eval $ac_compile) 2>&5
20428 echo "$as_me:20428: \$? = $ac_status" >&5
20429 (exit "$ac_status"); } &&
20430 { ac_try='test -s "conftest.$ac_objext"'
20431 { (eval echo "$as_me:20431: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:20434: \$? = $ac_status" >&5
20435 (exit "$ac_status"); }; }; then
20436 cf_cv_getopt_header=$cf_header
20439 echo "$as_me: failed program was:" >&5
20440 cat "conftest.$ac_ext" >&5
20442 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20446 echo "$as_me:20446: result: $cf_cv_getopt_header" >&5
20447 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20448 if test "$cf_cv_getopt_header" != none ; then
20450 cat >>confdefs.h <<\EOF
20451 #define HAVE_GETOPT_HEADER 1
20455 if test "$cf_cv_getopt_header" = getopt.h ; then
20457 cat >>confdefs.h <<\EOF
20458 #define NEED_GETOPT_H 1
20463 echo "$as_me:20463: checking if external environ is declared" >&5
20464 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20465 if test "${cf_cv_dcl_environ+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 cat >"conftest.$ac_ext" <<_ACEOF
20470 #line 20470 "configure"
20471 #include "confdefs.h"
20473 #ifdef HAVE_STDLIB_H
20474 #include <stdlib.h>
20476 #include <unistd.h>
20480 int x = (int) environ
20485 rm -f "conftest.$ac_objext"
20486 if { (eval echo "$as_me:20486: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>&5
20489 echo "$as_me:20489: \$? = $ac_status" >&5
20490 (exit "$ac_status"); } &&
20491 { ac_try='test -s "conftest.$ac_objext"'
20492 { (eval echo "$as_me:20492: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:20495: \$? = $ac_status" >&5
20496 (exit "$ac_status"); }; }; then
20497 cf_cv_dcl_environ=yes
20499 echo "$as_me: failed program was:" >&5
20500 cat "conftest.$ac_ext" >&5
20501 cf_cv_dcl_environ=no
20503 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20506 echo "$as_me:20506: result: $cf_cv_dcl_environ" >&5
20507 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20509 if test "$cf_cv_dcl_environ" = no ; then
20511 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20513 cat >>confdefs.h <<EOF
20514 #define $cf_result 1
20519 # It's possible (for near-UNIX clones) that the data doesn't exist
20521 echo "$as_me:20521: checking if external environ exists" >&5
20522 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20523 if test "${cf_cv_have_environ+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 cat >"conftest.$ac_ext" <<_ACEOF
20528 #line 20528 "configure"
20529 #include "confdefs.h"
20532 extern int environ;
20542 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20543 if { (eval echo "$as_me:20543: \"$ac_link\"") >&5
20544 (eval $ac_link) 2>&5
20546 echo "$as_me:20546: \$? = $ac_status" >&5
20547 (exit "$ac_status"); } &&
20548 { ac_try='test -s "conftest$ac_exeext"'
20549 { (eval echo "$as_me:20549: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:20552: \$? = $ac_status" >&5
20553 (exit "$ac_status"); }; }; then
20554 cf_cv_have_environ=yes
20556 echo "$as_me: failed program was:" >&5
20557 cat "conftest.$ac_ext" >&5
20558 cf_cv_have_environ=no
20560 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20563 echo "$as_me:20563: result: $cf_cv_have_environ" >&5
20564 echo "${ECHO_T}$cf_cv_have_environ" >&6
20566 if test "$cf_cv_have_environ" = yes ; then
20568 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20570 cat >>confdefs.h <<EOF
20571 #define $cf_result 1
20576 echo "$as_me:20576: checking for getenv" >&5
20577 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20578 if test "${ac_cv_func_getenv+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 cat >"conftest.$ac_ext" <<_ACEOF
20582 #line 20582 "configure"
20583 #include "confdefs.h"
20584 #define getenv autoconf_temporary
20585 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20592 /* We use char because int might match the return type of a gcc2
20593 builtin and then its argument prototype would still apply. */
20594 char getenv (void);
20600 /* The GNU C library defines stubs for functions which it implements
20601 to always fail with ENOSYS. Some functions are actually named
20602 something starting with __ and the normal name is an alias. */
20603 #if defined (__stub_getenv) || defined (__stub___getenv)
20604 #error found stub for getenv
20612 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20613 if { (eval echo "$as_me:20613: \"$ac_link\"") >&5
20614 (eval $ac_link) 2>&5
20616 echo "$as_me:20616: \$? = $ac_status" >&5
20617 (exit "$ac_status"); } &&
20618 { ac_try='test -s "conftest$ac_exeext"'
20619 { (eval echo "$as_me:20619: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:20622: \$? = $ac_status" >&5
20623 (exit "$ac_status"); }; }; then
20624 ac_cv_func_getenv=yes
20626 echo "$as_me: failed program was:" >&5
20627 cat "conftest.$ac_ext" >&5
20628 ac_cv_func_getenv=no
20630 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20632 echo "$as_me:20632: result: $ac_cv_func_getenv" >&5
20633 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20635 for ac_func in putenv setenv strdup
20637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20638 echo "$as_me:20638: checking for $ac_func" >&5
20639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20640 if eval "test \"\${$as_ac_var+set}\" = set"; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 cat >"conftest.$ac_ext" <<_ACEOF
20644 #line 20644 "configure"
20645 #include "confdefs.h"
20646 #define $ac_func autoconf_temporary
20647 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20654 /* We use char because int might match the return type of a gcc2
20655 builtin and then its argument prototype would still apply. */
20656 char $ac_func (void);
20662 /* The GNU C library defines stubs for functions which it implements
20663 to always fail with ENOSYS. Some functions are actually named
20664 something starting with __ and the normal name is an alias. */
20665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20666 #error found stub for $ac_func
20669 return $ac_func ();
20674 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20675 if { (eval echo "$as_me:20675: \"$ac_link\"") >&5
20676 (eval $ac_link) 2>&5
20678 echo "$as_me:20678: \$? = $ac_status" >&5
20679 (exit "$ac_status"); } &&
20680 { ac_try='test -s "conftest$ac_exeext"'
20681 { (eval echo "$as_me:20681: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20684 echo "$as_me:20684: \$? = $ac_status" >&5
20685 (exit "$ac_status"); }; }; then
20686 eval "$as_ac_var=yes"
20688 echo "$as_me: failed program was:" >&5
20689 cat "conftest.$ac_ext" >&5
20690 eval "$as_ac_var=no"
20692 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20694 echo "$as_me:20694: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20695 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20696 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20697 cat >>confdefs.h <<EOF
20698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20704 echo "$as_me:20704: checking if getenv returns consistent values" >&5
20705 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20706 if test "${cf_cv_consistent_getenv+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 if test "$cross_compiling" = yes; then
20711 cf_cv_consistent_getenv=unknown
20713 cat >"conftest.$ac_ext" <<_ACEOF
20714 #line 20714 "configure"
20715 #include "confdefs.h"
20717 #include <stdlib.h>
20718 #include <unistd.h>
20720 #include <string.h>
20721 #include <sys/types.h>
20723 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20724 extern char **environ; /* POSIX, but some systems are not... */
20727 #if defined(HAVE_STRDUP)
20728 #define str_alloc(s) strdup(s)
20730 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20733 static void set_value(const char *name, const char *value)
20735 #if defined(HAVE_SETENV)
20736 setenv(name, value, 1);
20737 #elif defined(HAVE_PUTENV)
20739 sprintf(buffer, "%s=%s", name, value);
20740 putenv(str_alloc(buffer));
20742 #error neither putenv/setenv found
20748 size_t numenv, limit, j;
20753 for (numenv = 0; environ[numenv]; ++numenv) ;
20754 limit = numenv + 10;
20755 mynames = (char **) calloc(limit + 1, sizeof(char *));
20756 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20757 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20758 #if defined(HAVE_ENVIRON)
20759 for (j = 0; environ[j]; ++j) {
20760 mynames[j] = str_alloc(environ[j]);
20761 equals = strchr(mynames[j], '=');
20764 myvalues[j] = str_alloc(equals);
20766 myvalues[j] = str_alloc("");
20770 for (j = numenv; j < limit; ++j) {
20778 sprintf(name, "TERM%lu", (unsigned long) k);
20779 for (jk = 0; jk < j; ++jk) {
20780 if (!strcmp(name, mynames[jk])) {
20787 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20788 set_value(name, value);
20789 mynames[j] = str_alloc(name);
20790 myvalues[j] = str_alloc(value);
20792 for (pass = 0; pass < 3; ++pass) {
20793 for (j = 0; j < limit; ++j) {
20794 char *value = getenv(mynames[j]);
20797 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20798 ${cf_cv_main_return:-return}(1);
20799 } else if (value != mypointer[j]) {
20800 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20801 ${cf_cv_main_return:-return}(1);
20802 } else if (strcmp(value, myvalues[j])) {
20803 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20804 ${cf_cv_main_return:-return}(1);
20808 mypointer[j] = value;
20809 for (k = 0; k < j; ++k) {
20810 if (mypointer[j] == mypointer[k]) {
20811 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20812 ${cf_cv_main_return:-return}(1);
20818 ${cf_cv_main_return:-return}(0);
20822 rm -f "conftest$ac_exeext"
20823 if { (eval echo "$as_me:20823: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>&5
20826 echo "$as_me:20826: \$? = $ac_status" >&5
20827 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20828 { (eval echo "$as_me:20828: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20831 echo "$as_me:20831: \$? = $ac_status" >&5
20832 (exit "$ac_status"); }; }; then
20833 cf_cv_consistent_getenv=yes
20835 echo "$as_me: program exited with status $ac_status" >&5
20836 echo "$as_me: failed program was:" >&5
20837 cat "conftest.$ac_ext" >&5
20838 cf_cv_consistent_getenv=no
20840 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20844 echo "$as_me:20844: result: $cf_cv_consistent_getenv" >&5
20845 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20847 if test "x$cf_cv_consistent_getenv" = xno
20850 cat >>confdefs.h <<\EOF
20851 #define HAVE_CONSISTENT_GETENV 1
20856 if test "x$cf_cv_consistent_getenv" = xno && \
20857 test "x$cf_with_trace" = xyes
20859 { echo "$as_me:20859: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20860 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20863 echo "$as_me:20863: checking if sys/time.h works with sys/select.h" >&5
20864 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20865 if test "${cf_cv_sys_time_select+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 cat >"conftest.$ac_ext" <<_ACEOF
20870 #line 20870 "configure"
20871 #include "confdefs.h"
20873 #include <sys/types.h>
20874 #ifdef HAVE_SYS_TIME_H
20875 #include <sys/time.h>
20877 #ifdef HAVE_SYS_SELECT_H
20878 #include <sys/select.h>
20889 rm -f "conftest.$ac_objext"
20890 if { (eval echo "$as_me:20890: \"$ac_compile\"") >&5
20891 (eval $ac_compile) 2>&5
20893 echo "$as_me:20893: \$? = $ac_status" >&5
20894 (exit "$ac_status"); } &&
20895 { ac_try='test -s "conftest.$ac_objext"'
20896 { (eval echo "$as_me:20896: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20899 echo "$as_me:20899: \$? = $ac_status" >&5
20900 (exit "$ac_status"); }; }; then
20901 cf_cv_sys_time_select=yes
20903 echo "$as_me: failed program was:" >&5
20904 cat "conftest.$ac_ext" >&5
20905 cf_cv_sys_time_select=no
20907 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20911 echo "$as_me:20911: result: $cf_cv_sys_time_select" >&5
20912 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20913 test "$cf_cv_sys_time_select" = yes &&
20914 cat >>confdefs.h <<\EOF
20915 #define HAVE_SYS_TIME_SELECT 1
20918 ### checks for compiler characteristics
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20922 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924 ac_main_return="return"
20926 echo "$as_me:20926: checking for an ANSI C-conforming const" >&5
20927 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20928 if test "${ac_cv_c_const+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 cat >"conftest.$ac_ext" <<_ACEOF
20932 #line 20932 "configure"
20933 #include "confdefs.h"
20938 /* FIXME: Include the comments suggested by Paul. */
20939 #ifndef __cplusplus
20940 /* Ultrix mips cc rejects this. */
20941 typedef int charset[2];
20943 /* SunOS 4.1.1 cc rejects this. */
20944 char const *const *ccp;
20946 /* NEC SVR4.0.2 mips cc rejects this. */
20947 struct point {int x, y;};
20948 static struct point const zero = {0,0};
20949 /* AIX XL C 1.02.0.0 rejects this.
20950 It does not let you subtract one const X* pointer from another in
20951 an arm of an if-expression whose if-part is not a constant
20953 const char *g = "string";
20954 ccp = &g + (g ? g-g : 0);
20955 /* HPUX 7.0 cc rejects these. */
20958 ccp = (char const *const *) p;
20959 { /* SCO 3.2v4 cc rejects this. */
20961 char const *s = 0 ? (char *) 0 : (char const *) 0;
20965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20966 int x[] = {25, 17};
20967 const int *foo = &x[0];
20970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20971 typedef const int *iptr;
20975 { /* AIX XL C 1.02.0.0 rejects this saying
20976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20977 struct s { int j; const int *ap[3]; };
20978 struct s *b; b->j = 5;
20980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20981 const int foo = 10;
20989 rm -f "conftest.$ac_objext"
20990 if { (eval echo "$as_me:20990: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>&5
20993 echo "$as_me:20993: \$? = $ac_status" >&5
20994 (exit "$ac_status"); } &&
20995 { ac_try='test -s "conftest.$ac_objext"'
20996 { (eval echo "$as_me:20996: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:20999: \$? = $ac_status" >&5
21000 (exit "$ac_status"); }; }; then
21003 echo "$as_me: failed program was:" >&5
21004 cat "conftest.$ac_ext" >&5
21007 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21009 echo "$as_me:21009: result: $ac_cv_c_const" >&5
21010 echo "${ECHO_T}$ac_cv_c_const" >&6
21011 if test $ac_cv_c_const = no; then
21013 cat >>confdefs.h <<\EOF
21019 echo "$as_me:21019: checking for inline" >&5
21020 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21021 if test "${ac_cv_c_inline+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 for ac_kw in inline __inline__ __inline; do
21026 cat >"conftest.$ac_ext" <<_ACEOF
21027 #line 21027 "configure"
21028 #include "confdefs.h"
21029 #ifndef __cplusplus
21030 static $ac_kw int static_foo () {return 0; }
21031 $ac_kw int foo () {return 0; }
21035 rm -f "conftest.$ac_objext"
21036 if { (eval echo "$as_me:21036: \"$ac_compile\"") >&5
21037 (eval $ac_compile) 2>&5
21039 echo "$as_me:21039: \$? = $ac_status" >&5
21040 (exit "$ac_status"); } &&
21041 { ac_try='test -s "conftest.$ac_objext"'
21042 { (eval echo "$as_me:21042: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:21045: \$? = $ac_status" >&5
21046 (exit "$ac_status"); }; }; then
21047 ac_cv_c_inline=$ac_kw; break
21049 echo "$as_me: failed program was:" >&5
21050 cat "conftest.$ac_ext" >&5
21052 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21056 echo "$as_me:21056: result: $ac_cv_c_inline" >&5
21057 echo "${ECHO_T}$ac_cv_c_inline" >&6
21058 case $ac_cv_c_inline in
21061 cat >>confdefs.h <<\EOF
21065 *) cat >>confdefs.h <<EOF
21066 #define inline $ac_cv_c_inline
21072 if test "$ac_cv_c_inline" != no ; then
21073 NCURSES_INLINE=inline
21074 if test "$INTEL_COMPILER" = yes
21077 elif test "$CLANG_COMPILER" = yes
21080 elif test "$GCC" = yes
21082 echo "$as_me:21082: checking if $CC supports options to tune inlining" >&5
21083 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
21084 if test "${cf_cv_gcc_inline+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 cf_save_CFLAGS=$CFLAGS
21089 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
21090 cat >"conftest.$ac_ext" <<_ACEOF
21091 #line 21091 "configure"
21092 #include "confdefs.h"
21093 inline int foo(void) { return 1; }
21097 ${cf_cv_main_return:-return} foo()
21102 rm -f "conftest.$ac_objext"
21103 if { (eval echo "$as_me:21103: \"$ac_compile\"") >&5
21104 (eval $ac_compile) 2>&5
21106 echo "$as_me:21106: \$? = $ac_status" >&5
21107 (exit "$ac_status"); } &&
21108 { ac_try='test -s "conftest.$ac_objext"'
21109 { (eval echo "$as_me:21109: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21112 echo "$as_me:21112: \$? = $ac_status" >&5
21113 (exit "$ac_status"); }; }; then
21114 cf_cv_gcc_inline=yes
21116 echo "$as_me: failed program was:" >&5
21117 cat "conftest.$ac_ext" >&5
21118 cf_cv_gcc_inline=no
21120 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21121 CFLAGS=$cf_save_CFLAGS
21124 echo "$as_me:21124: result: $cf_cv_gcc_inline" >&5
21125 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
21126 if test "$cf_cv_gcc_inline" = yes ; then
21131 cf_new_extra_cppflags=
21133 for cf_add_cflags in --param max-inline-insns-single=1200
21135 case "$cf_fix_cppflags" in
21137 case "$cf_add_cflags" in
21138 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21139 case "$cf_add_cflags" in
21141 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21144 && test -z "${cf_tst_cflags}" \
21145 && cf_fix_cppflags=yes
21147 if test "$cf_fix_cppflags" = yes ; then
21149 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21150 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21153 elif test "${cf_tst_cflags}" = "\"'" ; then
21155 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21156 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21162 case "$CPPFLAGS" in
21166 case "$cf_add_cflags" in
21168 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21170 CPPFLAGS=`echo "$CPPFLAGS" | \
21171 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21172 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21177 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21178 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21185 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21186 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21193 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21194 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21196 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21198 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21199 && test -z "${cf_tst_cflags}" \
21200 && cf_fix_cppflags=no
21205 if test -n "$cf_new_cflags" ; then
21207 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21208 CFLAGS="${CFLAGS}$cf_new_cflags"
21212 if test -n "$cf_new_cppflags" ; then
21214 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21215 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21219 if test -n "$cf_new_extra_cppflags" ; then
21221 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21222 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21230 echo "$as_me:21230: checking for signal global datatype" >&5
21231 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21232 if test "${cf_cv_sig_atomic_t+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 "volatile sig_atomic_t" \
21241 cat >"conftest.$ac_ext" <<_ACEOF
21242 #line 21242 "configure"
21243 #include "confdefs.h"
21245 #include <sys/types.h>
21246 #include <signal.h>
21251 static void handler(int sig)
21259 signal(SIGINT, handler);
21265 rm -f "conftest.$ac_objext"
21266 if { (eval echo "$as_me:21266: \"$ac_compile\"") >&5
21267 (eval $ac_compile) 2>&5
21269 echo "$as_me:21269: \$? = $ac_status" >&5
21270 (exit "$ac_status"); } &&
21271 { ac_try='test -s "conftest.$ac_objext"'
21272 { (eval echo "$as_me:21272: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21275 echo "$as_me:21275: \$? = $ac_status" >&5
21276 (exit "$ac_status"); }; }; then
21277 cf_cv_sig_atomic_t=$cf_type
21279 echo "$as_me: failed program was:" >&5
21280 cat "conftest.$ac_ext" >&5
21281 cf_cv_sig_atomic_t=no
21283 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21284 test "$cf_cv_sig_atomic_t" != no && break
21289 echo "$as_me:21289: result: $cf_cv_sig_atomic_t" >&5
21290 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21291 test "$cf_cv_sig_atomic_t" != no &&
21292 cat >>confdefs.h <<EOF
21293 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21296 if test "$NCURSES_CHTYPE" = auto ; then
21298 echo "$as_me:21298: checking for type of chtype" >&5
21299 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21300 if test "${cf_cv_typeof_chtype+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 if test "$cross_compiling" = yes; then
21305 cf_cv_typeof_chtype=long
21307 cat >"conftest.$ac_ext" <<_ACEOF
21308 #line 21308 "configure"
21309 #include "confdefs.h"
21311 #define WANT_BITS 31
21315 FILE *fp = fopen("cf_test.out", "w");
21317 char *result = "long";
21318 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21321 for (n = 0; n < WANT_BITS; n++) {
21324 if (y != 1 || x == 0) {
21330 * If x is nonzero, an int is big enough for the bits
21333 result = (x != 0) ? "int" : "long";
21338 ${cf_cv_main_return:-return}(0);
21342 rm -f "conftest$ac_exeext"
21343 if { (eval echo "$as_me:21343: \"$ac_link\"") >&5
21344 (eval $ac_link) 2>&5
21346 echo "$as_me:21346: \$? = $ac_status" >&5
21347 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21348 { (eval echo "$as_me:21348: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:21351: \$? = $ac_status" >&5
21352 (exit "$ac_status"); }; }; then
21353 cf_cv_typeof_chtype=`cat cf_test.out`
21355 echo "$as_me: program exited with status $ac_status" >&5
21356 echo "$as_me: failed program was:" >&5
21357 cat "conftest.$ac_ext" >&5
21358 cf_cv_typeof_chtype=long
21360 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21366 echo "$as_me:21366: result: $cf_cv_typeof_chtype" >&5
21367 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21369 cat >>confdefs.h <<EOF
21370 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21374 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21376 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21378 echo "$as_me:21378: checking if unsigned literals are legal" >&5
21379 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21380 if test "${cf_cv_unsigned_literals+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21384 cat >"conftest.$ac_ext" <<_ACEOF
21385 #line 21385 "configure"
21386 #include "confdefs.h"
21391 long x = 1L + 1UL + 1U + 1
21396 rm -f "conftest.$ac_objext"
21397 if { (eval echo "$as_me:21397: \"$ac_compile\"") >&5
21398 (eval $ac_compile) 2>&5
21400 echo "$as_me:21400: \$? = $ac_status" >&5
21401 (exit "$ac_status"); } &&
21402 { ac_try='test -s "conftest.$ac_objext"'
21403 { (eval echo "$as_me:21403: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21406 echo "$as_me:21406: \$? = $ac_status" >&5
21407 (exit "$ac_status"); }; }; then
21408 cf_cv_unsigned_literals=yes
21410 echo "$as_me: failed program was:" >&5
21411 cat "conftest.$ac_ext" >&5
21412 cf_cv_unsigned_literals=no
21414 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21418 echo "$as_me:21418: result: $cf_cv_unsigned_literals" >&5
21419 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21422 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21423 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21425 if test "$NCURSES_MMASK_T" = auto ; then
21426 cf_cv_typeof_mmask_t=long
21428 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21430 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21432 ### Checks for external-data
21434 echo "$as_me:21434: checking if external errno is declared" >&5
21435 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21436 if test "${cf_cv_dcl_errno+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >"conftest.$ac_ext" <<_ACEOF
21441 #line 21441 "configure"
21442 #include "confdefs.h"
21444 #ifdef HAVE_STDLIB_H
21445 #include <stdlib.h>
21448 #include <sys/types.h>
21453 int x = (int) errno; (void)x
21458 rm -f "conftest.$ac_objext"
21459 if { (eval echo "$as_me:21459: \"$ac_compile\"") >&5
21460 (eval $ac_compile) 2>&5
21462 echo "$as_me:21462: \$? = $ac_status" >&5
21463 (exit "$ac_status"); } &&
21464 { ac_try='test -s "conftest.$ac_objext"'
21465 { (eval echo "$as_me:21465: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 echo "$as_me:21468: \$? = $ac_status" >&5
21469 (exit "$ac_status"); }; }; then
21470 cf_cv_dcl_errno=yes
21472 echo "$as_me: failed program was:" >&5
21473 cat "conftest.$ac_ext" >&5
21476 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21479 echo "$as_me:21479: result: $cf_cv_dcl_errno" >&5
21480 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21482 if test "$cf_cv_dcl_errno" = no ; then
21484 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21486 cat >>confdefs.h <<EOF
21487 #define $cf_result 1
21492 # It's possible (for near-UNIX clones) that the data doesn't exist
21494 echo "$as_me:21494: checking if external errno exists" >&5
21495 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21496 if test "${cf_cv_have_errno+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 cat >"conftest.$ac_ext" <<_ACEOF
21501 #line 21501 "configure"
21502 #include "confdefs.h"
21515 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21516 if { (eval echo "$as_me:21516: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21519 echo "$as_me:21519: \$? = $ac_status" >&5
21520 (exit "$ac_status"); } &&
21521 { ac_try='test -s "conftest$ac_exeext"'
21522 { (eval echo "$as_me:21522: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21525 echo "$as_me:21525: \$? = $ac_status" >&5
21526 (exit "$ac_status"); }; }; then
21527 cf_cv_have_errno=yes
21529 echo "$as_me: failed program was:" >&5
21530 cat "conftest.$ac_ext" >&5
21531 cf_cv_have_errno=no
21533 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21536 echo "$as_me:21536: result: $cf_cv_have_errno" >&5
21537 echo "${ECHO_T}$cf_cv_have_errno" >&6
21539 if test "$cf_cv_have_errno" = yes ; then
21541 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21543 cat >>confdefs.h <<EOF
21544 #define $cf_result 1
21549 echo "$as_me:21549: checking if data-only library module links" >&5
21550 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21551 if test "${cf_cv_link_dataonly+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 cat >conftest.$ac_ext <<EOF
21557 #line 21557 "configure"
21558 int testdata[3] = { 123, 456, 789 };
21560 if { (eval echo "$as_me:21560: \"$ac_compile\"") >&5
21561 (eval $ac_compile) 2>&5
21563 echo "$as_me:21563: \$? = $ac_status" >&5
21564 (exit "$ac_status"); } ; then
21565 mv conftest.o data.o && \
21566 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21568 rm -f conftest.$ac_ext data.o
21569 cat >conftest.$ac_ext <<EOF
21570 #line 21570 "configure"
21574 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21576 extern int testdata[3];
21577 return testdata[0] == 123
21578 && testdata[1] == 456
21579 && testdata[2] == 789;
21583 if { (eval echo "$as_me:21583: \"$ac_compile\"") >&5
21584 (eval $ac_compile) 2>&5
21586 echo "$as_me:21586: \$? = $ac_status" >&5
21587 (exit "$ac_status"); }; then
21588 mv conftest.o func.o && \
21589 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21591 rm -f conftest.$ac_ext func.o
21592 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21593 cf_saveLIBS="$LIBS"
21594 LIBS="conftest.a $LIBS"
21595 if test "$cross_compiling" = yes; then
21596 cf_cv_link_dataonly=unknown
21598 cat >"conftest.$ac_ext" <<_ACEOF
21599 #line 21599 "configure"
21600 #include "confdefs.h"
21604 extern int testfunc();
21605 ${cf_cv_main_return:-return} (!testfunc());
21609 rm -f "conftest$ac_exeext"
21610 if { (eval echo "$as_me:21610: \"$ac_link\"") >&5
21611 (eval $ac_link) 2>&5
21613 echo "$as_me:21613: \$? = $ac_status" >&5
21614 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21615 { (eval echo "$as_me:21615: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21618 echo "$as_me:21618: \$? = $ac_status" >&5
21619 (exit "$ac_status"); }; }; then
21620 cf_cv_link_dataonly=yes
21622 echo "$as_me: program exited with status $ac_status" >&5
21623 echo "$as_me: failed program was:" >&5
21624 cat "conftest.$ac_ext" >&5
21625 cf_cv_link_dataonly=no
21627 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21629 LIBS="$cf_saveLIBS"
21633 echo "$as_me:21633: result: $cf_cv_link_dataonly" >&5
21634 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21636 if test "$cf_cv_link_dataonly" = no ; then
21638 cat >>confdefs.h <<\EOF
21639 #define BROKEN_LINKER 1
21645 ### Checks for library functions.
21676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21677 echo "$as_me:21677: checking for $ac_func" >&5
21678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21679 if eval "test \"\${$as_ac_var+set}\" = set"; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 cat >"conftest.$ac_ext" <<_ACEOF
21683 #line 21683 "configure"
21684 #include "confdefs.h"
21685 #define $ac_func autoconf_temporary
21686 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21693 /* We use char because int might match the return type of a gcc2
21694 builtin and then its argument prototype would still apply. */
21695 char $ac_func (void);
21701 /* The GNU C library defines stubs for functions which it implements
21702 to always fail with ENOSYS. Some functions are actually named
21703 something starting with __ and the normal name is an alias. */
21704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21705 #error found stub for $ac_func
21708 return $ac_func ();
21713 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21714 if { (eval echo "$as_me:21714: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>&5
21717 echo "$as_me:21717: \$? = $ac_status" >&5
21718 (exit "$ac_status"); } &&
21719 { ac_try='test -s "conftest$ac_exeext"'
21720 { (eval echo "$as_me:21720: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:21723: \$? = $ac_status" >&5
21724 (exit "$ac_status"); }; }; then
21725 eval "$as_ac_var=yes"
21727 echo "$as_me: failed program was:" >&5
21728 cat "conftest.$ac_ext" >&5
21729 eval "$as_ac_var=no"
21731 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21733 echo "$as_me:21733: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21734 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21735 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21736 cat >>confdefs.h <<EOF
21737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21743 echo "$as_me:21743: checking if _PATH_TTYS is defined in ttyent.h" >&5
21744 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21745 if test "${cf_cv_PATH_TTYS+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 cat >"conftest.$ac_ext" <<_ACEOF
21750 #line 21750 "configure"
21751 #include "confdefs.h"
21754 #include <ttyent.h>
21759 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21764 rm -f "conftest.$ac_objext"
21765 if { (eval echo "$as_me:21765: \"$ac_compile\"") >&5
21766 (eval $ac_compile) 2>&5
21768 echo "$as_me:21768: \$? = $ac_status" >&5
21769 (exit "$ac_status"); } &&
21770 { ac_try='test -s "conftest.$ac_objext"'
21771 { (eval echo "$as_me:21771: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:21774: \$? = $ac_status" >&5
21775 (exit "$ac_status"); }; }; then
21776 cf_cv_PATH_TTYS=yes
21778 echo "$as_me: failed program was:" >&5
21779 cat "conftest.$ac_ext" >&5
21782 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21784 echo "$as_me:21784: result: $cf_cv_PATH_TTYS" >&5
21785 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21787 if test $cf_cv_PATH_TTYS = no
21789 for cf_ttys in /etc/ttytype /etc/ttys
21791 if test -f $cf_ttys
21793 cf_cv_PATH_TTYS=maybe
21795 cat >>confdefs.h <<\EOF
21796 #define _PATH_TTYS $cf_ttys
21804 if test $cf_cv_PATH_TTYS != no
21806 echo "$as_me:21806: checking if _PATH_TTYS file exists" >&5
21807 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21808 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 if test "$cross_compiling" = yes; then
21813 cf_cv_have_PATH_TTYS=unknown
21815 cat >"conftest.$ac_ext" <<_ACEOF
21816 #line 21816 "configure"
21817 #include "confdefs.h"
21820 #include <ttyent.h>
21822 FILE *fp = fopen(_PATH_TTYS, "r");
21823 ${cf_cv_main_return:-return} (fp == 0);
21826 rm -f "conftest$ac_exeext"
21827 if { (eval echo "$as_me:21827: \"$ac_link\"") >&5
21828 (eval $ac_link) 2>&5
21830 echo "$as_me:21830: \$? = $ac_status" >&5
21831 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21832 { (eval echo "$as_me:21832: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21835 echo "$as_me:21835: \$? = $ac_status" >&5
21836 (exit "$ac_status"); }; }; then
21837 cf_cv_have_PATH_TTYS=yes
21839 echo "$as_me: program exited with status $ac_status" >&5
21840 echo "$as_me: failed program was:" >&5
21841 cat "conftest.$ac_ext" >&5
21842 cf_cv_have_PATH_TTYS=no
21844 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21847 echo "$as_me:21847: result: $cf_cv_have_PATH_TTYS" >&5
21848 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21849 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21852 if test $cf_cv_PATH_TTYS != no
21855 cat >>confdefs.h <<\EOF
21856 #define HAVE_PATH_TTYS 1
21859 echo "$as_me:21859: checking for getttynam" >&5
21860 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21861 if test "${cf_cv_func_getttynam+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 cat >"conftest.$ac_ext" <<_ACEOF
21866 #line 21866 "configure"
21867 #include "confdefs.h"
21868 #include <ttyent.h>
21872 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21877 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21878 if { (eval echo "$as_me:21878: \"$ac_link\"") >&5
21879 (eval $ac_link) 2>&5
21881 echo "$as_me:21881: \$? = $ac_status" >&5
21882 (exit "$ac_status"); } &&
21883 { ac_try='test -s "conftest$ac_exeext"'
21884 { (eval echo "$as_me:21884: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21887 echo "$as_me:21887: \$? = $ac_status" >&5
21888 (exit "$ac_status"); }; }; then
21889 cf_cv_func_getttynam=yes
21891 echo "$as_me: failed program was:" >&5
21892 cat "conftest.$ac_ext" >&5
21893 cf_cv_func_getttynam=no
21895 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21897 echo "$as_me:21897: result: $cf_cv_func_getttynam" >&5
21898 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21899 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21900 #define HAVE_GETTTYNAM 1
21905 if test "x$ac_cv_func_getopt" = xno && \
21906 test "x$cf_with_progs$cf_with_tests" != xnono; then
21907 { { echo "$as_me:21907: error: getopt is required for building programs" >&5
21908 echo "$as_me: error: getopt is required for building programs" >&2;}
21909 { (exit 1); exit 1; }; }
21912 if test "x$with_safe_sprintf" = xyes
21914 if test "x$ac_cv_func_vsnprintf" = xyes
21916 { echo "$as_me:21916: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21917 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21920 cat >>confdefs.h <<\EOF
21921 #define USE_SAFE_SPRINTF 1
21927 if test "x$with_getcap" = "xyes" ; then
21929 echo "$as_me:21929: checking for terminal-capability database functions" >&5
21930 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21931 if test "${cf_cv_cgetent+set}" = set; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 cat >"conftest.$ac_ext" <<_ACEOF
21936 #line 21936 "configure"
21937 #include "confdefs.h"
21939 #include <stdlib.h>
21946 char *db_array = temp;
21947 cgetent(&buf, &db_array, "vt100");
21948 cgetcap(buf, "tc", '=');
21949 cgetmatch(buf, "tc");
21955 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21956 if { (eval echo "$as_me:21956: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>&5
21959 echo "$as_me:21959: \$? = $ac_status" >&5
21960 (exit "$ac_status"); } &&
21961 { ac_try='test -s "conftest$ac_exeext"'
21962 { (eval echo "$as_me:21962: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21965 echo "$as_me:21965: \$? = $ac_status" >&5
21966 (exit "$ac_status"); }; }; then
21969 echo "$as_me: failed program was:" >&5
21970 cat "conftest.$ac_ext" >&5
21973 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21976 echo "$as_me:21976: result: $cf_cv_cgetent" >&5
21977 echo "${ECHO_T}$cf_cv_cgetent" >&6
21979 if test "$cf_cv_cgetent" = yes
21982 cat >>confdefs.h <<\EOF
21983 #define HAVE_BSD_CGETENT 1
21986 echo "$as_me:21986: checking if cgetent uses const parameter" >&5
21987 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21988 if test "${cf_cv_cgetent_const+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 cat >"conftest.$ac_ext" <<_ACEOF
21993 #line 21993 "configure"
21994 #include "confdefs.h"
21996 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21997 #include <stdlib.h>
22004 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
22005 const char *db_array = temp;
22006 cgetent(&buf, &db_array, "vt100");
22008 cgetcap(buf, "tc", '=');
22009 cgetmatch(buf, "tc");
22015 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22016 if { (eval echo "$as_me:22016: \"$ac_link\"") >&5
22017 (eval $ac_link) 2>&5
22019 echo "$as_me:22019: \$? = $ac_status" >&5
22020 (exit "$ac_status"); } &&
22021 { ac_try='test -s "conftest$ac_exeext"'
22022 { (eval echo "$as_me:22022: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22025 echo "$as_me:22025: \$? = $ac_status" >&5
22026 (exit "$ac_status"); }; }; then
22027 cf_cv_cgetent_const=yes
22029 echo "$as_me: failed program was:" >&5
22030 cat "conftest.$ac_ext" >&5
22031 cf_cv_cgetent_const=no
22033 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22036 echo "$as_me:22036: result: $cf_cv_cgetent_const" >&5
22037 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22038 if test "$cf_cv_cgetent_const" = yes
22041 cat >>confdefs.h <<EOF
22042 #define CGETENT_CONST const
22050 echo "$as_me:22050: checking for isascii" >&5
22051 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22052 if test "${cf_cv_have_isascii+set}" = set; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22056 cat >"conftest.$ac_ext" <<_ACEOF
22057 #line 22057 "configure"
22058 #include "confdefs.h"
22063 int x = isascii(' ')
22068 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22069 if { (eval echo "$as_me:22069: \"$ac_link\"") >&5
22070 (eval $ac_link) 2>&5
22072 echo "$as_me:22072: \$? = $ac_status" >&5
22073 (exit "$ac_status"); } &&
22074 { ac_try='test -s "conftest$ac_exeext"'
22075 { (eval echo "$as_me:22075: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:22078: \$? = $ac_status" >&5
22079 (exit "$ac_status"); }; }; then
22080 cf_cv_have_isascii=yes
22082 echo "$as_me: failed program was:" >&5
22083 cat "conftest.$ac_ext" >&5
22084 cf_cv_have_isascii=no
22086 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22089 echo "$as_me:22089: result: $cf_cv_have_isascii" >&5
22090 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22091 test "$cf_cv_have_isascii" = yes &&
22092 cat >>confdefs.h <<\EOF
22093 #define HAVE_ISASCII 1
22096 if test "$ac_cv_func_sigaction" = yes; then
22097 echo "$as_me:22097: checking whether sigaction needs _POSIX_SOURCE" >&5
22098 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22099 cat >"conftest.$ac_ext" <<_ACEOF
22100 #line 22100 "configure"
22101 #include "confdefs.h"
22103 #include <sys/types.h>
22104 #include <signal.h>
22108 struct sigaction act
22113 rm -f "conftest.$ac_objext"
22114 if { (eval echo "$as_me:22114: \"$ac_compile\"") >&5
22115 (eval $ac_compile) 2>&5
22117 echo "$as_me:22117: \$? = $ac_status" >&5
22118 (exit "$ac_status"); } &&
22119 { ac_try='test -s "conftest.$ac_objext"'
22120 { (eval echo "$as_me:22120: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22123 echo "$as_me:22123: \$? = $ac_status" >&5
22124 (exit "$ac_status"); }; }; then
22127 echo "$as_me: failed program was:" >&5
22128 cat "conftest.$ac_ext" >&5
22130 cat >"conftest.$ac_ext" <<_ACEOF
22131 #line 22131 "configure"
22132 #include "confdefs.h"
22134 #define _POSIX_SOURCE
22135 #include <sys/types.h>
22136 #include <signal.h>
22140 struct sigaction act
22145 rm -f "conftest.$ac_objext"
22146 if { (eval echo "$as_me:22146: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>&5
22149 echo "$as_me:22149: \$? = $ac_status" >&5
22150 (exit "$ac_status"); } &&
22151 { ac_try='test -s "conftest.$ac_objext"'
22152 { (eval echo "$as_me:22152: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22155 echo "$as_me:22155: \$? = $ac_status" >&5
22156 (exit "$ac_status"); }; }; then
22159 cat >>confdefs.h <<\EOF
22160 #define _POSIX_SOURCE 1
22164 echo "$as_me: failed program was:" >&5
22165 cat "conftest.$ac_ext" >&5
22168 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22170 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22171 echo "$as_me:22171: result: $sigact_bad" >&5
22172 echo "${ECHO_T}$sigact_bad" >&6
22175 echo "$as_me:22175: checking if nanosleep really works" >&5
22176 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22177 if test "${cf_cv_func_nanosleep+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 if test "$cross_compiling" = yes; then
22182 cf_cv_func_nanosleep=unknown
22184 cat >"conftest.$ac_ext" <<_ACEOF
22185 #line 22185 "configure"
22186 #include "confdefs.h"
22192 #ifdef HAVE_SYS_TIME_H
22193 #include <sys/time.h>
22197 struct timespec ts1, ts2;
22200 ts1.tv_nsec = 750000000;
22204 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22205 ${cf_cv_main_return:-return}(code != 0);
22209 rm -f "conftest$ac_exeext"
22210 if { (eval echo "$as_me:22210: \"$ac_link\"") >&5
22211 (eval $ac_link) 2>&5
22213 echo "$as_me:22213: \$? = $ac_status" >&5
22214 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22215 { (eval echo "$as_me:22215: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:22218: \$? = $ac_status" >&5
22219 (exit "$ac_status"); }; }; then
22220 cf_cv_func_nanosleep=yes
22222 echo "$as_me: program exited with status $ac_status" >&5
22223 echo "$as_me: failed program was:" >&5
22224 cat "conftest.$ac_ext" >&5
22225 cf_cv_func_nanosleep=no
22227 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22230 echo "$as_me:22230: result: $cf_cv_func_nanosleep" >&5
22231 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22233 test "$cf_cv_func_nanosleep" = "yes" &&
22234 cat >>confdefs.h <<\EOF
22235 #define HAVE_NANOSLEEP 1
22246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22247 echo "$as_me:22247: checking for $ac_header" >&5
22248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 cat >"conftest.$ac_ext" <<_ACEOF
22253 #line 22253 "configure"
22254 #include "confdefs.h"
22255 #include <$ac_header>
22257 if { (eval echo "$as_me:22257: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22258 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22260 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22262 cat conftest.err >&5
22263 echo "$as_me:22263: \$? = $ac_status" >&5
22264 (exit "$ac_status"); } >/dev/null; then
22265 if test -s conftest.err; then
22266 ac_cpp_err=$ac_c_preproc_warn_flag
22273 if test -z "$ac_cpp_err"; then
22274 eval "$as_ac_Header=yes"
22276 echo "$as_me: failed program was:" >&5
22277 cat "conftest.$ac_ext" >&5
22278 eval "$as_ac_Header=no"
22280 rm -f conftest.err "conftest.$ac_ext"
22282 echo "$as_me:22282: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22283 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22284 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22285 cat >>confdefs.h <<EOF
22286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22292 if test "$ac_cv_header_termios_h" = yes ; then
22293 case "$CFLAGS $CPPFLAGS" in
22294 (*-D_POSIX_SOURCE*)
22295 termios_bad=dunno ;;
22296 (*) termios_bad=maybe ;;
22298 if test "$termios_bad" = maybe ; then
22299 echo "$as_me:22299: checking whether termios.h needs _POSIX_SOURCE" >&5
22300 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22301 cat >"conftest.$ac_ext" <<_ACEOF
22302 #line 22302 "configure"
22303 #include "confdefs.h"
22304 #include <termios.h>
22308 struct termios foo; int x = foo.c_iflag = 1; (void)x
22313 rm -f "conftest.$ac_objext"
22314 if { (eval echo "$as_me:22314: \"$ac_compile\"") >&5
22315 (eval $ac_compile) 2>&5
22317 echo "$as_me:22317: \$? = $ac_status" >&5
22318 (exit "$ac_status"); } &&
22319 { ac_try='test -s "conftest.$ac_objext"'
22320 { (eval echo "$as_me:22320: \"$ac_try\"") >&5
22321 (eval $ac_try) 2>&5
22323 echo "$as_me:22323: \$? = $ac_status" >&5
22324 (exit "$ac_status"); }; }; then
22327 echo "$as_me: failed program was:" >&5
22328 cat "conftest.$ac_ext" >&5
22330 cat >"conftest.$ac_ext" <<_ACEOF
22331 #line 22331 "configure"
22332 #include "confdefs.h"
22334 #define _POSIX_SOURCE
22335 #include <termios.h>
22339 struct termios foo; int x = foo.c_iflag = 2; (void)x
22344 rm -f "conftest.$ac_objext"
22345 if { (eval echo "$as_me:22345: \"$ac_compile\"") >&5
22346 (eval $ac_compile) 2>&5
22348 echo "$as_me:22348: \$? = $ac_status" >&5
22349 (exit "$ac_status"); } &&
22350 { ac_try='test -s "conftest.$ac_objext"'
22351 { (eval echo "$as_me:22351: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22354 echo "$as_me:22354: \$? = $ac_status" >&5
22355 (exit "$ac_status"); }; }; then
22356 termios_bad=unknown
22358 echo "$as_me: failed program was:" >&5
22359 cat "conftest.$ac_ext" >&5
22361 cat >>confdefs.h <<\EOF
22362 #define _POSIX_SOURCE 1
22366 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22369 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22370 echo "$as_me:22370: result: $termios_bad" >&5
22371 echo "${ECHO_T}$termios_bad" >&6
22375 echo "$as_me:22375: checking for tcgetattr" >&5
22376 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22377 if test "${cf_cv_have_tcgetattr+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 cat >"conftest.$ac_ext" <<_ACEOF
22382 #line 22382 "configure"
22383 #include "confdefs.h"
22385 #include <sys/types.h>
22386 #ifdef HAVE_UNISTD_H
22387 #include <unistd.h>
22389 #ifdef HAVE_TERMIOS_H
22390 #include <termios.h>
22391 #define TTY struct termios
22393 #ifdef HAVE_TERMIO_H
22394 #include <termio.h>
22395 #define TTY struct termio
22404 tcgetattr(1, &foo);
22409 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22410 if { (eval echo "$as_me:22410: \"$ac_link\"") >&5
22411 (eval $ac_link) 2>&5
22413 echo "$as_me:22413: \$? = $ac_status" >&5
22414 (exit "$ac_status"); } &&
22415 { ac_try='test -s "conftest$ac_exeext"'
22416 { (eval echo "$as_me:22416: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 echo "$as_me:22419: \$? = $ac_status" >&5
22420 (exit "$ac_status"); }; }; then
22421 cf_cv_have_tcgetattr=yes
22423 echo "$as_me: failed program was:" >&5
22424 cat "conftest.$ac_ext" >&5
22425 cf_cv_have_tcgetattr=no
22427 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22429 echo "$as_me:22429: result: $cf_cv_have_tcgetattr" >&5
22430 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22431 test "$cf_cv_have_tcgetattr" = yes &&
22432 cat >>confdefs.h <<\EOF
22433 #define HAVE_TCGETATTR 1
22436 echo "$as_me:22436: checking for vsscanf function or workaround" >&5
22437 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22438 if test "${cf_cv_func_vsscanf+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 cat >"conftest.$ac_ext" <<_ACEOF
22443 #line 22443 "configure"
22444 #include "confdefs.h"
22446 #include <stdarg.h>
22453 vsscanf("from", "%d", ap)
22458 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22459 if { (eval echo "$as_me:22459: \"$ac_link\"") >&5
22460 (eval $ac_link) 2>&5
22462 echo "$as_me:22462: \$? = $ac_status" >&5
22463 (exit "$ac_status"); } &&
22464 { ac_try='test -s "conftest$ac_exeext"'
22465 { (eval echo "$as_me:22465: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:22468: \$? = $ac_status" >&5
22469 (exit "$ac_status"); }; }; then
22470 cf_cv_func_vsscanf=vsscanf
22472 echo "$as_me: failed program was:" >&5
22473 cat "conftest.$ac_ext" >&5
22475 cat >"conftest.$ac_ext" <<_ACEOF
22476 #line 22476 "configure"
22477 #include "confdefs.h"
22479 #include <stdarg.h>
22486 char *str = "from";
22488 strbuf._flag = _IOREAD;
22489 strbuf._ptr = strbuf._base = (unsigned char *) str;
22490 strbuf._cnt = strlen(str);
22491 strbuf._file = _NFILE;
22492 return (vfscanf(&strbuf, "%d", ap))
22497 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22498 if { (eval echo "$as_me:22498: \"$ac_link\"") >&5
22499 (eval $ac_link) 2>&5
22501 echo "$as_me:22501: \$? = $ac_status" >&5
22502 (exit "$ac_status"); } &&
22503 { ac_try='test -s "conftest$ac_exeext"'
22504 { (eval echo "$as_me:22504: \"$ac_try\"") >&5
22505 (eval $ac_try) 2>&5
22507 echo "$as_me:22507: \$? = $ac_status" >&5
22508 (exit "$ac_status"); }; }; then
22509 cf_cv_func_vsscanf=vfscanf
22511 echo "$as_me: failed program was:" >&5
22512 cat "conftest.$ac_ext" >&5
22514 cat >"conftest.$ac_ext" <<_ACEOF
22515 #line 22515 "configure"
22516 #include "confdefs.h"
22518 #include <stdarg.h>
22525 char *str = "from";
22527 strbuf._flag = _IOREAD;
22528 strbuf._ptr = strbuf._base = (unsigned char *) str;
22529 strbuf._cnt = strlen(str);
22530 strbuf._file = _NFILE;
22531 return (_doscan(&strbuf, "%d", ap))
22536 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22537 if { (eval echo "$as_me:22537: \"$ac_link\"") >&5
22538 (eval $ac_link) 2>&5
22540 echo "$as_me:22540: \$? = $ac_status" >&5
22541 (exit "$ac_status"); } &&
22542 { ac_try='test -s "conftest$ac_exeext"'
22543 { (eval echo "$as_me:22543: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22546 echo "$as_me:22546: \$? = $ac_status" >&5
22547 (exit "$ac_status"); }; }; then
22548 cf_cv_func_vsscanf=_doscan
22550 echo "$as_me: failed program was:" >&5
22551 cat "conftest.$ac_ext" >&5
22553 cf_cv_func_vsscanf=no
22555 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22557 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22559 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22561 echo "$as_me:22561: result: $cf_cv_func_vsscanf" >&5
22562 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22564 case "$cf_cv_func_vsscanf" in
22566 cat >>confdefs.h <<\EOF
22567 #define HAVE_VSSCANF 1
22571 cat >>confdefs.h <<\EOF
22572 #define HAVE_VFSCANF 1
22576 cat >>confdefs.h <<\EOF
22577 #define HAVE__DOSCAN 1
22586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22587 echo "$as_me:22587: checking for $ac_header" >&5
22588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 cat >"conftest.$ac_ext" <<_ACEOF
22593 #line 22593 "configure"
22594 #include "confdefs.h"
22595 #include <$ac_header>
22597 if { (eval echo "$as_me:22597: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22598 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22600 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 echo "$as_me:22603: \$? = $ac_status" >&5
22604 (exit "$ac_status"); } >/dev/null; then
22605 if test -s conftest.err; then
22606 ac_cpp_err=$ac_c_preproc_warn_flag
22613 if test -z "$ac_cpp_err"; then
22614 eval "$as_ac_Header=yes"
22616 echo "$as_me: failed program was:" >&5
22617 cat "conftest.$ac_ext" >&5
22618 eval "$as_ac_Header=no"
22620 rm -f conftest.err "conftest.$ac_ext"
22622 echo "$as_me:22622: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22623 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22624 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22625 cat >>confdefs.h <<EOF
22626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22632 echo "$as_me:22632: checking for working mkstemp" >&5
22633 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22634 if test "${cf_cv_func_mkstemp+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22639 if test "$cross_compiling" = yes; then
22640 cf_cv_func_mkstemp=maybe
22642 cat >"conftest.$ac_ext" <<_ACEOF
22643 #line 22643 "configure"
22644 #include "confdefs.h"
22646 #include <sys/types.h>
22647 #ifdef HAVE_UNISTD_H
22648 #include <unistd.h>
22650 #include <stdlib.h>
22652 #include <string.h>
22653 #include <sys/stat.h>
22656 char *tmpl = "conftestXXXXXX";
22664 for (n = 0; n < 2; ++n) {
22665 strcpy(name[n], tmpl);
22666 if ((fd = mkstemp(name[n])) >= 0) {
22667 if (!strcmp(name[n], tmpl)
22668 || stat(name[n], &sb) != 0
22669 || (sb.st_mode & S_IFMT) != S_IFREG
22670 || (sb.st_mode & 077) != 0) {
22677 && !strcmp(name[0], name[1]))
22679 ${cf_cv_main_return:-return}(result);
22683 rm -f "conftest$ac_exeext"
22684 if { (eval echo "$as_me:22684: \"$ac_link\"") >&5
22685 (eval $ac_link) 2>&5
22687 echo "$as_me:22687: \$? = $ac_status" >&5
22688 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22689 { (eval echo "$as_me:22689: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:22692: \$? = $ac_status" >&5
22693 (exit "$ac_status"); }; }; then
22694 cf_cv_func_mkstemp=yes
22697 echo "$as_me: program exited with status $ac_status" >&5
22698 echo "$as_me: failed program was:" >&5
22699 cat "conftest.$ac_ext" >&5
22700 cf_cv_func_mkstemp=no
22703 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22707 echo "$as_me:22707: result: $cf_cv_func_mkstemp" >&5
22708 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22709 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22710 echo "$as_me:22710: checking for mkstemp" >&5
22711 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22712 if test "${ac_cv_func_mkstemp+set}" = set; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 cat >"conftest.$ac_ext" <<_ACEOF
22716 #line 22716 "configure"
22717 #include "confdefs.h"
22718 #define mkstemp autoconf_temporary
22719 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22726 /* We use char because int might match the return type of a gcc2
22727 builtin and then its argument prototype would still apply. */
22728 char mkstemp (void);
22734 /* The GNU C library defines stubs for functions which it implements
22735 to always fail with ENOSYS. Some functions are actually named
22736 something starting with __ and the normal name is an alias. */
22737 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22738 #error found stub for mkstemp
22746 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22747 if { (eval echo "$as_me:22747: \"$ac_link\"") >&5
22748 (eval $ac_link) 2>&5
22750 echo "$as_me:22750: \$? = $ac_status" >&5
22751 (exit "$ac_status"); } &&
22752 { ac_try='test -s "conftest$ac_exeext"'
22753 { (eval echo "$as_me:22753: \"$ac_try\"") >&5
22754 (eval $ac_try) 2>&5
22756 echo "$as_me:22756: \$? = $ac_status" >&5
22757 (exit "$ac_status"); }; }; then
22758 ac_cv_func_mkstemp=yes
22760 echo "$as_me: failed program was:" >&5
22761 cat "conftest.$ac_ext" >&5
22762 ac_cv_func_mkstemp=no
22764 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22766 echo "$as_me:22766: result: $ac_cv_func_mkstemp" >&5
22767 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22770 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22772 cat >>confdefs.h <<\EOF
22773 #define HAVE_MKSTEMP 1
22778 # setup for prototype of fallback for vsscanf()
22780 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22786 if test "x$cross_compiling" = xyes ; then
22787 { echo "$as_me:22787: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22788 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22790 echo "$as_me:22790: checking whether setvbuf arguments are reversed" >&5
22791 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22792 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 if test "$cross_compiling" = yes; then
22796 { { echo "$as_me:22796: error: cannot run test program while cross compiling" >&5
22797 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22798 { (exit 1); exit 1; }; }
22800 cat >"conftest.$ac_ext" <<_ACEOF
22801 #line 22801 "configure"
22802 #include "confdefs.h"
22804 /* If setvbuf has the reversed format, exit 0. */
22808 /* This call has the arguments reversed.
22809 A reversed system may check and see that the address of main
22810 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22811 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22812 $ac_main_return(1);
22813 putc('\r', stdout);
22814 $ac_main_return(0); /* Non-reversed systems segv here. */
22817 rm -f "conftest$ac_exeext"
22818 if { (eval echo "$as_me:22818: \"$ac_link\"") >&5
22819 (eval $ac_link) 2>&5
22821 echo "$as_me:22821: \$? = $ac_status" >&5
22822 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22823 { (eval echo "$as_me:22823: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22826 echo "$as_me:22826: \$? = $ac_status" >&5
22827 (exit "$ac_status"); }; }; then
22828 ac_cv_func_setvbuf_reversed=yes
22830 echo "$as_me: program exited with status $ac_status" >&5
22831 echo "$as_me: failed program was:" >&5
22832 cat "conftest.$ac_ext" >&5
22833 ac_cv_func_setvbuf_reversed=no
22835 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22837 rm -f core ./core.* ./*.core
22839 echo "$as_me:22839: result: $ac_cv_func_setvbuf_reversed" >&5
22840 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22841 if test $ac_cv_func_setvbuf_reversed = yes; then
22843 cat >>confdefs.h <<\EOF
22844 #define SETVBUF_REVERSED 1
22850 echo "$as_me:22850: checking for intptr_t" >&5
22851 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22852 if test "${ac_cv_type_intptr_t+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 cat >"conftest.$ac_ext" <<_ACEOF
22856 #line 22856 "configure"
22857 #include "confdefs.h"
22858 $ac_includes_default
22862 if ((intptr_t *) 0)
22864 if (sizeof (intptr_t))
22870 rm -f "conftest.$ac_objext"
22871 if { (eval echo "$as_me:22871: \"$ac_compile\"") >&5
22872 (eval $ac_compile) 2>&5
22874 echo "$as_me:22874: \$? = $ac_status" >&5
22875 (exit "$ac_status"); } &&
22876 { ac_try='test -s "conftest.$ac_objext"'
22877 { (eval echo "$as_me:22877: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22880 echo "$as_me:22880: \$? = $ac_status" >&5
22881 (exit "$ac_status"); }; }; then
22882 ac_cv_type_intptr_t=yes
22884 echo "$as_me: failed program was:" >&5
22885 cat "conftest.$ac_ext" >&5
22886 ac_cv_type_intptr_t=no
22888 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22890 echo "$as_me:22890: result: $ac_cv_type_intptr_t" >&5
22891 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22892 if test "$ac_cv_type_intptr_t" = yes; then
22896 cat >>confdefs.h <<EOF
22897 #define intptr_t long
22902 echo "$as_me:22902: checking for ssize_t" >&5
22903 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22904 if test "${ac_cv_type_ssize_t+set}" = set; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
22907 cat >"conftest.$ac_ext" <<_ACEOF
22908 #line 22908 "configure"
22909 #include "confdefs.h"
22910 $ac_includes_default
22916 if (sizeof (ssize_t))
22922 rm -f "conftest.$ac_objext"
22923 if { (eval echo "$as_me:22923: \"$ac_compile\"") >&5
22924 (eval $ac_compile) 2>&5
22926 echo "$as_me:22926: \$? = $ac_status" >&5
22927 (exit "$ac_status"); } &&
22928 { ac_try='test -s "conftest.$ac_objext"'
22929 { (eval echo "$as_me:22929: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22932 echo "$as_me:22932: \$? = $ac_status" >&5
22933 (exit "$ac_status"); }; }; then
22934 ac_cv_type_ssize_t=yes
22936 echo "$as_me: failed program was:" >&5
22937 cat "conftest.$ac_ext" >&5
22938 ac_cv_type_ssize_t=no
22940 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22942 echo "$as_me:22942: result: $ac_cv_type_ssize_t" >&5
22943 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22944 if test "$ac_cv_type_ssize_t" = yes; then
22948 cat >>confdefs.h <<EOF
22949 #define ssize_t int
22954 echo "$as_me:22954: checking for type sigaction_t" >&5
22955 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22956 if test "${cf_cv_type_sigaction+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 cat >"conftest.$ac_ext" <<_ACEOF
22961 #line 22961 "configure"
22962 #include "confdefs.h"
22964 #include <signal.h>
22973 rm -f "conftest.$ac_objext"
22974 if { (eval echo "$as_me:22974: \"$ac_compile\"") >&5
22975 (eval $ac_compile) 2>&5
22977 echo "$as_me:22977: \$? = $ac_status" >&5
22978 (exit "$ac_status"); } &&
22979 { ac_try='test -s "conftest.$ac_objext"'
22980 { (eval echo "$as_me:22980: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22983 echo "$as_me:22983: \$? = $ac_status" >&5
22984 (exit "$ac_status"); }; }; then
22985 cf_cv_type_sigaction=yes
22987 echo "$as_me: failed program was:" >&5
22988 cat "conftest.$ac_ext" >&5
22989 cf_cv_type_sigaction=no
22991 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22994 echo "$as_me:22994: result: $cf_cv_type_sigaction" >&5
22995 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22996 test "$cf_cv_type_sigaction" = yes &&
22997 cat >>confdefs.h <<\EOF
22998 #define HAVE_TYPE_SIGACTION 1
23001 echo "$as_me:23001: checking declaration of size-change" >&5
23002 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
23003 if test "${cf_cv_sizechange+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23007 cf_cv_sizechange=unknown
23008 cf_save_CPPFLAGS="$CPPFLAGS"
23010 for cf_opts in "" "NEED_PTEM_H"
23013 CPPFLAGS="$cf_save_CPPFLAGS"
23014 if test -n "$cf_opts"
23017 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23018 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23021 cat >"conftest.$ac_ext" <<_ACEOF
23022 #line 23022 "configure"
23023 #include "confdefs.h"
23024 #include <sys/types.h>
23025 #ifdef HAVE_TERMIOS_H
23026 #include <termios.h>
23028 #ifdef HAVE_TERMIO_H
23029 #include <termio.h>
23034 /* This is a workaround for SCO: they neglected to define struct winsize in
23035 * termios.h -- it is only in termio.h and ptem.h
23037 #include <sys/stream.h>
23038 #include <sys/ptem.h>
23041 #ifdef HAVE_SYS_IOCTL_H
23042 #include <sys/ioctl.h>
23050 struct ttysize win; /* SunOS 3.0... */
23051 int y = win.ts_lines = 2;
23052 int x = win.ts_cols = 1;
23057 struct winsize win; /* everything else */
23058 int y = win.ws_row = 2;
23059 int x = win.ws_col = 1;
23063 no TIOCGSIZE or TIOCGWINSZ
23064 #endif /* TIOCGWINSZ */
23065 #endif /* TIOCGSIZE */
23071 rm -f "conftest.$ac_objext"
23072 if { (eval echo "$as_me:23072: \"$ac_compile\"") >&5
23073 (eval $ac_compile) 2>&5
23075 echo "$as_me:23075: \$? = $ac_status" >&5
23076 (exit "$ac_status"); } &&
23077 { ac_try='test -s "conftest.$ac_objext"'
23078 { (eval echo "$as_me:23078: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:23081: \$? = $ac_status" >&5
23082 (exit "$ac_status"); }; }; then
23083 cf_cv_sizechange=yes
23085 echo "$as_me: failed program was:" >&5
23086 cat "conftest.$ac_ext" >&5
23087 cf_cv_sizechange=no
23089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23091 CPPFLAGS="$cf_save_CPPFLAGS"
23092 if test "$cf_cv_sizechange" = yes ; then
23093 echo "size-change succeeded ($cf_opts)" >&5
23094 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23100 echo "$as_me:23100: result: $cf_cv_sizechange" >&5
23101 echo "${ECHO_T}$cf_cv_sizechange" >&6
23102 if test "$cf_cv_sizechange" != no ; then
23104 cat >>confdefs.h <<\EOF
23105 #define HAVE_SIZECHANGE 1
23108 case "$cf_cv_sizechange" in
23110 cat >>confdefs.h <<EOF
23111 #define $cf_cv_sizechange 1
23118 echo "$as_me:23118: checking for memmove" >&5
23119 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23120 if test "${ac_cv_func_memmove+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 cat >"conftest.$ac_ext" <<_ACEOF
23124 #line 23124 "configure"
23125 #include "confdefs.h"
23126 #define memmove autoconf_temporary
23127 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23134 /* We use char because int might match the return type of a gcc2
23135 builtin and then its argument prototype would still apply. */
23136 char memmove (void);
23142 /* The GNU C library defines stubs for functions which it implements
23143 to always fail with ENOSYS. Some functions are actually named
23144 something starting with __ and the normal name is an alias. */
23145 #if defined (__stub_memmove) || defined (__stub___memmove)
23146 #error found stub for memmove
23154 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23155 if { (eval echo "$as_me:23155: \"$ac_link\"") >&5
23156 (eval $ac_link) 2>&5
23158 echo "$as_me:23158: \$? = $ac_status" >&5
23159 (exit "$ac_status"); } &&
23160 { ac_try='test -s "conftest$ac_exeext"'
23161 { (eval echo "$as_me:23161: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23164 echo "$as_me:23164: \$? = $ac_status" >&5
23165 (exit "$ac_status"); }; }; then
23166 ac_cv_func_memmove=yes
23168 echo "$as_me: failed program was:" >&5
23169 cat "conftest.$ac_ext" >&5
23170 ac_cv_func_memmove=no
23172 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23174 echo "$as_me:23174: result: $ac_cv_func_memmove" >&5
23175 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23176 if test "$ac_cv_func_memmove" = yes; then
23180 echo "$as_me:23180: checking for bcopy" >&5
23181 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23182 if test "${ac_cv_func_bcopy+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 cat >"conftest.$ac_ext" <<_ACEOF
23186 #line 23186 "configure"
23187 #include "confdefs.h"
23188 #define bcopy autoconf_temporary
23189 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23196 /* We use char because int might match the return type of a gcc2
23197 builtin and then its argument prototype would still apply. */
23204 /* The GNU C library defines stubs for functions which it implements
23205 to always fail with ENOSYS. Some functions are actually named
23206 something starting with __ and the normal name is an alias. */
23207 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23208 #error found stub for bcopy
23216 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23217 if { (eval echo "$as_me:23217: \"$ac_link\"") >&5
23218 (eval $ac_link) 2>&5
23220 echo "$as_me:23220: \$? = $ac_status" >&5
23221 (exit "$ac_status"); } &&
23222 { ac_try='test -s "conftest$ac_exeext"'
23223 { (eval echo "$as_me:23223: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:23226: \$? = $ac_status" >&5
23227 (exit "$ac_status"); }; }; then
23228 ac_cv_func_bcopy=yes
23230 echo "$as_me: failed program was:" >&5
23231 cat "conftest.$ac_ext" >&5
23232 ac_cv_func_bcopy=no
23234 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23236 echo "$as_me:23236: result: $ac_cv_func_bcopy" >&5
23237 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23238 if test "$ac_cv_func_bcopy" = yes; then
23240 echo "$as_me:23240: checking if bcopy does overlapping moves" >&5
23241 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23242 if test "${cf_cv_good_bcopy+set}" = set; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 if test "$cross_compiling" = yes; then
23247 cf_cv_good_bcopy=unknown
23249 cat >"conftest.$ac_ext" <<_ACEOF
23250 #line 23250 "configure"
23251 #include "confdefs.h"
23254 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23256 bcopy(data, temp, sizeof(data));
23257 bcopy(temp+10, temp, 15);
23258 bcopy(temp+5, temp+15, 10);
23259 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23263 rm -f "conftest$ac_exeext"
23264 if { (eval echo "$as_me:23264: \"$ac_link\"") >&5
23265 (eval $ac_link) 2>&5
23267 echo "$as_me:23267: \$? = $ac_status" >&5
23268 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23269 { (eval echo "$as_me:23269: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:23272: \$? = $ac_status" >&5
23273 (exit "$ac_status"); }; }; then
23274 cf_cv_good_bcopy=yes
23276 echo "$as_me: program exited with status $ac_status" >&5
23277 echo "$as_me: failed program was:" >&5
23278 cat "conftest.$ac_ext" >&5
23279 cf_cv_good_bcopy=no
23281 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23285 echo "$as_me:23285: result: $cf_cv_good_bcopy" >&5
23286 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23289 cf_cv_good_bcopy=no
23292 if test "$cf_cv_good_bcopy" = yes ; then
23294 cat >>confdefs.h <<\EOF
23295 #define USE_OK_BCOPY 1
23300 cat >>confdefs.h <<\EOF
23301 #define USE_MY_MEMMOVE 1
23308 tty >/dev/null 2>&1 || {
23309 for ac_func in posix_openpt
23311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23312 echo "$as_me:23312: checking for $ac_func" >&5
23313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23314 if eval "test \"\${$as_ac_var+set}\" = set"; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 cat >"conftest.$ac_ext" <<_ACEOF
23318 #line 23318 "configure"
23319 #include "confdefs.h"
23320 #define $ac_func autoconf_temporary
23321 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23328 /* We use char because int might match the return type of a gcc2
23329 builtin and then its argument prototype would still apply. */
23330 char $ac_func (void);
23336 /* The GNU C library defines stubs for functions which it implements
23337 to always fail with ENOSYS. Some functions are actually named
23338 something starting with __ and the normal name is an alias. */
23339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23340 #error found stub for $ac_func
23343 return $ac_func ();
23348 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23349 if { (eval echo "$as_me:23349: \"$ac_link\"") >&5
23350 (eval $ac_link) 2>&5
23352 echo "$as_me:23352: \$? = $ac_status" >&5
23353 (exit "$ac_status"); } &&
23354 { ac_try='test -s "conftest$ac_exeext"'
23355 { (eval echo "$as_me:23355: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23358 echo "$as_me:23358: \$? = $ac_status" >&5
23359 (exit "$ac_status"); }; }; then
23360 eval "$as_ac_var=yes"
23362 echo "$as_me: failed program was:" >&5
23363 cat "conftest.$ac_ext" >&5
23364 eval "$as_ac_var=no"
23366 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23368 echo "$as_me:23368: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23369 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23370 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23371 cat >>confdefs.h <<EOF
23372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23378 echo "$as_me:23378: checking if poll really works" >&5
23379 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23380 if test "${cf_cv_working_poll+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 if test "$cross_compiling" = yes; then
23385 cf_cv_working_poll=unknown
23387 cat >"conftest.$ac_ext" <<_ACEOF
23388 #line 23388 "configure"
23389 #include "confdefs.h"
23391 #include <stdlib.h>
23393 #include <unistd.h>
23398 #include <sys/poll.h>
23401 struct pollfd myfds;
23404 /* check for Darwin bug with respect to "devices" */
23405 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23408 myfds.events = POLLIN;
23411 ret = poll(&myfds, 1, 100);
23413 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23418 fd = open("/dev/tty", 2); /* O_RDWR */
23420 #ifdef HAVE_POSIX_OPENPT
23422 fd = posix_openpt(O_RDWR);
23427 /* also check with standard input */
23429 myfds.events = POLLIN;
23431 ret = poll(&myfds, 1, 100);
23436 ${cf_cv_main_return:-return}(ret < 0);
23439 rm -f "conftest$ac_exeext"
23440 if { (eval echo "$as_me:23440: \"$ac_link\"") >&5
23441 (eval $ac_link) 2>&5
23443 echo "$as_me:23443: \$? = $ac_status" >&5
23444 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23445 { (eval echo "$as_me:23445: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23448 echo "$as_me:23448: \$? = $ac_status" >&5
23449 (exit "$ac_status"); }; }; then
23450 cf_cv_working_poll=yes
23452 echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 cat "conftest.$ac_ext" >&5
23455 cf_cv_working_poll=no
23457 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23460 echo "$as_me:23460: result: $cf_cv_working_poll" >&5
23461 echo "${ECHO_T}$cf_cv_working_poll" >&6
23462 test "$cf_cv_working_poll" = "yes" &&
23463 cat >>confdefs.h <<\EOF
23464 #define HAVE_WORKING_POLL 1
23467 echo "$as_me:23467: checking for va_copy" >&5
23468 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23469 if test "${cf_cv_have_va_copy+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 cat >"conftest.$ac_ext" <<_ACEOF
23474 #line 23474 "configure"
23475 #include "confdefs.h"
23477 #include <stdarg.h>
23483 static va_list dst;
23484 static va_list src;
23490 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23491 if { (eval echo "$as_me:23491: \"$ac_link\"") >&5
23492 (eval $ac_link) 2>&5
23494 echo "$as_me:23494: \$? = $ac_status" >&5
23495 (exit "$ac_status"); } &&
23496 { ac_try='test -s "conftest$ac_exeext"'
23497 { (eval echo "$as_me:23497: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23500 echo "$as_me:23500: \$? = $ac_status" >&5
23501 (exit "$ac_status"); }; }; then
23502 cf_cv_have_va_copy=yes
23504 echo "$as_me: failed program was:" >&5
23505 cat "conftest.$ac_ext" >&5
23506 cf_cv_have_va_copy=no
23508 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23510 echo "$as_me:23510: result: $cf_cv_have_va_copy" >&5
23511 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23513 if test "$cf_cv_have_va_copy" = yes;
23516 cat >>confdefs.h <<\EOF
23517 #define HAVE_VA_COPY 1
23520 else # !cf_cv_have_va_copy
23522 echo "$as_me:23522: checking for __va_copy" >&5
23523 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23524 if test "${cf_cv_have___va_copy+set}" = set; then
23525 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 cat >"conftest.$ac_ext" <<_ACEOF
23529 #line 23529 "configure"
23530 #include "confdefs.h"
23532 #include <stdarg.h>
23538 static va_list dst;
23539 static va_list src;
23540 __va_copy(dst, src)
23545 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23546 if { (eval echo "$as_me:23546: \"$ac_link\"") >&5
23547 (eval $ac_link) 2>&5
23549 echo "$as_me:23549: \$? = $ac_status" >&5
23550 (exit "$ac_status"); } &&
23551 { ac_try='test -s "conftest$ac_exeext"'
23552 { (eval echo "$as_me:23552: \"$ac_try\"") >&5
23553 (eval $ac_try) 2>&5
23555 echo "$as_me:23555: \$? = $ac_status" >&5
23556 (exit "$ac_status"); }; }; then
23557 cf_cv_have___va_copy=yes
23559 echo "$as_me: failed program was:" >&5
23560 cat "conftest.$ac_ext" >&5
23561 cf_cv_have___va_copy=no
23563 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23565 echo "$as_me:23565: result: $cf_cv_have___va_copy" >&5
23566 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23568 if test "$cf_cv_have___va_copy" = yes
23571 cat >>confdefs.h <<\EOF
23572 #define HAVE___VA_COPY 1
23575 else # !cf_cv_have___va_copy
23577 echo "$as_me:23577: checking for __builtin_va_copy" >&5
23578 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23579 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23583 cat >"conftest.$ac_ext" <<_ACEOF
23584 #line 23584 "configure"
23585 #include "confdefs.h"
23587 #include <stdarg.h>
23593 static va_list dst;
23594 static va_list src;
23595 __builtin_va_copy(dst, src)
23600 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23601 if { (eval echo "$as_me:23601: \"$ac_link\"") >&5
23602 (eval $ac_link) 2>&5
23604 echo "$as_me:23604: \$? = $ac_status" >&5
23605 (exit "$ac_status"); } &&
23606 { ac_try='test -s "conftest$ac_exeext"'
23607 { (eval echo "$as_me:23607: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23610 echo "$as_me:23610: \$? = $ac_status" >&5
23611 (exit "$ac_status"); }; }; then
23612 cf_cv_have___builtin_va_copy=yes
23614 echo "$as_me: failed program was:" >&5
23615 cat "conftest.$ac_ext" >&5
23616 cf_cv_have___builtin_va_copy=no
23618 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23620 echo "$as_me:23620: result: $cf_cv_have___builtin_va_copy" >&5
23621 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23623 test "$cf_cv_have___builtin_va_copy" = yes &&
23625 cat >>confdefs.h <<\EOF
23626 #define HAVE___BUILTIN_VA_COPY 1
23629 fi # cf_cv_have___va_copy
23631 fi # cf_cv_have_va_copy
23633 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23638 echo "$as_me:23638: checking if we can simply copy va_list" >&5
23639 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23640 if test "${cf_cv_pointer_va_list+set}" = set; then
23641 echo $ECHO_N "(cached) $ECHO_C" >&6
23644 cat >"conftest.$ac_ext" <<_ACEOF
23645 #line 23645 "configure"
23646 #include "confdefs.h"
23648 #include <stdarg.h>
23661 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23662 if { (eval echo "$as_me:23662: \"$ac_link\"") >&5
23663 (eval $ac_link) 2>&5
23665 echo "$as_me:23665: \$? = $ac_status" >&5
23666 (exit "$ac_status"); } &&
23667 { ac_try='test -s "conftest$ac_exeext"'
23668 { (eval echo "$as_me:23668: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:23671: \$? = $ac_status" >&5
23672 (exit "$ac_status"); }; }; then
23673 cf_cv_pointer_va_list=yes
23675 echo "$as_me: failed program was:" >&5
23676 cat "conftest.$ac_ext" >&5
23677 cf_cv_pointer_va_list=no
23679 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23681 echo "$as_me:23681: result: $cf_cv_pointer_va_list" >&5
23682 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23684 if test "$cf_cv_pointer_va_list" = no
23686 echo "$as_me:23686: checking if we can copy va_list indirectly" >&5
23687 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23688 if test "${cf_cv_array_va_list+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >"conftest.$ac_ext" <<_ACEOF
23693 #line 23693 "configure"
23694 #include "confdefs.h"
23696 #include <stdarg.h>
23709 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23710 if { (eval echo "$as_me:23710: \"$ac_link\"") >&5
23711 (eval $ac_link) 2>&5
23713 echo "$as_me:23713: \$? = $ac_status" >&5
23714 (exit "$ac_status"); } &&
23715 { ac_try='test -s "conftest$ac_exeext"'
23716 { (eval echo "$as_me:23716: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23719 echo "$as_me:23719: \$? = $ac_status" >&5
23720 (exit "$ac_status"); }; }; then
23721 cf_cv_array_va_list=yes
23723 echo "$as_me: failed program was:" >&5
23724 cat "conftest.$ac_ext" >&5
23725 cf_cv_array_va_list=no
23727 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23729 echo "$as_me:23729: result: $cf_cv_array_va_list" >&5
23730 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23731 test "$cf_cv_array_va_list" = yes &&
23732 cat >>confdefs.h <<\EOF
23733 #define ARRAY_VA_LIST 1
23740 echo "$as_me:23740: checking for pid_t" >&5
23741 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23742 if test "${ac_cv_type_pid_t+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23745 cat >"conftest.$ac_ext" <<_ACEOF
23746 #line 23746 "configure"
23747 #include "confdefs.h"
23748 $ac_includes_default
23754 if (sizeof (pid_t))
23760 rm -f "conftest.$ac_objext"
23761 if { (eval echo "$as_me:23761: \"$ac_compile\"") >&5
23762 (eval $ac_compile) 2>&5
23764 echo "$as_me:23764: \$? = $ac_status" >&5
23765 (exit "$ac_status"); } &&
23766 { ac_try='test -s "conftest.$ac_objext"'
23767 { (eval echo "$as_me:23767: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23770 echo "$as_me:23770: \$? = $ac_status" >&5
23771 (exit "$ac_status"); }; }; then
23772 ac_cv_type_pid_t=yes
23774 echo "$as_me: failed program was:" >&5
23775 cat "conftest.$ac_ext" >&5
23776 ac_cv_type_pid_t=no
23778 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23780 echo "$as_me:23780: result: $ac_cv_type_pid_t" >&5
23781 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23782 if test "$ac_cv_type_pid_t" = yes; then
23786 cat >>confdefs.h <<EOF
23792 for ac_header in unistd.h vfork.h
23794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23795 echo "$as_me:23795: checking for $ac_header" >&5
23796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23800 cat >"conftest.$ac_ext" <<_ACEOF
23801 #line 23801 "configure"
23802 #include "confdefs.h"
23803 #include <$ac_header>
23805 if { (eval echo "$as_me:23805: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23806 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23808 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 echo "$as_me:23811: \$? = $ac_status" >&5
23812 (exit "$ac_status"); } >/dev/null; then
23813 if test -s conftest.err; then
23814 ac_cpp_err=$ac_c_preproc_warn_flag
23821 if test -z "$ac_cpp_err"; then
23822 eval "$as_ac_Header=yes"
23824 echo "$as_me: failed program was:" >&5
23825 cat "conftest.$ac_ext" >&5
23826 eval "$as_ac_Header=no"
23828 rm -f conftest.err "conftest.$ac_ext"
23830 echo "$as_me:23830: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23831 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23832 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23833 cat >>confdefs.h <<EOF
23834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23840 for ac_func in fork vfork
23842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23843 echo "$as_me:23843: checking for $ac_func" >&5
23844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23845 if eval "test \"\${$as_ac_var+set}\" = set"; then
23846 echo $ECHO_N "(cached) $ECHO_C" >&6
23848 cat >"conftest.$ac_ext" <<_ACEOF
23849 #line 23849 "configure"
23850 #include "confdefs.h"
23851 #define $ac_func autoconf_temporary
23852 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23859 /* We use char because int might match the return type of a gcc2
23860 builtin and then its argument prototype would still apply. */
23861 char $ac_func (void);
23867 /* The GNU C library defines stubs for functions which it implements
23868 to always fail with ENOSYS. Some functions are actually named
23869 something starting with __ and the normal name is an alias. */
23870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23871 #error found stub for $ac_func
23874 return $ac_func ();
23879 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23880 if { (eval echo "$as_me:23880: \"$ac_link\"") >&5
23881 (eval $ac_link) 2>&5
23883 echo "$as_me:23883: \$? = $ac_status" >&5
23884 (exit "$ac_status"); } &&
23885 { ac_try='test -s "conftest$ac_exeext"'
23886 { (eval echo "$as_me:23886: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23889 echo "$as_me:23889: \$? = $ac_status" >&5
23890 (exit "$ac_status"); }; }; then
23891 eval "$as_ac_var=yes"
23893 echo "$as_me: failed program was:" >&5
23894 cat "conftest.$ac_ext" >&5
23895 eval "$as_ac_var=no"
23897 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23899 echo "$as_me:23899: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23900 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23901 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23902 cat >>confdefs.h <<EOF
23903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23909 ac_cv_func_fork_works=$ac_cv_func_fork
23910 if test "x$ac_cv_func_fork" = xyes; then
23911 echo "$as_me:23911: checking for working fork" >&5
23912 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23913 if test "${ac_cv_func_fork_works+set}" = set; then
23914 echo $ECHO_N "(cached) $ECHO_C" >&6
23916 if test "$cross_compiling" = yes; then
23917 ac_cv_func_fork_works=cross
23919 cat >"conftest.$ac_ext" <<_ACEOF
23920 /* By Rüdiger Kuhlmann. */
23921 #include <sys/types.h>
23923 # include <unistd.h>
23925 /* Some systems only have a dummy stub for fork() */
23929 $ac_main_return (1);
23930 $ac_main_return (0);
23933 rm -f "conftest$ac_exeext"
23934 if { (eval echo "$as_me:23934: \"$ac_link\"") >&5
23935 (eval $ac_link) 2>&5
23937 echo "$as_me:23937: \$? = $ac_status" >&5
23938 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23939 { (eval echo "$as_me:23939: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23942 echo "$as_me:23942: \$? = $ac_status" >&5
23943 (exit "$ac_status"); }; }; then
23944 ac_cv_func_fork_works=yes
23946 echo "$as_me: program exited with status $ac_status" >&5
23947 echo "$as_me: failed program was:" >&5
23948 cat "conftest.$ac_ext" >&5
23949 ac_cv_func_fork_works=no
23951 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23954 echo "$as_me:23954: result: $ac_cv_func_fork_works" >&5
23955 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23958 if test "x$ac_cv_func_fork_works" = xcross; then
23960 *-*-amigaos* | *-*-msdosdjgpp*)
23961 # Override, as these systems have only a dummy fork() stub
23962 ac_cv_func_fork_works=no
23965 ac_cv_func_fork_works=yes
23968 { echo "$as_me:23968: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23969 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23971 ac_cv_func_vfork_works=$ac_cv_func_vfork
23972 if test "x$ac_cv_func_vfork" = xyes; then
23973 echo "$as_me:23973: checking for working vfork" >&5
23974 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23975 if test "${ac_cv_func_vfork_works+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 if test "$cross_compiling" = yes; then
23979 ac_cv_func_vfork_works=cross
23981 cat >"conftest.$ac_ext" <<_ACEOF
23982 #line 23982 "configure"
23983 #include "confdefs.h"
23984 /* Thanks to Paul Eggert for this test. */
23986 #include <sys/types.h>
23987 #include <sys/stat.h>
23989 # include <unistd.h>
23992 # include <vfork.h>
23994 /* On some sparc systems, changes by the child to local and incoming
23995 argument registers are propagated back to the parent. The compiler
23996 is told about this with #include <vfork.h>, but some compilers
23997 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23998 static variable whose address is put into a register that is
23999 clobbered by the vfork. */
24002 sparc_address_test (int arg)
24004 sparc_address_test (arg) int arg;
24007 static pid_t child;
24025 pid_t parent = getpid ();
24028 sparc_address_test ();
24033 /* Here is another test for sparc vfork register problems. This
24034 test uses lots of local variables, at least as many local
24035 variables as main has allocated so far including compiler
24036 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24037 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24038 reuse the register of parent for one of the local variables,
24039 since it will think that parent can't possibly be used any more
24040 in this routine. Assigning to the local variable will thus
24041 munge parent in the parent process. */
24043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24045 /* Convince the compiler that p..p7 are live; otherwise, it might
24046 use the same hardware register for all 8 local variables. */
24047 if (p != p1 || p != p2 || p != p3 || p != p4
24048 || p != p5 || p != p6 || p != p7)
24051 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24052 from child file descriptors. If the child closes a descriptor
24053 before it execs or exits, this munges the parent's descriptor
24054 as well. Test for this by closing stdout in the child. */
24055 _exit(close(fileno(stdout)) != 0);
24060 while (wait(&status) != child)
24063 /* Was there some problem with vforking? */
24066 /* Did the child fail? (This shouldn't happen.) */
24069 /* Did the vfork/compiler bug occur? */
24070 || parent != getpid()
24072 /* Did the file descriptor bug occur? */
24073 || fstat(fileno(stdout), &st) != 0
24078 rm -f "conftest$ac_exeext"
24079 if { (eval echo "$as_me:24079: \"$ac_link\"") >&5
24080 (eval $ac_link) 2>&5
24082 echo "$as_me:24082: \$? = $ac_status" >&5
24083 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24084 { (eval echo "$as_me:24084: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24087 echo "$as_me:24087: \$? = $ac_status" >&5
24088 (exit "$ac_status"); }; }; then
24089 ac_cv_func_vfork_works=yes
24091 echo "$as_me: program exited with status $ac_status" >&5
24092 echo "$as_me: failed program was:" >&5
24093 cat "conftest.$ac_ext" >&5
24094 ac_cv_func_vfork_works=no
24096 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24099 echo "$as_me:24099: result: $ac_cv_func_vfork_works" >&5
24100 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24103 if test "x$ac_cv_func_fork_works" = xcross; then
24104 ac_cv_func_vfork_works=ac_cv_func_vfork
24105 { echo "$as_me:24105: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24106 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24109 if test "x$ac_cv_func_vfork_works" = xyes; then
24111 cat >>confdefs.h <<\EOF
24112 #define HAVE_WORKING_VFORK 1
24117 cat >>confdefs.h <<\EOF
24122 if test "x$ac_cv_func_fork_works" = xyes; then
24124 cat >>confdefs.h <<\EOF
24125 #define HAVE_WORKING_FORK 1
24130 echo "$as_me:24130: checking if fopen accepts explicit binary mode" >&5
24131 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24132 if test "${cf_cv_fopen_bin_r+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24136 if test "$cross_compiling" = yes; then
24137 cf_cv_fopen_bin_r=unknown
24139 cat >"conftest.$ac_ext" <<_ACEOF
24140 #line 24140 "configure"
24141 #include "confdefs.h"
24145 FILE *fp = fopen("conftest.tmp", "wb");
24149 for (p = 0; p < 256; ++p) {
24153 fp = fopen("conftest.tmp", "rb");
24155 for (p = 0; p < 256; ++p) {
24168 ${cf_cv_main_return:-return} (rc);
24172 rm -f "conftest$ac_exeext"
24173 if { (eval echo "$as_me:24173: \"$ac_link\"") >&5
24174 (eval $ac_link) 2>&5
24176 echo "$as_me:24176: \$? = $ac_status" >&5
24177 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24178 { (eval echo "$as_me:24178: \"$ac_try\"") >&5
24179 (eval $ac_try) 2>&5
24181 echo "$as_me:24181: \$? = $ac_status" >&5
24182 (exit "$ac_status"); }; }; then
24183 cf_cv_fopen_bin_r=yes
24185 echo "$as_me: program exited with status $ac_status" >&5
24186 echo "$as_me: failed program was:" >&5
24187 cat "conftest.$ac_ext" >&5
24188 cf_cv_fopen_bin_r=no
24190 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24194 echo "$as_me:24194: result: $cf_cv_fopen_bin_r" >&5
24195 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24196 test "x$cf_cv_fopen_bin_r" != xno &&
24197 cat >>confdefs.h <<\EOF
24198 #define USE_FOPEN_BIN_R 1
24201 # special check for test/ditto.c
24203 echo "$as_me:24203: checking for openpty in -lutil" >&5
24204 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24205 if test "${ac_cv_lib_util_openpty+set}" = set; then
24206 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 ac_check_lib_save_LIBS=$LIBS
24209 LIBS="-lutil $LIBS"
24210 cat >"conftest.$ac_ext" <<_ACEOF
24211 #line 24211 "configure"
24212 #include "confdefs.h"
24214 /* Override any gcc2 internal prototype to avoid an error. */
24218 /* We use char because int might match the return type of a gcc2
24219 builtin and then its argument prototype would still apply. */
24229 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24230 if { (eval echo "$as_me:24230: \"$ac_link\"") >&5
24231 (eval $ac_link) 2>&5
24233 echo "$as_me:24233: \$? = $ac_status" >&5
24234 (exit "$ac_status"); } &&
24235 { ac_try='test -s "conftest$ac_exeext"'
24236 { (eval echo "$as_me:24236: \"$ac_try\"") >&5
24237 (eval $ac_try) 2>&5
24239 echo "$as_me:24239: \$? = $ac_status" >&5
24240 (exit "$ac_status"); }; }; then
24241 ac_cv_lib_util_openpty=yes
24243 echo "$as_me: failed program was:" >&5
24244 cat "conftest.$ac_ext" >&5
24245 ac_cv_lib_util_openpty=no
24247 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24248 LIBS=$ac_check_lib_save_LIBS
24250 echo "$as_me:24250: result: $ac_cv_lib_util_openpty" >&5
24251 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24252 if test "$ac_cv_lib_util_openpty" = yes; then
24258 echo "$as_me:24258: checking for openpty header" >&5
24259 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24260 if test "${cf_cv_func_openpty+set}" = set; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24264 cf_save_LIBS="$LIBS"
24265 test "$cf_cv_lib_util" = yes && {
24266 cf_add_libs="$LIBS"
24269 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24270 # filter duplicates
24271 for cf_add_1lib in $cf_add_0lib; do
24272 for cf_add_2lib in $cf_add_libs; do
24273 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24278 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24280 LIBS="$cf_add_libs"
24282 for cf_header in pty.h libutil.h util.h
24284 cat >"conftest.$ac_ext" <<_ACEOF
24285 #line 24285 "configure"
24286 #include "confdefs.h"
24288 #include <$cf_header>
24294 int x = openpty((int *)0, (int *)0, (char *)0,
24295 (struct termios *)0, (struct winsize *)0);
24301 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24302 if { (eval echo "$as_me:24302: \"$ac_link\"") >&5
24303 (eval $ac_link) 2>&5
24305 echo "$as_me:24305: \$? = $ac_status" >&5
24306 (exit "$ac_status"); } &&
24307 { ac_try='test -s "conftest$ac_exeext"'
24308 { (eval echo "$as_me:24308: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24311 echo "$as_me:24311: \$? = $ac_status" >&5
24312 (exit "$ac_status"); }; }; then
24314 cf_cv_func_openpty=$cf_header
24318 echo "$as_me: failed program was:" >&5
24319 cat "conftest.$ac_ext" >&5
24321 cf_cv_func_openpty=no
24324 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24326 LIBS="$cf_save_LIBS"
24329 echo "$as_me:24329: result: $cf_cv_func_openpty" >&5
24330 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24332 if test "$cf_cv_func_openpty" != no ; then
24334 cat >>confdefs.h <<EOF
24335 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24338 cat >>confdefs.h <<\EOF
24339 #define USE_XTERM_PTY 1
24342 if test "x$cf_cv_lib_util" = xyes ; then
24344 cf_add_libs="$TEST_LIBS"
24347 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24348 # filter duplicates
24349 for cf_add_1lib in $cf_add_0lib; do
24350 for cf_add_2lib in $cf_add_libs; do
24351 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24358 TEST_LIBS="$cf_add_libs"
24363 if test "$with_hashed_db" != no ; then
24365 cat >>confdefs.h <<\EOF
24366 #define USE_HASHED_DB 1
24369 case $with_hashed_db in
24373 if test -d "$with_hashed_db" ; then
24375 if test -n "$with_hashed_db/include" ; then
24376 for cf_add_incdir in $with_hashed_db/include
24378 while test "$cf_add_incdir" != /usr/include
24380 if test -d "$cf_add_incdir"
24383 if test -n "$CFLAGS$CPPFLAGS" ; then
24384 # a loop is needed to ensure we can add subdirs of existing dirs
24385 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24386 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24387 cf_have_incdir=yes; break
24392 if test "$cf_have_incdir" = no ; then
24393 if test "$cf_add_incdir" = /usr/local/include ; then
24394 if test "$GCC" = yes
24396 cf_save_CPPFLAGS=$CPPFLAGS
24398 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24399 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24401 cat >"conftest.$ac_ext" <<_ACEOF
24402 #line 24402 "configure"
24403 #include "confdefs.h"
24413 rm -f "conftest.$ac_objext"
24414 if { (eval echo "$as_me:24414: \"$ac_compile\"") >&5
24415 (eval $ac_compile) 2>&5
24417 echo "$as_me:24417: \$? = $ac_status" >&5
24418 (exit "$ac_status"); } &&
24419 { ac_try='test -s "conftest.$ac_objext"'
24420 { (eval echo "$as_me:24420: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24423 echo "$as_me:24423: \$? = $ac_status" >&5
24424 (exit "$ac_status"); }; }; then
24427 echo "$as_me: failed program was:" >&5
24428 cat "conftest.$ac_ext" >&5
24431 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24432 CPPFLAGS=$cf_save_CPPFLAGS
24437 if test "$cf_have_incdir" = no ; then
24438 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24440 echo "${as_me:-configure}:24440: testing adding $cf_add_incdir to include-path ..." 1>&5
24442 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24444 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24445 test "$cf_top_incdir" = "$cf_add_incdir" && break
24446 cf_add_incdir="$cf_top_incdir"
24457 if test -n "$with_hashed_db/lib" ; then
24458 for cf_add_libdir in $with_hashed_db/lib
24460 if test "$cf_add_libdir" = /usr/lib ; then
24462 elif test -d "$cf_add_libdir"
24465 if test -n "$LDFLAGS$LIBS" ; then
24466 # a loop is needed to ensure we can add subdirs of existing dirs
24467 for cf_test_libdir in $LDFLAGS $LIBS ; do
24468 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24469 cf_have_libdir=yes; break
24473 if test "$cf_have_libdir" = no ; then
24474 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24476 echo "${as_me:-configure}:24476: testing adding $cf_add_libdir to library-path ..." 1>&5
24478 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24485 case "$with_hashed_db" in
24487 { echo "$as_me:24487: WARNING: no such directory $with_hashed_db" >&5
24488 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24494 test "x$prefix" != "xNONE" && \
24495 test -d "$prefix" && \
24497 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24498 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24499 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24500 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24501 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24502 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24505 for cf_subdir_prefix in \
24514 test "x$cf_subdir_prefix" != "x$prefix" && \
24515 test -d "$cf_subdir_prefix" && \
24516 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24517 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24518 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24519 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24520 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24521 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24522 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"
24527 for cf_item in $cf_search
24530 (*/$with_hashed_db)
24532 if test -n "$cf_item" ; then
24533 for cf_add_incdir in $cf_item
24535 while test "$cf_add_incdir" != /usr/include
24537 if test -d "$cf_add_incdir"
24540 if test -n "$CFLAGS$CPPFLAGS" ; then
24541 # a loop is needed to ensure we can add subdirs of existing dirs
24542 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24543 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24544 cf_have_incdir=yes; break
24549 if test "$cf_have_incdir" = no ; then
24550 if test "$cf_add_incdir" = /usr/local/include ; then
24551 if test "$GCC" = yes
24553 cf_save_CPPFLAGS=$CPPFLAGS
24555 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24556 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24558 cat >"conftest.$ac_ext" <<_ACEOF
24559 #line 24559 "configure"
24560 #include "confdefs.h"
24570 rm -f "conftest.$ac_objext"
24571 if { (eval echo "$as_me:24571: \"$ac_compile\"") >&5
24572 (eval $ac_compile) 2>&5
24574 echo "$as_me:24574: \$? = $ac_status" >&5
24575 (exit "$ac_status"); } &&
24576 { ac_try='test -s "conftest.$ac_objext"'
24577 { (eval echo "$as_me:24577: \"$ac_try\"") >&5
24578 (eval $ac_try) 2>&5
24580 echo "$as_me:24580: \$? = $ac_status" >&5
24581 (exit "$ac_status"); }; }; then
24584 echo "$as_me: failed program was:" >&5
24585 cat "conftest.$ac_ext" >&5
24588 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24589 CPPFLAGS=$cf_save_CPPFLAGS
24594 if test "$cf_have_incdir" = no ; then
24595 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24597 echo "${as_me:-configure}:24597: testing adding $cf_add_incdir to include-path ..." 1>&5
24599 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24601 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24602 test "$cf_top_incdir" = "$cf_add_incdir" && break
24603 cf_add_incdir="$cf_top_incdir"
24620 test "x$prefix" != "xNONE" && \
24621 test -d "$prefix" && \
24623 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24624 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24625 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24626 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24627 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24628 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24631 for cf_subdir_prefix in \
24640 test "x$cf_subdir_prefix" != "x$prefix" && \
24641 test -d "$cf_subdir_prefix" && \
24642 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24643 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24644 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24645 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24646 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24647 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24648 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"
24653 for cf_item in $cf_search
24656 (*/$with_hashed_db)
24658 if test -n "$cf_item" ; then
24659 for cf_add_libdir in $cf_item
24661 if test "$cf_add_libdir" = /usr/lib ; then
24663 elif test -d "$cf_add_libdir"
24666 if test -n "$LDFLAGS$LIBS" ; then
24667 # a loop is needed to ensure we can add subdirs of existing dirs
24668 for cf_test_libdir in $LDFLAGS $LIBS ; do
24669 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24670 cf_have_libdir=yes; break
24674 if test "$cf_have_libdir" = no ; then
24675 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24677 echo "${as_me:-configure}:24677: testing adding $cf_add_libdir to library-path ..." 1>&5
24679 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24694 echo "$as_me:24694: checking for db.h" >&5
24695 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24696 if test "${ac_cv_header_db_h+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 cat >"conftest.$ac_ext" <<_ACEOF
24700 #line 24700 "configure"
24701 #include "confdefs.h"
24704 if { (eval echo "$as_me:24704: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24705 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24707 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:24710: \$? = $ac_status" >&5
24711 (exit "$ac_status"); } >/dev/null; then
24712 if test -s conftest.err; then
24713 ac_cpp_err=$ac_c_preproc_warn_flag
24720 if test -z "$ac_cpp_err"; then
24721 ac_cv_header_db_h=yes
24723 echo "$as_me: failed program was:" >&5
24724 cat "conftest.$ac_ext" >&5
24725 ac_cv_header_db_h=no
24727 rm -f conftest.err "conftest.$ac_ext"
24729 echo "$as_me:24729: result: $ac_cv_header_db_h" >&5
24730 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24731 if test "$ac_cv_header_db_h" = yes; then
24733 echo "$as_me:24733: checking for version of db" >&5
24734 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24735 if test "${cf_cv_hashed_db_version+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 cf_cv_hashed_db_version=unknown
24741 for cf_db_version in 1 2 3 4 5 6
24744 echo "${as_me:-configure}:24744: testing checking for db version $cf_db_version ..." 1>&5
24746 cat >"conftest.$ac_ext" <<_ACEOF
24747 #line 24747 "configure"
24748 #include "confdefs.h"
24750 $ac_includes_default
24753 #ifdef DB_VERSION_MAJOR
24754 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24755 #if $cf_db_version == DB_VERSION_MAJOR
24761 #if $cf_db_version == 1
24762 /* ok: assuming this is DB 1.8.5 */
24776 rm -f "conftest.$ac_objext"
24777 if { (eval echo "$as_me:24777: \"$ac_compile\"") >&5
24778 (eval $ac_compile) 2>&5
24780 echo "$as_me:24780: \$? = $ac_status" >&5
24781 (exit "$ac_status"); } &&
24782 { ac_try='test -s "conftest.$ac_objext"'
24783 { (eval echo "$as_me:24783: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24786 echo "$as_me:24786: \$? = $ac_status" >&5
24787 (exit "$ac_status"); }; }; then
24789 cf_cv_hashed_db_version=$cf_db_version
24793 echo "$as_me: failed program was:" >&5
24794 cat "conftest.$ac_ext" >&5
24796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24800 echo "$as_me:24800: result: $cf_cv_hashed_db_version" >&5
24801 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24803 if test "$cf_cv_hashed_db_version" = unknown ; then
24804 { { echo "$as_me:24804: error: Cannot determine version of db" >&5
24805 echo "$as_me: error: Cannot determine version of db" >&2;}
24806 { (exit 1); exit 1; }; }
24809 echo "$as_me:24809: checking for db libraries" >&5
24810 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24811 if test "${cf_cv_hashed_db_libs+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 cf_cv_hashed_db_libs=unknown
24816 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24818 cf_save_libs="$LIBS"
24819 if test -n "$cf_db_libs"; then
24821 cf_add_libs="$LIBS"
24824 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24825 # filter duplicates
24826 for cf_add_1lib in $cf_add_0lib; do
24827 for cf_add_2lib in $cf_add_libs; do
24828 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24835 LIBS="$cf_add_libs"
24839 echo "${as_me:-configure}:24839: testing checking for library $cf_db_libs ..." 1>&5
24841 cat >"conftest.$ac_ext" <<_ACEOF
24842 #line 24842 "configure"
24843 #include "confdefs.h"
24845 $ac_includes_default
24852 char *path = "/tmp/foo";
24853 #ifdef DB_VERSION_MAJOR
24854 #if DB_VERSION_MAJOR >= 4
24856 db_create(&result, NULL, 0);
24857 result->open(result,
24864 #elif DB_VERSION_MAJOR >= 3
24866 db_create(&result, NULL, 0);
24867 result->open(result,
24873 #elif DB_VERSION_MAJOR >= 2
24882 #endif /* DB_VERSION_MAJOR */
24884 DB *result = dbopen(path,
24890 ${cf_cv_main_return:-return}(result != 0)
24896 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24897 if { (eval echo "$as_me:24897: \"$ac_link\"") >&5
24898 (eval $ac_link) 2>&5
24900 echo "$as_me:24900: \$? = $ac_status" >&5
24901 (exit "$ac_status"); } &&
24902 { ac_try='test -s "conftest$ac_exeext"'
24903 { (eval echo "$as_me:24903: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24906 echo "$as_me:24906: \$? = $ac_status" >&5
24907 (exit "$ac_status"); }; }; then
24909 if test -n "$cf_db_libs" ; then
24910 cf_cv_hashed_db_libs=$cf_db_libs
24912 cf_cv_hashed_db_libs=default
24914 LIBS="$cf_save_libs"
24918 echo "$as_me: failed program was:" >&5
24919 cat "conftest.$ac_ext" >&5
24921 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24922 LIBS="$cf_save_libs"
24926 echo "$as_me:24926: result: $cf_cv_hashed_db_libs" >&5
24927 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24929 if test "$cf_cv_hashed_db_libs" = unknown ; then
24930 { { echo "$as_me:24930: error: Cannot determine library for db" >&5
24931 echo "$as_me: error: Cannot determine library for db" >&2;}
24932 { (exit 1); exit 1; }; }
24933 elif test "$cf_cv_hashed_db_libs" != default ; then
24935 cf_add_libs="$LIBS"
24938 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24939 # filter duplicates
24940 for cf_add_1lib in $cf_add_0lib; do
24941 for cf_add_2lib in $cf_add_libs; do
24942 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24947 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24949 LIBS="$cf_add_libs"
24956 { { echo "$as_me:24956: error: Cannot find db.h" >&5
24957 echo "$as_me: error: Cannot find db.h" >&2;}
24958 { (exit 1); exit 1; }; }
24964 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24965 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24966 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24969 # Just in case, check if the C compiler has a bool type.
24971 echo "$as_me:24971: checking if we should include stdbool.h" >&5
24972 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24974 if test "${cf_cv_header_stdbool_h+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 cat >"conftest.$ac_ext" <<_ACEOF
24979 #line 24979 "configure"
24980 #include "confdefs.h"
24990 rm -f "conftest.$ac_objext"
24991 if { (eval echo "$as_me:24991: \"$ac_compile\"") >&5
24992 (eval $ac_compile) 2>&5
24994 echo "$as_me:24994: \$? = $ac_status" >&5
24995 (exit "$ac_status"); } &&
24996 { ac_try='test -s "conftest.$ac_objext"'
24997 { (eval echo "$as_me:24997: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
25000 echo "$as_me:25000: \$? = $ac_status" >&5
25001 (exit "$ac_status"); }; }; then
25002 cf_cv_header_stdbool_h=0
25004 echo "$as_me: failed program was:" >&5
25005 cat "conftest.$ac_ext" >&5
25006 cat >"conftest.$ac_ext" <<_ACEOF
25007 #line 25007 "configure"
25008 #include "confdefs.h"
25011 #include <stdbool.h>
25022 rm -f "conftest.$ac_objext"
25023 if { (eval echo "$as_me:25023: \"$ac_compile\"") >&5
25024 (eval $ac_compile) 2>&5
25026 echo "$as_me:25026: \$? = $ac_status" >&5
25027 (exit "$ac_status"); } &&
25028 { ac_try='test -s "conftest.$ac_objext"'
25029 { (eval echo "$as_me:25029: \"$ac_try\"") >&5
25030 (eval $ac_try) 2>&5
25032 echo "$as_me:25032: \$? = $ac_status" >&5
25033 (exit "$ac_status"); }; }; then
25034 cf_cv_header_stdbool_h=1
25036 echo "$as_me: failed program was:" >&5
25037 cat "conftest.$ac_ext" >&5
25038 cf_cv_header_stdbool_h=0
25040 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25045 if test "$cf_cv_header_stdbool_h" = 1
25046 then echo "$as_me:25046: result: yes" >&5
25047 echo "${ECHO_T}yes" >&6
25048 else echo "$as_me:25048: result: no" >&5
25049 echo "${ECHO_T}no" >&6
25052 echo "$as_me:25052: checking for builtin bool type" >&5
25053 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25055 if test "${cf_cv_cc_bool_type+set}" = set; then
25056 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 cat >"conftest.$ac_ext" <<_ACEOF
25060 #line 25060 "configure"
25061 #include "confdefs.h"
25064 #include <sys/types.h>
25074 rm -f "conftest.$ac_objext"
25075 if { (eval echo "$as_me:25075: \"$ac_compile\"") >&5
25076 (eval $ac_compile) 2>&5
25078 echo "$as_me:25078: \$? = $ac_status" >&5
25079 (exit "$ac_status"); } &&
25080 { ac_try='test -s "conftest.$ac_objext"'
25081 { (eval echo "$as_me:25081: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25084 echo "$as_me:25084: \$? = $ac_status" >&5
25085 (exit "$ac_status"); }; }; then
25086 cf_cv_cc_bool_type=1
25088 echo "$as_me: failed program was:" >&5
25089 cat "conftest.$ac_ext" >&5
25090 cf_cv_cc_bool_type=0
25092 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25096 if test "$cf_cv_cc_bool_type" = 1
25097 then echo "$as_me:25097: result: yes" >&5
25098 echo "${ECHO_T}yes" >&6
25099 else echo "$as_me:25099: result: no" >&5
25100 echo "${ECHO_T}no" >&6
25103 # Check for C++ compiler characteristics (and ensure that it's there!)
25104 if test -n "$CXX" ; then
25106 ac_cpp='$CXXCPP $CPPFLAGS'
25107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25108 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25110 ac_main_return="return"
25112 if test -n "$GXX" ; then
25115 LIBS="$LIBS $CXXLIBS"
25116 echo "$as_me:25116: checking if we already have C++ library" >&5
25117 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25118 cat >"conftest.$ac_ext" <<_ACEOF
25119 #line 25119 "configure"
25120 #include "confdefs.h"
25122 #include <iostream>
25127 std::cout << "Hello World!" << std::endl;
25132 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25133 if { (eval echo "$as_me:25133: \"$ac_link\"") >&5
25134 (eval $ac_link) 2>&5
25136 echo "$as_me:25136: \$? = $ac_status" >&5
25137 (exit "$ac_status"); } &&
25138 { ac_try='test -s "conftest$ac_exeext"'
25139 { (eval echo "$as_me:25139: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25142 echo "$as_me:25142: \$? = $ac_status" >&5
25143 (exit "$ac_status"); }; }; then
25144 cf_have_libstdcpp=yes
25146 echo "$as_me: failed program was:" >&5
25147 cat "conftest.$ac_ext" >&5
25148 cf_have_libstdcpp=no
25150 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25151 echo "$as_me:25151: result: $cf_have_libstdcpp" >&5
25152 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25155 if test "$cf_have_libstdcpp" != yes
25157 case "$cf_cv_system_name" in
25159 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25160 cf_stdcpp_libname=stdcpp
25162 cf_stdcpp_libname=stdc++
25166 cf_stdcpp_libname=stdc++
25170 echo "$as_me:25170: checking for library $cf_stdcpp_libname" >&5
25171 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25172 if test "${cf_cv_libstdcpp+set}" = set; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 LIBS="$LIBS $CXXLIBS"
25179 cf_add_libs="$LIBS"
25182 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25183 # filter duplicates
25184 for cf_add_1lib in $cf_add_0lib; do
25185 for cf_add_2lib in $cf_add_libs; do
25186 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25191 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25193 LIBS="$cf_add_libs"
25195 cat >"conftest.$ac_ext" <<_ACEOF
25196 #line 25196 "configure"
25197 #include "confdefs.h"
25199 #include <iostream>
25204 std::cout << "Hello World!" << std::endl;
25209 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25210 if { (eval echo "$as_me:25210: \"$ac_link\"") >&5
25211 (eval $ac_link) 2>&5
25213 echo "$as_me:25213: \$? = $ac_status" >&5
25214 (exit "$ac_status"); } &&
25215 { ac_try='test -s "conftest$ac_exeext"'
25216 { (eval echo "$as_me:25216: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25219 echo "$as_me:25219: \$? = $ac_status" >&5
25220 (exit "$ac_status"); }; }; then
25221 cf_cv_libstdcpp=yes
25223 echo "$as_me: failed program was:" >&5
25224 cat "conftest.$ac_ext" >&5
25227 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25231 echo "$as_me:25231: result: $cf_cv_libstdcpp" >&5
25232 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25233 test "$cf_cv_libstdcpp" = yes && {
25234 cf_add_libs="$CXXLIBS"
25237 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25238 # filter duplicates
25239 for cf_add_1lib in $cf_add_0lib; do
25240 for cf_add_2lib in $cf_add_libs; do
25241 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25246 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25248 CXXLIBS="$cf_add_libs"
25253 echo "$as_me:25253: checking whether $CXX understands -c and -o together" >&5
25254 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25255 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 cat > conftest.$ac_ext <<CF_EOF
25262 ${cf_cv_main_return:-return}(0);
25265 # We do the test twice because some compilers refuse to overwrite an
25266 # existing .o file with -o, though they will create one.
25267 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25268 if { (eval echo "$as_me:25268: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25271 echo "$as_me:25271: \$? = $ac_status" >&5
25272 (exit "$ac_status"); } &&
25273 test -f conftest2.$ac_objext && { (eval echo "$as_me:25273: \"$ac_try\"") >&5
25274 (eval $ac_try) 2>&5
25276 echo "$as_me:25276: \$? = $ac_status" >&5
25277 (exit "$ac_status"); };
25279 eval cf_cv_prog_CXX_c_o=yes
25281 eval cf_cv_prog_CXX_c_o=no
25286 if test "$cf_cv_prog_CXX_c_o" = yes; then
25287 echo "$as_me:25287: result: yes" >&5
25288 echo "${ECHO_T}yes" >&6
25290 echo "$as_me:25290: result: no" >&5
25291 echo "${ECHO_T}no" >&6
25294 case "$GXX_VERSION" in
25295 (1.*|2.[0-6]*|[1-9][0-9].*)
25300 cf_cxx_library=unknown
25301 case "$cf_cv_system_name" in
25309 if test "$GXX" = yes; then
25310 echo "$as_me:25310: checking for lib$cf_gpp_libname" >&5
25311 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25314 cf_add_libs="$LIBS"
25317 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25318 # filter duplicates
25319 for cf_add_1lib in $cf_add_0lib; do
25320 for cf_add_2lib in $cf_add_libs; do
25321 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25326 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25328 LIBS="$cf_add_libs"
25330 cat >"conftest.$ac_ext" <<_ACEOF
25331 #line 25331 "configure"
25332 #include "confdefs.h"
25334 #include <$cf_gpp_libname/builtin.h>
25339 two_arg_error_handler_t foo2 = lib_error_handler
25344 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25345 if { (eval echo "$as_me:25345: \"$ac_link\"") >&5
25346 (eval $ac_link) 2>&5
25348 echo "$as_me:25348: \$? = $ac_status" >&5
25349 (exit "$ac_status"); } &&
25350 { ac_try='test -s "conftest$ac_exeext"'
25351 { (eval echo "$as_me:25351: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:25354: \$? = $ac_status" >&5
25355 (exit "$ac_status"); }; }; then
25358 cf_add_libs="$CXXLIBS"
25361 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25362 # filter duplicates
25363 for cf_add_1lib in $cf_add_0lib; do
25364 for cf_add_2lib in $cf_add_libs; do
25365 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25370 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25372 CXXLIBS="$cf_add_libs"
25374 if test "$cf_gpp_libname" = cpp ; then
25376 cat >>confdefs.h <<\EOF
25377 #define HAVE_GPP_BUILTIN_H 1
25382 cat >>confdefs.h <<\EOF
25383 #define HAVE_GXX_BUILTIN_H 1
25388 echo "$as_me: failed program was:" >&5
25389 cat "conftest.$ac_ext" >&5
25390 cat >"conftest.$ac_ext" <<_ACEOF
25391 #line 25391 "configure"
25392 #include "confdefs.h"
25394 #include <builtin.h>
25399 two_arg_error_handler_t foo2 = lib_error_handler
25404 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25405 if { (eval echo "$as_me:25405: \"$ac_link\"") >&5
25406 (eval $ac_link) 2>&5
25408 echo "$as_me:25408: \$? = $ac_status" >&5
25409 (exit "$ac_status"); } &&
25410 { ac_try='test -s "conftest$ac_exeext"'
25411 { (eval echo "$as_me:25411: \"$ac_try\"") >&5
25412 (eval $ac_try) 2>&5
25414 echo "$as_me:25414: \$? = $ac_status" >&5
25415 (exit "$ac_status"); }; }; then
25418 cf_add_libs="$CXXLIBS"
25421 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25422 # filter duplicates
25423 for cf_add_1lib in $cf_add_0lib; do
25424 for cf_add_2lib in $cf_add_libs; do
25425 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25430 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25432 CXXLIBS="$cf_add_libs"
25434 cat >>confdefs.h <<\EOF
25435 #define HAVE_BUILTIN_H 1
25439 echo "$as_me: failed program was:" >&5
25440 cat "conftest.$ac_ext" >&5
25443 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25445 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25447 echo "$as_me:25447: result: $cf_cxx_library" >&5
25448 echo "${ECHO_T}$cf_cxx_library" >&6
25458 ac_cpp='$CXXCPP $CPPFLAGS'
25459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25460 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25462 ac_main_return="return"
25463 echo "$as_me:25463: checking how to run the C++ preprocessor" >&5
25464 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25465 if test -z "$CXXCPP"; then
25466 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25467 echo $ECHO_N "(cached) $ECHO_C" >&6
25469 # Double quotes because CXXCPP needs to be expanded
25470 for CXXCPP in "$CXX -E" "/lib/cpp"
25472 ac_preproc_ok=false
25473 for ac_cxx_preproc_warn_flag in '' yes
25475 # Use a header file that comes with gcc, so configuring glibc
25476 # with a fresh cross-compiler works.
25477 # On the NeXT, cc -E runs the code through the compiler's parser,
25478 # not just through cpp. "Syntax error" is here to catch this case.
25479 cat >"conftest.$ac_ext" <<_ACEOF
25480 #line 25480 "configure"
25481 #include "confdefs.h"
25482 #include <assert.h>
25485 if { (eval echo "$as_me:25485: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25486 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25488 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 echo "$as_me:25491: \$? = $ac_status" >&5
25492 (exit "$ac_status"); } >/dev/null; then
25493 if test -s conftest.err; then
25494 ac_cpp_err=$ac_cxx_preproc_warn_flag
25501 if test -z "$ac_cpp_err"; then
25504 echo "$as_me: failed program was:" >&5
25505 cat "conftest.$ac_ext" >&5
25506 # Broken: fails on valid input.
25509 rm -f conftest.err "conftest.$ac_ext"
25511 # OK, works on sane cases. Now check whether non-existent headers
25512 # can be detected and how.
25513 cat >"conftest.$ac_ext" <<_ACEOF
25514 #line 25514 "configure"
25515 #include "confdefs.h"
25516 #include <ac_nonexistent.h>
25518 if { (eval echo "$as_me:25518: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25519 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25521 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25523 cat conftest.err >&5
25524 echo "$as_me:25524: \$? = $ac_status" >&5
25525 (exit "$ac_status"); } >/dev/null; then
25526 if test -s conftest.err; then
25527 ac_cpp_err=$ac_cxx_preproc_warn_flag
25534 if test -z "$ac_cpp_err"; then
25535 # Broken: success on invalid input.
25538 echo "$as_me: failed program was:" >&5
25539 cat "conftest.$ac_ext" >&5
25540 # Passes both tests.
25544 rm -f conftest.err "conftest.$ac_ext"
25547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25548 rm -f conftest.err "conftest.$ac_ext"
25549 if $ac_preproc_ok; then
25554 ac_cv_prog_CXXCPP=$CXXCPP
25557 CXXCPP=$ac_cv_prog_CXXCPP
25559 ac_cv_prog_CXXCPP=$CXXCPP
25561 echo "$as_me:25561: result: $CXXCPP" >&5
25562 echo "${ECHO_T}$CXXCPP" >&6
25563 ac_preproc_ok=false
25564 for ac_cxx_preproc_warn_flag in '' yes
25566 # Use a header file that comes with gcc, so configuring glibc
25567 # with a fresh cross-compiler works.
25568 # On the NeXT, cc -E runs the code through the compiler's parser,
25569 # not just through cpp. "Syntax error" is here to catch this case.
25570 cat >"conftest.$ac_ext" <<_ACEOF
25571 #line 25571 "configure"
25572 #include "confdefs.h"
25573 #include <assert.h>
25576 if { (eval echo "$as_me:25576: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25577 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25579 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25581 cat conftest.err >&5
25582 echo "$as_me:25582: \$? = $ac_status" >&5
25583 (exit "$ac_status"); } >/dev/null; then
25584 if test -s conftest.err; then
25585 ac_cpp_err=$ac_cxx_preproc_warn_flag
25592 if test -z "$ac_cpp_err"; then
25595 echo "$as_me: failed program was:" >&5
25596 cat "conftest.$ac_ext" >&5
25597 # Broken: fails on valid input.
25600 rm -f conftest.err "conftest.$ac_ext"
25602 # OK, works on sane cases. Now check whether non-existent headers
25603 # can be detected and how.
25604 cat >"conftest.$ac_ext" <<_ACEOF
25605 #line 25605 "configure"
25606 #include "confdefs.h"
25607 #include <ac_nonexistent.h>
25609 if { (eval echo "$as_me:25609: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25610 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25612 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25614 cat conftest.err >&5
25615 echo "$as_me:25615: \$? = $ac_status" >&5
25616 (exit "$ac_status"); } >/dev/null; then
25617 if test -s conftest.err; then
25618 ac_cpp_err=$ac_cxx_preproc_warn_flag
25625 if test -z "$ac_cpp_err"; then
25626 # Broken: success on invalid input.
25629 echo "$as_me: failed program was:" >&5
25630 cat "conftest.$ac_ext" >&5
25631 # Passes both tests.
25635 rm -f conftest.err "conftest.$ac_ext"
25638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25639 rm -f conftest.err "conftest.$ac_ext"
25640 if $ac_preproc_ok; then
25643 { { echo "$as_me:25643: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25644 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25645 { (exit 1); exit 1; }; }
25649 ac_cpp='$CXXCPP $CPPFLAGS'
25650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25651 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25653 ac_main_return="return"
25655 for ac_header in typeinfo
25657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25658 echo "$as_me:25658: checking for $ac_header" >&5
25659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 cat >"conftest.$ac_ext" <<_ACEOF
25664 #line 25664 "configure"
25665 #include "confdefs.h"
25666 #include <$ac_header>
25668 if { (eval echo "$as_me:25668: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25669 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25671 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25673 cat conftest.err >&5
25674 echo "$as_me:25674: \$? = $ac_status" >&5
25675 (exit "$ac_status"); } >/dev/null; then
25676 if test -s conftest.err; then
25677 ac_cpp_err=$ac_cxx_preproc_warn_flag
25684 if test -z "$ac_cpp_err"; then
25685 eval "$as_ac_Header=yes"
25687 echo "$as_me: failed program was:" >&5
25688 cat "conftest.$ac_ext" >&5
25689 eval "$as_ac_Header=no"
25691 rm -f conftest.err "conftest.$ac_ext"
25693 echo "$as_me:25693: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25694 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25695 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25696 cat >>confdefs.h <<EOF
25697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25703 for ac_header in iostream
25705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25706 echo "$as_me:25706: checking for $ac_header" >&5
25707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 cat >"conftest.$ac_ext" <<_ACEOF
25712 #line 25712 "configure"
25713 #include "confdefs.h"
25714 #include <$ac_header>
25716 if { (eval echo "$as_me:25716: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25717 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25719 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25721 cat conftest.err >&5
25722 echo "$as_me:25722: \$? = $ac_status" >&5
25723 (exit "$ac_status"); } >/dev/null; then
25724 if test -s conftest.err; then
25725 ac_cpp_err=$ac_cxx_preproc_warn_flag
25732 if test -z "$ac_cpp_err"; then
25733 eval "$as_ac_Header=yes"
25735 echo "$as_me: failed program was:" >&5
25736 cat "conftest.$ac_ext" >&5
25737 eval "$as_ac_Header=no"
25739 rm -f conftest.err "conftest.$ac_ext"
25741 echo "$as_me:25741: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25742 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25743 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25744 cat >>confdefs.h <<EOF
25745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25751 if test x"$ac_cv_header_iostream" = xyes ; then
25752 echo "$as_me:25752: checking if iostream uses std-namespace" >&5
25753 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25754 cat >"conftest.$ac_ext" <<_ACEOF
25755 #line 25755 "configure"
25756 #include "confdefs.h"
25758 #include <iostream>
25765 cerr << "testing" << endl;
25771 rm -f "conftest.$ac_objext"
25772 if { (eval echo "$as_me:25772: \"$ac_compile\"") >&5
25773 (eval $ac_compile) 2>&5
25775 echo "$as_me:25775: \$? = $ac_status" >&5
25776 (exit "$ac_status"); } &&
25777 { ac_try='test -s "conftest.$ac_objext"'
25778 { (eval echo "$as_me:25778: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:25781: \$? = $ac_status" >&5
25782 (exit "$ac_status"); }; }; then
25783 cf_iostream_namespace=yes
25785 echo "$as_me: failed program was:" >&5
25786 cat "conftest.$ac_ext" >&5
25787 cf_iostream_namespace=no
25789 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25790 echo "$as_me:25790: result: $cf_iostream_namespace" >&5
25791 echo "${ECHO_T}$cf_iostream_namespace" >&6
25792 if test "$cf_iostream_namespace" = yes ; then
25794 cat >>confdefs.h <<\EOF
25795 #define IOSTREAM_NAMESPACE 1
25801 echo "$as_me:25801: checking if we should include stdbool.h" >&5
25802 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25804 if test "${cf_cv_header_stdbool_h+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25808 cat >"conftest.$ac_ext" <<_ACEOF
25809 #line 25809 "configure"
25810 #include "confdefs.h"
25820 rm -f "conftest.$ac_objext"
25821 if { (eval echo "$as_me:25821: \"$ac_compile\"") >&5
25822 (eval $ac_compile) 2>&5
25824 echo "$as_me:25824: \$? = $ac_status" >&5
25825 (exit "$ac_status"); } &&
25826 { ac_try='test -s "conftest.$ac_objext"'
25827 { (eval echo "$as_me:25827: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25830 echo "$as_me:25830: \$? = $ac_status" >&5
25831 (exit "$ac_status"); }; }; then
25832 cf_cv_header_stdbool_h=0
25834 echo "$as_me: failed program was:" >&5
25835 cat "conftest.$ac_ext" >&5
25836 cat >"conftest.$ac_ext" <<_ACEOF
25837 #line 25837 "configure"
25838 #include "confdefs.h"
25841 #include <stdbool.h>
25852 rm -f "conftest.$ac_objext"
25853 if { (eval echo "$as_me:25853: \"$ac_compile\"") >&5
25854 (eval $ac_compile) 2>&5
25856 echo "$as_me:25856: \$? = $ac_status" >&5
25857 (exit "$ac_status"); } &&
25858 { ac_try='test -s "conftest.$ac_objext"'
25859 { (eval echo "$as_me:25859: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25862 echo "$as_me:25862: \$? = $ac_status" >&5
25863 (exit "$ac_status"); }; }; then
25864 cf_cv_header_stdbool_h=1
25866 echo "$as_me: failed program was:" >&5
25867 cat "conftest.$ac_ext" >&5
25868 cf_cv_header_stdbool_h=0
25870 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25872 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25875 if test "$cf_cv_header_stdbool_h" = 1
25876 then echo "$as_me:25876: result: yes" >&5
25877 echo "${ECHO_T}yes" >&6
25878 else echo "$as_me:25878: result: no" >&5
25879 echo "${ECHO_T}no" >&6
25882 echo "$as_me:25882: checking for builtin bool type" >&5
25883 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25885 if test "${cf_cv_builtin_bool+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 cat >"conftest.$ac_ext" <<_ACEOF
25890 #line 25890 "configure"
25891 #include "confdefs.h"
25894 #include <sys/types.h>
25904 rm -f "conftest.$ac_objext"
25905 if { (eval echo "$as_me:25905: \"$ac_compile\"") >&5
25906 (eval $ac_compile) 2>&5
25908 echo "$as_me:25908: \$? = $ac_status" >&5
25909 (exit "$ac_status"); } &&
25910 { ac_try='test -s "conftest.$ac_objext"'
25911 { (eval echo "$as_me:25911: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:25914: \$? = $ac_status" >&5
25915 (exit "$ac_status"); }; }; then
25916 cf_cv_builtin_bool=1
25918 echo "$as_me: failed program was:" >&5
25919 cat "conftest.$ac_ext" >&5
25920 cf_cv_builtin_bool=0
25922 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25926 if test "$cf_cv_builtin_bool" = 1
25927 then echo "$as_me:25927: result: yes" >&5
25928 echo "${ECHO_T}yes" >&6
25929 else echo "$as_me:25929: result: no" >&5
25930 echo "${ECHO_T}no" >&6
25933 echo "$as_me:25933: checking for bool" >&5
25934 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25935 if test "${ac_cv_type_bool+set}" = set; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25938 cat >"conftest.$ac_ext" <<_ACEOF
25939 #line 25939 "configure"
25940 #include "confdefs.h"
25942 #include <stdlib.h>
25945 #if defined(__cplusplus)
25947 #ifdef HAVE_GXX_BUILTIN_H
25948 #include <g++/builtin.h>
25949 #elif HAVE_GPP_BUILTIN_H
25950 #include <gpp/builtin.h>
25951 #elif HAVE_BUILTIN_H
25952 #include <builtin.h>
25957 #if $cf_cv_header_stdbool_h
25958 #include <stdbool.h>
25974 rm -f "conftest.$ac_objext"
25975 if { (eval echo "$as_me:25975: \"$ac_compile\"") >&5
25976 (eval $ac_compile) 2>&5
25978 echo "$as_me:25978: \$? = $ac_status" >&5
25979 (exit "$ac_status"); } &&
25980 { ac_try='test -s "conftest.$ac_objext"'
25981 { (eval echo "$as_me:25981: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25984 echo "$as_me:25984: \$? = $ac_status" >&5
25985 (exit "$ac_status"); }; }; then
25986 ac_cv_type_bool=yes
25988 echo "$as_me: failed program was:" >&5
25989 cat "conftest.$ac_ext" >&5
25992 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25994 echo "$as_me:25994: result: $ac_cv_type_bool" >&5
25995 echo "${ECHO_T}$ac_cv_type_bool" >&6
25997 echo "$as_me:25997: checking size of bool" >&5
25998 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25999 if test "${ac_cv_sizeof_bool+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 if test "$ac_cv_type_bool" = yes; then
26003 if test "$cross_compiling" = yes; then
26004 # Depending upon the size, compute the lo and hi bounds.
26005 cat >"conftest.$ac_ext" <<_ACEOF
26006 #line 26006 "configure"
26007 #include "confdefs.h"
26009 #include <stdlib.h>
26012 #if defined(__cplusplus)
26014 #ifdef HAVE_GXX_BUILTIN_H
26015 #include <g++/builtin.h>
26016 #elif HAVE_GPP_BUILTIN_H
26017 #include <gpp/builtin.h>
26018 #elif HAVE_BUILTIN_H
26019 #include <builtin.h>
26024 #if $cf_cv_header_stdbool_h
26025 #include <stdbool.h>
26033 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26038 rm -f "conftest.$ac_objext"
26039 if { (eval echo "$as_me:26039: \"$ac_compile\"") >&5
26040 (eval $ac_compile) 2>&5
26042 echo "$as_me:26042: \$? = $ac_status" >&5
26043 (exit "$ac_status"); } &&
26044 { ac_try='test -s "conftest.$ac_objext"'
26045 { (eval echo "$as_me:26045: \"$ac_try\"") >&5
26046 (eval $ac_try) 2>&5
26048 echo "$as_me:26048: \$? = $ac_status" >&5
26049 (exit "$ac_status"); }; }; then
26052 cat >"conftest.$ac_ext" <<_ACEOF
26053 #line 26053 "configure"
26054 #include "confdefs.h"
26056 #include <stdlib.h>
26059 #if defined(__cplusplus)
26061 #ifdef HAVE_GXX_BUILTIN_H
26062 #include <g++/builtin.h>
26063 #elif HAVE_GPP_BUILTIN_H
26064 #include <gpp/builtin.h>
26065 #elif HAVE_BUILTIN_H
26066 #include <builtin.h>
26071 #if $cf_cv_header_stdbool_h
26072 #include <stdbool.h>
26080 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26085 rm -f "conftest.$ac_objext"
26086 if { (eval echo "$as_me:26086: \"$ac_compile\"") >&5
26087 (eval $ac_compile) 2>&5
26089 echo "$as_me:26089: \$? = $ac_status" >&5
26090 (exit "$ac_status"); } &&
26091 { ac_try='test -s "conftest.$ac_objext"'
26092 { (eval echo "$as_me:26092: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26095 echo "$as_me:26095: \$? = $ac_status" >&5
26096 (exit "$ac_status"); }; }; then
26097 ac_hi=$ac_mid; break
26099 echo "$as_me: failed program was:" >&5
26100 cat "conftest.$ac_ext" >&5
26101 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26103 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26106 echo "$as_me: failed program was:" >&5
26107 cat "conftest.$ac_ext" >&5
26110 cat >"conftest.$ac_ext" <<_ACEOF
26111 #line 26111 "configure"
26112 #include "confdefs.h"
26114 #include <stdlib.h>
26117 #if defined(__cplusplus)
26119 #ifdef HAVE_GXX_BUILTIN_H
26120 #include <g++/builtin.h>
26121 #elif HAVE_GPP_BUILTIN_H
26122 #include <gpp/builtin.h>
26123 #elif HAVE_BUILTIN_H
26124 #include <builtin.h>
26129 #if $cf_cv_header_stdbool_h
26130 #include <stdbool.h>
26138 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26143 rm -f "conftest.$ac_objext"
26144 if { (eval echo "$as_me:26144: \"$ac_compile\"") >&5
26145 (eval $ac_compile) 2>&5
26147 echo "$as_me:26147: \$? = $ac_status" >&5
26148 (exit "$ac_status"); } &&
26149 { ac_try='test -s "conftest.$ac_objext"'
26150 { (eval echo "$as_me:26150: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26153 echo "$as_me:26153: \$? = $ac_status" >&5
26154 (exit "$ac_status"); }; }; then
26155 ac_lo=$ac_mid; break
26157 echo "$as_me: failed program was:" >&5
26158 cat "conftest.$ac_ext" >&5
26159 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26161 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26164 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26165 # Binary search between lo and hi bounds.
26166 while test "x$ac_lo" != "x$ac_hi"; do
26167 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26168 cat >"conftest.$ac_ext" <<_ACEOF
26169 #line 26169 "configure"
26170 #include "confdefs.h"
26172 #include <stdlib.h>
26175 #if defined(__cplusplus)
26177 #ifdef HAVE_GXX_BUILTIN_H
26178 #include <g++/builtin.h>
26179 #elif HAVE_GPP_BUILTIN_H
26180 #include <gpp/builtin.h>
26181 #elif HAVE_BUILTIN_H
26182 #include <builtin.h>
26187 #if $cf_cv_header_stdbool_h
26188 #include <stdbool.h>
26196 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26201 rm -f "conftest.$ac_objext"
26202 if { (eval echo "$as_me:26202: \"$ac_compile\"") >&5
26203 (eval $ac_compile) 2>&5
26205 echo "$as_me:26205: \$? = $ac_status" >&5
26206 (exit "$ac_status"); } &&
26207 { ac_try='test -s "conftest.$ac_objext"'
26208 { (eval echo "$as_me:26208: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26211 echo "$as_me:26211: \$? = $ac_status" >&5
26212 (exit "$ac_status"); }; }; then
26215 echo "$as_me: failed program was:" >&5
26216 cat "conftest.$ac_ext" >&5
26217 ac_lo=`expr "$ac_mid" + 1`
26219 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26221 ac_cv_sizeof_bool=$ac_lo
26223 if test "$cross_compiling" = yes; then
26224 { { echo "$as_me:26224: error: cannot run test program while cross compiling" >&5
26225 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26226 { (exit 1); exit 1; }; }
26228 cat >"conftest.$ac_ext" <<_ACEOF
26229 #line 26229 "configure"
26230 #include "confdefs.h"
26232 #include <stdlib.h>
26235 #if defined(__cplusplus)
26237 #ifdef HAVE_GXX_BUILTIN_H
26238 #include <g++/builtin.h>
26239 #elif HAVE_GPP_BUILTIN_H
26240 #include <gpp/builtin.h>
26241 #elif HAVE_BUILTIN_H
26242 #include <builtin.h>
26247 #if $cf_cv_header_stdbool_h
26248 #include <stdbool.h>
26256 FILE *f = fopen ("conftest.val", "w");
26258 $ac_main_return (1);
26259 fprintf (f, "%ld", (long)(sizeof (bool)));
26265 rm -f "conftest$ac_exeext"
26266 if { (eval echo "$as_me:26266: \"$ac_link\"") >&5
26267 (eval $ac_link) 2>&5
26269 echo "$as_me:26269: \$? = $ac_status" >&5
26270 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26271 { (eval echo "$as_me:26271: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26274 echo "$as_me:26274: \$? = $ac_status" >&5
26275 (exit "$ac_status"); }; }; then
26276 ac_cv_sizeof_bool=`cat conftest.val`
26278 echo "$as_me: program exited with status $ac_status" >&5
26279 echo "$as_me: failed program was:" >&5
26280 cat "conftest.$ac_ext" >&5
26282 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26287 ac_cv_sizeof_bool=0
26290 echo "$as_me:26290: result: $ac_cv_sizeof_bool" >&5
26291 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26292 cat >>confdefs.h <<EOF
26293 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26296 echo "$as_me:26296: checking for type of bool" >&5
26297 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26298 if test "${cf_cv_type_of_bool+set}" = set; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26303 if test "$cross_compiling" = yes; then
26305 case x$ac_cv_sizeof_bool in
26306 (x1) cf_cv_type_of_bool="unsigned char";;
26307 (x2) cf_cv_type_of_bool="unsigned short";;
26308 (x4) cf_cv_type_of_bool="unsigned int";;
26309 (x8) cf_cv_type_of_bool="unsigned long";;
26310 (*) cf_cv_type_of_bool=unknown;;
26314 cat >"conftest.$ac_ext" <<_ACEOF
26315 #line 26315 "configure"
26316 #include "confdefs.h"
26318 #include <stdlib.h>
26321 #if defined(__cplusplus)
26323 #ifdef HAVE_GXX_BUILTIN_H
26324 #include <g++/builtin.h>
26325 #elif HAVE_GPP_BUILTIN_H
26326 #include <gpp/builtin.h>
26327 #elif HAVE_BUILTIN_H
26328 #include <builtin.h>
26333 #if $cf_cv_header_stdbool_h
26334 #include <stdbool.h>
26341 FILE *fp = fopen("cf_test.out", "w");
26344 if ((bool)(-x) >= 0)
26345 fputs("unsigned ", fp);
26346 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26347 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26348 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26349 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26352 ${cf_cv_main_return:-return}(0);
26356 rm -f "conftest$ac_exeext"
26357 if { (eval echo "$as_me:26357: \"$ac_link\"") >&5
26358 (eval $ac_link) 2>&5
26360 echo "$as_me:26360: \$? = $ac_status" >&5
26361 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26362 { (eval echo "$as_me:26362: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26365 echo "$as_me:26365: \$? = $ac_status" >&5
26366 (exit "$ac_status"); }; }; then
26367 cf_cv_type_of_bool=`cat cf_test.out`
26368 if test -z "$cf_cv_type_of_bool"; then
26369 cf_cv_type_of_bool=unknown
26372 echo "$as_me: program exited with status $ac_status" >&5
26373 echo "$as_me: failed program was:" >&5
26374 cat "conftest.$ac_ext" >&5
26375 cf_cv_type_of_bool=unknown
26377 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26382 echo "$as_me:26382: result: $cf_cv_type_of_bool" >&5
26383 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26385 if test "$cf_cv_type_of_bool" = unknown ; then
26386 case .$NCURSES_BOOL in
26387 (.auto|.) NCURSES_BOOL=unsigned;;
26389 { echo "$as_me:26389: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26390 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26391 cf_cv_type_of_bool=$NCURSES_BOOL
26394 echo "$as_me:26394: checking for special defines needed for etip.h" >&5
26395 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26396 cf_save_CXXFLAGS="$CXXFLAGS"
26399 # etip.h includes ncurses.h which includes ncurses_dll.h
26400 # But ncurses_dll.h is generated - fix here.
26401 test -d include || mkdir include
26402 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
26404 for cf_math in "" MATH_H
26406 for cf_excp in "" MATH_EXCEPTION
26408 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26409 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26410 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26411 cat >"conftest.$ac_ext" <<_ACEOF
26412 #line 26412 "configure"
26413 #include "confdefs.h"
26415 #include <etip.h.in>
26425 rm -f "conftest.$ac_objext"
26426 if { (eval echo "$as_me:26426: \"$ac_compile\"") >&5
26427 (eval $ac_compile) 2>&5
26429 echo "$as_me:26429: \$? = $ac_status" >&5
26430 (exit "$ac_status"); } &&
26431 { ac_try='test -s "conftest.$ac_objext"'
26432 { (eval echo "$as_me:26432: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:26435: \$? = $ac_status" >&5
26436 (exit "$ac_status"); }; }; then
26438 test -n "$cf_math" && cat >>confdefs.h <<EOF
26439 #define ETIP_NEEDS_${cf_math} 1
26442 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26443 #define ETIP_NEEDS_${cf_excp} 1
26446 cf_result="$cf_math $cf_excp"
26450 echo "$as_me: failed program was:" >&5
26451 cat "conftest.$ac_ext" >&5
26453 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26456 echo "$as_me:26456: result: $cf_result" >&5
26457 echo "${ECHO_T}$cf_result" >&6
26458 CXXFLAGS="$cf_save_CXXFLAGS"
26460 if test -n "$CXX"; then
26461 echo "$as_me:26461: checking if $CXX accepts override keyword" >&5
26462 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26463 if test "${cf_cv_cpp_override+set}" = set; then
26464 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 ac_cpp='$CXXCPP $CPPFLAGS'
26469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26470 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26472 ac_main_return="return"
26474 if test "$cross_compiling" = yes; then
26475 cf_cv_cpp_override=unknown
26477 cat >"conftest.$ac_ext" <<_ACEOF
26478 #line 26478 "configure"
26479 #include "confdefs.h"
26484 virtual int foo(float x) = 0;
26487 class derived: public base
26490 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26496 rm -f "conftest$ac_exeext"
26497 if { (eval echo "$as_me:26497: \"$ac_link\"") >&5
26498 (eval $ac_link) 2>&5
26500 echo "$as_me:26500: \$? = $ac_status" >&5
26501 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26502 { (eval echo "$as_me:26502: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26505 echo "$as_me:26505: \$? = $ac_status" >&5
26506 (exit "$ac_status"); }; }; then
26507 cf_cv_cpp_override=yes
26509 echo "$as_me: program exited with status $ac_status" >&5
26510 echo "$as_me: failed program was:" >&5
26511 cat "conftest.$ac_ext" >&5
26512 cf_cv_cpp_override=no
26514 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26517 ac_cpp='$CXXCPP $CPPFLAGS'
26518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26519 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26521 ac_main_return="return"
26524 echo "$as_me:26524: result: $cf_cv_cpp_override" >&5
26525 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26527 test "$cf_cv_cpp_override" = yes &&
26528 cat >>confdefs.h <<\EOF
26529 #define CPP_HAS_OVERRIDE 1
26532 if test -n "$CXX"; then
26533 echo "$as_me:26533: checking if $CXX accepts parameter initialization" >&5
26534 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26535 if test "${cf_cv_cpp_param_init+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26540 ac_cpp='$CXXCPP $CPPFLAGS'
26541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26542 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26544 ac_main_return="return"
26546 if test "$cross_compiling" = yes; then
26547 cf_cv_cpp_param_init=unknown
26549 cat >"conftest.$ac_ext" <<_ACEOF
26550 #line 26550 "configure"
26551 #include "confdefs.h"
26561 TEST::TEST(int x = 1) // some compilers do not like second initializer
26568 rm -f "conftest$ac_exeext"
26569 if { (eval echo "$as_me:26569: \"$ac_link\"") >&5
26570 (eval $ac_link) 2>&5
26572 echo "$as_me:26572: \$? = $ac_status" >&5
26573 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26574 { (eval echo "$as_me:26574: \"$ac_try\"") >&5
26575 (eval $ac_try) 2>&5
26577 echo "$as_me:26577: \$? = $ac_status" >&5
26578 (exit "$ac_status"); }; }; then
26579 cf_cv_cpp_param_init=yes
26581 echo "$as_me: program exited with status $ac_status" >&5
26582 echo "$as_me: failed program was:" >&5
26583 cat "conftest.$ac_ext" >&5
26584 cf_cv_cpp_param_init=no
26586 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26589 ac_cpp='$CXXCPP $CPPFLAGS'
26590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26591 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26593 ac_main_return="return"
26596 echo "$as_me:26596: result: $cf_cv_cpp_param_init" >&5
26597 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26599 test "$cf_cv_cpp_param_init" = yes &&
26600 cat >>confdefs.h <<\EOF
26601 #define CPP_HAS_PARAM_INIT 1
26604 if test -n "$CXX"; then
26606 echo "$as_me:26606: checking if $CXX accepts static_cast" >&5
26607 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26608 if test "${cf_cv_cpp_static_cast+set}" = set; then
26609 echo $ECHO_N "(cached) $ECHO_C" >&6
26613 ac_cpp='$CXXCPP $CPPFLAGS'
26614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26615 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26617 ac_main_return="return"
26619 cat >"conftest.$ac_ext" <<_ACEOF
26620 #line 26620 "configure"
26621 #include "confdefs.h"
26626 NCursesPanel(int nlines,
26636 template<class T> class NCursesUserPanel : public NCursesPanel
26639 NCursesUserPanel (int nlines,
26643 const T* p_UserData = static_cast<T*>(0))
26644 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26647 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26651 virtual ~NCursesUserPanel() {};
26658 const char* p_UserData = static_cast<char*>(0)
26663 rm -f "conftest.$ac_objext"
26664 if { (eval echo "$as_me:26664: \"$ac_compile\"") >&5
26665 (eval $ac_compile) 2>&5
26667 echo "$as_me:26667: \$? = $ac_status" >&5
26668 (exit "$ac_status"); } &&
26669 { ac_try='test -s "conftest.$ac_objext"'
26670 { (eval echo "$as_me:26670: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26673 echo "$as_me:26673: \$? = $ac_status" >&5
26674 (exit "$ac_status"); }; }; then
26675 cf_cv_cpp_static_cast=yes
26677 echo "$as_me: failed program was:" >&5
26678 cat "conftest.$ac_ext" >&5
26679 cf_cv_cpp_static_cast=no
26681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26684 ac_cpp='$CXXCPP $CPPFLAGS'
26685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26686 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26688 ac_main_return="return"
26691 echo "$as_me:26691: result: $cf_cv_cpp_static_cast" >&5
26692 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26696 test "$cf_cv_cpp_static_cast" = yes &&
26697 cat >>confdefs.h <<\EOF
26698 #define CPP_HAS_STATIC_CAST 1
26702 CXX_ARFLAGS='$(ARFLAGS)'
26703 case "$cf_cv_system_name" in
26705 if test "$GXX" != yes ; then
26707 CXX_ARFLAGS='-ar -o'
26711 CXXLDFLAGS="-u main"
26714 if test "$GXX" != yes ; then
26716 CXX_ARFLAGS='-xar -o'
26723 cf_cv_builtin_bool=1
26725 # Just because we are not configuring against C++ right now does not
26726 # mean that a user will not want to use C++. Some distributors disable
26727 # the C++ portion of this configuration as a shortcut (or just to avoid
26728 # compiling the demo in the c++ directory). So we need a reasonable
26729 # default for the 'bool' type.
26731 # Caveat: since the storage of the bool type is not standardized, it
26734 if test "$NCURSES_BOOL" != auto ; then
26735 cf_cv_type_of_bool=$NCURSES_BOOL
26736 cf_cv_header_stdbool_h=0
26738 if test "$cf_cv_header_stdbool_h" = 1 ; then
26740 echo "$as_me:26740: checking for bool" >&5
26741 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26742 if test "${ac_cv_type_bool+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 cat >"conftest.$ac_ext" <<_ACEOF
26746 #line 26746 "configure"
26747 #include "confdefs.h"
26749 #include <stdlib.h>
26752 #if defined(__cplusplus)
26754 #ifdef HAVE_GXX_BUILTIN_H
26755 #include <g++/builtin.h>
26756 #elif HAVE_GPP_BUILTIN_H
26757 #include <gpp/builtin.h>
26758 #elif HAVE_BUILTIN_H
26759 #include <builtin.h>
26764 #if $cf_cv_header_stdbool_h
26765 #include <stdbool.h>
26781 rm -f "conftest.$ac_objext"
26782 if { (eval echo "$as_me:26782: \"$ac_compile\"") >&5
26783 (eval $ac_compile) 2>&5
26785 echo "$as_me:26785: \$? = $ac_status" >&5
26786 (exit "$ac_status"); } &&
26787 { ac_try='test -s "conftest.$ac_objext"'
26788 { (eval echo "$as_me:26788: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26791 echo "$as_me:26791: \$? = $ac_status" >&5
26792 (exit "$ac_status"); }; }; then
26793 ac_cv_type_bool=yes
26795 echo "$as_me: failed program was:" >&5
26796 cat "conftest.$ac_ext" >&5
26799 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26801 echo "$as_me:26801: result: $ac_cv_type_bool" >&5
26802 echo "${ECHO_T}$ac_cv_type_bool" >&6
26804 echo "$as_me:26804: checking size of bool" >&5
26805 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26806 if test "${ac_cv_sizeof_bool+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26809 if test "$ac_cv_type_bool" = yes; then
26810 if test "$cross_compiling" = yes; then
26811 # Depending upon the size, compute the lo and hi bounds.
26812 cat >"conftest.$ac_ext" <<_ACEOF
26813 #line 26813 "configure"
26814 #include "confdefs.h"
26816 #include <stdlib.h>
26819 #if defined(__cplusplus)
26821 #ifdef HAVE_GXX_BUILTIN_H
26822 #include <g++/builtin.h>
26823 #elif HAVE_GPP_BUILTIN_H
26824 #include <gpp/builtin.h>
26825 #elif HAVE_BUILTIN_H
26826 #include <builtin.h>
26831 #if $cf_cv_header_stdbool_h
26832 #include <stdbool.h>
26840 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26845 rm -f "conftest.$ac_objext"
26846 if { (eval echo "$as_me:26846: \"$ac_compile\"") >&5
26847 (eval $ac_compile) 2>&5
26849 echo "$as_me:26849: \$? = $ac_status" >&5
26850 (exit "$ac_status"); } &&
26851 { ac_try='test -s "conftest.$ac_objext"'
26852 { (eval echo "$as_me:26852: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:26855: \$? = $ac_status" >&5
26856 (exit "$ac_status"); }; }; then
26859 cat >"conftest.$ac_ext" <<_ACEOF
26860 #line 26860 "configure"
26861 #include "confdefs.h"
26863 #include <stdlib.h>
26866 #if defined(__cplusplus)
26868 #ifdef HAVE_GXX_BUILTIN_H
26869 #include <g++/builtin.h>
26870 #elif HAVE_GPP_BUILTIN_H
26871 #include <gpp/builtin.h>
26872 #elif HAVE_BUILTIN_H
26873 #include <builtin.h>
26878 #if $cf_cv_header_stdbool_h
26879 #include <stdbool.h>
26887 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26892 rm -f "conftest.$ac_objext"
26893 if { (eval echo "$as_me:26893: \"$ac_compile\"") >&5
26894 (eval $ac_compile) 2>&5
26896 echo "$as_me:26896: \$? = $ac_status" >&5
26897 (exit "$ac_status"); } &&
26898 { ac_try='test -s "conftest.$ac_objext"'
26899 { (eval echo "$as_me:26899: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26902 echo "$as_me:26902: \$? = $ac_status" >&5
26903 (exit "$ac_status"); }; }; then
26904 ac_hi=$ac_mid; break
26906 echo "$as_me: failed program was:" >&5
26907 cat "conftest.$ac_ext" >&5
26908 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26910 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26913 echo "$as_me: failed program was:" >&5
26914 cat "conftest.$ac_ext" >&5
26917 cat >"conftest.$ac_ext" <<_ACEOF
26918 #line 26918 "configure"
26919 #include "confdefs.h"
26921 #include <stdlib.h>
26924 #if defined(__cplusplus)
26926 #ifdef HAVE_GXX_BUILTIN_H
26927 #include <g++/builtin.h>
26928 #elif HAVE_GPP_BUILTIN_H
26929 #include <gpp/builtin.h>
26930 #elif HAVE_BUILTIN_H
26931 #include <builtin.h>
26936 #if $cf_cv_header_stdbool_h
26937 #include <stdbool.h>
26945 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26950 rm -f "conftest.$ac_objext"
26951 if { (eval echo "$as_me:26951: \"$ac_compile\"") >&5
26952 (eval $ac_compile) 2>&5
26954 echo "$as_me:26954: \$? = $ac_status" >&5
26955 (exit "$ac_status"); } &&
26956 { ac_try='test -s "conftest.$ac_objext"'
26957 { (eval echo "$as_me:26957: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26960 echo "$as_me:26960: \$? = $ac_status" >&5
26961 (exit "$ac_status"); }; }; then
26962 ac_lo=$ac_mid; break
26964 echo "$as_me: failed program was:" >&5
26965 cat "conftest.$ac_ext" >&5
26966 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26971 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26972 # Binary search between lo and hi bounds.
26973 while test "x$ac_lo" != "x$ac_hi"; do
26974 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26975 cat >"conftest.$ac_ext" <<_ACEOF
26976 #line 26976 "configure"
26977 #include "confdefs.h"
26979 #include <stdlib.h>
26982 #if defined(__cplusplus)
26984 #ifdef HAVE_GXX_BUILTIN_H
26985 #include <g++/builtin.h>
26986 #elif HAVE_GPP_BUILTIN_H
26987 #include <gpp/builtin.h>
26988 #elif HAVE_BUILTIN_H
26989 #include <builtin.h>
26994 #if $cf_cv_header_stdbool_h
26995 #include <stdbool.h>
27003 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27008 rm -f "conftest.$ac_objext"
27009 if { (eval echo "$as_me:27009: \"$ac_compile\"") >&5
27010 (eval $ac_compile) 2>&5
27012 echo "$as_me:27012: \$? = $ac_status" >&5
27013 (exit "$ac_status"); } &&
27014 { ac_try='test -s "conftest.$ac_objext"'
27015 { (eval echo "$as_me:27015: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27018 echo "$as_me:27018: \$? = $ac_status" >&5
27019 (exit "$ac_status"); }; }; then
27022 echo "$as_me: failed program was:" >&5
27023 cat "conftest.$ac_ext" >&5
27024 ac_lo=`expr "$ac_mid" + 1`
27026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27028 ac_cv_sizeof_bool=$ac_lo
27030 if test "$cross_compiling" = yes; then
27031 { { echo "$as_me:27031: error: cannot run test program while cross compiling" >&5
27032 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27033 { (exit 1); exit 1; }; }
27035 cat >"conftest.$ac_ext" <<_ACEOF
27036 #line 27036 "configure"
27037 #include "confdefs.h"
27039 #include <stdlib.h>
27042 #if defined(__cplusplus)
27044 #ifdef HAVE_GXX_BUILTIN_H
27045 #include <g++/builtin.h>
27046 #elif HAVE_GPP_BUILTIN_H
27047 #include <gpp/builtin.h>
27048 #elif HAVE_BUILTIN_H
27049 #include <builtin.h>
27054 #if $cf_cv_header_stdbool_h
27055 #include <stdbool.h>
27063 FILE *f = fopen ("conftest.val", "w");
27065 $ac_main_return (1);
27066 fprintf (f, "%ld", (long)(sizeof (bool)));
27072 rm -f "conftest$ac_exeext"
27073 if { (eval echo "$as_me:27073: \"$ac_link\"") >&5
27074 (eval $ac_link) 2>&5
27076 echo "$as_me:27076: \$? = $ac_status" >&5
27077 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27078 { (eval echo "$as_me:27078: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27081 echo "$as_me:27081: \$? = $ac_status" >&5
27082 (exit "$ac_status"); }; }; then
27083 ac_cv_sizeof_bool=`cat conftest.val`
27085 echo "$as_me: program exited with status $ac_status" >&5
27086 echo "$as_me: failed program was:" >&5
27087 cat "conftest.$ac_ext" >&5
27089 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27094 ac_cv_sizeof_bool=0
27097 echo "$as_me:27097: result: $ac_cv_sizeof_bool" >&5
27098 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27099 cat >>confdefs.h <<EOF
27100 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27103 echo "$as_me:27103: checking for type of bool" >&5
27104 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27105 if test "${cf_cv_type_of_bool+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27110 if test "$cross_compiling" = yes; then
27112 case x$ac_cv_sizeof_bool in
27113 (x1) cf_cv_type_of_bool="unsigned char";;
27114 (x2) cf_cv_type_of_bool="unsigned short";;
27115 (x4) cf_cv_type_of_bool="unsigned int";;
27116 (x8) cf_cv_type_of_bool="unsigned long";;
27117 (*) cf_cv_type_of_bool=unknown;;
27121 cat >"conftest.$ac_ext" <<_ACEOF
27122 #line 27122 "configure"
27123 #include "confdefs.h"
27125 #include <stdlib.h>
27128 #if defined(__cplusplus)
27130 #ifdef HAVE_GXX_BUILTIN_H
27131 #include <g++/builtin.h>
27132 #elif HAVE_GPP_BUILTIN_H
27133 #include <gpp/builtin.h>
27134 #elif HAVE_BUILTIN_H
27135 #include <builtin.h>
27140 #if $cf_cv_header_stdbool_h
27141 #include <stdbool.h>
27148 FILE *fp = fopen("cf_test.out", "w");
27151 if ((bool)(-x) >= 0)
27152 fputs("unsigned ", fp);
27153 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27154 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27155 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27156 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27159 ${cf_cv_main_return:-return}(0);
27163 rm -f "conftest$ac_exeext"
27164 if { (eval echo "$as_me:27164: \"$ac_link\"") >&5
27165 (eval $ac_link) 2>&5
27167 echo "$as_me:27167: \$? = $ac_status" >&5
27168 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27169 { (eval echo "$as_me:27169: \"$ac_try\"") >&5
27170 (eval $ac_try) 2>&5
27172 echo "$as_me:27172: \$? = $ac_status" >&5
27173 (exit "$ac_status"); }; }; then
27174 cf_cv_type_of_bool=`cat cf_test.out`
27175 if test -z "$cf_cv_type_of_bool"; then
27176 cf_cv_type_of_bool=unknown
27179 echo "$as_me: program exited with status $ac_status" >&5
27180 echo "$as_me: failed program was:" >&5
27181 cat "conftest.$ac_ext" >&5
27182 cf_cv_type_of_bool=unknown
27184 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27189 echo "$as_me:27189: result: $cf_cv_type_of_bool" >&5
27190 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27192 if test "$cf_cv_type_of_bool" = unknown ; then
27193 case .$NCURSES_BOOL in
27194 (.auto|.) NCURSES_BOOL=unsigned;;
27196 { echo "$as_me:27196: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27197 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27198 cf_cv_type_of_bool=$NCURSES_BOOL
27202 echo "$as_me:27202: checking for fallback type of bool" >&5
27203 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27204 case "$host_cpu" in
27205 (i?86) cf_cv_type_of_bool=char ;;
27206 (*) cf_cv_type_of_bool=int ;;
27208 echo "$as_me:27208: result: $cf_cv_type_of_bool" >&5
27209 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27214 # If the C compiler did not declare bool, and we did not determine that the C++
27215 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27216 # ncurses library use the same type as C++ bool. Note that this allows one to
27217 # specify the type of bool in a configure-script option and postpone
27218 # integration with the C++ compiler provided that the types are compatible.
27220 if test "$cf_cv_cc_bool_type" = 1
27222 # oops: C has a bool. Unlikely, but C++ could differ.
27224 elif test "$cf_cv_builtin_bool" = 0
27229 # this is the normal case
27230 USE_CXX_BOOL='defined(__cplusplus)'
27233 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27235 if test "$cf_with_ada" != "no" ; then
27236 if test "$with_libtool" != "no"; then
27237 { echo "$as_me:27237: WARNING: libtool does not support Ada - disabling feature" >&5
27238 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27243 if test "$cf_with_ada" != "no" ; then
27245 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27248 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27250 unset ac_cv_path_cf_TEMP_gnat
27252 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27253 set dummy $cf_prog_gnat; ac_word=$2
27254 echo "$as_me:27254: checking for $ac_word" >&5
27255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27256 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27257 echo $ECHO_N "(cached) $ECHO_C" >&6
27259 case $cf_TEMP_gnat in
27261 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27264 ac_save_IFS=$IFS; IFS=$ac_path_separator
27266 for ac_dir in $ac_dummy; do
27268 test -z "$ac_dir" && ac_dir=.
27269 if $as_executable_p "$ac_dir/$ac_word"; then
27270 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27271 echo "$as_me:27271: found $ac_dir/$ac_word" >&5
27276 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27280 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27282 if test -n "$cf_TEMP_gnat"; then
27283 echo "$as_me:27283: result: $cf_TEMP_gnat" >&5
27284 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27286 echo "$as_me:27286: result: no" >&5
27287 echo "${ECHO_T}no" >&6
27290 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27292 if test "x$cf_TEMP_gnat" != xno; then
27293 unset cf_cv_gnat_version
27296 echo "$as_me:27296: checking for $cf_prog_gnat version" >&5
27297 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27298 if test "${cf_cv_gnat_version+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27302 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27303 grep '[0-9].[0-9][0-9]*' |\
27304 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27307 echo "$as_me:27307: result: $cf_cv_gnat_version" >&5
27308 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27309 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27310 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27313 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27316 unset cf_cv_gnat_version
27317 unset ac_cv_path_cf_TEMP_gnat
27320 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27322 cf_cv_prog_gnat_correct=no
27324 cf_ada_make=gnatmake
27325 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27326 # gprconfig is newer than gnatmake; we can continue...
27329 rm -rf ./conftest* ./*~conftest*
27330 if mkdir conftest.src
27334 for cf_gprconfig in Ada C
27336 echo "$as_me:27336: checking for gprconfig name for $cf_gprconfig" >&5
27337 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27338 if test "$cf_gprconfig" = C
27340 for cf_gprconfig_param in \
27341 "$cf_gprconfig,,,,GNATGCC" \
27342 "$cf_gprconfig,,,,GCC" \
27345 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27346 test -n "$cf_gprconfig_value" && break
27349 cf_gprconfig_param=$cf_gprconfig
27350 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27352 if test -n "$cf_gprconfig_value"
27354 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27355 echo "$as_me:27355: result: $cf_gprconfig_value" >&5
27356 echo "${ECHO_T}$cf_gprconfig_value" >&6
27358 echo "$as_me:27358: result: missing" >&5
27359 echo "${ECHO_T}missing" >&6
27365 rm -rf ./conftest* ./*~conftest*
27368 if test "x$cf_ada_config" != "x#"
27371 echo "$as_me:27371: checking for gnat version" >&5
27372 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27373 if test "${cf_cv_gnat_version+set}" = set; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27377 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27378 grep '[0-9].[0-9][0-9]*' |\
27379 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27382 echo "$as_me:27382: result: $cf_cv_gnat_version" >&5
27383 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27384 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27386 case "$cf_cv_gnat_version" in
27387 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27388 cf_cv_prog_gnat_correct=yes
27391 { echo "$as_me:27391: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27392 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27393 cf_cv_prog_gnat_correct=no
27397 # Extract the first word of "m4", so it can be a program name with args.
27398 set dummy m4; ac_word=$2
27399 echo "$as_me:27399: checking for $ac_word" >&5
27400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27401 if test "${ac_cv_prog_M4_exists+set}" = set; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27404 if test -n "$M4_exists"; then
27405 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27407 ac_save_IFS=$IFS; IFS=$ac_path_separator
27409 for ac_dir in $ac_dummy; do
27411 test -z "$ac_dir" && ac_dir=.
27412 $as_executable_p "$ac_dir/$ac_word" || continue
27413 ac_cv_prog_M4_exists="yes"
27414 echo "$as_me:27414: found $ac_dir/$ac_word" >&5
27418 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27421 M4_exists=$ac_cv_prog_M4_exists
27422 if test -n "$M4_exists"; then
27423 echo "$as_me:27423: result: $M4_exists" >&5
27424 echo "${ECHO_T}$M4_exists" >&6
27426 echo "$as_me:27426: result: no" >&5
27427 echo "${ECHO_T}no" >&6
27430 if test "$ac_cv_prog_M4_exists" = no; then
27431 cf_cv_prog_gnat_correct=no
27432 { echo "$as_me:27432: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27433 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27435 if test "$cf_cv_prog_gnat_correct" = yes; then
27436 echo "$as_me:27436: checking if GNAT works" >&5
27437 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27439 rm -rf ./conftest* ./*~conftest*
27440 cat >>conftest.ads <<CF_EOF
27441 procedure conftest;
27443 cat >>conftest.adb <<CF_EOF
27446 procedure conftest is
27448 Text_IO.Put ("Hello World");
27450 GNAT.OS_Lib.OS_Exit (0);
27453 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27454 if ( ./conftest 1>&5 2>&1 ) ; then
27455 cf_cv_prog_gnat_correct=yes
27457 cf_cv_prog_gnat_correct=no
27460 cf_cv_prog_gnat_correct=no
27462 rm -rf ./conftest* ./*~conftest*
27464 echo "$as_me:27464: result: $cf_cv_prog_gnat_correct" >&5
27465 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27468 cf_cv_prog_gnat_correct=no
27472 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27474 ADAFLAGS="$ADAFLAGS -gnatpn"
27476 echo "$as_me:27476: checking optimization options for ADAFLAGS" >&5
27477 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27481 ADAFLAGS="$ADAFLAGS -g"
27487 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27489 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27493 echo "$as_me:27493: result: $ADAFLAGS" >&5
27494 echo "${ECHO_T}$ADAFLAGS" >&6
27496 echo "$as_me:27496: checking if GNATPREP supports -T option" >&5
27497 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27498 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27502 cf_cv_gnatprep_opt_t=no
27503 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27506 echo "$as_me:27506: result: $cf_cv_gnatprep_opt_t" >&5
27507 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27508 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27510 echo "$as_me:27510: checking if GNAT supports generics" >&5
27511 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27512 case "$cf_cv_gnat_version" in
27513 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27514 cf_gnat_generics=yes
27517 cf_gnat_generics=no
27520 echo "$as_me:27520: result: $cf_gnat_generics" >&5
27521 echo "${ECHO_T}$cf_gnat_generics" >&6
27523 if test "$cf_gnat_generics" = yes
27525 cf_compile_generics=generics
27526 cf_generic_objects="\${GENOBJS}"
27528 cf_compile_generics=
27529 cf_generic_objects=
27532 echo "$as_me:27532: checking if GNAT supports SIGINT" >&5
27533 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27534 if test "${cf_cv_gnat_sigint+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 rm -rf ./conftest* ./*~conftest*
27539 cat >>conftest.ads <<CF_EOF
27540 with Ada.Interrupts.Names;
27542 package ConfTest is
27544 pragma Warnings (Off); -- the next pragma exists since 3.11p
27545 pragma Unreserve_All_Interrupts;
27546 pragma Warnings (On);
27548 protected Process is
27550 function Continue return Boolean;
27551 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27553 Done : Boolean := False;
27558 cat >>conftest.adb <<CF_EOF
27559 package body ConfTest is
27560 protected body Process is
27565 function Continue return Boolean is
27572 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27573 cf_cv_gnat_sigint=yes
27575 cf_cv_gnat_sigint=no
27577 rm -rf ./conftest* ./*~conftest*
27580 echo "$as_me:27580: result: $cf_cv_gnat_sigint" >&5
27581 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27583 if test "$cf_cv_gnat_sigint" = yes ; then
27586 USE_GNAT_SIGINT="#"
27589 cf_gnat_libraries=no
27590 cf_gnat_projects=no
27592 if test "$enable_gnat_projects" != no ; then
27593 echo "$as_me:27593: checking if GNAT supports project files" >&5
27594 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27595 case "$cf_cv_gnat_version" in
27599 case "$cf_cv_system_name" in
27603 rm -rf ./conftest* ./*~conftest*
27604 if mkdir conftest.src conftest.bin conftest.lib
27607 rm -rf ./conftest* ./*~conftest*
27608 cat >>library.gpr <<CF_EOF
27610 Kind := External ("LIB_KIND");
27611 for Library_Name use "ConfTest";
27612 for Object_Dir use ".";
27613 for Library_ALI_Dir use External("LIBRARY_DIR");
27614 for Library_Version use External ("SONAME");
27615 for Library_Kind use Kind;
27616 for Library_Dir use External("BUILD_DIR");
27617 Source_Dir := External ("SOURCE_DIR");
27618 for Source_Dirs use (Source_Dir);
27621 cat >>confpackage.ads <<CF_EOF
27622 package ConfPackage is
27623 procedure conftest;
27626 cat >>confpackage.adb <<CF_EOF
27628 package body ConfPackage is
27629 procedure conftest is
27631 Text_IO.Put ("Hello World");
27636 if ( "$cf_ada_make" $ADAFLAGS \
27638 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27639 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27640 -XSOURCE_DIR="`pwd`" \
27641 -XSONAME=libConfTest.so.1 \
27642 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27643 cf_gnat_projects=yes
27647 if test -f conftest.lib/confpackage.ali
27649 cf_gnat_libraries=yes
27651 rm -rf ./conftest* ./*~conftest*
27656 echo "$as_me:27656: result: $cf_gnat_projects" >&5
27657 echo "${ECHO_T}$cf_gnat_projects" >&6
27658 fi # enable_gnat_projects
27660 if test "$cf_gnat_projects" = yes
27662 echo "$as_me:27662: checking if GNAT supports libraries" >&5
27663 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27664 echo "$as_me:27664: result: $cf_gnat_libraries" >&5
27665 echo "${ECHO_T}$cf_gnat_libraries" >&6
27668 USE_OLD_MAKERULES=""
27669 USE_GNAT_PROJECTS="#"
27670 USE_GNAT_MAKE_GPR="#"
27671 USE_GNAT_GPRBUILD="#"
27673 if test "$cf_gnat_projects" = yes
27675 USE_OLD_MAKERULES="#"
27676 USE_GNAT_PROJECTS=""
27677 if test "$cf_cv_VERSION_GPRBUILD" != no
27679 USE_GNAT_GPRBUILD=""
27680 elif test "$cf_cv_VERSION_GNATMAKE" != no
27682 USE_GNAT_MAKE_GPR=""
27684 { echo "$as_me:27684: WARNING: use old makefile rules since tools are missing" >&5
27685 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27689 if test "$cf_gnat_libraries" = yes
27691 USE_GNAT_LIBRARIES=""
27693 USE_GNAT_LIBRARIES="#"
27696 echo "$as_me:27696: checking for ada-compiler" >&5
27697 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27699 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27700 if test "${with_ada_compiler+set}" = set; then
27701 withval="$with_ada_compiler"
27702 cf_ada_compiler=$withval
27704 cf_ada_compiler=gnatmake
27707 echo "$as_me:27707: result: $cf_ada_compiler" >&5
27708 echo "${ECHO_T}$cf_ada_compiler" >&6
27710 cf_ada_package=terminal_interface
27712 echo "$as_me:27712: checking for ada-include" >&5
27713 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27715 # Check whether --with-ada-include or --without-ada-include was given.
27716 if test "${with_ada_include+set}" = set; then
27717 withval="$with_ada_include"
27720 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27721 fi; if test -n "$prefix/share/ada/adainclude" ; then
27723 if test "x$prefix" != xNONE; then
27724 cf_path_syntax="$prefix"
27726 cf_path_syntax="$ac_default_prefix"
27729 case ".$withval" in
27730 (.\$\(*\)*|.\'*\'*)
27734 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27736 (.\$\{*prefix\}*|.\$\{*dir\}*)
27737 eval withval="$withval"
27738 case ".$withval" in
27740 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27745 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27748 { { echo "$as_me:27748: error: expected a pathname, not \"$withval\"" >&5
27749 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27750 { (exit 1); exit 1; }; }
27755 eval ADA_INCLUDE="$withval"
27757 echo "$as_me:27757: result: $ADA_INCLUDE" >&5
27758 echo "${ECHO_T}$ADA_INCLUDE" >&6
27760 echo "$as_me:27760: checking for ada-objects" >&5
27761 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27763 # Check whether --with-ada-objects or --without-ada-objects was given.
27764 if test "${with_ada_objects+set}" = set; then
27765 withval="$with_ada_objects"
27768 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27769 fi; if test -n "$prefix/lib/ada/adalib" ; then
27771 if test "x$prefix" != xNONE; then
27772 cf_path_syntax="$prefix"
27774 cf_path_syntax="$ac_default_prefix"
27777 case ".$withval" in
27778 (.\$\(*\)*|.\'*\'*)
27782 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27784 (.\$\{*prefix\}*|.\$\{*dir\}*)
27785 eval withval="$withval"
27786 case ".$withval" in
27788 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27793 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27796 { { echo "$as_me:27796: error: expected a pathname, not \"$withval\"" >&5
27797 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27798 { (exit 1); exit 1; }; }
27803 eval ADA_OBJECTS="$withval"
27805 echo "$as_me:27805: result: $ADA_OBJECTS" >&5
27806 echo "${ECHO_T}$ADA_OBJECTS" >&6
27808 echo "$as_me:27808: checking if an Ada95 shared-library should be built" >&5
27809 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27811 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27812 if test "${with_ada_sharedlib+set}" = set; then
27813 withval="$with_ada_sharedlib"
27814 with_ada_sharedlib=$withval
27816 with_ada_sharedlib=no
27818 echo "$as_me:27818: result: $with_ada_sharedlib" >&5
27819 echo "${ECHO_T}$with_ada_sharedlib" >&6
27821 if test "x$with_ada_sharedlib" != xno
27823 if test "x$cf_gnat_projects" != xyes
27825 { echo "$as_me:27825: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27826 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27827 with_ada_sharedlib=no
27831 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27832 MAKE_ADA_SHAREDLIB="#"
27834 if test "x$with_ada_sharedlib" != xno
27836 MAKE_ADA_SHAREDLIB=
27837 if test "x$with_ada_sharedlib" != xyes
27839 ADA_SHAREDLIB="$with_ada_sharedlib"
27843 # allow the Ada binding to be renamed
27845 echo "$as_me:27845: checking for ada-libname" >&5
27846 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27848 # Check whether --with-ada-libname or --without-ada-libname was given.
27849 if test "${with_ada_libname+set}" = set; then
27850 withval="$with_ada_libname"
27851 ADA_LIBNAME=$withval
27853 ADA_LIBNAME=AdaCurses
27855 case "x$ADA_LIBNAME" in
27857 ADA_LIBNAME=AdaCurses
27861 echo "$as_me:27861: result: $ADA_LIBNAME" >&5
27862 echo "${ECHO_T}$ADA_LIBNAME" >&6
27870 # do this "late" to avoid conflict with header-checks
27871 if test "x$with_widec" = xyes ; then
27872 echo "$as_me:27872: checking for wchar_t" >&5
27873 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27874 if test "${ac_cv_type_wchar_t+set}" = set; then
27875 echo $ECHO_N "(cached) $ECHO_C" >&6
27877 cat >"conftest.$ac_ext" <<_ACEOF
27878 #line 27878 "configure"
27879 #include "confdefs.h"
27880 $ac_includes_default
27886 if (sizeof (wchar_t))
27892 rm -f "conftest.$ac_objext"
27893 if { (eval echo "$as_me:27893: \"$ac_compile\"") >&5
27894 (eval $ac_compile) 2>&5
27896 echo "$as_me:27896: \$? = $ac_status" >&5
27897 (exit "$ac_status"); } &&
27898 { ac_try='test -s "conftest.$ac_objext"'
27899 { (eval echo "$as_me:27899: \"$ac_try\"") >&5
27900 (eval $ac_try) 2>&5
27902 echo "$as_me:27902: \$? = $ac_status" >&5
27903 (exit "$ac_status"); }; }; then
27904 ac_cv_type_wchar_t=yes
27906 echo "$as_me: failed program was:" >&5
27907 cat "conftest.$ac_ext" >&5
27908 ac_cv_type_wchar_t=no
27910 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27912 echo "$as_me:27912: result: $ac_cv_type_wchar_t" >&5
27913 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27915 echo "$as_me:27915: checking size of wchar_t" >&5
27916 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27917 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 if test "$ac_cv_type_wchar_t" = yes; then
27921 if test "$cross_compiling" = yes; then
27922 # Depending upon the size, compute the lo and hi bounds.
27923 cat >"conftest.$ac_ext" <<_ACEOF
27924 #line 27924 "configure"
27925 #include "confdefs.h"
27926 $ac_includes_default
27930 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27935 rm -f "conftest.$ac_objext"
27936 if { (eval echo "$as_me:27936: \"$ac_compile\"") >&5
27937 (eval $ac_compile) 2>&5
27939 echo "$as_me:27939: \$? = $ac_status" >&5
27940 (exit "$ac_status"); } &&
27941 { ac_try='test -s "conftest.$ac_objext"'
27942 { (eval echo "$as_me:27942: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27945 echo "$as_me:27945: \$? = $ac_status" >&5
27946 (exit "$ac_status"); }; }; then
27949 cat >"conftest.$ac_ext" <<_ACEOF
27950 #line 27950 "configure"
27951 #include "confdefs.h"
27952 $ac_includes_default
27956 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27961 rm -f "conftest.$ac_objext"
27962 if { (eval echo "$as_me:27962: \"$ac_compile\"") >&5
27963 (eval $ac_compile) 2>&5
27965 echo "$as_me:27965: \$? = $ac_status" >&5
27966 (exit "$ac_status"); } &&
27967 { ac_try='test -s "conftest.$ac_objext"'
27968 { (eval echo "$as_me:27968: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27971 echo "$as_me:27971: \$? = $ac_status" >&5
27972 (exit "$ac_status"); }; }; then
27973 ac_hi=$ac_mid; break
27975 echo "$as_me: failed program was:" >&5
27976 cat "conftest.$ac_ext" >&5
27977 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27979 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27982 echo "$as_me: failed program was:" >&5
27983 cat "conftest.$ac_ext" >&5
27986 cat >"conftest.$ac_ext" <<_ACEOF
27987 #line 27987 "configure"
27988 #include "confdefs.h"
27989 $ac_includes_default
27993 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27998 rm -f "conftest.$ac_objext"
27999 if { (eval echo "$as_me:27999: \"$ac_compile\"") >&5
28000 (eval $ac_compile) 2>&5
28002 echo "$as_me:28002: \$? = $ac_status" >&5
28003 (exit "$ac_status"); } &&
28004 { ac_try='test -s "conftest.$ac_objext"'
28005 { (eval echo "$as_me:28005: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28008 echo "$as_me:28008: \$? = $ac_status" >&5
28009 (exit "$ac_status"); }; }; then
28010 ac_lo=$ac_mid; break
28012 echo "$as_me: failed program was:" >&5
28013 cat "conftest.$ac_ext" >&5
28014 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
28016 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28019 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28020 # Binary search between lo and hi bounds.
28021 while test "x$ac_lo" != "x$ac_hi"; do
28022 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28023 cat >"conftest.$ac_ext" <<_ACEOF
28024 #line 28024 "configure"
28025 #include "confdefs.h"
28026 $ac_includes_default
28030 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28035 rm -f "conftest.$ac_objext"
28036 if { (eval echo "$as_me:28036: \"$ac_compile\"") >&5
28037 (eval $ac_compile) 2>&5
28039 echo "$as_me:28039: \$? = $ac_status" >&5
28040 (exit "$ac_status"); } &&
28041 { ac_try='test -s "conftest.$ac_objext"'
28042 { (eval echo "$as_me:28042: \"$ac_try\"") >&5
28043 (eval $ac_try) 2>&5
28045 echo "$as_me:28045: \$? = $ac_status" >&5
28046 (exit "$ac_status"); }; }; then
28049 echo "$as_me: failed program was:" >&5
28050 cat "conftest.$ac_ext" >&5
28051 ac_lo=`expr "$ac_mid" + 1`
28053 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28055 ac_cv_sizeof_wchar_t=$ac_lo
28057 if test "$cross_compiling" = yes; then
28058 { { echo "$as_me:28058: error: cannot run test program while cross compiling" >&5
28059 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28060 { (exit 1); exit 1; }; }
28062 cat >"conftest.$ac_ext" <<_ACEOF
28063 #line 28063 "configure"
28064 #include "confdefs.h"
28065 $ac_includes_default
28069 FILE *f = fopen ("conftest.val", "w");
28071 $ac_main_return (1);
28072 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28078 rm -f "conftest$ac_exeext"
28079 if { (eval echo "$as_me:28079: \"$ac_link\"") >&5
28080 (eval $ac_link) 2>&5
28082 echo "$as_me:28082: \$? = $ac_status" >&5
28083 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28084 { (eval echo "$as_me:28084: \"$ac_try\"") >&5
28085 (eval $ac_try) 2>&5
28087 echo "$as_me:28087: \$? = $ac_status" >&5
28088 (exit "$ac_status"); }; }; then
28089 ac_cv_sizeof_wchar_t=`cat conftest.val`
28091 echo "$as_me: program exited with status $ac_status" >&5
28092 echo "$as_me: failed program was:" >&5
28093 cat "conftest.$ac_ext" >&5
28095 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28100 ac_cv_sizeof_wchar_t=0
28103 echo "$as_me:28103: result: $ac_cv_sizeof_wchar_t" >&5
28104 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28105 cat >>confdefs.h <<EOF
28106 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28109 # cross-compiling to mingw can run into the problem that attempting to
28110 # link with the regex library fails, causing the test to not set this to
28111 # a number. "recent" autoconf does not address this problem either -TD
28112 if test -z "$ac_cv_sizeof_wchar_t"
28114 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28116 echo "${as_me:-configure}:28116: testing test failed (assume 2) ..." 1>&5
28118 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28119 mv confdefs.tmp confdefs.h
28120 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28124 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28125 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28127 ### ticlib modules may be a separate library, otherwise contained in termlib.
28128 ### termlib modules may be a separate library, otherwise contained in ncurses.
28130 ### The of "+" or " " between the tokens controls the way the script
28131 ### chooses to split module lists into libraries.
28133 ### (see CF_LIB_RULES).
28134 echo "$as_me:28134: checking for library subsets" >&5
28135 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28138 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28139 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28140 if test "$with_ticlib" != no ; then
28141 LIB_SUBSETS="${LIB_SUBSETS} "
28143 LIB_SUBSETS="${LIB_SUBSETS}+"
28147 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28148 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28150 if test "$with_termlib" != no ; then
28151 LIB_SUBSETS="${LIB_SUBSETS} "
28153 LIB_SUBSETS="${LIB_SUBSETS}+"
28156 LIB_SUBSETS="${LIB_SUBSETS}base"
28158 # Most term-driver calls are to tinfo, but some like init_pair are to the
28159 # base library (so it resides in base).
28160 if test "$with_term_driver" != no ; then
28161 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28162 case "$cf_cv_system_name" in
28163 (*mingw32*|*mingw64*)
28164 if test "x$with_exp_win32" = xyes ; then
28165 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28167 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28169 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28172 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28175 elif test "x$with_exp_win32" = xyes ; then
28176 case "$cf_cv_system_name" in
28177 (*mingw32*|*mingw64*)
28178 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28185 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28186 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28188 echo "$as_me:28188: result: $LIB_SUBSETS" >&5
28189 echo "${ECHO_T}$LIB_SUBSETS" >&6
28191 ### Construct the list of include-directories to be generated
28193 if test "$srcdir" != "."; then
28194 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28196 CPPFLAGS="-I../include $CPPFLAGS"
28197 if test "$srcdir" != "."; then
28198 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28200 CPPFLAGS="-I. $CPPFLAGS"
28202 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28203 if test "$srcdir" != "."; then
28204 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28206 if test "$GCC" != yes; then
28207 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28208 elif test "$includedir" != "/usr/include"; then
28209 if test "$includedir" = '${prefix}/include' ; then
28210 if test x$prefix != x/usr ; then
28211 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28214 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28218 ### Build up pieces for makefile rules
28219 echo "$as_me:28219: checking default library suffix" >&5
28220 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28222 case $DFT_LWR_MODEL in
28223 (libtool) DFT_ARG_SUFFIX='' ;;
28224 (normal) DFT_ARG_SUFFIX='' ;;
28225 (debug) DFT_ARG_SUFFIX='_g' ;;
28226 (profile) DFT_ARG_SUFFIX='_p' ;;
28227 (shared) DFT_ARG_SUFFIX='' ;;
28229 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28230 echo "$as_me:28230: result: $DFT_ARG_SUFFIX" >&5
28231 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28233 echo "$as_me:28233: checking default library-dependency suffix" >&5
28234 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28236 case X$DFT_LWR_MODEL in
28238 DFT_LIB_SUFFIX='.la'
28239 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28242 case "$cf_cv_system_name" in
28244 DFT_LIB_SUFFIX='_g.lib'
28247 DFT_LIB_SUFFIX='_g.a'
28250 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28253 case "$cf_cv_system_name" in
28255 DFT_LIB_SUFFIX='_p.lib'
28258 DFT_LIB_SUFFIX='_p.a'
28261 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28264 case "$cf_cv_system_name" in
28266 DFT_LIB_SUFFIX='.so'
28267 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28270 DFT_LIB_SUFFIX='.dll'
28271 DFT_DEP_SUFFIX='.dll.lib'
28273 (cygwin*|msys*|mingw*)
28274 DFT_LIB_SUFFIX='.dll'
28275 DFT_DEP_SUFFIX='.dll.a'
28278 DFT_LIB_SUFFIX='.dylib'
28279 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28284 DFT_LIB_SUFFIX='.so'
28285 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28288 DFT_LIB_SUFFIX='.sl'
28289 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28294 DFT_LIB_SUFFIX='.so'
28295 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28302 DFT_LIB_SUFFIX='.lib'
28305 DFT_LIB_SUFFIX='.a'
28308 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28311 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28313 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28314 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28316 echo "$as_me:28316: result: $DFT_DEP_SUFFIX" >&5
28317 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28319 echo "$as_me:28319: checking default object directory" >&5
28320 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28322 case $DFT_LWR_MODEL in
28323 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28324 (normal) DFT_OBJ_SUBDIR='objects' ;;
28325 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28326 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28328 case "$cf_cv_system_name" in
28330 DFT_OBJ_SUBDIR='objects' ;;
28332 DFT_OBJ_SUBDIR='obj_s' ;;
28335 echo "$as_me:28335: result: $DFT_OBJ_SUBDIR" >&5
28336 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28338 if test "x$cf_with_cxx" = xyes ; then
28339 echo "$as_me:28339: checking c++ library-dependency suffix" >&5
28340 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28341 if test "$with_libtool" != "no"; then
28342 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28343 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28344 elif test "$with_shared_cxx" != "no"; then
28345 # also for g++ users...
28346 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28348 # we normally make a static library because C/C++ library rules differ
28352 CXX_LIB_SUFFIX='.la'
28353 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28356 case "$cf_cv_system_name" in
28358 CXX_LIB_SUFFIX='_g.lib'
28361 CXX_LIB_SUFFIX='_g.a'
28364 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28367 case "$cf_cv_system_name" in
28369 CXX_LIB_SUFFIX='_p.lib'
28372 CXX_LIB_SUFFIX='_p.a'
28375 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28378 case "$cf_cv_system_name" in
28380 CXX_LIB_SUFFIX='.so'
28381 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28384 CXX_LIB_SUFFIX='.dll'
28385 CXX_DEP_SUFFIX='.dll.lib'
28387 (cygwin*|msys*|mingw*)
28388 CXX_LIB_SUFFIX='.dll'
28389 CXX_DEP_SUFFIX='.dll.a'
28392 CXX_LIB_SUFFIX='.dylib'
28393 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28398 CXX_LIB_SUFFIX='.so'
28399 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28402 CXX_LIB_SUFFIX='.sl'
28403 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28408 CXX_LIB_SUFFIX='.so'
28409 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28416 CXX_LIB_SUFFIX='.lib'
28419 CXX_LIB_SUFFIX='.a'
28422 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28425 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28427 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28428 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28432 echo "$as_me:28432: result: $CXX_LIB_SUFFIX" >&5
28433 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28437 # do not want -ldl in build except as needed for -lncurses dependency
28438 if test "x$with_dlsym" = xyes ; then
28439 if test "$DFT_LWR_MODEL" = shared || \
28440 test "$DFT_LWR_MODEL" = libtool ; then
28442 # remove dl library from $LIBS
28443 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28447 ### Set up low-level terminfo dependencies for makefiles.
28449 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28450 # do not need libdl
28452 if test "x$with_dlsym" = xyes ; then
28454 # remove dl library from $SHLIB_LIST
28455 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28459 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28460 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28461 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28462 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28464 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28467 if test "$with_ticlib" != no ; then
28469 if test "x$with_ticlib" != xyes ; then
28470 TICS_NAME=$with_ticlib
28471 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28472 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28473 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28474 TICS_LIB_SUFFIX="${with_ticlib}"
28476 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28477 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28478 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28479 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28481 TICS_LDFLAGS="-L${LIB_DIR}"
28482 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28484 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28485 TICS_LDFLAGS="-L${LIB_DIR}"
28486 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28489 if test "$with_termlib" != no ; then
28491 if test "x$with_termlib" != xyes ; then
28492 TINFO_NAME=$with_termlib
28493 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28494 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28495 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28496 TINFO_LIB_SUFFIX="${with_termlib}"
28498 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28499 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28500 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28501 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28504 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28505 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28506 if test "$DFT_LWR_MODEL" = "libtool"; then
28507 TEST_ARGS="${TEST_DEPS}"
28508 TEST_ARG2="${TEST_DEP2}"
28509 TINFO_LDFLAGS="-L${LIB_DIR}"
28510 TINFO_LIBS="$TEST_ARGS"
28511 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28512 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28514 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28515 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28516 if test "x$with_term_driver" != xno ; then
28517 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28518 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28519 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28521 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28522 TINFO_LIBS="$TEST_ARGS"
28524 TINFO_LDFLAGS="-L${LIB_DIR}"
28525 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28528 # the next lines are needed for linking libtic over libncurses
28529 TINFO_NAME=${LIB_NAME}
28530 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28531 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28532 if test "x$with_tic_depends" = xyes ; then
28533 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28535 TICS_LIST="$SHLIB_LIST"
28538 TINFO_LDFLAGS="-L${LIB_DIR}"
28539 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28542 if test "$DFT_LWR_MODEL" = shared ; then
28543 case "$cf_cv_system_name" in
28545 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28551 if test "x$with_dlsym" = xyes ; then
28553 # remove dl library from $TICS_LIST
28554 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28558 if test "$DFT_LWR_MODEL" = "libtool"; then
28563 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28565 case "$DFT_LWR_MODEL" in
28566 (normal|debug|profile)
28568 if test "$GCC" = yes ; then
28569 case "$cf_cv_system_name" in
28570 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28574 (*) # normally, except when broken
28575 LDFLAGS_STATIC=-static
28576 LDFLAGS_SHARED=-dynamic
28580 case "$cf_cv_system_name" in
28581 (aix[4-7]*) # from ld manpage
28582 LDFLAGS_STATIC=-bstatic
28583 LDFLAGS_SHARED=-bdynamic
28585 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28586 # We could also use just "archive" and "shared".
28587 LDFLAGS_STATIC=-Wl,-a,archive_shared
28588 LDFLAGS_SHARED=-Wl,-a,shared_archive
28590 (irix*) # from ld manpage IRIX64
28591 LDFLAGS_STATIC=-Bstatic
28592 LDFLAGS_SHARED=-Bdynamic
28594 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28595 # alternative "-oldstyle_liblookup" (not in cc manpage)
28596 LDFLAGS_STATIC=-noso
28597 LDFLAGS_SHARED=-so_archive
28600 LDFLAGS_STATIC=-Bstatic
28601 LDFLAGS_SHARED=-Bdynamic
28606 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28608 echo "$as_me:28608: checking if linker supports switching between static/dynamic" >&5
28609 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28611 rm -f libconftest.a
28612 cat >conftest.$ac_ext <<EOF
28613 #line 28613 "configure"
28615 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28617 if { (eval echo "$as_me:28617: \"$ac_compile\"") >&5
28618 (eval $ac_compile) 2>&5
28620 echo "$as_me:28620: \$? = $ac_status" >&5
28621 (exit "$ac_status"); } ; then
28622 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28623 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28627 cf_save_LIBS="$LIBS"
28629 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28630 cat >"conftest.$ac_ext" <<_ACEOF
28631 #line 28631 "configure"
28632 #include "confdefs.h"
28634 #line 28634 "configure"
28636 int cf_ldflags_static(FILE *fp);
28642 return cf_ldflags_static(stdin);
28648 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28649 if { (eval echo "$as_me:28649: \"$ac_link\"") >&5
28650 (eval $ac_link) 2>&5
28652 echo "$as_me:28652: \$? = $ac_status" >&5
28653 (exit "$ac_status"); } &&
28654 { ac_try='test -s "conftest$ac_exeext"'
28655 { (eval echo "$as_me:28655: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28658 echo "$as_me:28658: \$? = $ac_status" >&5
28659 (exit "$ac_status"); }; }; then
28661 # some linkers simply ignore the -dynamic
28662 case x`file "conftest$ac_exeext" 2>/dev/null` in
28664 cf_ldflags_static=no
28667 cf_ldflags_static=yes
28672 echo "$as_me: failed program was:" >&5
28673 cat "conftest.$ac_ext" >&5
28674 cf_ldflags_static=no
28676 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28678 rm -f libconftest.*
28679 LIBS="$cf_save_LIBS"
28681 echo "$as_me:28681: result: $cf_ldflags_static" >&5
28682 echo "${ECHO_T}$cf_ldflags_static" >&6
28684 if test "$cf_ldflags_static" != yes
28697 echo "$as_me:28697: checking where we will install curses.h" >&5
28698 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28701 if test "$with_overwrite" = no && \
28702 { test "x$includedir" = 'x${prefix}/include' || \
28703 test "x$includedir" = "x${prefix}/include"; }
28705 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28707 echo "$as_me:28707: result: ${includedir}${includesubdir}" >&5
28708 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28710 ### Resolve a conflict between normal and wide-curses by forcing applications
28711 ### that will need libutf8 to add it to their configure script.
28712 if test "$with_overwrite" != no ; then
28713 if test "$NCURSES_LIBUTF8" = 1 ; then
28714 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28715 { echo "$as_me:28715: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28716 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28719 WITH_OVERWRITE=$with_overwrite
28721 ### At least on MinGW a shared library build without libtool
28722 ### requires adding the additional libs to the link list.
28723 case "$cf_cv_system_name" in
28724 (*mingw32*|*mingw64*)
28725 if test "$DFT_LWR_MODEL" != "libtool"; then
28726 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28732 # used to separate tack out of the tree
28735 ### predefined stuff for the test programs
28737 cat >>confdefs.h <<\EOF
28738 #define HAVE_SLK_COLOR 1
28741 # pkgsrc uses these
28743 echo "$as_me:28743: checking for desired basename for form library" >&5
28744 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28746 # Check whether --with-form-libname or --without-form-libname was given.
28747 if test "${with_form_libname+set}" = set; then
28748 withval="$with_form_libname"
28749 with_lib_basename=$withval
28751 with_lib_basename=form
28753 FORM_NAME="$with_lib_basename"
28755 case "x$FORM_NAME" in
28763 echo "$as_me:28763: result: $FORM_NAME" >&5
28764 echo "${ECHO_T}$FORM_NAME" >&6
28766 echo "$as_me:28766: checking for desired basename for menu library" >&5
28767 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28769 # Check whether --with-menu-libname or --without-menu-libname was given.
28770 if test "${with_menu_libname+set}" = set; then
28771 withval="$with_menu_libname"
28772 with_lib_basename=$withval
28774 with_lib_basename=menu
28776 MENU_NAME="$with_lib_basename"
28778 case "x$MENU_NAME" in
28786 echo "$as_me:28786: result: $MENU_NAME" >&5
28787 echo "${ECHO_T}$MENU_NAME" >&6
28789 echo "$as_me:28789: checking for desired basename for panel library" >&5
28790 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28792 # Check whether --with-panel-libname or --without-panel-libname was given.
28793 if test "${with_panel_libname+set}" = set; then
28794 withval="$with_panel_libname"
28795 with_lib_basename=$withval
28797 with_lib_basename=panel
28799 PANEL_NAME="$with_lib_basename"
28801 case "x$PANEL_NAME" in
28809 echo "$as_me:28809: result: $PANEL_NAME" >&5
28810 echo "${ECHO_T}$PANEL_NAME" >&6
28812 echo "$as_me:28812: checking for desired basename for cxx library" >&5
28813 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28815 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28816 if test "${with_cxx_libname+set}" = set; then
28817 withval="$with_cxx_libname"
28818 with_lib_basename=$withval
28820 with_lib_basename=ncurses++
28822 CXX_NAME="$with_lib_basename"
28824 case "x$CXX_NAME" in
28832 echo "$as_me:28832: result: $CXX_NAME" >&5
28833 echo "${ECHO_T}$CXX_NAME" >&6
28835 ### Construct the list of subdirectories for which we'll customize makefiles
28836 ### with the appropriate compile-rules.
28838 echo "$as_me:28838: checking for src modules" >&5
28839 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28841 # dependencies and linker-arguments for test-programs
28842 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28843 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28844 if test "$DFT_LWR_MODEL" = "libtool"; then
28845 TEST_ARGS="${TEST_DEPS}"
28846 TEST_ARG2="${TEST_DEP2}"
28848 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28849 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28852 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28854 for cf_dir in $modules_to_build
28856 if test -f "$srcdir/$cf_dir/modules" ; then
28858 # We may/may not have tack in the distribution, though the
28860 if test "$cf_dir" = tack ; then
28861 if test "x$cf_with_tack" != "xyes"; then
28866 if test -z "$cf_cv_src_modules"; then
28867 cf_cv_src_modules=$cf_dir
28869 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28872 # Make the ncurses_cfg.h file record the library interface files as
28873 # well. These are header files that are the same name as their
28874 # directory. Ncurses is the only library that does not follow
28876 if test "$cf_dir" = tack ; then
28878 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28880 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28882 cat >>confdefs.h <<EOF
28883 #define HAVE_${cf_have_include}_H 1
28886 cat >>confdefs.h <<EOF
28887 #define HAVE_LIB${cf_have_include} 1
28890 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28892 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28894 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28895 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28896 if test "$DFT_LWR_MODEL" = "libtool"; then
28897 TEST_ARGS="${TEST_DEPS}"
28898 TEST_ARG2="${TEST_DEP2}"
28900 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28901 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28903 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28907 echo "$as_me:28907: result: $cf_cv_src_modules" >&5
28908 echo "${ECHO_T}$cf_cv_src_modules" >&6
28910 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28911 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28914 if test "x$cf_with_manpages" != xno ; then
28915 SRC_SUBDIRS="$SRC_SUBDIRS man"
28917 SRC_SUBDIRS="$SRC_SUBDIRS include"
28918 for cf_dir in $cf_cv_src_modules
28920 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28922 if test "x$cf_with_tests" != "xno" ; then
28923 SRC_SUBDIRS="$SRC_SUBDIRS test"
28925 # always make this, to install the ncurses-config script
28926 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28927 if test "$cf_with_cxx_binding" != no; then
28928 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28929 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28932 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28933 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28936 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28937 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28938 ADA_SUBDIRS="gen src"
28939 if test "x$cf_with_tests" != "xno" ; then
28940 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28945 for cf_dir in $SRC_SUBDIRS
28947 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28950 if test -n "$ADA_SUBDIRS"; then
28951 for cf_dir in $ADA_SUBDIRS
28953 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28958 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28959 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28960 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28961 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28965 for cf_item in $cf_list_models
28969 (libtool) cf_subdir='obj_lo' ;;
28970 (normal) cf_subdir='objects' ;;
28971 (debug) cf_subdir='obj_g' ;;
28972 (profile) cf_subdir='obj_p' ;;
28974 case "$cf_cv_system_name" in
28976 cf_subdir='objects' ;;
28978 cf_subdir='obj_s' ;;
28982 for cf_item2 in $DIRS_TO_MAKE
28984 test "$cf_item2" = "$cf_subdir" && break
28986 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28988 for cf_dir in $DIRS_TO_MAKE
28990 test ! -d "$cf_dir" && mkdir "$cf_dir"
28993 # symbols that differ when compiling Ada95 by itself.
28994 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28996 # values to use as strings
28998 cat >>confdefs.h <<EOF
28999 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
29002 cat >>confdefs.h <<EOF
29003 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
29006 ### Define substitutions for header files to avoid name-pollution
29008 if test "x$cf_cv_have_tcgetattr" = xyes ; then
29014 if test "x$ac_cv_header_stdint_h" = xyes ; then
29020 if test "x$ac_cv_header_termio_h" = xyes ; then
29026 if test "x$ac_cv_header_termios_h" = xyes ; then
29032 ################################################################################
29033 test "x$use_database" = xyes && \
29034 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29036 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29037 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29039 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29040 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29043 if test "x$cf_with_tests" != xno ; then
29049 ADAHTML_DIR=../../doc/html/ada
29051 # workaround for OS/2 (20151017)
29052 case "$cf_cv_system_name" in
29054 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29061 # workaround for g++ versus Solaris (20131116)
29062 case "$cf_cv_system_name" in
29064 case "x$CPPFLAGS" in
29065 (*-D_XOPEN_SOURCE_EXTENDED*)
29066 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29068 echo "${as_me:-configure}:29068: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29070 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29071 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29077 # Help to automatically enable the extended curses features when using either
29078 # the *-config or the ".pc" files by adding defines.
29079 echo "$as_me:29079: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
29080 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
29082 for cf_loop1 in $CPPFLAGS_after_XOPEN
29085 for cf_loop2 in $CPPFLAGS_before_XOPEN
29087 if test "x$cf_loop1" = "x$cf_loop2"
29093 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29095 echo "$as_me:29095: result: $PKG_CFLAGS" >&5
29096 echo "${ECHO_T}$PKG_CFLAGS" >&6
29098 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29099 case "x$NCURSES_OSPEED" in
29108 cat >>confdefs.h <<EOF
29109 #define NCURSES_OSPEED_COMPAT $cf_compatible
29112 case "x$cf_cv_typeof_chtype" in
29113 (xshort|xint|xlong)
29114 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29118 case "x$cf_cv_typeof_mmask_t" in
29119 (xshort|xint|xlong)
29120 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29124 # substitute into misc/Makefile to suppress
29125 # (un)install.data from the
29126 # (un)install rules.
29127 if test "x$cf_with_db_install" = "xno"; then
29129 MISC_UNINSTALL_DATA=
29131 MISC_INSTALL_DATA=install.data
29132 MISC_UNINSTALL_DATA=uninstall.data
29135 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29138 MAKE_DATABASE="$MAKE_TERMINFO"
29141 if test -n "$PACKAGE"
29143 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29145 echo "package: $PACKAGE"
29151 if test -n "$RESULTING_SYMS"
29153 cf_filter_syms=$cf_dft_filter_syms
29154 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
29156 echo "${as_me:-configure}:29156: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
29160 if test "x$WILDCARD_SYMS" = xno
29165 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29167 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29168 if test "$cf_filter_syms" = yes
29170 RESULTING_SYMS=resulting.map
29173 if test "x$cross_compiling" = xyes ; then
29174 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29177 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29181 # This is used for the *-config script and *.pc data files.
29183 echo "$as_me:29183: checking for linker search path" >&5
29184 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29185 if test "${cf_cv_ld_searchpath+set}" = set; then
29186 echo $ECHO_N "(cached) $ECHO_C" >&6
29189 if test "$cross_compiling" != yes ; then
29191 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29192 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29194 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29195 # update the cache, which makes it run faster.
29196 test -z "$cf_pathlist" && \
29197 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29199 test -z "$cf_pathlist" &&
29200 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29202 # This works with OpenBSD 6.5, which lists only filenames
29203 test -z "$cf_pathlist" &&
29204 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29206 if test -z "$cf_pathlist"
29208 # dyld default path with MacOS
29209 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29211 # do this to bypass check
29212 cf_cv_ld_searchpath='$HOME/lib'
29213 cf_pathlist="/usr/local/lib /lib /usr/lib"
29217 if test -z "$cf_pathlist"
29219 # Solaris is "SunOS"
29220 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29222 case x`(isainfo -b)` in
29224 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29227 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29228 cf_pathlist="$cf_pathlist /lib /usr/lib"
29231 { echo "$as_me:29231: WARNING: problem with Solaris architecture" >&5
29232 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29238 if test -z "$cf_pathlist"
29241 if test x"`uname -s`" = xHP-UX
29243 case x`getconf LONG_BIT` in
29245 cf_pathlist="/usr/lib/hpux64"
29248 cf_pathlist="/usr/lib/hpux32"
29256 # If nothing else, assume it is conventional
29257 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29259 # Finally, check that this is only directories
29260 for cf_path in $0 $cf_pathlist
29262 if test -d "$cf_path"; then
29263 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29264 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29268 # Ensure that it is nonempty
29269 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29272 echo "$as_me:29272: result: $cf_cv_ld_searchpath" >&5
29273 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29275 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29277 cat >>confdefs.h <<\EOF
29278 #define HAVE_CURSES_DATA_BOOLNAMES 1
29281 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 man/man_db.renames $SUB_MAKEFILES Makefile"
29282 ac_config_commands="$ac_config_commands default"
29283 cat >confcache <<\_ACEOF
29284 # This file is a shell script that caches the results of configure
29285 # tests run on this system so they can be shared between configure
29286 # scripts and configure runs, see configure's option --config-cache.
29287 # It is not useful on other systems. If it contains results you don't
29288 # want to keep, you may remove or edit it.
29290 # config.status only pays attention to the cache file if you give it
29291 # the --recheck option to rerun configure.
29293 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29295 # following values.
29299 # The following way of writing the cache mishandles newlines in values,
29300 # but we know of no workaround that is simple, portable, and efficient.
29301 # So, don't put newlines in cache variables' values.
29302 # Ultrix sh set writes to stderr and can't be redirected directly,
29303 # and sets the high bit in the cache file unless we assign to the vars.
29306 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29308 # `set' does not quote correctly, so add quotes (double-quote
29309 # substitution turns \\\\ into \\, and sed turns \\ into \).
29312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29315 # `set' quotes correctly as required by POSIX, so do not add quotes.
29317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29326 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29328 if cmp -s $cache_file confcache; then :; else
29329 if test -w $cache_file; then
29330 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29331 cat confcache >$cache_file
29333 echo "not updating unwritable cache $cache_file"
29338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29339 # Let make expand exec_prefix.
29340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29344 # trailing colons and then remove the whole line if VPATH becomes empty
29345 # (actually we leave an empty line to preserve line numbers).
29346 if test "x$srcdir" = x.; then
29347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29348 s/:*\$(srcdir):*/:/;
29349 s/:*\${srcdir}:*/:/;
29351 s/^\([^=]*=[ ]*\):*/\1/;
29357 DEFS=-DHAVE_CONFIG_H
29359 : "${CONFIG_STATUS=./config.status}"
29360 ac_clean_files_save=$ac_clean_files
29361 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29362 { echo "$as_me:29362: creating $CONFIG_STATUS" >&5
29363 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29364 cat >"$CONFIG_STATUS" <<_ACEOF
29366 # Generated automatically by configure.
29367 # Run this file to recreate the current configuration.
29368 # Compiler output produced by configure, useful for debugging
29369 # configure, is in config.log if it exists.
29372 SHELL=\${CONFIG_SHELL-$SHELL}
29373 ac_cs_invocation="\$0 \$@"
29375 CLICOLOR_FORCE= GREP_OPTIONS=
29376 unset CLICOLOR_FORCE GREP_OPTIONS
29379 cat >>"$CONFIG_STATUS" <<\_ACEOF
29380 # Be Bourne compatible
29381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29384 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29388 # Name of the executable.
29389 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29391 if expr a : '\(a\)' >/dev/null 2>&1; then
29397 rm -f conf$$ conf$$.exe conf$$.file
29399 if ln -s conf$$.file conf$$ 2>/dev/null; then
29400 # We could just check for DJGPP; but this test a) works b) is more generic
29401 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29402 if test -f conf$$.exe; then
29403 # Don't use ln at all; we don't have any links
29408 elif ln conf$$.file conf$$ 2>/dev/null; then
29413 rm -f conf$$ conf$$.exe conf$$.file
29415 as_executable_p="test -f"
29417 # Support unset when possible.
29418 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29425 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29426 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29427 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29428 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29429 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29430 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29431 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29432 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29435 # We need space, tab and new line, in precisely that order.
29441 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29447 # Files that config.status was made for.
29448 if test -n "$ac_config_files"; then
29449 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29452 if test -n "$ac_config_headers"; then
29453 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29456 if test -n "$ac_config_links"; then
29457 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29460 if test -n "$ac_config_commands"; then
29461 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29464 cat >>"$CONFIG_STATUS" <<\EOF
29467 \`$as_me' instantiates files from templates according to the
29468 current configuration.
29470 Usage: $0 [OPTIONS] [FILE]...
29472 -h, --help print this help, then exit
29473 -V, --version print version number, then exit
29474 -d, --debug don't remove temporary files
29475 --recheck update $as_me by reconfiguring in the same conditions
29476 --file=FILE[:TEMPLATE]
29477 instantiate the configuration file FILE
29478 --header=FILE[:TEMPLATE]
29479 instantiate the configuration header FILE
29481 Configuration files:
29484 Configuration headers:
29487 Configuration commands:
29490 Report bugs to <dickey@invisible-island.net>."
29493 cat >>"$CONFIG_STATUS" <<EOF
29496 configured by $0, generated by GNU Autoconf 2.52.20210509,
29497 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29499 Copyright 2003-2020,2021 Thomas E. Dickey
29500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29501 Free Software Foundation, Inc.
29502 This config.status script is free software; the Free Software Foundation
29503 gives unlimited permission to copy, distribute and modify it."
29508 cat >>"$CONFIG_STATUS" <<\EOF
29509 # If no file are specified by the user, then we need to provide default
29510 # value. By we need to know if files were specified by the user.
29516 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29517 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29519 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29523 *) # This is not an option, so the user has probably given explicit
29525 ac_need_defaults=false;;
29529 # Handling of the options.
29531 cat >>"$CONFIG_STATUS" <<EOF
29532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29533 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29534 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29536 cat >>"$CONFIG_STATUS" <<\EOF
29537 --version | --vers* | -V )
29538 echo "$ac_cs_version"; exit 0 ;;
29540 # Conflict between --help and --header
29541 { { echo "$as_me:29541: error: ambiguous option: $1
29542 Try \`$0 --help' for more information." >&5
29543 echo "$as_me: error: ambiguous option: $1
29544 Try \`$0 --help' for more information." >&2;}
29545 { (exit 1); exit 1; }; };;
29546 --help | --hel | -h )
29547 echo "$ac_cs_usage"; exit 0 ;;
29548 --debug | --d* | -d )
29550 --file | --fil | --fi | --f )
29552 CONFIG_FILES="$CONFIG_FILES $1"
29553 ac_need_defaults=false;;
29554 --header | --heade | --head | --hea )
29556 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29557 ac_need_defaults=false;;
29559 # This is an error.
29560 -*) { { echo "$as_me:29560: error: unrecognized option: $1
29561 Try \`$0 --help' for more information." >&5
29562 echo "$as_me: error: unrecognized option: $1
29563 Try \`$0 --help' for more information." >&2;}
29564 { (exit 1); exit 1; }; } ;;
29566 *) ac_config_targets="$ac_config_targets $1" ;;
29575 ## ----------------------- ##
29576 ## Running config.status. ##
29577 ## ----------------------- ##
29579 This file was extended by $as_me 2.52.20210509, executed with
29580 CONFIG_FILES = $CONFIG_FILES
29581 CONFIG_HEADERS = $CONFIG_HEADERS
29582 CONFIG_LINKS = $CONFIG_LINKS
29583 CONFIG_COMMANDS = $CONFIG_COMMANDS
29584 > "$ac_cs_invocation"
29585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29590 cat >>"$CONFIG_STATUS" <<EOF
29592 # INIT-COMMANDS section.
29595 ### Special initialization commands, used to pass information from the
29596 ### configuration-run into config.status
29598 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29600 CXX_NAME="$CXX_NAME"
29601 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29602 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29604 EGREP="${EGREP-grep -E}"
29605 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29606 FGREP="${FGREP-grep -F}"
29607 FORM_NAME="$FORM_NAME"
29608 LDCONFIG="$LDCONFIG"
29609 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29610 LIB_NAME="$LIB_NAME"
29611 LIB_PREFIX="$LIB_PREFIX"
29612 LIB_SUBSETS="$LIB_SUBSETS"
29613 LIB_SUFFIX="$LIB_SUFFIX"
29614 LIB_TRACING="$LIB_TRACING"
29616 MAKE_TERMINFO="$MAKE_TERMINFO"
29617 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29618 MENU_NAME="$MENU_NAME"
29619 NCURSES_MAJOR="$NCURSES_MAJOR"
29620 NCURSES_MINOR="$NCURSES_MINOR"
29621 NCURSES_OSPEED="$NCURSES_OSPEED"
29622 NCURSES_PATCH="$NCURSES_PATCH"
29623 PANEL_NAME="$PANEL_NAME"
29624 SRC_SUBDIRS="$SRC_SUBDIRS"
29625 TERMINFO="$TERMINFO"
29626 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29627 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29628 TICS_NAME="$TICS_NAME"
29629 TICS_SUFFIX="$TICS_SUFFIX"
29630 TIC_PATH="$TIC_PATH"
29631 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29632 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29633 TINFO_NAME="$TINFO_NAME"
29634 TINFO_SUFFIX="$TINFO_SUFFIX"
29635 UNALTERED_SYMS="$UNALTERED_SYMS"
29636 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29637 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29638 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29639 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29640 WILDCARD_SYMS="$WILDCARD_SYMS"
29641 WITH_CURSES_H="$with_curses_h"
29642 WITH_ECHO="${enable_echo:=yes}"
29643 WITH_OVERWRITE="$with_overwrite"
29644 cf_LIST_MODELS="$cf_list_models"
29645 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29646 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29647 cf_cv_abi_version="$cf_cv_abi_version"
29648 cf_cv_do_relink="$cf_cv_do_relink"
29649 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29650 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29651 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29652 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29653 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29654 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29655 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29656 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29657 cf_cv_rel_version="$cf_cv_rel_version"
29658 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29659 cf_cv_shared_soname='$cf_cv_shared_soname'
29660 cf_cv_shlib_version="$cf_cv_shlib_version"
29661 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29662 cf_cv_system_name="$cf_cv_system_name"
29663 cf_cv_term_driver="$with_term_driver"
29664 cf_with_ada="$cf_with_ada"
29665 cf_with_cxx_binding="$cf_with_cxx_binding"
29666 cf_with_db_install="$cf_with_db_install"
29667 cf_with_manpages="$cf_with_manpages"
29668 cf_with_tests="$cf_with_tests"
29672 with_shared_cxx="$with_shared_cxx"
29676 cat >>"$CONFIG_STATUS" <<\EOF
29677 for ac_config_target in $ac_config_targets
29679 case "$ac_config_target" in
29680 # Handling of arguments.
29681 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29682 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29683 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29684 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29685 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29686 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29687 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29688 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29689 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29690 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29691 *) { { echo "$as_me:29691: error: invalid argument: $ac_config_target" >&5
29692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29693 { (exit 1); exit 1; }; };;
29697 # If the user did not use the arguments to specify the items to instantiate,
29698 # then the envvar interface is used. Set only those that are not.
29699 # We use the long form for the default assignment because of an extremely
29700 # bizarre bug on SunOS 4.1.3.
29701 if "$ac_need_defaults"; then
29702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29707 # Create a temporary directory, and hook for its removal unless debugging.
29710 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29711 trap '{ (exit 1); exit 1; }' 1 2 13 15
29714 # Create a (secure) tmp directory for tmp files.
29717 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29718 test -n "$tmp" && test -d "$tmp"
29721 tmp=$TMPDIR/cs$$-$RANDOM
29722 (umask 077 && mkdir $tmp)
29725 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29726 { (exit 1); exit 1; }
29731 cat >>"$CONFIG_STATUS" <<EOF
29734 # CONFIG_FILES section.
29737 # No need to generate the scripts if there are no CONFIG_FILES.
29738 # This happens for instance when ./config.status config.h
29739 if test -n "\$CONFIG_FILES"; then
29740 # Protect against being on the right side of a sed subst in config.status.
29741 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29742 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29743 s,@SHELL@,$SHELL,;t t
29744 s,@exec_prefix@,$exec_prefix,;t t
29745 s,@prefix@,$prefix,;t t
29746 s,@program_transform_name@,$program_transform_name,;t t
29747 s,@bindir@,$bindir,;t t
29748 s,@sbindir@,$sbindir,;t t
29749 s,@libexecdir@,$libexecdir,;t t
29750 s,@datarootdir@,$datarootdir,;t t
29751 s,@datadir@,$datadir,;t t
29752 s,@sysconfdir@,$sysconfdir,;t t
29753 s,@sharedstatedir@,$sharedstatedir,;t t
29754 s,@localstatedir@,$localstatedir,;t t
29755 s,@runstatedir@,$runstatedir,;t t
29756 s,@libdir@,$libdir,;t t
29757 s,@includedir@,$includedir,;t t
29758 s,@oldincludedir@,$oldincludedir,;t t
29759 s,@infodir@,$infodir,;t t
29760 s,@mandir@,$mandir,;t t
29761 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29762 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29763 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29764 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29765 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29766 s,@build_alias@,$build_alias,;t t
29767 s,@host_alias@,$host_alias,;t t
29768 s,@target_alias@,$target_alias,;t t
29769 s,@ECHO_C@,$ECHO_C,;t t
29770 s,@ECHO_N@,$ECHO_N,;t t
29771 s,@ECHO_T@,$ECHO_T,;t t
29772 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29773 s,@DEFS@,$DEFS,;t t
29774 s,@LIBS@,$LIBS,;t t
29775 s,@top_builddir@,$top_builddir,;t t
29776 s,@GREP@,$GREP,;t t
29777 s,@EGREP@,$EGREP,;t t
29778 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29779 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29780 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29781 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29782 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29783 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29784 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29785 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29786 s,@VERSION@,$VERSION,;t t
29787 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29788 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29789 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29790 s,@PACKAGE@,$PACKAGE,;t t
29791 s,@build@,$build,;t t
29792 s,@build_cpu@,$build_cpu,;t t
29793 s,@build_vendor@,$build_vendor,;t t
29794 s,@build_os@,$build_os,;t t
29795 s,@host@,$host,;t t
29796 s,@host_cpu@,$host_cpu,;t t
29797 s,@host_vendor@,$host_vendor,;t t
29798 s,@host_os@,$host_os,;t t
29799 s,@target@,$target,;t t
29800 s,@target_cpu@,$target_cpu,;t t
29801 s,@target_vendor@,$target_vendor,;t t
29802 s,@target_os@,$target_os,;t t
29803 s,@FGREP@,$FGREP,;t t
29805 s,@CFLAGS@,$CFLAGS,;t t
29806 s,@LDFLAGS@,$LDFLAGS,;t t
29807 s,@CPPFLAGS@,$CPPFLAGS,;t t
29808 s,@ac_ct_CC@,$ac_ct_CC,;t t
29809 s,@EXEEXT@,$EXEEXT,;t t
29810 s,@OBJEXT@,$OBJEXT,;t t
29811 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29813 s,@LDCONFIG@,$LDCONFIG,;t t
29815 s,@CXXFLAGS@,$CXXFLAGS,;t t
29816 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29818 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29819 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29820 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29821 s,@LINT@,$LINT,;t t
29822 s,@LINT_OPTS@,$LINT_OPTS,;t t
29823 s,@LINT_LIBS@,$LINT_LIBS,;t t
29824 s,@LN_S@,$LN_S,;t t
29825 s,@cf_config_suffix@,$cf_config_suffix,;t t
29826 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29827 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29828 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29829 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29830 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29831 s,@SET_MAKE@,$SET_MAKE,;t t
29832 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29833 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29834 s,@CTAGS@,$CTAGS,;t t
29835 s,@ETAGS@,$ETAGS,;t t
29836 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29837 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29838 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29839 s,@RANLIB@,$RANLIB,;t t
29840 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29842 s,@ac_ct_LD@,$ac_ct_LD,;t t
29844 s,@ac_ct_AR@,$ac_ct_AR,;t t
29846 s,@ac_ct_NM@,$ac_ct_NM,;t t
29847 s,@ARFLAGS@,$ARFLAGS,;t t
29848 s,@DESTDIR@,$DESTDIR,;t t
29849 s,@BUILD_CC@,$BUILD_CC,;t t
29850 s,@BUILD_CPP@,$BUILD_CPP,;t t
29851 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29852 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29853 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29854 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29855 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29856 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29857 s,@cf_list_models@,$cf_list_models,;t t
29858 s,@ABI_VERSION@,$ABI_VERSION,;t t
29859 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29860 s,@LIBTOOL@,$LIBTOOL,;t t
29861 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29862 s,@LT_UNDEF@,$LT_UNDEF,;t t
29863 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29864 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29865 s,@LIB_CREATE@,$LIB_CREATE,;t t
29866 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29867 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29868 s,@LIB_PREP@,$LIB_PREP,;t t
29869 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29870 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29871 s,@LIB_LINK@,$LIB_LINK,;t t
29872 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29873 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29874 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29875 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29876 s,@TICS_NAME@,$TICS_NAME,;t t
29877 s,@TINFO_NAME@,$TINFO_NAME,;t t
29878 s,@LIB_NAME@,$LIB_NAME,;t t
29879 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29880 s,@CC_G_OPT@,$CC_G_OPT,;t t
29881 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29882 s,@LD_MODEL@,$LD_MODEL,;t t
29883 s,@shlibdir@,$shlibdir,;t t
29884 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29885 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29886 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29887 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29888 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29889 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29890 s,@LINK_PROGS@,$LINK_PROGS,;t t
29891 s,@LINK_TESTS@,$LINK_TESTS,;t t
29892 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29893 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29894 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29895 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29896 s,@RPATH_LIST@,$RPATH_LIST,;t t
29897 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29898 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29899 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29900 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29901 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29902 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29903 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29904 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29905 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29907 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29908 s,@INFOCMP@,$INFOCMP,;t t
29909 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29910 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29911 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29912 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29913 s,@XTERM_KBS@,$XTERM_KBS,;t t
29914 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29915 s,@TERMINFO@,$TERMINFO,;t t
29916 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29917 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29918 s,@TERMPATH@,$TERMPATH,;t t
29919 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29920 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29921 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29922 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29923 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29924 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29925 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29926 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29927 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29928 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29929 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29930 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29931 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29932 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29933 s,@RGB_PATH@,$RGB_PATH,;t t
29934 s,@no_x11_rgb@,$no_x11_rgb,;t t
29935 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29936 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29937 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29938 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29939 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29940 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29941 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29942 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29943 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29944 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29945 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29946 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29947 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29948 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29949 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29950 s,@PTHREAD@,$PTHREAD,;t t
29951 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29952 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29953 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29954 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29955 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29956 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29957 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29958 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29959 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29960 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29961 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29962 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29963 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29964 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29965 s,@ECHO_LT@,$ECHO_LT,;t t
29966 s,@ECHO_LD@,$ECHO_LD,;t t
29967 s,@RULE_CC@,$RULE_CC,;t t
29968 s,@SHOW_CC@,$SHOW_CC,;t t
29969 s,@ECHO_CC@,$ECHO_CC,;t t
29970 s,@ECHO_LINK@,$ECHO_LINK,;t t
29971 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29972 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29973 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29974 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29975 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29976 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29977 s,@ADAFLAGS@,$ADAFLAGS,;t t
29978 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29979 s,@ADA_TRACE@,$ADA_TRACE,;t t
29980 s,@MATH_LIB@,$MATH_LIB,;t t
29981 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29982 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29983 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29984 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29985 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29986 s,@TEST_LIBS@,$TEST_LIBS,;t t
29987 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29988 s,@CXXCPP@,$CXXCPP,;t t
29989 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29990 s,@CXX_AR@,$CXX_AR,;t t
29991 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29992 s,@CXXLIBS@,$CXXLIBS,;t t
29993 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29994 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29995 s,@M4_exists@,$M4_exists,;t t
29996 s,@cf_ada_make@,$cf_ada_make,;t t
29997 s,@cf_ada_config@,$cf_ada_config,;t t
29998 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29999 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
30000 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
30001 s,@cf_compile_generics@,$cf_compile_generics,;t t
30002 s,@cf_generic_objects@,$cf_generic_objects,;t t
30003 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
30004 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
30005 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
30006 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
30007 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
30008 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
30009 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
30010 s,@cf_ada_package@,$cf_ada_package,;t t
30011 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
30012 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
30013 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
30014 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
30015 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
30016 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
30017 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
30018 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
30019 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30020 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30021 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30022 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30023 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30024 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30025 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30026 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30027 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30028 s,@TICS_LIBS@,$TICS_LIBS,;t t
30029 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30030 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30031 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30032 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30033 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30034 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30035 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30036 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30037 s,@includesubdir@,$includesubdir,;t t
30038 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30039 s,@TICS_LIST@,$TICS_LIST,;t t
30040 s,@TINFO_LIST@,$TINFO_LIST,;t t
30041 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30042 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
30043 s,@FORM_NAME@,$FORM_NAME,;t t
30044 s,@MENU_NAME@,$MENU_NAME,;t t
30045 s,@PANEL_NAME@,$PANEL_NAME,;t t
30046 s,@CXX_NAME@,$CXX_NAME,;t t
30047 s,@TEST_ARGS@,$TEST_ARGS,;t t
30048 s,@TEST_DEPS@,$TEST_DEPS,;t t
30049 s,@TEST_ARG2@,$TEST_ARG2,;t t
30050 s,@TEST_DEP2@,$TEST_DEP2,;t t
30051 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30052 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30053 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30054 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30055 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30056 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30057 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30058 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30059 s,@cross_compiling@,$cross_compiling,;t t
30060 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30061 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30062 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30063 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30064 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30065 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30066 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30067 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30068 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30069 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30070 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30071 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30076 cat >>"$CONFIG_STATUS" <<\EOF
30077 # Split the substitutions into bite-sized pieces for seds with
30078 # small command number limits, like on Digital OSF/1 and HP-UX.
30079 ac_max_sed_lines=48
30080 ac_sed_frag=1 # Number of current file.
30081 ac_beg=1 # First line for current file.
30082 ac_end=$ac_max_sed_lines # Line after last line for current file.
30085 while "$ac_more_lines"; do
30086 if test "$ac_beg" -gt 1; then
30087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30091 if test ! -s $tmp/subs.frag; then
30092 ac_more_lines=false
30094 # The purpose of the label and of the branching condition is to
30095 # speed up the sed processing (if there are no `@' at all, there
30096 # is no need to browse any of the substitutions).
30097 # These are the two extra sed commands mentioned above.
30099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30100 # It is possible to make a multiline substitution using escaped newlines.
30101 # Ensure that we do not split the substitution between script fragments.
30103 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30104 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
30105 if test -s $tmp/subs.next; then
30106 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
30107 if test ! -s $tmp/subs.edit; then
30108 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
30109 if test ! -s $tmp/subs.edit; then
30110 if test "$ac_beg" -gt 1; then
30111 ac_end=`expr "$ac_end" - 1`
30118 if test -z "$ac_sed_cmds"; then
30119 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30121 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30123 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30125 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30128 if test -z "$ac_sed_cmds"; then
30131 fi # test -n "$CONFIG_FILES"
30134 cat >>"$CONFIG_STATUS" <<\EOF
30135 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30138 - | *:- | *:-:* ) # input from stdin
30140 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30142 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30144 * ) ac_file_in=$ac_file.in ;;
30147 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30148 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30149 X"$ac_file" : 'X\(//\)[^/]' \| \
30150 X"$ac_file" : 'X\(//\)$' \| \
30151 X"$ac_file" : 'X\(/\)' \| \
30152 . : '\(.\)' 2>/dev/null ||
30154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30156 /^X\(\/\/\)$/{ s//\1/; q; }
30157 /^X\(\/\).*/{ s//\1/; q; }
30159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30160 { case "$ac_dir" in
30161 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30165 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30166 case $as_mkdir_dir in
30167 # Skip DOS drivespec
30168 ?:) as_incr_dir=$as_mkdir_dir ;;
30170 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30171 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30176 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
30177 # A "../" for each directory in $ac_dir_suffix.
30178 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30180 ac_dir_suffix= ac_dots=
30185 if test -z "$ac_dots"; then
30188 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30190 [\\/]* | ?:[\\/]* )
30191 ac_srcdir="$srcdir$ac_dir_suffix";
30192 ac_top_srcdir="$srcdir" ;;
30193 *) # Relative path.
30194 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30195 ac_top_srcdir="$ac_dots$srcdir" ;;
30199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30200 *) ac_INSTALL=$ac_dots$INSTALL ;;
30203 if test x"$ac_file" != x-; then
30204 { echo "$as_me:30204: creating $ac_file" >&5
30205 echo "$as_me: creating $ac_file" >&6;}
30208 # Let's still pretend it is `configure' which instantiates (i.e., don't
30209 # use $as_me), people would be surprised to read:
30210 # /* config.h. Generated automatically by config.status. */
30211 configure_input="Generated automatically from `echo $ac_file_in |
30212 sed 's,.*/,,'` by configure."
30214 # First look for the input files in the build tree, otherwise in the
30216 ac_file_inputs=`IFS=:
30217 for f in $ac_file_in; do
30219 -) echo $tmp/stdin ;;
30221 # Absolute (can't be DOS-style, as IFS=:)
30222 test -f "$f" || { { echo "$as_me:30222: error: cannot find input file: $f" >&5
30223 echo "$as_me: error: cannot find input file: $f" >&2;}
30224 { (exit 1); exit 1; }; }
30227 if test -f "$f"; then
30230 elif test -f "$srcdir/$f"; then
30235 { { echo "$as_me:30235: error: cannot find input file: $f" >&5
30236 echo "$as_me: error: cannot find input file: $f" >&2;}
30237 { (exit 1); exit 1; }; }
30240 done` || { (exit 1); exit 1; }
30242 cat >>"$CONFIG_STATUS" <<\EOF
30243 ac_warn_datarootdir=no
30244 if test x"$ac_file" != x-; then
30245 for ac_item in $ac_file_inputs
30247 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30248 if test -n "$ac_seen"; then
30249 ac_used=`grep '@datarootdir@' "$ac_item"`
30250 if test -z "$ac_used"; then
30251 { echo "$as_me:30251: WARNING: datarootdir was used implicitly but not set:
30253 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30255 ac_warn_datarootdir=yes
30258 ac_seen=`grep '${datarootdir}' "$ac_item"`
30259 if test -n "$ac_seen"; then
30260 { echo "$as_me:30260: WARNING: datarootdir was used explicitly but not set:
30262 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30264 ac_warn_datarootdir=yes
30269 if test "x$ac_warn_datarootdir" = xyes; then
30270 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30274 cat >>"$CONFIG_STATUS" <<EOF
30278 cat >>"$CONFIG_STATUS" <<\EOF
30280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30281 s,@configure_input@,$configure_input,;t t
30282 s,@srcdir@,$ac_srcdir,;t t
30283 s,@top_srcdir@,$ac_top_srcdir,;t t
30284 s,@INSTALL@,$ac_INSTALL,;t t
30285 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30287 if test x"$ac_file" != x-; then
30288 cp "$tmp/out" "$ac_file"
30290 for ac_name in prefix exec_prefix datarootdir
30292 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
30293 if test -n "$ac_seen"; then
30294 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30295 if test -z "$ac_init"; then
30296 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
30297 { echo "$as_me:30297: WARNING: Variable $ac_name is used but was not set:
30299 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30304 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
30305 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
30306 if test -s $tmp/out; then
30307 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
30308 { echo "$as_me:30308: WARNING: Some variables may not be substituted:
30310 echo "$as_me: WARNING: Some variables may not be substituted:
30320 cat >>"$CONFIG_STATUS" <<\EOF
30323 # CONFIG_HEADER section.
30326 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30327 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30329 # ac_d sets the value in "#define NAME VALUE" lines.
30330 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30331 ac_dB='[ ].*$,\1#\2'
30334 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30335 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30336 ac_iB='\([ ]\),\1#\2define\3'
30339 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30340 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30341 ac_uB='$,\1#\2define\3'
30345 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30348 - | *:- | *:-:* ) # input from stdin
30350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30354 * ) ac_file_in=$ac_file.in ;;
30357 test x"$ac_file" != x- && { echo "$as_me:30357: creating $ac_file" >&5
30358 echo "$as_me: creating $ac_file" >&6;}
30360 # First look for the input files in the build tree, otherwise in the
30362 ac_file_inputs=`IFS=:
30363 for f in $ac_file_in; do
30365 -) echo $tmp/stdin ;;
30367 # Absolute (can't be DOS-style, as IFS=:)
30368 test -f "$f" || { { echo "$as_me:30368: error: cannot find input file: $f" >&5
30369 echo "$as_me: error: cannot find input file: $f" >&2;}
30370 { (exit 1); exit 1; }; }
30373 if test -f "$f"; then
30376 elif test -f "$srcdir/$f"; then
30381 { { echo "$as_me:30381: error: cannot find input file: $f" >&5
30382 echo "$as_me: error: cannot find input file: $f" >&2;}
30383 { (exit 1); exit 1; }; }
30386 done` || { (exit 1); exit 1; }
30387 # Remove the trailing spaces.
30388 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30392 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30393 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30394 # be either 'cat' or 'sort'.
30395 cat confdefs.h | uniq >conftest.vals
30397 # Break up conftest.vals because some shells have a limit on
30398 # the size of here documents, and old seds have small limits too.
30400 rm -f conftest.tail
30401 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30402 while grep . conftest.vals >/dev/null
30404 # Write chunks of a limited-size here document to conftest.frag.
30405 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30406 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30407 echo 'CEOF' >> "$CONFIG_STATUS"
30408 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30409 rm -f conftest.vals
30410 mv conftest.tail conftest.vals
30412 rm -f conftest.vals
30414 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30416 echo ' cat >> conftest.edit <<CEOF
30417 /@DEFS@/r conftest.frag
30420 sed -f conftest.edit $tmp/in > $tmp/out
30422 mv $tmp/out $tmp/in
30423 rm -f conftest.edit conftest.frag
30424 ' >> "$CONFIG_STATUS"
30426 cat >>"$CONFIG_STATUS" <<\EOF
30427 # Let's still pretend it is `configure' which instantiates (i.e., don't
30428 # use $as_me), people would be surprised to read:
30429 # /* config.h. Generated automatically by config.status. */
30430 if test x"$ac_file" = x-; then
30431 echo "/* Generated automatically by configure. */" >$tmp/config.h
30433 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
30435 cat $tmp/in >>$tmp/config.h
30437 if test x"$ac_file" != x-; then
30438 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30439 { echo "$as_me:30439: $ac_file is unchanged" >&5
30440 echo "$as_me: $ac_file is unchanged" >&6;}
30442 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30443 X"$ac_file" : 'X\(//\)[^/]' \| \
30444 X"$ac_file" : 'X\(//\)$' \| \
30445 X"$ac_file" : 'X\(/\)' \| \
30446 . : '\(.\)' 2>/dev/null ||
30448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30450 /^X\(\/\/\)$/{ s//\1/; q; }
30451 /^X\(\/\).*/{ s//\1/; q; }
30453 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30454 { case "$ac_dir" in
30455 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30459 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30460 case $as_mkdir_dir in
30461 # Skip DOS drivespec
30462 ?:) as_incr_dir=$as_mkdir_dir ;;
30464 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30465 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30472 mv "$tmp/config.h" "$ac_file"
30476 rm -f $tmp/config.h
30480 cat >>"$CONFIG_STATUS" <<\EOF
30482 # CONFIG_COMMANDS section.
30484 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30485 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30486 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30490 if test "x$cf_with_tests" != xno ; then
30494 if test ! -d "$srcdir/$cf_dir" ; then
30496 elif test -f "$srcdir/$cf_dir/programs" ; then
30497 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30503 cf_prefix=$LIB_PREFIX
30505 case "$cf_cv_shlib_version" in
30506 (cygdll|msysdll|mingw|msvcdll)
30507 TINFO_NAME=$TINFO_ARG_SUFFIX
30512 if test -n "$TINFO_SUFFIX" ; then
30513 case "$TINFO_SUFFIX" in
30515 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30516 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30519 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30520 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30523 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30524 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30529 for cf_dir in $SRC_SUBDIRS
30531 if test ! -d "$srcdir/$cf_dir" ; then
30533 elif test -f "$srcdir/$cf_dir/modules" ; then
30538 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
30540 cf_awk_program="$cf_awk_program\
30541 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
30542 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
30546 if test "x$WILDCARD_SYMS" = xno
30548 cf_awk_program="$cf_awk_program\
30549 /[ ]_\\*;/ { skip=1; next; }\
30553 if test "x$cf_awk_program" != "x"
30555 cat >>$cf_dir/Makefile <<CF_EOF
30557 # Generated by CF_LIB_RULES
30558 resulting.map: $UNALTERED_SYMS
30559 $AWK 'BEGIN { skip = 1; last=""; } \
30561 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30562 skip = 0; last = \$\$0; } \
30563 END { print last; }' < "$UNALTERED_SYMS" >\$@
30566 rm -f resulting.map
30570 for cf_item in $cf_LIST_MODELS
30576 cf_depsuf=$cf_suffix
30579 case "$cf_cv_system_name" in
30587 cf_depsuf=$cf_suffix
30590 case "$cf_cv_system_name" in
30598 cf_depsuf=$cf_suffix
30601 case "$cf_cv_system_name" in
30604 cf_depsuf=$cf_suffix
30608 cf_depsuf='.dll.lib'
30610 (cygwin*|msys*|mingw*)
30616 cf_depsuf=$cf_suffix
30622 cf_depsuf=$cf_suffix
30626 cf_depsuf=$cf_suffix
30632 cf_depsuf=$cf_suffix
30645 cf_depsuf=$cf_suffix
30648 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30650 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30651 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30654 if test "$cf_dir" = "c++"
30657 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30659 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30663 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30665 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30668 test -z "$cf_libname" && cf_libname="$cf_dir"
30669 if test "$cf_item" = shared ; then
30670 if test -n "${LIB_SUFFIX}"
30672 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30674 cf_shared_suffix="$cf_suffix"
30676 if test "$cf_cv_do_symlinks" = yes ; then
30679 case "$cf_cv_shlib_version" in
30681 cf_version_name=REL_VERSION
30684 cf_version_name=ABI_VERSION
30688 if test -n "$cf_version_name"
30690 case "$cf_cv_system_name" in
30693 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30696 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30700 if test -n "${USE_LIB_SUFFIX}"
30702 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30704 cf_shared_suffix="$cf_suffix"
30707 # cygwin needs import library, and has unique naming convention
30708 # use autodetected ${cf_prefix} for import lib and static lib, but
30709 # use 'cyg' prefix for shared lib.
30710 case "$cf_cv_shlib_version" in
30712 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30713 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30716 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30717 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30720 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30721 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30724 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30725 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30731 if test -n "$cf_add_lib"
30733 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30737 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30738 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30741 if test "$cf_dir" = ncurses ; then
30742 cf_subsets="$LIB_SUBSETS"
30743 cf_r_parts="$cf_subsets"
30744 cf_liblist="$Libs_To_Make"
30746 while test -n "$cf_r_parts"
30748 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30749 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30750 if test "$cf_l_parts" != "$cf_r_parts" ; then
30752 case "$cf_l_parts" in
30754 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30757 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30763 if test -n "$cf_add_lib"; then
30764 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30771 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30774 if test "$cf_dir" = c++; then
30775 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30777 for cf_item in $Libs_To_Make
30783 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30786 for cf_test in $cf_list
30788 if test "$cf_test" = "$cf_item"
30790 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30795 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30797 Libs_To_Make="$cf_list"
30801 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30802 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30803 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30804 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30806 $AWK -f "$srcdir/mk-0th.awk" \
30807 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30808 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30810 for cf_subset in $cf_subsets
30813 for cf_item in $cf_LIST_MODELS
30816 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30818 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30821 if test "$CXX_MODEL" = SHARED; then
30822 case "$cf_cv_shlib_version" in
30823 (cygdll|msysdll|mingw|msvcdll)
30824 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30826 echo "${as_me:-configure}:30826: testing overriding CXX_MODEL to SHARED ..." 1>&5
30828 with_shared_cxx=yes
30831 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30839 cf_depsuf=$cf_suffix
30842 case "$cf_cv_system_name" in
30850 cf_depsuf=$cf_suffix
30853 case "$cf_cv_system_name" in
30861 cf_depsuf=$cf_suffix
30864 case "$cf_cv_system_name" in
30867 cf_depsuf=$cf_suffix
30871 cf_depsuf='.dll.lib'
30873 (cygwin*|msys*|mingw*)
30879 cf_depsuf=$cf_suffix
30885 cf_depsuf=$cf_suffix
30889 cf_depsuf=$cf_suffix
30895 cf_depsuf=$cf_suffix
30908 cf_depsuf=$cf_suffix
30911 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30913 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30914 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30918 (libtool) cf_subdir='obj_lo' ;;
30919 (normal) cf_subdir='objects' ;;
30920 (debug) cf_subdir='obj_g' ;;
30921 (profile) cf_subdir='obj_p' ;;
30923 case "$cf_cv_system_name" in
30925 cf_subdir='objects' ;;
30927 cf_subdir='obj_s' ;;
30931 # Test for case where we build libtinfo with a different name.
30933 if test "$cf_dir" = ncurses ; then
30934 case "$cf_subset" in
30936 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30939 cf_libname=$TINFO_LIB_SUFFIX
30942 cf_libname=$TICS_LIB_SUFFIX
30945 elif test "$cf_dir" = c++ ; then
30947 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30949 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30951 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30954 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30956 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30958 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30960 if test -n "${USE_ARG_SUFFIX}" ; then
30961 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30962 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30965 # These dependencies really are for development, not
30966 # builds, but they are useful in porting, too.
30967 cf_depend="../include/ncurses_cfg.h"
30968 if test "$srcdir" = "."; then
30971 cf_reldir="\${srcdir}"
30974 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30975 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30976 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30977 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30981 old_cf_suffix="$cf_suffix"
30982 if test "$cf_cv_shlib_version_infix" = yes ; then
30983 if test -n "$USE_LIB_SUFFIX" ; then
30984 case "$USE_LIB_SUFFIX" in
30986 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30987 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30988 cf_dir_suffix=tw$EXTRA_SUFFIX
30991 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30992 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30993 cf_dir_suffix=t$EXTRA_SUFFIX
30996 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30997 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30998 cf_dir_suffix=w$EXTRA_SUFFIX
31001 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
31002 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
31003 cf_dir_suffix=$EXTRA_SUFFIX
31009 $AWK -f "$srcdir/mk-1st.awk" \
31010 name=${cf_libname}${cf_dir_suffix} \
31011 traces=$LIB_TRACING \
31013 CXX_MODEL=$CXX_MODEL \
31014 LIB_SUFFIX=$LIB_SUFFIX \
31015 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31016 make_phony="${cf_cv_make_PHONY:-no}" \
31018 prefix=$cf_prefix \
31019 suffix=$cf_suffix \
31020 subset=$cf_subset \
31021 driver=$cf_cv_term_driver \
31023 TermlibRoot=$TINFO_NAME \
31024 TermlibSuffix=$TINFO_SUFFIX \
31025 ShlibVer=$cf_cv_shlib_version \
31026 ShlibVerInfix=$cf_cv_shlib_version_infix \
31027 ReLink=${cf_cv_do_relink:-no} \
31028 ReRanlib=${cf_cv_do_reranlib:-yes} \
31029 DoLinks=$cf_cv_do_symlinks \
31030 rmSoLocs=$cf_cv_rm_so_locs \
31031 ldconfig="$LDCONFIG" \
31032 overwrite=$WITH_OVERWRITE \
31033 depend="$cf_depend" \
31035 libtool_version="$LIBTOOL_VERSION" \
31036 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31038 cf_suffix="$old_cf_suffix"
31040 for cf_subdir2 in $cf_subdirs lib
31042 test "$cf_subdir" = "$cf_subdir2" && break
31044 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31045 $AWK -f "$srcdir/mk-2nd.awk" \
31047 traces=$LIB_TRACING \
31050 subset=$cf_subset \
31053 crenames=$cf_cv_prog_CC_c_o \
31054 cxxrenames=$cf_cv_prog_CXX_c_o \
31055 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31056 cf_subdirs="$cf_subdirs $cf_subdir"
31061 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31065 echo '# generated by CF_LIB_RULES' >> Makefile
31067 if test "x$cf_cv_make_PHONY" = xyes ; then
31068 cat >> Makefile <<-CF_EOF
31072 .PHONY : install.includes
31073 .PHONY : uninstall.includes
31074 .PHONY : install.libs
31075 .PHONY : uninstall.libs
31079 for cf_dir in $SRC_SUBDIRS
31081 if test ! -d "$srcdir/$cf_dir" ; then
31085 if test -f "$cf_dir/Makefile" ; then
31088 echo 'libs \' >> Makefile
31089 echo 'install.libs \' >> Makefile
31090 echo 'uninstall.libs ::' >> Makefile
31091 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31096 if test -f "$srcdir/$cf_dir/modules" ; then
31098 if test "x$cf_cv_make_PHONY" = xyes ; then
31099 cat >> Makefile <<-CF_EOF
31101 .PHONY : install.$cf_dir
31102 .PHONY : uninstall.$cf_dir
31107 if test -f "$srcdir/$cf_dir/headers" ; then
31108 cat >> Makefile <<CF_EOF
31109 install.includes \\
31110 uninstall.includes \\
31114 cat >> Makefile <<CF_EOF
31121 uninstall.$cf_dir ::
31122 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31124 elif test -f "$srcdir/$cf_dir/headers" ; then
31125 cat >> Makefile <<CF_EOF
31130 install.includes \\
31131 uninstall.includes ::
31132 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31137 if test "x$cf_cv_make_PHONY" = xyes ; then
31138 cat >> Makefile <<-CF_EOF
31140 .PHONY : install.data
31141 .PHONY : uninstall.data
31145 if test "x$cf_with_db_install" = xyes; then
31146 cat >> Makefile <<CF_EOF
31148 install.libs uninstall.libs \\
31149 install.data uninstall.data ::
31150 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31153 cat >> Makefile <<CF_EOF
31155 install.libs uninstall.libs ::
31156 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31160 if test "x$cf_with_manpages" = xyes; then
31162 if test "x$cf_cv_make_PHONY" = xyes ; then
31163 cat >> Makefile <<-CF_EOF
31165 .PHONY : install.man
31166 .PHONY : uninstall.man
31170 cat >> Makefile <<CF_EOF
31174 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31178 cat >> Makefile <<CF_EOF
31181 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31182 rm -f headers.sh headers.sed mk_shared_lib.sh
31183 rm -f edit_man.* man_alias.*
31184 rm -rf \${DIRS_TO_MAKE}
31187 # Special case: tack's manpage lives in its own directory.
31188 if test "x$cf_with_manpages" = xyes; then
31189 if test "x$cf_with_tack" = "xyes"; then
31190 cat >> Makefile <<CF_EOF
31194 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
31199 rm -f headers.sed headers.sh
31201 echo creating headers.sh
31202 cat >headers.sh <<CF_EOF
31204 # This shell script is generated by the 'configure' script. It is invoked in a
31205 # subdirectory of the build tree. It generates a sed-script in the parent
31206 # directory that is used to adjust includes for header files that reside in a
31207 # subdirectory of /usr/include, etc.
31209 while test \$# != 3
31211 PRG="\$PRG \$1"; shift
31216 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31217 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31218 echo installing \$SRC in \$DST
31221 if test "$WITH_CURSES_H" = yes; then
31222 cat >>headers.sh <<CF_EOF
31225 END=\`basename \$DST\`
31226 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31228 NAME=\`basename \$i\`
31229 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31233 echo "" >> \$TMPSED
31239 cat >>headers.sh <<CF_EOF
31242 END=\`basename \$DST\`
31243 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31245 NAME=\`basename \$i\`
31246 if test "\$NAME" = "curses.h"
31248 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31251 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31255 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31260 cat >>headers.sh <<CF_EOF
31262 sed -f \$TMPSED \$SRC > \$TMPSRC
31263 NAME=\`basename \$SRC\`
31265 if test "$WITH_CURSES_H" != yes; then
31266 cat >>headers.sh <<CF_EOF
31267 test "\$NAME" = "curses.h" && NAME=ncurses.h
31270 cat >>headers.sh <<CF_EOF
31271 # Just in case someone gzip'd manpages, remove the conflicting copy.
31272 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31274 eval \$PRG \$TMPSRC \$DST/\$NAME
31275 rm -f \$TMPSRC \$TMPSED
31278 chmod 0755 headers.sh
31280 for cf_dir in $SRC_SUBDIRS
31282 if test ! -d "$srcdir/$cf_dir" ; then
31286 if test -f "$srcdir/$cf_dir/headers" ; then
31287 $AWK -f "$srcdir/mk-hdr.awk" \
31288 subset="$LIB_SUBSETS" \
31289 compat="$WITH_CURSES_H" \
31290 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31293 if test -f "$srcdir/$cf_dir/modules" ; then
31294 if test "$cf_dir" != "c++" ; then
31295 if test "x$cf_cv_make_PHONY" = xyes ; then
31296 cat >> $cf_dir/Makefile <<-CF_EOF
31302 cat >>$cf_dir/Makefile <<"CF_EOF"
31303 depend : ${AUTO_SRC}
31304 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31306 # DO NOT DELETE THIS LINE -- make depend depends on it.
31312 if test "$MANPAGE_RENAMES" != no ; then
31313 # Construct a sed-script to perform renaming within man-pages
31314 test -n "$verbose" && echo "creating edit_man.sed"
31315 test ! -d man && mkdir man
31316 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31319 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31320 if test -z "$USE_OLD_MAKERULES" ; then
31321 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31329 cat >>"$CONFIG_STATUS" <<\EOF
31331 { (exit 0); exit 0; }
31333 chmod +x "$CONFIG_STATUS"
31334 ac_clean_files=$ac_clean_files_save
31336 # configure is writing to config.log, and then calls config.status.
31337 # config.status does its own redirection, appending to config.log.
31338 # Unfortunately, on DOS this fails, as config.log is still kept open
31339 # by configure, so config.status won't be able to write to it; its
31340 # output is simply discarded. So we exec the FD to /dev/null,
31341 # effectively closing config.log, so it can be properly (re)opened and
31342 # appended to by config.status. When coming back to configure, we
31343 # need to make the FD available again.
31344 if test "$no_create" != yes; then
31347 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31350 # would make configure fail if this is the last instruction.
31351 "$ac_cs_success" || { (exit 1); exit 1; }
31353 ${MAKE:-make} preinstall