2 # From configure.in Revision: 1.737 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20210509.
6 # Copyright 2003-2020,2021 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --without-ada suppress check for Ada compiler, don't build demo
720 --without-cxx do not adjust ncurses bool to match C++
721 --without-cxx-binding do not build C++ binding and demo
722 --disable-db-install suppress install of terminal database
723 --without-manpages suppress install of manpages
724 --without-progs suppress build/install with programs (e.g., tic)
725 --without-tack suppress build/install with tack program
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --enable-symlinks make tic use symbolic links not hard links
789 --enable-broken_linker compile with broken-linker support code
790 --enable-bsdpad recognize BSD-style prefix padding
791 --enable-widec compile with wide-char/UTF-8 code
792 --disable-lp64 allow chtype to be long (ignore _LP64)
793 --disable-largefile omit support for large files
794 --disable-tparm-varargs compile tparm() without varargs interface
795 --disable-tic-depends link tic library without explicit dependency on ncurses library
796 --enable-wattr-macros enable wattr* macros
797 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
798 --with-bool=TYPE override fallback type of bool variable
799 --with-caps=alt compile with alternate Caps file
800 --with-chtype=TYPE override type of chtype
801 --with-ospeed=TYPE override type of ospeed variable
802 --with-mmask-t=TYPE override type of mmask_t
803 --with-ccharw-max=XXX override size CCHARW_MAX
804 --enable-signed-char compile using signed Boolean's in term.h
805 --with-tparm-arg=TYPE override parameter type of tparm
806 --with-rcs-ids compile-in RCS identifiers
807 Options to Specify How Manpages are Installed:
808 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
809 optionally formatted/catonly, e.g., gzip,formatted
810 --with-manpage-renames specify manpage-renaming
811 --with-manpage-aliases specify manpage-aliases using .so
812 --with-manpage-symlinks specify manpage-aliases using symlinks
813 --with-manpage-tbl specify manpage processing with tbl
815 --disable-ext-funcs disable function-extensions
816 --enable-sp-funcs enable SCREEN-extensions
817 --enable-term-driver enable terminal-driver
818 --enable-const compile with extra/non-standard const
819 --enable-ext-colors compile for 256-color support
820 --enable-ext-mouse compile for extended mouse-encoding
821 --enable-ext-putwin compile with extended putwin/screendump
822 --enable-no-padding compile with $NCURSES_NO_PADDING code
823 --enable-sigwinch compile with SIGWINCH handler
824 --enable-tcap-names compile with user-definable terminal capabilities
826 --with-pthread use POSIX thread library
827 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
828 --enable-weak-symbols enable weak-symbols for pthreads
829 --enable-reentrant compile with reentrant code
830 --enable-opaque-curses make curses WINDOW, etc., "opaque"
831 --enable-opaque-form make form-library structures "opaque"
832 --enable-opaque-menu make menu-library structures "opaque"
833 --enable-opaque-panel make panel-library structures "opaque"
834 --with-wrap-prefix=XXX override prefix used for public variables
836 --without-develop disable development options
837 --enable-hard-tabs compile with hard-tabs code
838 --enable-xmc-glitch compile with support for xmc (magic-cookie)
840 --disable-assumed-color do not assume anything about default-colors
841 --disable-hashmap compile without hashmap scrolling-optimization
842 --enable-colorfgbg compile-in experimental $COLORFGBG code
843 --enable-fvisibility compile with -fvisibility=hidden
844 --enable-interop compile-in interop bindings
845 --enable-safe-sprintf compile with experimental safe-sprintf code
846 --disable-scroll-hints compile without scroll-hints code
847 --enable-wgetch-events compile with wgetch-events code
848 --enable-exp-win32 compile with experimental-Windows driver
849 Testing/development Options:
850 --disable-echo do not display "compiling" commands
851 --disable-stripping do not strip (debug info) installed executables
852 --enable-warnings test: turn on gcc compiler warnings
853 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
854 --enable-string-hacks work around bogus compiler/loader warnings
855 --enable-assertions test: turn on generation of assertion code
856 --with-dmalloc test: use Gray Watson's dmalloc library
857 --with-dbmalloc test: use Conor Cahill's dbmalloc library
858 --with-valgrind test: use valgrind
859 --disable-leaks test: free permanent memory, analyze leaks
860 --enable-expanded test: generate functions for certain macros
861 --disable-macros test: use functions rather than macros
862 --with-trace test: add trace() function to all models of ncurses
863 --disable-gnat-projects test: disable GNAT projects even if usable
865 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
866 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
867 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
868 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
869 --with-ada-libname=XXX override default Ada library-name
870 --with-form-libname=XXX override form basename of library
871 --with-menu-libname=XXX override menu basename of library
872 --with-panel-libname=XXX override panel basename of library
873 --with-cxx-libname=XXX override ncurses++ basename of library
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
883 CXX C++ compiler command
884 CXXFLAGS C++ compiler flags
885 CXXCPP C++ preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
898 # A "../" for each directory in /$ac_subdir.
899 ac_dots=`echo "$ac_subdir" |
900 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
903 .) # No --srcdir option. We are building in place.
904 ac_sub_srcdir="$srcdir" ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
908 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f "$ac_sub_srcdir/configure.gnu"; then
914 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
915 elif test -f "$ac_sub_srcdir/configure"; then
917 $SHELL "$ac_sub_srcdir/configure" --help=recursive
918 elif test -f "$ac_sub_srcdir/configure.ac" ||
919 test -f "$ac_sub_srcdir/configure.in"; then
921 "$ac_configure" --help
923 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
929 test -n "$ac_init_help" && exit 0
930 if "$ac_init_version"; then
933 Copyright 2003-2020,2021 Thomas E. Dickey
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.52.20210509. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c) ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1001 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1006 # Get rid of the leading space.
1009 # When interrupted or exit'd, cleanup temporary files, and complete
1010 # config.log. We remove comments because anyway the quotes in there
1011 # would cause problems or look ugly.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1015 echo "## ----------------- ##" >&5
1016 echo "## Cache variables. ##" >&5
1017 echo "## ----------------- ##" >&5
1019 # The following way of writing the cache mishandles newlines in values,
1022 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034 sed "/^$/d" confdefs.h >conftest.log
1035 if test -s conftest.log; then
1037 echo "## ------------ ##" >&5
1038 echo "## confdefs.h. ##" >&5
1039 echo "## ------------ ##" >&5
1041 cat conftest.log >&5
1044 test "$ac_signal" != 0 &&
1045 echo "$as_me: caught signal $ac_signal" >&5
1046 echo "$as_me: exit $exit_status" >&5
1047 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1050 for ac_signal in 1 2 13 15; do
1051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1056 rm -rf conftest* confdefs.h
1057 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1060 # Let the site file select an alternate cache file if it wants to.
1061 # Prefer explicitly selected file to automatically selected ones.
1062 if test -z "$CONFIG_SITE"; then
1063 if test "x$prefix" != xNONE; then
1064 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1069 for ac_site_file in $CONFIG_SITE; do
1070 if test -r "$ac_site_file"; then
1071 { echo "$as_me:1071: loading site script $ac_site_file" >&5
1072 echo "$as_me: loading site script $ac_site_file" >&6;}
1073 cat "$ac_site_file" >&5
1078 if test -r "$cache_file"; then
1079 # Some versions of bash will fail to source /dev/null (special
1080 # files actually), so we avoid doing that.
1081 if test -f "$cache_file"; then
1082 { echo "$as_me:1082: loading cache $cache_file" >&5
1083 echo "$as_me: loading cache $cache_file" >&6;}
1085 [\\/]* | ?:[\\/]* ) . $cache_file;;
1086 *) . ./$cache_file;;
1090 { echo "$as_me:1090: creating cache $cache_file" >&5
1091 echo "$as_me: creating cache $cache_file" >&6;}
1095 # Check that the precious variables saved in the cache have kept the same
1097 ac_cache_corrupted=false
1098 for ac_var in `(set) 2>&1 |
1099 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1100 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1101 eval ac_new_set=\$ac_env_${ac_var}_set
1102 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1103 eval ac_new_val="\$ac_env_${ac_var}_value"
1104 case "$ac_old_set,$ac_new_set" in
1106 { echo "$as_me:1106: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1107 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1108 ac_cache_corrupted=: ;;
1110 { echo "$as_me:1110: error: \`$ac_var' was not set in the previous run" >&5
1111 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1112 ac_cache_corrupted=: ;;
1115 if test "x$ac_old_val" != "x$ac_new_val"; then
1116 { echo "$as_me:1116: error: \`$ac_var' has changed since the previous run:" >&5
1117 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1118 { echo "$as_me:1118: former value: $ac_old_val" >&5
1119 echo "$as_me: former value: $ac_old_val" >&2;}
1120 { echo "$as_me:1120: current value: $ac_new_val" >&5
1121 echo "$as_me: current value: $ac_new_val" >&2;}
1122 ac_cache_corrupted=:
1125 # Pass precious variables to config.status. It doesn't matter if
1126 # we pass some twice (in addition to the command line arguments).
1127 if test "$ac_new_set" = set; then
1128 case "$ac_new_val" in
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1131 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1138 if "$ac_cache_corrupted"; then
1139 { echo "$as_me:1139: error: changes in the environment can compromise the build" >&5
1140 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1141 { { echo "$as_me:1141: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1142 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1143 { (exit 1); exit 1; }; }
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1149 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1151 ac_main_return="return"
1153 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1155 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1167 echo "#! $SHELL" >conftest.sh
1168 echo "exit 0" >>conftest.sh
1169 chmod +x conftest.sh
1170 if { (echo "$as_me:1170: PATH=\".;.\"; conftest.sh") >&5
1171 (PATH=".;."; conftest.sh) 2>&5
1173 echo "$as_me:1173: \$? = $ac_status" >&5
1174 (exit "$ac_status"); }; then
1175 ac_path_separator=';'
1179 PATH_SEPARATOR="$ac_path_separator"
1182 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1186 for ac_prog in ggrep grep
1188 # Extract the first word of "$ac_prog", so it can be a program name with args.
1189 set dummy $ac_prog; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_GREP+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 if test -n "$GREP"; then
1196 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1200 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_GREP="$ac_prog"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1211 GREP=$ac_cv_prog_GREP
1212 if test -n "$GREP"; then
1213 echo "$as_me:1213: result: $GREP" >&5
1214 echo "${ECHO_T}$GREP" >&6
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1220 test -n "$GREP" && break
1222 test -n "$GREP" || GREP=": "
1224 echo "$as_me:1224: checking for egrep" >&5
1225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1226 if test "${ac_cv_path_EGREP+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1230 then ac_cv_path_EGREP="$GREP -E"
1232 for ac_prog in gegrep egrep
1234 # Extract the first word of "$ac_prog", so it can be a program name with args.
1235 set dummy $ac_prog; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_path_EGREP+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1243 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1246 ac_save_IFS=$IFS; IFS=$ac_path_separator
1248 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if $as_executable_p "$ac_dir/$ac_word"; then
1252 ac_cv_path_EGREP="$ac_dir/$ac_word"
1253 echo "$as_me:1253: found $ac_dir/$ac_word" >&5
1261 EGREP=$ac_cv_path_EGREP
1263 if test -n "$EGREP"; then
1264 echo "$as_me:1264: result: $EGREP" >&5
1265 echo "${ECHO_T}$EGREP" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1271 test -n "$EGREP" && break
1273 test -n "$EGREP" || EGREP=": "
1275 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1275: error: cannot find workable egrep" >&5
1276 echo "$as_me: error: cannot find workable egrep" >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_path_EGREP" >&5
1281 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1282 EGREP="$ac_cv_path_EGREP"
1284 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1285 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1286 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1287 cf_cv_abi_version=${NCURSES_MAJOR}
1288 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1289 cf_cv_timestamp=`date`
1290 echo "$as_me:1290: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1291 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1293 if test -f "$srcdir/VERSION" ; then
1294 echo "$as_me:1294: checking for package version" >&5
1295 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1297 # if there are not enough fields, cut returns the last one...
1298 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1299 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1300 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1302 # this is how CF_BUNDLED_INTL uses $VERSION:
1303 VERSION="$cf_field1"
1305 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1306 test -z "$VERSION_MAJOR" && { { echo "$as_me:1306: error: missing major-version" >&5
1307 echo "$as_me: error: missing major-version" >&2;}
1308 { (exit 1); exit 1; }; }
1310 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1311 test -z "$VERSION_MINOR" && { { echo "$as_me:1311: error: missing minor-version" >&5
1312 echo "$as_me: error: missing minor-version" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:1315: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1316 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1318 echo "$as_me:1318: checking for package patch date" >&5
1319 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1320 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1321 case .$VERSION_PATCH in
1323 { { echo "$as_me:1323: error: missing patch-date $VERSION_PATCH" >&5
1324 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1325 { (exit 1); exit 1; }; }
1327 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1330 { { echo "$as_me:1330: error: illegal patch-date $VERSION_PATCH" >&5
1331 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:1335: result: $VERSION_PATCH" >&5
1336 echo "${ECHO_T}$VERSION_PATCH" >&6
1338 { { echo "$as_me:1338: error: did not find $srcdir/VERSION" >&5
1339 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1340 { (exit 1); exit 1; }; }
1343 # show the actual data that we have for versions:
1344 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1346 echo "${as_me:-configure}:1346: testing ABI VERSION $VERSION ..." 1>&5
1348 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1350 echo "${as_me:-configure}:1350: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1352 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1354 echo "${as_me:-configure}:1354: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1356 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1358 echo "${as_me:-configure}:1358: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1363 cat >>confdefs.h <<EOF
1364 #define PACKAGE "$PACKAGE"
1367 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1369 cat >>confdefs.h <<EOF
1370 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1373 cat >>confdefs.h <<EOF
1374 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1377 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1379 # Check whether --with-rel-version or --without-rel-version was given.
1380 if test "${with_rel_version+set}" = set; then
1381 withval="$with_rel_version"
1382 { echo "$as_me:1382: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1383 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1384 cf_cv_rel_version=$withval
1387 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1388 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1390 if test -n "$NCURSES_MAJOR" ; then
1391 case $NCURSES_MAJOR in
1395 { { echo "$as_me:1395: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1396 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1397 { (exit 1); exit 1; }; }
1401 { { echo "$as_me:1401: error: Release major-version value is empty" >&5
1402 echo "$as_me: error: Release major-version value is empty" >&2;}
1403 { (exit 1); exit 1; }; }
1406 if test -n "$NCURSES_MINOR" ; then
1407 case $NCURSES_MINOR in
1411 { { echo "$as_me:1411: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1412 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1413 { (exit 1); exit 1; }; }
1417 { { echo "$as_me:1417: error: Release minor-version value is empty" >&5
1418 echo "$as_me: error: Release minor-version value is empty" >&2;}
1419 { (exit 1); exit 1; }; }
1422 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1424 # Check whether --with-abi-version or --without-abi-version was given.
1425 if test "${with_abi_version+set}" = set; then
1426 withval="$with_abi_version"
1428 if test "x$cf_cv_abi_version" != "x$withval"
1430 { echo "$as_me:1430: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1431 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1432 case "$cf_cv_rel_version" in
1434 cf_cv_rel_version=$withval.0
1437 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1441 cf_cv_abi_version=$withval
1444 if test -n "$cf_cv_abi_version" ; then
1445 case $cf_cv_abi_version in
1449 { { echo "$as_me:1449: error: ABI version is not a number: $cf_cv_abi_version" >&5
1450 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1451 { (exit 1); exit 1; }; }
1455 { { echo "$as_me:1455: error: ABI version value is empty" >&5
1456 echo "$as_me: error: ABI version value is empty" >&2;}
1457 { (exit 1); exit 1; }; }
1460 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1462 case "$cf_cv_rel_version" in
1464 cf_cv_rel_version=$with_abi_version.0
1470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1471 if test -f "$ac_dir/install-sh"; then
1473 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 elif test -f "$ac_dir/install.sh"; then
1477 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 elif test -f "$ac_dir/shtool"; then
1481 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 if test -z "$ac_aux_dir"; then
1486 { { echo "$as_me:1486: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1487 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488 { (exit 1); exit 1; }; }
1490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1494 # Make sure we can run config.sub.
1495 $ac_config_sub sun4 >/dev/null 2>&1 ||
1496 { { echo "$as_me:1496: error: cannot run $ac_config_sub" >&5
1497 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498 { (exit 1); exit 1; }; }
1500 echo "$as_me:1500: checking build system type" >&5
1501 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502 if test "${ac_cv_build+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 ac_cv_build_alias=$build_alias
1506 test -z "$ac_cv_build_alias" &&
1507 ac_cv_build_alias=`$ac_config_guess`
1508 test -z "$ac_cv_build_alias" &&
1509 { { echo "$as_me:1509: error: cannot guess build type; you must specify one" >&5
1510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511 { (exit 1); exit 1; }; }
1512 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1513 { { echo "$as_me:1513: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:1518: result: $ac_cv_build" >&5
1519 echo "${ECHO_T}$ac_cv_build" >&6
1521 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$as_me:1525: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1534 { { echo "$as_me:1534: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:1539: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1542 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1547 echo "$as_me:1547: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1556 { { echo "$as_me:1556: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 test -n "$target_alias" &&
1571 test "$program_prefix$program_suffix$program_transform_name" = \
1573 program_prefix=${target_alias}-
1574 system_name="$host_os"
1576 system_name="`(uname -s -r) 2>/dev/null`"
1577 if test -z "$system_name" ; then
1578 system_name="`(hostname) 2>/dev/null`"
1581 test -n "$system_name" &&
1582 cat >>confdefs.h <<EOF
1583 #define SYSTEM_NAME "$system_name"
1586 if test "${cf_cv_system_name+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 cf_cv_system_name="$system_name"
1592 test -z "$system_name" && system_name="$cf_cv_system_name"
1593 test -n "$cf_cv_system_name" && echo "$as_me:1593: result: Configuring for $cf_cv_system_name" >&5
1594 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1596 if test ".$system_name" != ".$cf_cv_system_name" ; then
1597 echo "$as_me:1597: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1598 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1599 { { echo "$as_me:1599: error: \"Please remove config.cache and try again.\"" >&5
1600 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1601 { (exit 1); exit 1; }; }
1604 # Check whether --with-system-type or --without-system-type was given.
1605 if test "${with_system_type+set}" = set; then
1606 withval="$with_system_type"
1607 { echo "$as_me:1607: WARNING: overriding system type to $withval" >&5
1608 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1609 cf_cv_system_name=$withval
1614 ### Save the given $CFLAGS to allow user-override.
1615 cf_user_CFLAGS="$CFLAGS"
1617 ### Default install-location
1618 echo "$as_me:1618: checking for fgrep" >&5
1619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1620 if test "${ac_cv_path_FGREP+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1624 then ac_cv_path_FGREP="$GREP -F"
1626 for ac_prog in gfgrep fgrep
1628 # Extract the first word of "$ac_prog", so it can be a program name with args.
1629 set dummy $ac_prog; ac_word=$2
1630 echo "$as_me:1630: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_path_FGREP+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1640 ac_save_IFS=$IFS; IFS=$ac_path_separator
1642 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if $as_executable_p "$ac_dir/$ac_word"; then
1646 ac_cv_path_FGREP="$ac_dir/$ac_word"
1647 echo "$as_me:1647: found $ac_dir/$ac_word" >&5
1655 FGREP=$ac_cv_path_FGREP
1657 if test -n "$FGREP"; then
1658 echo "$as_me:1658: result: $FGREP" >&5
1659 echo "${ECHO_T}$FGREP" >&6
1661 echo "$as_me:1661: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1665 test -n "$FGREP" && break
1667 test -n "$FGREP" || FGREP=": "
1669 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1669: error: cannot find workable fgrep" >&5
1670 echo "$as_me: error: cannot find workable fgrep" >&2;}
1671 { (exit 1); exit 1; }; }
1674 echo "$as_me:1674: result: $ac_cv_path_FGREP" >&5
1675 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1676 FGREP="$ac_cv_path_FGREP"
1678 echo "$as_me:1678: checking for prefix" >&5
1679 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1680 if test "x$prefix" = "xNONE" ; then
1681 case "$cf_cv_system_name" in
1682 # non-vendor systems don't have a conflict
1683 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1686 (*) prefix=$ac_default_prefix
1690 echo "$as_me:1690: result: $prefix" >&5
1691 echo "${ECHO_T}$prefix" >&6
1693 if test "x$prefix" = "xNONE" ; then
1694 echo "$as_me:1694: checking for default include-directory" >&5
1695 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1696 test -n "$verbose" && echo 1>&6
1699 "$includedir/ncurses" \
1701 "$prefix/include/ncurses" \
1702 /usr/local/include \
1703 /usr/local/include/ncurses \
1705 /usr/include/ncurses
1707 cf_dir=`eval echo "$cf_symbol"`
1708 if test -f "$cf_dir/curses.h" ; then
1709 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1710 includedir="$cf_symbol"
1711 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1715 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1717 echo "$as_me:1717: result: $includedir" >&5
1718 echo "${ECHO_T}$includedir" >&6
1721 ### Defaults for ncurses ABI
1723 case x$cf_cv_abi_version in
1725 cf_dft_ext_colors=yes
1726 cf_dft_ext_const=yes
1727 cf_dft_ext_mouse=yes
1728 cf_dft_ext_putwin=yes
1729 cf_dft_ext_spfuncs=yes
1730 cf_dft_filter_syms=yes
1731 cf_dft_chtype=uint32_t
1732 cf_dft_mmask_t=uint32_t
1734 cf_dft_tparm_arg=intptr_t
1735 cf_dft_with_lp64=yes
1738 cf_dft_ext_colors=no
1741 cf_dft_ext_putwin=no
1742 cf_dft_ext_spfuncs=no
1743 cf_dft_filter_syms=no
1747 cf_dft_tparm_arg=long
1752 ### Checks for programs.
1754 # Check whether --with-ada or --without-ada was given.
1755 if test "${with_ada+set}" = set; then
1757 cf_with_ada=$withval
1762 if test "x$cf_with_ada" = xyes
1764 cf_prog_cc="gnatgcc gcc cc"
1770 ac_cpp='$CPP $CPPFLAGS'
1771 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1772 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1774 ac_main_return="return"
1775 if test -n "$ac_tool_prefix"; then
1776 for ac_prog in $cf_prog_cc
1778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1780 echo "$as_me:1780: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 if test -n "$CC"; then
1786 ac_cv_prog_CC="$CC" # Let the user override the test.
1788 ac_save_IFS=$IFS; IFS=$ac_path_separator
1790 for ac_dir in $ac_dummy; do
1792 test -z "$ac_dir" && ac_dir=.
1793 $as_executable_p "$ac_dir/$ac_word" || continue
1794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1795 echo "$as_me:1795: found $ac_dir/$ac_word" >&5
1802 if test -n "$CC"; then
1803 echo "$as_me:1803: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1806 echo "$as_me:1806: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$CC" && break
1813 if test -z "$CC"; then
1815 for ac_prog in $cf_prog_cc
1817 # Extract the first word of "$ac_prog", so it can be a program name with args.
1818 set dummy $ac_prog; ac_word=$2
1819 echo "$as_me:1819: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$ac_ct_CC"; then
1825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1827 ac_save_IFS=$IFS; IFS=$ac_path_separator
1829 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 $as_executable_p "$ac_dir/$ac_word" || continue
1833 ac_cv_prog_ac_ct_CC="$ac_prog"
1834 echo "$as_me:1834: found $ac_dir/$ac_word" >&5
1840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841 if test -n "$ac_ct_CC"; then
1842 echo "$as_me:1842: result: $ac_ct_CC" >&5
1843 echo "${ECHO_T}$ac_ct_CC" >&6
1845 echo "$as_me:1845: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1849 test -n "$ac_ct_CC" && break
1855 test -z "$CC" && { { echo "$as_me:1855: error: no acceptable cc found in \$PATH" >&5
1856 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1857 { (exit 1); exit 1; }; }
1859 # Provide some information about the compiler.
1860 echo "$as_me:1860:" \
1861 "checking for C compiler version" >&5
1862 ac_compiler=`set X $ac_compile; echo "$2"`
1863 { (eval echo "$as_me:1863: \"$ac_compiler --version </dev/null >&5\"") >&5
1864 (eval $ac_compiler --version </dev/null >&5) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit "$ac_status"); }
1868 { (eval echo "$as_me:1868: \"$ac_compiler -v </dev/null >&5\"") >&5
1869 (eval $ac_compiler -v </dev/null >&5) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit "$ac_status"); }
1873 { (eval echo "$as_me:1873: \"$ac_compiler -V </dev/null >&5\"") >&5
1874 (eval $ac_compiler -V </dev/null >&5) 2>&5
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit "$ac_status"); }
1879 cat >"conftest.$ac_ext" <<_ACEOF
1880 #line 1880 "configure"
1881 #include "confdefs.h"
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1896 echo "$as_me:1896: checking for C compiler default output" >&5
1897 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1899 if { (eval echo "$as_me:1899: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit "$ac_status"); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1908 ls a.out conftest 2>/dev/null;
1909 ls a.* conftest.* 2>/dev/null`; do
1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1912 a.out ) # We found the default executable, but exeext='' is most
1915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1923 echo "$as_me: failed program was:" >&5
1924 cat "conftest.$ac_ext" >&5
1925 { { echo "$as_me:1925: error: C compiler cannot create executables" >&5
1926 echo "$as_me: error: C compiler cannot create executables" >&2;}
1927 { (exit 77); exit 77; }; }
1930 ac_exeext=$ac_cv_exeext
1931 echo "$as_me:1931: result: $ac_file" >&5
1932 echo "${ECHO_T}$ac_file" >&6
1934 # Check the compiler produces executables we can run. If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:1936: checking whether the C compiler works" >&5
1937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939 # If not cross compiling, check that we can run a simple program.
1940 if test "$cross_compiling" != yes; then
1941 if { ac_try='./$ac_file'
1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit "$ac_status"); }; }; then
1949 if test "$cross_compiling" = maybe; then
1952 { { echo "$as_me:1952: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'." >&2;}
1956 { (exit 1); exit 1; }; }
1960 echo "$as_me:1960: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1963 rm -f a.out a.exe "conftest$ac_cv_exeext"
1964 ac_clean_files=$ac_clean_files_save
1965 # Check the compiler produces executables we can run. If not, either
1966 # the compiler is broken, or we cross compile.
1967 echo "$as_me:1967: checking whether we are cross compiling" >&5
1968 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1969 echo "$as_me:1969: result: $cross_compiling" >&5
1970 echo "${ECHO_T}$cross_compiling" >&6
1972 echo "$as_me:1972: checking for executable suffix" >&5
1973 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1974 if { (eval echo "$as_me:1974: \"$ac_link\"") >&5
1975 (eval $ac_link) 2>&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit "$ac_status"); }; then
1979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1981 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:1993: error: cannot compute EXEEXT: cannot compile and link" >&5
1994 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f "conftest$ac_cv_exeext"
1999 echo "$as_me:1999: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f "conftest.$ac_ext"
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:2005: checking for object suffix" >&5
2006 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >"conftest.$ac_ext" <<_ACEOF
2011 #line 2011 "configure"
2012 #include "confdefs.h"
2022 rm -f conftest.o conftest.obj
2023 if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:2026: \$? = $ac_status" >&5
2027 (exit "$ac_status"); }; then
2028 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2030 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036 echo "$as_me: failed program was:" >&5
2037 cat "conftest.$ac_ext" >&5
2038 { { echo "$as_me:2038: error: cannot compute OBJEXT: cannot compile" >&5
2039 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2040 { (exit 1); exit 1; }; }
2043 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2045 echo "$as_me:2045: result: $ac_cv_objext" >&5
2046 echo "${ECHO_T}$ac_cv_objext" >&6
2047 OBJEXT=$ac_cv_objext
2049 echo "$as_me:2049: checking whether we are using the GNU C compiler" >&5
2050 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2051 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >"conftest.$ac_ext" <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2069 rm -f "conftest.$ac_objext"
2070 if { (eval echo "$as_me:2070: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit "$ac_status"); } &&
2075 { ac_try='test -s "conftest.$ac_objext"'
2076 { (eval echo "$as_me:2076: \"$ac_try\"") >&5
2079 echo "$as_me:2079: \$? = $ac_status" >&5
2080 (exit "$ac_status"); }; }; then
2083 echo "$as_me: failed program was:" >&5
2084 cat "conftest.$ac_ext" >&5
2087 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2091 echo "$as_me:2091: result: $ac_cv_c_compiler_gnu" >&5
2092 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2093 GCC=`test $ac_compiler_gnu = yes && echo yes`
2094 ac_test_CFLAGS=${CFLAGS+set}
2095 ac_save_CFLAGS=$CFLAGS
2097 echo "$as_me:2097: checking whether $CC accepts -g" >&5
2098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_g+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 cat >"conftest.$ac_ext" <<_ACEOF
2103 #line 2103 "configure"
2104 #include "confdefs.h"
2114 rm -f "conftest.$ac_objext"
2115 if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit "$ac_status"); } &&
2120 { ac_try='test -s "conftest.$ac_objext"'
2121 { (eval echo "$as_me:2121: \"$ac_try\"") >&5
2124 echo "$as_me:2124: \$? = $ac_status" >&5
2125 (exit "$ac_status"); }; }; then
2128 echo "$as_me: failed program was:" >&5
2129 cat "conftest.$ac_ext" >&5
2132 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2134 echo "$as_me:2134: result: $ac_cv_prog_cc_g" >&5
2135 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2136 if test "$ac_test_CFLAGS" = set; then
2137 CFLAGS=$ac_save_CFLAGS
2138 elif test $ac_cv_prog_cc_g = yes; then
2139 if test "$GCC" = yes; then
2145 if test "$GCC" = yes; then
2151 # Some people use a C++ compiler to compile C. Since we use `exit',
2152 # in C++ we need to declare it. In case someone uses the same compiler
2153 # for both compiling C and C++ we need to have the C++ compiler decide
2154 # the declaration of exit, since it's the most demanding environment.
2155 cat >"conftest.$ac_ext" <<_ACEOF
2160 rm -f "conftest.$ac_objext"
2161 if { (eval echo "$as_me:2161: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2164 echo "$as_me:2164: \$? = $ac_status" >&5
2165 (exit "$ac_status"); } &&
2166 { ac_try='test -s "conftest.$ac_objext"'
2167 { (eval echo "$as_me:2167: \"$ac_try\"") >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit "$ac_status"); }; }; then
2172 for ac_declaration in \
2174 '#include <stdlib.h>' \
2175 'extern "C" void std::exit (int) throw (); using std::exit;' \
2176 'extern "C" void std::exit (int); using std::exit;' \
2177 'extern "C" void exit (int) throw ();' \
2178 'extern "C" void exit (int);' \
2181 cat >"conftest.$ac_ext" <<_ACEOF
2182 #line 2182 "configure"
2183 #include "confdefs.h"
2194 rm -f "conftest.$ac_objext"
2195 if { (eval echo "$as_me:2195: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>&5
2198 echo "$as_me:2198: \$? = $ac_status" >&5
2199 (exit "$ac_status"); } &&
2200 { ac_try='test -s "conftest.$ac_objext"'
2201 { (eval echo "$as_me:2201: \"$ac_try\"") >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit "$ac_status"); }; }; then
2208 echo "$as_me: failed program was:" >&5
2209 cat "conftest.$ac_ext" >&5
2212 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2213 cat >"conftest.$ac_ext" <<_ACEOF
2214 #line 2214 "configure"
2215 #include "confdefs.h"
2225 rm -f "conftest.$ac_objext"
2226 if { (eval echo "$as_me:2226: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2229 echo "$as_me:2229: \$? = $ac_status" >&5
2230 (exit "$ac_status"); } &&
2231 { ac_try='test -s "conftest.$ac_objext"'
2232 { (eval echo "$as_me:2232: \"$ac_try\"") >&5
2235 echo "$as_me:2235: \$? = $ac_status" >&5
2236 (exit "$ac_status"); }; }; then
2239 echo "$as_me: failed program was:" >&5
2240 cat "conftest.$ac_ext" >&5
2242 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2245 if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo "$ac_declaration" >>confdefs.h
2248 echo '#endif' >>confdefs.h
2252 echo "$as_me: failed program was:" >&5
2253 cat "conftest.$ac_ext" >&5
2255 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2259 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261 ac_main_return="return"
2264 if test "$GCC" = yes ; then
2265 echo "$as_me:2265: checking version of $CC" >&5
2266 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2267 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2268 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2269 echo "$as_me:2269: result: $GCC_VERSION" >&5
2270 echo "${ECHO_T}$GCC_VERSION" >&6
2275 if test "$GCC" = yes ; then
2278 echo "$as_me:2278: checking if this is really Intel C compiler" >&5
2279 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2280 cf_save_CFLAGS="$CFLAGS"
2281 CFLAGS="$CFLAGS -no-gcc"
2282 cat >"conftest.$ac_ext" <<_ACEOF
2283 #line 2283 "configure"
2284 #include "confdefs.h"
2290 #ifdef __INTEL_COMPILER
2299 rm -f "conftest.$ac_objext"
2300 if { (eval echo "$as_me:2300: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2303 echo "$as_me:2303: \$? = $ac_status" >&5
2304 (exit "$ac_status"); } &&
2305 { ac_try='test -s "conftest.$ac_objext"'
2306 { (eval echo "$as_me:2306: \"$ac_try\"") >&5
2309 echo "$as_me:2309: \$? = $ac_status" >&5
2310 (exit "$ac_status"); }; }; then
2312 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2315 echo "$as_me: failed program was:" >&5
2316 cat "conftest.$ac_ext" >&5
2318 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2319 CFLAGS="$cf_save_CFLAGS"
2320 echo "$as_me:2320: result: $INTEL_COMPILER" >&5
2321 echo "${ECHO_T}$INTEL_COMPILER" >&6
2328 if test "$GCC" = yes ; then
2329 echo "$as_me:2329: checking if this is really Clang C compiler" >&5
2330 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2331 cf_save_CFLAGS="$CFLAGS"
2332 cat >"conftest.$ac_ext" <<_ACEOF
2333 #line 2333 "configure"
2334 #include "confdefs.h"
2349 rm -f "conftest.$ac_objext"
2350 if { (eval echo "$as_me:2350: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:2353: \$? = $ac_status" >&5
2354 (exit "$ac_status"); } &&
2355 { ac_try='test -s "conftest.$ac_objext"'
2356 { (eval echo "$as_me:2356: \"$ac_try\"") >&5
2359 echo "$as_me:2359: \$? = $ac_status" >&5
2360 (exit "$ac_status"); }; }; then
2364 echo "$as_me: failed program was:" >&5
2365 cat "conftest.$ac_ext" >&5
2367 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2368 CFLAGS="$cf_save_CFLAGS"
2369 echo "$as_me:2369: result: $CLANG_COMPILER" >&5
2370 echo "${ECHO_T}$CLANG_COMPILER" >&6
2375 if test "x$CLANG_COMPILER" = "xyes" ; then
2377 (c[1-9][0-9]|*/c[1-9][0-9])
2378 { echo "$as_me:2378: WARNING: replacing broken compiler alias $CC" >&5
2379 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2380 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2385 echo "$as_me:2385: checking version of $CC" >&5
2386 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2387 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.].*//'`"
2388 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2389 echo "$as_me:2389: result: $CLANG_VERSION" >&5
2390 echo "${ECHO_T}$CLANG_VERSION" >&6
2392 for cf_clang_opt in \
2393 -Qunused-arguments \
2394 -Wno-error=implicit-function-declaration
2396 echo "$as_me:2396: checking if option $cf_clang_opt works" >&5
2397 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2398 cf_save_CFLAGS="$CFLAGS"
2399 CFLAGS="$CFLAGS $cf_clang_opt"
2400 cat >"conftest.$ac_ext" <<_ACEOF
2401 #line 2401 "configure"
2402 #include "confdefs.h"
2409 printf("hello!\\n");
2414 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2415 if { (eval echo "$as_me:2415: \"$ac_link\"") >&5
2416 (eval $ac_link) 2>&5
2418 echo "$as_me:2418: \$? = $ac_status" >&5
2419 (exit "$ac_status"); } &&
2420 { ac_try='test -s "conftest$ac_exeext"'
2421 { (eval echo "$as_me:2421: \"$ac_try\"") >&5
2424 echo "$as_me:2424: \$? = $ac_status" >&5
2425 (exit "$ac_status"); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 cat "conftest.$ac_ext" >&5
2434 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2435 echo "$as_me:2435: result: $cf_clang_optok" >&5
2436 echo "${ECHO_T}$cf_clang_optok" >&6
2437 CFLAGS="$cf_save_CFLAGS"
2438 if test "$cf_clang_optok" = yes; then
2439 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2441 echo "${as_me:-configure}:2441: testing adding option $cf_clang_opt ..." 1>&5
2443 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2444 CFLAGS="${CFLAGS}$cf_clang_opt"
2450 echo "$as_me:2450: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 ac_cv_prog_cc_stdc=no
2457 cat >"conftest.$ac_ext" <<_ACEOF
2458 #line 2458 "configure"
2459 #include "confdefs.h"
2462 #include <sys/types.h>
2463 #include <sys/stat.h>
2464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2465 struct buf { int x; };
2466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2467 static char *e (p, i)
2473 static char *f (char * (*g) (char **, int), char **p, ...)
2478 s = g (p, va_arg (v,int));
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f "conftest.$ac_objext"
2507 if { (eval echo "$as_me:2507: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2510 echo "$as_me:2510: \$? = $ac_status" >&5
2511 (exit "$ac_status"); } &&
2512 { ac_try='test -s "conftest.$ac_objext"'
2513 { (eval echo "$as_me:2513: \"$ac_try\"") >&5
2516 echo "$as_me:2516: \$? = $ac_status" >&5
2517 (exit "$ac_status"); }; }; then
2518 ac_cv_prog_cc_stdc=$ac_arg
2521 echo "$as_me: failed program was:" >&5
2522 cat "conftest.$ac_ext" >&5
2524 rm -f "conftest.$ac_objext"
2526 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2531 case "x$ac_cv_prog_cc_stdc" in
2533 echo "$as_me:2533: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2536 echo "$as_me:2536: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 # This should have been defined by AC_PROG_CC
2544 echo "$as_me:2544: checking \$CFLAGS variable" >&5
2545 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2548 echo "$as_me:2548: result: broken" >&5
2549 echo "${ECHO_T}broken" >&6
2550 { echo "$as_me:2550: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2551 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2554 for cf_arg in $cf_flags
2560 cf_new_extra_cppflags=
2562 for cf_add_cflags in $cf_arg
2564 case "$cf_fix_cppflags" in
2566 case "$cf_add_cflags" in
2567 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2568 case "$cf_add_cflags" in
2570 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2572 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2573 && test -z "${cf_tst_cflags}" \
2574 && cf_fix_cppflags=yes
2576 if test "$cf_fix_cppflags" = yes ; then
2578 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2579 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2582 elif test "${cf_tst_cflags}" = "\"'" ; then
2584 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2585 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2595 case "$cf_add_cflags" in
2597 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2599 CPPFLAGS=`echo "$CPPFLAGS" | \
2600 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2601 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2606 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2607 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2614 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2615 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2625 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2627 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2628 && test -z "${cf_tst_cflags}" \
2629 && cf_fix_cppflags=no
2634 if test -n "$cf_new_cflags" ; then
2636 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2637 CFLAGS="${CFLAGS}$cf_new_cflags"
2641 if test -n "$cf_new_cppflags" ; then
2643 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2644 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2648 if test -n "$cf_new_extra_cppflags" ; then
2650 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2651 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2658 echo "$as_me:2658: result: ok" >&5
2659 echo "${ECHO_T}ok" >&6
2663 echo "$as_me:2663: checking \$CC variable" >&5
2664 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2667 echo "$as_me:2667: result: broken" >&5
2668 echo "${ECHO_T}broken" >&6
2669 { echo "$as_me:2669: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2670 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2672 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2673 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2675 for cf_arg in $cf_flags
2683 cf_new_extra_cppflags=
2685 for cf_add_cflags in $cf_arg
2687 case "$cf_fix_cppflags" in
2689 case "$cf_add_cflags" in
2690 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2691 case "$cf_add_cflags" in
2693 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2695 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2696 && test -z "${cf_tst_cflags}" \
2697 && cf_fix_cppflags=yes
2699 if test "$cf_fix_cppflags" = yes ; then
2701 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2702 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2705 elif test "${cf_tst_cflags}" = "\"'" ; then
2707 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2708 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2718 case "$cf_add_cflags" in
2720 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2722 CPPFLAGS=`echo "$CPPFLAGS" | \
2723 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2724 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2729 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2730 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2737 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2738 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2745 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2746 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2748 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2750 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2751 && test -z "${cf_tst_cflags}" \
2752 && cf_fix_cppflags=no
2757 if test -n "$cf_new_cflags" ; then
2759 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2760 CFLAGS="${CFLAGS}$cf_new_cflags"
2764 if test -n "$cf_new_cppflags" ; then
2766 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2767 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2771 if test -n "$cf_new_extra_cppflags" ; then
2773 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2774 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2784 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2786 echo "${as_me:-configure}:2786: testing resulting CC: '$CC' ..." 1>&5
2788 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2790 echo "${as_me:-configure}:2790: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2792 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2794 echo "${as_me:-configure}:2794: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2798 echo "$as_me:2798: result: ok" >&5
2799 echo "${ECHO_T}ok" >&6
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2806 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_main_return="return"
2809 echo "$as_me:2809: checking how to run the C preprocessor" >&5
2810 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2811 # On Suns, sometimes $CPP names a directory.
2812 if test -n "$CPP" && test -d "$CPP"; then
2815 if test -z "$CPP"; then
2816 if test "${ac_cv_prog_CPP+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 # Double quotes because CPP needs to be expanded
2820 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2823 for ac_c_preproc_warn_flag in '' yes
2825 # Use a header file that comes with gcc, so configuring glibc
2826 # with a fresh cross-compiler works.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >"conftest.$ac_ext" <<_ACEOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2835 if { (eval echo "$as_me:2835: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2836 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2838 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit "$ac_status"); } >/dev/null; then
2843 if test -s conftest.err; then
2844 ac_cpp_err=$ac_c_preproc_warn_flag
2851 if test -z "$ac_cpp_err"; then
2854 echo "$as_me: failed program was:" >&5
2855 cat "conftest.$ac_ext" >&5
2856 # Broken: fails on valid input.
2859 rm -f conftest.err "conftest.$ac_ext"
2861 # OK, works on sane cases. Now check whether non-existent headers
2862 # can be detected and how.
2863 cat >"conftest.$ac_ext" <<_ACEOF
2864 #line 2864 "configure"
2865 #include "confdefs.h"
2866 #include <ac_nonexistent.h>
2868 if { (eval echo "$as_me:2868: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2869 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2871 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit "$ac_status"); } >/dev/null; then
2876 if test -s conftest.err; then
2877 ac_cpp_err=$ac_c_preproc_warn_flag
2884 if test -z "$ac_cpp_err"; then
2885 # Broken: success on invalid input.
2888 echo "$as_me: failed program was:" >&5
2889 cat "conftest.$ac_ext" >&5
2890 # Passes both tests.
2894 rm -f conftest.err "conftest.$ac_ext"
2897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2898 rm -f conftest.err "conftest.$ac_ext"
2899 if $ac_preproc_ok; then
2911 echo "$as_me:2911: result: $CPP" >&5
2912 echo "${ECHO_T}$CPP" >&6
2914 for ac_c_preproc_warn_flag in '' yes
2916 # Use a header file that comes with gcc, so configuring glibc
2917 # with a fresh cross-compiler works.
2918 # On the NeXT, cc -E runs the code through the compiler's parser,
2919 # not just through cpp. "Syntax error" is here to catch this case.
2920 cat >"conftest.$ac_ext" <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2926 if { (eval echo "$as_me:2926: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2927 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2929 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit "$ac_status"); } >/dev/null; then
2934 if test -s conftest.err; then
2935 ac_cpp_err=$ac_c_preproc_warn_flag
2942 if test -z "$ac_cpp_err"; then
2945 echo "$as_me: failed program was:" >&5
2946 cat "conftest.$ac_ext" >&5
2947 # Broken: fails on valid input.
2950 rm -f conftest.err "conftest.$ac_ext"
2952 # OK, works on sane cases. Now check whether non-existent headers
2953 # can be detected and how.
2954 cat >"conftest.$ac_ext" <<_ACEOF
2955 #line 2955 "configure"
2956 #include "confdefs.h"
2957 #include <ac_nonexistent.h>
2959 if { (eval echo "$as_me:2959: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2960 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2962 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit "$ac_status"); } >/dev/null; then
2967 if test -s conftest.err; then
2968 ac_cpp_err=$ac_c_preproc_warn_flag
2975 if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2979 echo "$as_me: failed program was:" >&5
2980 cat "conftest.$ac_ext" >&5
2981 # Passes both tests.
2985 rm -f conftest.err "conftest.$ac_ext"
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err "conftest.$ac_ext"
2990 if $ac_preproc_ok; then
2993 { { echo "$as_me:2993: error: C preprocessor \"$CPP\" fails sanity check" >&5
2994 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2995 { (exit 1); exit 1; }; }
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3001 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 ac_main_return="return"
3005 if test $ac_cv_c_compiler_gnu = yes; then
3006 echo "$as_me:3006: checking whether $CC needs -traditional" >&5
3007 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3008 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 ac_pattern="Autoconf.*'x'"
3012 cat >"conftest.$ac_ext" <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3016 int Autoconf = TIOCGETP;
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020 ac_cv_prog_gcc_traditional=yes
3022 ac_cv_prog_gcc_traditional=no
3026 if test $ac_cv_prog_gcc_traditional = no; then
3027 cat >"conftest.$ac_ext" <<_ACEOF
3028 #line 3028 "configure"
3029 #include "confdefs.h"
3031 int Autoconf = TCGETA;
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3035 ac_cv_prog_gcc_traditional=yes
3041 echo "$as_me:3041: result: $ac_cv_prog_gcc_traditional" >&5
3042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3043 if test $ac_cv_prog_gcc_traditional = yes; then
3044 CC="$CC -traditional"
3048 echo "$as_me:3048: checking whether $CC understands -c and -o together" >&5
3049 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3050 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 cat > conftest.$ac_ext <<CF_EOF
3057 ${cf_cv_main_return:-return}(0);
3060 # We do the test twice because some compilers refuse to overwrite an
3061 # existing .o file with -o, though they will create one.
3062 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3063 if { (eval echo "$as_me:3063: \"$ac_try\"") >&5
3066 echo "$as_me:3066: \$? = $ac_status" >&5
3067 (exit "$ac_status"); } &&
3068 test -f conftest2.$ac_objext && { (eval echo "$as_me:3068: \"$ac_try\"") >&5
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit "$ac_status"); };
3074 eval cf_cv_prog_CC_c_o=yes
3076 eval cf_cv_prog_CC_c_o=no
3081 if test "$cf_cv_prog_CC_c_o" = yes; then
3082 echo "$as_me:3082: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3085 echo "$as_me:3085: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3089 if test "$cross_compiling" = yes ; then
3092 case "$cf_cv_system_name" in
3093 (dragonfly*|mirbsd*|freebsd*)
3094 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3096 (*) LDPATH=$PATH:/sbin:/usr/sbin
3097 # Extract the first word of "ldconfig", so it can be a program name with args.
3098 set dummy ldconfig; ac_word=$2
3099 echo "$as_me:3099: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3109 ac_save_IFS=$IFS; IFS=$ac_path_separator
3111 for ac_dir in $ac_dummy; do
3113 test -z "$ac_dir" && ac_dir=.
3114 if $as_executable_p "$ac_dir/$ac_word"; then
3115 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3116 echo "$as_me:3116: found $ac_dir/$ac_word" >&5
3124 LDCONFIG=$ac_cv_path_LDCONFIG
3126 if test -n "$LDCONFIG"; then
3127 echo "$as_me:3127: result: $LDCONFIG" >&5
3128 echo "${ECHO_T}$LDCONFIG" >&6
3130 echo "$as_me:3130: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3138 echo "$as_me:3138: checking if you want to ensure bool is consistent with C++" >&5
3139 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3141 # Check whether --with-cxx or --without-cxx was given.
3142 if test "${with_cxx+set}" = set; then
3144 cf_with_cxx=$withval
3148 echo "$as_me:3148: result: $cf_with_cxx" >&5
3149 echo "${ECHO_T}$cf_with_cxx" >&6
3150 if test "X$cf_with_cxx" = Xno ; then
3154 # with autoconf 2.13, we can change the error to a warning:
3156 ac_cpp='$CXXCPP $CPPFLAGS'
3157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3158 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3160 ac_main_return="return"
3161 if test -n "$ac_tool_prefix"; then
3162 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 echo "$as_me:3166: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_CXX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$CXX"; then
3172 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3174 ac_save_IFS=$IFS; IFS=$ac_path_separator
3176 for ac_dir in $ac_dummy; do
3178 test -z "$ac_dir" && ac_dir=.
3179 $as_executable_p "$ac_dir/$ac_word" || continue
3180 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3181 echo "$as_me:3181: found $ac_dir/$ac_word" >&5
3188 if test -n "$CXX"; then
3189 echo "$as_me:3189: result: $CXX" >&5
3190 echo "${ECHO_T}$CXX" >&6
3192 echo "$as_me:3192: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3196 test -n "$CXX" && break
3199 if test -z "$CXX"; then
3201 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$ac_ct_CXX"; then
3211 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_ac_ct_CXX="$ac_prog"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3226 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3227 if test -n "$ac_ct_CXX"; then
3228 echo "$as_me:3228: result: $ac_ct_CXX" >&5
3229 echo "${ECHO_T}$ac_ct_CXX" >&6
3231 echo "$as_me:3231: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 test -n "$ac_ct_CXX" && break
3237 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3242 # Provide some information about the compiler.
3243 echo "$as_me:3243:" \
3244 "checking for C++ compiler version" >&5
3245 ac_compiler=`set X $ac_compile; echo $2`
3246 { (eval echo "$as_me:3246: \"$ac_compiler --version </dev/null >&5\"") >&5
3247 (eval $ac_compiler --version </dev/null >&5) 2>&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit "$ac_status"); }
3251 { (eval echo "$as_me:3251: \"$ac_compiler -v </dev/null >&5\"") >&5
3252 (eval $ac_compiler -v </dev/null >&5) 2>&5
3254 echo "$as_me:3254: \$? = $ac_status" >&5
3255 (exit "$ac_status"); }
3256 { (eval echo "$as_me:3256: \"$ac_compiler -V </dev/null >&5\"") >&5
3257 (eval $ac_compiler -V </dev/null >&5) 2>&5
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit "$ac_status"); }
3262 echo "$as_me:3262: checking whether we are using the GNU C++ compiler" >&5
3263 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3264 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 cat >"conftest.$ac_ext" <<_ACEOF
3268 #line 3268 "configure"
3269 #include "confdefs.h"
3282 rm -f "conftest.$ac_objext"
3283 if { (eval echo "$as_me:3283: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>&5
3286 echo "$as_me:3286: \$? = $ac_status" >&5
3287 (exit "$ac_status"); } &&
3288 { ac_try='test -s "conftest.$ac_objext"'
3289 { (eval echo "$as_me:3289: \"$ac_try\"") >&5
3292 echo "$as_me:3292: \$? = $ac_status" >&5
3293 (exit "$ac_status"); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 cat "conftest.$ac_ext" >&5
3300 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3301 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3304 echo "$as_me:3304: result: $ac_cv_cxx_compiler_gnu" >&5
3305 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3306 GXX=`test $ac_compiler_gnu = yes && echo yes`
3307 ac_test_CXXFLAGS=${CXXFLAGS+set}
3308 ac_save_CXXFLAGS=$CXXFLAGS
3310 echo "$as_me:3310: checking whether $CXX accepts -g" >&5
3311 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3312 if test "${ac_cv_prog_cxx_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 cat >"conftest.$ac_ext" <<_ACEOF
3316 #line 3316 "configure"
3317 #include "confdefs.h"
3327 rm -f "conftest.$ac_objext"
3328 if { (eval echo "$as_me:3328: \"$ac_compile\"") >&5
3329 (eval $ac_compile) 2>&5
3331 echo "$as_me:3331: \$? = $ac_status" >&5
3332 (exit "$ac_status"); } &&
3333 { ac_try='test -s "conftest.$ac_objext"'
3334 { (eval echo "$as_me:3334: \"$ac_try\"") >&5
3337 echo "$as_me:3337: \$? = $ac_status" >&5
3338 (exit "$ac_status"); }; }; then
3339 ac_cv_prog_cxx_g=yes
3341 echo "$as_me: failed program was:" >&5
3342 cat "conftest.$ac_ext" >&5
3345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3347 echo "$as_me:3347: result: $ac_cv_prog_cxx_g" >&5
3348 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3349 if test "$ac_test_CXXFLAGS" = set; then
3350 CXXFLAGS=$ac_save_CXXFLAGS
3351 elif test $ac_cv_prog_cxx_g = yes; then
3352 if test "$GXX" = yes; then
3358 if test "$GXX" = yes; then
3364 for ac_declaration in \
3366 '#include <stdlib.h>' \
3367 'extern "C" void std::exit (int) throw (); using std::exit;' \
3368 'extern "C" void std::exit (int); using std::exit;' \
3369 'extern "C" void exit (int) throw ();' \
3370 'extern "C" void exit (int);' \
3373 cat >"conftest.$ac_ext" <<_ACEOF
3374 #line 3374 "configure"
3375 #include "confdefs.h"
3386 rm -f "conftest.$ac_objext"
3387 if { (eval echo "$as_me:3387: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:3390: \$? = $ac_status" >&5
3391 (exit "$ac_status"); } &&
3392 { ac_try='test -s "conftest.$ac_objext"'
3393 { (eval echo "$as_me:3393: \"$ac_try\"") >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit "$ac_status"); }; }; then
3400 echo "$as_me: failed program was:" >&5
3401 cat "conftest.$ac_ext" >&5
3404 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3405 cat >"conftest.$ac_ext" <<_ACEOF
3406 #line 3406 "configure"
3407 #include "confdefs.h"
3417 rm -f "conftest.$ac_objext"
3418 if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit "$ac_status"); } &&
3423 { ac_try='test -s "conftest.$ac_objext"'
3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5
3427 echo "$as_me:3427: \$? = $ac_status" >&5
3428 (exit "$ac_status"); }; }; then
3431 echo "$as_me: failed program was:" >&5
3432 cat "conftest.$ac_ext" >&5
3434 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3437 if test -n "$ac_declaration"; then
3438 echo '#ifdef __cplusplus' >>confdefs.h
3439 echo "$ac_declaration" >>confdefs.h
3440 echo '#endif' >>confdefs.h
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3446 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 ac_main_return="return"
3451 ac_cpp='$CXXCPP $CPPFLAGS'
3452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3453 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3455 ac_main_return="return"
3457 if test "x$cf_with_cxx" != xno
3459 # Several of the C++ configurations do not work, particularly when
3460 # cross-compiling (20140913 -TD)
3461 echo "$as_me:3461: checking if $CXX works" >&5
3462 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3464 save_CPPFLAGS="$CPPFLAGS"
3465 eval cf_includedir=${includedir}
3466 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3468 cat >"conftest.$ac_ext" <<_ACEOF
3469 #line 3469 "configure"
3470 #include "confdefs.h"
3479 printf("Hello world!\n")
3485 rm -f "conftest.$ac_objext"
3486 if { (eval echo "$as_me:3486: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>&5
3489 echo "$as_me:3489: \$? = $ac_status" >&5
3490 (exit "$ac_status"); } &&
3491 { ac_try='test -s "conftest.$ac_objext"'
3492 { (eval echo "$as_me:3492: \"$ac_try\"") >&5
3495 echo "$as_me:3495: \$? = $ac_status" >&5
3496 (exit "$ac_status"); }; }; then
3499 echo "$as_me: failed program was:" >&5
3500 cat "conftest.$ac_ext" >&5
3503 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3504 CPPFLAGS="$save_CPPFLAGS"
3506 echo "$as_me:3506: result: $cf_cxx_works" >&5
3507 echo "${ECHO_T}$cf_cxx_works" >&6
3508 if test "x$cf_cxx_works" = xno
3510 { echo "$as_me:3510: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3511 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3512 cf_with_cxx=no; CXX=""; GXX="";
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3518 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 ac_main_return="return"
3522 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3523 if test "$CXX" = "g++" ; then
3524 # Extract the first word of "g++", so it can be a program name with args.
3525 set dummy g++; ac_word=$2
3526 echo "$as_me:3526: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_path_CXX+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3536 ac_save_IFS=$IFS; IFS=$ac_path_separator
3538 for ac_dir in $ac_dummy; do
3540 test -z "$ac_dir" && ac_dir=.
3541 if $as_executable_p "$ac_dir/$ac_word"; then
3542 ac_cv_path_CXX="$ac_dir/$ac_word"
3543 echo "$as_me:3543: found $ac_dir/$ac_word" >&5
3553 if test -n "$CXX"; then
3554 echo "$as_me:3554: result: $CXX" >&5
3555 echo "${ECHO_T}$CXX" >&6
3557 echo "$as_me:3557: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3564 { echo "$as_me:3564: WARNING: You don't have any C++ compiler, too bad" >&5
3565 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3566 cf_with_cxx=no; CXX=""; GXX="";
3572 if test "$GXX" = yes; then
3573 echo "$as_me:3573: checking version of ${CXX:-g++}" >&5
3574 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3575 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3576 if test -z "$GXX_VERSION"
3581 echo "$as_me:3581: result: $GXX_VERSION" >&5
3582 echo "${ECHO_T}$GXX_VERSION" >&6
3585 case "$GXX_VERSION" in
3589 { echo "$as_me:3589: WARNING: templates do not work" >&5
3590 echo "$as_me: WARNING: templates do not work" >&2;}
3594 echo "$as_me:3594: checking if you want to build C++ binding and demo" >&5
3595 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3597 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3598 if test "${with_cxx_binding+set}" = set; then
3599 withval="$with_cxx_binding"
3600 cf_with_cxx_binding=$withval
3602 cf_with_cxx_binding=$cf_with_cxx
3604 echo "$as_me:3604: result: $cf_with_cxx_binding" >&5
3605 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3607 echo "$as_me:3607: checking if you want to build with Ada" >&5
3608 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3609 echo "$as_me:3609: result: $cf_with_ada" >&5
3610 echo "${ECHO_T}$cf_with_ada" >&6
3612 echo "$as_me:3612: checking if you want to install terminal database" >&5
3613 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3615 # Check whether --enable-db-install or --disable-db-install was given.
3616 if test "${enable_db_install+set}" = set; then
3617 enableval="$enable_db_install"
3618 cf_with_db_install=$enableval
3620 cf_with_db_install=yes
3622 echo "$as_me:3622: result: $cf_with_db_install" >&5
3623 echo "${ECHO_T}$cf_with_db_install" >&6
3625 echo "$as_me:3625: checking if you want to install manpages" >&5
3626 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3628 # Check whether --with-manpages or --without-manpages was given.
3629 if test "${with_manpages+set}" = set; then
3630 withval="$with_manpages"
3631 cf_with_manpages=$withval
3633 cf_with_manpages=yes
3635 echo "$as_me:3635: result: $cf_with_manpages" >&5
3636 echo "${ECHO_T}$cf_with_manpages" >&6
3638 echo "$as_me:3638: checking if you want to build programs such as tic" >&5
3639 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3641 # Check whether --with-progs or --without-progs was given.
3642 if test "${with_progs+set}" = set; then
3643 withval="$with_progs"
3644 cf_with_progs=$withval
3648 echo "$as_me:3648: result: $cf_with_progs" >&5
3649 echo "${ECHO_T}$cf_with_progs" >&6
3651 if test -f "$srcdir/tack/tack.h" ; then
3652 if test "x$cross_compiling" = xyes ; then
3653 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3655 echo "${as_me:-configure}:3655: testing ignoring tack because we are cross-compiling ..." 1>&5
3659 echo "$as_me:3659: checking if you want to build the tack program" >&5
3660 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3662 # Check whether --with-tack or --without-tack was given.
3663 if test "${with_tack+set}" = set; then
3664 withval="$with_tack"
3665 cf_with_tack=$withval
3667 cf_with_tack=$cf_with_progs
3669 echo "$as_me:3669: result: $cf_with_tack" >&5
3670 echo "${ECHO_T}$cf_with_tack" >&6
3676 echo "$as_me:3676: checking if you want to build test-programs" >&5
3677 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3679 # Check whether --with-tests or --without-tests was given.
3680 if test "${with_tests+set}" = set; then
3681 withval="$with_tests"
3682 cf_with_tests=$withval
3686 echo "$as_me:3686: result: $cf_with_tests" >&5
3687 echo "${ECHO_T}$cf_with_tests" >&6
3689 echo "$as_me:3689: checking if you wish to install curses.h" >&5
3690 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3692 # Check whether --with-curses-h or --without-curses-h was given.
3693 if test "${with_curses_h+set}" = set; then
3694 withval="$with_curses_h"
3695 with_curses_h=$withval
3699 echo "$as_me:3699: result: $with_curses_h" >&5
3700 echo "${ECHO_T}$with_curses_h" >&6
3702 modules_to_build="ncurses"
3703 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3704 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3705 modules_to_build="$modules_to_build panel menu form"
3707 test "$program_prefix" != NONE &&
3708 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3709 # Use a double $ so make ignores it.
3710 test "$program_suffix" != NONE &&
3711 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3712 # Double any \ or $. echo might interpret backslashes.
3713 # By default was `s,x,x', remove it if useless.
3714 cat <<\_ACEOF >conftest.sed
3715 s/[\\$]/&&/g;s/;s,x,x,$//
3717 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3720 for ac_prog in mawk gawk nawk awk
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 echo "$as_me:3724: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_AWK+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$AWK"; then
3730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3732 ac_save_IFS=$IFS; IFS=$ac_path_separator
3734 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 $as_executable_p "$ac_dir/$ac_word" || continue
3738 ac_cv_prog_AWK="$ac_prog"
3739 echo "$as_me:3739: found $ac_dir/$ac_word" >&5
3746 if test -n "$AWK"; then
3747 echo "$as_me:3747: result: $AWK" >&5
3748 echo "${ECHO_T}$AWK" >&6
3750 echo "$as_me:3750: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$AWK" && break
3757 test -z "$AWK" && { { echo "$as_me:3757: error: No awk program found" >&5
3758 echo "$as_me: error: No awk program found" >&2;}
3759 { (exit 1); exit 1; }; }
3761 # Find a good install program. We prefer a C program (faster),
3762 # so one script is as good as another. But avoid the broken or
3763 # incompatible versions:
3764 # SysV /etc/install, /usr/sbin/install
3765 # SunOS /usr/etc/install
3766 # IRIX /sbin/install
3768 # AmigaOS /C/install, which installs bootblocks on floppy discs
3769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3772 # ./install, which can be erroneously created by make from ./install.sh.
3773 echo "$as_me:3773: checking for a BSD compatible install" >&5
3774 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3775 if test -z "$INSTALL"; then
3776 if test "${ac_cv_path_install+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 ac_save_IFS=$IFS; IFS=$ac_path_separator
3780 for ac_dir in $PATH; do
3782 # Account for people who put trailing slashes in PATH elements.
3784 / | ./ | .// | /cC/* \
3785 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3788 # OSF1 and SCO ODT 3.0 have their own names for install.
3789 # Don't use installbsd from OSF since it installs stuff as root
3791 for ac_prog in ginstall scoinst install; do
3792 if $as_executable_p "$ac_dir/$ac_prog"; then
3793 if test $ac_prog = install &&
3794 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3795 # AIX install. It has an incompatible calling convention.
3797 elif test $ac_prog = install &&
3798 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3799 # program-specific install script used by HP pwplus--don't use.
3802 ac_cv_path_install="$ac_dir/$ac_prog -c"
3812 if test "${ac_cv_path_install+set}" = set; then
3813 INSTALL=$ac_cv_path_install
3815 # As a last resort, use the slow shell script. We don't cache a
3816 # path for INSTALL within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the path is relative.
3819 INSTALL=$ac_install_sh
3822 echo "$as_me:3822: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3837 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3838 test -z "$cf_dir" && cf_dir=.
3839 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3843 for ac_prog in lint cppcheck splint
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 echo "$as_me:3847: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_LINT+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$LINT"; then
3853 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3855 ac_save_IFS=$IFS; IFS=$ac_path_separator
3857 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 $as_executable_p "$ac_dir/$ac_word" || continue
3861 ac_cv_prog_LINT="$ac_prog"
3862 echo "$as_me:3862: found $ac_dir/$ac_word" >&5
3868 LINT=$ac_cv_prog_LINT
3869 if test -n "$LINT"; then
3870 echo "$as_me:3870: result: $LINT" >&5
3871 echo "${ECHO_T}$LINT" >&6
3873 echo "$as_me:3873: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3877 test -n "$LINT" && break
3881 (xcppcheck|x*/cppcheck)
3882 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3886 echo "$as_me:3886: checking whether ln -s works" >&5
3887 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3889 if test "$LN_S" = "ln -s"; then
3890 echo "$as_me:3890: result: yes" >&5
3891 echo "${ECHO_T}yes" >&6
3893 echo "$as_me:3893: result: no, using $LN_S" >&5
3894 echo "${ECHO_T}no, using $LN_S" >&6
3897 echo "$as_me:3897: checking if $LN_S -f options work" >&5
3898 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3900 rm -f conf$$.src conf$$dst
3902 echo first >conf$$.src
3903 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3908 rm -f conf$$.dst conf$$src
3909 echo "$as_me:3909: result: $cf_prog_ln_sf" >&5
3910 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3912 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3914 echo "$as_me:3914: checking for long file names" >&5
3915 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3916 if test "${ac_cv_sys_long_file_names+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_sys_long_file_names=yes
3920 # Test for long file names in all the places we know might matter:
3921 # . the current directory, where building will happen
3922 # $prefix/lib where we will be installing things
3923 # $exec_prefix/lib likewise
3924 # eval it to expand exec_prefix.
3925 # $TMPDIR if set, where it might want to write temporary files
3926 # if $TMPDIR is not set:
3927 # /tmp where it might want to write temporary files
3930 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3933 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3935 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3936 test -d "$ac_dir" || continue
3937 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3938 ac_xdir=$ac_dir/cf$$
3939 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3940 ac_tf1=$ac_xdir/conftest9012345
3941 ac_tf2=$ac_xdir/conftest9012346
3942 (echo 1 >"$ac_tf1") 2>/dev/null
3943 (echo 2 >"$ac_tf2") 2>/dev/null
3944 ac_val=`cat "$ac_tf1" 2>/dev/null`
3945 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3946 ac_cv_sys_long_file_names=no
3947 rm -rf "$ac_xdir" 2>/dev/null
3950 rm -rf "$ac_xdir" 2>/dev/null
3953 echo "$as_me:3953: result: $ac_cv_sys_long_file_names" >&5
3954 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3955 if test "$ac_cv_sys_long_file_names" = yes; then
3957 cat >>confdefs.h <<\EOF
3958 #define HAVE_LONG_FILE_NAMES 1
3963 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3964 # of package conflict.
3967 # Check whether --with-config-suffix or --without-config-suffix was given.
3968 if test "${with_config_suffix+set}" = set; then
3969 withval="$with_config_suffix"
3972 { echo "$as_me:3972: WARNING: expected a value for config-suffix option" >&5
3973 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3975 (*) cf_config_suffix="$withval"
3980 # If we find pkg-config, check if we should install the ".pc" files.
3982 echo "$as_me:3982: checking if you want to use pkg-config" >&5
3983 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3985 # Check whether --with-pkg-config or --without-pkg-config was given.
3986 if test "${with_pkg_config+set}" = set; then
3987 withval="$with_pkg_config"
3988 cf_pkg_config=$withval
3992 echo "$as_me:3992: result: $cf_pkg_config" >&5
3993 echo "${ECHO_T}$cf_pkg_config" >&6
3995 case "$cf_pkg_config" in
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4004 echo "$as_me:4004: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4014 ac_save_IFS=$IFS; IFS=$ac_path_separator
4016 for ac_dir in $ac_dummy; do
4018 test -z "$ac_dir" && ac_dir=.
4019 if $as_executable_p "$ac_dir/$ac_word"; then
4020 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4021 echo "$as_me:4021: found $ac_dir/$ac_word" >&5
4029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4031 if test -n "$PKG_CONFIG"; then
4032 echo "$as_me:4032: result: $PKG_CONFIG" >&5
4033 echo "${ECHO_T}$PKG_CONFIG" >&6
4035 echo "$as_me:4035: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4040 if test -z "$ac_cv_path_PKG_CONFIG"; then
4041 ac_pt_PKG_CONFIG=$PKG_CONFIG
4042 # Extract the first word of "pkg-config", so it can be a program name with args.
4043 set dummy pkg-config; ac_word=$2
4044 echo "$as_me:4044: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 case $ac_pt_PKG_CONFIG in
4051 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4054 ac_save_IFS=$IFS; IFS=$ac_path_separator
4056 for ac_dir in $ac_dummy; do
4058 test -z "$ac_dir" && ac_dir=.
4059 if $as_executable_p "$ac_dir/$ac_word"; then
4060 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4061 echo "$as_me:4061: found $ac_dir/$ac_word" >&5
4066 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4070 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4072 if test -n "$ac_pt_PKG_CONFIG"; then
4073 echo "$as_me:4073: result: $ac_pt_PKG_CONFIG" >&5
4074 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4076 echo "$as_me:4076: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4080 PKG_CONFIG=$ac_pt_PKG_CONFIG
4082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4091 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4092 if test "$PKG_CONFIG" != none ; then
4094 if test "x$prefix" != xNONE; then
4095 cf_path_syntax="$prefix"
4097 cf_path_syntax="$ac_default_prefix"
4100 case ".$PKG_CONFIG" in
4105 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4107 (.\$\{*prefix\}*|.\$\{*dir\}*)
4108 eval PKG_CONFIG="$PKG_CONFIG"
4109 case ".$PKG_CONFIG" in
4111 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4116 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4119 { { echo "$as_me:4119: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4120 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4121 { (exit 1); exit 1; }; }
4125 elif test "x$cf_pkg_config" != xno ; then
4126 { echo "$as_me:4126: WARNING: pkg-config is not installed" >&5
4127 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4130 case "$PKG_CONFIG" in
4132 echo "$as_me:4132: checking for pkg-config library directory" >&5
4133 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4136 echo "$as_me:4136: checking for $PKG_CONFIG library directory" >&5
4137 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4141 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,'`
4143 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4144 if test "${with_pkg_config_libdir+set}" = set; then
4145 withval="$with_pkg_config_libdir"
4146 cf_search_path=$withval
4148 test "x$PKG_CONFIG" != xnone && cf_search_path=yes
4151 case x$cf_search_path in
4156 test -n "$verbose" && echo " auto..." 1>&6
4158 echo "${as_me:-configure}:4158: testing auto... ..." 1>&5
4160 # Look for the library directory using the same prefix as the executable
4161 echo "$as_me:4161: checking for search-list" >&5
4162 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4163 if test "x$PKG_CONFIG" != xnone
4165 # works for pkg-config since version 0.24 (2009)
4166 cf_pkg_program=`echo "$PKG_CONFIG" | sed -e 's,^.*/,,'`
4167 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4169 # works for pkgconf since version 0.8.3 (2012)
4170 test -z "$cf_search_path" && \
4171 cf_search_path=`pkgconf --variable=pc_path pkgconf 2>/dev/null | tr : ' '`
4173 # works for pkg-config since import in 2005 of original 2001 HP code.
4174 test -z "$cf_search_path" && \
4176 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4177 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4178 sub(\"^[^']*'\",\"\"); \
4179 sub(\"'.*\",\"\"); \
4180 printf \" %s\", \\$0; } \
4185 echo "$as_me:4185: result: $cf_search_path" >&5
4186 echo "${ECHO_T}$cf_search_path" >&6
4193 echo "$as_me:4193: checking for first directory" >&5
4194 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4195 cf_pkg_config_path=none
4196 for cf_config in $cf_search_path
4198 if test -d "$cf_config"
4200 cf_pkg_config_path=$cf_config
4204 echo "$as_me:4204: result: $cf_pkg_config_path" >&5
4205 echo "${ECHO_T}$cf_pkg_config_path" >&6
4207 if test "x$cf_pkg_config_path" != xnone ; then
4208 # limit this to the first directory found
4209 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4212 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4214 echo "$as_me:4214: checking for workaround" >&5
4215 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4216 if test "$prefix" = "NONE" ; then
4217 cf_prefix="$ac_default_prefix"
4221 eval cf_libdir=$libdir
4222 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4224 for cf_config in $cf_search_path
4227 $cf_libdir/pkgconfig)
4228 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4232 test -z "$cf_backup" && cf_backup=$cf_config
4236 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4237 echo "$as_me:4237: result: $PKG_CONFIG_LIBDIR" >&5
4238 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4241 if test "x$PKG_CONFIG" != xnone
4243 echo "$as_me:4243: checking if we should install .pc files for $PKG_CONFIG" >&5
4244 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4246 echo "$as_me:4246: checking if we should install .pc files" >&5
4247 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4250 # Check whether --enable-pc-files or --disable-pc-files was given.
4251 if test "${enable_pc_files+set}" = set; then
4252 enableval="$enable_pc_files"
4253 enable_pc_files=$enableval
4257 echo "$as_me:4257: result: $enable_pc_files" >&5
4258 echo "${ECHO_T}$enable_pc_files" >&6
4260 if test "x$enable_pc_files" != xno
4263 case "x$PKG_CONFIG_LIBDIR" in
4265 { echo "$as_me:4265: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4266 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4270 if test "x$prefix" != xNONE; then
4271 cf_path_syntax="$prefix"
4273 cf_path_syntax="$ac_default_prefix"
4276 case ".$PKG_CONFIG_LIBDIR" in
4281 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4283 (.\$\{*prefix\}*|.\$\{*dir\}*)
4284 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4285 case ".$PKG_CONFIG_LIBDIR" in
4287 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4292 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4295 { { echo "$as_me:4295: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4296 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4297 { (exit 1); exit 1; }; }
4307 if test -z "$MAKE_PC_FILES"
4309 echo "$as_me:4309: checking for suffix to add to pc-files" >&5
4310 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4312 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4313 if test "${with_pc_suffix+set}" = set; then
4314 withval="$with_pc_suffix"
4319 (*) PC_MODULE_SUFFIX="$withval"
4323 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4324 echo "$as_me:4324: result: $PC_MODULE_SUFFIX" >&5
4325 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4326 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4330 echo "$as_me:4330: checking if we should assume mixed-case filenames" >&5
4331 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4333 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4334 if test "${enable_mixed_case+set}" = set; then
4335 enableval="$enable_mixed_case"
4336 enable_mixedcase=$enableval
4338 enable_mixedcase=auto
4340 echo "$as_me:4340: result: $enable_mixedcase" >&5
4341 echo "${ECHO_T}$enable_mixedcase" >&6
4342 if test "$enable_mixedcase" = "auto" ; then
4344 echo "$as_me:4344: checking if filesystem supports mixed-case filenames" >&5
4345 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4346 if test "${cf_cv_mixedcase+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 if test "$cross_compiling" = yes ; then
4351 case "$target_alias" in
4352 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4360 rm -f conftest CONFTEST
4362 if test -f CONFTEST ; then
4367 rm -f conftest CONFTEST
4371 echo "$as_me:4371: result: $cf_cv_mixedcase" >&5
4372 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4373 test "$cf_cv_mixedcase" = yes &&
4374 cat >>confdefs.h <<\EOF
4375 #define MIXEDCASE_FILENAMES 1
4379 cf_cv_mixedcase=$enable_mixedcase
4380 if test "x$enable_mixedcase" = "xyes" ; then
4382 cat >>confdefs.h <<\EOF
4383 #define MIXEDCASE_FILENAMES 1
4389 # do this after mixed-case option (tags/TAGS is not as important as tic).
4390 echo "$as_me:4390: checking whether ${MAKE-make} sets \${MAKE}" >&5
4391 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4392 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4393 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 cat >conftest.make <<\EOF
4398 @echo 'ac_maketemp="${MAKE}"'
4400 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4401 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4402 if test -n "$ac_maketemp"; then
4403 eval ac_cv_prog_make_${ac_make}_set=yes
4405 eval ac_cv_prog_make_${ac_make}_set=no
4409 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4410 echo "$as_me:4410: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4414 echo "$as_me:4414: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 SET_MAKE="MAKE=${MAKE-make}"
4419 echo "$as_me:4419: checking for \".PHONY\" make-support" >&5
4420 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4421 if test "${cf_cv_make_PHONY+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 mkdir conftest || exit 1
4429 cat >makefile <<'CF_EOF'
4433 @echo "** making $@ $(DATA)"
4435 @echo "** making $@ $(DATA)"
4437 @echo "** making $@ $(DATA)"
4440 @echo "** making $@ $(DATA)"
4443 for cf_data in 1 2 3
4445 ${MAKE:-make} always DATA=$cf_data
4446 ${MAKE:-make} once DATA=$cf_data
4447 ${MAKE:-make} -t always once
4448 if test -f always ; then
4449 echo "no (case 1)" > ../conftest.tmp
4450 elif test ! -f always.out ; then
4451 echo "no (case 2)" > ../conftest.tmp
4452 elif test ! -f once.out ; then
4453 echo "no (case 3)" > ../conftest.tmp
4454 elif ! cmp -s always.out once.out ; then
4455 echo "no (case 4)" > ../conftest.tmp
4456 diff always.out once.out
4458 cf_check="`cat always.out`"
4459 if test "x$cf_check" != "x$cf_data" ; then
4460 echo "no (case 5)" > ../conftest.tmp
4462 echo yes > ../conftest.tmp
4470 cf_cv_make_PHONY="`cat conftest.tmp`"
4474 echo "$as_me:4474: result: $cf_cv_make_PHONY" >&5
4475 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4478 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4479 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4481 for ac_prog in exctags ctags
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 echo "$as_me:4485: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_CTAGS+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$CTAGS"; then
4491 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4493 ac_save_IFS=$IFS; IFS=$ac_path_separator
4495 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 $as_executable_p "$ac_dir/$ac_word" || continue
4499 ac_cv_prog_CTAGS="$ac_prog"
4500 echo "$as_me:4500: found $ac_dir/$ac_word" >&5
4506 CTAGS=$ac_cv_prog_CTAGS
4507 if test -n "$CTAGS"; then
4508 echo "$as_me:4508: result: $CTAGS" >&5
4509 echo "${ECHO_T}$CTAGS" >&6
4511 echo "$as_me:4511: result: no" >&5
4512 echo "${ECHO_T}no" >&6
4515 test -n "$CTAGS" && break
4518 for ac_prog in exetags etags
4520 # Extract the first word of "$ac_prog", so it can be a program name with args.
4521 set dummy $ac_prog; ac_word=$2
4522 echo "$as_me:4522: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524 if test "${ac_cv_prog_ETAGS+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 if test -n "$ETAGS"; then
4528 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4530 ac_save_IFS=$IFS; IFS=$ac_path_separator
4532 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 $as_executable_p "$ac_dir/$ac_word" || continue
4536 ac_cv_prog_ETAGS="$ac_prog"
4537 echo "$as_me:4537: found $ac_dir/$ac_word" >&5
4543 ETAGS=$ac_cv_prog_ETAGS
4544 if test -n "$ETAGS"; then
4545 echo "$as_me:4545: result: $ETAGS" >&5
4546 echo "${ECHO_T}$ETAGS" >&6
4548 echo "$as_me:4548: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 test -n "$ETAGS" && break
4555 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4556 set dummy ${CTAGS:-ctags}; ac_word=$2
4557 echo "$as_me:4557: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$MAKE_LOWER_TAGS"; then
4563 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4565 ac_save_IFS=$IFS; IFS=$ac_path_separator
4567 for ac_dir in $ac_dummy; do
4569 test -z "$ac_dir" && ac_dir=.
4570 $as_executable_p "$ac_dir/$ac_word" || continue
4571 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4572 echo "$as_me:4572: found $ac_dir/$ac_word" >&5
4576 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4579 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4580 if test -n "$MAKE_LOWER_TAGS"; then
4581 echo "$as_me:4581: result: $MAKE_LOWER_TAGS" >&5
4582 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4584 echo "$as_me:4584: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 if test "$cf_cv_mixedcase" = yes ; then
4589 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4590 set dummy ${ETAGS:-etags}; ac_word=$2
4591 echo "$as_me:4591: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$MAKE_UPPER_TAGS"; then
4597 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4599 ac_save_IFS=$IFS; IFS=$ac_path_separator
4601 for ac_dir in $ac_dummy; do
4603 test -z "$ac_dir" && ac_dir=.
4604 $as_executable_p "$ac_dir/$ac_word" || continue
4605 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4606 echo "$as_me:4606: found $ac_dir/$ac_word" >&5
4610 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4613 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4614 if test -n "$MAKE_UPPER_TAGS"; then
4615 echo "$as_me:4615: result: $MAKE_UPPER_TAGS" >&5
4616 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4618 echo "$as_me:4618: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4626 if test "$MAKE_UPPER_TAGS" = yes ; then
4632 if test "$MAKE_LOWER_TAGS" = yes ; then
4638 echo "$as_me:4638: checking for makeflags variable" >&5
4639 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4640 if test "${cf_cv_makeflags+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4647 cat >cf_makeflags.tmp <<CF_EOF
4650 @ echo '.$cf_option'
4652 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4653 case "$cf_result" in
4655 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4656 case "$cf_result" in
4657 (.*CC=*) cf_cv_makeflags=
4659 (*) cf_cv_makeflags=$cf_option
4668 echo "${as_me:-configure}:4668: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4673 rm -f cf_makeflags.tmp
4676 echo "$as_me:4676: result: $cf_cv_makeflags" >&5
4677 echo "${ECHO_T}$cf_cv_makeflags" >&6
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4682 echo "$as_me:4682: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_prog_RANLIB+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$RANLIB"; then
4688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4690 ac_save_IFS=$IFS; IFS=$ac_path_separator
4692 for ac_dir in $ac_dummy; do
4694 test -z "$ac_dir" && ac_dir=.
4695 $as_executable_p "$ac_dir/$ac_word" || continue
4696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4697 echo "$as_me:4697: found $ac_dir/$ac_word" >&5
4703 RANLIB=$ac_cv_prog_RANLIB
4704 if test -n "$RANLIB"; then
4705 echo "$as_me:4705: result: $RANLIB" >&5
4706 echo "${ECHO_T}$RANLIB" >&6
4708 echo "$as_me:4708: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4713 if test -z "$ac_cv_prog_RANLIB"; then
4714 ac_ct_RANLIB=$RANLIB
4715 # Extract the first word of "ranlib", so it can be a program name with args.
4716 set dummy ranlib; ac_word=$2
4717 echo "$as_me:4717: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$ac_ct_RANLIB"; then
4723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4725 ac_save_IFS=$IFS; IFS=$ac_path_separator
4727 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 $as_executable_p "$ac_dir/$ac_word" || continue
4731 ac_cv_prog_ac_ct_RANLIB="ranlib"
4732 echo "$as_me:4732: found $ac_dir/$ac_word" >&5
4736 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4739 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4740 if test -n "$ac_ct_RANLIB"; then
4741 echo "$as_me:4741: result: $ac_ct_RANLIB" >&5
4742 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4744 echo "$as_me:4744: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4748 RANLIB=$ac_ct_RANLIB
4750 RANLIB="$ac_cv_prog_RANLIB"
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}ld; ac_word=$2
4756 echo "$as_me:4756: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_LD+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$LD"; then
4762 ac_cv_prog_LD="$LD" # Let the user override the test.
4764 ac_save_IFS=$IFS; IFS=$ac_path_separator
4766 for ac_dir in $ac_dummy; do
4768 test -z "$ac_dir" && ac_dir=.
4769 $as_executable_p "$ac_dir/$ac_word" || continue
4770 ac_cv_prog_LD="${ac_tool_prefix}ld"
4771 echo "$as_me:4771: found $ac_dir/$ac_word" >&5
4778 if test -n "$LD"; then
4779 echo "$as_me:4779: result: $LD" >&5
4780 echo "${ECHO_T}$LD" >&6
4782 echo "$as_me:4782: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4787 if test -z "$ac_cv_prog_LD"; then
4789 # Extract the first word of "ld", so it can be a program name with args.
4790 set dummy ld; ac_word=$2
4791 echo "$as_me:4791: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4793 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test -n "$ac_ct_LD"; then
4797 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4799 ac_save_IFS=$IFS; IFS=$ac_path_separator
4801 for ac_dir in $ac_dummy; do
4803 test -z "$ac_dir" && ac_dir=.
4804 $as_executable_p "$ac_dir/$ac_word" || continue
4805 ac_cv_prog_ac_ct_LD="ld"
4806 echo "$as_me:4806: found $ac_dir/$ac_word" >&5
4810 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4813 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4814 if test -n "$ac_ct_LD"; then
4815 echo "$as_me:4815: result: $ac_ct_LD" >&5
4816 echo "${ECHO_T}$ac_ct_LD" >&6
4818 echo "$as_me:4818: result: no" >&5
4819 echo "${ECHO_T}no" >&6
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ar; ac_word=$2
4830 echo "$as_me:4830: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_AR+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$AR"; then
4836 ac_cv_prog_AR="$AR" # Let the user override the test.
4838 ac_save_IFS=$IFS; IFS=$ac_path_separator
4840 for ac_dir in $ac_dummy; do
4842 test -z "$ac_dir" && ac_dir=.
4843 $as_executable_p "$ac_dir/$ac_word" || continue
4844 ac_cv_prog_AR="${ac_tool_prefix}ar"
4845 echo "$as_me:4845: found $ac_dir/$ac_word" >&5
4852 if test -n "$AR"; then
4853 echo "$as_me:4853: result: $AR" >&5
4854 echo "${ECHO_T}$AR" >&6
4856 echo "$as_me:4856: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4861 if test -z "$ac_cv_prog_AR"; then
4863 # Extract the first word of "ar", so it can be a program name with args.
4864 set dummy ar; ac_word=$2
4865 echo "$as_me:4865: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$ac_ct_AR"; then
4871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4873 ac_save_IFS=$IFS; IFS=$ac_path_separator
4875 for ac_dir in $ac_dummy; do
4877 test -z "$ac_dir" && ac_dir=.
4878 $as_executable_p "$ac_dir/$ac_word" || continue
4879 ac_cv_prog_ac_ct_AR="ar"
4880 echo "$as_me:4880: found $ac_dir/$ac_word" >&5
4884 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4888 if test -n "$ac_ct_AR"; then
4889 echo "$as_me:4889: result: $ac_ct_AR" >&5
4890 echo "${ECHO_T}$ac_ct_AR" >&6
4892 echo "$as_me:4892: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}nm; ac_word=$2
4904 echo "$as_me:4904: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_NM+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$NM"; then
4910 ac_cv_prog_NM="$NM" # Let the user override the test.
4912 ac_save_IFS=$IFS; IFS=$ac_path_separator
4914 for ac_dir in $ac_dummy; do
4916 test -z "$ac_dir" && ac_dir=.
4917 $as_executable_p "$ac_dir/$ac_word" || continue
4918 ac_cv_prog_NM="${ac_tool_prefix}nm"
4919 echo "$as_me:4919: found $ac_dir/$ac_word" >&5
4926 if test -n "$NM"; then
4927 echo "$as_me:4927: result: $NM" >&5
4928 echo "${ECHO_T}$NM" >&6
4930 echo "$as_me:4930: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4935 if test -z "$ac_cv_prog_NM"; then
4937 # Extract the first word of "nm", so it can be a program name with args.
4938 set dummy nm; ac_word=$2
4939 echo "$as_me:4939: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 if test -n "$ac_ct_NM"; then
4945 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4947 ac_save_IFS=$IFS; IFS=$ac_path_separator
4949 for ac_dir in $ac_dummy; do
4951 test -z "$ac_dir" && ac_dir=.
4952 $as_executable_p "$ac_dir/$ac_word" || continue
4953 ac_cv_prog_ac_ct_NM="nm"
4954 echo "$as_me:4954: found $ac_dir/$ac_word" >&5
4958 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4961 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4962 if test -n "$ac_ct_NM"; then
4963 echo "$as_me:4963: result: $ac_ct_NM" >&5
4964 echo "${ECHO_T}$ac_ct_NM" >&6
4966 echo "$as_me:4966: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}ar; ac_word=$2
4978 echo "$as_me:4978: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_prog_AR+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 if test -n "$AR"; then
4984 ac_cv_prog_AR="$AR" # Let the user override the test.
4986 ac_save_IFS=$IFS; IFS=$ac_path_separator
4988 for ac_dir in $ac_dummy; do
4990 test -z "$ac_dir" && ac_dir=.
4991 $as_executable_p "$ac_dir/$ac_word" || continue
4992 ac_cv_prog_AR="${ac_tool_prefix}ar"
4993 echo "$as_me:4993: found $ac_dir/$ac_word" >&5
5000 if test -n "$AR"; then
5001 echo "$as_me:5001: result: $AR" >&5
5002 echo "${ECHO_T}$AR" >&6
5004 echo "$as_me:5004: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5009 if test -z "$ac_cv_prog_AR"; then
5011 # Extract the first word of "ar", so it can be a program name with args.
5012 set dummy ar; ac_word=$2
5013 echo "$as_me:5013: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$ac_ct_AR"; then
5019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5021 ac_save_IFS=$IFS; IFS=$ac_path_separator
5023 for ac_dir in $ac_dummy; do
5025 test -z "$ac_dir" && ac_dir=.
5026 $as_executable_p "$ac_dir/$ac_word" || continue
5027 ac_cv_prog_ac_ct_AR="ar"
5028 echo "$as_me:5028: found $ac_dir/$ac_word" >&5
5032 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5036 if test -n "$ac_ct_AR"; then
5037 echo "$as_me:5037: result: $ac_ct_AR" >&5
5038 echo "${ECHO_T}$ac_ct_AR" >&6
5040 echo "$as_me:5040: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5049 echo "$as_me:5049: checking for options to update archives" >&5
5050 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5051 if test "${cf_cv_ar_flags+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 case "$cf_cv_system_name" in
5058 cat >mk_static_lib.sh <<-EOF
5063 exec \$MSVC_BIN -out:"\$out" \$@
5065 chmod +x mk_static_lib.sh
5066 AR=`pwd`/mk_static_lib.sh
5069 cf_cv_ar_flags=unknown
5070 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5073 # check if $ARFLAGS already contains this choice
5074 if test "x$ARFLAGS" != "x" ; then
5075 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5076 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5082 rm -f "conftest.$ac_cv_objext"
5085 cat >"conftest.$ac_ext" <<EOF
5086 #line 5086 "configure"
5087 int testdata[3] = { 123, 456, 789 };
5089 if { (eval echo "$as_me:5089: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5092 echo "$as_me:5092: \$? = $ac_status" >&5
5093 (exit "$ac_status"); } ; then
5094 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5095 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5096 if test -f conftest.a ; then
5097 cf_cv_ar_flags="$cf_ar_flags"
5101 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5103 echo "${as_me:-configure}:5103: testing cannot compile test-program ..." 1>&5
5108 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5113 echo "$as_me:5113: result: $cf_cv_ar_flags" >&5
5114 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5116 if test -n "$ARFLAGS" ; then
5117 if test -n "$cf_cv_ar_flags" ; then
5118 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5121 ARFLAGS=$cf_cv_ar_flags
5124 echo "$as_me:5124: checking if you have specified an install-prefix" >&5
5125 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5127 # Check whether --with-install-prefix or --without-install-prefix was given.
5128 if test "${with_install_prefix+set}" = set; then
5129 withval="$with_install_prefix"
5133 (*) DESTDIR="$withval"
5137 echo "$as_me:5137: result: $DESTDIR" >&5
5138 echo "${ECHO_T}$DESTDIR" >&6
5140 ###############################################################################
5142 # If we're cross-compiling, allow the user to override the tools and their
5143 # options. The configure script is oriented toward identifying the host
5144 # compiler, etc., but we need a build compiler to generate parts of the source.
5146 case "$cf_cv_system_name" in
5148 LDFLAGS="$LDFLAGS user32.lib"
5153 if test "$cross_compiling" = yes ; then
5155 # defaults that we might want to override
5156 : ${BUILD_CFLAGS:=''}
5157 : ${BUILD_CPPFLAGS:=''}
5158 : ${BUILD_LDFLAGS:=''}
5160 : ${BUILD_EXEEXT:='$x'}
5161 : ${BUILD_OBJEXT:='o'}
5163 # Check whether --with-build-cc or --without-build-cc was given.
5164 if test "${with_build_cc+set}" = set; then
5165 withval="$with_build_cc"
5168 for ac_prog in gcc clang c99 c89 cc cl
5170 # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 echo "$as_me:5172: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$BUILD_CC"; then
5178 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5180 ac_save_IFS=$IFS; IFS=$ac_path_separator
5182 for ac_dir in $ac_dummy; do
5184 test -z "$ac_dir" && ac_dir=.
5185 $as_executable_p "$ac_dir/$ac_word" || continue
5186 ac_cv_prog_BUILD_CC="$ac_prog"
5187 echo "$as_me:5187: found $ac_dir/$ac_word" >&5
5193 BUILD_CC=$ac_cv_prog_BUILD_CC
5194 if test -n "$BUILD_CC"; then
5195 echo "$as_me:5195: result: $BUILD_CC" >&5
5196 echo "${ECHO_T}$BUILD_CC" >&6
5198 echo "$as_me:5198: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5202 test -n "$BUILD_CC" && break
5204 test -n "$BUILD_CC" || BUILD_CC="none"
5207 echo "$as_me:5207: checking for native build C compiler" >&5
5208 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5209 echo "$as_me:5209: result: $BUILD_CC" >&5
5210 echo "${ECHO_T}$BUILD_CC" >&6
5212 echo "$as_me:5212: checking for native build C preprocessor" >&5
5213 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5215 # Check whether --with-build-cpp or --without-build-cpp was given.
5216 if test "${with_build_cpp+set}" = set; then
5217 withval="$with_build_cpp"
5218 BUILD_CPP="$withval"
5220 BUILD_CPP='${BUILD_CC} -E'
5222 echo "$as_me:5222: result: $BUILD_CPP" >&5
5223 echo "${ECHO_T}$BUILD_CPP" >&6
5225 echo "$as_me:5225: checking for native build C flags" >&5
5226 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5228 # Check whether --with-build-cflags or --without-build-cflags was given.
5229 if test "${with_build_cflags+set}" = set; then
5230 withval="$with_build_cflags"
5231 BUILD_CFLAGS="$withval"
5233 echo "$as_me:5233: result: $BUILD_CFLAGS" >&5
5234 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5236 echo "$as_me:5236: checking for native build C preprocessor-flags" >&5
5237 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5239 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5240 if test "${with_build_cppflags+set}" = set; then
5241 withval="$with_build_cppflags"
5242 BUILD_CPPFLAGS="$withval"
5244 echo "$as_me:5244: result: $BUILD_CPPFLAGS" >&5
5245 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5247 echo "$as_me:5247: checking for native build linker-flags" >&5
5248 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5250 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5251 if test "${with_build_ldflags+set}" = set; then
5252 withval="$with_build_ldflags"
5253 BUILD_LDFLAGS="$withval"
5255 echo "$as_me:5255: result: $BUILD_LDFLAGS" >&5
5256 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5258 echo "$as_me:5258: checking for native build linker-libraries" >&5
5259 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5261 # Check whether --with-build-libs or --without-build-libs was given.
5262 if test "${with_build_libs+set}" = set; then
5263 withval="$with_build_libs"
5264 BUILD_LIBS="$withval"
5266 echo "$as_me:5266: result: $BUILD_LIBS" >&5
5267 echo "${ECHO_T}$BUILD_LIBS" >&6
5269 # this assumes we're on Unix.
5273 : ${BUILD_CC:='${CC}'}
5275 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then
5276 { { echo "$as_me:5276: error: Cross-build requires two compilers.
5277 Use --with-build-cc to specify the native compiler." >&5
5278 echo "$as_me: error: Cross-build requires two compilers.
5279 Use --with-build-cc to specify the native compiler." >&2;}
5280 { (exit 1); exit 1; }; }
5284 : ${BUILD_CC:='${CC}'}
5285 : ${BUILD_CPP:='${CPP}'}
5286 : ${BUILD_CFLAGS:='${CFLAGS}'}
5287 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5288 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5289 : ${BUILD_LIBS:='${LIBS}'}
5290 : ${BUILD_EXEEXT:='$x'}
5291 : ${BUILD_OBJEXT:='o'}
5294 ###############################################################################
5296 ### Options to allow the user to specify the set of libraries which are used.
5297 ### Use "--without-normal --with-shared" to allow the default model to be
5298 ### shared, for example.
5301 echo "$as_me:5301: checking if libtool -version-number should be used" >&5
5302 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5304 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5305 if test "${enable_libtool_version+set}" = set; then
5306 enableval="$enable_libtool_version"
5307 test "$enableval" != no && enableval=yes
5308 if test "$enableval" != "yes" ; then
5309 cf_libtool_version=no
5311 cf_libtool_version=yes
5315 cf_libtool_version=yes
5318 echo "$as_me:5318: result: $cf_libtool_version" >&5
5319 echo "${ECHO_T}$cf_libtool_version" >&6
5321 if test "$cf_libtool_version" = yes ; then
5322 LIBTOOL_VERSION="-version-number"
5324 LIBTOOL_VERSION="-version-info"
5327 { echo "$as_me:5327: WARNING: VERSION was not set" >&5
5328 echo "$as_me: WARNING: VERSION was not set" >&2;}
5331 ABI_VERSION="$VERSION"
5332 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5334 echo "${as_me:-configure}:5334: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5338 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5339 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5341 echo "${as_me:-configure}:5341: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5345 { echo "$as_me:5345: WARNING: unexpected VERSION value: $VERSION" >&5
5346 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5353 # common library maintenance symbols that are convenient for libtool scripts:
5354 LIB_CREATE='${AR} -cr'
5355 LIB_OBJECT='${OBJECTS}'
5359 # symbols used to prop libtool up to enable it to determine what it should be
5367 echo "$as_me:5367: checking if you want to build libraries with libtool" >&5
5368 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5370 # Check whether --with-libtool or --without-libtool was given.
5371 if test "${with_libtool+set}" = set; then
5372 withval="$with_libtool"
5373 with_libtool=$withval
5377 echo "$as_me:5377: result: $with_libtool" >&5
5378 echo "${ECHO_T}$with_libtool" >&6
5379 if test "$with_libtool" != "no"; then
5381 if test "$with_libtool" != "yes" ; then
5383 if test "x$prefix" != xNONE; then
5384 cf_path_syntax="$prefix"
5386 cf_path_syntax="$ac_default_prefix"
5389 case ".$with_libtool" in
5394 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5396 (.\$\{*prefix\}*|.\$\{*dir\}*)
5397 eval with_libtool="$with_libtool"
5398 case ".$with_libtool" in
5400 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5405 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5408 { { echo "$as_me:5408: error: expected a pathname, not \"$with_libtool\"" >&5
5409 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5410 { (exit 1); exit 1; }; }
5414 LIBTOOL=$with_libtool
5416 if test -n "$ac_tool_prefix"; then
5417 for ac_prog in libtool glibtool
5419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5421 echo "$as_me:5421: checking for $ac_word" >&5
5422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 if test -n "$LIBTOOL"; then
5427 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5429 ac_save_IFS=$IFS; IFS=$ac_path_separator
5431 for ac_dir in $ac_dummy; do
5433 test -z "$ac_dir" && ac_dir=.
5434 $as_executable_p "$ac_dir/$ac_word" || continue
5435 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5436 echo "$as_me:5436: found $ac_dir/$ac_word" >&5
5442 LIBTOOL=$ac_cv_prog_LIBTOOL
5443 if test -n "$LIBTOOL"; then
5444 echo "$as_me:5444: result: $LIBTOOL" >&5
5445 echo "${ECHO_T}$LIBTOOL" >&6
5447 echo "$as_me:5447: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5451 test -n "$LIBTOOL" && break
5454 if test -z "$LIBTOOL"; then
5455 ac_ct_LIBTOOL=$LIBTOOL
5456 for ac_prog in libtool glibtool
5458 # Extract the first word of "$ac_prog", so it can be a program name with args.
5459 set dummy $ac_prog; ac_word=$2
5460 echo "$as_me:5460: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 if test -n "$ac_ct_LIBTOOL"; then
5466 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5468 ac_save_IFS=$IFS; IFS=$ac_path_separator
5470 for ac_dir in $ac_dummy; do
5472 test -z "$ac_dir" && ac_dir=.
5473 $as_executable_p "$ac_dir/$ac_word" || continue
5474 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5475 echo "$as_me:5475: found $ac_dir/$ac_word" >&5
5481 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5482 if test -n "$ac_ct_LIBTOOL"; then
5483 echo "$as_me:5483: result: $ac_ct_LIBTOOL" >&5
5484 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5486 echo "$as_me:5486: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5490 test -n "$ac_ct_LIBTOOL" && break
5492 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5494 LIBTOOL=$ac_ct_LIBTOOL
5497 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5499 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.].*//'`
5501 cf_cv_libtool_version=
5503 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5505 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5508 unset ac_cv_prog_ac_ct_LIBTOOL
5512 if test -n "$ac_tool_prefix"; then
5513 for ac_prog in glibtool
5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 echo "$as_me:5517: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5519 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 if test -n "$LIBTOOL"; then
5523 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5525 ac_save_IFS=$IFS; IFS=$ac_path_separator
5527 for ac_dir in $ac_dummy; do
5529 test -z "$ac_dir" && ac_dir=.
5530 $as_executable_p "$ac_dir/$ac_word" || continue
5531 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5532 echo "$as_me:5532: found $ac_dir/$ac_word" >&5
5538 LIBTOOL=$ac_cv_prog_LIBTOOL
5539 if test -n "$LIBTOOL"; then
5540 echo "$as_me:5540: result: $LIBTOOL" >&5
5541 echo "${ECHO_T}$LIBTOOL" >&6
5543 echo "$as_me:5543: result: no" >&5
5544 echo "${ECHO_T}no" >&6
5547 test -n "$LIBTOOL" && break
5550 if test -z "$LIBTOOL"; then
5551 ac_ct_LIBTOOL=$LIBTOOL
5552 for ac_prog in glibtool
5554 # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 echo "$as_me:5556: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5558 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if test -n "$ac_ct_LIBTOOL"; then
5562 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5564 ac_save_IFS=$IFS; IFS=$ac_path_separator
5566 for ac_dir in $ac_dummy; do
5568 test -z "$ac_dir" && ac_dir=.
5569 $as_executable_p "$ac_dir/$ac_word" || continue
5570 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5571 echo "$as_me:5571: found $ac_dir/$ac_word" >&5
5577 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5578 if test -n "$ac_ct_LIBTOOL"; then
5579 echo "$as_me:5579: result: $ac_ct_LIBTOOL" >&5
5580 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5582 echo "$as_me:5582: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 test -n "$ac_ct_LIBTOOL" && break
5588 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5590 LIBTOOL=$ac_ct_LIBTOOL
5593 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5595 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.].*//'`
5597 cf_cv_libtool_version=
5599 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5603 if test -z "$LIBTOOL" ; then
5604 { { echo "$as_me:5604: error: Cannot find libtool" >&5
5605 echo "$as_me: error: Cannot find libtool" >&2;}
5606 { (exit 1); exit 1; }; }
5608 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5609 LIB_OBJECT='${OBJECTS:.o=.lo}'
5611 LIB_CLEAN='${LIBTOOL} --mode=clean'
5612 LIB_COMPILE='${LIBTOOL} --mode=compile'
5613 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5614 LIB_INSTALL='${LIBTOOL} --mode=install'
5615 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5618 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5620 echo "$as_me:5620: checking version of $LIBTOOL" >&5
5621 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5623 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5625 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.].*//'`
5627 cf_cv_libtool_version=
5629 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5631 echo "$as_me:5631: result: $cf_cv_libtool_version" >&5
5632 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5633 if test -n "$cf_cv_libtool_version"
5635 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5636 case "x$cf_check_libtool_version" in
5637 (*...GNU-libtool...*)
5640 { { echo "$as_me:5640: error: This is not GNU libtool" >&5
5641 echo "$as_me: error: This is not GNU libtool" >&2;}
5642 { (exit 1); exit 1; }; }
5646 { { echo "$as_me:5646: error: No version found for $LIBTOOL" >&5
5647 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5648 { (exit 1); exit 1; }; }
5651 { { echo "$as_me:5651: error: GNU libtool has not been found" >&5
5652 echo "$as_me: error: GNU libtool has not been found" >&2;}
5653 { (exit 1); exit 1; }; }
5656 # special hack to add -no-undefined (which libtool should do for itself)
5658 case "$cf_cv_system_name" in
5659 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5660 LT_UNDEF=-no-undefined
5664 # special hack to add --tag option for C++ compiler
5665 case "$cf_cv_libtool_version" in
5666 (1.[5-9]*|[2-9].[0-9.a-z]*)
5667 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5668 LIBTOOL="$LIBTOOL --tag=CC"
5671 LIBTOOL_CXX="$LIBTOOL"
5679 test -z "$LIBTOOL" && ECHO_LT=
5681 if test "$with_libtool" != "no" ; then
5683 cf_list_models="$cf_list_models libtool"
5687 echo "$as_me:5687: checking if you want to build shared libraries" >&5
5688 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5690 # Check whether --with-shared or --without-shared was given.
5691 if test "${with_shared+set}" = set; then
5692 withval="$with_shared"
5693 with_shared=$withval
5697 echo "$as_me:5697: result: $with_shared" >&5
5698 echo "${ECHO_T}$with_shared" >&6
5699 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5701 echo "$as_me:5701: checking if you want to build static libraries" >&5
5702 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5704 # Check whether --with-normal or --without-normal was given.
5705 if test "${with_normal+set}" = set; then
5706 withval="$with_normal"
5707 with_normal=$withval
5711 echo "$as_me:5711: result: $with_normal" >&5
5712 echo "${ECHO_T}$with_normal" >&6
5713 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5715 echo "$as_me:5715: checking if you want to build debug libraries" >&5
5716 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5718 # Check whether --with-debug or --without-debug was given.
5719 if test "${with_debug+set}" = set; then
5720 withval="$with_debug"
5725 echo "$as_me:5725: result: $with_debug" >&5
5726 echo "${ECHO_T}$with_debug" >&6
5727 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5729 echo "$as_me:5729: checking if you want to build profiling libraries" >&5
5730 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5732 # Check whether --with-profile or --without-profile was given.
5733 if test "${with_profile+set}" = set; then
5734 withval="$with_profile"
5735 with_profile=$withval
5739 echo "$as_me:5739: result: $with_profile" >&5
5740 echo "${ECHO_T}$with_profile" >&6
5741 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5745 if test "X$cf_with_cxx_binding" != Xno; then
5746 if test "x$with_shared" = "xyes"; then
5747 echo "$as_me:5747: checking if you want to build C++ shared libraries" >&5
5748 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5750 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5751 if test "${with_cxx_shared+set}" = set; then
5752 withval="$with_cxx_shared"
5753 with_shared_cxx=$withval
5757 echo "$as_me:5757: result: $with_shared_cxx" >&5
5758 echo "${ECHO_T}$with_shared_cxx" >&6
5762 ###############################################################################
5764 echo "$as_me:5764: checking for specified models" >&5
5765 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5766 test -z "$cf_list_models" && cf_list_models=normal
5767 test "$with_libtool" != "no" && cf_list_models=libtool
5768 echo "$as_me:5768: result: $cf_list_models" >&5
5769 echo "${ECHO_T}$cf_list_models" >&6
5771 ### Use the first model as the default, and save its suffix for use in building
5772 ### up test-applications.
5773 echo "$as_me:5773: checking for default model" >&5
5774 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5775 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5776 echo "$as_me:5776: result: $DFT_LWR_MODEL" >&5
5777 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5779 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5790 echo "$as_me:5790: checking if you want to have a library-prefix" >&5
5791 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5793 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5794 if test "${with_lib_prefix+set}" = set; then
5795 withval="$with_lib_prefix"
5796 with_lib_prefix=$withval
5798 with_lib_prefix=auto
5800 echo "$as_me:5800: result: $with_lib_prefix" >&5
5801 echo "${ECHO_T}$with_lib_prefix" >&6
5803 if test "$with_lib_prefix" = auto
5806 case "$cf_cv_system_name" in
5808 if test "$DFT_LWR_MODEL" = libtool; then
5817 (*) LIB_PREFIX='lib'
5820 cf_prefix=$LIB_PREFIX
5822 elif test "$with_lib_prefix" = no
5826 LIB_PREFIX=$with_lib_prefix
5831 echo "$as_me:5831: checking for PATH separator" >&5
5832 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5833 case "$cf_cv_system_name" in
5834 (os2*) PATH_SEPARATOR=';' ;;
5835 (*) ${PATH_SEPARATOR:=':'} ;;
5838 echo "$as_me:5838: result: $PATH_SEPARATOR" >&5
5839 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5841 ###############################################################################
5843 echo "$as_me:5843: checking if you want to build a separate terminfo library" >&5
5844 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5846 # Check whether --with-termlib or --without-termlib was given.
5847 if test "${with_termlib+set}" = set; then
5848 withval="$with_termlib"
5849 with_termlib=$withval
5853 echo "$as_me:5853: result: $with_termlib" >&5
5854 echo "${ECHO_T}$with_termlib" >&6
5856 echo "$as_me:5856: checking if you want to build a separate tic library" >&5
5857 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5859 # Check whether --with-ticlib or --without-ticlib was given.
5860 if test "${with_ticlib+set}" = set; then
5861 withval="$with_ticlib"
5862 with_ticlib=$withval
5866 echo "$as_me:5866: result: $with_ticlib" >&5
5867 echo "${ECHO_T}$with_ticlib" >&6
5869 if test X"$CC_G_OPT" = X"" ; then
5871 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5874 if test X"$CXX_G_OPT" = X"" ; then
5876 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5879 echo "$as_me:5879: checking for default loader flags" >&5
5880 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5881 case "$DFT_LWR_MODEL" in
5882 (libtool) LD_MODEL='' ;;
5883 (normal) LD_MODEL='' ;;
5884 (debug) LD_MODEL=$CC_G_OPT ;;
5885 (profile) LD_MODEL='-pg';;
5886 (shared) LD_MODEL='' ;;
5888 echo "$as_me:5888: result: $LD_MODEL" >&5
5889 echo "${ECHO_T}$LD_MODEL" >&6
5891 case "$DFT_LWR_MODEL" in
5894 echo "$as_me:5894: checking if rpath option should be used" >&5
5895 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5897 # Check whether --enable-rpath or --disable-rpath was given.
5898 if test "${enable_rpath+set}" = set; then
5899 enableval="$enable_rpath"
5900 cf_cv_enable_rpath=$enableval
5902 cf_cv_enable_rpath=no
5904 echo "$as_me:5904: result: $cf_cv_enable_rpath" >&5
5905 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5907 echo "$as_me:5907: checking if shared libraries should be relinked during install" >&5
5908 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5910 # Check whether --enable-relink or --disable-relink was given.
5911 if test "${enable_relink+set}" = set; then
5912 enableval="$enable_relink"
5913 cf_cv_do_relink=$enableval
5917 echo "$as_me:5917: result: $cf_cv_do_relink" >&5
5918 echo "${ECHO_T}$cf_cv_do_relink" >&6
5922 # we will build libraries one-level down.
5926 if test "x$cf_cv_enable_rpath" != xno
5928 echo "$as_me:5928: checking for an rpath option" >&5
5929 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5930 case "$cf_cv_system_name" in
5932 if test "$GCC" = yes; then
5933 LD_RPATH_OPT="-Wl,-rpath,"
5935 LD_RPATH_OPT="-rpath "
5938 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5939 LD_RPATH_OPT="-Wl,-rpath,"
5941 (openbsd[2-9].*|mirbsd*)
5942 LD_RPATH_OPT="-Wl,-rpath,"
5945 LD_RPATH_OPT="-rpath "
5948 LD_RPATH_OPT="-Wl,-rpath,"
5951 LD_RPATH_OPT="-rpath "
5959 echo "$as_me:5959: result: $LD_RPATH_OPT" >&5
5960 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5962 case "x$LD_RPATH_OPT" in
5964 echo "$as_me:5964: checking if we need a space after rpath option" >&5
5965 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5966 cf_save_LIBS="$LIBS"
5971 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5973 for cf_add_1lib in $cf_add_0lib; do
5974 for cf_add_2lib in $cf_add_libs; do
5975 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5980 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5984 cat >"conftest.$ac_ext" <<_ACEOF
5985 #line 5985 "configure"
5986 #include "confdefs.h"
5996 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5997 if { (eval echo "$as_me:5997: \"$ac_link\"") >&5
5998 (eval $ac_link) 2>&5
6000 echo "$as_me:6000: \$? = $ac_status" >&5
6001 (exit "$ac_status"); } &&
6002 { ac_try='test -s "conftest$ac_exeext"'
6003 { (eval echo "$as_me:6003: \"$ac_try\"") >&5
6006 echo "$as_me:6006: \$? = $ac_status" >&5
6007 (exit "$ac_status"); }; }; then
6010 echo "$as_me: failed program was:" >&5
6011 cat "conftest.$ac_ext" >&5
6014 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6015 LIBS="$cf_save_LIBS"
6016 echo "$as_me:6016: result: $cf_rpath_space" >&5
6017 echo "${ECHO_T}$cf_rpath_space" >&6
6018 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6027 INSTALL_LIB="-m 644"
6028 : ${rel_builddir:=.}
6034 cf_cv_do_symlinks=no
6036 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6038 echo "$as_me:6038: checking if release/abi version should be used for shared libs" >&5
6039 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6041 # Check whether --with-shlib-version or --without-shlib-version was given.
6042 if test "${with_shlib_version+set}" = set; then
6043 withval="$with_shlib_version"
6044 test -z "$withval" && withval=auto
6047 cf_cv_shlib_version=auto
6050 cf_cv_shlib_version=$withval
6053 echo "$as_me:6053: result: $withval" >&5
6054 echo "${ECHO_T}$withval" >&6
6055 { { echo "$as_me:6055: error: option value must be one of: rel, abi, or auto" >&5
6056 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6057 { (exit 1); exit 1; }; }
6062 cf_cv_shlib_version=auto
6064 echo "$as_me:6064: result: $cf_cv_shlib_version" >&5
6065 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6070 # Some less-capable ports of gcc support only -fpic
6074 if test "$GCC" = yes
6078 case "$cf_cv_system_name" in
6079 (*linux*) # e.g., PGI compiler
6085 if test "$cf_try_fPIC" = yes
6087 echo "$as_me:6087: checking which $CC option to use" >&5
6088 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6089 cf_save_CFLAGS="$CFLAGS"
6090 for CC_SHARED_OPTS in -fPIC -fpic ''
6092 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6093 cat >"conftest.$ac_ext" <<_ACEOF
6094 #line 6094 "configure"
6095 #include "confdefs.h"
6105 rm -f "conftest.$ac_objext"
6106 if { (eval echo "$as_me:6106: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6109 echo "$as_me:6109: \$? = $ac_status" >&5
6110 (exit "$ac_status"); } &&
6111 { ac_try='test -s "conftest.$ac_objext"'
6112 { (eval echo "$as_me:6112: \"$ac_try\"") >&5
6115 echo "$as_me:6115: \$? = $ac_status" >&5
6116 (exit "$ac_status"); }; }; then
6119 echo "$as_me: failed program was:" >&5
6120 cat "conftest.$ac_ext" >&5
6122 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6124 echo "$as_me:6124: result: $CC_SHARED_OPTS" >&5
6125 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6126 CFLAGS="$cf_save_CFLAGS"
6129 cf_cv_shlib_version_infix=no
6131 case "$cf_cv_system_name" in
6132 (aix4.3-9*|aix[5-7]*)
6133 if test "$GCC" = yes; then
6134 CC_SHARED_OPTS='-Wl,-brtl'
6135 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6137 CC_SHARED_OPTS='-brtl'
6138 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6139 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6143 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6147 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6148 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6149 cf_cv_shlib_version=cygdll
6150 cf_cv_shlib_version_infix=cygdll
6153 cat >mk_shared_lib.sh <<-CF_EOF
6156 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6159 Linking shared library
6160 ** SHARED_LIB \$SHARED_LIB
6161 ** IMPORT_LIB \$IMPORT_LIB
6163 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6165 chmod +x mk_shared_lib.sh
6169 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6170 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6171 cf_cv_shlib_version=msysdll
6172 cf_cv_shlib_version_infix=msysdll
6175 cat >mk_shared_lib.sh <<-CF_EOF
6178 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6181 Linking shared library
6182 ** SHARED_LIB \$SHARED_LIB
6183 ** IMPORT_LIB \$IMPORT_LIB
6185 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6187 chmod +x mk_shared_lib.sh
6190 cf_try_cflags="no-cpp-precomp"
6191 CC_SHARED_OPTS="-dynamic"
6192 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6193 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6194 cf_cv_shlib_version_infix=yes
6195 echo "$as_me:6195: checking if ld -search_paths_first works" >&5
6196 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6197 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 cf_save_LDFLAGS=$LDFLAGS
6202 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6203 cat >"conftest.$ac_ext" <<_ACEOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6216 if { (eval echo "$as_me:6216: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>&5
6219 echo "$as_me:6219: \$? = $ac_status" >&5
6220 (exit "$ac_status"); } &&
6221 { ac_try='test -s "conftest$ac_exeext"'
6222 { (eval echo "$as_me:6222: \"$ac_try\"") >&5
6225 echo "$as_me:6225: \$? = $ac_status" >&5
6226 (exit "$ac_status"); }; }; then
6227 cf_cv_ldflags_search_paths_first=yes
6229 echo "$as_me: failed program was:" >&5
6230 cat "conftest.$ac_ext" >&5
6231 cf_cv_ldflags_search_paths_first=no
6233 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6234 LDFLAGS=$cf_save_LDFLAGS
6236 echo "$as_me:6236: result: $cf_cv_ldflags_search_paths_first" >&5
6237 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6238 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6239 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6244 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6245 if test "$cf_cv_shlib_version" = rel; then
6246 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6248 cf_cv_shared_soname='`basename $@`'
6251 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6254 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6255 if test "$GCC" != yes; then
6258 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6259 INSTALL_LIB="-m 555"
6262 # (tested with gcc 2.7.2 -- I don't have c89)
6263 if test "$GCC" = yes; then
6264 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6267 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6269 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6270 # HP-UX shared libraries must be executable, and should be
6271 # readonly to exploit a quirk in the memory manager.
6272 INSTALL_LIB="-m 555"
6275 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6276 if test "$cf_cv_shlib_version" = rel; then
6277 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6279 cf_shared_soname='`basename $@`'
6282 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6285 if test "$cf_cv_enable_rpath" = yes ; then
6286 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6288 # tested with IRIX 5.2 and 'cc'.
6289 if test "$GCC" != yes; then
6290 CC_SHARED_OPTS='-KPIC'
6291 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6293 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6295 cf_cv_rm_so_locs=yes
6297 (linux*|gnu*|k*bsd*-gnu)
6298 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6299 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6300 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6302 if test "$cf_cv_enable_rpath" = yes ; then
6303 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6306 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6307 if test "$cf_cv_shlib_version" = rel; then
6308 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6310 cf_cv_shared_soname='`basename $@`'
6313 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6316 cf_cv_shlib_version=msvcdll
6317 cf_cv_shlib_version_infix=msvcdll
6320 if test "$DFT_LWR_MODEL" = "shared" ; then
6321 LOCAL_LDFLAGS="-link -dll"
6322 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6323 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6326 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6327 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6328 cat >mk_shared_lib.sh <<-CF_EOF
6331 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6336 Linking shared library
6337 ** SHARED LIB \$SHARED_LIB
6338 ** IMPORT_LIB \$IMPORT_LIB
6340 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6341 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6342 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6344 chmod +x mk_shared_lib.sh
6345 cat >mk_prog.sh <<-CF_EOF
6348 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6351 ldopts=("/subsystem:console")
6354 while test \$# -gt 0; do
6357 # ignore -link argument
6360 # ignore runtime-library option
6375 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6378 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6384 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6385 ldopts+=("\${linkarg}")
6393 ldopts+=("-out:\$1")
6402 if [ "\$isdll" -ne 0 ]; then
6403 for lib in \${libs[*]}; do
6404 ldopts+=("\$lib.dll.lib")
6407 for lib in \${libs[*]}; do
6408 ldopts+=("\$lib.lib")
6413 ** ld options: "\${ldopts[@]}"
6415 exec \$LD \${ldopts[@]}
6418 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6419 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6422 cf_cv_shlib_version=mingw
6423 cf_cv_shlib_version_infix=mingw
6426 if test "$DFT_LWR_MODEL" = "shared" ; then
6427 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6428 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6429 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6432 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6433 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6434 cat >mk_shared_lib.sh <<-CF_EOF
6437 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6440 Linking shared library
6441 ** SHARED_LIB \$SHARED_LIB
6442 ** IMPORT_LIB \$IMPORT_LIB
6444 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6446 chmod +x mk_shared_lib.sh
6448 (openbsd[2-9].*|mirbsd*)
6449 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6450 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6451 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6453 if test "$cf_cv_enable_rpath" = yes ; then
6454 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6456 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6458 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6459 if test "$cf_cv_shlib_version" = rel; then
6460 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6462 cf_cv_shared_soname='`basename $@`'
6465 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6469 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6473 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6475 (nto-qnx*|openbsd*|freebsd[12].*)
6476 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6477 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6478 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6480 (dragonfly*|freebsd*)
6481 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6482 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6483 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6484 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6485 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6488 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6489 if test "$cf_cv_shlib_version" = rel; then
6490 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6492 cf_cv_shared_soname='`basename $@`'
6495 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6498 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6499 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6500 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6501 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6502 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6503 if test "$cf_cv_shlib_version" = auto; then
6504 if test -f /usr/libexec/ld.elf_so; then
6505 cf_cv_shlib_version=abi
6507 cf_cv_shlib_version=rel
6511 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6512 if test "$cf_cv_shlib_version" = rel; then
6513 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6515 cf_cv_shared_soname='`basename $@`'
6518 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6520 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6524 # tested with OSF/1 V3.2 and 'cc'
6525 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6526 # link with shared libs).
6527 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6530 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6533 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6534 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6535 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6536 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6538 cf_cv_rm_so_locs=yes
6540 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6541 # tested with osr5.0.5
6542 if test "$GCC" != yes; then
6543 CC_SHARED_OPTS='-belf -KPIC'
6545 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6546 if test "$cf_cv_enable_rpath" = yes ; then
6547 # only way is to set LD_RUN_PATH but no switch for it
6550 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6551 LINK_PROGS='LD_RUN_PATH=${libdir}'
6552 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6555 # tested with SunOS 4.1.1 and gcc 2.7.0
6556 if test "$GCC" != yes; then
6557 CC_SHARED_OPTS='-KPIC'
6559 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6560 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6563 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6564 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6565 if test "$DFT_LWR_MODEL" = "shared" ; then
6566 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6567 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6569 if test "$cf_cv_enable_rpath" = yes ; then
6570 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6573 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6574 if test "$cf_cv_shlib_version" = rel; then
6575 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6577 cf_cv_shared_soname='`basename $@`'
6580 if test "$GCC" != yes; then
6581 cf_save_CFLAGS="$CFLAGS"
6582 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6584 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6585 cat >"conftest.$ac_ext" <<_ACEOF
6586 #line 6586 "configure"
6587 #include "confdefs.h"
6597 rm -f "conftest.$ac_objext"
6598 if { (eval echo "$as_me:6598: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>&5
6601 echo "$as_me:6601: \$? = $ac_status" >&5
6602 (exit "$ac_status"); } &&
6603 { ac_try='test -s "conftest.$ac_objext"'
6604 { (eval echo "$as_me:6604: \"$ac_try\"") >&5
6607 echo "$as_me:6607: \$? = $ac_status" >&5
6608 (exit "$ac_status"); }; }; then
6611 echo "$as_me: failed program was:" >&5
6612 cat "conftest.$ac_ext" >&5
6614 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6616 CFLAGS="$cf_save_CFLAGS"
6617 CC_SHARED_OPTS=$cf_shared_opts
6618 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6620 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6623 (sysv5uw7*|unix_sv*)
6624 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6625 if test "$GCC" != yes; then
6626 CC_SHARED_OPTS='-KPIC'
6628 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6631 CC_SHARED_OPTS='unknown'
6632 MK_SHARED_LIB='echo unknown'
6636 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6637 case "$cf_cv_shlib_version" in
6639 case "$MK_SHARED_LIB" in
6641 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6644 { echo "$as_me:6644: WARNING: ignored --with-shlib-version" >&5
6645 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6651 if test -n "$cf_try_cflags"
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6654 "${as_me:-configure}"
6656 int main(int argc, char *argv[])
6659 return (argv[argc-1] == 0) ;
6662 cf_save_CFLAGS="$CFLAGS"
6663 for cf_opt in $cf_try_cflags
6665 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6666 echo "$as_me:6666: checking if CFLAGS option -$cf_opt works" >&5
6667 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit "$ac_status"); }; then
6673 echo "$as_me:6673: result: yes" >&5
6674 echo "${ECHO_T}yes" >&6
6675 cf_save_CFLAGS="$CFLAGS"
6677 echo "$as_me:6677: result: no" >&5
6678 echo "${ECHO_T}no" >&6
6681 CFLAGS="$cf_save_CFLAGS"
6684 # RPATH_LIST is a colon-separated list of directories
6685 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6686 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6688 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6690 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6692 echo "${as_me:-configure}:6692: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6694 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6696 echo "${as_me:-configure}:6696: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6698 for model in $cf_list_models ; do
6702 echo "$as_me:6702: checking for additional libtool options" >&5
6703 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6705 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6706 if test "${with_libtool_opts+set}" = set; then
6707 withval="$with_libtool_opts"
6708 with_libtool_opts=$withval
6710 with_libtool_opts=no
6712 echo "$as_me:6712: result: $with_libtool_opts" >&5
6713 echo "${ECHO_T}$with_libtool_opts" >&6
6715 case .$with_libtool_opts in
6719 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6723 echo "$as_me:6723: checking if exported-symbols file should be used" >&5
6724 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6726 # Check whether --with-export-syms or --without-export-syms was given.
6727 if test "${with_export_syms+set}" = set; then
6728 withval="$with_export_syms"
6729 with_export_syms=$withval
6733 if test "x$with_export_syms" = xyes
6735 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6738 echo "$as_me:6738: result: $with_export_syms" >&5
6739 echo "${ECHO_T}$with_export_syms" >&6
6740 if test "x$with_export_syms" != xno
6742 EXPORT_SYMS="-export-symbols $with_export_syms"
6748 if test "$CC_SHARED_OPTS" = "unknown"; then
6749 { { echo "$as_me:6749: error: Shared libraries are not supported in this version" >&5
6750 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6751 { (exit 1); exit 1; }; }
6753 # workaround for inept transition to PIE vs PIC...
6754 echo "$as_me:6754: checking if current CFLAGS link properly" >&5
6755 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6756 cat >"conftest.$ac_ext" <<_ACEOF
6757 #line 6757 "configure"
6758 #include "confdefs.h"
6763 printf("Hello work\\n");
6768 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6769 if { (eval echo "$as_me:6769: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6772 echo "$as_me:6772: \$? = $ac_status" >&5
6773 (exit "$ac_status"); } &&
6774 { ac_try='test -s "conftest$ac_exeext"'
6775 { (eval echo "$as_me:6775: \"$ac_try\"") >&5
6778 echo "$as_me:6778: \$? = $ac_status" >&5
6779 (exit "$ac_status"); }; }; then
6782 echo "$as_me: failed program was:" >&5
6783 cat "conftest.$ac_ext" >&5
6786 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6787 echo "$as_me:6787: result: $cf_cflags_work" >&5
6788 echo "${ECHO_T}$cf_cflags_work" >&6
6789 if test "$cf_cflags_work" = no
6791 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6793 echo "${as_me:-configure}:6793: testing try to work around by appending shared-options ..." 1>&5
6795 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6798 echo "$as_me:6798: checking if versioned-symbols file should be used" >&5
6799 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6801 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6802 if test "${with_versioned_syms+set}" = set; then
6803 withval="$with_versioned_syms"
6804 with_versioned_syms=$withval
6806 with_versioned_syms=no
6808 case "x$with_versioned_syms" in
6810 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6816 test -f "$with_versioned_syms" || { { echo "$as_me:6816: error: expected a filename: $with_versioned_syms" >&5
6817 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6818 { (exit 1); exit 1; }; }
6821 test -f "$with_versioned_syms" || { { echo "$as_me:6821: error: expected a filename: $with_versioned_syms" >&5
6822 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6823 { (exit 1); exit 1; }; }
6824 with_versioned_syms=`pwd`/"$with_versioned_syms"
6827 echo "$as_me:6827: result: $with_versioned_syms" >&5
6828 echo "${ECHO_T}$with_versioned_syms" >&6
6834 if test "x$with_versioned_syms" != xno
6836 RESULTING_SYMS=$with_versioned_syms
6837 case "x$MK_SHARED_LIB" in
6839 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6840 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6841 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6843 echo "${as_me:-configure}:6843: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6847 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6848 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6849 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6851 echo "${as_me:-configure}:6851: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6855 { echo "$as_me:6855: WARNING: this system does not support versioned-symbols" >&5
6856 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6860 # Linux ld can selectively override scope, e.g., of symbols beginning with
6861 # "_" by first declaring some as global, and then using a wildcard to
6862 # declare the others as local. Some other loaders cannot do this. Check
6863 # by constructing a (very) simple shared library and inspecting its
6865 if test "x$VERSIONED_SYMS" != "x"
6867 echo "$as_me:6867: checking if wildcards can be used to selectively omit symbols" >&5
6868 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6874 cat >conftest.ver <<EOF
6903 cat >conftest.$ac_ext <<EOF
6904 #line 6904 "configure"
6905 int _ismissing(void) { return 1; }
6906 int _localf1(void) { return 1; }
6907 int _localf2(void) { return 2; }
6908 int globalf1(void) { return 1; }
6909 int globalf2(void) { return 2; }
6910 int _sublocalf1(void) { return 1; }
6911 int _sublocalf2(void) { return 2; }
6912 int subglobalf1(void) { return 1; }
6913 int subglobalf2(void) { return 2; }
6915 cat >conftest.mk <<EOF
6918 CPPFLAGS=${CPPFLAGS}
6921 VERSIONED_SYMS=${VERSIONED_SYMS}
6922 RESULTING_SYMS=conftest.ver
6923 MK_SHARED_LIB=${MK_SHARED_LIB}
6924 conftest.so: conftest.$ac_cv_objext
6925 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6928 # compile source, make library
6929 if make -f conftest.mk 2>&5 >/dev/null
6931 # test for missing symbol in either Data or Text section
6932 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
6933 test -n "$cf_missing" && WILDCARD_SYMS=yes
6935 echo "$as_me:6935: result: $WILDCARD_SYMS" >&5
6936 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6945 ### Checks for special libraries, must be done up-front.
6948 echo "$as_me:6948: checking if you want to link with the GPM mouse library" >&5
6949 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6951 # Check whether --with-gpm or --without-gpm was given.
6952 if test "${with_gpm+set}" = set; then
6958 echo "$as_me:6958: result: $with_gpm" >&5
6959 echo "${ECHO_T}$with_gpm" >&6
6961 if test "$with_gpm" != no ; then
6962 echo "$as_me:6962: checking for gpm.h" >&5
6963 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6964 if test "${ac_cv_header_gpm_h+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >"conftest.$ac_ext" <<_ACEOF
6968 #line 6968 "configure"
6969 #include "confdefs.h"
6972 if { (eval echo "$as_me:6972: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6973 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6975 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6977 cat conftest.err >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit "$ac_status"); } >/dev/null; then
6980 if test -s conftest.err; then
6981 ac_cpp_err=$ac_c_preproc_warn_flag
6988 if test -z "$ac_cpp_err"; then
6989 ac_cv_header_gpm_h=yes
6991 echo "$as_me: failed program was:" >&5
6992 cat "conftest.$ac_ext" >&5
6993 ac_cv_header_gpm_h=no
6995 rm -f conftest.err "conftest.$ac_ext"
6997 echo "$as_me:6997: result: $ac_cv_header_gpm_h" >&5
6998 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6999 if test "$ac_cv_header_gpm_h" = yes; then
7001 cat >>confdefs.h <<\EOF
7002 #define HAVE_GPM_H 1
7005 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7006 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7008 echo "${as_me:-configure}:7008: testing assuming we really have GPM library ..." 1>&5
7010 cat >>confdefs.h <<\EOF
7011 #define HAVE_LIBGPM 1
7016 echo "$as_me:7016: checking for Gpm_Open in -lgpm" >&5
7017 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7018 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_check_lib_save_LIBS=$LIBS
7023 cat >"conftest.$ac_ext" <<_ACEOF
7024 #line 7024 "configure"
7025 #include "confdefs.h"
7027 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7042 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7043 if { (eval echo "$as_me:7043: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>&5
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit "$ac_status"); } &&
7048 { ac_try='test -s "conftest$ac_exeext"'
7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit "$ac_status"); }; }; then
7054 ac_cv_lib_gpm_Gpm_Open=yes
7056 echo "$as_me: failed program was:" >&5
7057 cat "conftest.$ac_ext" >&5
7058 ac_cv_lib_gpm_Gpm_Open=no
7060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7061 LIBS=$ac_check_lib_save_LIBS
7063 echo "$as_me:7063: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7064 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7065 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7069 if test "$with_gpm" = maybe; then
7070 { echo "$as_me:7070: WARNING: Cannot link with GPM library" >&5
7071 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7074 { { echo "$as_me:7074: error: Cannot link with GPM library" >&5
7075 echo "$as_me: error: Cannot link with GPM library" >&2;}
7076 { (exit 1); exit 1; }; }
7085 test "$with_gpm" != maybe && { echo "$as_me:7085: WARNING: Cannot find GPM header" >&5
7086 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7093 if test "$with_gpm" != no ; then
7094 echo "$as_me:7094: checking if you want to load GPM dynamically" >&5
7095 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7097 # Check whether --with-dlsym or --without-dlsym was given.
7098 if test "${with_dlsym+set}" = set; then
7099 withval="$with_dlsym"
7104 echo "$as_me:7104: result: $with_dlsym" >&5
7105 echo "${ECHO_T}$with_dlsym" >&6
7106 if test "x$with_dlsym" = xyes ; then
7109 echo "$as_me:7109: checking for dlsym" >&5
7110 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7111 if test "${ac_cv_func_dlsym+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 cat >"conftest.$ac_ext" <<_ACEOF
7115 #line 7115 "configure"
7116 #include "confdefs.h"
7117 #define dlsym autoconf_temporary
7118 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7125 /* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7133 /* The GNU C library defines stubs for functions which it implements
7134 to always fail with ENOSYS. Some functions are actually named
7135 something starting with __ and the normal name is an alias. */
7136 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7137 #error found stub for dlsym
7145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7146 if { (eval echo "$as_me:7146: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>&5
7149 echo "$as_me:7149: \$? = $ac_status" >&5
7150 (exit "$ac_status"); } &&
7151 { ac_try='test -s "conftest$ac_exeext"'
7152 { (eval echo "$as_me:7152: \"$ac_try\"") >&5
7155 echo "$as_me:7155: \$? = $ac_status" >&5
7156 (exit "$ac_status"); }; }; then
7157 ac_cv_func_dlsym=yes
7159 echo "$as_me: failed program was:" >&5
7160 cat "conftest.$ac_ext" >&5
7163 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7165 echo "$as_me:7165: result: $ac_cv_func_dlsym" >&5
7166 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7167 if test "$ac_cv_func_dlsym" = yes; then
7172 echo "$as_me:7172: checking for dlsym in -ldl" >&5
7173 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7174 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 ac_check_lib_save_LIBS=$LIBS
7179 cat >"conftest.$ac_ext" <<_ACEOF
7180 #line 7180 "configure"
7181 #include "confdefs.h"
7183 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7198 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7199 if { (eval echo "$as_me:7199: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>&5
7202 echo "$as_me:7202: \$? = $ac_status" >&5
7203 (exit "$ac_status"); } &&
7204 { ac_try='test -s "conftest$ac_exeext"'
7205 { (eval echo "$as_me:7205: \"$ac_try\"") >&5
7208 echo "$as_me:7208: \$? = $ac_status" >&5
7209 (exit "$ac_status"); }; }; then
7210 ac_cv_lib_dl_dlsym=yes
7212 echo "$as_me: failed program was:" >&5
7213 cat "conftest.$ac_ext" >&5
7214 ac_cv_lib_dl_dlsym=no
7216 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7217 LIBS=$ac_check_lib_save_LIBS
7219 echo "$as_me:7219: result: $ac_cv_lib_dl_dlsym" >&5
7220 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7221 if test "$ac_cv_lib_dl_dlsym" = yes; then
7229 if test "$cf_have_dlsym" = yes ; then
7230 test "$cf_have_libdl" = yes && {
7234 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7236 for cf_add_1lib in $cf_add_0lib; do
7237 for cf_add_2lib in $cf_add_libs; do
7238 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7243 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7248 echo "$as_me:7248: checking whether able to link to dl*() functions" >&5
7249 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7250 cat >"conftest.$ac_ext" <<_ACEOF
7251 #line 7251 "configure"
7252 #include "confdefs.h"
7259 if ((obj = dlopen("filename", 0)) != 0) {
7260 if (dlsym(obj, "symbolname") == 0) {
7268 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7269 if { (eval echo "$as_me:7269: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>&5
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit "$ac_status"); } &&
7274 { ac_try='test -s "conftest$ac_exeext"'
7275 { (eval echo "$as_me:7275: \"$ac_try\"") >&5
7278 echo "$as_me:7278: \$? = $ac_status" >&5
7279 (exit "$ac_status"); }; }; then
7281 cat >>confdefs.h <<\EOF
7282 #define HAVE_LIBDL 1
7286 echo "$as_me: failed program was:" >&5
7287 cat "conftest.$ac_ext" >&5
7289 { { echo "$as_me:7289: error: Cannot link test program for libdl" >&5
7290 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7291 { (exit 1); exit 1; }; }
7293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7294 echo "$as_me:7294: result: ok" >&5
7295 echo "${ECHO_T}ok" >&6
7297 { { echo "$as_me:7297: error: Cannot find dlsym function" >&5
7298 echo "$as_me: error: Cannot find dlsym function" >&2;}
7299 { (exit 1); exit 1; }; }
7302 if test "x$with_gpm" != xyes ; then
7303 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7305 echo "${as_me:-configure}:7305: testing assuming soname for gpm is $with_gpm ..." 1>&5
7307 cf_cv_gpm_soname="$with_gpm"
7310 echo "$as_me:7310: checking for soname of gpm library" >&5
7311 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7312 if test "${cf_cv_gpm_soname+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 cf_cv_gpm_soname=unknown
7317 if test "$cross_compiling" != yes ; then
7318 cat >conftest.$ac_ext <<CF_EOF
7322 if (Gpm_Open(0,0)) Gpm_Close();
7323 ${cf_cv_main_return:-return}(0);
7326 cf_save_LIBS="$LIBS"
7331 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7333 for cf_add_1lib in $cf_add_0lib; do
7334 for cf_add_2lib in $cf_add_libs; do
7335 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7340 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7344 if { (eval echo "$as_me:7344: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit "$ac_status"); } ; then
7349 if { (eval echo "$as_me:7349: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>&5
7352 echo "$as_me:7352: \$? = $ac_status" >&5
7353 (exit "$ac_status"); } ; then
7354 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7355 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7359 LIBS="$cf_save_LIBS"
7363 echo "$as_me:7363: result: $cf_cv_gpm_soname" >&5
7364 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7367 test "$cf_cv_gpm_soname" != "unknown" &&
7368 cat >>confdefs.h <<EOF
7369 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7372 SHLIB_LIST="-ldl $SHLIB_LIST"
7374 cf_add_libs="$PRIVATE_LIBS"
7377 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7379 for cf_add_1lib in $cf_add_0lib; do
7380 for cf_add_2lib in $cf_add_libs; do
7381 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7386 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7388 PRIVATE_LIBS="$cf_add_libs"
7391 SHLIB_LIST="-lgpm $SHLIB_LIST"
7393 cf_add_libs="$TEST_LIBS"
7396 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7398 for cf_add_1lib in $cf_add_0lib; do
7399 for cf_add_2lib in $cf_add_libs; do
7400 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7405 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7407 TEST_LIBS="$cf_add_libs"
7409 cf_add_libs="$PRIVATE_LIBS"
7412 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7414 for cf_add_1lib in $cf_add_0lib; do
7415 for cf_add_2lib in $cf_add_libs; do
7416 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7421 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7423 PRIVATE_LIBS="$cf_add_libs"
7427 cat >>confdefs.h <<\EOF
7428 #define HAVE_LIBGPM 1
7431 echo "$as_me:7431: checking for Gpm_Wgetch in -lgpm" >&5
7432 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7433 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 ac_check_lib_save_LIBS=$LIBS
7438 cat >"conftest.$ac_ext" <<_ACEOF
7439 #line 7439 "configure"
7440 #include "confdefs.h"
7442 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7457 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7458 if { (eval echo "$as_me:7458: \"$ac_link\"") >&5
7459 (eval $ac_link) 2>&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 (exit "$ac_status"); } &&
7463 { ac_try='test -s "conftest$ac_exeext"'
7464 { (eval echo "$as_me:7464: \"$ac_try\"") >&5
7467 echo "$as_me:7467: \$? = $ac_status" >&5
7468 (exit "$ac_status"); }; }; then
7469 ac_cv_lib_gpm_Gpm_Wgetch=yes
7471 echo "$as_me: failed program was:" >&5
7472 cat "conftest.$ac_ext" >&5
7473 ac_cv_lib_gpm_Gpm_Wgetch=no
7475 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7476 LIBS=$ac_check_lib_save_LIBS
7478 echo "$as_me:7478: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7479 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7480 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7482 echo "$as_me:7482: checking if GPM is weakly bound to curses library" >&5
7483 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7484 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cf_cv_check_gpm_wgetch=unknown
7489 if test "$cross_compiling" != yes ; then
7491 cat >conftest.$ac_ext <<CF_EOF
7496 ${cf_cv_main_return:-return}(0);
7500 cf_save_LIBS="$LIBS"
7501 # This only works if we can look at the symbol table. If a shared
7502 # library is stripped for install, we cannot use that. So we're forced
7503 # to rely on the static library, noting that some packagers may not
7505 LIBS="-static -lgpm -dynamic $LIBS"
7506 if { (eval echo "$as_me:7506: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7509 echo "$as_me:7509: \$? = $ac_status" >&5
7510 (exit "$ac_status"); } ; then
7511 if { (eval echo "$as_me:7511: \"$ac_link\"") >&5
7512 (eval $ac_link) 2>&5
7514 echo "$as_me:7514: \$? = $ac_status" >&5
7515 (exit "$ac_status"); } ; then
7516 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7517 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7518 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7522 LIBS="$cf_save_LIBS"
7526 echo "$as_me:7526: result: $cf_cv_check_gpm_wgetch" >&5
7527 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7529 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7530 { echo "$as_me:7530: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7531 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7538 echo "$as_me:7538: checking if you want to use PCRE2 for regular-expressions" >&5
7539 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7541 # Check whether --with-pcre2 or --without-pcre2 was given.
7542 if test "${with_pcre2+set}" = set; then
7543 withval="$with_pcre2"
7546 test -z "$with_pcre2" && with_pcre2=no
7547 echo "$as_me:7547: result: $with_pcre2" >&5
7548 echo "${ECHO_T}$with_pcre2" >&6
7550 if test "x$with_pcre2" != xno ; then
7552 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
7555 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
7556 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
7558 echo "${as_me:-configure}:7558: testing found package $cf_with_pcre2 ..." 1>&5
7560 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
7561 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
7562 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7564 echo "${as_me:-configure}:7564: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7566 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7568 echo "${as_me:-configure}:7568: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7573 cf_new_extra_cppflags=
7575 for cf_add_cflags in $cf_pkgconfig_incs
7577 case "$cf_fix_cppflags" in
7579 case "$cf_add_cflags" in
7580 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7581 case "$cf_add_cflags" in
7583 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7585 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7586 && test -z "${cf_tst_cflags}" \
7587 && cf_fix_cppflags=yes
7589 if test "$cf_fix_cppflags" = yes ; then
7591 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7592 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7595 elif test "${cf_tst_cflags}" = "\"'" ; then
7597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7608 case "$cf_add_cflags" in
7610 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7612 CPPFLAGS=`echo "$CPPFLAGS" | \
7613 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7614 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7619 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7620 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7627 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7628 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7638 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7640 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7641 && test -z "${cf_tst_cflags}" \
7642 && cf_fix_cppflags=no
7647 if test -n "$cf_new_cflags" ; then
7649 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7650 CFLAGS="${CFLAGS}$cf_new_cflags"
7654 if test -n "$cf_new_cppflags" ; then
7656 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7657 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7661 if test -n "$cf_new_extra_cppflags" ; then
7663 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7664 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7671 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7673 for cf_add_1lib in $cf_add_0lib; do
7674 for cf_add_2lib in $cf_add_libs; do
7675 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7680 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7684 cf_with_pcre2_ok=yes; break
7692 cf_with_pcre2_ok=yes || { { echo "$as_me:7692: error: Cannot find PCRE2 library" >&5
7693 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7694 { (exit 1); exit 1; }; }
7696 cat >>confdefs.h <<\EOF
7697 #define HAVE_LIB_PCRE2 1
7700 # if pkgconfig gave no results, look for the libraries directly
7702 (*pcre2-posix*|*pcreposix*)
7705 echo "$as_me:7705: checking for regcomp in -lpcre2-posix" >&5
7706 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7707 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-lpcre2-posix $LIBS"
7712 cat >"conftest.$ac_ext" <<_ACEOF
7713 #line 7713 "configure"
7714 #include "confdefs.h"
7716 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7731 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7732 if { (eval echo "$as_me:7732: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>&5
7735 echo "$as_me:7735: \$? = $ac_status" >&5
7736 (exit "$ac_status"); } &&
7737 { ac_try='test -s "conftest$ac_exeext"'
7738 { (eval echo "$as_me:7738: \"$ac_try\"") >&5
7741 echo "$as_me:7741: \$? = $ac_status" >&5
7742 (exit "$ac_status"); }; }; then
7743 ac_cv_lib_pcre2_posix_regcomp=yes
7745 echo "$as_me: failed program was:" >&5
7746 cat "conftest.$ac_ext" >&5
7747 ac_cv_lib_pcre2_posix_regcomp=no
7749 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7750 LIBS=$ac_check_lib_save_LIBS
7752 echo "$as_me:7752: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7753 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7754 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7759 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7761 for cf_add_1lib in $cf_add_0lib; do
7762 for cf_add_2lib in $cf_add_libs; do
7763 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7768 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7773 echo "$as_me:7773: checking for regcomp in -lpcreposix" >&5
7774 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7775 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lpcreposix $LIBS"
7780 cat >"conftest.$ac_ext" <<_ACEOF
7781 #line 7781 "configure"
7782 #include "confdefs.h"
7784 /* Override any gcc2 internal prototype to avoid an error. */
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7799 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7800 if { (eval echo "$as_me:7800: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>&5
7803 echo "$as_me:7803: \$? = $ac_status" >&5
7804 (exit "$ac_status"); } &&
7805 { ac_try='test -s "conftest$ac_exeext"'
7806 { (eval echo "$as_me:7806: \"$ac_try\"") >&5
7809 echo "$as_me:7809: \$? = $ac_status" >&5
7810 (exit "$ac_status"); }; }; then
7811 ac_cv_lib_pcreposix_regcomp=yes
7813 echo "$as_me: failed program was:" >&5
7814 cat "conftest.$ac_ext" >&5
7815 ac_cv_lib_pcreposix_regcomp=no
7817 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7818 LIBS=$ac_check_lib_save_LIBS
7820 echo "$as_me:7820: result: $ac_cv_lib_pcreposix_regcomp" >&5
7821 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7822 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7827 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7829 for cf_add_1lib in $cf_add_0lib; do
7830 for cf_add_2lib in $cf_add_libs; do
7831 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7836 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7841 { { echo "$as_me:7841: error: Cannot find PCRE2 POSIX library" >&5
7842 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7843 { (exit 1); exit 1; }; }
7851 # either way, check for the library header files
7853 for ac_header in pcre2posix.h pcreposix.h
7855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 echo "$as_me:7856: checking for $ac_header" >&5
7857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >"conftest.$ac_ext" <<_ACEOF
7862 #line 7862 "configure"
7863 #include "confdefs.h"
7864 #include <$ac_header>
7866 if { (eval echo "$as_me:7866: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7867 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7869 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 (exit "$ac_status"); } >/dev/null; then
7874 if test -s conftest.err; then
7875 ac_cpp_err=$ac_c_preproc_warn_flag
7882 if test -z "$ac_cpp_err"; then
7883 eval "$as_ac_Header=yes"
7885 echo "$as_me: failed program was:" >&5
7886 cat "conftest.$ac_ext" >&5
7887 eval "$as_ac_Header=no"
7889 rm -f conftest.err "conftest.$ac_ext"
7891 echo "$as_me:7891: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7893 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7894 cat >>confdefs.h <<EOF
7895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901 for ac_func in PCRE2regcomp
7903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7904 echo "$as_me:7904: checking for $ac_func" >&5
7905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7906 if eval "test \"\${$as_ac_var+set}\" = set"; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >"conftest.$ac_ext" <<_ACEOF
7910 #line 7910 "configure"
7911 #include "confdefs.h"
7912 #define $ac_func autoconf_temporary
7913 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7920 /* We use char because int might match the return type of a gcc2
7921 builtin and then its argument prototype would still apply. */
7922 char $ac_func (void);
7928 /* The GNU C library defines stubs for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7932 #error found stub for $ac_func
7940 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7941 if { (eval echo "$as_me:7941: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:7944: \$? = $ac_status" >&5
7945 (exit "$ac_status"); } &&
7946 { ac_try='test -s "conftest$ac_exeext"'
7947 { (eval echo "$as_me:7947: \"$ac_try\"") >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 (exit "$ac_status"); }; }; then
7952 eval "$as_ac_var=yes"
7954 echo "$as_me: failed program was:" >&5
7955 cat "conftest.$ac_ext" >&5
7956 eval "$as_ac_var=no"
7958 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7960 echo "$as_me:7960: result: `eval echo '${'"$as_ac_var"'}'`" >&5
7961 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
7962 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
7963 cat >>confdefs.h <<EOF
7964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7972 # not everyone has "test -c"
7973 if test -c /dev/sysmouse 2>/dev/null ; then
7974 echo "$as_me:7974: checking if you want to use sysmouse" >&5
7975 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7977 # Check whether --with-sysmouse or --without-sysmouse was given.
7978 if test "${with_sysmouse+set}" = set; then
7979 withval="$with_sysmouse"
7980 cf_with_sysmouse=$withval
7982 cf_with_sysmouse=maybe
7984 if test "$cf_with_sysmouse" != no ; then
7985 cat >"conftest.$ac_ext" <<_ACEOF
7986 #line 7986 "configure"
7987 #include "confdefs.h"
7989 #include <osreldate.h>
7990 #if (__FreeBSD_version >= 400017)
7991 #include <sys/consio.h>
7992 #include <sys/fbio.h>
7994 #include <machine/console.h>
8001 struct mouse_info the_mouse;
8002 ioctl(0, CONS_MOUSECTL, &the_mouse);
8008 rm -f "conftest.$ac_objext"
8009 if { (eval echo "$as_me:8009: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>&5
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 (exit "$ac_status"); } &&
8014 { ac_try='test -s "conftest.$ac_objext"'
8015 { (eval echo "$as_me:8015: \"$ac_try\"") >&5
8018 echo "$as_me:8018: \$? = $ac_status" >&5
8019 (exit "$ac_status"); }; }; then
8020 cf_with_sysmouse=yes
8022 echo "$as_me: failed program was:" >&5
8023 cat "conftest.$ac_ext" >&5
8026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8028 echo "$as_me:8028: result: $cf_with_sysmouse" >&5
8029 echo "${ECHO_T}$cf_with_sysmouse" >&6
8030 test "$cf_with_sysmouse" = yes &&
8031 cat >>confdefs.h <<\EOF
8032 #define USE_SYSMOUSE 1
8037 # pretend that ncurses==ncursesw==ncursest
8038 echo "$as_me:8038: checking if you want to disable library suffixes" >&5
8039 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8041 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8042 if test "${enable_lib_suffixes+set}" = set; then
8043 enableval="$enable_lib_suffixes"
8044 test "$enableval" != no && enableval=yes
8045 if test "$enableval" != "yes" ; then
8046 disable_lib_suffixes=yes
8048 disable_lib_suffixes=no
8052 disable_lib_suffixes=no
8055 echo "$as_me:8055: result: $disable_lib_suffixes" >&5
8056 echo "${ECHO_T}$disable_lib_suffixes" >&6
8058 ### If we're building with rpath, try to link non-standard libs that way too.
8059 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8061 echo "$as_me:8061: checking if rpath-hack should be disabled" >&5
8062 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8064 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8065 if test "${enable_rpath_hack+set}" = set; then
8066 enableval="$enable_rpath_hack"
8067 test "$enableval" != no && enableval=yes
8068 if test "$enableval" != "yes" ; then
8069 enable_rpath_hack=no
8071 enable_rpath_hack=yes
8075 enable_rpath_hack=yes
8078 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8079 echo "$as_me:8079: result: $cf_disable_rpath_hack" >&5
8080 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8082 if test "$enable_rpath_hack" = yes ; then
8084 echo "$as_me:8084: checking for updated LDFLAGS" >&5
8085 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8086 if test -n "$LD_RPATH_OPT" ; then
8087 echo "$as_me:8087: result: maybe" >&5
8088 echo "${ECHO_T}maybe" >&6
8092 # Extract the first word of "$ac_prog", so it can be a program name with args.
8093 set dummy $ac_prog; ac_word=$2
8094 echo "$as_me:8094: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8096 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 if test -n "$cf_ldd_prog"; then
8100 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8102 ac_save_IFS=$IFS; IFS=$ac_path_separator
8104 for ac_dir in $ac_dummy; do
8106 test -z "$ac_dir" && ac_dir=.
8107 $as_executable_p "$ac_dir/$ac_word" || continue
8108 ac_cv_prog_cf_ldd_prog="$ac_prog"
8109 echo "$as_me:8109: found $ac_dir/$ac_word" >&5
8115 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8116 if test -n "$cf_ldd_prog"; then
8117 echo "$as_me:8117: result: $cf_ldd_prog" >&5
8118 echo "${ECHO_T}$cf_ldd_prog" >&6
8120 echo "$as_me:8120: result: no" >&5
8121 echo "${ECHO_T}no" >&6
8124 test -n "$cf_ldd_prog" && break
8126 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8128 cf_rpath_list="/usr/lib /lib"
8129 if test "$cf_ldd_prog" != no
8133 cat >"conftest.$ac_ext" <<_ACEOF
8134 #line 8134 "configure"
8135 #include "confdefs.h"
8145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8146 if { (eval echo "$as_me:8146: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>&5
8149 echo "$as_me:8149: \$? = $ac_status" >&5
8150 (exit "$ac_status"); } &&
8151 { ac_try='test -s "conftest$ac_exeext"'
8152 { (eval echo "$as_me:8152: \"$ac_try\"") >&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit "$ac_status"); }; }; then
8157 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8158 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8160 echo "$as_me: failed program was:" >&5
8161 cat "conftest.$ac_ext" >&5
8163 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8165 # If we passed the link-test, but get a "not found" on a given library,
8166 # this could be due to inept reconfiguration of gcc to make it only
8167 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8168 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8169 # /usr/local libraries.
8170 if test -n "$cf_rpath_oops"
8172 for cf_rpath_src in $cf_rpath_oops
8174 for cf_rpath_dir in \
8179 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8181 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8183 echo "${as_me:-configure}:8183: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8185 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8193 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8195 echo "${as_me:-configure}:8195: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8197 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8199 echo "${as_me:-configure}:8199: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8202 for cf_rpath_src in $LDFLAGS
8204 case "$cf_rpath_src" in
8207 # check if this refers to a directory which we will ignore
8209 if test -n "$cf_rpath_list"
8211 for cf_rpath_item in $cf_rpath_list
8213 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8221 if test "$cf_rpath_skip" = no
8223 # transform the option
8224 if test "$LD_RPATH_OPT" = "-R " ; then
8225 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8227 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8230 # if we have not already added this, add it now
8231 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8232 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8234 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8236 echo "${as_me:-configure}:8236: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8238 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8243 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8245 LDFLAGS=$cf_rpath_dst
8247 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8249 echo "${as_me:-configure}:8249: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8251 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8253 echo "${as_me:-configure}:8253: testing ...checking LIBS $LIBS ..." 1>&5
8256 for cf_rpath_src in $LIBS
8258 case "$cf_rpath_src" in
8261 # check if this refers to a directory which we will ignore
8263 if test -n "$cf_rpath_list"
8265 for cf_rpath_item in $cf_rpath_list
8267 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8275 if test "$cf_rpath_skip" = no
8277 # transform the option
8278 if test "$LD_RPATH_OPT" = "-R " ; then
8279 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8281 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8284 # if we have not already added this, add it now
8285 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8286 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8288 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8290 echo "${as_me:-configure}:8290: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8292 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8297 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8301 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8303 echo "${as_me:-configure}:8303: testing ...checked LIBS $LIBS ..." 1>&5
8305 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8307 echo "${as_me:-configure}:8307: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8310 echo "$as_me:8310: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8318 ### Depending on the system, someone may use rpath to build ncurses but not
8319 # want users of the package to rely upon that feature. Give those people an
8320 # option to suppress that detail from EXTRA_LDFLAGS.
8321 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8322 if test -n "$EXTRA_PKG_LDFLAGS"
8324 echo "$as_me:8324: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8325 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8327 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8328 if test "${enable_pkg_ldflags+set}" = set; then
8329 enableval="$enable_pkg_ldflags"
8330 test "$enableval" != no && enableval=yes
8331 if test "$enableval" != "yes" ; then
8332 disable_pkg_ldflags=yes
8334 disable_pkg_ldflags=no
8338 disable_pkg_ldflags=no
8341 echo "$as_me:8341: result: $disable_pkg_ldflags" >&5
8342 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8343 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8346 ###############################################################################
8348 ### use option --with-extra-suffix to append suffix to headers and libraries
8349 echo "$as_me:8349: checking if you wish to append extra suffix to header/library paths" >&5
8350 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8353 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8354 if test "${with_extra_suffix+set}" = set; then
8355 withval="$with_extra_suffix"
8360 EXTRA_SUFFIX=$cf_cv_abi_version
8363 EXTRA_SUFFIX=$withval
8368 echo "$as_me:8368: result: $EXTRA_SUFFIX" >&5
8369 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8371 ### use option --disable-overwrite to leave out the link to -lcurses
8372 echo "$as_me:8372: checking if you wish to install ncurses overwriting curses" >&5
8373 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8375 # Check whether --enable-overwrite or --disable-overwrite was given.
8376 if test "${enable_overwrite+set}" = set; then
8377 enableval="$enable_overwrite"
8378 with_overwrite=$enableval
8380 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8382 echo "$as_me:8382: result: $with_overwrite" >&5
8383 echo "${ECHO_T}$with_overwrite" >&6
8385 echo "$as_me:8385: checking if external terminfo-database is used" >&5
8386 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8388 # Check whether --enable-database or --disable-database was given.
8389 if test "${enable_database+set}" = set; then
8390 enableval="$enable_database"
8391 use_database=$enableval
8395 echo "$as_me:8395: result: $use_database" >&5
8396 echo "${ECHO_T}$use_database" >&6
8400 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8403 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8407 NCURSES_USE_DATABASE=0
8408 if test "$use_database" != no ; then
8409 NCURSES_USE_DATABASE=1
8411 echo "$as_me:8411: checking which terminfo source-file will be installed" >&5
8412 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8414 # Check whether --with-database or --without-database was given.
8415 if test "${with_database+set}" = set; then
8416 withval="$with_database"
8417 TERMINFO_SRC=$withval
8419 echo "$as_me:8419: result: $TERMINFO_SRC" >&5
8420 echo "${ECHO_T}$TERMINFO_SRC" >&6
8422 echo "$as_me:8422: checking whether to use hashed database instead of directory/tree" >&5
8423 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8425 # Check whether --with-hashed-db or --without-hashed-db was given.
8426 if test "${with_hashed_db+set}" = set; then
8427 withval="$with_hashed_db"
8432 echo "$as_me:8432: result: $with_hashed_db" >&5
8433 echo "${ECHO_T}$with_hashed_db" >&6
8438 echo "$as_me:8438: checking for list of fallback descriptions" >&5
8439 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8441 # Check whether --with-fallbacks or --without-fallbacks was given.
8442 if test "${with_fallbacks+set}" = set; then
8443 withval="$with_fallbacks"
8444 with_fallback=$withval
8448 echo "$as_me:8448: result: $with_fallback" >&5
8449 echo "${ECHO_T}$with_fallback" >&6
8451 case ".$with_fallback" in
8456 { echo "$as_me:8456: WARNING: expected a list of terminal descriptions" >&5
8457 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8460 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8464 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8465 # tree for generating the terminal descriptions that will be compiled into the
8466 # library. If your toolchain is old, it may not handle current terminal
8467 # databases. Use configure-options to point to the tools which will be used,
8468 # rather than the first ones found on the $PATH.
8469 if test -n "$ac_tool_prefix"; then
8470 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8471 set dummy ${ac_tool_prefix}tic; ac_word=$2
8472 echo "$as_me:8472: checking for $ac_word" >&5
8473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8474 if test "${ac_cv_prog_TIC+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 if test -n "$TIC"; then
8478 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8480 ac_save_IFS=$IFS; IFS=$ac_path_separator
8482 for ac_dir in $ac_dummy; do
8484 test -z "$ac_dir" && ac_dir=.
8485 $as_executable_p "$ac_dir/$ac_word" || continue
8486 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8487 echo "$as_me:8487: found $ac_dir/$ac_word" >&5
8494 if test -n "$TIC"; then
8495 echo "$as_me:8495: result: $TIC" >&5
8496 echo "${ECHO_T}$TIC" >&6
8498 echo "$as_me:8498: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8503 if test -z "$ac_cv_prog_TIC"; then
8505 # Extract the first word of "tic", so it can be a program name with args.
8506 set dummy tic; ac_word=$2
8507 echo "$as_me:8507: checking for $ac_word" >&5
8508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8509 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 if test -n "$ac_ct_TIC"; then
8513 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8515 ac_save_IFS=$IFS; IFS=$ac_path_separator
8517 for ac_dir in $ac_dummy; do
8519 test -z "$ac_dir" && ac_dir=.
8520 $as_executable_p "$ac_dir/$ac_word" || continue
8521 ac_cv_prog_ac_ct_TIC="tic"
8522 echo "$as_me:8522: found $ac_dir/$ac_word" >&5
8528 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8529 if test -n "$ac_ct_TIC"; then
8530 echo "$as_me:8530: result: $ac_ct_TIC" >&5
8531 echo "${ECHO_T}$ac_ct_TIC" >&6
8533 echo "$as_me:8533: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8539 TIC="$ac_cv_prog_TIC"
8542 if test -n "$ac_tool_prefix"; then
8543 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8545 echo "$as_me:8545: checking for $ac_word" >&5
8546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8547 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 if test -n "$INFOCMP"; then
8551 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8553 ac_save_IFS=$IFS; IFS=$ac_path_separator
8555 for ac_dir in $ac_dummy; do
8557 test -z "$ac_dir" && ac_dir=.
8558 $as_executable_p "$ac_dir/$ac_word" || continue
8559 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8560 echo "$as_me:8560: found $ac_dir/$ac_word" >&5
8566 INFOCMP=$ac_cv_prog_INFOCMP
8567 if test -n "$INFOCMP"; then
8568 echo "$as_me:8568: result: $INFOCMP" >&5
8569 echo "${ECHO_T}$INFOCMP" >&6
8571 echo "$as_me:8571: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8576 if test -z "$ac_cv_prog_INFOCMP"; then
8577 ac_ct_INFOCMP=$INFOCMP
8578 # Extract the first word of "infocmp", so it can be a program name with args.
8579 set dummy infocmp; ac_word=$2
8580 echo "$as_me:8580: checking for $ac_word" >&5
8581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8582 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 if test -n "$ac_ct_INFOCMP"; then
8586 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8588 ac_save_IFS=$IFS; IFS=$ac_path_separator
8590 for ac_dir in $ac_dummy; do
8592 test -z "$ac_dir" && ac_dir=.
8593 $as_executable_p "$ac_dir/$ac_word" || continue
8594 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8595 echo "$as_me:8595: found $ac_dir/$ac_word" >&5
8601 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8602 if test -n "$ac_ct_INFOCMP"; then
8603 echo "$as_me:8603: result: $ac_ct_INFOCMP" >&5
8604 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8606 echo "$as_me:8606: result: no" >&5
8607 echo "${ECHO_T}no" >&6
8610 INFOCMP=$ac_ct_INFOCMP
8612 INFOCMP="$ac_cv_prog_INFOCMP"
8615 if test -n "$FALLBACK_LIST"
8618 # Check whether --with-tic-path or --without-tic-path was given.
8619 if test "${with_tic_path+set}" = set; then
8620 withval="$with_tic_path"
8621 echo "$as_me:8621: checking for tic program for fallbacks" >&5
8622 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8624 echo "$as_me:8624: result: $TIC" >&5
8625 echo "${ECHO_T}$TIC" >&6
8627 if test "x$prefix" != xNONE; then
8628 cf_path_syntax="$prefix"
8630 cf_path_syntax="$ac_default_prefix"
8638 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8640 (.\$\{*prefix\}*|.\$\{*dir\}*)
8644 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8649 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8652 { { echo "$as_me:8652: error: expected a pathname, not \"$TIC\"" >&5
8653 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8654 { (exit 1); exit 1; }; }
8660 test -z "$TIC" && TIC="tic"
8661 for ac_prog in $TIC tic
8663 # Extract the first word of "$ac_prog", so it can be a program name with args.
8664 set dummy $ac_prog; ac_word=$2
8665 echo "$as_me:8665: checking for $ac_word" >&5
8666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8667 if test "${ac_cv_path_TIC+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8675 ac_save_IFS=$IFS; IFS=$ac_path_separator
8676 ac_dummy="$PATH:/usr/local/ncurses/bin"
8677 for ac_dir in $ac_dummy; do
8679 test -z "$ac_dir" && ac_dir=.
8680 if $as_executable_p "$ac_dir/$ac_word"; then
8681 ac_cv_path_TIC="$ac_dir/$ac_word"
8682 echo "$as_me:8682: found $ac_dir/$ac_word" >&5
8692 if test -n "$TIC"; then
8693 echo "$as_me:8693: result: $TIC" >&5
8694 echo "${ECHO_T}$TIC" >&6
8696 echo "$as_me:8696: result: no" >&5
8697 echo "${ECHO_T}no" >&6
8700 test -n "$TIC" && break
8702 test -n "$TIC" || TIC="$TIC"
8706 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8707 for cf_temp in $ac_cv_path_TIC
8709 if test -z "$cf_path_prog" ; then
8710 if test "$with_full_paths" = yes ; then
8712 if test "x$prefix" != xNONE; then
8713 cf_path_syntax="$prefix"
8715 cf_path_syntax="$ac_default_prefix"
8723 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8725 (.\$\{*prefix\}*|.\$\{*dir\}*)
8726 eval cf_temp="$cf_temp"
8729 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8734 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8741 cf_path_prog="$cf_temp"
8743 cf_path_prog="`basename "$cf_temp"`"
8745 elif test -z "$cf_path_args" ; then
8746 cf_path_args="$cf_temp"
8748 cf_path_args="$cf_path_args $cf_temp"
8753 if test -n "$cf_path_prog" ; then
8755 echo "${as_me:-configure}:8755: testing defining path for ${cf_path_prog} ..." 1>&5
8757 cat >>confdefs.h <<EOF
8758 #define TIC_PATH "$cf_path_prog"
8761 test -n "$cf_path_args" &&
8762 cat >>confdefs.h <<EOF
8763 #define TIC_ARGS "$cf_path_args"
8770 { echo "$as_me:8770: WARNING: no tic program found for fallbacks" >&5
8771 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8776 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8777 if test "${with_infocmp_path+set}" = set; then
8778 withval="$with_infocmp_path"
8779 echo "$as_me:8779: checking for infocmp program for fallbacks" >&5
8780 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8782 echo "$as_me:8782: result: $INFOCMP" >&5
8783 echo "${ECHO_T}$INFOCMP" >&6
8785 if test "x$prefix" != xNONE; then
8786 cf_path_syntax="$prefix"
8788 cf_path_syntax="$ac_default_prefix"
8796 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8798 (.\$\{*prefix\}*|.\$\{*dir\}*)
8799 eval INFOCMP="$INFOCMP"
8802 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8807 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8810 { { echo "$as_me:8810: error: expected a pathname, not \"$INFOCMP\"" >&5
8811 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8812 { (exit 1); exit 1; }; }
8818 test -z "$INFOCMP" && INFOCMP="infocmp"
8819 for ac_prog in $INFOCMP infocmp
8821 # Extract the first word of "$ac_prog", so it can be a program name with args.
8822 set dummy $ac_prog; ac_word=$2
8823 echo "$as_me:8823: checking for $ac_word" >&5
8824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8825 if test "${ac_cv_path_INFOCMP+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8833 ac_save_IFS=$IFS; IFS=$ac_path_separator
8834 ac_dummy="$PATH:/usr/local/ncurses/bin"
8835 for ac_dir in $ac_dummy; do
8837 test -z "$ac_dir" && ac_dir=.
8838 if $as_executable_p "$ac_dir/$ac_word"; then
8839 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8840 echo "$as_me:8840: found $ac_dir/$ac_word" >&5
8848 INFOCMP=$ac_cv_path_INFOCMP
8850 if test -n "$INFOCMP"; then
8851 echo "$as_me:8851: result: $INFOCMP" >&5
8852 echo "${ECHO_T}$INFOCMP" >&6
8854 echo "$as_me:8854: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8858 test -n "$INFOCMP" && break
8860 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8864 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8865 for cf_temp in $ac_cv_path_INFOCMP
8867 if test -z "$cf_path_prog" ; then
8868 if test "$with_full_paths" = yes ; then
8870 if test "x$prefix" != xNONE; then
8871 cf_path_syntax="$prefix"
8873 cf_path_syntax="$ac_default_prefix"
8881 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8883 (.\$\{*prefix\}*|.\$\{*dir\}*)
8884 eval cf_temp="$cf_temp"
8887 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8892 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8899 cf_path_prog="$cf_temp"
8901 cf_path_prog="`basename "$cf_temp"`"
8903 elif test -z "$cf_path_args" ; then
8904 cf_path_args="$cf_temp"
8906 cf_path_args="$cf_path_args $cf_temp"
8911 if test -n "$cf_path_prog" ; then
8913 echo "${as_me:-configure}:8913: testing defining path for ${cf_path_prog} ..." 1>&5
8915 cat >>confdefs.h <<EOF
8916 #define INFOCMP_PATH "$cf_path_prog"
8919 test -n "$cf_path_args" &&
8920 cat >>confdefs.h <<EOF
8921 #define INFOCMP_ARGS "$cf_path_args"
8926 if test -z "$INFOCMP"
8928 { echo "$as_me:8928: WARNING: no infocmp program found for fallbacks" >&5
8929 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8934 test -z "$TIC" && FALLBACK_LIST=
8935 test -z "$INFOCMP" && FALLBACK_LIST=
8936 if test -z "$FALLBACK_LIST"
8938 { echo "$as_me:8938: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8939 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8944 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8946 echo "$as_me:8946: checking if you want modern xterm or antique" >&5
8947 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8949 # Check whether --with-xterm-new or --without-xterm-new was given.
8950 if test "${with_xterm_new+set}" = set; then
8951 withval="$with_xterm_new"
8952 with_xterm_new=$withval
8956 case "$with_xterm_new" in
8957 (no) with_xterm_new=xterm-old;;
8958 (*) with_xterm_new=xterm-new;;
8960 echo "$as_me:8960: result: $with_xterm_new" >&5
8961 echo "${ECHO_T}$with_xterm_new" >&6
8962 WHICH_XTERM=$with_xterm_new
8964 echo "$as_me:8964: checking if xterm backspace sends BS or DEL" >&5
8965 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8967 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8968 if test "${with_xterm_kbs+set}" = set; then
8969 withval="$with_xterm_kbs"
8970 with_xterm_kbs=$withval
8974 case x$with_xterm_kbs in
8975 (xyes|xno|xBS|xbs|x8)
8982 with_xterm_kbs=$withval
8985 echo "$as_me:8985: result: $with_xterm_kbs" >&5
8986 echo "${ECHO_T}$with_xterm_kbs" >&6
8987 XTERM_KBS=$with_xterm_kbs
8990 if test "$use_database" = no ; then
8991 TERMINFO="${datadir}/terminfo"
8995 echo "$as_me:8995: checking for list of terminfo directories" >&5
8996 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8998 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8999 if test "${with_terminfo_dirs+set}" = set; then
9000 withval="$with_terminfo_dirs"
9003 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9005 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9007 for cf_src_path in $withval
9010 if test "x$prefix" != xNONE; then
9011 cf_path_syntax="$prefix"
9013 cf_path_syntax="$ac_default_prefix"
9016 case ".$cf_src_path" in
9021 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9023 (.\$\{*prefix\}*|.\$\{*dir\}*)
9024 eval cf_src_path="$cf_src_path"
9025 case ".$cf_src_path" in
9027 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9032 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9035 { { echo "$as_me:9035: error: expected a pathname, not \"$cf_src_path\"" >&5
9036 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9037 { (exit 1); exit 1; }; }
9041 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9042 cf_dst_path="${cf_dst_path}${cf_src_path}"
9046 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9047 # so we have to check/work around. We do prefer the result of "eval"...
9048 eval cf_dst_eval="$cf_dst_path"
9049 case "x$cf_dst_eval" in
9051 TERMINFO_DIRS=$cf_dst_path
9054 TERMINFO_DIRS="$cf_dst_eval"
9058 echo "$as_me:9058: result: $TERMINFO_DIRS" >&5
9059 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9060 test -n "$TERMINFO_DIRS" &&
9061 cat >>confdefs.h <<EOF
9062 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9065 case "x$TERMINFO" in
9067 { echo "$as_me:9067: WARNING: ignoring non-directory/file TERMINFO value" >&5
9068 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9073 echo "$as_me:9073: checking for default terminfo directory" >&5
9074 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9076 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9077 if test "${with_default_terminfo_dir+set}" = set; then
9078 withval="$with_default_terminfo_dir"
9081 withval="${TERMINFO:-${datadir}/terminfo}"
9082 fi; if test -n "${datadir}/terminfo" ; then
9084 if test "x$prefix" != xNONE; then
9085 cf_path_syntax="$prefix"
9087 cf_path_syntax="$ac_default_prefix"
9095 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9097 (.\$\{*prefix\}*|.\$\{*dir\}*)
9098 eval withval="$withval"
9101 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9106 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9109 { { echo "$as_me:9109: error: expected a pathname, not \"$withval\"" >&5
9110 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9111 { (exit 1); exit 1; }; }
9116 eval TERMINFO="$withval"
9118 echo "$as_me:9118: result: $TERMINFO" >&5
9119 echo "${ECHO_T}$TERMINFO" >&6
9121 cat >>confdefs.h <<EOF
9122 #define TERMINFO "$TERMINFO"
9127 ### use option --disable-big-core to make tic run on small machines
9128 ### We need 4Mb, check if we can allocate 50% more than that.
9129 echo "$as_me:9129: checking if big-core option selected" >&5
9130 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9132 # Check whether --enable-big-core or --disable-big-core was given.
9133 if test "${enable_big_core+set}" = set; then
9134 enableval="$enable_big_core"
9135 with_big_core=$enableval
9137 if test "$cross_compiling" = yes; then
9140 cat >"conftest.$ac_ext" <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9147 unsigned long n = 6000000L;
9148 char *s = malloc(n);
9151 ${cf_cv_main_return:-return}(s == 0);
9154 rm -f "conftest$ac_exeext"
9155 if { (eval echo "$as_me:9155: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9160 { (eval echo "$as_me:9160: \"$ac_try\"") >&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit "$ac_status"); }; }; then
9167 echo "$as_me: program exited with status $ac_status" >&5
9168 echo "$as_me: failed program was:" >&5
9169 cat "conftest.$ac_ext" >&5
9172 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9175 echo "$as_me:9175: result: $with_big_core" >&5
9176 echo "${ECHO_T}$with_big_core" >&6
9177 test "x$with_big_core" = "xyes" &&
9178 cat >>confdefs.h <<\EOF
9179 #define HAVE_BIG_CORE 1
9182 ### ISO C only guarantees 512-char strings, we have tables which load faster
9183 ### when constructed using "big" strings. More than the C compiler, the awk
9184 ### program is a limit on most vendor UNIX systems. Check that we can build.
9185 echo "$as_me:9185: checking if big-strings option selected" >&5
9186 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9188 # Check whether --enable-big-strings or --disable-big-strings was given.
9189 if test "${enable_big_strings+set}" = set; then
9190 enableval="$enable_big_strings"
9191 with_big_strings=$enableval
9196 eval with_big_strings=no
9199 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9200 | $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
9201 eval with_big_strings=yes
9203 eval with_big_strings=no
9209 echo "$as_me:9209: result: $with_big_strings" >&5
9210 echo "${ECHO_T}$with_big_strings" >&6
9213 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9215 ### use option --enable-termcap to compile in the termcap fallback support
9216 echo "$as_me:9216: checking if you want termcap-fallback support" >&5
9217 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9219 # Check whether --enable-termcap or --disable-termcap was given.
9220 if test "${enable_termcap+set}" = set; then
9221 enableval="$enable_termcap"
9222 with_termcap=$enableval
9226 echo "$as_me:9226: result: $with_termcap" >&5
9227 echo "${ECHO_T}$with_termcap" >&6
9229 NCURSES_USE_TERMCAP=0
9230 if test "x$with_termcap" != "xyes" ; then
9231 if test "$use_database" = no ; then
9232 if test -z "$with_fallback" ; then
9233 { { echo "$as_me:9233: error: You have disabled the database w/o specifying fallbacks" >&5
9234 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9235 { (exit 1); exit 1; }; }
9239 cat >>confdefs.h <<\EOF
9240 #define PURE_TERMINFO 1
9245 if test "$with_ticlib" != no ; then
9246 { { echo "$as_me:9246: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9247 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9248 { (exit 1); exit 1; }; }
9251 NCURSES_USE_TERMCAP=1
9252 echo "$as_me:9252: checking for list of termcap files" >&5
9253 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9255 # Check whether --with-termpath or --without-termpath was given.
9256 if test "${with_termpath+set}" = set; then
9257 withval="$with_termpath"
9260 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9262 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9264 for cf_src_path in $withval
9267 if test "x$prefix" != xNONE; then
9268 cf_path_syntax="$prefix"
9270 cf_path_syntax="$ac_default_prefix"
9273 case ".$cf_src_path" in
9278 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9280 (.\$\{*prefix\}*|.\$\{*dir\}*)
9281 eval cf_src_path="$cf_src_path"
9282 case ".$cf_src_path" in
9284 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9289 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9292 { { echo "$as_me:9292: error: expected a pathname, not \"$cf_src_path\"" >&5
9293 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9294 { (exit 1); exit 1; }; }
9298 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9299 cf_dst_path="${cf_dst_path}${cf_src_path}"
9303 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9304 # so we have to check/work around. We do prefer the result of "eval"...
9305 eval cf_dst_eval="$cf_dst_path"
9306 case "x$cf_dst_eval" in
9308 TERMPATH=$cf_dst_path
9311 TERMPATH="$cf_dst_eval"
9315 echo "$as_me:9315: result: $TERMPATH" >&5
9316 echo "${ECHO_T}$TERMPATH" >&6
9317 test -n "$TERMPATH" &&
9318 cat >>confdefs.h <<EOF
9319 #define TERMPATH "$TERMPATH"
9322 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9323 echo "$as_me:9323: checking if fast termcap-loader is needed" >&5
9324 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9326 # Check whether --enable-getcap or --disable-getcap was given.
9327 if test "${enable_getcap+set}" = set; then
9328 enableval="$enable_getcap"
9329 with_getcap=$enableval
9333 echo "$as_me:9333: result: $with_getcap" >&5
9334 echo "${ECHO_T}$with_getcap" >&6
9335 test "x$with_getcap" = "xyes" &&
9336 cat >>confdefs.h <<\EOF
9337 #define USE_GETCAP 1
9340 echo "$as_me:9340: checking if translated termcaps will be cached in ~/.terminfo" >&5
9341 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9343 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9344 if test "${enable_getcap_cache+set}" = set; then
9345 enableval="$enable_getcap_cache"
9346 with_getcap_cache=$enableval
9348 with_getcap_cache=no
9350 echo "$as_me:9350: result: $with_getcap_cache" >&5
9351 echo "${ECHO_T}$with_getcap_cache" >&6
9352 test "x$with_getcap_cache" = "xyes" &&
9353 cat >>confdefs.h <<\EOF
9354 #define USE_GETCAP_CACHE 1
9359 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9360 echo "$as_me:9360: checking if ~/.terminfo is wanted" >&5
9361 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9363 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9364 if test "${enable_home_terminfo+set}" = set; then
9365 enableval="$enable_home_terminfo"
9366 with_home_terminfo=$enableval
9368 with_home_terminfo=yes
9370 echo "$as_me:9370: result: $with_home_terminfo" >&5
9371 echo "${ECHO_T}$with_home_terminfo" >&6
9372 test "x$with_home_terminfo" = "xyes" &&
9373 cat >>confdefs.h <<\EOF
9374 #define USE_HOME_TERMINFO 1
9377 echo "$as_me:9377: checking if you want to permit root to use ncurses environment variables" >&5
9378 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9380 # Check whether --enable-root-environ or --disable-root-environ was given.
9381 if test "${enable_root_environ+set}" = set; then
9382 enableval="$enable_root_environ"
9383 with_root_environ=$enableval
9385 with_root_environ=yes
9387 echo "$as_me:9387: result: $with_root_environ" >&5
9388 echo "${ECHO_T}$with_root_environ" >&6
9389 test "x$with_root_environ" = xyes &&
9390 cat >>confdefs.h <<\EOF
9391 #define USE_ROOT_ENVIRON 1
9394 echo "$as_me:9394: checking if you want to permit setuid programs to access all files" >&5
9395 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9397 # Check whether --enable-root-environ or --disable-root-environ was given.
9398 if test "${enable_root_environ+set}" = set; then
9399 enableval="$enable_root_environ"
9400 with_root_access=$enableval
9402 with_root_access=yes
9404 echo "$as_me:9404: result: $with_root_access" >&5
9405 echo "${ECHO_T}$with_root_access" >&6
9406 test "x$with_root_access" = xyes &&
9407 cat >>confdefs.h <<\EOF
9408 #define USE_ROOT_ACCESS 1
9411 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9412 ### to reduce storage requirements for the terminfo database.
9418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 echo "$as_me:9419: checking for $ac_header" >&5
9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 cat >"conftest.$ac_ext" <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9427 #include <$ac_header>
9429 if { (eval echo "$as_me:9429: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9430 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9432 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 (exit "$ac_status"); } >/dev/null; then
9437 if test -s conftest.err; then
9438 ac_cpp_err=$ac_c_preproc_warn_flag
9445 if test -z "$ac_cpp_err"; then
9446 eval "$as_ac_Header=yes"
9448 echo "$as_me: failed program was:" >&5
9449 cat "conftest.$ac_ext" >&5
9450 eval "$as_ac_Header=no"
9452 rm -f conftest.err "conftest.$ac_ext"
9454 echo "$as_me:9454: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9455 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9456 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9457 cat >>confdefs.h <<EOF
9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:9469: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >"conftest.$ac_ext" <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477 #define $ac_func autoconf_temporary
9478 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487 char $ac_func (void);
9493 /* The GNU C library defines stubs for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9497 #error found stub for $ac_func
9505 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9506 if { (eval echo "$as_me:9506: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9509 echo "$as_me:9509: \$? = $ac_status" >&5
9510 (exit "$ac_status"); } &&
9511 { ac_try='test -s "conftest$ac_exeext"'
9512 { (eval echo "$as_me:9512: \"$ac_try\"") >&5
9515 echo "$as_me:9515: \$? = $ac_status" >&5
9516 (exit "$ac_status"); }; }; then
9517 eval "$as_ac_var=yes"
9519 echo "$as_me: failed program was:" >&5
9520 cat "conftest.$ac_ext" >&5
9521 eval "$as_ac_var=no"
9523 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9525 echo "$as_me:9525: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9526 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9527 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9528 cat >>confdefs.h <<EOF
9529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535 if test "$cross_compiling" = yes ; then
9541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9542 echo "$as_me:9542: checking for $ac_func" >&5
9543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9544 if eval "test \"\${$as_ac_var+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >"conftest.$ac_ext" <<_ACEOF
9548 #line 9548 "configure"
9549 #include "confdefs.h"
9550 #define $ac_func autoconf_temporary
9551 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560 char $ac_func (void);
9566 /* The GNU C library defines stubs for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9570 #error found stub for $ac_func
9578 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9579 if { (eval echo "$as_me:9579: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>&5
9582 echo "$as_me:9582: \$? = $ac_status" >&5
9583 (exit "$ac_status"); } &&
9584 { ac_try='test -s "conftest$ac_exeext"'
9585 { (eval echo "$as_me:9585: \"$ac_try\"") >&5
9588 echo "$as_me:9588: \$? = $ac_status" >&5
9589 (exit "$ac_status"); }; }; then
9590 eval "$as_ac_var=yes"
9592 echo "$as_me: failed program was:" >&5
9593 cat "conftest.$ac_ext" >&5
9594 eval "$as_ac_var=no"
9596 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9598 echo "$as_me:9598: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9600 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9601 cat >>confdefs.h <<EOF
9602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9609 echo "$as_me:9609: checking if link/symlink functions work" >&5
9610 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9611 if test "${cf_cv_link_funcs+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 for cf_func in link symlink ; do
9617 if test "$cross_compiling" = yes; then
9619 eval 'ac_cv_func_'$cf_func'=error'
9621 cat >"conftest.$ac_ext" <<_ACEOF
9622 #line 9622 "configure"
9623 #include "confdefs.h"
9626 #include <sys/types.h>
9627 #include <sys/stat.h>
9628 #ifdef HAVE_UNISTD_H
9634 char *src = "conftest.tmp";
9635 char *dst = "conftest.chk";
9636 struct stat src_sb, dst_sb;
9637 FILE *fp = fopen(src, "w");
9638 if (fp == 0) { fail = 3; } else {
9639 fclose(fp); stat(src, &src_sb);
9640 if ($cf_func(src, dst) < 0) {
9642 } else if (stat(dst, &dst_sb) < 0) {
9645 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
9646 if (diff < 0) diff = -diff;
9647 if (diff > 2) fail = 3;
9651 unlink(dst); unlink(src);
9653 remove(dst); remove(src);
9655 ${cf_cv_main_return:-return} (fail);
9659 rm -f "conftest$ac_exeext"
9660 if { (eval echo "$as_me:9660: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9663 echo "$as_me:9663: \$? = $ac_status" >&5
9664 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9665 { (eval echo "$as_me:9665: \"$ac_try\"") >&5
9668 echo "$as_me:9668: \$? = $ac_status" >&5
9669 (exit "$ac_status"); }; }; then
9671 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9672 eval 'ac_cv_func_'$cf_func'=yes'
9674 echo "$as_me: program exited with status $ac_status" >&5
9675 echo "$as_me: failed program was:" >&5
9676 cat "conftest.$ac_ext" >&5
9678 eval 'ac_cv_func_'$cf_func'=no'
9680 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9683 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9686 echo "$as_me:9686: result: $cf_cv_link_funcs" >&5
9687 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9688 test "$ac_cv_func_link" = yes &&
9689 cat >>confdefs.h <<\EOF
9693 test "$ac_cv_func_symlink" = yes &&
9694 cat >>confdefs.h <<\EOF
9695 #define HAVE_SYMLINK 1
9703 # soft links (symbolic links) are useful for some systems where hard links do
9704 # not work, or to make it simpler to copy terminfo trees around.
9705 if test "x$ac_cv_func_symlink" = xyes ; then
9706 echo "$as_me:9706: checking if tic should use symbolic links" >&5
9707 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9709 # Check whether --enable-symlinks or --disable-symlinks was given.
9710 if test "${enable_symlinks+set}" = set; then
9711 enableval="$enable_symlinks"
9712 with_symlinks=$enableval
9716 echo "$as_me:9716: result: $with_symlinks" >&5
9717 echo "${ECHO_T}$with_symlinks" >&6
9720 # If we have hard links and did not choose to use soft links instead, there is
9721 # no reason to make this choice optional - use the hard links.
9722 if test "$with_symlinks" = no ; then
9723 echo "$as_me:9723: checking if tic should use hard links" >&5
9724 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9725 if test "x$ac_cv_func_link" = xyes ; then
9730 echo "$as_me:9730: result: $with_links" >&5
9731 echo "${ECHO_T}$with_links" >&6
9734 test "x$with_links" = xyes &&
9735 cat >>confdefs.h <<\EOF
9739 test "x$with_symlinks" = xyes &&
9740 cat >>confdefs.h <<\EOF
9741 #define USE_SYMLINKS 1
9744 ### use option --enable-broken-linker to force on use of broken-linker support
9746 echo "$as_me:9746: checking if you want broken-linker support code" >&5
9747 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9749 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9750 if test "${enable_broken_linker+set}" = set; then
9751 enableval="$enable_broken_linker"
9752 with_broken_linker=$enableval
9754 with_broken_linker=no
9756 echo "$as_me:9756: result: $with_broken_linker" >&5
9757 echo "${ECHO_T}$with_broken_linker" >&6
9759 : "${BROKEN_LINKER:=0}"
9760 if test "x$with_broken_linker" = xyes ; then
9762 cat >>confdefs.h <<\EOF
9763 #define BROKEN_LINKER 1
9769 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9770 echo "$as_me:9770: checking if tputs should process BSD-style prefix padding" >&5
9771 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9773 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9774 if test "${enable_bsdpad+set}" = set; then
9775 enableval="$enable_bsdpad"
9776 with_bsdpad=$enableval
9780 echo "$as_me:9780: result: $with_bsdpad" >&5
9781 echo "${ECHO_T}$with_bsdpad" >&6
9782 test "x$with_bsdpad" = xyes &&
9783 cat >>confdefs.h <<\EOF
9787 ### use option --enable-widec to turn on use of wide-character support
9796 # Check to define _XOPEN_SOURCE "automatically"
9797 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9799 echo "$as_me:9799: checking if the POSIX test-macros are already defined" >&5
9800 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9801 if test "${cf_cv_posix_visible+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 cat >"conftest.$ac_ext" <<_ACEOF
9806 #line 9806 "configure"
9807 #include "confdefs.h"
9813 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9814 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9815 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9816 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9817 #error conflicting symbols found
9824 rm -f "conftest.$ac_objext"
9825 if { (eval echo "$as_me:9825: \"$ac_compile\"") >&5
9826 (eval $ac_compile) 2>&5
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit "$ac_status"); } &&
9830 { ac_try='test -s "conftest.$ac_objext"'
9831 { (eval echo "$as_me:9831: \"$ac_try\"") >&5
9834 echo "$as_me:9834: \$? = $ac_status" >&5
9835 (exit "$ac_status"); }; }; then
9836 cf_cv_posix_visible=no
9838 echo "$as_me: failed program was:" >&5
9839 cat "conftest.$ac_ext" >&5
9840 cf_cv_posix_visible=yes
9842 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9845 echo "$as_me:9845: result: $cf_cv_posix_visible" >&5
9846 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9848 if test "$cf_cv_posix_visible" = no; then
9851 cf_POSIX_C_SOURCE=199506L
9856 cf_xopen_source="-D_ALL_SOURCE"
9862 cf_xopen_source="-D_APPLE_C_SOURCE"
9865 cf_xopen_source="-D_DARWIN_C_SOURCE"
9868 (freebsd*|dragonfly*|midnightbsd*)
9869 # 5.x headers associate
9870 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9871 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9872 cf_POSIX_C_SOURCE=200112L
9874 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9877 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9880 cf_xopen_source="-D_HPUX_SOURCE"
9883 cf_xopen_source="-D_SGI_SOURCE"
9886 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9888 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9890 echo "$as_me:9890: checking if this is the GNU C library" >&5
9891 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9892 if test "${cf_cv_gnu_library+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >"conftest.$ac_ext" <<_ACEOF
9897 #line 9897 "configure"
9898 #include "confdefs.h"
9899 #include <sys/types.h>
9904 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9906 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9909 # error not GNU C library
9915 rm -f "conftest.$ac_objext"
9916 if { (eval echo "$as_me:9916: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>&5
9919 echo "$as_me:9919: \$? = $ac_status" >&5
9920 (exit "$ac_status"); } &&
9921 { ac_try='test -s "conftest.$ac_objext"'
9922 { (eval echo "$as_me:9922: \"$ac_try\"") >&5
9925 echo "$as_me:9925: \$? = $ac_status" >&5
9926 (exit "$ac_status"); }; }; then
9927 cf_cv_gnu_library=yes
9929 echo "$as_me: failed program was:" >&5
9930 cat "conftest.$ac_ext" >&5
9931 cf_cv_gnu_library=no
9933 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9936 echo "$as_me:9936: result: $cf_cv_gnu_library" >&5
9937 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9939 if test x$cf_cv_gnu_library = xyes; then
9941 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9942 # was changed to help a little. newlib incorporated the change about 4
9944 echo "$as_me:9944: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9945 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9946 if test "${cf_cv_gnu_library_219+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9953 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9955 cat >"conftest.$ac_ext" <<_ACEOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9963 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9965 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9968 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9974 rm -f "conftest.$ac_objext"
9975 if { (eval echo "$as_me:9975: \"$ac_compile\"") >&5
9976 (eval $ac_compile) 2>&5
9978 echo "$as_me:9978: \$? = $ac_status" >&5
9979 (exit "$ac_status"); } &&
9980 { ac_try='test -s "conftest.$ac_objext"'
9981 { (eval echo "$as_me:9981: \"$ac_try\"") >&5
9984 echo "$as_me:9984: \$? = $ac_status" >&5
9985 (exit "$ac_status"); }; }; then
9986 cf_cv_gnu_library_219=yes
9988 echo "$as_me: failed program was:" >&5
9989 cat "conftest.$ac_ext" >&5
9990 cf_cv_gnu_library_219=no
9992 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9996 echo "$as_me:9996: result: $cf_cv_gnu_library_219" >&5
9997 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9999 if test "x$cf_cv_gnu_library_219" = xyes; then
10000 cf_save="$CPPFLAGS"
10001 echo "$as_me:10001: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10002 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10003 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cf_new_extra_cppflags=
10012 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10014 case "$cf_fix_cppflags" in
10016 case "$cf_add_cflags" in
10017 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10018 case "$cf_add_cflags" in
10020 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10022 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10023 && test -z "${cf_tst_cflags}" \
10024 && cf_fix_cppflags=yes
10026 if test "$cf_fix_cppflags" = yes ; then
10028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10032 elif test "${cf_tst_cflags}" = "\"'" ; then
10034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10041 case "$CPPFLAGS" in
10045 case "$cf_add_cflags" in
10047 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10049 CPPFLAGS=`echo "$CPPFLAGS" | \
10050 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10051 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10056 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10057 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10064 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10065 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10072 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10073 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10075 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10077 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10078 && test -z "${cf_tst_cflags}" \
10079 && cf_fix_cppflags=no
10084 if test -n "$cf_new_cflags" ; then
10086 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10087 CFLAGS="${CFLAGS}$cf_new_cflags"
10091 if test -n "$cf_new_cppflags" ; then
10093 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10094 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10098 if test -n "$cf_new_extra_cppflags" ; then
10100 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10101 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10105 cat >"conftest.$ac_ext" <<_ACEOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10109 #include <limits.h>
10110 #include <sys/types.h>
10116 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10119 # error GNU C library is too old
10125 rm -f "conftest.$ac_objext"
10126 if { (eval echo "$as_me:10126: \"$ac_compile\"") >&5
10127 (eval $ac_compile) 2>&5
10129 echo "$as_me:10129: \$? = $ac_status" >&5
10130 (exit "$ac_status"); } &&
10131 { ac_try='test -s "conftest.$ac_objext"'
10132 { (eval echo "$as_me:10132: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:10135: \$? = $ac_status" >&5
10136 (exit "$ac_status"); }; }; then
10137 cf_cv_gnu_dftsrc_219=yes
10139 echo "$as_me: failed program was:" >&5
10140 cat "conftest.$ac_ext" >&5
10141 cf_cv_gnu_dftsrc_219=no
10143 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10146 echo "$as_me:10146: result: $cf_cv_gnu_dftsrc_219" >&5
10147 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10148 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10150 cf_cv_gnu_dftsrc_219=maybe
10153 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10155 echo "$as_me:10155: checking if we must define _GNU_SOURCE" >&5
10156 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10157 if test "${cf_cv_gnu_source+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 cat >"conftest.$ac_ext" <<_ACEOF
10162 #line 10162 "configure"
10163 #include "confdefs.h"
10164 #include <sys/types.h>
10169 #ifndef _XOPEN_SOURCE
10170 #error expected _XOPEN_SOURCE to be defined
10176 rm -f "conftest.$ac_objext"
10177 if { (eval echo "$as_me:10177: \"$ac_compile\"") >&5
10178 (eval $ac_compile) 2>&5
10180 echo "$as_me:10180: \$? = $ac_status" >&5
10181 (exit "$ac_status"); } &&
10182 { ac_try='test -s "conftest.$ac_objext"'
10183 { (eval echo "$as_me:10183: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:10186: \$? = $ac_status" >&5
10187 (exit "$ac_status"); }; }; then
10188 cf_cv_gnu_source=no
10190 echo "$as_me: failed program was:" >&5
10191 cat "conftest.$ac_ext" >&5
10192 cf_save="$CPPFLAGS"
10197 cf_new_extra_cppflags=
10199 for cf_add_cflags in -D_GNU_SOURCE
10201 case "$cf_fix_cppflags" in
10203 case "$cf_add_cflags" in
10204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10205 case "$cf_add_cflags" in
10207 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10210 && test -z "${cf_tst_cflags}" \
10211 && cf_fix_cppflags=yes
10213 if test "$cf_fix_cppflags" = yes ; then
10215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10219 elif test "${cf_tst_cflags}" = "\"'" ; then
10221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10228 case "$CPPFLAGS" in
10232 case "$cf_add_cflags" in
10234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10236 CPPFLAGS=`echo "$CPPFLAGS" | \
10237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10262 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10265 && test -z "${cf_tst_cflags}" \
10266 && cf_fix_cppflags=no
10271 if test -n "$cf_new_cflags" ; then
10273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10274 CFLAGS="${CFLAGS}$cf_new_cflags"
10278 if test -n "$cf_new_cppflags" ; then
10280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10285 if test -n "$cf_new_extra_cppflags" ; then
10287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10292 cat >"conftest.$ac_ext" <<_ACEOF
10293 #line 10293 "configure"
10294 #include "confdefs.h"
10295 #include <sys/types.h>
10300 #ifdef _XOPEN_SOURCE
10301 #error expected _XOPEN_SOURCE to be undefined
10307 rm -f "conftest.$ac_objext"
10308 if { (eval echo "$as_me:10308: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10311 echo "$as_me:10311: \$? = $ac_status" >&5
10312 (exit "$ac_status"); } &&
10313 { ac_try='test -s "conftest.$ac_objext"'
10314 { (eval echo "$as_me:10314: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:10317: \$? = $ac_status" >&5
10318 (exit "$ac_status"); }; }; then
10319 cf_cv_gnu_source=no
10321 echo "$as_me: failed program was:" >&5
10322 cat "conftest.$ac_ext" >&5
10323 cf_cv_gnu_source=yes
10325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10326 CPPFLAGS="$cf_save"
10329 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10332 echo "$as_me:10332: result: $cf_cv_gnu_source" >&5
10333 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10335 if test "$cf_cv_gnu_source" = yes
10337 echo "$as_me:10337: checking if we should also define _DEFAULT_SOURCE" >&5
10338 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10339 if test "${cf_cv_default_source+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10344 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10346 cat >"conftest.$ac_ext" <<_ACEOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10349 #include <sys/types.h>
10354 #ifdef _DEFAULT_SOURCE
10355 #error expected _DEFAULT_SOURCE to be undefined
10361 rm -f "conftest.$ac_objext"
10362 if { (eval echo "$as_me:10362: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>&5
10365 echo "$as_me:10365: \$? = $ac_status" >&5
10366 (exit "$ac_status"); } &&
10367 { ac_try='test -s "conftest.$ac_objext"'
10368 { (eval echo "$as_me:10368: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10371 echo "$as_me:10371: \$? = $ac_status" >&5
10372 (exit "$ac_status"); }; }; then
10373 cf_cv_default_source=no
10375 echo "$as_me: failed program was:" >&5
10376 cat "conftest.$ac_ext" >&5
10377 cf_cv_default_source=yes
10379 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10382 echo "$as_me:10382: result: $cf_cv_default_source" >&5
10383 echo "${ECHO_T}$cf_cv_default_source" >&6
10384 if test "$cf_cv_default_source" = yes
10387 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10388 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10398 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10401 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10404 if test "$cf_cv_posix_visible" = no; then
10406 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10408 cf_save_CFLAGS="$CFLAGS"
10409 cf_save_CPPFLAGS="$CPPFLAGS"
10411 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10412 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10413 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10415 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10416 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10417 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10419 echo "$as_me:10419: checking if we should define _POSIX_C_SOURCE" >&5
10420 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10421 if test "${cf_cv_posix_c_source+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 echo "${as_me:-configure}:10425: testing if the symbol is already defined go no further ..." 1>&5
10427 cat >"conftest.$ac_ext" <<_ACEOF
10428 #line 10428 "configure"
10429 #include "confdefs.h"
10430 #include <sys/types.h>
10435 #ifndef _POSIX_C_SOURCE
10442 rm -f "conftest.$ac_objext"
10443 if { (eval echo "$as_me:10443: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit "$ac_status"); } &&
10448 { ac_try='test -s "conftest.$ac_objext"'
10449 { (eval echo "$as_me:10449: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit "$ac_status"); }; }; then
10454 cf_cv_posix_c_source=no
10456 echo "$as_me: failed program was:" >&5
10457 cat "conftest.$ac_ext" >&5
10458 cf_want_posix_source=no
10459 case .$cf_POSIX_C_SOURCE in
10461 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10464 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10465 cf_want_posix_source=yes
10468 cf_want_posix_source=yes
10471 if test "$cf_want_posix_source" = yes ; then
10472 cat >"conftest.$ac_ext" <<_ACEOF
10473 #line 10473 "configure"
10474 #include "confdefs.h"
10475 #include <sys/types.h>
10480 #ifdef _POSIX_SOURCE
10487 rm -f "conftest.$ac_objext"
10488 if { (eval echo "$as_me:10488: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit "$ac_status"); } &&
10493 { ac_try='test -s "conftest.$ac_objext"'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit "$ac_status"); }; }; then
10501 echo "$as_me: failed program was:" >&5
10502 cat "conftest.$ac_ext" >&5
10503 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10505 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10508 echo "${as_me:-configure}:10508: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10510 CFLAGS="$cf_trim_CFLAGS"
10511 CPPFLAGS="$cf_trim_CPPFLAGS"
10513 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10514 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10516 echo "${as_me:-configure}:10516: testing if the second compile does not leave our definition intact error ..." 1>&5
10518 cat >"conftest.$ac_ext" <<_ACEOF
10519 #line 10519 "configure"
10520 #include "confdefs.h"
10521 #include <sys/types.h>
10526 #ifndef _POSIX_C_SOURCE
10533 rm -f "conftest.$ac_objext"
10534 if { (eval echo "$as_me:10534: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10537 echo "$as_me:10537: \$? = $ac_status" >&5
10538 (exit "$ac_status"); } &&
10539 { ac_try='test -s "conftest.$ac_objext"'
10540 { (eval echo "$as_me:10540: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:10543: \$? = $ac_status" >&5
10544 (exit "$ac_status"); }; }; then
10547 echo "$as_me: failed program was:" >&5
10548 cat "conftest.$ac_ext" >&5
10549 cf_cv_posix_c_source=no
10551 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10552 CFLAGS="$cf_save_CFLAGS"
10553 CPPFLAGS="$cf_save_CPPFLAGS"
10556 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10559 echo "$as_me:10559: result: $cf_cv_posix_c_source" >&5
10560 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10562 if test "$cf_cv_posix_c_source" != no ; then
10563 CFLAGS="$cf_trim_CFLAGS"
10564 CPPFLAGS="$cf_trim_CPPFLAGS"
10569 cf_new_extra_cppflags=
10571 for cf_add_cflags in $cf_cv_posix_c_source
10573 case "$cf_fix_cppflags" in
10575 case "$cf_add_cflags" in
10576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10577 case "$cf_add_cflags" in
10579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10582 && test -z "${cf_tst_cflags}" \
10583 && cf_fix_cppflags=yes
10585 if test "$cf_fix_cppflags" = yes ; then
10587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10591 elif test "${cf_tst_cflags}" = "\"'" ; then
10593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10600 case "$CPPFLAGS" in
10604 case "$cf_add_cflags" in
10606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10608 CPPFLAGS=`echo "$CPPFLAGS" | \
10609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10634 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10637 && test -z "${cf_tst_cflags}" \
10638 && cf_fix_cppflags=no
10643 if test -n "$cf_new_cflags" ; then
10645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10646 CFLAGS="${CFLAGS}$cf_new_cflags"
10650 if test -n "$cf_new_cppflags" ; then
10652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10657 if test -n "$cf_new_extra_cppflags" ; then
10659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10666 fi # cf_cv_posix_visible
10670 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10673 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
10674 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
10675 # Abusing the conformance level is a workaround.
10676 { echo "$as_me:10676: WARNING: this system does not provide usable locale support" >&5
10677 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
10678 cf_xopen_source="-D_BSD_SOURCE"
10679 cf_XOPEN_SOURCE=700
10682 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10683 cf_xopen_source="-D_BSD_SOURCE"
10684 cf_XOPEN_SOURCE=600
10687 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10690 cf_xopen_source="-D_OSF_SOURCE"
10693 cf_xopen_source="-D_QNX_SOURCE"
10696 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10699 cf_xopen_source="-D__EXTENSIONS__"
10700 cf_cv_xopen_source=broken
10702 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10708 echo "$as_me:10708: checking if we should define _XOPEN_SOURCE" >&5
10709 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10710 if test "${cf_cv_xopen_source+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 cat >"conftest.$ac_ext" <<_ACEOF
10715 #line 10715 "configure"
10716 #include "confdefs.h"
10718 #include <stdlib.h>
10719 #include <string.h>
10720 #include <sys/types.h>
10726 #ifndef _XOPEN_SOURCE
10733 rm -f "conftest.$ac_objext"
10734 if { (eval echo "$as_me:10734: \"$ac_compile\"") >&5
10735 (eval $ac_compile) 2>&5
10737 echo "$as_me:10737: \$? = $ac_status" >&5
10738 (exit "$ac_status"); } &&
10739 { ac_try='test -s "conftest.$ac_objext"'
10740 { (eval echo "$as_me:10740: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:10743: \$? = $ac_status" >&5
10744 (exit "$ac_status"); }; }; then
10745 cf_cv_xopen_source=no
10747 echo "$as_me: failed program was:" >&5
10748 cat "conftest.$ac_ext" >&5
10749 cf_save="$CPPFLAGS"
10751 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10752 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10754 cat >"conftest.$ac_ext" <<_ACEOF
10755 #line 10755 "configure"
10756 #include "confdefs.h"
10758 #include <stdlib.h>
10759 #include <string.h>
10760 #include <sys/types.h>
10766 #ifdef _XOPEN_SOURCE
10773 rm -f "conftest.$ac_objext"
10774 if { (eval echo "$as_me:10774: \"$ac_compile\"") >&5
10775 (eval $ac_compile) 2>&5
10777 echo "$as_me:10777: \$? = $ac_status" >&5
10778 (exit "$ac_status"); } &&
10779 { ac_try='test -s "conftest.$ac_objext"'
10780 { (eval echo "$as_me:10780: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:10783: \$? = $ac_status" >&5
10784 (exit "$ac_status"); }; }; then
10785 cf_cv_xopen_source=no
10787 echo "$as_me: failed program was:" >&5
10788 cat "conftest.$ac_ext" >&5
10789 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10791 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10792 CPPFLAGS="$cf_save"
10795 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10798 echo "$as_me:10798: result: $cf_cv_xopen_source" >&5
10799 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10801 if test "$cf_cv_xopen_source" != no ; then
10803 CFLAGS=`echo "$CFLAGS" | \
10804 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10805 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10807 CPPFLAGS=`echo "$CPPFLAGS" | \
10808 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10809 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10811 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10813 for cf_add_cflags in $cf_temp_xopen_source
10815 case "x$cf_add_cflags" in
10818 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10821 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'`
10822 test "$CFLAGS" != "$cf_old_cflag" || break
10824 CFLAGS="$cf_old_cflag"
10827 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10830 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'`
10831 test "$CPPFLAGS" != "$cf_old_cflag" || break
10833 CPPFLAGS="$cf_old_cflag"
10842 cf_new_extra_cppflags=
10844 for cf_add_cflags in $cf_add_cflags
10846 case "$cf_fix_cppflags" in
10848 case "$cf_add_cflags" in
10849 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10850 case "$cf_add_cflags" in
10852 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10854 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10855 && test -z "${cf_tst_cflags}" \
10856 && cf_fix_cppflags=yes
10858 if test "$cf_fix_cppflags" = yes ; then
10860 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10861 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10864 elif test "${cf_tst_cflags}" = "\"'" ; then
10866 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10867 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10873 case "$CPPFLAGS" in
10877 case "$cf_add_cflags" in
10879 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10881 CPPFLAGS=`echo "$CPPFLAGS" | \
10882 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10883 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10888 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10889 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10896 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10897 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10904 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10905 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10907 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10909 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10910 && test -z "${cf_tst_cflags}" \
10911 && cf_fix_cppflags=no
10916 if test -n "$cf_new_cflags" ; then
10918 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10919 CFLAGS="${CFLAGS}$cf_new_cflags"
10923 if test -n "$cf_new_cppflags" ; then
10925 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10926 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10930 if test -n "$cf_new_extra_cppflags" ; then
10932 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10933 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10941 if test "$cf_cv_posix_visible" = no; then
10943 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10945 cf_save_CFLAGS="$CFLAGS"
10946 cf_save_CPPFLAGS="$CPPFLAGS"
10948 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10949 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10950 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10952 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10953 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10954 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10956 echo "$as_me:10956: checking if we should define _POSIX_C_SOURCE" >&5
10957 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10958 if test "${cf_cv_posix_c_source+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 echo "${as_me:-configure}:10962: testing if the symbol is already defined go no further ..." 1>&5
10964 cat >"conftest.$ac_ext" <<_ACEOF
10965 #line 10965 "configure"
10966 #include "confdefs.h"
10967 #include <sys/types.h>
10972 #ifndef _POSIX_C_SOURCE
10979 rm -f "conftest.$ac_objext"
10980 if { (eval echo "$as_me:10980: \"$ac_compile\"") >&5
10981 (eval $ac_compile) 2>&5
10983 echo "$as_me:10983: \$? = $ac_status" >&5
10984 (exit "$ac_status"); } &&
10985 { ac_try='test -s "conftest.$ac_objext"'
10986 { (eval echo "$as_me:10986: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:10989: \$? = $ac_status" >&5
10990 (exit "$ac_status"); }; }; then
10991 cf_cv_posix_c_source=no
10993 echo "$as_me: failed program was:" >&5
10994 cat "conftest.$ac_ext" >&5
10995 cf_want_posix_source=no
10996 case .$cf_POSIX_C_SOURCE in
10998 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11001 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11002 cf_want_posix_source=yes
11005 cf_want_posix_source=yes
11008 if test "$cf_want_posix_source" = yes ; then
11009 cat >"conftest.$ac_ext" <<_ACEOF
11010 #line 11010 "configure"
11011 #include "confdefs.h"
11012 #include <sys/types.h>
11017 #ifdef _POSIX_SOURCE
11024 rm -f "conftest.$ac_objext"
11025 if { (eval echo "$as_me:11025: \"$ac_compile\"") >&5
11026 (eval $ac_compile) 2>&5
11028 echo "$as_me:11028: \$? = $ac_status" >&5
11029 (exit "$ac_status"); } &&
11030 { ac_try='test -s "conftest.$ac_objext"'
11031 { (eval echo "$as_me:11031: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:11034: \$? = $ac_status" >&5
11035 (exit "$ac_status"); }; }; then
11038 echo "$as_me: failed program was:" >&5
11039 cat "conftest.$ac_ext" >&5
11040 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11045 echo "${as_me:-configure}:11045: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11047 CFLAGS="$cf_trim_CFLAGS"
11048 CPPFLAGS="$cf_trim_CPPFLAGS"
11050 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11051 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11053 echo "${as_me:-configure}:11053: testing if the second compile does not leave our definition intact error ..." 1>&5
11055 cat >"conftest.$ac_ext" <<_ACEOF
11056 #line 11056 "configure"
11057 #include "confdefs.h"
11058 #include <sys/types.h>
11063 #ifndef _POSIX_C_SOURCE
11070 rm -f "conftest.$ac_objext"
11071 if { (eval echo "$as_me:11071: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>&5
11074 echo "$as_me:11074: \$? = $ac_status" >&5
11075 (exit "$ac_status"); } &&
11076 { ac_try='test -s "conftest.$ac_objext"'
11077 { (eval echo "$as_me:11077: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:11080: \$? = $ac_status" >&5
11081 (exit "$ac_status"); }; }; then
11084 echo "$as_me: failed program was:" >&5
11085 cat "conftest.$ac_ext" >&5
11086 cf_cv_posix_c_source=no
11088 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11089 CFLAGS="$cf_save_CFLAGS"
11090 CPPFLAGS="$cf_save_CPPFLAGS"
11093 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11096 echo "$as_me:11096: result: $cf_cv_posix_c_source" >&5
11097 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11099 if test "$cf_cv_posix_c_source" != no ; then
11100 CFLAGS="$cf_trim_CFLAGS"
11101 CPPFLAGS="$cf_trim_CPPFLAGS"
11106 cf_new_extra_cppflags=
11108 for cf_add_cflags in $cf_cv_posix_c_source
11110 case "$cf_fix_cppflags" in
11112 case "$cf_add_cflags" in
11113 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11114 case "$cf_add_cflags" in
11116 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11118 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11119 && test -z "${cf_tst_cflags}" \
11120 && cf_fix_cppflags=yes
11122 if test "$cf_fix_cppflags" = yes ; then
11124 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11125 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11128 elif test "${cf_tst_cflags}" = "\"'" ; then
11130 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11131 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11137 case "$CPPFLAGS" in
11141 case "$cf_add_cflags" in
11143 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11145 CPPFLAGS=`echo "$CPPFLAGS" | \
11146 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11147 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11152 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11153 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11160 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11161 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11168 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11169 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11171 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11173 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11174 && test -z "${cf_tst_cflags}" \
11175 && cf_fix_cppflags=no
11180 if test -n "$cf_new_cflags" ; then
11182 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11183 CFLAGS="${CFLAGS}$cf_new_cflags"
11187 if test -n "$cf_new_cppflags" ; then
11189 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11190 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11194 if test -n "$cf_new_extra_cppflags" ; then
11196 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11197 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11203 fi # cf_cv_posix_visible
11208 if test -n "$cf_xopen_source" ; then
11210 for cf_add_cflags in $cf_xopen_source
11212 case "x$cf_add_cflags" in
11215 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11218 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'`
11219 test "$CFLAGS" != "$cf_old_cflag" || break
11220 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11222 echo "${as_me:-configure}:11222: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11224 CFLAGS="$cf_old_cflag"
11227 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11230 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'`
11231 test "$CPPFLAGS" != "$cf_old_cflag" || break
11232 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11234 echo "${as_me:-configure}:11234: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11236 CPPFLAGS="$cf_old_cflag"
11245 cf_new_extra_cppflags=
11247 for cf_add_cflags in $cf_add_cflags
11249 case "$cf_fix_cppflags" in
11251 case "$cf_add_cflags" in
11252 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11253 case "$cf_add_cflags" in
11255 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11258 && test -z "${cf_tst_cflags}" \
11259 && cf_fix_cppflags=yes
11261 if test "$cf_fix_cppflags" = yes ; then
11263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11267 elif test "${cf_tst_cflags}" = "\"'" ; then
11269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11276 case "$CPPFLAGS" in
11280 case "$cf_add_cflags" in
11282 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11284 CPPFLAGS=`echo "$CPPFLAGS" | \
11285 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11286 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11291 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11292 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11299 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11300 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11310 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11313 && test -z "${cf_tst_cflags}" \
11314 && cf_fix_cppflags=no
11319 if test -n "$cf_new_cflags" ; then
11320 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11322 echo "${as_me:-configure}:11322: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11324 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11325 CFLAGS="${CFLAGS}$cf_new_cflags"
11329 if test -n "$cf_new_cppflags" ; then
11330 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11332 echo "${as_me:-configure}:11332: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11335 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11339 if test -n "$cf_new_extra_cppflags" ; then
11340 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11342 echo "${as_me:-configure}:11342: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11344 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11345 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11353 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11354 echo "$as_me:11354: checking if _XOPEN_SOURCE really is set" >&5
11355 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11356 cat >"conftest.$ac_ext" <<_ACEOF
11357 #line 11357 "configure"
11358 #include "confdefs.h"
11359 #include <stdlib.h>
11364 #ifndef _XOPEN_SOURCE
11371 rm -f "conftest.$ac_objext"
11372 if { (eval echo "$as_me:11372: \"$ac_compile\"") >&5
11373 (eval $ac_compile) 2>&5
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit "$ac_status"); } &&
11377 { ac_try='test -s "conftest.$ac_objext"'
11378 { (eval echo "$as_me:11378: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:11381: \$? = $ac_status" >&5
11382 (exit "$ac_status"); }; }; then
11383 cf_XOPEN_SOURCE_set=yes
11385 echo "$as_me: failed program was:" >&5
11386 cat "conftest.$ac_ext" >&5
11387 cf_XOPEN_SOURCE_set=no
11389 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11390 echo "$as_me:11390: result: $cf_XOPEN_SOURCE_set" >&5
11391 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11392 if test "$cf_XOPEN_SOURCE_set" = yes
11394 cat >"conftest.$ac_ext" <<_ACEOF
11395 #line 11395 "configure"
11396 #include "confdefs.h"
11397 #include <stdlib.h>
11402 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11409 rm -f "conftest.$ac_objext"
11410 if { (eval echo "$as_me:11410: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:11413: \$? = $ac_status" >&5
11414 (exit "$ac_status"); } &&
11415 { ac_try='test -s "conftest.$ac_objext"'
11416 { (eval echo "$as_me:11416: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:11419: \$? = $ac_status" >&5
11420 (exit "$ac_status"); }; }; then
11421 cf_XOPEN_SOURCE_set_ok=yes
11423 echo "$as_me: failed program was:" >&5
11424 cat "conftest.$ac_ext" >&5
11425 cf_XOPEN_SOURCE_set_ok=no
11427 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11428 if test "$cf_XOPEN_SOURCE_set_ok" = no
11430 { echo "$as_me:11430: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11431 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11435 echo "$as_me:11435: checking if we should define _XOPEN_SOURCE" >&5
11436 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11437 if test "${cf_cv_xopen_source+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >"conftest.$ac_ext" <<_ACEOF
11442 #line 11442 "configure"
11443 #include "confdefs.h"
11445 #include <stdlib.h>
11446 #include <string.h>
11447 #include <sys/types.h>
11453 #ifndef _XOPEN_SOURCE
11460 rm -f "conftest.$ac_objext"
11461 if { (eval echo "$as_me:11461: \"$ac_compile\"") >&5
11462 (eval $ac_compile) 2>&5
11464 echo "$as_me:11464: \$? = $ac_status" >&5
11465 (exit "$ac_status"); } &&
11466 { ac_try='test -s "conftest.$ac_objext"'
11467 { (eval echo "$as_me:11467: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:11470: \$? = $ac_status" >&5
11471 (exit "$ac_status"); }; }; then
11472 cf_cv_xopen_source=no
11474 echo "$as_me: failed program was:" >&5
11475 cat "conftest.$ac_ext" >&5
11476 cf_save="$CPPFLAGS"
11478 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11479 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11481 cat >"conftest.$ac_ext" <<_ACEOF
11482 #line 11482 "configure"
11483 #include "confdefs.h"
11485 #include <stdlib.h>
11486 #include <string.h>
11487 #include <sys/types.h>
11493 #ifdef _XOPEN_SOURCE
11500 rm -f "conftest.$ac_objext"
11501 if { (eval echo "$as_me:11501: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>&5
11504 echo "$as_me:11504: \$? = $ac_status" >&5
11505 (exit "$ac_status"); } &&
11506 { ac_try='test -s "conftest.$ac_objext"'
11507 { (eval echo "$as_me:11507: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:11510: \$? = $ac_status" >&5
11511 (exit "$ac_status"); }; }; then
11512 cf_cv_xopen_source=no
11514 echo "$as_me: failed program was:" >&5
11515 cat "conftest.$ac_ext" >&5
11516 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11518 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11519 CPPFLAGS="$cf_save"
11522 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11525 echo "$as_me:11525: result: $cf_cv_xopen_source" >&5
11526 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11528 if test "$cf_cv_xopen_source" != no ; then
11530 CFLAGS=`echo "$CFLAGS" | \
11531 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11532 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11534 CPPFLAGS=`echo "$CPPFLAGS" | \
11535 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11536 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11538 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11540 for cf_add_cflags in $cf_temp_xopen_source
11542 case "x$cf_add_cflags" in
11545 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11548 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'`
11549 test "$CFLAGS" != "$cf_old_cflag" || break
11551 CFLAGS="$cf_old_cflag"
11554 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11557 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'`
11558 test "$CPPFLAGS" != "$cf_old_cflag" || break
11560 CPPFLAGS="$cf_old_cflag"
11569 cf_new_extra_cppflags=
11571 for cf_add_cflags in $cf_add_cflags
11573 case "$cf_fix_cppflags" in
11575 case "$cf_add_cflags" in
11576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11577 case "$cf_add_cflags" in
11579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11582 && test -z "${cf_tst_cflags}" \
11583 && cf_fix_cppflags=yes
11585 if test "$cf_fix_cppflags" = yes ; then
11587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11591 elif test "${cf_tst_cflags}" = "\"'" ; then
11593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11600 case "$CPPFLAGS" in
11604 case "$cf_add_cflags" in
11606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11608 CPPFLAGS=`echo "$CPPFLAGS" | \
11609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11634 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11637 && test -z "${cf_tst_cflags}" \
11638 && cf_fix_cppflags=no
11643 if test -n "$cf_new_cflags" ; then
11645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11646 CFLAGS="${CFLAGS}$cf_new_cflags"
11650 if test -n "$cf_new_cppflags" ; then
11652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11657 if test -n "$cf_new_extra_cppflags" ; then
11659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11670 fi # cf_cv_posix_visible
11672 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11674 # Work around breakage on OS X
11676 echo "$as_me:11676: checking if SIGWINCH is defined" >&5
11677 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11678 if test "${cf_cv_define_sigwinch+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >"conftest.$ac_ext" <<_ACEOF
11683 #line 11683 "configure"
11684 #include "confdefs.h"
11686 #include <sys/types.h>
11687 #include <sys/signal.h>
11692 int x = SIGWINCH; (void)x
11697 rm -f "conftest.$ac_objext"
11698 if { (eval echo "$as_me:11698: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>&5
11701 echo "$as_me:11701: \$? = $ac_status" >&5
11702 (exit "$ac_status"); } &&
11703 { ac_try='test -s "conftest.$ac_objext"'
11704 { (eval echo "$as_me:11704: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:11707: \$? = $ac_status" >&5
11708 (exit "$ac_status"); }; }; then
11709 cf_cv_define_sigwinch=yes
11711 echo "$as_me: failed program was:" >&5
11712 cat "conftest.$ac_ext" >&5
11713 cat >"conftest.$ac_ext" <<_ACEOF
11714 #line 11714 "configure"
11715 #include "confdefs.h"
11717 #undef _XOPEN_SOURCE
11718 #undef _POSIX_SOURCE
11719 #undef _POSIX_C_SOURCE
11720 #include <sys/types.h>
11721 #include <sys/signal.h>
11726 int x = SIGWINCH; (void)x
11731 rm -f "conftest.$ac_objext"
11732 if { (eval echo "$as_me:11732: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>&5
11735 echo "$as_me:11735: \$? = $ac_status" >&5
11736 (exit "$ac_status"); } &&
11737 { ac_try='test -s "conftest.$ac_objext"'
11738 { (eval echo "$as_me:11738: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:11741: \$? = $ac_status" >&5
11742 (exit "$ac_status"); }; }; then
11743 cf_cv_define_sigwinch=maybe
11745 echo "$as_me: failed program was:" >&5
11746 cat "conftest.$ac_ext" >&5
11747 cf_cv_define_sigwinch=no
11749 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11752 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11755 echo "$as_me:11755: result: $cf_cv_define_sigwinch" >&5
11756 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11758 if test "$cf_cv_define_sigwinch" = maybe ; then
11759 echo "$as_me:11759: checking for actual SIGWINCH definition" >&5
11760 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11761 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 cf_cv_fixup_sigwinch=unknown
11767 while test "$cf_sigwinch" != 1
11769 cat >"conftest.$ac_ext" <<_ACEOF
11770 #line 11770 "configure"
11771 #include "confdefs.h"
11773 #undef _XOPEN_SOURCE
11774 #undef _POSIX_SOURCE
11775 #undef _POSIX_C_SOURCE
11776 #include <sys/types.h>
11777 #include <sys/signal.h>
11783 #if SIGWINCH != $cf_sigwinch
11786 int x = SIGWINCH; (void)x
11791 rm -f "conftest.$ac_objext"
11792 if { (eval echo "$as_me:11792: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>&5
11795 echo "$as_me:11795: \$? = $ac_status" >&5
11796 (exit "$ac_status"); } &&
11797 { ac_try='test -s "conftest.$ac_objext"'
11798 { (eval echo "$as_me:11798: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 (exit "$ac_status"); }; }; then
11803 cf_cv_fixup_sigwinch=$cf_sigwinch
11806 echo "$as_me: failed program was:" >&5
11807 cat "conftest.$ac_ext" >&5
11809 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11811 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11815 echo "$as_me:11815: result: $cf_cv_fixup_sigwinch" >&5
11816 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11818 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11819 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11823 # Checks for CODESET support.
11825 echo "$as_me:11825: checking for nl_langinfo and CODESET" >&5
11826 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11827 if test "${am_cv_langinfo_codeset+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >"conftest.$ac_ext" <<_ACEOF
11831 #line 11831 "configure"
11832 #include "confdefs.h"
11833 #include <langinfo.h>
11837 char* cs = nl_langinfo(CODESET); (void)cs
11842 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11843 if { (eval echo "$as_me:11843: \"$ac_link\"") >&5
11844 (eval $ac_link) 2>&5
11846 echo "$as_me:11846: \$? = $ac_status" >&5
11847 (exit "$ac_status"); } &&
11848 { ac_try='test -s "conftest$ac_exeext"'
11849 { (eval echo "$as_me:11849: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11852 echo "$as_me:11852: \$? = $ac_status" >&5
11853 (exit "$ac_status"); }; }; then
11854 am_cv_langinfo_codeset=yes
11856 echo "$as_me: failed program was:" >&5
11857 cat "conftest.$ac_ext" >&5
11858 am_cv_langinfo_codeset=no
11860 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11863 echo "$as_me:11863: result: $am_cv_langinfo_codeset" >&5
11864 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11865 if test "$am_cv_langinfo_codeset" = yes; then
11867 cat >>confdefs.h <<\EOF
11868 #define HAVE_LANGINFO_CODESET 1
11873 # use these variables to work around a defect in gcc's fixincludes.
11874 NCURSES_OK_WCHAR_T=
11877 echo "$as_me:11877: checking if you want wide-character code" >&5
11878 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11880 # Check whether --enable-widec or --disable-widec was given.
11881 if test "${enable_widec+set}" = set; then
11882 enableval="$enable_widec"
11883 with_widec=$enableval
11887 echo "$as_me:11887: result: $with_widec" >&5
11888 echo "${ECHO_T}$with_widec" >&6
11890 NCURSES_WCWIDTH_GRAPHICS=1
11892 if test "x$with_widec" = xyes ; then
11893 if test "x$disable_lib_suffixes" = xno ; then
11894 LIB_SUFFIX="w${LIB_SUFFIX}"
11897 cat >>confdefs.h <<\EOF
11898 #define USE_WIDEC_SUPPORT 1
11901 cat >>confdefs.h <<\EOF
11902 #define NCURSES_WIDECHAR 1
11910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11911 echo "$as_me:11911: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 cat >"conftest.$ac_ext" <<_ACEOF
11917 #line 11917 "configure"
11918 #include "confdefs.h"
11919 #include <$ac_header>
11921 if { (eval echo "$as_me:11921: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11922 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11924 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:11927: \$? = $ac_status" >&5
11928 (exit "$ac_status"); } >/dev/null; then
11929 if test -s conftest.err; then
11930 ac_cpp_err=$ac_c_preproc_warn_flag
11937 if test -z "$ac_cpp_err"; then
11938 eval "$as_ac_Header=yes"
11940 echo "$as_me: failed program was:" >&5
11941 cat "conftest.$ac_ext" >&5
11942 eval "$as_ac_Header=no"
11944 rm -f conftest.err "conftest.$ac_ext"
11946 echo "$as_me:11946: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11948 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11949 cat >>confdefs.h <<EOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 echo "$as_me:11956: checking if wchar.h can be used as is" >&5
11957 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11958 if test "${cf_cv_wchar_h_okay+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >"conftest.$ac_ext" <<_ACEOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11966 #include <stdlib.h>
11967 #ifdef HAVE_WCHAR_H
11970 #ifdef HAVE_WCTYPE_H
11971 #include <wctype.h>
11979 int bar = iswpunct(foo)
11984 rm -f "conftest.$ac_objext"
11985 if { (eval echo "$as_me:11985: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>&5
11988 echo "$as_me:11988: \$? = $ac_status" >&5
11989 (exit "$ac_status"); } &&
11990 { ac_try='test -s "conftest.$ac_objext"'
11991 { (eval echo "$as_me:11991: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:11994: \$? = $ac_status" >&5
11995 (exit "$ac_status"); }; }; then
11996 cf_cv_wchar_h_okay=yes
11998 echo "$as_me: failed program was:" >&5
11999 cat "conftest.$ac_ext" >&5
12000 cf_cv_wchar_h_okay=no
12002 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12004 echo "$as_me:12004: result: $cf_cv_wchar_h_okay" >&5
12005 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12007 if test "$cf_cv_wchar_h_okay" = no
12010 echo "$as_me:12010: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12011 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12012 cat >"conftest.$ac_ext" <<_ACEOF
12013 #line 12013 "configure"
12014 #include "confdefs.h"
12015 #include <sys/types.h>
12021 #ifndef _XOPEN_SOURCE_EXTENDED
12028 rm -f "conftest.$ac_objext"
12029 if { (eval echo "$as_me:12029: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>&5
12032 echo "$as_me:12032: \$? = $ac_status" >&5
12033 (exit "$ac_status"); } &&
12034 { ac_try='test -s "conftest.$ac_objext"'
12035 { (eval echo "$as_me:12035: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:12038: \$? = $ac_status" >&5
12039 (exit "$ac_status"); }; }; then
12042 echo "$as_me: failed program was:" >&5
12043 cat "conftest.$ac_ext" >&5
12046 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12047 echo "$as_me:12047: result: $cf_result" >&5
12048 echo "${ECHO_T}$cf_result" >&6
12050 if test "$cf_result" = yes ; then
12051 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12052 elif test "x" != "x" ; then
12053 echo "$as_me:12053: checking checking for compatible value versus " >&5
12054 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12055 cat >"conftest.$ac_ext" <<_ACEOF
12056 #line 12056 "configure"
12057 #include "confdefs.h"
12058 #include <sys/types.h>
12064 #if _XOPEN_SOURCE_EXTENDED- < 0
12071 rm -f "conftest.$ac_objext"
12072 if { (eval echo "$as_me:12072: \"$ac_compile\"") >&5
12073 (eval $ac_compile) 2>&5
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 (exit "$ac_status"); } &&
12077 { ac_try='test -s "conftest.$ac_objext"'
12078 { (eval echo "$as_me:12078: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:12081: \$? = $ac_status" >&5
12082 (exit "$ac_status"); }; }; then
12085 echo "$as_me: failed program was:" >&5
12086 cat "conftest.$ac_ext" >&5
12089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12090 echo "$as_me:12090: result: $cf_result" >&5
12091 echo "${ECHO_T}$cf_result" >&6
12092 if test "$cf_result" = no ; then
12093 # perhaps we can override it - try...
12094 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12100 echo "$as_me:12100: checking if wcwidth agrees graphics are single-width" >&5
12101 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12102 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 cat >conftest.in <<CF_EOF
12108 0x250c upper left corner
12109 0x2514 lower left corner
12110 0x2510 upper right corner
12111 0x2518 lower right corner
12112 0x251c tee pointing left
12113 0x2524 tee pointing right
12114 0x2534 tee pointing up
12115 0x252c tee pointing down
12116 0x2500 horizontal line
12117 0x2502 vertical line
12118 0x253c large plus or crossover
12122 0x2592 checker board (stipple)
12123 0x00b0 degree symbol
12126 - Teletype 5410v1 symbols
12127 0x2190 arrow pointing left
12128 0x2192 arrow pointing right
12129 0x2193 arrow pointing down
12130 0x2191 arrow pointing up
12131 0x2592 board of squares
12132 0x2603 lantern symbol
12133 0x25ae solid square block
12134 - these defaults were invented for ncurses
12137 0x2264 less-than-or-equal-to
12138 0x2265 greater-than-or-equal-to
12141 0x00a3 pound-sterling symbol
12142 - thick-line-drawing
12143 0x250f upper left corner
12144 0x2517 lower left corner
12145 0x2513 upper right corner
12146 0x251b lower right corner
12147 0x2523 tee pointing left
12148 0x252b tee pointing right
12149 0x253b tee pointing up
12150 0x2533 tee pointing down
12151 0x2501 horizontal line
12152 0x2503 vertical line
12153 0x254b large plus or crossover
12154 - double-line-drawing
12155 0x2554 upper left corner
12156 0x255a lower left corner
12157 0x2557 upper right corner
12158 0x255d lower right corner
12159 0x2563 tee pointing left
12160 0x2560 tee pointing right
12161 0x2569 tee pointing up
12162 0x2566 tee pointing down
12163 0x2550 horizontal line
12164 0x2551 vertical line
12165 0x256c large plus or crossover
12167 if test "$cross_compiling" = yes; then
12168 cf_cv_wcwidth_graphics=unknown
12170 cat >"conftest.$ac_ext" <<_ACEOF
12171 #line 12171 "configure"
12172 #include "confdefs.h"
12174 #include <locale.h>
12185 char buffer[MY_LEN + 1];
12186 char notes[MY_LEN + 1];
12190 if (setlocale(LC_ALL, "en_US.UTF8") ||
12191 setlocale(LC_ALL, "en_US.UTF-8") ||
12192 setlocale(LC_ALL, "en_US.utf8") ||
12193 setlocale(LC_ALL, "en_US.utf-8")) {
12194 if ((fp = fopen("conftest.in", "r")) != 0) {
12195 while (fgets(buffer, MY_LEN, fp) != 0) {
12196 if (*buffer == '-') {
12197 fprintf(stderr, "\\t%s", buffer);
12198 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12200 if (wcwidth(value) == 1)
12202 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12204 fprintf(stderr, "?\\t%s", buffer);
12209 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12210 return (totals == passed) ? 0 : 1;
12214 rm -f "conftest$ac_exeext"
12215 if { (eval echo "$as_me:12215: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>&5
12218 echo "$as_me:12218: \$? = $ac_status" >&5
12219 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12220 { (eval echo "$as_me:12220: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:12223: \$? = $ac_status" >&5
12224 (exit "$ac_status"); }; }; then
12225 cf_cv_wcwidth_graphics=yes
12227 echo "$as_me: program exited with status $ac_status" >&5
12228 echo "$as_me: failed program was:" >&5
12229 cat "conftest.$ac_ext" >&5
12230 cf_cv_wcwidth_graphics=no
12232 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12236 echo "$as_me:12236: result: $cf_cv_wcwidth_graphics" >&5
12237 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12239 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12241 # with_overwrite=no
12242 NCURSES_CH_T=cchar_t
12244 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12247 echo "$as_me:12247: checking for $ac_func" >&5
12248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12249 if eval "test \"\${$as_ac_var+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >"conftest.$ac_ext" <<_ACEOF
12253 #line 12253 "configure"
12254 #include "confdefs.h"
12255 #define $ac_func autoconf_temporary
12256 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12263 /* We use char because int might match the return type of a gcc2
12264 builtin and then its argument prototype would still apply. */
12265 char $ac_func (void);
12271 /* The GNU C library defines stubs for functions which it implements
12272 to always fail with ENOSYS. Some functions are actually named
12273 something starting with __ and the normal name is an alias. */
12274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12275 #error found stub for $ac_func
12278 return $ac_func ();
12283 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12284 if { (eval echo "$as_me:12284: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
12288 (exit "$ac_status"); } &&
12289 { ac_try='test -s "conftest$ac_exeext"'
12290 { (eval echo "$as_me:12290: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:12293: \$? = $ac_status" >&5
12294 (exit "$ac_status"); }; }; then
12295 eval "$as_ac_var=yes"
12297 echo "$as_me: failed program was:" >&5
12298 cat "conftest.$ac_ext" >&5
12299 eval "$as_ac_var=no"
12301 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12303 echo "$as_me:12303: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12304 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12305 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12306 cat >>confdefs.h <<EOF
12307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12313 if test "x$ac_cv_func_putwc" != xyes ; then
12315 for ac_header in wchar.h
12317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 echo "$as_me:12318: checking for $ac_header" >&5
12319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >"conftest.$ac_ext" <<_ACEOF
12324 #line 12324 "configure"
12325 #include "confdefs.h"
12326 #include <$ac_header>
12328 if { (eval echo "$as_me:12328: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12329 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12331 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:12334: \$? = $ac_status" >&5
12335 (exit "$ac_status"); } >/dev/null; then
12336 if test -s conftest.err; then
12337 ac_cpp_err=$ac_c_preproc_warn_flag
12344 if test -z "$ac_cpp_err"; then
12345 eval "$as_ac_Header=yes"
12347 echo "$as_me: failed program was:" >&5
12348 cat "conftest.$ac_ext" >&5
12349 eval "$as_ac_Header=no"
12351 rm -f conftest.err "conftest.$ac_ext"
12353 echo "$as_me:12353: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12354 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12355 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12356 cat >>confdefs.h <<EOF
12357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12363 echo "$as_me:12363: checking for multibyte character support" >&5
12364 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12365 if test "${cf_cv_utf8_lib+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 cf_save_LIBS="$LIBS"
12370 cat >"conftest.$ac_ext" <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12374 #include <stdlib.h>
12376 #ifdef HAVE_WCHAR_H
12388 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12389 if { (eval echo "$as_me:12389: \"$ac_link\"") >&5
12390 (eval $ac_link) 2>&5
12392 echo "$as_me:12392: \$? = $ac_status" >&5
12393 (exit "$ac_status"); } &&
12394 { ac_try='test -s "conftest$ac_exeext"'
12395 { (eval echo "$as_me:12395: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:12398: \$? = $ac_status" >&5
12399 (exit "$ac_status"); }; }; then
12402 echo "$as_me: failed program was:" >&5
12403 cat "conftest.$ac_ext" >&5
12405 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12406 # will be set on completion of the AC_TRY_LINK below.
12407 cf_cv_header_path_utf8=
12408 cf_cv_library_path_utf8=
12410 echo "${as_me:-configure}:12410: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12412 cf_save_LIBS="$LIBS"
12414 cat >"conftest.$ac_ext" <<_ACEOF
12415 #line 12415 "configure"
12416 #include "confdefs.h"
12418 #include <libutf8.h>
12427 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12428 if { (eval echo "$as_me:12428: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>&5
12431 echo "$as_me:12431: \$? = $ac_status" >&5
12432 (exit "$ac_status"); } &&
12433 { ac_try='test -s "conftest$ac_exeext"'
12434 { (eval echo "$as_me:12434: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 (exit "$ac_status"); }; }; then
12440 cf_cv_find_linkage_utf8=yes
12441 cf_cv_header_path_utf8=/usr/include
12442 cf_cv_library_path_utf8=/usr/lib
12445 echo "$as_me: failed program was:" >&5
12446 cat "conftest.$ac_ext" >&5
12448 LIBS="-lutf8 $cf_save_LIBS"
12450 cat >"conftest.$ac_ext" <<_ACEOF
12451 #line 12451 "configure"
12452 #include "confdefs.h"
12454 #include <libutf8.h>
12463 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12464 if { (eval echo "$as_me:12464: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit "$ac_status"); } &&
12469 { ac_try='test -s "conftest$ac_exeext"'
12470 { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit "$ac_status"); }; }; then
12476 cf_cv_find_linkage_utf8=yes
12477 cf_cv_header_path_utf8=/usr/include
12478 cf_cv_library_path_utf8=/usr/lib
12479 cf_cv_library_file_utf8="-lutf8"
12482 echo "$as_me: failed program was:" >&5
12483 cat "conftest.$ac_ext" >&5
12485 cf_cv_find_linkage_utf8=no
12486 LIBS="$cf_save_LIBS"
12488 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12490 echo "${as_me:-configure}:12490: testing find linkage for utf8 library ..." 1>&5
12492 echo "${as_me:-configure}:12492: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12494 cf_save_CPPFLAGS="$CPPFLAGS"
12495 cf_test_CPPFLAGS="$CPPFLAGS"
12499 # collect the current set of include-directories from compiler flags
12500 cf_header_path_list=""
12501 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12502 for cf_header_path in $CPPFLAGS $CFLAGS
12504 case "$cf_header_path" in
12506 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12508 test "x$cf_header_path" != "xNONE" && \
12509 test -d "$cf_header_path" && \
12511 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12512 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12513 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12514 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12515 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12516 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12519 cf_header_path_list="$cf_header_path_list $cf_search"
12525 # add the variations for the package we are looking for
12529 test "x$prefix" != "xNONE" && \
12530 test -d "$prefix" && \
12532 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12533 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12534 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12535 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12536 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12537 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12540 for cf_subdir_prefix in \
12549 test "x$cf_subdir_prefix" != "x$prefix" && \
12550 test -d "$cf_subdir_prefix" && \
12551 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12552 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12553 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12554 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12555 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12556 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12557 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12562 test "$includedir" != NONE && \
12563 test "$includedir" != "/usr/include" && \
12564 test -d "$includedir" && {
12565 test -d "$includedir" && cf_search="$cf_search $includedir"
12566 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12569 test "$oldincludedir" != NONE && \
12570 test "$oldincludedir" != "/usr/include" && \
12571 test -d "$oldincludedir" && {
12572 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12573 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12576 cf_search="$cf_search $cf_header_path_list"
12578 for cf_cv_header_path_utf8 in $cf_search
12580 if test -d "$cf_cv_header_path_utf8" ; then
12581 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12583 echo "${as_me:-configure}:12583: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12585 CPPFLAGS="$cf_save_CPPFLAGS"
12587 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12588 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12590 cat >"conftest.$ac_ext" <<_ACEOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12594 #include <libutf8.h>
12603 rm -f "conftest.$ac_objext"
12604 if { (eval echo "$as_me:12604: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>&5
12607 echo "$as_me:12607: \$? = $ac_status" >&5
12608 (exit "$ac_status"); } &&
12609 { ac_try='test -s "conftest.$ac_objext"'
12610 { (eval echo "$as_me:12610: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit "$ac_status"); }; }; then
12616 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12618 echo "${as_me:-configure}:12618: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12620 cf_cv_find_linkage_utf8=maybe
12621 cf_test_CPPFLAGS="$CPPFLAGS"
12624 echo "$as_me: failed program was:" >&5
12625 cat "conftest.$ac_ext" >&5
12627 CPPFLAGS="$cf_save_CPPFLAGS"
12630 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12634 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12636 echo "${as_me:-configure}:12636: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12638 cf_save_LIBS="$LIBS"
12639 cf_save_LDFLAGS="$LDFLAGS"
12641 if test "$cf_cv_find_linkage_utf8" != yes ; then
12644 cf_library_path_list=""
12645 if test -n "${LDFLAGS}${LIBS}" ; then
12646 for cf_library_path in $LDFLAGS $LIBS
12648 case "$cf_library_path" in
12650 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12652 test "x$cf_library_path" != "xNONE" && \
12653 test -d "$cf_library_path" && \
12655 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12656 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12657 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12658 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12659 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12660 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12663 cf_library_path_list="$cf_library_path_list $cf_search"
12671 test "x$prefix" != "xNONE" && \
12672 test -d "$prefix" && \
12674 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12675 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12676 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12677 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12678 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12679 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12682 for cf_subdir_prefix in \
12691 test "x$cf_subdir_prefix" != "x$prefix" && \
12692 test -d "$cf_subdir_prefix" && \
12693 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12694 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12695 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12696 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12697 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12698 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12699 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12704 cf_search="$cf_library_path_list $cf_search"
12706 for cf_cv_library_path_utf8 in $cf_search
12708 if test -d "$cf_cv_library_path_utf8" ; then
12709 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12711 echo "${as_me:-configure}:12711: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12713 CPPFLAGS="$cf_test_CPPFLAGS"
12714 LIBS="-lutf8 $cf_save_LIBS"
12715 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12716 cat >"conftest.$ac_ext" <<_ACEOF
12717 #line 12717 "configure"
12718 #include "confdefs.h"
12720 #include <libutf8.h>
12729 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12730 if { (eval echo "$as_me:12730: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 (exit "$ac_status"); } &&
12735 { ac_try='test -s "conftest$ac_exeext"'
12736 { (eval echo "$as_me:12736: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 (exit "$ac_status"); }; }; then
12742 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12744 echo "${as_me:-configure}:12744: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12746 cf_cv_find_linkage_utf8=yes
12747 cf_cv_library_file_utf8="-lutf8"
12750 echo "$as_me: failed program was:" >&5
12751 cat "conftest.$ac_ext" >&5
12753 CPPFLAGS="$cf_save_CPPFLAGS"
12754 LIBS="$cf_save_LIBS"
12755 LDFLAGS="$cf_save_LDFLAGS"
12758 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12761 CPPFLAGS="$cf_save_CPPFLAGS"
12762 LDFLAGS="$cf_save_LDFLAGS"
12766 cf_cv_find_linkage_utf8=no
12770 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12773 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12775 LIBS="$cf_save_LIBS"
12777 if test "$cf_cv_find_linkage_utf8" = yes ; then
12778 cf_cv_utf8_lib=add-on
12784 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12786 echo "$as_me:12786: result: $cf_cv_utf8_lib" >&5
12787 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12789 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12790 # ncurses/ncursesw:
12791 if test "$cf_cv_utf8_lib" = "add-on" ; then
12793 cat >>confdefs.h <<\EOF
12794 #define HAVE_LIBUTF8_H 1
12797 if test -n "$cf_cv_header_path_utf8" ; then
12798 for cf_add_incdir in $cf_cv_header_path_utf8
12800 while test "$cf_add_incdir" != /usr/include
12802 if test -d "$cf_add_incdir"
12805 if test -n "$CFLAGS$CPPFLAGS" ; then
12806 # a loop is needed to ensure we can add subdirs of existing dirs
12807 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12808 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12809 cf_have_incdir=yes; break
12814 if test "$cf_have_incdir" = no ; then
12815 if test "$cf_add_incdir" = /usr/local/include ; then
12816 if test "$GCC" = yes
12818 cf_save_CPPFLAGS=$CPPFLAGS
12820 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12821 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12823 cat >"conftest.$ac_ext" <<_ACEOF
12824 #line 12824 "configure"
12825 #include "confdefs.h"
12835 rm -f "conftest.$ac_objext"
12836 if { (eval echo "$as_me:12836: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12839 echo "$as_me:12839: \$? = $ac_status" >&5
12840 (exit "$ac_status"); } &&
12841 { ac_try='test -s "conftest.$ac_objext"'
12842 { (eval echo "$as_me:12842: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:12845: \$? = $ac_status" >&5
12846 (exit "$ac_status"); }; }; then
12849 echo "$as_me: failed program was:" >&5
12850 cat "conftest.$ac_ext" >&5
12853 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12854 CPPFLAGS=$cf_save_CPPFLAGS
12859 if test "$cf_have_incdir" = no ; then
12860 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12862 echo "${as_me:-configure}:12862: testing adding $cf_add_incdir to include-path ..." 1>&5
12864 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12866 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
12867 test "$cf_top_incdir" = "$cf_add_incdir" && break
12868 cf_add_incdir="$cf_top_incdir"
12879 if test -n "$cf_cv_library_path_utf8" ; then
12880 for cf_add_libdir in $cf_cv_library_path_utf8
12882 if test "$cf_add_libdir" = /usr/lib ; then
12884 elif test -d "$cf_add_libdir"
12887 if test -n "$LDFLAGS$LIBS" ; then
12888 # a loop is needed to ensure we can add subdirs of existing dirs
12889 for cf_test_libdir in $LDFLAGS $LIBS ; do
12890 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12891 cf_have_libdir=yes; break
12895 if test "$cf_have_libdir" = no ; then
12896 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12898 echo "${as_me:-configure}:12898: testing adding $cf_add_libdir to library-path ..." 1>&5
12900 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12906 cf_add_libs="$LIBS"
12909 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12910 # filter duplicates
12911 for cf_add_1lib in $cf_add_0lib; do
12912 for cf_add_2lib in $cf_add_libs; do
12913 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12918 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12920 LIBS="$cf_add_libs"
12924 if test "$cf_cv_utf8_lib" != no ; then
12929 # This is needed on Tru64 5.0 to declare mbstate_t
12930 echo "$as_me:12930: checking if we must include wchar.h to declare mbstate_t" >&5
12931 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12932 if test "${cf_cv_mbstate_t+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 cat >"conftest.$ac_ext" <<_ACEOF
12937 #line 12937 "configure"
12938 #include "confdefs.h"
12940 #include <stdlib.h>
12941 #include <stdarg.h>
12943 #ifdef HAVE_LIBUTF8_H
12944 #include <libutf8.h>
12954 rm -f "conftest.$ac_objext"
12955 if { (eval echo "$as_me:12955: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:12958: \$? = $ac_status" >&5
12959 (exit "$ac_status"); } &&
12960 { ac_try='test -s "conftest.$ac_objext"'
12961 { (eval echo "$as_me:12961: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:12964: \$? = $ac_status" >&5
12965 (exit "$ac_status"); }; }; then
12968 echo "$as_me: failed program was:" >&5
12969 cat "conftest.$ac_ext" >&5
12970 cat >"conftest.$ac_ext" <<_ACEOF
12971 #line 12971 "configure"
12972 #include "confdefs.h"
12974 #include <stdlib.h>
12975 #include <stdarg.h>
12978 #ifdef HAVE_LIBUTF8_H
12979 #include <libutf8.h>
12989 rm -f "conftest.$ac_objext"
12990 if { (eval echo "$as_me:12990: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12993 echo "$as_me:12993: \$? = $ac_status" >&5
12994 (exit "$ac_status"); } &&
12995 { ac_try='test -s "conftest.$ac_objext"'
12996 { (eval echo "$as_me:12996: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:12999: \$? = $ac_status" >&5
13000 (exit "$ac_status"); }; }; then
13001 cf_cv_mbstate_t=yes
13003 echo "$as_me: failed program was:" >&5
13004 cat "conftest.$ac_ext" >&5
13005 cf_cv_mbstate_t=unknown
13007 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13009 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13011 echo "$as_me:13011: result: $cf_cv_mbstate_t" >&5
13012 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13014 if test "$cf_cv_mbstate_t" = yes ; then
13016 cat >>confdefs.h <<\EOF
13017 #define NEED_WCHAR_H 1
13023 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13024 if test "$cf_cv_mbstate_t" = unknown ; then
13025 NCURSES_MBSTATE_T=1
13028 # This is needed on Tru64 5.0 to declare wchar_t
13029 echo "$as_me:13029: checking if we must include wchar.h to declare wchar_t" >&5
13030 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13031 if test "${cf_cv_wchar_t+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 cat >"conftest.$ac_ext" <<_ACEOF
13036 #line 13036 "configure"
13037 #include "confdefs.h"
13039 #include <stdlib.h>
13040 #include <stdarg.h>
13042 #ifdef HAVE_LIBUTF8_H
13043 #include <libutf8.h>
13053 rm -f "conftest.$ac_objext"
13054 if { (eval echo "$as_me:13054: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>&5
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 (exit "$ac_status"); } &&
13059 { ac_try='test -s "conftest.$ac_objext"'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit "$ac_status"); }; }; then
13067 echo "$as_me: failed program was:" >&5
13068 cat "conftest.$ac_ext" >&5
13069 cat >"conftest.$ac_ext" <<_ACEOF
13070 #line 13070 "configure"
13071 #include "confdefs.h"
13073 #include <stdlib.h>
13074 #include <stdarg.h>
13077 #ifdef HAVE_LIBUTF8_H
13078 #include <libutf8.h>
13088 rm -f "conftest.$ac_objext"
13089 if { (eval echo "$as_me:13089: \"$ac_compile\"") >&5
13090 (eval $ac_compile) 2>&5
13092 echo "$as_me:13092: \$? = $ac_status" >&5
13093 (exit "$ac_status"); } &&
13094 { ac_try='test -s "conftest.$ac_objext"'
13095 { (eval echo "$as_me:13095: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:13098: \$? = $ac_status" >&5
13099 (exit "$ac_status"); }; }; then
13102 echo "$as_me: failed program was:" >&5
13103 cat "conftest.$ac_ext" >&5
13104 cf_cv_wchar_t=unknown
13106 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13108 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13110 echo "$as_me:13110: result: $cf_cv_wchar_t" >&5
13111 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13113 if test "$cf_cv_wchar_t" = yes ; then
13115 cat >>confdefs.h <<\EOF
13116 #define NEED_WCHAR_H 1
13122 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13123 if test "$cf_cv_wchar_t" = unknown ; then
13127 # if we find wchar_t in either place, use substitution to provide a fallback.
13128 if test "$cf_cv_wchar_t" != unknown ; then
13129 NCURSES_OK_WCHAR_T=1
13132 # This is needed on Tru64 5.0 to declare wint_t
13133 echo "$as_me:13133: checking if we must include wchar.h to declare wint_t" >&5
13134 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13135 if test "${cf_cv_wint_t+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 cat >"conftest.$ac_ext" <<_ACEOF
13140 #line 13140 "configure"
13141 #include "confdefs.h"
13143 #include <stdlib.h>
13144 #include <stdarg.h>
13146 #ifdef HAVE_LIBUTF8_H
13147 #include <libutf8.h>
13157 rm -f "conftest.$ac_objext"
13158 if { (eval echo "$as_me:13158: \"$ac_compile\"") >&5
13159 (eval $ac_compile) 2>&5
13161 echo "$as_me:13161: \$? = $ac_status" >&5
13162 (exit "$ac_status"); } &&
13163 { ac_try='test -s "conftest.$ac_objext"'
13164 { (eval echo "$as_me:13164: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13167 echo "$as_me:13167: \$? = $ac_status" >&5
13168 (exit "$ac_status"); }; }; then
13171 echo "$as_me: failed program was:" >&5
13172 cat "conftest.$ac_ext" >&5
13173 cat >"conftest.$ac_ext" <<_ACEOF
13174 #line 13174 "configure"
13175 #include "confdefs.h"
13177 #include <stdlib.h>
13178 #include <stdarg.h>
13181 #ifdef HAVE_LIBUTF8_H
13182 #include <libutf8.h>
13192 rm -f "conftest.$ac_objext"
13193 if { (eval echo "$as_me:13193: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>&5
13196 echo "$as_me:13196: \$? = $ac_status" >&5
13197 (exit "$ac_status"); } &&
13198 { ac_try='test -s "conftest.$ac_objext"'
13199 { (eval echo "$as_me:13199: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:13202: \$? = $ac_status" >&5
13203 (exit "$ac_status"); }; }; then
13206 echo "$as_me: failed program was:" >&5
13207 cat "conftest.$ac_ext" >&5
13208 cf_cv_wint_t=unknown
13210 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13212 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13214 echo "$as_me:13214: result: $cf_cv_wint_t" >&5
13215 echo "${ECHO_T}$cf_cv_wint_t" >&6
13217 if test "$cf_cv_wint_t" = yes ; then
13219 cat >>confdefs.h <<\EOF
13220 #define NEED_WCHAR_H 1
13226 # if we do not find wint_t in either place, use substitution to provide a fallback.
13227 if test "$cf_cv_wint_t" = unknown ; then
13231 # if we find wint_t in either place, use substitution to provide a fallback.
13232 if test "$cf_cv_wint_t" != unknown ; then
13233 NCURSES_OK_WINT_T=1
13236 if test "$NCURSES_MBSTATE_T" != 0; then
13238 cat >>confdefs.h <<\EOF
13239 #define NEED_MBSTATE_T_DEF 1
13245 ### use option --disable-lp64 to allow long chtype
13246 echo "$as_me:13246: checking whether to enable _LP64 definition in curses.h" >&5
13247 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13249 # Check whether --enable-lp64 or --disable-lp64 was given.
13250 if test "${enable_lp64+set}" = set; then
13251 enableval="$enable_lp64"
13252 with_lp64=$enableval
13254 with_lp64=$cf_dft_with_lp64
13256 echo "$as_me:13256: result: $with_lp64" >&5
13257 echo "${ECHO_T}$with_lp64" >&6
13259 if test "x$with_lp64" = xyes ; then
13260 cf_cv_enable_lp64=1
13262 cf_cv_enable_lp64=0
13265 # Check whether --enable-largefile or --disable-largefile was given.
13266 if test "${enable_largefile+set}" = set; then
13267 enableval="$enable_largefile"
13270 if test "$enable_largefile" != no; then
13272 echo "$as_me:13272: checking for special C compiler options needed for large files" >&5
13273 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13274 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 ac_cv_sys_largefile_CC=no
13278 if test "$GCC" != yes; then
13281 # IRIX 6.2 and later do not support large files by default,
13282 # so use the C compiler's -n32 option if that helps.
13283 cat >"conftest.$ac_ext" <<_ACEOF
13284 #line 13284 "configure"
13285 #include "confdefs.h"
13286 #include <sys/types.h>
13287 /* Check that off_t can represent 2**63 - 1 correctly.
13288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13289 since some C++ compilers masquerading as C compilers
13290 incorrectly reject 9223372036854775807. */
13291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13293 && LARGE_OFF_T % 2147483647 == 1)
13303 rm -f "conftest.$ac_objext"
13304 if { (eval echo "$as_me:13304: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit "$ac_status"); } &&
13309 { ac_try='test -s "conftest.$ac_objext"'
13310 { (eval echo "$as_me:13310: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit "$ac_status"); }; }; then
13317 echo "$as_me: failed program was:" >&5
13318 cat "conftest.$ac_ext" >&5
13320 rm -f "conftest.$ac_objext"
13322 rm -f "conftest.$ac_objext"
13323 if { (eval echo "$as_me:13323: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit "$ac_status"); } &&
13328 { ac_try='test -s "conftest.$ac_objext"'
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
13334 ac_cv_sys_largefile_CC=' -n32'; break
13336 echo "$as_me: failed program was:" >&5
13337 cat "conftest.$ac_ext" >&5
13339 rm -f "conftest.$ac_objext"
13343 rm -f "conftest.$ac_ext"
13346 echo "$as_me:13346: result: $ac_cv_sys_largefile_CC" >&5
13347 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13348 if test "$ac_cv_sys_largefile_CC" != no; then
13349 CC=$CC$ac_cv_sys_largefile_CC
13352 echo "$as_me:13352: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13353 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13354 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 ac_cv_sys_file_offset_bits=no
13359 cat >"conftest.$ac_ext" <<_ACEOF
13360 #line 13360 "configure"
13361 #include "confdefs.h"
13362 #include <sys/types.h>
13363 /* Check that off_t can represent 2**63 - 1 correctly.
13364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13365 since some C++ compilers masquerading as C compilers
13366 incorrectly reject 9223372036854775807. */
13367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13369 && LARGE_OFF_T % 2147483647 == 1)
13379 rm -f "conftest.$ac_objext"
13380 if { (eval echo "$as_me:13380: \"$ac_compile\"") >&5
13381 (eval $ac_compile) 2>&5
13383 echo "$as_me:13383: \$? = $ac_status" >&5
13384 (exit "$ac_status"); } &&
13385 { ac_try='test -s "conftest.$ac_objext"'
13386 { (eval echo "$as_me:13386: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 (exit "$ac_status"); }; }; then
13393 echo "$as_me: failed program was:" >&5
13394 cat "conftest.$ac_ext" >&5
13396 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13397 cat >"conftest.$ac_ext" <<_ACEOF
13398 #line 13398 "configure"
13399 #include "confdefs.h"
13400 #define _FILE_OFFSET_BITS 64
13401 #include <sys/types.h>
13402 /* Check that off_t can represent 2**63 - 1 correctly.
13403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13404 since some C++ compilers masquerading as C compilers
13405 incorrectly reject 9223372036854775807. */
13406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13408 && LARGE_OFF_T % 2147483647 == 1)
13418 rm -f "conftest.$ac_objext"
13419 if { (eval echo "$as_me:13419: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>&5
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 (exit "$ac_status"); } &&
13424 { ac_try='test -s "conftest.$ac_objext"'
13425 { (eval echo "$as_me:13425: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 (exit "$ac_status"); }; }; then
13430 ac_cv_sys_file_offset_bits=64; break
13432 echo "$as_me: failed program was:" >&5
13433 cat "conftest.$ac_ext" >&5
13435 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13439 echo "$as_me:13439: result: $ac_cv_sys_file_offset_bits" >&5
13440 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13441 if test "$ac_cv_sys_file_offset_bits" != no; then
13443 cat >>confdefs.h <<EOF
13444 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13449 echo "$as_me:13449: checking for _LARGE_FILES value needed for large files" >&5
13450 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13451 if test "${ac_cv_sys_large_files+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 ac_cv_sys_large_files=no
13456 cat >"conftest.$ac_ext" <<_ACEOF
13457 #line 13457 "configure"
13458 #include "confdefs.h"
13459 #include <sys/types.h>
13460 /* Check that off_t can represent 2**63 - 1 correctly.
13461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13462 since some C++ compilers masquerading as C compilers
13463 incorrectly reject 9223372036854775807. */
13464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13466 && LARGE_OFF_T % 2147483647 == 1)
13476 rm -f "conftest.$ac_objext"
13477 if { (eval echo "$as_me:13477: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 (exit "$ac_status"); } &&
13482 { ac_try='test -s "conftest.$ac_objext"'
13483 { (eval echo "$as_me:13483: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:13486: \$? = $ac_status" >&5
13487 (exit "$ac_status"); }; }; then
13490 echo "$as_me: failed program was:" >&5
13491 cat "conftest.$ac_ext" >&5
13493 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13494 cat >"conftest.$ac_ext" <<_ACEOF
13495 #line 13495 "configure"
13496 #include "confdefs.h"
13497 #define _LARGE_FILES 1
13498 #include <sys/types.h>
13499 /* Check that off_t can represent 2**63 - 1 correctly.
13500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13501 since some C++ compilers masquerading as C compilers
13502 incorrectly reject 9223372036854775807. */
13503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13505 && LARGE_OFF_T % 2147483647 == 1)
13515 rm -f "conftest.$ac_objext"
13516 if { (eval echo "$as_me:13516: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>&5
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit "$ac_status"); } &&
13521 { ac_try='test -s "conftest.$ac_objext"'
13522 { (eval echo "$as_me:13522: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:13525: \$? = $ac_status" >&5
13526 (exit "$ac_status"); }; }; then
13527 ac_cv_sys_large_files=1; break
13529 echo "$as_me: failed program was:" >&5
13530 cat "conftest.$ac_ext" >&5
13532 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13536 echo "$as_me:13536: result: $ac_cv_sys_large_files" >&5
13537 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13538 if test "$ac_cv_sys_large_files" != no; then
13540 cat >>confdefs.h <<EOF
13541 #define _LARGE_FILES $ac_cv_sys_large_files
13548 if test "$enable_largefile" != no ; then
13549 echo "$as_me:13549: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13550 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13551 if test "${ac_cv_sys_largefile_source+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 ac_cv_sys_largefile_source=no
13556 cat >"conftest.$ac_ext" <<_ACEOF
13557 #line 13557 "configure"
13558 #include "confdefs.h"
13568 rm -f "conftest.$ac_objext"
13569 if { (eval echo "$as_me:13569: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>&5
13572 echo "$as_me:13572: \$? = $ac_status" >&5
13573 (exit "$ac_status"); } &&
13574 { ac_try='test -s "conftest.$ac_objext"'
13575 { (eval echo "$as_me:13575: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:13578: \$? = $ac_status" >&5
13579 (exit "$ac_status"); }; }; then
13582 echo "$as_me: failed program was:" >&5
13583 cat "conftest.$ac_ext" >&5
13585 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13586 cat >"conftest.$ac_ext" <<_ACEOF
13587 #line 13587 "configure"
13588 #include "confdefs.h"
13589 #define _LARGEFILE_SOURCE 1
13599 rm -f "conftest.$ac_objext"
13600 if { (eval echo "$as_me:13600: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>&5
13603 echo "$as_me:13603: \$? = $ac_status" >&5
13604 (exit "$ac_status"); } &&
13605 { ac_try='test -s "conftest.$ac_objext"'
13606 { (eval echo "$as_me:13606: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:13609: \$? = $ac_status" >&5
13610 (exit "$ac_status"); }; }; then
13611 ac_cv_sys_largefile_source=1; break
13613 echo "$as_me: failed program was:" >&5
13614 cat "conftest.$ac_ext" >&5
13616 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13620 echo "$as_me:13620: result: $ac_cv_sys_largefile_source" >&5
13621 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13622 if test "$ac_cv_sys_largefile_source" != no; then
13624 cat >>confdefs.h <<EOF
13625 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13631 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13632 # in glibc 2.1.3, but that breaks too many other things.
13633 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13634 echo "$as_me:13634: checking for fseeko" >&5
13635 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13636 if test "${ac_cv_func_fseeko+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 cat >"conftest.$ac_ext" <<_ACEOF
13640 #line 13640 "configure"
13641 #include "confdefs.h"
13646 return fseeko && fseeko (stdin, 0, 0);
13651 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13652 if { (eval echo "$as_me:13652: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13655 echo "$as_me:13655: \$? = $ac_status" >&5
13656 (exit "$ac_status"); } &&
13657 { ac_try='test -s "conftest$ac_exeext"'
13658 { (eval echo "$as_me:13658: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:13661: \$? = $ac_status" >&5
13662 (exit "$ac_status"); }; }; then
13663 ac_cv_func_fseeko=yes
13665 echo "$as_me: failed program was:" >&5
13666 cat "conftest.$ac_ext" >&5
13667 ac_cv_func_fseeko=no
13669 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13671 echo "$as_me:13671: result: $ac_cv_func_fseeko" >&5
13672 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13673 if test $ac_cv_func_fseeko = yes; then
13675 cat >>confdefs.h <<\EOF
13676 #define HAVE_FSEEKO 1
13681 # Normally we would collect these definitions in the config.h,
13682 # but (like _XOPEN_SOURCE), some environments rely on having these
13683 # defined before any of the system headers are included. Another
13684 # case comes up with C++, e.g., on AIX the compiler compiles the
13685 # header files by themselves before looking at the body files it is
13686 # told to compile. For ncurses, those header files do not include
13688 if test "$ac_cv_sys_large_files" != no
13691 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13692 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13695 if test "$ac_cv_sys_largefile_source" != no
13698 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13699 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13702 if test "$ac_cv_sys_file_offset_bits" != no
13705 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13706 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13710 echo "$as_me:13710: checking whether to use struct dirent64" >&5
13711 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13712 if test "${cf_cv_struct_dirent64+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >"conftest.$ac_ext" <<_ACEOF
13717 #line 13717 "configure"
13718 #include "confdefs.h"
13720 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13721 #include <sys/types.h>
13722 #include <dirent.h>
13728 /* if transitional largefile support is setup, this is true */
13729 extern struct dirent64 * readdir(DIR *);
13730 struct dirent64 *x = readdir((DIR *)0);
13731 struct dirent *y = readdir((DIR *)0);
13739 rm -f "conftest.$ac_objext"
13740 if { (eval echo "$as_me:13740: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>&5
13743 echo "$as_me:13743: \$? = $ac_status" >&5
13744 (exit "$ac_status"); } &&
13745 { ac_try='test -s "conftest.$ac_objext"'
13746 { (eval echo "$as_me:13746: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:13749: \$? = $ac_status" >&5
13750 (exit "$ac_status"); }; }; then
13751 cf_cv_struct_dirent64=yes
13753 echo "$as_me: failed program was:" >&5
13754 cat "conftest.$ac_ext" >&5
13755 cf_cv_struct_dirent64=no
13757 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13760 echo "$as_me:13760: result: $cf_cv_struct_dirent64" >&5
13761 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13762 test "$cf_cv_struct_dirent64" = yes &&
13763 cat >>confdefs.h <<\EOF
13764 #define HAVE_STRUCT_DIRENT64 1
13769 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13770 echo "$as_me:13770: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13771 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13773 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13774 if test "${enable_tparm_varargs+set}" = set; then
13775 enableval="$enable_tparm_varargs"
13776 with_tparm_varargs=$enableval
13778 with_tparm_varargs=yes
13780 echo "$as_me:13780: result: $with_tparm_varargs" >&5
13781 echo "${ECHO_T}$with_tparm_varargs" >&6
13782 NCURSES_TPARM_VARARGS=0
13783 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13785 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13786 if test "$with_ticlib" != no ; then
13787 echo "$as_me:13787: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13788 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13790 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13791 if test "${enable_tic_depends+set}" = set; then
13792 enableval="$enable_tic_depends"
13793 with_tic_depends=$enableval
13795 with_tic_depends=yes
13797 echo "$as_me:13797: result: $with_tic_depends" >&5
13798 echo "${ECHO_T}$with_tic_depends" >&6
13800 with_tic_depends=no
13803 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
13804 echo "$as_me:13804: checking if you want to enable wattr* macros" >&5
13805 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
13807 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13808 if test "${enable_wattr_macros+set}" = set; then
13809 enableval="$enable_wattr_macros"
13810 with_wattr_macros=$enableval
13812 with_wattr_macros=no
13814 if [ "x$with_wattr_macros" != xyes ]; then
13815 NCURSES_WATTR_MACROS=0
13816 echo "$as_me:13816: result: no" >&5
13817 echo "${ECHO_T}no" >&6
13819 NCURSES_WATTR_MACROS=1
13820 echo "$as_me:13820: result: yes" >&5
13821 echo "${ECHO_T}yes" >&6
13824 echo "$as_me:13824: checking for X11 rgb file" >&5
13825 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13827 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13828 if test "${with_x11_rgb+set}" = set; then
13829 withval="$with_x11_rgb"
13835 if test "x$RGB_PATH" = xauto
13837 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13839 /opt/local/share/X11/rgb.txt \
13840 /opt/X11/share/X11/rgb.txt \
13841 /usr/share/X11/rgb.txt \
13842 /usr/X11/share/X11/rgb.txt \
13843 /usr/X11/lib/X11/rgb.txt \
13844 /usr/lib/X11/rgb.txt \
13846 /usr/pkg/lib/X11/rgb.txt \
13847 /usr/X11R7/lib/X11/rgb.txt \
13848 /usr/X11R6/lib/X11/rgb.txt \
13849 /usr/X11R5/lib/X11/rgb.txt \
13850 /usr/X11R4/lib/X11/rgb.txt \
13851 /usr/local/lib/X11/rgb.txt \
13852 /usr/local/share/X11/rgb.txt \
13853 /usr/lib64/X11/rgb.txt
13855 if test -f "$cf_path" ; then
13856 RGB_PATH="$cf_path"
13863 if test "x$prefix" != xNONE; then
13864 cf_path_syntax="$prefix"
13866 cf_path_syntax="$ac_default_prefix"
13869 case ".$cf_path" in
13870 (.\$\(*\)*|.\'*\'*)
13874 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13876 (.\$\{*prefix\}*|.\$\{*dir\}*)
13877 eval cf_path="$cf_path"
13878 case ".$cf_path" in
13880 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13885 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13888 { { echo "$as_me:13888: error: expected a pathname, not \"$cf_path\"" >&5
13889 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13890 { (exit 1); exit 1; }; }
13896 echo "$as_me:13896: result: $RGB_PATH" >&5
13897 echo "${ECHO_T}$RGB_PATH" >&6
13899 cat >>confdefs.h <<EOF
13900 #define RGB_PATH "$cf_path"
13904 if test "$RGB_PATH" = no
13909 ### use option --with-bool to override bool's type
13910 echo "$as_me:13910: checking for type of bool" >&5
13911 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13913 # Check whether --with-bool or --without-bool was given.
13914 if test "${with_bool+set}" = set; then
13915 withval="$with_bool"
13916 NCURSES_BOOL="$withval"
13920 echo "$as_me:13920: result: $NCURSES_BOOL" >&5
13921 echo "${ECHO_T}$NCURSES_BOOL" >&6
13923 echo "$as_me:13923: checking for alternate terminal capabilities file" >&5
13924 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13926 # Check whether --with-caps or --without-caps was given.
13927 if test "${with_caps+set}" = set; then
13928 withval="$with_caps"
13929 TERMINFO_CAPS=Caps.$withval
13933 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13934 echo "$as_me:13934: result: $TERMINFO_CAPS" >&5
13935 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13937 ### use option --with-chtype to override chtype's type
13938 echo "$as_me:13938: checking for type of chtype" >&5
13939 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13941 # Check whether --with-chtype or --without-chtype was given.
13942 if test "${with_chtype+set}" = set; then
13943 withval="$with_chtype"
13944 NCURSES_CHTYPE="$withval"
13946 NCURSES_CHTYPE=$cf_dft_chtype
13948 echo "$as_me:13948: result: $NCURSES_CHTYPE" >&5
13949 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13951 ### use option --with-ospeed to override ospeed's type
13952 echo "$as_me:13952: checking for type of ospeed" >&5
13953 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13955 # Check whether --with-ospeed or --without-ospeed was given.
13956 if test "${with_ospeed+set}" = set; then
13957 withval="$with_ospeed"
13958 NCURSES_OSPEED="$withval"
13960 NCURSES_OSPEED=short
13962 echo "$as_me:13962: result: $NCURSES_OSPEED" >&5
13963 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13965 ### use option --with-mmask-t to override mmask_t's type
13966 echo "$as_me:13966: checking for type of mmask_t" >&5
13967 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13969 # Check whether --with-mmask-t or --without-mmask-t was given.
13970 if test "${with_mmask_t+set}" = set; then
13971 withval="$with_mmask_t"
13972 NCURSES_MMASK_T="$withval"
13974 NCURSES_MMASK_T=$cf_dft_mmask_t
13976 echo "$as_me:13976: result: $NCURSES_MMASK_T" >&5
13977 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13979 ### use option --with-ccharw-max to override CCHARW_MAX size
13980 echo "$as_me:13980: checking for size CCHARW_MAX" >&5
13981 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13983 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13984 if test "${with_ccharw_max+set}" = set; then
13985 withval="$with_ccharw_max"
13986 NCURSES_CCHARW_MAX="$withval"
13988 NCURSES_CCHARW_MAX=5
13990 echo "$as_me:13990: result: $NCURSES_CCHARW_MAX" >&5
13991 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13993 echo "$as_me:13993: checking for ANSI C header files" >&5
13994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13995 if test "${ac_cv_header_stdc+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 cat >"conftest.$ac_ext" <<_ACEOF
13999 #line 13999 "configure"
14000 #include "confdefs.h"
14001 #include <stdlib.h>
14002 #include <stdarg.h>
14003 #include <string.h>
14007 if { (eval echo "$as_me:14007: \"$ac_cpp "conftest.$ac_ext"\"") >&5
14008 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
14010 $EGREP -v '^ *\+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:14013: \$? = $ac_status" >&5
14014 (exit "$ac_status"); } >/dev/null; then
14015 if test -s conftest.err; then
14016 ac_cpp_err=$ac_c_preproc_warn_flag
14023 if test -z "$ac_cpp_err"; then
14024 ac_cv_header_stdc=yes
14026 echo "$as_me: failed program was:" >&5
14027 cat "conftest.$ac_ext" >&5
14028 ac_cv_header_stdc=no
14030 rm -f conftest.err "conftest.$ac_ext"
14032 if test $ac_cv_header_stdc = yes; then
14033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14034 cat >"conftest.$ac_ext" <<_ACEOF
14035 #line 14035 "configure"
14036 #include "confdefs.h"
14037 #include <string.h>
14040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14041 $EGREP "memchr" >/dev/null 2>&1; then
14044 ac_cv_header_stdc=no
14050 if test $ac_cv_header_stdc = yes; then
14051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14052 cat >"conftest.$ac_ext" <<_ACEOF
14053 #line 14053 "configure"
14054 #include "confdefs.h"
14055 #include <stdlib.h>
14058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14059 $EGREP "free" >/dev/null 2>&1; then
14062 ac_cv_header_stdc=no
14068 if test $ac_cv_header_stdc = yes; then
14069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14070 if test "$cross_compiling" = yes; then
14073 cat >"conftest.$ac_ext" <<_ACEOF
14074 #line 14074 "configure"
14075 #include "confdefs.h"
14077 #if ((' ' & 0x0FF) == 0x020)
14078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14081 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14082 || ('j' <= (c) && (c) <= 'r') \
14083 || ('s' <= (c) && (c) <= 'z'))
14084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14092 for (i = 0; i < 256; i++)
14093 if (XOR (islower (i), ISLOWER (i))
14094 || toupper (i) != TOUPPER (i))
14095 $ac_main_return(2);
14096 $ac_main_return (0);
14099 rm -f "conftest$ac_exeext"
14100 if { (eval echo "$as_me:14100: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>&5
14103 echo "$as_me:14103: \$? = $ac_status" >&5
14104 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14105 { (eval echo "$as_me:14105: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:14108: \$? = $ac_status" >&5
14109 (exit "$ac_status"); }; }; then
14112 echo "$as_me: program exited with status $ac_status" >&5
14113 echo "$as_me: failed program was:" >&5
14114 cat "conftest.$ac_ext" >&5
14115 ac_cv_header_stdc=no
14117 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14121 echo "$as_me:14121: result: $ac_cv_header_stdc" >&5
14122 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14123 if test $ac_cv_header_stdc = yes; then
14125 cat >>confdefs.h <<\EOF
14126 #define STDC_HEADERS 1
14131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14134 inttypes.h stdint.h unistd.h
14136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137 echo "$as_me:14137: checking for $ac_header" >&5
14138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cat >"conftest.$ac_ext" <<_ACEOF
14143 #line 14143 "configure"
14144 #include "confdefs.h"
14145 $ac_includes_default
14146 #include <$ac_header>
14148 rm -f "conftest.$ac_objext"
14149 if { (eval echo "$as_me:14149: \"$ac_compile\"") >&5
14150 (eval $ac_compile) 2>&5
14152 echo "$as_me:14152: \$? = $ac_status" >&5
14153 (exit "$ac_status"); } &&
14154 { ac_try='test -s "conftest.$ac_objext"'
14155 { (eval echo "$as_me:14155: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:14158: \$? = $ac_status" >&5
14159 (exit "$ac_status"); }; }; then
14160 eval "$as_ac_Header=yes"
14162 echo "$as_me: failed program was:" >&5
14163 cat "conftest.$ac_ext" >&5
14164 eval "$as_ac_Header=no"
14166 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14168 echo "$as_me:14168: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
14169 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
14170 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
14171 cat >>confdefs.h <<EOF
14172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178 echo "$as_me:14178: checking for signed char" >&5
14179 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14180 if test "${ac_cv_type_signed_char+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 cat >"conftest.$ac_ext" <<_ACEOF
14184 #line 14184 "configure"
14185 #include "confdefs.h"
14186 $ac_includes_default
14190 if ((signed char *) 0)
14192 if (sizeof (signed char))
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_type_signed_char=yes
14212 echo "$as_me: failed program was:" >&5
14213 cat "conftest.$ac_ext" >&5
14214 ac_cv_type_signed_char=no
14216 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14218 echo "$as_me:14218: result: $ac_cv_type_signed_char" >&5
14219 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14221 echo "$as_me:14221: checking size of signed char" >&5
14222 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14223 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 if test "$ac_cv_type_signed_char" = yes; then
14227 if test "$cross_compiling" = yes; then
14228 # Depending upon the size, compute the lo and hi bounds.
14229 cat >"conftest.$ac_ext" <<_ACEOF
14230 #line 14230 "configure"
14231 #include "confdefs.h"
14232 $ac_includes_default
14236 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14241 rm -f "conftest.$ac_objext"
14242 if { (eval echo "$as_me:14242: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>&5
14245 echo "$as_me:14245: \$? = $ac_status" >&5
14246 (exit "$ac_status"); } &&
14247 { ac_try='test -s "conftest.$ac_objext"'
14248 { (eval echo "$as_me:14248: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:14251: \$? = $ac_status" >&5
14252 (exit "$ac_status"); }; }; then
14255 cat >"conftest.$ac_ext" <<_ACEOF
14256 #line 14256 "configure"
14257 #include "confdefs.h"
14258 $ac_includes_default
14262 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14267 rm -f "conftest.$ac_objext"
14268 if { (eval echo "$as_me:14268: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>&5
14271 echo "$as_me:14271: \$? = $ac_status" >&5
14272 (exit "$ac_status"); } &&
14273 { ac_try='test -s "conftest.$ac_objext"'
14274 { (eval echo "$as_me:14274: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:14277: \$? = $ac_status" >&5
14278 (exit "$ac_status"); }; }; then
14279 ac_hi=$ac_mid; break
14281 echo "$as_me: failed program was:" >&5
14282 cat "conftest.$ac_ext" >&5
14283 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14285 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14288 echo "$as_me: failed program was:" >&5
14289 cat "conftest.$ac_ext" >&5
14292 cat >"conftest.$ac_ext" <<_ACEOF
14293 #line 14293 "configure"
14294 #include "confdefs.h"
14295 $ac_includes_default
14299 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14304 rm -f "conftest.$ac_objext"
14305 if { (eval echo "$as_me:14305: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>&5
14308 echo "$as_me:14308: \$? = $ac_status" >&5
14309 (exit "$ac_status"); } &&
14310 { ac_try='test -s "conftest.$ac_objext"'
14311 { (eval echo "$as_me:14311: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 (exit "$ac_status"); }; }; then
14316 ac_lo=$ac_mid; break
14318 echo "$as_me: failed program was:" >&5
14319 cat "conftest.$ac_ext" >&5
14320 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14326 # Binary search between lo and hi bounds.
14327 while test "x$ac_lo" != "x$ac_hi"; do
14328 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14329 cat >"conftest.$ac_ext" <<_ACEOF
14330 #line 14330 "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14336 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14341 rm -f "conftest.$ac_objext"
14342 if { (eval echo "$as_me:14342: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>&5
14345 echo "$as_me:14345: \$? = $ac_status" >&5
14346 (exit "$ac_status"); } &&
14347 { ac_try='test -s "conftest.$ac_objext"'
14348 { (eval echo "$as_me:14348: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:14351: \$? = $ac_status" >&5
14352 (exit "$ac_status"); }; }; then
14355 echo "$as_me: failed program was:" >&5
14356 cat "conftest.$ac_ext" >&5
14357 ac_lo=`expr "$ac_mid" + 1`
14359 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14361 ac_cv_sizeof_signed_char=$ac_lo
14363 if test "$cross_compiling" = yes; then
14364 { { echo "$as_me:14364: error: cannot run test program while cross compiling" >&5
14365 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14366 { (exit 1); exit 1; }; }
14368 cat >"conftest.$ac_ext" <<_ACEOF
14369 #line 14369 "configure"
14370 #include "confdefs.h"
14371 $ac_includes_default
14375 FILE *f = fopen ("conftest.val", "w");
14377 $ac_main_return (1);
14378 fprintf (f, "%ld", (long)(sizeof (signed char)));
14384 rm -f "conftest$ac_exeext"
14385 if { (eval echo "$as_me:14385: \"$ac_link\"") >&5
14386 (eval $ac_link) 2>&5
14388 echo "$as_me:14388: \$? = $ac_status" >&5
14389 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14390 { (eval echo "$as_me:14390: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit "$ac_status"); }; }; then
14395 ac_cv_sizeof_signed_char=`cat conftest.val`
14397 echo "$as_me: program exited with status $ac_status" >&5
14398 echo "$as_me: failed program was:" >&5
14399 cat "conftest.$ac_ext" >&5
14401 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14406 ac_cv_sizeof_signed_char=0
14409 echo "$as_me:14409: result: $ac_cv_sizeof_signed_char" >&5
14410 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14411 cat >>confdefs.h <<EOF
14412 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14415 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14416 NCURSES_SBOOL="signed char"
14418 NCURSES_SBOOL="char"
14420 echo "$as_me:14420: checking if you want to use signed Boolean array in term.h" >&5
14421 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14423 # Check whether --enable-signed-char or --disable-signed-char was given.
14424 if test "${enable_signed_char+set}" = set; then
14425 enableval="$enable_signed_char"
14426 with_signed_char=$enableval
14428 with_signed_char=no
14430 echo "$as_me:14430: result: $with_signed_char" >&5
14431 echo "${ECHO_T}$with_signed_char" >&6
14432 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14434 ### use option --with-tparm-arg to override tparm's argument type
14435 echo "$as_me:14435: checking for type of tparm args" >&5
14436 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14438 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14439 if test "${with_tparm_arg+set}" = set; then
14440 withval="$with_tparm_arg"
14441 NCURSES_TPARM_ARG="$withval"
14443 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14445 echo "$as_me:14445: result: $NCURSES_TPARM_ARG" >&5
14446 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14448 ### Enable compiling-in rcs id's
14449 echo "$as_me:14449: checking if RCS identifiers should be compiled-in" >&5
14450 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14452 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14453 if test "${with_rcs_ids+set}" = set; then
14454 withval="$with_rcs_ids"
14455 with_rcs_ids=$withval
14459 echo "$as_me:14459: result: $with_rcs_ids" >&5
14460 echo "${ECHO_T}$with_rcs_ids" >&6
14461 test "x$with_rcs_ids" = xyes &&
14462 cat >>confdefs.h <<\EOF
14463 #define USE_RCS_IDS 1
14466 ###############################################################################
14468 echo "$as_me:14468: checking format of man-pages" >&5
14469 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14471 # Check whether --with-manpage-format or --without-manpage-format was given.
14472 if test "${with_manpage_format+set}" = set; then
14473 withval="$with_manpage_format"
14474 MANPAGE_FORMAT=$withval
14476 MANPAGE_FORMAT=unknown
14479 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14480 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14484 case "$MANPAGE_FORMAT" in
14486 if test -z "$MANPATH" ; then
14487 MANPATH="/usr/man:/usr/share/man"
14490 # look for the 'date' man-page (it is most likely to be installed!)
14496 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14497 for cf_dir in $MANPATH; do
14498 test -z "$cf_dir" && cf_dir=/usr/man
14499 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
14501 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14502 if test "x$cf_test" = "x$cf_name" ; then
14505 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14506 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14507 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14508 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14522 # if we found a match in either man* or cat*, stop looking
14523 if test -n "$MANPAGE_FORMAT" ; then
14525 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14526 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14532 test "$cf_found" = yes && break
14535 # only check the first directory in $MANPATH where we find manpages
14536 if test -n "$MANPAGE_FORMAT" ; then
14540 # if we did not find the example, just assume it is normal
14541 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14545 for cf_option in $MANPAGE_FORMAT; do
14546 case "$cf_option" in
14547 (gzip|compress|BSDI|normal|formatted|catonly)
14550 cf_unknown="$cf_unknown $cf_option"
14557 echo "$as_me:14557: result: $MANPAGE_FORMAT" >&5
14558 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14559 if test -n "$cf_unknown" ; then
14560 { echo "$as_me:14560: WARNING: Unexpected manpage-format $cf_unknown" >&5
14561 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14564 echo "$as_me:14564: checking for manpage renaming" >&5
14565 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14567 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14568 if test "${with_manpage_renames+set}" = set; then
14569 withval="$with_manpage_renames"
14570 MANPAGE_RENAMES=$withval
14572 MANPAGE_RENAMES=yes
14575 case ".$MANPAGE_RENAMES" in
14579 # Debian 'man' program?
14580 if test -f /etc/debian_version ; then
14581 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames
14588 if test "$MANPAGE_RENAMES" != no ; then
14589 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then
14590 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES
14591 elif test ! -f "$MANPAGE_RENAMES" ; then
14592 { { echo "$as_me:14592: error: not a filename: $MANPAGE_RENAMES" >&5
14593 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14594 { (exit 1); exit 1; }; }
14597 test ! -d man && mkdir man
14599 # Construct a sed-script to perform renaming within man-pages
14600 if test -n "$MANPAGE_RENAMES" ; then
14601 test ! -d man && mkdir man
14602 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
14606 echo "$as_me:14606: result: $MANPAGE_RENAMES" >&5
14607 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14609 echo "$as_me:14609: checking if manpage aliases will be installed" >&5
14610 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14612 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14613 if test "${with_manpage_aliases+set}" = set; then
14614 withval="$with_manpage_aliases"
14615 MANPAGE_ALIASES=$withval
14617 MANPAGE_ALIASES=yes
14620 echo "$as_me:14620: result: $MANPAGE_ALIASES" >&5
14621 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14625 cf_use_symlinks=yes
14632 MANPAGE_SYMLINKS=no
14633 if test "$MANPAGE_ALIASES" = yes ; then
14634 echo "$as_me:14634: checking if manpage symlinks should be used" >&5
14635 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14637 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14638 if test "${with_manpage_symlinks+set}" = set; then
14639 withval="$with_manpage_symlinks"
14640 MANPAGE_SYMLINKS=$withval
14642 MANPAGE_SYMLINKS=$cf_use_symlinks
14645 if test "$$cf_use_symlinks" = no; then
14646 if test "$MANPAGE_SYMLINKS" = yes ; then
14647 { echo "$as_me:14647: WARNING: cannot make symlinks" >&5
14648 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14649 MANPAGE_SYMLINKS=no
14653 echo "$as_me:14653: result: $MANPAGE_SYMLINKS" >&5
14654 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14657 echo "$as_me:14657: checking for manpage tbl" >&5
14658 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14660 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14661 if test "${with_manpage_tbl+set}" = set; then
14662 withval="$with_manpage_tbl"
14663 MANPAGE_TBL=$withval
14668 echo "$as_me:14668: result: $MANPAGE_TBL" >&5
14669 echo "${ECHO_T}$MANPAGE_TBL" >&6
14671 if test "$prefix" = "NONE" ; then
14672 cf_prefix="$ac_default_prefix"
14674 cf_prefix="$prefix"
14677 case "$MANPAGE_FORMAT" in
14692 test ! -d man && mkdir man
14696 case "$MANPAGE_FORMAT" in
14699 cf_compress=compress
14707 cf_edit_man=./edit_man.sh
14708 cf_man_alias=`pwd`/man_alias.sed
14710 cat >$cf_edit_man <<CF_EOF
14712 # this script is generated by the configure-script CF_MAN_PAGES macro.
14714 prefix="$cf_prefix"
14715 datarootdir="$datarootdir"
14718 NCURSES_MAJOR="$NCURSES_MAJOR"
14719 NCURSES_MINOR="$NCURSES_MINOR"
14720 NCURSES_PATCH="$NCURSES_PATCH"
14722 NCURSES_OSPEED="$NCURSES_OSPEED"
14723 TERMINFO="$TERMINFO"
14726 INSTALL_DATA="$INSTALL_DATA"
14728 transform="$program_transform_name"
14730 TMP=\${TMPDIR:=/tmp}/man\$\$
14731 trap "rm -f \$TMP" 0 1 2 3 15
14743 top_srcdir=\$srcdir/..
14746 if test "\$form" = normal ; then
14747 if test "$cf_format" = yes ; then
14748 if test "$cf_inboth" = no ; then
14749 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14753 cf_subdir=\$mandir/man
14754 cf_tables=$MANPAGE_TBL
14756 cf_subdir=\$mandir/cat
14760 # process the list of source-files
14761 for i in "\$@" ; do
14765 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14766 if test "\$verb" = installing ; then
14767 if test ! -d "\$cf_subdir\${section}" ; then
14768 mkdir -p "\$cf_subdir\$section"
14772 # replace variables in man page
14773 if test ! -f "$cf_man_alias" ; then
14774 cat >>$cf_man_alias <<-CF_EOF2
14775 s,@DATADIR@,\$datadir,g
14776 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14777 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14778 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14779 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14780 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14781 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14784 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14786 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14787 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14788 cat >>$cf_edit_man <<-CF_EOF
14789 s,@$cf_NAME@,$cf_name,g
14793 cat >>$cf_edit_man <<CF_EOF
14795 echo "...made $cf_man_alias"
14799 cf_source=\`basename "\$i"\`
14800 inalias=\$cf_source
14801 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14802 if test ! -f "\$inalias" ; then
14803 echo ".. skipped \$cf_source"
14808 if test "$MANPAGE_ALIASES" != no ; then
14809 cat >>$cf_edit_man <<CF_EOF
14811 test "$with_curses_h" = yes && nCurses=ncurses.3x
14812 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14816 if test "$MANPAGE_RENAMES" = no ; then
14817 cat >>$cf_edit_man <<CF_EOF
14818 # perform program transformations for section 1 man pages
14819 if test \$section = 1 ; then
14820 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14822 cf_target=\$cf_subdir\${section}/\$cf_source
14826 cat >>$cf_edit_man <<CF_EOF
14827 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14828 if test -z "\$cf_target" ; then
14829 echo "? missing rename for \$cf_source"
14830 cf_target="\$cf_source"
14832 cf_target="\$cf_subdir\${section}/\${cf_target}"
14837 cat >>$cf_edit_man <<CF_EOF
14838 sed -f "$cf_man_alias" \\
14841 if test -f "$MANPAGE_RENAMES" ; then
14842 cat >>$cf_edit_man <<CF_EOF
14843 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
14846 cat >>$cf_edit_man <<CF_EOF
14851 cat >>$cf_edit_man <<CF_EOF
14852 if test \$cf_tables = yes ; then
14853 tbl \$TMP >\$TMP.out
14858 if test "$with_overwrite" != yes ; then
14859 cat >>$cf_edit_man <<CF_EOF
14860 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14865 if test "$with_curses_h" != yes ; then
14866 cat >>$cf_edit_man <<CF_EOF
14867 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14872 cat >>$cf_edit_man <<CF_EOF
14873 if test "\$form" = format ; then
14874 nroff -man \$TMP >\$TMP.out
14879 if test -n "$cf_compress" ; then
14880 cat >>$cf_edit_man <<CF_EOF
14881 if test "\$verb" = installing ; then
14882 if ( "$cf_compress" -f \$TMP )
14884 mv \$TMP.$cf_so_strip \$TMP
14887 cf_target="\$cf_target.$cf_so_strip"
14891 case "$MANPAGE_FORMAT" in
14893 cat >>$cf_edit_man <<CF_EOF
14894 if test "\$form" = format ; then
14895 # BSDI installs only .0 suffixes in the cat directories
14896 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
14902 cat >>$cf_edit_man <<CF_EOF
14903 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
14904 if test "\$verb" = installing ; then
14905 echo "\$verb \$cf_target"
14906 \$INSTALL_DATA \$TMP "\$cf_target"
14907 test -d "\$cf_subdir\${section}" &&
14908 test -n "\$aliases" && (
14909 cd "\$cf_subdir\${section}" && (
14910 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
14911 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
14912 cf_target=\`basename "\$cf_target"\`
14913 for cf_alias in \$aliases
14915 if test "\$section" = 1 ; then
14916 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14919 if test "$MANPAGE_SYMLINKS" = yes ; then
14920 if test -f "\$cf_alias\${suffix}" ; then
14921 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
14926 echo ".. \$verb alias \$cf_alias\${suffix}"
14930 cat >>$cf_edit_man <<CF_EOF
14931 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14935 cat >>$cf_edit_man <<CF_EOF
14936 rm -f "\$cf_alias\${suffix}"
14937 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14941 cat >>$cf_edit_man <<CF_EOF
14942 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14943 echo ".so \$cf_source" >\$TMP
14945 if test -n "$cf_compress" ; then
14946 cat >>$cf_edit_man <<CF_EOF
14947 if test -n "$cf_so_strip" ; then
14948 "$cf_compress" -f \$TMP
14949 mv \$TMP.$cf_so_strip \$TMP
14953 cat >>$cf_edit_man <<CF_EOF
14954 echo ".. \$verb alias \$cf_alias\${suffix}"
14955 rm -f "\$cf_alias\${suffix}"
14956 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
14961 elif test "\$verb" = removing ; then
14962 test -f "\$cf_target" && (
14963 echo "\$verb \$cf_target"
14964 rm -f "\$cf_target"
14966 test -d "\$cf_subdir\${section}" &&
14967 test -n "\$aliases" && (
14968 cd "\$cf_subdir\${section}" && (
14969 for cf_alias in \$aliases
14971 if test "\$section" = 1 ; then
14972 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14975 echo ".. \$verb alias \$cf_alias\${suffix}"
14976 rm -f "\$cf_alias\${suffix}"
14988 if test "$cf_inboth" = yes ; then
14989 if test "\$form" != format ; then
14990 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14996 chmod 755 "$cf_edit_man"
14998 ###############################################################################
15000 ### Note that some functions (such as const) are normally disabled anyway.
15001 echo "$as_me:15001: checking if you want to build with function extensions" >&5
15002 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15004 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15005 if test "${enable_ext_funcs+set}" = set; then
15006 enableval="$enable_ext_funcs"
15007 with_ext_funcs=$enableval
15011 echo "$as_me:15011: result: $with_ext_funcs" >&5
15012 echo "${ECHO_T}$with_ext_funcs" >&6
15013 if test "x$with_ext_funcs" = xyes ; then
15014 NCURSES_EXT_FUNCS=1
15016 cat >>confdefs.h <<\EOF
15017 #define NCURSES_EXT_FUNCS 1
15020 cat >>confdefs.h <<\EOF
15021 #define HAVE_ASSUME_DEFAULT_COLORS 1
15024 cat >>confdefs.h <<\EOF
15025 #define HAVE_CURSES_VERSION 1
15028 cat >>confdefs.h <<\EOF
15029 #define HAVE_HAS_KEY 1
15032 cat >>confdefs.h <<\EOF
15033 #define HAVE_RESIZETERM 1
15036 cat >>confdefs.h <<\EOF
15037 #define HAVE_RESIZE_TERM 1
15040 cat >>confdefs.h <<\EOF
15041 #define HAVE_TERM_ENTRY_H 1
15044 cat >>confdefs.h <<\EOF
15045 #define HAVE_USE_DEFAULT_COLORS 1
15048 cat >>confdefs.h <<\EOF
15049 #define HAVE_USE_EXTENDED_NAMES 1
15052 cat >>confdefs.h <<\EOF
15053 #define HAVE_USE_SCREEN 1
15056 cat >>confdefs.h <<\EOF
15057 #define HAVE_USE_WINDOW 1
15060 cat >>confdefs.h <<\EOF
15061 #define HAVE_WRESIZE 1
15064 GENERATED_EXT_FUNCS=generated
15065 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15067 NCURSES_EXT_FUNCS=0
15068 GENERATED_EXT_FUNCS=
15071 echo "$as_me:15071: checking if you want to build with SCREEN extensions" >&5
15072 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15074 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15075 if test "${enable_sp_funcs+set}" = set; then
15076 enableval="$enable_sp_funcs"
15077 with_sp_funcs=$enableval
15079 with_sp_funcs=$cf_dft_ext_spfuncs
15081 echo "$as_me:15081: result: $with_sp_funcs" >&5
15082 echo "${ECHO_T}$with_sp_funcs" >&6
15083 if test "x$with_sp_funcs" = xyes ; then
15086 cat >>confdefs.h <<\EOF
15087 #define NCURSES_SP_FUNCS 1
15090 cat >>confdefs.h <<\EOF
15091 #define HAVE_TPUTS_SP 1
15094 GENERATED_SP_FUNCS=generated
15097 GENERATED_SP_FUNCS=
15100 echo "$as_me:15100: checking if you want to build with terminal-driver" >&5
15101 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15103 # Check whether --enable-term-driver or --disable-term-driver was given.
15104 if test "${enable_term_driver+set}" = set; then
15105 enableval="$enable_term_driver"
15106 with_term_driver=$enableval
15108 with_term_driver=no
15110 echo "$as_me:15110: result: $with_term_driver" >&5
15111 echo "${ECHO_T}$with_term_driver" >&6
15112 if test "x$with_term_driver" = xyes ; then
15114 cat >>confdefs.h <<\EOF
15115 #define USE_TERM_DRIVER 1
15118 if test "x$with_termlib" != xno ; then
15119 { { echo "$as_me:15119: error: The term-driver option conflicts with the termlib option" >&5
15120 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15121 { (exit 1); exit 1; }; }
15123 if test "x$with_sp_funcs" != xyes ; then
15124 { { echo "$as_me:15124: error: The term-driver option relies upon sp-funcs" >&5
15125 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15126 { (exit 1); exit 1; }; }
15130 ### use option --enable-const to turn on use of const beyond that in XSI.
15131 echo "$as_me:15131: checking for extended use of const keyword" >&5
15132 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15134 # Check whether --enable-const or --disable-const was given.
15135 if test "${enable_const+set}" = set; then
15136 enableval="$enable_const"
15137 with_ext_const=$enableval
15139 with_ext_const=$cf_dft_ext_const
15141 echo "$as_me:15141: result: $with_ext_const" >&5
15142 echo "${ECHO_T}$with_ext_const" >&6
15143 NCURSES_CONST='/*nothing*/'
15144 if test "x$with_ext_const" = xyes ; then
15145 NCURSES_CONST=const
15148 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15149 echo "$as_me:15149: checking if you want to use extended colors" >&5
15150 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15152 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15153 if test "${enable_ext_colors+set}" = set; then
15154 enableval="$enable_ext_colors"
15155 with_ext_colors=$enableval
15157 with_ext_colors=$cf_dft_ext_colors
15159 echo "$as_me:15159: result: $with_ext_colors" >&5
15160 echo "${ECHO_T}$with_ext_colors" >&6
15161 NCURSES_EXT_COLORS=0
15162 if test "x$with_ext_colors" = xyes ; then
15163 if test "x$with_widec" != xyes ; then
15164 { echo "$as_me:15164: WARNING: This option applies only to wide-character library" >&5
15165 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15167 # cannot be ABI 5 since it changes sizeof(cchar_t)
15169 if test "${with_abi_version+set}" != set; then
15170 case "$cf_cv_rel_version" in
15172 cf_cv_rel_version=6.0
15173 cf_cv_abi_version=6
15174 { echo "$as_me:15174: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15175 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15180 NCURSES_EXT_COLORS=1
15182 cat >>confdefs.h <<\EOF
15183 #define NCURSES_EXT_COLORS 1
15186 cat >>confdefs.h <<\EOF
15187 #define HAVE_ALLOC_PAIR 1
15190 cat >>confdefs.h <<\EOF
15191 #define HAVE_INIT_EXTENDED_COLOR 1
15194 cat >>confdefs.h <<\EOF
15195 #define HAVE_RESET_COLOR_PAIRS 1
15201 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15202 echo "$as_me:15202: checking if you want to use extended mouse encoding" >&5
15203 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15205 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15206 if test "${enable_ext_mouse+set}" = set; then
15207 enableval="$enable_ext_mouse"
15208 with_ext_mouse=$enableval
15210 with_ext_mouse=$cf_dft_ext_mouse
15212 echo "$as_me:15212: result: $with_ext_mouse" >&5
15213 echo "${ECHO_T}$with_ext_mouse" >&6
15214 NCURSES_MOUSE_VERSION=1
15215 if test "x$with_ext_mouse" = xyes ; then
15216 NCURSES_MOUSE_VERSION=2
15218 if test "${with_abi_version+set}" != set; then
15219 case "$cf_cv_rel_version" in
15221 cf_cv_rel_version=6.0
15222 cf_cv_abi_version=6
15223 { echo "$as_me:15223: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15224 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15231 ### use option --enable-ext-putwin to turn on extended screendumps
15232 echo "$as_me:15232: checking if you want to use extended putwin/screendump" >&5
15233 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15235 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15236 if test "${enable_ext_putwin+set}" = set; then
15237 enableval="$enable_ext_putwin"
15238 with_ext_putwin=$enableval
15240 with_ext_putwin=$cf_dft_ext_putwin
15242 echo "$as_me:15242: result: $with_ext_putwin" >&5
15243 echo "${ECHO_T}$with_ext_putwin" >&6
15244 if test "x$with_ext_putwin" = xyes ; then
15246 cat >>confdefs.h <<\EOF
15247 #define NCURSES_EXT_PUTWIN 1
15252 echo "$as_me:15252: checking if you want \$NCURSES_NO_PADDING code" >&5
15253 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15255 # Check whether --enable-no-padding or --disable-no-padding was given.
15256 if test "${enable_no_padding+set}" = set; then
15257 enableval="$enable_no_padding"
15258 with_no_padding=$enableval
15260 with_no_padding=$with_ext_funcs
15262 echo "$as_me:15262: result: $with_no_padding" >&5
15263 echo "${ECHO_T}$with_no_padding" >&6
15264 test "x$with_no_padding" = xyes &&
15265 cat >>confdefs.h <<\EOF
15266 #define NCURSES_NO_PADDING 1
15269 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15270 echo "$as_me:15270: checking if you want SIGWINCH handler" >&5
15271 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15273 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15274 if test "${enable_sigwinch+set}" = set; then
15275 enableval="$enable_sigwinch"
15276 with_sigwinch=$enableval
15278 with_sigwinch=$with_ext_funcs
15280 echo "$as_me:15280: result: $with_sigwinch" >&5
15281 echo "${ECHO_T}$with_sigwinch" >&6
15282 test "x$with_sigwinch" = xyes &&
15283 cat >>confdefs.h <<\EOF
15284 #define USE_SIGWINCH 1
15287 ### use option --enable-tcap-names to allow user to define new capabilities
15288 echo "$as_me:15288: checking if you want user-definable terminal capabilities like termcap" >&5
15289 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15291 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15292 if test "${enable_tcap_names+set}" = set; then
15293 enableval="$enable_tcap_names"
15294 with_tcap_names=$enableval
15296 with_tcap_names=$with_ext_funcs
15298 echo "$as_me:15298: result: $with_tcap_names" >&5
15299 echo "${ECHO_T}$with_tcap_names" >&6
15301 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15303 ##############################################################################
15305 echo "$as_me:15305: checking if you want to link with the pthread library" >&5
15306 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15308 # Check whether --with-pthread or --without-pthread was given.
15309 if test "${with_pthread+set}" = set; then
15310 withval="$with_pthread"
15311 with_pthread=$withval
15315 echo "$as_me:15315: result: $with_pthread" >&5
15316 echo "${ECHO_T}$with_pthread" >&6
15318 if test "$with_pthread" != no ; then
15319 echo "$as_me:15319: checking for pthread.h" >&5
15320 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15321 if test "${ac_cv_header_pthread_h+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 cat >"conftest.$ac_ext" <<_ACEOF
15325 #line 15325 "configure"
15326 #include "confdefs.h"
15327 #include <pthread.h>
15329 if { (eval echo "$as_me:15329: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15330 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15332 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:15335: \$? = $ac_status" >&5
15336 (exit "$ac_status"); } >/dev/null; then
15337 if test -s conftest.err; then
15338 ac_cpp_err=$ac_c_preproc_warn_flag
15345 if test -z "$ac_cpp_err"; then
15346 ac_cv_header_pthread_h=yes
15348 echo "$as_me: failed program was:" >&5
15349 cat "conftest.$ac_ext" >&5
15350 ac_cv_header_pthread_h=no
15352 rm -f conftest.err "conftest.$ac_ext"
15354 echo "$as_me:15354: result: $ac_cv_header_pthread_h" >&5
15355 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15356 if test "$ac_cv_header_pthread_h" = yes; then
15358 cat >>confdefs.h <<\EOF
15359 #define HAVE_PTHREADS_H 1
15362 for cf_lib_pthread in pthread c_r
15364 echo "$as_me:15364: checking if we can link with the $cf_lib_pthread library" >&5
15365 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15366 cf_save_LIBS="$LIBS"
15368 cf_add_libs="$LIBS"
15371 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15372 # filter duplicates
15373 for cf_add_1lib in $cf_add_0lib; do
15374 for cf_add_2lib in $cf_add_libs; do
15375 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15380 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15382 LIBS="$cf_add_libs"
15384 cat >"conftest.$ac_ext" <<_ACEOF
15385 #line 15385 "configure"
15386 #include "confdefs.h"
15388 #include <pthread.h>
15394 int rc = pthread_create(0,0,0,0);
15395 int r2 = pthread_mutexattr_settype(0, 0);
15401 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15402 if { (eval echo "$as_me:15402: \"$ac_link\"") >&5
15403 (eval $ac_link) 2>&5
15405 echo "$as_me:15405: \$? = $ac_status" >&5
15406 (exit "$ac_status"); } &&
15407 { ac_try='test -s "conftest$ac_exeext"'
15408 { (eval echo "$as_me:15408: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:15411: \$? = $ac_status" >&5
15412 (exit "$ac_status"); }; }; then
15415 echo "$as_me: failed program was:" >&5
15416 cat "conftest.$ac_ext" >&5
15419 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15420 LIBS="$cf_save_LIBS"
15421 echo "$as_me:15421: result: $with_pthread" >&5
15422 echo "${ECHO_T}$with_pthread" >&6
15423 test "$with_pthread" = yes && break
15426 if test "$with_pthread" = yes ; then
15428 cf_add_libs="$LIBS"
15431 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15432 # filter duplicates
15433 for cf_add_1lib in $cf_add_0lib; do
15434 for cf_add_2lib in $cf_add_libs; do
15435 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15440 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15442 LIBS="$cf_add_libs"
15444 cat >>confdefs.h <<\EOF
15445 #define HAVE_LIBPTHREADS 1
15449 { { echo "$as_me:15449: error: Cannot link with pthread library" >&5
15450 echo "$as_me: error: Cannot link with pthread library" >&2;}
15451 { (exit 1); exit 1; }; }
15458 if test "x$with_pthread" != xno; then
15459 echo "$as_me:15459: checking for pthread_kill" >&5
15460 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15461 if test "${ac_cv_func_pthread_kill+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 cat >"conftest.$ac_ext" <<_ACEOF
15465 #line 15465 "configure"
15466 #include "confdefs.h"
15467 #define pthread_kill autoconf_temporary
15468 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15469 #undef pthread_kill
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char pthread_kill (void);
15483 /* The GNU C library defines stubs for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15487 #error found stub for pthread_kill
15490 return pthread_kill ();
15495 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15496 if { (eval echo "$as_me:15496: \"$ac_link\"") >&5
15497 (eval $ac_link) 2>&5
15499 echo "$as_me:15499: \$? = $ac_status" >&5
15500 (exit "$ac_status"); } &&
15501 { ac_try='test -s "conftest$ac_exeext"'
15502 { (eval echo "$as_me:15502: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:15505: \$? = $ac_status" >&5
15506 (exit "$ac_status"); }; }; then
15507 ac_cv_func_pthread_kill=yes
15509 echo "$as_me: failed program was:" >&5
15510 cat "conftest.$ac_ext" >&5
15511 ac_cv_func_pthread_kill=no
15513 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15515 echo "$as_me:15515: result: $ac_cv_func_pthread_kill" >&5
15516 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15517 if test "$ac_cv_func_pthread_kill" = yes; then
15519 echo "$as_me:15519: checking if you want to allow EINTR in wgetch with pthreads" >&5
15520 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15522 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15523 if test "${enable_pthreads_eintr+set}" = set; then
15524 enableval="$enable_pthreads_eintr"
15525 use_pthreads_eintr=$enableval
15527 use_pthreads_eintr=no
15529 echo "$as_me:15529: result: $use_pthreads_eintr" >&5
15530 echo "${ECHO_T}$use_pthreads_eintr" >&6
15531 if test "x$use_pthreads_eintr" = xyes ; then
15533 cat >>confdefs.h <<\EOF
15534 #define USE_PTHREADS_EINTR 1
15540 echo "$as_me:15540: checking if you want to use weak-symbols for pthreads" >&5
15541 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15543 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15544 if test "${enable_weak_symbols+set}" = set; then
15545 enableval="$enable_weak_symbols"
15546 use_weak_symbols=$enableval
15548 use_weak_symbols=no
15550 echo "$as_me:15550: result: $use_weak_symbols" >&5
15551 echo "${ECHO_T}$use_weak_symbols" >&6
15552 if test "x$use_weak_symbols" = xyes ; then
15554 echo "$as_me:15554: checking if $CC supports weak symbols" >&5
15555 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15556 if test "${cf_cv_weak_symbols+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cat >"conftest.$ac_ext" <<_ACEOF
15561 #line 15561 "configure"
15562 #include "confdefs.h"
15569 #if defined(__GNUC__)
15570 # if defined __USE_ISOC99
15571 # define _cat_pragma(exp) _Pragma(#exp)
15572 # define _weak_pragma(exp) _cat_pragma(weak name)
15574 # define _weak_pragma(exp)
15576 # define _declare(name) __extension__ extern __typeof__(name) name
15577 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15580 weak_symbol(fopen);
15586 rm -f "conftest.$ac_objext"
15587 if { (eval echo "$as_me:15587: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit "$ac_status"); } &&
15592 { ac_try='test -s "conftest.$ac_objext"'
15593 { (eval echo "$as_me:15593: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:15596: \$? = $ac_status" >&5
15597 (exit "$ac_status"); }; }; then
15598 cf_cv_weak_symbols=yes
15600 echo "$as_me: failed program was:" >&5
15601 cat "conftest.$ac_ext" >&5
15602 cf_cv_weak_symbols=no
15604 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15607 echo "$as_me:15607: result: $cf_cv_weak_symbols" >&5
15608 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15611 cf_cv_weak_symbols=no
15614 if test "x$cf_cv_weak_symbols" = xyes ; then
15616 cat >>confdefs.h <<\EOF
15617 #define USE_WEAK_SYMBOLS 1
15624 if test "x$with_pthread" = "xyes" ; then
15626 cat >>confdefs.h <<\EOF
15627 #define USE_PTHREADS 1
15630 enable_reentrant=yes
15631 if test "x$cf_cv_weak_symbols" = xyes ; then
15634 cf_add_libs="$PRIVATE_LIBS"
15637 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15638 # filter duplicates
15639 for cf_add_1lib in $cf_add_0lib; do
15640 for cf_add_2lib in $cf_add_libs; do
15641 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15646 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15648 PRIVATE_LIBS="$cf_add_libs"
15653 # Reentrant code has to be opaque; there's little advantage to making ncurses
15654 # opaque outside of that, so there is no --enable-opaque option. We can use
15655 # this option without --with-pthreads, but this will be always set for
15657 echo "$as_me:15657: checking if you want reentrant code" >&5
15658 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15660 # Check whether --enable-reentrant or --disable-reentrant was given.
15661 if test "${enable_reentrant+set}" = set; then
15662 enableval="$enable_reentrant"
15663 with_reentrant=$enableval
15667 echo "$as_me:15667: result: $with_reentrant" >&5
15668 echo "${ECHO_T}$with_reentrant" >&6
15669 if test "x$with_reentrant" = xyes ; then
15670 cf_cv_enable_reentrant=1
15671 cf_cv_enable_opaque="NCURSES_INTERNALS"
15673 if test "x$cf_cv_weak_symbols" = xyes ; then
15675 # remove pthread library from $LIBS
15676 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15678 cf_add_libs="$TEST_LIBS"
15681 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15682 # filter duplicates
15683 for cf_add_1lib in $cf_add_0lib; do
15684 for cf_add_2lib in $cf_add_libs; do
15685 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15690 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15692 TEST_LIBS="$cf_add_libs"
15694 cf_add_libs="$TEST_LIBS2"
15697 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15698 # filter duplicates
15699 for cf_add_1lib in $cf_add_0lib; do
15700 for cf_add_2lib in $cf_add_libs; do
15701 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15706 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15708 TEST_LIBS2="$cf_add_libs"
15710 cf_add_libs="$PRIVATE_LIBS"
15713 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15714 # filter duplicates
15715 for cf_add_1lib in $cf_add_0lib; do
15716 for cf_add_2lib in $cf_add_libs; do
15717 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15722 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15724 PRIVATE_LIBS="$cf_add_libs"
15727 # when not using weak symbols but with_reentrant,
15728 # add 't' to the library suffix on all platforms
15729 # except cygwin, where we only do that if ALSO
15730 # compiling with full thread support.
15732 (*cygwin* | *msys*)
15733 if test "$with_pthread" = "yes" ; then
15734 if test "x$disable_lib_suffixes" = "xno" ; then
15735 LIB_SUFFIX="t${LIB_SUFFIX}"
15739 if test "x$disable_lib_suffixes" = "xno" ; then
15740 LIB_SUFFIX="t${LIB_SUFFIX}"
15746 cat >>confdefs.h <<\EOF
15747 #define USE_REENTRANT 1
15750 if test "${with_abi_version+set}" != set; then
15751 case "$cf_cv_rel_version" in
15753 cf_cv_rel_version=6.0
15754 cf_cv_abi_version=6
15755 { echo "$as_me:15755: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15756 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15762 cf_cv_enable_reentrant=0
15763 cf_cv_enable_opaque="NCURSES_OPAQUE"
15764 NCURSES_SIZE_T=short
15767 echo "$as_me:15767: checking if you want opaque curses-library structures" >&5
15768 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15770 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15771 if test "${enable_opaque_curses+set}" = set; then
15772 enableval="$enable_opaque_curses"
15773 test "$enableval" != yes && enableval=no
15774 if test "$enableval" != "no" ; then
15775 enable_opaque_curses=yes
15778 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15779 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15785 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15786 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15789 echo "$as_me:15789: result: $enable_opaque_curses" >&5
15790 echo "${ECHO_T}$enable_opaque_curses" >&6
15792 test "$cf_cv_enable_reentrant" = 1 && \
15793 test "$enable_opaque_curses" = no && \
15794 { { echo "$as_me:15794: error: reentrant configuration requires opaque library" >&5
15795 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15796 { (exit 1); exit 1; }; }
15798 echo "$as_me:15798: checking if you want opaque form-library structures" >&5
15799 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15801 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15802 if test "${enable_opaque_form+set}" = set; then
15803 enableval="$enable_opaque_form"
15804 enable_opaque_form=yes
15806 enable_opaque_form=no
15808 echo "$as_me:15808: result: $enable_opaque_form" >&5
15809 echo "${ECHO_T}$enable_opaque_form" >&6
15811 echo "$as_me:15811: checking if you want opaque menu-library structures" >&5
15812 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15814 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15815 if test "${enable_opaque_menu+set}" = set; then
15816 enableval="$enable_opaque_menu"
15817 enable_opaque_menu=yes
15819 enable_opaque_menu=no
15821 echo "$as_me:15821: result: $enable_opaque_menu" >&5
15822 echo "${ECHO_T}$enable_opaque_menu" >&6
15824 echo "$as_me:15824: checking if you want opaque panel-library structures" >&5
15825 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15827 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15828 if test "${enable_opaque_panel+set}" = set; then
15829 enableval="$enable_opaque_panel"
15830 enable_opaque_panel=yes
15832 enable_opaque_panel=no
15834 echo "$as_me:15834: result: $enable_opaque_panel" >&5
15835 echo "${ECHO_T}$enable_opaque_panel" >&6
15837 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15838 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15839 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15840 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15842 ### Allow using a different wrap-prefix
15843 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15844 echo "$as_me:15844: checking for prefix used to wrap public variables" >&5
15845 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15847 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15848 if test "${with_wrap_prefix+set}" = set; then
15849 withval="$with_wrap_prefix"
15850 NCURSES_WRAP_PREFIX=$withval
15852 NCURSES_WRAP_PREFIX=_nc_
15854 echo "$as_me:15854: result: $NCURSES_WRAP_PREFIX" >&5
15855 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15857 NCURSES_WRAP_PREFIX=_nc_
15860 cat >>confdefs.h <<EOF
15861 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15864 ###############################################################################
15865 # These options are relatively safe to experiment with.
15867 echo "$as_me:15867: checking if you want all development code" >&5
15868 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15870 # Check whether --with-develop or --without-develop was given.
15871 if test "${with_develop+set}" = set; then
15872 withval="$with_develop"
15873 with_develop=$withval
15877 echo "$as_me:15877: result: $with_develop" >&5
15878 echo "${ECHO_T}$with_develop" >&6
15880 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15881 echo "$as_me:15881: checking if you want hard-tabs code" >&5
15882 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15884 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15885 if test "${enable_hard_tabs+set}" = set; then
15886 enableval="$enable_hard_tabs"
15889 enable_hard_tabs=$with_develop
15891 echo "$as_me:15891: result: $enable_hard_tabs" >&5
15892 echo "${ECHO_T}$enable_hard_tabs" >&6
15893 test "x$enable_hard_tabs" = xyes &&
15894 cat >>confdefs.h <<\EOF
15895 #define USE_HARD_TABS 1
15898 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15899 echo "$as_me:15899: checking if you want limited support for xmc" >&5
15900 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15902 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15903 if test "${enable_xmc_glitch+set}" = set; then
15904 enableval="$enable_xmc_glitch"
15907 enable_xmc_glitch=$with_develop
15909 echo "$as_me:15909: result: $enable_xmc_glitch" >&5
15910 echo "${ECHO_T}$enable_xmc_glitch" >&6
15911 test "x$enable_xmc_glitch" = xyes &&
15912 cat >>confdefs.h <<\EOF
15913 #define USE_XMC_SUPPORT 1
15916 ###############################################################################
15917 # These are just experimental, probably should not be in a package:
15919 echo "$as_me:15919: checking if you do not want to assume colors are white-on-black" >&5
15920 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15922 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15923 if test "${enable_assumed_color+set}" = set; then
15924 enableval="$enable_assumed_color"
15925 with_assumed_color=$enableval
15927 with_assumed_color=yes
15929 echo "$as_me:15929: result: $with_assumed_color" >&5
15930 echo "${ECHO_T}$with_assumed_color" >&6
15931 test "x$with_assumed_color" = xyes &&
15932 cat >>confdefs.h <<\EOF
15933 #define USE_ASSUMED_COLOR 1
15936 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15937 echo "$as_me:15937: checking if you want hashmap scrolling-optimization code" >&5
15938 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15940 # Check whether --enable-hashmap or --disable-hashmap was given.
15941 if test "${enable_hashmap+set}" = set; then
15942 enableval="$enable_hashmap"
15943 with_hashmap=$enableval
15947 echo "$as_me:15947: result: $with_hashmap" >&5
15948 echo "${ECHO_T}$with_hashmap" >&6
15949 test "x$with_hashmap" = xyes &&
15950 cat >>confdefs.h <<\EOF
15951 #define USE_HASHMAP 1
15954 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15955 echo "$as_me:15955: checking if you want colorfgbg code" >&5
15956 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15958 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15959 if test "${enable_colorfgbg+set}" = set; then
15960 enableval="$enable_colorfgbg"
15961 with_colorfgbg=$enableval
15965 echo "$as_me:15965: result: $with_colorfgbg" >&5
15966 echo "${ECHO_T}$with_colorfgbg" >&6
15967 test "x$with_colorfgbg" = xyes &&
15968 cat >>confdefs.h <<\EOF
15969 #define USE_COLORFGBG 1
15972 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15973 echo "$as_me:15973: checking if you want to use gcc -fvisibility option" >&5
15974 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15976 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15977 if test "${enable_fvisibility+set}" = set; then
15978 enableval="$enable_fvisibility"
15979 cf_with_fvisibility=$enableval
15981 cf_with_fvisibility=no
15983 echo "$as_me:15983: result: $cf_with_fvisibility" >&5
15984 echo "${ECHO_T}$cf_with_fvisibility" >&6
15987 NCURSES_CXX_IMPEXP=
15988 if test "x$cf_with_fvisibility" = xyes; then
15990 echo "$as_me:15990: checking if $CC -fvisibility=hidden option works" >&5
15991 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15992 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 cf_save_cflags="$CFLAGS"
15997 CFLAGS="$CFLAGS -fvisibility=hidden"
15998 cat >"conftest.$ac_ext" <<_ACEOF
15999 #line 15999 "configure"
16000 #include "confdefs.h"
16002 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16008 if (somefunc()) return 1;
16014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16015 if { (eval echo "$as_me:16015: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16018 echo "$as_me:16018: \$? = $ac_status" >&5
16019 (exit "$ac_status"); } &&
16020 { ac_try='test -s "conftest$ac_exeext"'
16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:16024: \$? = $ac_status" >&5
16025 (exit "$ac_status"); }; }; then
16026 cf_cv_fvisibility_hidden=yes
16028 echo "$as_me: failed program was:" >&5
16029 cat "conftest.$ac_ext" >&5
16030 cf_cv_fvisibility_hidden=no
16032 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16033 CFLAGS=$cf_save_cflags
16036 echo "$as_me:16036: result: $cf_cv_fvisibility_hidden" >&5
16037 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16039 if test "x$cf_cv_fvisibility_hidden" = xyes
16045 cf_new_extra_cppflags=
16047 for cf_add_cflags in -fvisibility=hidden
16049 case "$cf_fix_cppflags" in
16051 case "$cf_add_cflags" in
16052 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16053 case "$cf_add_cflags" in
16055 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16058 && test -z "${cf_tst_cflags}" \
16059 && cf_fix_cppflags=yes
16061 if test "$cf_fix_cppflags" = yes ; then
16063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16067 elif test "${cf_tst_cflags}" = "\"'" ; then
16069 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16070 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16076 case "$CPPFLAGS" in
16080 case "$cf_add_cflags" in
16082 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16084 CPPFLAGS=`echo "$CPPFLAGS" | \
16085 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16086 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16091 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16092 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16099 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16100 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16107 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16108 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16110 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16112 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16113 && test -z "${cf_tst_cflags}" \
16114 && cf_fix_cppflags=no
16119 if test -n "$cf_new_cflags" ; then
16121 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16122 CFLAGS="${CFLAGS}$cf_new_cflags"
16126 if test -n "$cf_new_cppflags" ; then
16128 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16129 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16133 if test -n "$cf_new_extra_cppflags" ; then
16135 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16136 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16140 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16145 ac_cpp='$CXXCPP $CPPFLAGS'
16146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16147 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16149 ac_main_return="return"
16151 echo "$as_me:16151: checking if $CXX -fvisibility=hidden option works" >&5
16152 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16153 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 cf_save_cflags="$CXXFLAGS"
16158 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16159 cat >"conftest.$ac_ext" <<_ACEOF
16160 #line 16160 "configure"
16161 #include "confdefs.h"
16163 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16169 if (somefunc()) return 1;
16175 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16176 if { (eval echo "$as_me:16176: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16179 echo "$as_me:16179: \$? = $ac_status" >&5
16180 (exit "$ac_status"); } &&
16181 { ac_try='test -s "conftest$ac_exeext"'
16182 { (eval echo "$as_me:16182: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:16185: \$? = $ac_status" >&5
16186 (exit "$ac_status"); }; }; then
16187 cf_cv_fvisibility_hidden2=yes
16189 echo "$as_me: failed program was:" >&5
16190 cat "conftest.$ac_ext" >&5
16191 cf_cv_fvisibility_hidden2=no
16193 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16194 CXXFLAGS=$cf_save_cflags
16197 echo "$as_me:16197: result: $cf_cv_fvisibility_hidden2" >&5
16198 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16200 if test "x$cf_cv_fvisibility_hidden2" = xyes
16203 cf_save_CXXFLAGS="$CFLAGS"
16209 cf_new_extra_cppflags=
16211 for cf_add_cflags in -fvisibility=hidden
16213 case "$cf_fix_cppflags" in
16215 case "$cf_add_cflags" in
16216 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16217 case "$cf_add_cflags" in
16219 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16221 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16222 && test -z "${cf_tst_cflags}" \
16223 && cf_fix_cppflags=yes
16225 if test "$cf_fix_cppflags" = yes ; then
16227 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16228 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16231 elif test "${cf_tst_cflags}" = "\"'" ; then
16233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16234 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16240 case "$CPPFLAGS" in
16244 case "$cf_add_cflags" in
16246 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16248 CPPFLAGS=`echo "$CPPFLAGS" | \
16249 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16250 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16255 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16256 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16263 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16264 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16271 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16272 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16274 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16276 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16277 && test -z "${cf_tst_cflags}" \
16278 && cf_fix_cppflags=no
16283 if test -n "$cf_new_cflags" ; then
16285 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16286 CFLAGS="${CFLAGS}$cf_new_cflags"
16290 if test -n "$cf_new_cppflags" ; then
16292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16293 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16297 if test -n "$cf_new_extra_cppflags" ; then
16299 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16300 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16305 CFLAGS="$cf_save_CXXFLAGS"
16307 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16310 ac_cpp='$CPP $CPPFLAGS'
16311 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16312 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314 ac_main_return="return"
16319 ### use option --enable-interop to turn on use of bindings used for interop
16320 echo "$as_me:16320: checking if you want interop bindings" >&5
16321 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16323 # Check whether --enable-interop or --disable-interop was given.
16324 if test "${enable_interop+set}" = set; then
16325 enableval="$enable_interop"
16326 with_exp_interop=$enableval
16328 with_exp_interop=$cf_dft_interop
16330 echo "$as_me:16330: result: $with_exp_interop" >&5
16331 echo "${ECHO_T}$with_exp_interop" >&6
16333 NCURSES_INTEROP_FUNCS=0
16334 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16336 echo "$as_me:16336: checking if you want experimental safe-sprintf code" >&5
16337 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16339 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16340 if test "${enable_safe_sprintf+set}" = set; then
16341 enableval="$enable_safe_sprintf"
16342 with_safe_sprintf=$enableval
16344 with_safe_sprintf=no
16346 echo "$as_me:16346: result: $with_safe_sprintf" >&5
16347 echo "${ECHO_T}$with_safe_sprintf" >&6
16349 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16350 # when hashmap is used scroll hints are useless
16351 if test "$with_hashmap" = no ; then
16352 echo "$as_me:16352: checking if you want to experiment without scrolling-hints code" >&5
16353 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16355 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16356 if test "${enable_scroll_hints+set}" = set; then
16357 enableval="$enable_scroll_hints"
16358 with_scroll_hints=$enableval
16360 with_scroll_hints=yes
16362 echo "$as_me:16362: result: $with_scroll_hints" >&5
16363 echo "${ECHO_T}$with_scroll_hints" >&6
16364 test "x$with_scroll_hints" = xyes &&
16365 cat >>confdefs.h <<\EOF
16366 #define USE_SCROLL_HINTS 1
16371 echo "$as_me:16371: checking if you want wgetch-events code" >&5
16372 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16374 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16375 if test "${enable_wgetch_events+set}" = set; then
16376 enableval="$enable_wgetch_events"
16377 with_wgetch_events=$enableval
16379 with_wgetch_events=no
16381 echo "$as_me:16381: result: $with_wgetch_events" >&5
16382 echo "${ECHO_T}$with_wgetch_events" >&6
16383 if test "x$with_wgetch_events" = xyes ; then
16385 cat >>confdefs.h <<\EOF
16386 #define NCURSES_WGETCH_EVENTS 1
16389 NCURSES_WGETCH_EVENTS=1
16391 NCURSES_WGETCH_EVENTS=0
16394 case "$cf_cv_system_name" in
16395 (*mingw32*|*mingw64*|*-msvc*)
16396 echo "$as_me:16396: checking if you want experimental-Windows driver" >&5
16397 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16399 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16400 if test "${enable_exp_win32+set}" = set; then
16401 enableval="$enable_exp_win32"
16402 with_exp_win32=$enableval
16406 echo "$as_me:16406: result: $with_exp_win32" >&5
16407 echo "${ECHO_T}$with_exp_win32" >&6
16408 if test "x$with_exp_win32" = xyes
16411 cat >>confdefs.h <<\EOF
16412 #define EXP_WIN32_DRIVER 1
16416 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16418 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16428 ###############################################################################
16430 ### use option --disable-echo to suppress full display compiling commands
16432 echo "$as_me:16432: checking if you want to see long compiling messages" >&5
16433 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16435 # Check whether --enable-echo or --disable-echo was given.
16436 if test "${enable_echo+set}" = set; then
16437 enableval="$enable_echo"
16438 test "$enableval" != no && enableval=yes
16439 if test "$enableval" != "yes" ; then
16442 ECHO_LD='@echo linking $@;'
16443 RULE_CC='@echo compiling $<'
16444 SHOW_CC='@echo compiling $@'
16466 echo "$as_me:16466: result: $enableval" >&5
16467 echo "${ECHO_T}$enableval" >&6
16469 if test "x$enable_echo" = xyes; then
16472 ECHO_LINK='@ echo linking $@ ... ;'
16473 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16474 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16477 # --disable-stripping is used for debugging
16479 echo "$as_me:16479: checking if you want to install stripped executables" >&5
16480 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16482 # Check whether --enable-stripping or --disable-stripping was given.
16483 if test "${enable_stripping+set}" = set; then
16484 enableval="$enable_stripping"
16485 test "$enableval" != no && enableval=yes
16486 if test "$enableval" != "yes" ; then
16487 enable_stripping=no
16489 enable_stripping=yes
16493 enable_stripping=yes
16496 echo "$as_me:16496: result: $enable_stripping" >&5
16497 echo "${ECHO_T}$enable_stripping" >&6
16499 if test "$enable_stripping" = yes
16506 : "${INSTALL:=install}"
16507 echo "$as_me:16507: checking if install accepts -p option" >&5
16508 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16509 if test "${cf_cv_install_p+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16519 if test -f conftest.out/conftest.in
16521 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16522 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16523 if test -s conftest.err
16527 cf_cv_install_p=yes
16538 echo "$as_me:16538: result: $cf_cv_install_p" >&5
16539 echo "${ECHO_T}$cf_cv_install_p" >&6
16541 echo "$as_me:16541: checking if install needs to be told about ownership" >&5
16542 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16543 case `$ac_config_guess` in
16552 echo "$as_me:16552: result: $with_install_o" >&5
16553 echo "${ECHO_T}$with_install_o" >&6
16554 if test "x$with_install_o" = xyes
16556 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'`"
16561 # If we're avoiding relinking of shared libraries during install, that is to
16562 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16563 # the install program has "-p" (for preserving timestamps).
16564 cf_cv_do_reranlib=yes
16565 if test "x$cf_cv_install_p" = xyes
16567 if test "x$cf_cv_do_relink" != xyes
16569 cf_cv_do_reranlib=no
16571 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16575 ### use option --enable-warnings to turn on all gcc warnings
16577 echo "$as_me:16577: checking if you want to use C11 _Noreturn feature" >&5
16578 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
16580 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
16581 if test "${enable_stdnoreturn+set}" = set; then
16582 enableval="$enable_stdnoreturn"
16583 test "$enableval" != yes && enableval=no
16584 if test "$enableval" != "no" ; then
16585 enable_stdnoreturn=yes
16587 enable_stdnoreturn=no
16591 enable_stdnoreturn=no
16594 echo "$as_me:16594: result: $enable_stdnoreturn" >&5
16595 echo "${ECHO_T}$enable_stdnoreturn" >&6
16597 if test $enable_stdnoreturn = yes; then
16598 echo "$as_me:16598: checking for C11 _Noreturn feature" >&5
16599 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
16600 if test "${cf_cv_c11_noreturn+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 cat >"conftest.$ac_ext" <<_ACEOF
16604 #line 16604 "configure"
16605 #include "confdefs.h"
16608 #include <stdlib.h>
16609 #include <stdnoreturn.h>
16610 static _Noreturn void giveup(void) { exit(0); }
16615 if (feof(stdin)) giveup()
16620 rm -f "conftest.$ac_objext"
16621 if { (eval echo "$as_me:16621: \"$ac_compile\"") >&5
16622 (eval $ac_compile) 2>&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 (exit "$ac_status"); } &&
16626 { ac_try='test -s "conftest.$ac_objext"'
16627 { (eval echo "$as_me:16627: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:16630: \$? = $ac_status" >&5
16631 (exit "$ac_status"); }; }; then
16632 cf_cv_c11_noreturn=yes
16634 echo "$as_me: failed program was:" >&5
16635 cat "conftest.$ac_ext" >&5
16636 cf_cv_c11_noreturn=no
16638 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16641 echo "$as_me:16641: result: $cf_cv_c11_noreturn" >&5
16642 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
16644 cf_cv_c11_noreturn=no,
16647 if test "$cf_cv_c11_noreturn" = yes; then
16649 cat >>confdefs.h <<\EOF
16650 #define HAVE_STDNORETURN_H 1
16653 cat >>confdefs.h <<EOF
16654 #define STDC_NORETURN _Noreturn
16657 HAVE_STDNORETURN_H=1
16659 HAVE_STDNORETURN_H=0
16662 if test "$GCC" = yes || test "$GXX" = yes
16665 if test "$GCC" = yes || test "$GXX" = yes
16669 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16671 echo "${as_me:-configure}:16671: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16674 for cf_temp_scan in $CFLAGS
16676 case "x$cf_temp_scan" in
16679 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16680 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16685 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16686 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16691 CFLAGS="$cf_temp_flags"
16692 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16694 echo "${as_me:-configure}:16694: testing ... fixed $CFLAGS ..." 1>&5
16696 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16698 echo "${as_me:-configure}:16698: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16704 if test "$GCC" = yes || test "$GXX" = yes
16708 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16710 echo "${as_me:-configure}:16710: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16713 for cf_temp_scan in $CPPFLAGS
16715 case "x$cf_temp_scan" in
16718 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16719 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16724 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16725 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16730 CPPFLAGS="$cf_temp_flags"
16731 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16733 echo "${as_me:-configure}:16733: testing ... fixed $CPPFLAGS ..." 1>&5
16735 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16737 echo "${as_me:-configure}:16737: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16743 if test "$GCC" = yes || test "$GXX" = yes
16747 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16749 echo "${as_me:-configure}:16749: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16752 for cf_temp_scan in $LDFLAGS
16754 case "x$cf_temp_scan" in
16757 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16758 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16763 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16764 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16769 LDFLAGS="$cf_temp_flags"
16770 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16772 echo "${as_me:-configure}:16772: testing ... fixed $LDFLAGS ..." 1>&5
16774 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16776 echo "${as_me:-configure}:16776: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16782 echo "$as_me:16782: checking if you want to turn on gcc warnings" >&5
16783 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16785 # Check whether --enable-warnings or --disable-warnings was given.
16786 if test "${enable_warnings+set}" = set; then
16787 enableval="$enable_warnings"
16788 test "$enableval" != yes && enableval=no
16789 if test "$enableval" != "no" ; then
16790 enable_warnings=yes
16799 echo "$as_me:16799: result: $enable_warnings" >&5
16800 echo "${ECHO_T}$enable_warnings" >&6
16801 if test "$enable_warnings" = "yes"
16804 if test "x$have_x" = xyes; then
16806 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16807 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16808 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16809 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16810 for cf_X_CFLAGS in $X_CFLAGS
16812 case "x$cf_X_CFLAGS" in
16814 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16817 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16822 cat >"conftest.$ac_ext" <<_ACEOF
16823 #line 16823 "configure"
16824 #include "confdefs.h"
16826 #include <stdlib.h>
16827 #include <X11/Intrinsic.h>
16832 String foo = malloc(1); free((void*)foo)
16837 rm -f "conftest.$ac_objext"
16838 if { (eval echo "$as_me:16838: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>&5
16841 echo "$as_me:16841: \$? = $ac_status" >&5
16842 (exit "$ac_status"); } &&
16843 { ac_try='test -s "conftest.$ac_objext"'
16844 { (eval echo "$as_me:16844: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:16847: \$? = $ac_status" >&5
16848 (exit "$ac_status"); }; }; then
16850 echo "$as_me:16850: checking for X11/Xt const-feature" >&5
16851 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16852 if test "${cf_cv_const_x_string+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >"conftest.$ac_ext" <<_ACEOF
16857 #line 16857 "configure"
16858 #include "confdefs.h"
16860 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16861 #undef XTSTRINGDEFINES /* X11R5 and later */
16862 #include <stdlib.h>
16863 #include <X11/Intrinsic.h>
16868 String foo = malloc(1); *foo = 0
16873 rm -f "conftest.$ac_objext"
16874 if { (eval echo "$as_me:16874: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>&5
16877 echo "$as_me:16877: \$? = $ac_status" >&5
16878 (exit "$ac_status"); } &&
16879 { ac_try='test -s "conftest.$ac_objext"'
16880 { (eval echo "$as_me:16880: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16883 echo "$as_me:16883: \$? = $ac_status" >&5
16884 (exit "$ac_status"); }; }; then
16886 cf_cv_const_x_string=no
16889 echo "$as_me: failed program was:" >&5
16890 cat "conftest.$ac_ext" >&5
16892 cf_cv_const_x_string=yes
16895 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16898 echo "$as_me:16898: result: $cf_cv_const_x_string" >&5
16899 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16901 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16902 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16903 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16905 case "$cf_cv_const_x_string" in
16908 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16909 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16915 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16921 echo "$as_me: failed program was:" >&5
16922 cat "conftest.$ac_ext" >&5
16924 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16926 cat > "conftest.$ac_ext" <<EOF
16927 #line 16927 "${as_me:-configure}"
16928 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16930 if test "$INTEL_COMPILER" = yes
16932 # The "-wdXXX" options suppress warnings:
16933 # remark #1419: external declaration in primary source file
16934 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16935 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16936 # remark #193: zero used for undefined preprocessing identifier
16937 # remark #593: variable "curs_sb_left_arrow" was set but never used
16938 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16939 # remark #869: parameter "tw" was never referenced
16940 # remark #981: operands are evaluated in unspecified order
16941 # warning #279: controlling expression is constant
16943 { echo "$as_me:16943: checking for $CC warning options..." >&5
16944 echo "$as_me: checking for $CC warning options..." >&6;}
16945 cf_save_CFLAGS="$CFLAGS"
16946 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16958 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16959 if { (eval echo "$as_me:16959: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>&5
16962 echo "$as_me:16962: \$? = $ac_status" >&5
16963 (exit "$ac_status"); }; then
16964 test -n "$verbose" && echo "$as_me:16964: result: ... -$cf_opt" >&5
16965 echo "${ECHO_T}... -$cf_opt" >&6
16966 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16969 CFLAGS="$cf_save_CFLAGS"
16970 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16972 { echo "$as_me:16972: checking for $CC warning options..." >&5
16973 echo "$as_me: checking for $CC warning options..." >&6;}
16974 cf_save_CFLAGS="$CFLAGS"
16976 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16977 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16978 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16979 for cf_opt in W Wall \
16980 Wbad-function-cast \
16983 Wdeclaration-after-statement \
16986 Wmissing-declarations \
16987 Wmissing-prototypes \
16991 Wstrict-prototypes \
16992 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16994 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16995 if { (eval echo "$as_me:16995: \"$ac_compile\"") >&5
16996 (eval $ac_compile) 2>&5
16998 echo "$as_me:16998: \$? = $ac_status" >&5
16999 (exit "$ac_status"); }; then
17000 test -n "$verbose" && echo "$as_me:17000: result: ... -$cf_opt" >&5
17001 echo "${ECHO_T}... -$cf_opt" >&6
17004 case "$GCC_VERSION" in
17006 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17008 echo "${as_me:-configure}:17008: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17014 case "$GCC_VERSION" in
17016 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17018 echo "${as_me:-configure}:17018: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17024 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17027 CFLAGS="$cf_save_CFLAGS"
17033 if test "$GCC" = yes || test "$GXX" = yes
17035 cat > conftest.i <<EOF
17037 #define GCC_PRINTF 0
17040 #define GCC_SCANF 0
17042 #ifndef GCC_NORETURN
17043 #define GCC_NORETURN /* nothing */
17046 #define GCC_UNUSED /* nothing */
17049 if test "$GCC" = yes
17051 { echo "$as_me:17051: checking for $CC __attribute__ directives..." >&5
17052 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17053 cat > "conftest.$ac_ext" <<EOF
17054 #line 17054 "${as_me:-configure}"
17055 #include "confdefs.h"
17056 #include "conftest.h"
17057 #include "conftest.i"
17059 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17061 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17064 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17066 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17068 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17069 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17070 extern GCC_NORETURN void foo(void);
17071 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17073 cf_printf_attribute=no
17074 cf_scanf_attribute=no
17075 for cf_attribute in scanf printf unused noreturn
17078 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17080 cf_directive="__attribute__(($cf_attribute))"
17081 echo "checking for $CC $cf_directive" 1>&5
17083 case "$cf_attribute" in
17085 cf_printf_attribute=yes
17086 cat >conftest.h <<EOF
17087 #define GCC_$cf_ATTRIBUTE 1
17091 cf_scanf_attribute=yes
17092 cat >conftest.h <<EOF
17093 #define GCC_$cf_ATTRIBUTE 1
17097 cat >conftest.h <<EOF
17098 #define GCC_$cf_ATTRIBUTE $cf_directive
17103 if { (eval echo "$as_me:17103: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>&5
17106 echo "$as_me:17106: \$? = $ac_status" >&5
17107 (exit "$ac_status"); }; then
17108 test -n "$verbose" && echo "$as_me:17108: result: ... $cf_attribute" >&5
17109 echo "${ECHO_T}... $cf_attribute" >&6
17110 cat conftest.h >>confdefs.h
17111 case "$cf_attribute" in
17114 cat >>confdefs.h <<EOF
17115 #define GCC_NORETURN $cf_directive
17120 cf_value='/* nothing */'
17121 if test "$cf_printf_attribute" != no ; then
17122 cf_value='__attribute__((format(printf,fmt,var)))'
17124 cat >>confdefs.h <<\EOF
17125 #define GCC_PRINTF 1
17130 cat >>confdefs.h <<EOF
17131 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17136 cf_value='/* nothing */'
17137 if test "$cf_scanf_attribute" != no ; then
17138 cf_value='__attribute__((format(scanf,fmt,var)))'
17140 cat >>confdefs.h <<\EOF
17141 #define GCC_SCANF 1
17146 cat >>confdefs.h <<EOF
17147 #define GCC_SCANFLIKE(fmt,var) $cf_value
17153 cat >>confdefs.h <<EOF
17154 #define GCC_UNUSED $cf_directive
17162 ${FGREP-fgrep} define conftest.i >>confdefs.h
17169 if test "x$enable_warnings" = "xyes"; then
17171 ADAFLAGS="$ADAFLAGS -gnatg"
17173 if test "x$cf_with_cxx" = xyes ; then
17177 if test "$GCC" = yes ; then
17180 echo "$as_me:17180: checking if this is really Intel C++ compiler" >&5
17181 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17182 cf_save_CFLAGS="$CXXFLAGS"
17183 CXXFLAGS="$CXXFLAGS -no-gcc"
17184 cat >"conftest.$ac_ext" <<_ACEOF
17185 #line 17185 "configure"
17186 #include "confdefs.h"
17192 #ifdef __INTEL_COMPILER
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 INTEL_CPLUSPLUS=yes
17214 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17217 echo "$as_me: failed program was:" >&5
17218 cat "conftest.$ac_ext" >&5
17220 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17221 CXXFLAGS="$cf_save_CFLAGS"
17222 echo "$as_me:17222: result: $INTEL_CPLUSPLUS" >&5
17223 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17230 if test "$GCC" = yes ; then
17231 echo "$as_me:17231: checking if this is really Clang C++ compiler" >&5
17232 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17233 cf_save_CFLAGS="$CXXFLAGS"
17234 cat >"conftest.$ac_ext" <<_ACEOF
17235 #line 17235 "configure"
17236 #include "confdefs.h"
17251 rm -f "conftest.$ac_objext"
17252 if { (eval echo "$as_me:17252: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>&5
17255 echo "$as_me:17255: \$? = $ac_status" >&5
17256 (exit "$ac_status"); } &&
17257 { ac_try='test -s "conftest.$ac_objext"'
17258 { (eval echo "$as_me:17258: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:17261: \$? = $ac_status" >&5
17262 (exit "$ac_status"); }; }; then
17263 CLANG_CPLUSPLUS=yes
17266 echo "$as_me: failed program was:" >&5
17267 cat "conftest.$ac_ext" >&5
17269 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17270 CXXFLAGS="$cf_save_CFLAGS"
17271 echo "$as_me:17271: result: $CLANG_CPLUSPLUS" >&5
17272 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17277 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17279 (c[1-9][0-9]|*/c[1-9][0-9])
17280 { echo "$as_me:17280: WARNING: replacing broken compiler alias $CC" >&5
17281 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17282 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17287 echo "$as_me:17287: checking version of $CC" >&5
17288 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17289 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.].*//'`"
17290 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17291 echo "$as_me:17291: result: $CLANG_VERSION" >&5
17292 echo "${ECHO_T}$CLANG_VERSION" >&6
17294 for cf_clang_opt in \
17295 -Qunused-arguments \
17296 -Wno-error=implicit-function-declaration
17298 echo "$as_me:17298: checking if option $cf_clang_opt works" >&5
17299 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17300 cf_save_CFLAGS="$CFLAGS"
17301 CFLAGS="$CFLAGS $cf_clang_opt"
17302 cat >"conftest.$ac_ext" <<_ACEOF
17303 #line 17303 "configure"
17304 #include "confdefs.h"
17311 printf("hello!\\n");
17316 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17317 if { (eval echo "$as_me:17317: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>&5
17320 echo "$as_me:17320: \$? = $ac_status" >&5
17321 (exit "$ac_status"); } &&
17322 { ac_try='test -s "conftest$ac_exeext"'
17323 { (eval echo "$as_me:17323: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17326 echo "$as_me:17326: \$? = $ac_status" >&5
17327 (exit "$ac_status"); }; }; then
17331 echo "$as_me: failed program was:" >&5
17332 cat "conftest.$ac_ext" >&5
17336 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17337 echo "$as_me:17337: result: $cf_clang_optok" >&5
17338 echo "${ECHO_T}$cf_clang_optok" >&6
17339 CFLAGS="$cf_save_CFLAGS"
17340 if test "$cf_clang_optok" = yes; then
17341 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17343 echo "${as_me:-configure}:17343: testing adding option $cf_clang_opt ..." 1>&5
17345 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17346 CFLAGS="${CFLAGS}$cf_clang_opt"
17353 ac_cpp='$CXXCPP $CPPFLAGS'
17354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17355 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17357 ac_main_return="return"
17359 cat > conftest.$ac_ext <<EOF
17360 #line 17360 "configure"
17361 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17364 if test "$INTEL_CPLUSPLUS" = yes
17366 # The "-wdXXX" options suppress warnings:
17367 # remark #1419: external declaration in primary source file
17368 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17369 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17370 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17371 # remark #193: zero used for undefined preprocessing identifier
17372 # remark #593: variable "curs_sb_left_arrow" was set but never used
17373 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17374 # remark #869: parameter "tw" was never referenced
17375 # remark #981: operands are evaluated in unspecified order
17376 # warning #269: invalid format string conversion
17378 { echo "$as_me:17378: checking for $CC warning options..." >&5
17379 echo "$as_me: checking for $CC warning options..." >&6;}
17380 cf_save_CXXFLAGS="$CXXFLAGS"
17381 EXTRA_CXXFLAGS="-Wall"
17394 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17395 if { (eval echo "$as_me:17395: \"$ac_compile\"") >&5
17396 (eval $ac_compile) 2>&5
17398 echo "$as_me:17398: \$? = $ac_status" >&5
17399 (exit "$ac_status"); }; then
17400 test -n "$verbose" && echo "$as_me:17400: result: ... -$cf_opt" >&5
17401 echo "${ECHO_T}... -$cf_opt" >&6
17402 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17405 CXXFLAGS="$cf_save_CXXFLAGS"
17407 elif test "$GXX" = yes
17409 { echo "$as_me:17409: checking for $CXX warning options..." >&5
17410 echo "$as_me: checking for $CXX warning options..." >&6;}
17411 cf_save_CXXFLAGS="$CXXFLAGS"
17412 EXTRA_CXXFLAGS="-W -Wall"
17413 cf_gxx_extra_warnings=""
17414 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17415 case "$GXX_VERSION" in
17419 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17426 Wignored-qualifiers \
17428 Woverloaded-virtual \
17436 Wundef $cf_gxx_extra_warnings Wno-unused
17438 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17439 if { (eval echo "$as_me:17439: \"$ac_compile\"") >&5
17440 (eval $ac_compile) 2>&5
17442 echo "$as_me:17442: \$? = $ac_status" >&5
17443 (exit "$ac_status"); }; then
17444 test -n "$verbose" && echo "$as_me:17444: result: ... -$cf_opt" >&5
17445 echo "${ECHO_T}... -$cf_opt" >&6
17446 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17448 test -n "$verbose" && echo "$as_me:17448: result: ... no -$cf_opt" >&5
17449 echo "${ECHO_T}... no -$cf_opt" >&6
17452 CXXFLAGS="$cf_save_CXXFLAGS"
17457 ac_cpp='$CPP $CPPFLAGS'
17458 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17459 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17461 ac_main_return="return"
17466 echo "$as_me:17466: checking if you want to work around bogus compiler/loader warnings" >&5
17467 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17469 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17470 if test "${enable_string_hacks+set}" = set; then
17471 enableval="$enable_string_hacks"
17472 enable_string_hacks=$enableval
17474 enable_string_hacks=no
17476 echo "$as_me:17476: result: $enable_string_hacks" >&5
17477 echo "${ECHO_T}$enable_string_hacks" >&6
17479 if test "x$enable_string_hacks" = "xyes"; then
17481 cat >>confdefs.h <<\EOF
17482 #define USE_STRING_HACKS 1
17485 { echo "$as_me:17485: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17486 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17487 echo "$as_me:17487: checking for strlcat" >&5
17488 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17489 if test "${ac_cv_func_strlcat+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >"conftest.$ac_ext" <<_ACEOF
17493 #line 17493 "configure"
17494 #include "confdefs.h"
17495 #define strlcat autoconf_temporary
17496 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17503 /* We use char because int might match the return type of a gcc2
17504 builtin and then its argument prototype would still apply. */
17505 char strlcat (void);
17511 /* The GNU C library defines stubs for functions which it implements
17512 to always fail with ENOSYS. Some functions are actually named
17513 something starting with __ and the normal name is an alias. */
17514 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17515 #error found stub for strlcat
17523 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17524 if { (eval echo "$as_me:17524: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>&5
17527 echo "$as_me:17527: \$? = $ac_status" >&5
17528 (exit "$ac_status"); } &&
17529 { ac_try='test -s "conftest$ac_exeext"'
17530 { (eval echo "$as_me:17530: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:17533: \$? = $ac_status" >&5
17534 (exit "$ac_status"); }; }; then
17535 ac_cv_func_strlcat=yes
17537 echo "$as_me: failed program was:" >&5
17538 cat "conftest.$ac_ext" >&5
17539 ac_cv_func_strlcat=no
17541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17543 echo "$as_me:17543: result: $ac_cv_func_strlcat" >&5
17544 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17545 if test "$ac_cv_func_strlcat" = yes; then
17547 cat >>confdefs.h <<\EOF
17548 #define HAVE_STRLCAT 1
17553 echo "$as_me:17553: checking for strlcat in -lbsd" >&5
17554 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17555 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 ac_check_lib_save_LIBS=$LIBS
17560 cat >"conftest.$ac_ext" <<_ACEOF
17561 #line 17561 "configure"
17562 #include "confdefs.h"
17564 /* Override any gcc2 internal prototype to avoid an error. */
17568 /* We use char because int might match the return type of a gcc2
17569 builtin and then its argument prototype would still apply. */
17579 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17580 if { (eval echo "$as_me:17580: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>&5
17583 echo "$as_me:17583: \$? = $ac_status" >&5
17584 (exit "$ac_status"); } &&
17585 { ac_try='test -s "conftest$ac_exeext"'
17586 { (eval echo "$as_me:17586: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:17589: \$? = $ac_status" >&5
17590 (exit "$ac_status"); }; }; then
17591 ac_cv_lib_bsd_strlcat=yes
17593 echo "$as_me: failed program was:" >&5
17594 cat "conftest.$ac_ext" >&5
17595 ac_cv_lib_bsd_strlcat=no
17597 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17598 LIBS=$ac_check_lib_save_LIBS
17600 echo "$as_me:17600: result: $ac_cv_lib_bsd_strlcat" >&5
17601 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17602 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17604 cf_add_libs="$LIBS"
17607 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17608 # filter duplicates
17609 for cf_add_1lib in $cf_add_0lib; do
17610 for cf_add_2lib in $cf_add_libs; do
17611 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17616 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17618 LIBS="$cf_add_libs"
17620 for ac_header in bsd/string.h
17622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17623 echo "$as_me:17623: checking for $ac_header" >&5
17624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 cat >"conftest.$ac_ext" <<_ACEOF
17629 #line 17629 "configure"
17630 #include "confdefs.h"
17631 #include <$ac_header>
17633 if { (eval echo "$as_me:17633: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17634 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17636 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:17639: \$? = $ac_status" >&5
17640 (exit "$ac_status"); } >/dev/null; then
17641 if test -s conftest.err; then
17642 ac_cpp_err=$ac_c_preproc_warn_flag
17649 if test -z "$ac_cpp_err"; then
17650 eval "$as_ac_Header=yes"
17652 echo "$as_me: failed program was:" >&5
17653 cat "conftest.$ac_ext" >&5
17654 eval "$as_ac_Header=no"
17656 rm -f conftest.err "conftest.$ac_ext"
17658 echo "$as_me:17658: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17659 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17660 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17661 cat >>confdefs.h <<EOF
17662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17668 cat >>confdefs.h <<\EOF
17669 #define HAVE_STRLCAT 1
17676 for ac_func in strlcpy snprintf
17678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679 echo "$as_me:17679: checking for $ac_func" >&5
17680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17681 if eval "test \"\${$as_ac_var+set}\" = set"; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 cat >"conftest.$ac_ext" <<_ACEOF
17685 #line 17685 "configure"
17686 #include "confdefs.h"
17687 #define $ac_func autoconf_temporary
17688 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697 char $ac_func (void);
17703 /* The GNU C library defines stubs for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17707 #error found stub for $ac_func
17710 return $ac_func ();
17715 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17716 if { (eval echo "$as_me:17716: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>&5
17719 echo "$as_me:17719: \$? = $ac_status" >&5
17720 (exit "$ac_status"); } &&
17721 { ac_try='test -s "conftest$ac_exeext"'
17722 { (eval echo "$as_me:17722: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:17725: \$? = $ac_status" >&5
17726 (exit "$ac_status"); }; }; then
17727 eval "$as_ac_var=yes"
17729 echo "$as_me: failed program was:" >&5
17730 cat "conftest.$ac_ext" >&5
17731 eval "$as_ac_var=no"
17733 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17735 echo "$as_me:17735: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17736 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17737 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17738 cat >>confdefs.h <<EOF
17739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17747 ### use option --enable-assertions to turn on generation of assertion code
17748 echo "$as_me:17748: checking if you want to enable runtime assertions" >&5
17749 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17751 # Check whether --enable-assertions or --disable-assertions was given.
17752 if test "${enable_assertions+set}" = set; then
17753 enableval="$enable_assertions"
17754 with_assertions=$enableval
17758 echo "$as_me:17758: result: $with_assertions" >&5
17759 echo "${ECHO_T}$with_assertions" >&6
17762 if test "$with_assertions" = no
17764 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17767 ADAFLAGS="$ADAFLAGS -gnata"
17772 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17774 echo "$as_me:17774: checking if you want to use dmalloc for testing" >&5
17775 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17777 # Check whether --with-dmalloc or --without-dmalloc was given.
17778 if test "${with_dmalloc+set}" = set; then
17779 withval="$with_dmalloc"
17780 case "x$withval" in
17783 : "${with_cflags:=-g}"
17784 : "${enable_leaks:=no}"
17787 cat >>confdefs.h <<EOF
17788 #define USE_DMALLOC 1
17796 echo "$as_me:17796: result: ${with_dmalloc:-no}" >&5
17797 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17799 case ".$with_cflags" in
17809 cf_new_extra_cppflags=
17811 for cf_add_cflags in -g
17813 case "$cf_fix_cppflags" in
17815 case "$cf_add_cflags" in
17816 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17817 case "$cf_add_cflags" in
17819 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17821 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17822 && test -z "${cf_tst_cflags}" \
17823 && cf_fix_cppflags=yes
17825 if test "$cf_fix_cppflags" = yes ; then
17827 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17828 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17831 elif test "${cf_tst_cflags}" = "\"'" ; then
17833 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17834 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17840 case "$CPPFLAGS" in
17844 case "$cf_add_cflags" in
17846 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17848 CPPFLAGS=`echo "$CPPFLAGS" | \
17849 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17850 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17855 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17856 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17863 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17864 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17871 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17872 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17874 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17876 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17877 && test -z "${cf_tst_cflags}" \
17878 && cf_fix_cppflags=no
17883 if test -n "$cf_new_cflags" ; then
17885 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17886 CFLAGS="${CFLAGS}$cf_new_cflags"
17890 if test -n "$cf_new_cppflags" ; then
17892 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17893 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17897 if test -n "$cf_new_extra_cppflags" ; then
17899 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17900 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17909 if test "$with_dmalloc" = yes ; then
17910 echo "$as_me:17910: checking for dmalloc.h" >&5
17911 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17912 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 cat >"conftest.$ac_ext" <<_ACEOF
17916 #line 17916 "configure"
17917 #include "confdefs.h"
17918 #include <dmalloc.h>
17920 if { (eval echo "$as_me:17920: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17921 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17923 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17925 cat conftest.err >&5
17926 echo "$as_me:17926: \$? = $ac_status" >&5
17927 (exit "$ac_status"); } >/dev/null; then
17928 if test -s conftest.err; then
17929 ac_cpp_err=$ac_c_preproc_warn_flag
17936 if test -z "$ac_cpp_err"; then
17937 ac_cv_header_dmalloc_h=yes
17939 echo "$as_me: failed program was:" >&5
17940 cat "conftest.$ac_ext" >&5
17941 ac_cv_header_dmalloc_h=no
17943 rm -f conftest.err "conftest.$ac_ext"
17945 echo "$as_me:17945: result: $ac_cv_header_dmalloc_h" >&5
17946 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17947 if test "$ac_cv_header_dmalloc_h" = yes; then
17949 echo "$as_me:17949: checking for dmalloc_debug in -ldmalloc" >&5
17950 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17951 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_check_lib_save_LIBS=$LIBS
17955 LIBS="-ldmalloc $LIBS"
17956 cat >"conftest.$ac_ext" <<_ACEOF
17957 #line 17957 "configure"
17958 #include "confdefs.h"
17960 /* Override any gcc2 internal prototype to avoid an error. */
17964 /* We use char because int might match the return type of a gcc2
17965 builtin and then its argument prototype would still apply. */
17966 char dmalloc_debug ();
17975 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17976 if { (eval echo "$as_me:17976: \"$ac_link\"") >&5
17977 (eval $ac_link) 2>&5
17979 echo "$as_me:17979: \$? = $ac_status" >&5
17980 (exit "$ac_status"); } &&
17981 { ac_try='test -s "conftest$ac_exeext"'
17982 { (eval echo "$as_me:17982: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:17985: \$? = $ac_status" >&5
17986 (exit "$ac_status"); }; }; then
17987 ac_cv_lib_dmalloc_dmalloc_debug=yes
17989 echo "$as_me: failed program was:" >&5
17990 cat "conftest.$ac_ext" >&5
17991 ac_cv_lib_dmalloc_dmalloc_debug=no
17993 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17994 LIBS=$ac_check_lib_save_LIBS
17996 echo "$as_me:17996: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17997 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17998 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
17999 cat >>confdefs.h <<EOF
18000 #define HAVE_LIBDMALLOC 1
18003 LIBS="-ldmalloc $LIBS"
18011 echo "$as_me:18011: checking if you want to use dbmalloc for testing" >&5
18012 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18014 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18015 if test "${with_dbmalloc+set}" = set; then
18016 withval="$with_dbmalloc"
18017 case "x$withval" in
18020 : "${with_cflags:=-g}"
18021 : "${enable_leaks:=no}"
18024 cat >>confdefs.h <<EOF
18025 #define USE_DBMALLOC 1
18033 echo "$as_me:18033: result: ${with_dbmalloc:-no}" >&5
18034 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18036 case ".$with_cflags" in
18046 cf_new_extra_cppflags=
18048 for cf_add_cflags in -g
18050 case "$cf_fix_cppflags" in
18052 case "$cf_add_cflags" in
18053 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18054 case "$cf_add_cflags" in
18056 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18058 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18059 && test -z "${cf_tst_cflags}" \
18060 && cf_fix_cppflags=yes
18062 if test "$cf_fix_cppflags" = yes ; then
18064 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18065 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18068 elif test "${cf_tst_cflags}" = "\"'" ; then
18070 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18071 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18077 case "$CPPFLAGS" in
18081 case "$cf_add_cflags" in
18083 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18085 CPPFLAGS=`echo "$CPPFLAGS" | \
18086 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18087 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18092 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18093 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18100 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18101 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18108 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18109 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18111 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18113 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18114 && test -z "${cf_tst_cflags}" \
18115 && cf_fix_cppflags=no
18120 if test -n "$cf_new_cflags" ; then
18122 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18123 CFLAGS="${CFLAGS}$cf_new_cflags"
18127 if test -n "$cf_new_cppflags" ; then
18129 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18130 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18134 if test -n "$cf_new_extra_cppflags" ; then
18136 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18137 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18146 if test "$with_dbmalloc" = yes ; then
18147 echo "$as_me:18147: checking for dbmalloc.h" >&5
18148 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18149 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 cat >"conftest.$ac_ext" <<_ACEOF
18153 #line 18153 "configure"
18154 #include "confdefs.h"
18155 #include <dbmalloc.h>
18157 if { (eval echo "$as_me:18157: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18158 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18160 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:18163: \$? = $ac_status" >&5
18164 (exit "$ac_status"); } >/dev/null; then
18165 if test -s conftest.err; then
18166 ac_cpp_err=$ac_c_preproc_warn_flag
18173 if test -z "$ac_cpp_err"; then
18174 ac_cv_header_dbmalloc_h=yes
18176 echo "$as_me: failed program was:" >&5
18177 cat "conftest.$ac_ext" >&5
18178 ac_cv_header_dbmalloc_h=no
18180 rm -f conftest.err "conftest.$ac_ext"
18182 echo "$as_me:18182: result: $ac_cv_header_dbmalloc_h" >&5
18183 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18184 if test "$ac_cv_header_dbmalloc_h" = yes; then
18186 echo "$as_me:18186: checking for debug_malloc in -ldbmalloc" >&5
18187 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18188 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-ldbmalloc $LIBS"
18193 cat >"conftest.$ac_ext" <<_ACEOF
18194 #line 18194 "configure"
18195 #include "confdefs.h"
18197 /* Override any gcc2 internal prototype to avoid an error. */
18201 /* We use char because int might match the return type of a gcc2
18202 builtin and then its argument prototype would still apply. */
18203 char debug_malloc ();
18212 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18213 if { (eval echo "$as_me:18213: \"$ac_link\"") >&5
18214 (eval $ac_link) 2>&5
18216 echo "$as_me:18216: \$? = $ac_status" >&5
18217 (exit "$ac_status"); } &&
18218 { ac_try='test -s "conftest$ac_exeext"'
18219 { (eval echo "$as_me:18219: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:18222: \$? = $ac_status" >&5
18223 (exit "$ac_status"); }; }; then
18224 ac_cv_lib_dbmalloc_debug_malloc=yes
18226 echo "$as_me: failed program was:" >&5
18227 cat "conftest.$ac_ext" >&5
18228 ac_cv_lib_dbmalloc_debug_malloc=no
18230 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18231 LIBS=$ac_check_lib_save_LIBS
18233 echo "$as_me:18233: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18234 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18235 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18236 cat >>confdefs.h <<EOF
18237 #define HAVE_LIBDBMALLOC 1
18240 LIBS="-ldbmalloc $LIBS"
18248 echo "$as_me:18248: checking if you want to use valgrind for testing" >&5
18249 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18251 # Check whether --with-valgrind or --without-valgrind was given.
18252 if test "${with_valgrind+set}" = set; then
18253 withval="$with_valgrind"
18254 case "x$withval" in
18257 : "${with_cflags:=-g}"
18258 : "${enable_leaks:=no}"
18261 cat >>confdefs.h <<EOF
18262 #define USE_VALGRIND 1
18270 echo "$as_me:18270: result: ${with_valgrind:-no}" >&5
18271 echo "${ECHO_T}${with_valgrind:-no}" >&6
18273 case ".$with_cflags" in
18283 cf_new_extra_cppflags=
18285 for cf_add_cflags in -g
18287 case "$cf_fix_cppflags" in
18289 case "$cf_add_cflags" in
18290 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18291 case "$cf_add_cflags" in
18293 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18295 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18296 && test -z "${cf_tst_cflags}" \
18297 && cf_fix_cppflags=yes
18299 if test "$cf_fix_cppflags" = yes ; then
18301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18305 elif test "${cf_tst_cflags}" = "\"'" ; then
18307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18314 case "$CPPFLAGS" in
18318 case "$cf_add_cflags" in
18320 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18322 CPPFLAGS=`echo "$CPPFLAGS" | \
18323 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18324 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18329 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18330 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18337 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18338 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18345 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18346 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18348 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18350 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18351 && test -z "${cf_tst_cflags}" \
18352 && cf_fix_cppflags=no
18357 if test -n "$cf_new_cflags" ; then
18359 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18360 CFLAGS="${CFLAGS}$cf_new_cflags"
18364 if test -n "$cf_new_cppflags" ; then
18366 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18367 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18371 if test -n "$cf_new_extra_cppflags" ; then
18373 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18374 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18383 echo "$as_me:18383: checking if you want to perform memory-leak testing" >&5
18384 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18386 # Check whether --enable-leaks or --disable-leaks was given.
18387 if test "${enable_leaks+set}" = set; then
18388 enableval="$enable_leaks"
18389 enable_leaks=$enableval
18393 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18394 echo "$as_me:18394: result: $with_no_leaks" >&5
18395 echo "${ECHO_T}$with_no_leaks" >&6
18397 if test "$enable_leaks" = no ; then
18399 cat >>confdefs.h <<\EOF
18403 cat >>confdefs.h <<\EOF
18404 #define YY_NO_LEAKS 1
18409 cat >>confdefs.h <<\EOF
18410 #define HAVE_NC_ALLOC_H 1
18413 ### use option --enable-expanded to generate certain macros as functions
18415 # Check whether --enable-expanded or --disable-expanded was given.
18416 if test "${enable_expanded+set}" = set; then
18417 enableval="$enable_expanded"
18418 test "x$enableval" = xyes &&
18419 cat >>confdefs.h <<\EOF
18420 #define NCURSES_EXPANDED 1
18425 ### use option --disable-macros to suppress macros in favor of functions
18427 # Check whether --enable-macros or --disable-macros was given.
18428 if test "${enable_macros+set}" = set; then
18429 enableval="$enable_macros"
18430 test "$enableval" = no &&
18431 cat >>confdefs.h <<\EOF
18432 #define NCURSES_NOMACROS 1
18437 # Normally we only add trace() to the debug-library. Allow this to be
18438 # extended to all models of the ncurses library:
18440 case "$CFLAGS $CPPFLAGS" in
18446 echo "$as_me:18446: checking whether to add trace feature to all models" >&5
18447 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18449 # Check whether --with-trace or --without-trace was given.
18450 if test "${with_trace+set}" = set; then
18451 withval="$with_trace"
18452 cf_with_trace=$withval
18454 cf_with_trace=$cf_all_traces
18456 echo "$as_me:18456: result: $cf_with_trace" >&5
18457 echo "${ECHO_T}$cf_with_trace" >&6
18459 if test "x$cf_with_trace" = xyes ; then
18466 cf_new_extra_cppflags=
18468 for cf_add_cflags in -DTRACE
18470 case "$cf_fix_cppflags" in
18472 case "$cf_add_cflags" in
18473 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18474 case "$cf_add_cflags" in
18476 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18478 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18479 && test -z "${cf_tst_cflags}" \
18480 && cf_fix_cppflags=yes
18482 if test "$cf_fix_cppflags" = yes ; then
18484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18488 elif test "${cf_tst_cflags}" = "\"'" ; then
18490 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18491 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18497 case "$CPPFLAGS" in
18501 case "$cf_add_cflags" in
18503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18505 CPPFLAGS=`echo "$CPPFLAGS" | \
18506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18512 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18513 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18520 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18521 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18531 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18533 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18534 && test -z "${cf_tst_cflags}" \
18535 && cf_fix_cppflags=no
18540 if test -n "$cf_new_cflags" ; then
18542 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18543 CFLAGS="${CFLAGS}$cf_new_cflags"
18547 if test -n "$cf_new_cppflags" ; then
18549 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18550 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18554 if test -n "$cf_new_extra_cppflags" ; then
18556 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18557 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18561 cat >>confdefs.h <<\EOF
18562 #define HAVE__TRACEF 1
18570 echo "$as_me:18570: checking if we want to use GNAT projects" >&5
18571 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18573 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18574 if test "${enable_gnat_projects+set}" = set; then
18575 enableval="$enable_gnat_projects"
18576 test "$enableval" != no && enableval=yes
18577 if test "$enableval" != "yes" ; then
18578 enable_gnat_projects=no
18580 enable_gnat_projects=yes
18584 enable_gnat_projects=yes
18587 echo "$as_me:18587: result: $enable_gnat_projects" >&5
18588 echo "${ECHO_T}$enable_gnat_projects" >&6
18590 ### Checks for libraries.
18591 case "$cf_cv_system_name" in
18592 (*mingw32*|*mingw64*)
18593 # Note: WINVER may be a problem with Windows 10
18594 if test "x$with_exp_win32" = xyes ; then
18595 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18597 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18600 echo "$as_me:18600: checking if ssp library is needed" >&5
18601 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
18602 if test "${cf_cv_need_libssp+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 cat >"conftest.$ac_ext" <<_ACEOF
18607 #line 18607 "configure"
18608 #include "confdefs.h"
18610 #include <sys/types.h>
18611 #include <dirent.h>
18617 DIR *dp = opendir(".");
18623 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18624 if { (eval echo "$as_me:18624: \"$ac_link\"") >&5
18625 (eval $ac_link) 2>&5
18627 echo "$as_me:18627: \$? = $ac_status" >&5
18628 (exit "$ac_status"); } &&
18629 { ac_try='test -s "conftest$ac_exeext"'
18630 { (eval echo "$as_me:18630: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:18633: \$? = $ac_status" >&5
18634 (exit "$ac_status"); }; }; then
18635 cf_cv_need_libssp=no
18637 echo "$as_me: failed program was:" >&5
18638 cat "conftest.$ac_ext" >&5
18640 cf_save_LIBS="$LIBS"
18642 cat >"conftest.$ac_ext" <<_ACEOF
18643 #line 18643 "configure"
18644 #include "confdefs.h"
18646 #include <sys/types.h>
18647 #include <dirent.h>
18653 DIR *dp = opendir(".");
18659 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18660 if { (eval echo "$as_me:18660: \"$ac_link\"") >&5
18661 (eval $ac_link) 2>&5
18663 echo "$as_me:18663: \$? = $ac_status" >&5
18664 (exit "$ac_status"); } &&
18665 { ac_try='test -s "conftest$ac_exeext"'
18666 { (eval echo "$as_me:18666: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:18669: \$? = $ac_status" >&5
18670 (exit "$ac_status"); }; }; then
18671 cf_cv_need_libssp=yes
18673 echo "$as_me: failed program was:" >&5
18674 cat "conftest.$ac_ext" >&5
18675 cf_cv_need_libssp=maybe
18677 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18678 LIBS="$cf_save_LIBS"
18681 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18683 echo "$as_me:18683: result: $cf_cv_need_libssp" >&5
18684 echo "${ECHO_T}$cf_cv_need_libssp" >&6
18686 if test "x$cf_cv_need_libssp" = xyes
18689 cf_add_libs="$LIBS"
18692 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18693 # filter duplicates
18694 for cf_add_1lib in $cf_add_0lib; do
18695 for cf_add_2lib in $cf_add_libs; do
18696 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18701 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18703 LIBS="$cf_add_libs"
18709 echo "$as_me:18709: checking for gettimeofday" >&5
18710 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18711 if test "${ac_cv_func_gettimeofday+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 cat >"conftest.$ac_ext" <<_ACEOF
18715 #line 18715 "configure"
18716 #include "confdefs.h"
18717 #define gettimeofday autoconf_temporary
18718 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18719 #undef gettimeofday
18725 /* We use char because int might match the return type of a gcc2
18726 builtin and then its argument prototype would still apply. */
18727 char gettimeofday (void);
18733 /* The GNU C library defines stubs for functions which it implements
18734 to always fail with ENOSYS. Some functions are actually named
18735 something starting with __ and the normal name is an alias. */
18736 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18737 #error found stub for gettimeofday
18740 return gettimeofday ();
18745 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18746 if { (eval echo "$as_me:18746: \"$ac_link\"") >&5
18747 (eval $ac_link) 2>&5
18749 echo "$as_me:18749: \$? = $ac_status" >&5
18750 (exit "$ac_status"); } &&
18751 { ac_try='test -s "conftest$ac_exeext"'
18752 { (eval echo "$as_me:18752: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18755 echo "$as_me:18755: \$? = $ac_status" >&5
18756 (exit "$ac_status"); }; }; then
18757 ac_cv_func_gettimeofday=yes
18759 echo "$as_me: failed program was:" >&5
18760 cat "conftest.$ac_ext" >&5
18761 ac_cv_func_gettimeofday=no
18763 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18765 echo "$as_me:18765: result: $ac_cv_func_gettimeofday" >&5
18766 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18767 if test "$ac_cv_func_gettimeofday" = yes; then
18769 cat >>confdefs.h <<\EOF
18770 #define HAVE_GETTIMEOFDAY 1
18775 echo "$as_me:18775: checking for gettimeofday in -lbsd" >&5
18776 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18777 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 ac_check_lib_save_LIBS=$LIBS
18782 cat >"conftest.$ac_ext" <<_ACEOF
18783 #line 18783 "configure"
18784 #include "confdefs.h"
18786 /* Override any gcc2 internal prototype to avoid an error. */
18790 /* We use char because int might match the return type of a gcc2
18791 builtin and then its argument prototype would still apply. */
18792 char gettimeofday ();
18801 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18802 if { (eval echo "$as_me:18802: \"$ac_link\"") >&5
18803 (eval $ac_link) 2>&5
18805 echo "$as_me:18805: \$? = $ac_status" >&5
18806 (exit "$ac_status"); } &&
18807 { ac_try='test -s "conftest$ac_exeext"'
18808 { (eval echo "$as_me:18808: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18811 echo "$as_me:18811: \$? = $ac_status" >&5
18812 (exit "$ac_status"); }; }; then
18813 ac_cv_lib_bsd_gettimeofday=yes
18815 echo "$as_me: failed program was:" >&5
18816 cat "conftest.$ac_ext" >&5
18817 ac_cv_lib_bsd_gettimeofday=no
18819 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18820 LIBS=$ac_check_lib_save_LIBS
18822 echo "$as_me:18822: result: $ac_cv_lib_bsd_gettimeofday" >&5
18823 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18824 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
18826 cat >>confdefs.h <<\EOF
18827 #define HAVE_GETTIMEOFDAY 1
18830 cf_add_libs="$LIBS"
18833 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18834 # filter duplicates
18835 for cf_add_1lib in $cf_add_0lib; do
18836 for cf_add_2lib in $cf_add_libs; do
18837 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18842 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18844 LIBS="$cf_add_libs"
18852 echo "$as_me:18852: checking if -lm needed for math functions" >&5
18853 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18854 if test "${cf_cv_need_libm+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 cat >"conftest.$ac_ext" <<_ACEOF
18859 #line 18859 "configure"
18860 #include "confdefs.h"
18863 #include <stdlib.h>
18869 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
18874 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18875 if { (eval echo "$as_me:18875: \"$ac_link\"") >&5
18876 (eval $ac_link) 2>&5
18878 echo "$as_me:18878: \$? = $ac_status" >&5
18879 (exit "$ac_status"); } &&
18880 { ac_try='test -s "conftest$ac_exeext"'
18881 { (eval echo "$as_me:18881: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18884 echo "$as_me:18884: \$? = $ac_status" >&5
18885 (exit "$ac_status"); }; }; then
18888 echo "$as_me: failed program was:" >&5
18889 cat "conftest.$ac_ext" >&5
18890 cf_cv_need_libm=yes
18892 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18894 echo "$as_me:18894: result: $cf_cv_need_libm" >&5
18895 echo "${ECHO_T}$cf_cv_need_libm" >&6
18896 if test "$cf_cv_need_libm" = yes
18901 ### Checks for header files.
18902 echo "$as_me:18902: checking for ANSI C header files" >&5
18903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18904 if test "${ac_cv_header_stdc+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 cat >"conftest.$ac_ext" <<_ACEOF
18908 #line 18908 "configure"
18909 #include "confdefs.h"
18910 #include <stdlib.h>
18911 #include <stdarg.h>
18912 #include <string.h>
18916 if { (eval echo "$as_me:18916: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18917 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18919 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:18922: \$? = $ac_status" >&5
18923 (exit "$ac_status"); } >/dev/null; then
18924 if test -s conftest.err; then
18925 ac_cpp_err=$ac_c_preproc_warn_flag
18932 if test -z "$ac_cpp_err"; then
18933 ac_cv_header_stdc=yes
18935 echo "$as_me: failed program was:" >&5
18936 cat "conftest.$ac_ext" >&5
18937 ac_cv_header_stdc=no
18939 rm -f conftest.err "conftest.$ac_ext"
18941 if test $ac_cv_header_stdc = yes; then
18942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18943 cat >"conftest.$ac_ext" <<_ACEOF
18944 #line 18944 "configure"
18945 #include "confdefs.h"
18946 #include <string.h>
18949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18950 $EGREP "memchr" >/dev/null 2>&1; then
18953 ac_cv_header_stdc=no
18959 if test $ac_cv_header_stdc = yes; then
18960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18961 cat >"conftest.$ac_ext" <<_ACEOF
18962 #line 18962 "configure"
18963 #include "confdefs.h"
18964 #include <stdlib.h>
18967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18968 $EGREP "free" >/dev/null 2>&1; then
18971 ac_cv_header_stdc=no
18977 if test $ac_cv_header_stdc = yes; then
18978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18979 if test "$cross_compiling" = yes; then
18982 cat >"conftest.$ac_ext" <<_ACEOF
18983 #line 18983 "configure"
18984 #include "confdefs.h"
18986 #if ((' ' & 0x0FF) == 0x020)
18987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18990 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18991 || ('j' <= (c) && (c) <= 'r') \
18992 || ('s' <= (c) && (c) <= 'z'))
18993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19001 for (i = 0; i < 256; i++)
19002 if (XOR (islower (i), ISLOWER (i))
19003 || toupper (i) != TOUPPER (i))
19004 $ac_main_return(2);
19005 $ac_main_return (0);
19008 rm -f "conftest$ac_exeext"
19009 if { (eval echo "$as_me:19009: \"$ac_link\"") >&5
19010 (eval $ac_link) 2>&5
19012 echo "$as_me:19012: \$? = $ac_status" >&5
19013 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
19014 { (eval echo "$as_me:19014: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:19017: \$? = $ac_status" >&5
19018 (exit "$ac_status"); }; }; then
19021 echo "$as_me: program exited with status $ac_status" >&5
19022 echo "$as_me: failed program was:" >&5
19023 cat "conftest.$ac_ext" >&5
19024 ac_cv_header_stdc=no
19026 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
19030 echo "$as_me:19030: result: $ac_cv_header_stdc" >&5
19031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19032 if test $ac_cv_header_stdc = yes; then
19034 cat >>confdefs.h <<\EOF
19035 #define STDC_HEADERS 1
19040 ac_header_dirent=no
19041 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19042 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19043 echo "$as_me:19043: checking for $ac_hdr that defines DIR" >&5
19044 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 cat >"conftest.$ac_ext" <<_ACEOF
19049 #line 19049 "configure"
19050 #include "confdefs.h"
19051 #include <sys/types.h>
19063 rm -f "conftest.$ac_objext"
19064 if { (eval echo "$as_me:19064: \"$ac_compile\"") >&5
19065 (eval $ac_compile) 2>&5
19067 echo "$as_me:19067: \$? = $ac_status" >&5
19068 (exit "$ac_status"); } &&
19069 { ac_try='test -s "conftest.$ac_objext"'
19070 { (eval echo "$as_me:19070: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:19073: \$? = $ac_status" >&5
19074 (exit "$ac_status"); }; }; then
19075 eval "$as_ac_Header=yes"
19077 echo "$as_me: failed program was:" >&5
19078 cat "conftest.$ac_ext" >&5
19079 eval "$as_ac_Header=no"
19081 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19083 echo "$as_me:19083: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19084 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19085 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19086 cat >>confdefs.h <<EOF
19087 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19090 ac_header_dirent=$ac_hdr; break
19094 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19095 if test $ac_header_dirent = dirent.h; then
19096 echo "$as_me:19096: checking for opendir in -ldir" >&5
19097 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
19098 if test "${ac_cv_lib_dir_opendir+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 ac_check_lib_save_LIBS=$LIBS
19103 cat >"conftest.$ac_ext" <<_ACEOF
19104 #line 19104 "configure"
19105 #include "confdefs.h"
19107 /* Override any gcc2 internal prototype to avoid an error. */
19111 /* We use char because int might match the return type of a gcc2
19112 builtin and then its argument prototype would still apply. */
19122 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19123 if { (eval echo "$as_me:19123: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>&5
19126 echo "$as_me:19126: \$? = $ac_status" >&5
19127 (exit "$ac_status"); } &&
19128 { ac_try='test -s "conftest$ac_exeext"'
19129 { (eval echo "$as_me:19129: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19132 echo "$as_me:19132: \$? = $ac_status" >&5
19133 (exit "$ac_status"); }; }; then
19134 ac_cv_lib_dir_opendir=yes
19136 echo "$as_me: failed program was:" >&5
19137 cat "conftest.$ac_ext" >&5
19138 ac_cv_lib_dir_opendir=no
19140 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19141 LIBS=$ac_check_lib_save_LIBS
19143 echo "$as_me:19143: result: $ac_cv_lib_dir_opendir" >&5
19144 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
19145 if test "$ac_cv_lib_dir_opendir" = yes; then
19150 echo "$as_me:19150: checking for opendir in -lx" >&5
19151 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
19152 if test "${ac_cv_lib_x_opendir+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 ac_check_lib_save_LIBS=$LIBS
19157 cat >"conftest.$ac_ext" <<_ACEOF
19158 #line 19158 "configure"
19159 #include "confdefs.h"
19161 /* Override any gcc2 internal prototype to avoid an error. */
19165 /* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19176 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19177 if { (eval echo "$as_me:19177: \"$ac_link\"") >&5
19178 (eval $ac_link) 2>&5
19180 echo "$as_me:19180: \$? = $ac_status" >&5
19181 (exit "$ac_status"); } &&
19182 { ac_try='test -s "conftest$ac_exeext"'
19183 { (eval echo "$as_me:19183: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19186 echo "$as_me:19186: \$? = $ac_status" >&5
19187 (exit "$ac_status"); }; }; then
19188 ac_cv_lib_x_opendir=yes
19190 echo "$as_me: failed program was:" >&5
19191 cat "conftest.$ac_ext" >&5
19192 ac_cv_lib_x_opendir=no
19194 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19195 LIBS=$ac_check_lib_save_LIBS
19197 echo "$as_me:19197: result: $ac_cv_lib_x_opendir" >&5
19198 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
19199 if test "$ac_cv_lib_x_opendir" = yes; then
19205 echo "$as_me:19205: checking whether time.h and sys/time.h may both be included" >&5
19206 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19207 if test "${ac_cv_header_time+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 cat >"conftest.$ac_ext" <<_ACEOF
19211 #line 19211 "configure"
19212 #include "confdefs.h"
19213 #include <sys/types.h>
19214 #include <sys/time.h>
19220 if ((struct tm *) 0)
19226 rm -f "conftest.$ac_objext"
19227 if { (eval echo "$as_me:19227: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>&5
19230 echo "$as_me:19230: \$? = $ac_status" >&5
19231 (exit "$ac_status"); } &&
19232 { ac_try='test -s "conftest.$ac_objext"'
19233 { (eval echo "$as_me:19233: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:19236: \$? = $ac_status" >&5
19237 (exit "$ac_status"); }; }; then
19238 ac_cv_header_time=yes
19240 echo "$as_me: failed program was:" >&5
19241 cat "conftest.$ac_ext" >&5
19242 ac_cv_header_time=no
19244 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19246 echo "$as_me:19246: result: $ac_cv_header_time" >&5
19247 echo "${ECHO_T}$ac_cv_header_time" >&6
19248 if test $ac_cv_header_time = yes; then
19250 cat >>confdefs.h <<\EOF
19251 #define TIME_WITH_SYS_TIME 1
19260 # -lsystre -ltre -lintl -liconv
19261 echo "$as_me:19261: checking for regcomp in -lsystre" >&5
19262 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19263 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 ac_check_lib_save_LIBS=$LIBS
19267 LIBS="-lsystre $LIBS"
19268 cat >"conftest.$ac_ext" <<_ACEOF
19269 #line 19269 "configure"
19270 #include "confdefs.h"
19272 /* Override any gcc2 internal prototype to avoid an error. */
19276 /* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19287 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19288 if { (eval echo "$as_me:19288: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>&5
19291 echo "$as_me:19291: \$? = $ac_status" >&5
19292 (exit "$ac_status"); } &&
19293 { ac_try='test -s "conftest$ac_exeext"'
19294 { (eval echo "$as_me:19294: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:19297: \$? = $ac_status" >&5
19298 (exit "$ac_status"); }; }; then
19299 ac_cv_lib_systre_regcomp=yes
19301 echo "$as_me: failed program was:" >&5
19302 cat "conftest.$ac_ext" >&5
19303 ac_cv_lib_systre_regcomp=no
19305 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19306 LIBS=$ac_check_lib_save_LIBS
19308 echo "$as_me:19308: result: $ac_cv_lib_systre_regcomp" >&5
19309 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19310 if test "$ac_cv_lib_systre_regcomp" = yes; then
19312 echo "$as_me:19312: checking for libiconv_open in -liconv" >&5
19313 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19314 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 ac_check_lib_save_LIBS=$LIBS
19318 LIBS="-liconv $LIBS"
19319 cat >"conftest.$ac_ext" <<_ACEOF
19320 #line 19320 "configure"
19321 #include "confdefs.h"
19323 /* Override any gcc2 internal prototype to avoid an error. */
19327 /* We use char because int might match the return type of a gcc2
19328 builtin and then its argument prototype would still apply. */
19329 char libiconv_open ();
19338 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19339 if { (eval echo "$as_me:19339: \"$ac_link\"") >&5
19340 (eval $ac_link) 2>&5
19342 echo "$as_me:19342: \$? = $ac_status" >&5
19343 (exit "$ac_status"); } &&
19344 { ac_try='test -s "conftest$ac_exeext"'
19345 { (eval echo "$as_me:19345: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19348 echo "$as_me:19348: \$? = $ac_status" >&5
19349 (exit "$ac_status"); }; }; then
19350 ac_cv_lib_iconv_libiconv_open=yes
19352 echo "$as_me: failed program was:" >&5
19353 cat "conftest.$ac_ext" >&5
19354 ac_cv_lib_iconv_libiconv_open=no
19356 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19357 LIBS=$ac_check_lib_save_LIBS
19359 echo "$as_me:19359: result: $ac_cv_lib_iconv_libiconv_open" >&5
19360 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19361 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19363 cf_add_libs="$LIBS"
19366 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19367 # filter duplicates
19368 for cf_add_1lib in $cf_add_0lib; do
19369 for cf_add_2lib in $cf_add_libs; do
19370 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19375 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19377 LIBS="$cf_add_libs"
19381 echo "$as_me:19381: checking for libintl_gettext in -lintl" >&5
19382 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19383 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 ac_check_lib_save_LIBS=$LIBS
19387 LIBS="-lintl $LIBS"
19388 cat >"conftest.$ac_ext" <<_ACEOF
19389 #line 19389 "configure"
19390 #include "confdefs.h"
19392 /* Override any gcc2 internal prototype to avoid an error. */
19396 /* We use char because int might match the return type of a gcc2
19397 builtin and then its argument prototype would still apply. */
19398 char libintl_gettext ();
19402 libintl_gettext ();
19407 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19408 if { (eval echo "$as_me:19408: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19411 echo "$as_me:19411: \$? = $ac_status" >&5
19412 (exit "$ac_status"); } &&
19413 { ac_try='test -s "conftest$ac_exeext"'
19414 { (eval echo "$as_me:19414: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19417 echo "$as_me:19417: \$? = $ac_status" >&5
19418 (exit "$ac_status"); }; }; then
19419 ac_cv_lib_intl_libintl_gettext=yes
19421 echo "$as_me: failed program was:" >&5
19422 cat "conftest.$ac_ext" >&5
19423 ac_cv_lib_intl_libintl_gettext=no
19425 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19426 LIBS=$ac_check_lib_save_LIBS
19428 echo "$as_me:19428: result: $ac_cv_lib_intl_libintl_gettext" >&5
19429 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19430 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19432 cf_add_libs="$LIBS"
19435 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19436 # filter duplicates
19437 for cf_add_1lib in $cf_add_0lib; do
19438 for cf_add_2lib in $cf_add_libs; do
19439 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19444 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19446 LIBS="$cf_add_libs"
19450 echo "$as_me:19450: checking for tre_regcomp in -ltre" >&5
19451 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19452 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 ac_check_lib_save_LIBS=$LIBS
19457 cat >"conftest.$ac_ext" <<_ACEOF
19458 #line 19458 "configure"
19459 #include "confdefs.h"
19461 /* Override any gcc2 internal prototype to avoid an error. */
19465 /* We use char because int might match the return type of a gcc2
19466 builtin and then its argument prototype would still apply. */
19467 char tre_regcomp ();
19476 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19477 if { (eval echo "$as_me:19477: \"$ac_link\"") >&5
19478 (eval $ac_link) 2>&5
19480 echo "$as_me:19480: \$? = $ac_status" >&5
19481 (exit "$ac_status"); } &&
19482 { ac_try='test -s "conftest$ac_exeext"'
19483 { (eval echo "$as_me:19483: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:19486: \$? = $ac_status" >&5
19487 (exit "$ac_status"); }; }; then
19488 ac_cv_lib_tre_tre_regcomp=yes
19490 echo "$as_me: failed program was:" >&5
19491 cat "conftest.$ac_ext" >&5
19492 ac_cv_lib_tre_tre_regcomp=no
19494 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19495 LIBS=$ac_check_lib_save_LIBS
19497 echo "$as_me:19497: result: $ac_cv_lib_tre_tre_regcomp" >&5
19498 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19499 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19501 cf_add_libs="$LIBS"
19504 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19505 # filter duplicates
19506 for cf_add_1lib in $cf_add_0lib; do
19507 for cf_add_2lib in $cf_add_libs; do
19508 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19513 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19515 LIBS="$cf_add_libs"
19519 cf_add_libs="$LIBS"
19522 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19523 # filter duplicates
19524 for cf_add_1lib in $cf_add_0lib; do
19525 for cf_add_2lib in $cf_add_libs; do
19526 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19531 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19533 LIBS="$cf_add_libs"
19535 cf_regex_func=regcomp
19539 echo "$as_me:19539: checking for regcomp in -lgnurx" >&5
19540 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19541 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-lgnurx $LIBS"
19546 cat >"conftest.$ac_ext" <<_ACEOF
19547 #line 19547 "configure"
19548 #include "confdefs.h"
19550 /* Override any gcc2 internal prototype to avoid an error. */
19554 /* We use char because int might match the return type of a gcc2
19555 builtin and then its argument prototype would still apply. */
19565 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19566 if { (eval echo "$as_me:19566: \"$ac_link\"") >&5
19567 (eval $ac_link) 2>&5
19569 echo "$as_me:19569: \$? = $ac_status" >&5
19570 (exit "$ac_status"); } &&
19571 { ac_try='test -s "conftest$ac_exeext"'
19572 { (eval echo "$as_me:19572: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:19575: \$? = $ac_status" >&5
19576 (exit "$ac_status"); }; }; then
19577 ac_cv_lib_gnurx_regcomp=yes
19579 echo "$as_me: failed program was:" >&5
19580 cat "conftest.$ac_ext" >&5
19581 ac_cv_lib_gnurx_regcomp=no
19583 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19584 LIBS=$ac_check_lib_save_LIBS
19586 echo "$as_me:19586: result: $ac_cv_lib_gnurx_regcomp" >&5
19587 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19588 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19590 cf_add_libs="$LIBS"
19593 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19594 # filter duplicates
19595 for cf_add_1lib in $cf_add_0lib; do
19596 for cf_add_2lib in $cf_add_libs; do
19597 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19602 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19604 LIBS="$cf_add_libs"
19606 cf_regex_func=regcomp
19613 cf_regex_libs="regex re"
19614 echo "$as_me:19614: checking for regcomp" >&5
19615 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19616 if test "${ac_cv_func_regcomp+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 cat >"conftest.$ac_ext" <<_ACEOF
19620 #line 19620 "configure"
19621 #include "confdefs.h"
19622 #define regcomp autoconf_temporary
19623 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19630 /* We use char because int might match the return type of a gcc2
19631 builtin and then its argument prototype would still apply. */
19632 char regcomp (void);
19638 /* The GNU C library defines stubs for functions which it implements
19639 to always fail with ENOSYS. Some functions are actually named
19640 something starting with __ and the normal name is an alias. */
19641 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19642 #error found stub for regcomp
19650 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19651 if { (eval echo "$as_me:19651: \"$ac_link\"") >&5
19652 (eval $ac_link) 2>&5
19654 echo "$as_me:19654: \$? = $ac_status" >&5
19655 (exit "$ac_status"); } &&
19656 { ac_try='test -s "conftest$ac_exeext"'
19657 { (eval echo "$as_me:19657: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:19660: \$? = $ac_status" >&5
19661 (exit "$ac_status"); }; }; then
19662 ac_cv_func_regcomp=yes
19664 echo "$as_me: failed program was:" >&5
19665 cat "conftest.$ac_ext" >&5
19666 ac_cv_func_regcomp=no
19668 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19670 echo "$as_me:19670: result: $ac_cv_func_regcomp" >&5
19671 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19672 if test "$ac_cv_func_regcomp" = yes; then
19673 cf_regex_func=regcomp
19676 for cf_regex_lib in $cf_regex_libs
19678 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19679 echo "$as_me:19679: checking for regcomp in -l$cf_regex_lib" >&5
19680 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19681 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-l$cf_regex_lib $LIBS"
19686 cat >"conftest.$ac_ext" <<_ACEOF
19687 #line 19687 "configure"
19688 #include "confdefs.h"
19690 /* Override any gcc2 internal prototype to avoid an error. */
19694 /* We use char because int might match the return type of a gcc2
19695 builtin and then its argument prototype would still apply. */
19705 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19706 if { (eval echo "$as_me:19706: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>&5
19709 echo "$as_me:19709: \$? = $ac_status" >&5
19710 (exit "$ac_status"); } &&
19711 { ac_try='test -s "conftest$ac_exeext"'
19712 { (eval echo "$as_me:19712: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:19715: \$? = $ac_status" >&5
19716 (exit "$ac_status"); }; }; then
19717 eval "$as_ac_Lib=yes"
19719 echo "$as_me: failed program was:" >&5
19720 cat "conftest.$ac_ext" >&5
19721 eval "$as_ac_Lib=no"
19723 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19724 LIBS=$ac_check_lib_save_LIBS
19726 echo "$as_me:19726: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19728 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19730 cf_add_libs="$LIBS"
19733 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19734 # filter duplicates
19735 for cf_add_1lib in $cf_add_0lib; do
19736 for cf_add_2lib in $cf_add_libs; do
19737 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19742 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19744 LIBS="$cf_add_libs"
19746 cf_regex_func=regcomp
19757 if test "$cf_regex_func" = no ; then
19758 echo "$as_me:19758: checking for compile" >&5
19759 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19760 if test "${ac_cv_func_compile+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 cat >"conftest.$ac_ext" <<_ACEOF
19764 #line 19764 "configure"
19765 #include "confdefs.h"
19766 #define compile autoconf_temporary
19767 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19774 /* We use char because int might match the return type of a gcc2
19775 builtin and then its argument prototype would still apply. */
19776 char compile (void);
19782 /* The GNU C library defines stubs for functions which it implements
19783 to always fail with ENOSYS. Some functions are actually named
19784 something starting with __ and the normal name is an alias. */
19785 #if defined (__stub_compile) || defined (__stub___compile)
19786 #error found stub for compile
19794 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19795 if { (eval echo "$as_me:19795: \"$ac_link\"") >&5
19796 (eval $ac_link) 2>&5
19798 echo "$as_me:19798: \$? = $ac_status" >&5
19799 (exit "$ac_status"); } &&
19800 { ac_try='test -s "conftest$ac_exeext"'
19801 { (eval echo "$as_me:19801: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19804 echo "$as_me:19804: \$? = $ac_status" >&5
19805 (exit "$ac_status"); }; }; then
19806 ac_cv_func_compile=yes
19808 echo "$as_me: failed program was:" >&5
19809 cat "conftest.$ac_ext" >&5
19810 ac_cv_func_compile=no
19812 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19814 echo "$as_me:19814: result: $ac_cv_func_compile" >&5
19815 echo "${ECHO_T}$ac_cv_func_compile" >&6
19816 if test "$ac_cv_func_compile" = yes; then
19817 cf_regex_func=compile
19820 echo "$as_me:19820: checking for compile in -lgen" >&5
19821 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19822 if test "${ac_cv_lib_gen_compile+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 ac_check_lib_save_LIBS=$LIBS
19827 cat >"conftest.$ac_ext" <<_ACEOF
19828 #line 19828 "configure"
19829 #include "confdefs.h"
19831 /* Override any gcc2 internal prototype to avoid an error. */
19835 /* We use char because int might match the return type of a gcc2
19836 builtin and then its argument prototype would still apply. */
19846 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19847 if { (eval echo "$as_me:19847: \"$ac_link\"") >&5
19848 (eval $ac_link) 2>&5
19850 echo "$as_me:19850: \$? = $ac_status" >&5
19851 (exit "$ac_status"); } &&
19852 { ac_try='test -s "conftest$ac_exeext"'
19853 { (eval echo "$as_me:19853: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19856 echo "$as_me:19856: \$? = $ac_status" >&5
19857 (exit "$ac_status"); }; }; then
19858 ac_cv_lib_gen_compile=yes
19860 echo "$as_me: failed program was:" >&5
19861 cat "conftest.$ac_ext" >&5
19862 ac_cv_lib_gen_compile=no
19864 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19865 LIBS=$ac_check_lib_save_LIBS
19867 echo "$as_me:19867: result: $ac_cv_lib_gen_compile" >&5
19868 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19869 if test "$ac_cv_lib_gen_compile" = yes; then
19871 cf_add_libs="$LIBS"
19874 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19875 # filter duplicates
19876 for cf_add_1lib in $cf_add_0lib; do
19877 for cf_add_2lib in $cf_add_libs; do
19878 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19883 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19885 LIBS="$cf_add_libs"
19887 cf_regex_func=compile
19894 if test "$cf_regex_func" = no ; then
19895 { echo "$as_me:19895: WARNING: cannot find regular expression library" >&5
19896 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19899 echo "$as_me:19899: checking for regular-expression headers" >&5
19900 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19901 if test "${cf_cv_regex_hdrs+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 cf_cv_regex_hdrs=no
19906 case "$cf_regex_func" in
19908 for cf_regex_hdr in regexp.h regexpr.h
19910 cat >"conftest.$ac_ext" <<_ACEOF
19911 #line 19911 "configure"
19912 #include "confdefs.h"
19913 #include <$cf_regex_hdr>
19918 char *p = compile("", "", "", 0);
19919 int x = step("", "");
19927 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19928 if { (eval echo "$as_me:19928: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19931 echo "$as_me:19931: \$? = $ac_status" >&5
19932 (exit "$ac_status"); } &&
19933 { ac_try='test -s "conftest$ac_exeext"'
19934 { (eval echo "$as_me:19934: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19937 echo "$as_me:19937: \$? = $ac_status" >&5
19938 (exit "$ac_status"); }; }; then
19940 cf_cv_regex_hdrs=$cf_regex_hdr
19944 echo "$as_me: failed program was:" >&5
19945 cat "conftest.$ac_ext" >&5
19947 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19951 for cf_regex_hdr in regex.h
19953 cat >"conftest.$ac_ext" <<_ACEOF
19954 #line 19954 "configure"
19955 #include "confdefs.h"
19956 #include <sys/types.h>
19957 #include <$cf_regex_hdr>
19963 int x = regcomp(p, "", 0);
19964 int y = regexec(p, "", 0, 0, 0);
19973 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19974 if { (eval echo "$as_me:19974: \"$ac_link\"") >&5
19975 (eval $ac_link) 2>&5
19977 echo "$as_me:19977: \$? = $ac_status" >&5
19978 (exit "$ac_status"); } &&
19979 { ac_try='test -s "conftest$ac_exeext"'
19980 { (eval echo "$as_me:19980: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 echo "$as_me:19983: \$? = $ac_status" >&5
19984 (exit "$ac_status"); }; }; then
19986 cf_cv_regex_hdrs=$cf_regex_hdr
19990 echo "$as_me: failed program was:" >&5
19991 cat "conftest.$ac_ext" >&5
19993 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19999 echo "$as_me:19999: result: $cf_cv_regex_hdrs" >&5
20000 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20002 case "$cf_cv_regex_hdrs" in
20003 (no) { echo "$as_me:20003: WARNING: no regular expression header found" >&5
20004 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20006 cat >>confdefs.h <<\EOF
20007 #define HAVE_REGEX_H_FUNCS 1
20011 cat >>confdefs.h <<\EOF
20012 #define HAVE_REGEXP_H_FUNCS 1
20016 cat >>confdefs.h <<\EOF
20017 #define HAVE_REGEXPR_H_FUNCS 1
20040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20041 echo "$as_me:20041: checking for $ac_header" >&5
20042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20046 cat >"conftest.$ac_ext" <<_ACEOF
20047 #line 20047 "configure"
20048 #include "confdefs.h"
20049 #include <$ac_header>
20051 if { (eval echo "$as_me:20051: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20052 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20054 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:20057: \$? = $ac_status" >&5
20058 (exit "$ac_status"); } >/dev/null; then
20059 if test -s conftest.err; then
20060 ac_cpp_err=$ac_c_preproc_warn_flag
20067 if test -z "$ac_cpp_err"; then
20068 eval "$as_ac_Header=yes"
20070 echo "$as_me: failed program was:" >&5
20071 cat "conftest.$ac_ext" >&5
20072 eval "$as_ac_Header=no"
20074 rm -f conftest.err "conftest.$ac_ext"
20076 echo "$as_me:20076: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20077 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20078 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20079 cat >>confdefs.h <<EOF
20080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086 for ac_header in unistd.h getopt.h
20088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20089 echo "$as_me:20089: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 cat >"conftest.$ac_ext" <<_ACEOF
20095 #line 20095 "configure"
20096 #include "confdefs.h"
20097 #include <$ac_header>
20099 if { (eval echo "$as_me:20099: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20100 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20102 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:20105: \$? = $ac_status" >&5
20106 (exit "$ac_status"); } >/dev/null; then
20107 if test -s conftest.err; then
20108 ac_cpp_err=$ac_c_preproc_warn_flag
20115 if test -z "$ac_cpp_err"; then
20116 eval "$as_ac_Header=yes"
20118 echo "$as_me: failed program was:" >&5
20119 cat "conftest.$ac_ext" >&5
20120 eval "$as_ac_Header=no"
20122 rm -f conftest.err "conftest.$ac_ext"
20124 echo "$as_me:20124: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20125 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20126 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20127 cat >>confdefs.h <<EOF
20128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20134 echo "$as_me:20134: checking for header declaring getopt variables" >&5
20135 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20136 if test "${cf_cv_getopt_header+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 cf_cv_getopt_header=none
20141 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20143 cat >"conftest.$ac_ext" <<_ACEOF
20144 #line 20144 "configure"
20145 #include "confdefs.h"
20147 #include <$cf_header>
20151 int x = optind; char *y = optarg; (void)x; (void)y
20156 rm -f "conftest.$ac_objext"
20157 if { (eval echo "$as_me:20157: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>&5
20160 echo "$as_me:20160: \$? = $ac_status" >&5
20161 (exit "$ac_status"); } &&
20162 { ac_try='test -s "conftest.$ac_objext"'
20163 { (eval echo "$as_me:20163: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:20166: \$? = $ac_status" >&5
20167 (exit "$ac_status"); }; }; then
20168 cf_cv_getopt_header=$cf_header
20171 echo "$as_me: failed program was:" >&5
20172 cat "conftest.$ac_ext" >&5
20174 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20178 echo "$as_me:20178: result: $cf_cv_getopt_header" >&5
20179 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20180 if test "$cf_cv_getopt_header" != none ; then
20182 cat >>confdefs.h <<\EOF
20183 #define HAVE_GETOPT_HEADER 1
20187 if test "$cf_cv_getopt_header" = getopt.h ; then
20189 cat >>confdefs.h <<\EOF
20190 #define NEED_GETOPT_H 1
20195 echo "$as_me:20195: checking if external environ is declared" >&5
20196 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20197 if test "${cf_cv_dcl_environ+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 cat >"conftest.$ac_ext" <<_ACEOF
20202 #line 20202 "configure"
20203 #include "confdefs.h"
20205 #ifdef HAVE_STDLIB_H
20206 #include <stdlib.h>
20208 #include <unistd.h>
20212 int x = (int) environ
20217 rm -f "conftest.$ac_objext"
20218 if { (eval echo "$as_me:20218: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>&5
20221 echo "$as_me:20221: \$? = $ac_status" >&5
20222 (exit "$ac_status"); } &&
20223 { ac_try='test -s "conftest.$ac_objext"'
20224 { (eval echo "$as_me:20224: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:20227: \$? = $ac_status" >&5
20228 (exit "$ac_status"); }; }; then
20229 cf_cv_dcl_environ=yes
20231 echo "$as_me: failed program was:" >&5
20232 cat "conftest.$ac_ext" >&5
20233 cf_cv_dcl_environ=no
20235 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20238 echo "$as_me:20238: result: $cf_cv_dcl_environ" >&5
20239 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20241 if test "$cf_cv_dcl_environ" = no ; then
20243 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20245 cat >>confdefs.h <<EOF
20246 #define $cf_result 1
20251 # It's possible (for near-UNIX clones) that the data doesn't exist
20253 echo "$as_me:20253: checking if external environ exists" >&5
20254 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20255 if test "${cf_cv_have_environ+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 cat >"conftest.$ac_ext" <<_ACEOF
20260 #line 20260 "configure"
20261 #include "confdefs.h"
20264 extern int environ;
20274 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20275 if { (eval echo "$as_me:20275: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>&5
20278 echo "$as_me:20278: \$? = $ac_status" >&5
20279 (exit "$ac_status"); } &&
20280 { ac_try='test -s "conftest$ac_exeext"'
20281 { (eval echo "$as_me:20281: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:20284: \$? = $ac_status" >&5
20285 (exit "$ac_status"); }; }; then
20286 cf_cv_have_environ=yes
20288 echo "$as_me: failed program was:" >&5
20289 cat "conftest.$ac_ext" >&5
20290 cf_cv_have_environ=no
20292 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20295 echo "$as_me:20295: result: $cf_cv_have_environ" >&5
20296 echo "${ECHO_T}$cf_cv_have_environ" >&6
20298 if test "$cf_cv_have_environ" = yes ; then
20300 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20302 cat >>confdefs.h <<EOF
20303 #define $cf_result 1
20308 echo "$as_me:20308: checking for getenv" >&5
20309 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20310 if test "${ac_cv_func_getenv+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 cat >"conftest.$ac_ext" <<_ACEOF
20314 #line 20314 "configure"
20315 #include "confdefs.h"
20316 #define getenv autoconf_temporary
20317 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20326 char getenv (void);
20332 /* The GNU C library defines stubs for functions which it implements
20333 to always fail with ENOSYS. Some functions are actually named
20334 something starting with __ and the normal name is an alias. */
20335 #if defined (__stub_getenv) || defined (__stub___getenv)
20336 #error found stub for getenv
20344 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20345 if { (eval echo "$as_me:20345: \"$ac_link\"") >&5
20346 (eval $ac_link) 2>&5
20348 echo "$as_me:20348: \$? = $ac_status" >&5
20349 (exit "$ac_status"); } &&
20350 { ac_try='test -s "conftest$ac_exeext"'
20351 { (eval echo "$as_me:20351: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:20354: \$? = $ac_status" >&5
20355 (exit "$ac_status"); }; }; then
20356 ac_cv_func_getenv=yes
20358 echo "$as_me: failed program was:" >&5
20359 cat "conftest.$ac_ext" >&5
20360 ac_cv_func_getenv=no
20362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20364 echo "$as_me:20364: result: $ac_cv_func_getenv" >&5
20365 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20367 for ac_func in putenv setenv strdup
20369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20370 echo "$as_me:20370: checking for $ac_func" >&5
20371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20372 if eval "test \"\${$as_ac_var+set}\" = set"; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 cat >"conftest.$ac_ext" <<_ACEOF
20376 #line 20376 "configure"
20377 #include "confdefs.h"
20378 #define $ac_func autoconf_temporary
20379 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20386 /* We use char because int might match the return type of a gcc2
20387 builtin and then its argument prototype would still apply. */
20388 char $ac_func (void);
20394 /* The GNU C library defines stubs for functions which it implements
20395 to always fail with ENOSYS. Some functions are actually named
20396 something starting with __ and the normal name is an alias. */
20397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20398 #error found stub for $ac_func
20401 return $ac_func ();
20406 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20407 if { (eval echo "$as_me:20407: \"$ac_link\"") >&5
20408 (eval $ac_link) 2>&5
20410 echo "$as_me:20410: \$? = $ac_status" >&5
20411 (exit "$ac_status"); } &&
20412 { ac_try='test -s "conftest$ac_exeext"'
20413 { (eval echo "$as_me:20413: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:20416: \$? = $ac_status" >&5
20417 (exit "$ac_status"); }; }; then
20418 eval "$as_ac_var=yes"
20420 echo "$as_me: failed program was:" >&5
20421 cat "conftest.$ac_ext" >&5
20422 eval "$as_ac_var=no"
20424 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20426 echo "$as_me:20426: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20427 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20428 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20429 cat >>confdefs.h <<EOF
20430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20436 echo "$as_me:20436: checking if getenv returns consistent values" >&5
20437 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20438 if test "${cf_cv_consistent_getenv+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 if test "$cross_compiling" = yes; then
20443 cf_cv_consistent_getenv=unknown
20445 cat >"conftest.$ac_ext" <<_ACEOF
20446 #line 20446 "configure"
20447 #include "confdefs.h"
20449 #include <stdlib.h>
20450 #include <unistd.h>
20452 #include <string.h>
20453 #include <sys/types.h>
20455 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20456 extern char **environ; /* POSIX, but some systems are not... */
20459 #if defined(HAVE_STRDUP)
20460 #define str_alloc(s) strdup(s)
20462 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20465 static void set_value(const char *name, const char *value)
20467 #if defined(HAVE_SETENV)
20468 setenv(name, value, 1);
20469 #elif defined(HAVE_PUTENV)
20471 sprintf(buffer, "%s=%s", name, value);
20472 putenv(str_alloc(buffer));
20474 #error neither putenv/setenv found
20480 size_t numenv, limit, j;
20485 for (numenv = 0; environ[numenv]; ++numenv) ;
20486 limit = numenv + 10;
20487 mynames = (char **) calloc(limit + 1, sizeof(char *));
20488 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20489 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20490 #if defined(HAVE_ENVIRON)
20491 for (j = 0; environ[j]; ++j) {
20492 mynames[j] = str_alloc(environ[j]);
20493 equals = strchr(mynames[j], '=');
20496 myvalues[j] = str_alloc(equals);
20498 myvalues[j] = str_alloc("");
20502 for (j = numenv; j < limit; ++j) {
20510 sprintf(name, "TERM%lu", (unsigned long) k);
20511 for (jk = 0; jk < j; ++jk) {
20512 if (!strcmp(name, mynames[jk])) {
20519 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20520 set_value(name, value);
20521 mynames[j] = str_alloc(name);
20522 myvalues[j] = str_alloc(value);
20524 for (pass = 0; pass < 3; ++pass) {
20525 for (j = 0; j < limit; ++j) {
20526 char *value = getenv(mynames[j]);
20529 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20530 ${cf_cv_main_return:-return}(1);
20531 } else if (value != mypointer[j]) {
20532 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20533 ${cf_cv_main_return:-return}(1);
20534 } else if (strcmp(value, myvalues[j])) {
20535 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20536 ${cf_cv_main_return:-return}(1);
20540 mypointer[j] = value;
20541 for (k = 0; k < j; ++k) {
20542 if (mypointer[j] == mypointer[k]) {
20543 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20544 ${cf_cv_main_return:-return}(1);
20550 ${cf_cv_main_return:-return}(0);
20554 rm -f "conftest$ac_exeext"
20555 if { (eval echo "$as_me:20555: \"$ac_link\"") >&5
20556 (eval $ac_link) 2>&5
20558 echo "$as_me:20558: \$? = $ac_status" >&5
20559 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20560 { (eval echo "$as_me:20560: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20563 echo "$as_me:20563: \$? = $ac_status" >&5
20564 (exit "$ac_status"); }; }; then
20565 cf_cv_consistent_getenv=yes
20567 echo "$as_me: program exited with status $ac_status" >&5
20568 echo "$as_me: failed program was:" >&5
20569 cat "conftest.$ac_ext" >&5
20570 cf_cv_consistent_getenv=no
20572 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20576 echo "$as_me:20576: result: $cf_cv_consistent_getenv" >&5
20577 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20579 if test "x$cf_cv_consistent_getenv" = xno
20582 cat >>confdefs.h <<\EOF
20583 #define HAVE_CONSISTENT_GETENV 1
20588 if test "x$cf_cv_consistent_getenv" = xno && \
20589 test "x$cf_with_trace" = xyes
20591 { echo "$as_me:20591: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20592 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20595 echo "$as_me:20595: checking if sys/time.h works with sys/select.h" >&5
20596 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20597 if test "${cf_cv_sys_time_select+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 cat >"conftest.$ac_ext" <<_ACEOF
20602 #line 20602 "configure"
20603 #include "confdefs.h"
20605 #include <sys/types.h>
20606 #ifdef HAVE_SYS_TIME_H
20607 #include <sys/time.h>
20609 #ifdef HAVE_SYS_SELECT_H
20610 #include <sys/select.h>
20621 rm -f "conftest.$ac_objext"
20622 if { (eval echo "$as_me:20622: \"$ac_compile\"") >&5
20623 (eval $ac_compile) 2>&5
20625 echo "$as_me:20625: \$? = $ac_status" >&5
20626 (exit "$ac_status"); } &&
20627 { ac_try='test -s "conftest.$ac_objext"'
20628 { (eval echo "$as_me:20628: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:20631: \$? = $ac_status" >&5
20632 (exit "$ac_status"); }; }; then
20633 cf_cv_sys_time_select=yes
20635 echo "$as_me: failed program was:" >&5
20636 cat "conftest.$ac_ext" >&5
20637 cf_cv_sys_time_select=no
20639 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20643 echo "$as_me:20643: result: $cf_cv_sys_time_select" >&5
20644 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20645 test "$cf_cv_sys_time_select" = yes &&
20646 cat >>confdefs.h <<\EOF
20647 #define HAVE_SYS_TIME_SELECT 1
20650 ### checks for compiler characteristics
20652 ac_cpp='$CPP $CPPFLAGS'
20653 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20654 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20656 ac_main_return="return"
20658 echo "$as_me:20658: checking for an ANSI C-conforming const" >&5
20659 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20660 if test "${ac_cv_c_const+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 cat >"conftest.$ac_ext" <<_ACEOF
20664 #line 20664 "configure"
20665 #include "confdefs.h"
20670 /* FIXME: Include the comments suggested by Paul. */
20671 #ifndef __cplusplus
20672 /* Ultrix mips cc rejects this. */
20673 typedef int charset[2];
20675 /* SunOS 4.1.1 cc rejects this. */
20676 char const *const *ccp;
20678 /* NEC SVR4.0.2 mips cc rejects this. */
20679 struct point {int x, y;};
20680 static struct point const zero = {0,0};
20681 /* AIX XL C 1.02.0.0 rejects this.
20682 It does not let you subtract one const X* pointer from another in
20683 an arm of an if-expression whose if-part is not a constant
20685 const char *g = "string";
20686 ccp = &g + (g ? g-g : 0);
20687 /* HPUX 7.0 cc rejects these. */
20690 ccp = (char const *const *) p;
20691 { /* SCO 3.2v4 cc rejects this. */
20693 char const *s = 0 ? (char *) 0 : (char const *) 0;
20697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20698 int x[] = {25, 17};
20699 const int *foo = &x[0];
20702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20703 typedef const int *iptr;
20707 { /* AIX XL C 1.02.0.0 rejects this saying
20708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20709 struct s { int j; const int *ap[3]; };
20710 struct s *b; b->j = 5;
20712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20713 const int foo = 10;
20721 rm -f "conftest.$ac_objext"
20722 if { (eval echo "$as_me:20722: \"$ac_compile\"") >&5
20723 (eval $ac_compile) 2>&5
20725 echo "$as_me:20725: \$? = $ac_status" >&5
20726 (exit "$ac_status"); } &&
20727 { ac_try='test -s "conftest.$ac_objext"'
20728 { (eval echo "$as_me:20728: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 echo "$as_me:20731: \$? = $ac_status" >&5
20732 (exit "$ac_status"); }; }; then
20735 echo "$as_me: failed program was:" >&5
20736 cat "conftest.$ac_ext" >&5
20739 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20741 echo "$as_me:20741: result: $ac_cv_c_const" >&5
20742 echo "${ECHO_T}$ac_cv_c_const" >&6
20743 if test $ac_cv_c_const = no; then
20745 cat >>confdefs.h <<\EOF
20751 echo "$as_me:20751: checking for inline" >&5
20752 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20753 if test "${ac_cv_c_inline+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20757 for ac_kw in inline __inline__ __inline; do
20758 cat >"conftest.$ac_ext" <<_ACEOF
20759 #line 20759 "configure"
20760 #include "confdefs.h"
20761 #ifndef __cplusplus
20762 static $ac_kw int static_foo () {return 0; }
20763 $ac_kw int foo () {return 0; }
20767 rm -f "conftest.$ac_objext"
20768 if { (eval echo "$as_me:20768: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 2>&5
20771 echo "$as_me:20771: \$? = $ac_status" >&5
20772 (exit "$ac_status"); } &&
20773 { ac_try='test -s "conftest.$ac_objext"'
20774 { (eval echo "$as_me:20774: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:20777: \$? = $ac_status" >&5
20778 (exit "$ac_status"); }; }; then
20779 ac_cv_c_inline=$ac_kw; break
20781 echo "$as_me: failed program was:" >&5
20782 cat "conftest.$ac_ext" >&5
20784 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20788 echo "$as_me:20788: result: $ac_cv_c_inline" >&5
20789 echo "${ECHO_T}$ac_cv_c_inline" >&6
20790 case $ac_cv_c_inline in
20793 cat >>confdefs.h <<\EOF
20797 *) cat >>confdefs.h <<EOF
20798 #define inline $ac_cv_c_inline
20804 if test "$ac_cv_c_inline" != no ; then
20805 NCURSES_INLINE=inline
20806 if test "$INTEL_COMPILER" = yes
20809 elif test "$CLANG_COMPILER" = yes
20812 elif test "$GCC" = yes
20814 echo "$as_me:20814: checking if $CC supports options to tune inlining" >&5
20815 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20816 if test "${cf_cv_gcc_inline+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 cf_save_CFLAGS=$CFLAGS
20821 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20822 cat >"conftest.$ac_ext" <<_ACEOF
20823 #line 20823 "configure"
20824 #include "confdefs.h"
20825 inline int foo(void) { return 1; }
20829 ${cf_cv_main_return:-return} foo()
20834 rm -f "conftest.$ac_objext"
20835 if { (eval echo "$as_me:20835: \"$ac_compile\"") >&5
20836 (eval $ac_compile) 2>&5
20838 echo "$as_me:20838: \$? = $ac_status" >&5
20839 (exit "$ac_status"); } &&
20840 { ac_try='test -s "conftest.$ac_objext"'
20841 { (eval echo "$as_me:20841: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20844 echo "$as_me:20844: \$? = $ac_status" >&5
20845 (exit "$ac_status"); }; }; then
20846 cf_cv_gcc_inline=yes
20848 echo "$as_me: failed program was:" >&5
20849 cat "conftest.$ac_ext" >&5
20850 cf_cv_gcc_inline=no
20852 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20853 CFLAGS=$cf_save_CFLAGS
20856 echo "$as_me:20856: result: $cf_cv_gcc_inline" >&5
20857 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20858 if test "$cf_cv_gcc_inline" = yes ; then
20863 cf_new_extra_cppflags=
20865 for cf_add_cflags in --param max-inline-insns-single=1200
20867 case "$cf_fix_cppflags" in
20869 case "$cf_add_cflags" in
20870 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20871 case "$cf_add_cflags" in
20873 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20875 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20876 && test -z "${cf_tst_cflags}" \
20877 && cf_fix_cppflags=yes
20879 if test "$cf_fix_cppflags" = yes ; then
20881 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20882 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20885 elif test "${cf_tst_cflags}" = "\"'" ; then
20887 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20888 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20894 case "$CPPFLAGS" in
20898 case "$cf_add_cflags" in
20900 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20902 CPPFLAGS=`echo "$CPPFLAGS" | \
20903 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20904 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20909 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20910 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20917 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20918 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20925 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20926 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20928 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20930 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20931 && test -z "${cf_tst_cflags}" \
20932 && cf_fix_cppflags=no
20937 if test -n "$cf_new_cflags" ; then
20939 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20940 CFLAGS="${CFLAGS}$cf_new_cflags"
20944 if test -n "$cf_new_cppflags" ; then
20946 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20947 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20951 if test -n "$cf_new_extra_cppflags" ; then
20953 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20954 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20962 echo "$as_me:20962: checking for signal global datatype" >&5
20963 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
20964 if test "${cf_cv_sig_atomic_t+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 "volatile sig_atomic_t" \
20973 cat >"conftest.$ac_ext" <<_ACEOF
20974 #line 20974 "configure"
20975 #include "confdefs.h"
20977 #include <sys/types.h>
20978 #include <signal.h>
20983 static void handler(int sig)
20991 signal(SIGINT, handler);
20997 rm -f "conftest.$ac_objext"
20998 if { (eval echo "$as_me:20998: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>&5
21001 echo "$as_me:21001: \$? = $ac_status" >&5
21002 (exit "$ac_status"); } &&
21003 { ac_try='test -s "conftest.$ac_objext"'
21004 { (eval echo "$as_me:21004: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21007 echo "$as_me:21007: \$? = $ac_status" >&5
21008 (exit "$ac_status"); }; }; then
21009 cf_cv_sig_atomic_t=$cf_type
21011 echo "$as_me: failed program was:" >&5
21012 cat "conftest.$ac_ext" >&5
21013 cf_cv_sig_atomic_t=no
21015 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21016 test "$cf_cv_sig_atomic_t" != no && break
21021 echo "$as_me:21021: result: $cf_cv_sig_atomic_t" >&5
21022 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21023 test "$cf_cv_sig_atomic_t" != no &&
21024 cat >>confdefs.h <<EOF
21025 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21028 if test "$NCURSES_CHTYPE" = auto ; then
21030 echo "$as_me:21030: checking for type of chtype" >&5
21031 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21032 if test "${cf_cv_typeof_chtype+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 if test "$cross_compiling" = yes; then
21037 cf_cv_typeof_chtype=long
21039 cat >"conftest.$ac_ext" <<_ACEOF
21040 #line 21040 "configure"
21041 #include "confdefs.h"
21043 #define WANT_BITS 31
21047 FILE *fp = fopen("cf_test.out", "w");
21049 char *result = "long";
21050 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21053 for (n = 0; n < WANT_BITS; n++) {
21056 if (y != 1 || x == 0) {
21062 * If x is nonzero, an int is big enough for the bits
21065 result = (x != 0) ? "int" : "long";
21070 ${cf_cv_main_return:-return}(0);
21074 rm -f "conftest$ac_exeext"
21075 if { (eval echo "$as_me:21075: \"$ac_link\"") >&5
21076 (eval $ac_link) 2>&5
21078 echo "$as_me:21078: \$? = $ac_status" >&5
21079 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21080 { (eval echo "$as_me:21080: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:21083: \$? = $ac_status" >&5
21084 (exit "$ac_status"); }; }; then
21085 cf_cv_typeof_chtype=`cat cf_test.out`
21087 echo "$as_me: program exited with status $ac_status" >&5
21088 echo "$as_me: failed program was:" >&5
21089 cat "conftest.$ac_ext" >&5
21090 cf_cv_typeof_chtype=long
21092 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21098 echo "$as_me:21098: result: $cf_cv_typeof_chtype" >&5
21099 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21101 cat >>confdefs.h <<EOF
21102 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21106 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21108 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21110 echo "$as_me:21110: checking if unsigned literals are legal" >&5
21111 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21112 if test "${cf_cv_unsigned_literals+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 cat >"conftest.$ac_ext" <<_ACEOF
21117 #line 21117 "configure"
21118 #include "confdefs.h"
21123 long x = 1L + 1UL + 1U + 1
21128 rm -f "conftest.$ac_objext"
21129 if { (eval echo "$as_me:21129: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>&5
21132 echo "$as_me:21132: \$? = $ac_status" >&5
21133 (exit "$ac_status"); } &&
21134 { ac_try='test -s "conftest.$ac_objext"'
21135 { (eval echo "$as_me:21135: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:21138: \$? = $ac_status" >&5
21139 (exit "$ac_status"); }; }; then
21140 cf_cv_unsigned_literals=yes
21142 echo "$as_me: failed program was:" >&5
21143 cat "conftest.$ac_ext" >&5
21144 cf_cv_unsigned_literals=no
21146 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21150 echo "$as_me:21150: result: $cf_cv_unsigned_literals" >&5
21151 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21154 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21155 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21157 if test "$NCURSES_MMASK_T" = auto ; then
21158 cf_cv_typeof_mmask_t=long
21160 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21162 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21164 ### Checks for external-data
21166 echo "$as_me:21166: checking if external errno is declared" >&5
21167 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21168 if test "${cf_cv_dcl_errno+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 cat >"conftest.$ac_ext" <<_ACEOF
21173 #line 21173 "configure"
21174 #include "confdefs.h"
21176 #ifdef HAVE_STDLIB_H
21177 #include <stdlib.h>
21180 #include <sys/types.h>
21185 int x = (int) errno; (void)x
21190 rm -f "conftest.$ac_objext"
21191 if { (eval echo "$as_me:21191: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>&5
21194 echo "$as_me:21194: \$? = $ac_status" >&5
21195 (exit "$ac_status"); } &&
21196 { ac_try='test -s "conftest.$ac_objext"'
21197 { (eval echo "$as_me:21197: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:21200: \$? = $ac_status" >&5
21201 (exit "$ac_status"); }; }; then
21202 cf_cv_dcl_errno=yes
21204 echo "$as_me: failed program was:" >&5
21205 cat "conftest.$ac_ext" >&5
21208 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21211 echo "$as_me:21211: result: $cf_cv_dcl_errno" >&5
21212 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21214 if test "$cf_cv_dcl_errno" = no ; then
21216 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21218 cat >>confdefs.h <<EOF
21219 #define $cf_result 1
21224 # It's possible (for near-UNIX clones) that the data doesn't exist
21226 echo "$as_me:21226: checking if external errno exists" >&5
21227 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21228 if test "${cf_cv_have_errno+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 cat >"conftest.$ac_ext" <<_ACEOF
21233 #line 21233 "configure"
21234 #include "confdefs.h"
21247 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21248 if { (eval echo "$as_me:21248: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21251 echo "$as_me:21251: \$? = $ac_status" >&5
21252 (exit "$ac_status"); } &&
21253 { ac_try='test -s "conftest$ac_exeext"'
21254 { (eval echo "$as_me:21254: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 echo "$as_me:21257: \$? = $ac_status" >&5
21258 (exit "$ac_status"); }; }; then
21259 cf_cv_have_errno=yes
21261 echo "$as_me: failed program was:" >&5
21262 cat "conftest.$ac_ext" >&5
21263 cf_cv_have_errno=no
21265 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21268 echo "$as_me:21268: result: $cf_cv_have_errno" >&5
21269 echo "${ECHO_T}$cf_cv_have_errno" >&6
21271 if test "$cf_cv_have_errno" = yes ; then
21273 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21275 cat >>confdefs.h <<EOF
21276 #define $cf_result 1
21281 echo "$as_me:21281: checking if data-only library module links" >&5
21282 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21283 if test "${cf_cv_link_dataonly+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<EOF
21289 #line 21289 "configure"
21290 int testdata[3] = { 123, 456, 789 };
21292 if { (eval echo "$as_me:21292: \"$ac_compile\"") >&5
21293 (eval $ac_compile) 2>&5
21295 echo "$as_me:21295: \$? = $ac_status" >&5
21296 (exit "$ac_status"); } ; then
21297 mv conftest.o data.o && \
21298 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21300 rm -f conftest.$ac_ext data.o
21301 cat >conftest.$ac_ext <<EOF
21302 #line 21302 "configure"
21306 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21308 extern int testdata[3];
21309 return testdata[0] == 123
21310 && testdata[1] == 456
21311 && testdata[2] == 789;
21315 if { (eval echo "$as_me:21315: \"$ac_compile\"") >&5
21316 (eval $ac_compile) 2>&5
21318 echo "$as_me:21318: \$? = $ac_status" >&5
21319 (exit "$ac_status"); }; then
21320 mv conftest.o func.o && \
21321 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21323 rm -f conftest.$ac_ext func.o
21324 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21325 cf_saveLIBS="$LIBS"
21326 LIBS="conftest.a $LIBS"
21327 if test "$cross_compiling" = yes; then
21328 cf_cv_link_dataonly=unknown
21330 cat >"conftest.$ac_ext" <<_ACEOF
21331 #line 21331 "configure"
21332 #include "confdefs.h"
21336 extern int testfunc();
21337 ${cf_cv_main_return:-return} (!testfunc());
21341 rm -f "conftest$ac_exeext"
21342 if { (eval echo "$as_me:21342: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>&5
21345 echo "$as_me:21345: \$? = $ac_status" >&5
21346 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21347 { (eval echo "$as_me:21347: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21350 echo "$as_me:21350: \$? = $ac_status" >&5
21351 (exit "$ac_status"); }; }; then
21352 cf_cv_link_dataonly=yes
21354 echo "$as_me: program exited with status $ac_status" >&5
21355 echo "$as_me: failed program was:" >&5
21356 cat "conftest.$ac_ext" >&5
21357 cf_cv_link_dataonly=no
21359 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21361 LIBS="$cf_saveLIBS"
21365 echo "$as_me:21365: result: $cf_cv_link_dataonly" >&5
21366 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21368 if test "$cf_cv_link_dataonly" = no ; then
21370 cat >>confdefs.h <<\EOF
21371 #define BROKEN_LINKER 1
21377 ### Checks for library functions.
21408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21409 echo "$as_me:21409: checking for $ac_func" >&5
21410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21411 if eval "test \"\${$as_ac_var+set}\" = set"; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 cat >"conftest.$ac_ext" <<_ACEOF
21415 #line 21415 "configure"
21416 #include "confdefs.h"
21417 #define $ac_func autoconf_temporary
21418 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21425 /* We use char because int might match the return type of a gcc2
21426 builtin and then its argument prototype would still apply. */
21427 char $ac_func (void);
21433 /* The GNU C library defines stubs for functions which it implements
21434 to always fail with ENOSYS. Some functions are actually named
21435 something starting with __ and the normal name is an alias. */
21436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21437 #error found stub for $ac_func
21440 return $ac_func ();
21445 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21446 if { (eval echo "$as_me:21446: \"$ac_link\"") >&5
21447 (eval $ac_link) 2>&5
21449 echo "$as_me:21449: \$? = $ac_status" >&5
21450 (exit "$ac_status"); } &&
21451 { ac_try='test -s "conftest$ac_exeext"'
21452 { (eval echo "$as_me:21452: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21455 echo "$as_me:21455: \$? = $ac_status" >&5
21456 (exit "$ac_status"); }; }; then
21457 eval "$as_ac_var=yes"
21459 echo "$as_me: failed program was:" >&5
21460 cat "conftest.$ac_ext" >&5
21461 eval "$as_ac_var=no"
21463 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21465 echo "$as_me:21465: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21467 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21468 cat >>confdefs.h <<EOF
21469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21475 if test "x$ac_cv_func_getopt" = xno && \
21476 test "x$cf_with_progs$cf_with_tests" != xnono; then
21477 { { echo "$as_me:21477: error: getopt is required for building programs" >&5
21478 echo "$as_me: error: getopt is required for building programs" >&2;}
21479 { (exit 1); exit 1; }; }
21482 if test "x$with_safe_sprintf" = xyes
21484 if test "x$ac_cv_func_vsnprintf" = xyes
21486 { echo "$as_me:21486: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21487 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21490 cat >>confdefs.h <<\EOF
21491 #define USE_SAFE_SPRINTF 1
21497 if test "x$with_getcap" = "xyes" ; then
21499 echo "$as_me:21499: checking for terminal-capability database functions" >&5
21500 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21501 if test "${cf_cv_cgetent+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 cat >"conftest.$ac_ext" <<_ACEOF
21506 #line 21506 "configure"
21507 #include "confdefs.h"
21509 #include <stdlib.h>
21516 char *db_array = temp;
21517 cgetent(&buf, &db_array, "vt100");
21518 cgetcap(buf, "tc", '=');
21519 cgetmatch(buf, "tc");
21525 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21526 if { (eval echo "$as_me:21526: \"$ac_link\"") >&5
21527 (eval $ac_link) 2>&5
21529 echo "$as_me:21529: \$? = $ac_status" >&5
21530 (exit "$ac_status"); } &&
21531 { ac_try='test -s "conftest$ac_exeext"'
21532 { (eval echo "$as_me:21532: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:21535: \$? = $ac_status" >&5
21536 (exit "$ac_status"); }; }; then
21539 echo "$as_me: failed program was:" >&5
21540 cat "conftest.$ac_ext" >&5
21543 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21546 echo "$as_me:21546: result: $cf_cv_cgetent" >&5
21547 echo "${ECHO_T}$cf_cv_cgetent" >&6
21549 if test "$cf_cv_cgetent" = yes
21552 cat >>confdefs.h <<\EOF
21553 #define HAVE_BSD_CGETENT 1
21556 echo "$as_me:21556: checking if cgetent uses const parameter" >&5
21557 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21558 if test "${cf_cv_cgetent_const+set}" = set; then
21559 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 cat >"conftest.$ac_ext" <<_ACEOF
21563 #line 21563 "configure"
21564 #include "confdefs.h"
21566 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21567 #include <stdlib.h>
21574 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21575 const char *db_array = temp;
21576 cgetent(&buf, &db_array, "vt100");
21578 cgetcap(buf, "tc", '=');
21579 cgetmatch(buf, "tc");
21585 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21586 if { (eval echo "$as_me:21586: \"$ac_link\"") >&5
21587 (eval $ac_link) 2>&5
21589 echo "$as_me:21589: \$? = $ac_status" >&5
21590 (exit "$ac_status"); } &&
21591 { ac_try='test -s "conftest$ac_exeext"'
21592 { (eval echo "$as_me:21592: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21595 echo "$as_me:21595: \$? = $ac_status" >&5
21596 (exit "$ac_status"); }; }; then
21597 cf_cv_cgetent_const=yes
21599 echo "$as_me: failed program was:" >&5
21600 cat "conftest.$ac_ext" >&5
21601 cf_cv_cgetent_const=no
21603 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21606 echo "$as_me:21606: result: $cf_cv_cgetent_const" >&5
21607 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
21608 if test "$cf_cv_cgetent_const" = yes
21611 cat >>confdefs.h <<EOF
21612 #define CGETENT_CONST const
21620 echo "$as_me:21620: checking for isascii" >&5
21621 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
21622 if test "${cf_cv_have_isascii+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 cat >"conftest.$ac_ext" <<_ACEOF
21627 #line 21627 "configure"
21628 #include "confdefs.h"
21633 int x = isascii(' ')
21638 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21639 if { (eval echo "$as_me:21639: \"$ac_link\"") >&5
21640 (eval $ac_link) 2>&5
21642 echo "$as_me:21642: \$? = $ac_status" >&5
21643 (exit "$ac_status"); } &&
21644 { ac_try='test -s "conftest$ac_exeext"'
21645 { (eval echo "$as_me:21645: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:21648: \$? = $ac_status" >&5
21649 (exit "$ac_status"); }; }; then
21650 cf_cv_have_isascii=yes
21652 echo "$as_me: failed program was:" >&5
21653 cat "conftest.$ac_ext" >&5
21654 cf_cv_have_isascii=no
21656 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21659 echo "$as_me:21659: result: $cf_cv_have_isascii" >&5
21660 echo "${ECHO_T}$cf_cv_have_isascii" >&6
21661 test "$cf_cv_have_isascii" = yes &&
21662 cat >>confdefs.h <<\EOF
21663 #define HAVE_ISASCII 1
21666 if test "$ac_cv_func_sigaction" = yes; then
21667 echo "$as_me:21667: checking whether sigaction needs _POSIX_SOURCE" >&5
21668 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
21669 cat >"conftest.$ac_ext" <<_ACEOF
21670 #line 21670 "configure"
21671 #include "confdefs.h"
21673 #include <sys/types.h>
21674 #include <signal.h>
21678 struct sigaction act
21683 rm -f "conftest.$ac_objext"
21684 if { (eval echo "$as_me:21684: \"$ac_compile\"") >&5
21685 (eval $ac_compile) 2>&5
21687 echo "$as_me:21687: \$? = $ac_status" >&5
21688 (exit "$ac_status"); } &&
21689 { ac_try='test -s "conftest.$ac_objext"'
21690 { (eval echo "$as_me:21690: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:21693: \$? = $ac_status" >&5
21694 (exit "$ac_status"); }; }; then
21697 echo "$as_me: failed program was:" >&5
21698 cat "conftest.$ac_ext" >&5
21700 cat >"conftest.$ac_ext" <<_ACEOF
21701 #line 21701 "configure"
21702 #include "confdefs.h"
21704 #define _POSIX_SOURCE
21705 #include <sys/types.h>
21706 #include <signal.h>
21710 struct sigaction act
21715 rm -f "conftest.$ac_objext"
21716 if { (eval echo "$as_me:21716: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>&5
21719 echo "$as_me:21719: \$? = $ac_status" >&5
21720 (exit "$ac_status"); } &&
21721 { ac_try='test -s "conftest.$ac_objext"'
21722 { (eval echo "$as_me:21722: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:21725: \$? = $ac_status" >&5
21726 (exit "$ac_status"); }; }; then
21729 cat >>confdefs.h <<\EOF
21730 #define _POSIX_SOURCE 1
21734 echo "$as_me: failed program was:" >&5
21735 cat "conftest.$ac_ext" >&5
21738 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21740 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21741 echo "$as_me:21741: result: $sigact_bad" >&5
21742 echo "${ECHO_T}$sigact_bad" >&6
21745 echo "$as_me:21745: checking if nanosleep really works" >&5
21746 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21747 if test "${cf_cv_func_nanosleep+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 if test "$cross_compiling" = yes; then
21752 cf_cv_func_nanosleep=unknown
21754 cat >"conftest.$ac_ext" <<_ACEOF
21755 #line 21755 "configure"
21756 #include "confdefs.h"
21762 #ifdef HAVE_SYS_TIME_H
21763 #include <sys/time.h>
21767 struct timespec ts1, ts2;
21770 ts1.tv_nsec = 750000000;
21774 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
21775 ${cf_cv_main_return:-return}(code != 0);
21779 rm -f "conftest$ac_exeext"
21780 if { (eval echo "$as_me:21780: \"$ac_link\"") >&5
21781 (eval $ac_link) 2>&5
21783 echo "$as_me:21783: \$? = $ac_status" >&5
21784 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21785 { (eval echo "$as_me:21785: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21788 echo "$as_me:21788: \$? = $ac_status" >&5
21789 (exit "$ac_status"); }; }; then
21790 cf_cv_func_nanosleep=yes
21792 echo "$as_me: program exited with status $ac_status" >&5
21793 echo "$as_me: failed program was:" >&5
21794 cat "conftest.$ac_ext" >&5
21795 cf_cv_func_nanosleep=no
21797 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21800 echo "$as_me:21800: result: $cf_cv_func_nanosleep" >&5
21801 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
21803 test "$cf_cv_func_nanosleep" = "yes" &&
21804 cat >>confdefs.h <<\EOF
21805 #define HAVE_NANOSLEEP 1
21816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21817 echo "$as_me:21817: checking for $ac_header" >&5
21818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 cat >"conftest.$ac_ext" <<_ACEOF
21823 #line 21823 "configure"
21824 #include "confdefs.h"
21825 #include <$ac_header>
21827 if { (eval echo "$as_me:21827: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21828 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21830 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21832 cat conftest.err >&5
21833 echo "$as_me:21833: \$? = $ac_status" >&5
21834 (exit "$ac_status"); } >/dev/null; then
21835 if test -s conftest.err; then
21836 ac_cpp_err=$ac_c_preproc_warn_flag
21843 if test -z "$ac_cpp_err"; then
21844 eval "$as_ac_Header=yes"
21846 echo "$as_me: failed program was:" >&5
21847 cat "conftest.$ac_ext" >&5
21848 eval "$as_ac_Header=no"
21850 rm -f conftest.err "conftest.$ac_ext"
21852 echo "$as_me:21852: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21853 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21854 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21855 cat >>confdefs.h <<EOF
21856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21862 if test "$ac_cv_header_termios_h" = yes ; then
21863 case "$CFLAGS $CPPFLAGS" in
21864 (*-D_POSIX_SOURCE*)
21865 termios_bad=dunno ;;
21866 (*) termios_bad=maybe ;;
21868 if test "$termios_bad" = maybe ; then
21869 echo "$as_me:21869: checking whether termios.h needs _POSIX_SOURCE" >&5
21870 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
21871 cat >"conftest.$ac_ext" <<_ACEOF
21872 #line 21872 "configure"
21873 #include "confdefs.h"
21874 #include <termios.h>
21878 struct termios foo; int x = foo.c_iflag = 1; (void)x
21883 rm -f "conftest.$ac_objext"
21884 if { (eval echo "$as_me:21884: \"$ac_compile\"") >&5
21885 (eval $ac_compile) 2>&5
21887 echo "$as_me:21887: \$? = $ac_status" >&5
21888 (exit "$ac_status"); } &&
21889 { ac_try='test -s "conftest.$ac_objext"'
21890 { (eval echo "$as_me:21890: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21893 echo "$as_me:21893: \$? = $ac_status" >&5
21894 (exit "$ac_status"); }; }; then
21897 echo "$as_me: failed program was:" >&5
21898 cat "conftest.$ac_ext" >&5
21900 cat >"conftest.$ac_ext" <<_ACEOF
21901 #line 21901 "configure"
21902 #include "confdefs.h"
21904 #define _POSIX_SOURCE
21905 #include <termios.h>
21909 struct termios foo; int x = foo.c_iflag = 2; (void)x
21914 rm -f "conftest.$ac_objext"
21915 if { (eval echo "$as_me:21915: \"$ac_compile\"") >&5
21916 (eval $ac_compile) 2>&5
21918 echo "$as_me:21918: \$? = $ac_status" >&5
21919 (exit "$ac_status"); } &&
21920 { ac_try='test -s "conftest.$ac_objext"'
21921 { (eval echo "$as_me:21921: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21924 echo "$as_me:21924: \$? = $ac_status" >&5
21925 (exit "$ac_status"); }; }; then
21926 termios_bad=unknown
21928 echo "$as_me: failed program was:" >&5
21929 cat "conftest.$ac_ext" >&5
21931 cat >>confdefs.h <<\EOF
21932 #define _POSIX_SOURCE 1
21936 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21939 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21940 echo "$as_me:21940: result: $termios_bad" >&5
21941 echo "${ECHO_T}$termios_bad" >&6
21945 echo "$as_me:21945: checking for tcgetattr" >&5
21946 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
21947 if test "${cf_cv_have_tcgetattr+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 cat >"conftest.$ac_ext" <<_ACEOF
21952 #line 21952 "configure"
21953 #include "confdefs.h"
21955 #include <sys/types.h>
21956 #ifdef HAVE_UNISTD_H
21957 #include <unistd.h>
21959 #ifdef HAVE_TERMIOS_H
21960 #include <termios.h>
21961 #define TTY struct termios
21963 #ifdef HAVE_TERMIO_H
21964 #include <termio.h>
21965 #define TTY struct termio
21974 tcgetattr(1, &foo);
21979 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21980 if { (eval echo "$as_me:21980: \"$ac_link\"") >&5
21981 (eval $ac_link) 2>&5
21983 echo "$as_me:21983: \$? = $ac_status" >&5
21984 (exit "$ac_status"); } &&
21985 { ac_try='test -s "conftest$ac_exeext"'
21986 { (eval echo "$as_me:21986: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21989 echo "$as_me:21989: \$? = $ac_status" >&5
21990 (exit "$ac_status"); }; }; then
21991 cf_cv_have_tcgetattr=yes
21993 echo "$as_me: failed program was:" >&5
21994 cat "conftest.$ac_ext" >&5
21995 cf_cv_have_tcgetattr=no
21997 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21999 echo "$as_me:21999: result: $cf_cv_have_tcgetattr" >&5
22000 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22001 test "$cf_cv_have_tcgetattr" = yes &&
22002 cat >>confdefs.h <<\EOF
22003 #define HAVE_TCGETATTR 1
22006 echo "$as_me:22006: checking for vsscanf function or workaround" >&5
22007 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22008 if test "${cf_cv_func_vsscanf+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 cat >"conftest.$ac_ext" <<_ACEOF
22013 #line 22013 "configure"
22014 #include "confdefs.h"
22016 #include <stdarg.h>
22023 vsscanf("from", "%d", ap)
22028 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22029 if { (eval echo "$as_me:22029: \"$ac_link\"") >&5
22030 (eval $ac_link) 2>&5
22032 echo "$as_me:22032: \$? = $ac_status" >&5
22033 (exit "$ac_status"); } &&
22034 { ac_try='test -s "conftest$ac_exeext"'
22035 { (eval echo "$as_me:22035: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22038 echo "$as_me:22038: \$? = $ac_status" >&5
22039 (exit "$ac_status"); }; }; then
22040 cf_cv_func_vsscanf=vsscanf
22042 echo "$as_me: failed program was:" >&5
22043 cat "conftest.$ac_ext" >&5
22045 cat >"conftest.$ac_ext" <<_ACEOF
22046 #line 22046 "configure"
22047 #include "confdefs.h"
22049 #include <stdarg.h>
22056 char *str = "from";
22058 strbuf._flag = _IOREAD;
22059 strbuf._ptr = strbuf._base = (unsigned char *) str;
22060 strbuf._cnt = strlen(str);
22061 strbuf._file = _NFILE;
22062 return (vfscanf(&strbuf, "%d", ap))
22067 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22068 if { (eval echo "$as_me:22068: \"$ac_link\"") >&5
22069 (eval $ac_link) 2>&5
22071 echo "$as_me:22071: \$? = $ac_status" >&5
22072 (exit "$ac_status"); } &&
22073 { ac_try='test -s "conftest$ac_exeext"'
22074 { (eval echo "$as_me:22074: \"$ac_try\"") >&5
22075 (eval $ac_try) 2>&5
22077 echo "$as_me:22077: \$? = $ac_status" >&5
22078 (exit "$ac_status"); }; }; then
22079 cf_cv_func_vsscanf=vfscanf
22081 echo "$as_me: failed program was:" >&5
22082 cat "conftest.$ac_ext" >&5
22084 cat >"conftest.$ac_ext" <<_ACEOF
22085 #line 22085 "configure"
22086 #include "confdefs.h"
22088 #include <stdarg.h>
22095 char *str = "from";
22097 strbuf._flag = _IOREAD;
22098 strbuf._ptr = strbuf._base = (unsigned char *) str;
22099 strbuf._cnt = strlen(str);
22100 strbuf._file = _NFILE;
22101 return (_doscan(&strbuf, "%d", ap))
22106 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22107 if { (eval echo "$as_me:22107: \"$ac_link\"") >&5
22108 (eval $ac_link) 2>&5
22110 echo "$as_me:22110: \$? = $ac_status" >&5
22111 (exit "$ac_status"); } &&
22112 { ac_try='test -s "conftest$ac_exeext"'
22113 { (eval echo "$as_me:22113: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:22116: \$? = $ac_status" >&5
22117 (exit "$ac_status"); }; }; then
22118 cf_cv_func_vsscanf=_doscan
22120 echo "$as_me: failed program was:" >&5
22121 cat "conftest.$ac_ext" >&5
22123 cf_cv_func_vsscanf=no
22125 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22127 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22129 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22131 echo "$as_me:22131: result: $cf_cv_func_vsscanf" >&5
22132 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22134 case "$cf_cv_func_vsscanf" in
22136 cat >>confdefs.h <<\EOF
22137 #define HAVE_VSSCANF 1
22141 cat >>confdefs.h <<\EOF
22142 #define HAVE_VFSCANF 1
22146 cat >>confdefs.h <<\EOF
22147 #define HAVE__DOSCAN 1
22156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22157 echo "$as_me:22157: checking for $ac_header" >&5
22158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 cat >"conftest.$ac_ext" <<_ACEOF
22163 #line 22163 "configure"
22164 #include "confdefs.h"
22165 #include <$ac_header>
22167 if { (eval echo "$as_me:22167: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22168 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22170 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 echo "$as_me:22173: \$? = $ac_status" >&5
22174 (exit "$ac_status"); } >/dev/null; then
22175 if test -s conftest.err; then
22176 ac_cpp_err=$ac_c_preproc_warn_flag
22183 if test -z "$ac_cpp_err"; then
22184 eval "$as_ac_Header=yes"
22186 echo "$as_me: failed program was:" >&5
22187 cat "conftest.$ac_ext" >&5
22188 eval "$as_ac_Header=no"
22190 rm -f conftest.err "conftest.$ac_ext"
22192 echo "$as_me:22192: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22193 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22194 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22195 cat >>confdefs.h <<EOF
22196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22202 echo "$as_me:22202: checking for working mkstemp" >&5
22203 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22204 if test "${cf_cv_func_mkstemp+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 if test "$cross_compiling" = yes; then
22210 cf_cv_func_mkstemp=maybe
22212 cat >"conftest.$ac_ext" <<_ACEOF
22213 #line 22213 "configure"
22214 #include "confdefs.h"
22216 #include <sys/types.h>
22217 #ifdef HAVE_UNISTD_H
22218 #include <unistd.h>
22220 #include <stdlib.h>
22222 #include <string.h>
22223 #include <sys/stat.h>
22226 char *tmpl = "conftestXXXXXX";
22234 for (n = 0; n < 2; ++n) {
22235 strcpy(name[n], tmpl);
22236 if ((fd = mkstemp(name[n])) >= 0) {
22237 if (!strcmp(name[n], tmpl)
22238 || stat(name[n], &sb) != 0
22239 || (sb.st_mode & S_IFMT) != S_IFREG
22240 || (sb.st_mode & 077) != 0) {
22247 && !strcmp(name[0], name[1]))
22249 ${cf_cv_main_return:-return}(result);
22253 rm -f "conftest$ac_exeext"
22254 if { (eval echo "$as_me:22254: \"$ac_link\"") >&5
22255 (eval $ac_link) 2>&5
22257 echo "$as_me:22257: \$? = $ac_status" >&5
22258 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22259 { (eval echo "$as_me:22259: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22262 echo "$as_me:22262: \$? = $ac_status" >&5
22263 (exit "$ac_status"); }; }; then
22264 cf_cv_func_mkstemp=yes
22267 echo "$as_me: program exited with status $ac_status" >&5
22268 echo "$as_me: failed program was:" >&5
22269 cat "conftest.$ac_ext" >&5
22270 cf_cv_func_mkstemp=no
22273 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22277 echo "$as_me:22277: result: $cf_cv_func_mkstemp" >&5
22278 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22279 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22280 echo "$as_me:22280: checking for mkstemp" >&5
22281 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22282 if test "${ac_cv_func_mkstemp+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 cat >"conftest.$ac_ext" <<_ACEOF
22286 #line 22286 "configure"
22287 #include "confdefs.h"
22288 #define mkstemp autoconf_temporary
22289 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22296 /* We use char because int might match the return type of a gcc2
22297 builtin and then its argument prototype would still apply. */
22298 char mkstemp (void);
22304 /* The GNU C library defines stubs for functions which it implements
22305 to always fail with ENOSYS. Some functions are actually named
22306 something starting with __ and the normal name is an alias. */
22307 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22308 #error found stub for mkstemp
22316 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22317 if { (eval echo "$as_me:22317: \"$ac_link\"") >&5
22318 (eval $ac_link) 2>&5
22320 echo "$as_me:22320: \$? = $ac_status" >&5
22321 (exit "$ac_status"); } &&
22322 { ac_try='test -s "conftest$ac_exeext"'
22323 { (eval echo "$as_me:22323: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22326 echo "$as_me:22326: \$? = $ac_status" >&5
22327 (exit "$ac_status"); }; }; then
22328 ac_cv_func_mkstemp=yes
22330 echo "$as_me: failed program was:" >&5
22331 cat "conftest.$ac_ext" >&5
22332 ac_cv_func_mkstemp=no
22334 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22336 echo "$as_me:22336: result: $ac_cv_func_mkstemp" >&5
22337 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22340 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22342 cat >>confdefs.h <<\EOF
22343 #define HAVE_MKSTEMP 1
22348 # setup for prototype of fallback for vsscanf()
22350 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22356 if test "x$cross_compiling" = xyes ; then
22357 { echo "$as_me:22357: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22358 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22360 echo "$as_me:22360: checking whether setvbuf arguments are reversed" >&5
22361 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22362 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 if test "$cross_compiling" = yes; then
22366 { { echo "$as_me:22366: error: cannot run test program while cross compiling" >&5
22367 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22368 { (exit 1); exit 1; }; }
22370 cat >"conftest.$ac_ext" <<_ACEOF
22371 #line 22371 "configure"
22372 #include "confdefs.h"
22374 /* If setvbuf has the reversed format, exit 0. */
22378 /* This call has the arguments reversed.
22379 A reversed system may check and see that the address of main
22380 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22381 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22382 $ac_main_return(1);
22383 putc('\r', stdout);
22384 $ac_main_return(0); /* Non-reversed systems segv here. */
22387 rm -f "conftest$ac_exeext"
22388 if { (eval echo "$as_me:22388: \"$ac_link\"") >&5
22389 (eval $ac_link) 2>&5
22391 echo "$as_me:22391: \$? = $ac_status" >&5
22392 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22393 { (eval echo "$as_me:22393: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22396 echo "$as_me:22396: \$? = $ac_status" >&5
22397 (exit "$ac_status"); }; }; then
22398 ac_cv_func_setvbuf_reversed=yes
22400 echo "$as_me: program exited with status $ac_status" >&5
22401 echo "$as_me: failed program was:" >&5
22402 cat "conftest.$ac_ext" >&5
22403 ac_cv_func_setvbuf_reversed=no
22405 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22407 rm -f core ./core.* ./*.core
22409 echo "$as_me:22409: result: $ac_cv_func_setvbuf_reversed" >&5
22410 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22411 if test $ac_cv_func_setvbuf_reversed = yes; then
22413 cat >>confdefs.h <<\EOF
22414 #define SETVBUF_REVERSED 1
22420 echo "$as_me:22420: checking for intptr_t" >&5
22421 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22422 if test "${ac_cv_type_intptr_t+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >"conftest.$ac_ext" <<_ACEOF
22426 #line 22426 "configure"
22427 #include "confdefs.h"
22428 $ac_includes_default
22432 if ((intptr_t *) 0)
22434 if (sizeof (intptr_t))
22440 rm -f "conftest.$ac_objext"
22441 if { (eval echo "$as_me:22441: \"$ac_compile\"") >&5
22442 (eval $ac_compile) 2>&5
22444 echo "$as_me:22444: \$? = $ac_status" >&5
22445 (exit "$ac_status"); } &&
22446 { ac_try='test -s "conftest.$ac_objext"'
22447 { (eval echo "$as_me:22447: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22450 echo "$as_me:22450: \$? = $ac_status" >&5
22451 (exit "$ac_status"); }; }; then
22452 ac_cv_type_intptr_t=yes
22454 echo "$as_me: failed program was:" >&5
22455 cat "conftest.$ac_ext" >&5
22456 ac_cv_type_intptr_t=no
22458 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22460 echo "$as_me:22460: result: $ac_cv_type_intptr_t" >&5
22461 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22462 if test "$ac_cv_type_intptr_t" = yes; then
22466 cat >>confdefs.h <<EOF
22467 #define intptr_t long
22472 echo "$as_me:22472: checking for ssize_t" >&5
22473 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22474 if test "${ac_cv_type_ssize_t+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 cat >"conftest.$ac_ext" <<_ACEOF
22478 #line 22478 "configure"
22479 #include "confdefs.h"
22480 $ac_includes_default
22486 if (sizeof (ssize_t))
22492 rm -f "conftest.$ac_objext"
22493 if { (eval echo "$as_me:22493: \"$ac_compile\"") >&5
22494 (eval $ac_compile) 2>&5
22496 echo "$as_me:22496: \$? = $ac_status" >&5
22497 (exit "$ac_status"); } &&
22498 { ac_try='test -s "conftest.$ac_objext"'
22499 { (eval echo "$as_me:22499: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22502 echo "$as_me:22502: \$? = $ac_status" >&5
22503 (exit "$ac_status"); }; }; then
22504 ac_cv_type_ssize_t=yes
22506 echo "$as_me: failed program was:" >&5
22507 cat "conftest.$ac_ext" >&5
22508 ac_cv_type_ssize_t=no
22510 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22512 echo "$as_me:22512: result: $ac_cv_type_ssize_t" >&5
22513 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22514 if test "$ac_cv_type_ssize_t" = yes; then
22518 cat >>confdefs.h <<EOF
22519 #define ssize_t int
22524 echo "$as_me:22524: checking for type sigaction_t" >&5
22525 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22526 if test "${cf_cv_type_sigaction+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22530 cat >"conftest.$ac_ext" <<_ACEOF
22531 #line 22531 "configure"
22532 #include "confdefs.h"
22534 #include <signal.h>
22543 rm -f "conftest.$ac_objext"
22544 if { (eval echo "$as_me:22544: \"$ac_compile\"") >&5
22545 (eval $ac_compile) 2>&5
22547 echo "$as_me:22547: \$? = $ac_status" >&5
22548 (exit "$ac_status"); } &&
22549 { ac_try='test -s "conftest.$ac_objext"'
22550 { (eval echo "$as_me:22550: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:22553: \$? = $ac_status" >&5
22554 (exit "$ac_status"); }; }; then
22555 cf_cv_type_sigaction=yes
22557 echo "$as_me: failed program was:" >&5
22558 cat "conftest.$ac_ext" >&5
22559 cf_cv_type_sigaction=no
22561 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22564 echo "$as_me:22564: result: $cf_cv_type_sigaction" >&5
22565 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22566 test "$cf_cv_type_sigaction" = yes &&
22567 cat >>confdefs.h <<\EOF
22568 #define HAVE_TYPE_SIGACTION 1
22571 echo "$as_me:22571: checking declaration of size-change" >&5
22572 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22573 if test "${cf_cv_sizechange+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 cf_cv_sizechange=unknown
22578 cf_save_CPPFLAGS="$CPPFLAGS"
22580 for cf_opts in "" "NEED_PTEM_H"
22583 CPPFLAGS="$cf_save_CPPFLAGS"
22584 if test -n "$cf_opts"
22587 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22588 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
22591 cat >"conftest.$ac_ext" <<_ACEOF
22592 #line 22592 "configure"
22593 #include "confdefs.h"
22594 #include <sys/types.h>
22595 #ifdef HAVE_TERMIOS_H
22596 #include <termios.h>
22598 #ifdef HAVE_TERMIO_H
22599 #include <termio.h>
22604 /* This is a workaround for SCO: they neglected to define struct winsize in
22605 * termios.h -- it is only in termio.h and ptem.h
22607 #include <sys/stream.h>
22608 #include <sys/ptem.h>
22611 #ifdef HAVE_SYS_IOCTL_H
22612 #include <sys/ioctl.h>
22620 struct ttysize win; /* SunOS 3.0... */
22621 int y = win.ts_lines = 2;
22622 int x = win.ts_cols = 1;
22627 struct winsize win; /* everything else */
22628 int y = win.ws_row = 2;
22629 int x = win.ws_col = 1;
22633 no TIOCGSIZE or TIOCGWINSZ
22634 #endif /* TIOCGWINSZ */
22635 #endif /* TIOCGSIZE */
22641 rm -f "conftest.$ac_objext"
22642 if { (eval echo "$as_me:22642: \"$ac_compile\"") >&5
22643 (eval $ac_compile) 2>&5
22645 echo "$as_me:22645: \$? = $ac_status" >&5
22646 (exit "$ac_status"); } &&
22647 { ac_try='test -s "conftest.$ac_objext"'
22648 { (eval echo "$as_me:22648: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22651 echo "$as_me:22651: \$? = $ac_status" >&5
22652 (exit "$ac_status"); }; }; then
22653 cf_cv_sizechange=yes
22655 echo "$as_me: failed program was:" >&5
22656 cat "conftest.$ac_ext" >&5
22657 cf_cv_sizechange=no
22659 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22661 CPPFLAGS="$cf_save_CPPFLAGS"
22662 if test "$cf_cv_sizechange" = yes ; then
22663 echo "size-change succeeded ($cf_opts)" >&5
22664 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
22670 echo "$as_me:22670: result: $cf_cv_sizechange" >&5
22671 echo "${ECHO_T}$cf_cv_sizechange" >&6
22672 if test "$cf_cv_sizechange" != no ; then
22674 cat >>confdefs.h <<\EOF
22675 #define HAVE_SIZECHANGE 1
22678 case "$cf_cv_sizechange" in
22680 cat >>confdefs.h <<EOF
22681 #define $cf_cv_sizechange 1
22688 echo "$as_me:22688: checking for memmove" >&5
22689 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
22690 if test "${ac_cv_func_memmove+set}" = set; then
22691 echo $ECHO_N "(cached) $ECHO_C" >&6
22693 cat >"conftest.$ac_ext" <<_ACEOF
22694 #line 22694 "configure"
22695 #include "confdefs.h"
22696 #define memmove autoconf_temporary
22697 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22704 /* We use char because int might match the return type of a gcc2
22705 builtin and then its argument prototype would still apply. */
22706 char memmove (void);
22712 /* The GNU C library defines stubs for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715 #if defined (__stub_memmove) || defined (__stub___memmove)
22716 #error found stub for memmove
22724 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22725 if { (eval echo "$as_me:22725: \"$ac_link\"") >&5
22726 (eval $ac_link) 2>&5
22728 echo "$as_me:22728: \$? = $ac_status" >&5
22729 (exit "$ac_status"); } &&
22730 { ac_try='test -s "conftest$ac_exeext"'
22731 { (eval echo "$as_me:22731: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22734 echo "$as_me:22734: \$? = $ac_status" >&5
22735 (exit "$ac_status"); }; }; then
22736 ac_cv_func_memmove=yes
22738 echo "$as_me: failed program was:" >&5
22739 cat "conftest.$ac_ext" >&5
22740 ac_cv_func_memmove=no
22742 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22744 echo "$as_me:22744: result: $ac_cv_func_memmove" >&5
22745 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22746 if test "$ac_cv_func_memmove" = yes; then
22750 echo "$as_me:22750: checking for bcopy" >&5
22751 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22752 if test "${ac_cv_func_bcopy+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 cat >"conftest.$ac_ext" <<_ACEOF
22756 #line 22756 "configure"
22757 #include "confdefs.h"
22758 #define bcopy autoconf_temporary
22759 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22766 /* We use char because int might match the return type of a gcc2
22767 builtin and then its argument prototype would still apply. */
22774 /* The GNU C library defines stubs for functions which it implements
22775 to always fail with ENOSYS. Some functions are actually named
22776 something starting with __ and the normal name is an alias. */
22777 #if defined (__stub_bcopy) || defined (__stub___bcopy)
22778 #error found stub for bcopy
22786 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22787 if { (eval echo "$as_me:22787: \"$ac_link\"") >&5
22788 (eval $ac_link) 2>&5
22790 echo "$as_me:22790: \$? = $ac_status" >&5
22791 (exit "$ac_status"); } &&
22792 { ac_try='test -s "conftest$ac_exeext"'
22793 { (eval echo "$as_me:22793: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:22796: \$? = $ac_status" >&5
22797 (exit "$ac_status"); }; }; then
22798 ac_cv_func_bcopy=yes
22800 echo "$as_me: failed program was:" >&5
22801 cat "conftest.$ac_ext" >&5
22802 ac_cv_func_bcopy=no
22804 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22806 echo "$as_me:22806: result: $ac_cv_func_bcopy" >&5
22807 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
22808 if test "$ac_cv_func_bcopy" = yes; then
22810 echo "$as_me:22810: checking if bcopy does overlapping moves" >&5
22811 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
22812 if test "${cf_cv_good_bcopy+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 if test "$cross_compiling" = yes; then
22817 cf_cv_good_bcopy=unknown
22819 cat >"conftest.$ac_ext" <<_ACEOF
22820 #line 22820 "configure"
22821 #include "confdefs.h"
22824 static char data[] = "abcdefghijklmnopqrstuwwxyz";
22826 bcopy(data, temp, sizeof(data));
22827 bcopy(temp+10, temp, 15);
22828 bcopy(temp+5, temp+15, 10);
22829 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
22833 rm -f "conftest$ac_exeext"
22834 if { (eval echo "$as_me:22834: \"$ac_link\"") >&5
22835 (eval $ac_link) 2>&5
22837 echo "$as_me:22837: \$? = $ac_status" >&5
22838 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22839 { (eval echo "$as_me:22839: \"$ac_try\"") >&5
22840 (eval $ac_try) 2>&5
22842 echo "$as_me:22842: \$? = $ac_status" >&5
22843 (exit "$ac_status"); }; }; then
22844 cf_cv_good_bcopy=yes
22846 echo "$as_me: program exited with status $ac_status" >&5
22847 echo "$as_me: failed program was:" >&5
22848 cat "conftest.$ac_ext" >&5
22849 cf_cv_good_bcopy=no
22851 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22855 echo "$as_me:22855: result: $cf_cv_good_bcopy" >&5
22856 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
22859 cf_cv_good_bcopy=no
22862 if test "$cf_cv_good_bcopy" = yes ; then
22864 cat >>confdefs.h <<\EOF
22865 #define USE_OK_BCOPY 1
22870 cat >>confdefs.h <<\EOF
22871 #define USE_MY_MEMMOVE 1
22878 tty >/dev/null 2>&1 || {
22879 for ac_func in posix_openpt
22881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22882 echo "$as_me:22882: checking for $ac_func" >&5
22883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22884 if eval "test \"\${$as_ac_var+set}\" = set"; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22887 cat >"conftest.$ac_ext" <<_ACEOF
22888 #line 22888 "configure"
22889 #include "confdefs.h"
22890 #define $ac_func autoconf_temporary
22891 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22898 /* We use char because int might match the return type of a gcc2
22899 builtin and then its argument prototype would still apply. */
22900 char $ac_func (void);
22906 /* The GNU C library defines stubs for functions which it implements
22907 to always fail with ENOSYS. Some functions are actually named
22908 something starting with __ and the normal name is an alias. */
22909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22910 #error found stub for $ac_func
22913 return $ac_func ();
22918 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22919 if { (eval echo "$as_me:22919: \"$ac_link\"") >&5
22920 (eval $ac_link) 2>&5
22922 echo "$as_me:22922: \$? = $ac_status" >&5
22923 (exit "$ac_status"); } &&
22924 { ac_try='test -s "conftest$ac_exeext"'
22925 { (eval echo "$as_me:22925: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:22928: \$? = $ac_status" >&5
22929 (exit "$ac_status"); }; }; then
22930 eval "$as_ac_var=yes"
22932 echo "$as_me: failed program was:" >&5
22933 cat "conftest.$ac_ext" >&5
22934 eval "$as_ac_var=no"
22936 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22938 echo "$as_me:22938: result: `eval echo '${'"$as_ac_var"'}'`" >&5
22939 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
22940 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
22941 cat >>confdefs.h <<EOF
22942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22948 echo "$as_me:22948: checking if poll really works" >&5
22949 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
22950 if test "${cf_cv_working_poll+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22954 if test "$cross_compiling" = yes; then
22955 cf_cv_working_poll=unknown
22957 cat >"conftest.$ac_ext" <<_ACEOF
22958 #line 22958 "configure"
22959 #include "confdefs.h"
22961 #include <stdlib.h>
22963 #include <unistd.h>
22968 #include <sys/poll.h>
22971 struct pollfd myfds;
22974 /* check for Darwin bug with respect to "devices" */
22975 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
22978 myfds.events = POLLIN;
22981 ret = poll(&myfds, 1, 100);
22983 if (ret < 0 || (myfds.revents & POLLNVAL)) {
22988 fd = open("/dev/tty", 2); /* O_RDWR */
22990 #ifdef HAVE_POSIX_OPENPT
22992 fd = posix_openpt(O_RDWR);
22997 /* also check with standard input */
22999 myfds.events = POLLIN;
23001 ret = poll(&myfds, 1, 100);
23006 ${cf_cv_main_return:-return}(ret < 0);
23009 rm -f "conftest$ac_exeext"
23010 if { (eval echo "$as_me:23010: \"$ac_link\"") >&5
23011 (eval $ac_link) 2>&5
23013 echo "$as_me:23013: \$? = $ac_status" >&5
23014 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23015 { (eval echo "$as_me:23015: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:23018: \$? = $ac_status" >&5
23019 (exit "$ac_status"); }; }; then
23020 cf_cv_working_poll=yes
23022 echo "$as_me: program exited with status $ac_status" >&5
23023 echo "$as_me: failed program was:" >&5
23024 cat "conftest.$ac_ext" >&5
23025 cf_cv_working_poll=no
23027 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23030 echo "$as_me:23030: result: $cf_cv_working_poll" >&5
23031 echo "${ECHO_T}$cf_cv_working_poll" >&6
23032 test "$cf_cv_working_poll" = "yes" &&
23033 cat >>confdefs.h <<\EOF
23034 #define HAVE_WORKING_POLL 1
23037 echo "$as_me:23037: checking for va_copy" >&5
23038 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23039 if test "${cf_cv_have_va_copy+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 cat >"conftest.$ac_ext" <<_ACEOF
23044 #line 23044 "configure"
23045 #include "confdefs.h"
23047 #include <stdarg.h>
23053 static va_list dst;
23054 static va_list src;
23060 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23061 if { (eval echo "$as_me:23061: \"$ac_link\"") >&5
23062 (eval $ac_link) 2>&5
23064 echo "$as_me:23064: \$? = $ac_status" >&5
23065 (exit "$ac_status"); } &&
23066 { ac_try='test -s "conftest$ac_exeext"'
23067 { (eval echo "$as_me:23067: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23070 echo "$as_me:23070: \$? = $ac_status" >&5
23071 (exit "$ac_status"); }; }; then
23072 cf_cv_have_va_copy=yes
23074 echo "$as_me: failed program was:" >&5
23075 cat "conftest.$ac_ext" >&5
23076 cf_cv_have_va_copy=no
23078 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23080 echo "$as_me:23080: result: $cf_cv_have_va_copy" >&5
23081 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23083 if test "$cf_cv_have_va_copy" = yes;
23086 cat >>confdefs.h <<\EOF
23087 #define HAVE_VA_COPY 1
23090 else # !cf_cv_have_va_copy
23092 echo "$as_me:23092: checking for __va_copy" >&5
23093 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23094 if test "${cf_cv_have___va_copy+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23098 cat >"conftest.$ac_ext" <<_ACEOF
23099 #line 23099 "configure"
23100 #include "confdefs.h"
23102 #include <stdarg.h>
23108 static va_list dst;
23109 static va_list src;
23110 __va_copy(dst, src)
23115 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23116 if { (eval echo "$as_me:23116: \"$ac_link\"") >&5
23117 (eval $ac_link) 2>&5
23119 echo "$as_me:23119: \$? = $ac_status" >&5
23120 (exit "$ac_status"); } &&
23121 { ac_try='test -s "conftest$ac_exeext"'
23122 { (eval echo "$as_me:23122: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23125 echo "$as_me:23125: \$? = $ac_status" >&5
23126 (exit "$ac_status"); }; }; then
23127 cf_cv_have___va_copy=yes
23129 echo "$as_me: failed program was:" >&5
23130 cat "conftest.$ac_ext" >&5
23131 cf_cv_have___va_copy=no
23133 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23135 echo "$as_me:23135: result: $cf_cv_have___va_copy" >&5
23136 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23138 if test "$cf_cv_have___va_copy" = yes
23141 cat >>confdefs.h <<\EOF
23142 #define HAVE___VA_COPY 1
23145 else # !cf_cv_have___va_copy
23147 echo "$as_me:23147: checking for __builtin_va_copy" >&5
23148 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23149 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 cat >"conftest.$ac_ext" <<_ACEOF
23154 #line 23154 "configure"
23155 #include "confdefs.h"
23157 #include <stdarg.h>
23163 static va_list dst;
23164 static va_list src;
23165 __builtin_va_copy(dst, src)
23170 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23171 if { (eval echo "$as_me:23171: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>&5
23174 echo "$as_me:23174: \$? = $ac_status" >&5
23175 (exit "$ac_status"); } &&
23176 { ac_try='test -s "conftest$ac_exeext"'
23177 { (eval echo "$as_me:23177: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:23180: \$? = $ac_status" >&5
23181 (exit "$ac_status"); }; }; then
23182 cf_cv_have___builtin_va_copy=yes
23184 echo "$as_me: failed program was:" >&5
23185 cat "conftest.$ac_ext" >&5
23186 cf_cv_have___builtin_va_copy=no
23188 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23190 echo "$as_me:23190: result: $cf_cv_have___builtin_va_copy" >&5
23191 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23193 test "$cf_cv_have___builtin_va_copy" = yes &&
23195 cat >>confdefs.h <<\EOF
23196 #define HAVE___BUILTIN_VA_COPY 1
23199 fi # cf_cv_have___va_copy
23201 fi # cf_cv_have_va_copy
23203 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23208 echo "$as_me:23208: checking if we can simply copy va_list" >&5
23209 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23210 if test "${cf_cv_pointer_va_list+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 cat >"conftest.$ac_ext" <<_ACEOF
23215 #line 23215 "configure"
23216 #include "confdefs.h"
23218 #include <stdarg.h>
23231 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23232 if { (eval echo "$as_me:23232: \"$ac_link\"") >&5
23233 (eval $ac_link) 2>&5
23235 echo "$as_me:23235: \$? = $ac_status" >&5
23236 (exit "$ac_status"); } &&
23237 { ac_try='test -s "conftest$ac_exeext"'
23238 { (eval echo "$as_me:23238: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23241 echo "$as_me:23241: \$? = $ac_status" >&5
23242 (exit "$ac_status"); }; }; then
23243 cf_cv_pointer_va_list=yes
23245 echo "$as_me: failed program was:" >&5
23246 cat "conftest.$ac_ext" >&5
23247 cf_cv_pointer_va_list=no
23249 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23251 echo "$as_me:23251: result: $cf_cv_pointer_va_list" >&5
23252 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23254 if test "$cf_cv_pointer_va_list" = no
23256 echo "$as_me:23256: checking if we can copy va_list indirectly" >&5
23257 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23258 if test "${cf_cv_array_va_list+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 cat >"conftest.$ac_ext" <<_ACEOF
23263 #line 23263 "configure"
23264 #include "confdefs.h"
23266 #include <stdarg.h>
23279 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23280 if { (eval echo "$as_me:23280: \"$ac_link\"") >&5
23281 (eval $ac_link) 2>&5
23283 echo "$as_me:23283: \$? = $ac_status" >&5
23284 (exit "$ac_status"); } &&
23285 { ac_try='test -s "conftest$ac_exeext"'
23286 { (eval echo "$as_me:23286: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23289 echo "$as_me:23289: \$? = $ac_status" >&5
23290 (exit "$ac_status"); }; }; then
23291 cf_cv_array_va_list=yes
23293 echo "$as_me: failed program was:" >&5
23294 cat "conftest.$ac_ext" >&5
23295 cf_cv_array_va_list=no
23297 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23299 echo "$as_me:23299: result: $cf_cv_array_va_list" >&5
23300 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23301 test "$cf_cv_array_va_list" = yes &&
23302 cat >>confdefs.h <<\EOF
23303 #define ARRAY_VA_LIST 1
23310 echo "$as_me:23310: checking for pid_t" >&5
23311 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23312 if test "${ac_cv_type_pid_t+set}" = set; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23315 cat >"conftest.$ac_ext" <<_ACEOF
23316 #line 23316 "configure"
23317 #include "confdefs.h"
23318 $ac_includes_default
23324 if (sizeof (pid_t))
23330 rm -f "conftest.$ac_objext"
23331 if { (eval echo "$as_me:23331: \"$ac_compile\"") >&5
23332 (eval $ac_compile) 2>&5
23334 echo "$as_me:23334: \$? = $ac_status" >&5
23335 (exit "$ac_status"); } &&
23336 { ac_try='test -s "conftest.$ac_objext"'
23337 { (eval echo "$as_me:23337: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23340 echo "$as_me:23340: \$? = $ac_status" >&5
23341 (exit "$ac_status"); }; }; then
23342 ac_cv_type_pid_t=yes
23344 echo "$as_me: failed program was:" >&5
23345 cat "conftest.$ac_ext" >&5
23346 ac_cv_type_pid_t=no
23348 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23350 echo "$as_me:23350: result: $ac_cv_type_pid_t" >&5
23351 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23352 if test "$ac_cv_type_pid_t" = yes; then
23356 cat >>confdefs.h <<EOF
23362 for ac_header in unistd.h vfork.h
23364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23365 echo "$as_me:23365: checking for $ac_header" >&5
23366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23370 cat >"conftest.$ac_ext" <<_ACEOF
23371 #line 23371 "configure"
23372 #include "confdefs.h"
23373 #include <$ac_header>
23375 if { (eval echo "$as_me:23375: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23376 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23378 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 echo "$as_me:23381: \$? = $ac_status" >&5
23382 (exit "$ac_status"); } >/dev/null; then
23383 if test -s conftest.err; then
23384 ac_cpp_err=$ac_c_preproc_warn_flag
23391 if test -z "$ac_cpp_err"; then
23392 eval "$as_ac_Header=yes"
23394 echo "$as_me: failed program was:" >&5
23395 cat "conftest.$ac_ext" >&5
23396 eval "$as_ac_Header=no"
23398 rm -f conftest.err "conftest.$ac_ext"
23400 echo "$as_me:23400: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23401 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23402 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23403 cat >>confdefs.h <<EOF
23404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23410 for ac_func in fork vfork
23412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23413 echo "$as_me:23413: checking for $ac_func" >&5
23414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23415 if eval "test \"\${$as_ac_var+set}\" = set"; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >"conftest.$ac_ext" <<_ACEOF
23419 #line 23419 "configure"
23420 #include "confdefs.h"
23421 #define $ac_func autoconf_temporary
23422 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23429 /* We use char because int might match the return type of a gcc2
23430 builtin and then its argument prototype would still apply. */
23431 char $ac_func (void);
23437 /* The GNU C library defines stubs for functions which it implements
23438 to always fail with ENOSYS. Some functions are actually named
23439 something starting with __ and the normal name is an alias. */
23440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23441 #error found stub for $ac_func
23444 return $ac_func ();
23449 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23450 if { (eval echo "$as_me:23450: \"$ac_link\"") >&5
23451 (eval $ac_link) 2>&5
23453 echo "$as_me:23453: \$? = $ac_status" >&5
23454 (exit "$ac_status"); } &&
23455 { ac_try='test -s "conftest$ac_exeext"'
23456 { (eval echo "$as_me:23456: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 echo "$as_me:23459: \$? = $ac_status" >&5
23460 (exit "$ac_status"); }; }; then
23461 eval "$as_ac_var=yes"
23463 echo "$as_me: failed program was:" >&5
23464 cat "conftest.$ac_ext" >&5
23465 eval "$as_ac_var=no"
23467 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23469 echo "$as_me:23469: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23470 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23471 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23472 cat >>confdefs.h <<EOF
23473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23479 ac_cv_func_fork_works=$ac_cv_func_fork
23480 if test "x$ac_cv_func_fork" = xyes; then
23481 echo "$as_me:23481: checking for working fork" >&5
23482 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23483 if test "${ac_cv_func_fork_works+set}" = set; then
23484 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 if test "$cross_compiling" = yes; then
23487 ac_cv_func_fork_works=cross
23489 cat >"conftest.$ac_ext" <<_ACEOF
23490 /* By Rüdiger Kuhlmann. */
23491 #include <sys/types.h>
23493 # include <unistd.h>
23495 /* Some systems only have a dummy stub for fork() */
23499 $ac_main_return (1);
23500 $ac_main_return (0);
23503 rm -f "conftest$ac_exeext"
23504 if { (eval echo "$as_me:23504: \"$ac_link\"") >&5
23505 (eval $ac_link) 2>&5
23507 echo "$as_me:23507: \$? = $ac_status" >&5
23508 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23509 { (eval echo "$as_me:23509: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23512 echo "$as_me:23512: \$? = $ac_status" >&5
23513 (exit "$ac_status"); }; }; then
23514 ac_cv_func_fork_works=yes
23516 echo "$as_me: program exited with status $ac_status" >&5
23517 echo "$as_me: failed program was:" >&5
23518 cat "conftest.$ac_ext" >&5
23519 ac_cv_func_fork_works=no
23521 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23524 echo "$as_me:23524: result: $ac_cv_func_fork_works" >&5
23525 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23528 if test "x$ac_cv_func_fork_works" = xcross; then
23530 *-*-amigaos* | *-*-msdosdjgpp*)
23531 # Override, as these systems have only a dummy fork() stub
23532 ac_cv_func_fork_works=no
23535 ac_cv_func_fork_works=yes
23538 { echo "$as_me:23538: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23539 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23541 ac_cv_func_vfork_works=$ac_cv_func_vfork
23542 if test "x$ac_cv_func_vfork" = xyes; then
23543 echo "$as_me:23543: checking for working vfork" >&5
23544 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23545 if test "${ac_cv_func_vfork_works+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 if test "$cross_compiling" = yes; then
23549 ac_cv_func_vfork_works=cross
23551 cat >"conftest.$ac_ext" <<_ACEOF
23552 #line 23552 "configure"
23553 #include "confdefs.h"
23554 /* Thanks to Paul Eggert for this test. */
23556 #include <sys/types.h>
23557 #include <sys/stat.h>
23559 # include <unistd.h>
23562 # include <vfork.h>
23564 /* On some sparc systems, changes by the child to local and incoming
23565 argument registers are propagated back to the parent. The compiler
23566 is told about this with #include <vfork.h>, but some compilers
23567 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23568 static variable whose address is put into a register that is
23569 clobbered by the vfork. */
23572 sparc_address_test (int arg)
23574 sparc_address_test (arg) int arg;
23577 static pid_t child;
23595 pid_t parent = getpid ();
23598 sparc_address_test ();
23603 /* Here is another test for sparc vfork register problems. This
23604 test uses lots of local variables, at least as many local
23605 variables as main has allocated so far including compiler
23606 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23607 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23608 reuse the register of parent for one of the local variables,
23609 since it will think that parent can't possibly be used any more
23610 in this routine. Assigning to the local variable will thus
23611 munge parent in the parent process. */
23613 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23614 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23615 /* Convince the compiler that p..p7 are live; otherwise, it might
23616 use the same hardware register for all 8 local variables. */
23617 if (p != p1 || p != p2 || p != p3 || p != p4
23618 || p != p5 || p != p6 || p != p7)
23621 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23622 from child file descriptors. If the child closes a descriptor
23623 before it execs or exits, this munges the parent's descriptor
23624 as well. Test for this by closing stdout in the child. */
23625 _exit(close(fileno(stdout)) != 0);
23630 while (wait(&status) != child)
23633 /* Was there some problem with vforking? */
23636 /* Did the child fail? (This shouldn't happen.) */
23639 /* Did the vfork/compiler bug occur? */
23640 || parent != getpid()
23642 /* Did the file descriptor bug occur? */
23643 || fstat(fileno(stdout), &st) != 0
23648 rm -f "conftest$ac_exeext"
23649 if { (eval echo "$as_me:23649: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>&5
23652 echo "$as_me:23652: \$? = $ac_status" >&5
23653 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23654 { (eval echo "$as_me:23654: \"$ac_try\"") >&5
23655 (eval $ac_try) 2>&5
23657 echo "$as_me:23657: \$? = $ac_status" >&5
23658 (exit "$ac_status"); }; }; then
23659 ac_cv_func_vfork_works=yes
23661 echo "$as_me: program exited with status $ac_status" >&5
23662 echo "$as_me: failed program was:" >&5
23663 cat "conftest.$ac_ext" >&5
23664 ac_cv_func_vfork_works=no
23666 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23669 echo "$as_me:23669: result: $ac_cv_func_vfork_works" >&5
23670 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23673 if test "x$ac_cv_func_fork_works" = xcross; then
23674 ac_cv_func_vfork_works=ac_cv_func_vfork
23675 { echo "$as_me:23675: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
23676 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
23679 if test "x$ac_cv_func_vfork_works" = xyes; then
23681 cat >>confdefs.h <<\EOF
23682 #define HAVE_WORKING_VFORK 1
23687 cat >>confdefs.h <<\EOF
23692 if test "x$ac_cv_func_fork_works" = xyes; then
23694 cat >>confdefs.h <<\EOF
23695 #define HAVE_WORKING_FORK 1
23700 echo "$as_me:23700: checking if fopen accepts explicit binary mode" >&5
23701 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
23702 if test "${cf_cv_fopen_bin_r+set}" = set; then
23703 echo $ECHO_N "(cached) $ECHO_C" >&6
23706 if test "$cross_compiling" = yes; then
23707 cf_cv_fopen_bin_r=unknown
23709 cat >"conftest.$ac_ext" <<_ACEOF
23710 #line 23710 "configure"
23711 #include "confdefs.h"
23715 FILE *fp = fopen("conftest.tmp", "wb");
23719 for (p = 0; p < 256; ++p) {
23723 fp = fopen("conftest.tmp", "rb");
23725 for (p = 0; p < 256; ++p) {
23738 ${cf_cv_main_return:-return} (rc);
23742 rm -f "conftest$ac_exeext"
23743 if { (eval echo "$as_me:23743: \"$ac_link\"") >&5
23744 (eval $ac_link) 2>&5
23746 echo "$as_me:23746: \$? = $ac_status" >&5
23747 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23748 { (eval echo "$as_me:23748: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23751 echo "$as_me:23751: \$? = $ac_status" >&5
23752 (exit "$ac_status"); }; }; then
23753 cf_cv_fopen_bin_r=yes
23755 echo "$as_me: program exited with status $ac_status" >&5
23756 echo "$as_me: failed program was:" >&5
23757 cat "conftest.$ac_ext" >&5
23758 cf_cv_fopen_bin_r=no
23760 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23764 echo "$as_me:23764: result: $cf_cv_fopen_bin_r" >&5
23765 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
23766 test "x$cf_cv_fopen_bin_r" != xno &&
23767 cat >>confdefs.h <<\EOF
23768 #define USE_FOPEN_BIN_R 1
23771 # special check for test/ditto.c
23773 echo "$as_me:23773: checking for openpty in -lutil" >&5
23774 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
23775 if test "${ac_cv_lib_util_openpty+set}" = set; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23778 ac_check_lib_save_LIBS=$LIBS
23779 LIBS="-lutil $LIBS"
23780 cat >"conftest.$ac_ext" <<_ACEOF
23781 #line 23781 "configure"
23782 #include "confdefs.h"
23784 /* Override any gcc2 internal prototype to avoid an error. */
23788 /* We use char because int might match the return type of a gcc2
23789 builtin and then its argument prototype would still apply. */
23799 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23800 if { (eval echo "$as_me:23800: \"$ac_link\"") >&5
23801 (eval $ac_link) 2>&5
23803 echo "$as_me:23803: \$? = $ac_status" >&5
23804 (exit "$ac_status"); } &&
23805 { ac_try='test -s "conftest$ac_exeext"'
23806 { (eval echo "$as_me:23806: \"$ac_try\"") >&5
23807 (eval $ac_try) 2>&5
23809 echo "$as_me:23809: \$? = $ac_status" >&5
23810 (exit "$ac_status"); }; }; then
23811 ac_cv_lib_util_openpty=yes
23813 echo "$as_me: failed program was:" >&5
23814 cat "conftest.$ac_ext" >&5
23815 ac_cv_lib_util_openpty=no
23817 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23818 LIBS=$ac_check_lib_save_LIBS
23820 echo "$as_me:23820: result: $ac_cv_lib_util_openpty" >&5
23821 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
23822 if test "$ac_cv_lib_util_openpty" = yes; then
23828 echo "$as_me:23828: checking for openpty header" >&5
23829 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
23830 if test "${cf_cv_func_openpty+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 cf_save_LIBS="$LIBS"
23835 test "$cf_cv_lib_util" = yes && {
23836 cf_add_libs="$LIBS"
23839 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23840 # filter duplicates
23841 for cf_add_1lib in $cf_add_0lib; do
23842 for cf_add_2lib in $cf_add_libs; do
23843 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23848 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23850 LIBS="$cf_add_libs"
23852 for cf_header in pty.h libutil.h util.h
23854 cat >"conftest.$ac_ext" <<_ACEOF
23855 #line 23855 "configure"
23856 #include "confdefs.h"
23858 #include <$cf_header>
23864 int x = openpty((int *)0, (int *)0, (char *)0,
23865 (struct termios *)0, (struct winsize *)0);
23871 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23872 if { (eval echo "$as_me:23872: \"$ac_link\"") >&5
23873 (eval $ac_link) 2>&5
23875 echo "$as_me:23875: \$? = $ac_status" >&5
23876 (exit "$ac_status"); } &&
23877 { ac_try='test -s "conftest$ac_exeext"'
23878 { (eval echo "$as_me:23878: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23881 echo "$as_me:23881: \$? = $ac_status" >&5
23882 (exit "$ac_status"); }; }; then
23884 cf_cv_func_openpty=$cf_header
23888 echo "$as_me: failed program was:" >&5
23889 cat "conftest.$ac_ext" >&5
23891 cf_cv_func_openpty=no
23894 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23896 LIBS="$cf_save_LIBS"
23899 echo "$as_me:23899: result: $cf_cv_func_openpty" >&5
23900 echo "${ECHO_T}$cf_cv_func_openpty" >&6
23902 if test "$cf_cv_func_openpty" != no ; then
23904 cat >>confdefs.h <<EOF
23905 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
23908 cat >>confdefs.h <<\EOF
23909 #define USE_XTERM_PTY 1
23912 if test "x$cf_cv_lib_util" = xyes ; then
23914 cf_add_libs="$TEST_LIBS"
23917 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23918 # filter duplicates
23919 for cf_add_1lib in $cf_add_0lib; do
23920 for cf_add_2lib in $cf_add_libs; do
23921 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23926 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23928 TEST_LIBS="$cf_add_libs"
23933 if test "$with_hashed_db" != no ; then
23935 cat >>confdefs.h <<\EOF
23936 #define USE_HASHED_DB 1
23939 case $with_hashed_db in
23943 if test -d "$with_hashed_db" ; then
23945 if test -n "$with_hashed_db/include" ; then
23946 for cf_add_incdir in $with_hashed_db/include
23948 while test "$cf_add_incdir" != /usr/include
23950 if test -d "$cf_add_incdir"
23953 if test -n "$CFLAGS$CPPFLAGS" ; then
23954 # a loop is needed to ensure we can add subdirs of existing dirs
23955 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23956 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23957 cf_have_incdir=yes; break
23962 if test "$cf_have_incdir" = no ; then
23963 if test "$cf_add_incdir" = /usr/local/include ; then
23964 if test "$GCC" = yes
23966 cf_save_CPPFLAGS=$CPPFLAGS
23968 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23969 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23971 cat >"conftest.$ac_ext" <<_ACEOF
23972 #line 23972 "configure"
23973 #include "confdefs.h"
23983 rm -f "conftest.$ac_objext"
23984 if { (eval echo "$as_me:23984: \"$ac_compile\"") >&5
23985 (eval $ac_compile) 2>&5
23987 echo "$as_me:23987: \$? = $ac_status" >&5
23988 (exit "$ac_status"); } &&
23989 { ac_try='test -s "conftest.$ac_objext"'
23990 { (eval echo "$as_me:23990: \"$ac_try\"") >&5
23991 (eval $ac_try) 2>&5
23993 echo "$as_me:23993: \$? = $ac_status" >&5
23994 (exit "$ac_status"); }; }; then
23997 echo "$as_me: failed program was:" >&5
23998 cat "conftest.$ac_ext" >&5
24001 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24002 CPPFLAGS=$cf_save_CPPFLAGS
24007 if test "$cf_have_incdir" = no ; then
24008 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24010 echo "${as_me:-configure}:24010: testing adding $cf_add_incdir to include-path ..." 1>&5
24012 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24014 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24015 test "$cf_top_incdir" = "$cf_add_incdir" && break
24016 cf_add_incdir="$cf_top_incdir"
24027 if test -n "$with_hashed_db/lib" ; then
24028 for cf_add_libdir in $with_hashed_db/lib
24030 if test "$cf_add_libdir" = /usr/lib ; then
24032 elif test -d "$cf_add_libdir"
24035 if test -n "$LDFLAGS$LIBS" ; then
24036 # a loop is needed to ensure we can add subdirs of existing dirs
24037 for cf_test_libdir in $LDFLAGS $LIBS ; do
24038 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24039 cf_have_libdir=yes; break
24043 if test "$cf_have_libdir" = no ; then
24044 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24046 echo "${as_me:-configure}:24046: testing adding $cf_add_libdir to library-path ..." 1>&5
24048 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24055 case "$with_hashed_db" in
24057 { echo "$as_me:24057: WARNING: no such directory $with_hashed_db" >&5
24058 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24064 test "x$prefix" != "xNONE" && \
24065 test -d "$prefix" && \
24067 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24068 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24069 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24070 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24071 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24072 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24075 for cf_subdir_prefix in \
24084 test "x$cf_subdir_prefix" != "x$prefix" && \
24085 test -d "$cf_subdir_prefix" && \
24086 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24087 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24088 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24089 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24090 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24091 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24092 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"
24097 for cf_item in $cf_search
24100 (*/$with_hashed_db)
24102 if test -n "$cf_item" ; then
24103 for cf_add_incdir in $cf_item
24105 while test "$cf_add_incdir" != /usr/include
24107 if test -d "$cf_add_incdir"
24110 if test -n "$CFLAGS$CPPFLAGS" ; then
24111 # a loop is needed to ensure we can add subdirs of existing dirs
24112 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24113 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24114 cf_have_incdir=yes; break
24119 if test "$cf_have_incdir" = no ; then
24120 if test "$cf_add_incdir" = /usr/local/include ; then
24121 if test "$GCC" = yes
24123 cf_save_CPPFLAGS=$CPPFLAGS
24125 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24126 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24128 cat >"conftest.$ac_ext" <<_ACEOF
24129 #line 24129 "configure"
24130 #include "confdefs.h"
24140 rm -f "conftest.$ac_objext"
24141 if { (eval echo "$as_me:24141: \"$ac_compile\"") >&5
24142 (eval $ac_compile) 2>&5
24144 echo "$as_me:24144: \$? = $ac_status" >&5
24145 (exit "$ac_status"); } &&
24146 { ac_try='test -s "conftest.$ac_objext"'
24147 { (eval echo "$as_me:24147: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24150 echo "$as_me:24150: \$? = $ac_status" >&5
24151 (exit "$ac_status"); }; }; then
24154 echo "$as_me: failed program was:" >&5
24155 cat "conftest.$ac_ext" >&5
24158 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24159 CPPFLAGS=$cf_save_CPPFLAGS
24164 if test "$cf_have_incdir" = no ; then
24165 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24167 echo "${as_me:-configure}:24167: testing adding $cf_add_incdir to include-path ..." 1>&5
24169 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24171 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24172 test "$cf_top_incdir" = "$cf_add_incdir" && break
24173 cf_add_incdir="$cf_top_incdir"
24190 test "x$prefix" != "xNONE" && \
24191 test -d "$prefix" && \
24193 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24194 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24195 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24196 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24197 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24198 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24201 for cf_subdir_prefix in \
24210 test "x$cf_subdir_prefix" != "x$prefix" && \
24211 test -d "$cf_subdir_prefix" && \
24212 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24213 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24214 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24215 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24216 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24217 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24218 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"
24223 for cf_item in $cf_search
24226 (*/$with_hashed_db)
24228 if test -n "$cf_item" ; then
24229 for cf_add_libdir in $cf_item
24231 if test "$cf_add_libdir" = /usr/lib ; then
24233 elif test -d "$cf_add_libdir"
24236 if test -n "$LDFLAGS$LIBS" ; then
24237 # a loop is needed to ensure we can add subdirs of existing dirs
24238 for cf_test_libdir in $LDFLAGS $LIBS ; do
24239 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24240 cf_have_libdir=yes; break
24244 if test "$cf_have_libdir" = no ; then
24245 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24247 echo "${as_me:-configure}:24247: testing adding $cf_add_libdir to library-path ..." 1>&5
24249 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24264 echo "$as_me:24264: checking for db.h" >&5
24265 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24266 if test "${ac_cv_header_db_h+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24269 cat >"conftest.$ac_ext" <<_ACEOF
24270 #line 24270 "configure"
24271 #include "confdefs.h"
24274 if { (eval echo "$as_me:24274: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24275 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24277 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24279 cat conftest.err >&5
24280 echo "$as_me:24280: \$? = $ac_status" >&5
24281 (exit "$ac_status"); } >/dev/null; then
24282 if test -s conftest.err; then
24283 ac_cpp_err=$ac_c_preproc_warn_flag
24290 if test -z "$ac_cpp_err"; then
24291 ac_cv_header_db_h=yes
24293 echo "$as_me: failed program was:" >&5
24294 cat "conftest.$ac_ext" >&5
24295 ac_cv_header_db_h=no
24297 rm -f conftest.err "conftest.$ac_ext"
24299 echo "$as_me:24299: result: $ac_cv_header_db_h" >&5
24300 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24301 if test "$ac_cv_header_db_h" = yes; then
24303 echo "$as_me:24303: checking for version of db" >&5
24304 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24305 if test "${cf_cv_hashed_db_version+set}" = set; then
24306 echo $ECHO_N "(cached) $ECHO_C" >&6
24309 cf_cv_hashed_db_version=unknown
24311 for cf_db_version in 1 2 3 4 5 6
24314 echo "${as_me:-configure}:24314: testing checking for db version $cf_db_version ..." 1>&5
24316 cat >"conftest.$ac_ext" <<_ACEOF
24317 #line 24317 "configure"
24318 #include "confdefs.h"
24320 $ac_includes_default
24323 #ifdef DB_VERSION_MAJOR
24324 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24325 #if $cf_db_version == DB_VERSION_MAJOR
24331 #if $cf_db_version == 1
24332 /* ok: assuming this is DB 1.8.5 */
24346 rm -f "conftest.$ac_objext"
24347 if { (eval echo "$as_me:24347: \"$ac_compile\"") >&5
24348 (eval $ac_compile) 2>&5
24350 echo "$as_me:24350: \$? = $ac_status" >&5
24351 (exit "$ac_status"); } &&
24352 { ac_try='test -s "conftest.$ac_objext"'
24353 { (eval echo "$as_me:24353: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24356 echo "$as_me:24356: \$? = $ac_status" >&5
24357 (exit "$ac_status"); }; }; then
24359 cf_cv_hashed_db_version=$cf_db_version
24363 echo "$as_me: failed program was:" >&5
24364 cat "conftest.$ac_ext" >&5
24366 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24370 echo "$as_me:24370: result: $cf_cv_hashed_db_version" >&5
24371 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24373 if test "$cf_cv_hashed_db_version" = unknown ; then
24374 { { echo "$as_me:24374: error: Cannot determine version of db" >&5
24375 echo "$as_me: error: Cannot determine version of db" >&2;}
24376 { (exit 1); exit 1; }; }
24379 echo "$as_me:24379: checking for db libraries" >&5
24380 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24381 if test "${cf_cv_hashed_db_libs+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24385 cf_cv_hashed_db_libs=unknown
24386 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24388 cf_save_libs="$LIBS"
24389 if test -n "$cf_db_libs"; then
24391 cf_add_libs="$LIBS"
24394 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24395 # filter duplicates
24396 for cf_add_1lib in $cf_add_0lib; do
24397 for cf_add_2lib in $cf_add_libs; do
24398 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24403 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24405 LIBS="$cf_add_libs"
24409 echo "${as_me:-configure}:24409: testing checking for library $cf_db_libs ..." 1>&5
24411 cat >"conftest.$ac_ext" <<_ACEOF
24412 #line 24412 "configure"
24413 #include "confdefs.h"
24415 $ac_includes_default
24422 char *path = "/tmp/foo";
24423 #ifdef DB_VERSION_MAJOR
24424 #if DB_VERSION_MAJOR >= 4
24426 db_create(&result, NULL, 0);
24427 result->open(result,
24434 #elif DB_VERSION_MAJOR >= 3
24436 db_create(&result, NULL, 0);
24437 result->open(result,
24443 #elif DB_VERSION_MAJOR >= 2
24452 #endif /* DB_VERSION_MAJOR */
24454 DB *result = dbopen(path,
24460 ${cf_cv_main_return:-return}(result != 0)
24466 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24467 if { (eval echo "$as_me:24467: \"$ac_link\"") >&5
24468 (eval $ac_link) 2>&5
24470 echo "$as_me:24470: \$? = $ac_status" >&5
24471 (exit "$ac_status"); } &&
24472 { ac_try='test -s "conftest$ac_exeext"'
24473 { (eval echo "$as_me:24473: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24476 echo "$as_me:24476: \$? = $ac_status" >&5
24477 (exit "$ac_status"); }; }; then
24479 if test -n "$cf_db_libs" ; then
24480 cf_cv_hashed_db_libs=$cf_db_libs
24482 cf_cv_hashed_db_libs=default
24484 LIBS="$cf_save_libs"
24488 echo "$as_me: failed program was:" >&5
24489 cat "conftest.$ac_ext" >&5
24491 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24492 LIBS="$cf_save_libs"
24496 echo "$as_me:24496: result: $cf_cv_hashed_db_libs" >&5
24497 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24499 if test "$cf_cv_hashed_db_libs" = unknown ; then
24500 { { echo "$as_me:24500: error: Cannot determine library for db" >&5
24501 echo "$as_me: error: Cannot determine library for db" >&2;}
24502 { (exit 1); exit 1; }; }
24503 elif test "$cf_cv_hashed_db_libs" != default ; then
24505 cf_add_libs="$LIBS"
24508 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24509 # filter duplicates
24510 for cf_add_1lib in $cf_add_0lib; do
24511 for cf_add_2lib in $cf_add_libs; do
24512 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24517 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24519 LIBS="$cf_add_libs"
24526 { { echo "$as_me:24526: error: Cannot find db.h" >&5
24527 echo "$as_me: error: Cannot find db.h" >&2;}
24528 { (exit 1); exit 1; }; }
24534 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24535 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24536 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24539 # Just in case, check if the C compiler has a bool type.
24541 echo "$as_me:24541: checking if we should include stdbool.h" >&5
24542 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24544 if test "${cf_cv_header_stdbool_h+set}" = set; then
24545 echo $ECHO_N "(cached) $ECHO_C" >&6
24548 cat >"conftest.$ac_ext" <<_ACEOF
24549 #line 24549 "configure"
24550 #include "confdefs.h"
24560 rm -f "conftest.$ac_objext"
24561 if { (eval echo "$as_me:24561: \"$ac_compile\"") >&5
24562 (eval $ac_compile) 2>&5
24564 echo "$as_me:24564: \$? = $ac_status" >&5
24565 (exit "$ac_status"); } &&
24566 { ac_try='test -s "conftest.$ac_objext"'
24567 { (eval echo "$as_me:24567: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24570 echo "$as_me:24570: \$? = $ac_status" >&5
24571 (exit "$ac_status"); }; }; then
24572 cf_cv_header_stdbool_h=0
24574 echo "$as_me: failed program was:" >&5
24575 cat "conftest.$ac_ext" >&5
24576 cat >"conftest.$ac_ext" <<_ACEOF
24577 #line 24577 "configure"
24578 #include "confdefs.h"
24581 #include <stdbool.h>
24592 rm -f "conftest.$ac_objext"
24593 if { (eval echo "$as_me:24593: \"$ac_compile\"") >&5
24594 (eval $ac_compile) 2>&5
24596 echo "$as_me:24596: \$? = $ac_status" >&5
24597 (exit "$ac_status"); } &&
24598 { ac_try='test -s "conftest.$ac_objext"'
24599 { (eval echo "$as_me:24599: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24602 echo "$as_me:24602: \$? = $ac_status" >&5
24603 (exit "$ac_status"); }; }; then
24604 cf_cv_header_stdbool_h=1
24606 echo "$as_me: failed program was:" >&5
24607 cat "conftest.$ac_ext" >&5
24608 cf_cv_header_stdbool_h=0
24610 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24612 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24615 if test "$cf_cv_header_stdbool_h" = 1
24616 then echo "$as_me:24616: result: yes" >&5
24617 echo "${ECHO_T}yes" >&6
24618 else echo "$as_me:24618: result: no" >&5
24619 echo "${ECHO_T}no" >&6
24622 echo "$as_me:24622: checking for builtin bool type" >&5
24623 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24625 if test "${cf_cv_cc_bool_type+set}" = set; then
24626 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 cat >"conftest.$ac_ext" <<_ACEOF
24630 #line 24630 "configure"
24631 #include "confdefs.h"
24634 #include <sys/types.h>
24644 rm -f "conftest.$ac_objext"
24645 if { (eval echo "$as_me:24645: \"$ac_compile\"") >&5
24646 (eval $ac_compile) 2>&5
24648 echo "$as_me:24648: \$? = $ac_status" >&5
24649 (exit "$ac_status"); } &&
24650 { ac_try='test -s "conftest.$ac_objext"'
24651 { (eval echo "$as_me:24651: \"$ac_try\"") >&5
24652 (eval $ac_try) 2>&5
24654 echo "$as_me:24654: \$? = $ac_status" >&5
24655 (exit "$ac_status"); }; }; then
24656 cf_cv_cc_bool_type=1
24658 echo "$as_me: failed program was:" >&5
24659 cat "conftest.$ac_ext" >&5
24660 cf_cv_cc_bool_type=0
24662 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24666 if test "$cf_cv_cc_bool_type" = 1
24667 then echo "$as_me:24667: result: yes" >&5
24668 echo "${ECHO_T}yes" >&6
24669 else echo "$as_me:24669: result: no" >&5
24670 echo "${ECHO_T}no" >&6
24673 # Check for C++ compiler characteristics (and ensure that it's there!)
24674 if test -n "$CXX" ; then
24676 ac_cpp='$CXXCPP $CPPFLAGS'
24677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24678 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24680 ac_main_return="return"
24682 if test -n "$GXX" ; then
24685 LIBS="$LIBS $CXXLIBS"
24686 echo "$as_me:24686: checking if we already have C++ library" >&5
24687 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
24688 cat >"conftest.$ac_ext" <<_ACEOF
24689 #line 24689 "configure"
24690 #include "confdefs.h"
24692 #include <iostream>
24697 std::cout << "Hello World!" << std::endl;
24702 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24703 if { (eval echo "$as_me:24703: \"$ac_link\"") >&5
24704 (eval $ac_link) 2>&5
24706 echo "$as_me:24706: \$? = $ac_status" >&5
24707 (exit "$ac_status"); } &&
24708 { ac_try='test -s "conftest$ac_exeext"'
24709 { (eval echo "$as_me:24709: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24712 echo "$as_me:24712: \$? = $ac_status" >&5
24713 (exit "$ac_status"); }; }; then
24714 cf_have_libstdcpp=yes
24716 echo "$as_me: failed program was:" >&5
24717 cat "conftest.$ac_ext" >&5
24718 cf_have_libstdcpp=no
24720 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24721 echo "$as_me:24721: result: $cf_have_libstdcpp" >&5
24722 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24725 if test "$cf_have_libstdcpp" != yes
24727 case "$cf_cv_system_name" in
24729 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24730 cf_stdcpp_libname=stdcpp
24732 cf_stdcpp_libname=stdc++
24736 cf_stdcpp_libname=stdc++
24740 echo "$as_me:24740: checking for library $cf_stdcpp_libname" >&5
24741 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24742 if test "${cf_cv_libstdcpp+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 LIBS="$LIBS $CXXLIBS"
24749 cf_add_libs="$LIBS"
24752 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24753 # filter duplicates
24754 for cf_add_1lib in $cf_add_0lib; do
24755 for cf_add_2lib in $cf_add_libs; do
24756 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24761 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24763 LIBS="$cf_add_libs"
24765 cat >"conftest.$ac_ext" <<_ACEOF
24766 #line 24766 "configure"
24767 #include "confdefs.h"
24769 #include <iostream>
24774 std::cout << "Hello World!" << std::endl;
24779 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24780 if { (eval echo "$as_me:24780: \"$ac_link\"") >&5
24781 (eval $ac_link) 2>&5
24783 echo "$as_me:24783: \$? = $ac_status" >&5
24784 (exit "$ac_status"); } &&
24785 { ac_try='test -s "conftest$ac_exeext"'
24786 { (eval echo "$as_me:24786: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24789 echo "$as_me:24789: \$? = $ac_status" >&5
24790 (exit "$ac_status"); }; }; then
24791 cf_cv_libstdcpp=yes
24793 echo "$as_me: failed program was:" >&5
24794 cat "conftest.$ac_ext" >&5
24797 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24801 echo "$as_me:24801: result: $cf_cv_libstdcpp" >&5
24802 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
24803 test "$cf_cv_libstdcpp" = yes && {
24804 cf_add_libs="$CXXLIBS"
24807 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24808 # filter duplicates
24809 for cf_add_1lib in $cf_add_0lib; do
24810 for cf_add_2lib in $cf_add_libs; do
24811 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24816 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24818 CXXLIBS="$cf_add_libs"
24823 echo "$as_me:24823: checking whether $CXX understands -c and -o together" >&5
24824 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
24825 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24829 cat > conftest.$ac_ext <<CF_EOF
24832 ${cf_cv_main_return:-return}(0);
24835 # We do the test twice because some compilers refuse to overwrite an
24836 # existing .o file with -o, though they will create one.
24837 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
24838 if { (eval echo "$as_me:24838: \"$ac_try\"") >&5
24839 (eval $ac_try) 2>&5
24841 echo "$as_me:24841: \$? = $ac_status" >&5
24842 (exit "$ac_status"); } &&
24843 test -f conftest2.$ac_objext && { (eval echo "$as_me:24843: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24846 echo "$as_me:24846: \$? = $ac_status" >&5
24847 (exit "$ac_status"); };
24849 eval cf_cv_prog_CXX_c_o=yes
24851 eval cf_cv_prog_CXX_c_o=no
24856 if test "$cf_cv_prog_CXX_c_o" = yes; then
24857 echo "$as_me:24857: result: yes" >&5
24858 echo "${ECHO_T}yes" >&6
24860 echo "$as_me:24860: result: no" >&5
24861 echo "${ECHO_T}no" >&6
24864 case "$GXX_VERSION" in
24865 (1.*|2.[0-6]*|[1-9][0-9].*)
24870 cf_cxx_library=unknown
24871 case "$cf_cv_system_name" in
24879 if test "$GXX" = yes; then
24880 echo "$as_me:24880: checking for lib$cf_gpp_libname" >&5
24881 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
24884 cf_add_libs="$LIBS"
24887 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24888 # filter duplicates
24889 for cf_add_1lib in $cf_add_0lib; do
24890 for cf_add_2lib in $cf_add_libs; do
24891 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24896 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24898 LIBS="$cf_add_libs"
24900 cat >"conftest.$ac_ext" <<_ACEOF
24901 #line 24901 "configure"
24902 #include "confdefs.h"
24904 #include <$cf_gpp_libname/builtin.h>
24909 two_arg_error_handler_t foo2 = lib_error_handler
24914 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24915 if { (eval echo "$as_me:24915: \"$ac_link\"") >&5
24916 (eval $ac_link) 2>&5
24918 echo "$as_me:24918: \$? = $ac_status" >&5
24919 (exit "$ac_status"); } &&
24920 { ac_try='test -s "conftest$ac_exeext"'
24921 { (eval echo "$as_me:24921: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24924 echo "$as_me:24924: \$? = $ac_status" >&5
24925 (exit "$ac_status"); }; }; then
24928 cf_add_libs="$CXXLIBS"
24931 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24932 # filter duplicates
24933 for cf_add_1lib in $cf_add_0lib; do
24934 for cf_add_2lib in $cf_add_libs; do
24935 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24940 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24942 CXXLIBS="$cf_add_libs"
24944 if test "$cf_gpp_libname" = cpp ; then
24946 cat >>confdefs.h <<\EOF
24947 #define HAVE_GPP_BUILTIN_H 1
24952 cat >>confdefs.h <<\EOF
24953 #define HAVE_GXX_BUILTIN_H 1
24958 echo "$as_me: failed program was:" >&5
24959 cat "conftest.$ac_ext" >&5
24960 cat >"conftest.$ac_ext" <<_ACEOF
24961 #line 24961 "configure"
24962 #include "confdefs.h"
24964 #include <builtin.h>
24969 two_arg_error_handler_t foo2 = lib_error_handler
24974 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24975 if { (eval echo "$as_me:24975: \"$ac_link\"") >&5
24976 (eval $ac_link) 2>&5
24978 echo "$as_me:24978: \$? = $ac_status" >&5
24979 (exit "$ac_status"); } &&
24980 { ac_try='test -s "conftest$ac_exeext"'
24981 { (eval echo "$as_me:24981: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24984 echo "$as_me:24984: \$? = $ac_status" >&5
24985 (exit "$ac_status"); }; }; then
24988 cf_add_libs="$CXXLIBS"
24991 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24992 # filter duplicates
24993 for cf_add_1lib in $cf_add_0lib; do
24994 for cf_add_2lib in $cf_add_libs; do
24995 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25000 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25002 CXXLIBS="$cf_add_libs"
25004 cat >>confdefs.h <<\EOF
25005 #define HAVE_BUILTIN_H 1
25009 echo "$as_me: failed program was:" >&5
25010 cat "conftest.$ac_ext" >&5
25013 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25015 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25017 echo "$as_me:25017: result: $cf_cxx_library" >&5
25018 echo "${ECHO_T}$cf_cxx_library" >&6
25028 ac_cpp='$CXXCPP $CPPFLAGS'
25029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25030 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25032 ac_main_return="return"
25033 echo "$as_me:25033: checking how to run the C++ preprocessor" >&5
25034 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25035 if test -z "$CXXCPP"; then
25036 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25039 # Double quotes because CXXCPP needs to be expanded
25040 for CXXCPP in "$CXX -E" "/lib/cpp"
25042 ac_preproc_ok=false
25043 for ac_cxx_preproc_warn_flag in '' yes
25045 # Use a header file that comes with gcc, so configuring glibc
25046 # with a fresh cross-compiler works.
25047 # On the NeXT, cc -E runs the code through the compiler's parser,
25048 # not just through cpp. "Syntax error" is here to catch this case.
25049 cat >"conftest.$ac_ext" <<_ACEOF
25050 #line 25050 "configure"
25051 #include "confdefs.h"
25052 #include <assert.h>
25055 if { (eval echo "$as_me:25055: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25056 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25058 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:25061: \$? = $ac_status" >&5
25062 (exit "$ac_status"); } >/dev/null; then
25063 if test -s conftest.err; then
25064 ac_cpp_err=$ac_cxx_preproc_warn_flag
25071 if test -z "$ac_cpp_err"; then
25074 echo "$as_me: failed program was:" >&5
25075 cat "conftest.$ac_ext" >&5
25076 # Broken: fails on valid input.
25079 rm -f conftest.err "conftest.$ac_ext"
25081 # OK, works on sane cases. Now check whether non-existent headers
25082 # can be detected and how.
25083 cat >"conftest.$ac_ext" <<_ACEOF
25084 #line 25084 "configure"
25085 #include "confdefs.h"
25086 #include <ac_nonexistent.h>
25088 if { (eval echo "$as_me:25088: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25089 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25091 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25093 cat conftest.err >&5
25094 echo "$as_me:25094: \$? = $ac_status" >&5
25095 (exit "$ac_status"); } >/dev/null; then
25096 if test -s conftest.err; then
25097 ac_cpp_err=$ac_cxx_preproc_warn_flag
25104 if test -z "$ac_cpp_err"; then
25105 # Broken: success on invalid input.
25108 echo "$as_me: failed program was:" >&5
25109 cat "conftest.$ac_ext" >&5
25110 # Passes both tests.
25114 rm -f conftest.err "conftest.$ac_ext"
25117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25118 rm -f conftest.err "conftest.$ac_ext"
25119 if $ac_preproc_ok; then
25124 ac_cv_prog_CXXCPP=$CXXCPP
25127 CXXCPP=$ac_cv_prog_CXXCPP
25129 ac_cv_prog_CXXCPP=$CXXCPP
25131 echo "$as_me:25131: result: $CXXCPP" >&5
25132 echo "${ECHO_T}$CXXCPP" >&6
25133 ac_preproc_ok=false
25134 for ac_cxx_preproc_warn_flag in '' yes
25136 # Use a header file that comes with gcc, so configuring glibc
25137 # with a fresh cross-compiler works.
25138 # On the NeXT, cc -E runs the code through the compiler's parser,
25139 # not just through cpp. "Syntax error" is here to catch this case.
25140 cat >"conftest.$ac_ext" <<_ACEOF
25141 #line 25141 "configure"
25142 #include "confdefs.h"
25143 #include <assert.h>
25146 if { (eval echo "$as_me:25146: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25147 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25149 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25151 cat conftest.err >&5
25152 echo "$as_me:25152: \$? = $ac_status" >&5
25153 (exit "$ac_status"); } >/dev/null; then
25154 if test -s conftest.err; then
25155 ac_cpp_err=$ac_cxx_preproc_warn_flag
25162 if test -z "$ac_cpp_err"; then
25165 echo "$as_me: failed program was:" >&5
25166 cat "conftest.$ac_ext" >&5
25167 # Broken: fails on valid input.
25170 rm -f conftest.err "conftest.$ac_ext"
25172 # OK, works on sane cases. Now check whether non-existent headers
25173 # can be detected and how.
25174 cat >"conftest.$ac_ext" <<_ACEOF
25175 #line 25175 "configure"
25176 #include "confdefs.h"
25177 #include <ac_nonexistent.h>
25179 if { (eval echo "$as_me:25179: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25180 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25182 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25184 cat conftest.err >&5
25185 echo "$as_me:25185: \$? = $ac_status" >&5
25186 (exit "$ac_status"); } >/dev/null; then
25187 if test -s conftest.err; then
25188 ac_cpp_err=$ac_cxx_preproc_warn_flag
25195 if test -z "$ac_cpp_err"; then
25196 # Broken: success on invalid input.
25199 echo "$as_me: failed program was:" >&5
25200 cat "conftest.$ac_ext" >&5
25201 # Passes both tests.
25205 rm -f conftest.err "conftest.$ac_ext"
25208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25209 rm -f conftest.err "conftest.$ac_ext"
25210 if $ac_preproc_ok; then
25213 { { echo "$as_me:25213: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25214 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25215 { (exit 1); exit 1; }; }
25219 ac_cpp='$CXXCPP $CPPFLAGS'
25220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25221 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25223 ac_main_return="return"
25225 for ac_header in typeinfo
25227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25228 echo "$as_me:25228: checking for $ac_header" >&5
25229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 cat >"conftest.$ac_ext" <<_ACEOF
25234 #line 25234 "configure"
25235 #include "confdefs.h"
25236 #include <$ac_header>
25238 if { (eval echo "$as_me:25238: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25239 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25241 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25243 cat conftest.err >&5
25244 echo "$as_me:25244: \$? = $ac_status" >&5
25245 (exit "$ac_status"); } >/dev/null; then
25246 if test -s conftest.err; then
25247 ac_cpp_err=$ac_cxx_preproc_warn_flag
25254 if test -z "$ac_cpp_err"; then
25255 eval "$as_ac_Header=yes"
25257 echo "$as_me: failed program was:" >&5
25258 cat "conftest.$ac_ext" >&5
25259 eval "$as_ac_Header=no"
25261 rm -f conftest.err "conftest.$ac_ext"
25263 echo "$as_me:25263: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25264 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25265 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25266 cat >>confdefs.h <<EOF
25267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25273 for ac_header in iostream
25275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25276 echo "$as_me:25276: checking for $ac_header" >&5
25277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25279 echo $ECHO_N "(cached) $ECHO_C" >&6
25281 cat >"conftest.$ac_ext" <<_ACEOF
25282 #line 25282 "configure"
25283 #include "confdefs.h"
25284 #include <$ac_header>
25286 if { (eval echo "$as_me:25286: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25287 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25289 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25291 cat conftest.err >&5
25292 echo "$as_me:25292: \$? = $ac_status" >&5
25293 (exit "$ac_status"); } >/dev/null; then
25294 if test -s conftest.err; then
25295 ac_cpp_err=$ac_cxx_preproc_warn_flag
25302 if test -z "$ac_cpp_err"; then
25303 eval "$as_ac_Header=yes"
25305 echo "$as_me: failed program was:" >&5
25306 cat "conftest.$ac_ext" >&5
25307 eval "$as_ac_Header=no"
25309 rm -f conftest.err "conftest.$ac_ext"
25311 echo "$as_me:25311: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25312 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25313 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25314 cat >>confdefs.h <<EOF
25315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25321 if test x"$ac_cv_header_iostream" = xyes ; then
25322 echo "$as_me:25322: checking if iostream uses std-namespace" >&5
25323 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25324 cat >"conftest.$ac_ext" <<_ACEOF
25325 #line 25325 "configure"
25326 #include "confdefs.h"
25328 #include <iostream>
25335 cerr << "testing" << endl;
25341 rm -f "conftest.$ac_objext"
25342 if { (eval echo "$as_me:25342: \"$ac_compile\"") >&5
25343 (eval $ac_compile) 2>&5
25345 echo "$as_me:25345: \$? = $ac_status" >&5
25346 (exit "$ac_status"); } &&
25347 { ac_try='test -s "conftest.$ac_objext"'
25348 { (eval echo "$as_me:25348: \"$ac_try\"") >&5
25349 (eval $ac_try) 2>&5
25351 echo "$as_me:25351: \$? = $ac_status" >&5
25352 (exit "$ac_status"); }; }; then
25353 cf_iostream_namespace=yes
25355 echo "$as_me: failed program was:" >&5
25356 cat "conftest.$ac_ext" >&5
25357 cf_iostream_namespace=no
25359 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25360 echo "$as_me:25360: result: $cf_iostream_namespace" >&5
25361 echo "${ECHO_T}$cf_iostream_namespace" >&6
25362 if test "$cf_iostream_namespace" = yes ; then
25364 cat >>confdefs.h <<\EOF
25365 #define IOSTREAM_NAMESPACE 1
25371 echo "$as_me:25371: checking if we should include stdbool.h" >&5
25372 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25374 if test "${cf_cv_header_stdbool_h+set}" = set; then
25375 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 cat >"conftest.$ac_ext" <<_ACEOF
25379 #line 25379 "configure"
25380 #include "confdefs.h"
25390 rm -f "conftest.$ac_objext"
25391 if { (eval echo "$as_me:25391: \"$ac_compile\"") >&5
25392 (eval $ac_compile) 2>&5
25394 echo "$as_me:25394: \$? = $ac_status" >&5
25395 (exit "$ac_status"); } &&
25396 { ac_try='test -s "conftest.$ac_objext"'
25397 { (eval echo "$as_me:25397: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25400 echo "$as_me:25400: \$? = $ac_status" >&5
25401 (exit "$ac_status"); }; }; then
25402 cf_cv_header_stdbool_h=0
25404 echo "$as_me: failed program was:" >&5
25405 cat "conftest.$ac_ext" >&5
25406 cat >"conftest.$ac_ext" <<_ACEOF
25407 #line 25407 "configure"
25408 #include "confdefs.h"
25411 #include <stdbool.h>
25422 rm -f "conftest.$ac_objext"
25423 if { (eval echo "$as_me:25423: \"$ac_compile\"") >&5
25424 (eval $ac_compile) 2>&5
25426 echo "$as_me:25426: \$? = $ac_status" >&5
25427 (exit "$ac_status"); } &&
25428 { ac_try='test -s "conftest.$ac_objext"'
25429 { (eval echo "$as_me:25429: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25432 echo "$as_me:25432: \$? = $ac_status" >&5
25433 (exit "$ac_status"); }; }; then
25434 cf_cv_header_stdbool_h=1
25436 echo "$as_me: failed program was:" >&5
25437 cat "conftest.$ac_ext" >&5
25438 cf_cv_header_stdbool_h=0
25440 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25442 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25445 if test "$cf_cv_header_stdbool_h" = 1
25446 then echo "$as_me:25446: result: yes" >&5
25447 echo "${ECHO_T}yes" >&6
25448 else echo "$as_me:25448: result: no" >&5
25449 echo "${ECHO_T}no" >&6
25452 echo "$as_me:25452: checking for builtin bool type" >&5
25453 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25455 if test "${cf_cv_builtin_bool+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25459 cat >"conftest.$ac_ext" <<_ACEOF
25460 #line 25460 "configure"
25461 #include "confdefs.h"
25464 #include <sys/types.h>
25474 rm -f "conftest.$ac_objext"
25475 if { (eval echo "$as_me:25475: \"$ac_compile\"") >&5
25476 (eval $ac_compile) 2>&5
25478 echo "$as_me:25478: \$? = $ac_status" >&5
25479 (exit "$ac_status"); } &&
25480 { ac_try='test -s "conftest.$ac_objext"'
25481 { (eval echo "$as_me:25481: \"$ac_try\"") >&5
25482 (eval $ac_try) 2>&5
25484 echo "$as_me:25484: \$? = $ac_status" >&5
25485 (exit "$ac_status"); }; }; then
25486 cf_cv_builtin_bool=1
25488 echo "$as_me: failed program was:" >&5
25489 cat "conftest.$ac_ext" >&5
25490 cf_cv_builtin_bool=0
25492 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25496 if test "$cf_cv_builtin_bool" = 1
25497 then echo "$as_me:25497: result: yes" >&5
25498 echo "${ECHO_T}yes" >&6
25499 else echo "$as_me:25499: result: no" >&5
25500 echo "${ECHO_T}no" >&6
25503 echo "$as_me:25503: checking for bool" >&5
25504 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25505 if test "${ac_cv_type_bool+set}" = set; then
25506 echo $ECHO_N "(cached) $ECHO_C" >&6
25508 cat >"conftest.$ac_ext" <<_ACEOF
25509 #line 25509 "configure"
25510 #include "confdefs.h"
25512 #include <stdlib.h>
25515 #if defined(__cplusplus)
25517 #ifdef HAVE_GXX_BUILTIN_H
25518 #include <g++/builtin.h>
25519 #elif HAVE_GPP_BUILTIN_H
25520 #include <gpp/builtin.h>
25521 #elif HAVE_BUILTIN_H
25522 #include <builtin.h>
25527 #if $cf_cv_header_stdbool_h
25528 #include <stdbool.h>
25544 rm -f "conftest.$ac_objext"
25545 if { (eval echo "$as_me:25545: \"$ac_compile\"") >&5
25546 (eval $ac_compile) 2>&5
25548 echo "$as_me:25548: \$? = $ac_status" >&5
25549 (exit "$ac_status"); } &&
25550 { ac_try='test -s "conftest.$ac_objext"'
25551 { (eval echo "$as_me:25551: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25554 echo "$as_me:25554: \$? = $ac_status" >&5
25555 (exit "$ac_status"); }; }; then
25556 ac_cv_type_bool=yes
25558 echo "$as_me: failed program was:" >&5
25559 cat "conftest.$ac_ext" >&5
25562 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25564 echo "$as_me:25564: result: $ac_cv_type_bool" >&5
25565 echo "${ECHO_T}$ac_cv_type_bool" >&6
25567 echo "$as_me:25567: checking size of bool" >&5
25568 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25569 if test "${ac_cv_sizeof_bool+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25572 if test "$ac_cv_type_bool" = yes; then
25573 if test "$cross_compiling" = yes; then
25574 # Depending upon the size, compute the lo and hi bounds.
25575 cat >"conftest.$ac_ext" <<_ACEOF
25576 #line 25576 "configure"
25577 #include "confdefs.h"
25579 #include <stdlib.h>
25582 #if defined(__cplusplus)
25584 #ifdef HAVE_GXX_BUILTIN_H
25585 #include <g++/builtin.h>
25586 #elif HAVE_GPP_BUILTIN_H
25587 #include <gpp/builtin.h>
25588 #elif HAVE_BUILTIN_H
25589 #include <builtin.h>
25594 #if $cf_cv_header_stdbool_h
25595 #include <stdbool.h>
25603 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25608 rm -f "conftest.$ac_objext"
25609 if { (eval echo "$as_me:25609: \"$ac_compile\"") >&5
25610 (eval $ac_compile) 2>&5
25612 echo "$as_me:25612: \$? = $ac_status" >&5
25613 (exit "$ac_status"); } &&
25614 { ac_try='test -s "conftest.$ac_objext"'
25615 { (eval echo "$as_me:25615: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:25618: \$? = $ac_status" >&5
25619 (exit "$ac_status"); }; }; then
25622 cat >"conftest.$ac_ext" <<_ACEOF
25623 #line 25623 "configure"
25624 #include "confdefs.h"
25626 #include <stdlib.h>
25629 #if defined(__cplusplus)
25631 #ifdef HAVE_GXX_BUILTIN_H
25632 #include <g++/builtin.h>
25633 #elif HAVE_GPP_BUILTIN_H
25634 #include <gpp/builtin.h>
25635 #elif HAVE_BUILTIN_H
25636 #include <builtin.h>
25641 #if $cf_cv_header_stdbool_h
25642 #include <stdbool.h>
25650 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25655 rm -f "conftest.$ac_objext"
25656 if { (eval echo "$as_me:25656: \"$ac_compile\"") >&5
25657 (eval $ac_compile) 2>&5
25659 echo "$as_me:25659: \$? = $ac_status" >&5
25660 (exit "$ac_status"); } &&
25661 { ac_try='test -s "conftest.$ac_objext"'
25662 { (eval echo "$as_me:25662: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25665 echo "$as_me:25665: \$? = $ac_status" >&5
25666 (exit "$ac_status"); }; }; then
25667 ac_hi=$ac_mid; break
25669 echo "$as_me: failed program was:" >&5
25670 cat "conftest.$ac_ext" >&5
25671 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25673 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25676 echo "$as_me: failed program was:" >&5
25677 cat "conftest.$ac_ext" >&5
25680 cat >"conftest.$ac_ext" <<_ACEOF
25681 #line 25681 "configure"
25682 #include "confdefs.h"
25684 #include <stdlib.h>
25687 #if defined(__cplusplus)
25689 #ifdef HAVE_GXX_BUILTIN_H
25690 #include <g++/builtin.h>
25691 #elif HAVE_GPP_BUILTIN_H
25692 #include <gpp/builtin.h>
25693 #elif HAVE_BUILTIN_H
25694 #include <builtin.h>
25699 #if $cf_cv_header_stdbool_h
25700 #include <stdbool.h>
25708 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
25713 rm -f "conftest.$ac_objext"
25714 if { (eval echo "$as_me:25714: \"$ac_compile\"") >&5
25715 (eval $ac_compile) 2>&5
25717 echo "$as_me:25717: \$? = $ac_status" >&5
25718 (exit "$ac_status"); } &&
25719 { ac_try='test -s "conftest.$ac_objext"'
25720 { (eval echo "$as_me:25720: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:25723: \$? = $ac_status" >&5
25724 (exit "$ac_status"); }; }; then
25725 ac_lo=$ac_mid; break
25727 echo "$as_me: failed program was:" >&5
25728 cat "conftest.$ac_ext" >&5
25729 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
25731 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25734 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25735 # Binary search between lo and hi bounds.
25736 while test "x$ac_lo" != "x$ac_hi"; do
25737 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
25738 cat >"conftest.$ac_ext" <<_ACEOF
25739 #line 25739 "configure"
25740 #include "confdefs.h"
25742 #include <stdlib.h>
25745 #if defined(__cplusplus)
25747 #ifdef HAVE_GXX_BUILTIN_H
25748 #include <g++/builtin.h>
25749 #elif HAVE_GPP_BUILTIN_H
25750 #include <gpp/builtin.h>
25751 #elif HAVE_BUILTIN_H
25752 #include <builtin.h>
25757 #if $cf_cv_header_stdbool_h
25758 #include <stdbool.h>
25766 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25771 rm -f "conftest.$ac_objext"
25772 if { (eval echo "$as_me:25772: \"$ac_compile\"") >&5
25773 (eval $ac_compile) 2>&5
25775 echo "$as_me:25775: \$? = $ac_status" >&5
25776 (exit "$ac_status"); } &&
25777 { ac_try='test -s "conftest.$ac_objext"'
25778 { (eval echo "$as_me:25778: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:25781: \$? = $ac_status" >&5
25782 (exit "$ac_status"); }; }; then
25785 echo "$as_me: failed program was:" >&5
25786 cat "conftest.$ac_ext" >&5
25787 ac_lo=`expr "$ac_mid" + 1`
25789 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25791 ac_cv_sizeof_bool=$ac_lo
25793 if test "$cross_compiling" = yes; then
25794 { { echo "$as_me:25794: error: cannot run test program while cross compiling" >&5
25795 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25796 { (exit 1); exit 1; }; }
25798 cat >"conftest.$ac_ext" <<_ACEOF
25799 #line 25799 "configure"
25800 #include "confdefs.h"
25802 #include <stdlib.h>
25805 #if defined(__cplusplus)
25807 #ifdef HAVE_GXX_BUILTIN_H
25808 #include <g++/builtin.h>
25809 #elif HAVE_GPP_BUILTIN_H
25810 #include <gpp/builtin.h>
25811 #elif HAVE_BUILTIN_H
25812 #include <builtin.h>
25817 #if $cf_cv_header_stdbool_h
25818 #include <stdbool.h>
25826 FILE *f = fopen ("conftest.val", "w");
25828 $ac_main_return (1);
25829 fprintf (f, "%ld", (long)(sizeof (bool)));
25835 rm -f "conftest$ac_exeext"
25836 if { (eval echo "$as_me:25836: \"$ac_link\"") >&5
25837 (eval $ac_link) 2>&5
25839 echo "$as_me:25839: \$? = $ac_status" >&5
25840 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25841 { (eval echo "$as_me:25841: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25844 echo "$as_me:25844: \$? = $ac_status" >&5
25845 (exit "$ac_status"); }; }; then
25846 ac_cv_sizeof_bool=`cat conftest.val`
25848 echo "$as_me: program exited with status $ac_status" >&5
25849 echo "$as_me: failed program was:" >&5
25850 cat "conftest.$ac_ext" >&5
25852 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25857 ac_cv_sizeof_bool=0
25860 echo "$as_me:25860: result: $ac_cv_sizeof_bool" >&5
25861 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
25862 cat >>confdefs.h <<EOF
25863 #define SIZEOF_BOOL $ac_cv_sizeof_bool
25866 echo "$as_me:25866: checking for type of bool" >&5
25867 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
25868 if test "${cf_cv_type_of_bool+set}" = set; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25873 if test "$cross_compiling" = yes; then
25875 case x$ac_cv_sizeof_bool in
25876 (x1) cf_cv_type_of_bool="unsigned char";;
25877 (x2) cf_cv_type_of_bool="unsigned short";;
25878 (x4) cf_cv_type_of_bool="unsigned int";;
25879 (x8) cf_cv_type_of_bool="unsigned long";;
25880 (*) cf_cv_type_of_bool=unknown;;
25884 cat >"conftest.$ac_ext" <<_ACEOF
25885 #line 25885 "configure"
25886 #include "confdefs.h"
25888 #include <stdlib.h>
25891 #if defined(__cplusplus)
25893 #ifdef HAVE_GXX_BUILTIN_H
25894 #include <g++/builtin.h>
25895 #elif HAVE_GPP_BUILTIN_H
25896 #include <gpp/builtin.h>
25897 #elif HAVE_BUILTIN_H
25898 #include <builtin.h>
25903 #if $cf_cv_header_stdbool_h
25904 #include <stdbool.h>
25911 FILE *fp = fopen("cf_test.out", "w");
25914 if ((bool)(-x) >= 0)
25915 fputs("unsigned ", fp);
25916 if (sizeof(x) == sizeof(int)) fputs("int", fp);
25917 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
25918 else if (sizeof(x) == sizeof(short))fputs("short",fp);
25919 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
25922 ${cf_cv_main_return:-return}(0);
25926 rm -f "conftest$ac_exeext"
25927 if { (eval echo "$as_me:25927: \"$ac_link\"") >&5
25928 (eval $ac_link) 2>&5
25930 echo "$as_me:25930: \$? = $ac_status" >&5
25931 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25932 { (eval echo "$as_me:25932: \"$ac_try\"") >&5
25933 (eval $ac_try) 2>&5
25935 echo "$as_me:25935: \$? = $ac_status" >&5
25936 (exit "$ac_status"); }; }; then
25937 cf_cv_type_of_bool=`cat cf_test.out`
25938 if test -z "$cf_cv_type_of_bool"; then
25939 cf_cv_type_of_bool=unknown
25942 echo "$as_me: program exited with status $ac_status" >&5
25943 echo "$as_me: failed program was:" >&5
25944 cat "conftest.$ac_ext" >&5
25945 cf_cv_type_of_bool=unknown
25947 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25952 echo "$as_me:25952: result: $cf_cv_type_of_bool" >&5
25953 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25955 if test "$cf_cv_type_of_bool" = unknown ; then
25956 case .$NCURSES_BOOL in
25957 (.auto|.) NCURSES_BOOL=unsigned;;
25959 { echo "$as_me:25959: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
25960 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
25961 cf_cv_type_of_bool=$NCURSES_BOOL
25964 echo "$as_me:25964: checking for special defines needed for etip.h" >&5
25965 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
25966 cf_save_CXXFLAGS="$CXXFLAGS"
25969 # etip.h includes ncurses.h which includes ncurses_dll.h
25970 # But ncurses_dll.h is generated - fix here.
25971 test -d include || mkdir include
25972 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
25974 for cf_math in "" MATH_H
25976 for cf_excp in "" MATH_EXCEPTION
25978 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
25979 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
25980 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
25981 cat >"conftest.$ac_ext" <<_ACEOF
25982 #line 25982 "configure"
25983 #include "confdefs.h"
25985 #include <etip.h.in>
25995 rm -f "conftest.$ac_objext"
25996 if { (eval echo "$as_me:25996: \"$ac_compile\"") >&5
25997 (eval $ac_compile) 2>&5
25999 echo "$as_me:25999: \$? = $ac_status" >&5
26000 (exit "$ac_status"); } &&
26001 { ac_try='test -s "conftest.$ac_objext"'
26002 { (eval echo "$as_me:26002: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26005 echo "$as_me:26005: \$? = $ac_status" >&5
26006 (exit "$ac_status"); }; }; then
26008 test -n "$cf_math" && cat >>confdefs.h <<EOF
26009 #define ETIP_NEEDS_${cf_math} 1
26012 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26013 #define ETIP_NEEDS_${cf_excp} 1
26016 cf_result="$cf_math $cf_excp"
26020 echo "$as_me: failed program was:" >&5
26021 cat "conftest.$ac_ext" >&5
26023 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26026 echo "$as_me:26026: result: $cf_result" >&5
26027 echo "${ECHO_T}$cf_result" >&6
26028 CXXFLAGS="$cf_save_CXXFLAGS"
26030 if test -n "$CXX"; then
26031 echo "$as_me:26031: checking if $CXX accepts parameter initialization" >&5
26032 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26033 if test "${cf_cv_cpp_param_init+set}" = set; then
26034 echo $ECHO_N "(cached) $ECHO_C" >&6
26038 ac_cpp='$CXXCPP $CPPFLAGS'
26039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26040 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26042 ac_main_return="return"
26044 if test "$cross_compiling" = yes; then
26045 cf_cv_cpp_param_init=unknown
26047 cat >"conftest.$ac_ext" <<_ACEOF
26048 #line 26048 "configure"
26049 #include "confdefs.h"
26059 TEST::TEST(int x = 1) // some compilers do not like second initializer
26066 rm -f "conftest$ac_exeext"
26067 if { (eval echo "$as_me:26067: \"$ac_link\"") >&5
26068 (eval $ac_link) 2>&5
26070 echo "$as_me:26070: \$? = $ac_status" >&5
26071 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26072 { (eval echo "$as_me:26072: \"$ac_try\"") >&5
26073 (eval $ac_try) 2>&5
26075 echo "$as_me:26075: \$? = $ac_status" >&5
26076 (exit "$ac_status"); }; }; then
26077 cf_cv_cpp_param_init=yes
26079 echo "$as_me: program exited with status $ac_status" >&5
26080 echo "$as_me: failed program was:" >&5
26081 cat "conftest.$ac_ext" >&5
26082 cf_cv_cpp_param_init=no
26084 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26087 ac_cpp='$CXXCPP $CPPFLAGS'
26088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26089 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26091 ac_main_return="return"
26094 echo "$as_me:26094: result: $cf_cv_cpp_param_init" >&5
26095 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26097 test "$cf_cv_cpp_param_init" = yes &&
26098 cat >>confdefs.h <<\EOF
26099 #define CPP_HAS_PARAM_INIT 1
26102 if test -n "$CXX"; then
26104 echo "$as_me:26104: checking if $CXX accepts static_cast" >&5
26105 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26106 if test "${cf_cv_cpp_static_cast+set}" = set; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 ac_cpp='$CXXCPP $CPPFLAGS'
26112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26113 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26115 ac_main_return="return"
26117 cat >"conftest.$ac_ext" <<_ACEOF
26118 #line 26118 "configure"
26119 #include "confdefs.h"
26124 NCursesPanel(int nlines,
26134 template<class T> class NCursesUserPanel : public NCursesPanel
26137 NCursesUserPanel (int nlines,
26141 const T* p_UserData = static_cast<T*>(0))
26142 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26145 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26149 virtual ~NCursesUserPanel() {};
26156 const char* p_UserData = static_cast<char*>(0)
26161 rm -f "conftest.$ac_objext"
26162 if { (eval echo "$as_me:26162: \"$ac_compile\"") >&5
26163 (eval $ac_compile) 2>&5
26165 echo "$as_me:26165: \$? = $ac_status" >&5
26166 (exit "$ac_status"); } &&
26167 { ac_try='test -s "conftest.$ac_objext"'
26168 { (eval echo "$as_me:26168: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26171 echo "$as_me:26171: \$? = $ac_status" >&5
26172 (exit "$ac_status"); }; }; then
26173 cf_cv_cpp_static_cast=yes
26175 echo "$as_me: failed program was:" >&5
26176 cat "conftest.$ac_ext" >&5
26177 cf_cv_cpp_static_cast=no
26179 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26182 ac_cpp='$CXXCPP $CPPFLAGS'
26183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26184 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26186 ac_main_return="return"
26189 echo "$as_me:26189: result: $cf_cv_cpp_static_cast" >&5
26190 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26194 test "$cf_cv_cpp_static_cast" = yes &&
26195 cat >>confdefs.h <<\EOF
26196 #define CPP_HAS_STATIC_CAST 1
26200 CXX_ARFLAGS='$(ARFLAGS)'
26201 case "$cf_cv_system_name" in
26203 if test "$GXX" != yes ; then
26205 CXX_ARFLAGS='-ar -o'
26209 CXXLDFLAGS="-u main"
26212 if test "$GXX" != yes ; then
26214 CXX_ARFLAGS='-xar -o'
26221 cf_cv_builtin_bool=1
26223 # Just because we are not configuring against C++ right now does not
26224 # mean that a user will not want to use C++. Some distributors disable
26225 # the C++ portion of this configuration as a shortcut (or just to avoid
26226 # compiling the demo in the c++ directory). So we need a reasonable
26227 # default for the 'bool' type.
26229 # Caveat: since the storage of the bool type is not standardized, it
26232 if test "$NCURSES_BOOL" != auto ; then
26233 cf_cv_type_of_bool=$NCURSES_BOOL
26234 cf_cv_header_stdbool_h=0
26236 if test "$cf_cv_header_stdbool_h" = 1 ; then
26238 echo "$as_me:26238: checking for bool" >&5
26239 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26240 if test "${ac_cv_type_bool+set}" = set; then
26241 echo $ECHO_N "(cached) $ECHO_C" >&6
26243 cat >"conftest.$ac_ext" <<_ACEOF
26244 #line 26244 "configure"
26245 #include "confdefs.h"
26247 #include <stdlib.h>
26250 #if defined(__cplusplus)
26252 #ifdef HAVE_GXX_BUILTIN_H
26253 #include <g++/builtin.h>
26254 #elif HAVE_GPP_BUILTIN_H
26255 #include <gpp/builtin.h>
26256 #elif HAVE_BUILTIN_H
26257 #include <builtin.h>
26262 #if $cf_cv_header_stdbool_h
26263 #include <stdbool.h>
26279 rm -f "conftest.$ac_objext"
26280 if { (eval echo "$as_me:26280: \"$ac_compile\"") >&5
26281 (eval $ac_compile) 2>&5
26283 echo "$as_me:26283: \$? = $ac_status" >&5
26284 (exit "$ac_status"); } &&
26285 { ac_try='test -s "conftest.$ac_objext"'
26286 { (eval echo "$as_me:26286: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26289 echo "$as_me:26289: \$? = $ac_status" >&5
26290 (exit "$ac_status"); }; }; then
26291 ac_cv_type_bool=yes
26293 echo "$as_me: failed program was:" >&5
26294 cat "conftest.$ac_ext" >&5
26297 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26299 echo "$as_me:26299: result: $ac_cv_type_bool" >&5
26300 echo "${ECHO_T}$ac_cv_type_bool" >&6
26302 echo "$as_me:26302: checking size of bool" >&5
26303 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26304 if test "${ac_cv_sizeof_bool+set}" = set; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26307 if test "$ac_cv_type_bool" = yes; then
26308 if test "$cross_compiling" = yes; then
26309 # Depending upon the size, compute the lo and hi bounds.
26310 cat >"conftest.$ac_ext" <<_ACEOF
26311 #line 26311 "configure"
26312 #include "confdefs.h"
26314 #include <stdlib.h>
26317 #if defined(__cplusplus)
26319 #ifdef HAVE_GXX_BUILTIN_H
26320 #include <g++/builtin.h>
26321 #elif HAVE_GPP_BUILTIN_H
26322 #include <gpp/builtin.h>
26323 #elif HAVE_BUILTIN_H
26324 #include <builtin.h>
26329 #if $cf_cv_header_stdbool_h
26330 #include <stdbool.h>
26338 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26343 rm -f "conftest.$ac_objext"
26344 if { (eval echo "$as_me:26344: \"$ac_compile\"") >&5
26345 (eval $ac_compile) 2>&5
26347 echo "$as_me:26347: \$? = $ac_status" >&5
26348 (exit "$ac_status"); } &&
26349 { ac_try='test -s "conftest.$ac_objext"'
26350 { (eval echo "$as_me:26350: \"$ac_try\"") >&5
26351 (eval $ac_try) 2>&5
26353 echo "$as_me:26353: \$? = $ac_status" >&5
26354 (exit "$ac_status"); }; }; then
26357 cat >"conftest.$ac_ext" <<_ACEOF
26358 #line 26358 "configure"
26359 #include "confdefs.h"
26361 #include <stdlib.h>
26364 #if defined(__cplusplus)
26366 #ifdef HAVE_GXX_BUILTIN_H
26367 #include <g++/builtin.h>
26368 #elif HAVE_GPP_BUILTIN_H
26369 #include <gpp/builtin.h>
26370 #elif HAVE_BUILTIN_H
26371 #include <builtin.h>
26376 #if $cf_cv_header_stdbool_h
26377 #include <stdbool.h>
26385 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26390 rm -f "conftest.$ac_objext"
26391 if { (eval echo "$as_me:26391: \"$ac_compile\"") >&5
26392 (eval $ac_compile) 2>&5
26394 echo "$as_me:26394: \$? = $ac_status" >&5
26395 (exit "$ac_status"); } &&
26396 { ac_try='test -s "conftest.$ac_objext"'
26397 { (eval echo "$as_me:26397: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26400 echo "$as_me:26400: \$? = $ac_status" >&5
26401 (exit "$ac_status"); }; }; then
26402 ac_hi=$ac_mid; break
26404 echo "$as_me: failed program was:" >&5
26405 cat "conftest.$ac_ext" >&5
26406 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26408 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26411 echo "$as_me: failed program was:" >&5
26412 cat "conftest.$ac_ext" >&5
26415 cat >"conftest.$ac_ext" <<_ACEOF
26416 #line 26416 "configure"
26417 #include "confdefs.h"
26419 #include <stdlib.h>
26422 #if defined(__cplusplus)
26424 #ifdef HAVE_GXX_BUILTIN_H
26425 #include <g++/builtin.h>
26426 #elif HAVE_GPP_BUILTIN_H
26427 #include <gpp/builtin.h>
26428 #elif HAVE_BUILTIN_H
26429 #include <builtin.h>
26434 #if $cf_cv_header_stdbool_h
26435 #include <stdbool.h>
26443 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26448 rm -f "conftest.$ac_objext"
26449 if { (eval echo "$as_me:26449: \"$ac_compile\"") >&5
26450 (eval $ac_compile) 2>&5
26452 echo "$as_me:26452: \$? = $ac_status" >&5
26453 (exit "$ac_status"); } &&
26454 { ac_try='test -s "conftest.$ac_objext"'
26455 { (eval echo "$as_me:26455: \"$ac_try\"") >&5
26456 (eval $ac_try) 2>&5
26458 echo "$as_me:26458: \$? = $ac_status" >&5
26459 (exit "$ac_status"); }; }; then
26460 ac_lo=$ac_mid; break
26462 echo "$as_me: failed program was:" >&5
26463 cat "conftest.$ac_ext" >&5
26464 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26466 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26469 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26470 # Binary search between lo and hi bounds.
26471 while test "x$ac_lo" != "x$ac_hi"; do
26472 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26473 cat >"conftest.$ac_ext" <<_ACEOF
26474 #line 26474 "configure"
26475 #include "confdefs.h"
26477 #include <stdlib.h>
26480 #if defined(__cplusplus)
26482 #ifdef HAVE_GXX_BUILTIN_H
26483 #include <g++/builtin.h>
26484 #elif HAVE_GPP_BUILTIN_H
26485 #include <gpp/builtin.h>
26486 #elif HAVE_BUILTIN_H
26487 #include <builtin.h>
26492 #if $cf_cv_header_stdbool_h
26493 #include <stdbool.h>
26501 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26506 rm -f "conftest.$ac_objext"
26507 if { (eval echo "$as_me:26507: \"$ac_compile\"") >&5
26508 (eval $ac_compile) 2>&5
26510 echo "$as_me:26510: \$? = $ac_status" >&5
26511 (exit "$ac_status"); } &&
26512 { ac_try='test -s "conftest.$ac_objext"'
26513 { (eval echo "$as_me:26513: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26516 echo "$as_me:26516: \$? = $ac_status" >&5
26517 (exit "$ac_status"); }; }; then
26520 echo "$as_me: failed program was:" >&5
26521 cat "conftest.$ac_ext" >&5
26522 ac_lo=`expr "$ac_mid" + 1`
26524 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26526 ac_cv_sizeof_bool=$ac_lo
26528 if test "$cross_compiling" = yes; then
26529 { { echo "$as_me:26529: error: cannot run test program while cross compiling" >&5
26530 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26531 { (exit 1); exit 1; }; }
26533 cat >"conftest.$ac_ext" <<_ACEOF
26534 #line 26534 "configure"
26535 #include "confdefs.h"
26537 #include <stdlib.h>
26540 #if defined(__cplusplus)
26542 #ifdef HAVE_GXX_BUILTIN_H
26543 #include <g++/builtin.h>
26544 #elif HAVE_GPP_BUILTIN_H
26545 #include <gpp/builtin.h>
26546 #elif HAVE_BUILTIN_H
26547 #include <builtin.h>
26552 #if $cf_cv_header_stdbool_h
26553 #include <stdbool.h>
26561 FILE *f = fopen ("conftest.val", "w");
26563 $ac_main_return (1);
26564 fprintf (f, "%ld", (long)(sizeof (bool)));
26570 rm -f "conftest$ac_exeext"
26571 if { (eval echo "$as_me:26571: \"$ac_link\"") >&5
26572 (eval $ac_link) 2>&5
26574 echo "$as_me:26574: \$? = $ac_status" >&5
26575 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26576 { (eval echo "$as_me:26576: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26579 echo "$as_me:26579: \$? = $ac_status" >&5
26580 (exit "$ac_status"); }; }; then
26581 ac_cv_sizeof_bool=`cat conftest.val`
26583 echo "$as_me: program exited with status $ac_status" >&5
26584 echo "$as_me: failed program was:" >&5
26585 cat "conftest.$ac_ext" >&5
26587 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26592 ac_cv_sizeof_bool=0
26595 echo "$as_me:26595: result: $ac_cv_sizeof_bool" >&5
26596 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26597 cat >>confdefs.h <<EOF
26598 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26601 echo "$as_me:26601: checking for type of bool" >&5
26602 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26603 if test "${cf_cv_type_of_bool+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26608 if test "$cross_compiling" = yes; then
26610 case x$ac_cv_sizeof_bool in
26611 (x1) cf_cv_type_of_bool="unsigned char";;
26612 (x2) cf_cv_type_of_bool="unsigned short";;
26613 (x4) cf_cv_type_of_bool="unsigned int";;
26614 (x8) cf_cv_type_of_bool="unsigned long";;
26615 (*) cf_cv_type_of_bool=unknown;;
26619 cat >"conftest.$ac_ext" <<_ACEOF
26620 #line 26620 "configure"
26621 #include "confdefs.h"
26623 #include <stdlib.h>
26626 #if defined(__cplusplus)
26628 #ifdef HAVE_GXX_BUILTIN_H
26629 #include <g++/builtin.h>
26630 #elif HAVE_GPP_BUILTIN_H
26631 #include <gpp/builtin.h>
26632 #elif HAVE_BUILTIN_H
26633 #include <builtin.h>
26638 #if $cf_cv_header_stdbool_h
26639 #include <stdbool.h>
26646 FILE *fp = fopen("cf_test.out", "w");
26649 if ((bool)(-x) >= 0)
26650 fputs("unsigned ", fp);
26651 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26652 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26653 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26654 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26657 ${cf_cv_main_return:-return}(0);
26661 rm -f "conftest$ac_exeext"
26662 if { (eval echo "$as_me:26662: \"$ac_link\"") >&5
26663 (eval $ac_link) 2>&5
26665 echo "$as_me:26665: \$? = $ac_status" >&5
26666 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26667 { (eval echo "$as_me:26667: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:26670: \$? = $ac_status" >&5
26671 (exit "$ac_status"); }; }; then
26672 cf_cv_type_of_bool=`cat cf_test.out`
26673 if test -z "$cf_cv_type_of_bool"; then
26674 cf_cv_type_of_bool=unknown
26677 echo "$as_me: program exited with status $ac_status" >&5
26678 echo "$as_me: failed program was:" >&5
26679 cat "conftest.$ac_ext" >&5
26680 cf_cv_type_of_bool=unknown
26682 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26687 echo "$as_me:26687: result: $cf_cv_type_of_bool" >&5
26688 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26690 if test "$cf_cv_type_of_bool" = unknown ; then
26691 case .$NCURSES_BOOL in
26692 (.auto|.) NCURSES_BOOL=unsigned;;
26694 { echo "$as_me:26694: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26695 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26696 cf_cv_type_of_bool=$NCURSES_BOOL
26700 echo "$as_me:26700: checking for fallback type of bool" >&5
26701 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
26702 case "$host_cpu" in
26703 (i?86) cf_cv_type_of_bool=char ;;
26704 (*) cf_cv_type_of_bool=int ;;
26706 echo "$as_me:26706: result: $cf_cv_type_of_bool" >&5
26707 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26712 # If the C compiler did not declare bool, and we did not determine that the C++
26713 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
26714 # ncurses library use the same type as C++ bool. Note that this allows one to
26715 # specify the type of bool in a configure-script option and postpone
26716 # integration with the C++ compiler provided that the types are compatible.
26718 if test "$cf_cv_cc_bool_type" = 1
26720 # oops: C has a bool. Unlikely, but C++ could differ.
26722 elif test "$cf_cv_builtin_bool" = 0
26727 # this is the normal case
26728 USE_CXX_BOOL='defined(__cplusplus)'
26731 if test -f "${srcdir}/Ada95/Makefile.in" ; then
26733 if test "$cf_with_ada" != "no" ; then
26734 if test "$with_libtool" != "no"; then
26735 { echo "$as_me:26735: WARNING: libtool does not support Ada - disabling feature" >&5
26736 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
26741 if test "$cf_with_ada" != "no" ; then
26743 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
26746 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26748 unset ac_cv_path_cf_TEMP_gnat
26750 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
26751 set dummy $cf_prog_gnat; ac_word=$2
26752 echo "$as_me:26752: checking for $ac_word" >&5
26753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26754 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26757 case $cf_TEMP_gnat in
26759 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
26762 ac_save_IFS=$IFS; IFS=$ac_path_separator
26764 for ac_dir in $ac_dummy; do
26766 test -z "$ac_dir" && ac_dir=.
26767 if $as_executable_p "$ac_dir/$ac_word"; then
26768 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
26769 echo "$as_me:26769: found $ac_dir/$ac_word" >&5
26774 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
26778 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
26780 if test -n "$cf_TEMP_gnat"; then
26781 echo "$as_me:26781: result: $cf_TEMP_gnat" >&5
26782 echo "${ECHO_T}$cf_TEMP_gnat" >&6
26784 echo "$as_me:26784: result: no" >&5
26785 echo "${ECHO_T}no" >&6
26788 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
26790 if test "x$cf_TEMP_gnat" != xno; then
26791 unset cf_cv_gnat_version
26794 echo "$as_me:26794: checking for $cf_prog_gnat version" >&5
26795 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
26796 if test "${cf_cv_gnat_version+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26800 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
26801 grep '[0-9].[0-9][0-9]*' |\
26802 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26805 echo "$as_me:26805: result: $cf_cv_gnat_version" >&5
26806 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26807 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26808 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
26811 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
26814 unset cf_cv_gnat_version
26815 unset ac_cv_path_cf_TEMP_gnat
26818 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
26820 cf_cv_prog_gnat_correct=no
26822 cf_ada_make=gnatmake
26823 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
26824 # gprconfig is newer than gnatmake; we can continue...
26827 rm -rf ./conftest* ./*~conftest*
26828 if mkdir conftest.src
26832 for cf_gprconfig in Ada C
26834 echo "$as_me:26834: checking for gprconfig name for $cf_gprconfig" >&5
26835 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
26836 if test "$cf_gprconfig" = C
26838 for cf_gprconfig_param in \
26839 "$cf_gprconfig,,,,GNATGCC" \
26840 "$cf_gprconfig,,,,GCC" \
26843 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26844 test -n "$cf_gprconfig_value" && break
26847 cf_gprconfig_param=$cf_gprconfig
26848 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26850 if test -n "$cf_gprconfig_value"
26852 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
26853 echo "$as_me:26853: result: $cf_gprconfig_value" >&5
26854 echo "${ECHO_T}$cf_gprconfig_value" >&6
26856 echo "$as_me:26856: result: missing" >&5
26857 echo "${ECHO_T}missing" >&6
26863 rm -rf ./conftest* ./*~conftest*
26866 if test "x$cf_ada_config" != "x#"
26869 echo "$as_me:26869: checking for gnat version" >&5
26870 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
26871 if test "${cf_cv_gnat_version+set}" = set; then
26872 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
26876 grep '[0-9].[0-9][0-9]*' |\
26877 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26880 echo "$as_me:26880: result: $cf_cv_gnat_version" >&5
26881 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26882 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26884 case "$cf_cv_gnat_version" in
26885 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26886 cf_cv_prog_gnat_correct=yes
26889 { echo "$as_me:26889: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
26890 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
26891 cf_cv_prog_gnat_correct=no
26895 # Extract the first word of "m4", so it can be a program name with args.
26896 set dummy m4; ac_word=$2
26897 echo "$as_me:26897: checking for $ac_word" >&5
26898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26899 if test "${ac_cv_prog_M4_exists+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 if test -n "$M4_exists"; then
26903 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
26905 ac_save_IFS=$IFS; IFS=$ac_path_separator
26907 for ac_dir in $ac_dummy; do
26909 test -z "$ac_dir" && ac_dir=.
26910 $as_executable_p "$ac_dir/$ac_word" || continue
26911 ac_cv_prog_M4_exists="yes"
26912 echo "$as_me:26912: found $ac_dir/$ac_word" >&5
26916 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
26919 M4_exists=$ac_cv_prog_M4_exists
26920 if test -n "$M4_exists"; then
26921 echo "$as_me:26921: result: $M4_exists" >&5
26922 echo "${ECHO_T}$M4_exists" >&6
26924 echo "$as_me:26924: result: no" >&5
26925 echo "${ECHO_T}no" >&6
26928 if test "$ac_cv_prog_M4_exists" = no; then
26929 cf_cv_prog_gnat_correct=no
26930 { echo "$as_me:26930: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
26931 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
26933 if test "$cf_cv_prog_gnat_correct" = yes; then
26934 echo "$as_me:26934: checking if GNAT works" >&5
26935 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
26937 rm -rf ./conftest* ./*~conftest*
26938 cat >>conftest.ads <<CF_EOF
26939 procedure conftest;
26941 cat >>conftest.adb <<CF_EOF
26944 procedure conftest is
26946 Text_IO.Put ("Hello World");
26948 GNAT.OS_Lib.OS_Exit (0);
26951 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26952 if ( ./conftest 1>&5 2>&1 ) ; then
26953 cf_cv_prog_gnat_correct=yes
26955 cf_cv_prog_gnat_correct=no
26958 cf_cv_prog_gnat_correct=no
26960 rm -rf ./conftest* ./*~conftest*
26962 echo "$as_me:26962: result: $cf_cv_prog_gnat_correct" >&5
26963 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
26966 cf_cv_prog_gnat_correct=no
26970 if test "x$cf_cv_prog_gnat_correct" = xyes; then
26972 ADAFLAGS="$ADAFLAGS -gnatpn"
26974 echo "$as_me:26974: checking optimization options for ADAFLAGS" >&5
26975 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
26979 ADAFLAGS="$ADAFLAGS -g"
26985 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
26987 ADAFLAGS="$ADAFLAGS $cf_O_flag"
26991 echo "$as_me:26991: result: $ADAFLAGS" >&5
26992 echo "${ECHO_T}$ADAFLAGS" >&6
26994 echo "$as_me:26994: checking if GNATPREP supports -T option" >&5
26995 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
26996 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
27000 cf_cv_gnatprep_opt_t=no
27001 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27004 echo "$as_me:27004: result: $cf_cv_gnatprep_opt_t" >&5
27005 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27006 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27008 echo "$as_me:27008: checking if GNAT supports generics" >&5
27009 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27010 case "$cf_cv_gnat_version" in
27011 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27012 cf_gnat_generics=yes
27015 cf_gnat_generics=no
27018 echo "$as_me:27018: result: $cf_gnat_generics" >&5
27019 echo "${ECHO_T}$cf_gnat_generics" >&6
27021 if test "$cf_gnat_generics" = yes
27023 cf_compile_generics=generics
27024 cf_generic_objects="\${GENOBJS}"
27026 cf_compile_generics=
27027 cf_generic_objects=
27030 echo "$as_me:27030: checking if GNAT supports SIGINT" >&5
27031 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27032 if test "${cf_cv_gnat_sigint+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 rm -rf ./conftest* ./*~conftest*
27037 cat >>conftest.ads <<CF_EOF
27038 with Ada.Interrupts.Names;
27040 package ConfTest is
27042 pragma Warnings (Off); -- the next pragma exists since 3.11p
27043 pragma Unreserve_All_Interrupts;
27044 pragma Warnings (On);
27046 protected Process is
27048 function Continue return Boolean;
27049 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27051 Done : Boolean := False;
27056 cat >>conftest.adb <<CF_EOF
27057 package body ConfTest is
27058 protected body Process is
27063 function Continue return Boolean is
27070 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27071 cf_cv_gnat_sigint=yes
27073 cf_cv_gnat_sigint=no
27075 rm -rf ./conftest* ./*~conftest*
27078 echo "$as_me:27078: result: $cf_cv_gnat_sigint" >&5
27079 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27081 if test "$cf_cv_gnat_sigint" = yes ; then
27084 USE_GNAT_SIGINT="#"
27087 cf_gnat_libraries=no
27088 cf_gnat_projects=no
27090 if test "$enable_gnat_projects" != no ; then
27091 echo "$as_me:27091: checking if GNAT supports project files" >&5
27092 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27093 case "$cf_cv_gnat_version" in
27097 case "$cf_cv_system_name" in
27101 rm -rf ./conftest* ./*~conftest*
27102 if mkdir conftest.src conftest.bin conftest.lib
27105 rm -rf ./conftest* ./*~conftest*
27106 cat >>library.gpr <<CF_EOF
27108 Kind := External ("LIB_KIND");
27109 for Library_Name use "ConfTest";
27110 for Object_Dir use ".";
27111 for Library_ALI_Dir use External("LIBRARY_DIR");
27112 for Library_Version use External ("SONAME");
27113 for Library_Kind use Kind;
27114 for Library_Dir use External("BUILD_DIR");
27115 Source_Dir := External ("SOURCE_DIR");
27116 for Source_Dirs use (Source_Dir);
27119 cat >>confpackage.ads <<CF_EOF
27120 package ConfPackage is
27121 procedure conftest;
27124 cat >>confpackage.adb <<CF_EOF
27126 package body ConfPackage is
27127 procedure conftest is
27129 Text_IO.Put ("Hello World");
27134 if ( "$cf_ada_make" $ADAFLAGS \
27136 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27137 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27138 -XSOURCE_DIR="`pwd`" \
27139 -XSONAME=libConfTest.so.1 \
27140 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27141 cf_gnat_projects=yes
27145 if test -f conftest.lib/confpackage.ali
27147 cf_gnat_libraries=yes
27149 rm -rf ./conftest* ./*~conftest*
27154 echo "$as_me:27154: result: $cf_gnat_projects" >&5
27155 echo "${ECHO_T}$cf_gnat_projects" >&6
27156 fi # enable_gnat_projects
27158 if test "$cf_gnat_projects" = yes
27160 echo "$as_me:27160: checking if GNAT supports libraries" >&5
27161 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27162 echo "$as_me:27162: result: $cf_gnat_libraries" >&5
27163 echo "${ECHO_T}$cf_gnat_libraries" >&6
27166 USE_OLD_MAKERULES=""
27167 USE_GNAT_PROJECTS="#"
27168 USE_GNAT_MAKE_GPR="#"
27169 USE_GNAT_GPRBUILD="#"
27171 if test "$cf_gnat_projects" = yes
27173 USE_OLD_MAKERULES="#"
27174 USE_GNAT_PROJECTS=""
27175 if test "$cf_cv_VERSION_GPRBUILD" != no
27177 USE_GNAT_GPRBUILD=""
27178 elif test "$cf_cv_VERSION_GNATMAKE" != no
27180 USE_GNAT_MAKE_GPR=""
27182 { echo "$as_me:27182: WARNING: use old makefile rules since tools are missing" >&5
27183 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27187 if test "$cf_gnat_libraries" = yes
27189 USE_GNAT_LIBRARIES=""
27191 USE_GNAT_LIBRARIES="#"
27194 echo "$as_me:27194: checking for ada-compiler" >&5
27195 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27197 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27198 if test "${with_ada_compiler+set}" = set; then
27199 withval="$with_ada_compiler"
27200 cf_ada_compiler=$withval
27202 cf_ada_compiler=gnatmake
27205 echo "$as_me:27205: result: $cf_ada_compiler" >&5
27206 echo "${ECHO_T}$cf_ada_compiler" >&6
27208 cf_ada_package=terminal_interface
27210 echo "$as_me:27210: checking for ada-include" >&5
27211 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27213 # Check whether --with-ada-include or --without-ada-include was given.
27214 if test "${with_ada_include+set}" = set; then
27215 withval="$with_ada_include"
27218 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27219 fi; if test -n "$prefix/share/ada/adainclude" ; then
27221 if test "x$prefix" != xNONE; then
27222 cf_path_syntax="$prefix"
27224 cf_path_syntax="$ac_default_prefix"
27227 case ".$withval" in
27228 (.\$\(*\)*|.\'*\'*)
27232 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27234 (.\$\{*prefix\}*|.\$\{*dir\}*)
27235 eval withval="$withval"
27236 case ".$withval" in
27238 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27243 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27246 { { echo "$as_me:27246: error: expected a pathname, not \"$withval\"" >&5
27247 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27248 { (exit 1); exit 1; }; }
27253 eval ADA_INCLUDE="$withval"
27255 echo "$as_me:27255: result: $ADA_INCLUDE" >&5
27256 echo "${ECHO_T}$ADA_INCLUDE" >&6
27258 echo "$as_me:27258: checking for ada-objects" >&5
27259 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27261 # Check whether --with-ada-objects or --without-ada-objects was given.
27262 if test "${with_ada_objects+set}" = set; then
27263 withval="$with_ada_objects"
27266 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27267 fi; if test -n "$prefix/lib/ada/adalib" ; then
27269 if test "x$prefix" != xNONE; then
27270 cf_path_syntax="$prefix"
27272 cf_path_syntax="$ac_default_prefix"
27275 case ".$withval" in
27276 (.\$\(*\)*|.\'*\'*)
27280 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27282 (.\$\{*prefix\}*|.\$\{*dir\}*)
27283 eval withval="$withval"
27284 case ".$withval" in
27286 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27291 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27294 { { echo "$as_me:27294: error: expected a pathname, not \"$withval\"" >&5
27295 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27296 { (exit 1); exit 1; }; }
27301 eval ADA_OBJECTS="$withval"
27303 echo "$as_me:27303: result: $ADA_OBJECTS" >&5
27304 echo "${ECHO_T}$ADA_OBJECTS" >&6
27306 echo "$as_me:27306: checking if an Ada95 shared-library should be built" >&5
27307 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27309 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27310 if test "${with_ada_sharedlib+set}" = set; then
27311 withval="$with_ada_sharedlib"
27312 with_ada_sharedlib=$withval
27314 with_ada_sharedlib=no
27316 echo "$as_me:27316: result: $with_ada_sharedlib" >&5
27317 echo "${ECHO_T}$with_ada_sharedlib" >&6
27319 if test "x$with_ada_sharedlib" != xno
27321 if test "x$cf_gnat_projects" != xyes
27323 { echo "$as_me:27323: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27324 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27325 with_ada_sharedlib=no
27329 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27330 MAKE_ADA_SHAREDLIB="#"
27332 if test "x$with_ada_sharedlib" != xno
27334 MAKE_ADA_SHAREDLIB=
27335 if test "x$with_ada_sharedlib" != xyes
27337 ADA_SHAREDLIB="$with_ada_sharedlib"
27341 # allow the Ada binding to be renamed
27343 echo "$as_me:27343: checking for ada-libname" >&5
27344 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27346 # Check whether --with-ada-libname or --without-ada-libname was given.
27347 if test "${with_ada_libname+set}" = set; then
27348 withval="$with_ada_libname"
27349 ADA_LIBNAME=$withval
27351 ADA_LIBNAME=AdaCurses
27353 case "x$ADA_LIBNAME" in
27355 ADA_LIBNAME=AdaCurses
27359 echo "$as_me:27359: result: $ADA_LIBNAME" >&5
27360 echo "${ECHO_T}$ADA_LIBNAME" >&6
27368 # do this "late" to avoid conflict with header-checks
27369 if test "x$with_widec" = xyes ; then
27370 echo "$as_me:27370: checking for wchar_t" >&5
27371 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27372 if test "${ac_cv_type_wchar_t+set}" = set; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27375 cat >"conftest.$ac_ext" <<_ACEOF
27376 #line 27376 "configure"
27377 #include "confdefs.h"
27378 $ac_includes_default
27384 if (sizeof (wchar_t))
27390 rm -f "conftest.$ac_objext"
27391 if { (eval echo "$as_me:27391: \"$ac_compile\"") >&5
27392 (eval $ac_compile) 2>&5
27394 echo "$as_me:27394: \$? = $ac_status" >&5
27395 (exit "$ac_status"); } &&
27396 { ac_try='test -s "conftest.$ac_objext"'
27397 { (eval echo "$as_me:27397: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27400 echo "$as_me:27400: \$? = $ac_status" >&5
27401 (exit "$ac_status"); }; }; then
27402 ac_cv_type_wchar_t=yes
27404 echo "$as_me: failed program was:" >&5
27405 cat "conftest.$ac_ext" >&5
27406 ac_cv_type_wchar_t=no
27408 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27410 echo "$as_me:27410: result: $ac_cv_type_wchar_t" >&5
27411 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27413 echo "$as_me:27413: checking size of wchar_t" >&5
27414 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27415 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27416 echo $ECHO_N "(cached) $ECHO_C" >&6
27418 if test "$ac_cv_type_wchar_t" = yes; then
27419 if test "$cross_compiling" = yes; then
27420 # Depending upon the size, compute the lo and hi bounds.
27421 cat >"conftest.$ac_ext" <<_ACEOF
27422 #line 27422 "configure"
27423 #include "confdefs.h"
27424 $ac_includes_default
27428 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27433 rm -f "conftest.$ac_objext"
27434 if { (eval echo "$as_me:27434: \"$ac_compile\"") >&5
27435 (eval $ac_compile) 2>&5
27437 echo "$as_me:27437: \$? = $ac_status" >&5
27438 (exit "$ac_status"); } &&
27439 { ac_try='test -s "conftest.$ac_objext"'
27440 { (eval echo "$as_me:27440: \"$ac_try\"") >&5
27441 (eval $ac_try) 2>&5
27443 echo "$as_me:27443: \$? = $ac_status" >&5
27444 (exit "$ac_status"); }; }; then
27447 cat >"conftest.$ac_ext" <<_ACEOF
27448 #line 27448 "configure"
27449 #include "confdefs.h"
27450 $ac_includes_default
27454 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27459 rm -f "conftest.$ac_objext"
27460 if { (eval echo "$as_me:27460: \"$ac_compile\"") >&5
27461 (eval $ac_compile) 2>&5
27463 echo "$as_me:27463: \$? = $ac_status" >&5
27464 (exit "$ac_status"); } &&
27465 { ac_try='test -s "conftest.$ac_objext"'
27466 { (eval echo "$as_me:27466: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:27469: \$? = $ac_status" >&5
27470 (exit "$ac_status"); }; }; then
27471 ac_hi=$ac_mid; break
27473 echo "$as_me: failed program was:" >&5
27474 cat "conftest.$ac_ext" >&5
27475 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27477 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27480 echo "$as_me: failed program was:" >&5
27481 cat "conftest.$ac_ext" >&5
27484 cat >"conftest.$ac_ext" <<_ACEOF
27485 #line 27485 "configure"
27486 #include "confdefs.h"
27487 $ac_includes_default
27491 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27496 rm -f "conftest.$ac_objext"
27497 if { (eval echo "$as_me:27497: \"$ac_compile\"") >&5
27498 (eval $ac_compile) 2>&5
27500 echo "$as_me:27500: \$? = $ac_status" >&5
27501 (exit "$ac_status"); } &&
27502 { ac_try='test -s "conftest.$ac_objext"'
27503 { (eval echo "$as_me:27503: \"$ac_try\"") >&5
27504 (eval $ac_try) 2>&5
27506 echo "$as_me:27506: \$? = $ac_status" >&5
27507 (exit "$ac_status"); }; }; then
27508 ac_lo=$ac_mid; break
27510 echo "$as_me: failed program was:" >&5
27511 cat "conftest.$ac_ext" >&5
27512 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27514 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27517 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27518 # Binary search between lo and hi bounds.
27519 while test "x$ac_lo" != "x$ac_hi"; do
27520 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27521 cat >"conftest.$ac_ext" <<_ACEOF
27522 #line 27522 "configure"
27523 #include "confdefs.h"
27524 $ac_includes_default
27528 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27533 rm -f "conftest.$ac_objext"
27534 if { (eval echo "$as_me:27534: \"$ac_compile\"") >&5
27535 (eval $ac_compile) 2>&5
27537 echo "$as_me:27537: \$? = $ac_status" >&5
27538 (exit "$ac_status"); } &&
27539 { ac_try='test -s "conftest.$ac_objext"'
27540 { (eval echo "$as_me:27540: \"$ac_try\"") >&5
27541 (eval $ac_try) 2>&5
27543 echo "$as_me:27543: \$? = $ac_status" >&5
27544 (exit "$ac_status"); }; }; then
27547 echo "$as_me: failed program was:" >&5
27548 cat "conftest.$ac_ext" >&5
27549 ac_lo=`expr "$ac_mid" + 1`
27551 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27553 ac_cv_sizeof_wchar_t=$ac_lo
27555 if test "$cross_compiling" = yes; then
27556 { { echo "$as_me:27556: error: cannot run test program while cross compiling" >&5
27557 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27558 { (exit 1); exit 1; }; }
27560 cat >"conftest.$ac_ext" <<_ACEOF
27561 #line 27561 "configure"
27562 #include "confdefs.h"
27563 $ac_includes_default
27567 FILE *f = fopen ("conftest.val", "w");
27569 $ac_main_return (1);
27570 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
27576 rm -f "conftest$ac_exeext"
27577 if { (eval echo "$as_me:27577: \"$ac_link\"") >&5
27578 (eval $ac_link) 2>&5
27580 echo "$as_me:27580: \$? = $ac_status" >&5
27581 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27582 { (eval echo "$as_me:27582: \"$ac_try\"") >&5
27583 (eval $ac_try) 2>&5
27585 echo "$as_me:27585: \$? = $ac_status" >&5
27586 (exit "$ac_status"); }; }; then
27587 ac_cv_sizeof_wchar_t=`cat conftest.val`
27589 echo "$as_me: program exited with status $ac_status" >&5
27590 echo "$as_me: failed program was:" >&5
27591 cat "conftest.$ac_ext" >&5
27593 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27598 ac_cv_sizeof_wchar_t=0
27601 echo "$as_me:27601: result: $ac_cv_sizeof_wchar_t" >&5
27602 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
27603 cat >>confdefs.h <<EOF
27604 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
27607 # cross-compiling to mingw can run into the problem that attempting to
27608 # link with the regex library fails, causing the test to not set this to
27609 # a number. "recent" autoconf does not address this problem either -TD
27610 if test -z "$ac_cv_sizeof_wchar_t"
27612 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
27614 echo "${as_me:-configure}:27614: testing test failed (assume 2) ..." 1>&5
27616 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
27617 mv confdefs.tmp confdefs.h
27618 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
27622 ### Construct the ncurses library-subsets, if any, from this set of keywords:
27623 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
27625 ### ticlib modules may be a separate library, otherwise contained in termlib.
27626 ### termlib modules may be a separate library, otherwise contained in ncurses.
27628 ### The of "+" or " " between the tokens controls the way the script
27629 ### chooses to split module lists into libraries.
27631 ### (see CF_LIB_RULES).
27632 echo "$as_me:27632: checking for library subsets" >&5
27633 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
27636 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
27637 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
27638 if test "$with_ticlib" != no ; then
27639 LIB_SUBSETS="${LIB_SUBSETS} "
27641 LIB_SUBSETS="${LIB_SUBSETS}+"
27645 LIB_SUBSETS="${LIB_SUBSETS}termlib"
27646 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
27648 if test "$with_termlib" != no ; then
27649 LIB_SUBSETS="${LIB_SUBSETS} "
27651 LIB_SUBSETS="${LIB_SUBSETS}+"
27654 LIB_SUBSETS="${LIB_SUBSETS}base"
27656 # Most term-driver calls are to tinfo, but some like init_pair are to the
27657 # base library (so it resides in base).
27658 if test "$with_term_driver" != no ; then
27659 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
27660 case "$cf_cv_system_name" in
27661 (*mingw32*|*mingw64*)
27662 if test "x$with_exp_win32" = xyes ; then
27663 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
27665 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
27667 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
27670 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
27673 elif test "x$with_exp_win32" = xyes ; then
27674 case "$cf_cv_system_name" in
27675 (*mingw32*|*mingw64*)
27676 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
27683 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
27684 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
27686 echo "$as_me:27686: result: $LIB_SUBSETS" >&5
27687 echo "${ECHO_T}$LIB_SUBSETS" >&6
27689 ### Construct the list of include-directories to be generated
27691 if test "$srcdir" != "."; then
27692 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
27694 CPPFLAGS="-I../include $CPPFLAGS"
27695 if test "$srcdir" != "."; then
27696 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
27698 CPPFLAGS="-I. $CPPFLAGS"
27700 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
27701 if test "$srcdir" != "."; then
27702 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
27704 if test "$GCC" != yes; then
27705 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27706 elif test "$includedir" != "/usr/include"; then
27707 if test "$includedir" = '${prefix}/include' ; then
27708 if test x$prefix != x/usr ; then
27709 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27712 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27716 ### Build up pieces for makefile rules
27717 echo "$as_me:27717: checking default library suffix" >&5
27718 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
27720 case $DFT_LWR_MODEL in
27721 (libtool) DFT_ARG_SUFFIX='' ;;
27722 (normal) DFT_ARG_SUFFIX='' ;;
27723 (debug) DFT_ARG_SUFFIX='_g' ;;
27724 (profile) DFT_ARG_SUFFIX='_p' ;;
27725 (shared) DFT_ARG_SUFFIX='' ;;
27727 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
27728 echo "$as_me:27728: result: $DFT_ARG_SUFFIX" >&5
27729 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
27731 echo "$as_me:27731: checking default library-dependency suffix" >&5
27732 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
27734 case X$DFT_LWR_MODEL in
27736 DFT_LIB_SUFFIX='.la'
27737 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27740 case "$cf_cv_system_name" in
27742 DFT_LIB_SUFFIX='_g.lib'
27745 DFT_LIB_SUFFIX='_g.a'
27748 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27751 case "$cf_cv_system_name" in
27753 DFT_LIB_SUFFIX='_p.lib'
27756 DFT_LIB_SUFFIX='_p.a'
27759 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27762 case "$cf_cv_system_name" in
27764 DFT_LIB_SUFFIX='.so'
27765 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27768 DFT_LIB_SUFFIX='.dll'
27769 DFT_DEP_SUFFIX='.dll.lib'
27771 (cygwin*|msys*|mingw*)
27772 DFT_LIB_SUFFIX='.dll'
27773 DFT_DEP_SUFFIX='.dll.a'
27776 DFT_LIB_SUFFIX='.dylib'
27777 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27782 DFT_LIB_SUFFIX='.so'
27783 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27786 DFT_LIB_SUFFIX='.sl'
27787 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27792 DFT_LIB_SUFFIX='.so'
27793 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27800 DFT_LIB_SUFFIX='.lib'
27803 DFT_LIB_SUFFIX='.a'
27806 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27809 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27811 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
27812 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
27814 echo "$as_me:27814: result: $DFT_DEP_SUFFIX" >&5
27815 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
27817 echo "$as_me:27817: checking default object directory" >&5
27818 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
27820 case $DFT_LWR_MODEL in
27821 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
27822 (normal) DFT_OBJ_SUBDIR='objects' ;;
27823 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
27824 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
27826 case "$cf_cv_system_name" in
27828 DFT_OBJ_SUBDIR='objects' ;;
27830 DFT_OBJ_SUBDIR='obj_s' ;;
27833 echo "$as_me:27833: result: $DFT_OBJ_SUBDIR" >&5
27834 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
27836 if test "x$cf_with_cxx" = xyes ; then
27837 echo "$as_me:27837: checking c++ library-dependency suffix" >&5
27838 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
27839 if test "$with_libtool" != "no"; then
27840 # libtool thinks it can make c++ shared libraries (perhaps only g++)
27841 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27842 elif test "$with_shared_cxx" != "no"; then
27843 # also for g++ users...
27844 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27846 # we normally make a static library because C/C++ library rules differ
27850 CXX_LIB_SUFFIX='.la'
27851 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27854 case "$cf_cv_system_name" in
27856 CXX_LIB_SUFFIX='_g.lib'
27859 CXX_LIB_SUFFIX='_g.a'
27862 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27865 case "$cf_cv_system_name" in
27867 CXX_LIB_SUFFIX='_p.lib'
27870 CXX_LIB_SUFFIX='_p.a'
27873 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27876 case "$cf_cv_system_name" in
27878 CXX_LIB_SUFFIX='.so'
27879 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27882 CXX_LIB_SUFFIX='.dll'
27883 CXX_DEP_SUFFIX='.dll.lib'
27885 (cygwin*|msys*|mingw*)
27886 CXX_LIB_SUFFIX='.dll'
27887 CXX_DEP_SUFFIX='.dll.a'
27890 CXX_LIB_SUFFIX='.dylib'
27891 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27896 CXX_LIB_SUFFIX='.so'
27897 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27900 CXX_LIB_SUFFIX='.sl'
27901 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27906 CXX_LIB_SUFFIX='.so'
27907 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27914 CXX_LIB_SUFFIX='.lib'
27917 CXX_LIB_SUFFIX='.a'
27920 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27923 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27925 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
27926 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
27930 echo "$as_me:27930: result: $CXX_LIB_SUFFIX" >&5
27931 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
27935 # do not want -ldl in build except as needed for -lncurses dependency
27936 if test "x$with_dlsym" = xyes ; then
27937 if test "$DFT_LWR_MODEL" = shared || \
27938 test "$DFT_LWR_MODEL" = libtool ; then
27940 # remove dl library from $LIBS
27941 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27945 ### Set up low-level terminfo dependencies for makefiles.
27947 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
27948 # do not need libdl
27950 if test "x$with_dlsym" = xyes ; then
27952 # remove dl library from $SHLIB_LIST
27953 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27957 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
27958 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
27959 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
27960 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
27962 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
27965 if test "$with_ticlib" != no ; then
27967 if test "x$with_ticlib" != xyes ; then
27968 TICS_NAME=$with_ticlib
27969 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27970 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27971 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27972 TICS_LIB_SUFFIX="${with_ticlib}"
27974 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27975 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
27976 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
27977 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
27979 TICS_LDFLAGS="-L${LIB_DIR}"
27980 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
27982 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27983 TICS_LDFLAGS="-L${LIB_DIR}"
27984 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27987 if test "$with_termlib" != no ; then
27989 if test "x$with_termlib" != xyes ; then
27990 TINFO_NAME=$with_termlib
27991 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27992 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27993 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27994 TINFO_LIB_SUFFIX="${with_termlib}"
27996 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27997 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
27998 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
27999 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28002 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28003 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28004 if test "$DFT_LWR_MODEL" = "libtool"; then
28005 TEST_ARGS="${TEST_DEPS}"
28006 TEST_ARG2="${TEST_DEP2}"
28007 TINFO_LDFLAGS="-L${LIB_DIR}"
28008 TINFO_LIBS="$TEST_ARGS"
28009 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28010 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28012 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28013 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28014 if test "x$with_term_driver" != xno ; then
28015 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28016 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28017 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28019 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28020 TINFO_LIBS="$TEST_ARGS"
28022 TINFO_LDFLAGS="-L${LIB_DIR}"
28023 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28026 # the next lines are needed for linking libtic over libncurses
28027 TINFO_NAME=${LIB_NAME}
28028 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28029 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28030 if test "x$with_tic_depends" = xyes ; then
28031 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28033 TICS_LIST="$SHLIB_LIST"
28036 TINFO_LDFLAGS="-L${LIB_DIR}"
28037 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28040 if test "$DFT_LWR_MODEL" = shared ; then
28041 case "$cf_cv_system_name" in
28043 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28049 if test "x$with_dlsym" = xyes ; then
28051 # remove dl library from $TICS_LIST
28052 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28056 if test "$DFT_LWR_MODEL" = "libtool"; then
28061 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28063 case "$DFT_LWR_MODEL" in
28064 (normal|debug|profile)
28066 if test "$GCC" = yes ; then
28067 case "$cf_cv_system_name" in
28068 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28072 (*) # normally, except when broken
28073 LDFLAGS_STATIC=-static
28074 LDFLAGS_SHARED=-dynamic
28078 case "$cf_cv_system_name" in
28079 (aix[4-7]*) # from ld manpage
28080 LDFLAGS_STATIC=-bstatic
28081 LDFLAGS_SHARED=-bdynamic
28083 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28084 # We could also use just "archive" and "shared".
28085 LDFLAGS_STATIC=-Wl,-a,archive_shared
28086 LDFLAGS_SHARED=-Wl,-a,shared_archive
28088 (irix*) # from ld manpage IRIX64
28089 LDFLAGS_STATIC=-Bstatic
28090 LDFLAGS_SHARED=-Bdynamic
28092 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28093 # alternative "-oldstyle_liblookup" (not in cc manpage)
28094 LDFLAGS_STATIC=-noso
28095 LDFLAGS_SHARED=-so_archive
28098 LDFLAGS_STATIC=-Bstatic
28099 LDFLAGS_SHARED=-Bdynamic
28104 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28106 echo "$as_me:28106: checking if linker supports switching between static/dynamic" >&5
28107 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28109 rm -f libconftest.a
28110 cat >conftest.$ac_ext <<EOF
28111 #line 28111 "configure"
28113 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28115 if { (eval echo "$as_me:28115: \"$ac_compile\"") >&5
28116 (eval $ac_compile) 2>&5
28118 echo "$as_me:28118: \$? = $ac_status" >&5
28119 (exit "$ac_status"); } ; then
28120 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28121 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28125 cf_save_LIBS="$LIBS"
28127 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28128 cat >"conftest.$ac_ext" <<_ACEOF
28129 #line 28129 "configure"
28130 #include "confdefs.h"
28132 #line 28132 "configure"
28134 int cf_ldflags_static(FILE *fp);
28140 return cf_ldflags_static(stdin);
28146 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28147 if { (eval echo "$as_me:28147: \"$ac_link\"") >&5
28148 (eval $ac_link) 2>&5
28150 echo "$as_me:28150: \$? = $ac_status" >&5
28151 (exit "$ac_status"); } &&
28152 { ac_try='test -s "conftest$ac_exeext"'
28153 { (eval echo "$as_me:28153: \"$ac_try\"") >&5
28154 (eval $ac_try) 2>&5
28156 echo "$as_me:28156: \$? = $ac_status" >&5
28157 (exit "$ac_status"); }; }; then
28159 # some linkers simply ignore the -dynamic
28160 case x`file "conftest$ac_exeext" 2>/dev/null` in
28162 cf_ldflags_static=no
28165 cf_ldflags_static=yes
28170 echo "$as_me: failed program was:" >&5
28171 cat "conftest.$ac_ext" >&5
28172 cf_ldflags_static=no
28174 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28176 rm -f libconftest.*
28177 LIBS="$cf_save_LIBS"
28179 echo "$as_me:28179: result: $cf_ldflags_static" >&5
28180 echo "${ECHO_T}$cf_ldflags_static" >&6
28182 if test "$cf_ldflags_static" != yes
28195 echo "$as_me:28195: checking where we will install curses.h" >&5
28196 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28199 if test "$with_overwrite" = no && \
28200 { test "x$includedir" = 'x${prefix}/include' || \
28201 test "x$includedir" = "x${prefix}/include"; }
28203 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28205 echo "$as_me:28205: result: ${includedir}${includesubdir}" >&5
28206 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28208 ### Resolve a conflict between normal and wide-curses by forcing applications
28209 ### that will need libutf8 to add it to their configure script.
28210 if test "$with_overwrite" != no ; then
28211 if test "$NCURSES_LIBUTF8" = 1 ; then
28212 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28213 { echo "$as_me:28213: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28214 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28217 WITH_OVERWRITE=$with_overwrite
28219 ### At least on MinGW a shared library build without libtool
28220 ### requires adding the additional libs to the link list.
28221 case "$cf_cv_system_name" in
28222 (*mingw32*|*mingw64*)
28223 if test "$DFT_LWR_MODEL" != "libtool"; then
28224 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28230 # used to separate tack out of the tree
28233 ### predefined stuff for the test programs
28235 cat >>confdefs.h <<\EOF
28236 #define HAVE_SLK_COLOR 1
28239 # pkgsrc uses these
28241 echo "$as_me:28241: checking for desired basename for form library" >&5
28242 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28244 # Check whether --with-form-libname or --without-form-libname was given.
28245 if test "${with_form_libname+set}" = set; then
28246 withval="$with_form_libname"
28247 with_lib_basename=$withval
28249 with_lib_basename=form
28251 FORM_NAME="$with_lib_basename"
28253 case "x$FORM_NAME" in
28261 echo "$as_me:28261: result: $FORM_NAME" >&5
28262 echo "${ECHO_T}$FORM_NAME" >&6
28264 echo "$as_me:28264: checking for desired basename for menu library" >&5
28265 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28267 # Check whether --with-menu-libname or --without-menu-libname was given.
28268 if test "${with_menu_libname+set}" = set; then
28269 withval="$with_menu_libname"
28270 with_lib_basename=$withval
28272 with_lib_basename=menu
28274 MENU_NAME="$with_lib_basename"
28276 case "x$MENU_NAME" in
28284 echo "$as_me:28284: result: $MENU_NAME" >&5
28285 echo "${ECHO_T}$MENU_NAME" >&6
28287 echo "$as_me:28287: checking for desired basename for panel library" >&5
28288 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28290 # Check whether --with-panel-libname or --without-panel-libname was given.
28291 if test "${with_panel_libname+set}" = set; then
28292 withval="$with_panel_libname"
28293 with_lib_basename=$withval
28295 with_lib_basename=panel
28297 PANEL_NAME="$with_lib_basename"
28299 case "x$PANEL_NAME" in
28307 echo "$as_me:28307: result: $PANEL_NAME" >&5
28308 echo "${ECHO_T}$PANEL_NAME" >&6
28310 echo "$as_me:28310: checking for desired basename for cxx library" >&5
28311 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28313 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28314 if test "${with_cxx_libname+set}" = set; then
28315 withval="$with_cxx_libname"
28316 with_lib_basename=$withval
28318 with_lib_basename=ncurses++
28320 CXX_NAME="$with_lib_basename"
28322 case "x$CXX_NAME" in
28330 echo "$as_me:28330: result: $CXX_NAME" >&5
28331 echo "${ECHO_T}$CXX_NAME" >&6
28333 ### Construct the list of subdirectories for which we'll customize makefiles
28334 ### with the appropriate compile-rules.
28336 echo "$as_me:28336: checking for src modules" >&5
28337 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28339 # dependencies and linker-arguments for test-programs
28340 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28341 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28342 if test "$DFT_LWR_MODEL" = "libtool"; then
28343 TEST_ARGS="${TEST_DEPS}"
28344 TEST_ARG2="${TEST_DEP2}"
28346 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28347 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28350 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28352 for cf_dir in $modules_to_build
28354 if test -f "$srcdir/$cf_dir/modules" ; then
28356 # We may/may not have tack in the distribution, though the
28358 if test "$cf_dir" = tack ; then
28359 if test "x$cf_with_tack" != "xyes"; then
28364 if test -z "$cf_cv_src_modules"; then
28365 cf_cv_src_modules=$cf_dir
28367 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28370 # Make the ncurses_cfg.h file record the library interface files as
28371 # well. These are header files that are the same name as their
28372 # directory. Ncurses is the only library that does not follow
28374 if test "$cf_dir" = tack ; then
28376 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28378 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28380 cat >>confdefs.h <<EOF
28381 #define HAVE_${cf_have_include}_H 1
28384 cat >>confdefs.h <<EOF
28385 #define HAVE_LIB${cf_have_include} 1
28388 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28390 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28392 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28393 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28394 if test "$DFT_LWR_MODEL" = "libtool"; then
28395 TEST_ARGS="${TEST_DEPS}"
28396 TEST_ARG2="${TEST_DEP2}"
28398 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28399 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28401 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28405 echo "$as_me:28405: result: $cf_cv_src_modules" >&5
28406 echo "${ECHO_T}$cf_cv_src_modules" >&6
28408 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28409 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28412 if test "x$cf_with_manpages" != xno ; then
28413 SRC_SUBDIRS="$SRC_SUBDIRS man"
28415 SRC_SUBDIRS="$SRC_SUBDIRS include"
28416 for cf_dir in $cf_cv_src_modules
28418 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28420 if test "x$cf_with_tests" != "xno" ; then
28421 SRC_SUBDIRS="$SRC_SUBDIRS test"
28423 # always make this, to install the ncurses-config script
28424 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28425 if test "$cf_with_cxx_binding" != no; then
28426 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28427 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28430 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28431 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28434 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28435 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28436 ADA_SUBDIRS="gen src"
28437 if test "x$cf_with_tests" != "xno" ; then
28438 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28443 for cf_dir in $SRC_SUBDIRS
28445 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28448 if test -n "$ADA_SUBDIRS"; then
28449 for cf_dir in $ADA_SUBDIRS
28451 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28456 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28457 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28458 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28459 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28463 for cf_item in $cf_list_models
28467 (libtool) cf_subdir='obj_lo' ;;
28468 (normal) cf_subdir='objects' ;;
28469 (debug) cf_subdir='obj_g' ;;
28470 (profile) cf_subdir='obj_p' ;;
28472 case "$cf_cv_system_name" in
28474 cf_subdir='objects' ;;
28476 cf_subdir='obj_s' ;;
28480 for cf_item2 in $DIRS_TO_MAKE
28482 test "$cf_item2" = "$cf_subdir" && break
28484 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28486 for cf_dir in $DIRS_TO_MAKE
28488 test ! -d "$cf_dir" && mkdir "$cf_dir"
28491 # symbols that differ when compiling Ada95 by itself.
28492 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28494 # values to use as strings
28496 cat >>confdefs.h <<EOF
28497 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28500 cat >>confdefs.h <<EOF
28501 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28504 ### Define substitutions for header files to avoid name-pollution
28506 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28512 if test "x$ac_cv_header_stdint_h" = xyes ; then
28518 if test "x$ac_cv_header_termio_h" = xyes ; then
28524 if test "x$ac_cv_header_termios_h" = xyes ; then
28530 ################################################################################
28531 test "x$use_database" = xyes && \
28532 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28534 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28535 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28537 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28538 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
28541 if test "x$cf_with_tests" != xno ; then
28547 ADAHTML_DIR=../../doc/html/ada
28549 # workaround for OS/2 (20151017)
28550 case "$cf_cv_system_name" in
28552 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
28559 # workaround for g++ versus Solaris (20131116)
28560 case "$cf_cv_system_name" in
28562 case "x$CPPFLAGS" in
28563 (*-D_XOPEN_SOURCE_EXTENDED*)
28564 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
28566 echo "${as_me:-configure}:28566: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
28568 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
28569 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
28575 # Help to automatically enable the extended curses features when using either
28576 # the *-config or the ".pc" files by adding defines.
28577 echo "$as_me:28577: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
28578 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
28580 for cf_loop1 in $CPPFLAGS_after_XOPEN
28583 for cf_loop2 in $CPPFLAGS_before_XOPEN
28585 if test "x$cf_loop1" = "x$cf_loop2"
28591 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
28593 echo "$as_me:28593: result: $PKG_CFLAGS" >&5
28594 echo "${ECHO_T}$PKG_CFLAGS" >&6
28596 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
28597 case "x$NCURSES_OSPEED" in
28606 cat >>confdefs.h <<EOF
28607 #define NCURSES_OSPEED_COMPAT $cf_compatible
28610 case "x$cf_cv_typeof_chtype" in
28611 (xshort|xint|xlong)
28612 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
28616 case "x$cf_cv_typeof_mmask_t" in
28617 (xshort|xint|xlong)
28618 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
28622 # substitute into misc/Makefile to suppress
28623 # (un)install.data from the
28624 # (un)install rules.
28625 if test "x$cf_with_db_install" = "xno"; then
28627 MISC_UNINSTALL_DATA=
28629 MISC_INSTALL_DATA=install.data
28630 MISC_UNINSTALL_DATA=uninstall.data
28633 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
28636 MAKE_DATABASE="$MAKE_TERMINFO"
28639 if test -n "$PACKAGE"
28641 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
28643 echo "package: $PACKAGE"
28649 if test -n "$RESULTING_SYMS"
28651 cf_filter_syms=$cf_dft_filter_syms
28652 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
28654 echo "${as_me:-configure}:28654: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
28658 if test "x$WILDCARD_SYMS" = xno
28663 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
28665 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
28666 if test "$cf_filter_syms" = yes
28668 RESULTING_SYMS=resulting.map
28671 if test "x$cross_compiling" = xyes ; then
28672 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
28675 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
28679 # This is used for the *-config script and *.pc data files.
28681 echo "$as_me:28681: checking for linker search path" >&5
28682 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
28683 if test "${cf_cv_ld_searchpath+set}" = set; then
28684 echo $ECHO_N "(cached) $ECHO_C" >&6
28687 if test "$cross_compiling" != yes ; then
28689 # GNU binutils' ld does not involve permissions which may stop ldconfig.
28690 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
28692 # The -NX options tell newer versions of Linux ldconfig to not attempt to
28693 # update the cache, which makes it run faster.
28694 test -z "$cf_pathlist" && \
28695 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
28697 test -z "$cf_pathlist" &&
28698 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
28700 # This works with OpenBSD 6.5, which lists only filenames
28701 test -z "$cf_pathlist" &&
28702 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
28704 if test -z "$cf_pathlist"
28706 # dyld default path with MacOS
28707 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
28709 # do this to bypass check
28710 cf_cv_ld_searchpath='$HOME/lib'
28711 cf_pathlist="/usr/local/lib /lib /usr/lib"
28715 if test -z "$cf_pathlist"
28717 # Solaris is "SunOS"
28718 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
28720 case x`(isainfo -b)` in
28722 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
28725 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
28726 cf_pathlist="$cf_pathlist /lib /usr/lib"
28729 { echo "$as_me:28729: WARNING: problem with Solaris architecture" >&5
28730 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
28736 if test -z "$cf_pathlist"
28739 if test x"`uname -s`" = xHP-UX
28741 case x`getconf LONG_BIT` in
28743 cf_pathlist="/usr/lib/hpux64"
28746 cf_pathlist="/usr/lib/hpux32"
28754 # If nothing else, assume it is conventional
28755 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
28757 # Finally, check that this is only directories
28758 for cf_path in $0 $cf_pathlist
28760 if test -d "$cf_path"; then
28761 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
28762 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
28766 # Ensure that it is nonempty
28767 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
28770 echo "$as_me:28770: result: $cf_cv_ld_searchpath" >&5
28771 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
28773 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
28775 cat >>confdefs.h <<\EOF
28776 #define HAVE_CURSES_DATA_BOOLNAMES 1
28779 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
28780 ac_config_commands="$ac_config_commands default"
28781 cat >confcache <<\_ACEOF
28782 # This file is a shell script that caches the results of configure
28783 # tests run on this system so they can be shared between configure
28784 # scripts and configure runs, see configure's option --config-cache.
28785 # It is not useful on other systems. If it contains results you don't
28786 # want to keep, you may remove or edit it.
28788 # config.status only pays attention to the cache file if you give it
28789 # the --recheck option to rerun configure.
28791 # `ac_cv_env_foo' variables (set or unset) will be overriden when
28792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28793 # following values.
28797 # The following way of writing the cache mishandles newlines in values,
28798 # but we know of no workaround that is simple, portable, and efficient.
28799 # So, don't put newlines in cache variables' values.
28800 # Ultrix sh set writes to stderr and can't be redirected directly,
28801 # and sets the high bit in the cache file unless we assign to the vars.
28804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28806 # `set' does not quote correctly, so add quotes (double-quote
28807 # substitution turns \\\\ into \\, and sed turns \\ into \).
28810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28813 # `set' quotes correctly as required by POSIX, so do not add quotes.
28815 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28824 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28826 if cmp -s $cache_file confcache; then :; else
28827 if test -w $cache_file; then
28828 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28829 cat confcache >$cache_file
28831 echo "not updating unwritable cache $cache_file"
28836 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28837 # Let make expand exec_prefix.
28838 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28840 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28841 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28842 # trailing colons and then remove the whole line if VPATH becomes empty
28843 # (actually we leave an empty line to preserve line numbers).
28844 if test "x$srcdir" = x.; then
28845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28846 s/:*\$(srcdir):*/:/;
28847 s/:*\${srcdir}:*/:/;
28849 s/^\([^=]*=[ ]*\):*/\1/;
28855 DEFS=-DHAVE_CONFIG_H
28857 : "${CONFIG_STATUS=./config.status}"
28858 ac_clean_files_save=$ac_clean_files
28859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28860 { echo "$as_me:28860: creating $CONFIG_STATUS" >&5
28861 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28862 cat >"$CONFIG_STATUS" <<_ACEOF
28864 # Generated automatically by configure.
28865 # Run this file to recreate the current configuration.
28866 # Compiler output produced by configure, useful for debugging
28867 # configure, is in config.log if it exists.
28870 SHELL=\${CONFIG_SHELL-$SHELL}
28871 ac_cs_invocation="\$0 \$@"
28873 CLICOLOR_FORCE= GREP_OPTIONS=
28874 unset CLICOLOR_FORCE GREP_OPTIONS
28877 cat >>"$CONFIG_STATUS" <<\_ACEOF
28878 # Be Bourne compatible
28879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28882 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28886 # Name of the executable.
28887 as_me=`echo "$0" |sed 's,.*[\\/],,'`
28889 if expr a : '\(a\)' >/dev/null 2>&1; then
28895 rm -f conf$$ conf$$.exe conf$$.file
28897 if ln -s conf$$.file conf$$ 2>/dev/null; then
28898 # We could just check for DJGPP; but this test a) works b) is more generic
28899 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28900 if test -f conf$$.exe; then
28901 # Don't use ln at all; we don't have any links
28906 elif ln conf$$.file conf$$ 2>/dev/null; then
28911 rm -f conf$$ conf$$.exe conf$$.file
28913 as_executable_p="test -f"
28915 # Support unset when possible.
28916 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28923 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
28924 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
28925 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
28926 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
28927 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
28928 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
28929 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
28930 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
28933 # We need space, tab and new line, in precisely that order.
28939 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
28945 # Files that config.status was made for.
28946 if test -n "$ac_config_files"; then
28947 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
28950 if test -n "$ac_config_headers"; then
28951 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
28954 if test -n "$ac_config_links"; then
28955 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
28958 if test -n "$ac_config_commands"; then
28959 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
28962 cat >>"$CONFIG_STATUS" <<\EOF
28965 \`$as_me' instantiates files from templates according to the
28966 current configuration.
28968 Usage: $0 [OPTIONS] [FILE]...
28970 -h, --help print this help, then exit
28971 -V, --version print version number, then exit
28972 -d, --debug don't remove temporary files
28973 --recheck update $as_me by reconfiguring in the same conditions
28974 --file=FILE[:TEMPLATE]
28975 instantiate the configuration file FILE
28976 --header=FILE[:TEMPLATE]
28977 instantiate the configuration header FILE
28979 Configuration files:
28982 Configuration headers:
28985 Configuration commands:
28988 Report bugs to <dickey@invisible-island.net>."
28991 cat >>"$CONFIG_STATUS" <<EOF
28994 configured by $0, generated by GNU Autoconf 2.52.20210509,
28995 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28997 Copyright 2003-2020,2021 Thomas E. Dickey
28998 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
28999 Free Software Foundation, Inc.
29000 This config.status script is free software; the Free Software Foundation
29001 gives unlimited permission to copy, distribute and modify it."
29006 cat >>"$CONFIG_STATUS" <<\EOF
29007 # If no file are specified by the user, then we need to provide default
29008 # value. By we need to know if files were specified by the user.
29014 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29015 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29017 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29021 *) # This is not an option, so the user has probably given explicit
29023 ac_need_defaults=false;;
29027 # Handling of the options.
29029 cat >>"$CONFIG_STATUS" <<EOF
29030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29031 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29032 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29034 cat >>"$CONFIG_STATUS" <<\EOF
29035 --version | --vers* | -V )
29036 echo "$ac_cs_version"; exit 0 ;;
29038 # Conflict between --help and --header
29039 { { echo "$as_me:29039: error: ambiguous option: $1
29040 Try \`$0 --help' for more information." >&5
29041 echo "$as_me: error: ambiguous option: $1
29042 Try \`$0 --help' for more information." >&2;}
29043 { (exit 1); exit 1; }; };;
29044 --help | --hel | -h )
29045 echo "$ac_cs_usage"; exit 0 ;;
29046 --debug | --d* | -d )
29048 --file | --fil | --fi | --f )
29050 CONFIG_FILES="$CONFIG_FILES $1"
29051 ac_need_defaults=false;;
29052 --header | --heade | --head | --hea )
29054 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29055 ac_need_defaults=false;;
29057 # This is an error.
29058 -*) { { echo "$as_me:29058: error: unrecognized option: $1
29059 Try \`$0 --help' for more information." >&5
29060 echo "$as_me: error: unrecognized option: $1
29061 Try \`$0 --help' for more information." >&2;}
29062 { (exit 1); exit 1; }; } ;;
29064 *) ac_config_targets="$ac_config_targets $1" ;;
29073 ## ----------------------- ##
29074 ## Running config.status. ##
29075 ## ----------------------- ##
29077 This file was extended by $as_me 2.52.20210509, executed with
29078 CONFIG_FILES = $CONFIG_FILES
29079 CONFIG_HEADERS = $CONFIG_HEADERS
29080 CONFIG_LINKS = $CONFIG_LINKS
29081 CONFIG_COMMANDS = $CONFIG_COMMANDS
29082 > "$ac_cs_invocation"
29083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29088 cat >>"$CONFIG_STATUS" <<EOF
29090 # INIT-COMMANDS section.
29093 ### Special initialization commands, used to pass information from the
29094 ### configuration-run into config.status
29096 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29098 CXX_NAME="$CXX_NAME"
29099 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29100 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29102 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29103 FORM_NAME="$FORM_NAME"
29104 LDCONFIG="$LDCONFIG"
29105 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29106 LIB_NAME="$LIB_NAME"
29107 LIB_PREFIX="$LIB_PREFIX"
29108 LIB_SUBSETS="$LIB_SUBSETS"
29109 LIB_SUFFIX="$LIB_SUFFIX"
29110 LIB_TRACING="$LIB_TRACING"
29112 MAKE_TERMINFO="$MAKE_TERMINFO"
29113 MENU_NAME="$MENU_NAME"
29114 NCURSES_MAJOR="$NCURSES_MAJOR"
29115 NCURSES_MINOR="$NCURSES_MINOR"
29116 NCURSES_OSPEED="$NCURSES_OSPEED"
29117 NCURSES_PATCH="$NCURSES_PATCH"
29118 PANEL_NAME="$PANEL_NAME"
29119 SRC_SUBDIRS="$SRC_SUBDIRS"
29120 TERMINFO="$TERMINFO"
29121 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29122 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29123 TICS_NAME="$TICS_NAME"
29124 TICS_SUFFIX="$TICS_SUFFIX"
29125 TIC_PATH="$TIC_PATH"
29126 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29127 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29128 TINFO_NAME="$TINFO_NAME"
29129 TINFO_SUFFIX="$TINFO_SUFFIX"
29130 UNALTERED_SYMS="$UNALTERED_SYMS"
29131 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29132 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29133 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29134 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29135 WILDCARD_SYMS="$WILDCARD_SYMS"
29136 WITH_CURSES_H="$with_curses_h"
29137 WITH_ECHO="${enable_echo:=yes}"
29138 WITH_OVERWRITE="$with_overwrite"
29139 cf_LIST_MODELS="$cf_list_models"
29140 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29141 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29142 cf_cv_abi_version="$cf_cv_abi_version"
29143 cf_cv_do_relink="$cf_cv_do_relink"
29144 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29145 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29146 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29147 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29148 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29149 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29150 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29151 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29152 cf_cv_rel_version="$cf_cv_rel_version"
29153 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29154 cf_cv_shared_soname='$cf_cv_shared_soname'
29155 cf_cv_shlib_version="$cf_cv_shlib_version"
29156 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29157 cf_cv_system_name="$cf_cv_system_name"
29158 cf_cv_term_driver="$with_term_driver"
29159 cf_with_ada="$cf_with_ada"
29160 cf_with_cxx_binding="$cf_with_cxx_binding"
29161 cf_with_db_install="$cf_with_db_install"
29162 cf_with_manpages="$cf_with_manpages"
29163 cf_with_tests="$cf_with_tests"
29166 with_shared_cxx="$with_shared_cxx"
29170 cat >>"$CONFIG_STATUS" <<\EOF
29171 for ac_config_target in $ac_config_targets
29173 case "$ac_config_target" in
29174 # Handling of arguments.
29175 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29176 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29177 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29178 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29179 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29180 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29181 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29182 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29183 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29184 *) { { echo "$as_me:29184: error: invalid argument: $ac_config_target" >&5
29185 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29186 { (exit 1); exit 1; }; };;
29190 # If the user did not use the arguments to specify the items to instantiate,
29191 # then the envvar interface is used. Set only those that are not.
29192 # We use the long form for the default assignment because of an extremely
29193 # bizarre bug on SunOS 4.1.3.
29194 if "$ac_need_defaults"; then
29195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29197 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29200 # Create a temporary directory, and hook for its removal unless debugging.
29203 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29204 trap '{ (exit 1); exit 1; }' 1 2 13 15
29207 # Create a (secure) tmp directory for tmp files.
29210 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29211 test -n "$tmp" && test -d "$tmp"
29214 tmp=$TMPDIR/cs$$-$RANDOM
29215 (umask 077 && mkdir $tmp)
29218 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29219 { (exit 1); exit 1; }
29224 cat >>"$CONFIG_STATUS" <<EOF
29227 # CONFIG_FILES section.
29230 # No need to generate the scripts if there are no CONFIG_FILES.
29231 # This happens for instance when ./config.status config.h
29232 if test -n "\$CONFIG_FILES"; then
29233 # Protect against being on the right side of a sed subst in config.status.
29234 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29235 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29236 s,@SHELL@,$SHELL,;t t
29237 s,@exec_prefix@,$exec_prefix,;t t
29238 s,@prefix@,$prefix,;t t
29239 s,@program_transform_name@,$program_transform_name,;t t
29240 s,@bindir@,$bindir,;t t
29241 s,@sbindir@,$sbindir,;t t
29242 s,@libexecdir@,$libexecdir,;t t
29243 s,@datarootdir@,$datarootdir,;t t
29244 s,@datadir@,$datadir,;t t
29245 s,@sysconfdir@,$sysconfdir,;t t
29246 s,@sharedstatedir@,$sharedstatedir,;t t
29247 s,@localstatedir@,$localstatedir,;t t
29248 s,@runstatedir@,$runstatedir,;t t
29249 s,@libdir@,$libdir,;t t
29250 s,@includedir@,$includedir,;t t
29251 s,@oldincludedir@,$oldincludedir,;t t
29252 s,@infodir@,$infodir,;t t
29253 s,@mandir@,$mandir,;t t
29254 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29255 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29256 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29257 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29258 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29259 s,@build_alias@,$build_alias,;t t
29260 s,@host_alias@,$host_alias,;t t
29261 s,@target_alias@,$target_alias,;t t
29262 s,@ECHO_C@,$ECHO_C,;t t
29263 s,@ECHO_N@,$ECHO_N,;t t
29264 s,@ECHO_T@,$ECHO_T,;t t
29265 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29266 s,@DEFS@,$DEFS,;t t
29267 s,@LIBS@,$LIBS,;t t
29268 s,@top_builddir@,$top_builddir,;t t
29269 s,@GREP@,$GREP,;t t
29270 s,@EGREP@,$EGREP,;t t
29271 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29272 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29273 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29274 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29275 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29276 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29277 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29278 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29279 s,@VERSION@,$VERSION,;t t
29280 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29281 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29282 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29283 s,@PACKAGE@,$PACKAGE,;t t
29284 s,@build@,$build,;t t
29285 s,@build_cpu@,$build_cpu,;t t
29286 s,@build_vendor@,$build_vendor,;t t
29287 s,@build_os@,$build_os,;t t
29288 s,@host@,$host,;t t
29289 s,@host_cpu@,$host_cpu,;t t
29290 s,@host_vendor@,$host_vendor,;t t
29291 s,@host_os@,$host_os,;t t
29292 s,@target@,$target,;t t
29293 s,@target_cpu@,$target_cpu,;t t
29294 s,@target_vendor@,$target_vendor,;t t
29295 s,@target_os@,$target_os,;t t
29296 s,@FGREP@,$FGREP,;t t
29298 s,@CFLAGS@,$CFLAGS,;t t
29299 s,@LDFLAGS@,$LDFLAGS,;t t
29300 s,@CPPFLAGS@,$CPPFLAGS,;t t
29301 s,@ac_ct_CC@,$ac_ct_CC,;t t
29302 s,@EXEEXT@,$EXEEXT,;t t
29303 s,@OBJEXT@,$OBJEXT,;t t
29304 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29306 s,@LDCONFIG@,$LDCONFIG,;t t
29308 s,@CXXFLAGS@,$CXXFLAGS,;t t
29309 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29311 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29312 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29313 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29314 s,@LINT@,$LINT,;t t
29315 s,@LINT_OPTS@,$LINT_OPTS,;t t
29316 s,@LN_S@,$LN_S,;t t
29317 s,@cf_config_suffix@,$cf_config_suffix,;t t
29318 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29319 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29320 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29321 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29322 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29323 s,@SET_MAKE@,$SET_MAKE,;t t
29324 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29325 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29326 s,@CTAGS@,$CTAGS,;t t
29327 s,@ETAGS@,$ETAGS,;t t
29328 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29329 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29330 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29331 s,@RANLIB@,$RANLIB,;t t
29332 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29334 s,@ac_ct_LD@,$ac_ct_LD,;t t
29336 s,@ac_ct_AR@,$ac_ct_AR,;t t
29338 s,@ac_ct_NM@,$ac_ct_NM,;t t
29339 s,@ARFLAGS@,$ARFLAGS,;t t
29340 s,@DESTDIR@,$DESTDIR,;t t
29341 s,@BUILD_CC@,$BUILD_CC,;t t
29342 s,@BUILD_CPP@,$BUILD_CPP,;t t
29343 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29344 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29345 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29346 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29347 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29348 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29349 s,@cf_list_models@,$cf_list_models,;t t
29350 s,@ABI_VERSION@,$ABI_VERSION,;t t
29351 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29352 s,@LIBTOOL@,$LIBTOOL,;t t
29353 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29354 s,@LT_UNDEF@,$LT_UNDEF,;t t
29355 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29356 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29357 s,@LIB_CREATE@,$LIB_CREATE,;t t
29358 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29359 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29360 s,@LIB_PREP@,$LIB_PREP,;t t
29361 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29362 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29363 s,@LIB_LINK@,$LIB_LINK,;t t
29364 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29365 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29366 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29367 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29368 s,@TICS_NAME@,$TICS_NAME,;t t
29369 s,@TINFO_NAME@,$TINFO_NAME,;t t
29370 s,@LIB_NAME@,$LIB_NAME,;t t
29371 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29372 s,@CC_G_OPT@,$CC_G_OPT,;t t
29373 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29374 s,@LD_MODEL@,$LD_MODEL,;t t
29375 s,@shlibdir@,$shlibdir,;t t
29376 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29377 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29378 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29379 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29380 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29381 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29382 s,@LINK_PROGS@,$LINK_PROGS,;t t
29383 s,@LINK_TESTS@,$LINK_TESTS,;t t
29384 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29385 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29386 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29387 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29388 s,@RPATH_LIST@,$RPATH_LIST,;t t
29389 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29390 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29391 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29392 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29393 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29394 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29395 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29396 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29397 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29399 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29400 s,@INFOCMP@,$INFOCMP,;t t
29401 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29402 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29403 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29404 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29405 s,@XTERM_KBS@,$XTERM_KBS,;t t
29406 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29407 s,@TERMINFO@,$TERMINFO,;t t
29408 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29409 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29410 s,@TERMPATH@,$TERMPATH,;t t
29411 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29412 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29413 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29414 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29415 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29416 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29417 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29418 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29419 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29420 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29421 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29422 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29423 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29424 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29425 s,@RGB_PATH@,$RGB_PATH,;t t
29426 s,@no_x11_rgb@,$no_x11_rgb,;t t
29427 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29428 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29429 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29430 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29431 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29432 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29433 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29434 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29435 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29436 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29437 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29438 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29439 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29440 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29441 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29442 s,@PTHREAD@,$PTHREAD,;t t
29443 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29444 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29445 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29446 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29447 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29448 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29449 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29450 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29451 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29452 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29453 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29454 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29455 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29456 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29457 s,@ECHO_LT@,$ECHO_LT,;t t
29458 s,@ECHO_LD@,$ECHO_LD,;t t
29459 s,@RULE_CC@,$RULE_CC,;t t
29460 s,@SHOW_CC@,$SHOW_CC,;t t
29461 s,@ECHO_CC@,$ECHO_CC,;t t
29462 s,@ECHO_LINK@,$ECHO_LINK,;t t
29463 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29464 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29465 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29466 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29467 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29468 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29469 s,@ADAFLAGS@,$ADAFLAGS,;t t
29470 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29471 s,@ADA_TRACE@,$ADA_TRACE,;t t
29472 s,@MATH_LIB@,$MATH_LIB,;t t
29473 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29474 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29475 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29476 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29477 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29478 s,@TEST_LIBS@,$TEST_LIBS,;t t
29479 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29480 s,@CXXCPP@,$CXXCPP,;t t
29481 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29482 s,@CXX_AR@,$CXX_AR,;t t
29483 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29484 s,@CXXLIBS@,$CXXLIBS,;t t
29485 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29486 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29487 s,@M4_exists@,$M4_exists,;t t
29488 s,@cf_ada_make@,$cf_ada_make,;t t
29489 s,@cf_ada_config@,$cf_ada_config,;t t
29490 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29491 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29492 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29493 s,@cf_compile_generics@,$cf_compile_generics,;t t
29494 s,@cf_generic_objects@,$cf_generic_objects,;t t
29495 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29496 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29497 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29498 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29499 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29500 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29501 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29502 s,@cf_ada_package@,$cf_ada_package,;t t
29503 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29504 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29505 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29506 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29507 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29508 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29509 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29510 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29511 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29512 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29513 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29514 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29515 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29516 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29517 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29518 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29519 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29520 s,@TICS_LIBS@,$TICS_LIBS,;t t
29521 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29522 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29523 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29524 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29525 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29526 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29527 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29528 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29529 s,@includesubdir@,$includesubdir,;t t
29530 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29531 s,@TICS_LIST@,$TICS_LIST,;t t
29532 s,@TINFO_LIST@,$TINFO_LIST,;t t
29533 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29534 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
29535 s,@FORM_NAME@,$FORM_NAME,;t t
29536 s,@MENU_NAME@,$MENU_NAME,;t t
29537 s,@PANEL_NAME@,$PANEL_NAME,;t t
29538 s,@CXX_NAME@,$CXX_NAME,;t t
29539 s,@TEST_ARGS@,$TEST_ARGS,;t t
29540 s,@TEST_DEPS@,$TEST_DEPS,;t t
29541 s,@TEST_ARG2@,$TEST_ARG2,;t t
29542 s,@TEST_DEP2@,$TEST_DEP2,;t t
29543 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
29544 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
29545 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
29546 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
29547 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
29548 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29549 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
29550 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
29551 s,@cross_compiling@,$cross_compiling,;t t
29552 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
29553 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
29554 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
29555 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
29556 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
29557 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
29558 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
29559 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
29560 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
29561 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
29562 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
29563 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
29568 cat >>"$CONFIG_STATUS" <<\EOF
29569 # Split the substitutions into bite-sized pieces for seds with
29570 # small command number limits, like on Digital OSF/1 and HP-UX.
29571 ac_max_sed_lines=48
29572 ac_sed_frag=1 # Number of current file.
29573 ac_beg=1 # First line for current file.
29574 ac_end=$ac_max_sed_lines # Line after last line for current file.
29577 while "$ac_more_lines"; do
29578 if test "$ac_beg" -gt 1; then
29579 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29581 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29583 if test ! -s $tmp/subs.frag; then
29584 ac_more_lines=false
29586 # The purpose of the label and of the branching condition is to
29587 # speed up the sed processing (if there are no `@' at all, there
29588 # is no need to browse any of the substitutions).
29589 # These are the two extra sed commands mentioned above.
29591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29592 # It is possible to make a multiline substitution using escaped newlines.
29593 # Ensure that we do not split the substitution between script fragments.
29595 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
29596 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
29597 if test -s $tmp/subs.next; then
29598 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
29599 if test ! -s $tmp/subs.edit; then
29600 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
29601 if test ! -s $tmp/subs.edit; then
29602 if test "$ac_beg" -gt 1; then
29603 ac_end=`expr "$ac_end" - 1`
29610 if test -z "$ac_sed_cmds"; then
29611 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29613 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29615 ac_sed_frag=`expr "$ac_sed_frag" + 1`
29617 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
29620 if test -z "$ac_sed_cmds"; then
29623 fi # test -n "$CONFIG_FILES"
29626 cat >>"$CONFIG_STATUS" <<\EOF
29627 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29628 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29630 - | *:- | *:-:* ) # input from stdin
29632 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29634 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29636 * ) ac_file_in=$ac_file.in ;;
29639 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29640 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29641 X"$ac_file" : 'X\(//\)[^/]' \| \
29642 X"$ac_file" : 'X\(//\)$' \| \
29643 X"$ac_file" : 'X\(/\)' \| \
29644 . : '\(.\)' 2>/dev/null ||
29646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29648 /^X\(\/\/\)$/{ s//\1/; q; }
29649 /^X\(\/\).*/{ s//\1/; q; }
29651 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29652 { case "$ac_dir" in
29653 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29657 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29658 case $as_mkdir_dir in
29659 # Skip DOS drivespec
29660 ?:) as_incr_dir=$as_mkdir_dir ;;
29662 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29663 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29668 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
29669 # A "../" for each directory in $ac_dir_suffix.
29670 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
29672 ac_dir_suffix= ac_dots=
29677 if test -z "$ac_dots"; then
29680 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
29682 [\\/]* | ?:[\\/]* )
29683 ac_srcdir="$srcdir$ac_dir_suffix";
29684 ac_top_srcdir="$srcdir" ;;
29685 *) # Relative path.
29686 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
29687 ac_top_srcdir="$ac_dots$srcdir" ;;
29691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29692 *) ac_INSTALL=$ac_dots$INSTALL ;;
29695 if test x"$ac_file" != x-; then
29696 { echo "$as_me:29696: creating $ac_file" >&5
29697 echo "$as_me: creating $ac_file" >&6;}
29700 # Let's still pretend it is `configure' which instantiates (i.e., don't
29701 # use $as_me), people would be surprised to read:
29702 # /* config.h. Generated automatically by config.status. */
29703 configure_input="Generated automatically from `echo $ac_file_in |
29704 sed 's,.*/,,'` by configure."
29706 # First look for the input files in the build tree, otherwise in the
29708 ac_file_inputs=`IFS=:
29709 for f in $ac_file_in; do
29711 -) echo $tmp/stdin ;;
29713 # Absolute (can't be DOS-style, as IFS=:)
29714 test -f "$f" || { { echo "$as_me:29714: error: cannot find input file: $f" >&5
29715 echo "$as_me: error: cannot find input file: $f" >&2;}
29716 { (exit 1); exit 1; }; }
29719 if test -f "$f"; then
29722 elif test -f "$srcdir/$f"; then
29727 { { echo "$as_me:29727: error: cannot find input file: $f" >&5
29728 echo "$as_me: error: cannot find input file: $f" >&2;}
29729 { (exit 1); exit 1; }; }
29732 done` || { (exit 1); exit 1; }
29734 cat >>"$CONFIG_STATUS" <<\EOF
29735 ac_warn_datarootdir=no
29736 if test x"$ac_file" != x-; then
29737 for ac_item in $ac_file_inputs
29739 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
29740 if test -n "$ac_seen"; then
29741 ac_used=`grep '@datarootdir@' "$ac_item"`
29742 if test -z "$ac_used"; then
29743 { echo "$as_me:29743: WARNING: datarootdir was used implicitly but not set:
29745 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
29747 ac_warn_datarootdir=yes
29750 ac_seen=`grep '${datarootdir}' "$ac_item"`
29751 if test -n "$ac_seen"; then
29752 { echo "$as_me:29752: WARNING: datarootdir was used explicitly but not set:
29754 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
29756 ac_warn_datarootdir=yes
29761 if test "x$ac_warn_datarootdir" = xyes; then
29762 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
29766 cat >>"$CONFIG_STATUS" <<EOF
29770 cat >>"$CONFIG_STATUS" <<\EOF
29772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29773 s,@configure_input@,$configure_input,;t t
29774 s,@srcdir@,$ac_srcdir,;t t
29775 s,@top_srcdir@,$ac_top_srcdir,;t t
29776 s,@INSTALL@,$ac_INSTALL,;t t
29777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29779 if test x"$ac_file" != x-; then
29780 cp "$tmp/out" "$ac_file"
29782 for ac_name in prefix exec_prefix datarootdir
29784 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
29785 if test -n "$ac_seen"; then
29786 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
29787 if test -z "$ac_init"; then
29788 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
29789 { echo "$as_me:29789: WARNING: Variable $ac_name is used but was not set:
29791 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
29796 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
29797 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
29798 if test -s $tmp/out; then
29799 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
29800 { echo "$as_me:29800: WARNING: Some variables may not be substituted:
29802 echo "$as_me: WARNING: Some variables may not be substituted:
29812 cat >>"$CONFIG_STATUS" <<\EOF
29815 # CONFIG_HEADER section.
29818 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29819 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29821 # ac_d sets the value in "#define NAME VALUE" lines.
29822 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29823 ac_dB='[ ].*$,\1#\2'
29826 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
29827 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29828 ac_iB='\([ ]\),\1#\2define\3'
29831 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29832 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29833 ac_uB='$,\1#\2define\3'
29837 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29840 - | *:- | *:-:* ) # input from stdin
29842 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29844 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29846 * ) ac_file_in=$ac_file.in ;;
29849 test x"$ac_file" != x- && { echo "$as_me:29849: creating $ac_file" >&5
29850 echo "$as_me: creating $ac_file" >&6;}
29852 # First look for the input files in the build tree, otherwise in the
29854 ac_file_inputs=`IFS=:
29855 for f in $ac_file_in; do
29857 -) echo $tmp/stdin ;;
29859 # Absolute (can't be DOS-style, as IFS=:)
29860 test -f "$f" || { { echo "$as_me:29860: error: cannot find input file: $f" >&5
29861 echo "$as_me: error: cannot find input file: $f" >&2;}
29862 { (exit 1); exit 1; }; }
29865 if test -f "$f"; then
29868 elif test -f "$srcdir/$f"; then
29873 { { echo "$as_me:29873: error: cannot find input file: $f" >&5
29874 echo "$as_me: error: cannot find input file: $f" >&2;}
29875 { (exit 1); exit 1; }; }
29878 done` || { (exit 1); exit 1; }
29879 # Remove the trailing spaces.
29880 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29884 # Transform confdefs.h into a list of #define's. We won't use it as a sed
29885 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
29886 # be either 'cat' or 'sort'.
29887 cat confdefs.h | uniq >conftest.vals
29889 # Break up conftest.vals because some shells have a limit on
29890 # the size of here documents, and old seds have small limits too.
29892 rm -f conftest.tail
29893 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
29894 while grep . conftest.vals >/dev/null
29896 # Write chunks of a limited-size here document to conftest.frag.
29897 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
29898 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
29899 echo 'CEOF' >> "$CONFIG_STATUS"
29900 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
29901 rm -f conftest.vals
29902 mv conftest.tail conftest.vals
29904 rm -f conftest.vals
29906 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
29908 echo ' cat >> conftest.edit <<CEOF
29909 /@DEFS@/r conftest.frag
29912 sed -f conftest.edit $tmp/in > $tmp/out
29914 mv $tmp/out $tmp/in
29915 rm -f conftest.edit conftest.frag
29916 ' >> "$CONFIG_STATUS"
29918 cat >>"$CONFIG_STATUS" <<\EOF
29919 # Let's still pretend it is `configure' which instantiates (i.e., don't
29920 # use $as_me), people would be surprised to read:
29921 # /* config.h. Generated automatically by config.status. */
29922 if test x"$ac_file" = x-; then
29923 echo "/* Generated automatically by configure. */" >$tmp/config.h
29925 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
29927 cat $tmp/in >>$tmp/config.h
29929 if test x"$ac_file" != x-; then
29930 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
29931 { echo "$as_me:29931: $ac_file is unchanged" >&5
29932 echo "$as_me: $ac_file is unchanged" >&6;}
29934 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29935 X"$ac_file" : 'X\(//\)[^/]' \| \
29936 X"$ac_file" : 'X\(//\)$' \| \
29937 X"$ac_file" : 'X\(/\)' \| \
29938 . : '\(.\)' 2>/dev/null ||
29940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29942 /^X\(\/\/\)$/{ s//\1/; q; }
29943 /^X\(\/\).*/{ s//\1/; q; }
29945 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29946 { case "$ac_dir" in
29947 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29951 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29952 case $as_mkdir_dir in
29953 # Skip DOS drivespec
29954 ?:) as_incr_dir=$as_mkdir_dir ;;
29956 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29957 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29964 mv "$tmp/config.h" "$ac_file"
29968 rm -f $tmp/config.h
29972 cat >>"$CONFIG_STATUS" <<\EOF
29974 # CONFIG_COMMANDS section.
29976 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29977 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29978 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29982 if test "x$cf_with_tests" != xno ; then
29986 if test ! -d "$srcdir/$cf_dir" ; then
29988 elif test -f "$srcdir/$cf_dir/programs" ; then
29989 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
29995 cf_prefix=$LIB_PREFIX
29997 case "$cf_cv_shlib_version" in
29998 (cygdll|msysdll|mingw|msvcdll)
29999 TINFO_NAME=$TINFO_ARG_SUFFIX
30004 if test -n "$TINFO_SUFFIX" ; then
30005 case "$TINFO_SUFFIX" in
30007 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30008 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30011 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30012 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30015 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30016 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30021 for cf_dir in $SRC_SUBDIRS
30023 if test ! -d "$srcdir/$cf_dir" ; then
30025 elif test -f "$srcdir/$cf_dir/modules" ; then
30030 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
30032 cf_awk_program="$cf_awk_program\
30033 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
30034 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
30038 if test "x$WILDCARD_SYMS" = xno
30040 cf_awk_program="$cf_awk_program\
30041 /[ ]_\\*;/ { skip=1; next; }\
30045 if test "x$cf_awk_program" != "x"
30047 cat >>$cf_dir/Makefile <<CF_EOF
30049 # Generated by CF_LIB_RULES
30050 resulting.map: $UNALTERED_SYMS
30051 $AWK 'BEGIN { skip = 1; last=""; } \
30053 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30054 skip = 0; last = \$\$0; } \
30055 END { print last; }' < "$UNALTERED_SYMS" >\$@
30058 rm -f resulting.map
30062 for cf_item in $cf_LIST_MODELS
30068 cf_depsuf=$cf_suffix
30071 case "$cf_cv_system_name" in
30079 cf_depsuf=$cf_suffix
30082 case "$cf_cv_system_name" in
30090 cf_depsuf=$cf_suffix
30093 case "$cf_cv_system_name" in
30096 cf_depsuf=$cf_suffix
30100 cf_depsuf='.dll.lib'
30102 (cygwin*|msys*|mingw*)
30108 cf_depsuf=$cf_suffix
30114 cf_depsuf=$cf_suffix
30118 cf_depsuf=$cf_suffix
30124 cf_depsuf=$cf_suffix
30137 cf_depsuf=$cf_suffix
30140 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30142 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30143 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30146 if test "$cf_dir" = "c++"
30149 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30151 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30155 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30157 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30160 test -z "$cf_libname" && cf_libname="$cf_dir"
30161 if test "$cf_item" = shared ; then
30162 if test -n "${LIB_SUFFIX}"
30164 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30166 cf_shared_suffix="$cf_suffix"
30168 if test "$cf_cv_do_symlinks" = yes ; then
30171 case "$cf_cv_shlib_version" in
30173 cf_version_name=REL_VERSION
30176 cf_version_name=ABI_VERSION
30180 if test -n "$cf_version_name"
30182 case "$cf_cv_system_name" in
30185 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30188 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30192 if test -n "${USE_LIB_SUFFIX}"
30194 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30196 cf_shared_suffix="$cf_suffix"
30199 # cygwin needs import library, and has unique naming convention
30200 # use autodetected ${cf_prefix} for import lib and static lib, but
30201 # use 'cyg' prefix for shared lib.
30202 case "$cf_cv_shlib_version" in
30204 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30205 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30208 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30209 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30212 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30213 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30216 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30217 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30223 if test -n "$cf_add_lib"
30225 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30229 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30230 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30233 if test "$cf_dir" = ncurses ; then
30234 cf_subsets="$LIB_SUBSETS"
30235 cf_r_parts="$cf_subsets"
30236 cf_liblist="$Libs_To_Make"
30238 while test -n "$cf_r_parts"
30240 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30241 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30242 if test "$cf_l_parts" != "$cf_r_parts" ; then
30244 case "$cf_l_parts" in
30246 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30249 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30255 if test -n "$cf_add_lib"; then
30256 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30263 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30266 if test "$cf_dir" = c++; then
30267 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30269 for cf_item in $Libs_To_Make
30275 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30278 for cf_test in $cf_list
30280 if test "$cf_test" = "$cf_item"
30282 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30287 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30289 Libs_To_Make="$cf_list"
30293 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30294 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30295 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30296 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30298 $AWK -f "$srcdir/mk-0th.awk" \
30299 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30300 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30302 for cf_subset in $cf_subsets
30305 for cf_item in $cf_LIST_MODELS
30308 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30310 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30313 if test "$CXX_MODEL" = SHARED; then
30314 case "$cf_cv_shlib_version" in
30315 (cygdll|msysdll|mingw|msvcdll)
30316 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30318 echo "${as_me:-configure}:30318: testing overriding CXX_MODEL to SHARED ..." 1>&5
30320 with_shared_cxx=yes
30323 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30331 cf_depsuf=$cf_suffix
30334 case "$cf_cv_system_name" in
30342 cf_depsuf=$cf_suffix
30345 case "$cf_cv_system_name" in
30353 cf_depsuf=$cf_suffix
30356 case "$cf_cv_system_name" in
30359 cf_depsuf=$cf_suffix
30363 cf_depsuf='.dll.lib'
30365 (cygwin*|msys*|mingw*)
30371 cf_depsuf=$cf_suffix
30377 cf_depsuf=$cf_suffix
30381 cf_depsuf=$cf_suffix
30387 cf_depsuf=$cf_suffix
30400 cf_depsuf=$cf_suffix
30403 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30405 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30406 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30410 (libtool) cf_subdir='obj_lo' ;;
30411 (normal) cf_subdir='objects' ;;
30412 (debug) cf_subdir='obj_g' ;;
30413 (profile) cf_subdir='obj_p' ;;
30415 case "$cf_cv_system_name" in
30417 cf_subdir='objects' ;;
30419 cf_subdir='obj_s' ;;
30423 # Test for case where we build libtinfo with a different name.
30425 if test "$cf_dir" = ncurses ; then
30426 case "$cf_subset" in
30428 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30431 cf_libname=$TINFO_LIB_SUFFIX
30434 cf_libname=$TICS_LIB_SUFFIX
30437 elif test "$cf_dir" = c++ ; then
30439 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30441 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30443 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30446 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30448 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30450 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30452 if test -n "${USE_ARG_SUFFIX}" ; then
30453 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30454 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30457 # These dependencies really are for development, not
30458 # builds, but they are useful in porting, too.
30459 cf_depend="../include/ncurses_cfg.h"
30460 if test "$srcdir" = "."; then
30463 cf_reldir="\${srcdir}"
30466 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30467 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30468 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30469 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30473 old_cf_suffix="$cf_suffix"
30474 if test "$cf_cv_shlib_version_infix" = yes ; then
30475 if test -n "$USE_LIB_SUFFIX" ; then
30476 case "$USE_LIB_SUFFIX" in
30478 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30479 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30480 cf_dir_suffix=tw$EXTRA_SUFFIX
30483 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30484 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30485 cf_dir_suffix=t$EXTRA_SUFFIX
30488 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30489 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30490 cf_dir_suffix=w$EXTRA_SUFFIX
30493 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30494 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30495 cf_dir_suffix=$EXTRA_SUFFIX
30501 $AWK -f "$srcdir/mk-1st.awk" \
30502 name=${cf_libname}${cf_dir_suffix} \
30503 traces=$LIB_TRACING \
30505 CXX_MODEL=$CXX_MODEL \
30506 LIB_SUFFIX=$LIB_SUFFIX \
30507 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
30508 make_phony="${cf_cv_make_PHONY:-no}" \
30510 prefix=$cf_prefix \
30511 suffix=$cf_suffix \
30512 subset=$cf_subset \
30513 driver=$cf_cv_term_driver \
30515 TermlibRoot=$TINFO_NAME \
30516 TermlibSuffix=$TINFO_SUFFIX \
30517 ShlibVer=$cf_cv_shlib_version \
30518 ShlibVerInfix=$cf_cv_shlib_version_infix \
30519 ReLink=${cf_cv_do_relink:-no} \
30520 ReRanlib=${cf_cv_do_reranlib:-yes} \
30521 DoLinks=$cf_cv_do_symlinks \
30522 rmSoLocs=$cf_cv_rm_so_locs \
30523 ldconfig="$LDCONFIG" \
30524 overwrite=$WITH_OVERWRITE \
30525 depend="$cf_depend" \
30527 libtool_version="$LIBTOOL_VERSION" \
30528 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30530 cf_suffix="$old_cf_suffix"
30532 for cf_subdir2 in $cf_subdirs lib
30534 test "$cf_subdir" = "$cf_subdir2" && break
30536 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
30537 $AWK -f "$srcdir/mk-2nd.awk" \
30539 traces=$LIB_TRACING \
30542 subset=$cf_subset \
30545 crenames=$cf_cv_prog_CC_c_o \
30546 cxxrenames=$cf_cv_prog_CXX_c_o \
30547 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30548 cf_subdirs="$cf_subdirs $cf_subdir"
30553 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
30557 echo '# generated by CF_LIB_RULES' >> Makefile
30559 if test "x$cf_cv_make_PHONY" = xyes ; then
30560 cat >> Makefile <<-CF_EOF
30564 .PHONY : install.includes
30565 .PHONY : uninstall.includes
30566 .PHONY : install.libs
30567 .PHONY : uninstall.libs
30571 for cf_dir in $SRC_SUBDIRS
30573 if test ! -d "$srcdir/$cf_dir" ; then
30577 if test -f "$cf_dir/Makefile" ; then
30580 echo 'libs \' >> Makefile
30581 echo 'install.libs \' >> Makefile
30582 echo 'uninstall.libs ::' >> Makefile
30583 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
30588 if test -f "$srcdir/$cf_dir/modules" ; then
30590 if test "x$cf_cv_make_PHONY" = xyes ; then
30591 cat >> Makefile <<-CF_EOF
30593 .PHONY : install.$cf_dir
30594 .PHONY : uninstall.$cf_dir
30599 if test -f "$srcdir/$cf_dir/headers" ; then
30600 cat >> Makefile <<CF_EOF
30601 install.includes \\
30602 uninstall.includes \\
30606 cat >> Makefile <<CF_EOF
30613 uninstall.$cf_dir ::
30614 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30616 elif test -f "$srcdir/$cf_dir/headers" ; then
30617 cat >> Makefile <<CF_EOF
30622 install.includes \\
30623 uninstall.includes ::
30624 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30629 if test "x$cf_cv_make_PHONY" = xyes ; then
30630 cat >> Makefile <<-CF_EOF
30632 .PHONY : install.data
30633 .PHONY : uninstall.data
30637 if test "x$cf_with_db_install" = xyes; then
30638 cat >> Makefile <<CF_EOF
30640 install.libs uninstall.libs \\
30641 install.data uninstall.data ::
30642 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30645 cat >> Makefile <<CF_EOF
30647 install.libs uninstall.libs ::
30648 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30652 if test "x$cf_with_manpages" = xyes; then
30654 if test "x$cf_cv_make_PHONY" = xyes ; then
30655 cat >> Makefile <<-CF_EOF
30657 .PHONY : install.man
30658 .PHONY : uninstall.man
30662 cat >> Makefile <<CF_EOF
30666 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
30670 cat >> Makefile <<CF_EOF
30673 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
30674 rm -f headers.sh headers.sed mk_shared_lib.sh
30675 rm -f edit_man.* man_alias.*
30676 rm -rf \${DIRS_TO_MAKE}
30679 # Special case: tack's manpage lives in its own directory.
30680 if test "x$cf_with_manpages" = xyes; then
30681 if test "x$cf_with_tack" = "xyes"; then
30682 cat >> Makefile <<CF_EOF
30686 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
30691 rm -f headers.sed headers.sh
30693 echo creating headers.sh
30694 cat >headers.sh <<CF_EOF
30696 # This shell script is generated by the 'configure' script. It is invoked in a
30697 # subdirectory of the build tree. It generates a sed-script in the parent
30698 # directory that is used to adjust includes for header files that reside in a
30699 # subdirectory of /usr/include, etc.
30701 while test \$# != 3
30703 PRG="\$PRG \$1"; shift
30708 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
30709 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
30710 echo installing \$SRC in \$DST
30713 if test "$WITH_CURSES_H" = yes; then
30714 cat >>headers.sh <<CF_EOF
30717 END=\`basename \$DST\`
30718 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30720 NAME=\`basename \$i\`
30721 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30725 echo "" >> \$TMPSED
30731 cat >>headers.sh <<CF_EOF
30734 END=\`basename \$DST\`
30735 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30737 NAME=\`basename \$i\`
30738 if test "\$NAME" = "curses.h"
30740 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30743 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30747 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30752 cat >>headers.sh <<CF_EOF
30754 sed -f \$TMPSED \$SRC > \$TMPSRC
30755 NAME=\`basename \$SRC\`
30757 if test "$WITH_CURSES_H" != yes; then
30758 cat >>headers.sh <<CF_EOF
30759 test "\$NAME" = "curses.h" && NAME=ncurses.h
30762 cat >>headers.sh <<CF_EOF
30763 # Just in case someone gzip'd manpages, remove the conflicting copy.
30764 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
30766 eval \$PRG \$TMPSRC \$DST/\$NAME
30767 rm -f \$TMPSRC \$TMPSED
30770 chmod 0755 headers.sh
30772 for cf_dir in $SRC_SUBDIRS
30774 if test ! -d "$srcdir/$cf_dir" ; then
30778 if test -f "$srcdir/$cf_dir/headers" ; then
30779 $AWK -f "$srcdir/mk-hdr.awk" \
30780 subset="$LIB_SUBSETS" \
30781 compat="$WITH_CURSES_H" \
30782 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
30785 if test -f "$srcdir/$cf_dir/modules" ; then
30786 if test "$cf_dir" != "c++" ; then
30787 if test "x$cf_cv_make_PHONY" = xyes ; then
30788 cat >> $cf_dir/Makefile <<-CF_EOF
30794 cat >>$cf_dir/Makefile <<"CF_EOF"
30795 depend : ${AUTO_SRC}
30796 makedepend -- ${CPPFLAGS} -- ${C_SRC}
30798 # DO NOT DELETE THIS LINE -- make depend depends on it.
30804 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
30805 if test -z "$USE_OLD_MAKERULES" ; then
30806 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
30814 cat >>"$CONFIG_STATUS" <<\EOF
30816 { (exit 0); exit 0; }
30818 chmod +x "$CONFIG_STATUS"
30819 ac_clean_files=$ac_clean_files_save
30821 # configure is writing to config.log, and then calls config.status.
30822 # config.status does its own redirection, appending to config.log.
30823 # Unfortunately, on DOS this fails, as config.log is still kept open
30824 # by configure, so config.status won't be able to write to it; its
30825 # output is simply discarded. So we exec the FD to /dev/null,
30826 # effectively closing config.log, so it can be properly (re)opened and
30827 # appended to by config.status. When coming back to configure, we
30828 # need to make the FD available again.
30829 if test "$no_create" != yes; then
30832 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
30834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30835 # would make configure fail if this is the last instruction.
30836 "$ac_cs_success" || { (exit 1); exit 1; }
30838 ${MAKE:-make} preinstall