2 # From configure.in Revision: 1.774 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20231210.
6 # Copyright 2003-2022,2023 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 --with-abi-altered=XXX override visible ABI version, for packaging
720 --without-ada suppress check for Ada compiler, don't build demo
721 --without-cxx do not adjust ncurses bool to match C++
722 --without-cxx-binding do not build C++ binding and demo
723 --disable-db-install suppress install of terminal database
724 --without-manpages suppress install of manpages
725 --without-progs suppress build/install with programs (e.g., tic)
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 name ncurses*X-config file with X
729 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
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[=XXX] suffix pkg-config files with XXX
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix
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[={rel|abi}] use release or ABI version in shared library file names
756 --with-libtool-opts[=XXX] give libtool additional options XXX
757 --with-export-syms[=SYM-FILE] limit symbols exported by libtool to those listed in SYM-FILE
758 --with-versioned-syms[=MAP-FILE] version ELF shared library symbols per MAP-FILE
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 X 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 --disable-setuid-environ restrict setuid use of ncurses environment variables
789 --enable-symlinks make tic use symbolic links not hard links
790 --enable-broken_linker compile with broken-linker support code
791 --enable-bsdpad recognize BSD-style prefix padding
792 --disable-widec compile without wide character and UTF-8 support
793 --disable-lp64 allow chtype to be long (ignore _LP64)
794 --disable-largefile omit support for large files
795 --disable-tparm-varargs compile tparm() without varargs interface
796 --disable-tic-depends link tic library without explicit dependency on ncurses library
797 --enable-wattr-macros enable wattr* macros
798 --with-x11-rgb=FILE obtain X11 color definitions from FILE (default: EPREFIX/lib/X11/rgb.txt)
799 --with-bool=TYPE fall back to TYPE for curses 'bool' typedef
800 --with-caps=alt compile with alternate Caps file
801 --with-chtype=TYPE override type of chtype
802 --with-ospeed=TYPE override type of ospeed variable
803 --with-mmask-t=TYPE override type of mmask_t
804 --with-ccharw-max=XXX override size CCHARW_MAX
805 --enable-signed-char use signed chars for Boolean array in term.h
806 --with-tparm-arg=TYPE override parameter type of tparm
807 --with-rcs-ids compile-in RCS identifiers
808 Options to Specify How Manpages are Installed:
809 --with-manpage-format specify manpage-format: gzip/compress/bzip2/xz,
810 BSDI/normal and optionally formatted/catonly,
812 --with-manpage-renames specify manpage-renaming
813 --with-manpage-aliases specify manpage-aliases using .so
814 --with-manpage-symlinks specify manpage-aliases using symlinks
815 --with-manpage-tbl specify manpage processing with tbl
817 --disable-ext-funcs disable function-extensions
818 --enable-sp-funcs enable SCREEN-extensions
819 --enable-term-driver enable terminal-driver
820 --enable-const compile with extra/non-standard const
821 --enable-ext-colors compile for 256-color support
822 --enable-ext-mouse compile for extended mouse-encoding
823 --enable-ext-putwin compile with extended putwin/screendump
824 --enable-no-padding compile with $NCURSES_NO_PADDING code
825 --enable-sigwinch compile with SIGWINCH handler
826 --enable-tcap-names compile with user-definable terminal capabilities
828 --with-pthread use POSIX thread library
829 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
830 --enable-weak-symbols enable weak-symbols for pthreads
831 --enable-reentrant compile with reentrant code
832 --disable-opaque-curses do not make WINDOW, etc., structures opaque
833 --disable-opaque-form do not make form library structures opaque
834 --disable-opaque-menu do not make menu library structures opaque
835 --disable-opaque-panel do not make panel library structures opaque
836 --with-wrap-prefix=XXX override prefix used for public variables
838 --without-develop disable development options
839 --enable-hard-tabs compile with hard-tabs code
840 --enable-xmc-glitch compile with support for xmc (magic-cookie)
842 --disable-assumed-color do not assume anything about default-colors
843 --disable-hashmap compile without hashmap scrolling-optimization
844 --enable-check-size compile-in code to detect screensize
845 --enable-colorfgbg compile-in experimental $COLORFGBG code
846 --enable-fvisibility compile with -fvisibility=hidden
847 --enable-interop compile-in interop bindings
848 --enable-safe-sprintf compile with experimental safe-sprintf code
849 --disable-scroll-hints compile without scroll-hints code
850 --enable-wgetch-events compile with wgetch-events code
851 --enable-exp-win32 compile with experimental-Windows driver
852 Testing/development Options:
853 --disable-echo do not display "compiling" commands
854 --disable-stripping do not strip (debug info) installed executables
855 --with-strip-program=XX specify program to use when stripping in install
856 --enable-warnings test: turn on gcc compiler warnings
857 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
858 --enable-string-hacks work around bogus compiler/loader warnings
859 --enable-assertions test: turn on generation of assertion code
860 --with-dmalloc test: use Gray Watson's dmalloc library
861 --with-dbmalloc test: use Conor Cahill's dbmalloc library
862 --with-valgrind test: use valgrind
863 --disable-leaks test: free permanent memory, analyze leaks
864 --enable-expanded test: generate functions for certain macros
865 --disable-macros test: use functions rather than macros
866 --with-trace test: add trace() function to all models of ncurses
867 --disable-gnat-projects test: disable GNAT projects even if usable
869 --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)
870 --with-ada-include=DIR find Ada95 includes in DIR (default: PREFIX/share/ada/adainclude)
871 --with-ada-objects=DIR find Ada95 objects in DIR (default: PREFIX/lib/ada/adalib)
872 --with-ada-sharedlib build Ada95 shared library; requires GNAT project support
873 --with-ada-libname[=XXX] use XXX as Ada95 library name
874 Library basenames for pkgsrc:
875 --with-form-libname[=XXX] override ifelse(,,form,) basename of library
876 --with-menu-libname[=XXX] override ifelse(,,menu,) basename of library
877 --with-panel-libname[=XXX] override ifelse(,,panel,) basename of library
878 --with-cxx-libname[=XXX] override ifelse(ncurses++,,cxx,ncurses++) basename of library
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
888 CXX C++ compiler command
889 CXXFLAGS C++ compiler flags
890 CXXCPP C++ preprocessor
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
903 # A "../" for each directory in /$ac_subdir.
904 ac_dots=`echo "$ac_subdir" |
905 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
908 .) # No --srcdir option. We are building in place.
909 ac_sub_srcdir="$srcdir" ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
913 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f "$ac_sub_srcdir/configure.gnu"; then
919 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
920 elif test -f "$ac_sub_srcdir/configure"; then
922 $SHELL "$ac_sub_srcdir/configure" --help=recursive
923 elif test -f "$ac_sub_srcdir/configure.ac" ||
924 test -f "$ac_sub_srcdir/configure.in"; then
926 "$ac_configure" --help
928 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
934 test -n "$ac_init_help" && exit 0
935 if "$ac_init_version"; then
938 Copyright 2003-2022,2023 Thomas E. Dickey
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.52.20231210. Invocation command line was
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
992 # Keep a trace of the command line.
993 # Strip out --no-create and --no-recursion so they do not pile up.
994 # Also quote any args containing shell meta-characters.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c) ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1004 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1006 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1008 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1011 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 trap 'exit_status=$?
1018 # Save into config.log some information that might help in debugging.
1020 echo "## ----------------- ##" >&5
1021 echo "## Cache variables. ##" >&5
1022 echo "## ----------------- ##" >&5
1024 # The following way of writing the cache mishandles newlines in values,
1027 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 sed "/^$/d" confdefs.h >conftest.log
1040 if test -s conftest.log; then
1042 echo "## ------------ ##" >&5
1043 echo "## confdefs.h. ##" >&5
1044 echo "## ------------ ##" >&5
1046 cat conftest.log >&5
1049 test "$ac_signal" != 0 &&
1050 echo "$as_me: caught signal $ac_signal" >&5
1051 echo "$as_me: exit $exit_status" >&5
1052 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1055 for ac_signal in 1 2 13 15; do
1056 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1061 rm -rf conftest* confdefs.h
1062 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1065 # Let the site file select an alternate cache file if it wants to.
1066 # Prefer explicitly selected file to automatically selected ones.
1067 if test -z "$CONFIG_SITE"; then
1068 if test "x$prefix" != xNONE; then
1069 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1071 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1074 for ac_site_file in $CONFIG_SITE; do
1075 if test -r "$ac_site_file"; then
1076 { echo "$as_me:1076: loading site script $ac_site_file" >&5
1077 echo "$as_me: loading site script $ac_site_file" >&6;}
1078 cat "$ac_site_file" >&5
1083 if test -r "$cache_file"; then
1084 # Some versions of bash will fail to source /dev/null (special
1085 # files actually), so we avoid doing that.
1086 if test -f "$cache_file"; then
1087 { echo "$as_me:1087: loading cache $cache_file" >&5
1088 echo "$as_me: loading cache $cache_file" >&6;}
1090 [\\/]* | ?:[\\/]* ) . $cache_file;;
1091 *) . ./$cache_file;;
1095 { echo "$as_me:1095: creating cache $cache_file" >&5
1096 echo "$as_me: creating cache $cache_file" >&6;}
1100 # Check that the precious variables saved in the cache have kept the same
1102 ac_cache_corrupted=false
1103 for ac_var in `(set) 2>&1 |
1104 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1106 eval ac_new_set=\$ac_env_${ac_var}_set
1107 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1108 eval ac_new_val="\$ac_env_${ac_var}_value"
1109 case "$ac_old_set,$ac_new_set" in
1111 { echo "$as_me:1111: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1112 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1113 ac_cache_corrupted=: ;;
1115 { echo "$as_me:1115: error: \`$ac_var' was not set in the previous run" >&5
1116 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1117 ac_cache_corrupted=: ;;
1120 if test "x$ac_old_val" != "x$ac_new_val"; then
1121 { echo "$as_me:1121: error: \`$ac_var' has changed since the previous run:" >&5
1122 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1123 { echo "$as_me:1123: former value: $ac_old_val" >&5
1124 echo "$as_me: former value: $ac_old_val" >&2;}
1125 { echo "$as_me:1125: current value: $ac_new_val" >&5
1126 echo "$as_me: current value: $ac_new_val" >&2;}
1127 ac_cache_corrupted=:
1130 # Pass precious variables to config.status. It doesn't matter if
1131 # we pass some twice (in addition to the command line arguments).
1132 if test "$ac_new_set" = set; then
1133 case "$ac_new_val" in
1134 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1135 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1136 ac_configure_args="$ac_configure_args '$ac_arg'"
1138 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1143 if "$ac_cache_corrupted"; then
1144 { echo "$as_me:1144: error: changes in the environment can compromise the build" >&5
1145 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1146 { { echo "$as_me:1146: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1147 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1148 { (exit 1); exit 1; }; }
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1154 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1156 ac_main_return="return"
1158 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1160 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1172 echo "#! $SHELL" >conftest.sh
1173 echo "exit 0" >>conftest.sh
1174 chmod +x conftest.sh
1175 if { (echo "$as_me:1175: PATH=\".;.\"; conftest.sh") >&5
1176 (PATH=".;."; conftest.sh) 2>&5
1178 echo "$as_me:1178: \$? = $ac_status" >&5
1179 (exit "$ac_status"); }; then
1180 ac_path_separator=';'
1184 PATH_SEPARATOR="$ac_path_separator"
1187 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1191 for ac_prog in ggrep grep
1193 # Extract the first word of "$ac_prog", so it can be a program name with args.
1194 set dummy $ac_prog; ac_word=$2
1195 echo "$as_me:1195: checking for $ac_word" >&5
1196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197 if test "${ac_cv_prog_GREP+set}" = set; then
1198 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 if test -n "$GREP"; then
1201 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1203 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 $as_executable_p "$ac_dir/$ac_word" || continue
1209 ac_cv_prog_GREP="$ac_prog"
1210 echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1216 GREP=$ac_cv_prog_GREP
1217 if test -n "$GREP"; then
1218 echo "$as_me:1218: result: $GREP" >&5
1219 echo "${ECHO_T}$GREP" >&6
1221 echo "$as_me:1221: result: no" >&5
1222 echo "${ECHO_T}no" >&6
1225 test -n "$GREP" && break
1227 test -n "$GREP" || GREP=": "
1229 echo "$as_me:1229: checking for egrep" >&5
1230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1231 if test "${ac_cv_path_EGREP+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1235 then ac_cv_path_EGREP="$GREP -E"
1237 for ac_prog in gegrep egrep
1239 # Extract the first word of "$ac_prog", so it can be a program name with args.
1240 set dummy $ac_prog; ac_word=$2
1241 echo "$as_me:1241: checking for $ac_word" >&5
1242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1243 if test "${ac_cv_path_EGREP+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1251 ac_save_IFS=$IFS; IFS=$ac_path_separator
1253 for ac_dir in $ac_dummy; do
1255 test -z "$ac_dir" && ac_dir=.
1256 if $as_executable_p "$ac_dir/$ac_word"; then
1257 ac_cv_path_EGREP="$ac_dir/$ac_word"
1258 echo "$as_me:1258: found $ac_dir/$ac_word" >&5
1266 EGREP=$ac_cv_path_EGREP
1268 if test -n "$EGREP"; then
1269 echo "$as_me:1269: result: $EGREP" >&5
1270 echo "${ECHO_T}$EGREP" >&6
1272 echo "$as_me:1272: result: no" >&5
1273 echo "${ECHO_T}no" >&6
1276 test -n "$EGREP" && break
1278 test -n "$EGREP" || EGREP=": "
1280 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1280: error: cannot find workable egrep" >&5
1281 echo "$as_me: error: cannot find workable egrep" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_path_EGREP" >&5
1286 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1287 EGREP="$ac_cv_path_EGREP"
1289 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1290 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1291 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1292 cf_cv_abi_version=${NCURSES_MAJOR}
1293 cf_cv_abi_default=${NCURSES_MAJOR}
1294 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1295 cf_cv_timestamp=`date`
1296 echo "$as_me:1296: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1297 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1299 if test -f "$srcdir/VERSION" ; then
1300 echo "$as_me:1300: checking for package version" >&5
1301 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1303 # if there are not enough fields, cut returns the last one...
1304 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1305 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1306 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1308 # this is how CF_BUNDLED_INTL uses $VERSION:
1309 VERSION="$cf_field1"
1311 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1312 test -z "$VERSION_MAJOR" && { { echo "$as_me:1312: error: missing major-version" >&5
1313 echo "$as_me: error: missing major-version" >&2;}
1314 { (exit 1); exit 1; }; }
1316 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1317 test -z "$VERSION_MINOR" && { { echo "$as_me:1317: error: missing minor-version" >&5
1318 echo "$as_me: error: missing minor-version" >&2;}
1319 { (exit 1); exit 1; }; }
1321 echo "$as_me:1321: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1322 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1324 echo "$as_me:1324: checking for package patch date" >&5
1325 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1326 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1327 case .$VERSION_PATCH in
1329 { { echo "$as_me:1329: error: missing patch-date $VERSION_PATCH" >&5
1330 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1331 { (exit 1); exit 1; }; }
1333 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1336 { { echo "$as_me:1336: error: illegal patch-date $VERSION_PATCH" >&5
1337 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1338 { (exit 1); exit 1; }; }
1341 echo "$as_me:1341: result: $VERSION_PATCH" >&5
1342 echo "${ECHO_T}$VERSION_PATCH" >&6
1344 { { echo "$as_me:1344: error: did not find $srcdir/VERSION" >&5
1345 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1346 { (exit 1); exit 1; }; }
1349 # show the actual data that we have for versions:
1350 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1352 echo "${as_me:-configure}:1352: testing ABI VERSION $VERSION ..." 1>&5
1354 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1356 echo "${as_me:-configure}:1356: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1358 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1360 echo "${as_me:-configure}:1360: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1362 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1364 echo "${as_me:-configure}:1364: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1369 cat >>confdefs.h <<EOF
1370 #define PACKAGE "$PACKAGE"
1373 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1375 cat >>confdefs.h <<EOF
1376 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1379 cat >>confdefs.h <<EOF
1380 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1383 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1385 # Check whether --with-rel-version or --without-rel-version was given.
1386 if test "${with_rel_version+set}" = set; then
1387 withval="$with_rel_version"
1388 { echo "$as_me:1388: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1389 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1390 cf_cv_rel_version=$withval
1393 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1394 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1395 test -n "NCURSES_MINOR" || NCURSES_MINOR=0
1397 if test -n "$NCURSES_MAJOR" ; then
1398 case `echo "$NCURSES_MAJOR" | sed -e 's/^[0-9]*$/0/g'` in
1402 { { echo "$as_me:1402: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1403 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1404 { (exit 1); exit 1; }; }
1408 { { echo "$as_me:1408: error: Release major-version value is empty" >&5
1409 echo "$as_me: error: Release major-version value is empty" >&2;}
1410 { (exit 1); exit 1; }; }
1413 if test -n "$NCURSES_MINOR" ; then
1414 case `echo "$NCURSES_MINOR" | sed -e 's/^[0-9]*$/0/g'` in
1418 { { echo "$as_me:1418: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1419 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1420 { (exit 1); exit 1; }; }
1424 { { echo "$as_me:1424: error: Release minor-version value is empty" >&5
1425 echo "$as_me: error: Release minor-version value is empty" >&2;}
1426 { (exit 1); exit 1; }; }
1429 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1431 # Check whether --with-abi-version or --without-abi-version was given.
1432 if test "${with_abi_version+set}" = set; then
1433 withval="$with_abi_version"
1435 if test "x$cf_cv_abi_version" != "x$withval"
1437 { echo "$as_me:1437: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1438 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1439 case "$cf_cv_rel_version" in
1441 cf_cv_rel_version=$withval.0
1444 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1448 cf_cv_abi_version=$withval
1451 if test -n "$cf_cv_abi_version" ; then
1452 case `echo "$cf_cv_abi_version" | sed -e 's/^[0-9]*$/0/g'` in
1456 { { echo "$as_me:1456: error: ABI version is not a number: $cf_cv_abi_version" >&5
1457 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1458 { (exit 1); exit 1; }; }
1462 { { echo "$as_me:1462: error: ABI version value is empty" >&5
1463 echo "$as_me: error: ABI version value is empty" >&2;}
1464 { (exit 1); exit 1; }; }
1467 cf_cv_abi_default=$cf_cv_abi_version
1469 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1471 case "$cf_cv_rel_version" in
1473 cf_cv_rel_version=$with_abi_version.0
1479 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1480 if test -f "$ac_dir/install-sh"; then
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1484 elif test -f "$ac_dir/install.sh"; then
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1488 elif test -f "$ac_dir/shtool"; then
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1494 if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:1495: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497 { (exit 1); exit 1; }; }
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1503 # Make sure we can run config.sub.
1504 $ac_config_sub sun4 >/dev/null 2>&1 ||
1505 { { echo "$as_me:1505: error: cannot run $ac_config_sub" >&5
1506 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1507 { (exit 1); exit 1; }; }
1509 echo "$as_me:1509: checking build system type" >&5
1510 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1511 if test "${ac_cv_build+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 ac_cv_build_alias=$build_alias
1515 test -z "$ac_cv_build_alias" &&
1516 ac_cv_build_alias=`$ac_config_guess`
1517 test -z "$ac_cv_build_alias" &&
1518 { { echo "$as_me:1518: error: cannot guess build type; you must specify one" >&5
1519 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520 { (exit 1); exit 1; }; }
1521 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1522 { { echo "$as_me:1522: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1524 { (exit 1); exit 1; }; }
1527 echo "$as_me:1527: result: $ac_cv_build" >&5
1528 echo "${ECHO_T}$ac_cv_build" >&6
1530 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 echo "$as_me:1534: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1543 { { echo "$as_me:1543: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:1548: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1551 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1556 echo "$as_me:1556: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1565 { { echo "$as_me:1565: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:1570: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 # The aliases save the names the user supplied, while $host etc.
1578 # will get canonicalized.
1579 test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1582 program_prefix=${target_alias}-
1583 system_name="$host_os"
1585 system_name="`(uname -s -r) 2>/dev/null`"
1586 if test -z "$system_name" ; then
1587 system_name="`(hostname) 2>/dev/null`"
1590 test -n "$system_name" &&
1591 cat >>confdefs.h <<EOF
1592 #define SYSTEM_NAME "$system_name"
1595 if test "${cf_cv_system_name+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 cf_cv_system_name="$system_name"
1601 test -z "$system_name" && system_name="$cf_cv_system_name"
1602 test -n "$cf_cv_system_name" && echo "$as_me:1602: result: Configuring for $cf_cv_system_name" >&5
1603 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1605 if test ".$system_name" != ".$cf_cv_system_name" ; then
1606 echo "$as_me:1606: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1607 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1608 { { echo "$as_me:1608: error: \"Please remove config.cache and try again.\"" >&5
1609 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1610 { (exit 1); exit 1; }; }
1613 # Check whether --with-system-type or --without-system-type was given.
1614 if test "${with_system_type+set}" = set; then
1615 withval="$with_system_type"
1616 { echo "$as_me:1616: WARNING: overriding system type to $withval" >&5
1617 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1618 cf_cv_system_name=$withval
1623 ### Save the given $CFLAGS to allow user-override.
1624 cf_user_CFLAGS="$CFLAGS"
1626 ### Default install-location
1627 echo "$as_me:1627: checking for fgrep" >&5
1628 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1629 if test "${ac_cv_path_FGREP+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1633 then ac_cv_path_FGREP="$GREP -F"
1635 for ac_prog in gfgrep fgrep
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_path_FGREP+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1649 ac_save_IFS=$IFS; IFS=$ac_path_separator
1651 for ac_dir in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if $as_executable_p "$ac_dir/$ac_word"; then
1655 ac_cv_path_FGREP="$ac_dir/$ac_word"
1656 echo "$as_me:1656: found $ac_dir/$ac_word" >&5
1664 FGREP=$ac_cv_path_FGREP
1666 if test -n "$FGREP"; then
1667 echo "$as_me:1667: result: $FGREP" >&5
1668 echo "${ECHO_T}$FGREP" >&6
1670 echo "$as_me:1670: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$FGREP" && break
1676 test -n "$FGREP" || FGREP=": "
1678 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1678: error: cannot find workable fgrep" >&5
1679 echo "$as_me: error: cannot find workable fgrep" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:1683: result: $ac_cv_path_FGREP" >&5
1684 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1685 FGREP="$ac_cv_path_FGREP"
1687 echo "$as_me:1687: checking for prefix" >&5
1688 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1689 if test "x$prefix" = "xNONE" ; then
1690 case "$cf_cv_system_name" in
1691 # non-vendor systems don't have a conflict
1692 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1695 (*) prefix=$ac_default_prefix
1699 echo "$as_me:1699: result: $prefix" >&5
1700 echo "${ECHO_T}$prefix" >&6
1702 if test "x$prefix" = "xNONE" ; then
1703 echo "$as_me:1703: checking for default include-directory" >&5
1704 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1705 test -n "$verbose" && echo 1>&6
1708 "$includedir/ncurses" \
1710 "$prefix/include/ncurses" \
1711 /usr/local/include \
1712 /usr/local/include/ncurses \
1714 /usr/include/ncurses
1716 cf_dir=`eval echo "$cf_symbol"`
1717 if test -f "$cf_dir/curses.h" ; then
1718 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1719 includedir="$cf_symbol"
1720 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1724 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1726 echo "$as_me:1726: result: $includedir" >&5
1727 echo "${ECHO_T}$includedir" >&6
1730 ### Defaults for ncurses ABI
1735 cf_dft_ext_colors=no
1738 cf_dft_ext_putwin=no
1739 cf_dft_ext_spfuncs=no
1740 cf_dft_filter_syms=no
1743 cf_dft_opaque_curses=no
1744 cf_dft_ordinate_type=short
1745 cf_dft_signed_char=no
1746 cf_dft_tparm_arg=long
1750 # ABI 6 default differences from ABI 5:
1751 case x$cf_cv_abi_default in
1753 cf_dft_chtype=uint32_t
1754 cf_dft_ext_colors=yes
1755 cf_dft_ext_const=yes
1756 cf_dft_ext_mouse=yes
1757 cf_dft_ext_putwin=yes
1758 cf_dft_ext_spfuncs=yes
1759 cf_dft_filter_syms=yes
1761 cf_dft_mmask_t=uint32_t
1762 cf_dft_opaque_curses=yes
1763 cf_dft_tparm_arg=intptr_t
1765 cf_dft_with_lp64=yes
1769 # ABI 7 default differences from ABI 6:
1770 case x$cf_cv_abi_default in
1773 cf_dft_mmask_t=uint64_t
1774 cf_dft_ordinate_type=int
1775 cf_dft_signed_char=yes
1776 # also: remove the wgetch-events feature in ABI 7
1780 ### override ABI version, e.g., packagers
1782 # Check whether --with-abi-altered or --without-abi-altered was given.
1783 if test "${with_abi_altered+set}" = set; then
1784 withval="$with_abi_altered"
1786 if test -n "$withval" ; then
1787 case `echo "$withval" | sed -e 's/^[0-9]*$/0/g'` in
1791 { { echo "$as_me:1791: error: ABI altered is not a number: $withval" >&5
1792 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1793 { (exit 1); exit 1; }; }
1797 { { echo "$as_me:1797: error: ABI altered value is empty" >&5
1798 echo "$as_me: error: ABI altered value is empty" >&2;}
1799 { (exit 1); exit 1; }; }
1802 if test "$cf_cv_abi_version" != "$withval"
1804 { echo "$as_me:1804: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1805 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1806 cf_cv_abi_version=$withval
1811 ### Checks for programs.
1813 # Check whether --with-ada or --without-ada was given.
1814 if test "${with_ada+set}" = set; then
1816 cf_with_ada=$withval
1821 if test "x$cf_with_ada" = xyes
1823 cf_prog_cc="gnatgcc gcc cc"
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1831 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 ac_main_return="return"
1834 if test -n "$ac_tool_prefix"; then
1835 for ac_prog in $cf_prog_cc
1837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1839 echo "$as_me:1839: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 ac_save_IFS=$IFS; IFS=$ac_path_separator
1849 for ac_dir in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir=.
1852 $as_executable_p "$ac_dir/$ac_word" || continue
1853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854 echo "$as_me:1854: found $ac_dir/$ac_word" >&5
1861 if test -n "$CC"; then
1862 echo "$as_me:1862: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1865 echo "$as_me:1865: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1869 test -n "$CC" && break
1872 if test -z "$CC"; then
1874 for ac_prog in $cf_prog_cc
1876 # Extract the first word of "$ac_prog", so it can be a program name with args.
1877 set dummy $ac_prog; ac_word=$2
1878 echo "$as_me:1878: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1886 ac_save_IFS=$IFS; IFS=$ac_path_separator
1888 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 $as_executable_p "$ac_dir/$ac_word" || continue
1892 ac_cv_prog_ac_ct_CC="$ac_prog"
1893 echo "$as_me:1893: found $ac_dir/$ac_word" >&5
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:1901: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1904 echo "$as_me:1904: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$ac_ct_CC" && break
1914 test -z "$CC" && { { echo "$as_me:1914: error: no acceptable cc found in \$PATH" >&5
1915 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:1919:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo "$2"`
1922 { (eval echo "$as_me:1922: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit "$ac_status"); }
1927 { (eval echo "$as_me:1927: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1930 echo "$as_me:1930: \$? = $ac_status" >&5
1931 (exit "$ac_status"); }
1932 { (eval echo "$as_me:1932: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 echo "$as_me:1935: \$? = $ac_status" >&5
1936 (exit "$ac_status"); }
1938 cat >"conftest.$ac_ext" <<_ACEOF
1939 #line 1939 "configure"
1940 #include "confdefs.h"
1950 ac_clean_files_save=$ac_clean_files
1951 ac_clean_files="$ac_clean_files a.out a.exe"
1952 # Try to create an executable without -o first, disregard a.out.
1953 # It will help us diagnose broken compilers, and finding out an intuition
1955 echo "$as_me:1955: checking for C compiler default output" >&5
1956 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1957 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1958 if { (eval echo "$as_me:1958: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit "$ac_status"); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1967 ls a.out conftest 2>/dev/null;
1968 ls a.* conftest.* 2>/dev/null`; do
1970 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1971 a.out ) # We found the default executable, but exeext='' is most
1974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1982 echo "$as_me: failed program was:" >&5
1983 cat "conftest.$ac_ext" >&5
1984 { { echo "$as_me:1984: error: C compiler cannot create executables" >&5
1985 echo "$as_me: error: C compiler cannot create executables" >&2;}
1986 { (exit 77); exit 77; }; }
1989 ac_exeext=$ac_cv_exeext
1990 echo "$as_me:1990: result: $ac_file" >&5
1991 echo "${ECHO_T}$ac_file" >&6
1993 # Check the compiler produces executables we can run. If not, either
1994 # the compiler is broken, or we cross compile.
1995 echo "$as_me:1995: checking whether the C compiler works" >&5
1996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998 # If not cross compiling, check that we can run a simple program.
1999 if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:2001: \"$ac_try\"") >&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit "$ac_status"); }; }; then
2008 if test "$cross_compiling" = maybe; then
2011 { { echo "$as_me:2011: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'." >&5
2013 echo "$as_me: error: cannot run C compiled programs.
2014 If you meant to cross compile, use \`--host'." >&2;}
2015 { (exit 1); exit 1; }; }
2019 echo "$as_me:2019: result: yes" >&5
2020 echo "${ECHO_T}yes" >&6
2022 rm -f a.out a.exe "conftest$ac_cv_exeext"
2023 ac_clean_files=$ac_clean_files_save
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:2026: checking whether we are cross compiling" >&5
2027 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2028 echo "$as_me:2028: result: $cross_compiling" >&5
2029 echo "${ECHO_T}$cross_compiling" >&6
2031 echo "$as_me:2031: checking for executable suffix" >&5
2032 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2033 if { (eval echo "$as_me:2033: \"$ac_link\"") >&5
2034 (eval $ac_link) 2>&5
2036 echo "$as_me:2036: \$? = $ac_status" >&5
2037 (exit "$ac_status"); }; then
2038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2040 # work properly (i.e., refer to `conftest.exe'), while it won't with
2042 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052 { { echo "$as_me:2052: error: cannot compute EXEEXT: cannot compile and link" >&5
2053 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2054 { (exit 1); exit 1; }; }
2057 rm -f "conftest$ac_cv_exeext"
2058 echo "$as_me:2058: result: $ac_cv_exeext" >&5
2059 echo "${ECHO_T}$ac_cv_exeext" >&6
2061 rm -f "conftest.$ac_ext"
2062 EXEEXT=$ac_cv_exeext
2064 echo "$as_me:2064: checking for object suffix" >&5
2065 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2066 if test "${ac_cv_objext+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >"conftest.$ac_ext" <<_ACEOF
2070 #line 2070 "configure"
2071 #include "confdefs.h"
2081 rm -f conftest.o conftest.obj
2082 if { (eval echo "$as_me:2082: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:2085: \$? = $ac_status" >&5
2086 (exit "$ac_status"); }; then
2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2095 echo "$as_me: failed program was:" >&5
2096 cat "conftest.$ac_ext" >&5
2097 { { echo "$as_me:2097: error: cannot compute OBJEXT: cannot compile" >&5
2098 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2099 { (exit 1); exit 1; }; }
2102 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2104 echo "$as_me:2104: result: $ac_cv_objext" >&5
2105 echo "${ECHO_T}$ac_cv_objext" >&6
2106 OBJEXT=$ac_cv_objext
2108 echo "$as_me:2108: checking whether we are using the GNU C compiler" >&5
2109 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2110 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >"conftest.$ac_ext" <<_ACEOF
2114 #line 2114 "configure"
2115 #include "confdefs.h"
2128 rm -f "conftest.$ac_objext"
2129 if { (eval echo "$as_me:2129: \"$ac_compile\"") >&5
2130 (eval $ac_compile) 2>&5
2132 echo "$as_me:2132: \$? = $ac_status" >&5
2133 (exit "$ac_status"); } &&
2134 { ac_try='test -s "conftest.$ac_objext"'
2135 { (eval echo "$as_me:2135: \"$ac_try\"") >&5
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit "$ac_status"); }; }; then
2142 echo "$as_me: failed program was:" >&5
2143 cat "conftest.$ac_ext" >&5
2146 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2150 echo "$as_me:2150: result: $ac_cv_c_compiler_gnu" >&5
2151 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2152 GCC=`test $ac_compiler_gnu = yes && echo yes`
2153 ac_test_CFLAGS=${CFLAGS+set}
2154 ac_save_CFLAGS=$CFLAGS
2156 echo "$as_me:2156: checking whether $CC accepts -g" >&5
2157 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2158 if test "${ac_cv_prog_cc_g+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 cat >"conftest.$ac_ext" <<_ACEOF
2162 #line 2162 "configure"
2163 #include "confdefs.h"
2173 rm -f "conftest.$ac_objext"
2174 if { (eval echo "$as_me:2174: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:2177: \$? = $ac_status" >&5
2178 (exit "$ac_status"); } &&
2179 { ac_try='test -s "conftest.$ac_objext"'
2180 { (eval echo "$as_me:2180: \"$ac_try\"") >&5
2183 echo "$as_me:2183: \$? = $ac_status" >&5
2184 (exit "$ac_status"); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 cat "conftest.$ac_ext" >&5
2191 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2193 echo "$as_me:2193: result: $ac_cv_prog_cc_g" >&5
2194 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2195 if test "$ac_test_CFLAGS" = set; then
2196 CFLAGS=$ac_save_CFLAGS
2197 elif test $ac_cv_prog_cc_g = yes; then
2198 if test "$GCC" = yes; then
2204 if test "$GCC" = yes; then
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >"conftest.$ac_ext" <<_ACEOF
2219 rm -f "conftest.$ac_objext"
2220 if { (eval echo "$as_me:2220: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2223 echo "$as_me:2223: \$? = $ac_status" >&5
2224 (exit "$ac_status"); } &&
2225 { ac_try='test -s "conftest.$ac_objext"'
2226 { (eval echo "$as_me:2226: \"$ac_try\"") >&5
2229 echo "$as_me:2229: \$? = $ac_status" >&5
2230 (exit "$ac_status"); }; }; then
2231 for ac_declaration in \
2233 '#include <stdlib.h>' \
2234 'extern "C" void std::exit (int) throw (); using std::exit;' \
2235 'extern "C" void std::exit (int); using std::exit;' \
2236 'extern "C" void exit (int) throw ();' \
2237 'extern "C" void exit (int);' \
2240 cat >"conftest.$ac_ext" <<_ACEOF
2241 #line 2241 "configure"
2242 #include "confdefs.h"
2253 rm -f "conftest.$ac_objext"
2254 if { (eval echo "$as_me:2254: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>&5
2257 echo "$as_me:2257: \$? = $ac_status" >&5
2258 (exit "$ac_status"); } &&
2259 { ac_try='test -s "conftest.$ac_objext"'
2260 { (eval echo "$as_me:2260: \"$ac_try\"") >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit "$ac_status"); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 cat "conftest.$ac_ext" >&5
2271 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2272 cat >"conftest.$ac_ext" <<_ACEOF
2273 #line 2273 "configure"
2274 #include "confdefs.h"
2284 rm -f "conftest.$ac_objext"
2285 if { (eval echo "$as_me:2285: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit "$ac_status"); } &&
2290 { ac_try='test -s "conftest.$ac_objext"'
2291 { (eval echo "$as_me:2291: \"$ac_try\"") >&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit "$ac_status"); }; }; then
2298 echo "$as_me: failed program was:" >&5
2299 cat "conftest.$ac_ext" >&5
2301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2304 if test -n "$ac_declaration"; then
2305 echo '#ifdef __cplusplus' >>confdefs.h
2306 echo "$ac_declaration" >>confdefs.h
2307 echo '#endif' >>confdefs.h
2311 echo "$as_me: failed program was:" >&5
2312 cat "conftest.$ac_ext" >&5
2314 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2318 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 ac_main_return="return"
2323 if test "$GCC" = yes ; then
2324 echo "$as_me:2324: checking version of $CC" >&5
2325 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2326 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2327 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2328 echo "$as_me:2328: result: $GCC_VERSION" >&5
2329 echo "${ECHO_T}$GCC_VERSION" >&6
2334 if test "$GCC" = yes ; then
2337 echo "$as_me:2337: checking if this is really Intel C compiler" >&5
2338 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2339 cf_save_CFLAGS="$CFLAGS"
2340 CFLAGS="$CFLAGS -no-gcc"
2341 cat >"conftest.$ac_ext" <<_ACEOF
2342 #line 2342 "configure"
2343 #include "confdefs.h"
2349 #ifdef __INTEL_COMPILER
2351 #error __INTEL_COMPILER is not defined
2358 rm -f "conftest.$ac_objext"
2359 if { (eval echo "$as_me:2359: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:2362: \$? = $ac_status" >&5
2363 (exit "$ac_status"); } &&
2364 { ac_try='test -s "conftest.$ac_objext"'
2365 { (eval echo "$as_me:2365: \"$ac_try\"") >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit "$ac_status"); }; }; then
2371 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2374 echo "$as_me: failed program was:" >&5
2375 cat "conftest.$ac_ext" >&5
2377 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2378 CFLAGS="$cf_save_CFLAGS"
2379 echo "$as_me:2379: result: $INTEL_COMPILER" >&5
2380 echo "${ECHO_T}$INTEL_COMPILER" >&6
2387 if test "$GCC" = yes ; then
2388 echo "$as_me:2388: checking if this is really Clang C compiler" >&5
2389 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2390 cf_save_CFLAGS="$CFLAGS"
2391 cat >"conftest.$ac_ext" <<_ACEOF
2392 #line 2392 "configure"
2393 #include "confdefs.h"
2401 #error __clang__ is not defined
2408 rm -f "conftest.$ac_objext"
2409 if { (eval echo "$as_me:2409: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>&5
2412 echo "$as_me:2412: \$? = $ac_status" >&5
2413 (exit "$ac_status"); } &&
2414 { ac_try='test -s "conftest.$ac_objext"'
2415 { (eval echo "$as_me:2415: \"$ac_try\"") >&5
2418 echo "$as_me:2418: \$? = $ac_status" >&5
2419 (exit "$ac_status"); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 cat "conftest.$ac_ext" >&5
2426 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2427 CFLAGS="$cf_save_CFLAGS"
2428 echo "$as_me:2428: result: $CLANG_COMPILER" >&5
2429 echo "${ECHO_T}$CLANG_COMPILER" >&6
2434 if test "x$CLANG_COMPILER" = "xyes" ; then
2436 (c[1-9][0-9]|*/c[1-9][0-9])
2437 { echo "$as_me:2437: WARNING: replacing broken compiler alias $CC" >&5
2438 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2439 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2444 echo "$as_me:2444: checking version of $CC" >&5
2445 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2446 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.].*//'`"
2447 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2448 echo "$as_me:2448: result: $CLANG_VERSION" >&5
2449 echo "${ECHO_T}$CLANG_VERSION" >&6
2451 for cf_clang_opt in \
2452 -Qunused-arguments \
2453 -Wno-error=implicit-function-declaration
2455 echo "$as_me:2455: checking if option $cf_clang_opt works" >&5
2456 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2457 cf_save_CFLAGS="$CFLAGS"
2458 CFLAGS="$CFLAGS $cf_clang_opt"
2459 cat >"conftest.$ac_ext" <<_ACEOF
2460 #line 2460 "configure"
2461 #include "confdefs.h"
2468 printf("hello!\\n");
2473 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2474 if { (eval echo "$as_me:2474: \"$ac_link\"") >&5
2475 (eval $ac_link) 2>&5
2477 echo "$as_me:2477: \$? = $ac_status" >&5
2478 (exit "$ac_status"); } &&
2479 { ac_try='test -s "conftest$ac_exeext"'
2480 { (eval echo "$as_me:2480: \"$ac_try\"") >&5
2483 echo "$as_me:2483: \$? = $ac_status" >&5
2484 (exit "$ac_status"); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 cat "conftest.$ac_ext" >&5
2493 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2494 echo "$as_me:2494: result: $cf_clang_optok" >&5
2495 echo "${ECHO_T}$cf_clang_optok" >&6
2496 CFLAGS="$cf_save_CFLAGS"
2497 if test "$cf_clang_optok" = yes; then
2498 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2500 echo "${as_me:-configure}:2500: testing adding option $cf_clang_opt ..." 1>&5
2502 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2503 CFLAGS="${CFLAGS}$cf_clang_opt"
2509 echo "$as_me:2509: checking for $CC option to accept ANSI C" >&5
2510 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2511 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 ac_cv_prog_cc_stdc=no
2516 cat >"conftest.$ac_ext" <<_ACEOF
2517 #line 2517 "configure"
2518 #include "confdefs.h"
2521 #include <sys/types.h>
2522 #include <sys/stat.h>
2523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2524 struct buf { int x; };
2525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526 static char *e (char **p, int i)
2530 static char *f (char * (*g) (char **, int), char **p, ...)
2535 s = g (p, va_arg (v,int));
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2553 # Don't try gcc -ansi; that turns off useful extensions and
2554 # breaks some systems' header files.
2555 # AIX -qlanglvl=ansi
2556 # Ultrix and OSF/1 -std1
2557 # HP-UX 10.20 and later -Ae
2558 # HP-UX older versions -Aa -D_HPUX_SOURCE
2559 # SVR4 -Xc -D__EXTENSIONS__
2560 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 CC="$ac_save_CC $ac_arg"
2563 rm -f "conftest.$ac_objext"
2564 if { (eval echo "$as_me:2564: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>&5
2567 echo "$as_me:2567: \$? = $ac_status" >&5
2568 (exit "$ac_status"); } &&
2569 { ac_try='test -s "conftest.$ac_objext"'
2570 { (eval echo "$as_me:2570: \"$ac_try\"") >&5
2573 echo "$as_me:2573: \$? = $ac_status" >&5
2574 (exit "$ac_status"); }; }; then
2575 ac_cv_prog_cc_stdc=$ac_arg
2578 echo "$as_me: failed program was:" >&5
2579 cat "conftest.$ac_ext" >&5
2581 rm -f "conftest.$ac_objext"
2583 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2588 case "x$ac_cv_prog_cc_stdc" in
2590 echo "$as_me:2590: result: none needed" >&5
2591 echo "${ECHO_T}none needed" >&6 ;;
2593 echo "$as_me:2593: result: $ac_cv_prog_cc_stdc" >&5
2594 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2595 CC="$CC $ac_cv_prog_cc_stdc" ;;
2598 # This should have been defined by AC_PROG_CC
2601 echo "$as_me:2601: checking \$CFLAGS variable" >&5
2602 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2605 echo "$as_me:2605: result: broken" >&5
2606 echo "${ECHO_T}broken" >&6
2607 { echo "$as_me:2607: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2608 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2611 for cf_arg in $cf_flags
2617 cf_new_extra_cppflags=
2619 for cf_add_cflags in $cf_arg
2621 case "$cf_fix_cppflags" in
2623 case "$cf_add_cflags" in
2624 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2625 case "$cf_add_cflags" in
2627 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2629 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2630 && test -z "${cf_tst_cflags}" \
2631 && cf_fix_cppflags=yes
2633 if test "$cf_fix_cppflags" = yes ; then
2635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2639 elif test "${cf_tst_cflags}" = "\"'" ; then
2641 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2642 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2652 case "$cf_add_cflags" in
2654 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2656 CPPFLAGS=`echo "$CPPFLAGS" | \
2657 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2658 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2663 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2664 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2671 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2672 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2679 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2680 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2682 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2684 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2685 && test -z "${cf_tst_cflags}" \
2686 && cf_fix_cppflags=no
2691 if test -n "$cf_new_cflags" ; then
2693 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2694 CFLAGS="${CFLAGS}$cf_new_cflags"
2698 if test -n "$cf_new_cppflags" ; then
2700 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2701 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2705 if test -n "$cf_new_extra_cppflags" ; then
2707 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2708 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2715 echo "$as_me:2715: result: ok" >&5
2716 echo "${ECHO_T}ok" >&6
2720 echo "$as_me:2720: checking \$CC variable" >&5
2721 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2724 echo "$as_me:2724: result: broken" >&5
2725 echo "${ECHO_T}broken" >&6
2726 { echo "$as_me:2726: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2727 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2729 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2730 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2732 for cf_arg in $cf_flags
2740 cf_new_extra_cppflags=
2742 for cf_add_cflags in $cf_arg
2744 case "$cf_fix_cppflags" in
2746 case "$cf_add_cflags" in
2747 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2748 case "$cf_add_cflags" in
2750 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2752 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2753 && test -z "${cf_tst_cflags}" \
2754 && cf_fix_cppflags=yes
2756 if test "$cf_fix_cppflags" = yes ; then
2758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2762 elif test "${cf_tst_cflags}" = "\"'" ; then
2764 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2765 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2775 case "$cf_add_cflags" in
2777 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2779 CPPFLAGS=`echo "$CPPFLAGS" | \
2780 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2781 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2786 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2787 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2794 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2795 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2802 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2803 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2805 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2807 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2808 && test -z "${cf_tst_cflags}" \
2809 && cf_fix_cppflags=no
2814 if test -n "$cf_new_cflags" ; then
2816 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2817 CFLAGS="${CFLAGS}$cf_new_cflags"
2821 if test -n "$cf_new_cppflags" ; then
2823 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2824 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2828 if test -n "$cf_new_extra_cppflags" ; then
2830 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2831 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2841 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2843 echo "${as_me:-configure}:2843: testing resulting CC: '$CC' ..." 1>&5
2845 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2847 echo "${as_me:-configure}:2847: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2849 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2851 echo "${as_me:-configure}:2851: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2855 echo "$as_me:2855: result: ok" >&5
2856 echo "${ECHO_T}ok" >&6
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2863 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 ac_main_return="return"
2866 echo "$as_me:2866: checking how to run the C preprocessor" >&5
2867 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2868 # On Suns, sometimes $CPP names a directory.
2869 if test -n "$CPP" && test -d "$CPP"; then
2872 if test -z "$CPP"; then
2873 if test "${ac_cv_prog_CPP+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 # Double quotes because CPP needs to be expanded
2877 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2880 for ac_c_preproc_warn_flag in '' yes
2882 # Use a header file that comes with gcc, so configuring glibc
2883 # with a fresh cross-compiler works.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >"conftest.$ac_ext" <<_ACEOF
2887 #line 2887 "configure"
2888 #include "confdefs.h"
2892 if { (eval echo "$as_me:2892: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2893 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2895 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit "$ac_status"); } >/dev/null; then
2900 if test -s conftest.err; then
2901 ac_cpp_err=$ac_c_preproc_warn_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 cat "conftest.$ac_ext" >&5
2913 # Broken: fails on valid input.
2916 rm -f conftest.err "conftest.$ac_ext"
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
2920 cat >"conftest.$ac_ext" <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2923 #include <ac_nonexistent.h>
2925 if { (eval echo "$as_me:2925: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2926 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2928 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:2931: \$? = $ac_status" >&5
2932 (exit "$ac_status"); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2945 echo "$as_me: failed program was:" >&5
2946 cat "conftest.$ac_ext" >&5
2947 # Passes both tests.
2951 rm -f conftest.err "conftest.$ac_ext"
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err "conftest.$ac_ext"
2956 if $ac_preproc_ok; then
2968 echo "$as_me:2968: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # On the NeXT, cc -E runs the code through the compiler's parser,
2976 # not just through cpp. "Syntax error" is here to catch this case.
2977 cat >"conftest.$ac_ext" <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2983 if { (eval echo "$as_me:2983: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2984 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2986 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:2989: \$? = $ac_status" >&5
2990 (exit "$ac_status"); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2999 if test -z "$ac_cpp_err"; then
3002 echo "$as_me: failed program was:" >&5
3003 cat "conftest.$ac_ext" >&5
3004 # Broken: fails on valid input.
3007 rm -f conftest.err "conftest.$ac_ext"
3009 # OK, works on sane cases. Now check whether non-existent headers
3010 # can be detected and how.
3011 cat >"conftest.$ac_ext" <<_ACEOF
3012 #line 3012 "configure"
3013 #include "confdefs.h"
3014 #include <ac_nonexistent.h>
3016 if { (eval echo "$as_me:3016: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3017 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3019 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit "$ac_status"); } >/dev/null; then
3024 if test -s conftest.err; then
3025 ac_cpp_err=$ac_c_preproc_warn_flag
3032 if test -z "$ac_cpp_err"; then
3033 # Broken: success on invalid input.
3036 echo "$as_me: failed program was:" >&5
3037 cat "conftest.$ac_ext" >&5
3038 # Passes both tests.
3042 rm -f conftest.err "conftest.$ac_ext"
3045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3046 rm -f conftest.err "conftest.$ac_ext"
3047 if $ac_preproc_ok; then
3050 { { echo "$as_me:3050: error: C preprocessor \"$CPP\" fails sanity check" >&5
3051 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3052 { (exit 1); exit 1; }; }
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3058 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_main_return="return"
3062 if test $ac_cv_c_compiler_gnu = yes; then
3063 echo "$as_me:3063: checking whether $CC needs -traditional" >&5
3064 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3065 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 ac_pattern="Autoconf.*'x'"
3069 cat >"conftest.$ac_ext" <<_ACEOF
3070 #line 3070 "configure"
3071 #include "confdefs.h"
3073 int Autoconf = TIOCGETP;
3075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3076 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3077 ac_cv_prog_gcc_traditional=yes
3079 ac_cv_prog_gcc_traditional=no
3083 if test $ac_cv_prog_gcc_traditional = no; then
3084 cat >"conftest.$ac_ext" <<_ACEOF
3085 #line 3085 "configure"
3086 #include "confdefs.h"
3088 int Autoconf = TCGETA;
3090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3091 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3092 ac_cv_prog_gcc_traditional=yes
3098 echo "$as_me:3098: result: $ac_cv_prog_gcc_traditional" >&5
3099 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3100 if test $ac_cv_prog_gcc_traditional = yes; then
3101 CC="$CC -traditional"
3105 echo "$as_me:3105: checking whether $CC understands -c and -o together" >&5
3106 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3107 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 cat > conftest.$ac_ext <<CF_EOF
3114 ${cf_cv_main_return:-return}(0);
3117 # We do the test twice because some compilers refuse to overwrite an
3118 # existing .o file with -o, though they will create one.
3119 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3120 if { (eval echo "$as_me:3120: \"$ac_try\"") >&5
3123 echo "$as_me:3123: \$? = $ac_status" >&5
3124 (exit "$ac_status"); } &&
3125 test -f conftest2.$ac_objext && { (eval echo "$as_me:3125: \"$ac_try\"") >&5
3128 echo "$as_me:3128: \$? = $ac_status" >&5
3129 (exit "$ac_status"); };
3131 eval cf_cv_prog_CC_c_o=yes
3133 eval cf_cv_prog_CC_c_o=no
3138 if test "$cf_cv_prog_CC_c_o" = yes; then
3139 echo "$as_me:3139: result: yes" >&5
3140 echo "${ECHO_T}yes" >&6
3142 echo "$as_me:3142: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3146 if test "$cross_compiling" = yes ; then
3149 case "$cf_cv_system_name" in
3150 (dragonfly*|mirbsd*|freebsd*)
3151 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3153 (*) LDPATH=$PATH:/sbin:/usr/sbin
3154 # Extract the first word of "ldconfig", so it can be a program name with args.
3155 set dummy ldconfig; ac_word=$2
3156 echo "$as_me:3156: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3166 ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 if $as_executable_p "$ac_dir/$ac_word"; then
3172 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3181 LDCONFIG=$ac_cv_path_LDCONFIG
3183 if test -n "$LDCONFIG"; then
3184 echo "$as_me:3184: result: $LDCONFIG" >&5
3185 echo "${ECHO_T}$LDCONFIG" >&6
3187 echo "$as_me:3187: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3195 echo "$as_me:3195: checking if you want to ensure bool is consistent with C++" >&5
3196 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3198 # Check whether --with-cxx or --without-cxx was given.
3199 if test "${with_cxx+set}" = set; then
3201 cf_with_cxx=$withval
3205 echo "$as_me:3205: result: $cf_with_cxx" >&5
3206 echo "${ECHO_T}$cf_with_cxx" >&6
3207 if test "X$cf_with_cxx" = Xno ; then
3211 # with autoconf 2.13, we can change the error to a warning:
3213 ac_cpp='$CXXCPP $CPPFLAGS'
3214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3215 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3217 ac_main_return="return"
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223 echo "$as_me:3223: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225 if test "${ac_cv_prog_CXX+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if test -n "$CXX"; then
3229 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3231 ac_save_IFS=$IFS; IFS=$ac_path_separator
3233 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 $as_executable_p "$ac_dir/$ac_word" || continue
3237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3238 echo "$as_me:3238: found $ac_dir/$ac_word" >&5
3245 if test -n "$CXX"; then
3246 echo "$as_me:3246: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:3249: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 test -n "$CXX" && break
3256 if test -z "$CXX"; then
3258 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:3262: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$ac_ct_CXX"; then
3268 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270 ac_save_IFS=$IFS; IFS=$ac_path_separator
3272 for ac_dir in $ac_dummy; do
3274 test -z "$ac_dir" && ac_dir=.
3275 $as_executable_p "$ac_dir/$ac_word" || continue
3276 ac_cv_prog_ac_ct_CXX="$ac_prog"
3277 echo "$as_me:3277: found $ac_dir/$ac_word" >&5
3283 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3284 if test -n "$ac_ct_CXX"; then
3285 echo "$as_me:3285: result: $ac_ct_CXX" >&5
3286 echo "${ECHO_T}$ac_ct_CXX" >&6
3288 echo "$as_me:3288: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3292 test -n "$ac_ct_CXX" && break
3294 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3299 # Provide some information about the compiler.
3300 echo "$as_me:3300:" \
3301 "checking for C++ compiler version" >&5
3302 ac_compiler=`set X $ac_compile; echo $2`
3303 { (eval echo "$as_me:3303: \"$ac_compiler --version </dev/null >&5\"") >&5
3304 (eval $ac_compiler --version </dev/null >&5) 2>&5
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit "$ac_status"); }
3308 { (eval echo "$as_me:3308: \"$ac_compiler -v </dev/null >&5\"") >&5
3309 (eval $ac_compiler -v </dev/null >&5) 2>&5
3311 echo "$as_me:3311: \$? = $ac_status" >&5
3312 (exit "$ac_status"); }
3313 { (eval echo "$as_me:3313: \"$ac_compiler -V </dev/null >&5\"") >&5
3314 (eval $ac_compiler -V </dev/null >&5) 2>&5
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit "$ac_status"); }
3319 echo "$as_me:3319: checking whether we are using the GNU C++ compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >"conftest.$ac_ext" <<_ACEOF
3325 #line 3325 "configure"
3326 #include "confdefs.h"
3339 rm -f "conftest.$ac_objext"
3340 if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit "$ac_status"); } &&
3345 { ac_try='test -s "conftest.$ac_objext"'
3346 { (eval echo "$as_me:3346: \"$ac_try\"") >&5
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit "$ac_status"); }; }; then
3353 echo "$as_me: failed program was:" >&5
3354 cat "conftest.$ac_ext" >&5
3357 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3361 echo "$as_me:3361: result: $ac_cv_cxx_compiler_gnu" >&5
3362 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3363 GXX=`test $ac_compiler_gnu = yes && echo yes`
3364 ac_test_CXXFLAGS=${CXXFLAGS+set}
3365 ac_save_CXXFLAGS=$CXXFLAGS
3367 echo "$as_me:3367: checking whether $CXX accepts -g" >&5
3368 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3369 if test "${ac_cv_prog_cxx_g+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 cat >"conftest.$ac_ext" <<_ACEOF
3373 #line 3373 "configure"
3374 #include "confdefs.h"
3384 rm -f "conftest.$ac_objext"
3385 if { (eval echo "$as_me:3385: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>&5
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit "$ac_status"); } &&
3390 { ac_try='test -s "conftest.$ac_objext"'
3391 { (eval echo "$as_me:3391: \"$ac_try\"") >&5
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit "$ac_status"); }; }; then
3396 ac_cv_prog_cxx_g=yes
3398 echo "$as_me: failed program was:" >&5
3399 cat "conftest.$ac_ext" >&5
3402 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3404 echo "$as_me:3404: result: $ac_cv_prog_cxx_g" >&5
3405 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3406 if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408 elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3415 if test "$GXX" = yes; then
3421 for ac_declaration in \
3423 '#include <stdlib.h>' \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \
3430 cat >"conftest.$ac_ext" <<_ACEOF
3431 #line 3431 "configure"
3432 #include "confdefs.h"
3443 rm -f "conftest.$ac_objext"
3444 if { (eval echo "$as_me:3444: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>&5
3447 echo "$as_me:3447: \$? = $ac_status" >&5
3448 (exit "$ac_status"); } &&
3449 { ac_try='test -s "conftest.$ac_objext"'
3450 { (eval echo "$as_me:3450: \"$ac_try\"") >&5
3453 echo "$as_me:3453: \$? = $ac_status" >&5
3454 (exit "$ac_status"); }; }; then
3457 echo "$as_me: failed program was:" >&5
3458 cat "conftest.$ac_ext" >&5
3461 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3462 cat >"conftest.$ac_ext" <<_ACEOF
3463 #line 3463 "configure"
3464 #include "confdefs.h"
3474 rm -f "conftest.$ac_objext"
3475 if { (eval echo "$as_me:3475: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3478 echo "$as_me:3478: \$? = $ac_status" >&5
3479 (exit "$ac_status"); } &&
3480 { ac_try='test -s "conftest.$ac_objext"'
3481 { (eval echo "$as_me:3481: \"$ac_try\"") >&5
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit "$ac_status"); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 cat "conftest.$ac_ext" >&5
3491 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3494 if test -n "$ac_declaration"; then
3495 echo '#ifdef __cplusplus' >>confdefs.h
3496 echo "$ac_declaration" >>confdefs.h
3497 echo '#endif' >>confdefs.h
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3503 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 ac_main_return="return"
3508 ac_cpp='$CXXCPP $CPPFLAGS'
3509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3510 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3512 ac_main_return="return"
3514 if test "x$cf_with_cxx" != xno
3516 # Several of the C++ configurations do not work, particularly when
3517 # cross-compiling (20140913 -TD)
3518 echo "$as_me:3518: checking if $CXX works" >&5
3519 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3521 save_CPPFLAGS="$CPPFLAGS"
3522 eval cf_includedir=${includedir}
3523 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3525 cat >"conftest.$ac_ext" <<_ACEOF
3526 #line 3526 "configure"
3527 #include "confdefs.h"
3536 printf("Hello world!\n")
3542 rm -f "conftest.$ac_objext"
3543 if { (eval echo "$as_me:3543: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>&5
3546 echo "$as_me:3546: \$? = $ac_status" >&5
3547 (exit "$ac_status"); } &&
3548 { ac_try='test -s "conftest.$ac_objext"'
3549 { (eval echo "$as_me:3549: \"$ac_try\"") >&5
3552 echo "$as_me:3552: \$? = $ac_status" >&5
3553 (exit "$ac_status"); }; }; then
3556 echo "$as_me: failed program was:" >&5
3557 cat "conftest.$ac_ext" >&5
3560 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3561 CPPFLAGS="$save_CPPFLAGS"
3563 echo "$as_me:3563: result: $cf_cxx_works" >&5
3564 echo "${ECHO_T}$cf_cxx_works" >&6
3565 if test "x$cf_cxx_works" = xno
3567 { echo "$as_me:3567: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3568 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3569 cf_with_cxx=no; CXX=""; GXX="";
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3575 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 ac_main_return="return"
3579 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3580 if test "$CXX" = "g++" ; then
3581 # Extract the first word of "g++", so it can be a program name with args.
3582 set dummy g++; ac_word=$2
3583 echo "$as_me:3583: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_path_CXX+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3593 ac_save_IFS=$IFS; IFS=$ac_path_separator
3595 for ac_dir in $ac_dummy; do
3597 test -z "$ac_dir" && ac_dir=.
3598 if $as_executable_p "$ac_dir/$ac_word"; then
3599 ac_cv_path_CXX="$ac_dir/$ac_word"
3600 echo "$as_me:3600: found $ac_dir/$ac_word" >&5
3610 if test -n "$CXX"; then
3611 echo "$as_me:3611: result: $CXX" >&5
3612 echo "${ECHO_T}$CXX" >&6
3614 echo "$as_me:3614: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3621 { echo "$as_me:3621: WARNING: You don't have any C++ compiler, too bad" >&5
3622 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3623 cf_with_cxx=no; CXX=""; GXX="";
3629 if test "$GXX" = yes; then
3630 echo "$as_me:3630: checking version of ${CXX:-g++}" >&5
3631 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3632 GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3633 if test -z "$GXX_VERSION"
3638 echo "$as_me:3638: result: $GXX_VERSION" >&5
3639 echo "${ECHO_T}$GXX_VERSION" >&6
3642 case "$GXX_VERSION" in
3646 { echo "$as_me:3646: WARNING: templates do not work" >&5
3647 echo "$as_me: WARNING: templates do not work" >&2;}
3651 echo "$as_me:3651: checking if you want to build C++ binding and demo" >&5
3652 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3654 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3655 if test "${with_cxx_binding+set}" = set; then
3656 withval="$with_cxx_binding"
3657 cf_with_cxx_binding=$withval
3659 cf_with_cxx_binding=$cf_with_cxx
3661 echo "$as_me:3661: result: $cf_with_cxx_binding" >&5
3662 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3664 echo "$as_me:3664: checking if you want to build with Ada" >&5
3665 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3666 echo "$as_me:3666: result: $cf_with_ada" >&5
3667 echo "${ECHO_T}$cf_with_ada" >&6
3669 echo "$as_me:3669: checking if you want to install terminal database" >&5
3670 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3672 # Check whether --enable-db-install or --disable-db-install was given.
3673 if test "${enable_db_install+set}" = set; then
3674 enableval="$enable_db_install"
3675 cf_with_db_install=$enableval
3677 cf_with_db_install=yes
3679 echo "$as_me:3679: result: $cf_with_db_install" >&5
3680 echo "${ECHO_T}$cf_with_db_install" >&6
3682 echo "$as_me:3682: checking if you want to install manpages" >&5
3683 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3685 # Check whether --with-manpages or --without-manpages was given.
3686 if test "${with_manpages+set}" = set; then
3687 withval="$with_manpages"
3688 cf_with_manpages=$withval
3690 cf_with_manpages=yes
3692 echo "$as_me:3692: result: $cf_with_manpages" >&5
3693 echo "${ECHO_T}$cf_with_manpages" >&6
3695 echo "$as_me:3695: checking if you want to build programs such as tic" >&5
3696 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3698 # Check whether --with-progs or --without-progs was given.
3699 if test "${with_progs+set}" = set; then
3700 withval="$with_progs"
3701 cf_with_progs=$withval
3705 echo "$as_me:3705: result: $cf_with_progs" >&5
3706 echo "${ECHO_T}$cf_with_progs" >&6
3708 echo "$as_me:3708: checking if you want to build test-programs" >&5
3709 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3711 # Check whether --with-tests or --without-tests was given.
3712 if test "${with_tests+set}" = set; then
3713 withval="$with_tests"
3714 cf_with_tests=$withval
3718 echo "$as_me:3718: result: $cf_with_tests" >&5
3719 echo "${ECHO_T}$cf_with_tests" >&6
3721 echo "$as_me:3721: checking if you wish to install curses.h" >&5
3722 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3724 # Check whether --with-curses-h or --without-curses-h was given.
3725 if test "${with_curses_h+set}" = set; then
3726 withval="$with_curses_h"
3727 with_curses_h=$withval
3731 echo "$as_me:3731: result: $with_curses_h" >&5
3732 echo "${ECHO_T}$with_curses_h" >&6
3734 modules_to_build="ncurses"
3735 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3736 modules_to_build="$modules_to_build panel menu form"
3738 test "$program_prefix" != NONE &&
3739 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3740 # Use a double $ so make ignores it.
3741 test "$program_suffix" != NONE &&
3742 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3743 # Double any \ or $. echo might interpret backslashes.
3744 # By default was `s,x,x', remove it if useless.
3745 cat <<\_ACEOF >conftest.sed
3746 s/[\\$]/&&/g;s/;s,x,x,$//
3748 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3751 for ac_prog in mawk gawk nawk awk
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy $ac_prog; ac_word=$2
3755 echo "$as_me:3755: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_AWK+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$AWK"; then
3761 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3763 ac_save_IFS=$IFS; IFS=$ac_path_separator
3765 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 $as_executable_p "$ac_dir/$ac_word" || continue
3769 ac_cv_prog_AWK="$ac_prog"
3770 echo "$as_me:3770: found $ac_dir/$ac_word" >&5
3777 if test -n "$AWK"; then
3778 echo "$as_me:3778: result: $AWK" >&5
3779 echo "${ECHO_T}$AWK" >&6
3781 echo "$as_me:3781: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3785 test -n "$AWK" && break
3788 test -z "$AWK" && { { echo "$as_me:3788: error: No awk program found" >&5
3789 echo "$as_me: error: No awk program found" >&2;}
3790 { (exit 1); exit 1; }; }
3792 # Find a good install program. We prefer a C program (faster),
3793 # so one script is as good as another. But avoid the broken or
3794 # incompatible versions:
3795 # SysV /etc/install, /usr/sbin/install
3796 # SunOS /usr/etc/install
3797 # IRIX /sbin/install
3799 # AmigaOS /C/install, which installs bootblocks on floppy discs
3800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803 # ./install, which can be erroneously created by make from ./install.sh.
3804 echo "$as_me:3804: checking for a BSD compatible install" >&5
3805 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3806 if test -z "$INSTALL"; then
3807 if test "${ac_cv_path_install+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_save_IFS=$IFS; IFS=$ac_path_separator
3811 for ac_dir in $PATH; do
3813 # Account for people who put trailing slashes in PATH elements.
3815 / | ./ | .// | /cC/* \
3816 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3819 # OSF1 and SCO ODT 3.0 have their own names for install.
3820 # Don't use installbsd from OSF since it installs stuff as root
3822 for ac_prog in ginstall scoinst install; do
3823 if $as_executable_p "$ac_dir/$ac_prog"; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3828 elif test $ac_prog = install &&
3829 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3833 ac_cv_path_install="$ac_dir/$ac_prog -c"
3843 if test "${ac_cv_path_install+set}" = set; then
3844 INSTALL=$ac_cv_path_install
3846 # As a last resort, use the slow shell script. We don't cache a
3847 # path for INSTALL within a source directory, because that will
3848 # break other packages using the cache if that directory is
3849 # removed, or if the path is relative.
3850 INSTALL=$ac_install_sh
3853 echo "$as_me:3853: result: $INSTALL" >&5
3854 echo "${ECHO_T}$INSTALL" >&6
3856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3857 # It thinks the first close brace ends the variable substitution.
3858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3868 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3869 test -z "$cf_dir" && cf_dir=.
3870 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3874 for ac_prog in lint cppcheck splint
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 echo "$as_me:3878: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880 if test "${ac_cv_prog_LINT+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 if test -n "$LINT"; then
3884 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3886 ac_save_IFS=$IFS; IFS=$ac_path_separator
3888 for ac_dir in $ac_dummy; do
3890 test -z "$ac_dir" && ac_dir=.
3891 $as_executable_p "$ac_dir/$ac_word" || continue
3892 ac_cv_prog_LINT="$ac_prog"
3893 echo "$as_me:3893: found $ac_dir/$ac_word" >&5
3899 LINT=$ac_cv_prog_LINT
3900 if test -n "$LINT"; then
3901 echo "$as_me:3901: result: $LINT" >&5
3902 echo "${ECHO_T}$LINT" >&6
3904 echo "$as_me:3904: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3908 test -n "$LINT" && break
3912 (xcppcheck|x*/cppcheck)
3913 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3917 echo "$as_me:3917: checking whether ln -s works" >&5
3918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3920 if test "$LN_S" = "ln -s"; then
3921 echo "$as_me:3921: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6
3924 echo "$as_me:3924: result: no, using $LN_S" >&5
3925 echo "${ECHO_T}no, using $LN_S" >&6
3928 echo "$as_me:3928: checking if $LN_S -f options work" >&5
3929 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3931 rm -f conf$$.src conf$$dst
3933 echo first >conf$$.src
3934 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3939 rm -f conf$$.dst conf$$src
3940 echo "$as_me:3940: result: $cf_prog_ln_sf" >&5
3941 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3943 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3945 echo "$as_me:3945: checking for long file names" >&5
3946 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3947 if test "${ac_cv_sys_long_file_names+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 ac_cv_sys_long_file_names=yes
3951 # Test for long file names in all the places we know might matter:
3952 # . the current directory, where building will happen
3953 # $prefix/lib where we will be installing things
3954 # $exec_prefix/lib likewise
3955 # eval it to expand exec_prefix.
3956 # $TMPDIR if set, where it might want to write temporary files
3957 # if $TMPDIR is not set:
3958 # /tmp where it might want to write temporary files
3961 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3964 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3966 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3967 test -d "$ac_dir" || continue
3968 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3969 ac_xdir=$ac_dir/cf$$
3970 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3971 ac_tf1=$ac_xdir/conftest9012345
3972 ac_tf2=$ac_xdir/conftest9012346
3973 (echo 1 >"$ac_tf1") 2>/dev/null
3974 (echo 2 >"$ac_tf2") 2>/dev/null
3975 ac_val=`cat "$ac_tf1" 2>/dev/null`
3976 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3977 ac_cv_sys_long_file_names=no
3978 rm -rf "$ac_xdir" 2>/dev/null
3981 rm -rf "$ac_xdir" 2>/dev/null
3984 echo "$as_me:3984: result: $ac_cv_sys_long_file_names" >&5
3985 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3986 if test "$ac_cv_sys_long_file_names" = yes; then
3988 cat >>confdefs.h <<\EOF
3989 #define HAVE_LONG_FILE_NAMES 1
3994 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3995 # of package conflict.
3998 # Check whether --with-config-suffix or --without-config-suffix was given.
3999 if test "${with_config_suffix+set}" = set; then
4000 withval="$with_config_suffix"
4003 { echo "$as_me:4003: WARNING: expected a value for config-suffix option" >&5
4004 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4006 (*) cf_config_suffix="$withval"
4011 # If we find pkg-config, check if we should install the ".pc" files.
4013 echo "$as_me:4013: checking if you want to use pkg-config" >&5
4014 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4016 # Check whether --with-pkg-config or --without-pkg-config was given.
4017 if test "${with_pkg_config+set}" = set; then
4018 withval="$with_pkg_config"
4019 cf_pkg_config=$withval
4023 echo "$as_me:4023: result: $cf_pkg_config" >&5
4024 echo "${ECHO_T}$cf_pkg_config" >&6
4026 case "$cf_pkg_config" in
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4035 echo "$as_me:4035: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4045 ac_save_IFS=$IFS; IFS=$ac_path_separator
4047 for ac_dir in $ac_dummy; do
4049 test -z "$ac_dir" && ac_dir=.
4050 if $as_executable_p "$ac_dir/$ac_word"; then
4051 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4052 echo "$as_me:4052: found $ac_dir/$ac_word" >&5
4060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4062 if test -n "$PKG_CONFIG"; then
4063 echo "$as_me:4063: result: $PKG_CONFIG" >&5
4064 echo "${ECHO_T}$PKG_CONFIG" >&6
4066 echo "$as_me:4066: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4071 if test -z "$ac_cv_path_PKG_CONFIG"; then
4072 ac_pt_PKG_CONFIG=$PKG_CONFIG
4073 # Extract the first word of "pkg-config", so it can be a program name with args.
4074 set dummy pkg-config; ac_word=$2
4075 echo "$as_me:4075: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 case $ac_pt_PKG_CONFIG in
4082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4085 ac_save_IFS=$IFS; IFS=$ac_path_separator
4087 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if $as_executable_p "$ac_dir/$ac_word"; then
4091 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4092 echo "$as_me:4092: found $ac_dir/$ac_word" >&5
4097 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4101 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4103 if test -n "$ac_pt_PKG_CONFIG"; then
4104 echo "$as_me:4104: result: $ac_pt_PKG_CONFIG" >&5
4105 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4107 echo "$as_me:4107: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 PKG_CONFIG=$ac_pt_PKG_CONFIG
4113 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4122 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4123 if test "$PKG_CONFIG" != none ; then
4125 if test "x$prefix" != xNONE; then
4126 cf_path_syntax="$prefix"
4128 cf_path_syntax="$ac_default_prefix"
4131 case ".$PKG_CONFIG" in
4136 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4138 (.\$\{*prefix\}*|.\$\{*dir\}*)
4139 eval PKG_CONFIG="$PKG_CONFIG"
4140 case ".$PKG_CONFIG" in
4142 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4147 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4150 { { echo "$as_me:4150: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4151 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4152 { (exit 1); exit 1; }; }
4156 elif test "x$cf_pkg_config" != xno ; then
4157 { echo "$as_me:4157: WARNING: pkg-config is not installed" >&5
4158 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4161 case "$PKG_CONFIG" in
4163 echo "$as_me:4163: checking for pkg-config library directory" >&5
4164 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4167 echo "$as_me:4167: checking for $PKG_CONFIG library directory" >&5
4168 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4172 # if $PKG_CONFIG_LIBDIR is set, try to use that
4173 if test -n "$PKG_CONFIG_PATH"; then
4174 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4175 elif test -n "$PKG_CONFIG_LIBDIR"; then
4176 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4181 # if the option is used, let that override. otherwise default to "libdir"
4183 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4184 if test "${with_pkg_config_libdir+set}" = set; then
4185 withval="$with_pkg_config_libdir"
4186 cf_search_path=$withval
4188 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4191 case "x$cf_search_path" in
4193 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4194 echo "$as_me:4194: result: $PKG_CONFIG_LIBDIR" >&5
4195 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4204 PKG_CONFIG_LIBDIR="$cf_search_path"
4205 echo "$as_me:4205: result: $PKG_CONFIG_LIBDIR" >&5
4206 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4210 echo "$as_me:4210: result: auto" >&5
4211 echo "${ECHO_T}auto" >&6
4213 # Look for the library directory using the same prefix as the executable
4214 echo "$as_me:4214: checking for search-list" >&5
4215 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4216 if test "x$PKG_CONFIG" != xnone
4218 # works for pkg-config since version 0.24 (2009)
4219 # works for pkgconf since version 0.8.3 (2012)
4220 for cf_pkg_program in \
4221 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4225 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4226 test -n "$cf_search_path" && break
4229 # works for pkg-config since import in 2005 of original 2001 HP code.
4230 test -z "$cf_search_path" && \
4232 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4233 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4234 sub(\"^[^']*'\",\"\"); \
4235 sub(\"'.*\",\"\"); \
4236 printf \" %s\", \\$0; } \
4241 echo "$as_me:4241: result: $cf_search_path" >&5
4242 echo "${ECHO_T}$cf_search_path" >&6
4245 { { echo "$as_me:4245: error: Unexpected option value: $cf_search_path" >&5
4246 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4247 { (exit 1); exit 1; }; }
4251 if test -n "$cf_search_path"
4253 echo "$as_me:4253: checking for first directory" >&5
4254 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4255 cf_pkg_config_path=none
4256 for cf_config in $cf_search_path
4258 if test -d "$cf_config"
4260 cf_pkg_config_path=$cf_config
4264 echo "$as_me:4264: result: $cf_pkg_config_path" >&5
4265 echo "${ECHO_T}$cf_pkg_config_path" >&6
4267 if test "x$cf_pkg_config_path" != xnone ; then
4268 # limit this to the first directory found
4269 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4272 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4274 echo "$as_me:4274: checking for workaround" >&5
4275 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4276 if test "$prefix" = "NONE" ; then
4277 cf_prefix="$ac_default_prefix"
4281 eval cf_libdir=$libdir
4282 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4284 for cf_config in $cf_search_path
4287 $cf_libdir/pkgconfig)
4288 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4292 test -z "$cf_backup" && cf_backup=$cf_config
4296 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4297 echo "$as_me:4297: result: $PKG_CONFIG_LIBDIR" >&5
4298 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4302 if test "x$PKG_CONFIG" != xnone
4304 echo "$as_me:4304: checking if we should install .pc files for $PKG_CONFIG" >&5
4305 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4307 echo "$as_me:4307: checking if we should install .pc files" >&5
4308 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4311 # Check whether --enable-pc-files or --disable-pc-files was given.
4312 if test "${enable_pc_files+set}" = set; then
4313 enableval="$enable_pc_files"
4314 enable_pc_files=$enableval
4318 echo "$as_me:4318: result: $enable_pc_files" >&5
4319 echo "${ECHO_T}$enable_pc_files" >&6
4321 if test "x$enable_pc_files" != xno
4324 case "x$PKG_CONFIG_LIBDIR" in
4326 { echo "$as_me:4326: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4327 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4330 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4332 if test "x$prefix" != xNONE; then
4333 cf_path_syntax="$prefix"
4335 cf_path_syntax="$ac_default_prefix"
4338 case ".$cf_pkg_config_libdir" in
4343 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4345 (.\$\{*prefix\}*|.\$\{*dir\}*)
4346 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4347 case ".$cf_pkg_config_libdir" in
4349 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4354 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4357 { { echo "$as_me:4357: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4358 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4359 { (exit 1); exit 1; }; }
4369 if test -z "$MAKE_PC_FILES"
4371 echo "$as_me:4371: checking for suffix to add to pkg-config files" >&5
4372 echo $ECHO_N "checking for suffix to add to pkg-config files... $ECHO_C" >&6
4374 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4375 if test "${with_pc_suffix+set}" = set; then
4376 withval="$with_pc_suffix"
4381 (*) PC_MODULE_SUFFIX="$withval"
4385 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4386 echo "$as_me:4386: result: $PC_MODULE_SUFFIX" >&5
4387 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4388 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4392 echo "$as_me:4392: checking if we should assume mixed-case filenames" >&5
4393 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4395 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4396 if test "${enable_mixed_case+set}" = set; then
4397 enableval="$enable_mixed_case"
4398 enable_mixedcase=$enableval
4400 enable_mixedcase=auto
4402 echo "$as_me:4402: result: $enable_mixedcase" >&5
4403 echo "${ECHO_T}$enable_mixedcase" >&6
4404 if test "$enable_mixedcase" = "auto" ; then
4406 echo "$as_me:4406: checking if filesystem supports mixed-case filenames" >&5
4407 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4408 if test "${cf_cv_mixedcase+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 if test "$cross_compiling" = yes ; then
4413 case "$target_alias" in
4414 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4422 rm -f conftest CONFTEST
4424 if test -f CONFTEST ; then
4429 rm -f conftest CONFTEST
4433 echo "$as_me:4433: result: $cf_cv_mixedcase" >&5
4434 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4435 test "$cf_cv_mixedcase" = yes &&
4436 cat >>confdefs.h <<\EOF
4437 #define MIXEDCASE_FILENAMES 1
4441 cf_cv_mixedcase=$enable_mixedcase
4442 if test "x$enable_mixedcase" = "xyes" ; then
4444 cat >>confdefs.h <<\EOF
4445 #define MIXEDCASE_FILENAMES 1
4451 # do this after mixed-case option (tags/TAGS is not as important as tic).
4452 echo "$as_me:4452: checking whether ${MAKE-make} sets \${MAKE}" >&5
4453 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.make <<\EOF
4460 @echo 'ac_maketemp="${MAKE}"'
4462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4464 if test -n "$ac_maketemp"; then
4465 eval ac_cv_prog_make_${ac_make}_set=yes
4467 eval ac_cv_prog_make_${ac_make}_set=no
4471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4472 echo "$as_me:4472: result: yes" >&5
4473 echo "${ECHO_T}yes" >&6
4476 echo "$as_me:4476: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4478 SET_MAKE="MAKE=${MAKE-make}"
4481 echo "$as_me:4481: checking for \".PHONY\" make-support" >&5
4482 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4483 if test "${cf_cv_make_PHONY+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 mkdir conftest || exit 1
4491 cat >makefile <<'CF_EOF'
4495 @echo "** making $@ $(DATA)"
4497 @echo "** making $@ $(DATA)"
4499 @echo "** making $@ $(DATA)"
4502 @echo "** making $@ $(DATA)"
4505 for cf_data in 1 2 3
4507 ${MAKE:-make} always DATA=$cf_data
4508 ${MAKE:-make} once DATA=$cf_data
4509 ${MAKE:-make} -t always once
4510 if test -f always ; then
4511 echo "no (case 1)" > ../conftest.tmp
4512 elif test ! -f always.out ; then
4513 echo "no (case 2)" > ../conftest.tmp
4514 elif test ! -f once.out ; then
4515 echo "no (case 3)" > ../conftest.tmp
4516 elif ! cmp -s always.out once.out ; then
4517 echo "no (case 4)" > ../conftest.tmp
4518 diff always.out once.out
4520 cf_check="`cat always.out`"
4521 if test "x$cf_check" != "x$cf_data" ; then
4522 echo "no (case 5)" > ../conftest.tmp
4524 echo yes > ../conftest.tmp
4532 cf_cv_make_PHONY="`cat conftest.tmp`"
4536 echo "$as_me:4536: result: $cf_cv_make_PHONY" >&5
4537 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4540 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4541 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4543 for ac_prog in exctags ctags
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 echo "$as_me:4547: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_CTAGS+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test -n "$CTAGS"; then
4553 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4555 ac_save_IFS=$IFS; IFS=$ac_path_separator
4557 for ac_dir in $ac_dummy; do
4559 test -z "$ac_dir" && ac_dir=.
4560 $as_executable_p "$ac_dir/$ac_word" || continue
4561 ac_cv_prog_CTAGS="$ac_prog"
4562 echo "$as_me:4562: found $ac_dir/$ac_word" >&5
4568 CTAGS=$ac_cv_prog_CTAGS
4569 if test -n "$CTAGS"; then
4570 echo "$as_me:4570: result: $CTAGS" >&5
4571 echo "${ECHO_T}$CTAGS" >&6
4573 echo "$as_me:4573: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 test -n "$CTAGS" && break
4580 for ac_prog in exetags etags
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 echo "$as_me:4584: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586 if test "${ac_cv_prog_ETAGS+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$ETAGS"; then
4590 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4592 ac_save_IFS=$IFS; IFS=$ac_path_separator
4594 for ac_dir in $ac_dummy; do
4596 test -z "$ac_dir" && ac_dir=.
4597 $as_executable_p "$ac_dir/$ac_word" || continue
4598 ac_cv_prog_ETAGS="$ac_prog"
4599 echo "$as_me:4599: found $ac_dir/$ac_word" >&5
4605 ETAGS=$ac_cv_prog_ETAGS
4606 if test -n "$ETAGS"; then
4607 echo "$as_me:4607: result: $ETAGS" >&5
4608 echo "${ECHO_T}$ETAGS" >&6
4610 echo "$as_me:4610: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4614 test -n "$ETAGS" && break
4617 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4618 set dummy ${CTAGS:-ctags}; ac_word=$2
4619 echo "$as_me:4619: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$MAKE_LOWER_TAGS"; then
4625 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4627 ac_save_IFS=$IFS; IFS=$ac_path_separator
4629 for ac_dir in $ac_dummy; do
4631 test -z "$ac_dir" && ac_dir=.
4632 $as_executable_p "$ac_dir/$ac_word" || continue
4633 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4634 echo "$as_me:4634: found $ac_dir/$ac_word" >&5
4638 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4641 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4642 if test -n "$MAKE_LOWER_TAGS"; then
4643 echo "$as_me:4643: result: $MAKE_LOWER_TAGS" >&5
4644 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4646 echo "$as_me:4646: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4650 if test "$cf_cv_mixedcase" = yes ; then
4651 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4652 set dummy ${ETAGS:-etags}; ac_word=$2
4653 echo "$as_me:4653: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$MAKE_UPPER_TAGS"; then
4659 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4661 ac_save_IFS=$IFS; IFS=$ac_path_separator
4663 for ac_dir in $ac_dummy; do
4665 test -z "$ac_dir" && ac_dir=.
4666 $as_executable_p "$ac_dir/$ac_word" || continue
4667 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4668 echo "$as_me:4668: found $ac_dir/$ac_word" >&5
4672 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4675 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4676 if test -n "$MAKE_UPPER_TAGS"; then
4677 echo "$as_me:4677: result: $MAKE_UPPER_TAGS" >&5
4678 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4680 echo "$as_me:4680: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4688 if test "$MAKE_UPPER_TAGS" = yes ; then
4694 if test "$MAKE_LOWER_TAGS" = yes ; then
4700 echo "$as_me:4700: checking for makeflags variable" >&5
4701 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4702 if test "${cf_cv_makeflags+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4709 cat >cf_makeflags.tmp <<CF_EOF
4712 @ echo '.$cf_option'
4714 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4715 case "$cf_result" in
4717 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4718 case "$cf_result" in
4719 (.*CC=*) cf_cv_makeflags=
4721 (*) cf_cv_makeflags=$cf_option
4730 echo "${as_me:-configure}:4730: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4735 rm -f cf_makeflags.tmp
4738 echo "$as_me:4738: result: $cf_cv_makeflags" >&5
4739 echo "${ECHO_T}$cf_cv_makeflags" >&6
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4744 echo "$as_me:4744: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_RANLIB+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$RANLIB"; then
4750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4752 ac_save_IFS=$IFS; IFS=$ac_path_separator
4754 for ac_dir in $ac_dummy; do
4756 test -z "$ac_dir" && ac_dir=.
4757 $as_executable_p "$ac_dir/$ac_word" || continue
4758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4759 echo "$as_me:4759: found $ac_dir/$ac_word" >&5
4765 RANLIB=$ac_cv_prog_RANLIB
4766 if test -n "$RANLIB"; then
4767 echo "$as_me:4767: result: $RANLIB" >&5
4768 echo "${ECHO_T}$RANLIB" >&6
4770 echo "$as_me:4770: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4775 if test -z "$ac_cv_prog_RANLIB"; then
4776 ac_ct_RANLIB=$RANLIB
4777 # Extract the first word of "ranlib", so it can be a program name with args.
4778 set dummy ranlib; ac_word=$2
4779 echo "$as_me:4779: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$ac_ct_RANLIB"; then
4785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4787 ac_save_IFS=$IFS; IFS=$ac_path_separator
4789 for ac_dir in $ac_dummy; do
4791 test -z "$ac_dir" && ac_dir=.
4792 $as_executable_p "$ac_dir/$ac_word" || continue
4793 ac_cv_prog_ac_ct_RANLIB="ranlib"
4794 echo "$as_me:4794: found $ac_dir/$ac_word" >&5
4798 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4802 if test -n "$ac_ct_RANLIB"; then
4803 echo "$as_me:4803: result: $ac_ct_RANLIB" >&5
4804 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4806 echo "$as_me:4806: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4810 RANLIB=$ac_ct_RANLIB
4812 RANLIB="$ac_cv_prog_RANLIB"
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}ld; ac_word=$2
4818 echo "$as_me:4818: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_LD+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$LD"; then
4824 ac_cv_prog_LD="$LD" # Let the user override the test.
4826 ac_save_IFS=$IFS; IFS=$ac_path_separator
4828 for ac_dir in $ac_dummy; do
4830 test -z "$ac_dir" && ac_dir=.
4831 $as_executable_p "$ac_dir/$ac_word" || continue
4832 ac_cv_prog_LD="${ac_tool_prefix}ld"
4833 echo "$as_me:4833: found $ac_dir/$ac_word" >&5
4840 if test -n "$LD"; then
4841 echo "$as_me:4841: result: $LD" >&5
4842 echo "${ECHO_T}$LD" >&6
4844 echo "$as_me:4844: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4849 if test -z "$ac_cv_prog_LD"; then
4851 # Extract the first word of "ld", so it can be a program name with args.
4852 set dummy ld; ac_word=$2
4853 echo "$as_me:4853: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4855 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$ac_ct_LD"; then
4859 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4861 ac_save_IFS=$IFS; IFS=$ac_path_separator
4863 for ac_dir in $ac_dummy; do
4865 test -z "$ac_dir" && ac_dir=.
4866 $as_executable_p "$ac_dir/$ac_word" || continue
4867 ac_cv_prog_ac_ct_LD="ld"
4868 echo "$as_me:4868: found $ac_dir/$ac_word" >&5
4872 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4875 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4876 if test -n "$ac_ct_LD"; then
4877 echo "$as_me:4877: result: $ac_ct_LD" >&5
4878 echo "${ECHO_T}$ac_ct_LD" >&6
4880 echo "$as_me:4880: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4889 if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4891 set dummy ${ac_tool_prefix}ar; ac_word=$2
4892 echo "$as_me:4892: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_prog_AR+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 if test -n "$AR"; then
4898 ac_cv_prog_AR="$AR" # Let the user override the test.
4900 ac_save_IFS=$IFS; IFS=$ac_path_separator
4902 for ac_dir in $ac_dummy; do
4904 test -z "$ac_dir" && ac_dir=.
4905 $as_executable_p "$ac_dir/$ac_word" || continue
4906 ac_cv_prog_AR="${ac_tool_prefix}ar"
4907 echo "$as_me:4907: found $ac_dir/$ac_word" >&5
4914 if test -n "$AR"; then
4915 echo "$as_me:4915: result: $AR" >&5
4916 echo "${ECHO_T}$AR" >&6
4918 echo "$as_me:4918: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4923 if test -z "$ac_cv_prog_AR"; then
4925 # Extract the first word of "ar", so it can be a program name with args.
4926 set dummy ar; ac_word=$2
4927 echo "$as_me:4927: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 if test -n "$ac_ct_AR"; then
4933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4935 ac_save_IFS=$IFS; IFS=$ac_path_separator
4937 for ac_dir in $ac_dummy; do
4939 test -z "$ac_dir" && ac_dir=.
4940 $as_executable_p "$ac_dir/$ac_word" || continue
4941 ac_cv_prog_ac_ct_AR="ar"
4942 echo "$as_me:4942: found $ac_dir/$ac_word" >&5
4946 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4950 if test -n "$ac_ct_AR"; then
4951 echo "$as_me:4951: result: $ac_ct_AR" >&5
4952 echo "${ECHO_T}$ac_ct_AR" >&6
4954 echo "$as_me:4954: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4963 if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4965 set dummy ${ac_tool_prefix}nm; ac_word=$2
4966 echo "$as_me:4966: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968 if test "${ac_cv_prog_NM+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if test -n "$NM"; then
4972 ac_cv_prog_NM="$NM" # Let the user override the test.
4974 ac_save_IFS=$IFS; IFS=$ac_path_separator
4976 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 $as_executable_p "$ac_dir/$ac_word" || continue
4980 ac_cv_prog_NM="${ac_tool_prefix}nm"
4981 echo "$as_me:4981: found $ac_dir/$ac_word" >&5
4988 if test -n "$NM"; then
4989 echo "$as_me:4989: result: $NM" >&5
4990 echo "${ECHO_T}$NM" >&6
4992 echo "$as_me:4992: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4997 if test -z "$ac_cv_prog_NM"; then
4999 # Extract the first word of "nm", so it can be a program name with args.
5000 set dummy nm; ac_word=$2
5001 echo "$as_me:5001: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 if test -n "$ac_ct_NM"; then
5007 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5009 ac_save_IFS=$IFS; IFS=$ac_path_separator
5011 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 $as_executable_p "$ac_dir/$ac_word" || continue
5015 ac_cv_prog_ac_ct_NM="nm"
5016 echo "$as_me:5016: found $ac_dir/$ac_word" >&5
5020 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5023 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5024 if test -n "$ac_ct_NM"; then
5025 echo "$as_me:5025: result: $ac_ct_NM" >&5
5026 echo "${ECHO_T}$ac_ct_NM" >&6
5028 echo "$as_me:5028: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5037 if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}ar; ac_word=$2
5040 echo "$as_me:5040: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5042 if test "${ac_cv_prog_AR+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 if test -n "$AR"; then
5046 ac_cv_prog_AR="$AR" # Let the user override the test.
5048 ac_save_IFS=$IFS; IFS=$ac_path_separator
5050 for ac_dir in $ac_dummy; do
5052 test -z "$ac_dir" && ac_dir=.
5053 $as_executable_p "$ac_dir/$ac_word" || continue
5054 ac_cv_prog_AR="${ac_tool_prefix}ar"
5055 echo "$as_me:5055: found $ac_dir/$ac_word" >&5
5062 if test -n "$AR"; then
5063 echo "$as_me:5063: result: $AR" >&5
5064 echo "${ECHO_T}$AR" >&6
5066 echo "$as_me:5066: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5071 if test -z "$ac_cv_prog_AR"; then
5073 # Extract the first word of "ar", so it can be a program name with args.
5074 set dummy ar; ac_word=$2
5075 echo "$as_me:5075: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 if test -n "$ac_ct_AR"; then
5081 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5083 ac_save_IFS=$IFS; IFS=$ac_path_separator
5085 for ac_dir in $ac_dummy; do
5087 test -z "$ac_dir" && ac_dir=.
5088 $as_executable_p "$ac_dir/$ac_word" || continue
5089 ac_cv_prog_ac_ct_AR="ar"
5090 echo "$as_me:5090: found $ac_dir/$ac_word" >&5
5094 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5097 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5098 if test -n "$ac_ct_AR"; then
5099 echo "$as_me:5099: result: $ac_ct_AR" >&5
5100 echo "${ECHO_T}$ac_ct_AR" >&6
5102 echo "$as_me:5102: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5111 echo "$as_me:5111: checking for options to update archives" >&5
5112 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5113 if test "${cf_cv_ar_flags+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 case "$cf_cv_system_name" in
5120 cat >mk_static_lib.sh <<-EOF
5125 exec \$MSVC_BIN -out:"\$out" \$@
5127 chmod +x mk_static_lib.sh
5128 AR=`pwd`/mk_static_lib.sh
5131 cf_cv_ar_flags=unknown
5132 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5135 # check if $ARFLAGS already contains this choice
5136 if test "x$ARFLAGS" != "x" ; then
5137 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5138 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5144 rm -f "conftest.$ac_cv_objext"
5147 cat >"conftest.$ac_ext" <<EOF
5148 #line 5148 "configure"
5149 int testdata[3] = { 123, 456, 789 };
5151 if { (eval echo "$as_me:5151: \"$ac_compile\"") >&5
5152 (eval $ac_compile) 2>&5
5154 echo "$as_me:5154: \$? = $ac_status" >&5
5155 (exit "$ac_status"); } ; then
5156 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5157 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5158 if test -f conftest.a ; then
5159 cf_cv_ar_flags="$cf_ar_flags"
5163 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5165 echo "${as_me:-configure}:5165: testing cannot compile test-program ..." 1>&5
5170 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5175 echo "$as_me:5175: result: $cf_cv_ar_flags" >&5
5176 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5178 if test -n "$ARFLAGS" ; then
5179 if test -n "$cf_cv_ar_flags" ; then
5180 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5183 ARFLAGS=$cf_cv_ar_flags
5186 echo "$as_me:5186: checking for an installation directory prefix" >&5
5187 echo $ECHO_N "checking for an installation directory prefix... $ECHO_C" >&6
5189 # Check whether --with-install-prefix or --without-install-prefix was given.
5190 if test "${with_install_prefix+set}" = set; then
5191 withval="$with_install_prefix"
5195 (*) DESTDIR="$withval"
5199 echo "$as_me:5199: result: ${DESTDIR:-(none)}" >&5
5200 echo "${ECHO_T}${DESTDIR:-(none)}" >&6
5202 ###############################################################################
5204 # If we're cross-compiling, allow the user to override the tools and their
5205 # options. The configure script is oriented toward identifying the host
5206 # compiler, etc., but we need a build compiler to generate parts of the source.
5208 case "$cf_cv_system_name" in
5210 LDFLAGS="$LDFLAGS user32.lib"
5215 if test "$cross_compiling" = yes ; then
5217 # defaults that we might want to override
5218 : ${BUILD_CFLAGS:=''}
5219 : ${BUILD_CPPFLAGS:=''}
5220 : ${BUILD_LDFLAGS:=''}
5222 : ${BUILD_EXEEXT:='$x'}
5223 : ${BUILD_OBJEXT:='o'}
5225 # Check whether --with-build-cc or --without-build-cc was given.
5226 if test "${with_build_cc+set}" = set; then
5227 withval="$with_build_cc"
5230 for ac_prog in gcc clang c99 c89 cc cl
5232 # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy $ac_prog; ac_word=$2
5234 echo "$as_me:5234: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 if test -n "$BUILD_CC"; then
5240 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5242 ac_save_IFS=$IFS; IFS=$ac_path_separator
5244 for ac_dir in $ac_dummy; do
5246 test -z "$ac_dir" && ac_dir=.
5247 $as_executable_p "$ac_dir/$ac_word" || continue
5248 ac_cv_prog_BUILD_CC="$ac_prog"
5249 echo "$as_me:5249: found $ac_dir/$ac_word" >&5
5255 BUILD_CC=$ac_cv_prog_BUILD_CC
5256 if test -n "$BUILD_CC"; then
5257 echo "$as_me:5257: result: $BUILD_CC" >&5
5258 echo "${ECHO_T}$BUILD_CC" >&6
5260 echo "$as_me:5260: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5264 test -n "$BUILD_CC" && break
5266 test -n "$BUILD_CC" || BUILD_CC="none"
5269 echo "$as_me:5269: checking for native build C compiler" >&5
5270 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5271 echo "$as_me:5271: result: $BUILD_CC" >&5
5272 echo "${ECHO_T}$BUILD_CC" >&6
5274 echo "$as_me:5274: checking for native build C preprocessor" >&5
5275 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5277 # Check whether --with-build-cpp or --without-build-cpp was given.
5278 if test "${with_build_cpp+set}" = set; then
5279 withval="$with_build_cpp"
5280 BUILD_CPP="$withval"
5282 BUILD_CPP='${BUILD_CC} -E'
5284 echo "$as_me:5284: result: $BUILD_CPP" >&5
5285 echo "${ECHO_T}$BUILD_CPP" >&6
5287 echo "$as_me:5287: checking for native build C flags" >&5
5288 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5290 # Check whether --with-build-cflags or --without-build-cflags was given.
5291 if test "${with_build_cflags+set}" = set; then
5292 withval="$with_build_cflags"
5293 BUILD_CFLAGS="$withval"
5295 echo "$as_me:5295: result: $BUILD_CFLAGS" >&5
5296 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5298 echo "$as_me:5298: checking for native build C preprocessor-flags" >&5
5299 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5301 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5302 if test "${with_build_cppflags+set}" = set; then
5303 withval="$with_build_cppflags"
5304 BUILD_CPPFLAGS="$withval"
5306 echo "$as_me:5306: result: $BUILD_CPPFLAGS" >&5
5307 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5309 echo "$as_me:5309: checking for native build linker-flags" >&5
5310 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5312 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5313 if test "${with_build_ldflags+set}" = set; then
5314 withval="$with_build_ldflags"
5315 BUILD_LDFLAGS="$withval"
5317 echo "$as_me:5317: result: $BUILD_LDFLAGS" >&5
5318 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5320 echo "$as_me:5320: checking for native build linker-libraries" >&5
5321 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5323 # Check whether --with-build-libs or --without-build-libs was given.
5324 if test "${with_build_libs+set}" = set; then
5325 withval="$with_build_libs"
5326 BUILD_LIBS="$withval"
5328 echo "$as_me:5328: result: $BUILD_LIBS" >&5
5329 echo "${ECHO_T}$BUILD_LIBS" >&6
5331 # this assumes we're on Unix.
5335 : ${BUILD_CC:='${CC}'}
5337 echo "$as_me:5337: checking if the build-compiler \"$BUILD_CC\" works" >&5
5338 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5340 cf_save_crossed=$cross_compiling
5341 cf_save_ac_link=$ac_link
5343 cf_build_cppflags=$BUILD_CPPFLAGS
5344 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5345 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5347 if test "$cross_compiling" = yes; then
5348 cf_ok_build_cc=unknown
5350 cat >"conftest.$ac_ext" <<_ACEOF
5351 #line 5351 "configure"
5352 #include "confdefs.h"
5354 int main(int argc, char *argv[])
5356 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5360 rm -f "conftest$ac_exeext"
5361 if { (eval echo "$as_me:5361: \"$ac_link\"") >&5
5362 (eval $ac_link) 2>&5
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5366 { (eval echo "$as_me:5366: \"$ac_try\"") >&5
5369 echo "$as_me:5369: \$? = $ac_status" >&5
5370 (exit "$ac_status"); }; }; then
5373 echo "$as_me: program exited with status $ac_status" >&5
5374 echo "$as_me: failed program was:" >&5
5375 cat "conftest.$ac_ext" >&5
5378 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5381 cross_compiling=$cf_save_crossed
5382 ac_link=$cf_save_ac_link
5384 echo "$as_me:5384: result: $cf_ok_build_cc" >&5
5385 echo "${ECHO_T}$cf_ok_build_cc" >&6
5387 if test "$cf_ok_build_cc" != yes
5389 { { echo "$as_me:5389: error: Cross-build requires two compilers.
5390 Use --with-build-cc to specify the native compiler." >&5
5391 echo "$as_me: error: Cross-build requires two compilers.
5392 Use --with-build-cc to specify the native compiler." >&2;}
5393 { (exit 1); exit 1; }; }
5397 : ${BUILD_CC:='${CC}'}
5398 : ${BUILD_CPP:='${CPP}'}
5399 : ${BUILD_CFLAGS:='${CFLAGS}'}
5400 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5401 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5402 : ${BUILD_LIBS:='${LIBS}'}
5403 : ${BUILD_EXEEXT:='$x'}
5404 : ${BUILD_OBJEXT:='o'}
5407 ###############################################################################
5409 ### Options to allow the user to specify the set of libraries which are used.
5410 ### Use "--without-normal --with-shared" to allow the default model to be
5411 ### shared, for example.
5414 echo "$as_me:5414: checking if libtool -version-number should be used" >&5
5415 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5417 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5418 if test "${enable_libtool_version+set}" = set; then
5419 enableval="$enable_libtool_version"
5420 test "$enableval" != no && enableval=yes
5421 if test "$enableval" != "yes" ; then
5422 cf_libtool_version=no
5424 cf_libtool_version=yes
5428 cf_libtool_version=yes
5431 echo "$as_me:5431: result: $cf_libtool_version" >&5
5432 echo "${ECHO_T}$cf_libtool_version" >&6
5434 if test "$cf_libtool_version" = yes ; then
5435 LIBTOOL_VERSION="-version-number"
5437 LIBTOOL_VERSION="-version-info"
5440 { echo "$as_me:5440: WARNING: VERSION was not set" >&5
5441 echo "$as_me: WARNING: VERSION was not set" >&2;}
5444 ABI_VERSION="$VERSION"
5445 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5447 echo "${as_me:-configure}:5447: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5451 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5452 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5454 echo "${as_me:-configure}:5454: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5458 { echo "$as_me:5458: WARNING: unexpected VERSION value: $VERSION" >&5
5459 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5466 # common library maintenance symbols that are convenient for libtool scripts:
5467 LIB_CREATE='${AR} -cr'
5468 LIB_OBJECT='${OBJECTS}'
5472 # symbols used to prop libtool up to enable it to determine what it should be
5480 echo "$as_me:5480: checking if you want to build libraries with libtool" >&5
5481 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5483 # Check whether --with-libtool or --without-libtool was given.
5484 if test "${with_libtool+set}" = set; then
5485 withval="$with_libtool"
5486 with_libtool=$withval
5490 echo "$as_me:5490: result: $with_libtool" >&5
5491 echo "${ECHO_T}$with_libtool" >&6
5492 if test "$with_libtool" != "no"; then
5494 if test "$with_libtool" != "yes" ; then
5496 if test "x$prefix" != xNONE; then
5497 cf_path_syntax="$prefix"
5499 cf_path_syntax="$ac_default_prefix"
5502 case ".$with_libtool" in
5507 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5509 (.\$\{*prefix\}*|.\$\{*dir\}*)
5510 eval with_libtool="$with_libtool"
5511 case ".$with_libtool" in
5513 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5518 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5521 { { echo "$as_me:5521: error: expected a pathname, not \"$with_libtool\"" >&5
5522 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5523 { (exit 1); exit 1; }; }
5527 LIBTOOL=$with_libtool
5529 if test -n "$ac_tool_prefix"; then
5530 for ac_prog in libtool glibtool
5532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5534 echo "$as_me:5534: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5536 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 if test -n "$LIBTOOL"; then
5540 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5542 ac_save_IFS=$IFS; IFS=$ac_path_separator
5544 for ac_dir in $ac_dummy; do
5546 test -z "$ac_dir" && ac_dir=.
5547 $as_executable_p "$ac_dir/$ac_word" || continue
5548 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5549 echo "$as_me:5549: found $ac_dir/$ac_word" >&5
5555 LIBTOOL=$ac_cv_prog_LIBTOOL
5556 if test -n "$LIBTOOL"; then
5557 echo "$as_me:5557: result: $LIBTOOL" >&5
5558 echo "${ECHO_T}$LIBTOOL" >&6
5560 echo "$as_me:5560: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5564 test -n "$LIBTOOL" && break
5567 if test -z "$LIBTOOL"; then
5568 ac_ct_LIBTOOL=$LIBTOOL
5569 for ac_prog in libtool glibtool
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 echo "$as_me:5573: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$ac_ct_LIBTOOL"; then
5579 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5581 ac_save_IFS=$IFS; IFS=$ac_path_separator
5583 for ac_dir in $ac_dummy; do
5585 test -z "$ac_dir" && ac_dir=.
5586 $as_executable_p "$ac_dir/$ac_word" || continue
5587 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5588 echo "$as_me:5588: found $ac_dir/$ac_word" >&5
5594 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5595 if test -n "$ac_ct_LIBTOOL"; then
5596 echo "$as_me:5596: result: $ac_ct_LIBTOOL" >&5
5597 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5599 echo "$as_me:5599: result: no" >&5
5600 echo "${ECHO_T}no" >&6
5603 test -n "$ac_ct_LIBTOOL" && break
5605 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5607 LIBTOOL=$ac_ct_LIBTOOL
5610 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5612 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.].*//'`
5614 cf_cv_libtool_version=
5616 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5618 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5621 unset ac_cv_prog_ac_ct_LIBTOOL
5625 if test -n "$ac_tool_prefix"; then
5626 for ac_prog in glibtool
5628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5630 echo "$as_me:5630: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test -n "$LIBTOOL"; then
5636 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5638 ac_save_IFS=$IFS; IFS=$ac_path_separator
5640 for ac_dir in $ac_dummy; do
5642 test -z "$ac_dir" && ac_dir=.
5643 $as_executable_p "$ac_dir/$ac_word" || continue
5644 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5645 echo "$as_me:5645: found $ac_dir/$ac_word" >&5
5651 LIBTOOL=$ac_cv_prog_LIBTOOL
5652 if test -n "$LIBTOOL"; then
5653 echo "$as_me:5653: result: $LIBTOOL" >&5
5654 echo "${ECHO_T}$LIBTOOL" >&6
5656 echo "$as_me:5656: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5660 test -n "$LIBTOOL" && break
5663 if test -z "$LIBTOOL"; then
5664 ac_ct_LIBTOOL=$LIBTOOL
5665 for ac_prog in glibtool
5667 # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 echo "$as_me:5669: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5671 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 if test -n "$ac_ct_LIBTOOL"; then
5675 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5677 ac_save_IFS=$IFS; IFS=$ac_path_separator
5679 for ac_dir in $ac_dummy; do
5681 test -z "$ac_dir" && ac_dir=.
5682 $as_executable_p "$ac_dir/$ac_word" || continue
5683 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5684 echo "$as_me:5684: found $ac_dir/$ac_word" >&5
5690 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5691 if test -n "$ac_ct_LIBTOOL"; then
5692 echo "$as_me:5692: result: $ac_ct_LIBTOOL" >&5
5693 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5695 echo "$as_me:5695: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5699 test -n "$ac_ct_LIBTOOL" && break
5701 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5703 LIBTOOL=$ac_ct_LIBTOOL
5706 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5708 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.].*//'`
5710 cf_cv_libtool_version=
5712 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5716 if test -z "$LIBTOOL" ; then
5717 { { echo "$as_me:5717: error: Cannot find libtool" >&5
5718 echo "$as_me: error: Cannot find libtool" >&2;}
5719 { (exit 1); exit 1; }; }
5721 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5722 LIB_OBJECT='${OBJECTS:.o=.lo}'
5724 LIB_CLEAN='${LIBTOOL} --mode=clean'
5725 LIB_COMPILE='${LIBTOOL} --mode=compile'
5726 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5727 LIB_INSTALL='${LIBTOOL} --mode=install'
5728 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5731 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5733 echo "$as_me:5733: checking version of $LIBTOOL" >&5
5734 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5736 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5738 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.].*//'`
5740 cf_cv_libtool_version=
5742 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5744 echo "$as_me:5744: result: $cf_cv_libtool_version" >&5
5745 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5746 if test -n "$cf_cv_libtool_version"
5748 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5749 case "x$cf_check_libtool_version" in
5750 (*...GNU-libtool...*)
5753 { { echo "$as_me:5753: error: This is not GNU libtool" >&5
5754 echo "$as_me: error: This is not GNU libtool" >&2;}
5755 { (exit 1); exit 1; }; }
5759 { { echo "$as_me:5759: error: No version found for $LIBTOOL" >&5
5760 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5761 { (exit 1); exit 1; }; }
5764 { { echo "$as_me:5764: error: GNU libtool has not been found" >&5
5765 echo "$as_me: error: GNU libtool has not been found" >&2;}
5766 { (exit 1); exit 1; }; }
5769 # special hack to add -no-undefined (which libtool should do for itself)
5771 case "$cf_cv_system_name" in
5772 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5773 LT_UNDEF=-no-undefined
5777 # special hack to add --tag option for C++ compiler
5778 case "$cf_cv_libtool_version" in
5779 (1.[5-9]*|[2-9].[0-9.a-z]*)
5780 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5781 LIBTOOL="$LIBTOOL --tag=CC"
5784 LIBTOOL_CXX="$LIBTOOL"
5792 test -z "$LIBTOOL" && ECHO_LT=
5794 if test "$with_libtool" != "no" ; then
5796 cf_list_models="$cf_list_models libtool"
5800 echo "$as_me:5800: checking if you want to build shared libraries" >&5
5801 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5803 # Check whether --with-shared or --without-shared was given.
5804 if test "${with_shared+set}" = set; then
5805 withval="$with_shared"
5806 with_shared=$withval
5810 echo "$as_me:5810: result: $with_shared" >&5
5811 echo "${ECHO_T}$with_shared" >&6
5812 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5814 echo "$as_me:5814: checking if you want to build static libraries" >&5
5815 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5817 # Check whether --with-normal or --without-normal was given.
5818 if test "${with_normal+set}" = set; then
5819 withval="$with_normal"
5820 with_normal=$withval
5824 echo "$as_me:5824: result: $with_normal" >&5
5825 echo "${ECHO_T}$with_normal" >&6
5826 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5828 echo "$as_me:5828: checking if you want to build debug libraries" >&5
5829 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5831 # Check whether --with-debug or --without-debug was given.
5832 if test "${with_debug+set}" = set; then
5833 withval="$with_debug"
5838 echo "$as_me:5838: result: $with_debug" >&5
5839 echo "${ECHO_T}$with_debug" >&6
5840 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5842 echo "$as_me:5842: checking if you want to build profiling libraries" >&5
5843 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5845 # Check whether --with-profile or --without-profile was given.
5846 if test "${with_profile+set}" = set; then
5847 withval="$with_profile"
5848 with_profile=$withval
5852 echo "$as_me:5852: result: $with_profile" >&5
5853 echo "${ECHO_T}$with_profile" >&6
5854 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5858 if test "X$cf_with_cxx_binding" != Xno; then
5859 if test "x$with_shared" = "xyes"; then
5860 echo "$as_me:5860: checking if you want to build C++ shared libraries" >&5
5861 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5863 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5864 if test "${with_cxx_shared+set}" = set; then
5865 withval="$with_cxx_shared"
5866 with_shared_cxx=$withval
5870 echo "$as_me:5870: result: $with_shared_cxx" >&5
5871 echo "${ECHO_T}$with_shared_cxx" >&6
5875 ###############################################################################
5877 echo "$as_me:5877: checking for specified models" >&5
5878 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5879 test -z "$cf_list_models" && cf_list_models=normal
5880 test "$with_libtool" != "no" && cf_list_models=libtool
5881 echo "$as_me:5881: result: $cf_list_models" >&5
5882 echo "${ECHO_T}$cf_list_models" >&6
5884 ### Use the first model as the default, and save its suffix for use in building
5885 ### up test-applications.
5886 echo "$as_me:5886: checking for default model" >&5
5887 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5888 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5889 echo "$as_me:5889: result: $DFT_LWR_MODEL" >&5
5890 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5892 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5903 echo "$as_me:5903: checking if you want to have a library-prefix" >&5
5904 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5906 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5907 if test "${with_lib_prefix+set}" = set; then
5908 withval="$with_lib_prefix"
5909 with_lib_prefix=$withval
5911 with_lib_prefix=auto
5913 echo "$as_me:5913: result: $with_lib_prefix" >&5
5914 echo "${ECHO_T}$with_lib_prefix" >&6
5916 if test "$with_lib_prefix" = auto
5919 case "$cf_cv_system_name" in
5921 if test "$DFT_LWR_MODEL" = libtool; then
5930 (*) LIB_PREFIX='lib'
5933 cf_prefix=$LIB_PREFIX
5935 elif test "$with_lib_prefix" = no
5939 LIB_PREFIX=$with_lib_prefix
5944 echo "$as_me:5944: checking for PATH separator" >&5
5945 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5946 case "$cf_cv_system_name" in
5947 (os2*) PATH_SEPARATOR=';' ;;
5948 (*) ${PATH_SEPARATOR:=':'} ;;
5951 echo "$as_me:5951: result: $PATH_SEPARATOR" >&5
5952 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5954 # headers needed for checks...
5955 echo "$as_me:5955: checking for ANSI C header files" >&5
5956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5957 if test "${ac_cv_header_stdc+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 cat >"conftest.$ac_ext" <<_ACEOF
5961 #line 5961 "configure"
5962 #include "confdefs.h"
5969 if { (eval echo "$as_me:5969: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5970 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5972 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 echo "$as_me:5975: \$? = $ac_status" >&5
5976 (exit "$ac_status"); } >/dev/null; then
5977 if test -s conftest.err; then
5978 ac_cpp_err=$ac_c_preproc_warn_flag
5985 if test -z "$ac_cpp_err"; then
5986 ac_cv_header_stdc=yes
5988 echo "$as_me: failed program was:" >&5
5989 cat "conftest.$ac_ext" >&5
5990 ac_cv_header_stdc=no
5992 rm -f conftest.err "conftest.$ac_ext"
5994 if test $ac_cv_header_stdc = yes; then
5995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5996 cat >"conftest.$ac_ext" <<_ACEOF
5997 #line 5997 "configure"
5998 #include "confdefs.h"
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 $EGREP "memchr" >/dev/null 2>&1; then
6006 ac_cv_header_stdc=no
6012 if test $ac_cv_header_stdc = yes; then
6013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6014 cat >"conftest.$ac_ext" <<_ACEOF
6015 #line 6015 "configure"
6016 #include "confdefs.h"
6020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6021 $EGREP "free" >/dev/null 2>&1; then
6024 ac_cv_header_stdc=no
6030 if test $ac_cv_header_stdc = yes; then
6031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6032 if test "$cross_compiling" = yes; then
6035 cat >"conftest.$ac_ext" <<_ACEOF
6036 #line 6036 "configure"
6037 #include "confdefs.h"
6039 #if ((' ' & 0x0FF) == 0x020)
6040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6043 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6044 || ('j' <= (c) && (c) <= 'r') \
6045 || ('s' <= (c) && (c) <= 'z'))
6046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6054 for (i = 0; i < 256; i++)
6055 if (XOR (islower (i), ISLOWER (i))
6056 || toupper (i) != TOUPPER (i))
6058 $ac_main_return (0);
6061 rm -f "conftest$ac_exeext"
6062 if { (eval echo "$as_me:6062: \"$ac_link\"") >&5
6063 (eval $ac_link) 2>&5
6065 echo "$as_me:6065: \$? = $ac_status" >&5
6066 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6067 { (eval echo "$as_me:6067: \"$ac_try\"") >&5
6070 echo "$as_me:6070: \$? = $ac_status" >&5
6071 (exit "$ac_status"); }; }; then
6074 echo "$as_me: program exited with status $ac_status" >&5
6075 echo "$as_me: failed program was:" >&5
6076 cat "conftest.$ac_ext" >&5
6077 ac_cv_header_stdc=no
6079 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6083 echo "$as_me:6083: result: $ac_cv_header_stdc" >&5
6084 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6085 if test $ac_cv_header_stdc = yes; then
6087 cat >>confdefs.h <<\EOF
6088 #define STDC_HEADERS 1
6093 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6096 inttypes.h stdint.h unistd.h
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 echo "$as_me:6099: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 cat >"conftest.$ac_ext" <<_ACEOF
6105 #line 6105 "configure"
6106 #include "confdefs.h"
6107 $ac_includes_default
6108 #include <$ac_header>
6110 rm -f "conftest.$ac_objext"
6111 if { (eval echo "$as_me:6111: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>&5
6114 echo "$as_me:6114: \$? = $ac_status" >&5
6115 (exit "$ac_status"); } &&
6116 { ac_try='test -s "conftest.$ac_objext"'
6117 { (eval echo "$as_me:6117: \"$ac_try\"") >&5
6120 echo "$as_me:6120: \$? = $ac_status" >&5
6121 (exit "$ac_status"); }; }; then
6122 eval "$as_ac_Header=yes"
6124 echo "$as_me: failed program was:" >&5
6125 cat "conftest.$ac_ext" >&5
6126 eval "$as_ac_Header=no"
6128 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6130 echo "$as_me:6130: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6131 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6132 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6133 cat >>confdefs.h <<EOF
6134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6140 echo "$as_me:6140: checking whether exit is declared" >&5
6141 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6142 if test "${ac_cv_have_decl_exit+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 cat >"conftest.$ac_ext" <<_ACEOF
6146 #line 6146 "configure"
6147 #include "confdefs.h"
6148 $ac_includes_default
6160 rm -f "conftest.$ac_objext"
6161 if { (eval echo "$as_me:6161: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>&5
6164 echo "$as_me:6164: \$? = $ac_status" >&5
6165 (exit "$ac_status"); } &&
6166 { ac_try='test -s "conftest.$ac_objext"'
6167 { (eval echo "$as_me:6167: \"$ac_try\"") >&5
6170 echo "$as_me:6170: \$? = $ac_status" >&5
6171 (exit "$ac_status"); }; }; then
6172 ac_cv_have_decl_exit=yes
6174 echo "$as_me: failed program was:" >&5
6175 cat "conftest.$ac_ext" >&5
6176 ac_cv_have_decl_exit=no
6178 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6180 echo "$as_me:6180: result: $ac_cv_have_decl_exit" >&5
6181 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6184 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6185 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6186 echo "$as_me:6186: checking for $ac_hdr that defines DIR" >&5
6187 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 cat >"conftest.$ac_ext" <<_ACEOF
6192 #line 6192 "configure"
6193 #include "confdefs.h"
6194 #include <sys/types.h>
6206 rm -f "conftest.$ac_objext"
6207 if { (eval echo "$as_me:6207: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6210 echo "$as_me:6210: \$? = $ac_status" >&5
6211 (exit "$ac_status"); } &&
6212 { ac_try='test -s "conftest.$ac_objext"'
6213 { (eval echo "$as_me:6213: \"$ac_try\"") >&5
6216 echo "$as_me:6216: \$? = $ac_status" >&5
6217 (exit "$ac_status"); }; }; then
6218 eval "$as_ac_Header=yes"
6220 echo "$as_me: failed program was:" >&5
6221 cat "conftest.$ac_ext" >&5
6222 eval "$as_ac_Header=no"
6224 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6226 echo "$as_me:6226: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6227 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6228 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6229 cat >>confdefs.h <<EOF
6230 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6233 ac_header_dirent=$ac_hdr; break
6237 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6238 if test $ac_header_dirent = dirent.h; then
6239 echo "$as_me:6239: checking for opendir in -ldir" >&5
6240 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6241 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 ac_check_lib_save_LIBS=$LIBS
6246 cat >"conftest.$ac_ext" <<_ACEOF
6247 #line 6247 "configure"
6248 #include "confdefs.h"
6250 /* Override any gcc2 internal prototype to avoid an error. */
6254 /* We use char because int might match the return type of a gcc2
6255 builtin and then its argument prototype would still apply. */
6256 char opendir (void);
6265 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6266 if { (eval echo "$as_me:6266: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>&5
6269 echo "$as_me:6269: \$? = $ac_status" >&5
6270 (exit "$ac_status"); } &&
6271 { ac_try='test -s "conftest$ac_exeext"'
6272 { (eval echo "$as_me:6272: \"$ac_try\"") >&5
6275 echo "$as_me:6275: \$? = $ac_status" >&5
6276 (exit "$ac_status"); }; }; then
6277 ac_cv_lib_dir_opendir=yes
6279 echo "$as_me: failed program was:" >&5
6280 cat "conftest.$ac_ext" >&5
6281 ac_cv_lib_dir_opendir=no
6283 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6284 LIBS=$ac_check_lib_save_LIBS
6286 echo "$as_me:6286: result: $ac_cv_lib_dir_opendir" >&5
6287 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6288 if test "$ac_cv_lib_dir_opendir" = yes; then
6293 echo "$as_me:6293: checking for opendir in -lx" >&5
6294 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6295 if test "${ac_cv_lib_x_opendir+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_check_lib_save_LIBS=$LIBS
6300 cat >"conftest.$ac_ext" <<_ACEOF
6301 #line 6301 "configure"
6302 #include "confdefs.h"
6304 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6310 char opendir (void);
6319 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6320 if { (eval echo "$as_me:6320: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 (exit "$ac_status"); } &&
6325 { ac_try='test -s "conftest$ac_exeext"'
6326 { (eval echo "$as_me:6326: \"$ac_try\"") >&5
6329 echo "$as_me:6329: \$? = $ac_status" >&5
6330 (exit "$ac_status"); }; }; then
6331 ac_cv_lib_x_opendir=yes
6333 echo "$as_me: failed program was:" >&5
6334 cat "conftest.$ac_ext" >&5
6335 ac_cv_lib_x_opendir=no
6337 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6338 LIBS=$ac_check_lib_save_LIBS
6340 echo "$as_me:6340: result: $ac_cv_lib_x_opendir" >&5
6341 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6342 if test "$ac_cv_lib_x_opendir" = yes; then
6348 ###############################################################################
6350 echo "$as_me:6350: checking if you want to build a separate terminfo library" >&5
6351 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6353 # Check whether --with-termlib or --without-termlib was given.
6354 if test "${with_termlib+set}" = set; then
6355 withval="$with_termlib"
6356 with_termlib=$withval
6360 echo "$as_me:6360: result: $with_termlib" >&5
6361 echo "${ECHO_T}$with_termlib" >&6
6363 echo "$as_me:6363: checking if you want to build a separate tic library" >&5
6364 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6366 # Check whether --with-ticlib or --without-ticlib was given.
6367 if test "${with_ticlib+set}" = set; then
6368 withval="$with_ticlib"
6369 with_ticlib=$withval
6373 echo "$as_me:6373: result: $with_ticlib" >&5
6374 echo "${ECHO_T}$with_ticlib" >&6
6376 if test X"$CC_G_OPT" = X"" ; then
6378 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6381 if test X"$CXX_G_OPT" = X"" ; then
6383 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6386 echo "$as_me:6386: checking for default loader flags" >&5
6387 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6388 case "$DFT_LWR_MODEL" in
6389 (libtool) LD_MODEL='' ;;
6390 (normal) LD_MODEL='' ;;
6391 (debug) LD_MODEL=$CC_G_OPT ;;
6392 (profile) LD_MODEL='-pg';;
6393 (shared) LD_MODEL='' ;;
6395 echo "$as_me:6395: result: ${LD_MODEL:-(none)}" >&5
6396 echo "${ECHO_T}${LD_MODEL:-(none)}" >&6
6398 case "$DFT_LWR_MODEL" in
6401 echo "$as_me:6401: checking if rpath option should be used" >&5
6402 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6404 # Check whether --enable-rpath or --disable-rpath was given.
6405 if test "${enable_rpath+set}" = set; then
6406 enableval="$enable_rpath"
6407 cf_cv_enable_rpath=$enableval
6409 cf_cv_enable_rpath=no
6411 echo "$as_me:6411: result: $cf_cv_enable_rpath" >&5
6412 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6414 echo "$as_me:6414: checking if shared libraries should be relinked during install" >&5
6415 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6417 # Check whether --enable-relink or --disable-relink was given.
6418 if test "${enable_relink+set}" = set; then
6419 enableval="$enable_relink"
6420 cf_cv_do_relink=$enableval
6424 echo "$as_me:6424: result: $cf_cv_do_relink" >&5
6425 echo "${ECHO_T}$cf_cv_do_relink" >&6
6429 # we will build libraries one-level down.
6433 if test "x$cf_cv_enable_rpath" != xno
6435 echo "$as_me:6435: checking for an rpath option" >&5
6436 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6437 case "$cf_cv_system_name" in
6439 if test "$GCC" = yes; then
6440 LD_RPATH_OPT="-Wl,-rpath,"
6442 LD_RPATH_OPT="-rpath "
6445 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6446 LD_RPATH_OPT="-Wl,-rpath,"
6448 (openbsd[2-9].*|mirbsd*)
6449 LD_RPATH_OPT="-Wl,-rpath,"
6452 LD_RPATH_OPT="-rpath "
6455 LD_RPATH_OPT="-Wl,-rpath,"
6458 LD_RPATH_OPT="-rpath "
6466 echo "$as_me:6466: result: $LD_RPATH_OPT" >&5
6467 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6469 case "x$LD_RPATH_OPT" in
6471 echo "$as_me:6471: checking if we need a space after rpath option" >&5
6472 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6473 cf_save_LIBS="$LIBS"
6478 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6480 for cf_add_1lib in $cf_add_0lib; do
6481 for cf_add_2lib in $cf_add_libs; do
6482 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6487 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6491 cat >"conftest.$ac_ext" <<_ACEOF
6492 #line 6492 "configure"
6493 #include "confdefs.h"
6503 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6504 if { (eval echo "$as_me:6504: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:6507: \$? = $ac_status" >&5
6508 (exit "$ac_status"); } &&
6509 { ac_try='test -s "conftest$ac_exeext"'
6510 { (eval echo "$as_me:6510: \"$ac_try\"") >&5
6513 echo "$as_me:6513: \$? = $ac_status" >&5
6514 (exit "$ac_status"); }; }; then
6517 echo "$as_me: failed program was:" >&5
6518 cat "conftest.$ac_ext" >&5
6521 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6522 LIBS="$cf_save_LIBS"
6523 echo "$as_me:6523: result: $cf_rpath_space" >&5
6524 echo "${ECHO_T}$cf_rpath_space" >&6
6525 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6534 INSTALL_LIB="-m 644"
6535 : ${rel_builddir:=.}
6541 cf_cv_do_symlinks=no
6543 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6545 echo "$as_me:6545: checking whether to use release or ABI version in shared library file names" >&5
6546 echo $ECHO_N "checking whether to use release or ABI version in shared library file names... $ECHO_C" >&6
6548 # Check whether --with-shlib-version or --without-shlib-version was given.
6549 if test "${with_shlib_version+set}" = set; then
6550 withval="$with_shlib_version"
6551 test -z "$withval" && withval=auto
6554 cf_cv_shlib_version=auto
6557 cf_cv_shlib_version=$withval
6560 echo "$as_me:6560: result: $withval" >&5
6561 echo "${ECHO_T}$withval" >&6
6562 { { echo "$as_me:6562: error: option value must be one of: rel, abi, or auto" >&5
6563 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6564 { (exit 1); exit 1; }; }
6569 cf_cv_shlib_version=auto
6571 echo "$as_me:6571: result: $cf_cv_shlib_version" >&5
6572 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6577 # Some less-capable ports of gcc support only -fpic
6581 if test "$GCC" = yes
6585 case "$cf_cv_system_name" in
6586 (*linux*) # e.g., PGI compiler
6592 if test "$cf_try_fPIC" = yes
6594 echo "$as_me:6594: checking which $CC option to use" >&5
6595 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6596 cf_save_CFLAGS="$CFLAGS"
6597 for CC_SHARED_OPTS in -fPIC -fpic ''
6599 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6600 cat >"conftest.$ac_ext" <<_ACEOF
6601 #line 6601 "configure"
6602 #include "confdefs.h"
6612 rm -f "conftest.$ac_objext"
6613 if { (eval echo "$as_me:6613: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6616 echo "$as_me:6616: \$? = $ac_status" >&5
6617 (exit "$ac_status"); } &&
6618 { ac_try='test -s "conftest.$ac_objext"'
6619 { (eval echo "$as_me:6619: \"$ac_try\"") >&5
6622 echo "$as_me:6622: \$? = $ac_status" >&5
6623 (exit "$ac_status"); }; }; then
6626 echo "$as_me: failed program was:" >&5
6627 cat "conftest.$ac_ext" >&5
6629 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6631 echo "$as_me:6631: result: $CC_SHARED_OPTS" >&5
6632 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6633 CFLAGS="$cf_save_CFLAGS"
6636 cf_cv_shlib_version_infix=no
6638 case "$cf_cv_system_name" in
6639 (aix4.3-9*|aix[5-7]*)
6640 if test "$GCC" = yes; then
6641 CC_SHARED_OPTS='-Wl,-brtl'
6642 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6644 CC_SHARED_OPTS='-brtl'
6645 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6646 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6650 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6654 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6655 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6656 cf_cv_shlib_version=cygdll
6657 cf_cv_shlib_version_infix=cygdll
6660 cat >mk_shared_lib.sh <<-CF_EOF
6663 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6666 Linking shared library
6667 ** SHARED_LIB \$SHARED_LIB
6668 ** IMPORT_LIB \$IMPORT_LIB
6670 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6672 chmod +x mk_shared_lib.sh
6676 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6677 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6678 cf_cv_shlib_version=msysdll
6679 cf_cv_shlib_version_infix=msysdll
6682 cat >mk_shared_lib.sh <<-CF_EOF
6685 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6688 Linking shared library
6689 ** SHARED_LIB \$SHARED_LIB
6690 ** IMPORT_LIB \$IMPORT_LIB
6692 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6694 chmod +x mk_shared_lib.sh
6697 cf_try_cflags="no-cpp-precomp"
6698 CC_SHARED_OPTS="-dynamic"
6699 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6700 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6701 cf_cv_shlib_version_infix=yes
6702 echo "$as_me:6702: checking if ld -search_paths_first works" >&5
6703 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6704 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cf_save_LDFLAGS=$LDFLAGS
6709 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6710 cat >"conftest.$ac_ext" <<_ACEOF
6711 #line 6711 "configure"
6712 #include "confdefs.h"
6722 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6723 if { (eval echo "$as_me:6723: \"$ac_link\"") >&5
6724 (eval $ac_link) 2>&5
6726 echo "$as_me:6726: \$? = $ac_status" >&5
6727 (exit "$ac_status"); } &&
6728 { ac_try='test -s "conftest$ac_exeext"'
6729 { (eval echo "$as_me:6729: \"$ac_try\"") >&5
6732 echo "$as_me:6732: \$? = $ac_status" >&5
6733 (exit "$ac_status"); }; }; then
6734 cf_cv_ldflags_search_paths_first=yes
6736 echo "$as_me: failed program was:" >&5
6737 cat "conftest.$ac_ext" >&5
6738 cf_cv_ldflags_search_paths_first=no
6740 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6741 LDFLAGS=$cf_save_LDFLAGS
6743 echo "$as_me:6743: result: $cf_cv_ldflags_search_paths_first" >&5
6744 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6745 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6746 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6751 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6752 if test "$cf_cv_shlib_version" = rel; then
6753 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6755 cf_cv_shared_soname='`basename $@`'
6758 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6761 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6762 if test "$GCC" != yes; then
6765 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6766 INSTALL_LIB="-m 555"
6769 # (tested with gcc 2.7.2 -- I don't have c89)
6770 if test "$GCC" = yes; then
6771 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6774 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6776 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6777 # HP-UX shared libraries must be executable, and should be
6778 # readonly to exploit a quirk in the memory manager.
6779 INSTALL_LIB="-m 555"
6782 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6783 if test "$cf_cv_shlib_version" = rel; then
6784 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6786 cf_shared_soname='`basename $@`'
6789 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6792 if test "$cf_cv_enable_rpath" = yes ; then
6793 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6795 # tested with IRIX 5.2 and 'cc'.
6796 if test "$GCC" != yes; then
6797 CC_SHARED_OPTS='-KPIC'
6798 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6800 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6802 cf_cv_rm_so_locs=yes
6804 (linux*|gnu*|k*bsd*-gnu)
6805 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6806 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6807 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6809 if test "$cf_cv_enable_rpath" = yes ; then
6810 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6813 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6814 if test "$cf_cv_shlib_version" = rel; then
6815 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6817 cf_cv_shared_soname='`basename $@`'
6820 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6823 cf_cv_shlib_version=msvcdll
6824 cf_cv_shlib_version_infix=msvcdll
6827 if test "$DFT_LWR_MODEL" = "shared" ; then
6828 LOCAL_LDFLAGS="-link -dll"
6829 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6830 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6833 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6834 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6835 cat >mk_shared_lib.sh <<-CF_EOF
6838 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6843 Linking shared library
6844 ** SHARED LIB \$SHARED_LIB
6845 ** IMPORT_LIB \$IMPORT_LIB
6847 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6848 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6849 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6851 chmod +x mk_shared_lib.sh
6852 cat >mk_prog.sh <<-CF_EOF
6855 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6858 ldopts=("/subsystem:console")
6861 while test \$# -gt 0; do
6864 # ignore -link argument
6867 # ignore runtime-library option
6882 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6885 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6891 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6892 ldopts+=("\${linkarg}")
6900 ldopts+=("-out:\$1")
6909 if [ "\$isdll" -ne 0 ]; then
6910 for lib in \${libs[*]}; do
6911 ldopts+=("\$lib.dll.lib")
6914 for lib in \${libs[*]}; do
6915 ldopts+=("\$lib.lib")
6920 ** ld options: "\${ldopts[@]}"
6922 exec \$LD \${ldopts[@]}
6925 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6926 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6929 cf_cv_shlib_version=mingw
6930 cf_cv_shlib_version_infix=mingw
6933 if test "$DFT_LWR_MODEL" = "shared" ; then
6934 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6935 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6936 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6939 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6940 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6941 cat >mk_shared_lib.sh <<-CF_EOF
6944 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6947 Linking shared library
6948 ** SHARED_LIB \$SHARED_LIB
6949 ** IMPORT_LIB \$IMPORT_LIB
6951 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6953 chmod +x mk_shared_lib.sh
6955 (openbsd[2-9].*|mirbsd*)
6956 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6957 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6958 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6960 if test "$cf_cv_enable_rpath" = yes ; then
6961 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6963 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6965 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6966 if test "$cf_cv_shlib_version" = rel; then
6967 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6969 cf_cv_shared_soname='`basename $@`'
6972 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6976 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6980 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6982 (nto-qnx*|openbsd*|freebsd[12].*)
6983 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6984 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6985 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6987 (dragonfly*|freebsd*)
6988 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6989 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6990 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6991 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6992 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6995 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6996 if test "$cf_cv_shlib_version" = rel; then
6997 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6999 cf_cv_shared_soname='`basename $@`'
7002 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7005 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7006 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7007 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7008 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7009 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7010 if test "$cf_cv_shlib_version" = auto; then
7011 if test -f /usr/libexec/ld.elf_so; then
7012 cf_cv_shlib_version=abi
7014 cf_cv_shlib_version=rel
7018 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7019 if test "$cf_cv_shlib_version" = rel; then
7020 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7022 cf_cv_shared_soname='`basename $@`'
7025 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7027 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7031 # tested with OSF/1 V3.2 and 'cc'
7032 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7033 # link with shared libs).
7034 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7037 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7040 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7041 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7042 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7043 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7045 cf_cv_rm_so_locs=yes
7047 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7048 # tested with osr5.0.5
7049 if test "$GCC" != yes; then
7050 CC_SHARED_OPTS='-belf -KPIC'
7052 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7053 if test "$cf_cv_enable_rpath" = yes ; then
7054 # only way is to set LD_RUN_PATH but no switch for it
7057 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7058 LINK_PROGS='LD_RUN_PATH=${libdir}'
7059 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7062 # tested with SunOS 4.1.1 and gcc 2.7.0
7063 if test "$GCC" != yes; then
7064 CC_SHARED_OPTS='-KPIC'
7066 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7067 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7070 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7071 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7072 if test "$DFT_LWR_MODEL" = "shared" ; then
7073 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7074 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7076 if test "$cf_cv_enable_rpath" = yes ; then
7077 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7080 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7081 if test "$cf_cv_shlib_version" = rel; then
7082 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7084 cf_cv_shared_soname='`basename $@`'
7087 if test "$GCC" != yes; then
7088 cf_save_CFLAGS="$CFLAGS"
7089 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7091 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7092 cat >"conftest.$ac_ext" <<_ACEOF
7093 #line 7093 "configure"
7094 #include "confdefs.h"
7104 rm -f "conftest.$ac_objext"
7105 if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>&5
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit "$ac_status"); } &&
7110 { ac_try='test -s "conftest.$ac_objext"'
7111 { (eval echo "$as_me:7111: \"$ac_try\"") >&5
7114 echo "$as_me:7114: \$? = $ac_status" >&5
7115 (exit "$ac_status"); }; }; then
7118 echo "$as_me: failed program was:" >&5
7119 cat "conftest.$ac_ext" >&5
7121 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7123 CFLAGS="$cf_save_CFLAGS"
7124 CC_SHARED_OPTS=$cf_shared_opts
7125 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
7127 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7130 (sysv5uw7*|unix_sv*)
7131 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7132 if test "$GCC" != yes; then
7133 CC_SHARED_OPTS='-KPIC'
7135 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7138 CC_SHARED_OPTS='unknown'
7139 MK_SHARED_LIB='echo unknown'
7143 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7144 case "$cf_cv_shlib_version" in
7146 case "$MK_SHARED_LIB" in
7148 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7151 { echo "$as_me:7151: WARNING: ignored --with-shlib-version" >&5
7152 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7158 if test -n "$cf_try_cflags"
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7161 "${as_me:-configure}"
7163 int main(int argc, char *argv[])
7166 return (argv[argc-1] == 0) ;
7169 cf_save_CFLAGS="$CFLAGS"
7170 for cf_opt in $cf_try_cflags
7172 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7173 echo "$as_me:7173: checking if CFLAGS option -$cf_opt works" >&5
7174 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7175 if { (eval echo "$as_me:7175: \"$ac_compile\"") >&5
7176 (eval $ac_compile) 2>&5
7178 echo "$as_me:7178: \$? = $ac_status" >&5
7179 (exit "$ac_status"); }; then
7180 echo "$as_me:7180: result: yes" >&5
7181 echo "${ECHO_T}yes" >&6
7182 cf_save_CFLAGS="$CFLAGS"
7184 echo "$as_me:7184: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7188 CFLAGS="$cf_save_CFLAGS"
7191 # RPATH_LIST is a colon-separated list of directories
7192 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7193 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7195 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7197 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7199 echo "${as_me:-configure}:7199: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7201 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7203 echo "${as_me:-configure}:7203: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7205 for model in $cf_list_models ; do
7209 echo "$as_me:7209: checking for additional libtool options" >&5
7210 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7212 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7213 if test "${with_libtool_opts+set}" = set; then
7214 withval="$with_libtool_opts"
7215 with_libtool_opts=$withval
7217 with_libtool_opts=no
7219 echo "$as_me:7219: result: $with_libtool_opts" >&5
7220 echo "${ECHO_T}$with_libtool_opts" >&6
7222 case .$with_libtool_opts in
7226 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7230 echo "$as_me:7230: checking if exported-symbols file should be used" >&5
7231 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7233 # Check whether --with-export-syms or --without-export-syms was given.
7234 if test "${with_export_syms+set}" = set; then
7235 withval="$with_export_syms"
7236 with_export_syms=$withval
7240 if test "x$with_export_syms" = xyes
7242 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7245 echo "$as_me:7245: result: $with_export_syms" >&5
7246 echo "${ECHO_T}$with_export_syms" >&6
7247 if test "x$with_export_syms" != xno
7249 EXPORT_SYMS="-export-symbols $with_export_syms"
7255 if test "$CC_SHARED_OPTS" = "unknown"; then
7256 { { echo "$as_me:7256: error: Shared libraries are not supported in this version" >&5
7257 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7258 { (exit 1); exit 1; }; }
7260 # workaround for inept transition to PIE vs PIC...
7261 echo "$as_me:7261: checking if current CFLAGS link properly" >&5
7262 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7263 cat >"conftest.$ac_ext" <<_ACEOF
7264 #line 7264 "configure"
7265 #include "confdefs.h"
7270 printf("Hello work\\n");
7275 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7276 if { (eval echo "$as_me:7276: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>&5
7279 echo "$as_me:7279: \$? = $ac_status" >&5
7280 (exit "$ac_status"); } &&
7281 { ac_try='test -s "conftest$ac_exeext"'
7282 { (eval echo "$as_me:7282: \"$ac_try\"") >&5
7285 echo "$as_me:7285: \$? = $ac_status" >&5
7286 (exit "$ac_status"); }; }; then
7289 echo "$as_me: failed program was:" >&5
7290 cat "conftest.$ac_ext" >&5
7293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7294 echo "$as_me:7294: result: $cf_cflags_work" >&5
7295 echo "${ECHO_T}$cf_cflags_work" >&6
7296 if test "$cf_cflags_work" = no
7298 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7300 echo "${as_me:-configure}:7300: testing try to work around by appending shared-options ..." 1>&5
7302 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7305 echo "$as_me:7305: checking if versioned-symbols file should be used" >&5
7306 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7308 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7309 if test "${with_versioned_syms+set}" = set; then
7310 withval="$with_versioned_syms"
7311 with_versioned_syms=$withval
7313 with_versioned_syms=no
7315 case "x$with_versioned_syms" in
7317 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7323 test -f "$with_versioned_syms" || { { echo "$as_me:7323: error: expected a filename: $with_versioned_syms" >&5
7324 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7325 { (exit 1); exit 1; }; }
7328 test -f "$with_versioned_syms" || { { echo "$as_me:7328: error: expected a filename: $with_versioned_syms" >&5
7329 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7330 { (exit 1); exit 1; }; }
7331 with_versioned_syms=`pwd`/"$with_versioned_syms"
7334 echo "$as_me:7334: result: $with_versioned_syms" >&5
7335 echo "${ECHO_T}$with_versioned_syms" >&6
7341 if test "x$with_versioned_syms" != xno
7343 RESULTING_SYMS=$with_versioned_syms
7344 case "x$MK_SHARED_LIB" in
7346 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7347 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7348 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7350 echo "${as_me:-configure}:7350: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7354 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7355 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7356 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7358 echo "${as_me:-configure}:7358: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7362 { echo "$as_me:7362: WARNING: this system does not support versioned-symbols" >&5
7363 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7367 # Linux ld can selectively override scope, e.g., of symbols beginning with
7368 # "_" by first declaring some as global, and then using a wildcard to
7369 # declare the others as local. Some other loaders cannot do this. Check
7370 # by constructing a (very) simple shared library and inspecting its
7372 if test "x$VERSIONED_SYMS" != "x"
7374 echo "$as_me:7374: checking if wildcards can be used to selectively omit symbols" >&5
7375 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7381 cat >conftest.ver <<EOF
7410 cat >conftest.$ac_ext <<EOF
7411 #line 7411 "configure"
7412 extern int _ismissing(void); int _ismissing(void) { return 1; }
7413 extern int _localf1(void); int _localf1(void) { return 1; }
7414 extern int _localf2(void); int _localf2(void) { return 2; }
7415 extern int globalf1(void); int globalf1(void) { return 1; }
7416 extern int globalf2(void); int globalf2(void) { return 2; }
7417 extern int _sublocalf1(void); int _sublocalf1(void) { return 1; }
7418 extern int _sublocalf2(void); int _sublocalf2(void) { return 2; }
7419 extern int subglobalf1(void); int subglobalf1(void) { return 1; }
7420 extern int subglobalf2(void); int subglobalf2(void) { return 2; }
7422 cat >conftest.mk <<EOF
7425 CPPFLAGS=${CPPFLAGS}
7428 VERSIONED_SYMS=${VERSIONED_SYMS}
7429 RESULTING_SYMS=conftest.ver
7430 MK_SHARED_LIB=${MK_SHARED_LIB}
7431 conftest.so: conftest.$ac_cv_objext
7432 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7435 # compile source, make library
7436 if make -f conftest.mk 2>&5 >/dev/null
7438 # test for missing symbol in either Data or Text section
7439 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7440 test -n "$cf_missing" && WILDCARD_SYMS=yes
7442 echo "$as_me:7442: result: $WILDCARD_SYMS" >&5
7443 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7452 ### Checks for special libraries, must be done up-front.
7455 echo "$as_me:7455: checking if you want to link with the GPM mouse library" >&5
7456 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7458 # Check whether --with-gpm or --without-gpm was given.
7459 if test "${with_gpm+set}" = set; then
7465 echo "$as_me:7465: result: $with_gpm" >&5
7466 echo "${ECHO_T}$with_gpm" >&6
7468 if test "$with_gpm" != no ; then
7469 echo "$as_me:7469: checking for gpm.h" >&5
7470 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7471 if test "${ac_cv_header_gpm_h+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 cat >"conftest.$ac_ext" <<_ACEOF
7475 #line 7475 "configure"
7476 #include "confdefs.h"
7479 if { (eval echo "$as_me:7479: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7480 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7482 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7484 cat conftest.err >&5
7485 echo "$as_me:7485: \$? = $ac_status" >&5
7486 (exit "$ac_status"); } >/dev/null; then
7487 if test -s conftest.err; then
7488 ac_cpp_err=$ac_c_preproc_warn_flag
7495 if test -z "$ac_cpp_err"; then
7496 ac_cv_header_gpm_h=yes
7498 echo "$as_me: failed program was:" >&5
7499 cat "conftest.$ac_ext" >&5
7500 ac_cv_header_gpm_h=no
7502 rm -f conftest.err "conftest.$ac_ext"
7504 echo "$as_me:7504: result: $ac_cv_header_gpm_h" >&5
7505 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7506 if test "$ac_cv_header_gpm_h" = yes; then
7508 cat >>confdefs.h <<\EOF
7509 #define HAVE_GPM_H 1
7512 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7513 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7515 echo "${as_me:-configure}:7515: testing assuming we really have GPM library ..." 1>&5
7517 cat >>confdefs.h <<\EOF
7518 #define HAVE_LIBGPM 1
7523 echo "$as_me:7523: checking for Gpm_Open in -lgpm" >&5
7524 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7525 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_check_lib_save_LIBS=$LIBS
7530 cat >"conftest.$ac_ext" <<_ACEOF
7531 #line 7531 "configure"
7532 #include "confdefs.h"
7534 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7540 char Gpm_Open (void);
7549 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7550 if { (eval echo "$as_me:7550: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:7553: \$? = $ac_status" >&5
7554 (exit "$ac_status"); } &&
7555 { ac_try='test -s "conftest$ac_exeext"'
7556 { (eval echo "$as_me:7556: \"$ac_try\"") >&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 (exit "$ac_status"); }; }; then
7561 ac_cv_lib_gpm_Gpm_Open=yes
7563 echo "$as_me: failed program was:" >&5
7564 cat "conftest.$ac_ext" >&5
7565 ac_cv_lib_gpm_Gpm_Open=no
7567 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7568 LIBS=$ac_check_lib_save_LIBS
7570 echo "$as_me:7570: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7571 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7572 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7576 if test "$with_gpm" = maybe; then
7577 { echo "$as_me:7577: WARNING: Cannot link with GPM library" >&5
7578 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7581 { { echo "$as_me:7581: error: Cannot link with GPM library" >&5
7582 echo "$as_me: error: Cannot link with GPM library" >&2;}
7583 { (exit 1); exit 1; }; }
7592 test "$with_gpm" != maybe && { echo "$as_me:7592: WARNING: Cannot find GPM header" >&5
7593 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7600 if test "$with_gpm" != no ; then
7601 echo "$as_me:7601: checking if you want to load GPM dynamically" >&5
7602 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7604 # Check whether --with-dlsym or --without-dlsym was given.
7605 if test "${with_dlsym+set}" = set; then
7606 withval="$with_dlsym"
7611 echo "$as_me:7611: result: $with_dlsym" >&5
7612 echo "${ECHO_T}$with_dlsym" >&6
7613 if test "x$with_dlsym" = xyes ; then
7616 echo "$as_me:7616: checking for dlsym" >&5
7617 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7618 if test "${ac_cv_func_dlsym+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 cat >"conftest.$ac_ext" <<_ACEOF
7622 #line 7622 "configure"
7623 #include "confdefs.h"
7624 #define dlsym autoconf_temporary
7625 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7640 /* The GNU C library defines stubs for functions which it implements
7641 to always fail with ENOSYS. Some functions are actually named
7642 something starting with __ and the normal name is an alias. */
7643 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7644 #error found stub for dlsym
7652 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7653 if { (eval echo "$as_me:7653: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7656 echo "$as_me:7656: \$? = $ac_status" >&5
7657 (exit "$ac_status"); } &&
7658 { ac_try='test -s "conftest$ac_exeext"'
7659 { (eval echo "$as_me:7659: \"$ac_try\"") >&5
7662 echo "$as_me:7662: \$? = $ac_status" >&5
7663 (exit "$ac_status"); }; }; then
7664 ac_cv_func_dlsym=yes
7666 echo "$as_me: failed program was:" >&5
7667 cat "conftest.$ac_ext" >&5
7670 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7672 echo "$as_me:7672: result: $ac_cv_func_dlsym" >&5
7673 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7674 if test "$ac_cv_func_dlsym" = yes; then
7679 echo "$as_me:7679: checking for dlsym in -ldl" >&5
7680 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7681 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_check_lib_save_LIBS=$LIBS
7686 cat >"conftest.$ac_ext" <<_ACEOF
7687 #line 7687 "configure"
7688 #include "confdefs.h"
7690 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7705 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7706 if { (eval echo "$as_me:7706: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:7709: \$? = $ac_status" >&5
7710 (exit "$ac_status"); } &&
7711 { ac_try='test -s "conftest$ac_exeext"'
7712 { (eval echo "$as_me:7712: \"$ac_try\"") >&5
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 (exit "$ac_status"); }; }; then
7717 ac_cv_lib_dl_dlsym=yes
7719 echo "$as_me: failed program was:" >&5
7720 cat "conftest.$ac_ext" >&5
7721 ac_cv_lib_dl_dlsym=no
7723 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7724 LIBS=$ac_check_lib_save_LIBS
7726 echo "$as_me:7726: result: $ac_cv_lib_dl_dlsym" >&5
7727 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7728 if test "$ac_cv_lib_dl_dlsym" = yes; then
7736 if test "$cf_have_dlsym" = yes ; then
7737 test "$cf_have_libdl" = yes && {
7741 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7743 for cf_add_1lib in $cf_add_0lib; do
7744 for cf_add_2lib in $cf_add_libs; do
7745 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7750 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7755 echo "$as_me:7755: checking whether able to link to dl*() functions" >&5
7756 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7757 cat >"conftest.$ac_ext" <<_ACEOF
7758 #line 7758 "configure"
7759 #include "confdefs.h"
7766 if ((obj = dlopen("filename", 0)) != 0) {
7767 if (dlsym(obj, "symbolname") == 0) {
7775 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7776 if { (eval echo "$as_me:7776: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7779 echo "$as_me:7779: \$? = $ac_status" >&5
7780 (exit "$ac_status"); } &&
7781 { ac_try='test -s "conftest$ac_exeext"'
7782 { (eval echo "$as_me:7782: \"$ac_try\"") >&5
7785 echo "$as_me:7785: \$? = $ac_status" >&5
7786 (exit "$ac_status"); }; }; then
7788 cat >>confdefs.h <<\EOF
7789 #define HAVE_LIBDL 1
7793 echo "$as_me: failed program was:" >&5
7794 cat "conftest.$ac_ext" >&5
7796 { { echo "$as_me:7796: error: Cannot link test program for libdl" >&5
7797 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7798 { (exit 1); exit 1; }; }
7800 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7801 echo "$as_me:7801: result: ok" >&5
7802 echo "${ECHO_T}ok" >&6
7804 { { echo "$as_me:7804: error: Cannot find dlsym function" >&5
7805 echo "$as_me: error: Cannot find dlsym function" >&2;}
7806 { (exit 1); exit 1; }; }
7809 if test "x$with_gpm" != xyes ; then
7810 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7812 echo "${as_me:-configure}:7812: testing assuming soname for gpm is $with_gpm ..." 1>&5
7814 cf_cv_gpm_soname="$with_gpm"
7817 echo "$as_me:7817: checking for soname of gpm library" >&5
7818 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7819 if test "${cf_cv_gpm_soname+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 cf_cv_gpm_soname=unknown
7824 if test "$cross_compiling" != yes ; then
7825 cat >conftest.$ac_ext <<CF_EOF
7829 if (Gpm_Open(0,0)) Gpm_Close();
7830 ${cf_cv_main_return:-return}(0);
7833 cf_save_LIBS="$LIBS"
7838 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7840 for cf_add_1lib in $cf_add_0lib; do
7841 for cf_add_2lib in $cf_add_libs; do
7842 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7847 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7851 if { (eval echo "$as_me:7851: \"$ac_compile\"") >&5
7852 (eval $ac_compile) 2>&5
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit "$ac_status"); } ; then
7856 if { (eval echo "$as_me:7856: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit "$ac_status"); } ; then
7861 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7862 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7866 LIBS="$cf_save_LIBS"
7870 echo "$as_me:7870: result: $cf_cv_gpm_soname" >&5
7871 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7874 test "$cf_cv_gpm_soname" != "unknown" &&
7875 cat >>confdefs.h <<EOF
7876 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7879 SHLIB_LIST="-ldl $SHLIB_LIST"
7881 cf_add_libs="$PRIVATE_LIBS"
7884 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7886 for cf_add_1lib in $cf_add_0lib; do
7887 for cf_add_2lib in $cf_add_libs; do
7888 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7895 PRIVATE_LIBS="$cf_add_libs"
7898 SHLIB_LIST="-lgpm $SHLIB_LIST"
7900 cf_add_libs="$TEST_LIBS"
7903 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7905 for cf_add_1lib in $cf_add_0lib; do
7906 for cf_add_2lib in $cf_add_libs; do
7907 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7912 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7914 TEST_LIBS="$cf_add_libs"
7916 cf_add_libs="$PRIVATE_LIBS"
7919 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7921 for cf_add_1lib in $cf_add_0lib; do
7922 for cf_add_2lib in $cf_add_libs; do
7923 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7928 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7930 PRIVATE_LIBS="$cf_add_libs"
7934 cat >>confdefs.h <<\EOF
7935 #define HAVE_LIBGPM 1
7938 echo "$as_me:7938: checking for Gpm_Wgetch in -lgpm" >&5
7939 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7940 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 ac_check_lib_save_LIBS=$LIBS
7945 cat >"conftest.$ac_ext" <<_ACEOF
7946 #line 7946 "configure"
7947 #include "confdefs.h"
7949 /* Override any gcc2 internal prototype to avoid an error. */
7953 /* We use char because int might match the return type of a gcc2
7954 builtin and then its argument prototype would still apply. */
7955 char Gpm_Wgetch (void);
7964 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7965 if { (eval echo "$as_me:7965: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit "$ac_status"); } &&
7970 { ac_try='test -s "conftest$ac_exeext"'
7971 { (eval echo "$as_me:7971: \"$ac_try\"") >&5
7974 echo "$as_me:7974: \$? = $ac_status" >&5
7975 (exit "$ac_status"); }; }; then
7976 ac_cv_lib_gpm_Gpm_Wgetch=yes
7978 echo "$as_me: failed program was:" >&5
7979 cat "conftest.$ac_ext" >&5
7980 ac_cv_lib_gpm_Gpm_Wgetch=no
7982 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7983 LIBS=$ac_check_lib_save_LIBS
7985 echo "$as_me:7985: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7986 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7987 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7989 echo "$as_me:7989: checking if GPM is weakly bound to curses library" >&5
7990 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7991 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cf_cv_check_gpm_wgetch=unknown
7996 if test "$cross_compiling" != yes ; then
7998 cat >conftest.$ac_ext <<CF_EOF
8003 ${cf_cv_main_return:-return}(0);
8007 cf_save_LIBS="$LIBS"
8008 # This only works if we can look at the symbol table. If a shared
8009 # library is stripped for install, we cannot use that. So we're forced
8010 # to rely on the static library, noting that some packagers may not
8012 LIBS="-static -lgpm -dynamic $LIBS"
8013 if { (eval echo "$as_me:8013: \"$ac_compile\"") >&5
8014 (eval $ac_compile) 2>&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit "$ac_status"); } ; then
8018 if { (eval echo "$as_me:8018: \"$ac_link\"") >&5
8019 (eval $ac_link) 2>&5
8021 echo "$as_me:8021: \$? = $ac_status" >&5
8022 (exit "$ac_status"); } ; then
8023 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8024 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8025 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8029 LIBS="$cf_save_LIBS"
8033 echo "$as_me:8033: result: $cf_cv_check_gpm_wgetch" >&5
8034 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8036 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8037 { echo "$as_me:8037: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8038 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8045 echo "$as_me:8045: checking if you want to use PCRE2 for regular-expressions" >&5
8046 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8048 # Check whether --with-pcre2 or --without-pcre2 was given.
8049 if test "${with_pcre2+set}" = set; then
8050 withval="$with_pcre2"
8053 test -z "$with_pcre2" && with_pcre2=no
8054 echo "$as_me:8054: result: $with_pcre2" >&5
8055 echo "${ECHO_T}$with_pcre2" >&6
8057 if test "x$with_pcre2" != xno ; then
8059 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8062 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8063 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8065 echo "${as_me:-configure}:8065: testing found package $cf_with_pcre2 ..." 1>&5
8067 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8068 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8069 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8071 echo "${as_me:-configure}:8071: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8073 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8075 echo "${as_me:-configure}:8075: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8080 cf_new_extra_cppflags=
8082 for cf_add_cflags in $cf_pkgconfig_incs
8084 case "$cf_fix_cppflags" in
8086 case "$cf_add_cflags" in
8087 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8088 case "$cf_add_cflags" in
8090 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8093 && test -z "${cf_tst_cflags}" \
8094 && cf_fix_cppflags=yes
8096 if test "$cf_fix_cppflags" = yes ; then
8098 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8099 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8102 elif test "${cf_tst_cflags}" = "\"'" ; then
8104 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8105 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8115 case "$cf_add_cflags" in
8117 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8119 CPPFLAGS=`echo "$CPPFLAGS" | \
8120 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8121 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8126 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8127 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8134 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8135 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8142 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8143 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8145 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8147 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8148 && test -z "${cf_tst_cflags}" \
8149 && cf_fix_cppflags=no
8154 if test -n "$cf_new_cflags" ; then
8156 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8157 CFLAGS="${CFLAGS}$cf_new_cflags"
8161 if test -n "$cf_new_cppflags" ; then
8163 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8164 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8168 if test -n "$cf_new_extra_cppflags" ; then
8170 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8171 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8178 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8180 for cf_add_1lib in $cf_add_0lib; do
8181 for cf_add_2lib in $cf_add_libs; do
8182 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8187 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8191 cf_with_pcre2_ok=yes; break
8199 cf_with_pcre2_ok=yes || { { echo "$as_me:8199: error: Cannot find PCRE2 library" >&5
8200 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8201 { (exit 1); exit 1; }; }
8203 cat >>confdefs.h <<\EOF
8204 #define HAVE_LIB_PCRE2 1
8207 # if pkgconfig gave no results, look for the libraries directly
8209 (*pcre2-posix*|*pcreposix*)
8212 echo "$as_me:8212: checking for regcomp in -lpcre2-posix" >&5
8213 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8214 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 ac_check_lib_save_LIBS=$LIBS
8218 LIBS="-lpcre2-posix $LIBS"
8219 cat >"conftest.$ac_ext" <<_ACEOF
8220 #line 8220 "configure"
8221 #include "confdefs.h"
8223 /* Override any gcc2 internal prototype to avoid an error. */
8227 /* We use char because int might match the return type of a gcc2
8228 builtin and then its argument prototype would still apply. */
8229 char regcomp (void);
8238 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8239 if { (eval echo "$as_me:8239: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>&5
8242 echo "$as_me:8242: \$? = $ac_status" >&5
8243 (exit "$ac_status"); } &&
8244 { ac_try='test -s "conftest$ac_exeext"'
8245 { (eval echo "$as_me:8245: \"$ac_try\"") >&5
8248 echo "$as_me:8248: \$? = $ac_status" >&5
8249 (exit "$ac_status"); }; }; then
8250 ac_cv_lib_pcre2_posix_regcomp=yes
8252 echo "$as_me: failed program was:" >&5
8253 cat "conftest.$ac_ext" >&5
8254 ac_cv_lib_pcre2_posix_regcomp=no
8256 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8257 LIBS=$ac_check_lib_save_LIBS
8259 echo "$as_me:8259: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8260 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8261 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8266 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8268 for cf_add_1lib in $cf_add_0lib; do
8269 for cf_add_2lib in $cf_add_libs; do
8270 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8275 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8280 echo "$as_me:8280: checking for regcomp in -lpcreposix" >&5
8281 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8282 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lpcreposix $LIBS"
8287 cat >"conftest.$ac_ext" <<_ACEOF
8288 #line 8288 "configure"
8289 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8297 char regcomp (void);
8306 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8307 if { (eval echo "$as_me:8307: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>&5
8310 echo "$as_me:8310: \$? = $ac_status" >&5
8311 (exit "$ac_status"); } &&
8312 { ac_try='test -s "conftest$ac_exeext"'
8313 { (eval echo "$as_me:8313: \"$ac_try\"") >&5
8316 echo "$as_me:8316: \$? = $ac_status" >&5
8317 (exit "$ac_status"); }; }; then
8318 ac_cv_lib_pcreposix_regcomp=yes
8320 echo "$as_me: failed program was:" >&5
8321 cat "conftest.$ac_ext" >&5
8322 ac_cv_lib_pcreposix_regcomp=no
8324 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8325 LIBS=$ac_check_lib_save_LIBS
8327 echo "$as_me:8327: result: $ac_cv_lib_pcreposix_regcomp" >&5
8328 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8329 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8334 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8336 for cf_add_1lib in $cf_add_0lib; do
8337 for cf_add_2lib in $cf_add_libs; do
8338 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8343 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8348 { { echo "$as_me:8348: error: Cannot find PCRE2 POSIX library" >&5
8349 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8350 { (exit 1); exit 1; }; }
8358 # either way, check for the library header files
8360 for ac_header in pcre2posix.h pcreposix.h
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 echo "$as_me:8363: checking for $ac_header" >&5
8364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 cat >"conftest.$ac_ext" <<_ACEOF
8369 #line 8369 "configure"
8370 #include "confdefs.h"
8371 #include <$ac_header>
8373 if { (eval echo "$as_me:8373: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8374 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8376 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:8379: \$? = $ac_status" >&5
8380 (exit "$ac_status"); } >/dev/null; then
8381 if test -s conftest.err; then
8382 ac_cpp_err=$ac_c_preproc_warn_flag
8389 if test -z "$ac_cpp_err"; then
8390 eval "$as_ac_Header=yes"
8392 echo "$as_me: failed program was:" >&5
8393 cat "conftest.$ac_ext" >&5
8394 eval "$as_ac_Header=no"
8396 rm -f conftest.err "conftest.$ac_ext"
8398 echo "$as_me:8398: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8399 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8400 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8401 cat >>confdefs.h <<EOF
8402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8408 for ac_func in PCRE2regcomp
8410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8411 echo "$as_me:8411: checking for $ac_func" >&5
8412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8413 if eval "test \"\${$as_ac_var+set}\" = set"; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 cat >"conftest.$ac_ext" <<_ACEOF
8417 #line 8417 "configure"
8418 #include "confdefs.h"
8419 #define $ac_func autoconf_temporary
8420 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8429 char $ac_func (void);
8435 /* The GNU C library defines stubs for functions which it implements
8436 to always fail with ENOSYS. Some functions are actually named
8437 something starting with __ and the normal name is an alias. */
8438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8439 #error found stub for $ac_func
8447 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8448 if { (eval echo "$as_me:8448: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8451 echo "$as_me:8451: \$? = $ac_status" >&5
8452 (exit "$ac_status"); } &&
8453 { ac_try='test -s "conftest$ac_exeext"'
8454 { (eval echo "$as_me:8454: \"$ac_try\"") >&5
8457 echo "$as_me:8457: \$? = $ac_status" >&5
8458 (exit "$ac_status"); }; }; then
8459 eval "$as_ac_var=yes"
8461 echo "$as_me: failed program was:" >&5
8462 cat "conftest.$ac_ext" >&5
8463 eval "$as_ac_var=no"
8465 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8467 echo "$as_me:8467: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8469 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8470 cat >>confdefs.h <<EOF
8471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8479 # not everyone has "test -c"
8480 if test -c /dev/sysmouse 2>/dev/null ; then
8481 echo "$as_me:8481: checking if you want to use sysmouse" >&5
8482 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8484 # Check whether --with-sysmouse or --without-sysmouse was given.
8485 if test "${with_sysmouse+set}" = set; then
8486 withval="$with_sysmouse"
8487 cf_with_sysmouse=$withval
8489 cf_with_sysmouse=maybe
8491 if test "$cf_with_sysmouse" != no ; then
8492 cat >"conftest.$ac_ext" <<_ACEOF
8493 #line 8493 "configure"
8494 #include "confdefs.h"
8496 #include <osreldate.h>
8497 #if (__FreeBSD_version >= 400017)
8498 #include <sys/consio.h>
8499 #include <sys/fbio.h>
8501 #include <machine/console.h>
8508 struct mouse_info the_mouse;
8509 ioctl(0, CONS_MOUSECTL, &the_mouse);
8515 rm -f "conftest.$ac_objext"
8516 if { (eval echo "$as_me:8516: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>&5
8519 echo "$as_me:8519: \$? = $ac_status" >&5
8520 (exit "$ac_status"); } &&
8521 { ac_try='test -s "conftest.$ac_objext"'
8522 { (eval echo "$as_me:8522: \"$ac_try\"") >&5
8525 echo "$as_me:8525: \$? = $ac_status" >&5
8526 (exit "$ac_status"); }; }; then
8527 cf_with_sysmouse=yes
8529 echo "$as_me: failed program was:" >&5
8530 cat "conftest.$ac_ext" >&5
8533 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8535 echo "$as_me:8535: result: $cf_with_sysmouse" >&5
8536 echo "${ECHO_T}$cf_with_sysmouse" >&6
8537 test "$cf_with_sysmouse" = yes &&
8538 cat >>confdefs.h <<\EOF
8539 #define USE_SYSMOUSE 1
8544 # pretend that ncurses==ncursesw==ncursest
8545 echo "$as_me:8545: checking if you want to disable library suffixes" >&5
8546 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8548 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8549 if test "${enable_lib_suffixes+set}" = set; then
8550 enableval="$enable_lib_suffixes"
8551 test "$enableval" != no && enableval=yes
8552 if test "$enableval" != "yes" ; then
8553 disable_lib_suffixes=yes
8555 disable_lib_suffixes=no
8559 disable_lib_suffixes=no
8562 echo "$as_me:8562: result: $disable_lib_suffixes" >&5
8563 echo "${ECHO_T}$disable_lib_suffixes" >&6
8565 ### If we're building with rpath, try to link non-standard libs that way too.
8566 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8568 echo "$as_me:8568: checking if rpath-hack should be disabled" >&5
8569 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8571 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8572 if test "${enable_rpath_hack+set}" = set; then
8573 enableval="$enable_rpath_hack"
8574 test "$enableval" != no && enableval=yes
8575 if test "$enableval" != "yes" ; then
8576 enable_rpath_hack=no
8578 enable_rpath_hack=yes
8582 enable_rpath_hack=yes
8585 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8586 echo "$as_me:8586: result: $cf_disable_rpath_hack" >&5
8587 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8589 if test "$enable_rpath_hack" = yes ; then
8591 echo "$as_me:8591: checking for updated LDFLAGS" >&5
8592 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8593 if test -n "$LD_RPATH_OPT" ; then
8594 echo "$as_me:8594: result: maybe" >&5
8595 echo "${ECHO_T}maybe" >&6
8599 # Extract the first word of "$ac_prog", so it can be a program name with args.
8600 set dummy $ac_prog; ac_word=$2
8601 echo "$as_me:8601: checking for $ac_word" >&5
8602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8603 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 if test -n "$cf_ldd_prog"; then
8607 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8609 ac_save_IFS=$IFS; IFS=$ac_path_separator
8611 for ac_dir in $ac_dummy; do
8613 test -z "$ac_dir" && ac_dir=.
8614 $as_executable_p "$ac_dir/$ac_word" || continue
8615 ac_cv_prog_cf_ldd_prog="$ac_prog"
8616 echo "$as_me:8616: found $ac_dir/$ac_word" >&5
8622 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8623 if test -n "$cf_ldd_prog"; then
8624 echo "$as_me:8624: result: $cf_ldd_prog" >&5
8625 echo "${ECHO_T}$cf_ldd_prog" >&6
8627 echo "$as_me:8627: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8631 test -n "$cf_ldd_prog" && break
8633 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8635 cf_rpath_list="/usr/lib /lib"
8636 if test "$cf_ldd_prog" != no
8640 cat >"conftest.$ac_ext" <<_ACEOF
8641 #line 8641 "configure"
8642 #include "confdefs.h"
8652 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8653 if { (eval echo "$as_me:8653: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>&5
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 (exit "$ac_status"); } &&
8658 { ac_try='test -s "conftest$ac_exeext"'
8659 { (eval echo "$as_me:8659: \"$ac_try\"") >&5
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 (exit "$ac_status"); }; }; then
8664 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8665 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8667 echo "$as_me: failed program was:" >&5
8668 cat "conftest.$ac_ext" >&5
8670 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8672 # If we passed the link-test, but get a "not found" on a given library,
8673 # this could be due to inept reconfiguration of gcc to make it only
8674 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8675 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8676 # /usr/local libraries.
8677 if test -n "$cf_rpath_oops"
8679 for cf_rpath_src in $cf_rpath_oops
8681 for cf_rpath_dir in \
8686 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8688 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8690 echo "${as_me:-configure}:8690: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8692 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8700 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8702 echo "${as_me:-configure}:8702: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8704 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8706 echo "${as_me:-configure}:8706: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8709 for cf_rpath_src in $LDFLAGS
8711 case "$cf_rpath_src" in
8714 # check if this refers to a directory which we will ignore
8716 if test -n "$cf_rpath_list"
8718 for cf_rpath_item in $cf_rpath_list
8720 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8728 if test "$cf_rpath_skip" = no
8730 # transform the option
8731 if test "$LD_RPATH_OPT" = "-R " ; then
8732 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8734 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8737 # if we have not already added this, add it now
8738 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8739 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8741 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8743 echo "${as_me:-configure}:8743: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8745 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8750 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8752 LDFLAGS=$cf_rpath_dst
8754 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8756 echo "${as_me:-configure}:8756: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8758 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8760 echo "${as_me:-configure}:8760: testing ...checking LIBS $LIBS ..." 1>&5
8763 for cf_rpath_src in $LIBS
8765 case "$cf_rpath_src" in
8768 # check if this refers to a directory which we will ignore
8770 if test -n "$cf_rpath_list"
8772 for cf_rpath_item in $cf_rpath_list
8774 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8782 if test "$cf_rpath_skip" = no
8784 # transform the option
8785 if test "$LD_RPATH_OPT" = "-R " ; then
8786 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8788 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8791 # if we have not already added this, add it now
8792 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8793 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8795 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8797 echo "${as_me:-configure}:8797: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8799 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8804 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8808 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8810 echo "${as_me:-configure}:8810: testing ...checked LIBS $LIBS ..." 1>&5
8812 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8814 echo "${as_me:-configure}:8814: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8817 echo "$as_me:8817: result: no" >&5
8818 echo "${ECHO_T}no" >&6
8825 ### Depending on the system, someone may use rpath to build ncurses but not
8826 # want users of the package to rely upon that feature. Give those people an
8827 # option to suppress that detail from EXTRA_LDFLAGS.
8828 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8829 if test -n "$EXTRA_PKG_LDFLAGS"
8831 echo "$as_me:8831: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8832 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8834 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8835 if test "${enable_pkg_ldflags+set}" = set; then
8836 enableval="$enable_pkg_ldflags"
8837 test "$enableval" != no && enableval=yes
8838 if test "$enableval" != "yes" ; then
8839 disable_pkg_ldflags=yes
8841 disable_pkg_ldflags=no
8845 disable_pkg_ldflags=no
8848 echo "$as_me:8848: result: $disable_pkg_ldflags" >&5
8849 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8850 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8853 ###############################################################################
8855 ### use option --with-extra-suffix to append suffix to headers and libraries
8856 echo "$as_me:8856: checking for extra suffix to append to header/library paths" >&5
8857 echo $ECHO_N "checking for extra suffix to append to header/library paths... $ECHO_C" >&6
8860 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8861 if test "${with_extra_suffix+set}" = set; then
8862 withval="$with_extra_suffix"
8867 EXTRA_SUFFIX=$cf_cv_abi_version
8870 EXTRA_SUFFIX=$withval
8875 echo "$as_me:8875: result: ${EXTRA_SUFFIX:-(none)}" >&5
8876 echo "${ECHO_T}${EXTRA_SUFFIX:-(none)}" >&6
8878 ### use option --disable-overwrite to leave out the link to -lcurses
8879 echo "$as_me:8879: checking if you wish to install ncurses overwriting curses" >&5
8880 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8882 # Check whether --enable-overwrite or --disable-overwrite was given.
8883 if test "${enable_overwrite+set}" = set; then
8884 enableval="$enable_overwrite"
8885 with_overwrite=$enableval
8887 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8889 echo "$as_me:8889: result: $with_overwrite" >&5
8890 echo "${ECHO_T}$with_overwrite" >&6
8892 echo "$as_me:8892: checking if external terminfo-database is used" >&5
8893 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8895 # Check whether --enable-database or --disable-database was given.
8896 if test "${enable_database+set}" = set; then
8897 enableval="$enable_database"
8898 use_database=$enableval
8902 echo "$as_me:8902: result: $use_database" >&5
8903 echo "${ECHO_T}$use_database" >&6
8907 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8910 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8914 NCURSES_USE_DATABASE=0
8915 if test "$use_database" != no ; then
8916 NCURSES_USE_DATABASE=1
8918 echo "$as_me:8918: checking which terminfo source-file will be installed" >&5
8919 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8921 # Check whether --with-database or --without-database was given.
8922 if test "${with_database+set}" = set; then
8923 withval="$with_database"
8924 TERMINFO_SRC=$withval
8926 echo "$as_me:8926: result: $TERMINFO_SRC" >&5
8927 echo "${ECHO_T}$TERMINFO_SRC" >&6
8929 echo "$as_me:8929: checking whether to use hashed database instead of directory/tree" >&5
8930 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8932 # Check whether --with-hashed-db or --without-hashed-db was given.
8933 if test "${with_hashed_db+set}" = set; then
8934 withval="$with_hashed_db"
8939 echo "$as_me:8939: result: $with_hashed_db" >&5
8940 echo "${ECHO_T}$with_hashed_db" >&6
8945 echo "$as_me:8945: checking for list of fallback terminal descriptions" >&5
8946 echo $ECHO_N "checking for list of fallback terminal descriptions... $ECHO_C" >&6
8948 # Check whether --with-fallbacks or --without-fallbacks was given.
8949 if test "${with_fallbacks+set}" = set; then
8950 withval="$with_fallbacks"
8951 with_fallback=$withval
8955 echo "$as_me:8955: result: ${with_fallback:-(none)}" >&5
8956 echo "${ECHO_T}${with_fallback:-(none)}" >&6
8958 case ".$with_fallback" in
8963 { echo "$as_me:8963: WARNING: expected a list of terminal descriptions" >&5
8964 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8967 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8971 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8972 # tree for generating the terminal descriptions that will be compiled into the
8973 # library. If your toolchain is old, it may not handle current terminal
8974 # databases. Use configure-options to point to the tools which will be used,
8975 # rather than the first ones found on the $PATH.
8976 if test -n "$ac_tool_prefix"; then
8977 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8978 set dummy ${ac_tool_prefix}tic; ac_word=$2
8979 echo "$as_me:8979: checking for $ac_word" >&5
8980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8981 if test "${ac_cv_prog_TIC+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 if test -n "$TIC"; then
8985 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8987 ac_save_IFS=$IFS; IFS=$ac_path_separator
8989 for ac_dir in $ac_dummy; do
8991 test -z "$ac_dir" && ac_dir=.
8992 $as_executable_p "$ac_dir/$ac_word" || continue
8993 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8994 echo "$as_me:8994: found $ac_dir/$ac_word" >&5
9001 if test -n "$TIC"; then
9002 echo "$as_me:9002: result: $TIC" >&5
9003 echo "${ECHO_T}$TIC" >&6
9005 echo "$as_me:9005: result: no" >&5
9006 echo "${ECHO_T}no" >&6
9010 if test -z "$ac_cv_prog_TIC"; then
9012 # Extract the first word of "tic", so it can be a program name with args.
9013 set dummy tic; ac_word=$2
9014 echo "$as_me:9014: checking for $ac_word" >&5
9015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9016 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 if test -n "$ac_ct_TIC"; then
9020 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9022 ac_save_IFS=$IFS; IFS=$ac_path_separator
9024 for ac_dir in $ac_dummy; do
9026 test -z "$ac_dir" && ac_dir=.
9027 $as_executable_p "$ac_dir/$ac_word" || continue
9028 ac_cv_prog_ac_ct_TIC="tic"
9029 echo "$as_me:9029: found $ac_dir/$ac_word" >&5
9035 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9036 if test -n "$ac_ct_TIC"; then
9037 echo "$as_me:9037: result: $ac_ct_TIC" >&5
9038 echo "${ECHO_T}$ac_ct_TIC" >&6
9040 echo "$as_me:9040: result: no" >&5
9041 echo "${ECHO_T}no" >&6
9046 TIC="$ac_cv_prog_TIC"
9049 if test -n "$ac_tool_prefix"; then
9050 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9051 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9052 echo "$as_me:9052: checking for $ac_word" >&5
9053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9054 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 if test -n "$INFOCMP"; then
9058 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9060 ac_save_IFS=$IFS; IFS=$ac_path_separator
9062 for ac_dir in $ac_dummy; do
9064 test -z "$ac_dir" && ac_dir=.
9065 $as_executable_p "$ac_dir/$ac_word" || continue
9066 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9067 echo "$as_me:9067: found $ac_dir/$ac_word" >&5
9073 INFOCMP=$ac_cv_prog_INFOCMP
9074 if test -n "$INFOCMP"; then
9075 echo "$as_me:9075: result: $INFOCMP" >&5
9076 echo "${ECHO_T}$INFOCMP" >&6
9078 echo "$as_me:9078: result: no" >&5
9079 echo "${ECHO_T}no" >&6
9083 if test -z "$ac_cv_prog_INFOCMP"; then
9084 ac_ct_INFOCMP=$INFOCMP
9085 # Extract the first word of "infocmp", so it can be a program name with args.
9086 set dummy infocmp; ac_word=$2
9087 echo "$as_me:9087: checking for $ac_word" >&5
9088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9089 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 if test -n "$ac_ct_INFOCMP"; then
9093 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9095 ac_save_IFS=$IFS; IFS=$ac_path_separator
9097 for ac_dir in $ac_dummy; do
9099 test -z "$ac_dir" && ac_dir=.
9100 $as_executable_p "$ac_dir/$ac_word" || continue
9101 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9102 echo "$as_me:9102: found $ac_dir/$ac_word" >&5
9108 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9109 if test -n "$ac_ct_INFOCMP"; then
9110 echo "$as_me:9110: result: $ac_ct_INFOCMP" >&5
9111 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9113 echo "$as_me:9113: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9117 INFOCMP=$ac_ct_INFOCMP
9119 INFOCMP="$ac_cv_prog_INFOCMP"
9122 if test -n "$FALLBACK_LIST"
9125 # Check whether --with-tic-path or --without-tic-path was given.
9126 if test "${with_tic_path+set}" = set; then
9127 withval="$with_tic_path"
9128 echo "$as_me:9128: checking for tic program for fallbacks" >&5
9129 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9131 echo "$as_me:9131: result: $TIC" >&5
9132 echo "${ECHO_T}$TIC" >&6
9134 if test "x$prefix" != xNONE; then
9135 cf_path_syntax="$prefix"
9137 cf_path_syntax="$ac_default_prefix"
9145 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9147 (.\$\{*prefix\}*|.\$\{*dir\}*)
9151 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9156 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9159 { { echo "$as_me:9159: error: expected a pathname, not \"$TIC\"" >&5
9160 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9161 { (exit 1); exit 1; }; }
9167 test -z "$TIC" && TIC="tic"
9168 for ac_prog in $TIC tic
9170 # Extract the first word of "$ac_prog", so it can be a program name with args.
9171 set dummy $ac_prog; ac_word=$2
9172 echo "$as_me:9172: checking for $ac_word" >&5
9173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9174 if test "${ac_cv_path_TIC+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9182 ac_save_IFS=$IFS; IFS=$ac_path_separator
9183 ac_dummy="$PATH:/usr/local/ncurses/bin"
9184 for ac_dir in $ac_dummy; do
9186 test -z "$ac_dir" && ac_dir=.
9187 if $as_executable_p "$ac_dir/$ac_word"; then
9188 ac_cv_path_TIC="$ac_dir/$ac_word"
9189 echo "$as_me:9189: found $ac_dir/$ac_word" >&5
9199 if test -n "$TIC"; then
9200 echo "$as_me:9200: result: $TIC" >&5
9201 echo "${ECHO_T}$TIC" >&6
9203 echo "$as_me:9203: result: no" >&5
9204 echo "${ECHO_T}no" >&6
9207 test -n "$TIC" && break
9209 test -n "$TIC" || TIC="$TIC"
9213 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9214 for cf_temp in $ac_cv_path_TIC
9216 if test -z "$cf_path_prog" ; then
9217 if test "$with_full_paths" = yes ; then
9219 if test "x$prefix" != xNONE; then
9220 cf_path_syntax="$prefix"
9222 cf_path_syntax="$ac_default_prefix"
9230 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9232 (.\$\{*prefix\}*|.\$\{*dir\}*)
9233 eval cf_temp="$cf_temp"
9236 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9241 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9248 cf_path_prog="$cf_temp"
9250 cf_path_prog="`basename "$cf_temp"`"
9252 elif test -z "$cf_path_args" ; then
9253 cf_path_args="$cf_temp"
9255 cf_path_args="$cf_path_args $cf_temp"
9260 if test -n "$cf_path_prog" ; then
9262 echo "${as_me:-configure}:9262: testing defining path for ${cf_path_prog} ..." 1>&5
9264 cat >>confdefs.h <<EOF
9265 #define TIC_PATH "$cf_path_prog"
9268 test -n "$cf_path_args" &&
9269 cat >>confdefs.h <<EOF
9270 #define TIC_ARGS "$cf_path_args"
9277 { echo "$as_me:9277: WARNING: no tic program found for fallbacks" >&5
9278 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9283 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9284 if test "${with_infocmp_path+set}" = set; then
9285 withval="$with_infocmp_path"
9286 echo "$as_me:9286: checking for infocmp program for fallbacks" >&5
9287 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9289 echo "$as_me:9289: result: $INFOCMP" >&5
9290 echo "${ECHO_T}$INFOCMP" >&6
9292 if test "x$prefix" != xNONE; then
9293 cf_path_syntax="$prefix"
9295 cf_path_syntax="$ac_default_prefix"
9303 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9305 (.\$\{*prefix\}*|.\$\{*dir\}*)
9306 eval INFOCMP="$INFOCMP"
9309 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9314 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9317 { { echo "$as_me:9317: error: expected a pathname, not \"$INFOCMP\"" >&5
9318 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9319 { (exit 1); exit 1; }; }
9325 test -z "$INFOCMP" && INFOCMP="infocmp"
9326 for ac_prog in $INFOCMP infocmp
9328 # Extract the first word of "$ac_prog", so it can be a program name with args.
9329 set dummy $ac_prog; ac_word=$2
9330 echo "$as_me:9330: checking for $ac_word" >&5
9331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9332 if test "${ac_cv_path_INFOCMP+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9340 ac_save_IFS=$IFS; IFS=$ac_path_separator
9341 ac_dummy="$PATH:/usr/local/ncurses/bin"
9342 for ac_dir in $ac_dummy; do
9344 test -z "$ac_dir" && ac_dir=.
9345 if $as_executable_p "$ac_dir/$ac_word"; then
9346 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9347 echo "$as_me:9347: found $ac_dir/$ac_word" >&5
9355 INFOCMP=$ac_cv_path_INFOCMP
9357 if test -n "$INFOCMP"; then
9358 echo "$as_me:9358: result: $INFOCMP" >&5
9359 echo "${ECHO_T}$INFOCMP" >&6
9361 echo "$as_me:9361: result: no" >&5
9362 echo "${ECHO_T}no" >&6
9365 test -n "$INFOCMP" && break
9367 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9371 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9372 for cf_temp in $ac_cv_path_INFOCMP
9374 if test -z "$cf_path_prog" ; then
9375 if test "$with_full_paths" = yes ; then
9377 if test "x$prefix" != xNONE; then
9378 cf_path_syntax="$prefix"
9380 cf_path_syntax="$ac_default_prefix"
9388 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9390 (.\$\{*prefix\}*|.\$\{*dir\}*)
9391 eval cf_temp="$cf_temp"
9394 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9399 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9406 cf_path_prog="$cf_temp"
9408 cf_path_prog="`basename "$cf_temp"`"
9410 elif test -z "$cf_path_args" ; then
9411 cf_path_args="$cf_temp"
9413 cf_path_args="$cf_path_args $cf_temp"
9418 if test -n "$cf_path_prog" ; then
9420 echo "${as_me:-configure}:9420: testing defining path for ${cf_path_prog} ..." 1>&5
9422 cat >>confdefs.h <<EOF
9423 #define INFOCMP_PATH "$cf_path_prog"
9426 test -n "$cf_path_args" &&
9427 cat >>confdefs.h <<EOF
9428 #define INFOCMP_ARGS "$cf_path_args"
9433 if test -z "$INFOCMP"
9435 { echo "$as_me:9435: WARNING: no infocmp program found for fallbacks" >&5
9436 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9441 test -z "$TIC" && FALLBACK_LIST=
9442 test -z "$INFOCMP" && FALLBACK_LIST=
9443 if test -z "$FALLBACK_LIST"
9445 { echo "$as_me:9445: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9446 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9451 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9453 echo "$as_me:9453: checking if you want modern xterm or antique" >&5
9454 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9456 # Check whether --with-xterm-new or --without-xterm-new was given.
9457 if test "${with_xterm_new+set}" = set; then
9458 withval="$with_xterm_new"
9459 with_xterm_new=$withval
9463 case "$with_xterm_new" in
9464 (no) with_xterm_new=xterm-old;;
9465 (*) with_xterm_new=xterm-new;;
9467 echo "$as_me:9467: result: $with_xterm_new" >&5
9468 echo "${ECHO_T}$with_xterm_new" >&6
9469 WHICH_XTERM=$with_xterm_new
9472 (*linux-gnu|*cygwin|*mingw32|*msys)
9480 echo "$as_me:9480: checking if xterm backspace sends BS or DEL" >&5
9481 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9483 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9484 if test "${with_xterm_kbs+set}" = set; then
9485 withval="$with_xterm_kbs"
9486 with_xterm_kbs=$withval
9490 case x$with_xterm_kbs in
9491 (xyes|xno|xBS|xbs|x8)
9498 with_xterm_kbs=$want_xterm_kbs
9501 with_xterm_kbs=$withval
9504 echo "$as_me:9504: result: $with_xterm_kbs" >&5
9505 echo "${ECHO_T}$with_xterm_kbs" >&6
9506 XTERM_KBS=$with_xterm_kbs
9508 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9510 { echo "$as_me:9510: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&5
9511 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&2;}
9515 if test "$use_database" = no ; then
9516 TERMINFO="${datadir}/terminfo"
9520 echo "$as_me:9520: checking for list of terminfo directories" >&5
9521 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9523 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9524 if test "${with_terminfo_dirs+set}" = set; then
9525 withval="$with_terminfo_dirs"
9528 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9530 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9532 for cf_src_path in $withval
9535 if test "x$prefix" != xNONE; then
9536 cf_path_syntax="$prefix"
9538 cf_path_syntax="$ac_default_prefix"
9541 case ".$cf_src_path" in
9546 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9548 (.\$\{*prefix\}*|.\$\{*dir\}*)
9549 eval cf_src_path="$cf_src_path"
9550 case ".$cf_src_path" in
9552 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9557 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9560 { { echo "$as_me:9560: error: expected a pathname, not \"$cf_src_path\"" >&5
9561 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9562 { (exit 1); exit 1; }; }
9566 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9567 cf_dst_path="${cf_dst_path}${cf_src_path}"
9571 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9572 # so we have to check/work around. We do prefer the result of "eval"...
9573 eval cf_dst_eval="$cf_dst_path"
9574 case "x$cf_dst_eval" in
9576 TERMINFO_DIRS=$cf_dst_path
9579 TERMINFO_DIRS="$cf_dst_eval"
9583 echo "$as_me:9583: result: $TERMINFO_DIRS" >&5
9584 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9585 test -n "$TERMINFO_DIRS" &&
9586 cat >>confdefs.h <<EOF
9587 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9590 case "x$TERMINFO" in
9592 { echo "$as_me:9592: WARNING: ignoring non-directory/file TERMINFO value" >&5
9593 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9598 echo "$as_me:9598: checking for default terminfo directory" >&5
9599 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9601 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9602 if test "${with_default_terminfo_dir+set}" = set; then
9603 withval="$with_default_terminfo_dir"
9606 withval="${TERMINFO:-${datadir}/terminfo}"
9607 fi; if test -n "${datadir}/terminfo" ; then
9609 if test "x$prefix" != xNONE; then
9610 cf_path_syntax="$prefix"
9612 cf_path_syntax="$ac_default_prefix"
9620 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9622 (.\$\{*prefix\}*|.\$\{*dir\}*)
9623 eval withval="$withval"
9626 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9631 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9634 { { echo "$as_me:9634: error: expected a pathname, not \"$withval\"" >&5
9635 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9636 { (exit 1); exit 1; }; }
9641 eval TERMINFO="$withval"
9643 echo "$as_me:9643: result: $TERMINFO" >&5
9644 echo "${ECHO_T}$TERMINFO" >&6
9646 cat >>confdefs.h <<EOF
9647 #define TERMINFO "$TERMINFO"
9652 ### use option --disable-big-core to make tic run on small machines
9653 ### We need 4Mb, check if we can allocate 50% more than that.
9654 echo "$as_me:9654: checking if big-core option selected" >&5
9655 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9657 # Check whether --enable-big-core or --disable-big-core was given.
9658 if test "${enable_big_core+set}" = set; then
9659 enableval="$enable_big_core"
9660 with_big_core=$enableval
9662 if test "$cross_compiling" = yes; then
9665 cat >"conftest.$ac_ext" <<_ACEOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9672 unsigned long n = 6000000L;
9673 char *s = malloc(n);
9676 ${cf_cv_main_return:-return}(s == 0);
9679 rm -f "conftest$ac_exeext"
9680 if { (eval echo "$as_me:9680: \"$ac_link\"") >&5
9681 (eval $ac_link) 2>&5
9683 echo "$as_me:9683: \$? = $ac_status" >&5
9684 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9685 { (eval echo "$as_me:9685: \"$ac_try\"") >&5
9688 echo "$as_me:9688: \$? = $ac_status" >&5
9689 (exit "$ac_status"); }; }; then
9692 echo "$as_me: program exited with status $ac_status" >&5
9693 echo "$as_me: failed program was:" >&5
9694 cat "conftest.$ac_ext" >&5
9697 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9700 echo "$as_me:9700: result: $with_big_core" >&5
9701 echo "${ECHO_T}$with_big_core" >&6
9702 test "x$with_big_core" = "xyes" &&
9703 cat >>confdefs.h <<\EOF
9704 #define HAVE_BIG_CORE 1
9707 ### ISO C only guarantees 512-char strings, we have tables which load faster
9708 ### when constructed using "big" strings. More than the C compiler, the awk
9709 ### program is a limit on most vendor UNIX systems. Check that we can build.
9710 echo "$as_me:9710: checking if big-strings option selected" >&5
9711 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9713 # Check whether --enable-big-strings or --disable-big-strings was given.
9714 if test "${enable_big_strings+set}" = set; then
9715 enableval="$enable_big_strings"
9716 with_big_strings=$enableval
9721 eval with_big_strings=no
9724 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9725 | $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
9726 eval with_big_strings=yes
9728 eval with_big_strings=no
9734 echo "$as_me:9734: result: $with_big_strings" >&5
9735 echo "${ECHO_T}$with_big_strings" >&6
9738 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9740 ### use option --enable-termcap to compile in the termcap fallback support
9741 echo "$as_me:9741: checking if you want termcap-fallback support" >&5
9742 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9744 # Check whether --enable-termcap or --disable-termcap was given.
9745 if test "${enable_termcap+set}" = set; then
9746 enableval="$enable_termcap"
9747 with_termcap=$enableval
9751 echo "$as_me:9751: result: $with_termcap" >&5
9752 echo "${ECHO_T}$with_termcap" >&6
9754 NCURSES_USE_TERMCAP=0
9755 if test "x$with_termcap" != "xyes" ; then
9756 if test "$use_database" = no ; then
9757 if test -z "$with_fallback" ; then
9758 { { echo "$as_me:9758: error: You have disabled the database w/o specifying fallbacks" >&5
9759 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9760 { (exit 1); exit 1; }; }
9764 cat >>confdefs.h <<\EOF
9765 #define PURE_TERMINFO 1
9770 if test "$with_ticlib" != no ; then
9771 { { echo "$as_me:9771: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9772 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9773 { (exit 1); exit 1; }; }
9776 NCURSES_USE_TERMCAP=1
9777 echo "$as_me:9777: checking for list of termcap files" >&5
9778 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9780 # Check whether --with-termpath or --without-termpath was given.
9781 if test "${with_termpath+set}" = set; then
9782 withval="$with_termpath"
9785 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9787 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9789 for cf_src_path in $withval
9792 if test "x$prefix" != xNONE; then
9793 cf_path_syntax="$prefix"
9795 cf_path_syntax="$ac_default_prefix"
9798 case ".$cf_src_path" in
9803 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9805 (.\$\{*prefix\}*|.\$\{*dir\}*)
9806 eval cf_src_path="$cf_src_path"
9807 case ".$cf_src_path" in
9809 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9814 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9817 { { echo "$as_me:9817: error: expected a pathname, not \"$cf_src_path\"" >&5
9818 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9819 { (exit 1); exit 1; }; }
9823 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9824 cf_dst_path="${cf_dst_path}${cf_src_path}"
9828 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9829 # so we have to check/work around. We do prefer the result of "eval"...
9830 eval cf_dst_eval="$cf_dst_path"
9831 case "x$cf_dst_eval" in
9833 TERMPATH=$cf_dst_path
9836 TERMPATH="$cf_dst_eval"
9840 echo "$as_me:9840: result: $TERMPATH" >&5
9841 echo "${ECHO_T}$TERMPATH" >&6
9842 test -n "$TERMPATH" &&
9843 cat >>confdefs.h <<EOF
9844 #define TERMPATH "$TERMPATH"
9847 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9848 echo "$as_me:9848: checking if fast termcap-loader is needed" >&5
9849 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9851 # Check whether --enable-getcap or --disable-getcap was given.
9852 if test "${enable_getcap+set}" = set; then
9853 enableval="$enable_getcap"
9854 with_getcap=$enableval
9858 echo "$as_me:9858: result: $with_getcap" >&5
9859 echo "${ECHO_T}$with_getcap" >&6
9860 test "x$with_getcap" = "xyes" &&
9861 cat >>confdefs.h <<\EOF
9862 #define USE_GETCAP 1
9865 echo "$as_me:9865: checking if translated termcaps will be cached in ~/.terminfo" >&5
9866 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9868 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9869 if test "${enable_getcap_cache+set}" = set; then
9870 enableval="$enable_getcap_cache"
9871 with_getcap_cache=$enableval
9873 with_getcap_cache=no
9875 echo "$as_me:9875: result: $with_getcap_cache" >&5
9876 echo "${ECHO_T}$with_getcap_cache" >&6
9877 test "x$with_getcap_cache" = "xyes" &&
9878 cat >>confdefs.h <<\EOF
9879 #define USE_GETCAP_CACHE 1
9884 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9885 echo "$as_me:9885: checking if ~/.terminfo is wanted" >&5
9886 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9888 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9889 if test "${enable_home_terminfo+set}" = set; then
9890 enableval="$enable_home_terminfo"
9891 with_home_terminfo=$enableval
9893 with_home_terminfo=yes
9895 echo "$as_me:9895: result: $with_home_terminfo" >&5
9896 echo "${ECHO_T}$with_home_terminfo" >&6
9897 test "x$with_home_terminfo" = "xyes" &&
9898 cat >>confdefs.h <<\EOF
9899 #define USE_HOME_TERMINFO 1
9902 echo "$as_me:9902: checking if you want to permit root to use ncurses environment variables" >&5
9903 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9905 # Check whether --enable-root-environ or --disable-root-environ was given.
9906 if test "${enable_root_environ+set}" = set; then
9907 enableval="$enable_root_environ"
9908 with_root_environ=$enableval
9910 with_root_environ=yes
9912 echo "$as_me:9912: result: $with_root_environ" >&5
9913 echo "${ECHO_T}$with_root_environ" >&6
9914 test "x$with_root_environ" = xyes &&
9915 cat >>confdefs.h <<\EOF
9916 #define USE_ROOT_ENVIRON 1
9919 echo "$as_me:9919: checking if you want to permit setuid programs to access all files" >&5
9920 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9922 # Check whether --enable-root-access or --disable-root-access was given.
9923 if test "${enable_root_access+set}" = set; then
9924 enableval="$enable_root_access"
9925 with_root_access=$enableval
9927 with_root_access=yes
9929 echo "$as_me:9929: result: $with_root_access" >&5
9930 echo "${ECHO_T}$with_root_access" >&6
9931 test "x$with_root_access" = xyes &&
9932 cat >>confdefs.h <<\EOF
9933 #define USE_ROOT_ACCESS 1
9936 echo "$as_me:9936: checking if you want to permit setuid use of ncurses environment variables" >&5
9937 echo $ECHO_N "checking if you want to permit setuid use of ncurses environment variables... $ECHO_C" >&6
9939 # Check whether --enable-setuid-environ or --disable-setuid-environ was given.
9940 if test "${enable_setuid_environ+set}" = set; then
9941 enableval="$enable_setuid_environ"
9942 with_setuid_environ=$enableval
9944 with_setuid_environ=$with_root_environ
9946 echo "$as_me:9946: result: $with_setuid_environ" >&5
9947 echo "${ECHO_T}$with_setuid_environ" >&6
9948 test "x$with_setuid_environ" = xyes &&
9949 cat >>confdefs.h <<\EOF
9950 #define USE_SETUID_ENVIRON 1
9953 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9954 ### to reduce storage requirements for the terminfo database.
9960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 echo "$as_me:9961: checking for $ac_header" >&5
9962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 cat >"conftest.$ac_ext" <<_ACEOF
9967 #line 9967 "configure"
9968 #include "confdefs.h"
9969 #include <$ac_header>
9971 if { (eval echo "$as_me:9971: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9972 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9974 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:9977: \$? = $ac_status" >&5
9978 (exit "$ac_status"); } >/dev/null; then
9979 if test -s conftest.err; then
9980 ac_cpp_err=$ac_c_preproc_warn_flag
9987 if test -z "$ac_cpp_err"; then
9988 eval "$as_ac_Header=yes"
9990 echo "$as_me: failed program was:" >&5
9991 cat "conftest.$ac_ext" >&5
9992 eval "$as_ac_Header=no"
9994 rm -f conftest.err "conftest.$ac_ext"
9996 echo "$as_me:9996: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9997 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9998 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9999 cat >>confdefs.h <<EOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011 echo "$as_me:10011: checking for $ac_func" >&5
10012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10013 if eval "test \"\${$as_ac_var+set}\" = set"; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 cat >"conftest.$ac_ext" <<_ACEOF
10017 #line 10017 "configure"
10018 #include "confdefs.h"
10019 #define $ac_func autoconf_temporary
10020 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029 char $ac_func (void);
10035 /* The GNU C library defines stubs for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10039 #error found stub for $ac_func
10042 return $ac_func ();
10047 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10048 if { (eval echo "$as_me:10048: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>&5
10051 echo "$as_me:10051: \$? = $ac_status" >&5
10052 (exit "$ac_status"); } &&
10053 { ac_try='test -s "conftest$ac_exeext"'
10054 { (eval echo "$as_me:10054: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:10057: \$? = $ac_status" >&5
10058 (exit "$ac_status"); }; }; then
10059 eval "$as_ac_var=yes"
10061 echo "$as_me: failed program was:" >&5
10062 cat "conftest.$ac_ext" >&5
10063 eval "$as_ac_var=no"
10065 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10067 echo "$as_me:10067: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10068 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10069 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10070 cat >>confdefs.h <<EOF
10071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 if test "$cross_compiling" = yes ; then
10083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084 echo "$as_me:10084: checking for $ac_func" >&5
10085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_var+set}\" = set"; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 cat >"conftest.$ac_ext" <<_ACEOF
10090 #line 10090 "configure"
10091 #include "confdefs.h"
10092 #define $ac_func autoconf_temporary
10093 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char $ac_func (void);
10108 /* The GNU C library defines stubs for functions which it implements
10109 to always fail with ENOSYS. Some functions are actually named
10110 something starting with __ and the normal name is an alias. */
10111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10112 #error found stub for $ac_func
10115 return $ac_func ();
10120 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10121 if { (eval echo "$as_me:10121: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>&5
10124 echo "$as_me:10124: \$? = $ac_status" >&5
10125 (exit "$ac_status"); } &&
10126 { ac_try='test -s "conftest$ac_exeext"'
10127 { (eval echo "$as_me:10127: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:10130: \$? = $ac_status" >&5
10131 (exit "$ac_status"); }; }; then
10132 eval "$as_ac_var=yes"
10134 echo "$as_me: failed program was:" >&5
10135 cat "conftest.$ac_ext" >&5
10136 eval "$as_ac_var=no"
10138 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10140 echo "$as_me:10140: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10141 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10142 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10143 cat >>confdefs.h <<EOF
10144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10151 echo "$as_me:10151: checking if link/symlink functions work" >&5
10152 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10153 if test "${cf_cv_link_funcs+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 for cf_func in link symlink ; do
10159 if test "$cross_compiling" = yes; then
10161 eval 'ac_cv_func_'$cf_func'=error'
10163 cat >"conftest.$ac_ext" <<_ACEOF
10164 #line 10164 "configure"
10165 #include "confdefs.h"
10167 $ac_includes_default
10172 char src[] = "conftest.tmp";
10173 char dst[] = "conftest.chk";
10174 struct stat src_sb, dst_sb;
10175 FILE *fp = fopen(src, "w");
10176 if (fp == 0) { fail = 3; } else {
10177 fclose(fp); stat(src, &src_sb);
10178 if ($cf_func(src, dst) < 0) {
10180 } else if (stat(dst, &dst_sb) < 0) {
10183 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10184 if (diff < 0) diff = -diff;
10185 if (diff > 2) fail = 3;
10189 unlink(dst); unlink(src);
10191 remove(dst); remove(src);
10193 ${cf_cv_main_return:-return} (fail);
10197 rm -f "conftest$ac_exeext"
10198 if { (eval echo "$as_me:10198: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>&5
10201 echo "$as_me:10201: \$? = $ac_status" >&5
10202 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10203 { (eval echo "$as_me:10203: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:10206: \$? = $ac_status" >&5
10207 (exit "$ac_status"); }; }; then
10209 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10210 eval 'ac_cv_func_'$cf_func'=yes'
10212 echo "$as_me: program exited with status $ac_status" >&5
10213 echo "$as_me: failed program was:" >&5
10214 cat "conftest.$ac_ext" >&5
10216 eval 'ac_cv_func_'$cf_func'=no'
10218 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10221 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10224 echo "$as_me:10224: result: $cf_cv_link_funcs" >&5
10225 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10226 test "$ac_cv_func_link" = yes &&
10227 cat >>confdefs.h <<\EOF
10228 #define HAVE_LINK 1
10231 test "$ac_cv_func_symlink" = yes &&
10232 cat >>confdefs.h <<\EOF
10233 #define HAVE_SYMLINK 1
10241 # soft links (symbolic links) are useful for some systems where hard links do
10242 # not work, or to make it simpler to copy terminfo trees around.
10243 if test "x$ac_cv_func_symlink" = xyes ; then
10244 echo "$as_me:10244: checking if tic should use symbolic links" >&5
10245 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10247 # Check whether --enable-symlinks or --disable-symlinks was given.
10248 if test "${enable_symlinks+set}" = set; then
10249 enableval="$enable_symlinks"
10250 with_symlinks=$enableval
10254 echo "$as_me:10254: result: $with_symlinks" >&5
10255 echo "${ECHO_T}$with_symlinks" >&6
10258 # If we have hard links and did not choose to use soft links instead, there is
10259 # no reason to make this choice optional - use the hard links.
10260 if test "$with_symlinks" = no ; then
10261 echo "$as_me:10261: checking if tic should use hard links" >&5
10262 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10263 if test "x$ac_cv_func_link" = xyes ; then
10268 echo "$as_me:10268: result: $with_links" >&5
10269 echo "${ECHO_T}$with_links" >&6
10272 test "x$with_links" = xyes &&
10273 cat >>confdefs.h <<\EOF
10274 #define USE_LINKS 1
10277 test "x$with_symlinks" = xyes &&
10278 cat >>confdefs.h <<\EOF
10279 #define USE_SYMLINKS 1
10282 ### use option --enable-broken-linker to force on use of broken-linker support
10284 echo "$as_me:10284: checking if you want broken-linker support code" >&5
10285 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10287 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10288 if test "${enable_broken_linker+set}" = set; then
10289 enableval="$enable_broken_linker"
10290 with_broken_linker=$enableval
10292 with_broken_linker=no
10294 echo "$as_me:10294: result: $with_broken_linker" >&5
10295 echo "${ECHO_T}$with_broken_linker" >&6
10297 : "${BROKEN_LINKER:=0}"
10298 if test "x$with_broken_linker" = xyes ; then
10300 cat >>confdefs.h <<\EOF
10301 #define BROKEN_LINKER 1
10307 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10308 echo "$as_me:10308: checking if tputs should process BSD-style prefix padding" >&5
10309 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10311 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10312 if test "${enable_bsdpad+set}" = set; then
10313 enableval="$enable_bsdpad"
10314 with_bsdpad=$enableval
10318 echo "$as_me:10318: result: $with_bsdpad" >&5
10319 echo "${ECHO_T}$with_bsdpad" >&6
10320 test "x$with_bsdpad" = xyes &&
10321 cat >>confdefs.h <<\EOF
10322 #define BSD_TPUTS 1
10325 ### use option --enable-widec to turn on use of wide-character support
10326 NCURSES_CH_T=chtype
10330 NCURSES_MBSTATE_T=0
10334 # Check to define _XOPEN_SOURCE "automatically"
10335 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10337 echo "$as_me:10337: checking if the POSIX test-macros are already defined" >&5
10338 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10339 if test "${cf_cv_posix_visible+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 cat >"conftest.$ac_ext" <<_ACEOF
10344 #line 10344 "configure"
10345 #include "confdefs.h"
10351 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10352 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10353 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10354 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10355 #error conflicting symbols found
10362 rm -f "conftest.$ac_objext"
10363 if { (eval echo "$as_me:10363: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>&5
10366 echo "$as_me:10366: \$? = $ac_status" >&5
10367 (exit "$ac_status"); } &&
10368 { ac_try='test -s "conftest.$ac_objext"'
10369 { (eval echo "$as_me:10369: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:10372: \$? = $ac_status" >&5
10373 (exit "$ac_status"); }; }; then
10374 cf_cv_posix_visible=no
10376 echo "$as_me: failed program was:" >&5
10377 cat "conftest.$ac_ext" >&5
10378 cf_cv_posix_visible=yes
10380 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10383 echo "$as_me:10383: result: $cf_cv_posix_visible" >&5
10384 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10386 if test "$cf_cv_posix_visible" = no; then
10388 cf_XOPEN_SOURCE=600
10389 cf_POSIX_C_SOURCE=199506L
10394 cf_xopen_source="-D_ALL_SOURCE"
10397 cf_xopen_source="-D_APPLE_C_SOURCE"
10400 cf_xopen_source="-D_DARWIN_C_SOURCE"
10403 (freebsd*|dragonfly*|midnightbsd*)
10404 # 5.x headers associate
10405 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10406 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10407 cf_POSIX_C_SOURCE=200112L
10408 cf_XOPEN_SOURCE=600
10409 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10412 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10415 cf_xopen_source="-D_HPUX_SOURCE"
10418 cf_xopen_source="-D_SGI_SOURCE"
10421 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
10423 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10425 echo "$as_me:10425: checking if this is the GNU C library" >&5
10426 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10427 if test "${cf_cv_gnu_library+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >"conftest.$ac_ext" <<_ACEOF
10432 #line 10432 "configure"
10433 #include "confdefs.h"
10434 #include <sys/types.h>
10439 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10441 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10444 # error not GNU C library
10450 rm -f "conftest.$ac_objext"
10451 if { (eval echo "$as_me:10451: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10454 echo "$as_me:10454: \$? = $ac_status" >&5
10455 (exit "$ac_status"); } &&
10456 { ac_try='test -s "conftest.$ac_objext"'
10457 { (eval echo "$as_me:10457: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10460 echo "$as_me:10460: \$? = $ac_status" >&5
10461 (exit "$ac_status"); }; }; then
10462 cf_cv_gnu_library=yes
10464 echo "$as_me: failed program was:" >&5
10465 cat "conftest.$ac_ext" >&5
10466 cf_cv_gnu_library=no
10468 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10471 echo "$as_me:10471: result: $cf_cv_gnu_library" >&5
10472 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10474 if test x$cf_cv_gnu_library = xyes; then
10476 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10477 # was changed to help a little. newlib incorporated the change about 4
10479 echo "$as_me:10479: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10480 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10481 if test "${cf_cv_gnu_library_219+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cf_save="$CPPFLAGS"
10487 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10488 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10490 cat >"conftest.$ac_ext" <<_ACEOF
10491 #line 10491 "configure"
10492 #include "confdefs.h"
10493 #include <sys/types.h>
10498 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10500 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10503 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10509 rm -f "conftest.$ac_objext"
10510 if { (eval echo "$as_me:10510: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>&5
10513 echo "$as_me:10513: \$? = $ac_status" >&5
10514 (exit "$ac_status"); } &&
10515 { ac_try='test -s "conftest.$ac_objext"'
10516 { (eval echo "$as_me:10516: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:10519: \$? = $ac_status" >&5
10520 (exit "$ac_status"); }; }; then
10521 cf_cv_gnu_library_219=yes
10523 echo "$as_me: failed program was:" >&5
10524 cat "conftest.$ac_ext" >&5
10525 cf_cv_gnu_library_219=no
10527 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10528 CPPFLAGS="$cf_save"
10531 echo "$as_me:10531: result: $cf_cv_gnu_library_219" >&5
10532 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10534 if test "x$cf_cv_gnu_library_219" = xyes; then
10535 cf_save="$CPPFLAGS"
10536 echo "$as_me:10536: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10537 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10538 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 cf_new_extra_cppflags=
10547 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10549 case "$cf_fix_cppflags" in
10551 case "$cf_add_cflags" in
10552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10553 case "$cf_add_cflags" in
10555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10558 && test -z "${cf_tst_cflags}" \
10559 && cf_fix_cppflags=yes
10561 if test "$cf_fix_cppflags" = yes ; then
10563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10567 elif test "${cf_tst_cflags}" = "\"'" ; then
10569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10570 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10576 case "$CPPFLAGS" in
10580 case "$cf_add_cflags" in
10582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10584 CPPFLAGS=`echo "$CPPFLAGS" | \
10585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10591 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10592 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10599 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10600 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10610 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10612 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10613 && test -z "${cf_tst_cflags}" \
10614 && cf_fix_cppflags=no
10619 if test -n "$cf_new_cflags" ; then
10621 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10622 CFLAGS="${CFLAGS}$cf_new_cflags"
10626 if test -n "$cf_new_cppflags" ; then
10628 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10629 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10633 if test -n "$cf_new_extra_cppflags" ; then
10635 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10636 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10640 cat >"conftest.$ac_ext" <<_ACEOF
10641 #line 10641 "configure"
10642 #include "confdefs.h"
10644 #include <limits.h>
10645 #include <sys/types.h>
10651 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10654 # error GNU C library is too old
10660 rm -f "conftest.$ac_objext"
10661 if { (eval echo "$as_me:10661: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit "$ac_status"); } &&
10666 { ac_try='test -s "conftest.$ac_objext"'
10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit "$ac_status"); }; }; then
10672 cf_cv_gnu_dftsrc_219=yes
10674 echo "$as_me: failed program was:" >&5
10675 cat "conftest.$ac_ext" >&5
10676 cf_cv_gnu_dftsrc_219=no
10678 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10681 echo "$as_me:10681: result: $cf_cv_gnu_dftsrc_219" >&5
10682 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10683 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10685 cf_cv_gnu_dftsrc_219=maybe
10688 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10690 echo "$as_me:10690: checking if we must define _GNU_SOURCE" >&5
10691 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10692 if test "${cf_cv_gnu_source+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >"conftest.$ac_ext" <<_ACEOF
10697 #line 10697 "configure"
10698 #include "confdefs.h"
10699 #include <sys/types.h>
10704 #ifndef _XOPEN_SOURCE
10705 #error expected _XOPEN_SOURCE to be defined
10711 rm -f "conftest.$ac_objext"
10712 if { (eval echo "$as_me:10712: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10715 echo "$as_me:10715: \$? = $ac_status" >&5
10716 (exit "$ac_status"); } &&
10717 { ac_try='test -s "conftest.$ac_objext"'
10718 { (eval echo "$as_me:10718: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:10721: \$? = $ac_status" >&5
10722 (exit "$ac_status"); }; }; then
10723 cf_cv_gnu_source=no
10725 echo "$as_me: failed program was:" >&5
10726 cat "conftest.$ac_ext" >&5
10727 cf_save="$CPPFLAGS"
10732 cf_new_extra_cppflags=
10734 for cf_add_cflags in -D_GNU_SOURCE
10736 case "$cf_fix_cppflags" in
10738 case "$cf_add_cflags" in
10739 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10740 case "$cf_add_cflags" in
10742 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10744 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10745 && test -z "${cf_tst_cflags}" \
10746 && cf_fix_cppflags=yes
10748 if test "$cf_fix_cppflags" = yes ; then
10750 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10751 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10754 elif test "${cf_tst_cflags}" = "\"'" ; then
10756 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10757 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10763 case "$CPPFLAGS" in
10767 case "$cf_add_cflags" in
10769 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10771 CPPFLAGS=`echo "$CPPFLAGS" | \
10772 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10773 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10778 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10779 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10786 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10787 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10794 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10795 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10797 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10799 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10800 && test -z "${cf_tst_cflags}" \
10801 && cf_fix_cppflags=no
10806 if test -n "$cf_new_cflags" ; then
10808 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10809 CFLAGS="${CFLAGS}$cf_new_cflags"
10813 if test -n "$cf_new_cppflags" ; then
10815 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10816 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10820 if test -n "$cf_new_extra_cppflags" ; then
10822 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10823 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10827 cat >"conftest.$ac_ext" <<_ACEOF
10828 #line 10828 "configure"
10829 #include "confdefs.h"
10830 #include <sys/types.h>
10835 #ifdef _XOPEN_SOURCE
10836 #error expected _XOPEN_SOURCE to be undefined
10842 rm -f "conftest.$ac_objext"
10843 if { (eval echo "$as_me:10843: \"$ac_compile\"") >&5
10844 (eval $ac_compile) 2>&5
10846 echo "$as_me:10846: \$? = $ac_status" >&5
10847 (exit "$ac_status"); } &&
10848 { ac_try='test -s "conftest.$ac_objext"'
10849 { (eval echo "$as_me:10849: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10852 echo "$as_me:10852: \$? = $ac_status" >&5
10853 (exit "$ac_status"); }; }; then
10854 cf_cv_gnu_source=no
10856 echo "$as_me: failed program was:" >&5
10857 cat "conftest.$ac_ext" >&5
10858 cf_cv_gnu_source=yes
10860 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10861 CPPFLAGS="$cf_save"
10864 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10867 echo "$as_me:10867: result: $cf_cv_gnu_source" >&5
10868 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10870 if test "$cf_cv_gnu_source" = yes
10872 echo "$as_me:10872: checking if we should also define _DEFAULT_SOURCE" >&5
10873 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10874 if test "${cf_cv_default_source+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10879 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10881 cat >"conftest.$ac_ext" <<_ACEOF
10882 #line 10882 "configure"
10883 #include "confdefs.h"
10884 #include <sys/types.h>
10889 #ifdef _DEFAULT_SOURCE
10890 #error expected _DEFAULT_SOURCE to be undefined
10896 rm -f "conftest.$ac_objext"
10897 if { (eval echo "$as_me:10897: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>&5
10900 echo "$as_me:10900: \$? = $ac_status" >&5
10901 (exit "$ac_status"); } &&
10902 { ac_try='test -s "conftest.$ac_objext"'
10903 { (eval echo "$as_me:10903: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:10906: \$? = $ac_status" >&5
10907 (exit "$ac_status"); }; }; then
10908 cf_cv_default_source=no
10910 echo "$as_me: failed program was:" >&5
10911 cat "conftest.$ac_ext" >&5
10912 cf_cv_default_source=yes
10914 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10917 echo "$as_me:10917: result: $cf_cv_default_source" >&5
10918 echo "${ECHO_T}$cf_cv_default_source" >&6
10919 if test "$cf_cv_default_source" = yes
10922 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10923 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10933 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10936 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10939 if test "$cf_cv_posix_visible" = no; then
10941 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10943 cf_save_CFLAGS="$CFLAGS"
10944 cf_save_CPPFLAGS="$CPPFLAGS"
10946 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10947 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10948 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10950 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10951 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10952 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10954 echo "$as_me:10954: checking if we should define _POSIX_C_SOURCE" >&5
10955 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10956 if test "${cf_cv_posix_c_source+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 echo "${as_me:-configure}:10960: testing if the symbol is already defined go no further ..." 1>&5
10962 cat >"conftest.$ac_ext" <<_ACEOF
10963 #line 10963 "configure"
10964 #include "confdefs.h"
10965 #include <sys/types.h>
10970 #ifndef _POSIX_C_SOURCE
10971 #error _POSIX_C_SOURCE is not defined
10977 rm -f "conftest.$ac_objext"
10978 if { (eval echo "$as_me:10978: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
10981 echo "$as_me:10981: \$? = $ac_status" >&5
10982 (exit "$ac_status"); } &&
10983 { ac_try='test -s "conftest.$ac_objext"'
10984 { (eval echo "$as_me:10984: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:10987: \$? = $ac_status" >&5
10988 (exit "$ac_status"); }; }; then
10989 cf_cv_posix_c_source=no
10991 echo "$as_me: failed program was:" >&5
10992 cat "conftest.$ac_ext" >&5
10993 cf_want_posix_source=no
10994 case .$cf_POSIX_C_SOURCE in
10996 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10999 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11000 cf_want_posix_source=yes
11003 cf_want_posix_source=yes
11006 if test "$cf_want_posix_source" = yes ; then
11007 cat >"conftest.$ac_ext" <<_ACEOF
11008 #line 11008 "configure"
11009 #include "confdefs.h"
11010 #include <sys/types.h>
11015 #ifdef _POSIX_SOURCE
11016 #error _POSIX_SOURCE is defined
11022 rm -f "conftest.$ac_objext"
11023 if { (eval echo "$as_me:11023: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit "$ac_status"); } &&
11028 { ac_try='test -s "conftest.$ac_objext"'
11029 { (eval echo "$as_me:11029: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:11032: \$? = $ac_status" >&5
11033 (exit "$ac_status"); }; }; then
11036 echo "$as_me: failed program was:" >&5
11037 cat "conftest.$ac_ext" >&5
11038 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11040 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11043 echo "${as_me:-configure}:11043: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11045 CFLAGS="$cf_trim_CFLAGS"
11046 CPPFLAGS="$cf_trim_CPPFLAGS"
11048 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11049 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11051 echo "${as_me:-configure}:11051: testing if the second compile does not leave our definition intact error ..." 1>&5
11053 cat >"conftest.$ac_ext" <<_ACEOF
11054 #line 11054 "configure"
11055 #include "confdefs.h"
11056 #include <sys/types.h>
11061 #ifndef _POSIX_C_SOURCE
11062 #error _POSIX_C_SOURCE is not defined
11068 rm -f "conftest.$ac_objext"
11069 if { (eval echo "$as_me:11069: \"$ac_compile\"") >&5
11070 (eval $ac_compile) 2>&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 (exit "$ac_status"); } &&
11074 { ac_try='test -s "conftest.$ac_objext"'
11075 { (eval echo "$as_me:11075: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11078 echo "$as_me:11078: \$? = $ac_status" >&5
11079 (exit "$ac_status"); }; }; then
11082 echo "$as_me: failed program was:" >&5
11083 cat "conftest.$ac_ext" >&5
11084 cf_cv_posix_c_source=no
11086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11087 CFLAGS="$cf_save_CFLAGS"
11088 CPPFLAGS="$cf_save_CPPFLAGS"
11091 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11094 echo "$as_me:11094: result: $cf_cv_posix_c_source" >&5
11095 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11097 if test "$cf_cv_posix_c_source" != no ; then
11098 CFLAGS="$cf_trim_CFLAGS"
11099 CPPFLAGS="$cf_trim_CPPFLAGS"
11104 cf_new_extra_cppflags=
11106 for cf_add_cflags in $cf_cv_posix_c_source
11108 case "$cf_fix_cppflags" in
11110 case "$cf_add_cflags" in
11111 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11112 case "$cf_add_cflags" in
11114 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11116 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11117 && test -z "${cf_tst_cflags}" \
11118 && cf_fix_cppflags=yes
11120 if test "$cf_fix_cppflags" = yes ; then
11122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11126 elif test "${cf_tst_cflags}" = "\"'" ; then
11128 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11129 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11135 case "$CPPFLAGS" in
11139 case "$cf_add_cflags" in
11141 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11143 CPPFLAGS=`echo "$CPPFLAGS" | \
11144 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11145 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11150 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11151 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11158 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11159 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11167 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11169 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11171 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11172 && test -z "${cf_tst_cflags}" \
11173 && cf_fix_cppflags=no
11178 if test -n "$cf_new_cflags" ; then
11180 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11181 CFLAGS="${CFLAGS}$cf_new_cflags"
11185 if test -n "$cf_new_cppflags" ; then
11187 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11188 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11192 if test -n "$cf_new_extra_cppflags" ; then
11194 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11195 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11201 fi # cf_cv_posix_visible
11205 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11208 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11209 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11210 # Abusing the conformance level is a workaround.
11211 { echo "$as_me:11211: WARNING: this system does not provide usable locale support" >&5
11212 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11213 cf_xopen_source="-D_BSD_SOURCE"
11214 cf_XOPEN_SOURCE=700
11217 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11218 cf_xopen_source="-D_BSD_SOURCE"
11219 cf_XOPEN_SOURCE=600
11222 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11225 cf_xopen_source="-D_OSF_SOURCE"
11228 cf_xopen_source="-D_QNX_SOURCE"
11231 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11234 cf_xopen_source="-D__EXTENSIONS__"
11235 cf_cv_xopen_source=broken
11237 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11243 echo "$as_me:11243: checking if we should define _XOPEN_SOURCE" >&5
11244 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11245 if test "${cf_cv_xopen_source+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >"conftest.$ac_ext" <<_ACEOF
11250 #line 11250 "configure"
11251 #include "confdefs.h"
11253 $ac_includes_default
11259 #ifndef _XOPEN_SOURCE
11260 #error _XOPEN_SOURCE is not defined
11267 rm -f "conftest.$ac_objext"
11268 if { (eval echo "$as_me:11268: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>&5
11271 echo "$as_me:11271: \$? = $ac_status" >&5
11272 (exit "$ac_status"); } &&
11273 { ac_try='test -s "conftest.$ac_objext"'
11274 { (eval echo "$as_me:11274: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:11277: \$? = $ac_status" >&5
11278 (exit "$ac_status"); }; }; then
11279 cf_cv_xopen_source=no
11281 echo "$as_me: failed program was:" >&5
11282 cat "conftest.$ac_ext" >&5
11283 cf_save="$CPPFLAGS"
11285 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11286 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11288 cat >"conftest.$ac_ext" <<_ACEOF
11289 #line 11289 "configure"
11290 #include "confdefs.h"
11292 $ac_includes_default
11298 #ifndef _XOPEN_SOURCE
11299 #error _XOPEN_SOURCE is not defined
11306 rm -f "conftest.$ac_objext"
11307 if { (eval echo "$as_me:11307: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>&5
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 (exit "$ac_status"); } &&
11312 { ac_try='test -s "conftest.$ac_objext"'
11313 { (eval echo "$as_me:11313: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:11316: \$? = $ac_status" >&5
11317 (exit "$ac_status"); }; }; then
11318 cf_cv_xopen_source=no
11320 echo "$as_me: failed program was:" >&5
11321 cat "conftest.$ac_ext" >&5
11322 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11324 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11325 CPPFLAGS="$cf_save"
11328 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11331 echo "$as_me:11331: result: $cf_cv_xopen_source" >&5
11332 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11334 if test "$cf_cv_xopen_source" != no ; then
11336 CFLAGS=`echo "$CFLAGS" | \
11337 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11338 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11340 CPPFLAGS=`echo "$CPPFLAGS" | \
11341 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11342 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11344 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11346 for cf_add_cflags in $cf_temp_xopen_source
11348 case "x$cf_add_cflags" in
11351 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11354 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'`
11355 test "$CFLAGS" != "$cf_old_cflag" || break
11357 CFLAGS="$cf_old_cflag"
11360 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11363 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'`
11364 test "$CPPFLAGS" != "$cf_old_cflag" || break
11366 CPPFLAGS="$cf_old_cflag"
11375 cf_new_extra_cppflags=
11377 for cf_add_cflags in $cf_add_cflags
11379 case "$cf_fix_cppflags" in
11381 case "$cf_add_cflags" in
11382 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11383 case "$cf_add_cflags" in
11385 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11387 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11388 && test -z "${cf_tst_cflags}" \
11389 && cf_fix_cppflags=yes
11391 if test "$cf_fix_cppflags" = yes ; then
11393 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11394 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11397 elif test "${cf_tst_cflags}" = "\"'" ; then
11399 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11400 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11406 case "$CPPFLAGS" in
11410 case "$cf_add_cflags" in
11412 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11414 CPPFLAGS=`echo "$CPPFLAGS" | \
11415 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11416 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11421 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11422 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11429 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11430 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11437 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11438 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11440 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11442 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11443 && test -z "${cf_tst_cflags}" \
11444 && cf_fix_cppflags=no
11449 if test -n "$cf_new_cflags" ; then
11451 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11452 CFLAGS="${CFLAGS}$cf_new_cflags"
11456 if test -n "$cf_new_cppflags" ; then
11458 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11459 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11463 if test -n "$cf_new_extra_cppflags" ; then
11465 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11466 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11474 cf_save_xopen_cppflags="$CPPFLAGS"
11476 if test "$cf_cv_posix_visible" = no; then
11478 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11480 cf_save_CFLAGS="$CFLAGS"
11481 cf_save_CPPFLAGS="$CPPFLAGS"
11483 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11484 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11485 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11487 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11488 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11489 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11491 echo "$as_me:11491: checking if we should define _POSIX_C_SOURCE" >&5
11492 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11493 if test "${cf_cv_posix_c_source+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 echo "${as_me:-configure}:11497: testing if the symbol is already defined go no further ..." 1>&5
11499 cat >"conftest.$ac_ext" <<_ACEOF
11500 #line 11500 "configure"
11501 #include "confdefs.h"
11502 #include <sys/types.h>
11507 #ifndef _POSIX_C_SOURCE
11508 #error _POSIX_C_SOURCE is not defined
11514 rm -f "conftest.$ac_objext"
11515 if { (eval echo "$as_me:11515: \"$ac_compile\"") >&5
11516 (eval $ac_compile) 2>&5
11518 echo "$as_me:11518: \$? = $ac_status" >&5
11519 (exit "$ac_status"); } &&
11520 { ac_try='test -s "conftest.$ac_objext"'
11521 { (eval echo "$as_me:11521: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:11524: \$? = $ac_status" >&5
11525 (exit "$ac_status"); }; }; then
11526 cf_cv_posix_c_source=no
11528 echo "$as_me: failed program was:" >&5
11529 cat "conftest.$ac_ext" >&5
11530 cf_want_posix_source=no
11531 case .$cf_POSIX_C_SOURCE in
11533 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11536 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11537 cf_want_posix_source=yes
11540 cf_want_posix_source=yes
11543 if test "$cf_want_posix_source" = yes ; then
11544 cat >"conftest.$ac_ext" <<_ACEOF
11545 #line 11545 "configure"
11546 #include "confdefs.h"
11547 #include <sys/types.h>
11552 #ifdef _POSIX_SOURCE
11553 #error _POSIX_SOURCE is defined
11559 rm -f "conftest.$ac_objext"
11560 if { (eval echo "$as_me:11560: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>&5
11563 echo "$as_me:11563: \$? = $ac_status" >&5
11564 (exit "$ac_status"); } &&
11565 { ac_try='test -s "conftest.$ac_objext"'
11566 { (eval echo "$as_me:11566: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit "$ac_status"); }; }; then
11573 echo "$as_me: failed program was:" >&5
11574 cat "conftest.$ac_ext" >&5
11575 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11577 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11580 echo "${as_me:-configure}:11580: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11582 CFLAGS="$cf_trim_CFLAGS"
11583 CPPFLAGS="$cf_trim_CPPFLAGS"
11585 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11586 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11588 echo "${as_me:-configure}:11588: testing if the second compile does not leave our definition intact error ..." 1>&5
11590 cat >"conftest.$ac_ext" <<_ACEOF
11591 #line 11591 "configure"
11592 #include "confdefs.h"
11593 #include <sys/types.h>
11598 #ifndef _POSIX_C_SOURCE
11599 #error _POSIX_C_SOURCE is not defined
11605 rm -f "conftest.$ac_objext"
11606 if { (eval echo "$as_me:11606: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>&5
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit "$ac_status"); } &&
11611 { ac_try='test -s "conftest.$ac_objext"'
11612 { (eval echo "$as_me:11612: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:11615: \$? = $ac_status" >&5
11616 (exit "$ac_status"); }; }; then
11619 echo "$as_me: failed program was:" >&5
11620 cat "conftest.$ac_ext" >&5
11621 cf_cv_posix_c_source=no
11623 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11624 CFLAGS="$cf_save_CFLAGS"
11625 CPPFLAGS="$cf_save_CPPFLAGS"
11628 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11631 echo "$as_me:11631: result: $cf_cv_posix_c_source" >&5
11632 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11634 if test "$cf_cv_posix_c_source" != no ; then
11635 CFLAGS="$cf_trim_CFLAGS"
11636 CPPFLAGS="$cf_trim_CPPFLAGS"
11641 cf_new_extra_cppflags=
11643 for cf_add_cflags in $cf_cv_posix_c_source
11645 case "$cf_fix_cppflags" in
11647 case "$cf_add_cflags" in
11648 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11649 case "$cf_add_cflags" in
11651 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11653 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11654 && test -z "${cf_tst_cflags}" \
11655 && cf_fix_cppflags=yes
11657 if test "$cf_fix_cppflags" = yes ; then
11659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11663 elif test "${cf_tst_cflags}" = "\"'" ; then
11665 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11666 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11672 case "$CPPFLAGS" in
11676 case "$cf_add_cflags" in
11678 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11680 CPPFLAGS=`echo "$CPPFLAGS" | \
11681 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11682 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11687 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11688 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11695 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11696 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11703 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11704 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11706 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11708 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11709 && test -z "${cf_tst_cflags}" \
11710 && cf_fix_cppflags=no
11715 if test -n "$cf_new_cflags" ; then
11717 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11718 CFLAGS="${CFLAGS}$cf_new_cflags"
11722 if test -n "$cf_new_cppflags" ; then
11724 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11725 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11729 if test -n "$cf_new_extra_cppflags" ; then
11731 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11732 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11738 fi # cf_cv_posix_visible
11740 # Some of these niche implementations use copy/paste, double-check...
11741 if test "$cf_cv_xopen_source" = no ; then
11742 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
11744 echo "${as_me:-configure}:11744: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
11746 cat >"conftest.$ac_ext" <<_ACEOF
11747 #line 11747 "configure"
11748 #include "confdefs.h"
11750 $ac_includes_default
11756 #ifndef _XOPEN_SOURCE
11757 #error _XOPEN_SOURCE is not defined
11764 rm -f "conftest.$ac_objext"
11765 if { (eval echo "$as_me:11765: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>&5
11768 echo "$as_me:11768: \$? = $ac_status" >&5
11769 (exit "$ac_status"); } &&
11770 { ac_try='test -s "conftest.$ac_objext"'
11771 { (eval echo "$as_me:11771: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:11774: \$? = $ac_status" >&5
11775 (exit "$ac_status"); }; }; then
11778 echo "$as_me: failed program was:" >&5
11779 cat "conftest.$ac_ext" >&5
11781 { echo "$as_me:11781: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11782 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11783 CPPFLAGS="$cf_save_xopen_cppflags"
11785 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11790 if test -n "$cf_xopen_source" ; then
11792 for cf_add_cflags in $cf_xopen_source
11794 case "x$cf_add_cflags" in
11797 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11800 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'`
11801 test "$CFLAGS" != "$cf_old_cflag" || break
11802 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11804 echo "${as_me:-configure}:11804: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11806 CFLAGS="$cf_old_cflag"
11809 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11812 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'`
11813 test "$CPPFLAGS" != "$cf_old_cflag" || break
11814 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11816 echo "${as_me:-configure}:11816: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11818 CPPFLAGS="$cf_old_cflag"
11827 cf_new_extra_cppflags=
11829 for cf_add_cflags in $cf_add_cflags
11831 case "$cf_fix_cppflags" in
11833 case "$cf_add_cflags" in
11834 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11835 case "$cf_add_cflags" in
11837 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11839 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11840 && test -z "${cf_tst_cflags}" \
11841 && cf_fix_cppflags=yes
11843 if test "$cf_fix_cppflags" = yes ; then
11845 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11846 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11849 elif test "${cf_tst_cflags}" = "\"'" ; then
11851 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11852 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11858 case "$CPPFLAGS" in
11862 case "$cf_add_cflags" in
11864 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11866 CPPFLAGS=`echo "$CPPFLAGS" | \
11867 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11868 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11873 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11874 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11881 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11882 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11889 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11890 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11892 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11895 && test -z "${cf_tst_cflags}" \
11896 && cf_fix_cppflags=no
11901 if test -n "$cf_new_cflags" ; then
11902 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11904 echo "${as_me:-configure}:11904: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11906 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11907 CFLAGS="${CFLAGS}$cf_new_cflags"
11911 if test -n "$cf_new_cppflags" ; then
11912 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11914 echo "${as_me:-configure}:11914: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11916 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11917 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11921 if test -n "$cf_new_extra_cppflags" ; then
11922 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11924 echo "${as_me:-configure}:11924: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11926 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11927 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11935 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11936 echo "$as_me:11936: checking if _XOPEN_SOURCE really is set" >&5
11937 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11938 cat >"conftest.$ac_ext" <<_ACEOF
11939 #line 11939 "configure"
11940 #include "confdefs.h"
11941 #include <stdlib.h>
11946 #ifndef _XOPEN_SOURCE
11947 #error _XOPEN_SOURCE is not defined
11953 rm -f "conftest.$ac_objext"
11954 if { (eval echo "$as_me:11954: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>&5
11957 echo "$as_me:11957: \$? = $ac_status" >&5
11958 (exit "$ac_status"); } &&
11959 { ac_try='test -s "conftest.$ac_objext"'
11960 { (eval echo "$as_me:11960: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:11963: \$? = $ac_status" >&5
11964 (exit "$ac_status"); }; }; then
11965 cf_XOPEN_SOURCE_set=yes
11967 echo "$as_me: failed program was:" >&5
11968 cat "conftest.$ac_ext" >&5
11969 cf_XOPEN_SOURCE_set=no
11971 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11972 echo "$as_me:11972: result: $cf_XOPEN_SOURCE_set" >&5
11973 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11974 if test "$cf_XOPEN_SOURCE_set" = yes
11976 cat >"conftest.$ac_ext" <<_ACEOF
11977 #line 11977 "configure"
11978 #include "confdefs.h"
11979 #include <stdlib.h>
11984 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11985 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11991 rm -f "conftest.$ac_objext"
11992 if { (eval echo "$as_me:11992: \"$ac_compile\"") >&5
11993 (eval $ac_compile) 2>&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit "$ac_status"); } &&
11997 { ac_try='test -s "conftest.$ac_objext"'
11998 { (eval echo "$as_me:11998: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 (exit "$ac_status"); }; }; then
12003 cf_XOPEN_SOURCE_set_ok=yes
12005 echo "$as_me: failed program was:" >&5
12006 cat "conftest.$ac_ext" >&5
12007 cf_XOPEN_SOURCE_set_ok=no
12009 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12010 if test "$cf_XOPEN_SOURCE_set_ok" = no
12012 { echo "$as_me:12012: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12013 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12017 echo "$as_me:12017: checking if we should define _XOPEN_SOURCE" >&5
12018 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12019 if test "${cf_cv_xopen_source+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 cat >"conftest.$ac_ext" <<_ACEOF
12024 #line 12024 "configure"
12025 #include "confdefs.h"
12027 $ac_includes_default
12033 #ifndef _XOPEN_SOURCE
12034 #error _XOPEN_SOURCE is not defined
12041 rm -f "conftest.$ac_objext"
12042 if { (eval echo "$as_me:12042: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit "$ac_status"); } &&
12047 { ac_try='test -s "conftest.$ac_objext"'
12048 { (eval echo "$as_me:12048: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:12051: \$? = $ac_status" >&5
12052 (exit "$ac_status"); }; }; then
12053 cf_cv_xopen_source=no
12055 echo "$as_me: failed program was:" >&5
12056 cat "conftest.$ac_ext" >&5
12057 cf_save="$CPPFLAGS"
12059 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12060 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12062 cat >"conftest.$ac_ext" <<_ACEOF
12063 #line 12063 "configure"
12064 #include "confdefs.h"
12066 $ac_includes_default
12072 #ifndef _XOPEN_SOURCE
12073 #error _XOPEN_SOURCE is not defined
12080 rm -f "conftest.$ac_objext"
12081 if { (eval echo "$as_me:12081: \"$ac_compile\"") >&5
12082 (eval $ac_compile) 2>&5
12084 echo "$as_me:12084: \$? = $ac_status" >&5
12085 (exit "$ac_status"); } &&
12086 { ac_try='test -s "conftest.$ac_objext"'
12087 { (eval echo "$as_me:12087: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:12090: \$? = $ac_status" >&5
12091 (exit "$ac_status"); }; }; then
12092 cf_cv_xopen_source=no
12094 echo "$as_me: failed program was:" >&5
12095 cat "conftest.$ac_ext" >&5
12096 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12099 CPPFLAGS="$cf_save"
12102 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12105 echo "$as_me:12105: result: $cf_cv_xopen_source" >&5
12106 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12108 if test "$cf_cv_xopen_source" != no ; then
12110 CFLAGS=`echo "$CFLAGS" | \
12111 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12112 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12114 CPPFLAGS=`echo "$CPPFLAGS" | \
12115 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12116 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12118 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12120 for cf_add_cflags in $cf_temp_xopen_source
12122 case "x$cf_add_cflags" in
12125 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12128 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'`
12129 test "$CFLAGS" != "$cf_old_cflag" || break
12131 CFLAGS="$cf_old_cflag"
12134 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12137 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'`
12138 test "$CPPFLAGS" != "$cf_old_cflag" || break
12140 CPPFLAGS="$cf_old_cflag"
12149 cf_new_extra_cppflags=
12151 for cf_add_cflags in $cf_add_cflags
12153 case "$cf_fix_cppflags" in
12155 case "$cf_add_cflags" in
12156 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12157 case "$cf_add_cflags" in
12159 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12161 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12162 && test -z "${cf_tst_cflags}" \
12163 && cf_fix_cppflags=yes
12165 if test "$cf_fix_cppflags" = yes ; then
12167 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12168 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12171 elif test "${cf_tst_cflags}" = "\"'" ; then
12173 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12174 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12180 case "$CPPFLAGS" in
12184 case "$cf_add_cflags" in
12186 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12188 CPPFLAGS=`echo "$CPPFLAGS" | \
12189 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12190 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12195 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12196 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12203 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12204 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12211 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12212 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12214 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12216 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12217 && test -z "${cf_tst_cflags}" \
12218 && cf_fix_cppflags=no
12223 if test -n "$cf_new_cflags" ; then
12225 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12226 CFLAGS="${CFLAGS}$cf_new_cflags"
12230 if test -n "$cf_new_cppflags" ; then
12232 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12233 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12237 if test -n "$cf_new_extra_cppflags" ; then
12239 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12240 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12250 fi # cf_cv_posix_visible
12252 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12254 # Work around breakage on OS X
12256 echo "$as_me:12256: checking if SIGWINCH is defined" >&5
12257 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12258 if test "${cf_cv_define_sigwinch+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 cat >"conftest.$ac_ext" <<_ACEOF
12263 #line 12263 "configure"
12264 #include "confdefs.h"
12266 #include <sys/types.h>
12267 #include <sys/signal.h>
12272 int x = SIGWINCH; (void)x
12277 rm -f "conftest.$ac_objext"
12278 if { (eval echo "$as_me:12278: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12281 echo "$as_me:12281: \$? = $ac_status" >&5
12282 (exit "$ac_status"); } &&
12283 { ac_try='test -s "conftest.$ac_objext"'
12284 { (eval echo "$as_me:12284: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
12288 (exit "$ac_status"); }; }; then
12289 cf_cv_define_sigwinch=yes
12291 echo "$as_me: failed program was:" >&5
12292 cat "conftest.$ac_ext" >&5
12293 cat >"conftest.$ac_ext" <<_ACEOF
12294 #line 12294 "configure"
12295 #include "confdefs.h"
12297 #undef _XOPEN_SOURCE
12298 #undef _POSIX_SOURCE
12299 #undef _POSIX_C_SOURCE
12300 #include <sys/types.h>
12301 #include <sys/signal.h>
12306 int x = SIGWINCH; (void)x
12311 rm -f "conftest.$ac_objext"
12312 if { (eval echo "$as_me:12312: \"$ac_compile\"") >&5
12313 (eval $ac_compile) 2>&5
12315 echo "$as_me:12315: \$? = $ac_status" >&5
12316 (exit "$ac_status"); } &&
12317 { ac_try='test -s "conftest.$ac_objext"'
12318 { (eval echo "$as_me:12318: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:12321: \$? = $ac_status" >&5
12322 (exit "$ac_status"); }; }; then
12323 cf_cv_define_sigwinch=maybe
12325 echo "$as_me: failed program was:" >&5
12326 cat "conftest.$ac_ext" >&5
12327 cf_cv_define_sigwinch=no
12329 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12332 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12335 echo "$as_me:12335: result: $cf_cv_define_sigwinch" >&5
12336 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12338 if test "$cf_cv_define_sigwinch" = maybe ; then
12339 echo "$as_me:12339: checking for actual SIGWINCH definition" >&5
12340 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12341 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cf_cv_fixup_sigwinch=unknown
12347 while test "$cf_sigwinch" != 1
12349 cat >"conftest.$ac_ext" <<_ACEOF
12350 #line 12350 "configure"
12351 #include "confdefs.h"
12353 #undef _XOPEN_SOURCE
12354 #undef _POSIX_SOURCE
12355 #undef _POSIX_C_SOURCE
12356 #include <sys/types.h>
12357 #include <sys/signal.h>
12363 #if SIGWINCH != $cf_sigwinch
12364 #error SIGWINCH is not $cf_sigwinch
12366 int x = SIGWINCH; (void)x
12371 rm -f "conftest.$ac_objext"
12372 if { (eval echo "$as_me:12372: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>&5
12375 echo "$as_me:12375: \$? = $ac_status" >&5
12376 (exit "$ac_status"); } &&
12377 { ac_try='test -s "conftest.$ac_objext"'
12378 { (eval echo "$as_me:12378: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:12381: \$? = $ac_status" >&5
12382 (exit "$ac_status"); }; }; then
12383 cf_cv_fixup_sigwinch=$cf_sigwinch
12386 echo "$as_me: failed program was:" >&5
12387 cat "conftest.$ac_ext" >&5
12389 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12391 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12395 echo "$as_me:12395: result: $cf_cv_fixup_sigwinch" >&5
12396 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12398 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12399 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12403 # Checks for CODESET support.
12405 echo "$as_me:12405: checking for nl_langinfo and CODESET" >&5
12406 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12407 if test "${am_cv_langinfo_codeset+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 cat >"conftest.$ac_ext" <<_ACEOF
12411 #line 12411 "configure"
12412 #include "confdefs.h"
12414 $ac_includes_default
12415 #include <langinfo.h>
12419 char* cs = nl_langinfo(CODESET); (void)cs
12424 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12425 if { (eval echo "$as_me:12425: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12428 echo "$as_me:12428: \$? = $ac_status" >&5
12429 (exit "$ac_status"); } &&
12430 { ac_try='test -s "conftest$ac_exeext"'
12431 { (eval echo "$as_me:12431: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 (exit "$ac_status"); }; }; then
12436 am_cv_langinfo_codeset=yes
12438 echo "$as_me: failed program was:" >&5
12439 cat "conftest.$ac_ext" >&5
12440 am_cv_langinfo_codeset=no
12442 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12445 echo "$as_me:12445: result: $am_cv_langinfo_codeset" >&5
12446 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12447 if test "$am_cv_langinfo_codeset" = yes; then
12449 cat >>confdefs.h <<\EOF
12450 #define HAVE_LANGINFO_CODESET 1
12455 # use these variables to work around a defect in gcc's fixincludes.
12456 NCURSES_OK_WCHAR_T=
12459 echo "$as_me:12459: checking if you want wide-character code" >&5
12460 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12462 # Check whether --enable-widec or --disable-widec was given.
12463 if test "${enable_widec+set}" = set; then
12464 enableval="$enable_widec"
12465 with_widec=$enableval
12467 with_widec=$cf_dft_widec
12469 echo "$as_me:12469: result: $with_widec" >&5
12470 echo "${ECHO_T}$with_widec" >&6
12472 NCURSES_WCWIDTH_GRAPHICS=1
12474 if test "x$with_widec" = xyes ; then
12475 if test "x$disable_lib_suffixes" = xno ; then
12476 LIB_SUFFIX="w${LIB_SUFFIX}"
12479 cat >>confdefs.h <<\EOF
12480 #define USE_WIDEC_SUPPORT 1
12483 cat >>confdefs.h <<\EOF
12484 #define NCURSES_WIDECHAR 1
12487 case "$CPPFLAGS" in
12491 { echo "$as_me:12491: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12492 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12493 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12494 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12504 echo "$as_me:12504: checking for $ac_header" >&5
12505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >"conftest.$ac_ext" <<_ACEOF
12510 #line 12510 "configure"
12511 #include "confdefs.h"
12512 #include <$ac_header>
12514 if { (eval echo "$as_me:12514: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12515 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12517 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12519 cat conftest.err >&5
12520 echo "$as_me:12520: \$? = $ac_status" >&5
12521 (exit "$ac_status"); } >/dev/null; then
12522 if test -s conftest.err; then
12523 ac_cpp_err=$ac_c_preproc_warn_flag
12530 if test -z "$ac_cpp_err"; then
12531 eval "$as_ac_Header=yes"
12533 echo "$as_me: failed program was:" >&5
12534 cat "conftest.$ac_ext" >&5
12535 eval "$as_ac_Header=no"
12537 rm -f conftest.err "conftest.$ac_ext"
12539 echo "$as_me:12539: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12540 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12541 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12542 cat >>confdefs.h <<EOF
12543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12549 echo "$as_me:12549: checking if wchar.h can be used as is" >&5
12550 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12551 if test "${cf_cv_wchar_h_okay+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 cat >"conftest.$ac_ext" <<_ACEOF
12556 #line 12556 "configure"
12557 #include "confdefs.h"
12559 $ac_includes_default
12560 #ifdef HAVE_WCHAR_H
12563 #ifdef HAVE_WCTYPE_H
12564 #include <wctype.h>
12572 int bar = iswpunct(foo); (void) bar
12577 rm -f "conftest.$ac_objext"
12578 if { (eval echo "$as_me:12578: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>&5
12581 echo "$as_me:12581: \$? = $ac_status" >&5
12582 (exit "$ac_status"); } &&
12583 { ac_try='test -s "conftest.$ac_objext"'
12584 { (eval echo "$as_me:12584: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:12587: \$? = $ac_status" >&5
12588 (exit "$ac_status"); }; }; then
12589 cf_cv_wchar_h_okay=yes
12591 echo "$as_me: failed program was:" >&5
12592 cat "conftest.$ac_ext" >&5
12593 cf_cv_wchar_h_okay=no
12595 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12597 echo "$as_me:12597: result: $cf_cv_wchar_h_okay" >&5
12598 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12600 if test "$cf_cv_wchar_h_okay" = no
12603 echo "$as_me:12603: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12604 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12605 cat >"conftest.$ac_ext" <<_ACEOF
12606 #line 12606 "configure"
12607 #include "confdefs.h"
12608 #include <sys/types.h>
12614 #ifndef _XOPEN_SOURCE_EXTENDED
12615 #error _XOPEN_SOURCE_EXTENDED is not defined
12621 rm -f "conftest.$ac_objext"
12622 if { (eval echo "$as_me:12622: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>&5
12625 echo "$as_me:12625: \$? = $ac_status" >&5
12626 (exit "$ac_status"); } &&
12627 { ac_try='test -s "conftest.$ac_objext"'
12628 { (eval echo "$as_me:12628: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12631 echo "$as_me:12631: \$? = $ac_status" >&5
12632 (exit "$ac_status"); }; }; then
12635 echo "$as_me: failed program was:" >&5
12636 cat "conftest.$ac_ext" >&5
12639 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12640 echo "$as_me:12640: result: $cf_result" >&5
12641 echo "${ECHO_T}$cf_result" >&6
12643 if test "$cf_result" = yes ; then
12644 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12645 elif test "x" != "x" ; then
12646 echo "$as_me:12646: checking checking for compatible value versus " >&5
12647 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12648 cat >"conftest.$ac_ext" <<_ACEOF
12649 #line 12649 "configure"
12650 #include "confdefs.h"
12651 #include <sys/types.h>
12657 #if _XOPEN_SOURCE_EXTENDED- < 0
12658 #error _XOPEN_SOURCE_EXTENDED- is negative
12664 rm -f "conftest.$ac_objext"
12665 if { (eval echo "$as_me:12665: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>&5
12668 echo "$as_me:12668: \$? = $ac_status" >&5
12669 (exit "$ac_status"); } &&
12670 { ac_try='test -s "conftest.$ac_objext"'
12671 { (eval echo "$as_me:12671: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 (exit "$ac_status"); }; }; then
12678 echo "$as_me: failed program was:" >&5
12679 cat "conftest.$ac_ext" >&5
12682 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12683 echo "$as_me:12683: result: $cf_result" >&5
12684 echo "${ECHO_T}$cf_result" >&6
12685 if test "$cf_result" = no ; then
12686 # perhaps we can override it - try...
12687 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12693 echo "$as_me:12693: checking if wcwidth agrees graphics are single-width" >&5
12694 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12695 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 cat >conftest.in <<CF_EOF
12701 0x250c upper left corner
12702 0x2514 lower left corner
12703 0x2510 upper right corner
12704 0x2518 lower right corner
12705 0x251c tee pointing left
12706 0x2524 tee pointing right
12707 0x2534 tee pointing up
12708 0x252c tee pointing down
12709 0x2500 horizontal line
12710 0x2502 vertical line
12711 0x253c large plus or crossover
12715 0x2592 checker board (stipple)
12716 0x00b0 degree symbol
12719 - Teletype 5410v1 symbols
12720 0x2190 arrow pointing left
12721 0x2192 arrow pointing right
12722 0x2193 arrow pointing down
12723 0x2191 arrow pointing up
12724 0x2592 board of squares
12725 0x2603 lantern symbol
12726 0x25ae solid square block
12727 - these defaults were invented for ncurses
12730 0x2264 less-than-or-equal-to
12731 0x2265 greater-than-or-equal-to
12734 0x00a3 pound-sterling symbol
12735 - thick-line-drawing
12736 0x250f upper left corner
12737 0x2517 lower left corner
12738 0x2513 upper right corner
12739 0x251b lower right corner
12740 0x2523 tee pointing left
12741 0x252b tee pointing right
12742 0x253b tee pointing up
12743 0x2533 tee pointing down
12744 0x2501 horizontal line
12745 0x2503 vertical line
12746 0x254b large plus or crossover
12747 - double-line-drawing
12748 0x2554 upper left corner
12749 0x255a lower left corner
12750 0x2557 upper right corner
12751 0x255d lower right corner
12752 0x2563 tee pointing left
12753 0x2560 tee pointing right
12754 0x2569 tee pointing up
12755 0x2566 tee pointing down
12756 0x2550 horizontal line
12757 0x2551 vertical line
12758 0x256c large plus or crossover
12760 if test "$cross_compiling" = yes; then
12761 cf_cv_wcwidth_graphics=unknown
12763 cat >"conftest.$ac_ext" <<_ACEOF
12764 #line 12764 "configure"
12765 #include "confdefs.h"
12767 $ac_includes_default
12769 #include <locale.h>
12779 char buffer[MY_LEN + 1];
12780 char notes[MY_LEN + 1];
12784 if (setlocale(LC_ALL, "en_US.UTF8") ||
12785 setlocale(LC_ALL, "en_US.UTF-8") ||
12786 setlocale(LC_ALL, "en_US.utf8") ||
12787 setlocale(LC_ALL, "en_US.utf-8")) {
12788 if ((fp = fopen("conftest.in", "r")) != 0) {
12789 while (fgets(buffer, MY_LEN, fp) != 0) {
12790 if (*buffer == '-') {
12791 fprintf(stderr, "\\t%s", buffer);
12792 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12794 if (wcwidth((int)value) == 1)
12796 fprintf(stderr, "%d\\t%s", wcwidth((int)value), buffer);
12798 fprintf(stderr, "?\\t%s", buffer);
12803 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12804 return (totals == passed) ? 0 : 1;
12808 rm -f "conftest$ac_exeext"
12809 if { (eval echo "$as_me:12809: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>&5
12812 echo "$as_me:12812: \$? = $ac_status" >&5
12813 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12814 { (eval echo "$as_me:12814: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 (exit "$ac_status"); }; }; then
12819 cf_cv_wcwidth_graphics=yes
12821 echo "$as_me: program exited with status $ac_status" >&5
12822 echo "$as_me: failed program was:" >&5
12823 cat "conftest.$ac_ext" >&5
12824 cf_cv_wcwidth_graphics=no
12826 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12830 echo "$as_me:12830: result: $cf_cv_wcwidth_graphics" >&5
12831 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12833 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12835 # with_overwrite=no
12836 NCURSES_CH_T=cchar_t
12838 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12841 echo "$as_me:12841: checking for $ac_func" >&5
12842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12843 if eval "test \"\${$as_ac_var+set}\" = set"; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 cat >"conftest.$ac_ext" <<_ACEOF
12847 #line 12847 "configure"
12848 #include "confdefs.h"
12849 #define $ac_func autoconf_temporary
12850 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12859 char $ac_func (void);
12865 /* The GNU C library defines stubs for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 #error found stub for $ac_func
12872 return $ac_func ();
12877 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12878 if { (eval echo "$as_me:12878: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>&5
12881 echo "$as_me:12881: \$? = $ac_status" >&5
12882 (exit "$ac_status"); } &&
12883 { ac_try='test -s "conftest$ac_exeext"'
12884 { (eval echo "$as_me:12884: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 (exit "$ac_status"); }; }; then
12889 eval "$as_ac_var=yes"
12891 echo "$as_me: failed program was:" >&5
12892 cat "conftest.$ac_ext" >&5
12893 eval "$as_ac_var=no"
12895 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12897 echo "$as_me:12897: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12898 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12899 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12900 cat >>confdefs.h <<EOF
12901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12907 if test "x$ac_cv_func_putwc" != xyes ; then
12909 for ac_header in wchar.h
12911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12912 echo "$as_me:12912: checking for $ac_header" >&5
12913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >"conftest.$ac_ext" <<_ACEOF
12918 #line 12918 "configure"
12919 #include "confdefs.h"
12920 #include <$ac_header>
12922 if { (eval echo "$as_me:12922: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12923 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12925 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:12928: \$? = $ac_status" >&5
12929 (exit "$ac_status"); } >/dev/null; then
12930 if test -s conftest.err; then
12931 ac_cpp_err=$ac_c_preproc_warn_flag
12938 if test -z "$ac_cpp_err"; then
12939 eval "$as_ac_Header=yes"
12941 echo "$as_me: failed program was:" >&5
12942 cat "conftest.$ac_ext" >&5
12943 eval "$as_ac_Header=no"
12945 rm -f conftest.err "conftest.$ac_ext"
12947 echo "$as_me:12947: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12948 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12949 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12950 cat >>confdefs.h <<EOF
12951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12957 echo "$as_me:12957: checking for multibyte character support" >&5
12958 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12959 if test "${cf_cv_utf8_lib+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 cf_save_LIBS="$LIBS"
12964 cat >"conftest.$ac_ext" <<_ACEOF
12965 #line 12965 "configure"
12966 #include "confdefs.h"
12968 $ac_includes_default
12969 #ifdef HAVE_WCHAR_H
12981 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12982 if { (eval echo "$as_me:12982: \"$ac_link\"") >&5
12983 (eval $ac_link) 2>&5
12985 echo "$as_me:12985: \$? = $ac_status" >&5
12986 (exit "$ac_status"); } &&
12987 { ac_try='test -s "conftest$ac_exeext"'
12988 { (eval echo "$as_me:12988: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12991 echo "$as_me:12991: \$? = $ac_status" >&5
12992 (exit "$ac_status"); }; }; then
12995 echo "$as_me: failed program was:" >&5
12996 cat "conftest.$ac_ext" >&5
12998 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12999 # will be set on completion of the AC_TRY_LINK below.
13000 cf_cv_header_path_utf8=
13001 cf_cv_library_path_utf8=
13003 echo "${as_me:-configure}:13003: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13005 cf_save_LIBS="$LIBS"
13007 cat >"conftest.$ac_ext" <<_ACEOF
13008 #line 13008 "configure"
13009 #include "confdefs.h"
13011 #include <libutf8.h>
13020 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13021 if { (eval echo "$as_me:13021: \"$ac_link\"") >&5
13022 (eval $ac_link) 2>&5
13024 echo "$as_me:13024: \$? = $ac_status" >&5
13025 (exit "$ac_status"); } &&
13026 { ac_try='test -s "conftest$ac_exeext"'
13027 { (eval echo "$as_me:13027: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:13030: \$? = $ac_status" >&5
13031 (exit "$ac_status"); }; }; then
13033 cf_cv_find_linkage_utf8=yes
13034 cf_cv_header_path_utf8=/usr/include
13035 cf_cv_library_path_utf8=/usr/lib
13038 echo "$as_me: failed program was:" >&5
13039 cat "conftest.$ac_ext" >&5
13041 LIBS="-lutf8 $cf_save_LIBS"
13043 cat >"conftest.$ac_ext" <<_ACEOF
13044 #line 13044 "configure"
13045 #include "confdefs.h"
13047 #include <libutf8.h>
13056 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13057 if { (eval echo "$as_me:13057: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:13060: \$? = $ac_status" >&5
13061 (exit "$ac_status"); } &&
13062 { ac_try='test -s "conftest$ac_exeext"'
13063 { (eval echo "$as_me:13063: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:13066: \$? = $ac_status" >&5
13067 (exit "$ac_status"); }; }; then
13069 cf_cv_find_linkage_utf8=yes
13070 cf_cv_header_path_utf8=/usr/include
13071 cf_cv_library_path_utf8=/usr/lib
13072 cf_cv_library_file_utf8="-lutf8"
13075 echo "$as_me: failed program was:" >&5
13076 cat "conftest.$ac_ext" >&5
13078 cf_cv_find_linkage_utf8=no
13079 LIBS="$cf_save_LIBS"
13081 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13083 echo "${as_me:-configure}:13083: testing find linkage for utf8 library ..." 1>&5
13085 echo "${as_me:-configure}:13085: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13087 cf_save_CPPFLAGS="$CPPFLAGS"
13088 cf_test_CPPFLAGS="$CPPFLAGS"
13092 # collect the current set of include-directories from compiler flags
13093 cf_header_path_list=""
13094 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13095 for cf_header_path in $CPPFLAGS $CFLAGS
13097 case "$cf_header_path" in
13099 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13101 test "x$cf_header_path" != "xNONE" && \
13102 test -d "$cf_header_path" && \
13104 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13105 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13106 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13107 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13108 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13109 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13112 cf_header_path_list="$cf_header_path_list $cf_search"
13118 # add the variations for the package we are looking for
13122 test "x$prefix" != "xNONE" && \
13123 test -d "$prefix" && \
13125 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13126 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13127 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13128 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13129 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13130 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13133 for cf_subdir_prefix in \
13142 test "x$cf_subdir_prefix" != "x$prefix" && \
13143 test -d "$cf_subdir_prefix" && \
13144 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13145 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13146 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13147 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13148 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13149 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13150 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13155 test "$includedir" != NONE && \
13156 test "$includedir" != "/usr/include" && \
13157 test -d "$includedir" && {
13158 test -d "$includedir" && cf_search="$cf_search $includedir"
13159 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13162 test "$oldincludedir" != NONE && \
13163 test "$oldincludedir" != "/usr/include" && \
13164 test -d "$oldincludedir" && {
13165 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13166 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13169 cf_search="$cf_search $cf_header_path_list"
13171 for cf_cv_header_path_utf8 in $cf_search
13173 if test -d "$cf_cv_header_path_utf8" ; then
13174 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13176 echo "${as_me:-configure}:13176: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13178 CPPFLAGS="$cf_save_CPPFLAGS"
13180 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13181 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13183 cat >"conftest.$ac_ext" <<_ACEOF
13184 #line 13184 "configure"
13185 #include "confdefs.h"
13187 #include <libutf8.h>
13196 rm -f "conftest.$ac_objext"
13197 if { (eval echo "$as_me:13197: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:13200: \$? = $ac_status" >&5
13201 (exit "$ac_status"); } &&
13202 { ac_try='test -s "conftest.$ac_objext"'
13203 { (eval echo "$as_me:13203: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 (exit "$ac_status"); }; }; then
13209 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13211 echo "${as_me:-configure}:13211: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13213 cf_cv_find_linkage_utf8=maybe
13214 cf_test_CPPFLAGS="$CPPFLAGS"
13217 echo "$as_me: failed program was:" >&5
13218 cat "conftest.$ac_ext" >&5
13220 CPPFLAGS="$cf_save_CPPFLAGS"
13223 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13227 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13229 echo "${as_me:-configure}:13229: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13231 cf_save_LIBS="$LIBS"
13232 cf_save_LDFLAGS="$LDFLAGS"
13234 if test "$cf_cv_find_linkage_utf8" != yes ; then
13237 cf_library_path_list=""
13238 if test -n "${LDFLAGS}${LIBS}" ; then
13239 for cf_library_path in $LDFLAGS $LIBS
13241 case "$cf_library_path" in
13243 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13245 test "x$cf_library_path" != "xNONE" && \
13246 test -d "$cf_library_path" && \
13248 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13249 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13250 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13251 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13252 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13253 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13256 cf_library_path_list="$cf_library_path_list $cf_search"
13264 test "x$prefix" != "xNONE" && \
13265 test -d "$prefix" && \
13267 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13268 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13269 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13270 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13271 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13272 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13275 for cf_subdir_prefix in \
13284 test "x$cf_subdir_prefix" != "x$prefix" && \
13285 test -d "$cf_subdir_prefix" && \
13286 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13287 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13288 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13289 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13290 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13291 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13292 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13297 cf_search="$cf_library_path_list $cf_search"
13299 for cf_cv_library_path_utf8 in $cf_search
13301 if test -d "$cf_cv_library_path_utf8" ; then
13302 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13304 echo "${as_me:-configure}:13304: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13306 CPPFLAGS="$cf_test_CPPFLAGS"
13307 LIBS="-lutf8 $cf_save_LIBS"
13308 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13309 cat >"conftest.$ac_ext" <<_ACEOF
13310 #line 13310 "configure"
13311 #include "confdefs.h"
13313 #include <libutf8.h>
13322 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13323 if { (eval echo "$as_me:13323: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit "$ac_status"); } &&
13328 { ac_try='test -s "conftest$ac_exeext"'
13329 { (eval echo "$as_me:13329: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:13332: \$? = $ac_status" >&5
13333 (exit "$ac_status"); }; }; then
13335 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13337 echo "${as_me:-configure}:13337: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13339 cf_cv_find_linkage_utf8=yes
13340 cf_cv_library_file_utf8="-lutf8"
13343 echo "$as_me: failed program was:" >&5
13344 cat "conftest.$ac_ext" >&5
13346 CPPFLAGS="$cf_save_CPPFLAGS"
13347 LIBS="$cf_save_LIBS"
13348 LDFLAGS="$cf_save_LDFLAGS"
13351 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13354 CPPFLAGS="$cf_save_CPPFLAGS"
13355 LDFLAGS="$cf_save_LDFLAGS"
13359 cf_cv_find_linkage_utf8=no
13363 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13366 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13368 LIBS="$cf_save_LIBS"
13370 if test "$cf_cv_find_linkage_utf8" = yes ; then
13371 cf_cv_utf8_lib=add-on
13377 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13379 echo "$as_me:13379: result: $cf_cv_utf8_lib" >&5
13380 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13382 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13383 # ncurses/ncursesw:
13384 if test "$cf_cv_utf8_lib" = "add-on" ; then
13386 cat >>confdefs.h <<\EOF
13387 #define HAVE_LIBUTF8_H 1
13390 if test -n "$cf_cv_header_path_utf8" ; then
13391 for cf_add_incdir in $cf_cv_header_path_utf8
13393 while test "$cf_add_incdir" != /usr/include
13395 if test -d "$cf_add_incdir"
13398 if test -n "$CFLAGS$CPPFLAGS" ; then
13399 # a loop is needed to ensure we can add subdirs of existing dirs
13400 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13401 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13402 cf_have_incdir=yes; break
13407 if test "$cf_have_incdir" = no ; then
13408 if test "$cf_add_incdir" = /usr/local/include ; then
13409 if test "$GCC" = yes
13411 cf_save_CPPFLAGS=$CPPFLAGS
13413 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13414 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13416 cat >"conftest.$ac_ext" <<_ACEOF
13417 #line 13417 "configure"
13418 #include "confdefs.h"
13428 rm -f "conftest.$ac_objext"
13429 if { (eval echo "$as_me:13429: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>&5
13432 echo "$as_me:13432: \$? = $ac_status" >&5
13433 (exit "$ac_status"); } &&
13434 { ac_try='test -s "conftest.$ac_objext"'
13435 { (eval echo "$as_me:13435: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:13438: \$? = $ac_status" >&5
13439 (exit "$ac_status"); }; }; then
13442 echo "$as_me: failed program was:" >&5
13443 cat "conftest.$ac_ext" >&5
13446 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13447 CPPFLAGS=$cf_save_CPPFLAGS
13452 if test "$cf_have_incdir" = no ; then
13453 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13455 echo "${as_me:-configure}:13455: testing adding $cf_add_incdir to include-path ..." 1>&5
13457 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13459 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13460 test "$cf_top_incdir" = "$cf_add_incdir" && break
13461 cf_add_incdir="$cf_top_incdir"
13472 if test -n "$cf_cv_library_path_utf8" ; then
13473 for cf_add_libdir in $cf_cv_library_path_utf8
13475 if test "$cf_add_libdir" = /usr/lib ; then
13477 elif test -d "$cf_add_libdir"
13480 if test -n "$LDFLAGS$LIBS" ; then
13481 # a loop is needed to ensure we can add subdirs of existing dirs
13482 for cf_test_libdir in $LDFLAGS $LIBS ; do
13483 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13484 cf_have_libdir=yes; break
13488 if test "$cf_have_libdir" = no ; then
13489 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13491 echo "${as_me:-configure}:13491: testing adding $cf_add_libdir to library-path ..." 1>&5
13493 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13499 cf_add_libs="$LIBS"
13502 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13503 # filter duplicates
13504 for cf_add_1lib in $cf_add_0lib; do
13505 for cf_add_2lib in $cf_add_libs; do
13506 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13511 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13513 LIBS="$cf_add_libs"
13517 if test "$cf_cv_utf8_lib" != no ; then
13522 # This is needed on Tru64 5.0 to declare mbstate_t
13523 echo "$as_me:13523: checking if we must include wchar.h to declare mbstate_t" >&5
13524 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13525 if test "${cf_cv_mbstate_t+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >"conftest.$ac_ext" <<_ACEOF
13530 #line 13530 "configure"
13531 #include "confdefs.h"
13533 #include <stdlib.h>
13534 #include <stdarg.h>
13536 #ifdef HAVE_LIBUTF8_H
13537 #include <libutf8.h>
13542 mbstate_t state; (void)state
13547 rm -f "conftest.$ac_objext"
13548 if { (eval echo "$as_me:13548: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>&5
13551 echo "$as_me:13551: \$? = $ac_status" >&5
13552 (exit "$ac_status"); } &&
13553 { ac_try='test -s "conftest.$ac_objext"'
13554 { (eval echo "$as_me:13554: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:13557: \$? = $ac_status" >&5
13558 (exit "$ac_status"); }; }; then
13561 echo "$as_me: failed program was:" >&5
13562 cat "conftest.$ac_ext" >&5
13563 cat >"conftest.$ac_ext" <<_ACEOF
13564 #line 13564 "configure"
13565 #include "confdefs.h"
13567 #include <stdlib.h>
13568 #include <stdarg.h>
13571 #ifdef HAVE_LIBUTF8_H
13572 #include <libutf8.h>
13577 mbstate_t value; (void) value
13582 rm -f "conftest.$ac_objext"
13583 if { (eval echo "$as_me:13583: \"$ac_compile\"") >&5
13584 (eval $ac_compile) 2>&5
13586 echo "$as_me:13586: \$? = $ac_status" >&5
13587 (exit "$ac_status"); } &&
13588 { ac_try='test -s "conftest.$ac_objext"'
13589 { (eval echo "$as_me:13589: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:13592: \$? = $ac_status" >&5
13593 (exit "$ac_status"); }; }; then
13594 cf_cv_mbstate_t=yes
13596 echo "$as_me: failed program was:" >&5
13597 cat "conftest.$ac_ext" >&5
13598 cf_cv_mbstate_t=unknown
13600 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13602 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13604 echo "$as_me:13604: result: $cf_cv_mbstate_t" >&5
13605 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13607 if test "$cf_cv_mbstate_t" = yes ; then
13609 cat >>confdefs.h <<\EOF
13610 #define NEED_WCHAR_H 1
13616 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13617 if test "$cf_cv_mbstate_t" = unknown ; then
13618 NCURSES_MBSTATE_T=1
13621 # This is needed on Tru64 5.0 to declare wchar_t
13622 echo "$as_me:13622: checking if we must include wchar.h to declare wchar_t" >&5
13623 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13624 if test "${cf_cv_wchar_t+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 cat >"conftest.$ac_ext" <<_ACEOF
13629 #line 13629 "configure"
13630 #include "confdefs.h"
13632 #include <stdlib.h>
13633 #include <stdarg.h>
13635 #ifdef HAVE_LIBUTF8_H
13636 #include <libutf8.h>
13641 wchar_t state; (void)state
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
13662 cat >"conftest.$ac_ext" <<_ACEOF
13663 #line 13663 "configure"
13664 #include "confdefs.h"
13666 #include <stdlib.h>
13667 #include <stdarg.h>
13670 #ifdef HAVE_LIBUTF8_H
13671 #include <libutf8.h>
13676 wchar_t value; (void) value
13681 rm -f "conftest.$ac_objext"
13682 if { (eval echo "$as_me:13682: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>&5
13685 echo "$as_me:13685: \$? = $ac_status" >&5
13686 (exit "$ac_status"); } &&
13687 { ac_try='test -s "conftest.$ac_objext"'
13688 { (eval echo "$as_me:13688: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:13691: \$? = $ac_status" >&5
13692 (exit "$ac_status"); }; }; then
13695 echo "$as_me: failed program was:" >&5
13696 cat "conftest.$ac_ext" >&5
13697 cf_cv_wchar_t=unknown
13699 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13701 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13703 echo "$as_me:13703: result: $cf_cv_wchar_t" >&5
13704 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13706 if test "$cf_cv_wchar_t" = yes ; then
13708 cat >>confdefs.h <<\EOF
13709 #define NEED_WCHAR_H 1
13715 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13716 if test "$cf_cv_wchar_t" = unknown ; then
13720 # if we find wchar_t in either place, use substitution to provide a fallback.
13721 if test "$cf_cv_wchar_t" != unknown ; then
13722 NCURSES_OK_WCHAR_T=1
13725 # This is needed on Tru64 5.0 to declare wint_t
13726 echo "$as_me:13726: checking if we must include wchar.h to declare wint_t" >&5
13727 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13728 if test "${cf_cv_wint_t+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 cat >"conftest.$ac_ext" <<_ACEOF
13733 #line 13733 "configure"
13734 #include "confdefs.h"
13736 #include <stdlib.h>
13737 #include <stdarg.h>
13739 #ifdef HAVE_LIBUTF8_H
13740 #include <libutf8.h>
13745 wint_t state; (void)state
13750 rm -f "conftest.$ac_objext"
13751 if { (eval echo "$as_me:13751: \"$ac_compile\"") >&5
13752 (eval $ac_compile) 2>&5
13754 echo "$as_me:13754: \$? = $ac_status" >&5
13755 (exit "$ac_status"); } &&
13756 { ac_try='test -s "conftest.$ac_objext"'
13757 { (eval echo "$as_me:13757: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:13760: \$? = $ac_status" >&5
13761 (exit "$ac_status"); }; }; then
13764 echo "$as_me: failed program was:" >&5
13765 cat "conftest.$ac_ext" >&5
13766 cat >"conftest.$ac_ext" <<_ACEOF
13767 #line 13767 "configure"
13768 #include "confdefs.h"
13770 #include <stdlib.h>
13771 #include <stdarg.h>
13774 #ifdef HAVE_LIBUTF8_H
13775 #include <libutf8.h>
13780 wint_t value; (void) value
13785 rm -f "conftest.$ac_objext"
13786 if { (eval echo "$as_me:13786: \"$ac_compile\"") >&5
13787 (eval $ac_compile) 2>&5
13789 echo "$as_me:13789: \$? = $ac_status" >&5
13790 (exit "$ac_status"); } &&
13791 { ac_try='test -s "conftest.$ac_objext"'
13792 { (eval echo "$as_me:13792: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:13795: \$? = $ac_status" >&5
13796 (exit "$ac_status"); }; }; then
13799 echo "$as_me: failed program was:" >&5
13800 cat "conftest.$ac_ext" >&5
13801 cf_cv_wint_t=unknown
13803 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13805 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13807 echo "$as_me:13807: result: $cf_cv_wint_t" >&5
13808 echo "${ECHO_T}$cf_cv_wint_t" >&6
13810 if test "$cf_cv_wint_t" = yes ; then
13812 cat >>confdefs.h <<\EOF
13813 #define NEED_WCHAR_H 1
13819 # if we do not find wint_t in either place, use substitution to provide a fallback.
13820 if test "$cf_cv_wint_t" = unknown ; then
13824 # if we find wint_t in either place, use substitution to provide a fallback.
13825 if test "$cf_cv_wint_t" != unknown ; then
13826 NCURSES_OK_WINT_T=1
13829 if test "$NCURSES_MBSTATE_T" != 0; then
13831 cat >>confdefs.h <<\EOF
13832 #define NEED_MBSTATE_T_DEF 1
13838 ### use option --disable-lp64 to allow long chtype
13839 echo "$as_me:13839: checking whether to enable _LP64 definition in curses.h" >&5
13840 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13842 # Check whether --enable-lp64 or --disable-lp64 was given.
13843 if test "${enable_lp64+set}" = set; then
13844 enableval="$enable_lp64"
13845 with_lp64=$enableval
13847 with_lp64=$cf_dft_with_lp64
13849 echo "$as_me:13849: result: $with_lp64" >&5
13850 echo "${ECHO_T}$with_lp64" >&6
13852 if test "x$with_lp64" = xyes ; then
13853 cf_cv_enable_lp64=1
13855 cf_cv_enable_lp64=0
13858 # Check whether --enable-largefile or --disable-largefile was given.
13859 if test "${enable_largefile+set}" = set; then
13860 enableval="$enable_largefile"
13863 if test "$enable_largefile" != no; then
13865 echo "$as_me:13865: checking for special C compiler options needed for large files" >&5
13866 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13867 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 ac_cv_sys_largefile_CC=no
13871 if test "$GCC" != yes; then
13874 # IRIX 6.2 and later do not support large files by default,
13875 # so use the C compiler's -n32 option if that helps.
13876 cat >"conftest.$ac_ext" <<_ACEOF
13877 #line 13877 "configure"
13878 #include "confdefs.h"
13879 #include <sys/types.h>
13880 /* Check that off_t can represent 2**63 - 1 correctly.
13881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13882 since some C++ compilers masquerading as C compilers
13883 incorrectly reject 9223372036854775807. */
13884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13886 && LARGE_OFF_T % 2147483647 == 1)
13896 rm -f "conftest.$ac_objext"
13897 if { (eval echo "$as_me:13897: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>&5
13900 echo "$as_me:13900: \$? = $ac_status" >&5
13901 (exit "$ac_status"); } &&
13902 { ac_try='test -s "conftest.$ac_objext"'
13903 { (eval echo "$as_me:13903: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:13906: \$? = $ac_status" >&5
13907 (exit "$ac_status"); }; }; then
13910 echo "$as_me: failed program was:" >&5
13911 cat "conftest.$ac_ext" >&5
13913 rm -f "conftest.$ac_objext"
13915 rm -f "conftest.$ac_objext"
13916 if { (eval echo "$as_me:13916: \"$ac_compile\"") >&5
13917 (eval $ac_compile) 2>&5
13919 echo "$as_me:13919: \$? = $ac_status" >&5
13920 (exit "$ac_status"); } &&
13921 { ac_try='test -s "conftest.$ac_objext"'
13922 { (eval echo "$as_me:13922: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:13925: \$? = $ac_status" >&5
13926 (exit "$ac_status"); }; }; then
13927 ac_cv_sys_largefile_CC=' -n32'; break
13929 echo "$as_me: failed program was:" >&5
13930 cat "conftest.$ac_ext" >&5
13932 rm -f "conftest.$ac_objext"
13936 rm -f "conftest.$ac_ext"
13939 echo "$as_me:13939: result: $ac_cv_sys_largefile_CC" >&5
13940 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13941 if test "$ac_cv_sys_largefile_CC" != no; then
13942 CC=$CC$ac_cv_sys_largefile_CC
13945 echo "$as_me:13945: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13946 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13947 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 ac_cv_sys_file_offset_bits=no
13952 cat >"conftest.$ac_ext" <<_ACEOF
13953 #line 13953 "configure"
13954 #include "confdefs.h"
13955 #include <sys/types.h>
13956 /* Check that off_t can represent 2**63 - 1 correctly.
13957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13958 since some C++ compilers masquerading as C compilers
13959 incorrectly reject 9223372036854775807. */
13960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13962 && LARGE_OFF_T % 2147483647 == 1)
13972 rm -f "conftest.$ac_objext"
13973 if { (eval echo "$as_me:13973: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:13976: \$? = $ac_status" >&5
13977 (exit "$ac_status"); } &&
13978 { ac_try='test -s "conftest.$ac_objext"'
13979 { (eval echo "$as_me:13979: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:13982: \$? = $ac_status" >&5
13983 (exit "$ac_status"); }; }; then
13986 echo "$as_me: failed program was:" >&5
13987 cat "conftest.$ac_ext" >&5
13989 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13990 cat >"conftest.$ac_ext" <<_ACEOF
13991 #line 13991 "configure"
13992 #include "confdefs.h"
13993 #define _FILE_OFFSET_BITS 64
13994 #include <sys/types.h>
13995 /* Check that off_t can represent 2**63 - 1 correctly.
13996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13997 since some C++ compilers masquerading as C compilers
13998 incorrectly reject 9223372036854775807. */
13999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14001 && LARGE_OFF_T % 2147483647 == 1)
14011 rm -f "conftest.$ac_objext"
14012 if { (eval echo "$as_me:14012: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>&5
14015 echo "$as_me:14015: \$? = $ac_status" >&5
14016 (exit "$ac_status"); } &&
14017 { ac_try='test -s "conftest.$ac_objext"'
14018 { (eval echo "$as_me:14018: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:14021: \$? = $ac_status" >&5
14022 (exit "$ac_status"); }; }; then
14023 ac_cv_sys_file_offset_bits=64; break
14025 echo "$as_me: failed program was:" >&5
14026 cat "conftest.$ac_ext" >&5
14028 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14032 echo "$as_me:14032: result: $ac_cv_sys_file_offset_bits" >&5
14033 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14034 if test "$ac_cv_sys_file_offset_bits" != no; then
14036 cat >>confdefs.h <<EOF
14037 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14042 echo "$as_me:14042: checking for _LARGE_FILES value needed for large files" >&5
14043 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14044 if test "${ac_cv_sys_large_files+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_cv_sys_large_files=no
14049 cat >"conftest.$ac_ext" <<_ACEOF
14050 #line 14050 "configure"
14051 #include "confdefs.h"
14052 #include <sys/types.h>
14053 /* Check that off_t can represent 2**63 - 1 correctly.
14054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14055 since some C++ compilers masquerading as C compilers
14056 incorrectly reject 9223372036854775807. */
14057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14059 && LARGE_OFF_T % 2147483647 == 1)
14069 rm -f "conftest.$ac_objext"
14070 if { (eval echo "$as_me:14070: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>&5
14073 echo "$as_me:14073: \$? = $ac_status" >&5
14074 (exit "$ac_status"); } &&
14075 { ac_try='test -s "conftest.$ac_objext"'
14076 { (eval echo "$as_me:14076: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:14079: \$? = $ac_status" >&5
14080 (exit "$ac_status"); }; }; then
14083 echo "$as_me: failed program was:" >&5
14084 cat "conftest.$ac_ext" >&5
14086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14087 cat >"conftest.$ac_ext" <<_ACEOF
14088 #line 14088 "configure"
14089 #include "confdefs.h"
14090 #define _LARGE_FILES 1
14091 #include <sys/types.h>
14092 /* Check that off_t can represent 2**63 - 1 correctly.
14093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14094 since some C++ compilers masquerading as C compilers
14095 incorrectly reject 9223372036854775807. */
14096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14098 && LARGE_OFF_T % 2147483647 == 1)
14108 rm -f "conftest.$ac_objext"
14109 if { (eval echo "$as_me:14109: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>&5
14112 echo "$as_me:14112: \$? = $ac_status" >&5
14113 (exit "$ac_status"); } &&
14114 { ac_try='test -s "conftest.$ac_objext"'
14115 { (eval echo "$as_me:14115: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:14118: \$? = $ac_status" >&5
14119 (exit "$ac_status"); }; }; then
14120 ac_cv_sys_large_files=1; break
14122 echo "$as_me: failed program was:" >&5
14123 cat "conftest.$ac_ext" >&5
14125 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14129 echo "$as_me:14129: result: $ac_cv_sys_large_files" >&5
14130 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14131 if test "$ac_cv_sys_large_files" != no; then
14133 cat >>confdefs.h <<EOF
14134 #define _LARGE_FILES $ac_cv_sys_large_files
14141 if test "$enable_largefile" != no ; then
14142 echo "$as_me:14142: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14143 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14144 if test "${ac_cv_sys_largefile_source+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 ac_cv_sys_largefile_source=no
14149 cat >"conftest.$ac_ext" <<_ACEOF
14150 #line 14150 "configure"
14151 #include "confdefs.h"
14153 #include <sys/types.h>
14158 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
14159 return my_fseeko(stdin, 0, 0);
14164 rm -f "conftest.$ac_objext"
14165 if { (eval echo "$as_me:14165: \"$ac_compile\"") >&5
14166 (eval $ac_compile) 2>&5
14168 echo "$as_me:14168: \$? = $ac_status" >&5
14169 (exit "$ac_status"); } &&
14170 { ac_try='test -s "conftest.$ac_objext"'
14171 { (eval echo "$as_me:14171: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:14174: \$? = $ac_status" >&5
14175 (exit "$ac_status"); }; }; then
14178 echo "$as_me: failed program was:" >&5
14179 cat "conftest.$ac_ext" >&5
14181 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14182 cat >"conftest.$ac_ext" <<_ACEOF
14183 #line 14183 "configure"
14184 #include "confdefs.h"
14185 #define _LARGEFILE_SOURCE 1
14187 #include <sys/types.h>
14192 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
14193 return my_fseeko(stdin, 0, 0);
14198 rm -f "conftest.$ac_objext"
14199 if { (eval echo "$as_me:14199: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 (exit "$ac_status"); } &&
14204 { ac_try='test -s "conftest.$ac_objext"'
14205 { (eval echo "$as_me:14205: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:14208: \$? = $ac_status" >&5
14209 (exit "$ac_status"); }; }; then
14210 ac_cv_sys_largefile_source=1; break
14212 echo "$as_me: failed program was:" >&5
14213 cat "conftest.$ac_ext" >&5
14215 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14219 echo "$as_me:14219: result: $ac_cv_sys_largefile_source" >&5
14220 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14221 if test "$ac_cv_sys_largefile_source" != no; then
14223 cat >>confdefs.h <<EOF
14224 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14230 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14231 # in glibc 2.1.3, but that breaks too many other things.
14232 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14233 echo "$as_me:14233: checking for fseeko" >&5
14234 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14235 if test "${ac_cv_func_fseeko+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >"conftest.$ac_ext" <<_ACEOF
14239 #line 14239 "configure"
14240 #include "confdefs.h"
14242 #include <sys/types.h>
14246 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
14247 return my_fseeko && my_fseeko (stdin, 0, 0);
14252 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14253 if { (eval echo "$as_me:14253: \"$ac_link\"") >&5
14254 (eval $ac_link) 2>&5
14256 echo "$as_me:14256: \$? = $ac_status" >&5
14257 (exit "$ac_status"); } &&
14258 { ac_try='test -s "conftest$ac_exeext"'
14259 { (eval echo "$as_me:14259: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:14262: \$? = $ac_status" >&5
14263 (exit "$ac_status"); }; }; then
14264 ac_cv_func_fseeko=yes
14266 echo "$as_me: failed program was:" >&5
14267 cat "conftest.$ac_ext" >&5
14268 ac_cv_func_fseeko=no
14270 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14272 echo "$as_me:14272: result: $ac_cv_func_fseeko" >&5
14273 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14274 if test $ac_cv_func_fseeko = yes; then
14276 cat >>confdefs.h <<\EOF
14277 #define HAVE_FSEEKO 1
14282 # Normally we would collect these definitions in the config.h,
14283 # but (like _XOPEN_SOURCE), some environments rely on having these
14284 # defined before any of the system headers are included. Another
14285 # case comes up with C++, e.g., on AIX the compiler compiles the
14286 # header files by themselves before looking at the body files it is
14287 # told to compile. For ncurses, those header files do not include
14289 if test "$ac_cv_sys_large_files" != no
14292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14293 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14296 if test "$ac_cv_sys_largefile_source" != no
14299 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14300 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14303 if test "$ac_cv_sys_file_offset_bits" != no
14306 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14307 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14311 echo "$as_me:14311: checking whether to use struct dirent64" >&5
14312 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14313 if test "${cf_cv_struct_dirent64+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >"conftest.$ac_ext" <<_ACEOF
14318 #line 14318 "configure"
14319 #include "confdefs.h"
14321 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14322 #include <sys/types.h>
14323 #include <dirent.h>
14326 /* if transitional largefile support is setup, this is true */
14327 extern struct dirent64 * readdir(DIR *);
14334 DIR *dp = opendir(".");
14335 struct dirent64 *x = readdir(dp);
14336 struct dirent *y = readdir(dp);
14344 rm -f "conftest.$ac_objext"
14345 if { (eval echo "$as_me:14345: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>&5
14348 echo "$as_me:14348: \$? = $ac_status" >&5
14349 (exit "$ac_status"); } &&
14350 { ac_try='test -s "conftest.$ac_objext"'
14351 { (eval echo "$as_me:14351: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 echo "$as_me:14354: \$? = $ac_status" >&5
14355 (exit "$ac_status"); }; }; then
14356 cf_cv_struct_dirent64=yes
14358 echo "$as_me: failed program was:" >&5
14359 cat "conftest.$ac_ext" >&5
14360 cf_cv_struct_dirent64=no
14362 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14365 echo "$as_me:14365: result: $cf_cv_struct_dirent64" >&5
14366 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14367 test "$cf_cv_struct_dirent64" = yes &&
14368 cat >>confdefs.h <<\EOF
14369 #define HAVE_STRUCT_DIRENT64 1
14374 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14375 echo "$as_me:14375: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14376 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14378 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14379 if test "${enable_tparm_varargs+set}" = set; then
14380 enableval="$enable_tparm_varargs"
14381 with_tparm_varargs=$enableval
14383 with_tparm_varargs=yes
14385 echo "$as_me:14385: result: $with_tparm_varargs" >&5
14386 echo "${ECHO_T}$with_tparm_varargs" >&6
14387 NCURSES_TPARM_VARARGS=0
14388 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14390 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14391 if test "$with_ticlib" != no ; then
14392 echo "$as_me:14392: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14393 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14395 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14396 if test "${enable_tic_depends+set}" = set; then
14397 enableval="$enable_tic_depends"
14398 with_tic_depends=$enableval
14400 with_tic_depends=yes
14402 echo "$as_me:14402: result: $with_tic_depends" >&5
14403 echo "${ECHO_T}$with_tic_depends" >&6
14405 with_tic_depends=no
14408 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14409 echo "$as_me:14409: checking if you want to enable wattr* macros" >&5
14410 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14412 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14413 if test "${enable_wattr_macros+set}" = set; then
14414 enableval="$enable_wattr_macros"
14415 with_wattr_macros=$enableval
14417 with_wattr_macros=no
14419 if [ "x$with_wattr_macros" != xyes ]; then
14420 NCURSES_WATTR_MACROS=0
14421 echo "$as_me:14421: result: no" >&5
14422 echo "${ECHO_T}no" >&6
14424 NCURSES_WATTR_MACROS=1
14425 echo "$as_me:14425: result: yes" >&5
14426 echo "${ECHO_T}yes" >&6
14429 echo "$as_me:14429: checking for X11 rgb file" >&5
14430 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14432 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14433 if test "${with_x11_rgb+set}" = set; then
14434 withval="$with_x11_rgb"
14440 if test "x$RGB_PATH" = xauto
14442 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14444 /opt/local/share/X11/rgb.txt \
14445 /opt/X11/share/X11/rgb.txt \
14446 /usr/share/X11/rgb.txt \
14447 /usr/X11/share/X11/rgb.txt \
14448 /usr/X11/lib/X11/rgb.txt \
14449 /usr/lib/X11/rgb.txt \
14451 /usr/pkg/lib/X11/rgb.txt \
14452 /usr/X11R7/lib/X11/rgb.txt \
14453 /usr/X11R6/lib/X11/rgb.txt \
14454 /usr/X11R5/lib/X11/rgb.txt \
14455 /usr/X11R4/lib/X11/rgb.txt \
14456 /usr/local/lib/X11/rgb.txt \
14457 /usr/local/share/X11/rgb.txt \
14458 /usr/lib64/X11/rgb.txt
14460 if test -f "$cf_path" ; then
14461 RGB_PATH="$cf_path"
14468 if test "x$prefix" != xNONE; then
14469 cf_path_syntax="$prefix"
14471 cf_path_syntax="$ac_default_prefix"
14474 case ".$cf_path" in
14475 (.\$\(*\)*|.\'*\'*)
14479 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14481 (.\$\{*prefix\}*|.\$\{*dir\}*)
14482 eval cf_path="$cf_path"
14483 case ".$cf_path" in
14485 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14490 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14493 { { echo "$as_me:14493: error: expected a pathname, not \"$cf_path\"" >&5
14494 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14495 { (exit 1); exit 1; }; }
14501 echo "$as_me:14501: result: $RGB_PATH" >&5
14502 echo "${ECHO_T}$RGB_PATH" >&6
14504 cat >>confdefs.h <<EOF
14505 #define RGB_PATH "$cf_path"
14509 if test "$RGB_PATH" = no
14514 ### use option --with-bool to override bool's type
14516 echo "$as_me:14516: checking for type of bool" >&5
14517 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14519 # Check whether --with-bool or --without-bool was given.
14520 if test "${with_bool+set}" = set; then
14521 withval="$with_bool"
14522 NCURSES_BOOL="$withval"
14526 echo "$as_me:14526: result: $NCURSES_BOOL" >&5
14527 echo "${ECHO_T}$NCURSES_BOOL" >&6
14528 case x$NCURSES_BOOL in
14530 { { echo "$as_me:14530: error: expected a type name for bool" >&5
14531 echo "$as_me: error: expected a type name for bool" >&2;}
14532 { (exit 1); exit 1; }; }
14536 echo "$as_me:14536: checking for alternate terminal capabilities file" >&5
14537 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14539 # Check whether --with-caps or --without-caps was given.
14540 if test "${with_caps+set}" = set; then
14541 withval="$with_caps"
14542 TERMINFO_CAPS=Caps.$withval
14546 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14548 { echo "$as_me:14548: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14549 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14552 echo "$as_me:14552: result: $TERMINFO_CAPS" >&5
14553 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14555 ### use option --with-chtype to override chtype's type
14557 echo "$as_me:14557: checking for type of chtype" >&5
14558 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14560 # Check whether --with-chtype or --without-chtype was given.
14561 if test "${with_chtype+set}" = set; then
14562 withval="$with_chtype"
14563 NCURSES_CHTYPE="$withval"
14565 NCURSES_CHTYPE=$cf_dft_chtype
14567 echo "$as_me:14567: result: $NCURSES_CHTYPE" >&5
14568 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14569 case x$NCURSES_CHTYPE in
14571 { { echo "$as_me:14571: error: expected a type name for chtype" >&5
14572 echo "$as_me: error: expected a type name for chtype" >&2;}
14573 { (exit 1); exit 1; }; }
14577 ### use option --with-ospeed to override ospeed's type
14579 echo "$as_me:14579: checking for type of ospeed" >&5
14580 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14582 # Check whether --with-ospeed or --without-ospeed was given.
14583 if test "${with_ospeed+set}" = set; then
14584 withval="$with_ospeed"
14585 NCURSES_OSPEED="$withval"
14587 NCURSES_OSPEED=short
14589 echo "$as_me:14589: result: $NCURSES_OSPEED" >&5
14590 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14591 case x$NCURSES_OSPEED in
14593 { { echo "$as_me:14593: error: expected a type name for ospeed" >&5
14594 echo "$as_me: error: expected a type name for ospeed" >&2;}
14595 { (exit 1); exit 1; }; }
14599 ### use option --with-mmask-t to override mmask_t's type
14601 echo "$as_me:14601: checking for type of mmask-t" >&5
14602 echo $ECHO_N "checking for type of mmask-t... $ECHO_C" >&6
14604 # Check whether --with-mmask-t or --without-mmask-t was given.
14605 if test "${with_mmask_t+set}" = set; then
14606 withval="$with_mmask_t"
14607 NCURSES_MMASK_T="$withval"
14609 NCURSES_MMASK_T=$cf_dft_mmask_t
14611 echo "$as_me:14611: result: $NCURSES_MMASK_T" >&5
14612 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14613 case x$NCURSES_MMASK_T in
14615 { { echo "$as_me:14615: error: expected a type name for mmask-t" >&5
14616 echo "$as_me: error: expected a type name for mmask-t" >&2;}
14617 { (exit 1); exit 1; }; }
14621 ### use option --with-ccharw-max to override CCHARW_MAX size
14622 echo "$as_me:14622: checking for size CCHARW_MAX" >&5
14623 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14625 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14626 if test "${with_ccharw_max+set}" = set; then
14627 withval="$with_ccharw_max"
14628 NCURSES_CCHARW_MAX="$withval"
14630 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14632 echo "$as_me:14632: result: $NCURSES_CCHARW_MAX" >&5
14633 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14635 echo "$as_me:14635: checking for signed char" >&5
14636 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14637 if test "${ac_cv_type_signed_char+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >"conftest.$ac_ext" <<_ACEOF
14641 #line 14641 "configure"
14642 #include "confdefs.h"
14643 $ac_includes_default
14647 if ((signed char *) 0)
14649 if (sizeof (signed char))
14655 rm -f "conftest.$ac_objext"
14656 if { (eval echo "$as_me:14656: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>&5
14659 echo "$as_me:14659: \$? = $ac_status" >&5
14660 (exit "$ac_status"); } &&
14661 { ac_try='test -s "conftest.$ac_objext"'
14662 { (eval echo "$as_me:14662: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:14665: \$? = $ac_status" >&5
14666 (exit "$ac_status"); }; }; then
14667 ac_cv_type_signed_char=yes
14669 echo "$as_me: failed program was:" >&5
14670 cat "conftest.$ac_ext" >&5
14671 ac_cv_type_signed_char=no
14673 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14675 echo "$as_me:14675: result: $ac_cv_type_signed_char" >&5
14676 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14678 echo "$as_me:14678: checking size of signed char" >&5
14679 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14680 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 if test "$ac_cv_type_signed_char" = yes; then
14684 if test "$cross_compiling" = yes; then
14685 # Depending upon the size, compute the lo and hi bounds.
14686 cat >"conftest.$ac_ext" <<_ACEOF
14687 #line 14687 "configure"
14688 #include "confdefs.h"
14689 $ac_includes_default
14693 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14698 rm -f "conftest.$ac_objext"
14699 if { (eval echo "$as_me:14699: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>&5
14702 echo "$as_me:14702: \$? = $ac_status" >&5
14703 (exit "$ac_status"); } &&
14704 { ac_try='test -s "conftest.$ac_objext"'
14705 { (eval echo "$as_me:14705: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:14708: \$? = $ac_status" >&5
14709 (exit "$ac_status"); }; }; then
14712 cat >"conftest.$ac_ext" <<_ACEOF
14713 #line 14713 "configure"
14714 #include "confdefs.h"
14715 $ac_includes_default
14719 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14724 rm -f "conftest.$ac_objext"
14725 if { (eval echo "$as_me:14725: \"$ac_compile\"") >&5
14726 (eval $ac_compile) 2>&5
14728 echo "$as_me:14728: \$? = $ac_status" >&5
14729 (exit "$ac_status"); } &&
14730 { ac_try='test -s "conftest.$ac_objext"'
14731 { (eval echo "$as_me:14731: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 (exit "$ac_status"); }; }; then
14736 ac_hi=$ac_mid; break
14738 echo "$as_me: failed program was:" >&5
14739 cat "conftest.$ac_ext" >&5
14740 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14742 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14745 echo "$as_me: failed program was:" >&5
14746 cat "conftest.$ac_ext" >&5
14749 cat >"conftest.$ac_ext" <<_ACEOF
14750 #line 14750 "configure"
14751 #include "confdefs.h"
14752 $ac_includes_default
14756 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14761 rm -f "conftest.$ac_objext"
14762 if { (eval echo "$as_me:14762: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>&5
14765 echo "$as_me:14765: \$? = $ac_status" >&5
14766 (exit "$ac_status"); } &&
14767 { ac_try='test -s "conftest.$ac_objext"'
14768 { (eval echo "$as_me:14768: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:14771: \$? = $ac_status" >&5
14772 (exit "$ac_status"); }; }; then
14773 ac_lo=$ac_mid; break
14775 echo "$as_me: failed program was:" >&5
14776 cat "conftest.$ac_ext" >&5
14777 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14779 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14782 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14783 # Binary search between lo and hi bounds.
14784 while test "x$ac_lo" != "x$ac_hi"; do
14785 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14786 cat >"conftest.$ac_ext" <<_ACEOF
14787 #line 14787 "configure"
14788 #include "confdefs.h"
14789 $ac_includes_default
14793 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14798 rm -f "conftest.$ac_objext"
14799 if { (eval echo "$as_me:14799: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit "$ac_status"); } &&
14804 { ac_try='test -s "conftest.$ac_objext"'
14805 { (eval echo "$as_me:14805: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit "$ac_status"); }; }; then
14812 echo "$as_me: failed program was:" >&5
14813 cat "conftest.$ac_ext" >&5
14814 ac_lo=`expr "$ac_mid" + 1`
14816 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14818 ac_cv_sizeof_signed_char=$ac_lo
14820 if test "$cross_compiling" = yes; then
14821 { { echo "$as_me:14821: error: cannot run test program while cross compiling" >&5
14822 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14823 { (exit 1); exit 1; }; }
14825 cat >"conftest.$ac_ext" <<_ACEOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14828 $ac_includes_default
14832 FILE *f = fopen ("conftest.val", "w");
14834 $ac_main_return (1);
14835 fprintf (f, "%ld", (long)(sizeof (signed char)));
14841 rm -f "conftest$ac_exeext"
14842 if { (eval echo "$as_me:14842: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>&5
14845 echo "$as_me:14845: \$? = $ac_status" >&5
14846 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14847 { (eval echo "$as_me:14847: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:14850: \$? = $ac_status" >&5
14851 (exit "$ac_status"); }; }; then
14852 ac_cv_sizeof_signed_char=`cat conftest.val`
14854 echo "$as_me: program exited with status $ac_status" >&5
14855 echo "$as_me: failed program was:" >&5
14856 cat "conftest.$ac_ext" >&5
14858 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14863 ac_cv_sizeof_signed_char=0
14866 echo "$as_me:14866: result: $ac_cv_sizeof_signed_char" >&5
14867 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14868 cat >>confdefs.h <<EOF
14869 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14872 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14873 NCURSES_SBOOL="signed char"
14875 NCURSES_SBOOL="char"
14877 echo "$as_me:14877: checking whether to use signed chars for Boolean array in term.h" >&5
14878 echo $ECHO_N "checking whether to use signed chars for Boolean array in term.h... $ECHO_C" >&6
14880 # Check whether --enable-signed-char or --disable-signed-char was given.
14881 if test "${enable_signed_char+set}" = set; then
14882 enableval="$enable_signed_char"
14883 with_signed_char=$enableval
14885 with_signed_char=$cf_dft_signed_char
14887 echo "$as_me:14887: result: $with_signed_char" >&5
14888 echo "${ECHO_T}$with_signed_char" >&6
14889 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14891 ### use option --with-tparm-arg to override tparm's argument type
14893 echo "$as_me:14893: checking for type of tparm-arg" >&5
14894 echo $ECHO_N "checking for type of tparm-arg... $ECHO_C" >&6
14896 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14897 if test "${with_tparm_arg+set}" = set; then
14898 withval="$with_tparm_arg"
14899 NCURSES_TPARM_ARG="$withval"
14901 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14903 echo "$as_me:14903: result: $NCURSES_TPARM_ARG" >&5
14904 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14905 case x$NCURSES_TPARM_ARG in
14907 { { echo "$as_me:14907: error: expected a type name for tparm-arg" >&5
14908 echo "$as_me: error: expected a type name for tparm-arg" >&2;}
14909 { (exit 1); exit 1; }; }
14913 ### Enable compiling-in rcs id's
14914 echo "$as_me:14914: checking if RCS identifiers should be compiled-in" >&5
14915 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14917 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14918 if test "${with_rcs_ids+set}" = set; then
14919 withval="$with_rcs_ids"
14920 with_rcs_ids=$withval
14924 echo "$as_me:14924: result: $with_rcs_ids" >&5
14925 echo "${ECHO_T}$with_rcs_ids" >&6
14926 test "x$with_rcs_ids" = xyes &&
14927 cat >>confdefs.h <<\EOF
14928 #define USE_RCS_IDS 1
14931 ###############################################################################
14933 echo "$as_me:14933: checking format of man-pages" >&5
14934 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14936 # Check whether --with-manpage-format or --without-manpage-format was given.
14937 if test "${with_manpage_format+set}" = set; then
14938 withval="$with_manpage_format"
14939 MANPAGE_FORMAT=$withval
14941 MANPAGE_FORMAT=unknown
14944 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14945 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14949 case "$MANPAGE_FORMAT" in
14951 if test -z "$MANPATH" ; then
14952 MANPATH="/usr/man:/usr/share/man"
14955 # look for the 'date' man-page (it is most likely to be installed!)
14961 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14962 for cf_dir in $MANPATH; do
14963 test -z "$cf_dir" && cf_dir=/usr/man
14964 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
14966 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14967 if test "x$cf_test" = "x$cf_name" ; then
14970 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
14971 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
14972 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14973 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14974 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14975 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14989 # if we found a match in either man* or cat*, stop looking
14990 if test -n "$MANPAGE_FORMAT" ; then
14992 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14993 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14999 test "$cf_found" = yes && break
15002 # only check the first directory in $MANPATH where we find manpages
15003 if test -n "$MANPAGE_FORMAT" ; then
15007 # if we did not find the example, just assume it is normal
15008 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
15012 for cf_option in $MANPAGE_FORMAT; do
15013 case "$cf_option" in
15014 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
15017 cf_unknown="$cf_unknown $cf_option"
15024 echo "$as_me:15024: result: $MANPAGE_FORMAT" >&5
15025 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
15026 if test -n "$cf_unknown" ; then
15027 { echo "$as_me:15027: WARNING: Unexpected manpage-format $cf_unknown" >&5
15028 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
15031 cf_manpage_format=no
15032 cf_manpage_inboth=no
15033 cf_manpage_so_strip=
15034 cf_manpage_compress=
15036 for cf_item in $MANPAGE_FORMAT
15040 cf_manpage_format=yes
15041 cf_manpage_inboth=no
15044 cf_manpage_format=yes
15045 cf_manpage_inboth=yes
15048 cf_manpage_so_strip="Z"
15049 cf_manpage_compress=compress
15052 cf_manpage_so_strip="gz"
15053 cf_manpage_compress=gzip
15056 cf_manpage_so_strip="bz2"
15057 cf_manpage_compress=bzip2
15060 cf_manpage_so_strip="xz"
15061 cf_manpage_compress=xz
15066 echo "$as_me:15066: checking for manpage renaming" >&5
15067 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15069 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15070 if test "${with_manpage_renames+set}" = set; then
15071 withval="$with_manpage_renames"
15072 MANPAGE_RENAMES=$withval
15074 MANPAGE_RENAMES=yes
15077 case ".$MANPAGE_RENAMES" in
15081 # Debian 'man' program?
15082 if test -f /etc/debian_version ; then
15083 MANPAGE_RENAMES=man/man_db.renames
15090 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15091 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15092 elif test "$MANPAGE_RENAMES" = no ; then
15094 elif test ! -f "$MANPAGE_RENAMES" ; then
15095 { { echo "$as_me:15095: error: not a filename: $MANPAGE_RENAMES" >&5
15096 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15097 { (exit 1); exit 1; }; }
15100 echo "$as_me:15100: result: $MANPAGE_RENAMES" >&5
15101 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15103 echo "$as_me:15103: checking if manpage aliases will be installed" >&5
15104 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15106 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15107 if test "${with_manpage_aliases+set}" = set; then
15108 withval="$with_manpage_aliases"
15109 MANPAGE_ALIASES=$withval
15111 MANPAGE_ALIASES=yes
15114 echo "$as_me:15114: result: $MANPAGE_ALIASES" >&5
15115 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15119 cf_use_symlinks=yes
15126 MANPAGE_SYMLINKS=no
15127 if test "$MANPAGE_ALIASES" = yes ; then
15128 echo "$as_me:15128: checking if manpage symlinks should be used" >&5
15129 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15131 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15132 if test "${with_manpage_symlinks+set}" = set; then
15133 withval="$with_manpage_symlinks"
15134 MANPAGE_SYMLINKS=$withval
15136 MANPAGE_SYMLINKS=$cf_use_symlinks
15139 if test "$cf_use_symlinks" = no; then
15140 if test "$MANPAGE_SYMLINKS" = yes ; then
15141 { echo "$as_me:15141: WARNING: cannot make symlinks" >&5
15142 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15143 MANPAGE_SYMLINKS=no
15147 echo "$as_me:15147: result: $MANPAGE_SYMLINKS" >&5
15148 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15151 echo "$as_me:15151: checking for manpage tbl" >&5
15152 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15154 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15155 if test "${with_manpage_tbl+set}" = set; then
15156 withval="$with_manpage_tbl"
15157 MANPAGE_TBL=$withval
15162 echo "$as_me:15162: result: $MANPAGE_TBL" >&5
15163 echo "${ECHO_T}$MANPAGE_TBL" >&6
15165 if test "$prefix" = "NONE" ; then
15166 cf_prefix="$ac_default_prefix"
15168 cf_prefix="$prefix"
15171 test ! -d man && mkdir man
15173 cf_edit_man=./edit_man.sh
15174 cf_man_alias=`pwd`/man_alias.sed
15176 cat >$cf_edit_man <<CF_EOF
15178 # this script is generated by the configure-script CF_MAN_PAGES macro.
15180 prefix="$cf_prefix"
15181 datarootdir="$datarootdir"
15184 NCURSES_MAJOR="$NCURSES_MAJOR"
15185 NCURSES_MINOR="$NCURSES_MINOR"
15186 NCURSES_PATCH="$NCURSES_PATCH"
15188 NCURSES_OSPEED="$NCURSES_OSPEED"
15189 TERMINFO="$TERMINFO"
15190 TERMINFO_DIRS="$TERMINFO_DIRS"
15193 INSTALL_DATA="$INSTALL_DATA"
15195 transform="$program_transform_name"
15197 TMP=\${TMPDIR:=/tmp}/man\$\$
15198 trap "rm -f \$TMP; exit 1" 1 2 3 15
15199 trap "rm -f \$TMP" 0
15211 top_srcdir=\$srcdir/..
15214 if test "\$form" = normal ; then
15215 if test "$cf_manpage_format" = yes ; then
15216 if test "$cf_manpage_inboth" = no ; then
15217 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15221 cf_subdir=\$mandir/man
15222 cf_tables=$MANPAGE_TBL
15224 cf_subdir=\$mandir/cat
15228 # process the list of source-files
15229 for i in "\$@" ; do
15233 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15234 if test "\$verb" = installing ; then
15235 if test ! -d "\$cf_subdir\${section}" ; then
15236 mkdir -p "\$cf_subdir\$section"
15240 # replace variables in man page
15241 if test ! -f "$cf_man_alias" ; then
15242 cat >>$cf_man_alias <<-CF_EOF2
15243 s,@DATADIR@,\$datadir,g
15244 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15245 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15246 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15247 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15248 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15249 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15252 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15254 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15255 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15256 cat >>$cf_edit_man <<-CF_EOF
15257 s,@$cf_NAME@,$cf_name,g
15261 cat >>$cf_edit_man <<CF_EOF
15263 echo "...made $cf_man_alias"
15267 cf_source=\`basename "\$i"\`
15268 cf_full_alias=\$cf_source
15269 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15270 if test ! -f "\$cf_full_alias" ; then
15271 echo ".. skipped \$cf_source"
15276 if test "$MANPAGE_ALIASES" != no ; then
15277 cat >>$cf_edit_man <<CF_EOF
15279 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15280 test "$with_curses_h" = yes && nCurses=ncurses.3x
15281 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$cf_full_alias" |sed -f "$cf_man_alias" | sort -u; test "\$cf_part_alias" = "\$nCurses" && echo curses\`
15285 if test "$MANPAGE_RENAMES" = no ; then
15286 cat >>$cf_edit_man <<CF_EOF
15287 # perform program transformations for section 1 man pages
15288 if test \$section = 1 ; then
15289 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15291 cf_target=\$cf_subdir\${section}/\$cf_source
15295 cat >>$cf_edit_man <<CF_EOF
15296 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15297 if test -z "\$cf_target" ; then
15298 echo "? missing rename for \$cf_source"
15299 cf_target="\$cf_source"
15301 cf_target="\$cf_subdir\${section}/\${cf_target}"
15306 cat >>$cf_edit_man <<CF_EOF
15307 sed -f "$cf_man_alias" \\
15310 if test "$MANPAGE_RENAMES" != no ; then
15311 cat >>$cf_edit_man <<CF_EOF
15312 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15315 cat >>$cf_edit_man <<CF_EOF
15320 cat >>$cf_edit_man <<CF_EOF
15321 if test \$cf_tables = yes ; then
15322 tbl \$TMP >\$TMP.out
15327 if test "$with_overwrite" != yes ; then
15328 cat >>$cf_edit_man <<CF_EOF
15329 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15334 if test "$with_curses_h" != yes ; then
15335 cat >>$cf_edit_man <<CF_EOF
15336 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15341 cat >>$cf_edit_man <<CF_EOF
15342 if test "\$form" = format ; then
15343 nroff -man \$TMP >\$TMP.out
15348 if test -n "$cf_manpage_compress" ; then
15349 cat >>$cf_edit_man <<CF_EOF
15350 if test "\$verb" = installing ; then
15351 if ( "$cf_manpage_compress" -f \$TMP )
15353 mv \$TMP.$cf_manpage_so_strip \$TMP
15356 cf_target="\$cf_target.$cf_manpage_so_strip"
15360 case "$MANPAGE_FORMAT" in
15362 cat >>$cf_edit_man <<CF_EOF
15363 if test "\$form" = format ; then
15364 # BSDI installs only .0 suffixes in the cat directories
15365 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15371 cat >>$cf_edit_man <<CF_EOF
15372 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15374 if test -n "$EXTRA_SUFFIX" ; then
15375 case \$cf_target in
15376 (*${EXTRA_SUFFIX}\$suffix)
15377 extra_suffix="$EXTRA_SUFFIX"
15381 if test "\$verb" = installing ; then
15382 echo "\$verb \$cf_target"
15383 \$INSTALL_DATA \$TMP "\$cf_target"
15384 test -d "\$cf_subdir\${section}" &&
15385 test -n "\$aliases" && (
15386 cd "\$cf_subdir\${section}" && (
15387 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15388 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15389 cf_target=\`basename "\$cf_target"\`
15390 for cf_alias in \$aliases
15392 if test "\$section" = 1 ; then
15393 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15395 cf_alias="\${cf_alias}\${extra_suffix}"
15397 if test "$MANPAGE_SYMLINKS" = yes ; then
15398 if test -f "\$cf_alias\${suffix}" ; then
15399 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15404 echo ".. \$verb alias \$cf_alias\${suffix}"
15408 cat >>$cf_edit_man <<CF_EOF
15409 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15413 cat >>$cf_edit_man <<CF_EOF
15414 rm -f "\$cf_alias\${suffix}"
15415 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15419 cat >>$cf_edit_man <<CF_EOF
15420 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15421 echo ".so \$cf_source" >\$TMP
15423 if test -n "$cf_manpage_compress" ; then
15424 cat >>$cf_edit_man <<CF_EOF
15425 if test -n "$cf_manpage_so_strip" ; then
15426 "$cf_manpage_compress" -f \$TMP
15427 mv \$TMP.$cf_manpage_so_strip \$TMP
15431 cat >>$cf_edit_man <<CF_EOF
15432 echo ".. \$verb alias \$cf_alias\${suffix}"
15433 rm -f "\$cf_alias\${suffix}"
15434 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15439 elif test "\$verb" = removing ; then
15440 test -f "\$cf_target" && (
15441 echo "\$verb \$cf_target"
15442 rm -f "\$cf_target"
15444 test -d "\$cf_subdir\${section}" &&
15445 test -n "\$aliases" && (
15446 cd "\$cf_subdir\${section}" && (
15447 for cf_alias in \$aliases
15449 if test "\$section" = 1 ; then
15450 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15452 cf_alias="\${cf_alias}\${extra_suffix}"
15454 echo ".. \$verb alias \$cf_alias\${suffix}"
15455 rm -f "\$cf_alias\${suffix}"
15467 if test "$cf_manpage_inboth" = yes ; then
15468 if test "\$form" != format ; then
15469 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15475 chmod 755 "$cf_edit_man"
15477 ###############################################################################
15479 ### Note that some functions (such as const) are normally disabled anyway.
15480 echo "$as_me:15480: checking if you want to build with function extensions" >&5
15481 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15483 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15484 if test "${enable_ext_funcs+set}" = set; then
15485 enableval="$enable_ext_funcs"
15486 with_ext_funcs=$enableval
15490 echo "$as_me:15490: result: $with_ext_funcs" >&5
15491 echo "${ECHO_T}$with_ext_funcs" >&6
15492 if test "x$with_ext_funcs" = xyes ; then
15493 NCURSES_EXT_FUNCS=1
15495 cat >>confdefs.h <<\EOF
15496 #define NCURSES_EXT_FUNCS 1
15499 cat >>confdefs.h <<\EOF
15500 #define HAVE_ASSUME_DEFAULT_COLORS 1
15503 cat >>confdefs.h <<\EOF
15504 #define HAVE_CURSES_VERSION 1
15507 cat >>confdefs.h <<\EOF
15508 #define HAVE_HAS_KEY 1
15511 cat >>confdefs.h <<\EOF
15512 #define HAVE_RESIZETERM 1
15515 cat >>confdefs.h <<\EOF
15516 #define HAVE_RESIZE_TERM 1
15519 cat >>confdefs.h <<\EOF
15520 #define HAVE_TERM_ENTRY_H 1
15523 cat >>confdefs.h <<\EOF
15524 #define HAVE_USE_DEFAULT_COLORS 1
15527 cat >>confdefs.h <<\EOF
15528 #define HAVE_USE_SCREEN 1
15531 cat >>confdefs.h <<\EOF
15532 #define HAVE_USE_WINDOW 1
15535 cat >>confdefs.h <<\EOF
15536 #define HAVE_WRESIZE 1
15539 GENERATED_EXT_FUNCS=generated
15540 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15542 NCURSES_EXT_FUNCS=0
15543 GENERATED_EXT_FUNCS=
15546 echo "$as_me:15546: checking if you want to build with SCREEN extensions" >&5
15547 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15549 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15550 if test "${enable_sp_funcs+set}" = set; then
15551 enableval="$enable_sp_funcs"
15552 with_sp_funcs=$enableval
15554 with_sp_funcs=$cf_dft_ext_spfuncs
15556 echo "$as_me:15556: result: $with_sp_funcs" >&5
15557 echo "${ECHO_T}$with_sp_funcs" >&6
15558 if test "x$with_sp_funcs" = xyes ; then
15561 cat >>confdefs.h <<\EOF
15562 #define NCURSES_SP_FUNCS 1
15565 cat >>confdefs.h <<\EOF
15566 #define HAVE_TPUTS_SP 1
15569 GENERATED_SP_FUNCS=generated
15572 GENERATED_SP_FUNCS=
15575 echo "$as_me:15575: checking if you want to build with terminal-driver" >&5
15576 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15578 # Check whether --enable-term-driver or --disable-term-driver was given.
15579 if test "${enable_term_driver+set}" = set; then
15580 enableval="$enable_term_driver"
15581 with_term_driver=$enableval
15583 with_term_driver=no
15585 echo "$as_me:15585: result: $with_term_driver" >&5
15586 echo "${ECHO_T}$with_term_driver" >&6
15587 if test "x$with_term_driver" = xyes ; then
15589 cat >>confdefs.h <<\EOF
15590 #define USE_TERM_DRIVER 1
15593 if test "x$with_termlib" != xno ; then
15594 { { echo "$as_me:15594: error: The term-driver option conflicts with the termlib option" >&5
15595 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15596 { (exit 1); exit 1; }; }
15598 if test "x$with_sp_funcs" != xyes ; then
15599 { { echo "$as_me:15599: error: The term-driver option relies upon sp-funcs" >&5
15600 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15601 { (exit 1); exit 1; }; }
15605 ### use option --enable-const to turn on use of const beyond that in XSI.
15606 echo "$as_me:15606: checking for extended use of const keyword" >&5
15607 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15609 # Check whether --enable-const or --disable-const was given.
15610 if test "${enable_const+set}" = set; then
15611 enableval="$enable_const"
15612 with_ext_const=$enableval
15614 with_ext_const=$cf_dft_ext_const
15616 echo "$as_me:15616: result: $with_ext_const" >&5
15617 echo "${ECHO_T}$with_ext_const" >&6
15618 NCURSES_CONST='/*nothing*/'
15619 if test "x$with_ext_const" = xyes ; then
15620 NCURSES_CONST=const
15623 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15624 echo "$as_me:15624: checking if you want to use extended colors" >&5
15625 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15627 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15628 if test "${enable_ext_colors+set}" = set; then
15629 enableval="$enable_ext_colors"
15630 with_ext_colors=$enableval
15632 with_ext_colors=$cf_dft_ext_colors
15634 echo "$as_me:15634: result: $with_ext_colors" >&5
15635 echo "${ECHO_T}$with_ext_colors" >&6
15636 NCURSES_EXT_COLORS=0
15637 if test "x$with_ext_colors" = xyes ; then
15638 if test "x$with_widec" != xyes ; then
15639 { echo "$as_me:15639: WARNING: This option applies only to wide-character library" >&5
15640 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15642 # cannot be ABI 5 since it changes sizeof(cchar_t)
15644 if test "${with_abi_version+set}" != set; then
15645 case "$cf_cv_rel_version" in
15647 cf_cv_rel_version=6.0
15648 cf_cv_abi_version=6
15649 cf_cv_abi_default=6
15650 { echo "$as_me:15650: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15651 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15656 NCURSES_EXT_COLORS=1
15658 cat >>confdefs.h <<\EOF
15659 #define NCURSES_EXT_COLORS 1
15662 cat >>confdefs.h <<\EOF
15663 #define HAVE_ALLOC_PAIR 1
15666 cat >>confdefs.h <<\EOF
15667 #define HAVE_INIT_EXTENDED_COLOR 1
15670 cat >>confdefs.h <<\EOF
15671 #define HAVE_RESET_COLOR_PAIRS 1
15677 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15678 echo "$as_me:15678: checking if you want to use extended mouse encoding" >&5
15679 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15681 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15682 if test "${enable_ext_mouse+set}" = set; then
15683 enableval="$enable_ext_mouse"
15684 with_ext_mouse=$enableval
15686 with_ext_mouse=$cf_dft_ext_mouse
15688 echo "$as_me:15688: result: $with_ext_mouse" >&5
15689 echo "${ECHO_T}$with_ext_mouse" >&6
15690 if test "x$with_ext_mouse" = xyes ; then
15692 if test "${with_abi_version+set}" != set; then
15693 case "$cf_cv_rel_version" in
15695 cf_cv_rel_version=6.0
15696 cf_cv_abi_version=6
15697 cf_cv_abi_default=6
15698 { echo "$as_me:15698: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15699 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15706 if test $cf_cv_abi_default -le 5 ; then
15707 NCURSES_MOUSE_VERSION=1
15708 elif test $cf_cv_abi_default -le 6 ; then
15709 NCURSES_MOUSE_VERSION=2
15711 NCURSES_MOUSE_VERSION=3
15714 ### use option --enable-ext-putwin to turn on extended screendumps
15715 echo "$as_me:15715: checking if you want to use extended putwin/screendump" >&5
15716 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15718 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15719 if test "${enable_ext_putwin+set}" = set; then
15720 enableval="$enable_ext_putwin"
15721 with_ext_putwin=$enableval
15723 with_ext_putwin=$cf_dft_ext_putwin
15725 echo "$as_me:15725: result: $with_ext_putwin" >&5
15726 echo "${ECHO_T}$with_ext_putwin" >&6
15727 if test "x$with_ext_putwin" = xyes ; then
15729 cat >>confdefs.h <<\EOF
15730 #define NCURSES_EXT_PUTWIN 1
15735 echo "$as_me:15735: checking if you want \$NCURSES_NO_PADDING code" >&5
15736 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15738 # Check whether --enable-no-padding or --disable-no-padding was given.
15739 if test "${enable_no_padding+set}" = set; then
15740 enableval="$enable_no_padding"
15741 with_no_padding=$enableval
15743 with_no_padding=$with_ext_funcs
15745 echo "$as_me:15745: result: $with_no_padding" >&5
15746 echo "${ECHO_T}$with_no_padding" >&6
15747 test "x$with_no_padding" = xyes &&
15748 cat >>confdefs.h <<\EOF
15749 #define NCURSES_NO_PADDING 1
15752 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15753 echo "$as_me:15753: checking if you want SIGWINCH handler" >&5
15754 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15756 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15757 if test "${enable_sigwinch+set}" = set; then
15758 enableval="$enable_sigwinch"
15759 with_sigwinch=$enableval
15761 with_sigwinch=$with_ext_funcs
15763 echo "$as_me:15763: result: $with_sigwinch" >&5
15764 echo "${ECHO_T}$with_sigwinch" >&6
15765 if test "x$with_sigwinch" = xyes
15768 cat >>confdefs.h <<\EOF
15769 #define USE_SIGWINCH 1
15772 cf_cv_enable_sigwinch=1
15774 cf_cv_enable_sigwinch=0
15777 ### use option --enable-tcap-names to allow user to define new capabilities
15778 echo "$as_me:15778: checking if you want user-definable terminal capabilities like termcap" >&5
15779 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15781 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15782 if test "${enable_tcap_names+set}" = set; then
15783 enableval="$enable_tcap_names"
15784 with_tcap_names=$enableval
15786 with_tcap_names=$with_ext_funcs
15788 echo "$as_me:15788: result: $with_tcap_names" >&5
15789 echo "${ECHO_T}$with_tcap_names" >&6
15791 if test "x$with_tcap_names" = xyes; then
15794 cat >>confdefs.h <<\EOF
15795 #define NCURSES_XNAMES 1
15800 ##############################################################################
15802 echo "$as_me:15802: checking if you want to link with the pthread library" >&5
15803 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15805 # Check whether --with-pthread or --without-pthread was given.
15806 if test "${with_pthread+set}" = set; then
15807 withval="$with_pthread"
15808 with_pthread=$withval
15812 echo "$as_me:15812: result: $with_pthread" >&5
15813 echo "${ECHO_T}$with_pthread" >&6
15815 if test "$with_pthread" != no ; then
15816 echo "$as_me:15816: checking for pthread.h" >&5
15817 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15818 if test "${ac_cv_header_pthread_h+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >"conftest.$ac_ext" <<_ACEOF
15822 #line 15822 "configure"
15823 #include "confdefs.h"
15824 #include <pthread.h>
15826 if { (eval echo "$as_me:15826: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15827 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15829 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:15832: \$? = $ac_status" >&5
15833 (exit "$ac_status"); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15842 if test -z "$ac_cpp_err"; then
15843 ac_cv_header_pthread_h=yes
15845 echo "$as_me: failed program was:" >&5
15846 cat "conftest.$ac_ext" >&5
15847 ac_cv_header_pthread_h=no
15849 rm -f conftest.err "conftest.$ac_ext"
15851 echo "$as_me:15851: result: $ac_cv_header_pthread_h" >&5
15852 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15853 if test "$ac_cv_header_pthread_h" = yes; then
15855 cat >>confdefs.h <<\EOF
15856 #define HAVE_PTHREADS_H 1
15859 for cf_lib_pthread in pthread c_r
15861 echo "$as_me:15861: checking if we can link with the $cf_lib_pthread library" >&5
15862 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15863 cf_save_LIBS="$LIBS"
15865 cf_add_libs="$LIBS"
15868 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15869 # filter duplicates
15870 for cf_add_1lib in $cf_add_0lib; do
15871 for cf_add_2lib in $cf_add_libs; do
15872 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15877 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15879 LIBS="$cf_add_libs"
15881 cat >"conftest.$ac_ext" <<_ACEOF
15882 #line 15882 "configure"
15883 #include "confdefs.h"
15885 #include <pthread.h>
15891 int rc = pthread_create(0,0,0,0);
15892 int r2 = pthread_mutexattr_settype(0, 0);
15898 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15899 if { (eval echo "$as_me:15899: \"$ac_link\"") >&5
15900 (eval $ac_link) 2>&5
15902 echo "$as_me:15902: \$? = $ac_status" >&5
15903 (exit "$ac_status"); } &&
15904 { ac_try='test -s "conftest$ac_exeext"'
15905 { (eval echo "$as_me:15905: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:15908: \$? = $ac_status" >&5
15909 (exit "$ac_status"); }; }; then
15912 echo "$as_me: failed program was:" >&5
15913 cat "conftest.$ac_ext" >&5
15916 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15917 LIBS="$cf_save_LIBS"
15918 echo "$as_me:15918: result: $with_pthread" >&5
15919 echo "${ECHO_T}$with_pthread" >&6
15920 test "$with_pthread" = yes && break
15923 if test "$with_pthread" = yes ; then
15925 cf_add_libs="$LIBS"
15928 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15929 # filter duplicates
15930 for cf_add_1lib in $cf_add_0lib; do
15931 for cf_add_2lib in $cf_add_libs; do
15932 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15937 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15939 LIBS="$cf_add_libs"
15941 cat >>confdefs.h <<\EOF
15942 #define HAVE_LIBPTHREADS 1
15946 { { echo "$as_me:15946: error: Cannot link with pthread library" >&5
15947 echo "$as_me: error: Cannot link with pthread library" >&2;}
15948 { (exit 1); exit 1; }; }
15955 if test "x$with_pthread" != xno; then
15956 echo "$as_me:15956: checking for pthread_kill" >&5
15957 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15958 if test "${ac_cv_func_pthread_kill+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 cat >"conftest.$ac_ext" <<_ACEOF
15962 #line 15962 "configure"
15963 #include "confdefs.h"
15964 #define pthread_kill autoconf_temporary
15965 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15966 #undef pthread_kill
15972 /* We use char because int might match the return type of a gcc2
15973 builtin and then its argument prototype would still apply. */
15974 char pthread_kill (void);
15980 /* The GNU C library defines stubs for functions which it implements
15981 to always fail with ENOSYS. Some functions are actually named
15982 something starting with __ and the normal name is an alias. */
15983 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15984 #error found stub for pthread_kill
15987 return pthread_kill ();
15992 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15993 if { (eval echo "$as_me:15993: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>&5
15996 echo "$as_me:15996: \$? = $ac_status" >&5
15997 (exit "$ac_status"); } &&
15998 { ac_try='test -s "conftest$ac_exeext"'
15999 { (eval echo "$as_me:15999: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:16002: \$? = $ac_status" >&5
16003 (exit "$ac_status"); }; }; then
16004 ac_cv_func_pthread_kill=yes
16006 echo "$as_me: failed program was:" >&5
16007 cat "conftest.$ac_ext" >&5
16008 ac_cv_func_pthread_kill=no
16010 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16012 echo "$as_me:16012: result: $ac_cv_func_pthread_kill" >&5
16013 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
16014 if test "$ac_cv_func_pthread_kill" = yes; then
16016 echo "$as_me:16016: checking if you want to allow EINTR in wgetch with pthreads" >&5
16017 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
16019 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
16020 if test "${enable_pthreads_eintr+set}" = set; then
16021 enableval="$enable_pthreads_eintr"
16022 use_pthreads_eintr=$enableval
16024 use_pthreads_eintr=no
16026 echo "$as_me:16026: result: $use_pthreads_eintr" >&5
16027 echo "${ECHO_T}$use_pthreads_eintr" >&6
16028 if test "x$use_pthreads_eintr" = xyes ; then
16030 cat >>confdefs.h <<\EOF
16031 #define USE_PTHREADS_EINTR 1
16037 echo "$as_me:16037: checking if you want to use weak-symbols for pthreads" >&5
16038 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
16040 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
16041 if test "${enable_weak_symbols+set}" = set; then
16042 enableval="$enable_weak_symbols"
16043 use_weak_symbols=$enableval
16045 use_weak_symbols=no
16047 echo "$as_me:16047: result: $use_weak_symbols" >&5
16048 echo "${ECHO_T}$use_weak_symbols" >&6
16049 if test "x$use_weak_symbols" = xyes ; then
16051 echo "$as_me:16051: checking if $CC supports weak symbols" >&5
16052 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
16053 if test "${cf_cv_weak_symbols+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 cat >"conftest.$ac_ext" <<_ACEOF
16058 #line 16058 "configure"
16059 #include "confdefs.h"
16066 #if defined(__GNUC__)
16067 # if defined __USE_ISOC99
16068 # define _cat_pragma(exp) _Pragma(#exp)
16069 # define _weak_pragma(exp) _cat_pragma(weak name)
16071 # define _weak_pragma(exp)
16073 # define _declare(name) __extension__ extern __typeof__(name) name
16074 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16077 weak_symbol(fopen);
16083 rm -f "conftest.$ac_objext"
16084 if { (eval echo "$as_me:16084: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>&5
16087 echo "$as_me:16087: \$? = $ac_status" >&5
16088 (exit "$ac_status"); } &&
16089 { ac_try='test -s "conftest.$ac_objext"'
16090 { (eval echo "$as_me:16090: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:16093: \$? = $ac_status" >&5
16094 (exit "$ac_status"); }; }; then
16095 cf_cv_weak_symbols=yes
16097 echo "$as_me: failed program was:" >&5
16098 cat "conftest.$ac_ext" >&5
16099 cf_cv_weak_symbols=no
16101 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16104 echo "$as_me:16104: result: $cf_cv_weak_symbols" >&5
16105 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16108 cf_cv_weak_symbols=no
16111 if test "x$cf_cv_weak_symbols" = xyes ; then
16113 cat >>confdefs.h <<\EOF
16114 #define USE_WEAK_SYMBOLS 1
16121 if test "x$with_pthread" = "xyes" ; then
16123 cat >>confdefs.h <<\EOF
16124 #define USE_PTHREADS 1
16127 enable_reentrant=yes
16128 if test "x$cf_cv_weak_symbols" = xyes ; then
16131 cf_add_libs="$PRIVATE_LIBS"
16134 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16135 # filter duplicates
16136 for cf_add_1lib in $cf_add_0lib; do
16137 for cf_add_2lib in $cf_add_libs; do
16138 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16143 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16145 PRIVATE_LIBS="$cf_add_libs"
16150 # Reentrant code has to be opaque; there's little advantage to making ncurses
16151 # opaque outside of that, so there is no --enable-opaque option. We can use
16152 # this option without --with-pthreads, but this will be always set for
16154 echo "$as_me:16154: checking if you want reentrant code" >&5
16155 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16157 # Check whether --enable-reentrant or --disable-reentrant was given.
16158 if test "${enable_reentrant+set}" = set; then
16159 enableval="$enable_reentrant"
16160 with_reentrant=$enableval
16164 echo "$as_me:16164: result: $with_reentrant" >&5
16165 echo "${ECHO_T}$with_reentrant" >&6
16166 if test "x$with_reentrant" = xyes ; then
16167 cf_cv_enable_reentrant=1
16168 cf_cv_enable_opaque="NCURSES_INTERNALS"
16170 if test "x$cf_cv_weak_symbols" = xyes ; then
16172 # remove pthread library from $LIBS
16173 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16175 cf_add_libs="$TEST_LIBS"
16178 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16179 # filter duplicates
16180 for cf_add_1lib in $cf_add_0lib; do
16181 for cf_add_2lib in $cf_add_libs; do
16182 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16187 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16189 TEST_LIBS="$cf_add_libs"
16191 cf_add_libs="$TEST_LIBS2"
16194 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16195 # filter duplicates
16196 for cf_add_1lib in $cf_add_0lib; do
16197 for cf_add_2lib in $cf_add_libs; do
16198 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16203 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16205 TEST_LIBS2="$cf_add_libs"
16207 cf_add_libs="$PRIVATE_LIBS"
16210 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16211 # filter duplicates
16212 for cf_add_1lib in $cf_add_0lib; do
16213 for cf_add_2lib in $cf_add_libs; do
16214 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16219 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16221 PRIVATE_LIBS="$cf_add_libs"
16224 # when not using weak symbols but with_reentrant,
16225 # add 't' to the library suffix on all platforms
16226 # except cygwin, where we only do that if ALSO
16227 # compiling with full thread support.
16229 (*cygwin* | *msys*)
16230 if test "$with_pthread" = "yes" ; then
16231 if test "x$disable_lib_suffixes" = "xno" ; then
16232 LIB_SUFFIX="t${LIB_SUFFIX}"
16236 if test "x$disable_lib_suffixes" = "xno" ; then
16237 LIB_SUFFIX="t${LIB_SUFFIX}"
16243 cat >>confdefs.h <<\EOF
16244 #define USE_REENTRANT 1
16247 if test "${with_abi_version+set}" != set; then
16248 case "$cf_cv_rel_version" in
16250 cf_cv_rel_version=6.0
16251 cf_cv_abi_version=6
16252 cf_cv_abi_default=6
16253 { echo "$as_me:16253: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16254 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16260 cf_cv_enable_reentrant=0
16261 cf_cv_enable_opaque="NCURSES_OPAQUE"
16262 NCURSES_SIZE_T=$cf_dft_ordinate_type
16265 echo "$as_me:16265: checking whether curses library structures should be opaque" >&5
16266 echo $ECHO_N "checking whether curses library structures should be opaque... $ECHO_C" >&6
16268 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16269 if test "${enable_opaque_curses+set}" = set; then
16270 enableval="$enable_opaque_curses"
16271 test "$enableval" != yes && enableval=no
16272 if test "$enableval" != "no" ; then
16273 enable_opaque_curses=yes
16276 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16277 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16283 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16284 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16287 echo "$as_me:16287: result: $enable_opaque_curses" >&5
16288 echo "${ECHO_T}$enable_opaque_curses" >&6
16290 test "$cf_cv_enable_reentrant" = 1 && \
16291 test "$enable_opaque_curses" = no && \
16292 { { echo "$as_me:16292: error: reentrant configuration requires opaque library" >&5
16293 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16294 { (exit 1); exit 1; }; }
16296 echo "$as_me:16296: checking whether form library structures should be opaque" >&5
16297 echo $ECHO_N "checking whether form library structures should be opaque... $ECHO_C" >&6
16299 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16300 if test "${enable_opaque_form+set}" = set; then
16301 enableval="$enable_opaque_form"
16302 enable_opaque_form=yes
16304 enable_opaque_form=$cf_dft_opaque_curses
16306 echo "$as_me:16306: result: $enable_opaque_form" >&5
16307 echo "${ECHO_T}$enable_opaque_form" >&6
16309 echo "$as_me:16309: checking whether menu library structures should be opaque" >&5
16310 echo $ECHO_N "checking whether menu library structures should be opaque... $ECHO_C" >&6
16312 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16313 if test "${enable_opaque_menu+set}" = set; then
16314 enableval="$enable_opaque_menu"
16315 enable_opaque_menu=yes
16317 enable_opaque_menu=$cf_dft_opaque_curses
16319 echo "$as_me:16319: result: $enable_opaque_menu" >&5
16320 echo "${ECHO_T}$enable_opaque_menu" >&6
16322 echo "$as_me:16322: checking whether panel library structures should be opaque" >&5
16323 echo $ECHO_N "checking whether panel library structures should be opaque... $ECHO_C" >&6
16325 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16326 if test "${enable_opaque_panel+set}" = set; then
16327 enableval="$enable_opaque_panel"
16328 enable_opaque_panel=yes
16330 enable_opaque_panel=$cf_dft_opaque_curses
16332 echo "$as_me:16332: result: $enable_opaque_panel" >&5
16333 echo "${ECHO_T}$enable_opaque_panel" >&6
16335 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16336 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16337 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16338 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16340 ### Allow using a different wrap-prefix
16341 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16342 echo "$as_me:16342: checking for prefix used to wrap public variables" >&5
16343 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16345 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16346 if test "${with_wrap_prefix+set}" = set; then
16347 withval="$with_wrap_prefix"
16348 NCURSES_WRAP_PREFIX=$withval
16350 NCURSES_WRAP_PREFIX=_nc_
16352 echo "$as_me:16352: result: $NCURSES_WRAP_PREFIX" >&5
16353 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16355 NCURSES_WRAP_PREFIX=_nc_
16358 cat >>confdefs.h <<EOF
16359 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16362 ###############################################################################
16363 # These options are relatively safe to experiment with.
16365 echo "$as_me:16365: checking if you want all development code" >&5
16366 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16368 # Check whether --with-develop or --without-develop was given.
16369 if test "${with_develop+set}" = set; then
16370 withval="$with_develop"
16371 with_develop=$withval
16375 echo "$as_me:16375: result: $with_develop" >&5
16376 echo "${ECHO_T}$with_develop" >&6
16378 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16379 echo "$as_me:16379: checking if you want hard-tabs code" >&5
16380 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16382 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16383 if test "${enable_hard_tabs+set}" = set; then
16384 enableval="$enable_hard_tabs"
16387 enable_hard_tabs=$with_develop
16389 echo "$as_me:16389: result: $enable_hard_tabs" >&5
16390 echo "${ECHO_T}$enable_hard_tabs" >&6
16391 test "x$enable_hard_tabs" = xyes &&
16392 cat >>confdefs.h <<\EOF
16393 #define USE_HARD_TABS 1
16396 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16397 echo "$as_me:16397: checking if you want limited support for xmc" >&5
16398 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16400 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16401 if test "${enable_xmc_glitch+set}" = set; then
16402 enableval="$enable_xmc_glitch"
16405 enable_xmc_glitch=$with_develop
16407 echo "$as_me:16407: result: $enable_xmc_glitch" >&5
16408 echo "${ECHO_T}$enable_xmc_glitch" >&6
16409 test "x$enable_xmc_glitch" = xyes &&
16410 cat >>confdefs.h <<\EOF
16411 #define USE_XMC_SUPPORT 1
16414 ###############################################################################
16415 # These are just experimental, probably should not be in a package:
16417 echo "$as_me:16417: checking if you do not want to assume colors are white-on-black" >&5
16418 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16420 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16421 if test "${enable_assumed_color+set}" = set; then
16422 enableval="$enable_assumed_color"
16423 with_assumed_color=$enableval
16425 with_assumed_color=yes
16427 echo "$as_me:16427: result: $with_assumed_color" >&5
16428 echo "${ECHO_T}$with_assumed_color" >&6
16429 test "x$with_assumed_color" = xyes &&
16430 cat >>confdefs.h <<\EOF
16431 #define USE_ASSUMED_COLOR 1
16434 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16435 echo "$as_me:16435: checking if you want hashmap scrolling-optimization code" >&5
16436 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16438 # Check whether --enable-hashmap or --disable-hashmap was given.
16439 if test "${enable_hashmap+set}" = set; then
16440 enableval="$enable_hashmap"
16441 with_hashmap=$enableval
16445 echo "$as_me:16445: result: $with_hashmap" >&5
16446 echo "${ECHO_T}$with_hashmap" >&6
16447 test "x$with_hashmap" = xyes &&
16448 cat >>confdefs.h <<\EOF
16449 #define USE_HASHMAP 1
16452 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16453 echo "$as_me:16453: checking if you want code to check screensize" >&5
16454 echo $ECHO_N "checking if you want code to check screensize... $ECHO_C" >&6
16456 # Check whether --enable-check-size or --disable-check-size was given.
16457 if test "${enable_check_size+set}" = set; then
16458 enableval="$enable_check_size"
16459 with_check_size=$enableval
16463 echo "$as_me:16463: result: $with_check_size" >&5
16464 echo "${ECHO_T}$with_check_size" >&6
16465 test "x$with_check_size" = xyes &&
16466 cat >>confdefs.h <<\EOF
16467 #define USE_CHECK_SIZE 1
16470 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16471 echo "$as_me:16471: checking if you want colorfgbg code" >&5
16472 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16474 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16475 if test "${enable_colorfgbg+set}" = set; then
16476 enableval="$enable_colorfgbg"
16477 with_colorfgbg=$enableval
16481 echo "$as_me:16481: result: $with_colorfgbg" >&5
16482 echo "${ECHO_T}$with_colorfgbg" >&6
16483 test "x$with_colorfgbg" = xyes &&
16484 cat >>confdefs.h <<\EOF
16485 #define USE_COLORFGBG 1
16488 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16489 echo "$as_me:16489: checking if you want to use gcc -fvisibility option" >&5
16490 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16492 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16493 if test "${enable_fvisibility+set}" = set; then
16494 enableval="$enable_fvisibility"
16495 cf_with_fvisibility=$enableval
16497 cf_with_fvisibility=no
16499 echo "$as_me:16499: result: $cf_with_fvisibility" >&5
16500 echo "${ECHO_T}$cf_with_fvisibility" >&6
16503 NCURSES_CXX_IMPEXP=
16504 if test "x$cf_with_fvisibility" = xyes; then
16506 echo "$as_me:16506: checking if $CC -fvisibility=hidden option works" >&5
16507 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16508 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 cf_save_cflags="$CFLAGS"
16513 CFLAGS="$CFLAGS -fvisibility=hidden"
16514 cat >"conftest.$ac_ext" <<_ACEOF
16515 #line 16515 "configure"
16516 #include "confdefs.h"
16518 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16524 if (somefunc()) return 1;
16530 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16531 if { (eval echo "$as_me:16531: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16534 echo "$as_me:16534: \$? = $ac_status" >&5
16535 (exit "$ac_status"); } &&
16536 { ac_try='test -s "conftest$ac_exeext"'
16537 { (eval echo "$as_me:16537: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:16540: \$? = $ac_status" >&5
16541 (exit "$ac_status"); }; }; then
16542 cf_cv_fvisibility_hidden=yes
16544 echo "$as_me: failed program was:" >&5
16545 cat "conftest.$ac_ext" >&5
16546 cf_cv_fvisibility_hidden=no
16548 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16549 CFLAGS=$cf_save_cflags
16552 echo "$as_me:16552: result: $cf_cv_fvisibility_hidden" >&5
16553 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16555 if test "x$cf_cv_fvisibility_hidden" = xyes
16561 cf_new_extra_cppflags=
16563 for cf_add_cflags in -fvisibility=hidden
16565 case "$cf_fix_cppflags" in
16567 case "$cf_add_cflags" in
16568 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16569 case "$cf_add_cflags" in
16571 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16573 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16574 && test -z "${cf_tst_cflags}" \
16575 && cf_fix_cppflags=yes
16577 if test "$cf_fix_cppflags" = yes ; then
16579 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16580 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16583 elif test "${cf_tst_cflags}" = "\"'" ; then
16585 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16586 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16592 case "$CPPFLAGS" in
16596 case "$cf_add_cflags" in
16598 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16600 CPPFLAGS=`echo "$CPPFLAGS" | \
16601 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16602 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16607 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16608 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16615 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16616 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16623 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16624 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16626 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16628 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16629 && test -z "${cf_tst_cflags}" \
16630 && cf_fix_cppflags=no
16635 if test -n "$cf_new_cflags" ; then
16637 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16638 CFLAGS="${CFLAGS}$cf_new_cflags"
16642 if test -n "$cf_new_cppflags" ; then
16644 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16645 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16649 if test -n "$cf_new_extra_cppflags" ; then
16651 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16652 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16656 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16661 ac_cpp='$CXXCPP $CPPFLAGS'
16662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16663 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16665 ac_main_return="return"
16667 echo "$as_me:16667: checking if $CXX -fvisibility=hidden option works" >&5
16668 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16669 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 cf_save_cflags="$CXXFLAGS"
16674 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16675 cat >"conftest.$ac_ext" <<_ACEOF
16676 #line 16676 "configure"
16677 #include "confdefs.h"
16679 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16685 if (somefunc()) return 1;
16691 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16692 if { (eval echo "$as_me:16692: \"$ac_link\"") >&5
16693 (eval $ac_link) 2>&5
16695 echo "$as_me:16695: \$? = $ac_status" >&5
16696 (exit "$ac_status"); } &&
16697 { ac_try='test -s "conftest$ac_exeext"'
16698 { (eval echo "$as_me:16698: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:16701: \$? = $ac_status" >&5
16702 (exit "$ac_status"); }; }; then
16703 cf_cv_fvisibility_hidden2=yes
16705 echo "$as_me: failed program was:" >&5
16706 cat "conftest.$ac_ext" >&5
16707 cf_cv_fvisibility_hidden2=no
16709 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16710 CXXFLAGS=$cf_save_cflags
16713 echo "$as_me:16713: result: $cf_cv_fvisibility_hidden2" >&5
16714 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16716 if test "x$cf_cv_fvisibility_hidden2" = xyes
16719 cf_save_CXXFLAGS="$CFLAGS"
16725 cf_new_extra_cppflags=
16727 for cf_add_cflags in -fvisibility=hidden
16729 case "$cf_fix_cppflags" in
16731 case "$cf_add_cflags" in
16732 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16733 case "$cf_add_cflags" in
16735 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16737 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16738 && test -z "${cf_tst_cflags}" \
16739 && cf_fix_cppflags=yes
16741 if test "$cf_fix_cppflags" = yes ; then
16743 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16744 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16747 elif test "${cf_tst_cflags}" = "\"'" ; then
16749 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16750 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16756 case "$CPPFLAGS" in
16760 case "$cf_add_cflags" in
16762 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16764 CPPFLAGS=`echo "$CPPFLAGS" | \
16765 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16766 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16771 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16772 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16779 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16780 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16790 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16792 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16793 && test -z "${cf_tst_cflags}" \
16794 && cf_fix_cppflags=no
16799 if test -n "$cf_new_cflags" ; then
16801 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16802 CFLAGS="${CFLAGS}$cf_new_cflags"
16806 if test -n "$cf_new_cppflags" ; then
16808 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16809 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16813 if test -n "$cf_new_extra_cppflags" ; then
16815 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16816 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16821 CFLAGS="$cf_save_CXXFLAGS"
16823 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16826 ac_cpp='$CPP $CPPFLAGS'
16827 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16828 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16830 ac_main_return="return"
16835 ### use option --enable-interop to turn on use of bindings used for interop
16836 echo "$as_me:16836: checking if you want interop bindings" >&5
16837 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16839 # Check whether --enable-interop or --disable-interop was given.
16840 if test "${enable_interop+set}" = set; then
16841 enableval="$enable_interop"
16842 with_exp_interop=$enableval
16844 with_exp_interop=$cf_dft_interop
16846 echo "$as_me:16846: result: $with_exp_interop" >&5
16847 echo "${ECHO_T}$with_exp_interop" >&6
16849 NCURSES_INTEROP_FUNCS=0
16850 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16852 echo "$as_me:16852: checking if you want experimental safe-sprintf code" >&5
16853 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16855 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16856 if test "${enable_safe_sprintf+set}" = set; then
16857 enableval="$enable_safe_sprintf"
16858 with_safe_sprintf=$enableval
16860 with_safe_sprintf=no
16862 echo "$as_me:16862: result: $with_safe_sprintf" >&5
16863 echo "${ECHO_T}$with_safe_sprintf" >&6
16865 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16866 # when hashmap is used scroll hints are useless
16867 if test "$with_hashmap" = no ; then
16868 echo "$as_me:16868: checking if you want to experiment without scrolling-hints code" >&5
16869 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16871 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16872 if test "${enable_scroll_hints+set}" = set; then
16873 enableval="$enable_scroll_hints"
16874 with_scroll_hints=$enableval
16876 with_scroll_hints=yes
16878 echo "$as_me:16878: result: $with_scroll_hints" >&5
16879 echo "${ECHO_T}$with_scroll_hints" >&6
16880 test "x$with_scroll_hints" = xyes &&
16881 cat >>confdefs.h <<\EOF
16882 #define USE_SCROLL_HINTS 1
16887 echo "$as_me:16887: checking if you want wgetch-events code" >&5
16888 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16890 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16891 if test "${enable_wgetch_events+set}" = set; then
16892 enableval="$enable_wgetch_events"
16893 with_wgetch_events=$enableval
16895 with_wgetch_events=no
16897 echo "$as_me:16897: result: $with_wgetch_events" >&5
16898 echo "${ECHO_T}$with_wgetch_events" >&6
16899 if test "x$with_wgetch_events" = xyes ; then
16901 cat >>confdefs.h <<\EOF
16902 #define NCURSES_WGETCH_EVENTS 1
16905 NCURSES_WGETCH_EVENTS=1
16907 NCURSES_WGETCH_EVENTS=0
16910 case "$cf_cv_system_name" in
16911 (*mingw32*|*mingw64*|*-msvc*)
16912 echo "$as_me:16912: checking if you want experimental-Windows driver" >&5
16913 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16915 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16916 if test "${enable_exp_win32+set}" = set; then
16917 enableval="$enable_exp_win32"
16918 with_exp_win32=$enableval
16922 echo "$as_me:16922: result: $with_exp_win32" >&5
16923 echo "${ECHO_T}$with_exp_win32" >&6
16924 if test "x$with_exp_win32" = xyes
16927 cat >>confdefs.h <<\EOF
16928 #define EXP_WIN32_DRIVER 1
16932 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16934 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16944 ###############################################################################
16946 ### use option --disable-echo to suppress full display compiling commands
16948 echo "$as_me:16948: checking if you want to see long compiling messages" >&5
16949 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16951 # Check whether --enable-echo or --disable-echo was given.
16952 if test "${enable_echo+set}" = set; then
16953 enableval="$enable_echo"
16954 test "$enableval" != no && enableval=yes
16955 if test "$enableval" != "yes" ; then
16958 ECHO_LD='@echo linking $@;'
16959 RULE_CC='@echo compiling $<'
16960 SHOW_CC='@echo compiling $@'
16982 echo "$as_me:16982: result: $enableval" >&5
16983 echo "${ECHO_T}$enableval" >&6
16985 if test "x$enable_echo" = xyes; then
16988 ECHO_LINK='@ echo linking $@ ... ;'
16989 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16990 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16993 # --disable-stripping is used for debugging
16995 echo "$as_me:16995: checking if you want to install stripped executables" >&5
16996 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16998 # Check whether --enable-stripping or --disable-stripping was given.
16999 if test "${enable_stripping+set}" = set; then
17000 enableval="$enable_stripping"
17001 test "$enableval" != no && enableval=yes
17002 if test "$enableval" != "yes" ; then
17003 enable_stripping=no
17005 enable_stripping=yes
17009 enable_stripping=yes
17012 echo "$as_me:17012: result: $enable_stripping" >&5
17013 echo "${ECHO_T}$enable_stripping" >&6
17015 if test "$enable_stripping" = yes
17022 : "${INSTALL:=install}"
17023 echo "$as_me:17023: checking if install accepts -p option" >&5
17024 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
17025 if test "${cf_cv_install_p+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 if $INSTALL -p conftest.in conftest.out 2>/dev/null
17035 if test -f conftest.out/conftest.in
17037 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
17038 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
17039 if test -s conftest.err
17043 cf_cv_install_p=yes
17054 echo "$as_me:17054: result: $cf_cv_install_p" >&5
17055 echo "${ECHO_T}$cf_cv_install_p" >&6
17057 echo "$as_me:17057: checking if install needs to be told about ownership" >&5
17058 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
17059 case `$ac_config_guess` in
17068 echo "$as_me:17068: result: $with_install_o" >&5
17069 echo "${ECHO_T}$with_install_o" >&6
17070 if test "x$with_install_o" = xyes
17072 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'`"
17077 if test -n "$INSTALL_OPT_S"
17079 echo "$as_me:17079: checking if you want to specify strip-program" >&5
17080 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
17082 # Check whether --with-strip-program or --without-strip-program was given.
17083 if test "${with_strip_program+set}" = set; then
17084 withval="$with_strip_program"
17085 with_strip_program=$withval
17087 with_strip_program=no
17089 echo "$as_me:17089: result: $with_strip_program" >&5
17090 echo "${ECHO_T}$with_strip_program" >&6
17091 if test "$with_strip_program" != no
17093 echo "$as_me:17093: checking if strip-program is supported with this installer" >&5
17094 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
17095 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
17096 check_install_strip=no
17097 if test -f "$cf_install_program"
17099 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
17100 if test -n "$check_install_version"
17102 check_install_strip="option"
17104 for check_strip_variable in STRIPBIN STRIP
17106 if strings "$cf_install_program" | grep "^$check_strip_variable$" >/dev/null
17108 check_install_strip="environ"
17114 echo "$as_me:17114: result: $check_install_strip" >&5
17115 echo "${ECHO_T}$check_install_strip" >&6
17116 case "$check_install_strip" in
17118 { echo "$as_me:17118: WARNING: $cf_install_program does not support strip program option" >&5
17119 echo "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
17120 with_strip_program=no
17123 cat >install.tmp <<-CF_EOF
17125 STRIPBIN="$with_strip_program" \\
17126 STRIP="$with_strip_program" \\
17129 INSTALL="`pwd`/install.tmp"
17130 chmod +x "$INSTALL"
17131 test -n "$verbose" && echo " created $INSTALL" 1>&6
17133 echo "${as_me:-configure}:17133: testing created $INSTALL ..." 1>&5
17137 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
17143 # If we're avoiding relinking of shared libraries during install, that is to
17144 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
17145 # the install program has "-p" (for preserving timestamps).
17146 cf_cv_do_reranlib=yes
17147 if test "x$cf_cv_install_p" = xyes
17149 if test "x$cf_cv_do_relink" != xyes
17151 cf_cv_do_reranlib=no
17153 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
17157 ### use option --enable-warnings to turn on all gcc warnings
17159 echo "$as_me:17159: checking if you want to use C11 _Noreturn feature" >&5
17160 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17162 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17163 if test "${enable_stdnoreturn+set}" = set; then
17164 enableval="$enable_stdnoreturn"
17165 test "$enableval" != yes && enableval=no
17166 if test "$enableval" != "no" ; then
17167 enable_stdnoreturn=yes
17169 enable_stdnoreturn=no
17173 enable_stdnoreturn=no
17176 echo "$as_me:17176: result: $enable_stdnoreturn" >&5
17177 echo "${ECHO_T}$enable_stdnoreturn" >&6
17179 if test $enable_stdnoreturn = yes; then
17180 echo "$as_me:17180: checking for C11 _Noreturn feature" >&5
17181 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17182 if test "${cf_cv_c11_noreturn+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 cat >"conftest.$ac_ext" <<_ACEOF
17186 #line 17186 "configure"
17187 #include "confdefs.h"
17189 $ac_includes_default
17190 #include <stdnoreturn.h>
17191 static _Noreturn void giveup(void) { exit(0); }
17196 if (feof(stdin)) giveup()
17201 rm -f "conftest.$ac_objext"
17202 if { (eval echo "$as_me:17202: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>&5
17205 echo "$as_me:17205: \$? = $ac_status" >&5
17206 (exit "$ac_status"); } &&
17207 { ac_try='test -s "conftest.$ac_objext"'
17208 { (eval echo "$as_me:17208: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:17211: \$? = $ac_status" >&5
17212 (exit "$ac_status"); }; }; then
17213 cf_cv_c11_noreturn=yes
17215 echo "$as_me: failed program was:" >&5
17216 cat "conftest.$ac_ext" >&5
17217 cf_cv_c11_noreturn=no
17219 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17222 echo "$as_me:17222: result: $cf_cv_c11_noreturn" >&5
17223 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17225 cf_cv_c11_noreturn=no,
17228 if test "$cf_cv_c11_noreturn" = yes; then
17230 cat >>confdefs.h <<\EOF
17231 #define HAVE_STDNORETURN_H 1
17234 cat >>confdefs.h <<EOF
17235 #define STDC_NORETURN _Noreturn
17238 HAVE_STDNORETURN_H=1
17240 HAVE_STDNORETURN_H=0
17243 if test "$GCC" = yes || test "$GXX" = yes
17246 if test "$GCC" = yes || test "$GXX" = yes
17251 for cf_temp_scan in $CFLAGS
17253 case "x$cf_temp_scan" in
17256 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17257 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17262 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17263 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17268 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17269 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17274 if test "x$CFLAGS" != "x$cf_temp_flags"
17276 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17278 echo "${as_me:-configure}:17278: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17280 CFLAGS="$cf_temp_flags"
17281 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17283 echo "${as_me:-configure}:17283: testing ... fixed $CFLAGS ..." 1>&5
17285 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17287 echo "${as_me:-configure}:17287: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17294 if test "$GCC" = yes || test "$GXX" = yes
17299 for cf_temp_scan in $CPPFLAGS
17301 case "x$cf_temp_scan" in
17304 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17305 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17310 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17311 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17316 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17317 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17322 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17324 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17326 echo "${as_me:-configure}:17326: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17328 CPPFLAGS="$cf_temp_flags"
17329 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17331 echo "${as_me:-configure}:17331: testing ... fixed $CPPFLAGS ..." 1>&5
17333 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17335 echo "${as_me:-configure}:17335: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17342 if test "$GCC" = yes || test "$GXX" = yes
17347 for cf_temp_scan in $LDFLAGS
17349 case "x$cf_temp_scan" in
17352 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17353 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17358 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17359 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17364 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17365 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17370 if test "x$LDFLAGS" != "x$cf_temp_flags"
17372 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17374 echo "${as_me:-configure}:17374: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17376 LDFLAGS="$cf_temp_flags"
17377 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17379 echo "${as_me:-configure}:17379: testing ... fixed $LDFLAGS ..." 1>&5
17381 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17383 echo "${as_me:-configure}:17383: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17390 echo "$as_me:17390: checking if you want to turn on gcc warnings" >&5
17391 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17393 # Check whether --enable-warnings or --disable-warnings was given.
17394 if test "${enable_warnings+set}" = set; then
17395 enableval="$enable_warnings"
17396 test "$enableval" != yes && enableval=no
17397 if test "$enableval" != "no" ; then
17398 enable_warnings=yes
17407 echo "$as_me:17407: result: $enable_warnings" >&5
17408 echo "${ECHO_T}$enable_warnings" >&6
17409 if test "$enable_warnings" = "yes"
17412 if test "x$have_x" = xyes; then
17414 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17415 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17416 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17417 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17418 for cf_X_CFLAGS in $X_CFLAGS
17420 case "x$cf_X_CFLAGS" in
17422 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17425 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17430 cat >"conftest.$ac_ext" <<_ACEOF
17431 #line 17431 "configure"
17432 #include "confdefs.h"
17434 #include <stdlib.h>
17435 #include <X11/Intrinsic.h>
17440 String foo = malloc(1); free((void*)foo)
17445 rm -f "conftest.$ac_objext"
17446 if { (eval echo "$as_me:17446: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>&5
17449 echo "$as_me:17449: \$? = $ac_status" >&5
17450 (exit "$ac_status"); } &&
17451 { ac_try='test -s "conftest.$ac_objext"'
17452 { (eval echo "$as_me:17452: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:17455: \$? = $ac_status" >&5
17456 (exit "$ac_status"); }; }; then
17458 echo "$as_me:17458: checking for X11/Xt const-feature" >&5
17459 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17460 if test "${cf_cv_const_x_string+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 cat >"conftest.$ac_ext" <<_ACEOF
17465 #line 17465 "configure"
17466 #include "confdefs.h"
17468 #undef _CONST_X_STRING
17469 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17470 #undef XTSTRINGDEFINES /* X11R5 and later */
17471 #include <stdlib.h>
17472 #include <X11/Intrinsic.h>
17477 String foo = malloc(1); *foo = 0
17482 rm -f "conftest.$ac_objext"
17483 if { (eval echo "$as_me:17483: \"$ac_compile\"") >&5
17484 (eval $ac_compile) 2>&5
17486 echo "$as_me:17486: \$? = $ac_status" >&5
17487 (exit "$ac_status"); } &&
17488 { ac_try='test -s "conftest.$ac_objext"'
17489 { (eval echo "$as_me:17489: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:17492: \$? = $ac_status" >&5
17493 (exit "$ac_status"); }; }; then
17495 cf_cv_const_x_string=no
17498 echo "$as_me: failed program was:" >&5
17499 cat "conftest.$ac_ext" >&5
17501 cf_cv_const_x_string=yes
17504 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17507 echo "$as_me:17507: result: $cf_cv_const_x_string" >&5
17508 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17510 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17511 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17512 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17514 case "$cf_cv_const_x_string" in
17517 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17518 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17523 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17524 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17530 echo "$as_me: failed program was:" >&5
17531 cat "conftest.$ac_ext" >&5
17533 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17535 cat > "conftest.$ac_ext" <<EOF
17536 #line 17536 "${as_me:-configure}"
17537 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17539 if test "$INTEL_COMPILER" = yes
17541 # The "-wdXXX" options suppress warnings:
17542 # remark #1419: external declaration in primary source file
17543 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17544 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17545 # remark #193: zero used for undefined preprocessing identifier
17546 # remark #593: variable "curs_sb_left_arrow" was set but never used
17547 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17548 # remark #869: parameter "tw" was never referenced
17549 # remark #981: operands are evaluated in unspecified order
17550 # warning #279: controlling expression is constant
17552 { echo "$as_me:17552: checking for $CC warning options..." >&5
17553 echo "$as_me: checking for $CC warning options..." >&6;}
17554 cf_save_CFLAGS="$CFLAGS"
17555 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17567 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17568 if { (eval echo "$as_me:17568: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>&5
17571 echo "$as_me:17571: \$? = $ac_status" >&5
17572 (exit "$ac_status"); }; then
17573 test -n "$verbose" && echo "$as_me:17573: result: ... -$cf_opt" >&5
17574 echo "${ECHO_T}... -$cf_opt" >&6
17575 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17578 CFLAGS="$cf_save_CFLAGS"
17579 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17581 { echo "$as_me:17581: checking for $CC warning options..." >&5
17582 echo "$as_me: checking for $CC warning options..." >&6;}
17583 cf_save_CFLAGS="$CFLAGS"
17585 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17586 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17587 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17588 for cf_opt in W Wall \
17589 Wbad-function-cast \
17592 Wdeclaration-after-statement \
17595 Wmissing-declarations \
17596 Wmissing-prototypes \
17600 Wstrict-prototypes \
17601 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17603 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17604 if { (eval echo "$as_me:17604: \"$ac_compile\"") >&5
17605 (eval $ac_compile) 2>&5
17607 echo "$as_me:17607: \$? = $ac_status" >&5
17608 (exit "$ac_status"); }; then
17609 test -n "$verbose" && echo "$as_me:17609: result: ... -$cf_opt" >&5
17610 echo "${ECHO_T}... -$cf_opt" >&6
17613 case "$GCC_VERSION" in
17615 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17617 echo "${as_me:-configure}:17617: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17623 case "$GCC_VERSION" in
17625 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17627 echo "${as_me:-configure}:17627: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17633 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17636 CFLAGS="$cf_save_CFLAGS"
17642 if test "$GCC" = yes || test "$GXX" = yes
17644 cat > conftest.i <<EOF
17646 #define GCC_PRINTF 0
17649 #define GCC_SCANF 0
17651 #ifndef GCC_NORETURN
17652 #define GCC_NORETURN /* nothing */
17655 #define GCC_UNUSED /* nothing */
17658 if test "$GCC" = yes
17660 { echo "$as_me:17660: checking for $CC __attribute__ directives..." >&5
17661 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17662 cat > "conftest.$ac_ext" <<EOF
17663 #line 17663 "${as_me:-configure}"
17665 #include "confdefs.h"
17666 #include "conftest.h"
17667 #include "conftest.i"
17669 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17671 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17674 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17676 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17678 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17679 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17680 extern GCC_NORETURN void foo(void);
17681 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17683 cf_printf_attribute=no
17684 cf_scanf_attribute=no
17685 for cf_attribute in scanf printf unused noreturn
17688 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17690 cf_directive="__attribute__(($cf_attribute))"
17691 echo "checking for $CC $cf_directive" 1>&5
17693 case "$cf_attribute" in
17695 cf_printf_attribute=yes
17696 cat >conftest.h <<EOF
17697 #define GCC_$cf_ATTRIBUTE 1
17701 cf_scanf_attribute=yes
17702 cat >conftest.h <<EOF
17703 #define GCC_$cf_ATTRIBUTE 1
17707 cat >conftest.h <<EOF
17708 #define GCC_$cf_ATTRIBUTE $cf_directive
17713 if { (eval echo "$as_me:17713: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>&5
17716 echo "$as_me:17716: \$? = $ac_status" >&5
17717 (exit "$ac_status"); }; then
17718 test -n "$verbose" && echo "$as_me:17718: result: ... $cf_attribute" >&5
17719 echo "${ECHO_T}... $cf_attribute" >&6
17720 cat conftest.h >>confdefs.h
17721 case "$cf_attribute" in
17724 cat >>confdefs.h <<EOF
17725 #define GCC_NORETURN $cf_directive
17730 cf_value='/* nothing */'
17731 if test "$cf_printf_attribute" != no ; then
17732 cf_value='__attribute__((format(printf,fmt,var)))'
17734 cat >>confdefs.h <<\EOF
17735 #define GCC_PRINTF 1
17740 cat >>confdefs.h <<EOF
17741 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17746 cf_value='/* nothing */'
17747 if test "$cf_scanf_attribute" != no ; then
17748 cf_value='__attribute__((format(scanf,fmt,var)))'
17750 cat >>confdefs.h <<\EOF
17751 #define GCC_SCANF 1
17756 cat >>confdefs.h <<EOF
17757 #define GCC_SCANFLIKE(fmt,var) $cf_value
17763 cat >>confdefs.h <<EOF
17764 #define GCC_UNUSED $cf_directive
17772 ${FGREP-fgrep} define conftest.i >>confdefs.h
17779 if test "x$enable_warnings" = "xyes"; then
17781 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17783 if test "x$cf_with_cxx" = xyes ; then
17787 if test "$GCC" = yes ; then
17790 echo "$as_me:17790: checking if this is really Intel C++ compiler" >&5
17791 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17792 cf_save_CFLAGS="$CXXFLAGS"
17793 CXXFLAGS="$CXXFLAGS -no-gcc"
17794 cat >"conftest.$ac_ext" <<_ACEOF
17795 #line 17795 "configure"
17796 #include "confdefs.h"
17802 #ifdef __INTEL_COMPILER
17804 #error __INTEL_COMPILER is not defined
17811 rm -f "conftest.$ac_objext"
17812 if { (eval echo "$as_me:17812: \"$ac_compile\"") >&5
17813 (eval $ac_compile) 2>&5
17815 echo "$as_me:17815: \$? = $ac_status" >&5
17816 (exit "$ac_status"); } &&
17817 { ac_try='test -s "conftest.$ac_objext"'
17818 { (eval echo "$as_me:17818: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 echo "$as_me:17821: \$? = $ac_status" >&5
17822 (exit "$ac_status"); }; }; then
17823 INTEL_CPLUSPLUS=yes
17824 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17827 echo "$as_me: failed program was:" >&5
17828 cat "conftest.$ac_ext" >&5
17830 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17831 CXXFLAGS="$cf_save_CFLAGS"
17832 echo "$as_me:17832: result: $INTEL_CPLUSPLUS" >&5
17833 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17840 if test "$GCC" = yes ; then
17841 echo "$as_me:17841: checking if this is really Clang C++ compiler" >&5
17842 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17843 cf_save_CFLAGS="$CXXFLAGS"
17844 cat >"conftest.$ac_ext" <<_ACEOF
17845 #line 17845 "configure"
17846 #include "confdefs.h"
17854 #error __clang__ is not defined
17861 rm -f "conftest.$ac_objext"
17862 if { (eval echo "$as_me:17862: \"$ac_compile\"") >&5
17863 (eval $ac_compile) 2>&5
17865 echo "$as_me:17865: \$? = $ac_status" >&5
17866 (exit "$ac_status"); } &&
17867 { ac_try='test -s "conftest.$ac_objext"'
17868 { (eval echo "$as_me:17868: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17871 echo "$as_me:17871: \$? = $ac_status" >&5
17872 (exit "$ac_status"); }; }; then
17873 CLANG_CPLUSPLUS=yes
17876 echo "$as_me: failed program was:" >&5
17877 cat "conftest.$ac_ext" >&5
17879 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17880 CXXFLAGS="$cf_save_CFLAGS"
17881 echo "$as_me:17881: result: $CLANG_CPLUSPLUS" >&5
17882 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17887 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17889 (c[1-9][0-9]|*/c[1-9][0-9])
17890 { echo "$as_me:17890: WARNING: replacing broken compiler alias $CC" >&5
17891 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17892 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17897 echo "$as_me:17897: checking version of $CC" >&5
17898 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17899 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.].*//'`"
17900 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17901 echo "$as_me:17901: result: $CLANG_VERSION" >&5
17902 echo "${ECHO_T}$CLANG_VERSION" >&6
17904 for cf_clang_opt in \
17905 -Qunused-arguments \
17906 -Wno-error=implicit-function-declaration
17908 echo "$as_me:17908: checking if option $cf_clang_opt works" >&5
17909 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17910 cf_save_CFLAGS="$CFLAGS"
17911 CFLAGS="$CFLAGS $cf_clang_opt"
17912 cat >"conftest.$ac_ext" <<_ACEOF
17913 #line 17913 "configure"
17914 #include "confdefs.h"
17921 printf("hello!\\n");
17926 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17927 if { (eval echo "$as_me:17927: \"$ac_link\"") >&5
17928 (eval $ac_link) 2>&5
17930 echo "$as_me:17930: \$? = $ac_status" >&5
17931 (exit "$ac_status"); } &&
17932 { ac_try='test -s "conftest$ac_exeext"'
17933 { (eval echo "$as_me:17933: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:17936: \$? = $ac_status" >&5
17937 (exit "$ac_status"); }; }; then
17941 echo "$as_me: failed program was:" >&5
17942 cat "conftest.$ac_ext" >&5
17946 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17947 echo "$as_me:17947: result: $cf_clang_optok" >&5
17948 echo "${ECHO_T}$cf_clang_optok" >&6
17949 CFLAGS="$cf_save_CFLAGS"
17950 if test "$cf_clang_optok" = yes; then
17951 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17953 echo "${as_me:-configure}:17953: testing adding option $cf_clang_opt ..." 1>&5
17955 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17956 CFLAGS="${CFLAGS}$cf_clang_opt"
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17965 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17967 ac_main_return="return"
17969 cat > conftest.$ac_ext <<EOF
17970 #line 17970 "configure"
17971 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17974 if test "$INTEL_CPLUSPLUS" = yes
17976 # The "-wdXXX" options suppress warnings:
17977 # remark #1419: external declaration in primary source file
17978 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17979 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17980 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17981 # remark #193: zero used for undefined preprocessing identifier
17982 # remark #593: variable "curs_sb_left_arrow" was set but never used
17983 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17984 # remark #869: parameter "tw" was never referenced
17985 # remark #981: operands are evaluated in unspecified order
17986 # warning #269: invalid format string conversion
17988 { echo "$as_me:17988: checking for $CC warning options..." >&5
17989 echo "$as_me: checking for $CC warning options..." >&6;}
17990 cf_save_CXXFLAGS="$CXXFLAGS"
17991 EXTRA_CXXFLAGS="-Wall"
18004 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
18005 if { (eval echo "$as_me:18005: \"$ac_compile\"") >&5
18006 (eval $ac_compile) 2>&5
18008 echo "$as_me:18008: \$? = $ac_status" >&5
18009 (exit "$ac_status"); }; then
18010 test -n "$verbose" && echo "$as_me:18010: result: ... -$cf_opt" >&5
18011 echo "${ECHO_T}... -$cf_opt" >&6
18012 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
18015 CXXFLAGS="$cf_save_CXXFLAGS"
18017 elif test "$GXX" = yes
18019 { echo "$as_me:18019: checking for $CXX warning options..." >&5
18020 echo "$as_me: checking for $CXX warning options..." >&6;}
18021 cf_save_CXXFLAGS="$CXXFLAGS"
18022 EXTRA_CXXFLAGS="-W -Wall"
18023 cf_gxx_extra_warnings=""
18024 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
18025 case "$GXX_VERSION" in
18029 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
18036 Wignored-qualifiers \
18038 Woverloaded-virtual \
18046 Wundef $cf_gxx_extra_warnings Wno-unused
18048 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
18049 if { (eval echo "$as_me:18049: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>&5
18052 echo "$as_me:18052: \$? = $ac_status" >&5
18053 (exit "$ac_status"); }; then
18054 test -n "$verbose" && echo "$as_me:18054: result: ... -$cf_opt" >&5
18055 echo "${ECHO_T}... -$cf_opt" >&6
18056 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
18058 test -n "$verbose" && echo "$as_me:18058: result: ... no -$cf_opt" >&5
18059 echo "${ECHO_T}... no -$cf_opt" >&6
18062 CXXFLAGS="$cf_save_CXXFLAGS"
18067 ac_cpp='$CPP $CPPFLAGS'
18068 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
18069 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
18070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18071 ac_main_return="return"
18076 echo "$as_me:18076: checking if you want to work around bogus compiler/loader warnings" >&5
18077 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
18079 # Check whether --enable-string-hacks or --disable-string-hacks was given.
18080 if test "${enable_string_hacks+set}" = set; then
18081 enableval="$enable_string_hacks"
18082 enable_string_hacks=$enableval
18084 enable_string_hacks=no
18086 echo "$as_me:18086: result: $enable_string_hacks" >&5
18087 echo "${ECHO_T}$enable_string_hacks" >&6
18089 if test "x$enable_string_hacks" = "xyes"; then
18091 cat >>confdefs.h <<\EOF
18092 #define USE_STRING_HACKS 1
18095 { echo "$as_me:18095: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
18096 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
18097 echo "$as_me:18097: checking for strlcat" >&5
18098 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18099 if test "${ac_cv_func_strlcat+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 cat >"conftest.$ac_ext" <<_ACEOF
18103 #line 18103 "configure"
18104 #include "confdefs.h"
18105 #define strlcat autoconf_temporary
18106 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18113 /* We use char because int might match the return type of a gcc2
18114 builtin and then its argument prototype would still apply. */
18115 char strlcat (void);
18121 /* The GNU C library defines stubs for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined (__stub_strlcat) || defined (__stub___strlcat)
18125 #error found stub for strlcat
18133 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18134 if { (eval echo "$as_me:18134: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>&5
18137 echo "$as_me:18137: \$? = $ac_status" >&5
18138 (exit "$ac_status"); } &&
18139 { ac_try='test -s "conftest$ac_exeext"'
18140 { (eval echo "$as_me:18140: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:18143: \$? = $ac_status" >&5
18144 (exit "$ac_status"); }; }; then
18145 ac_cv_func_strlcat=yes
18147 echo "$as_me: failed program was:" >&5
18148 cat "conftest.$ac_ext" >&5
18149 ac_cv_func_strlcat=no
18151 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18153 echo "$as_me:18153: result: $ac_cv_func_strlcat" >&5
18154 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18155 if test "$ac_cv_func_strlcat" = yes; then
18157 cat >>confdefs.h <<\EOF
18158 #define HAVE_STRLCAT 1
18163 echo "$as_me:18163: checking for strlcat in -lbsd" >&5
18164 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18165 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 ac_check_lib_save_LIBS=$LIBS
18170 cat >"conftest.$ac_ext" <<_ACEOF
18171 #line 18171 "configure"
18172 #include "confdefs.h"
18174 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180 char strlcat (void);
18189 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18190 if { (eval echo "$as_me:18190: \"$ac_link\"") >&5
18191 (eval $ac_link) 2>&5
18193 echo "$as_me:18193: \$? = $ac_status" >&5
18194 (exit "$ac_status"); } &&
18195 { ac_try='test -s "conftest$ac_exeext"'
18196 { (eval echo "$as_me:18196: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 echo "$as_me:18199: \$? = $ac_status" >&5
18200 (exit "$ac_status"); }; }; then
18201 ac_cv_lib_bsd_strlcat=yes
18203 echo "$as_me: failed program was:" >&5
18204 cat "conftest.$ac_ext" >&5
18205 ac_cv_lib_bsd_strlcat=no
18207 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18208 LIBS=$ac_check_lib_save_LIBS
18210 echo "$as_me:18210: result: $ac_cv_lib_bsd_strlcat" >&5
18211 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18212 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18214 cf_add_libs="$LIBS"
18217 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18218 # filter duplicates
18219 for cf_add_1lib in $cf_add_0lib; do
18220 for cf_add_2lib in $cf_add_libs; do
18221 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18226 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18228 LIBS="$cf_add_libs"
18230 for ac_header in bsd/string.h
18232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18233 echo "$as_me:18233: checking for $ac_header" >&5
18234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 cat >"conftest.$ac_ext" <<_ACEOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18241 #include <$ac_header>
18243 if { (eval echo "$as_me:18243: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18244 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18246 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:18249: \$? = $ac_status" >&5
18250 (exit "$ac_status"); } >/dev/null; then
18251 if test -s conftest.err; then
18252 ac_cpp_err=$ac_c_preproc_warn_flag
18259 if test -z "$ac_cpp_err"; then
18260 eval "$as_ac_Header=yes"
18262 echo "$as_me: failed program was:" >&5
18263 cat "conftest.$ac_ext" >&5
18264 eval "$as_ac_Header=no"
18266 rm -f conftest.err "conftest.$ac_ext"
18268 echo "$as_me:18268: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18269 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18270 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18271 cat >>confdefs.h <<EOF
18272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18278 cat >>confdefs.h <<\EOF
18279 #define HAVE_STRLCAT 1
18286 for ac_func in strlcpy snprintf
18288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18289 echo "$as_me:18289: checking for $ac_func" >&5
18290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18291 if eval "test \"\${$as_ac_var+set}\" = set"; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 cat >"conftest.$ac_ext" <<_ACEOF
18295 #line 18295 "configure"
18296 #include "confdefs.h"
18297 #define $ac_func autoconf_temporary
18298 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18305 /* We use char because int might match the return type of a gcc2
18306 builtin and then its argument prototype would still apply. */
18307 char $ac_func (void);
18313 /* The GNU C library defines stubs for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18317 #error found stub for $ac_func
18320 return $ac_func ();
18325 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18326 if { (eval echo "$as_me:18326: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>&5
18329 echo "$as_me:18329: \$? = $ac_status" >&5
18330 (exit "$ac_status"); } &&
18331 { ac_try='test -s "conftest$ac_exeext"'
18332 { (eval echo "$as_me:18332: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18335 echo "$as_me:18335: \$? = $ac_status" >&5
18336 (exit "$ac_status"); }; }; then
18337 eval "$as_ac_var=yes"
18339 echo "$as_me: failed program was:" >&5
18340 cat "conftest.$ac_ext" >&5
18341 eval "$as_ac_var=no"
18343 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18345 echo "$as_me:18345: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18346 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18347 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18348 cat >>confdefs.h <<EOF
18349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18357 ### use option --enable-assertions to turn on generation of assertion code
18358 echo "$as_me:18358: checking if you want to enable runtime assertions" >&5
18359 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18361 # Check whether --enable-assertions or --disable-assertions was given.
18362 if test "${enable_assertions+set}" = set; then
18363 enableval="$enable_assertions"
18364 with_assertions=$enableval
18368 echo "$as_me:18368: result: $with_assertions" >&5
18369 echo "${ECHO_T}$with_assertions" >&6
18372 if test "$with_assertions" = no
18374 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18377 ADAFLAGS="$ADAFLAGS -gnata"
18382 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18384 echo "$as_me:18384: checking if you want to use dmalloc for testing" >&5
18385 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18387 # Check whether --with-dmalloc or --without-dmalloc was given.
18388 if test "${with_dmalloc+set}" = set; then
18389 withval="$with_dmalloc"
18390 case "x$withval" in
18393 : "${with_cflags:=-g}"
18394 : "${enable_leaks:=no}"
18397 cat >>confdefs.h <<EOF
18398 #define USE_DMALLOC 1
18406 echo "$as_me:18406: result: ${with_dmalloc:-no}" >&5
18407 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18409 case ".$with_cflags" in
18419 cf_new_extra_cppflags=
18421 for cf_add_cflags in -g
18423 case "$cf_fix_cppflags" in
18425 case "$cf_add_cflags" in
18426 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18427 case "$cf_add_cflags" in
18429 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18431 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18432 && test -z "${cf_tst_cflags}" \
18433 && cf_fix_cppflags=yes
18435 if test "$cf_fix_cppflags" = yes ; then
18437 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18438 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18441 elif test "${cf_tst_cflags}" = "\"'" ; then
18443 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18444 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18450 case "$CPPFLAGS" in
18454 case "$cf_add_cflags" in
18456 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18458 CPPFLAGS=`echo "$CPPFLAGS" | \
18459 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18460 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18465 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18466 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18473 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18474 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18481 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18482 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18484 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18486 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18487 && test -z "${cf_tst_cflags}" \
18488 && cf_fix_cppflags=no
18493 if test -n "$cf_new_cflags" ; then
18495 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18496 CFLAGS="${CFLAGS}$cf_new_cflags"
18500 if test -n "$cf_new_cppflags" ; then
18502 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18503 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18507 if test -n "$cf_new_extra_cppflags" ; then
18509 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18510 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18519 if test "$with_dmalloc" = yes ; then
18520 echo "$as_me:18520: checking for dmalloc.h" >&5
18521 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18522 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 cat >"conftest.$ac_ext" <<_ACEOF
18526 #line 18526 "configure"
18527 #include "confdefs.h"
18528 #include <dmalloc.h>
18530 if { (eval echo "$as_me:18530: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18531 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18533 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18535 cat conftest.err >&5
18536 echo "$as_me:18536: \$? = $ac_status" >&5
18537 (exit "$ac_status"); } >/dev/null; then
18538 if test -s conftest.err; then
18539 ac_cpp_err=$ac_c_preproc_warn_flag
18546 if test -z "$ac_cpp_err"; then
18547 ac_cv_header_dmalloc_h=yes
18549 echo "$as_me: failed program was:" >&5
18550 cat "conftest.$ac_ext" >&5
18551 ac_cv_header_dmalloc_h=no
18553 rm -f conftest.err "conftest.$ac_ext"
18555 echo "$as_me:18555: result: $ac_cv_header_dmalloc_h" >&5
18556 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18557 if test "$ac_cv_header_dmalloc_h" = yes; then
18559 echo "$as_me:18559: checking for dmalloc_debug in -ldmalloc" >&5
18560 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18561 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-ldmalloc $LIBS"
18566 cat >"conftest.$ac_ext" <<_ACEOF
18567 #line 18567 "configure"
18568 #include "confdefs.h"
18570 /* Override any gcc2 internal prototype to avoid an error. */
18574 /* We use char because int might match the return type of a gcc2
18575 builtin and then its argument prototype would still apply. */
18576 char dmalloc_debug (void);
18585 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18586 if { (eval echo "$as_me:18586: \"$ac_link\"") >&5
18587 (eval $ac_link) 2>&5
18589 echo "$as_me:18589: \$? = $ac_status" >&5
18590 (exit "$ac_status"); } &&
18591 { ac_try='test -s "conftest$ac_exeext"'
18592 { (eval echo "$as_me:18592: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18595 echo "$as_me:18595: \$? = $ac_status" >&5
18596 (exit "$ac_status"); }; }; then
18597 ac_cv_lib_dmalloc_dmalloc_debug=yes
18599 echo "$as_me: failed program was:" >&5
18600 cat "conftest.$ac_ext" >&5
18601 ac_cv_lib_dmalloc_dmalloc_debug=no
18603 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18604 LIBS=$ac_check_lib_save_LIBS
18606 echo "$as_me:18606: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18607 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18608 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18609 cat >>confdefs.h <<EOF
18610 #define HAVE_LIBDMALLOC 1
18613 LIBS="-ldmalloc $LIBS"
18621 echo "$as_me:18621: checking if you want to use dbmalloc for testing" >&5
18622 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18624 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18625 if test "${with_dbmalloc+set}" = set; then
18626 withval="$with_dbmalloc"
18627 case "x$withval" in
18630 : "${with_cflags:=-g}"
18631 : "${enable_leaks:=no}"
18634 cat >>confdefs.h <<EOF
18635 #define USE_DBMALLOC 1
18643 echo "$as_me:18643: result: ${with_dbmalloc:-no}" >&5
18644 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18646 case ".$with_cflags" in
18656 cf_new_extra_cppflags=
18658 for cf_add_cflags in -g
18660 case "$cf_fix_cppflags" in
18662 case "$cf_add_cflags" in
18663 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18664 case "$cf_add_cflags" in
18666 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18668 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18669 && test -z "${cf_tst_cflags}" \
18670 && cf_fix_cppflags=yes
18672 if test "$cf_fix_cppflags" = yes ; then
18674 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18675 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18678 elif test "${cf_tst_cflags}" = "\"'" ; then
18680 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18681 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18687 case "$CPPFLAGS" in
18691 case "$cf_add_cflags" in
18693 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18695 CPPFLAGS=`echo "$CPPFLAGS" | \
18696 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18697 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18702 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18703 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18710 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18711 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18718 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18719 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18721 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18723 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18724 && test -z "${cf_tst_cflags}" \
18725 && cf_fix_cppflags=no
18730 if test -n "$cf_new_cflags" ; then
18732 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18733 CFLAGS="${CFLAGS}$cf_new_cflags"
18737 if test -n "$cf_new_cppflags" ; then
18739 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18740 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18744 if test -n "$cf_new_extra_cppflags" ; then
18746 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18747 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18756 if test "$with_dbmalloc" = yes ; then
18757 echo "$as_me:18757: checking for dbmalloc.h" >&5
18758 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18759 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 cat >"conftest.$ac_ext" <<_ACEOF
18763 #line 18763 "configure"
18764 #include "confdefs.h"
18765 #include <dbmalloc.h>
18767 if { (eval echo "$as_me:18767: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18768 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18770 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:18773: \$? = $ac_status" >&5
18774 (exit "$ac_status"); } >/dev/null; then
18775 if test -s conftest.err; then
18776 ac_cpp_err=$ac_c_preproc_warn_flag
18783 if test -z "$ac_cpp_err"; then
18784 ac_cv_header_dbmalloc_h=yes
18786 echo "$as_me: failed program was:" >&5
18787 cat "conftest.$ac_ext" >&5
18788 ac_cv_header_dbmalloc_h=no
18790 rm -f conftest.err "conftest.$ac_ext"
18792 echo "$as_me:18792: result: $ac_cv_header_dbmalloc_h" >&5
18793 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18794 if test "$ac_cv_header_dbmalloc_h" = yes; then
18796 echo "$as_me:18796: checking for debug_malloc in -ldbmalloc" >&5
18797 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18798 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-ldbmalloc $LIBS"
18803 cat >"conftest.$ac_ext" <<_ACEOF
18804 #line 18804 "configure"
18805 #include "confdefs.h"
18807 /* Override any gcc2 internal prototype to avoid an error. */
18811 /* We use char because int might match the return type of a gcc2
18812 builtin and then its argument prototype would still apply. */
18813 char debug_malloc (void);
18822 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18823 if { (eval echo "$as_me:18823: \"$ac_link\"") >&5
18824 (eval $ac_link) 2>&5
18826 echo "$as_me:18826: \$? = $ac_status" >&5
18827 (exit "$ac_status"); } &&
18828 { ac_try='test -s "conftest$ac_exeext"'
18829 { (eval echo "$as_me:18829: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18832 echo "$as_me:18832: \$? = $ac_status" >&5
18833 (exit "$ac_status"); }; }; then
18834 ac_cv_lib_dbmalloc_debug_malloc=yes
18836 echo "$as_me: failed program was:" >&5
18837 cat "conftest.$ac_ext" >&5
18838 ac_cv_lib_dbmalloc_debug_malloc=no
18840 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18841 LIBS=$ac_check_lib_save_LIBS
18843 echo "$as_me:18843: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18844 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18845 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18846 cat >>confdefs.h <<EOF
18847 #define HAVE_LIBDBMALLOC 1
18850 LIBS="-ldbmalloc $LIBS"
18858 echo "$as_me:18858: checking if you want to use valgrind for testing" >&5
18859 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18861 # Check whether --with-valgrind or --without-valgrind was given.
18862 if test "${with_valgrind+set}" = set; then
18863 withval="$with_valgrind"
18864 case "x$withval" in
18867 : "${with_cflags:=-g}"
18868 : "${enable_leaks:=no}"
18871 cat >>confdefs.h <<EOF
18872 #define USE_VALGRIND 1
18880 echo "$as_me:18880: result: ${with_valgrind:-no}" >&5
18881 echo "${ECHO_T}${with_valgrind:-no}" >&6
18883 case ".$with_cflags" in
18893 cf_new_extra_cppflags=
18895 for cf_add_cflags in -g
18897 case "$cf_fix_cppflags" in
18899 case "$cf_add_cflags" in
18900 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18901 case "$cf_add_cflags" in
18903 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18905 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18906 && test -z "${cf_tst_cflags}" \
18907 && cf_fix_cppflags=yes
18909 if test "$cf_fix_cppflags" = yes ; then
18911 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18912 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18915 elif test "${cf_tst_cflags}" = "\"'" ; then
18917 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18918 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18924 case "$CPPFLAGS" in
18928 case "$cf_add_cflags" in
18930 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18932 CPPFLAGS=`echo "$CPPFLAGS" | \
18933 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18934 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18939 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18940 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18947 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18948 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18955 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18956 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18958 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18960 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18961 && test -z "${cf_tst_cflags}" \
18962 && cf_fix_cppflags=no
18967 if test -n "$cf_new_cflags" ; then
18969 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18970 CFLAGS="${CFLAGS}$cf_new_cflags"
18974 if test -n "$cf_new_cppflags" ; then
18976 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18977 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18981 if test -n "$cf_new_extra_cppflags" ; then
18983 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18984 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18993 echo "$as_me:18993: checking if you want to perform memory-leak testing" >&5
18994 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18996 # Check whether --enable-leaks or --disable-leaks was given.
18997 if test "${enable_leaks+set}" = set; then
18998 enableval="$enable_leaks"
18999 enable_leaks=$enableval
19003 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
19004 echo "$as_me:19004: result: $with_no_leaks" >&5
19005 echo "${ECHO_T}$with_no_leaks" >&6
19007 if test "$enable_leaks" = no ; then
19009 cat >>confdefs.h <<\EOF
19013 cat >>confdefs.h <<\EOF
19014 #define YY_NO_LEAKS 1
19019 cat >>confdefs.h <<\EOF
19020 #define HAVE_NC_ALLOC_H 1
19023 ### use option --enable-expanded to generate certain macros as functions
19025 # Check whether --enable-expanded or --disable-expanded was given.
19026 if test "${enable_expanded+set}" = set; then
19027 enableval="$enable_expanded"
19028 test "x$enableval" = xyes &&
19029 cat >>confdefs.h <<\EOF
19030 #define NCURSES_EXPANDED 1
19035 ### use option --disable-macros to suppress macros in favor of functions
19037 # Check whether --enable-macros or --disable-macros was given.
19038 if test "${enable_macros+set}" = set; then
19039 enableval="$enable_macros"
19040 test "$enableval" = no &&
19041 cat >>confdefs.h <<\EOF
19042 #define NCURSES_NOMACROS 1
19047 # Normally we only add trace() to the debug-library. Allow this to be
19048 # extended to all models of the ncurses library:
19050 case "$CFLAGS $CPPFLAGS" in
19056 echo "$as_me:19056: checking whether to add trace feature to all models" >&5
19057 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
19059 # Check whether --with-trace or --without-trace was given.
19060 if test "${with_trace+set}" = set; then
19061 withval="$with_trace"
19062 cf_with_trace=$withval
19064 cf_with_trace=$cf_all_traces
19066 echo "$as_me:19066: result: $cf_with_trace" >&5
19067 echo "${ECHO_T}$cf_with_trace" >&6
19069 if test "x$cf_with_trace" = xyes ; then
19076 cf_new_extra_cppflags=
19078 for cf_add_cflags in -DTRACE
19080 case "$cf_fix_cppflags" in
19082 case "$cf_add_cflags" in
19083 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19084 case "$cf_add_cflags" in
19086 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19089 && test -z "${cf_tst_cflags}" \
19090 && cf_fix_cppflags=yes
19092 if test "$cf_fix_cppflags" = yes ; then
19094 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19095 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19098 elif test "${cf_tst_cflags}" = "\"'" ; then
19100 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19101 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19107 case "$CPPFLAGS" in
19111 case "$cf_add_cflags" in
19113 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19115 CPPFLAGS=`echo "$CPPFLAGS" | \
19116 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19117 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19122 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19123 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19130 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19131 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19141 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19144 && test -z "${cf_tst_cflags}" \
19145 && cf_fix_cppflags=no
19150 if test -n "$cf_new_cflags" ; then
19152 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19153 CFLAGS="${CFLAGS}$cf_new_cflags"
19157 if test -n "$cf_new_cppflags" ; then
19159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19160 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19164 if test -n "$cf_new_extra_cppflags" ; then
19166 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19167 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19171 cat >>confdefs.h <<\EOF
19172 #define HAVE__TRACEF 1
19180 echo "$as_me:19180: checking if we want to use GNAT projects" >&5
19181 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19183 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19184 if test "${enable_gnat_projects+set}" = set; then
19185 enableval="$enable_gnat_projects"
19186 test "$enableval" != no && enableval=yes
19187 if test "$enableval" != "yes" ; then
19188 enable_gnat_projects=no
19190 enable_gnat_projects=yes
19194 enable_gnat_projects=yes
19197 echo "$as_me:19197: result: $enable_gnat_projects" >&5
19198 echo "${ECHO_T}$enable_gnat_projects" >&6
19200 ### Checks for libraries.
19201 case "$cf_cv_system_name" in
19202 (*mingw32*|*mingw64*)
19203 # Note: WINVER may be a problem with Windows 10
19204 if test "x$with_exp_win32" = xyes ; then
19205 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19207 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19210 echo "$as_me:19210: checking if ssp library is needed" >&5
19211 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19212 if test "${cf_cv_need_libssp+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 cat >"conftest.$ac_ext" <<_ACEOF
19217 #line 19217 "configure"
19218 #include "confdefs.h"
19220 #include <sys/types.h>
19221 #include <dirent.h>
19227 DIR *dp = opendir(".");
19233 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19234 if { (eval echo "$as_me:19234: \"$ac_link\"") >&5
19235 (eval $ac_link) 2>&5
19237 echo "$as_me:19237: \$? = $ac_status" >&5
19238 (exit "$ac_status"); } &&
19239 { ac_try='test -s "conftest$ac_exeext"'
19240 { (eval echo "$as_me:19240: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:19243: \$? = $ac_status" >&5
19244 (exit "$ac_status"); }; }; then
19245 cf_cv_need_libssp=no
19247 echo "$as_me: failed program was:" >&5
19248 cat "conftest.$ac_ext" >&5
19250 cf_save_LIBS="$LIBS"
19252 cat >"conftest.$ac_ext" <<_ACEOF
19253 #line 19253 "configure"
19254 #include "confdefs.h"
19256 #include <sys/types.h>
19257 #include <dirent.h>
19263 DIR *dp = opendir(".");
19269 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19270 if { (eval echo "$as_me:19270: \"$ac_link\"") >&5
19271 (eval $ac_link) 2>&5
19273 echo "$as_me:19273: \$? = $ac_status" >&5
19274 (exit "$ac_status"); } &&
19275 { ac_try='test -s "conftest$ac_exeext"'
19276 { (eval echo "$as_me:19276: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19279 echo "$as_me:19279: \$? = $ac_status" >&5
19280 (exit "$ac_status"); }; }; then
19281 cf_cv_need_libssp=yes
19283 echo "$as_me: failed program was:" >&5
19284 cat "conftest.$ac_ext" >&5
19285 cf_cv_need_libssp=maybe
19287 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19288 LIBS="$cf_save_LIBS"
19291 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19293 echo "$as_me:19293: result: $cf_cv_need_libssp" >&5
19294 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19296 if test "x$cf_cv_need_libssp" = xyes
19299 cf_add_libs="$LIBS"
19302 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19303 # filter duplicates
19304 for cf_add_1lib in $cf_add_0lib; do
19305 for cf_add_2lib in $cf_add_libs; do
19306 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19311 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19313 LIBS="$cf_add_libs"
19322 echo "$as_me:19322: checking if -lm needed for math functions" >&5
19323 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19324 if test "${cf_cv_need_libm+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 cat >"conftest.$ac_ext" <<_ACEOF
19329 #line 19329 "configure"
19330 #include "confdefs.h"
19333 #include <stdlib.h>
19339 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19344 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19345 if { (eval echo "$as_me:19345: \"$ac_link\"") >&5
19346 (eval $ac_link) 2>&5
19348 echo "$as_me:19348: \$? = $ac_status" >&5
19349 (exit "$ac_status"); } &&
19350 { ac_try='test -s "conftest$ac_exeext"'
19351 { (eval echo "$as_me:19351: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 echo "$as_me:19354: \$? = $ac_status" >&5
19355 (exit "$ac_status"); }; }; then
19358 echo "$as_me: failed program was:" >&5
19359 cat "conftest.$ac_ext" >&5
19360 cf_cv_need_libm=yes
19362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19364 echo "$as_me:19364: result: $cf_cv_need_libm" >&5
19365 echo "${ECHO_T}$cf_cv_need_libm" >&6
19367 if test "$cf_cv_need_libm" = yes
19370 cf_save_LIBS="$LIBS"
19372 echo "$as_me:19372: checking if -lm is available for math functions" >&5
19373 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19374 if test "${cf_cv_have_libm+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 cat >"conftest.$ac_ext" <<_ACEOF
19379 #line 19379 "configure"
19380 #include "confdefs.h"
19383 #include <stdlib.h>
19389 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19394 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19395 if { (eval echo "$as_me:19395: \"$ac_link\"") >&5
19396 (eval $ac_link) 2>&5
19398 echo "$as_me:19398: \$? = $ac_status" >&5
19399 (exit "$ac_status"); } &&
19400 { ac_try='test -s "conftest$ac_exeext"'
19401 { (eval echo "$as_me:19401: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:19404: \$? = $ac_status" >&5
19405 (exit "$ac_status"); }; }; then
19406 cf_cv_have_libm=yes
19408 echo "$as_me: failed program was:" >&5
19409 cat "conftest.$ac_ext" >&5
19412 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19414 echo "$as_me:19414: result: $cf_cv_have_libm" >&5
19415 echo "${ECHO_T}$cf_cv_have_libm" >&6
19416 LIBS="$cf_save_LIBS"
19418 if test "$cf_cv_have_libm" = yes
19423 cf_cv_have_libm=yes
19426 if test "$cf_cv_have_libm" = yes
19429 cat >>confdefs.h <<\EOF
19430 #define HAVE_MATH_FUNCS 1
19435 ### Checks for header files.
19436 echo "$as_me:19436: checking whether time.h and sys/time.h may both be included" >&5
19437 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19438 if test "${ac_cv_header_time+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 cat >"conftest.$ac_ext" <<_ACEOF
19442 #line 19442 "configure"
19443 #include "confdefs.h"
19444 #include <sys/types.h>
19445 #include <sys/time.h>
19451 if ((struct tm *) 0)
19457 rm -f "conftest.$ac_objext"
19458 if { (eval echo "$as_me:19458: \"$ac_compile\"") >&5
19459 (eval $ac_compile) 2>&5
19461 echo "$as_me:19461: \$? = $ac_status" >&5
19462 (exit "$ac_status"); } &&
19463 { ac_try='test -s "conftest.$ac_objext"'
19464 { (eval echo "$as_me:19464: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19467 echo "$as_me:19467: \$? = $ac_status" >&5
19468 (exit "$ac_status"); }; }; then
19469 ac_cv_header_time=yes
19471 echo "$as_me: failed program was:" >&5
19472 cat "conftest.$ac_ext" >&5
19473 ac_cv_header_time=no
19475 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19477 echo "$as_me:19477: result: $ac_cv_header_time" >&5
19478 echo "${ECHO_T}$ac_cv_header_time" >&6
19479 if test $ac_cv_header_time = yes; then
19481 cat >>confdefs.h <<\EOF
19482 #define TIME_WITH_SYS_TIME 1
19491 # -lsystre -ltre -lintl -liconv
19492 echo "$as_me:19492: checking for regcomp in -lsystre" >&5
19493 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19494 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lsystre $LIBS"
19499 cat >"conftest.$ac_ext" <<_ACEOF
19500 #line 19500 "configure"
19501 #include "confdefs.h"
19503 /* Override any gcc2 internal prototype to avoid an error. */
19507 /* We use char because int might match the return type of a gcc2
19508 builtin and then its argument prototype would still apply. */
19509 char regcomp (void);
19518 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19519 if { (eval echo "$as_me:19519: \"$ac_link\"") >&5
19520 (eval $ac_link) 2>&5
19522 echo "$as_me:19522: \$? = $ac_status" >&5
19523 (exit "$ac_status"); } &&
19524 { ac_try='test -s "conftest$ac_exeext"'
19525 { (eval echo "$as_me:19525: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19528 echo "$as_me:19528: \$? = $ac_status" >&5
19529 (exit "$ac_status"); }; }; then
19530 ac_cv_lib_systre_regcomp=yes
19532 echo "$as_me: failed program was:" >&5
19533 cat "conftest.$ac_ext" >&5
19534 ac_cv_lib_systre_regcomp=no
19536 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19537 LIBS=$ac_check_lib_save_LIBS
19539 echo "$as_me:19539: result: $ac_cv_lib_systre_regcomp" >&5
19540 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19541 if test "$ac_cv_lib_systre_regcomp" = yes; then
19543 echo "$as_me:19543: checking for libiconv_open in -liconv" >&5
19544 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19545 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 ac_check_lib_save_LIBS=$LIBS
19549 LIBS="-liconv $LIBS"
19550 cat >"conftest.$ac_ext" <<_ACEOF
19551 #line 19551 "configure"
19552 #include "confdefs.h"
19554 /* Override any gcc2 internal prototype to avoid an error. */
19558 /* We use char because int might match the return type of a gcc2
19559 builtin and then its argument prototype would still apply. */
19560 char libiconv_open (void);
19569 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19570 if { (eval echo "$as_me:19570: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>&5
19573 echo "$as_me:19573: \$? = $ac_status" >&5
19574 (exit "$ac_status"); } &&
19575 { ac_try='test -s "conftest$ac_exeext"'
19576 { (eval echo "$as_me:19576: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:19579: \$? = $ac_status" >&5
19580 (exit "$ac_status"); }; }; then
19581 ac_cv_lib_iconv_libiconv_open=yes
19583 echo "$as_me: failed program was:" >&5
19584 cat "conftest.$ac_ext" >&5
19585 ac_cv_lib_iconv_libiconv_open=no
19587 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19588 LIBS=$ac_check_lib_save_LIBS
19590 echo "$as_me:19590: result: $ac_cv_lib_iconv_libiconv_open" >&5
19591 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19592 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19594 cf_add_libs="$LIBS"
19597 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19598 # filter duplicates
19599 for cf_add_1lib in $cf_add_0lib; do
19600 for cf_add_2lib in $cf_add_libs; do
19601 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19606 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19608 LIBS="$cf_add_libs"
19612 echo "$as_me:19612: checking for libintl_gettext in -lintl" >&5
19613 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19614 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lintl $LIBS"
19619 cat >"conftest.$ac_ext" <<_ACEOF
19620 #line 19620 "configure"
19621 #include "confdefs.h"
19623 /* Override any gcc2 internal prototype to avoid an error. */
19627 /* We use char because int might match the return type of a gcc2
19628 builtin and then its argument prototype would still apply. */
19629 char libintl_gettext (void);
19633 libintl_gettext ();
19638 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19639 if { (eval echo "$as_me:19639: \"$ac_link\"") >&5
19640 (eval $ac_link) 2>&5
19642 echo "$as_me:19642: \$? = $ac_status" >&5
19643 (exit "$ac_status"); } &&
19644 { ac_try='test -s "conftest$ac_exeext"'
19645 { (eval echo "$as_me:19645: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19648 echo "$as_me:19648: \$? = $ac_status" >&5
19649 (exit "$ac_status"); }; }; then
19650 ac_cv_lib_intl_libintl_gettext=yes
19652 echo "$as_me: failed program was:" >&5
19653 cat "conftest.$ac_ext" >&5
19654 ac_cv_lib_intl_libintl_gettext=no
19656 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19657 LIBS=$ac_check_lib_save_LIBS
19659 echo "$as_me:19659: result: $ac_cv_lib_intl_libintl_gettext" >&5
19660 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19661 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19663 cf_add_libs="$LIBS"
19666 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19667 # filter duplicates
19668 for cf_add_1lib in $cf_add_0lib; do
19669 for cf_add_2lib in $cf_add_libs; do
19670 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19675 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19677 LIBS="$cf_add_libs"
19681 echo "$as_me:19681: checking for tre_regcomp in -ltre" >&5
19682 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19683 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 ac_check_lib_save_LIBS=$LIBS
19688 cat >"conftest.$ac_ext" <<_ACEOF
19689 #line 19689 "configure"
19690 #include "confdefs.h"
19692 /* Override any gcc2 internal prototype to avoid an error. */
19696 /* We use char because int might match the return type of a gcc2
19697 builtin and then its argument prototype would still apply. */
19698 char tre_regcomp (void);
19707 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19708 if { (eval echo "$as_me:19708: \"$ac_link\"") >&5
19709 (eval $ac_link) 2>&5
19711 echo "$as_me:19711: \$? = $ac_status" >&5
19712 (exit "$ac_status"); } &&
19713 { ac_try='test -s "conftest$ac_exeext"'
19714 { (eval echo "$as_me:19714: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:19717: \$? = $ac_status" >&5
19718 (exit "$ac_status"); }; }; then
19719 ac_cv_lib_tre_tre_regcomp=yes
19721 echo "$as_me: failed program was:" >&5
19722 cat "conftest.$ac_ext" >&5
19723 ac_cv_lib_tre_tre_regcomp=no
19725 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19726 LIBS=$ac_check_lib_save_LIBS
19728 echo "$as_me:19728: result: $ac_cv_lib_tre_tre_regcomp" >&5
19729 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19730 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19732 cf_add_libs="$LIBS"
19735 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19736 # filter duplicates
19737 for cf_add_1lib in $cf_add_0lib; do
19738 for cf_add_2lib in $cf_add_libs; do
19739 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19744 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19746 LIBS="$cf_add_libs"
19750 cf_add_libs="$LIBS"
19753 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19754 # filter duplicates
19755 for cf_add_1lib in $cf_add_0lib; do
19756 for cf_add_2lib in $cf_add_libs; do
19757 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19762 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19764 LIBS="$cf_add_libs"
19766 cf_regex_func=regcomp
19770 echo "$as_me:19770: checking for regcomp in -lgnurx" >&5
19771 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19772 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 ac_check_lib_save_LIBS=$LIBS
19776 LIBS="-lgnurx $LIBS"
19777 cat >"conftest.$ac_ext" <<_ACEOF
19778 #line 19778 "configure"
19779 #include "confdefs.h"
19781 /* Override any gcc2 internal prototype to avoid an error. */
19785 /* We use char because int might match the return type of a gcc2
19786 builtin and then its argument prototype would still apply. */
19787 char regcomp (void);
19796 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19797 if { (eval echo "$as_me:19797: \"$ac_link\"") >&5
19798 (eval $ac_link) 2>&5
19800 echo "$as_me:19800: \$? = $ac_status" >&5
19801 (exit "$ac_status"); } &&
19802 { ac_try='test -s "conftest$ac_exeext"'
19803 { (eval echo "$as_me:19803: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:19806: \$? = $ac_status" >&5
19807 (exit "$ac_status"); }; }; then
19808 ac_cv_lib_gnurx_regcomp=yes
19810 echo "$as_me: failed program was:" >&5
19811 cat "conftest.$ac_ext" >&5
19812 ac_cv_lib_gnurx_regcomp=no
19814 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19815 LIBS=$ac_check_lib_save_LIBS
19817 echo "$as_me:19817: result: $ac_cv_lib_gnurx_regcomp" >&5
19818 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19819 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19821 cf_add_libs="$LIBS"
19824 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19825 # filter duplicates
19826 for cf_add_1lib in $cf_add_0lib; do
19827 for cf_add_2lib in $cf_add_libs; do
19828 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19835 LIBS="$cf_add_libs"
19837 cf_regex_func=regcomp
19844 cf_regex_libs="regex re"
19845 echo "$as_me:19845: checking for regcomp" >&5
19846 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19847 if test "${ac_cv_func_regcomp+set}" = set; then
19848 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 cat >"conftest.$ac_ext" <<_ACEOF
19851 #line 19851 "configure"
19852 #include "confdefs.h"
19853 #define regcomp autoconf_temporary
19854 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19861 /* We use char because int might match the return type of a gcc2
19862 builtin and then its argument prototype would still apply. */
19863 char regcomp (void);
19869 /* The GNU C library defines stubs for functions which it implements
19870 to always fail with ENOSYS. Some functions are actually named
19871 something starting with __ and the normal name is an alias. */
19872 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19873 #error found stub for regcomp
19881 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19882 if { (eval echo "$as_me:19882: \"$ac_link\"") >&5
19883 (eval $ac_link) 2>&5
19885 echo "$as_me:19885: \$? = $ac_status" >&5
19886 (exit "$ac_status"); } &&
19887 { ac_try='test -s "conftest$ac_exeext"'
19888 { (eval echo "$as_me:19888: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19891 echo "$as_me:19891: \$? = $ac_status" >&5
19892 (exit "$ac_status"); }; }; then
19893 ac_cv_func_regcomp=yes
19895 echo "$as_me: failed program was:" >&5
19896 cat "conftest.$ac_ext" >&5
19897 ac_cv_func_regcomp=no
19899 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19901 echo "$as_me:19901: result: $ac_cv_func_regcomp" >&5
19902 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19903 if test "$ac_cv_func_regcomp" = yes; then
19904 cf_regex_func=regcomp
19907 for cf_regex_lib in $cf_regex_libs
19909 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19910 echo "$as_me:19910: checking for regcomp in -l$cf_regex_lib" >&5
19911 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 ac_check_lib_save_LIBS=$LIBS
19916 LIBS="-l$cf_regex_lib $LIBS"
19917 cat >"conftest.$ac_ext" <<_ACEOF
19918 #line 19918 "configure"
19919 #include "confdefs.h"
19921 /* Override any gcc2 internal prototype to avoid an error. */
19925 /* We use char because int might match the return type of a gcc2
19926 builtin and then its argument prototype would still apply. */
19927 char regcomp (void);
19936 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19937 if { (eval echo "$as_me:19937: \"$ac_link\"") >&5
19938 (eval $ac_link) 2>&5
19940 echo "$as_me:19940: \$? = $ac_status" >&5
19941 (exit "$ac_status"); } &&
19942 { ac_try='test -s "conftest$ac_exeext"'
19943 { (eval echo "$as_me:19943: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19946 echo "$as_me:19946: \$? = $ac_status" >&5
19947 (exit "$ac_status"); }; }; then
19948 eval "$as_ac_Lib=yes"
19950 echo "$as_me: failed program was:" >&5
19951 cat "conftest.$ac_ext" >&5
19952 eval "$as_ac_Lib=no"
19954 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19955 LIBS=$ac_check_lib_save_LIBS
19957 echo "$as_me:19957: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19958 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19959 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19961 cf_add_libs="$LIBS"
19964 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19965 # filter duplicates
19966 for cf_add_1lib in $cf_add_0lib; do
19967 for cf_add_2lib in $cf_add_libs; do
19968 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19973 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19975 LIBS="$cf_add_libs"
19977 cf_regex_func=regcomp
19988 if test "$cf_regex_func" = no ; then
19989 echo "$as_me:19989: checking for compile" >&5
19990 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19991 if test "${ac_cv_func_compile+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 cat >"conftest.$ac_ext" <<_ACEOF
19995 #line 19995 "configure"
19996 #include "confdefs.h"
19997 #define compile autoconf_temporary
19998 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20005 /* We use char because int might match the return type of a gcc2
20006 builtin and then its argument prototype would still apply. */
20007 char compile (void);
20013 /* The GNU C library defines stubs for functions which it implements
20014 to always fail with ENOSYS. Some functions are actually named
20015 something starting with __ and the normal name is an alias. */
20016 #if defined (__stub_compile) || defined (__stub___compile)
20017 #error found stub for compile
20025 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20026 if { (eval echo "$as_me:20026: \"$ac_link\"") >&5
20027 (eval $ac_link) 2>&5
20029 echo "$as_me:20029: \$? = $ac_status" >&5
20030 (exit "$ac_status"); } &&
20031 { ac_try='test -s "conftest$ac_exeext"'
20032 { (eval echo "$as_me:20032: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20035 echo "$as_me:20035: \$? = $ac_status" >&5
20036 (exit "$ac_status"); }; }; then
20037 ac_cv_func_compile=yes
20039 echo "$as_me: failed program was:" >&5
20040 cat "conftest.$ac_ext" >&5
20041 ac_cv_func_compile=no
20043 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20045 echo "$as_me:20045: result: $ac_cv_func_compile" >&5
20046 echo "${ECHO_T}$ac_cv_func_compile" >&6
20047 if test "$ac_cv_func_compile" = yes; then
20048 cf_regex_func=compile
20051 echo "$as_me:20051: checking for compile in -lgen" >&5
20052 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
20053 if test "${ac_cv_lib_gen_compile+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 ac_check_lib_save_LIBS=$LIBS
20058 cat >"conftest.$ac_ext" <<_ACEOF
20059 #line 20059 "configure"
20060 #include "confdefs.h"
20062 /* Override any gcc2 internal prototype to avoid an error. */
20066 /* We use char because int might match the return type of a gcc2
20067 builtin and then its argument prototype would still apply. */
20068 char compile (void);
20077 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20078 if { (eval echo "$as_me:20078: \"$ac_link\"") >&5
20079 (eval $ac_link) 2>&5
20081 echo "$as_me:20081: \$? = $ac_status" >&5
20082 (exit "$ac_status"); } &&
20083 { ac_try='test -s "conftest$ac_exeext"'
20084 { (eval echo "$as_me:20084: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:20087: \$? = $ac_status" >&5
20088 (exit "$ac_status"); }; }; then
20089 ac_cv_lib_gen_compile=yes
20091 echo "$as_me: failed program was:" >&5
20092 cat "conftest.$ac_ext" >&5
20093 ac_cv_lib_gen_compile=no
20095 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20096 LIBS=$ac_check_lib_save_LIBS
20098 echo "$as_me:20098: result: $ac_cv_lib_gen_compile" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
20100 if test "$ac_cv_lib_gen_compile" = yes; then
20102 cf_add_libs="$LIBS"
20105 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20106 # filter duplicates
20107 for cf_add_1lib in $cf_add_0lib; do
20108 for cf_add_2lib in $cf_add_libs; do
20109 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20114 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20116 LIBS="$cf_add_libs"
20118 cf_regex_func=compile
20125 if test "$cf_regex_func" = no ; then
20126 { echo "$as_me:20126: WARNING: cannot find regular expression library" >&5
20127 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
20130 echo "$as_me:20130: checking for regular-expression headers" >&5
20131 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
20132 if test "${cf_cv_regex_hdrs+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 cf_cv_regex_hdrs=no
20137 case "$cf_regex_func" in
20139 for cf_regex_hdr in regexp.h regexpr.h
20141 cat >"conftest.$ac_ext" <<_ACEOF
20142 #line 20142 "configure"
20143 #include "confdefs.h"
20144 #include <$cf_regex_hdr>
20149 char *p = compile("", "", "", 0);
20150 int x = step("", "");
20158 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20159 if { (eval echo "$as_me:20159: \"$ac_link\"") >&5
20160 (eval $ac_link) 2>&5
20162 echo "$as_me:20162: \$? = $ac_status" >&5
20163 (exit "$ac_status"); } &&
20164 { ac_try='test -s "conftest$ac_exeext"'
20165 { (eval echo "$as_me:20165: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:20168: \$? = $ac_status" >&5
20169 (exit "$ac_status"); }; }; then
20171 cf_cv_regex_hdrs=$cf_regex_hdr
20175 echo "$as_me: failed program was:" >&5
20176 cat "conftest.$ac_ext" >&5
20178 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20182 for cf_regex_hdr in regex.h
20184 cat >"conftest.$ac_ext" <<_ACEOF
20185 #line 20185 "configure"
20186 #include "confdefs.h"
20187 #include <sys/types.h>
20188 #include <$cf_regex_hdr>
20194 int x = regcomp(p, "", 0);
20195 int y = regexec(p, "", 0, 0, 0);
20204 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20205 if { (eval echo "$as_me:20205: \"$ac_link\"") >&5
20206 (eval $ac_link) 2>&5
20208 echo "$as_me:20208: \$? = $ac_status" >&5
20209 (exit "$ac_status"); } &&
20210 { ac_try='test -s "conftest$ac_exeext"'
20211 { (eval echo "$as_me:20211: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:20214: \$? = $ac_status" >&5
20215 (exit "$ac_status"); }; }; then
20217 cf_cv_regex_hdrs=$cf_regex_hdr
20221 echo "$as_me: failed program was:" >&5
20222 cat "conftest.$ac_ext" >&5
20224 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20230 echo "$as_me:20230: result: $cf_cv_regex_hdrs" >&5
20231 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20233 case "$cf_cv_regex_hdrs" in
20234 (no) { echo "$as_me:20234: WARNING: no regular expression header found" >&5
20235 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20237 cat >>confdefs.h <<\EOF
20238 #define HAVE_REGEX_H_FUNCS 1
20242 cat >>confdefs.h <<\EOF
20243 #define HAVE_REGEXP_H_FUNCS 1
20247 cat >>confdefs.h <<\EOF
20248 #define HAVE_REGEXPR_H_FUNCS 1
20271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20272 echo "$as_me:20272: checking for $ac_header" >&5
20273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 cat >"conftest.$ac_ext" <<_ACEOF
20278 #line 20278 "configure"
20279 #include "confdefs.h"
20280 #include <$ac_header>
20282 if { (eval echo "$as_me:20282: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20283 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20285 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20287 cat conftest.err >&5
20288 echo "$as_me:20288: \$? = $ac_status" >&5
20289 (exit "$ac_status"); } >/dev/null; then
20290 if test -s conftest.err; then
20291 ac_cpp_err=$ac_c_preproc_warn_flag
20298 if test -z "$ac_cpp_err"; then
20299 eval "$as_ac_Header=yes"
20301 echo "$as_me: failed program was:" >&5
20302 cat "conftest.$ac_ext" >&5
20303 eval "$as_ac_Header=no"
20305 rm -f conftest.err "conftest.$ac_ext"
20307 echo "$as_me:20307: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20308 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20309 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20310 cat >>confdefs.h <<EOF
20311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20317 for ac_header in unistd.h getopt.h
20319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20320 echo "$as_me:20320: checking for $ac_header" >&5
20321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >"conftest.$ac_ext" <<_ACEOF
20326 #line 20326 "configure"
20327 #include "confdefs.h"
20328 #include <$ac_header>
20330 if { (eval echo "$as_me:20330: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20331 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20333 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:20336: \$? = $ac_status" >&5
20337 (exit "$ac_status"); } >/dev/null; then
20338 if test -s conftest.err; then
20339 ac_cpp_err=$ac_c_preproc_warn_flag
20346 if test -z "$ac_cpp_err"; then
20347 eval "$as_ac_Header=yes"
20349 echo "$as_me: failed program was:" >&5
20350 cat "conftest.$ac_ext" >&5
20351 eval "$as_ac_Header=no"
20353 rm -f conftest.err "conftest.$ac_ext"
20355 echo "$as_me:20355: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20356 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20357 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20358 cat >>confdefs.h <<EOF
20359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20365 echo "$as_me:20365: checking for header declaring getopt variables" >&5
20366 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20367 if test "${cf_cv_getopt_header+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 cf_cv_getopt_header=none
20372 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20374 cat >"conftest.$ac_ext" <<_ACEOF
20375 #line 20375 "configure"
20376 #include "confdefs.h"
20378 #include <$cf_header>
20382 int x = optind; char *y = optarg; (void)x; (void)y
20387 rm -f "conftest.$ac_objext"
20388 if { (eval echo "$as_me:20388: \"$ac_compile\"") >&5
20389 (eval $ac_compile) 2>&5
20391 echo "$as_me:20391: \$? = $ac_status" >&5
20392 (exit "$ac_status"); } &&
20393 { ac_try='test -s "conftest.$ac_objext"'
20394 { (eval echo "$as_me:20394: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:20397: \$? = $ac_status" >&5
20398 (exit "$ac_status"); }; }; then
20399 cf_cv_getopt_header=$cf_header
20402 echo "$as_me: failed program was:" >&5
20403 cat "conftest.$ac_ext" >&5
20405 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20409 echo "$as_me:20409: result: $cf_cv_getopt_header" >&5
20410 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20411 if test "$cf_cv_getopt_header" != none ; then
20413 cat >>confdefs.h <<\EOF
20414 #define HAVE_GETOPT_HEADER 1
20418 if test "$cf_cv_getopt_header" = getopt.h ; then
20420 cat >>confdefs.h <<\EOF
20421 #define NEED_GETOPT_H 1
20426 echo "$as_me:20426: checking if external environ is declared" >&5
20427 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20428 if test "${cf_cv_dcl_environ+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 cat >"conftest.$ac_ext" <<_ACEOF
20433 #line 20433 "configure"
20434 #include "confdefs.h"
20436 $ac_includes_default
20440 void* x = (void*) environ; (void)x
20445 rm -f "conftest.$ac_objext"
20446 if { (eval echo "$as_me:20446: \"$ac_compile\"") >&5
20447 (eval $ac_compile) 2>&5
20449 echo "$as_me:20449: \$? = $ac_status" >&5
20450 (exit "$ac_status"); } &&
20451 { ac_try='test -s "conftest.$ac_objext"'
20452 { (eval echo "$as_me:20452: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20455 echo "$as_me:20455: \$? = $ac_status" >&5
20456 (exit "$ac_status"); }; }; then
20457 cf_cv_dcl_environ=yes
20459 echo "$as_me: failed program was:" >&5
20460 cat "conftest.$ac_ext" >&5
20461 cf_cv_dcl_environ=no
20463 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20466 echo "$as_me:20466: result: $cf_cv_dcl_environ" >&5
20467 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20469 if test "$cf_cv_dcl_environ" = no ; then
20471 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20473 cat >>confdefs.h <<EOF
20474 #define $cf_result 1
20479 # It's possible (for near-UNIX clones) that the data doesn't exist
20481 echo "$as_me:20481: checking if external environ exists" >&5
20482 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20483 if test "${cf_cv_have_environ+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 cat >"conftest.$ac_ext" <<_ACEOF
20488 #line 20488 "configure"
20489 #include "confdefs.h"
20492 extern int environ;
20502 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20503 if { (eval echo "$as_me:20503: \"$ac_link\"") >&5
20504 (eval $ac_link) 2>&5
20506 echo "$as_me:20506: \$? = $ac_status" >&5
20507 (exit "$ac_status"); } &&
20508 { ac_try='test -s "conftest$ac_exeext"'
20509 { (eval echo "$as_me:20509: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20512 echo "$as_me:20512: \$? = $ac_status" >&5
20513 (exit "$ac_status"); }; }; then
20514 cf_cv_have_environ=yes
20516 echo "$as_me: failed program was:" >&5
20517 cat "conftest.$ac_ext" >&5
20518 cf_cv_have_environ=no
20520 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20523 echo "$as_me:20523: result: $cf_cv_have_environ" >&5
20524 echo "${ECHO_T}$cf_cv_have_environ" >&6
20526 if test "$cf_cv_have_environ" = yes ; then
20528 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20530 cat >>confdefs.h <<EOF
20531 #define $cf_result 1
20536 echo "$as_me:20536: checking for getenv" >&5
20537 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20538 if test "${ac_cv_func_getenv+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 cat >"conftest.$ac_ext" <<_ACEOF
20542 #line 20542 "configure"
20543 #include "confdefs.h"
20544 #define getenv autoconf_temporary
20545 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20552 /* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20554 char getenv (void);
20560 /* The GNU C library defines stubs for functions which it implements
20561 to always fail with ENOSYS. Some functions are actually named
20562 something starting with __ and the normal name is an alias. */
20563 #if defined (__stub_getenv) || defined (__stub___getenv)
20564 #error found stub for getenv
20572 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20573 if { (eval echo "$as_me:20573: \"$ac_link\"") >&5
20574 (eval $ac_link) 2>&5
20576 echo "$as_me:20576: \$? = $ac_status" >&5
20577 (exit "$ac_status"); } &&
20578 { ac_try='test -s "conftest$ac_exeext"'
20579 { (eval echo "$as_me:20579: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:20582: \$? = $ac_status" >&5
20583 (exit "$ac_status"); }; }; then
20584 ac_cv_func_getenv=yes
20586 echo "$as_me: failed program was:" >&5
20587 cat "conftest.$ac_ext" >&5
20588 ac_cv_func_getenv=no
20590 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20592 echo "$as_me:20592: result: $ac_cv_func_getenv" >&5
20593 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20595 for ac_func in putenv setenv strdup
20597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20598 echo "$as_me:20598: checking for $ac_func" >&5
20599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20600 if eval "test \"\${$as_ac_var+set}\" = set"; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 cat >"conftest.$ac_ext" <<_ACEOF
20604 #line 20604 "configure"
20605 #include "confdefs.h"
20606 #define $ac_func autoconf_temporary
20607 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20614 /* We use char because int might match the return type of a gcc2
20615 builtin and then its argument prototype would still apply. */
20616 char $ac_func (void);
20622 /* The GNU C library defines stubs for functions which it implements
20623 to always fail with ENOSYS. Some functions are actually named
20624 something starting with __ and the normal name is an alias. */
20625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20626 #error found stub for $ac_func
20629 return $ac_func ();
20634 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20635 if { (eval echo "$as_me:20635: \"$ac_link\"") >&5
20636 (eval $ac_link) 2>&5
20638 echo "$as_me:20638: \$? = $ac_status" >&5
20639 (exit "$ac_status"); } &&
20640 { ac_try='test -s "conftest$ac_exeext"'
20641 { (eval echo "$as_me:20641: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20644 echo "$as_me:20644: \$? = $ac_status" >&5
20645 (exit "$ac_status"); }; }; then
20646 eval "$as_ac_var=yes"
20648 echo "$as_me: failed program was:" >&5
20649 cat "conftest.$ac_ext" >&5
20650 eval "$as_ac_var=no"
20652 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20654 echo "$as_me:20654: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20655 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20656 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20657 cat >>confdefs.h <<EOF
20658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20664 echo "$as_me:20664: checking if getenv returns consistent values" >&5
20665 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20666 if test "${cf_cv_consistent_getenv+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 if test "$cross_compiling" = yes; then
20671 cf_cv_consistent_getenv=unknown
20673 cat >"conftest.$ac_ext" <<_ACEOF
20674 #line 20674 "configure"
20675 #include "confdefs.h"
20677 $ac_includes_default
20679 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20680 extern char **environ; /* POSIX, but some systems are not... */
20683 #if defined(HAVE_STRDUP)
20684 #define str_alloc(s) strdup(s)
20686 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20689 static void set_value(const char *name, const char *value)
20691 #if defined(HAVE_SETENV)
20692 setenv(name, value, 1);
20693 #elif defined(HAVE_PUTENV)
20695 sprintf(buffer, "%s=%s", name, value);
20696 putenv(str_alloc(buffer));
20698 #error neither putenv/setenv found
20704 size_t numenv, limit, j;
20709 for (numenv = 0; environ[numenv]; ++numenv) ;
20710 limit = numenv + 10;
20711 mynames = (char **) calloc(limit + 1, sizeof(char *));
20712 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20713 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20714 #if defined(HAVE_ENVIRON)
20715 for (j = 0; environ[j]; ++j) {
20716 mynames[j] = str_alloc(environ[j]);
20717 equals = strchr(mynames[j], '=');
20720 myvalues[j] = str_alloc(equals);
20722 myvalues[j] = str_alloc("");
20726 for (j = numenv; j < limit; ++j) {
20734 sprintf(name, "TERM%lu", (unsigned long) k);
20735 for (jk = 0; jk < j; ++jk) {
20736 if (!strcmp(name, mynames[jk])) {
20743 sprintf(value, "%lu:%p", (unsigned long) k, (void*)&mynames[j]);
20744 set_value(name, value);
20745 mynames[j] = str_alloc(name);
20746 myvalues[j] = str_alloc(value);
20748 for (pass = 0; pass < 3; ++pass) {
20749 for (j = 0; j < limit; ++j) {
20750 char *value = getenv(mynames[j]);
20753 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20754 ${cf_cv_main_return:-return}(1);
20755 } else if (value != mypointer[j]) {
20756 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20757 ${cf_cv_main_return:-return}(1);
20758 } else if (strcmp(value, myvalues[j])) {
20759 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20760 ${cf_cv_main_return:-return}(1);
20764 mypointer[j] = value;
20765 for (k = 0; k < j; ++k) {
20766 if (mypointer[j] == mypointer[k]) {
20767 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20768 ${cf_cv_main_return:-return}(1);
20774 ${cf_cv_main_return:-return}(0);
20778 rm -f "conftest$ac_exeext"
20779 if { (eval echo "$as_me:20779: \"$ac_link\"") >&5
20780 (eval $ac_link) 2>&5
20782 echo "$as_me:20782: \$? = $ac_status" >&5
20783 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20784 { (eval echo "$as_me:20784: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20787 echo "$as_me:20787: \$? = $ac_status" >&5
20788 (exit "$ac_status"); }; }; then
20789 cf_cv_consistent_getenv=yes
20791 echo "$as_me: program exited with status $ac_status" >&5
20792 echo "$as_me: failed program was:" >&5
20793 cat "conftest.$ac_ext" >&5
20794 cf_cv_consistent_getenv=no
20796 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20800 echo "$as_me:20800: result: $cf_cv_consistent_getenv" >&5
20801 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20803 if test "x$cf_cv_consistent_getenv" = xno
20806 cat >>confdefs.h <<\EOF
20807 #define HAVE_CONSISTENT_GETENV 1
20812 if test "x$cf_cv_consistent_getenv" = xno && \
20813 test "x$cf_with_trace" = xyes
20815 { echo "$as_me:20815: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20816 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20819 echo "$as_me:20819: checking if sys/time.h works with sys/select.h" >&5
20820 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20821 if test "${cf_cv_sys_time_select+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 cat >"conftest.$ac_ext" <<_ACEOF
20826 #line 20826 "configure"
20827 #include "confdefs.h"
20829 #include <sys/types.h>
20830 #ifdef HAVE_SYS_TIME_H
20831 #include <sys/time.h>
20833 #ifdef HAVE_SYS_SELECT_H
20834 #include <sys/select.h>
20845 rm -f "conftest.$ac_objext"
20846 if { (eval echo "$as_me:20846: \"$ac_compile\"") >&5
20847 (eval $ac_compile) 2>&5
20849 echo "$as_me:20849: \$? = $ac_status" >&5
20850 (exit "$ac_status"); } &&
20851 { ac_try='test -s "conftest.$ac_objext"'
20852 { (eval echo "$as_me:20852: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:20855: \$? = $ac_status" >&5
20856 (exit "$ac_status"); }; }; then
20857 cf_cv_sys_time_select=yes
20859 echo "$as_me: failed program was:" >&5
20860 cat "conftest.$ac_ext" >&5
20861 cf_cv_sys_time_select=no
20863 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20867 echo "$as_me:20867: result: $cf_cv_sys_time_select" >&5
20868 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20869 test "$cf_cv_sys_time_select" = yes &&
20870 cat >>confdefs.h <<\EOF
20871 #define HAVE_SYS_TIME_SELECT 1
20874 ### checks for compiler characteristics
20876 ac_cpp='$CPP $CPPFLAGS'
20877 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20878 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880 ac_main_return="return"
20882 echo "$as_me:20882: checking for an ANSI C-conforming const" >&5
20883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20884 if test "${ac_cv_c_const+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 cat >"conftest.$ac_ext" <<_ACEOF
20888 #line 20888 "configure"
20889 #include "confdefs.h"
20894 /* FIXME: Include the comments suggested by Paul. */
20895 #ifndef __cplusplus
20896 /* Ultrix mips cc rejects this. */
20897 typedef int charset[2];
20898 const charset x; (void)x;
20899 /* SunOS 4.1.1 cc rejects this. */
20900 char const *const *ccp;
20902 /* NEC SVR4.0.2 mips cc rejects this. */
20903 struct point {int x, y;};
20904 static struct point const zero = {0,0}; (void)zero;
20905 /* AIX XL C 1.02.0.0 rejects this.
20906 It does not let you subtract one const X* pointer from another in
20907 an arm of an if-expression whose if-part is not a constant
20909 const char *g = "string";
20910 ccp = &g + (g ? g-g : 0);
20911 /* HPUX 7.0 cc rejects these. */
20914 ccp = (char const *const *) p;
20915 { /* SCO 3.2v4 cc rejects this. */
20917 char const *s = 0 ? (char *) 0 : (char const *) 0;
20922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20923 int x[] = {25, 17};
20924 const int *foo = &x[0];
20928 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20929 typedef const int *iptr;
20934 { /* AIX XL C 1.02.0.0 rejects this saying
20935 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20936 struct s { int j; const int *ap[3]; };
20937 struct s *b; b->j = 5;
20939 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20940 const int foo = 10;
20949 rm -f "conftest.$ac_objext"
20950 if { (eval echo "$as_me:20950: \"$ac_compile\"") >&5
20951 (eval $ac_compile) 2>&5
20953 echo "$as_me:20953: \$? = $ac_status" >&5
20954 (exit "$ac_status"); } &&
20955 { ac_try='test -s "conftest.$ac_objext"'
20956 { (eval echo "$as_me:20956: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20959 echo "$as_me:20959: \$? = $ac_status" >&5
20960 (exit "$ac_status"); }; }; then
20963 echo "$as_me: failed program was:" >&5
20964 cat "conftest.$ac_ext" >&5
20967 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20969 echo "$as_me:20969: result: $ac_cv_c_const" >&5
20970 echo "${ECHO_T}$ac_cv_c_const" >&6
20971 if test $ac_cv_c_const = no; then
20973 cat >>confdefs.h <<\EOF
20979 echo "$as_me:20979: checking for inline" >&5
20980 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20981 if test "${ac_cv_c_inline+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 for ac_kw in inline __inline__ __inline; do
20986 cat >"conftest.$ac_ext" <<_ACEOF
20987 #line 20987 "configure"
20988 #include "confdefs.h"
20989 #ifndef __cplusplus
20990 static $ac_kw int static_foo (void) {return 0; }
20991 $ac_kw int foo (void) {return 0; }
20995 rm -f "conftest.$ac_objext"
20996 if { (eval echo "$as_me:20996: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>&5
20999 echo "$as_me:20999: \$? = $ac_status" >&5
21000 (exit "$ac_status"); } &&
21001 { ac_try='test -s "conftest.$ac_objext"'
21002 { (eval echo "$as_me:21002: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:21005: \$? = $ac_status" >&5
21006 (exit "$ac_status"); }; }; then
21007 ac_cv_c_inline=$ac_kw; break
21009 echo "$as_me: failed program was:" >&5
21010 cat "conftest.$ac_ext" >&5
21012 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21016 echo "$as_me:21016: result: $ac_cv_c_inline" >&5
21017 echo "${ECHO_T}$ac_cv_c_inline" >&6
21018 case $ac_cv_c_inline in
21021 cat >>confdefs.h <<\EOF
21025 *) cat >>confdefs.h <<EOF
21026 #define inline $ac_cv_c_inline
21032 if test "$ac_cv_c_inline" != no ; then
21033 NCURSES_INLINE=inline
21034 if test "$INTEL_COMPILER" = yes
21037 elif test "$CLANG_COMPILER" = yes
21040 elif test "$GCC" = yes
21042 echo "$as_me:21042: checking if $CC supports options to tune inlining" >&5
21043 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
21044 if test "${cf_cv_gcc_inline+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 cf_save_CFLAGS=$CFLAGS
21049 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
21050 cat >"conftest.$ac_ext" <<_ACEOF
21051 #line 21051 "configure"
21052 #include "confdefs.h"
21053 inline int foo(void) { return 1; }
21057 ${cf_cv_main_return:-return} foo()
21062 rm -f "conftest.$ac_objext"
21063 if { (eval echo "$as_me:21063: \"$ac_compile\"") >&5
21064 (eval $ac_compile) 2>&5
21066 echo "$as_me:21066: \$? = $ac_status" >&5
21067 (exit "$ac_status"); } &&
21068 { ac_try='test -s "conftest.$ac_objext"'
21069 { (eval echo "$as_me:21069: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:21072: \$? = $ac_status" >&5
21073 (exit "$ac_status"); }; }; then
21074 cf_cv_gcc_inline=yes
21076 echo "$as_me: failed program was:" >&5
21077 cat "conftest.$ac_ext" >&5
21078 cf_cv_gcc_inline=no
21080 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21081 CFLAGS=$cf_save_CFLAGS
21084 echo "$as_me:21084: result: $cf_cv_gcc_inline" >&5
21085 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
21086 if test "$cf_cv_gcc_inline" = yes ; then
21091 cf_new_extra_cppflags=
21093 for cf_add_cflags in --param max-inline-insns-single=1200
21095 case "$cf_fix_cppflags" in
21097 case "$cf_add_cflags" in
21098 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21099 case "$cf_add_cflags" in
21101 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21103 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21104 && test -z "${cf_tst_cflags}" \
21105 && cf_fix_cppflags=yes
21107 if test "$cf_fix_cppflags" = yes ; then
21109 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21110 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21113 elif test "${cf_tst_cflags}" = "\"'" ; then
21115 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21116 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21122 case "$CPPFLAGS" in
21126 case "$cf_add_cflags" in
21128 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21130 CPPFLAGS=`echo "$CPPFLAGS" | \
21131 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21132 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21137 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21138 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21145 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21146 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21153 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21154 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21156 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21158 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21159 && test -z "${cf_tst_cflags}" \
21160 && cf_fix_cppflags=no
21165 if test -n "$cf_new_cflags" ; then
21167 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21168 CFLAGS="${CFLAGS}$cf_new_cflags"
21172 if test -n "$cf_new_cppflags" ; then
21174 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21175 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21179 if test -n "$cf_new_extra_cppflags" ; then
21181 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21182 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21190 echo "$as_me:21190: checking for signal global datatype" >&5
21191 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21192 if test "${cf_cv_sig_atomic_t+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 "volatile sig_atomic_t" \
21201 cat >"conftest.$ac_ext" <<_ACEOF
21202 #line 21202 "configure"
21203 #include "confdefs.h"
21205 #include <sys/types.h>
21206 #include <signal.h>
21211 static void handler(int sig)
21219 signal(SIGINT, handler);
21225 rm -f "conftest.$ac_objext"
21226 if { (eval echo "$as_me:21226: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>&5
21229 echo "$as_me:21229: \$? = $ac_status" >&5
21230 (exit "$ac_status"); } &&
21231 { ac_try='test -s "conftest.$ac_objext"'
21232 { (eval echo "$as_me:21232: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:21235: \$? = $ac_status" >&5
21236 (exit "$ac_status"); }; }; then
21237 cf_cv_sig_atomic_t=$cf_type
21239 echo "$as_me: failed program was:" >&5
21240 cat "conftest.$ac_ext" >&5
21241 cf_cv_sig_atomic_t=no
21243 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21244 test "$cf_cv_sig_atomic_t" != no && break
21249 echo "$as_me:21249: result: $cf_cv_sig_atomic_t" >&5
21250 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21251 test "$cf_cv_sig_atomic_t" != no &&
21252 cat >>confdefs.h <<EOF
21253 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21256 if test "$NCURSES_CHTYPE" = auto ; then
21258 echo "$as_me:21258: checking for type of chtype" >&5
21259 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21260 if test "${cf_cv_typeof_chtype+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 if test "$cross_compiling" = yes; then
21265 cf_cv_typeof_chtype=long
21267 cat >"conftest.$ac_ext" <<_ACEOF
21268 #line 21268 "configure"
21269 #include "confdefs.h"
21271 $ac_includes_default
21272 #define WANT_BITS 31
21275 FILE *fp = fopen("cf_test.out", "w");
21277 char *result = "long";
21278 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21281 for (n = 0; n < WANT_BITS; n++) {
21284 if (y != 1 || x == 0) {
21290 * If x is nonzero, an int is big enough for the bits
21293 result = (x != 0) ? "int" : "long";
21298 ${cf_cv_main_return:-return}(0);
21302 rm -f "conftest$ac_exeext"
21303 if { (eval echo "$as_me:21303: \"$ac_link\"") >&5
21304 (eval $ac_link) 2>&5
21306 echo "$as_me:21306: \$? = $ac_status" >&5
21307 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21308 { (eval echo "$as_me:21308: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:21311: \$? = $ac_status" >&5
21312 (exit "$ac_status"); }; }; then
21313 cf_cv_typeof_chtype=`cat cf_test.out`
21315 echo "$as_me: program exited with status $ac_status" >&5
21316 echo "$as_me: failed program was:" >&5
21317 cat "conftest.$ac_ext" >&5
21318 cf_cv_typeof_chtype=long
21320 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21326 echo "$as_me:21326: result: $cf_cv_typeof_chtype" >&5
21327 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21329 cat >>confdefs.h <<EOF
21330 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21334 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21336 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21338 echo "$as_me:21338: checking if unsigned literals are legal" >&5
21339 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21340 if test "${cf_cv_unsigned_literals+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 cat >"conftest.$ac_ext" <<_ACEOF
21345 #line 21345 "configure"
21346 #include "confdefs.h"
21351 long x = 1L + 1UL + 1U + 1; (void)x
21356 rm -f "conftest.$ac_objext"
21357 if { (eval echo "$as_me:21357: \"$ac_compile\"") >&5
21358 (eval $ac_compile) 2>&5
21360 echo "$as_me:21360: \$? = $ac_status" >&5
21361 (exit "$ac_status"); } &&
21362 { ac_try='test -s "conftest.$ac_objext"'
21363 { (eval echo "$as_me:21363: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:21366: \$? = $ac_status" >&5
21367 (exit "$ac_status"); }; }; then
21368 cf_cv_unsigned_literals=yes
21370 echo "$as_me: failed program was:" >&5
21371 cat "conftest.$ac_ext" >&5
21372 cf_cv_unsigned_literals=no
21374 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21378 echo "$as_me:21378: result: $cf_cv_unsigned_literals" >&5
21379 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21382 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21383 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21385 if test "$NCURSES_MMASK_T" = auto ; then
21386 cf_cv_typeof_mmask_t=long
21388 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21390 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21392 ### Checks for external-data
21394 echo "$as_me:21394: checking if external errno is declared" >&5
21395 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21396 if test "${cf_cv_dcl_errno+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 cat >"conftest.$ac_ext" <<_ACEOF
21401 #line 21401 "configure"
21402 #include "confdefs.h"
21404 $ac_includes_default
21409 int x = (int) errno; (void)x
21414 rm -f "conftest.$ac_objext"
21415 if { (eval echo "$as_me:21415: \"$ac_compile\"") >&5
21416 (eval $ac_compile) 2>&5
21418 echo "$as_me:21418: \$? = $ac_status" >&5
21419 (exit "$ac_status"); } &&
21420 { ac_try='test -s "conftest.$ac_objext"'
21421 { (eval echo "$as_me:21421: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21424 echo "$as_me:21424: \$? = $ac_status" >&5
21425 (exit "$ac_status"); }; }; then
21426 cf_cv_dcl_errno=yes
21428 echo "$as_me: failed program was:" >&5
21429 cat "conftest.$ac_ext" >&5
21432 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21435 echo "$as_me:21435: result: $cf_cv_dcl_errno" >&5
21436 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21438 if test "$cf_cv_dcl_errno" = no ; then
21440 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21442 cat >>confdefs.h <<EOF
21443 #define $cf_result 1
21448 # It's possible (for near-UNIX clones) that the data doesn't exist
21450 echo "$as_me:21450: checking if external errno exists" >&5
21451 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21452 if test "${cf_cv_have_errno+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 cat >"conftest.$ac_ext" <<_ACEOF
21457 #line 21457 "configure"
21458 #include "confdefs.h"
21471 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21472 if { (eval echo "$as_me:21472: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>&5
21475 echo "$as_me:21475: \$? = $ac_status" >&5
21476 (exit "$ac_status"); } &&
21477 { ac_try='test -s "conftest$ac_exeext"'
21478 { (eval echo "$as_me:21478: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21481 echo "$as_me:21481: \$? = $ac_status" >&5
21482 (exit "$ac_status"); }; }; then
21483 cf_cv_have_errno=yes
21485 echo "$as_me: failed program was:" >&5
21486 cat "conftest.$ac_ext" >&5
21487 cf_cv_have_errno=no
21489 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21492 echo "$as_me:21492: result: $cf_cv_have_errno" >&5
21493 echo "${ECHO_T}$cf_cv_have_errno" >&6
21495 if test "$cf_cv_have_errno" = yes ; then
21497 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21499 cat >>confdefs.h <<EOF
21500 #define $cf_result 1
21505 echo "$as_me:21505: checking if data-only library module links" >&5
21506 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21507 if test "${cf_cv_link_dataonly+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 cat >conftest.$ac_ext <<EOF
21513 #line 21513 "configure"
21514 int testdata[3] = { 123, 456, 789 };
21516 if { (eval echo "$as_me:21516: \"$ac_compile\"") >&5
21517 (eval $ac_compile) 2>&5
21519 echo "$as_me:21519: \$? = $ac_status" >&5
21520 (exit "$ac_status"); } ; then
21521 mv conftest.o data.o && \
21522 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21524 rm -f conftest.$ac_ext data.o
21525 cat >conftest.$ac_ext <<EOF
21526 #line 21526 "configure"
21527 extern int testfunc(void);
21531 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21534 extern int testdata[3];
21537 return testdata[0] == 123
21538 && testdata[1] == 456
21539 && testdata[2] == 789;
21543 if { (eval echo "$as_me:21543: \"$ac_compile\"") >&5
21544 (eval $ac_compile) 2>&5
21546 echo "$as_me:21546: \$? = $ac_status" >&5
21547 (exit "$ac_status"); }; then
21548 mv conftest.o func.o && \
21549 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21551 rm -f conftest.$ac_ext func.o
21552 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21553 cf_saveLIBS="$LIBS"
21554 LIBS="conftest.a $LIBS"
21555 if test "$cross_compiling" = yes; then
21556 cf_cv_link_dataonly=unknown
21558 cat >"conftest.$ac_ext" <<_ACEOF
21559 #line 21559 "configure"
21560 #include "confdefs.h"
21562 extern int testfunc(void);
21565 ${cf_cv_main_return:-return} (!testfunc());
21569 rm -f "conftest$ac_exeext"
21570 if { (eval echo "$as_me:21570: \"$ac_link\"") >&5
21571 (eval $ac_link) 2>&5
21573 echo "$as_me:21573: \$? = $ac_status" >&5
21574 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21575 { (eval echo "$as_me:21575: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:21578: \$? = $ac_status" >&5
21579 (exit "$ac_status"); }; }; then
21580 cf_cv_link_dataonly=yes
21582 echo "$as_me: program exited with status $ac_status" >&5
21583 echo "$as_me: failed program was:" >&5
21584 cat "conftest.$ac_ext" >&5
21585 cf_cv_link_dataonly=no
21587 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21589 LIBS="$cf_saveLIBS"
21593 echo "$as_me:21593: result: $cf_cv_link_dataonly" >&5
21594 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21596 if test "$cf_cv_link_dataonly" = no ; then
21598 cat >>confdefs.h <<\EOF
21599 #define BROKEN_LINKER 1
21605 ### Checks for library functions.
21607 echo "$as_me:21607: checking for clock_gettime" >&5
21608 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21609 if test "${cf_cv_func_clock_gettime+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 cat >"conftest.$ac_ext" <<_ACEOF
21614 #line 21614 "configure"
21615 #include "confdefs.h"
21620 struct timespec ts;
21621 int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
21626 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21627 if { (eval echo "$as_me:21627: \"$ac_link\"") >&5
21628 (eval $ac_link) 2>&5
21630 echo "$as_me:21630: \$? = $ac_status" >&5
21631 (exit "$ac_status"); } &&
21632 { ac_try='test -s "conftest$ac_exeext"'
21633 { (eval echo "$as_me:21633: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:21636: \$? = $ac_status" >&5
21637 (exit "$ac_status"); }; }; then
21638 cf_cv_func_clock_gettime=yes
21640 echo "$as_me: failed program was:" >&5
21641 cat "conftest.$ac_ext" >&5
21642 cf_cv_func_clock_gettime=no
21644 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21647 echo "$as_me:21647: result: $cf_cv_func_clock_gettime" >&5
21648 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
21650 if test "$cf_cv_func_clock_gettime" = yes
21653 cat >>confdefs.h <<\EOF
21654 #define HAVE_CLOCK_GETTIME 1
21658 echo "$as_me:21658: checking for gettimeofday" >&5
21659 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
21660 if test "${ac_cv_func_gettimeofday+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 cat >"conftest.$ac_ext" <<_ACEOF
21664 #line 21664 "configure"
21665 #include "confdefs.h"
21666 #define gettimeofday autoconf_temporary
21667 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21668 #undef gettimeofday
21674 /* We use char because int might match the return type of a gcc2
21675 builtin and then its argument prototype would still apply. */
21676 char gettimeofday (void);
21682 /* The GNU C library defines stubs for functions which it implements
21683 to always fail with ENOSYS. Some functions are actually named
21684 something starting with __ and the normal name is an alias. */
21685 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
21686 #error found stub for gettimeofday
21689 return gettimeofday ();
21694 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21695 if { (eval echo "$as_me:21695: \"$ac_link\"") >&5
21696 (eval $ac_link) 2>&5
21698 echo "$as_me:21698: \$? = $ac_status" >&5
21699 (exit "$ac_status"); } &&
21700 { ac_try='test -s "conftest$ac_exeext"'
21701 { (eval echo "$as_me:21701: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21704 echo "$as_me:21704: \$? = $ac_status" >&5
21705 (exit "$ac_status"); }; }; then
21706 ac_cv_func_gettimeofday=yes
21708 echo "$as_me: failed program was:" >&5
21709 cat "conftest.$ac_ext" >&5
21710 ac_cv_func_gettimeofday=no
21712 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21714 echo "$as_me:21714: result: $ac_cv_func_gettimeofday" >&5
21715 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
21716 if test "$ac_cv_func_gettimeofday" = yes; then
21718 cat >>confdefs.h <<\EOF
21719 #define HAVE_GETTIMEOFDAY 1
21724 echo "$as_me:21724: checking for gettimeofday in -lbsd" >&5
21725 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
21726 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 ac_check_lib_save_LIBS=$LIBS
21731 cat >"conftest.$ac_ext" <<_ACEOF
21732 #line 21732 "configure"
21733 #include "confdefs.h"
21735 /* Override any gcc2 internal prototype to avoid an error. */
21739 /* We use char because int might match the return type of a gcc2
21740 builtin and then its argument prototype would still apply. */
21741 char gettimeofday (void);
21750 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21751 if { (eval echo "$as_me:21751: \"$ac_link\"") >&5
21752 (eval $ac_link) 2>&5
21754 echo "$as_me:21754: \$? = $ac_status" >&5
21755 (exit "$ac_status"); } &&
21756 { ac_try='test -s "conftest$ac_exeext"'
21757 { (eval echo "$as_me:21757: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21760 echo "$as_me:21760: \$? = $ac_status" >&5
21761 (exit "$ac_status"); }; }; then
21762 ac_cv_lib_bsd_gettimeofday=yes
21764 echo "$as_me: failed program was:" >&5
21765 cat "conftest.$ac_ext" >&5
21766 ac_cv_lib_bsd_gettimeofday=no
21768 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21769 LIBS=$ac_check_lib_save_LIBS
21771 echo "$as_me:21771: result: $ac_cv_lib_bsd_gettimeofday" >&5
21772 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
21773 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
21775 cat >>confdefs.h <<\EOF
21776 #define HAVE_GETTIMEOFDAY 1
21779 cf_add_libs="$LIBS"
21782 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21783 # filter duplicates
21784 for cf_add_1lib in $cf_add_0lib; do
21785 for cf_add_2lib in $cf_add_libs; do
21786 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21791 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21793 LIBS="$cf_add_libs"
21831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21832 echo "$as_me:21832: checking for $ac_func" >&5
21833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21834 if eval "test \"\${$as_ac_var+set}\" = set"; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 cat >"conftest.$ac_ext" <<_ACEOF
21838 #line 21838 "configure"
21839 #include "confdefs.h"
21840 #define $ac_func autoconf_temporary
21841 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21848 /* We use char because int might match the return type of a gcc2
21849 builtin and then its argument prototype would still apply. */
21850 char $ac_func (void);
21856 /* The GNU C library defines stubs for functions which it implements
21857 to always fail with ENOSYS. Some functions are actually named
21858 something starting with __ and the normal name is an alias. */
21859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21860 #error found stub for $ac_func
21863 return $ac_func ();
21868 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21869 if { (eval echo "$as_me:21869: \"$ac_link\"") >&5
21870 (eval $ac_link) 2>&5
21872 echo "$as_me:21872: \$? = $ac_status" >&5
21873 (exit "$ac_status"); } &&
21874 { ac_try='test -s "conftest$ac_exeext"'
21875 { (eval echo "$as_me:21875: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21878 echo "$as_me:21878: \$? = $ac_status" >&5
21879 (exit "$ac_status"); }; }; then
21880 eval "$as_ac_var=yes"
21882 echo "$as_me: failed program was:" >&5
21883 cat "conftest.$ac_ext" >&5
21884 eval "$as_ac_var=no"
21886 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21888 echo "$as_me:21888: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21889 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21890 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21891 cat >>confdefs.h <<EOF
21892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21898 echo "$as_me:21898: checking if _PATH_TTYS is defined in ttyent.h" >&5
21899 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21900 if test "${cf_cv_PATH_TTYS+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 cat >"conftest.$ac_ext" <<_ACEOF
21905 #line 21905 "configure"
21906 #include "confdefs.h"
21909 #include <ttyent.h>
21914 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21919 rm -f "conftest.$ac_objext"
21920 if { (eval echo "$as_me:21920: \"$ac_compile\"") >&5
21921 (eval $ac_compile) 2>&5
21923 echo "$as_me:21923: \$? = $ac_status" >&5
21924 (exit "$ac_status"); } &&
21925 { ac_try='test -s "conftest.$ac_objext"'
21926 { (eval echo "$as_me:21926: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21929 echo "$as_me:21929: \$? = $ac_status" >&5
21930 (exit "$ac_status"); }; }; then
21931 cf_cv_PATH_TTYS=yes
21933 echo "$as_me: failed program was:" >&5
21934 cat "conftest.$ac_ext" >&5
21937 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21939 echo "$as_me:21939: result: $cf_cv_PATH_TTYS" >&5
21940 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21942 if test $cf_cv_PATH_TTYS = no
21944 for cf_ttys in /etc/ttytype /etc/ttys
21946 if test -f $cf_ttys
21948 cf_cv_PATH_TTYS=maybe
21950 cat >>confdefs.h <<\EOF
21951 #define _PATH_TTYS $cf_ttys
21959 if test $cf_cv_PATH_TTYS != no
21961 echo "$as_me:21961: checking if _PATH_TTYS file exists" >&5
21962 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21963 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 if test "$cross_compiling" = yes; then
21968 cf_cv_have_PATH_TTYS=unknown
21970 cat >"conftest.$ac_ext" <<_ACEOF
21971 #line 21971 "configure"
21972 #include "confdefs.h"
21974 $ac_includes_default
21976 #include <ttyent.h>
21979 FILE *fp = fopen(_PATH_TTYS, "r");
21980 ${cf_cv_main_return:-return} (fp == 0);
21983 rm -f "conftest$ac_exeext"
21984 if { (eval echo "$as_me:21984: \"$ac_link\"") >&5
21985 (eval $ac_link) 2>&5
21987 echo "$as_me:21987: \$? = $ac_status" >&5
21988 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21989 { (eval echo "$as_me:21989: \"$ac_try\"") >&5
21990 (eval $ac_try) 2>&5
21992 echo "$as_me:21992: \$? = $ac_status" >&5
21993 (exit "$ac_status"); }; }; then
21994 cf_cv_have_PATH_TTYS=yes
21996 echo "$as_me: program exited with status $ac_status" >&5
21997 echo "$as_me: failed program was:" >&5
21998 cat "conftest.$ac_ext" >&5
21999 cf_cv_have_PATH_TTYS=no
22001 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22004 echo "$as_me:22004: result: $cf_cv_have_PATH_TTYS" >&5
22005 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
22006 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
22009 if test $cf_cv_PATH_TTYS != no
22012 cat >>confdefs.h <<\EOF
22013 #define HAVE_PATH_TTYS 1
22016 echo "$as_me:22016: checking for getttynam" >&5
22017 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
22018 if test "${cf_cv_func_getttynam+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 cat >"conftest.$ac_ext" <<_ACEOF
22023 #line 22023 "configure"
22024 #include "confdefs.h"
22025 #include <ttyent.h>
22029 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
22034 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22035 if { (eval echo "$as_me:22035: \"$ac_link\"") >&5
22036 (eval $ac_link) 2>&5
22038 echo "$as_me:22038: \$? = $ac_status" >&5
22039 (exit "$ac_status"); } &&
22040 { ac_try='test -s "conftest$ac_exeext"'
22041 { (eval echo "$as_me:22041: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22044 echo "$as_me:22044: \$? = $ac_status" >&5
22045 (exit "$ac_status"); }; }; then
22046 cf_cv_func_getttynam=yes
22048 echo "$as_me: failed program was:" >&5
22049 cat "conftest.$ac_ext" >&5
22050 cf_cv_func_getttynam=no
22052 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22054 echo "$as_me:22054: result: $cf_cv_func_getttynam" >&5
22055 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
22056 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
22057 #define HAVE_GETTTYNAM 1
22062 if test "x$ac_cv_func_getopt" = xno && \
22063 test "x$cf_with_progs$cf_with_tests" != xnono; then
22064 { { echo "$as_me:22064: error: getopt is required for building programs" >&5
22065 echo "$as_me: error: getopt is required for building programs" >&2;}
22066 { (exit 1); exit 1; }; }
22069 if test "x$with_safe_sprintf" = xyes
22071 if test "x$ac_cv_func_vsnprintf" = xyes
22073 { echo "$as_me:22073: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
22074 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
22077 cat >>confdefs.h <<\EOF
22078 #define USE_SAFE_SPRINTF 1
22084 if test "x$with_getcap" = "xyes" ; then
22086 echo "$as_me:22086: checking for terminal-capability database functions" >&5
22087 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
22088 if test "${cf_cv_cgetent+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22092 cat >"conftest.$ac_ext" <<_ACEOF
22093 #line 22093 "configure"
22094 #include "confdefs.h"
22096 $ac_includes_default
22103 char *db_array = temp;
22104 cgetent(&buf, &db_array, "vt100");
22105 cgetcap(buf, "tc", '=');
22106 cgetmatch(buf, "tc");
22112 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22113 if { (eval echo "$as_me:22113: \"$ac_link\"") >&5
22114 (eval $ac_link) 2>&5
22116 echo "$as_me:22116: \$? = $ac_status" >&5
22117 (exit "$ac_status"); } &&
22118 { ac_try='test -s "conftest$ac_exeext"'
22119 { (eval echo "$as_me:22119: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22122 echo "$as_me:22122: \$? = $ac_status" >&5
22123 (exit "$ac_status"); }; }; then
22126 echo "$as_me: failed program was:" >&5
22127 cat "conftest.$ac_ext" >&5
22130 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22133 echo "$as_me:22133: result: $cf_cv_cgetent" >&5
22134 echo "${ECHO_T}$cf_cv_cgetent" >&6
22136 if test "$cf_cv_cgetent" = yes
22139 cat >>confdefs.h <<\EOF
22140 #define HAVE_BSD_CGETENT 1
22143 echo "$as_me:22143: checking if cgetent uses const parameter" >&5
22144 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
22145 if test "${cf_cv_cgetent_const+set}" = set; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 cat >"conftest.$ac_ext" <<_ACEOF
22150 #line 22150 "configure"
22151 #include "confdefs.h"
22153 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
22154 $ac_includes_default
22161 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
22162 const char *db_array = temp;
22163 cgetent(&buf, &db_array, "vt100");
22165 cgetcap(buf, "tc", '=');
22166 cgetmatch(buf, "tc");
22172 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22173 if { (eval echo "$as_me:22173: \"$ac_link\"") >&5
22174 (eval $ac_link) 2>&5
22176 echo "$as_me:22176: \$? = $ac_status" >&5
22177 (exit "$ac_status"); } &&
22178 { ac_try='test -s "conftest$ac_exeext"'
22179 { (eval echo "$as_me:22179: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:22182: \$? = $ac_status" >&5
22183 (exit "$ac_status"); }; }; then
22184 cf_cv_cgetent_const=yes
22186 echo "$as_me: failed program was:" >&5
22187 cat "conftest.$ac_ext" >&5
22188 cf_cv_cgetent_const=no
22190 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22193 echo "$as_me:22193: result: $cf_cv_cgetent_const" >&5
22194 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22195 if test "$cf_cv_cgetent_const" = yes
22198 cat >>confdefs.h <<EOF
22199 #define CGETENT_CONST const
22207 echo "$as_me:22207: checking for isascii" >&5
22208 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22209 if test "${cf_cv_have_isascii+set}" = set; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 cat >"conftest.$ac_ext" <<_ACEOF
22214 #line 22214 "configure"
22215 #include "confdefs.h"
22220 int x = isascii(' '); (void)x
22225 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22226 if { (eval echo "$as_me:22226: \"$ac_link\"") >&5
22227 (eval $ac_link) 2>&5
22229 echo "$as_me:22229: \$? = $ac_status" >&5
22230 (exit "$ac_status"); } &&
22231 { ac_try='test -s "conftest$ac_exeext"'
22232 { (eval echo "$as_me:22232: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22235 echo "$as_me:22235: \$? = $ac_status" >&5
22236 (exit "$ac_status"); }; }; then
22237 cf_cv_have_isascii=yes
22239 echo "$as_me: failed program was:" >&5
22240 cat "conftest.$ac_ext" >&5
22241 cf_cv_have_isascii=no
22243 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22246 echo "$as_me:22246: result: $cf_cv_have_isascii" >&5
22247 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22248 test "$cf_cv_have_isascii" = yes &&
22249 cat >>confdefs.h <<\EOF
22250 #define HAVE_ISASCII 1
22253 if test "$ac_cv_func_sigaction" = yes; then
22254 echo "$as_me:22254: checking whether sigaction needs _POSIX_SOURCE" >&5
22255 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22256 cat >"conftest.$ac_ext" <<_ACEOF
22257 #line 22257 "configure"
22258 #include "confdefs.h"
22260 #include <sys/types.h>
22261 #include <signal.h>
22265 struct sigaction act; (void)act
22270 rm -f "conftest.$ac_objext"
22271 if { (eval echo "$as_me:22271: \"$ac_compile\"") >&5
22272 (eval $ac_compile) 2>&5
22274 echo "$as_me:22274: \$? = $ac_status" >&5
22275 (exit "$ac_status"); } &&
22276 { ac_try='test -s "conftest.$ac_objext"'
22277 { (eval echo "$as_me:22277: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:22280: \$? = $ac_status" >&5
22281 (exit "$ac_status"); }; }; then
22284 echo "$as_me: failed program was:" >&5
22285 cat "conftest.$ac_ext" >&5
22287 cat >"conftest.$ac_ext" <<_ACEOF
22288 #line 22288 "configure"
22289 #include "confdefs.h"
22291 #define _POSIX_SOURCE
22292 #include <sys/types.h>
22293 #include <signal.h>
22297 struct sigaction act; (void)act
22302 rm -f "conftest.$ac_objext"
22303 if { (eval echo "$as_me:22303: \"$ac_compile\"") >&5
22304 (eval $ac_compile) 2>&5
22306 echo "$as_me:22306: \$? = $ac_status" >&5
22307 (exit "$ac_status"); } &&
22308 { ac_try='test -s "conftest.$ac_objext"'
22309 { (eval echo "$as_me:22309: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22312 echo "$as_me:22312: \$? = $ac_status" >&5
22313 (exit "$ac_status"); }; }; then
22316 cat >>confdefs.h <<\EOF
22317 #define _POSIX_SOURCE 1
22321 echo "$as_me: failed program was:" >&5
22322 cat "conftest.$ac_ext" >&5
22325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22327 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22328 echo "$as_me:22328: result: $sigact_bad" >&5
22329 echo "${ECHO_T}$sigact_bad" >&6
22332 echo "$as_me:22332: checking if nanosleep really works" >&5
22333 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22334 if test "${cf_cv_func_nanosleep+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 if test "$cross_compiling" = yes; then
22339 cf_cv_func_nanosleep=unknown
22341 cat >"conftest.$ac_ext" <<_ACEOF
22342 #line 22342 "configure"
22343 #include "confdefs.h"
22345 $ac_includes_default
22350 #ifdef HAVE_SYS_TIME_H
22351 #include <sys/time.h>
22355 struct timespec ts1, ts2;
22358 ts1.tv_nsec = 750000000;
22362 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22363 ${cf_cv_main_return:-return}(code != 0);
22367 rm -f "conftest$ac_exeext"
22368 if { (eval echo "$as_me:22368: \"$ac_link\"") >&5
22369 (eval $ac_link) 2>&5
22371 echo "$as_me:22371: \$? = $ac_status" >&5
22372 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22373 { (eval echo "$as_me:22373: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22376 echo "$as_me:22376: \$? = $ac_status" >&5
22377 (exit "$ac_status"); }; }; then
22378 cf_cv_func_nanosleep=yes
22380 echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 cat "conftest.$ac_ext" >&5
22383 cf_cv_func_nanosleep=no
22385 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22388 echo "$as_me:22388: result: $cf_cv_func_nanosleep" >&5
22389 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22391 test "$cf_cv_func_nanosleep" = "yes" &&
22392 cat >>confdefs.h <<\EOF
22393 #define HAVE_NANOSLEEP 1
22404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22405 echo "$as_me:22405: checking for $ac_header" >&5
22406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22410 cat >"conftest.$ac_ext" <<_ACEOF
22411 #line 22411 "configure"
22412 #include "confdefs.h"
22413 #include <$ac_header>
22415 if { (eval echo "$as_me:22415: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22416 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22418 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:22421: \$? = $ac_status" >&5
22422 (exit "$ac_status"); } >/dev/null; then
22423 if test -s conftest.err; then
22424 ac_cpp_err=$ac_c_preproc_warn_flag
22431 if test -z "$ac_cpp_err"; then
22432 eval "$as_ac_Header=yes"
22434 echo "$as_me: failed program was:" >&5
22435 cat "conftest.$ac_ext" >&5
22436 eval "$as_ac_Header=no"
22438 rm -f conftest.err "conftest.$ac_ext"
22440 echo "$as_me:22440: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22441 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22442 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22443 cat >>confdefs.h <<EOF
22444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22450 if test "$ac_cv_header_termios_h" = yes ; then
22451 case "$CFLAGS $CPPFLAGS" in
22452 (*-D_POSIX_SOURCE*)
22453 termios_bad=dunno ;;
22454 (*) termios_bad=maybe ;;
22456 if test "$termios_bad" = maybe ; then
22457 echo "$as_me:22457: checking whether termios.h needs _POSIX_SOURCE" >&5
22458 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22459 cat >"conftest.$ac_ext" <<_ACEOF
22460 #line 22460 "configure"
22461 #include "confdefs.h"
22462 #include <termios.h>
22466 struct termios foo; int x = (int)(foo.c_iflag = 1); (void)x
22471 rm -f "conftest.$ac_objext"
22472 if { (eval echo "$as_me:22472: \"$ac_compile\"") >&5
22473 (eval $ac_compile) 2>&5
22475 echo "$as_me:22475: \$? = $ac_status" >&5
22476 (exit "$ac_status"); } &&
22477 { ac_try='test -s "conftest.$ac_objext"'
22478 { (eval echo "$as_me:22478: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:22481: \$? = $ac_status" >&5
22482 (exit "$ac_status"); }; }; then
22485 echo "$as_me: failed program was:" >&5
22486 cat "conftest.$ac_ext" >&5
22488 cat >"conftest.$ac_ext" <<_ACEOF
22489 #line 22489 "configure"
22490 #include "confdefs.h"
22492 #define _POSIX_SOURCE
22493 #include <termios.h>
22497 struct termios foo; int x = (int)(foo.c_iflag = 2); (void)x
22502 rm -f "conftest.$ac_objext"
22503 if { (eval echo "$as_me:22503: \"$ac_compile\"") >&5
22504 (eval $ac_compile) 2>&5
22506 echo "$as_me:22506: \$? = $ac_status" >&5
22507 (exit "$ac_status"); } &&
22508 { ac_try='test -s "conftest.$ac_objext"'
22509 { (eval echo "$as_me:22509: \"$ac_try\"") >&5
22510 (eval $ac_try) 2>&5
22512 echo "$as_me:22512: \$? = $ac_status" >&5
22513 (exit "$ac_status"); }; }; then
22514 termios_bad=unknown
22516 echo "$as_me: failed program was:" >&5
22517 cat "conftest.$ac_ext" >&5
22519 cat >>confdefs.h <<\EOF
22520 #define _POSIX_SOURCE 1
22524 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22527 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22528 echo "$as_me:22528: result: $termios_bad" >&5
22529 echo "${ECHO_T}$termios_bad" >&6
22533 echo "$as_me:22533: checking for tcgetattr" >&5
22534 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22535 if test "${cf_cv_have_tcgetattr+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 cat >"conftest.$ac_ext" <<_ACEOF
22540 #line 22540 "configure"
22541 #include "confdefs.h"
22543 #include <sys/types.h>
22544 #ifdef HAVE_UNISTD_H
22545 #include <unistd.h>
22547 #ifdef HAVE_TERMIOS_H
22548 #include <termios.h>
22549 #define TTY struct termios
22551 #ifdef HAVE_TERMIO_H
22552 #include <termio.h>
22553 #define TTY struct termio
22562 tcgetattr(1, &foo);
22567 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22568 if { (eval echo "$as_me:22568: \"$ac_link\"") >&5
22569 (eval $ac_link) 2>&5
22571 echo "$as_me:22571: \$? = $ac_status" >&5
22572 (exit "$ac_status"); } &&
22573 { ac_try='test -s "conftest$ac_exeext"'
22574 { (eval echo "$as_me:22574: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:22577: \$? = $ac_status" >&5
22578 (exit "$ac_status"); }; }; then
22579 cf_cv_have_tcgetattr=yes
22581 echo "$as_me: failed program was:" >&5
22582 cat "conftest.$ac_ext" >&5
22583 cf_cv_have_tcgetattr=no
22585 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22587 echo "$as_me:22587: result: $cf_cv_have_tcgetattr" >&5
22588 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22589 test "$cf_cv_have_tcgetattr" = yes &&
22590 cat >>confdefs.h <<\EOF
22591 #define HAVE_TCGETATTR 1
22594 echo "$as_me:22594: checking for vsscanf function or workaround" >&5
22595 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22596 if test "${cf_cv_func_vsscanf+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 cat >"conftest.$ac_ext" <<_ACEOF
22601 #line 22601 "configure"
22602 #include "confdefs.h"
22604 #include <stdarg.h>
22608 myfunc(const char *str, const char *fmt, ...)
22612 vsscanf(str, fmt, ap);
22620 myfunc("55", "%d");
22626 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22627 if { (eval echo "$as_me:22627: \"$ac_link\"") >&5
22628 (eval $ac_link) 2>&5
22630 echo "$as_me:22630: \$? = $ac_status" >&5
22631 (exit "$ac_status"); } &&
22632 { ac_try='test -s "conftest$ac_exeext"'
22633 { (eval echo "$as_me:22633: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22636 echo "$as_me:22636: \$? = $ac_status" >&5
22637 (exit "$ac_status"); }; }; then
22638 cf_cv_func_vsscanf=vsscanf
22640 echo "$as_me: failed program was:" >&5
22641 cat "conftest.$ac_ext" >&5
22643 cat >"conftest.$ac_ext" <<_ACEOF
22644 #line 22644 "configure"
22645 #include "confdefs.h"
22647 #include <stdarg.h>
22654 char *str = "from";
22656 strbuf._flag = _IOREAD;
22657 strbuf._ptr = strbuf._base = (unsigned char *) str;
22658 strbuf._cnt = strlen(str);
22659 strbuf._file = _NFILE;
22660 return (vfscanf(&strbuf, "%d", ap))
22665 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22666 if { (eval echo "$as_me:22666: \"$ac_link\"") >&5
22667 (eval $ac_link) 2>&5
22669 echo "$as_me:22669: \$? = $ac_status" >&5
22670 (exit "$ac_status"); } &&
22671 { ac_try='test -s "conftest$ac_exeext"'
22672 { (eval echo "$as_me:22672: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:22675: \$? = $ac_status" >&5
22676 (exit "$ac_status"); }; }; then
22677 cf_cv_func_vsscanf=vfscanf
22679 echo "$as_me: failed program was:" >&5
22680 cat "conftest.$ac_ext" >&5
22682 cat >"conftest.$ac_ext" <<_ACEOF
22683 #line 22683 "configure"
22684 #include "confdefs.h"
22686 #include <stdarg.h>
22693 char *str = "from";
22695 strbuf._flag = _IOREAD;
22696 strbuf._ptr = strbuf._base = (unsigned char *) str;
22697 strbuf._cnt = strlen(str);
22698 strbuf._file = _NFILE;
22699 return (_doscan(&strbuf, "%d", ap))
22704 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22705 if { (eval echo "$as_me:22705: \"$ac_link\"") >&5
22706 (eval $ac_link) 2>&5
22708 echo "$as_me:22708: \$? = $ac_status" >&5
22709 (exit "$ac_status"); } &&
22710 { ac_try='test -s "conftest$ac_exeext"'
22711 { (eval echo "$as_me:22711: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22714 echo "$as_me:22714: \$? = $ac_status" >&5
22715 (exit "$ac_status"); }; }; then
22716 cf_cv_func_vsscanf=_doscan
22718 echo "$as_me: failed program was:" >&5
22719 cat "conftest.$ac_ext" >&5
22721 cf_cv_func_vsscanf=no
22723 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22725 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22727 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22729 echo "$as_me:22729: result: $cf_cv_func_vsscanf" >&5
22730 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22732 case "$cf_cv_func_vsscanf" in
22734 cat >>confdefs.h <<\EOF
22735 #define HAVE_VSSCANF 1
22739 cat >>confdefs.h <<\EOF
22740 #define HAVE_VFSCANF 1
22744 cat >>confdefs.h <<\EOF
22745 #define HAVE__DOSCAN 1
22754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22755 echo "$as_me:22755: checking for $ac_header" >&5
22756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22760 cat >"conftest.$ac_ext" <<_ACEOF
22761 #line 22761 "configure"
22762 #include "confdefs.h"
22763 #include <$ac_header>
22765 if { (eval echo "$as_me:22765: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22766 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22768 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:22771: \$? = $ac_status" >&5
22772 (exit "$ac_status"); } >/dev/null; then
22773 if test -s conftest.err; then
22774 ac_cpp_err=$ac_c_preproc_warn_flag
22781 if test -z "$ac_cpp_err"; then
22782 eval "$as_ac_Header=yes"
22784 echo "$as_me: failed program was:" >&5
22785 cat "conftest.$ac_ext" >&5
22786 eval "$as_ac_Header=no"
22788 rm -f conftest.err "conftest.$ac_ext"
22790 echo "$as_me:22790: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22791 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22792 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22793 cat >>confdefs.h <<EOF
22794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22800 echo "$as_me:22800: checking for working mkstemp" >&5
22801 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22802 if test "${cf_cv_func_mkstemp+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22807 if test "$cross_compiling" = yes; then
22808 cf_cv_func_mkstemp=maybe
22810 cat >"conftest.$ac_ext" <<_ACEOF
22811 #line 22811 "configure"
22812 #include "confdefs.h"
22814 $ac_includes_default
22818 static char tmpl[] = "conftestXXXXXX";
22826 for (n = 0; n < 2; ++n) {
22827 strcpy(name[n], tmpl);
22828 if ((fd = mkstemp(name[n])) >= 0) {
22829 if (!strcmp(name[n], tmpl)
22830 || stat(name[n], &sb) != 0
22831 || (sb.st_mode & S_IFMT) != S_IFREG
22832 || (sb.st_mode & 077) != 0) {
22839 && !strcmp(name[0], name[1]))
22841 ${cf_cv_main_return:-return}(result);
22845 rm -f "conftest$ac_exeext"
22846 if { (eval echo "$as_me:22846: \"$ac_link\"") >&5
22847 (eval $ac_link) 2>&5
22849 echo "$as_me:22849: \$? = $ac_status" >&5
22850 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22851 { (eval echo "$as_me:22851: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22854 echo "$as_me:22854: \$? = $ac_status" >&5
22855 (exit "$ac_status"); }; }; then
22856 cf_cv_func_mkstemp=yes
22859 echo "$as_me: program exited with status $ac_status" >&5
22860 echo "$as_me: failed program was:" >&5
22861 cat "conftest.$ac_ext" >&5
22862 cf_cv_func_mkstemp=no
22865 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22869 echo "$as_me:22869: result: $cf_cv_func_mkstemp" >&5
22870 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22871 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22872 echo "$as_me:22872: checking for mkstemp" >&5
22873 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22874 if test "${ac_cv_func_mkstemp+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22877 cat >"conftest.$ac_ext" <<_ACEOF
22878 #line 22878 "configure"
22879 #include "confdefs.h"
22880 #define mkstemp autoconf_temporary
22881 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22888 /* We use char because int might match the return type of a gcc2
22889 builtin and then its argument prototype would still apply. */
22890 char mkstemp (void);
22896 /* The GNU C library defines stubs for functions which it implements
22897 to always fail with ENOSYS. Some functions are actually named
22898 something starting with __ and the normal name is an alias. */
22899 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22900 #error found stub for mkstemp
22908 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22909 if { (eval echo "$as_me:22909: \"$ac_link\"") >&5
22910 (eval $ac_link) 2>&5
22912 echo "$as_me:22912: \$? = $ac_status" >&5
22913 (exit "$ac_status"); } &&
22914 { ac_try='test -s "conftest$ac_exeext"'
22915 { (eval echo "$as_me:22915: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22918 echo "$as_me:22918: \$? = $ac_status" >&5
22919 (exit "$ac_status"); }; }; then
22920 ac_cv_func_mkstemp=yes
22922 echo "$as_me: failed program was:" >&5
22923 cat "conftest.$ac_ext" >&5
22924 ac_cv_func_mkstemp=no
22926 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22928 echo "$as_me:22928: result: $ac_cv_func_mkstemp" >&5
22929 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22932 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22934 cat >>confdefs.h <<\EOF
22935 #define HAVE_MKSTEMP 1
22940 # setup for prototype of fallback for vsscanf()
22942 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22948 if test "x$cross_compiling" = xyes ; then
22949 { echo "$as_me:22949: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22950 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22952 echo "$as_me:22952: checking whether setvbuf arguments are reversed" >&5
22953 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22954 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 if test "$cross_compiling" = yes; then
22958 { { echo "$as_me:22958: error: cannot run test program while cross compiling" >&5
22959 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22960 { (exit 1); exit 1; }; }
22962 cat >"conftest.$ac_ext" <<_ACEOF
22963 #line 22963 "configure"
22964 #include "confdefs.h"
22966 /* If setvbuf has the reversed format, exit 0. */
22970 /* This call has the arguments reversed.
22971 A reversed system may check and see that the address of main
22972 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22973 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22974 $ac_main_return(1);
22975 putc('\r', stdout);
22976 $ac_main_return(0); /* Non-reversed systems segv here. */
22979 rm -f "conftest$ac_exeext"
22980 if { (eval echo "$as_me:22980: \"$ac_link\"") >&5
22981 (eval $ac_link) 2>&5
22983 echo "$as_me:22983: \$? = $ac_status" >&5
22984 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22985 { (eval echo "$as_me:22985: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22988 echo "$as_me:22988: \$? = $ac_status" >&5
22989 (exit "$ac_status"); }; }; then
22990 ac_cv_func_setvbuf_reversed=yes
22992 echo "$as_me: program exited with status $ac_status" >&5
22993 echo "$as_me: failed program was:" >&5
22994 cat "conftest.$ac_ext" >&5
22995 ac_cv_func_setvbuf_reversed=no
22997 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22999 rm -f core ./core.* ./*.core
23001 echo "$as_me:23001: result: $ac_cv_func_setvbuf_reversed" >&5
23002 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
23003 if test $ac_cv_func_setvbuf_reversed = yes; then
23005 cat >>confdefs.h <<\EOF
23006 #define SETVBUF_REVERSED 1
23012 echo "$as_me:23012: checking for intptr_t" >&5
23013 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
23014 if test "${ac_cv_type_intptr_t+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 cat >"conftest.$ac_ext" <<_ACEOF
23018 #line 23018 "configure"
23019 #include "confdefs.h"
23020 $ac_includes_default
23024 if ((intptr_t *) 0)
23026 if (sizeof (intptr_t))
23032 rm -f "conftest.$ac_objext"
23033 if { (eval echo "$as_me:23033: \"$ac_compile\"") >&5
23034 (eval $ac_compile) 2>&5
23036 echo "$as_me:23036: \$? = $ac_status" >&5
23037 (exit "$ac_status"); } &&
23038 { ac_try='test -s "conftest.$ac_objext"'
23039 { (eval echo "$as_me:23039: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23042 echo "$as_me:23042: \$? = $ac_status" >&5
23043 (exit "$ac_status"); }; }; then
23044 ac_cv_type_intptr_t=yes
23046 echo "$as_me: failed program was:" >&5
23047 cat "conftest.$ac_ext" >&5
23048 ac_cv_type_intptr_t=no
23050 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23052 echo "$as_me:23052: result: $ac_cv_type_intptr_t" >&5
23053 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
23054 if test "$ac_cv_type_intptr_t" = yes; then
23058 cat >>confdefs.h <<EOF
23059 #define intptr_t long
23064 echo "$as_me:23064: checking for ssize_t" >&5
23065 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
23066 if test "${ac_cv_type_ssize_t+set}" = set; then
23067 echo $ECHO_N "(cached) $ECHO_C" >&6
23069 cat >"conftest.$ac_ext" <<_ACEOF
23070 #line 23070 "configure"
23071 #include "confdefs.h"
23072 $ac_includes_default
23078 if (sizeof (ssize_t))
23084 rm -f "conftest.$ac_objext"
23085 if { (eval echo "$as_me:23085: \"$ac_compile\"") >&5
23086 (eval $ac_compile) 2>&5
23088 echo "$as_me:23088: \$? = $ac_status" >&5
23089 (exit "$ac_status"); } &&
23090 { ac_try='test -s "conftest.$ac_objext"'
23091 { (eval echo "$as_me:23091: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23094 echo "$as_me:23094: \$? = $ac_status" >&5
23095 (exit "$ac_status"); }; }; then
23096 ac_cv_type_ssize_t=yes
23098 echo "$as_me: failed program was:" >&5
23099 cat "conftest.$ac_ext" >&5
23100 ac_cv_type_ssize_t=no
23102 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23104 echo "$as_me:23104: result: $ac_cv_type_ssize_t" >&5
23105 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
23106 if test "$ac_cv_type_ssize_t" = yes; then
23110 cat >>confdefs.h <<EOF
23111 #define ssize_t int
23116 echo "$as_me:23116: checking for type sigaction_t" >&5
23117 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
23118 if test "${cf_cv_type_sigaction+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 cat >"conftest.$ac_ext" <<_ACEOF
23123 #line 23123 "configure"
23124 #include "confdefs.h"
23126 #include <signal.h>
23130 sigaction_t x; (void)x
23135 rm -f "conftest.$ac_objext"
23136 if { (eval echo "$as_me:23136: \"$ac_compile\"") >&5
23137 (eval $ac_compile) 2>&5
23139 echo "$as_me:23139: \$? = $ac_status" >&5
23140 (exit "$ac_status"); } &&
23141 { ac_try='test -s "conftest.$ac_objext"'
23142 { (eval echo "$as_me:23142: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23145 echo "$as_me:23145: \$? = $ac_status" >&5
23146 (exit "$ac_status"); }; }; then
23147 cf_cv_type_sigaction=yes
23149 echo "$as_me: failed program was:" >&5
23150 cat "conftest.$ac_ext" >&5
23151 cf_cv_type_sigaction=no
23153 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23156 echo "$as_me:23156: result: $cf_cv_type_sigaction" >&5
23157 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
23158 test "$cf_cv_type_sigaction" = yes &&
23159 cat >>confdefs.h <<\EOF
23160 #define HAVE_TYPE_SIGACTION 1
23163 echo "$as_me:23163: checking declaration of size-change" >&5
23164 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
23165 if test "${cf_cv_sizechange+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23169 cf_cv_sizechange=unknown
23170 cf_save_CPPFLAGS="$CPPFLAGS"
23172 for cf_opts in "" "NEED_PTEM_H"
23175 CPPFLAGS="$cf_save_CPPFLAGS"
23176 if test -n "$cf_opts"
23179 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23180 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23183 cat >"conftest.$ac_ext" <<_ACEOF
23184 #line 23184 "configure"
23185 #include "confdefs.h"
23186 #include <sys/types.h>
23187 #ifdef HAVE_TERMIOS_H
23188 #include <termios.h>
23190 #ifdef HAVE_TERMIO_H
23191 #include <termio.h>
23196 /* This is a workaround for SCO: they neglected to define struct winsize in
23197 * termios.h -- it is only in termio.h and ptem.h
23199 #include <sys/stream.h>
23200 #include <sys/ptem.h>
23203 #ifdef HAVE_SYS_IOCTL_H
23204 #include <sys/ioctl.h>
23212 struct ttysize win; /* SunOS 3.0... */
23213 int y = win.ts_lines = 2;
23214 int x = win.ts_cols = 1;
23219 struct winsize win; /* everything else */
23220 int y = win.ws_row = 2;
23221 int x = win.ws_col = 1;
23225 no TIOCGSIZE or TIOCGWINSZ
23226 #endif /* TIOCGWINSZ */
23227 #endif /* TIOCGSIZE */
23233 rm -f "conftest.$ac_objext"
23234 if { (eval echo "$as_me:23234: \"$ac_compile\"") >&5
23235 (eval $ac_compile) 2>&5
23237 echo "$as_me:23237: \$? = $ac_status" >&5
23238 (exit "$ac_status"); } &&
23239 { ac_try='test -s "conftest.$ac_objext"'
23240 { (eval echo "$as_me:23240: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23243 echo "$as_me:23243: \$? = $ac_status" >&5
23244 (exit "$ac_status"); }; }; then
23245 cf_cv_sizechange=yes
23247 echo "$as_me: failed program was:" >&5
23248 cat "conftest.$ac_ext" >&5
23249 cf_cv_sizechange=no
23251 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23253 CPPFLAGS="$cf_save_CPPFLAGS"
23254 if test "$cf_cv_sizechange" = yes ; then
23255 echo "size-change succeeded ($cf_opts)" >&5
23256 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23262 echo "$as_me:23262: result: $cf_cv_sizechange" >&5
23263 echo "${ECHO_T}$cf_cv_sizechange" >&6
23264 if test "$cf_cv_sizechange" != no ; then
23266 cat >>confdefs.h <<\EOF
23267 #define HAVE_SIZECHANGE 1
23270 case "$cf_cv_sizechange" in
23272 cat >>confdefs.h <<EOF
23273 #define $cf_cv_sizechange 1
23280 echo "$as_me:23280: checking for memmove" >&5
23281 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23282 if test "${ac_cv_func_memmove+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 cat >"conftest.$ac_ext" <<_ACEOF
23286 #line 23286 "configure"
23287 #include "confdefs.h"
23288 #define memmove autoconf_temporary
23289 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23296 /* We use char because int might match the return type of a gcc2
23297 builtin and then its argument prototype would still apply. */
23298 char memmove (void);
23304 /* The GNU C library defines stubs for functions which it implements
23305 to always fail with ENOSYS. Some functions are actually named
23306 something starting with __ and the normal name is an alias. */
23307 #if defined (__stub_memmove) || defined (__stub___memmove)
23308 #error found stub for memmove
23316 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23317 if { (eval echo "$as_me:23317: \"$ac_link\"") >&5
23318 (eval $ac_link) 2>&5
23320 echo "$as_me:23320: \$? = $ac_status" >&5
23321 (exit "$ac_status"); } &&
23322 { ac_try='test -s "conftest$ac_exeext"'
23323 { (eval echo "$as_me:23323: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:23326: \$? = $ac_status" >&5
23327 (exit "$ac_status"); }; }; then
23328 ac_cv_func_memmove=yes
23330 echo "$as_me: failed program was:" >&5
23331 cat "conftest.$ac_ext" >&5
23332 ac_cv_func_memmove=no
23334 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23336 echo "$as_me:23336: result: $ac_cv_func_memmove" >&5
23337 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23338 if test "$ac_cv_func_memmove" = yes; then
23342 echo "$as_me:23342: checking for bcopy" >&5
23343 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23344 if test "${ac_cv_func_bcopy+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 cat >"conftest.$ac_ext" <<_ACEOF
23348 #line 23348 "configure"
23349 #include "confdefs.h"
23350 #define bcopy autoconf_temporary
23351 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23358 /* We use char because int might match the return type of a gcc2
23359 builtin and then its argument prototype would still apply. */
23366 /* The GNU C library defines stubs for functions which it implements
23367 to always fail with ENOSYS. Some functions are actually named
23368 something starting with __ and the normal name is an alias. */
23369 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23370 #error found stub for bcopy
23378 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23379 if { (eval echo "$as_me:23379: \"$ac_link\"") >&5
23380 (eval $ac_link) 2>&5
23382 echo "$as_me:23382: \$? = $ac_status" >&5
23383 (exit "$ac_status"); } &&
23384 { ac_try='test -s "conftest$ac_exeext"'
23385 { (eval echo "$as_me:23385: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:23388: \$? = $ac_status" >&5
23389 (exit "$ac_status"); }; }; then
23390 ac_cv_func_bcopy=yes
23392 echo "$as_me: failed program was:" >&5
23393 cat "conftest.$ac_ext" >&5
23394 ac_cv_func_bcopy=no
23396 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23398 echo "$as_me:23398: result: $ac_cv_func_bcopy" >&5
23399 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23400 if test "$ac_cv_func_bcopy" = yes; then
23402 echo "$as_me:23402: checking if bcopy does overlapping moves" >&5
23403 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23404 if test "${cf_cv_good_bcopy+set}" = set; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23408 if test "$cross_compiling" = yes; then
23409 cf_cv_good_bcopy=unknown
23411 cat >"conftest.$ac_ext" <<_ACEOF
23412 #line 23412 "configure"
23413 #include "confdefs.h"
23415 $ac_includes_default
23418 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23420 bcopy(data, temp, sizeof(data));
23421 bcopy(temp+10, temp, 15);
23422 bcopy(temp+5, temp+15, 10);
23423 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23427 rm -f "conftest$ac_exeext"
23428 if { (eval echo "$as_me:23428: \"$ac_link\"") >&5
23429 (eval $ac_link) 2>&5
23431 echo "$as_me:23431: \$? = $ac_status" >&5
23432 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23433 { (eval echo "$as_me:23433: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:23436: \$? = $ac_status" >&5
23437 (exit "$ac_status"); }; }; then
23438 cf_cv_good_bcopy=yes
23440 echo "$as_me: program exited with status $ac_status" >&5
23441 echo "$as_me: failed program was:" >&5
23442 cat "conftest.$ac_ext" >&5
23443 cf_cv_good_bcopy=no
23445 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23449 echo "$as_me:23449: result: $cf_cv_good_bcopy" >&5
23450 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23453 cf_cv_good_bcopy=no
23456 if test "$cf_cv_good_bcopy" = yes ; then
23458 cat >>confdefs.h <<\EOF
23459 #define USE_OK_BCOPY 1
23464 cat >>confdefs.h <<\EOF
23465 #define USE_MY_MEMMOVE 1
23472 tty >/dev/null 2>&1 || {
23473 for ac_func in posix_openpt
23475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23476 echo "$as_me:23476: checking for $ac_func" >&5
23477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23478 if eval "test \"\${$as_ac_var+set}\" = set"; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 cat >"conftest.$ac_ext" <<_ACEOF
23482 #line 23482 "configure"
23483 #include "confdefs.h"
23484 #define $ac_func autoconf_temporary
23485 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23492 /* We use char because int might match the return type of a gcc2
23493 builtin and then its argument prototype would still apply. */
23494 char $ac_func (void);
23500 /* The GNU C library defines stubs for functions which it implements
23501 to always fail with ENOSYS. Some functions are actually named
23502 something starting with __ and the normal name is an alias. */
23503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23504 #error found stub for $ac_func
23507 return $ac_func ();
23512 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23513 if { (eval echo "$as_me:23513: \"$ac_link\"") >&5
23514 (eval $ac_link) 2>&5
23516 echo "$as_me:23516: \$? = $ac_status" >&5
23517 (exit "$ac_status"); } &&
23518 { ac_try='test -s "conftest$ac_exeext"'
23519 { (eval echo "$as_me:23519: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23522 echo "$as_me:23522: \$? = $ac_status" >&5
23523 (exit "$ac_status"); }; }; then
23524 eval "$as_ac_var=yes"
23526 echo "$as_me: failed program was:" >&5
23527 cat "conftest.$ac_ext" >&5
23528 eval "$as_ac_var=no"
23530 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23532 echo "$as_me:23532: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23533 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23534 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23535 cat >>confdefs.h <<EOF
23536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23542 echo "$as_me:23542: checking if poll really works" >&5
23543 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23544 if test "${cf_cv_working_poll+set}" = set; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 if test "$cross_compiling" = yes; then
23549 cf_cv_working_poll=unknown
23551 cat >"conftest.$ac_ext" <<_ACEOF
23552 #line 23552 "configure"
23553 #include "confdefs.h"
23555 $ac_includes_default
23562 #include <sys/poll.h>
23566 struct pollfd myfds;
23569 /* check for Darwin bug with respect to "devices" */
23570 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23573 myfds.events = POLLIN;
23576 ret = poll(&myfds, 1, 100);
23578 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23583 fd = open("/dev/tty", 2); /* O_RDWR */
23585 #ifdef HAVE_POSIX_OPENPT
23587 fd = posix_openpt(O_RDWR);
23592 /* also check with standard input */
23594 myfds.events = POLLIN;
23596 ret = poll(&myfds, 1, 100);
23601 ${cf_cv_main_return:-return}(ret < 0);
23604 rm -f "conftest$ac_exeext"
23605 if { (eval echo "$as_me:23605: \"$ac_link\"") >&5
23606 (eval $ac_link) 2>&5
23608 echo "$as_me:23608: \$? = $ac_status" >&5
23609 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23610 { (eval echo "$as_me:23610: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23613 echo "$as_me:23613: \$? = $ac_status" >&5
23614 (exit "$ac_status"); }; }; then
23615 cf_cv_working_poll=yes
23617 echo "$as_me: program exited with status $ac_status" >&5
23618 echo "$as_me: failed program was:" >&5
23619 cat "conftest.$ac_ext" >&5
23620 cf_cv_working_poll=no
23622 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23625 echo "$as_me:23625: result: $cf_cv_working_poll" >&5
23626 echo "${ECHO_T}$cf_cv_working_poll" >&6
23627 test "$cf_cv_working_poll" = "yes" &&
23628 cat >>confdefs.h <<\EOF
23629 #define HAVE_WORKING_POLL 1
23632 echo "$as_me:23632: checking for va_copy" >&5
23633 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23634 if test "${cf_cv_have_va_copy+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23638 cat >"conftest.$ac_ext" <<_ACEOF
23639 #line 23639 "configure"
23640 #include "confdefs.h"
23642 #include <stdarg.h>
23648 static va_list dst;
23649 static va_list src;
23655 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23656 if { (eval echo "$as_me:23656: \"$ac_link\"") >&5
23657 (eval $ac_link) 2>&5
23659 echo "$as_me:23659: \$? = $ac_status" >&5
23660 (exit "$ac_status"); } &&
23661 { ac_try='test -s "conftest$ac_exeext"'
23662 { (eval echo "$as_me:23662: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:23665: \$? = $ac_status" >&5
23666 (exit "$ac_status"); }; }; then
23667 cf_cv_have_va_copy=yes
23669 echo "$as_me: failed program was:" >&5
23670 cat "conftest.$ac_ext" >&5
23671 cf_cv_have_va_copy=no
23673 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23675 echo "$as_me:23675: result: $cf_cv_have_va_copy" >&5
23676 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23678 if test "$cf_cv_have_va_copy" = yes;
23681 cat >>confdefs.h <<\EOF
23682 #define HAVE_VA_COPY 1
23685 else # !cf_cv_have_va_copy
23687 echo "$as_me:23687: checking for __va_copy" >&5
23688 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23689 if test "${cf_cv_have___va_copy+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 cat >"conftest.$ac_ext" <<_ACEOF
23694 #line 23694 "configure"
23695 #include "confdefs.h"
23697 #include <stdarg.h>
23703 static va_list dst;
23704 static va_list src;
23705 __va_copy(dst, src)
23710 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23711 if { (eval echo "$as_me:23711: \"$ac_link\"") >&5
23712 (eval $ac_link) 2>&5
23714 echo "$as_me:23714: \$? = $ac_status" >&5
23715 (exit "$ac_status"); } &&
23716 { ac_try='test -s "conftest$ac_exeext"'
23717 { (eval echo "$as_me:23717: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:23720: \$? = $ac_status" >&5
23721 (exit "$ac_status"); }; }; then
23722 cf_cv_have___va_copy=yes
23724 echo "$as_me: failed program was:" >&5
23725 cat "conftest.$ac_ext" >&5
23726 cf_cv_have___va_copy=no
23728 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23730 echo "$as_me:23730: result: $cf_cv_have___va_copy" >&5
23731 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23733 if test "$cf_cv_have___va_copy" = yes
23736 cat >>confdefs.h <<\EOF
23737 #define HAVE___VA_COPY 1
23740 else # !cf_cv_have___va_copy
23742 echo "$as_me:23742: checking for __builtin_va_copy" >&5
23743 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23744 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23745 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 cat >"conftest.$ac_ext" <<_ACEOF
23749 #line 23749 "configure"
23750 #include "confdefs.h"
23752 #include <stdarg.h>
23758 static va_list dst;
23759 static va_list src;
23760 __builtin_va_copy(dst, src)
23765 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23766 if { (eval echo "$as_me:23766: \"$ac_link\"") >&5
23767 (eval $ac_link) 2>&5
23769 echo "$as_me:23769: \$? = $ac_status" >&5
23770 (exit "$ac_status"); } &&
23771 { ac_try='test -s "conftest$ac_exeext"'
23772 { (eval echo "$as_me:23772: \"$ac_try\"") >&5
23773 (eval $ac_try) 2>&5
23775 echo "$as_me:23775: \$? = $ac_status" >&5
23776 (exit "$ac_status"); }; }; then
23777 cf_cv_have___builtin_va_copy=yes
23779 echo "$as_me: failed program was:" >&5
23780 cat "conftest.$ac_ext" >&5
23781 cf_cv_have___builtin_va_copy=no
23783 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23785 echo "$as_me:23785: result: $cf_cv_have___builtin_va_copy" >&5
23786 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23788 test "$cf_cv_have___builtin_va_copy" = yes &&
23790 cat >>confdefs.h <<\EOF
23791 #define HAVE___BUILTIN_VA_COPY 1
23794 fi # cf_cv_have___va_copy
23796 fi # cf_cv_have_va_copy
23798 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23803 echo "$as_me:23803: checking if we can simply copy va_list" >&5
23804 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23805 if test "${cf_cv_pointer_va_list+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23809 cat >"conftest.$ac_ext" <<_ACEOF
23810 #line 23810 "configure"
23811 #include "confdefs.h"
23813 #include <stdarg.h>
23826 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23827 if { (eval echo "$as_me:23827: \"$ac_link\"") >&5
23828 (eval $ac_link) 2>&5
23830 echo "$as_me:23830: \$? = $ac_status" >&5
23831 (exit "$ac_status"); } &&
23832 { ac_try='test -s "conftest$ac_exeext"'
23833 { (eval echo "$as_me:23833: \"$ac_try\"") >&5
23834 (eval $ac_try) 2>&5
23836 echo "$as_me:23836: \$? = $ac_status" >&5
23837 (exit "$ac_status"); }; }; then
23838 cf_cv_pointer_va_list=yes
23840 echo "$as_me: failed program was:" >&5
23841 cat "conftest.$ac_ext" >&5
23842 cf_cv_pointer_va_list=no
23844 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23846 echo "$as_me:23846: result: $cf_cv_pointer_va_list" >&5
23847 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23849 if test "$cf_cv_pointer_va_list" = no
23851 echo "$as_me:23851: checking if we can copy va_list indirectly" >&5
23852 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23853 if test "${cf_cv_array_va_list+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 cat >"conftest.$ac_ext" <<_ACEOF
23858 #line 23858 "configure"
23859 #include "confdefs.h"
23861 #include <stdarg.h>
23874 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23875 if { (eval echo "$as_me:23875: \"$ac_link\"") >&5
23876 (eval $ac_link) 2>&5
23878 echo "$as_me:23878: \$? = $ac_status" >&5
23879 (exit "$ac_status"); } &&
23880 { ac_try='test -s "conftest$ac_exeext"'
23881 { (eval echo "$as_me:23881: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23884 echo "$as_me:23884: \$? = $ac_status" >&5
23885 (exit "$ac_status"); }; }; then
23886 cf_cv_array_va_list=yes
23888 echo "$as_me: failed program was:" >&5
23889 cat "conftest.$ac_ext" >&5
23890 cf_cv_array_va_list=no
23892 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23894 echo "$as_me:23894: result: $cf_cv_array_va_list" >&5
23895 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23896 test "$cf_cv_array_va_list" = yes &&
23897 cat >>confdefs.h <<\EOF
23898 #define ARRAY_VA_LIST 1
23905 echo "$as_me:23905: checking for pid_t" >&5
23906 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23907 if test "${ac_cv_type_pid_t+set}" = set; then
23908 echo $ECHO_N "(cached) $ECHO_C" >&6
23910 cat >"conftest.$ac_ext" <<_ACEOF
23911 #line 23911 "configure"
23912 #include "confdefs.h"
23913 $ac_includes_default
23919 if (sizeof (pid_t))
23925 rm -f "conftest.$ac_objext"
23926 if { (eval echo "$as_me:23926: \"$ac_compile\"") >&5
23927 (eval $ac_compile) 2>&5
23929 echo "$as_me:23929: \$? = $ac_status" >&5
23930 (exit "$ac_status"); } &&
23931 { ac_try='test -s "conftest.$ac_objext"'
23932 { (eval echo "$as_me:23932: \"$ac_try\"") >&5
23933 (eval $ac_try) 2>&5
23935 echo "$as_me:23935: \$? = $ac_status" >&5
23936 (exit "$ac_status"); }; }; then
23937 ac_cv_type_pid_t=yes
23939 echo "$as_me: failed program was:" >&5
23940 cat "conftest.$ac_ext" >&5
23941 ac_cv_type_pid_t=no
23943 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23945 echo "$as_me:23945: result: $ac_cv_type_pid_t" >&5
23946 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23947 if test "$ac_cv_type_pid_t" = yes; then
23951 cat >>confdefs.h <<EOF
23957 for ac_header in unistd.h vfork.h
23959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23960 echo "$as_me:23960: checking for $ac_header" >&5
23961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23965 cat >"conftest.$ac_ext" <<_ACEOF
23966 #line 23966 "configure"
23967 #include "confdefs.h"
23968 #include <$ac_header>
23970 if { (eval echo "$as_me:23970: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23971 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23973 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23975 cat conftest.err >&5
23976 echo "$as_me:23976: \$? = $ac_status" >&5
23977 (exit "$ac_status"); } >/dev/null; then
23978 if test -s conftest.err; then
23979 ac_cpp_err=$ac_c_preproc_warn_flag
23986 if test -z "$ac_cpp_err"; then
23987 eval "$as_ac_Header=yes"
23989 echo "$as_me: failed program was:" >&5
23990 cat "conftest.$ac_ext" >&5
23991 eval "$as_ac_Header=no"
23993 rm -f conftest.err "conftest.$ac_ext"
23995 echo "$as_me:23995: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23996 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23997 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23998 cat >>confdefs.h <<EOF
23999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24005 for ac_func in fork vfork
24007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24008 echo "$as_me:24008: checking for $ac_func" >&5
24009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24010 if eval "test \"\${$as_ac_var+set}\" = set"; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24013 cat >"conftest.$ac_ext" <<_ACEOF
24014 #line 24014 "configure"
24015 #include "confdefs.h"
24016 #define $ac_func autoconf_temporary
24017 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
24024 /* We use char because int might match the return type of a gcc2
24025 builtin and then its argument prototype would still apply. */
24026 char $ac_func (void);
24032 /* The GNU C library defines stubs for functions which it implements
24033 to always fail with ENOSYS. Some functions are actually named
24034 something starting with __ and the normal name is an alias. */
24035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24036 #error found stub for $ac_func
24039 return $ac_func ();
24044 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24045 if { (eval echo "$as_me:24045: \"$ac_link\"") >&5
24046 (eval $ac_link) 2>&5
24048 echo "$as_me:24048: \$? = $ac_status" >&5
24049 (exit "$ac_status"); } &&
24050 { ac_try='test -s "conftest$ac_exeext"'
24051 { (eval echo "$as_me:24051: \"$ac_try\"") >&5
24052 (eval $ac_try) 2>&5
24054 echo "$as_me:24054: \$? = $ac_status" >&5
24055 (exit "$ac_status"); }; }; then
24056 eval "$as_ac_var=yes"
24058 echo "$as_me: failed program was:" >&5
24059 cat "conftest.$ac_ext" >&5
24060 eval "$as_ac_var=no"
24062 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24064 echo "$as_me:24064: result: `eval echo '${'"$as_ac_var"'}'`" >&5
24065 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
24066 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
24067 cat >>confdefs.h <<EOF
24068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24074 ac_cv_func_fork_works=$ac_cv_func_fork
24075 if test "x$ac_cv_func_fork" = xyes; then
24076 echo "$as_me:24076: checking for working fork" >&5
24077 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
24078 if test "${ac_cv_func_fork_works+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 if test "$cross_compiling" = yes; then
24082 ac_cv_func_fork_works=cross
24084 cat >"conftest.$ac_ext" <<_ACEOF
24085 /* By Rüdiger Kuhlmann. */
24086 #include <sys/types.h>
24088 # include <unistd.h>
24090 /* Some systems only have a dummy stub for fork() */
24094 $ac_main_return (1);
24095 $ac_main_return (0);
24098 rm -f "conftest$ac_exeext"
24099 if { (eval echo "$as_me:24099: \"$ac_link\"") >&5
24100 (eval $ac_link) 2>&5
24102 echo "$as_me:24102: \$? = $ac_status" >&5
24103 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24104 { (eval echo "$as_me:24104: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24107 echo "$as_me:24107: \$? = $ac_status" >&5
24108 (exit "$ac_status"); }; }; then
24109 ac_cv_func_fork_works=yes
24111 echo "$as_me: program exited with status $ac_status" >&5
24112 echo "$as_me: failed program was:" >&5
24113 cat "conftest.$ac_ext" >&5
24114 ac_cv_func_fork_works=no
24116 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24119 echo "$as_me:24119: result: $ac_cv_func_fork_works" >&5
24120 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24123 if test "x$ac_cv_func_fork_works" = xcross; then
24125 *-*-amigaos* | *-*-msdosdjgpp*)
24126 # Override, as these systems have only a dummy fork() stub
24127 ac_cv_func_fork_works=no
24130 ac_cv_func_fork_works=yes
24133 { echo "$as_me:24133: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
24134 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
24136 ac_cv_func_vfork_works=$ac_cv_func_vfork
24137 if test "x$ac_cv_func_vfork" = xyes; then
24138 echo "$as_me:24138: checking for working vfork" >&5
24139 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24140 if test "${ac_cv_func_vfork_works+set}" = set; then
24141 echo $ECHO_N "(cached) $ECHO_C" >&6
24143 if test "$cross_compiling" = yes; then
24144 ac_cv_func_vfork_works=cross
24146 cat >"conftest.$ac_ext" <<_ACEOF
24147 #line 24147 "configure"
24148 #include "confdefs.h"
24149 /* Thanks to Paul Eggert for this test. */
24151 #include <sys/types.h>
24152 #include <sys/stat.h>
24154 # include <unistd.h>
24157 # include <vfork.h>
24159 /* On some sparc systems, changes by the child to local and incoming
24160 argument registers are propagated back to the parent. The compiler
24161 is told about this with #include <vfork.h>, but some compilers
24162 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24163 static variable whose address is put into a register that is
24164 clobbered by the vfork. */
24166 sparc_address_test (int arg)
24168 static pid_t child;
24186 pid_t parent = getpid ();
24189 sparc_address_test ();
24194 /* Here is another test for sparc vfork register problems. This
24195 test uses lots of local variables, at least as many local
24196 variables as main has allocated so far including compiler
24197 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24198 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24199 reuse the register of parent for one of the local variables,
24200 since it will think that parent can't possibly be used any more
24201 in this routine. Assigning to the local variable will thus
24202 munge parent in the parent process. */
24204 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24205 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24206 /* Convince the compiler that p..p7 are live; otherwise, it might
24207 use the same hardware register for all 8 local variables. */
24208 if (p != p1 || p != p2 || p != p3 || p != p4
24209 || p != p5 || p != p6 || p != p7)
24212 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24213 from child file descriptors. If the child closes a descriptor
24214 before it execs or exits, this munges the parent's descriptor
24215 as well. Test for this by closing stdout in the child. */
24216 _exit(close(fileno(stdout)) != 0);
24221 while (wait(&status) != child)
24224 /* Was there some problem with vforking? */
24227 /* Did the child fail? (This shouldn't happen.) */
24230 /* Did the vfork/compiler bug occur? */
24231 || parent != getpid()
24233 /* Did the file descriptor bug occur? */
24234 || fstat(fileno(stdout), &st) != 0
24239 rm -f "conftest$ac_exeext"
24240 if { (eval echo "$as_me:24240: \"$ac_link\"") >&5
24241 (eval $ac_link) 2>&5
24243 echo "$as_me:24243: \$? = $ac_status" >&5
24244 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24245 { (eval echo "$as_me:24245: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24248 echo "$as_me:24248: \$? = $ac_status" >&5
24249 (exit "$ac_status"); }; }; then
24250 ac_cv_func_vfork_works=yes
24252 echo "$as_me: program exited with status $ac_status" >&5
24253 echo "$as_me: failed program was:" >&5
24254 cat "conftest.$ac_ext" >&5
24255 ac_cv_func_vfork_works=no
24257 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24260 echo "$as_me:24260: result: $ac_cv_func_vfork_works" >&5
24261 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24264 if test "x$ac_cv_func_fork_works" = xcross; then
24265 ac_cv_func_vfork_works=ac_cv_func_vfork
24266 { echo "$as_me:24266: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24267 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24270 if test "x$ac_cv_func_vfork_works" = xyes; then
24272 cat >>confdefs.h <<\EOF
24273 #define HAVE_WORKING_VFORK 1
24278 cat >>confdefs.h <<\EOF
24283 if test "x$ac_cv_func_fork_works" = xyes; then
24285 cat >>confdefs.h <<\EOF
24286 #define HAVE_WORKING_FORK 1
24291 echo "$as_me:24291: checking if fopen accepts explicit binary mode" >&5
24292 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24293 if test "${cf_cv_fopen_bin_r+set}" = set; then
24294 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 if test "$cross_compiling" = yes; then
24298 cf_cv_fopen_bin_r=unknown
24300 cat >"conftest.$ac_ext" <<_ACEOF
24301 #line 24301 "configure"
24302 #include "confdefs.h"
24304 $ac_includes_default
24308 FILE *fp = fopen("conftest.tmp", "wb");
24312 for (p = 0; p < 256; ++p) {
24316 fp = fopen("conftest.tmp", "rb");
24318 for (p = 0; p < 256; ++p) {
24331 ${cf_cv_main_return:-return} (rc);
24335 rm -f "conftest$ac_exeext"
24336 if { (eval echo "$as_me:24336: \"$ac_link\"") >&5
24337 (eval $ac_link) 2>&5
24339 echo "$as_me:24339: \$? = $ac_status" >&5
24340 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24341 { (eval echo "$as_me:24341: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24344 echo "$as_me:24344: \$? = $ac_status" >&5
24345 (exit "$ac_status"); }; }; then
24346 cf_cv_fopen_bin_r=yes
24348 echo "$as_me: program exited with status $ac_status" >&5
24349 echo "$as_me: failed program was:" >&5
24350 cat "conftest.$ac_ext" >&5
24351 cf_cv_fopen_bin_r=no
24353 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24357 echo "$as_me:24357: result: $cf_cv_fopen_bin_r" >&5
24358 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24359 test "x$cf_cv_fopen_bin_r" != xno &&
24360 cat >>confdefs.h <<\EOF
24361 #define USE_FOPEN_BIN_R 1
24364 # special check for test/ditto.c
24366 echo "$as_me:24366: checking for openpty in -lutil" >&5
24367 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24368 if test "${ac_cv_lib_util_openpty+set}" = set; then
24369 echo $ECHO_N "(cached) $ECHO_C" >&6
24371 ac_check_lib_save_LIBS=$LIBS
24372 LIBS="-lutil $LIBS"
24373 cat >"conftest.$ac_ext" <<_ACEOF
24374 #line 24374 "configure"
24375 #include "confdefs.h"
24377 /* Override any gcc2 internal prototype to avoid an error. */
24381 /* We use char because int might match the return type of a gcc2
24382 builtin and then its argument prototype would still apply. */
24383 char openpty (void);
24392 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24393 if { (eval echo "$as_me:24393: \"$ac_link\"") >&5
24394 (eval $ac_link) 2>&5
24396 echo "$as_me:24396: \$? = $ac_status" >&5
24397 (exit "$ac_status"); } &&
24398 { ac_try='test -s "conftest$ac_exeext"'
24399 { (eval echo "$as_me:24399: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24402 echo "$as_me:24402: \$? = $ac_status" >&5
24403 (exit "$ac_status"); }; }; then
24404 ac_cv_lib_util_openpty=yes
24406 echo "$as_me: failed program was:" >&5
24407 cat "conftest.$ac_ext" >&5
24408 ac_cv_lib_util_openpty=no
24410 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24411 LIBS=$ac_check_lib_save_LIBS
24413 echo "$as_me:24413: result: $ac_cv_lib_util_openpty" >&5
24414 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24415 if test "$ac_cv_lib_util_openpty" = yes; then
24421 echo "$as_me:24421: checking for openpty header" >&5
24422 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24423 if test "${cf_cv_func_openpty+set}" = set; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24427 cf_save_LIBS="$LIBS"
24428 test "$cf_cv_lib_util" = yes && {
24429 cf_add_libs="$LIBS"
24432 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24433 # filter duplicates
24434 for cf_add_1lib in $cf_add_0lib; do
24435 for cf_add_2lib in $cf_add_libs; do
24436 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24441 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24443 LIBS="$cf_add_libs"
24445 for cf_header in pty.h libutil.h util.h
24447 cat >"conftest.$ac_ext" <<_ACEOF
24448 #line 24448 "configure"
24449 #include "confdefs.h"
24451 #include <$cf_header>
24457 int x = openpty((int *)0, (int *)0, (char *)0,
24458 (struct termios *)0, (struct winsize *)0);
24465 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24466 if { (eval echo "$as_me:24466: \"$ac_link\"") >&5
24467 (eval $ac_link) 2>&5
24469 echo "$as_me:24469: \$? = $ac_status" >&5
24470 (exit "$ac_status"); } &&
24471 { ac_try='test -s "conftest$ac_exeext"'
24472 { (eval echo "$as_me:24472: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:24475: \$? = $ac_status" >&5
24476 (exit "$ac_status"); }; }; then
24478 cf_cv_func_openpty=$cf_header
24482 echo "$as_me: failed program was:" >&5
24483 cat "conftest.$ac_ext" >&5
24485 cf_cv_func_openpty=no
24488 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24490 LIBS="$cf_save_LIBS"
24493 echo "$as_me:24493: result: $cf_cv_func_openpty" >&5
24494 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24496 if test "$cf_cv_func_openpty" != no ; then
24498 cat >>confdefs.h <<EOF
24499 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24502 cat >>confdefs.h <<\EOF
24503 #define USE_XTERM_PTY 1
24506 if test "x$cf_cv_lib_util" = xyes ; then
24508 cf_add_libs="$TEST_LIBS"
24511 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24512 # filter duplicates
24513 for cf_add_1lib in $cf_add_0lib; do
24514 for cf_add_2lib in $cf_add_libs; do
24515 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24520 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24522 TEST_LIBS="$cf_add_libs"
24527 if test "$with_hashed_db" != no ; then
24529 cat >>confdefs.h <<\EOF
24530 #define USE_HASHED_DB 1
24533 case $with_hashed_db in
24537 if test -d "$with_hashed_db" ; then
24539 if test -n "$with_hashed_db/include" ; then
24540 for cf_add_incdir in $with_hashed_db/include
24542 while test "$cf_add_incdir" != /usr/include
24544 if test -d "$cf_add_incdir"
24547 if test -n "$CFLAGS$CPPFLAGS" ; then
24548 # a loop is needed to ensure we can add subdirs of existing dirs
24549 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24550 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24551 cf_have_incdir=yes; break
24556 if test "$cf_have_incdir" = no ; then
24557 if test "$cf_add_incdir" = /usr/local/include ; then
24558 if test "$GCC" = yes
24560 cf_save_CPPFLAGS=$CPPFLAGS
24562 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24563 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24565 cat >"conftest.$ac_ext" <<_ACEOF
24566 #line 24566 "configure"
24567 #include "confdefs.h"
24577 rm -f "conftest.$ac_objext"
24578 if { (eval echo "$as_me:24578: \"$ac_compile\"") >&5
24579 (eval $ac_compile) 2>&5
24581 echo "$as_me:24581: \$? = $ac_status" >&5
24582 (exit "$ac_status"); } &&
24583 { ac_try='test -s "conftest.$ac_objext"'
24584 { (eval echo "$as_me:24584: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24587 echo "$as_me:24587: \$? = $ac_status" >&5
24588 (exit "$ac_status"); }; }; then
24591 echo "$as_me: failed program was:" >&5
24592 cat "conftest.$ac_ext" >&5
24595 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24596 CPPFLAGS=$cf_save_CPPFLAGS
24601 if test "$cf_have_incdir" = no ; then
24602 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24604 echo "${as_me:-configure}:24604: testing adding $cf_add_incdir to include-path ..." 1>&5
24606 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24608 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24609 test "$cf_top_incdir" = "$cf_add_incdir" && break
24610 cf_add_incdir="$cf_top_incdir"
24621 if test -n "$with_hashed_db/lib" ; then
24622 for cf_add_libdir in $with_hashed_db/lib
24624 if test "$cf_add_libdir" = /usr/lib ; then
24626 elif test -d "$cf_add_libdir"
24629 if test -n "$LDFLAGS$LIBS" ; then
24630 # a loop is needed to ensure we can add subdirs of existing dirs
24631 for cf_test_libdir in $LDFLAGS $LIBS ; do
24632 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24633 cf_have_libdir=yes; break
24637 if test "$cf_have_libdir" = no ; then
24638 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24640 echo "${as_me:-configure}:24640: testing adding $cf_add_libdir to library-path ..." 1>&5
24642 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24649 case "$with_hashed_db" in
24651 { echo "$as_me:24651: WARNING: no such directory $with_hashed_db" >&5
24652 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24658 test "x$prefix" != "xNONE" && \
24659 test -d "$prefix" && \
24661 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24662 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24663 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24664 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24665 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24666 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24669 for cf_subdir_prefix in \
24678 test "x$cf_subdir_prefix" != "x$prefix" && \
24679 test -d "$cf_subdir_prefix" && \
24680 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24681 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24682 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24683 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24684 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24685 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24686 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"
24691 for cf_item in $cf_search
24694 (*/$with_hashed_db)
24696 if test -n "$cf_item" ; then
24697 for cf_add_incdir in $cf_item
24699 while test "$cf_add_incdir" != /usr/include
24701 if test -d "$cf_add_incdir"
24704 if test -n "$CFLAGS$CPPFLAGS" ; then
24705 # a loop is needed to ensure we can add subdirs of existing dirs
24706 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24707 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24708 cf_have_incdir=yes; break
24713 if test "$cf_have_incdir" = no ; then
24714 if test "$cf_add_incdir" = /usr/local/include ; then
24715 if test "$GCC" = yes
24717 cf_save_CPPFLAGS=$CPPFLAGS
24719 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24720 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24722 cat >"conftest.$ac_ext" <<_ACEOF
24723 #line 24723 "configure"
24724 #include "confdefs.h"
24734 rm -f "conftest.$ac_objext"
24735 if { (eval echo "$as_me:24735: \"$ac_compile\"") >&5
24736 (eval $ac_compile) 2>&5
24738 echo "$as_me:24738: \$? = $ac_status" >&5
24739 (exit "$ac_status"); } &&
24740 { ac_try='test -s "conftest.$ac_objext"'
24741 { (eval echo "$as_me:24741: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24744 echo "$as_me:24744: \$? = $ac_status" >&5
24745 (exit "$ac_status"); }; }; then
24748 echo "$as_me: failed program was:" >&5
24749 cat "conftest.$ac_ext" >&5
24752 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24753 CPPFLAGS=$cf_save_CPPFLAGS
24758 if test "$cf_have_incdir" = no ; then
24759 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24761 echo "${as_me:-configure}:24761: testing adding $cf_add_incdir to include-path ..." 1>&5
24763 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24765 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24766 test "$cf_top_incdir" = "$cf_add_incdir" && break
24767 cf_add_incdir="$cf_top_incdir"
24784 test "x$prefix" != "xNONE" && \
24785 test -d "$prefix" && \
24787 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24788 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24789 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24790 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24791 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24792 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24795 for cf_subdir_prefix in \
24804 test "x$cf_subdir_prefix" != "x$prefix" && \
24805 test -d "$cf_subdir_prefix" && \
24806 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24807 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24808 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24809 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24810 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24811 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24812 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"
24817 for cf_item in $cf_search
24820 (*/$with_hashed_db)
24822 if test -n "$cf_item" ; then
24823 for cf_add_libdir in $cf_item
24825 if test "$cf_add_libdir" = /usr/lib ; then
24827 elif test -d "$cf_add_libdir"
24830 if test -n "$LDFLAGS$LIBS" ; then
24831 # a loop is needed to ensure we can add subdirs of existing dirs
24832 for cf_test_libdir in $LDFLAGS $LIBS ; do
24833 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24834 cf_have_libdir=yes; break
24838 if test "$cf_have_libdir" = no ; then
24839 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24841 echo "${as_me:-configure}:24841: testing adding $cf_add_libdir to library-path ..." 1>&5
24843 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24858 echo "$as_me:24858: checking for db.h" >&5
24859 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24860 if test "${ac_cv_header_db_h+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 cat >"conftest.$ac_ext" <<_ACEOF
24864 #line 24864 "configure"
24865 #include "confdefs.h"
24868 if { (eval echo "$as_me:24868: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24869 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24871 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24873 cat conftest.err >&5
24874 echo "$as_me:24874: \$? = $ac_status" >&5
24875 (exit "$ac_status"); } >/dev/null; then
24876 if test -s conftest.err; then
24877 ac_cpp_err=$ac_c_preproc_warn_flag
24884 if test -z "$ac_cpp_err"; then
24885 ac_cv_header_db_h=yes
24887 echo "$as_me: failed program was:" >&5
24888 cat "conftest.$ac_ext" >&5
24889 ac_cv_header_db_h=no
24891 rm -f conftest.err "conftest.$ac_ext"
24893 echo "$as_me:24893: result: $ac_cv_header_db_h" >&5
24894 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24895 if test "$ac_cv_header_db_h" = yes; then
24897 echo "$as_me:24897: checking for version of db" >&5
24898 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24899 if test "${cf_cv_hashed_db_version+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24903 cf_cv_hashed_db_version=unknown
24905 for cf_db_version in 1 2 3 4 5 6
24908 echo "${as_me:-configure}:24908: testing checking for db version $cf_db_version ..." 1>&5
24910 cat >"conftest.$ac_ext" <<_ACEOF
24911 #line 24911 "configure"
24912 #include "confdefs.h"
24914 $ac_includes_default
24917 #ifdef DB_VERSION_MAJOR
24918 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24919 #if $cf_db_version == DB_VERSION_MAJOR
24922 #error $cf_db_version is not DB_VERSION_MAJOR
24925 #if $cf_db_version == 1
24926 /* ok: assuming this is DB 1.8.5 */
24928 #error $cf_db_version is not 1
24940 rm -f "conftest.$ac_objext"
24941 if { (eval echo "$as_me:24941: \"$ac_compile\"") >&5
24942 (eval $ac_compile) 2>&5
24944 echo "$as_me:24944: \$? = $ac_status" >&5
24945 (exit "$ac_status"); } &&
24946 { ac_try='test -s "conftest.$ac_objext"'
24947 { (eval echo "$as_me:24947: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24950 echo "$as_me:24950: \$? = $ac_status" >&5
24951 (exit "$ac_status"); }; }; then
24953 cf_cv_hashed_db_version=$cf_db_version
24957 echo "$as_me: failed program was:" >&5
24958 cat "conftest.$ac_ext" >&5
24960 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24964 echo "$as_me:24964: result: $cf_cv_hashed_db_version" >&5
24965 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24967 if test "$cf_cv_hashed_db_version" = unknown ; then
24968 { { echo "$as_me:24968: error: Cannot determine version of db" >&5
24969 echo "$as_me: error: Cannot determine version of db" >&2;}
24970 { (exit 1); exit 1; }; }
24973 echo "$as_me:24973: checking for db libraries" >&5
24974 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24975 if test "${cf_cv_hashed_db_libs+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24979 cf_cv_hashed_db_libs=unknown
24980 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24982 cf_save_libs="$LIBS"
24983 if test -n "$cf_db_libs"; then
24985 cf_add_libs="$LIBS"
24988 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24989 # filter duplicates
24990 for cf_add_1lib in $cf_add_0lib; do
24991 for cf_add_2lib in $cf_add_libs; do
24992 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24997 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24999 LIBS="$cf_add_libs"
25003 echo "${as_me:-configure}:25003: testing checking for library $cf_db_libs ..." 1>&5
25005 cat >"conftest.$ac_ext" <<_ACEOF
25006 #line 25006 "configure"
25007 #include "confdefs.h"
25009 $ac_includes_default
25016 char *path = "/tmp/foo";
25017 #ifdef DB_VERSION_MAJOR
25018 #if DB_VERSION_MAJOR >= 4
25020 db_create(&result, NULL, 0);
25021 result->open(result,
25028 #elif DB_VERSION_MAJOR >= 3
25030 db_create(&result, NULL, 0);
25031 result->open(result,
25037 #elif DB_VERSION_MAJOR >= 2
25046 #endif /* DB_VERSION_MAJOR */
25048 DB *result = dbopen(path,
25054 ${cf_cv_main_return:-return}(result != 0)
25060 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25061 if { (eval echo "$as_me:25061: \"$ac_link\"") >&5
25062 (eval $ac_link) 2>&5
25064 echo "$as_me:25064: \$? = $ac_status" >&5
25065 (exit "$ac_status"); } &&
25066 { ac_try='test -s "conftest$ac_exeext"'
25067 { (eval echo "$as_me:25067: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25070 echo "$as_me:25070: \$? = $ac_status" >&5
25071 (exit "$ac_status"); }; }; then
25073 if test -n "$cf_db_libs" ; then
25074 cf_cv_hashed_db_libs=$cf_db_libs
25076 cf_cv_hashed_db_libs=default
25078 LIBS="$cf_save_libs"
25082 echo "$as_me: failed program was:" >&5
25083 cat "conftest.$ac_ext" >&5
25085 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25086 LIBS="$cf_save_libs"
25090 echo "$as_me:25090: result: $cf_cv_hashed_db_libs" >&5
25091 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
25093 if test "$cf_cv_hashed_db_libs" = unknown ; then
25094 { { echo "$as_me:25094: error: Cannot determine library for db" >&5
25095 echo "$as_me: error: Cannot determine library for db" >&2;}
25096 { (exit 1); exit 1; }; }
25097 elif test "$cf_cv_hashed_db_libs" != default ; then
25099 cf_add_libs="$LIBS"
25102 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25103 # filter duplicates
25104 for cf_add_1lib in $cf_add_0lib; do
25105 for cf_add_2lib in $cf_add_libs; do
25106 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25111 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25113 LIBS="$cf_add_libs"
25120 { { echo "$as_me:25120: error: Cannot find db.h" >&5
25121 echo "$as_me: error: Cannot find db.h" >&2;}
25122 { (exit 1); exit 1; }; }
25128 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
25129 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25130 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25133 # Just in case, check if the C compiler has a bool type.
25135 echo "$as_me:25135: checking if we should include stdbool.h" >&5
25136 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25138 if test "${cf_cv_header_stdbool_h+set}" = set; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 cat >"conftest.$ac_ext" <<_ACEOF
25143 #line 25143 "configure"
25144 #include "confdefs.h"
25149 bool foo = false; (void)foo
25154 rm -f "conftest.$ac_objext"
25155 if { (eval echo "$as_me:25155: \"$ac_compile\"") >&5
25156 (eval $ac_compile) 2>&5
25158 echo "$as_me:25158: \$? = $ac_status" >&5
25159 (exit "$ac_status"); } &&
25160 { ac_try='test -s "conftest.$ac_objext"'
25161 { (eval echo "$as_me:25161: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25164 echo "$as_me:25164: \$? = $ac_status" >&5
25165 (exit "$ac_status"); }; }; then
25166 cf_cv_header_stdbool_h=0
25168 echo "$as_me: failed program was:" >&5
25169 cat "conftest.$ac_ext" >&5
25170 cat >"conftest.$ac_ext" <<_ACEOF
25171 #line 25171 "configure"
25172 #include "confdefs.h"
25175 #include <stdbool.h>
25181 bool foo = false; (void)foo
25186 rm -f "conftest.$ac_objext"
25187 if { (eval echo "$as_me:25187: \"$ac_compile\"") >&5
25188 (eval $ac_compile) 2>&5
25190 echo "$as_me:25190: \$? = $ac_status" >&5
25191 (exit "$ac_status"); } &&
25192 { ac_try='test -s "conftest.$ac_objext"'
25193 { (eval echo "$as_me:25193: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25196 echo "$as_me:25196: \$? = $ac_status" >&5
25197 (exit "$ac_status"); }; }; then
25198 cf_cv_header_stdbool_h=1
25200 echo "$as_me: failed program was:" >&5
25201 cat "conftest.$ac_ext" >&5
25202 cf_cv_header_stdbool_h=0
25204 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25206 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25209 if test "$cf_cv_header_stdbool_h" = 1
25210 then echo "$as_me:25210: result: yes" >&5
25211 echo "${ECHO_T}yes" >&6
25212 else echo "$as_me:25212: result: no" >&5
25213 echo "${ECHO_T}no" >&6
25216 echo "$as_me:25216: checking for builtin bool type" >&5
25217 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25219 if test "${cf_cv_cc_bool_type+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25223 cat >"conftest.$ac_ext" <<_ACEOF
25224 #line 25224 "configure"
25225 #include "confdefs.h"
25228 #include <sys/types.h>
25233 bool x = false; (void)x
25238 rm -f "conftest.$ac_objext"
25239 if { (eval echo "$as_me:25239: \"$ac_compile\"") >&5
25240 (eval $ac_compile) 2>&5
25242 echo "$as_me:25242: \$? = $ac_status" >&5
25243 (exit "$ac_status"); } &&
25244 { ac_try='test -s "conftest.$ac_objext"'
25245 { (eval echo "$as_me:25245: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25248 echo "$as_me:25248: \$? = $ac_status" >&5
25249 (exit "$ac_status"); }; }; then
25250 cf_cv_cc_bool_type=1
25252 echo "$as_me: failed program was:" >&5
25253 cat "conftest.$ac_ext" >&5
25254 cf_cv_cc_bool_type=0
25256 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25260 if test "$cf_cv_cc_bool_type" = 1
25261 then echo "$as_me:25261: result: yes" >&5
25262 echo "${ECHO_T}yes" >&6
25263 else echo "$as_me:25263: result: no" >&5
25264 echo "${ECHO_T}no" >&6
25267 # Check for C++ compiler characteristics (and ensure that it's there!)
25268 if test -n "$CXX" ; then
25270 ac_cpp='$CXXCPP $CPPFLAGS'
25271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25272 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25274 ac_main_return="return"
25276 if test -n "$GXX" ; then
25279 LIBS="$LIBS $CXXLIBS"
25280 echo "$as_me:25280: checking if we already have C++ library" >&5
25281 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25282 cat >"conftest.$ac_ext" <<_ACEOF
25283 #line 25283 "configure"
25284 #include "confdefs.h"
25286 #include <iostream>
25291 std::cout << "Hello World!" << std::endl;
25296 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25297 if { (eval echo "$as_me:25297: \"$ac_link\"") >&5
25298 (eval $ac_link) 2>&5
25300 echo "$as_me:25300: \$? = $ac_status" >&5
25301 (exit "$ac_status"); } &&
25302 { ac_try='test -s "conftest$ac_exeext"'
25303 { (eval echo "$as_me:25303: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25306 echo "$as_me:25306: \$? = $ac_status" >&5
25307 (exit "$ac_status"); }; }; then
25308 cf_have_libstdcpp=yes
25310 echo "$as_me: failed program was:" >&5
25311 cat "conftest.$ac_ext" >&5
25312 cf_have_libstdcpp=no
25314 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25315 echo "$as_me:25315: result: $cf_have_libstdcpp" >&5
25316 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25319 if test "$cf_have_libstdcpp" != yes
25321 case "$cf_cv_system_name" in
25323 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25324 cf_stdcpp_libname=stdcpp
25326 cf_stdcpp_libname=stdc++
25330 cf_stdcpp_libname=stdc++
25334 echo "$as_me:25334: checking for library $cf_stdcpp_libname" >&5
25335 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25336 if test "${cf_cv_libstdcpp+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 LIBS="$LIBS $CXXLIBS"
25343 cf_add_libs="$LIBS"
25346 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25347 # filter duplicates
25348 for cf_add_1lib in $cf_add_0lib; do
25349 for cf_add_2lib in $cf_add_libs; do
25350 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25355 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25357 LIBS="$cf_add_libs"
25359 cat >"conftest.$ac_ext" <<_ACEOF
25360 #line 25360 "configure"
25361 #include "confdefs.h"
25363 #include <iostream>
25368 std::cout << "Hello World!" << std::endl;
25373 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25374 if { (eval echo "$as_me:25374: \"$ac_link\"") >&5
25375 (eval $ac_link) 2>&5
25377 echo "$as_me:25377: \$? = $ac_status" >&5
25378 (exit "$ac_status"); } &&
25379 { ac_try='test -s "conftest$ac_exeext"'
25380 { (eval echo "$as_me:25380: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25383 echo "$as_me:25383: \$? = $ac_status" >&5
25384 (exit "$ac_status"); }; }; then
25385 cf_cv_libstdcpp=yes
25387 echo "$as_me: failed program was:" >&5
25388 cat "conftest.$ac_ext" >&5
25391 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25395 echo "$as_me:25395: result: $cf_cv_libstdcpp" >&5
25396 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25397 test "$cf_cv_libstdcpp" = yes && {
25398 cf_add_libs="$CXXLIBS"
25401 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25402 # filter duplicates
25403 for cf_add_1lib in $cf_add_0lib; do
25404 for cf_add_2lib in $cf_add_libs; do
25405 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25410 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25412 CXXLIBS="$cf_add_libs"
25417 echo "$as_me:25417: checking whether $CXX understands -c and -o together" >&5
25418 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25419 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25423 cat > conftest.$ac_ext <<CF_EOF
25426 ${cf_cv_main_return:-return}(0);
25429 # We do the test twice because some compilers refuse to overwrite an
25430 # existing .o file with -o, though they will create one.
25431 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25432 if { (eval echo "$as_me:25432: \"$ac_try\"") >&5
25433 (eval $ac_try) 2>&5
25435 echo "$as_me:25435: \$? = $ac_status" >&5
25436 (exit "$ac_status"); } &&
25437 test -f conftest2.$ac_objext && { (eval echo "$as_me:25437: \"$ac_try\"") >&5
25438 (eval $ac_try) 2>&5
25440 echo "$as_me:25440: \$? = $ac_status" >&5
25441 (exit "$ac_status"); };
25443 eval cf_cv_prog_CXX_c_o=yes
25445 eval cf_cv_prog_CXX_c_o=no
25450 if test "$cf_cv_prog_CXX_c_o" = yes; then
25451 echo "$as_me:25451: result: yes" >&5
25452 echo "${ECHO_T}yes" >&6
25454 echo "$as_me:25454: result: no" >&5
25455 echo "${ECHO_T}no" >&6
25458 case "$GXX_VERSION" in
25459 (1.*|2.[0-6]*|[1-9][0-9].*)
25464 cf_cxx_library=unknown
25465 case "$cf_cv_system_name" in
25473 if test "$GXX" = yes; then
25474 echo "$as_me:25474: checking for lib$cf_gpp_libname" >&5
25475 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25478 cf_add_libs="$LIBS"
25481 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25482 # filter duplicates
25483 for cf_add_1lib in $cf_add_0lib; do
25484 for cf_add_2lib in $cf_add_libs; do
25485 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25490 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25492 LIBS="$cf_add_libs"
25494 cat >"conftest.$ac_ext" <<_ACEOF
25495 #line 25495 "configure"
25496 #include "confdefs.h"
25498 #include <$cf_gpp_libname/builtin.h>
25503 two_arg_error_handler_t foo2 = lib_error_handler
25508 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25509 if { (eval echo "$as_me:25509: \"$ac_link\"") >&5
25510 (eval $ac_link) 2>&5
25512 echo "$as_me:25512: \$? = $ac_status" >&5
25513 (exit "$ac_status"); } &&
25514 { ac_try='test -s "conftest$ac_exeext"'
25515 { (eval echo "$as_me:25515: \"$ac_try\"") >&5
25516 (eval $ac_try) 2>&5
25518 echo "$as_me:25518: \$? = $ac_status" >&5
25519 (exit "$ac_status"); }; }; then
25522 cf_add_libs="$CXXLIBS"
25525 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25526 # filter duplicates
25527 for cf_add_1lib in $cf_add_0lib; do
25528 for cf_add_2lib in $cf_add_libs; do
25529 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25534 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25536 CXXLIBS="$cf_add_libs"
25538 if test "$cf_gpp_libname" = cpp ; then
25540 cat >>confdefs.h <<\EOF
25541 #define HAVE_GPP_BUILTIN_H 1
25546 cat >>confdefs.h <<\EOF
25547 #define HAVE_GXX_BUILTIN_H 1
25552 echo "$as_me: failed program was:" >&5
25553 cat "conftest.$ac_ext" >&5
25554 cat >"conftest.$ac_ext" <<_ACEOF
25555 #line 25555 "configure"
25556 #include "confdefs.h"
25558 #include <builtin.h>
25563 two_arg_error_handler_t foo2 = lib_error_handler
25568 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25569 if { (eval echo "$as_me:25569: \"$ac_link\"") >&5
25570 (eval $ac_link) 2>&5
25572 echo "$as_me:25572: \$? = $ac_status" >&5
25573 (exit "$ac_status"); } &&
25574 { ac_try='test -s "conftest$ac_exeext"'
25575 { (eval echo "$as_me:25575: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25578 echo "$as_me:25578: \$? = $ac_status" >&5
25579 (exit "$ac_status"); }; }; then
25582 cf_add_libs="$CXXLIBS"
25585 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25586 # filter duplicates
25587 for cf_add_1lib in $cf_add_0lib; do
25588 for cf_add_2lib in $cf_add_libs; do
25589 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25594 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25596 CXXLIBS="$cf_add_libs"
25598 cat >>confdefs.h <<\EOF
25599 #define HAVE_BUILTIN_H 1
25603 echo "$as_me: failed program was:" >&5
25604 cat "conftest.$ac_ext" >&5
25607 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25609 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25611 echo "$as_me:25611: result: $cf_cxx_library" >&5
25612 echo "${ECHO_T}$cf_cxx_library" >&6
25622 ac_cpp='$CXXCPP $CPPFLAGS'
25623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25624 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25626 ac_main_return="return"
25627 echo "$as_me:25627: checking how to run the C++ preprocessor" >&5
25628 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25629 if test -z "$CXXCPP"; then
25630 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25631 echo $ECHO_N "(cached) $ECHO_C" >&6
25633 # Double quotes because CXXCPP needs to be expanded
25634 for CXXCPP in "$CXX -E" "/lib/cpp"
25636 ac_preproc_ok=false
25637 for ac_cxx_preproc_warn_flag in '' yes
25639 # Use a header file that comes with gcc, so configuring glibc
25640 # with a fresh cross-compiler works.
25641 # On the NeXT, cc -E runs the code through the compiler's parser,
25642 # not just through cpp. "Syntax error" is here to catch this case.
25643 cat >"conftest.$ac_ext" <<_ACEOF
25644 #line 25644 "configure"
25645 #include "confdefs.h"
25646 #include <assert.h>
25649 if { (eval echo "$as_me:25649: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25650 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25652 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25654 cat conftest.err >&5
25655 echo "$as_me:25655: \$? = $ac_status" >&5
25656 (exit "$ac_status"); } >/dev/null; then
25657 if test -s conftest.err; then
25658 ac_cpp_err=$ac_cxx_preproc_warn_flag
25665 if test -z "$ac_cpp_err"; then
25668 echo "$as_me: failed program was:" >&5
25669 cat "conftest.$ac_ext" >&5
25670 # Broken: fails on valid input.
25673 rm -f conftest.err "conftest.$ac_ext"
25675 # OK, works on sane cases. Now check whether non-existent headers
25676 # can be detected and how.
25677 cat >"conftest.$ac_ext" <<_ACEOF
25678 #line 25678 "configure"
25679 #include "confdefs.h"
25680 #include <ac_nonexistent.h>
25682 if { (eval echo "$as_me:25682: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25683 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25685 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 echo "$as_me:25688: \$? = $ac_status" >&5
25689 (exit "$ac_status"); } >/dev/null; then
25690 if test -s conftest.err; then
25691 ac_cpp_err=$ac_cxx_preproc_warn_flag
25698 if test -z "$ac_cpp_err"; then
25699 # Broken: success on invalid input.
25702 echo "$as_me: failed program was:" >&5
25703 cat "conftest.$ac_ext" >&5
25704 # Passes both tests.
25708 rm -f conftest.err "conftest.$ac_ext"
25711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25712 rm -f conftest.err "conftest.$ac_ext"
25713 if $ac_preproc_ok; then
25718 ac_cv_prog_CXXCPP=$CXXCPP
25721 CXXCPP=$ac_cv_prog_CXXCPP
25723 ac_cv_prog_CXXCPP=$CXXCPP
25725 echo "$as_me:25725: result: $CXXCPP" >&5
25726 echo "${ECHO_T}$CXXCPP" >&6
25727 ac_preproc_ok=false
25728 for ac_cxx_preproc_warn_flag in '' yes
25730 # Use a header file that comes with gcc, so configuring glibc
25731 # with a fresh cross-compiler works.
25732 # On the NeXT, cc -E runs the code through the compiler's parser,
25733 # not just through cpp. "Syntax error" is here to catch this case.
25734 cat >"conftest.$ac_ext" <<_ACEOF
25735 #line 25735 "configure"
25736 #include "confdefs.h"
25737 #include <assert.h>
25740 if { (eval echo "$as_me:25740: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25741 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25743 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25745 cat conftest.err >&5
25746 echo "$as_me:25746: \$? = $ac_status" >&5
25747 (exit "$ac_status"); } >/dev/null; then
25748 if test -s conftest.err; then
25749 ac_cpp_err=$ac_cxx_preproc_warn_flag
25756 if test -z "$ac_cpp_err"; then
25759 echo "$as_me: failed program was:" >&5
25760 cat "conftest.$ac_ext" >&5
25761 # Broken: fails on valid input.
25764 rm -f conftest.err "conftest.$ac_ext"
25766 # OK, works on sane cases. Now check whether non-existent headers
25767 # can be detected and how.
25768 cat >"conftest.$ac_ext" <<_ACEOF
25769 #line 25769 "configure"
25770 #include "confdefs.h"
25771 #include <ac_nonexistent.h>
25773 if { (eval echo "$as_me:25773: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25774 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25776 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25778 cat conftest.err >&5
25779 echo "$as_me:25779: \$? = $ac_status" >&5
25780 (exit "$ac_status"); } >/dev/null; then
25781 if test -s conftest.err; then
25782 ac_cpp_err=$ac_cxx_preproc_warn_flag
25789 if test -z "$ac_cpp_err"; then
25790 # Broken: success on invalid input.
25793 echo "$as_me: failed program was:" >&5
25794 cat "conftest.$ac_ext" >&5
25795 # Passes both tests.
25799 rm -f conftest.err "conftest.$ac_ext"
25802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25803 rm -f conftest.err "conftest.$ac_ext"
25804 if $ac_preproc_ok; then
25807 { { echo "$as_me:25807: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25808 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25809 { (exit 1); exit 1; }; }
25813 ac_cpp='$CXXCPP $CPPFLAGS'
25814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25815 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25817 ac_main_return="return"
25819 for ac_header in typeinfo
25821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25822 echo "$as_me:25822: checking for $ac_header" >&5
25823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25825 echo $ECHO_N "(cached) $ECHO_C" >&6
25827 cat >"conftest.$ac_ext" <<_ACEOF
25828 #line 25828 "configure"
25829 #include "confdefs.h"
25830 #include <$ac_header>
25832 if { (eval echo "$as_me:25832: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25833 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25835 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25837 cat conftest.err >&5
25838 echo "$as_me:25838: \$? = $ac_status" >&5
25839 (exit "$ac_status"); } >/dev/null; then
25840 if test -s conftest.err; then
25841 ac_cpp_err=$ac_cxx_preproc_warn_flag
25848 if test -z "$ac_cpp_err"; then
25849 eval "$as_ac_Header=yes"
25851 echo "$as_me: failed program was:" >&5
25852 cat "conftest.$ac_ext" >&5
25853 eval "$as_ac_Header=no"
25855 rm -f conftest.err "conftest.$ac_ext"
25857 echo "$as_me:25857: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25858 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25859 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25860 cat >>confdefs.h <<EOF
25861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25867 for ac_header in iostream
25869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25870 echo "$as_me:25870: checking for $ac_header" >&5
25871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25873 echo $ECHO_N "(cached) $ECHO_C" >&6
25875 cat >"conftest.$ac_ext" <<_ACEOF
25876 #line 25876 "configure"
25877 #include "confdefs.h"
25878 #include <$ac_header>
25880 if { (eval echo "$as_me:25880: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25881 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25883 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25885 cat conftest.err >&5
25886 echo "$as_me:25886: \$? = $ac_status" >&5
25887 (exit "$ac_status"); } >/dev/null; then
25888 if test -s conftest.err; then
25889 ac_cpp_err=$ac_cxx_preproc_warn_flag
25896 if test -z "$ac_cpp_err"; then
25897 eval "$as_ac_Header=yes"
25899 echo "$as_me: failed program was:" >&5
25900 cat "conftest.$ac_ext" >&5
25901 eval "$as_ac_Header=no"
25903 rm -f conftest.err "conftest.$ac_ext"
25905 echo "$as_me:25905: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25906 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25907 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25908 cat >>confdefs.h <<EOF
25909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25915 if test x"$ac_cv_header_iostream" = xyes ; then
25916 echo "$as_me:25916: checking if iostream uses std-namespace" >&5
25917 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25918 cat >"conftest.$ac_ext" <<_ACEOF
25919 #line 25919 "configure"
25920 #include "confdefs.h"
25922 #include <iostream>
25929 cerr << "testing" << endl;
25935 rm -f "conftest.$ac_objext"
25936 if { (eval echo "$as_me:25936: \"$ac_compile\"") >&5
25937 (eval $ac_compile) 2>&5
25939 echo "$as_me:25939: \$? = $ac_status" >&5
25940 (exit "$ac_status"); } &&
25941 { ac_try='test -s "conftest.$ac_objext"'
25942 { (eval echo "$as_me:25942: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25945 echo "$as_me:25945: \$? = $ac_status" >&5
25946 (exit "$ac_status"); }; }; then
25947 cf_iostream_namespace=yes
25949 echo "$as_me: failed program was:" >&5
25950 cat "conftest.$ac_ext" >&5
25951 cf_iostream_namespace=no
25953 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25954 echo "$as_me:25954: result: $cf_iostream_namespace" >&5
25955 echo "${ECHO_T}$cf_iostream_namespace" >&6
25956 if test "$cf_iostream_namespace" = yes ; then
25958 cat >>confdefs.h <<\EOF
25959 #define IOSTREAM_NAMESPACE 1
25965 echo "$as_me:25965: checking if we should include stdbool.h" >&5
25966 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25968 if test "${cf_cv_header_stdbool_h+set}" = set; then
25969 echo $ECHO_N "(cached) $ECHO_C" >&6
25972 cat >"conftest.$ac_ext" <<_ACEOF
25973 #line 25973 "configure"
25974 #include "confdefs.h"
25979 bool foo = false; (void)foo
25984 rm -f "conftest.$ac_objext"
25985 if { (eval echo "$as_me:25985: \"$ac_compile\"") >&5
25986 (eval $ac_compile) 2>&5
25988 echo "$as_me:25988: \$? = $ac_status" >&5
25989 (exit "$ac_status"); } &&
25990 { ac_try='test -s "conftest.$ac_objext"'
25991 { (eval echo "$as_me:25991: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25994 echo "$as_me:25994: \$? = $ac_status" >&5
25995 (exit "$ac_status"); }; }; then
25996 cf_cv_header_stdbool_h=0
25998 echo "$as_me: failed program was:" >&5
25999 cat "conftest.$ac_ext" >&5
26000 cat >"conftest.$ac_ext" <<_ACEOF
26001 #line 26001 "configure"
26002 #include "confdefs.h"
26005 #include <stdbool.h>
26011 bool foo = false; (void)foo
26016 rm -f "conftest.$ac_objext"
26017 if { (eval echo "$as_me:26017: \"$ac_compile\"") >&5
26018 (eval $ac_compile) 2>&5
26020 echo "$as_me:26020: \$? = $ac_status" >&5
26021 (exit "$ac_status"); } &&
26022 { ac_try='test -s "conftest.$ac_objext"'
26023 { (eval echo "$as_me:26023: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26026 echo "$as_me:26026: \$? = $ac_status" >&5
26027 (exit "$ac_status"); }; }; then
26028 cf_cv_header_stdbool_h=1
26030 echo "$as_me: failed program was:" >&5
26031 cat "conftest.$ac_ext" >&5
26032 cf_cv_header_stdbool_h=0
26034 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26036 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26039 if test "$cf_cv_header_stdbool_h" = 1
26040 then echo "$as_me:26040: result: yes" >&5
26041 echo "${ECHO_T}yes" >&6
26042 else echo "$as_me:26042: result: no" >&5
26043 echo "${ECHO_T}no" >&6
26046 echo "$as_me:26046: checking for builtin bool type" >&5
26047 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
26049 if test "${cf_cv_builtin_bool+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26053 cat >"conftest.$ac_ext" <<_ACEOF
26054 #line 26054 "configure"
26055 #include "confdefs.h"
26058 #include <sys/types.h>
26063 bool x = false; (void)x
26068 rm -f "conftest.$ac_objext"
26069 if { (eval echo "$as_me:26069: \"$ac_compile\"") >&5
26070 (eval $ac_compile) 2>&5
26072 echo "$as_me:26072: \$? = $ac_status" >&5
26073 (exit "$ac_status"); } &&
26074 { ac_try='test -s "conftest.$ac_objext"'
26075 { (eval echo "$as_me:26075: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26078 echo "$as_me:26078: \$? = $ac_status" >&5
26079 (exit "$ac_status"); }; }; then
26080 cf_cv_builtin_bool=1
26082 echo "$as_me: failed program was:" >&5
26083 cat "conftest.$ac_ext" >&5
26084 cf_cv_builtin_bool=0
26086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26090 if test "$cf_cv_builtin_bool" = 1
26091 then echo "$as_me:26091: result: yes" >&5
26092 echo "${ECHO_T}yes" >&6
26093 else echo "$as_me:26093: result: no" >&5
26094 echo "${ECHO_T}no" >&6
26097 echo "$as_me:26097: checking for bool" >&5
26098 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26099 if test "${ac_cv_type_bool+set}" = set; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 cat >"conftest.$ac_ext" <<_ACEOF
26103 #line 26103 "configure"
26104 #include "confdefs.h"
26106 $ac_includes_default
26108 #if defined(__cplusplus)
26110 #ifdef HAVE_GXX_BUILTIN_H
26111 #include <g++/builtin.h>
26112 #elif HAVE_GPP_BUILTIN_H
26113 #include <gpp/builtin.h>
26114 #elif HAVE_BUILTIN_H
26115 #include <builtin.h>
26120 #if $cf_cv_header_stdbool_h
26121 #include <stdbool.h>
26137 rm -f "conftest.$ac_objext"
26138 if { (eval echo "$as_me:26138: \"$ac_compile\"") >&5
26139 (eval $ac_compile) 2>&5
26141 echo "$as_me:26141: \$? = $ac_status" >&5
26142 (exit "$ac_status"); } &&
26143 { ac_try='test -s "conftest.$ac_objext"'
26144 { (eval echo "$as_me:26144: \"$ac_try\"") >&5
26145 (eval $ac_try) 2>&5
26147 echo "$as_me:26147: \$? = $ac_status" >&5
26148 (exit "$ac_status"); }; }; then
26149 ac_cv_type_bool=yes
26151 echo "$as_me: failed program was:" >&5
26152 cat "conftest.$ac_ext" >&5
26155 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26157 echo "$as_me:26157: result: $ac_cv_type_bool" >&5
26158 echo "${ECHO_T}$ac_cv_type_bool" >&6
26160 echo "$as_me:26160: checking size of bool" >&5
26161 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26162 if test "${ac_cv_sizeof_bool+set}" = set; then
26163 echo $ECHO_N "(cached) $ECHO_C" >&6
26165 if test "$ac_cv_type_bool" = yes; then
26166 if test "$cross_compiling" = yes; then
26167 # Depending upon the size, compute the lo and hi bounds.
26168 cat >"conftest.$ac_ext" <<_ACEOF
26169 #line 26169 "configure"
26170 #include "confdefs.h"
26172 $ac_includes_default
26174 #if defined(__cplusplus)
26176 #ifdef HAVE_GXX_BUILTIN_H
26177 #include <g++/builtin.h>
26178 #elif HAVE_GPP_BUILTIN_H
26179 #include <gpp/builtin.h>
26180 #elif HAVE_BUILTIN_H
26181 #include <builtin.h>
26186 #if $cf_cv_header_stdbool_h
26187 #include <stdbool.h>
26195 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26200 rm -f "conftest.$ac_objext"
26201 if { (eval echo "$as_me:26201: \"$ac_compile\"") >&5
26202 (eval $ac_compile) 2>&5
26204 echo "$as_me:26204: \$? = $ac_status" >&5
26205 (exit "$ac_status"); } &&
26206 { ac_try='test -s "conftest.$ac_objext"'
26207 { (eval echo "$as_me:26207: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26210 echo "$as_me:26210: \$? = $ac_status" >&5
26211 (exit "$ac_status"); }; }; then
26214 cat >"conftest.$ac_ext" <<_ACEOF
26215 #line 26215 "configure"
26216 #include "confdefs.h"
26218 $ac_includes_default
26220 #if defined(__cplusplus)
26222 #ifdef HAVE_GXX_BUILTIN_H
26223 #include <g++/builtin.h>
26224 #elif HAVE_GPP_BUILTIN_H
26225 #include <gpp/builtin.h>
26226 #elif HAVE_BUILTIN_H
26227 #include <builtin.h>
26232 #if $cf_cv_header_stdbool_h
26233 #include <stdbool.h>
26241 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26246 rm -f "conftest.$ac_objext"
26247 if { (eval echo "$as_me:26247: \"$ac_compile\"") >&5
26248 (eval $ac_compile) 2>&5
26250 echo "$as_me:26250: \$? = $ac_status" >&5
26251 (exit "$ac_status"); } &&
26252 { ac_try='test -s "conftest.$ac_objext"'
26253 { (eval echo "$as_me:26253: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26256 echo "$as_me:26256: \$? = $ac_status" >&5
26257 (exit "$ac_status"); }; }; then
26258 ac_hi=$ac_mid; break
26260 echo "$as_me: failed program was:" >&5
26261 cat "conftest.$ac_ext" >&5
26262 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26264 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26267 echo "$as_me: failed program was:" >&5
26268 cat "conftest.$ac_ext" >&5
26271 cat >"conftest.$ac_ext" <<_ACEOF
26272 #line 26272 "configure"
26273 #include "confdefs.h"
26275 $ac_includes_default
26277 #if defined(__cplusplus)
26279 #ifdef HAVE_GXX_BUILTIN_H
26280 #include <g++/builtin.h>
26281 #elif HAVE_GPP_BUILTIN_H
26282 #include <gpp/builtin.h>
26283 #elif HAVE_BUILTIN_H
26284 #include <builtin.h>
26289 #if $cf_cv_header_stdbool_h
26290 #include <stdbool.h>
26298 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26303 rm -f "conftest.$ac_objext"
26304 if { (eval echo "$as_me:26304: \"$ac_compile\"") >&5
26305 (eval $ac_compile) 2>&5
26307 echo "$as_me:26307: \$? = $ac_status" >&5
26308 (exit "$ac_status"); } &&
26309 { ac_try='test -s "conftest.$ac_objext"'
26310 { (eval echo "$as_me:26310: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26313 echo "$as_me:26313: \$? = $ac_status" >&5
26314 (exit "$ac_status"); }; }; then
26315 ac_lo=$ac_mid; break
26317 echo "$as_me: failed program was:" >&5
26318 cat "conftest.$ac_ext" >&5
26319 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26324 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26325 # Binary search between lo and hi bounds.
26326 while test "x$ac_lo" != "x$ac_hi"; do
26327 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26328 cat >"conftest.$ac_ext" <<_ACEOF
26329 #line 26329 "configure"
26330 #include "confdefs.h"
26332 $ac_includes_default
26334 #if defined(__cplusplus)
26336 #ifdef HAVE_GXX_BUILTIN_H
26337 #include <g++/builtin.h>
26338 #elif HAVE_GPP_BUILTIN_H
26339 #include <gpp/builtin.h>
26340 #elif HAVE_BUILTIN_H
26341 #include <builtin.h>
26346 #if $cf_cv_header_stdbool_h
26347 #include <stdbool.h>
26355 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26360 rm -f "conftest.$ac_objext"
26361 if { (eval echo "$as_me:26361: \"$ac_compile\"") >&5
26362 (eval $ac_compile) 2>&5
26364 echo "$as_me:26364: \$? = $ac_status" >&5
26365 (exit "$ac_status"); } &&
26366 { ac_try='test -s "conftest.$ac_objext"'
26367 { (eval echo "$as_me:26367: \"$ac_try\"") >&5
26368 (eval $ac_try) 2>&5
26370 echo "$as_me:26370: \$? = $ac_status" >&5
26371 (exit "$ac_status"); }; }; then
26374 echo "$as_me: failed program was:" >&5
26375 cat "conftest.$ac_ext" >&5
26376 ac_lo=`expr "$ac_mid" + 1`
26378 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26380 ac_cv_sizeof_bool=$ac_lo
26382 if test "$cross_compiling" = yes; then
26383 { { echo "$as_me:26383: error: cannot run test program while cross compiling" >&5
26384 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26385 { (exit 1); exit 1; }; }
26387 cat >"conftest.$ac_ext" <<_ACEOF
26388 #line 26388 "configure"
26389 #include "confdefs.h"
26391 $ac_includes_default
26393 #if defined(__cplusplus)
26395 #ifdef HAVE_GXX_BUILTIN_H
26396 #include <g++/builtin.h>
26397 #elif HAVE_GPP_BUILTIN_H
26398 #include <gpp/builtin.h>
26399 #elif HAVE_BUILTIN_H
26400 #include <builtin.h>
26405 #if $cf_cv_header_stdbool_h
26406 #include <stdbool.h>
26414 FILE *f = fopen ("conftest.val", "w");
26416 $ac_main_return (1);
26417 fprintf (f, "%ld", (long)(sizeof (bool)));
26423 rm -f "conftest$ac_exeext"
26424 if { (eval echo "$as_me:26424: \"$ac_link\"") >&5
26425 (eval $ac_link) 2>&5
26427 echo "$as_me:26427: \$? = $ac_status" >&5
26428 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26429 { (eval echo "$as_me:26429: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26432 echo "$as_me:26432: \$? = $ac_status" >&5
26433 (exit "$ac_status"); }; }; then
26434 ac_cv_sizeof_bool=`cat conftest.val`
26436 echo "$as_me: program exited with status $ac_status" >&5
26437 echo "$as_me: failed program was:" >&5
26438 cat "conftest.$ac_ext" >&5
26440 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26445 ac_cv_sizeof_bool=0
26448 echo "$as_me:26448: result: $ac_cv_sizeof_bool" >&5
26449 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26450 cat >>confdefs.h <<EOF
26451 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26454 echo "$as_me:26454: checking for type of bool" >&5
26455 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26456 if test "${cf_cv_type_of_bool+set}" = set; then
26457 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 if test "$cross_compiling" = yes; then
26463 case x$ac_cv_sizeof_bool in
26464 (x1) cf_cv_type_of_bool="unsigned char";;
26465 (x2) cf_cv_type_of_bool="unsigned short";;
26466 (x4) cf_cv_type_of_bool="unsigned int";;
26467 (x8) cf_cv_type_of_bool="unsigned long";;
26468 (*) cf_cv_type_of_bool=unknown;;
26472 cat >"conftest.$ac_ext" <<_ACEOF
26473 #line 26473 "configure"
26474 #include "confdefs.h"
26476 $ac_includes_default
26478 #if defined(__cplusplus)
26480 #ifdef HAVE_GXX_BUILTIN_H
26481 #include <g++/builtin.h>
26482 #elif HAVE_GPP_BUILTIN_H
26483 #include <gpp/builtin.h>
26484 #elif HAVE_BUILTIN_H
26485 #include <builtin.h>
26490 #if $cf_cv_header_stdbool_h
26491 #include <stdbool.h>
26498 FILE *fp = fopen("cf_test.out", "w");
26501 if ((bool)(-x) >= 0)
26502 fputs("unsigned ", fp);
26503 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26504 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26505 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26506 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26509 ${cf_cv_main_return:-return}(0);
26513 rm -f "conftest$ac_exeext"
26514 if { (eval echo "$as_me:26514: \"$ac_link\"") >&5
26515 (eval $ac_link) 2>&5
26517 echo "$as_me:26517: \$? = $ac_status" >&5
26518 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26519 { (eval echo "$as_me:26519: \"$ac_try\"") >&5
26520 (eval $ac_try) 2>&5
26522 echo "$as_me:26522: \$? = $ac_status" >&5
26523 (exit "$ac_status"); }; }; then
26524 cf_cv_type_of_bool=`cat cf_test.out`
26525 if test -z "$cf_cv_type_of_bool"; then
26526 cf_cv_type_of_bool=unknown
26529 echo "$as_me: program exited with status $ac_status" >&5
26530 echo "$as_me: failed program was:" >&5
26531 cat "conftest.$ac_ext" >&5
26532 cf_cv_type_of_bool=unknown
26534 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26539 echo "$as_me:26539: result: $cf_cv_type_of_bool" >&5
26540 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26542 if test "$cf_cv_type_of_bool" = unknown ; then
26543 case .$NCURSES_BOOL in
26544 (.auto|.) NCURSES_BOOL=unsigned;;
26546 { echo "$as_me:26546: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26547 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26548 cf_cv_type_of_bool=$NCURSES_BOOL
26551 echo "$as_me:26551: checking for special defines needed for etip.h" >&5
26552 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26553 cf_save_CXXFLAGS="$CXXFLAGS"
26556 # etip.h includes ncurses.h which includes ncurses_dll.h
26557 # But ncurses_dll.h is generated - fix here.
26558 test -d include || mkdir include
26559 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
26561 for cf_math in "" MATH_H
26563 for cf_excp in "" MATH_EXCEPTION
26565 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26566 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26567 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26568 cat >"conftest.$ac_ext" <<_ACEOF
26569 #line 26569 "configure"
26570 #include "confdefs.h"
26572 #include <etip.h.in>
26582 rm -f "conftest.$ac_objext"
26583 if { (eval echo "$as_me:26583: \"$ac_compile\"") >&5
26584 (eval $ac_compile) 2>&5
26586 echo "$as_me:26586: \$? = $ac_status" >&5
26587 (exit "$ac_status"); } &&
26588 { ac_try='test -s "conftest.$ac_objext"'
26589 { (eval echo "$as_me:26589: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26592 echo "$as_me:26592: \$? = $ac_status" >&5
26593 (exit "$ac_status"); }; }; then
26595 test -n "$cf_math" && cat >>confdefs.h <<EOF
26596 #define ETIP_NEEDS_${cf_math} 1
26599 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26600 #define ETIP_NEEDS_${cf_excp} 1
26603 cf_result="$cf_math $cf_excp"
26607 echo "$as_me: failed program was:" >&5
26608 cat "conftest.$ac_ext" >&5
26610 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26613 echo "$as_me:26613: result: ${cf_result:-(none)}" >&5
26614 echo "${ECHO_T}${cf_result:-(none)}" >&6
26615 CXXFLAGS="$cf_save_CXXFLAGS"
26617 if test -n "$CXX"; then
26618 echo "$as_me:26618: checking if $CXX accepts override keyword" >&5
26619 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26620 if test "${cf_cv_cpp_override+set}" = set; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 ac_cpp='$CXXCPP $CPPFLAGS'
26626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26627 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26629 ac_main_return="return"
26631 if test "$cross_compiling" = yes; then
26632 cf_cv_cpp_override=unknown
26634 cat >"conftest.$ac_ext" <<_ACEOF
26635 #line 26635 "configure"
26636 #include "confdefs.h"
26641 virtual int foo(float x) = 0;
26644 class derived: public base
26647 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26653 rm -f "conftest$ac_exeext"
26654 if { (eval echo "$as_me:26654: \"$ac_link\"") >&5
26655 (eval $ac_link) 2>&5
26657 echo "$as_me:26657: \$? = $ac_status" >&5
26658 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26659 { (eval echo "$as_me:26659: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26662 echo "$as_me:26662: \$? = $ac_status" >&5
26663 (exit "$ac_status"); }; }; then
26664 cf_cv_cpp_override=yes
26666 echo "$as_me: program exited with status $ac_status" >&5
26667 echo "$as_me: failed program was:" >&5
26668 cat "conftest.$ac_ext" >&5
26669 cf_cv_cpp_override=no
26671 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26674 ac_cpp='$CXXCPP $CPPFLAGS'
26675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26676 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26678 ac_main_return="return"
26681 echo "$as_me:26681: result: $cf_cv_cpp_override" >&5
26682 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26684 test "$cf_cv_cpp_override" = yes &&
26685 cat >>confdefs.h <<\EOF
26686 #define CPP_HAS_OVERRIDE 1
26689 if test -n "$CXX"; then
26690 echo "$as_me:26690: checking if $CXX accepts parameter initialization" >&5
26691 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26692 if test "${cf_cv_cpp_param_init+set}" = set; then
26693 echo $ECHO_N "(cached) $ECHO_C" >&6
26697 ac_cpp='$CXXCPP $CPPFLAGS'
26698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26699 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26701 ac_main_return="return"
26703 if test "$cross_compiling" = yes; then
26704 cf_cv_cpp_param_init=unknown
26706 cat >"conftest.$ac_ext" <<_ACEOF
26707 #line 26707 "configure"
26708 #include "confdefs.h"
26718 TEST::TEST(int x = 1) // some compilers do not like second initializer
26725 rm -f "conftest$ac_exeext"
26726 if { (eval echo "$as_me:26726: \"$ac_link\"") >&5
26727 (eval $ac_link) 2>&5
26729 echo "$as_me:26729: \$? = $ac_status" >&5
26730 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26731 { (eval echo "$as_me:26731: \"$ac_try\"") >&5
26732 (eval $ac_try) 2>&5
26734 echo "$as_me:26734: \$? = $ac_status" >&5
26735 (exit "$ac_status"); }; }; then
26736 cf_cv_cpp_param_init=yes
26738 echo "$as_me: program exited with status $ac_status" >&5
26739 echo "$as_me: failed program was:" >&5
26740 cat "conftest.$ac_ext" >&5
26741 cf_cv_cpp_param_init=no
26743 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26746 ac_cpp='$CXXCPP $CPPFLAGS'
26747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26748 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26750 ac_main_return="return"
26753 echo "$as_me:26753: result: $cf_cv_cpp_param_init" >&5
26754 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26756 test "$cf_cv_cpp_param_init" = yes &&
26757 cat >>confdefs.h <<\EOF
26758 #define CPP_HAS_PARAM_INIT 1
26761 if test -n "$CXX"; then
26763 echo "$as_me:26763: checking if $CXX accepts static_cast" >&5
26764 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26765 if test "${cf_cv_cpp_static_cast+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26770 ac_cpp='$CXXCPP $CPPFLAGS'
26771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26772 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26774 ac_main_return="return"
26776 cat >"conftest.$ac_ext" <<_ACEOF
26777 #line 26777 "configure"
26778 #include "confdefs.h"
26783 NCursesPanel(int nlines,
26793 template<class T> class NCursesUserPanel : public NCursesPanel
26796 NCursesUserPanel (int nlines,
26800 const T* p_UserData = static_cast<T*>(0))
26801 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26804 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26808 virtual ~NCursesUserPanel() {};
26815 const char* p_UserData = static_cast<char*>(0)
26820 rm -f "conftest.$ac_objext"
26821 if { (eval echo "$as_me:26821: \"$ac_compile\"") >&5
26822 (eval $ac_compile) 2>&5
26824 echo "$as_me:26824: \$? = $ac_status" >&5
26825 (exit "$ac_status"); } &&
26826 { ac_try='test -s "conftest.$ac_objext"'
26827 { (eval echo "$as_me:26827: \"$ac_try\"") >&5
26828 (eval $ac_try) 2>&5
26830 echo "$as_me:26830: \$? = $ac_status" >&5
26831 (exit "$ac_status"); }; }; then
26832 cf_cv_cpp_static_cast=yes
26834 echo "$as_me: failed program was:" >&5
26835 cat "conftest.$ac_ext" >&5
26836 cf_cv_cpp_static_cast=no
26838 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26841 ac_cpp='$CXXCPP $CPPFLAGS'
26842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26843 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26845 ac_main_return="return"
26848 echo "$as_me:26848: result: $cf_cv_cpp_static_cast" >&5
26849 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26853 test "$cf_cv_cpp_static_cast" = yes &&
26854 cat >>confdefs.h <<\EOF
26855 #define CPP_HAS_STATIC_CAST 1
26859 CXX_ARFLAGS='$(ARFLAGS)'
26860 case "$cf_cv_system_name" in
26862 if test "$GXX" != yes ; then
26864 CXX_ARFLAGS='-ar -o'
26868 CXXLDFLAGS="-u main"
26871 if test "$GXX" != yes ; then
26873 CXX_ARFLAGS='-xar -o'
26880 cf_cv_builtin_bool=1
26882 # Just because we are not configuring against C++ right now does not
26883 # mean that a user will not want to use C++. Some distributors disable
26884 # the C++ portion of this configuration as a shortcut (or just to avoid
26885 # compiling the demo in the c++ directory). So we need a reasonable
26886 # default for the 'bool' type.
26888 # Caveat: since the storage of the bool type is not standardized, it
26891 if test "$NCURSES_BOOL" != auto ; then
26892 cf_cv_type_of_bool=$NCURSES_BOOL
26893 cf_cv_header_stdbool_h=0
26895 if test "$cf_cv_header_stdbool_h" = 1 ; then
26897 echo "$as_me:26897: checking for bool" >&5
26898 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26899 if test "${ac_cv_type_bool+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 cat >"conftest.$ac_ext" <<_ACEOF
26903 #line 26903 "configure"
26904 #include "confdefs.h"
26906 $ac_includes_default
26908 #if defined(__cplusplus)
26910 #ifdef HAVE_GXX_BUILTIN_H
26911 #include <g++/builtin.h>
26912 #elif HAVE_GPP_BUILTIN_H
26913 #include <gpp/builtin.h>
26914 #elif HAVE_BUILTIN_H
26915 #include <builtin.h>
26920 #if $cf_cv_header_stdbool_h
26921 #include <stdbool.h>
26937 rm -f "conftest.$ac_objext"
26938 if { (eval echo "$as_me:26938: \"$ac_compile\"") >&5
26939 (eval $ac_compile) 2>&5
26941 echo "$as_me:26941: \$? = $ac_status" >&5
26942 (exit "$ac_status"); } &&
26943 { ac_try='test -s "conftest.$ac_objext"'
26944 { (eval echo "$as_me:26944: \"$ac_try\"") >&5
26945 (eval $ac_try) 2>&5
26947 echo "$as_me:26947: \$? = $ac_status" >&5
26948 (exit "$ac_status"); }; }; then
26949 ac_cv_type_bool=yes
26951 echo "$as_me: failed program was:" >&5
26952 cat "conftest.$ac_ext" >&5
26955 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26957 echo "$as_me:26957: result: $ac_cv_type_bool" >&5
26958 echo "${ECHO_T}$ac_cv_type_bool" >&6
26960 echo "$as_me:26960: checking size of bool" >&5
26961 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26962 if test "${ac_cv_sizeof_bool+set}" = set; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 if test "$ac_cv_type_bool" = yes; then
26966 if test "$cross_compiling" = yes; then
26967 # Depending upon the size, compute the lo and hi bounds.
26968 cat >"conftest.$ac_ext" <<_ACEOF
26969 #line 26969 "configure"
26970 #include "confdefs.h"
26972 $ac_includes_default
26974 #if defined(__cplusplus)
26976 #ifdef HAVE_GXX_BUILTIN_H
26977 #include <g++/builtin.h>
26978 #elif HAVE_GPP_BUILTIN_H
26979 #include <gpp/builtin.h>
26980 #elif HAVE_BUILTIN_H
26981 #include <builtin.h>
26986 #if $cf_cv_header_stdbool_h
26987 #include <stdbool.h>
26995 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
27000 rm -f "conftest.$ac_objext"
27001 if { (eval echo "$as_me:27001: \"$ac_compile\"") >&5
27002 (eval $ac_compile) 2>&5
27004 echo "$as_me:27004: \$? = $ac_status" >&5
27005 (exit "$ac_status"); } &&
27006 { ac_try='test -s "conftest.$ac_objext"'
27007 { (eval echo "$as_me:27007: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27010 echo "$as_me:27010: \$? = $ac_status" >&5
27011 (exit "$ac_status"); }; }; then
27014 cat >"conftest.$ac_ext" <<_ACEOF
27015 #line 27015 "configure"
27016 #include "confdefs.h"
27018 $ac_includes_default
27020 #if defined(__cplusplus)
27022 #ifdef HAVE_GXX_BUILTIN_H
27023 #include <g++/builtin.h>
27024 #elif HAVE_GPP_BUILTIN_H
27025 #include <gpp/builtin.h>
27026 #elif HAVE_BUILTIN_H
27027 #include <builtin.h>
27032 #if $cf_cv_header_stdbool_h
27033 #include <stdbool.h>
27041 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27046 rm -f "conftest.$ac_objext"
27047 if { (eval echo "$as_me:27047: \"$ac_compile\"") >&5
27048 (eval $ac_compile) 2>&5
27050 echo "$as_me:27050: \$? = $ac_status" >&5
27051 (exit "$ac_status"); } &&
27052 { ac_try='test -s "conftest.$ac_objext"'
27053 { (eval echo "$as_me:27053: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27056 echo "$as_me:27056: \$? = $ac_status" >&5
27057 (exit "$ac_status"); }; }; then
27058 ac_hi=$ac_mid; break
27060 echo "$as_me: failed program was:" >&5
27061 cat "conftest.$ac_ext" >&5
27062 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27064 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27067 echo "$as_me: failed program was:" >&5
27068 cat "conftest.$ac_ext" >&5
27071 cat >"conftest.$ac_ext" <<_ACEOF
27072 #line 27072 "configure"
27073 #include "confdefs.h"
27075 $ac_includes_default
27077 #if defined(__cplusplus)
27079 #ifdef HAVE_GXX_BUILTIN_H
27080 #include <g++/builtin.h>
27081 #elif HAVE_GPP_BUILTIN_H
27082 #include <gpp/builtin.h>
27083 #elif HAVE_BUILTIN_H
27084 #include <builtin.h>
27089 #if $cf_cv_header_stdbool_h
27090 #include <stdbool.h>
27098 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
27103 rm -f "conftest.$ac_objext"
27104 if { (eval echo "$as_me:27104: \"$ac_compile\"") >&5
27105 (eval $ac_compile) 2>&5
27107 echo "$as_me:27107: \$? = $ac_status" >&5
27108 (exit "$ac_status"); } &&
27109 { ac_try='test -s "conftest.$ac_objext"'
27110 { (eval echo "$as_me:27110: \"$ac_try\"") >&5
27111 (eval $ac_try) 2>&5
27113 echo "$as_me:27113: \$? = $ac_status" >&5
27114 (exit "$ac_status"); }; }; then
27115 ac_lo=$ac_mid; break
27117 echo "$as_me: failed program was:" >&5
27118 cat "conftest.$ac_ext" >&5
27119 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27121 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27124 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27125 # Binary search between lo and hi bounds.
27126 while test "x$ac_lo" != "x$ac_hi"; do
27127 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27128 cat >"conftest.$ac_ext" <<_ACEOF
27129 #line 27129 "configure"
27130 #include "confdefs.h"
27132 $ac_includes_default
27134 #if defined(__cplusplus)
27136 #ifdef HAVE_GXX_BUILTIN_H
27137 #include <g++/builtin.h>
27138 #elif HAVE_GPP_BUILTIN_H
27139 #include <gpp/builtin.h>
27140 #elif HAVE_BUILTIN_H
27141 #include <builtin.h>
27146 #if $cf_cv_header_stdbool_h
27147 #include <stdbool.h>
27155 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27160 rm -f "conftest.$ac_objext"
27161 if { (eval echo "$as_me:27161: \"$ac_compile\"") >&5
27162 (eval $ac_compile) 2>&5
27164 echo "$as_me:27164: \$? = $ac_status" >&5
27165 (exit "$ac_status"); } &&
27166 { ac_try='test -s "conftest.$ac_objext"'
27167 { (eval echo "$as_me:27167: \"$ac_try\"") >&5
27168 (eval $ac_try) 2>&5
27170 echo "$as_me:27170: \$? = $ac_status" >&5
27171 (exit "$ac_status"); }; }; then
27174 echo "$as_me: failed program was:" >&5
27175 cat "conftest.$ac_ext" >&5
27176 ac_lo=`expr "$ac_mid" + 1`
27178 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27180 ac_cv_sizeof_bool=$ac_lo
27182 if test "$cross_compiling" = yes; then
27183 { { echo "$as_me:27183: error: cannot run test program while cross compiling" >&5
27184 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27185 { (exit 1); exit 1; }; }
27187 cat >"conftest.$ac_ext" <<_ACEOF
27188 #line 27188 "configure"
27189 #include "confdefs.h"
27191 $ac_includes_default
27193 #if defined(__cplusplus)
27195 #ifdef HAVE_GXX_BUILTIN_H
27196 #include <g++/builtin.h>
27197 #elif HAVE_GPP_BUILTIN_H
27198 #include <gpp/builtin.h>
27199 #elif HAVE_BUILTIN_H
27200 #include <builtin.h>
27205 #if $cf_cv_header_stdbool_h
27206 #include <stdbool.h>
27214 FILE *f = fopen ("conftest.val", "w");
27216 $ac_main_return (1);
27217 fprintf (f, "%ld", (long)(sizeof (bool)));
27223 rm -f "conftest$ac_exeext"
27224 if { (eval echo "$as_me:27224: \"$ac_link\"") >&5
27225 (eval $ac_link) 2>&5
27227 echo "$as_me:27227: \$? = $ac_status" >&5
27228 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27229 { (eval echo "$as_me:27229: \"$ac_try\"") >&5
27230 (eval $ac_try) 2>&5
27232 echo "$as_me:27232: \$? = $ac_status" >&5
27233 (exit "$ac_status"); }; }; then
27234 ac_cv_sizeof_bool=`cat conftest.val`
27236 echo "$as_me: program exited with status $ac_status" >&5
27237 echo "$as_me: failed program was:" >&5
27238 cat "conftest.$ac_ext" >&5
27240 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27245 ac_cv_sizeof_bool=0
27248 echo "$as_me:27248: result: $ac_cv_sizeof_bool" >&5
27249 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27250 cat >>confdefs.h <<EOF
27251 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27254 echo "$as_me:27254: checking for type of bool" >&5
27255 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27256 if test "${cf_cv_type_of_bool+set}" = set; then
27257 echo $ECHO_N "(cached) $ECHO_C" >&6
27261 if test "$cross_compiling" = yes; then
27263 case x$ac_cv_sizeof_bool in
27264 (x1) cf_cv_type_of_bool="unsigned char";;
27265 (x2) cf_cv_type_of_bool="unsigned short";;
27266 (x4) cf_cv_type_of_bool="unsigned int";;
27267 (x8) cf_cv_type_of_bool="unsigned long";;
27268 (*) cf_cv_type_of_bool=unknown;;
27272 cat >"conftest.$ac_ext" <<_ACEOF
27273 #line 27273 "configure"
27274 #include "confdefs.h"
27276 $ac_includes_default
27278 #if defined(__cplusplus)
27280 #ifdef HAVE_GXX_BUILTIN_H
27281 #include <g++/builtin.h>
27282 #elif HAVE_GPP_BUILTIN_H
27283 #include <gpp/builtin.h>
27284 #elif HAVE_BUILTIN_H
27285 #include <builtin.h>
27290 #if $cf_cv_header_stdbool_h
27291 #include <stdbool.h>
27298 FILE *fp = fopen("cf_test.out", "w");
27301 if ((bool)(-x) >= 0)
27302 fputs("unsigned ", fp);
27303 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27304 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27305 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27306 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27309 ${cf_cv_main_return:-return}(0);
27313 rm -f "conftest$ac_exeext"
27314 if { (eval echo "$as_me:27314: \"$ac_link\"") >&5
27315 (eval $ac_link) 2>&5
27317 echo "$as_me:27317: \$? = $ac_status" >&5
27318 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27319 { (eval echo "$as_me:27319: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27322 echo "$as_me:27322: \$? = $ac_status" >&5
27323 (exit "$ac_status"); }; }; then
27324 cf_cv_type_of_bool=`cat cf_test.out`
27325 if test -z "$cf_cv_type_of_bool"; then
27326 cf_cv_type_of_bool=unknown
27329 echo "$as_me: program exited with status $ac_status" >&5
27330 echo "$as_me: failed program was:" >&5
27331 cat "conftest.$ac_ext" >&5
27332 cf_cv_type_of_bool=unknown
27334 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27339 echo "$as_me:27339: result: $cf_cv_type_of_bool" >&5
27340 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27342 if test "$cf_cv_type_of_bool" = unknown ; then
27343 case .$NCURSES_BOOL in
27344 (.auto|.) NCURSES_BOOL=unsigned;;
27346 { echo "$as_me:27346: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27347 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27348 cf_cv_type_of_bool=$NCURSES_BOOL
27352 echo "$as_me:27352: checking for fallback type of bool" >&5
27353 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27354 case "$host_cpu" in
27355 (i?86) cf_cv_type_of_bool=char ;;
27356 (*) cf_cv_type_of_bool=int ;;
27358 echo "$as_me:27358: result: $cf_cv_type_of_bool" >&5
27359 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27364 # If the C compiler did not declare bool, and we did not determine that the C++
27365 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27366 # ncurses library use the same type as C++ bool. Note that this allows one to
27367 # specify the type of bool in a configure-script option and postpone
27368 # integration with the C++ compiler provided that the types are compatible.
27370 if test "$cf_cv_cc_bool_type" = 1
27372 # oops: C has a bool. Unlikely, but C++ could differ.
27374 elif test "$cf_cv_builtin_bool" = 0
27379 # this is the normal case
27380 USE_CXX_BOOL='defined(__cplusplus)'
27383 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27385 if test "$cf_with_ada" != "no" ; then
27386 if test "$with_libtool" != "no"; then
27387 { echo "$as_me:27387: WARNING: libtool does not support Ada - disabling feature" >&5
27388 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27393 if test "$cf_with_ada" != "no" ; then
27395 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27398 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27400 unset ac_cv_path_cf_TEMP_gnat
27402 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27403 set dummy $cf_prog_gnat; ac_word=$2
27404 echo "$as_me:27404: checking for $ac_word" >&5
27405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27406 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27409 case $cf_TEMP_gnat in
27411 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27414 ac_save_IFS=$IFS; IFS=$ac_path_separator
27416 for ac_dir in $ac_dummy; do
27418 test -z "$ac_dir" && ac_dir=.
27419 if $as_executable_p "$ac_dir/$ac_word"; then
27420 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27421 echo "$as_me:27421: found $ac_dir/$ac_word" >&5
27426 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27430 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27432 if test -n "$cf_TEMP_gnat"; then
27433 echo "$as_me:27433: result: $cf_TEMP_gnat" >&5
27434 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27436 echo "$as_me:27436: result: no" >&5
27437 echo "${ECHO_T}no" >&6
27440 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27442 if test "x$cf_TEMP_gnat" != xno; then
27443 unset cf_cv_gnat_version
27446 echo "$as_me:27446: checking for $cf_prog_gnat version" >&5
27447 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27448 if test "${cf_cv_gnat_version+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27452 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27453 grep '[0-9].[0-9][0-9]*' |\
27454 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27457 echo "$as_me:27457: result: $cf_cv_gnat_version" >&5
27458 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27459 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27460 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27463 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27466 unset cf_cv_gnat_version
27467 unset ac_cv_path_cf_TEMP_gnat
27470 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27472 cf_cv_prog_gnat_correct=no
27474 cf_ada_make=gnatmake
27475 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27476 # gprconfig is newer than gnatmake; we can continue...
27479 rm -rf ./conftest* ./*~conftest*
27480 if mkdir conftest.src
27484 for cf_gprconfig in Ada C
27486 echo "$as_me:27486: checking for gprconfig name for $cf_gprconfig" >&5
27487 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27488 if test "$cf_gprconfig" = C
27490 for cf_gprconfig_param in \
27491 "$cf_gprconfig,,,,GNATGCC" \
27492 "$cf_gprconfig,,,,GCC" \
27495 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27496 test -n "$cf_gprconfig_value" && break
27499 cf_gprconfig_param=$cf_gprconfig
27500 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27502 if test -n "$cf_gprconfig_value"
27504 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27505 echo "$as_me:27505: result: $cf_gprconfig_value" >&5
27506 echo "${ECHO_T}$cf_gprconfig_value" >&6
27508 echo "$as_me:27508: result: missing" >&5
27509 echo "${ECHO_T}missing" >&6
27515 rm -rf ./conftest* ./*~conftest*
27518 if test "x$cf_ada_config" != "x#"
27521 echo "$as_me:27521: checking for gnat version" >&5
27522 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27523 if test "${cf_cv_gnat_version+set}" = set; then
27524 echo $ECHO_N "(cached) $ECHO_C" >&6
27527 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27528 grep '[0-9].[0-9][0-9]*' |\
27529 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27532 echo "$as_me:27532: result: $cf_cv_gnat_version" >&5
27533 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27534 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27536 case "$cf_cv_gnat_version" in
27537 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27538 cf_cv_prog_gnat_correct=yes
27541 { echo "$as_me:27541: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27542 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27543 cf_cv_prog_gnat_correct=no
27547 # Extract the first word of "m4", so it can be a program name with args.
27548 set dummy m4; ac_word=$2
27549 echo "$as_me:27549: checking for $ac_word" >&5
27550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27551 if test "${ac_cv_prog_M4_exists+set}" = set; then
27552 echo $ECHO_N "(cached) $ECHO_C" >&6
27554 if test -n "$M4_exists"; then
27555 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27557 ac_save_IFS=$IFS; IFS=$ac_path_separator
27559 for ac_dir in $ac_dummy; do
27561 test -z "$ac_dir" && ac_dir=.
27562 $as_executable_p "$ac_dir/$ac_word" || continue
27563 ac_cv_prog_M4_exists="yes"
27564 echo "$as_me:27564: found $ac_dir/$ac_word" >&5
27568 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27571 M4_exists=$ac_cv_prog_M4_exists
27572 if test -n "$M4_exists"; then
27573 echo "$as_me:27573: result: $M4_exists" >&5
27574 echo "${ECHO_T}$M4_exists" >&6
27576 echo "$as_me:27576: result: no" >&5
27577 echo "${ECHO_T}no" >&6
27580 if test "$ac_cv_prog_M4_exists" = no; then
27581 cf_cv_prog_gnat_correct=no
27582 { echo "$as_me:27582: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27583 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27585 if test "$cf_cv_prog_gnat_correct" = yes; then
27586 echo "$as_me:27586: checking if GNAT works" >&5
27587 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27589 rm -rf ./conftest* ./*~conftest*
27590 cat >>conftest.ads <<CF_EOF
27591 procedure conftest;
27593 cat >>conftest.adb <<CF_EOF
27596 procedure conftest is
27598 Text_IO.Put ("Hello World");
27600 GNAT.OS_Lib.OS_Exit (0);
27603 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27604 if ( ./conftest 1>&5 2>&1 ) ; then
27605 cf_cv_prog_gnat_correct=yes
27607 cf_cv_prog_gnat_correct=no
27610 cf_cv_prog_gnat_correct=no
27612 rm -rf ./conftest* ./*~conftest*
27614 echo "$as_me:27614: result: $cf_cv_prog_gnat_correct" >&5
27615 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27618 cf_cv_prog_gnat_correct=no
27622 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27624 ADAFLAGS="$ADAFLAGS -gnatpn"
27626 echo "$as_me:27626: checking optimization options for ADAFLAGS" >&5
27627 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27631 ADAFLAGS="$ADAFLAGS -g"
27637 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27639 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27643 echo "$as_me:27643: result: $ADAFLAGS" >&5
27644 echo "${ECHO_T}$ADAFLAGS" >&6
27646 echo "$as_me:27646: checking if GNATPREP supports -T option" >&5
27647 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27648 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27652 cf_cv_gnatprep_opt_t=no
27653 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27656 echo "$as_me:27656: result: $cf_cv_gnatprep_opt_t" >&5
27657 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27658 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27660 echo "$as_me:27660: checking if GNAT supports generics" >&5
27661 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27662 case "$cf_cv_gnat_version" in
27663 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27664 cf_gnat_generics=yes
27667 cf_gnat_generics=no
27670 echo "$as_me:27670: result: $cf_gnat_generics" >&5
27671 echo "${ECHO_T}$cf_gnat_generics" >&6
27673 if test "$cf_gnat_generics" = yes
27675 cf_compile_generics=generics
27676 cf_generic_objects="\${GENOBJS}"
27678 cf_compile_generics=
27679 cf_generic_objects=
27682 echo "$as_me:27682: checking if GNAT supports SIGINT" >&5
27683 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27684 if test "${cf_cv_gnat_sigint+set}" = set; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27688 rm -rf ./conftest* ./*~conftest*
27689 cat >>conftest.ads <<CF_EOF
27690 with Ada.Interrupts.Names;
27692 package ConfTest is
27694 pragma Warnings (Off); -- the next pragma exists since 3.11p
27695 pragma Unreserve_All_Interrupts;
27696 pragma Warnings (On);
27698 protected Process is
27700 function Continue return Boolean;
27701 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27703 Done : Boolean := False;
27708 cat >>conftest.adb <<CF_EOF
27709 package body ConfTest is
27710 protected body Process is
27715 function Continue return Boolean is
27722 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27723 cf_cv_gnat_sigint=yes
27725 cf_cv_gnat_sigint=no
27727 rm -rf ./conftest* ./*~conftest*
27730 echo "$as_me:27730: result: $cf_cv_gnat_sigint" >&5
27731 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27733 if test "$cf_cv_gnat_sigint" = yes ; then
27736 USE_GNAT_SIGINT="#"
27739 cf_gnat_libraries=no
27740 cf_gnat_projects=no
27742 if test "$enable_gnat_projects" != no ; then
27743 echo "$as_me:27743: checking if GNAT supports project files" >&5
27744 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27745 case "$cf_cv_gnat_version" in
27749 case "$cf_cv_system_name" in
27753 rm -rf ./conftest* ./*~conftest*
27754 if mkdir conftest.src conftest.bin conftest.lib
27757 rm -rf ./conftest* ./*~conftest*
27758 cat >>library.gpr <<CF_EOF
27760 Kind := External ("LIB_KIND");
27761 for Library_Name use "ConfTest";
27762 for Object_Dir use ".";
27763 for Library_ALI_Dir use External("LIBRARY_DIR");
27764 for Library_Version use External ("SONAME");
27765 for Library_Kind use Kind;
27766 for Library_Dir use External("BUILD_DIR");
27767 Source_Dir := External ("SOURCE_DIR");
27768 for Source_Dirs use (Source_Dir);
27771 cat >>confpackage.ads <<CF_EOF
27772 package ConfPackage is
27773 procedure conftest;
27776 cat >>confpackage.adb <<CF_EOF
27778 package body ConfPackage is
27779 procedure conftest is
27781 Text_IO.Put ("Hello World");
27786 if ( "$cf_ada_make" $ADAFLAGS \
27788 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27789 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27790 -XSOURCE_DIR="`pwd`" \
27791 -XSONAME=libConfTest.so.1 \
27792 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27793 cf_gnat_projects=yes
27797 if test -f conftest.lib/confpackage.ali
27799 cf_gnat_libraries=yes
27801 rm -rf ./conftest* ./*~conftest*
27806 echo "$as_me:27806: result: $cf_gnat_projects" >&5
27807 echo "${ECHO_T}$cf_gnat_projects" >&6
27808 fi # enable_gnat_projects
27810 if test "$cf_gnat_projects" = yes
27812 echo "$as_me:27812: checking if GNAT supports libraries" >&5
27813 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27814 echo "$as_me:27814: result: $cf_gnat_libraries" >&5
27815 echo "${ECHO_T}$cf_gnat_libraries" >&6
27818 USE_OLD_MAKERULES=""
27819 USE_GNAT_PROJECTS="#"
27820 USE_GNAT_MAKE_GPR="#"
27821 USE_GNAT_GPRBUILD="#"
27823 if test "$cf_gnat_projects" = yes
27825 USE_OLD_MAKERULES="#"
27826 USE_GNAT_PROJECTS=""
27827 if test "$cf_cv_VERSION_GPRBUILD" != no
27829 USE_GNAT_GPRBUILD=""
27830 elif test "$cf_cv_VERSION_GNATMAKE" != no
27832 USE_GNAT_MAKE_GPR=""
27834 { echo "$as_me:27834: WARNING: use old makefile rules since tools are missing" >&5
27835 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27839 if test "$cf_gnat_libraries" = yes
27841 USE_GNAT_LIBRARIES=""
27843 USE_GNAT_LIBRARIES="#"
27846 echo "$as_me:27846: checking for Ada95 compiler" >&5
27847 echo $ECHO_N "checking for Ada95 compiler... $ECHO_C" >&6
27849 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27850 if test "${with_ada_compiler+set}" = set; then
27851 withval="$with_ada_compiler"
27852 cf_ada_compiler=$withval
27854 cf_ada_compiler=gnatmake
27857 echo "$as_me:27857: result: $cf_ada_compiler" >&5
27858 echo "${ECHO_T}$cf_ada_compiler" >&6
27860 cf_ada_package=terminal_interface
27862 echo "$as_me:27862: checking for Ada95 include directory" >&5
27863 echo $ECHO_N "checking for Ada95 include directory... $ECHO_C" >&6
27865 # Check whether --with-ada-include or --without-ada-include was given.
27866 if test "${with_ada_include+set}" = set; then
27867 withval="$with_ada_include"
27870 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27871 fi; if test -n "$prefix/share/ada/adainclude" ; then
27873 if test "x$prefix" != xNONE; then
27874 cf_path_syntax="$prefix"
27876 cf_path_syntax="$ac_default_prefix"
27879 case ".$withval" in
27880 (.\$\(*\)*|.\'*\'*)
27884 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27886 (.\$\{*prefix\}*|.\$\{*dir\}*)
27887 eval withval="$withval"
27888 case ".$withval" in
27890 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27895 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27898 { { echo "$as_me:27898: error: expected a pathname, not \"$withval\"" >&5
27899 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27900 { (exit 1); exit 1; }; }
27905 eval ADA_INCLUDE="$withval"
27907 echo "$as_me:27907: result: $ADA_INCLUDE" >&5
27908 echo "${ECHO_T}$ADA_INCLUDE" >&6
27910 echo "$as_me:27910: checking for Ada95 object directory" >&5
27911 echo $ECHO_N "checking for Ada95 object directory... $ECHO_C" >&6
27913 # Check whether --with-ada-objects or --without-ada-objects was given.
27914 if test "${with_ada_objects+set}" = set; then
27915 withval="$with_ada_objects"
27918 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27919 fi; if test -n "$prefix/lib/ada/adalib" ; then
27921 if test "x$prefix" != xNONE; then
27922 cf_path_syntax="$prefix"
27924 cf_path_syntax="$ac_default_prefix"
27927 case ".$withval" in
27928 (.\$\(*\)*|.\'*\'*)
27932 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27934 (.\$\{*prefix\}*|.\$\{*dir\}*)
27935 eval withval="$withval"
27936 case ".$withval" in
27938 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27943 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27946 { { echo "$as_me:27946: error: expected a pathname, not \"$withval\"" >&5
27947 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27948 { (exit 1); exit 1; }; }
27953 eval ADA_OBJECTS="$withval"
27955 echo "$as_me:27955: result: $ADA_OBJECTS" >&5
27956 echo "${ECHO_T}$ADA_OBJECTS" >&6
27958 echo "$as_me:27958: checking whether to build an Ada95 shared library" >&5
27959 echo $ECHO_N "checking whether to build an Ada95 shared library... $ECHO_C" >&6
27961 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27962 if test "${with_ada_sharedlib+set}" = set; then
27963 withval="$with_ada_sharedlib"
27964 with_ada_sharedlib=$withval
27966 with_ada_sharedlib=no
27968 cf_ada_sharedlib_warn=no
27970 if test "x$with_ada_sharedlib" != xno
27972 if test "x$cf_gnat_projects" != xyes
27974 with_ada_sharedlib=no
27975 cf_ada_sharedlib_warn=yes
27979 echo "$as_me:27979: result: $with_ada_sharedlib" >&5
27980 echo "${ECHO_T}$with_ada_sharedlib" >&6
27981 if test "x$cf_ada_sharedlib_warn" != xno
27983 { echo "$as_me:27983: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&5
27984 echo "$as_me: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&2;}
27987 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27988 MAKE_ADA_SHAREDLIB="#"
27990 if test "x$with_ada_sharedlib" != xno
27992 MAKE_ADA_SHAREDLIB=
27993 if test "x$with_ada_sharedlib" != xyes
27995 ADA_SHAREDLIB="$with_ada_sharedlib"
27999 # allow the Ada binding to be renamed
28001 echo "$as_me:28001: checking for Ada95 curses library name" >&5
28002 echo $ECHO_N "checking for Ada95 curses library name... $ECHO_C" >&6
28004 # Check whether --with-ada-libname or --without-ada-libname was given.
28005 if test "${with_ada_libname+set}" = set; then
28006 withval="$with_ada_libname"
28007 ADA_LIBNAME=$withval
28009 ADA_LIBNAME=AdaCurses
28011 case "x$ADA_LIBNAME" in
28013 ADA_LIBNAME=AdaCurses
28017 echo "$as_me:28017: result: $ADA_LIBNAME" >&5
28018 echo "${ECHO_T}$ADA_LIBNAME" >&6
28026 # do this "late" to avoid conflict with header-checks
28027 if test "x$with_widec" = xyes ; then
28028 echo "$as_me:28028: checking for wchar_t" >&5
28029 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
28030 if test "${ac_cv_type_wchar_t+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 cat >"conftest.$ac_ext" <<_ACEOF
28034 #line 28034 "configure"
28035 #include "confdefs.h"
28036 $ac_includes_default
28042 if (sizeof (wchar_t))
28048 rm -f "conftest.$ac_objext"
28049 if { (eval echo "$as_me:28049: \"$ac_compile\"") >&5
28050 (eval $ac_compile) 2>&5
28052 echo "$as_me:28052: \$? = $ac_status" >&5
28053 (exit "$ac_status"); } &&
28054 { ac_try='test -s "conftest.$ac_objext"'
28055 { (eval echo "$as_me:28055: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28058 echo "$as_me:28058: \$? = $ac_status" >&5
28059 (exit "$ac_status"); }; }; then
28060 ac_cv_type_wchar_t=yes
28062 echo "$as_me: failed program was:" >&5
28063 cat "conftest.$ac_ext" >&5
28064 ac_cv_type_wchar_t=no
28066 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28068 echo "$as_me:28068: result: $ac_cv_type_wchar_t" >&5
28069 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
28071 echo "$as_me:28071: checking size of wchar_t" >&5
28072 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
28073 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28076 if test "$ac_cv_type_wchar_t" = yes; then
28077 if test "$cross_compiling" = yes; then
28078 # Depending upon the size, compute the lo and hi bounds.
28079 cat >"conftest.$ac_ext" <<_ACEOF
28080 #line 28080 "configure"
28081 #include "confdefs.h"
28082 $ac_includes_default
28086 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
28091 rm -f "conftest.$ac_objext"
28092 if { (eval echo "$as_me:28092: \"$ac_compile\"") >&5
28093 (eval $ac_compile) 2>&5
28095 echo "$as_me:28095: \$? = $ac_status" >&5
28096 (exit "$ac_status"); } &&
28097 { ac_try='test -s "conftest.$ac_objext"'
28098 { (eval echo "$as_me:28098: \"$ac_try\"") >&5
28099 (eval $ac_try) 2>&5
28101 echo "$as_me:28101: \$? = $ac_status" >&5
28102 (exit "$ac_status"); }; }; then
28105 cat >"conftest.$ac_ext" <<_ACEOF
28106 #line 28106 "configure"
28107 #include "confdefs.h"
28108 $ac_includes_default
28112 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28117 rm -f "conftest.$ac_objext"
28118 if { (eval echo "$as_me:28118: \"$ac_compile\"") >&5
28119 (eval $ac_compile) 2>&5
28121 echo "$as_me:28121: \$? = $ac_status" >&5
28122 (exit "$ac_status"); } &&
28123 { ac_try='test -s "conftest.$ac_objext"'
28124 { (eval echo "$as_me:28124: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28127 echo "$as_me:28127: \$? = $ac_status" >&5
28128 (exit "$ac_status"); }; }; then
28129 ac_hi=$ac_mid; break
28131 echo "$as_me: failed program was:" >&5
28132 cat "conftest.$ac_ext" >&5
28133 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
28135 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28138 echo "$as_me: failed program was:" >&5
28139 cat "conftest.$ac_ext" >&5
28142 cat >"conftest.$ac_ext" <<_ACEOF
28143 #line 28143 "configure"
28144 #include "confdefs.h"
28145 $ac_includes_default
28149 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
28154 rm -f "conftest.$ac_objext"
28155 if { (eval echo "$as_me:28155: \"$ac_compile\"") >&5
28156 (eval $ac_compile) 2>&5
28158 echo "$as_me:28158: \$? = $ac_status" >&5
28159 (exit "$ac_status"); } &&
28160 { ac_try='test -s "conftest.$ac_objext"'
28161 { (eval echo "$as_me:28161: \"$ac_try\"") >&5
28162 (eval $ac_try) 2>&5
28164 echo "$as_me:28164: \$? = $ac_status" >&5
28165 (exit "$ac_status"); }; }; then
28166 ac_lo=$ac_mid; break
28168 echo "$as_me: failed program was:" >&5
28169 cat "conftest.$ac_ext" >&5
28170 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
28172 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28176 # Binary search between lo and hi bounds.
28177 while test "x$ac_lo" != "x$ac_hi"; do
28178 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28179 cat >"conftest.$ac_ext" <<_ACEOF
28180 #line 28180 "configure"
28181 #include "confdefs.h"
28182 $ac_includes_default
28186 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28191 rm -f "conftest.$ac_objext"
28192 if { (eval echo "$as_me:28192: \"$ac_compile\"") >&5
28193 (eval $ac_compile) 2>&5
28195 echo "$as_me:28195: \$? = $ac_status" >&5
28196 (exit "$ac_status"); } &&
28197 { ac_try='test -s "conftest.$ac_objext"'
28198 { (eval echo "$as_me:28198: \"$ac_try\"") >&5
28199 (eval $ac_try) 2>&5
28201 echo "$as_me:28201: \$? = $ac_status" >&5
28202 (exit "$ac_status"); }; }; then
28205 echo "$as_me: failed program was:" >&5
28206 cat "conftest.$ac_ext" >&5
28207 ac_lo=`expr "$ac_mid" + 1`
28209 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28211 ac_cv_sizeof_wchar_t=$ac_lo
28213 if test "$cross_compiling" = yes; then
28214 { { echo "$as_me:28214: error: cannot run test program while cross compiling" >&5
28215 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28216 { (exit 1); exit 1; }; }
28218 cat >"conftest.$ac_ext" <<_ACEOF
28219 #line 28219 "configure"
28220 #include "confdefs.h"
28221 $ac_includes_default
28225 FILE *f = fopen ("conftest.val", "w");
28227 $ac_main_return (1);
28228 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28234 rm -f "conftest$ac_exeext"
28235 if { (eval echo "$as_me:28235: \"$ac_link\"") >&5
28236 (eval $ac_link) 2>&5
28238 echo "$as_me:28238: \$? = $ac_status" >&5
28239 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28240 { (eval echo "$as_me:28240: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:28243: \$? = $ac_status" >&5
28244 (exit "$ac_status"); }; }; then
28245 ac_cv_sizeof_wchar_t=`cat conftest.val`
28247 echo "$as_me: program exited with status $ac_status" >&5
28248 echo "$as_me: failed program was:" >&5
28249 cat "conftest.$ac_ext" >&5
28251 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28256 ac_cv_sizeof_wchar_t=0
28259 echo "$as_me:28259: result: $ac_cv_sizeof_wchar_t" >&5
28260 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28261 cat >>confdefs.h <<EOF
28262 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28265 # cross-compiling to mingw can run into the problem that attempting to
28266 # link with the regex library fails, causing the test to not set this to
28267 # a number. "recent" autoconf does not address this problem either -TD
28268 if test -z "$ac_cv_sizeof_wchar_t"
28270 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28272 echo "${as_me:-configure}:28272: testing test failed (assume 2) ..." 1>&5
28274 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28275 mv confdefs.tmp confdefs.h
28276 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28280 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28281 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28283 ### ticlib modules may be a separate library, otherwise contained in termlib.
28284 ### termlib modules may be a separate library, otherwise contained in ncurses.
28286 ### The of "+" or " " between the tokens controls the way the script
28287 ### chooses to split module lists into libraries.
28289 ### (see CF_LIB_RULES).
28290 echo "$as_me:28290: checking for library subsets" >&5
28291 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28294 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28295 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28296 if test "$with_ticlib" != no ; then
28297 LIB_SUBSETS="${LIB_SUBSETS} "
28299 LIB_SUBSETS="${LIB_SUBSETS}+"
28303 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28304 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28306 if test "$with_termlib" != no ; then
28307 LIB_SUBSETS="${LIB_SUBSETS} "
28309 LIB_SUBSETS="${LIB_SUBSETS}+"
28312 LIB_SUBSETS="${LIB_SUBSETS}base"
28314 # Most term-driver calls are to tinfo, but some like init_pair are to the
28315 # base library (so it resides in base).
28316 if test "$with_term_driver" != no ; then
28317 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28318 case "$cf_cv_system_name" in
28319 (*mingw32*|*mingw64*)
28320 if test "x$with_exp_win32" = xyes ; then
28321 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28323 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28325 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28328 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28331 elif test "x$with_exp_win32" = xyes ; then
28332 case "$cf_cv_system_name" in
28333 (*mingw32*|*mingw64*)
28334 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28341 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28342 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28344 echo "$as_me:28344: result: $LIB_SUBSETS" >&5
28345 echo "${ECHO_T}$LIB_SUBSETS" >&6
28347 ### Construct the list of include-directories to be generated
28349 if test "$srcdir" != "."; then
28350 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28352 CPPFLAGS="-I../include $CPPFLAGS"
28353 if test "$srcdir" != "."; then
28354 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28356 CPPFLAGS="-I. $CPPFLAGS"
28358 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28359 if test "$srcdir" != "."; then
28360 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28362 if test "$GCC" != yes; then
28363 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28364 elif test "$includedir" != "/usr/include"; then
28365 if test "$includedir" = '${prefix}/include' ; then
28366 if test x$prefix != x/usr ; then
28367 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28370 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28374 ### Build up pieces for makefile rules
28375 echo "$as_me:28375: checking default library suffix" >&5
28376 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28378 case $DFT_LWR_MODEL in
28379 (libtool) DFT_ARG_SUFFIX='' ;;
28380 (normal) DFT_ARG_SUFFIX='' ;;
28381 (debug) DFT_ARG_SUFFIX='_g' ;;
28382 (profile) DFT_ARG_SUFFIX='_p' ;;
28383 (shared) DFT_ARG_SUFFIX='' ;;
28385 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28386 echo "$as_me:28386: result: $DFT_ARG_SUFFIX" >&5
28387 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28389 echo "$as_me:28389: checking default library-dependency suffix" >&5
28390 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28392 case X$DFT_LWR_MODEL in
28394 DFT_LIB_SUFFIX='.la'
28395 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28398 case "$cf_cv_system_name" in
28400 DFT_LIB_SUFFIX='_g.lib'
28403 DFT_LIB_SUFFIX='_g.a'
28406 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28409 case "$cf_cv_system_name" in
28411 DFT_LIB_SUFFIX='_p.lib'
28414 DFT_LIB_SUFFIX='_p.a'
28417 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28420 case "$cf_cv_system_name" in
28422 DFT_LIB_SUFFIX='.so'
28423 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28426 DFT_LIB_SUFFIX='.dll'
28427 DFT_DEP_SUFFIX='.dll.lib'
28429 (cygwin*|msys*|mingw*)
28430 DFT_LIB_SUFFIX='.dll'
28431 DFT_DEP_SUFFIX='.dll.a'
28434 DFT_LIB_SUFFIX='.dylib'
28435 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28440 DFT_LIB_SUFFIX='.so'
28441 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28444 DFT_LIB_SUFFIX='.sl'
28445 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28450 DFT_LIB_SUFFIX='.so'
28451 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28458 DFT_LIB_SUFFIX='.lib'
28461 DFT_LIB_SUFFIX='.a'
28464 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28467 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28469 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28470 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28472 echo "$as_me:28472: result: $DFT_DEP_SUFFIX" >&5
28473 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28475 echo "$as_me:28475: checking default object directory" >&5
28476 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28478 case $DFT_LWR_MODEL in
28479 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28480 (normal) DFT_OBJ_SUBDIR='objects' ;;
28481 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28482 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28484 case "$cf_cv_system_name" in
28486 DFT_OBJ_SUBDIR='objects' ;;
28488 DFT_OBJ_SUBDIR='obj_s' ;;
28491 echo "$as_me:28491: result: $DFT_OBJ_SUBDIR" >&5
28492 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28494 if test "x$cf_with_cxx" = xyes ; then
28495 echo "$as_me:28495: checking c++ library-dependency suffix" >&5
28496 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28497 if test "$with_libtool" != "no"; then
28498 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28499 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28500 elif test "$with_shared_cxx" != "no"; then
28501 # also for g++ users...
28502 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28504 # we normally make a static library because C/C++ library rules differ
28508 CXX_LIB_SUFFIX='.la'
28509 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28512 case "$cf_cv_system_name" in
28514 CXX_LIB_SUFFIX='_g.lib'
28517 CXX_LIB_SUFFIX='_g.a'
28520 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28523 case "$cf_cv_system_name" in
28525 CXX_LIB_SUFFIX='_p.lib'
28528 CXX_LIB_SUFFIX='_p.a'
28531 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28534 case "$cf_cv_system_name" in
28536 CXX_LIB_SUFFIX='.so'
28537 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28540 CXX_LIB_SUFFIX='.dll'
28541 CXX_DEP_SUFFIX='.dll.lib'
28543 (cygwin*|msys*|mingw*)
28544 CXX_LIB_SUFFIX='.dll'
28545 CXX_DEP_SUFFIX='.dll.a'
28548 CXX_LIB_SUFFIX='.dylib'
28549 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28554 CXX_LIB_SUFFIX='.so'
28555 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28558 CXX_LIB_SUFFIX='.sl'
28559 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28564 CXX_LIB_SUFFIX='.so'
28565 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28572 CXX_LIB_SUFFIX='.lib'
28575 CXX_LIB_SUFFIX='.a'
28578 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28581 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28583 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28584 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28588 echo "$as_me:28588: result: $CXX_LIB_SUFFIX" >&5
28589 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28593 # do not want -ldl in build except as needed for -lncurses dependency
28594 if test "x$with_dlsym" = xyes ; then
28595 if test "$DFT_LWR_MODEL" = shared || \
28596 test "$DFT_LWR_MODEL" = libtool ; then
28598 # remove dl library from $LIBS
28599 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28603 ### Set up low-level terminfo dependencies for makefiles.
28605 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28606 # do not need libdl
28608 if test "x$with_dlsym" = xyes ; then
28610 # remove dl library from $SHLIB_LIST
28611 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28615 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28616 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28617 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28618 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28620 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28623 if test "$with_ticlib" != no ; then
28625 if test "x$with_ticlib" != xyes ; then
28626 TICS_NAME=$with_ticlib
28627 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28628 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28629 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28630 TICS_LIB_SUFFIX="${with_ticlib}"
28632 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28633 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28634 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28635 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28637 TICS_LDFLAGS="-L${LIB_DIR}"
28638 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28640 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28641 TICS_LDFLAGS="-L${LIB_DIR}"
28642 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28645 if test "$with_termlib" != no ; then
28647 if test "x$with_termlib" != xyes ; then
28648 TINFO_NAME=$with_termlib
28649 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28650 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28651 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28652 TINFO_LIB_SUFFIX="${with_termlib}"
28654 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28655 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28656 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28657 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28660 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28661 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28662 if test "$DFT_LWR_MODEL" = "libtool"; then
28663 TEST_ARGS="${TEST_DEPS}"
28664 TEST_ARG2="${TEST_DEP2}"
28665 TINFO_LDFLAGS="-L${LIB_DIR}"
28666 TINFO_LIBS="$TEST_ARGS"
28667 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28668 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28670 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28671 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28672 if test "x$with_term_driver" != xno ; then
28673 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28674 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28675 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28677 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28678 TINFO_LIBS="$TEST_ARGS"
28680 TINFO_LDFLAGS="-L${LIB_DIR}"
28681 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28684 # the next lines are needed for linking libtic over libncurses
28685 TINFO_NAME=${LIB_NAME}
28686 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28687 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28688 if test "x$with_tic_depends" = xyes ; then
28689 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28691 TICS_LIST="$SHLIB_LIST"
28694 TINFO_LDFLAGS="-L${LIB_DIR}"
28695 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28698 if test "$DFT_LWR_MODEL" = shared ; then
28699 case "$cf_cv_system_name" in
28701 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28707 if test "x$with_dlsym" = xyes ; then
28709 # remove dl library from $TICS_LIST
28710 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28714 if test "$DFT_LWR_MODEL" = "libtool"; then
28719 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28721 case "$DFT_LWR_MODEL" in
28722 (normal|debug|profile)
28724 if test "$GCC" = yes ; then
28725 case "$cf_cv_system_name" in
28726 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28730 (*) # normally, except when broken
28731 LDFLAGS_STATIC=-static
28732 LDFLAGS_SHARED=-dynamic
28736 case "$cf_cv_system_name" in
28737 (aix[4-7]*) # from ld manpage
28738 LDFLAGS_STATIC=-bstatic
28739 LDFLAGS_SHARED=-bdynamic
28741 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28742 # We could also use just "archive" and "shared".
28743 LDFLAGS_STATIC=-Wl,-a,archive_shared
28744 LDFLAGS_SHARED=-Wl,-a,shared_archive
28746 (irix*) # from ld manpage IRIX64
28747 LDFLAGS_STATIC=-Bstatic
28748 LDFLAGS_SHARED=-Bdynamic
28750 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28751 # alternative "-oldstyle_liblookup" (not in cc manpage)
28752 LDFLAGS_STATIC=-noso
28753 LDFLAGS_SHARED=-so_archive
28756 LDFLAGS_STATIC=-Bstatic
28757 LDFLAGS_SHARED=-Bdynamic
28762 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28764 echo "$as_me:28764: checking if linker supports switching between static/dynamic" >&5
28765 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28767 rm -f libconftest.a
28768 cat >conftest.$ac_ext <<EOF
28769 #line 28769 "configure"
28771 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28773 if { (eval echo "$as_me:28773: \"$ac_compile\"") >&5
28774 (eval $ac_compile) 2>&5
28776 echo "$as_me:28776: \$? = $ac_status" >&5
28777 (exit "$ac_status"); } ; then
28778 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28779 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28783 cf_save_LIBS="$LIBS"
28785 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28786 cat >"conftest.$ac_ext" <<_ACEOF
28787 #line 28787 "configure"
28788 #include "confdefs.h"
28790 #line 28790 "configure"
28792 int cf_ldflags_static(FILE *fp);
28798 return cf_ldflags_static(stdin);
28804 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28805 if { (eval echo "$as_me:28805: \"$ac_link\"") >&5
28806 (eval $ac_link) 2>&5
28808 echo "$as_me:28808: \$? = $ac_status" >&5
28809 (exit "$ac_status"); } &&
28810 { ac_try='test -s "conftest$ac_exeext"'
28811 { (eval echo "$as_me:28811: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28814 echo "$as_me:28814: \$? = $ac_status" >&5
28815 (exit "$ac_status"); }; }; then
28817 # some linkers simply ignore the -dynamic
28818 case x`file "conftest$ac_exeext" 2>/dev/null` in
28820 cf_ldflags_static=no
28823 cf_ldflags_static=yes
28828 echo "$as_me: failed program was:" >&5
28829 cat "conftest.$ac_ext" >&5
28830 cf_ldflags_static=no
28832 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28834 rm -f libconftest.*
28835 LIBS="$cf_save_LIBS"
28837 echo "$as_me:28837: result: $cf_ldflags_static" >&5
28838 echo "${ECHO_T}$cf_ldflags_static" >&6
28840 if test "$cf_ldflags_static" != yes
28853 echo "$as_me:28853: checking where we will install curses.h" >&5
28854 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28857 if test "$with_overwrite" = no && \
28858 { test "x$includedir" = 'x${prefix}/include' || \
28859 test "x$includedir" = "x${prefix}/include"; }
28861 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28863 echo "$as_me:28863: result: ${includedir}${includesubdir}" >&5
28864 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28866 ### Resolve a conflict between normal and wide-curses by forcing applications
28867 ### that will need libutf8 to add it to their configure script.
28868 if test "$with_overwrite" != no ; then
28869 if test "$NCURSES_LIBUTF8" = 1 ; then
28870 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28871 { echo "$as_me:28871: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28872 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28875 WITH_OVERWRITE=$with_overwrite
28877 ### At least on MinGW a shared library build without libtool
28878 ### requires adding the additional libs to the link list.
28879 case "$cf_cv_system_name" in
28880 (*mingw32*|*mingw64*)
28881 if test "$DFT_LWR_MODEL" != "libtool"; then
28882 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28888 ### predefined stuff for the test programs
28890 cat >>confdefs.h <<\EOF
28891 #define HAVE_SLK_COLOR 1
28894 # pkgsrc uses these
28896 echo "$as_me:28896: checking for desired basename for form library" >&5
28897 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28899 # Check whether --with-form-libname or --without-form-libname was given.
28900 if test "${with_form_libname+set}" = set; then
28901 withval="$with_form_libname"
28902 with_lib_basename=$withval
28904 with_lib_basename=form
28906 FORM_NAME="$with_lib_basename"
28908 case "x$FORM_NAME" in
28916 echo "$as_me:28916: result: $FORM_NAME" >&5
28917 echo "${ECHO_T}$FORM_NAME" >&6
28919 echo "$as_me:28919: checking for desired basename for menu library" >&5
28920 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28922 # Check whether --with-menu-libname or --without-menu-libname was given.
28923 if test "${with_menu_libname+set}" = set; then
28924 withval="$with_menu_libname"
28925 with_lib_basename=$withval
28927 with_lib_basename=menu
28929 MENU_NAME="$with_lib_basename"
28931 case "x$MENU_NAME" in
28939 echo "$as_me:28939: result: $MENU_NAME" >&5
28940 echo "${ECHO_T}$MENU_NAME" >&6
28942 echo "$as_me:28942: checking for desired basename for panel library" >&5
28943 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28945 # Check whether --with-panel-libname or --without-panel-libname was given.
28946 if test "${with_panel_libname+set}" = set; then
28947 withval="$with_panel_libname"
28948 with_lib_basename=$withval
28950 with_lib_basename=panel
28952 PANEL_NAME="$with_lib_basename"
28954 case "x$PANEL_NAME" in
28962 echo "$as_me:28962: result: $PANEL_NAME" >&5
28963 echo "${ECHO_T}$PANEL_NAME" >&6
28965 echo "$as_me:28965: checking for desired basename for cxx library" >&5
28966 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28968 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28969 if test "${with_cxx_libname+set}" = set; then
28970 withval="$with_cxx_libname"
28971 with_lib_basename=$withval
28973 with_lib_basename=ncurses++
28975 CXX_NAME="$with_lib_basename"
28977 case "x$CXX_NAME" in
28985 echo "$as_me:28985: result: $CXX_NAME" >&5
28986 echo "${ECHO_T}$CXX_NAME" >&6
28988 ### Construct the list of subdirectories for which we'll customize makefiles
28989 ### with the appropriate compile-rules.
28991 echo "$as_me:28991: checking for src modules" >&5
28992 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28994 # dependencies and linker-arguments for test-programs
28995 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28996 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28997 if test "$DFT_LWR_MODEL" = "libtool"; then
28998 TEST_ARGS="${TEST_DEPS}"
28999 TEST_ARG2="${TEST_DEP2}"
29001 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
29002 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
29005 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
29007 for cf_dir in $modules_to_build
29009 if test -f "$srcdir/$cf_dir/modules" ; then
29011 if test -z "$cf_cv_src_modules"; then
29012 cf_cv_src_modules=$cf_dir
29014 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
29017 # Make the ncurses_cfg.h file record the library interface files as
29018 # well. These are header files that are the same name as their
29019 # directory. Ncurses is the only library that does not follow
29021 if test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
29023 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29025 cat >>confdefs.h <<EOF
29026 #define HAVE_${cf_have_include}_H 1
29029 cat >>confdefs.h <<EOF
29030 #define HAVE_LIB${cf_have_include} 1
29033 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29035 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
29037 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
29038 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
29039 if test "$DFT_LWR_MODEL" = "libtool"; then
29040 TEST_ARGS="${TEST_DEPS}"
29041 TEST_ARG2="${TEST_DEP2}"
29043 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
29044 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
29046 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
29050 echo "$as_me:29050: result: $cf_cv_src_modules" >&5
29051 echo "${ECHO_T}$cf_cv_src_modules" >&6
29053 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
29054 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
29057 if test "x$cf_with_manpages" != xno ; then
29058 SRC_SUBDIRS="$SRC_SUBDIRS man"
29060 SRC_SUBDIRS="$SRC_SUBDIRS include"
29061 for cf_dir in $cf_cv_src_modules
29063 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
29065 if test "x$cf_with_tests" != "xno" ; then
29066 SRC_SUBDIRS="$SRC_SUBDIRS test"
29068 # always make this, to install the ncurses-config script
29069 SRC_SUBDIRS="$SRC_SUBDIRS misc"
29070 if test "$cf_with_cxx_binding" != no; then
29071 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
29072 SRC_SUBDIRS="$SRC_SUBDIRS c++"
29075 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
29076 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
29079 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
29080 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
29081 ADA_SUBDIRS="gen src"
29082 if test "x$cf_with_tests" != "xno" ; then
29083 ADA_SUBDIRS="$ADA_SUBDIRS samples"
29088 for cf_dir in $SRC_SUBDIRS
29090 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
29093 if test -n "$ADA_SUBDIRS"; then
29094 for cf_dir in $ADA_SUBDIRS
29096 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
29101 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
29102 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
29103 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
29104 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
29108 for cf_item in $cf_list_models
29112 (libtool) cf_subdir='obj_lo' ;;
29113 (normal) cf_subdir='objects' ;;
29114 (debug) cf_subdir='obj_g' ;;
29115 (profile) cf_subdir='obj_p' ;;
29117 case "$cf_cv_system_name" in
29119 cf_subdir='objects' ;;
29121 cf_subdir='obj_s' ;;
29125 for cf_item2 in $DIRS_TO_MAKE
29127 test "$cf_item2" = "$cf_subdir" && break
29129 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
29131 for cf_dir in $DIRS_TO_MAKE
29133 test ! -d "$cf_dir" && mkdir "$cf_dir"
29136 # symbols that differ when compiling Ada95 by itself.
29137 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
29139 # values to use as strings
29141 cat >>confdefs.h <<EOF
29142 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
29145 cat >>confdefs.h <<EOF
29146 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
29149 ### Define substitutions for header files to avoid name-pollution
29151 if test "x$cf_cv_have_tcgetattr" = xyes ; then
29157 if test "x$ac_cv_header_stdint_h" = xyes ; then
29163 if test "x$ac_cv_header_termio_h" = xyes ; then
29169 if test "x$ac_cv_header_termios_h" = xyes ; then
29175 ################################################################################
29176 test "x$use_database" = xyes && \
29177 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29179 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29180 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29182 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29183 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29186 if test "x$cf_with_tests" != xno ; then
29192 ADAHTML_DIR=../../doc/html/ada
29194 # workaround for OS/2 (20151017)
29195 case "$cf_cv_system_name" in
29197 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29204 # workaround for g++ versus Solaris (20131116)
29205 case "$cf_cv_system_name" in
29207 case "x$CPPFLAGS" in
29208 (*-D_XOPEN_SOURCE_EXTENDED*)
29209 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29211 echo "${as_me:-configure}:29211: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29213 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29214 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29220 # Help to automatically enable the extended curses features when using either
29221 # the *-config or the ".pc" files by adding defines.
29222 echo "$as_me:29222: checking for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script" >&5
29223 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script... $ECHO_C" >&6
29225 for cf_loop1 in $CPPFLAGS_after_XOPEN
29228 for cf_loop2 in $CPPFLAGS_before_XOPEN
29230 if test "x$cf_loop1" = "x$cf_loop2"
29236 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29238 echo "$as_me:29238: result: $PKG_CFLAGS" >&5
29239 echo "${ECHO_T}$PKG_CFLAGS" >&6
29241 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29242 case "x$NCURSES_OSPEED" in
29251 cat >>confdefs.h <<EOF
29252 #define NCURSES_OSPEED_COMPAT $cf_compatible
29255 case "x$cf_cv_typeof_chtype" in
29256 (xshort|xint|xlong)
29257 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29261 case "x$cf_cv_typeof_mmask_t" in
29262 (xshort|xint|xlong)
29263 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29267 # substitute into misc/Makefile to suppress
29268 # (un)install.data from the
29269 # (un)install rules.
29270 if test "x$cf_with_db_install" = "xno"; then
29272 MISC_UNINSTALL_DATA=
29274 MISC_INSTALL_DATA=install.data
29275 MISC_UNINSTALL_DATA=uninstall.data
29278 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29281 MAKE_DATABASE="$MAKE_TERMINFO"
29284 if test -n "$PACKAGE"
29286 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29288 echo "package: $PACKAGE"
29294 if test -n "$RESULTING_SYMS"
29296 cf_filter_syms=$cf_dft_filter_syms
29297 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29299 echo "${as_me:-configure}:29299: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29303 if test "x$WILDCARD_SYMS" = xno
29308 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29310 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29311 if test "$cf_filter_syms" = yes
29313 RESULTING_SYMS=resulting.map
29316 if test "x$cross_compiling" = xyes ; then
29317 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29320 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29324 # This is used for the *-config script and *.pc data files.
29326 echo "$as_me:29326: checking for linker search path" >&5
29327 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29328 if test "${cf_cv_ld_searchpath+set}" = set; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
29332 if test "$cross_compiling" != yes ; then
29334 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29335 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29337 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29338 # update the cache, which makes it run faster.
29339 test -z "$cf_pathlist" && \
29340 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29342 test -z "$cf_pathlist" &&
29343 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29345 # This works with OpenBSD 6.5, which lists only filenames
29346 test -z "$cf_pathlist" &&
29347 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29349 if test -z "$cf_pathlist"
29351 # dyld default path with MacOS
29352 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29354 # do this to bypass check
29355 cf_cv_ld_searchpath='$HOME/lib'
29356 cf_pathlist="/usr/local/lib /lib /usr/lib"
29360 if test -z "$cf_pathlist"
29362 # Solaris is "SunOS"
29363 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29365 case x`(isainfo -b)` in
29367 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29370 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29371 cf_pathlist="$cf_pathlist /lib /usr/lib"
29374 { echo "$as_me:29374: WARNING: problem with Solaris architecture" >&5
29375 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29381 if test -z "$cf_pathlist"
29384 if test x"`uname -s`" = xHP-UX
29386 case x`getconf LONG_BIT` in
29388 cf_pathlist="/usr/lib/hpux64"
29391 cf_pathlist="/usr/lib/hpux32"
29399 # If nothing else, assume it is conventional
29400 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29402 # Finally, check that this is only directories
29403 for cf_path in $0 $cf_pathlist
29405 if test -d "$cf_path"; then
29406 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29407 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29411 # Ensure that it is nonempty
29412 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29415 echo "$as_me:29415: result: $cf_cv_ld_searchpath" >&5
29416 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29418 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29420 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"
29421 ac_config_commands="$ac_config_commands default"
29422 cat >confcache <<\_ACEOF
29423 # This file is a shell script that caches the results of configure
29424 # tests run on this system so they can be shared between configure
29425 # scripts and configure runs, see configure's option --config-cache.
29426 # It is not useful on other systems. If it contains results you don't
29427 # want to keep, you may remove or edit it.
29429 # config.status only pays attention to the cache file if you give it
29430 # the --recheck option to rerun configure.
29432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29434 # following values.
29438 # The following way of writing the cache mishandles newlines in values,
29439 # but we know of no workaround that is simple, portable, and efficient.
29440 # So, don't put newlines in cache variables' values.
29441 # Ultrix sh set writes to stderr and can't be redirected directly,
29442 # and sets the high bit in the cache file unless we assign to the vars.
29445 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29447 # `set' does not quote correctly, so add quotes (double-quote
29448 # substitution turns \\\\ into \\, and sed turns \\ into \).
29451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29454 # `set' quotes correctly as required by POSIX, so do not add quotes.
29456 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29463 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29465 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29467 if cmp -s $cache_file confcache; then :; else
29468 if test -w $cache_file; then
29469 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29470 cat confcache >$cache_file
29472 echo "not updating unwritable cache $cache_file"
29477 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29478 # Let make expand exec_prefix.
29479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29481 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29482 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29483 # trailing colons and then remove the whole line if VPATH becomes empty
29484 # (actually we leave an empty line to preserve line numbers).
29485 if test "x$srcdir" = x.; then
29486 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29487 s/:*\$(srcdir):*/:/;
29488 s/:*\${srcdir}:*/:/;
29490 s/^\([^=]*=[ ]*\):*/\1/;
29496 DEFS=-DHAVE_CONFIG_H
29498 : "${CONFIG_STATUS=./config.status}"
29499 ac_clean_files_save=$ac_clean_files
29500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29501 { echo "$as_me:29501: creating $CONFIG_STATUS" >&5
29502 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29503 cat >"$CONFIG_STATUS" <<_ACEOF
29505 # Generated automatically by configure.
29506 # Run this file to recreate the current configuration.
29507 # Compiler output produced by configure, useful for debugging
29508 # configure, is in config.log if it exists.
29510 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29513 SHELL=\${CONFIG_SHELL-$SHELL}
29514 ac_cs_invocation="\$0 \$@"
29516 CLICOLOR_FORCE= GREP_OPTIONS=
29517 unset CLICOLOR_FORCE GREP_OPTIONS
29520 cat >>"$CONFIG_STATUS" <<\_ACEOF
29521 # Be Bourne compatible
29522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29525 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29529 # Name of the executable.
29530 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29532 if expr a : '\(a\)' >/dev/null 2>&1; then
29538 rm -f conf$$ conf$$.exe conf$$.file
29540 if ln -s conf$$.file conf$$ 2>/dev/null; then
29541 # We could just check for DJGPP; but this test a) works b) is more generic
29542 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29543 if test -f conf$$.exe; then
29544 # Don't use ln at all; we don't have any links
29549 elif ln conf$$.file conf$$ 2>/dev/null; then
29554 rm -f conf$$ conf$$.exe conf$$.file
29556 as_executable_p="test -f"
29558 # Support unset when possible.
29559 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29566 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29567 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29568 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29569 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29570 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29571 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29572 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29573 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29576 # We need space, tab and new line, in precisely that order.
29582 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29588 # Files that config.status was made for.
29589 if test -n "$ac_config_files"; then
29590 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29593 if test -n "$ac_config_headers"; then
29594 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29597 if test -n "$ac_config_links"; then
29598 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29601 if test -n "$ac_config_commands"; then
29602 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29605 cat >>"$CONFIG_STATUS" <<\EOF
29608 \`$as_me' instantiates files from templates according to the
29609 current configuration.
29611 Usage: $0 [OPTIONS] [FILE]...
29613 -h, --help print this help, then exit
29614 -V, --version print version number, then exit
29615 -d, --debug don't remove temporary files
29616 --recheck update $as_me by reconfiguring in the same conditions
29617 --file=FILE[:TEMPLATE]
29618 instantiate the configuration file FILE
29619 --header=FILE[:TEMPLATE]
29620 instantiate the configuration header FILE
29622 Configuration files:
29625 Configuration headers:
29628 Configuration commands:
29631 Report bugs to <dickey@invisible-island.net>."
29634 cat >>"$CONFIG_STATUS" <<EOF
29637 configured by $0, generated by GNU Autoconf 2.52.20231210,
29638 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29640 Copyright 2003-2022,2023 Thomas E. Dickey
29641 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29642 Free Software Foundation, Inc.
29643 This config.status script is free software; the Free Software Foundation
29644 gives unlimited permission to copy, distribute and modify it."
29649 cat >>"$CONFIG_STATUS" <<\EOF
29650 # If no file are specified by the user, then we need to provide default
29651 # value. By we need to know if files were specified by the user.
29657 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29658 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29660 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29664 *) # This is not an option, so the user has probably given explicit
29666 ac_need_defaults=false;;
29670 # Handling of the options.
29672 cat >>"$CONFIG_STATUS" <<EOF
29673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29674 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29675 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29677 cat >>"$CONFIG_STATUS" <<\EOF
29678 --version | --vers* | -V )
29679 echo "$ac_cs_version"; exit 0 ;;
29681 # Conflict between --help and --header
29682 { { echo "$as_me:29682: error: ambiguous option: $1
29683 Try \`$0 --help' for more information." >&5
29684 echo "$as_me: error: ambiguous option: $1
29685 Try \`$0 --help' for more information." >&2;}
29686 { (exit 1); exit 1; }; };;
29687 --help | --hel | -h )
29688 echo "$ac_cs_usage"; exit 0 ;;
29689 --debug | --d* | -d )
29691 --file | --fil | --fi | --f )
29693 CONFIG_FILES="$CONFIG_FILES $1"
29694 ac_need_defaults=false;;
29695 --header | --heade | --head | --hea )
29697 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29698 ac_need_defaults=false;;
29700 # This is an error.
29701 -*) { { echo "$as_me:29701: error: unrecognized option: $1
29702 Try \`$0 --help' for more information." >&5
29703 echo "$as_me: error: unrecognized option: $1
29704 Try \`$0 --help' for more information." >&2;}
29705 { (exit 1); exit 1; }; } ;;
29707 *) ac_config_targets="$ac_config_targets $1" ;;
29716 ## ----------------------- ##
29717 ## Running config.status. ##
29718 ## ----------------------- ##
29720 This file was extended by $as_me 2.52.20231210, executed with
29721 CONFIG_FILES = $CONFIG_FILES
29722 CONFIG_HEADERS = $CONFIG_HEADERS
29723 CONFIG_LINKS = $CONFIG_LINKS
29724 CONFIG_COMMANDS = $CONFIG_COMMANDS
29725 > "$ac_cs_invocation"
29726 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29731 cat >>"$CONFIG_STATUS" <<EOF
29733 # INIT-COMMANDS section.
29736 ### Special initialization commands, used to pass information from the
29737 ### configuration-run into config.status
29739 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29741 CXX_NAME="$CXX_NAME"
29742 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29743 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29745 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29746 FORM_NAME="$FORM_NAME"
29747 LDCONFIG="$LDCONFIG"
29748 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29749 LIB_NAME="$LIB_NAME"
29750 LIB_PREFIX="$LIB_PREFIX"
29751 LIB_SUBSETS="$LIB_SUBSETS"
29752 LIB_SUFFIX="$LIB_SUFFIX"
29753 LIB_TRACING="$LIB_TRACING"
29755 MAKE_TERMINFO="$MAKE_TERMINFO"
29756 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29757 MENU_NAME="$MENU_NAME"
29758 NCURSES_MAJOR="$NCURSES_MAJOR"
29759 NCURSES_MINOR="$NCURSES_MINOR"
29760 NCURSES_OSPEED="$NCURSES_OSPEED"
29761 NCURSES_PATCH="$NCURSES_PATCH"
29762 PANEL_NAME="$PANEL_NAME"
29763 SRC_SUBDIRS="$SRC_SUBDIRS"
29764 TERMINFO="$TERMINFO"
29765 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29766 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29767 TICS_NAME="$TICS_NAME"
29768 TICS_SUFFIX="$TICS_SUFFIX"
29769 TIC_PATH="$TIC_PATH"
29770 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29771 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29772 TINFO_NAME="$TINFO_NAME"
29773 TINFO_SUFFIX="$TINFO_SUFFIX"
29774 UNALTERED_SYMS="$UNALTERED_SYMS"
29775 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29776 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29777 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29778 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29779 WILDCARD_SYMS="$WILDCARD_SYMS"
29780 WITH_CURSES_H="$with_curses_h"
29781 WITH_ECHO="${enable_echo:=yes}"
29782 WITH_OVERWRITE="$with_overwrite"
29783 cf_LIST_MODELS="$cf_list_models"
29784 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29785 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29786 cf_cv_abi_default="$cf_cv_abi_default"
29787 cf_cv_abi_version="$cf_cv_abi_version"
29788 cf_cv_do_relink="$cf_cv_do_relink"
29789 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29790 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29791 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29792 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29793 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29794 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29795 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29796 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29797 cf_cv_rel_version="$cf_cv_rel_version"
29798 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29799 cf_cv_shared_soname='$cf_cv_shared_soname'
29800 cf_cv_shlib_version="$cf_cv_shlib_version"
29801 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29802 cf_cv_system_name="$cf_cv_system_name"
29803 cf_cv_term_driver="$with_term_driver"
29804 cf_with_ada="$cf_with_ada"
29805 cf_with_cxx_binding="$cf_with_cxx_binding"
29806 cf_with_db_install="$cf_with_db_install"
29807 cf_with_manpages="$cf_with_manpages"
29808 cf_with_tests="$cf_with_tests"
29812 with_shared_cxx="$with_shared_cxx"
29816 cat >>"$CONFIG_STATUS" <<\EOF
29817 for ac_config_target in $ac_config_targets
29819 case "$ac_config_target" in
29820 # Handling of arguments.
29821 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29822 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29823 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29824 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29825 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29826 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29827 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29828 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29829 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29830 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29831 *) { { echo "$as_me:29831: error: invalid argument: $ac_config_target" >&5
29832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29833 { (exit 1); exit 1; }; };;
29837 # If the user did not use the arguments to specify the items to instantiate,
29838 # then the envvar interface is used. Set only those that are not.
29839 # We use the long form for the default assignment because of an extremely
29840 # bizarre bug on SunOS 4.1.3.
29841 if "$ac_need_defaults"; then
29842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29847 # Create a temporary directory, and hook for its removal unless debugging.
29850 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29851 trap '{ (exit 1); exit 1; }' 1 2 13 15
29854 # Create a (secure) tmp directory for tmp files.
29857 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29858 test -n "$tmp" && test -d "$tmp"
29861 tmp=$TMPDIR/cs$$-$RANDOM
29862 (umask 077 && mkdir "$tmp")
29865 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29866 { (exit 1); exit 1; }
29871 cat >>"$CONFIG_STATUS" <<EOF
29874 # CONFIG_FILES section.
29877 # No need to generate the scripts if there are no CONFIG_FILES.
29878 # This happens for instance when ./config.status config.h
29879 if test -n "\$CONFIG_FILES"; then
29880 # Protect against being on the right side of a sed subst in config.status.
29881 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29882 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
29883 s,@SHELL@,$SHELL,;t t
29884 s,@exec_prefix@,$exec_prefix,;t t
29885 s,@prefix@,$prefix,;t t
29886 s,@program_transform_name@,$program_transform_name,;t t
29887 s,@bindir@,$bindir,;t t
29888 s,@sbindir@,$sbindir,;t t
29889 s,@libexecdir@,$libexecdir,;t t
29890 s,@datarootdir@,$datarootdir,;t t
29891 s,@datadir@,$datadir,;t t
29892 s,@sysconfdir@,$sysconfdir,;t t
29893 s,@sharedstatedir@,$sharedstatedir,;t t
29894 s,@localstatedir@,$localstatedir,;t t
29895 s,@runstatedir@,$runstatedir,;t t
29896 s,@libdir@,$libdir,;t t
29897 s,@includedir@,$includedir,;t t
29898 s,@oldincludedir@,$oldincludedir,;t t
29899 s,@infodir@,$infodir,;t t
29900 s,@mandir@,$mandir,;t t
29901 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29902 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29903 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29904 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29905 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29906 s,@build_alias@,$build_alias,;t t
29907 s,@host_alias@,$host_alias,;t t
29908 s,@target_alias@,$target_alias,;t t
29909 s,@ECHO_C@,$ECHO_C,;t t
29910 s,@ECHO_N@,$ECHO_N,;t t
29911 s,@ECHO_T@,$ECHO_T,;t t
29912 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29913 s,@DEFS@,$DEFS,;t t
29914 s,@LIBS@,$LIBS,;t t
29915 s,@top_builddir@,$top_builddir,;t t
29916 s,@GREP@,$GREP,;t t
29917 s,@EGREP@,$EGREP,;t t
29918 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29919 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29920 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29921 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29922 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29923 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
29924 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29925 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29926 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29927 s,@VERSION@,$VERSION,;t t
29928 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29929 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29930 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29931 s,@PACKAGE@,$PACKAGE,;t t
29932 s,@build@,$build,;t t
29933 s,@build_cpu@,$build_cpu,;t t
29934 s,@build_vendor@,$build_vendor,;t t
29935 s,@build_os@,$build_os,;t t
29936 s,@host@,$host,;t t
29937 s,@host_cpu@,$host_cpu,;t t
29938 s,@host_vendor@,$host_vendor,;t t
29939 s,@host_os@,$host_os,;t t
29940 s,@target@,$target,;t t
29941 s,@target_cpu@,$target_cpu,;t t
29942 s,@target_vendor@,$target_vendor,;t t
29943 s,@target_os@,$target_os,;t t
29944 s,@FGREP@,$FGREP,;t t
29946 s,@CFLAGS@,$CFLAGS,;t t
29947 s,@LDFLAGS@,$LDFLAGS,;t t
29948 s,@CPPFLAGS@,$CPPFLAGS,;t t
29949 s,@ac_ct_CC@,$ac_ct_CC,;t t
29950 s,@EXEEXT@,$EXEEXT,;t t
29951 s,@OBJEXT@,$OBJEXT,;t t
29952 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29954 s,@LDCONFIG@,$LDCONFIG,;t t
29956 s,@CXXFLAGS@,$CXXFLAGS,;t t
29957 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29959 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29960 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29961 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29962 s,@LINT@,$LINT,;t t
29963 s,@LINT_OPTS@,$LINT_OPTS,;t t
29964 s,@LINT_LIBS@,$LINT_LIBS,;t t
29965 s,@LN_S@,$LN_S,;t t
29966 s,@cf_config_suffix@,$cf_config_suffix,;t t
29967 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29968 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29969 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29970 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29971 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29972 s,@SET_MAKE@,$SET_MAKE,;t t
29973 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29974 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29975 s,@CTAGS@,$CTAGS,;t t
29976 s,@ETAGS@,$ETAGS,;t t
29977 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29978 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29979 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29980 s,@RANLIB@,$RANLIB,;t t
29981 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29983 s,@ac_ct_LD@,$ac_ct_LD,;t t
29985 s,@ac_ct_AR@,$ac_ct_AR,;t t
29987 s,@ac_ct_NM@,$ac_ct_NM,;t t
29988 s,@ARFLAGS@,$ARFLAGS,;t t
29989 s,@DESTDIR@,$DESTDIR,;t t
29990 s,@BUILD_CC@,$BUILD_CC,;t t
29991 s,@BUILD_CPP@,$BUILD_CPP,;t t
29992 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29993 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29994 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29995 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29996 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29997 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29998 s,@cf_list_models@,$cf_list_models,;t t
29999 s,@ABI_VERSION@,$ABI_VERSION,;t t
30000 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
30001 s,@LIBTOOL@,$LIBTOOL,;t t
30002 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
30003 s,@LT_UNDEF@,$LT_UNDEF,;t t
30004 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
30005 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
30006 s,@LIB_CREATE@,$LIB_CREATE,;t t
30007 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
30008 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
30009 s,@LIB_PREP@,$LIB_PREP,;t t
30010 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
30011 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
30012 s,@LIB_LINK@,$LIB_LINK,;t t
30013 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
30014 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
30015 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
30016 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
30017 s,@TICS_NAME@,$TICS_NAME,;t t
30018 s,@TINFO_NAME@,$TINFO_NAME,;t t
30019 s,@LIB_NAME@,$LIB_NAME,;t t
30020 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
30021 s,@CC_G_OPT@,$CC_G_OPT,;t t
30022 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
30023 s,@LD_MODEL@,$LD_MODEL,;t t
30024 s,@shlibdir@,$shlibdir,;t t
30025 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
30026 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
30027 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
30028 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
30029 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
30030 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
30031 s,@LINK_PROGS@,$LINK_PROGS,;t t
30032 s,@LINK_TESTS@,$LINK_TESTS,;t t
30033 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
30034 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30035 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
30036 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
30037 s,@RPATH_LIST@,$RPATH_LIST,;t t
30038 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
30039 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
30040 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
30041 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
30042 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
30043 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
30044 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
30045 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
30046 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
30048 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
30049 s,@INFOCMP@,$INFOCMP,;t t
30050 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
30051 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
30052 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
30053 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
30054 s,@XTERM_KBS@,$XTERM_KBS,;t t
30055 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
30056 s,@TERMINFO@,$TERMINFO,;t t
30057 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
30058 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
30059 s,@TERMPATH@,$TERMPATH,;t t
30060 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
30061 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
30062 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
30063 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
30064 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
30065 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
30066 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
30067 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
30068 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
30069 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
30070 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
30071 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
30072 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
30073 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
30074 s,@RGB_PATH@,$RGB_PATH,;t t
30075 s,@no_x11_rgb@,$no_x11_rgb,;t t
30076 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
30077 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
30078 s,@NCURSES_CHTYPE@,$NCURSES_CHTYPE,;t t
30079 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
30080 s,@NCURSES_MMASK_T@,$NCURSES_MMASK_T,;t t
30081 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
30082 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
30083 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
30084 s,@cf_manpage_format@,$cf_manpage_format,;t t
30085 s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
30086 s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
30087 s,@cf_manpage_compress@,$cf_manpage_compress,;t t
30088 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
30089 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
30090 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
30091 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
30092 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
30093 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
30094 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
30095 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
30096 s,@cf_cv_enable_sigwinch@,$cf_cv_enable_sigwinch,;t t
30097 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
30098 s,@PTHREAD@,$PTHREAD,;t t
30099 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
30100 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
30101 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
30102 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
30103 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
30104 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
30105 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
30106 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
30107 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
30108 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
30109 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
30110 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
30111 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
30112 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
30113 s,@ECHO_LT@,$ECHO_LT,;t t
30114 s,@ECHO_LD@,$ECHO_LD,;t t
30115 s,@RULE_CC@,$RULE_CC,;t t
30116 s,@SHOW_CC@,$SHOW_CC,;t t
30117 s,@ECHO_CC@,$ECHO_CC,;t t
30118 s,@ECHO_LINK@,$ECHO_LINK,;t t
30119 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
30120 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
30121 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
30122 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
30123 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
30124 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
30125 s,@ADAFLAGS@,$ADAFLAGS,;t t
30126 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
30127 s,@ADA_TRACE@,$ADA_TRACE,;t t
30128 s,@MATH_LIB@,$MATH_LIB,;t t
30129 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
30130 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
30131 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
30132 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
30133 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
30134 s,@TEST_LIBS@,$TEST_LIBS,;t t
30135 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
30136 s,@CXXCPP@,$CXXCPP,;t t
30137 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
30138 s,@CXX_AR@,$CXX_AR,;t t
30139 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
30140 s,@CXXLIBS@,$CXXLIBS,;t t
30141 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
30142 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
30143 s,@M4_exists@,$M4_exists,;t t
30144 s,@cf_ada_make@,$cf_ada_make,;t t
30145 s,@cf_ada_config@,$cf_ada_config,;t t
30146 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
30147 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
30148 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
30149 s,@cf_compile_generics@,$cf_compile_generics,;t t
30150 s,@cf_generic_objects@,$cf_generic_objects,;t t
30151 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
30152 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
30153 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
30154 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
30155 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
30156 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
30157 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
30158 s,@cf_ada_package@,$cf_ada_package,;t t
30159 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
30160 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
30161 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
30162 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
30163 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
30164 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
30165 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
30166 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
30167 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30168 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30169 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30170 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30171 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30172 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30173 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30174 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30175 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30176 s,@TICS_LIBS@,$TICS_LIBS,;t t
30177 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30178 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30179 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30180 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30181 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30182 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30183 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30184 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30185 s,@includesubdir@,$includesubdir,;t t
30186 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30187 s,@TICS_LIST@,$TICS_LIST,;t t
30188 s,@TINFO_LIST@,$TINFO_LIST,;t t
30189 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30190 s,@FORM_NAME@,$FORM_NAME,;t t
30191 s,@MENU_NAME@,$MENU_NAME,;t t
30192 s,@PANEL_NAME@,$PANEL_NAME,;t t
30193 s,@CXX_NAME@,$CXX_NAME,;t t
30194 s,@TEST_ARGS@,$TEST_ARGS,;t t
30195 s,@TEST_DEPS@,$TEST_DEPS,;t t
30196 s,@TEST_ARG2@,$TEST_ARG2,;t t
30197 s,@TEST_DEP2@,$TEST_DEP2,;t t
30198 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30199 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30200 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30201 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30202 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30203 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30204 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30205 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30206 s,@cross_compiling@,$cross_compiling,;t t
30207 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30208 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30209 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30210 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30211 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30212 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30213 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30214 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30215 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30216 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30217 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30218 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30223 cat >>"$CONFIG_STATUS" <<\EOF
30224 # Split the substitutions into bite-sized pieces for seds with
30225 # small command number limits, like on Digital OSF/1 and HP-UX.
30226 ac_max_sed_lines=48
30227 ac_sed_frag=1 # Number of current file.
30228 ac_beg=1 # First line for current file.
30229 ac_end=$ac_max_sed_lines # Line after last line for current file.
30232 while "$ac_more_lines"; do
30233 if test "$ac_beg" -gt 1; then
30234 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30236 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30238 if test ! -s "$tmp"/subs.frag; then
30239 ac_more_lines=false
30241 # The purpose of the label and of the branching condition is to
30242 # speed up the sed processing (if there are no `@' at all, there
30243 # is no need to browse any of the substitutions).
30244 # These are the two extra sed commands mentioned above.
30246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30247 # It is possible to make a multiline substitution using escaped newlines.
30248 # Ensure that we do not split the substitution between script fragments.
30250 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30251 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30252 if test -s "$tmp"/subs.next; then
30253 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30254 if test ! -s "$tmp"/subs.edit; then
30255 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30256 if test ! -s "$tmp"/subs.edit; then
30257 if test "$ac_beg" -gt 1; then
30258 ac_end=`expr "$ac_end" - 1`
30265 if test -z "$ac_sed_cmds"; then
30266 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30268 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30270 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30272 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30275 if test -z "$ac_sed_cmds"; then
30278 fi # test -n "$CONFIG_FILES"
30281 cat >>"$CONFIG_STATUS" <<\EOF
30282 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30285 - | *:- | *:-:* ) # input from stdin
30287 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30288 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30289 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30291 * ) ac_file_in=$ac_file.in ;;
30294 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30295 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30296 X"$ac_file" : 'X\(//\)[^/]' \| \
30297 X"$ac_file" : 'X\(//\)$' \| \
30298 X"$ac_file" : 'X\(/\)' \| \
30299 . : '\(.\)' 2>/dev/null ||
30301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30303 /^X\(\/\/\)$/{ s//\1/; q; }
30304 /^X\(\/\).*/{ s//\1/; q; }
30306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30307 { case "$ac_dir" in
30308 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30312 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30313 case $as_mkdir_dir in
30314 # Skip DOS drivespec
30315 ?:) as_incr_dir=$as_mkdir_dir ;;
30317 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30318 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30323 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30324 # A "../" for each directory in $ac_dir_suffix.
30325 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30327 ac_dir_suffix= ac_dots=
30332 if test -z "$ac_dots"; then
30335 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30337 [\\/]* | ?:[\\/]* )
30338 ac_srcdir="$srcdir$ac_dir_suffix";
30339 ac_top_srcdir="$srcdir" ;;
30340 *) # Relative path.
30341 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30342 ac_top_srcdir="$ac_dots$srcdir" ;;
30346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30347 *) ac_INSTALL=$ac_dots$INSTALL ;;
30350 if test x"$ac_file" != x-; then
30351 { echo "$as_me:30351: creating $ac_file" >&5
30352 echo "$as_me: creating $ac_file" >&6;}
30355 # Let's still pretend it is `configure' which instantiates (i.e., don't
30356 # use $as_me), people would be surprised to read:
30357 # /* config.h. Generated automatically by config.status. */
30358 configure_input="Generated automatically from `echo $ac_file_in |
30359 sed 's,.*/,,'` by configure."
30361 # First look for the input files in the build tree, otherwise in the
30363 ac_file_inputs=`IFS=:
30364 for f in $ac_file_in; do
30366 -) echo "$tmp"/stdin ;;
30368 # Absolute (can't be DOS-style, as IFS=:)
30369 test -f "$f" || { { echo "$as_me:30369: error: cannot find input file: $f" >&5
30370 echo "$as_me: error: cannot find input file: $f" >&2;}
30371 { (exit 1); exit 1; }; }
30374 if test -f "$f"; then
30377 elif test -f "$srcdir/$f"; then
30382 { { echo "$as_me:30382: error: cannot find input file: $f" >&5
30383 echo "$as_me: error: cannot find input file: $f" >&2;}
30384 { (exit 1); exit 1; }; }
30387 done` || { (exit 1); exit 1; }
30389 cat >>"$CONFIG_STATUS" <<\EOF
30390 ac_warn_datarootdir=no
30391 if test x"$ac_file" != x-; then
30392 for ac_item in $ac_file_inputs
30394 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30395 if test -n "$ac_seen"; then
30396 ac_used=`grep '@datarootdir@' "$ac_item"`
30397 if test -z "$ac_used"; then
30398 { echo "$as_me:30398: WARNING: datarootdir was used implicitly but not set:
30400 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30402 ac_warn_datarootdir=yes
30405 ac_seen=`grep '${datarootdir}' "$ac_item"`
30406 if test -n "$ac_seen"; then
30407 { echo "$as_me:30407: WARNING: datarootdir was used explicitly but not set:
30409 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30411 ac_warn_datarootdir=yes
30416 if test "x$ac_warn_datarootdir" = xyes; then
30417 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30421 cat >>"$CONFIG_STATUS" <<EOF
30425 cat >>"$CONFIG_STATUS" <<\EOF
30427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30428 s,@configure_input@,$configure_input,;t t
30429 s,@srcdir@,$ac_srcdir,;t t
30430 s,@top_srcdir@,$ac_top_srcdir,;t t
30431 s,@INSTALL@,$ac_INSTALL,;t t
30432 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30435 test -n "${FGREP}" || FGREP="grep -F"
30436 test -n "${EGREP}" || EGREP="grep -E"
30437 cat >>"$CONFIG_STATUS" <<EOF
30438 test -n "\${FGREP}" || FGREP="$FGREP"
30439 test -n "\${EGREP}" || EGREP="$EGREP"
30441 cat >>"$CONFIG_STATUS" <<\EOF
30442 if test x"$ac_file" != x-; then
30443 cp "$tmp/out" "$ac_file"
30445 for ac_name in prefix exec_prefix datarootdir
30447 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30448 if test -n "$ac_seen"; then
30449 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30450 if test -z "$ac_init"; then
30451 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30452 { echo "$as_me:30452: WARNING: Variable $ac_name is used but was not set:
30454 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30459 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30460 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30461 if test -s "$tmp"/out; then
30462 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30463 { echo "$as_me:30463: WARNING: Some variables may not be substituted:
30465 echo "$as_me: WARNING: Some variables may not be substituted:
30475 cat >>"$CONFIG_STATUS" <<\EOF
30478 # CONFIG_HEADER section.
30481 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30482 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30484 # ac_d sets the value in "#define NAME VALUE" lines.
30485 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30486 ac_dB='[ ].*$,\1#\2'
30489 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30490 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30491 ac_iB='\([ ]\),\1#\2define\3'
30494 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30495 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30496 ac_uB='$,\1#\2define\3'
30500 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30503 - | *:- | *:-:* ) # input from stdin
30505 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30506 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30507 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30509 * ) ac_file_in=$ac_file.in ;;
30512 test x"$ac_file" != x- && { echo "$as_me:30512: creating $ac_file" >&5
30513 echo "$as_me: creating $ac_file" >&6;}
30515 # First look for the input files in the build tree, otherwise in the
30517 ac_file_inputs=`IFS=:
30518 for f in $ac_file_in; do
30520 -) echo "$tmp"/stdin ;;
30522 # Absolute (can't be DOS-style, as IFS=:)
30523 test -f "$f" || { { echo "$as_me:30523: error: cannot find input file: $f" >&5
30524 echo "$as_me: error: cannot find input file: $f" >&2;}
30525 { (exit 1); exit 1; }; }
30528 if test -f "$f"; then
30531 elif test -f "$srcdir/$f"; then
30536 { { echo "$as_me:30536: error: cannot find input file: $f" >&5
30537 echo "$as_me: error: cannot find input file: $f" >&2;}
30538 { (exit 1); exit 1; }; }
30541 done` || { (exit 1); exit 1; }
30542 # Remove the trailing spaces.
30543 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30547 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30548 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30549 # be either 'cat' or 'sort'.
30550 cat confdefs.h | uniq >conftest.vals
30552 # Break up conftest.vals because some shells have a limit on
30553 # the size of here documents, and old seds have small limits too.
30555 rm -f conftest.tail
30556 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30557 while grep . conftest.vals >/dev/null
30559 # Write chunks of a limited-size here document to conftest.frag.
30560 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30561 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30562 echo 'CEOF' >> "$CONFIG_STATUS"
30563 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30564 rm -f conftest.vals
30565 mv conftest.tail conftest.vals
30567 rm -f conftest.vals
30569 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30571 echo ' cat >> conftest.edit <<CEOF
30572 /@DEFS@/r conftest.frag
30575 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30577 mv "$tmp"/out "$tmp"/in
30578 rm -f conftest.edit conftest.frag
30579 ' >> "$CONFIG_STATUS"
30581 cat >>"$CONFIG_STATUS" <<\EOF
30582 # Let's still pretend it is `configure' which instantiates (i.e., don't
30583 # use $as_me), people would be surprised to read:
30584 # /* config.h. Generated automatically by config.status. */
30585 if test x"$ac_file" = x-; then
30586 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30588 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30590 cat "$tmp"/in >>"$tmp"/config.h
30592 if test x"$ac_file" != x-; then
30593 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30594 { echo "$as_me:30594: $ac_file is unchanged" >&5
30595 echo "$as_me: $ac_file is unchanged" >&6;}
30597 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30598 X"$ac_file" : 'X\(//\)[^/]' \| \
30599 X"$ac_file" : 'X\(//\)$' \| \
30600 X"$ac_file" : 'X\(/\)' \| \
30601 . : '\(.\)' 2>/dev/null ||
30603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30605 /^X\(\/\/\)$/{ s//\1/; q; }
30606 /^X\(\/\).*/{ s//\1/; q; }
30608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30609 { case "$ac_dir" in
30610 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30614 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30615 case $as_mkdir_dir in
30616 # Skip DOS drivespec
30617 ?:) as_incr_dir=$as_mkdir_dir ;;
30619 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30620 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30627 mv "$tmp/config.h" "$ac_file"
30630 cat "$tmp"/config.h
30631 rm -f "$tmp"/config.h
30635 cat >>"$CONFIG_STATUS" <<\EOF
30637 # CONFIG_COMMANDS section.
30639 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30640 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30641 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30645 if test "x$cf_with_tests" != xno ; then
30649 if test ! -d "$srcdir/$cf_dir" ; then
30651 elif test -f "$srcdir/$cf_dir/programs" ; then
30652 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30658 cf_prefix=$LIB_PREFIX
30660 case "$cf_cv_shlib_version" in
30661 (cygdll|msysdll|mingw|msvcdll)
30662 TINFO_NAME=$TINFO_ARG_SUFFIX
30667 if test -n "$TINFO_SUFFIX" ; then
30668 case "$TINFO_SUFFIX" in
30670 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30671 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30674 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30675 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30678 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30679 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30684 for cf_dir in $SRC_SUBDIRS
30686 if test ! -d "$srcdir/$cf_dir" ; then
30688 elif test -f "$srcdir/$cf_dir/modules" ; then
30693 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30695 cf_awk_program="$cf_awk_program\
30696 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30697 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30701 if test "x$WILDCARD_SYMS" = xno
30703 cf_awk_program="$cf_awk_program\
30704 /[ ]_\\*;/ { skip=1; next; }\
30708 if test "x$cf_awk_program" != "x"
30710 cat >>$cf_dir/Makefile <<CF_EOF
30712 # Generated by CF_LIB_RULES
30713 resulting.map: $UNALTERED_SYMS
30714 $AWK 'BEGIN { skip = 1; last=""; } \
30716 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30717 skip = 0; last = \$\$0; } \
30718 END { print last; }' < "$UNALTERED_SYMS" >\$@
30721 rm -f resulting.map
30725 for cf_item in $cf_LIST_MODELS
30731 cf_depsuf=$cf_suffix
30734 case "$cf_cv_system_name" in
30742 cf_depsuf=$cf_suffix
30745 case "$cf_cv_system_name" in
30753 cf_depsuf=$cf_suffix
30756 case "$cf_cv_system_name" in
30759 cf_depsuf=$cf_suffix
30763 cf_depsuf='.dll.lib'
30765 (cygwin*|msys*|mingw*)
30771 cf_depsuf=$cf_suffix
30777 cf_depsuf=$cf_suffix
30781 cf_depsuf=$cf_suffix
30787 cf_depsuf=$cf_suffix
30800 cf_depsuf=$cf_suffix
30803 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30805 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30806 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30809 if test "$cf_dir" = "c++"
30812 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30814 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30818 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30820 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30823 test -z "$cf_libname" && cf_libname="$cf_dir"
30824 if test "$cf_item" = shared ; then
30825 if test -n "${LIB_SUFFIX}"
30827 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30829 cf_shared_suffix="$cf_suffix"
30831 if test "$cf_cv_do_symlinks" = yes ; then
30834 case "$cf_cv_shlib_version" in
30836 cf_version_name=REL_VERSION
30839 cf_version_name=ABI_VERSION
30843 if test -n "$cf_version_name"
30845 case "$cf_cv_system_name" in
30848 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30851 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30855 if test -n "${USE_LIB_SUFFIX}"
30857 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30859 cf_shared_suffix="$cf_suffix"
30862 # cygwin needs import library, and has unique naming convention
30863 # use autodetected ${cf_prefix} for import lib and static lib, but
30864 # use 'cyg' prefix for shared lib.
30865 case "$cf_cv_shlib_version" in
30867 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30868 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30871 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30872 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30875 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30876 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30879 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30880 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30886 if test -n "$cf_add_lib"
30888 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30892 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30893 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30896 if test "$cf_dir" = ncurses ; then
30897 cf_subsets="$LIB_SUBSETS"
30898 cf_r_parts="$cf_subsets"
30899 cf_liblist="$Libs_To_Make"
30901 while test -n "$cf_r_parts"
30903 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30904 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30905 if test "$cf_l_parts" != "$cf_r_parts" ; then
30907 case "$cf_l_parts" in
30909 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30912 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30918 if test -n "$cf_add_lib"; then
30919 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30926 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30929 if test "$cf_dir" = c++; then
30930 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30932 for cf_item in $Libs_To_Make
30938 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30941 for cf_test in $cf_list
30943 if test "$cf_test" = "$cf_item"
30945 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30950 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30952 Libs_To_Make="$cf_list"
30956 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30957 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30958 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30959 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30961 $AWK -f "$srcdir/mk-0th.awk" \
30962 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30963 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30965 for cf_subset in $cf_subsets
30968 for cf_item in $cf_LIST_MODELS
30971 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30973 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30976 if test "$CXX_MODEL" = SHARED; then
30977 case "$cf_cv_shlib_version" in
30978 (cygdll|msysdll|mingw|msvcdll)
30979 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30981 echo "${as_me:-configure}:30981: testing overriding CXX_MODEL to SHARED ..." 1>&5
30983 with_shared_cxx=yes
30986 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30994 cf_depsuf=$cf_suffix
30997 case "$cf_cv_system_name" in
31005 cf_depsuf=$cf_suffix
31008 case "$cf_cv_system_name" in
31016 cf_depsuf=$cf_suffix
31019 case "$cf_cv_system_name" in
31022 cf_depsuf=$cf_suffix
31026 cf_depsuf='.dll.lib'
31028 (cygwin*|msys*|mingw*)
31034 cf_depsuf=$cf_suffix
31040 cf_depsuf=$cf_suffix
31044 cf_depsuf=$cf_suffix
31050 cf_depsuf=$cf_suffix
31063 cf_depsuf=$cf_suffix
31066 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
31068 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
31069 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
31073 (libtool) cf_subdir='obj_lo' ;;
31074 (normal) cf_subdir='objects' ;;
31075 (debug) cf_subdir='obj_g' ;;
31076 (profile) cf_subdir='obj_p' ;;
31078 case "$cf_cv_system_name" in
31080 cf_subdir='objects' ;;
31082 cf_subdir='obj_s' ;;
31086 # Test for case where we build libtinfo with a different name.
31088 if test "$cf_dir" = ncurses ; then
31089 case "$cf_subset" in
31091 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31094 cf_libname=$TINFO_LIB_SUFFIX
31097 cf_libname=$TICS_LIB_SUFFIX
31100 elif test "$cf_dir" = c++ ; then
31102 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31104 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31106 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31109 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31111 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31113 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31115 if test -n "${USE_ARG_SUFFIX}" ; then
31116 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
31117 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
31120 # These dependencies really are for development, not
31121 # builds, but they are useful in porting, too.
31122 cf_depend="../include/ncurses_cfg.h"
31123 if test "$srcdir" = "."; then
31126 cf_reldir="\${srcdir}"
31129 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
31130 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
31131 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
31132 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
31136 old_cf_suffix="$cf_suffix"
31137 if test "$cf_cv_shlib_version_infix" = yes ; then
31138 if test -n "$USE_LIB_SUFFIX" ; then
31139 case "$USE_LIB_SUFFIX" in
31141 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
31142 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
31143 cf_dir_suffix=tw$EXTRA_SUFFIX
31146 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
31147 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
31148 cf_dir_suffix=t$EXTRA_SUFFIX
31151 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
31152 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
31153 cf_dir_suffix=w$EXTRA_SUFFIX
31156 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
31157 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
31158 cf_dir_suffix=$EXTRA_SUFFIX
31164 $AWK -f "$srcdir/mk-1st.awk" \
31165 name=${cf_libname}${cf_dir_suffix} \
31166 traces=$LIB_TRACING \
31168 CXX_MODEL=$CXX_MODEL \
31169 LIB_SUFFIX=$LIB_SUFFIX \
31170 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31171 make_phony="${cf_cv_make_PHONY:-no}" \
31173 prefix=$cf_prefix \
31174 suffix=$cf_suffix \
31175 subset=$cf_subset \
31176 driver=$cf_cv_term_driver \
31178 TermlibRoot=$TINFO_NAME \
31179 TermlibSuffix=$TINFO_SUFFIX \
31180 ShlibVer=$cf_cv_shlib_version \
31181 ShlibVerInfix=$cf_cv_shlib_version_infix \
31182 ReLink=${cf_cv_do_relink:-no} \
31183 ReRanlib=${cf_cv_do_reranlib:-yes} \
31184 DoLinks=$cf_cv_do_symlinks \
31185 rmSoLocs=$cf_cv_rm_so_locs \
31186 ldconfig="$LDCONFIG" \
31187 overwrite=$WITH_OVERWRITE \
31188 depend="$cf_depend" \
31190 libtool_version="$LIBTOOL_VERSION" \
31191 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31193 cf_suffix="$old_cf_suffix"
31195 for cf_subdir2 in $cf_subdirs lib
31197 test "$cf_subdir" = "$cf_subdir2" && break
31199 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31200 $AWK -f "$srcdir/mk-2nd.awk" \
31202 traces=$LIB_TRACING \
31205 subset=$cf_subset \
31208 crenames=$cf_cv_prog_CC_c_o \
31209 cxxrenames=$cf_cv_prog_CXX_c_o \
31210 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31211 cf_subdirs="$cf_subdirs $cf_subdir"
31216 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31220 echo '# generated by CF_LIB_RULES' >> Makefile
31222 if test "x$cf_cv_make_PHONY" = xyes ; then
31223 cat >> Makefile <<-CF_EOF
31227 .PHONY : install.includes
31228 .PHONY : uninstall.includes
31229 .PHONY : install.libs
31230 .PHONY : uninstall.libs
31234 for cf_dir in $SRC_SUBDIRS
31236 if test ! -d "$srcdir/$cf_dir" ; then
31240 if test -f "$cf_dir/Makefile" ; then
31243 echo 'libs \' >> Makefile
31244 echo 'install.libs \' >> Makefile
31245 echo 'uninstall.libs ::' >> Makefile
31246 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31251 if test -f "$srcdir/$cf_dir/modules" ; then
31253 if test "x$cf_cv_make_PHONY" = xyes ; then
31254 cat >> Makefile <<-CF_EOF
31256 .PHONY : install.$cf_dir
31257 .PHONY : uninstall.$cf_dir
31262 if test -f "$srcdir/$cf_dir/headers" ; then
31263 cat >> Makefile <<CF_EOF
31264 install.includes \\
31265 uninstall.includes \\
31269 cat >> Makefile <<CF_EOF
31276 uninstall.$cf_dir ::
31277 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31279 elif test -f "$srcdir/$cf_dir/headers" ; then
31280 cat >> Makefile <<CF_EOF
31285 install.includes \\
31286 uninstall.includes ::
31287 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31292 if test "x$cf_cv_make_PHONY" = xyes ; then
31293 cat >> Makefile <<-CF_EOF
31295 .PHONY : install.data
31296 .PHONY : uninstall.data
31300 if test "x$cf_with_db_install" = xyes; then
31301 cat >> Makefile <<CF_EOF
31303 install.libs uninstall.libs \\
31304 install.data uninstall.data ::
31305 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31308 cat >> Makefile <<CF_EOF
31310 install.libs uninstall.libs ::
31311 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31315 if test "x$cf_with_manpages" = xyes; then
31317 if test "x$cf_cv_make_PHONY" = xyes ; then
31318 cat >> Makefile <<-CF_EOF
31320 .PHONY : install.man
31321 .PHONY : uninstall.man
31325 cat >> Makefile <<CF_EOF
31329 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31333 cat >> Makefile <<CF_EOF
31336 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31337 rm -f headers.sh headers.sed mk_shared_lib.sh
31338 rm -f edit_man.* man_alias.* *.tmp
31339 rm -rf \${DIRS_TO_MAKE}
31342 rm -f headers.sed headers.sh
31344 echo creating headers.sh
31345 cat >headers.sh <<CF_EOF
31347 # This shell script is generated by the 'configure' script. It is invoked in a
31348 # subdirectory of the build tree. It generates a sed-script in the parent
31349 # directory that is used to adjust includes for header files that reside in a
31350 # subdirectory of /usr/include, etc.
31352 while test \$# != 3
31354 PRG="\$PRG \$1"; shift
31359 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31360 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31361 echo installing \$SRC in \$DST
31364 if test "$WITH_CURSES_H" = yes; then
31365 cat >>headers.sh <<CF_EOF
31368 END=\`basename \$DST\`
31369 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31371 NAME=\`basename \$i\`
31372 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31376 echo "" >> \$TMPSED
31382 cat >>headers.sh <<CF_EOF
31385 END=\`basename \$DST\`
31386 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31388 NAME=\`basename \$i\`
31389 if test "\$NAME" = "curses.h"
31391 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31394 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31398 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31403 cat >>headers.sh <<CF_EOF
31405 sed -f \$TMPSED \$SRC > \$TMPSRC
31406 NAME=\`basename \$SRC\`
31408 if test "$WITH_CURSES_H" != yes; then
31409 cat >>headers.sh <<CF_EOF
31410 test "\$NAME" = "curses.h" && NAME=ncurses.h
31413 cat >>headers.sh <<CF_EOF
31414 # Just in case someone gzip'd manpages, remove the conflicting copy.
31415 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31417 eval \$PRG \$TMPSRC \$DST/\$NAME
31418 rm -f \$TMPSRC \$TMPSED
31421 chmod 0755 headers.sh
31423 for cf_dir in $SRC_SUBDIRS
31425 if test ! -d "$srcdir/$cf_dir" ; then
31429 if test -f "$srcdir/$cf_dir/headers" ; then
31430 $AWK -f "$srcdir/mk-hdr.awk" \
31431 subset="$LIB_SUBSETS" \
31432 compat="$WITH_CURSES_H" \
31433 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31436 if test -f "$srcdir/$cf_dir/modules" ; then
31437 if test "$cf_dir" != "c++" ; then
31438 if test "x$cf_cv_make_PHONY" = xyes ; then
31439 cat >> $cf_dir/Makefile <<-CF_EOF
31445 cat >>$cf_dir/Makefile <<"CF_EOF"
31446 depend : ${AUTO_SRC}
31447 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31449 # DO NOT DELETE THIS LINE -- make depend depends on it.
31455 if test "$MANPAGE_RENAMES" != no ; then
31456 # Construct a sed-script to perform renaming within man-pages
31457 test -n "$verbose" && echo "creating edit_man.sed"
31458 test ! -d man && mkdir man
31459 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31462 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31463 if test -z "$USE_OLD_MAKERULES" ; then
31464 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31472 cat >>"$CONFIG_STATUS" <<\EOF
31474 { (exit 0); exit 0; }
31476 chmod +x "$CONFIG_STATUS"
31477 ac_clean_files=$ac_clean_files_save
31479 # configure is writing to config.log, and then calls config.status.
31480 # config.status does its own redirection, appending to config.log.
31481 # Unfortunately, on DOS this fails, as config.log is still kept open
31482 # by configure, so config.status won't be able to write to it; its
31483 # output is simply discarded. So we exec the FD to /dev/null,
31484 # effectively closing config.log, so it can be properly (re)opened and
31485 # appended to by config.status. When coming back to configure, we
31486 # need to make the FD available again.
31487 if test "$no_create" != yes; then
31490 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31493 # would make configure fail if this is the last instruction.
31494 "$ac_cs_success" || { (exit 1); exit 1; }
31496 ${MAKE:-make} preinstall