2 # From configure.in Revision: 1.770 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20230903.
6 # Copyright 2003-2022,2023 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --with-abi-altered=XXX override visible ABI version, for packaging
720 --without-ada suppress check for Ada compiler, don't build demo
721 --without-cxx do not adjust ncurses bool to match C++
722 --without-cxx-binding do not build C++ binding and demo
723 --disable-db-install suppress install of terminal database
724 --without-manpages suppress install of manpages
725 --without-progs suppress build/install with programs (e.g., tic)
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X name ncurses*X-config file with X
729 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix=XXX suffix pkg-config files with XXX
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version[={rel|abi}] use release or ABI version in shared library file names
756 --with-libtool-opts=XXX give libtool additional options XXX
757 --with-export-syms=SYM-FILE limit symbols exported by libtool to those listed in SYM-FILE
758 --with-versioned-syms=MAP-FILE version ELF shared library symbols per MAP-FILE
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix X to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --disable-setuid-environ restrict setuid use of ncurses environment variables
789 --enable-symlinks make tic use symbolic links not hard links
790 --enable-broken_linker compile with broken-linker support code
791 --enable-bsdpad recognize BSD-style prefix padding
792 --disable-widec compile without wide character and UTF-8 support
793 --disable-lp64 allow chtype to be long (ignore _LP64)
794 --disable-largefile omit support for large files
795 --disable-tparm-varargs compile tparm() without varargs interface
796 --disable-tic-depends link tic library without explicit dependency on ncurses library
797 --enable-wattr-macros enable wattr* macros
798 --with-x11-rgb=FILE obtain X11 color definitions from FILE (default: EPREFIX/lib/X11/rgb.txt)
799 --with-bool=TYPE fall back to TYPE for curses 'bool' typedef
800 --with-caps=alt compile with alternate Caps file
801 --with-chtype=TYPE override type of chtype
802 --with-ospeed=TYPE override type of ospeed variable
803 --with-mmask-t=TYPE override type of mmask_t
804 --with-ccharw-max=XXX override size CCHARW_MAX
805 --enable-signed-char use signed chars for Boolean array in term.h
806 --with-tparm-arg=TYPE override parameter type of tparm
807 --with-rcs-ids compile-in RCS identifiers
808 Options to Specify How Manpages are Installed:
809 --with-manpage-format specify manpage-format: gzip/compress/bzip2/xz,
810 BSDI/normal and optionally formatted/catonly,
812 --with-manpage-renames specify manpage-renaming
813 --with-manpage-aliases specify manpage-aliases using .so
814 --with-manpage-symlinks specify manpage-aliases using symlinks
815 --with-manpage-tbl specify manpage processing with tbl
817 --disable-ext-funcs disable function-extensions
818 --enable-sp-funcs enable SCREEN-extensions
819 --enable-term-driver enable terminal-driver
820 --enable-const compile with extra/non-standard const
821 --enable-ext-colors compile for 256-color support
822 --enable-ext-mouse compile for extended mouse-encoding
823 --enable-ext-putwin compile with extended putwin/screendump
824 --enable-no-padding compile with $NCURSES_NO_PADDING code
825 --enable-sigwinch compile with SIGWINCH handler
826 --enable-tcap-names compile with user-definable terminal capabilities
828 --with-pthread use POSIX thread library
829 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
830 --enable-weak-symbols enable weak-symbols for pthreads
831 --enable-reentrant compile with reentrant code
832 --disable-opaque-curses do not make WINDOW, etc., structures opaque
833 --disable-opaque-form do not make form library structures opaque
834 --disable-opaque-menu do not make menu library structures opaque
835 --disable-opaque-panel do not make panel library structures opaque
836 --with-wrap-prefix=XXX override prefix used for public variables
838 --without-develop disable development options
839 --enable-hard-tabs compile with hard-tabs code
840 --enable-xmc-glitch compile with support for xmc (magic-cookie)
842 --disable-assumed-color do not assume anything about default-colors
843 --disable-hashmap compile without hashmap scrolling-optimization
844 --enable-check-size compile-in code to detect screensize
845 --enable-colorfgbg compile-in experimental $COLORFGBG code
846 --enable-fvisibility compile with -fvisibility=hidden
847 --enable-interop compile-in interop bindings
848 --enable-safe-sprintf compile with experimental safe-sprintf code
849 --disable-scroll-hints compile without scroll-hints code
850 --enable-wgetch-events compile with wgetch-events code
851 --enable-exp-win32 compile with experimental-Windows driver
852 Testing/development Options:
853 --disable-echo do not display "compiling" commands
854 --disable-stripping do not strip (debug info) installed executables
855 --with-strip-program=XX specify program to use when stripping in install
856 --enable-warnings test: turn on gcc compiler warnings
857 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
858 --enable-string-hacks work around bogus compiler/loader warnings
859 --enable-assertions test: turn on generation of assertion code
860 --with-dmalloc test: use Gray Watson's dmalloc library
861 --with-dbmalloc test: use Conor Cahill's dbmalloc library
862 --with-valgrind test: use valgrind
863 --disable-leaks test: free permanent memory, analyze leaks
864 --enable-expanded test: generate functions for certain macros
865 --disable-macros test: use functions rather than macros
866 --with-trace test: add trace() function to all models of ncurses
867 --disable-gnat-projects test: disable GNAT projects even if usable
869 --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)
870 --with-ada-include=DIR find Ada95 includes in DIR (default: PREFIX/share/ada/adainclude)
871 --with-ada-objects=DIR find Ada95 objects in DIR (default: PREFIX/lib/ada/adalib)
872 --with-ada-sharedlib build Ada95 shared library; requires GNAT project support
873 --with-ada-libname=XXX use XXX as Ada95 library name
874 Library basenames for pkgsrc:
875 --with-form-libname=XXX override form basename of library
876 --with-menu-libname=XXX override menu basename of library
877 --with-panel-libname=XXX override panel basename of library
878 --with-cxx-libname=XXX override ncurses++ basename of library
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
888 CXX C++ compiler command
889 CXXFLAGS C++ compiler flags
890 CXXCPP C++ preprocessor
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
903 # A "../" for each directory in /$ac_subdir.
904 ac_dots=`echo "$ac_subdir" |
905 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
908 .) # No --srcdir option. We are building in place.
909 ac_sub_srcdir="$srcdir" ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
913 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f "$ac_sub_srcdir/configure.gnu"; then
919 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
920 elif test -f "$ac_sub_srcdir/configure"; then
922 $SHELL "$ac_sub_srcdir/configure" --help=recursive
923 elif test -f "$ac_sub_srcdir/configure.ac" ||
924 test -f "$ac_sub_srcdir/configure.in"; then
926 "$ac_configure" --help
928 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
934 test -n "$ac_init_help" && exit 0
935 if "$ac_init_version"; then
938 Copyright 2003-2022,2023 Thomas E. Dickey
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.52.20230903. Invocation command line was
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
992 # Keep a trace of the command line.
993 # Strip out --no-create and --no-recursion so they do not pile up.
994 # Also quote any args containing shell meta-characters.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c) ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1004 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1006 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1008 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1011 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 trap 'exit_status=$?
1018 # Save into config.log some information that might help in debugging.
1020 echo "## ----------------- ##" >&5
1021 echo "## Cache variables. ##" >&5
1022 echo "## ----------------- ##" >&5
1024 # The following way of writing the cache mishandles newlines in values,
1027 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 sed "/^$/d" confdefs.h >conftest.log
1040 if test -s conftest.log; then
1042 echo "## ------------ ##" >&5
1043 echo "## confdefs.h. ##" >&5
1044 echo "## ------------ ##" >&5
1046 cat conftest.log >&5
1049 test "$ac_signal" != 0 &&
1050 echo "$as_me: caught signal $ac_signal" >&5
1051 echo "$as_me: exit $exit_status" >&5
1052 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1055 for ac_signal in 1 2 13 15; do
1056 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1061 rm -rf conftest* confdefs.h
1062 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1065 # Let the site file select an alternate cache file if it wants to.
1066 # Prefer explicitly selected file to automatically selected ones.
1067 if test -z "$CONFIG_SITE"; then
1068 if test "x$prefix" != xNONE; then
1069 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1071 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1074 for ac_site_file in $CONFIG_SITE; do
1075 if test -r "$ac_site_file"; then
1076 { echo "$as_me:1076: loading site script $ac_site_file" >&5
1077 echo "$as_me: loading site script $ac_site_file" >&6;}
1078 cat "$ac_site_file" >&5
1083 if test -r "$cache_file"; then
1084 # Some versions of bash will fail to source /dev/null (special
1085 # files actually), so we avoid doing that.
1086 if test -f "$cache_file"; then
1087 { echo "$as_me:1087: loading cache $cache_file" >&5
1088 echo "$as_me: loading cache $cache_file" >&6;}
1090 [\\/]* | ?:[\\/]* ) . $cache_file;;
1091 *) . ./$cache_file;;
1095 { echo "$as_me:1095: creating cache $cache_file" >&5
1096 echo "$as_me: creating cache $cache_file" >&6;}
1100 # Check that the precious variables saved in the cache have kept the same
1102 ac_cache_corrupted=false
1103 for ac_var in `(set) 2>&1 |
1104 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1106 eval ac_new_set=\$ac_env_${ac_var}_set
1107 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1108 eval ac_new_val="\$ac_env_${ac_var}_value"
1109 case "$ac_old_set,$ac_new_set" in
1111 { echo "$as_me:1111: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1112 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1113 ac_cache_corrupted=: ;;
1115 { echo "$as_me:1115: error: \`$ac_var' was not set in the previous run" >&5
1116 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1117 ac_cache_corrupted=: ;;
1120 if test "x$ac_old_val" != "x$ac_new_val"; then
1121 { echo "$as_me:1121: error: \`$ac_var' has changed since the previous run:" >&5
1122 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1123 { echo "$as_me:1123: former value: $ac_old_val" >&5
1124 echo "$as_me: former value: $ac_old_val" >&2;}
1125 { echo "$as_me:1125: current value: $ac_new_val" >&5
1126 echo "$as_me: current value: $ac_new_val" >&2;}
1127 ac_cache_corrupted=:
1130 # Pass precious variables to config.status. It doesn't matter if
1131 # we pass some twice (in addition to the command line arguments).
1132 if test "$ac_new_set" = set; then
1133 case "$ac_new_val" in
1134 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1135 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1136 ac_configure_args="$ac_configure_args '$ac_arg'"
1138 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1143 if "$ac_cache_corrupted"; then
1144 { echo "$as_me:1144: error: changes in the environment can compromise the build" >&5
1145 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1146 { { echo "$as_me:1146: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1147 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1148 { (exit 1); exit 1; }; }
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1154 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1156 ac_main_return="return"
1158 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1160 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1172 echo "#! $SHELL" >conftest.sh
1173 echo "exit 0" >>conftest.sh
1174 chmod +x conftest.sh
1175 if { (echo "$as_me:1175: PATH=\".;.\"; conftest.sh") >&5
1176 (PATH=".;."; conftest.sh) 2>&5
1178 echo "$as_me:1178: \$? = $ac_status" >&5
1179 (exit "$ac_status"); }; then
1180 ac_path_separator=';'
1184 PATH_SEPARATOR="$ac_path_separator"
1187 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1191 for ac_prog in ggrep grep
1193 # Extract the first word of "$ac_prog", so it can be a program name with args.
1194 set dummy $ac_prog; ac_word=$2
1195 echo "$as_me:1195: checking for $ac_word" >&5
1196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197 if test "${ac_cv_prog_GREP+set}" = set; then
1198 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 if test -n "$GREP"; then
1201 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1203 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 $as_executable_p "$ac_dir/$ac_word" || continue
1209 ac_cv_prog_GREP="$ac_prog"
1210 echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1216 GREP=$ac_cv_prog_GREP
1217 if test -n "$GREP"; then
1218 echo "$as_me:1218: result: $GREP" >&5
1219 echo "${ECHO_T}$GREP" >&6
1221 echo "$as_me:1221: result: no" >&5
1222 echo "${ECHO_T}no" >&6
1225 test -n "$GREP" && break
1227 test -n "$GREP" || GREP=": "
1229 echo "$as_me:1229: checking for egrep" >&5
1230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1231 if test "${ac_cv_path_EGREP+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1235 then ac_cv_path_EGREP="$GREP -E"
1237 for ac_prog in gegrep egrep
1239 # Extract the first word of "$ac_prog", so it can be a program name with args.
1240 set dummy $ac_prog; ac_word=$2
1241 echo "$as_me:1241: checking for $ac_word" >&5
1242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1243 if test "${ac_cv_path_EGREP+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1251 ac_save_IFS=$IFS; IFS=$ac_path_separator
1253 for ac_dir in $ac_dummy; do
1255 test -z "$ac_dir" && ac_dir=.
1256 if $as_executable_p "$ac_dir/$ac_word"; then
1257 ac_cv_path_EGREP="$ac_dir/$ac_word"
1258 echo "$as_me:1258: found $ac_dir/$ac_word" >&5
1266 EGREP=$ac_cv_path_EGREP
1268 if test -n "$EGREP"; then
1269 echo "$as_me:1269: result: $EGREP" >&5
1270 echo "${ECHO_T}$EGREP" >&6
1272 echo "$as_me:1272: result: no" >&5
1273 echo "${ECHO_T}no" >&6
1276 test -n "$EGREP" && break
1278 test -n "$EGREP" || EGREP=": "
1280 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1280: error: cannot find workable egrep" >&5
1281 echo "$as_me: error: cannot find workable egrep" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_path_EGREP" >&5
1286 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1287 EGREP="$ac_cv_path_EGREP"
1289 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1290 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1291 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1292 cf_cv_abi_version=${NCURSES_MAJOR}
1293 cf_cv_abi_default=${NCURSES_MAJOR}
1294 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1295 cf_cv_timestamp=`date`
1296 echo "$as_me:1296: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1297 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1299 if test -f "$srcdir/VERSION" ; then
1300 echo "$as_me:1300: checking for package version" >&5
1301 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1303 # if there are not enough fields, cut returns the last one...
1304 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1305 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1306 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1308 # this is how CF_BUNDLED_INTL uses $VERSION:
1309 VERSION="$cf_field1"
1311 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1312 test -z "$VERSION_MAJOR" && { { echo "$as_me:1312: error: missing major-version" >&5
1313 echo "$as_me: error: missing major-version" >&2;}
1314 { (exit 1); exit 1; }; }
1316 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1317 test -z "$VERSION_MINOR" && { { echo "$as_me:1317: error: missing minor-version" >&5
1318 echo "$as_me: error: missing minor-version" >&2;}
1319 { (exit 1); exit 1; }; }
1321 echo "$as_me:1321: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1322 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1324 echo "$as_me:1324: checking for package patch date" >&5
1325 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1326 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1327 case .$VERSION_PATCH in
1329 { { echo "$as_me:1329: error: missing patch-date $VERSION_PATCH" >&5
1330 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1331 { (exit 1); exit 1; }; }
1333 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1336 { { echo "$as_me:1336: error: illegal patch-date $VERSION_PATCH" >&5
1337 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1338 { (exit 1); exit 1; }; }
1341 echo "$as_me:1341: result: $VERSION_PATCH" >&5
1342 echo "${ECHO_T}$VERSION_PATCH" >&6
1344 { { echo "$as_me:1344: error: did not find $srcdir/VERSION" >&5
1345 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1346 { (exit 1); exit 1; }; }
1349 # show the actual data that we have for versions:
1350 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1352 echo "${as_me:-configure}:1352: testing ABI VERSION $VERSION ..." 1>&5
1354 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1356 echo "${as_me:-configure}:1356: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1358 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1360 echo "${as_me:-configure}:1360: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1362 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1364 echo "${as_me:-configure}:1364: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1369 cat >>confdefs.h <<EOF
1370 #define PACKAGE "$PACKAGE"
1373 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1375 cat >>confdefs.h <<EOF
1376 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1379 cat >>confdefs.h <<EOF
1380 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1383 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1385 # Check whether --with-rel-version or --without-rel-version was given.
1386 if test "${with_rel_version+set}" = set; then
1387 withval="$with_rel_version"
1388 { echo "$as_me:1388: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1389 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1390 cf_cv_rel_version=$withval
1393 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1394 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1395 test -n "NCURSES_MINOR" || NCURSES_MINOR=0
1397 if test -n "$NCURSES_MAJOR" ; then
1398 case `echo "$NCURSES_MAJOR" | sed -e 's/^[0-9]*$/0/g'` in
1402 { { echo "$as_me:1402: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1403 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1404 { (exit 1); exit 1; }; }
1408 { { echo "$as_me:1408: error: Release major-version value is empty" >&5
1409 echo "$as_me: error: Release major-version value is empty" >&2;}
1410 { (exit 1); exit 1; }; }
1413 if test -n "$NCURSES_MINOR" ; then
1414 case `echo "$NCURSES_MINOR" | sed -e 's/^[0-9]*$/0/g'` in
1418 { { echo "$as_me:1418: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1419 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1420 { (exit 1); exit 1; }; }
1424 { { echo "$as_me:1424: error: Release minor-version value is empty" >&5
1425 echo "$as_me: error: Release minor-version value is empty" >&2;}
1426 { (exit 1); exit 1; }; }
1429 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1431 # Check whether --with-abi-version or --without-abi-version was given.
1432 if test "${with_abi_version+set}" = set; then
1433 withval="$with_abi_version"
1435 if test "x$cf_cv_abi_version" != "x$withval"
1437 { echo "$as_me:1437: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1438 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1439 case "$cf_cv_rel_version" in
1441 cf_cv_rel_version=$withval.0
1444 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1448 cf_cv_abi_version=$withval
1451 if test -n "$cf_cv_abi_version" ; then
1452 case `echo "$cf_cv_abi_version" | sed -e 's/^[0-9]*$/0/g'` in
1456 { { echo "$as_me:1456: error: ABI version is not a number: $cf_cv_abi_version" >&5
1457 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1458 { (exit 1); exit 1; }; }
1462 { { echo "$as_me:1462: error: ABI version value is empty" >&5
1463 echo "$as_me: error: ABI version value is empty" >&2;}
1464 { (exit 1); exit 1; }; }
1467 cf_cv_abi_default=$cf_cv_abi_version
1469 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1471 case "$cf_cv_rel_version" in
1473 cf_cv_rel_version=$with_abi_version.0
1479 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1480 if test -f "$ac_dir/install-sh"; then
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1484 elif test -f "$ac_dir/install.sh"; then
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1488 elif test -f "$ac_dir/shtool"; then
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1494 if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:1495: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497 { (exit 1); exit 1; }; }
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1503 # Make sure we can run config.sub.
1504 $ac_config_sub sun4 >/dev/null 2>&1 ||
1505 { { echo "$as_me:1505: error: cannot run $ac_config_sub" >&5
1506 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1507 { (exit 1); exit 1; }; }
1509 echo "$as_me:1509: checking build system type" >&5
1510 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1511 if test "${ac_cv_build+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 ac_cv_build_alias=$build_alias
1515 test -z "$ac_cv_build_alias" &&
1516 ac_cv_build_alias=`$ac_config_guess`
1517 test -z "$ac_cv_build_alias" &&
1518 { { echo "$as_me:1518: error: cannot guess build type; you must specify one" >&5
1519 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520 { (exit 1); exit 1; }; }
1521 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1522 { { echo "$as_me:1522: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1524 { (exit 1); exit 1; }; }
1527 echo "$as_me:1527: result: $ac_cv_build" >&5
1528 echo "${ECHO_T}$ac_cv_build" >&6
1530 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 echo "$as_me:1534: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1543 { { echo "$as_me:1543: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:1548: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1551 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1556 echo "$as_me:1556: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1565 { { echo "$as_me:1565: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:1570: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 # The aliases save the names the user supplied, while $host etc.
1578 # will get canonicalized.
1579 test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1582 program_prefix=${target_alias}-
1583 system_name="$host_os"
1585 system_name="`(uname -s -r) 2>/dev/null`"
1586 if test -z "$system_name" ; then
1587 system_name="`(hostname) 2>/dev/null`"
1590 test -n "$system_name" &&
1591 cat >>confdefs.h <<EOF
1592 #define SYSTEM_NAME "$system_name"
1595 if test "${cf_cv_system_name+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 cf_cv_system_name="$system_name"
1601 test -z "$system_name" && system_name="$cf_cv_system_name"
1602 test -n "$cf_cv_system_name" && echo "$as_me:1602: result: Configuring for $cf_cv_system_name" >&5
1603 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1605 if test ".$system_name" != ".$cf_cv_system_name" ; then
1606 echo "$as_me:1606: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1607 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1608 { { echo "$as_me:1608: error: \"Please remove config.cache and try again.\"" >&5
1609 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1610 { (exit 1); exit 1; }; }
1613 # Check whether --with-system-type or --without-system-type was given.
1614 if test "${with_system_type+set}" = set; then
1615 withval="$with_system_type"
1616 { echo "$as_me:1616: WARNING: overriding system type to $withval" >&5
1617 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1618 cf_cv_system_name=$withval
1623 ### Save the given $CFLAGS to allow user-override.
1624 cf_user_CFLAGS="$CFLAGS"
1626 ### Default install-location
1627 echo "$as_me:1627: checking for fgrep" >&5
1628 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1629 if test "${ac_cv_path_FGREP+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1633 then ac_cv_path_FGREP="$GREP -F"
1635 for ac_prog in gfgrep fgrep
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_path_FGREP+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1649 ac_save_IFS=$IFS; IFS=$ac_path_separator
1651 for ac_dir in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if $as_executable_p "$ac_dir/$ac_word"; then
1655 ac_cv_path_FGREP="$ac_dir/$ac_word"
1656 echo "$as_me:1656: found $ac_dir/$ac_word" >&5
1664 FGREP=$ac_cv_path_FGREP
1666 if test -n "$FGREP"; then
1667 echo "$as_me:1667: result: $FGREP" >&5
1668 echo "${ECHO_T}$FGREP" >&6
1670 echo "$as_me:1670: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$FGREP" && break
1676 test -n "$FGREP" || FGREP=": "
1678 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1678: error: cannot find workable fgrep" >&5
1679 echo "$as_me: error: cannot find workable fgrep" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:1683: result: $ac_cv_path_FGREP" >&5
1684 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1685 FGREP="$ac_cv_path_FGREP"
1687 echo "$as_me:1687: checking for prefix" >&5
1688 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1689 if test "x$prefix" = "xNONE" ; then
1690 case "$cf_cv_system_name" in
1691 # non-vendor systems don't have a conflict
1692 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1695 (*) prefix=$ac_default_prefix
1699 echo "$as_me:1699: result: $prefix" >&5
1700 echo "${ECHO_T}$prefix" >&6
1702 if test "x$prefix" = "xNONE" ; then
1703 echo "$as_me:1703: checking for default include-directory" >&5
1704 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1705 test -n "$verbose" && echo 1>&6
1708 "$includedir/ncurses" \
1710 "$prefix/include/ncurses" \
1711 /usr/local/include \
1712 /usr/local/include/ncurses \
1714 /usr/include/ncurses
1716 cf_dir=`eval echo "$cf_symbol"`
1717 if test -f "$cf_dir/curses.h" ; then
1718 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1719 includedir="$cf_symbol"
1720 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1724 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1726 echo "$as_me:1726: result: $includedir" >&5
1727 echo "${ECHO_T}$includedir" >&6
1730 ### Defaults for ncurses ABI
1735 cf_dft_ext_colors=no
1738 cf_dft_ext_putwin=no
1739 cf_dft_ext_spfuncs=no
1740 cf_dft_filter_syms=no
1743 cf_dft_opaque_curses=no
1744 cf_dft_ordinate_type=short
1745 cf_dft_signed_char=no
1746 cf_dft_tparm_arg=long
1750 # ABI 6 default differences from ABI 5:
1751 case x$cf_cv_abi_default in
1753 cf_dft_chtype=uint32_t
1754 cf_dft_ext_colors=yes
1755 cf_dft_ext_const=yes
1756 cf_dft_ext_mouse=yes
1757 cf_dft_ext_putwin=yes
1758 cf_dft_ext_spfuncs=yes
1759 cf_dft_filter_syms=yes
1761 cf_dft_mmask_t=uint32_t
1762 cf_dft_opaque_curses=yes
1763 cf_dft_tparm_arg=intptr_t
1765 cf_dft_with_lp64=yes
1769 # ABI 7 default differences from ABI 6:
1770 case x$cf_cv_abi_default in
1773 cf_dft_mmask_t=uint64_t
1774 cf_dft_ordinate_type=int
1775 cf_dft_signed_char=yes
1776 # also: remove the wgetch-events feature in ABI 7
1780 ### override ABI version, e.g., packagers
1782 # Check whether --with-abi-altered or --without-abi-altered was given.
1783 if test "${with_abi_altered+set}" = set; then
1784 withval="$with_abi_altered"
1786 if test -n "$withval" ; then
1787 case `echo "$withval" | sed -e 's/^[0-9]*$/0/g'` in
1791 { { echo "$as_me:1791: error: ABI altered is not a number: $withval" >&5
1792 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1793 { (exit 1); exit 1; }; }
1797 { { echo "$as_me:1797: error: ABI altered value is empty" >&5
1798 echo "$as_me: error: ABI altered value is empty" >&2;}
1799 { (exit 1); exit 1; }; }
1802 if test "$cf_cv_abi_version" != "$withval"
1804 { echo "$as_me:1804: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1805 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1806 cf_cv_abi_version=$withval
1811 ### Checks for programs.
1813 # Check whether --with-ada or --without-ada was given.
1814 if test "${with_ada+set}" = set; then
1816 cf_with_ada=$withval
1821 if test "x$cf_with_ada" = xyes
1823 cf_prog_cc="gnatgcc gcc cc"
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1831 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 ac_main_return="return"
1834 if test -n "$ac_tool_prefix"; then
1835 for ac_prog in $cf_prog_cc
1837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1839 echo "$as_me:1839: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 ac_save_IFS=$IFS; IFS=$ac_path_separator
1849 for ac_dir in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir=.
1852 $as_executable_p "$ac_dir/$ac_word" || continue
1853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854 echo "$as_me:1854: found $ac_dir/$ac_word" >&5
1861 if test -n "$CC"; then
1862 echo "$as_me:1862: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1865 echo "$as_me:1865: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1869 test -n "$CC" && break
1872 if test -z "$CC"; then
1874 for ac_prog in $cf_prog_cc
1876 # Extract the first word of "$ac_prog", so it can be a program name with args.
1877 set dummy $ac_prog; ac_word=$2
1878 echo "$as_me:1878: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1886 ac_save_IFS=$IFS; IFS=$ac_path_separator
1888 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 $as_executable_p "$ac_dir/$ac_word" || continue
1892 ac_cv_prog_ac_ct_CC="$ac_prog"
1893 echo "$as_me:1893: found $ac_dir/$ac_word" >&5
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:1901: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1904 echo "$as_me:1904: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$ac_ct_CC" && break
1914 test -z "$CC" && { { echo "$as_me:1914: error: no acceptable cc found in \$PATH" >&5
1915 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1916 { (exit 1); exit 1; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:1919:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo "$2"`
1922 { (eval echo "$as_me:1922: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit "$ac_status"); }
1927 { (eval echo "$as_me:1927: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1930 echo "$as_me:1930: \$? = $ac_status" >&5
1931 (exit "$ac_status"); }
1932 { (eval echo "$as_me:1932: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 echo "$as_me:1935: \$? = $ac_status" >&5
1936 (exit "$ac_status"); }
1938 cat >"conftest.$ac_ext" <<_ACEOF
1939 #line 1939 "configure"
1940 #include "confdefs.h"
1950 ac_clean_files_save=$ac_clean_files
1951 ac_clean_files="$ac_clean_files a.out a.exe"
1952 # Try to create an executable without -o first, disregard a.out.
1953 # It will help us diagnose broken compilers, and finding out an intuition
1955 echo "$as_me:1955: checking for C compiler default output" >&5
1956 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1957 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1958 if { (eval echo "$as_me:1958: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit "$ac_status"); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1967 ls a.out conftest 2>/dev/null;
1968 ls a.* conftest.* 2>/dev/null`; do
1970 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1971 a.out ) # We found the default executable, but exeext='' is most
1974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1982 echo "$as_me: failed program was:" >&5
1983 cat "conftest.$ac_ext" >&5
1984 { { echo "$as_me:1984: error: C compiler cannot create executables" >&5
1985 echo "$as_me: error: C compiler cannot create executables" >&2;}
1986 { (exit 77); exit 77; }; }
1989 ac_exeext=$ac_cv_exeext
1990 echo "$as_me:1990: result: $ac_file" >&5
1991 echo "${ECHO_T}$ac_file" >&6
1993 # Check the compiler produces executables we can run. If not, either
1994 # the compiler is broken, or we cross compile.
1995 echo "$as_me:1995: checking whether the C compiler works" >&5
1996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998 # If not cross compiling, check that we can run a simple program.
1999 if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:2001: \"$ac_try\"") >&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit "$ac_status"); }; }; then
2008 if test "$cross_compiling" = maybe; then
2011 { { echo "$as_me:2011: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'." >&5
2013 echo "$as_me: error: cannot run C compiled programs.
2014 If you meant to cross compile, use \`--host'." >&2;}
2015 { (exit 1); exit 1; }; }
2019 echo "$as_me:2019: result: yes" >&5
2020 echo "${ECHO_T}yes" >&6
2022 rm -f a.out a.exe "conftest$ac_cv_exeext"
2023 ac_clean_files=$ac_clean_files_save
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:2026: checking whether we are cross compiling" >&5
2027 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2028 echo "$as_me:2028: result: $cross_compiling" >&5
2029 echo "${ECHO_T}$cross_compiling" >&6
2031 echo "$as_me:2031: checking for executable suffix" >&5
2032 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2033 if { (eval echo "$as_me:2033: \"$ac_link\"") >&5
2034 (eval $ac_link) 2>&5
2036 echo "$as_me:2036: \$? = $ac_status" >&5
2037 (exit "$ac_status"); }; then
2038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2040 # work properly (i.e., refer to `conftest.exe'), while it won't with
2042 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052 { { echo "$as_me:2052: error: cannot compute EXEEXT: cannot compile and link" >&5
2053 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2054 { (exit 1); exit 1; }; }
2057 rm -f "conftest$ac_cv_exeext"
2058 echo "$as_me:2058: result: $ac_cv_exeext" >&5
2059 echo "${ECHO_T}$ac_cv_exeext" >&6
2061 rm -f "conftest.$ac_ext"
2062 EXEEXT=$ac_cv_exeext
2064 echo "$as_me:2064: checking for object suffix" >&5
2065 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2066 if test "${ac_cv_objext+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >"conftest.$ac_ext" <<_ACEOF
2070 #line 2070 "configure"
2071 #include "confdefs.h"
2081 rm -f conftest.o conftest.obj
2082 if { (eval echo "$as_me:2082: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:2085: \$? = $ac_status" >&5
2086 (exit "$ac_status"); }; then
2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2095 echo "$as_me: failed program was:" >&5
2096 cat "conftest.$ac_ext" >&5
2097 { { echo "$as_me:2097: error: cannot compute OBJEXT: cannot compile" >&5
2098 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2099 { (exit 1); exit 1; }; }
2102 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2104 echo "$as_me:2104: result: $ac_cv_objext" >&5
2105 echo "${ECHO_T}$ac_cv_objext" >&6
2106 OBJEXT=$ac_cv_objext
2108 echo "$as_me:2108: checking whether we are using the GNU C compiler" >&5
2109 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2110 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >"conftest.$ac_ext" <<_ACEOF
2114 #line 2114 "configure"
2115 #include "confdefs.h"
2128 rm -f "conftest.$ac_objext"
2129 if { (eval echo "$as_me:2129: \"$ac_compile\"") >&5
2130 (eval $ac_compile) 2>&5
2132 echo "$as_me:2132: \$? = $ac_status" >&5
2133 (exit "$ac_status"); } &&
2134 { ac_try='test -s "conftest.$ac_objext"'
2135 { (eval echo "$as_me:2135: \"$ac_try\"") >&5
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit "$ac_status"); }; }; then
2142 echo "$as_me: failed program was:" >&5
2143 cat "conftest.$ac_ext" >&5
2146 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2150 echo "$as_me:2150: result: $ac_cv_c_compiler_gnu" >&5
2151 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2152 GCC=`test $ac_compiler_gnu = yes && echo yes`
2153 ac_test_CFLAGS=${CFLAGS+set}
2154 ac_save_CFLAGS=$CFLAGS
2156 echo "$as_me:2156: checking whether $CC accepts -g" >&5
2157 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2158 if test "${ac_cv_prog_cc_g+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 cat >"conftest.$ac_ext" <<_ACEOF
2162 #line 2162 "configure"
2163 #include "confdefs.h"
2173 rm -f "conftest.$ac_objext"
2174 if { (eval echo "$as_me:2174: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:2177: \$? = $ac_status" >&5
2178 (exit "$ac_status"); } &&
2179 { ac_try='test -s "conftest.$ac_objext"'
2180 { (eval echo "$as_me:2180: \"$ac_try\"") >&5
2183 echo "$as_me:2183: \$? = $ac_status" >&5
2184 (exit "$ac_status"); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 cat "conftest.$ac_ext" >&5
2191 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2193 echo "$as_me:2193: result: $ac_cv_prog_cc_g" >&5
2194 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2195 if test "$ac_test_CFLAGS" = set; then
2196 CFLAGS=$ac_save_CFLAGS
2197 elif test $ac_cv_prog_cc_g = yes; then
2198 if test "$GCC" = yes; then
2204 if test "$GCC" = yes; then
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >"conftest.$ac_ext" <<_ACEOF
2219 rm -f "conftest.$ac_objext"
2220 if { (eval echo "$as_me:2220: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2223 echo "$as_me:2223: \$? = $ac_status" >&5
2224 (exit "$ac_status"); } &&
2225 { ac_try='test -s "conftest.$ac_objext"'
2226 { (eval echo "$as_me:2226: \"$ac_try\"") >&5
2229 echo "$as_me:2229: \$? = $ac_status" >&5
2230 (exit "$ac_status"); }; }; then
2231 for ac_declaration in \
2233 '#include <stdlib.h>' \
2234 'extern "C" void std::exit (int) throw (); using std::exit;' \
2235 'extern "C" void std::exit (int); using std::exit;' \
2236 'extern "C" void exit (int) throw ();' \
2237 'extern "C" void exit (int);' \
2240 cat >"conftest.$ac_ext" <<_ACEOF
2241 #line 2241 "configure"
2242 #include "confdefs.h"
2253 rm -f "conftest.$ac_objext"
2254 if { (eval echo "$as_me:2254: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>&5
2257 echo "$as_me:2257: \$? = $ac_status" >&5
2258 (exit "$ac_status"); } &&
2259 { ac_try='test -s "conftest.$ac_objext"'
2260 { (eval echo "$as_me:2260: \"$ac_try\"") >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit "$ac_status"); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 cat "conftest.$ac_ext" >&5
2271 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2272 cat >"conftest.$ac_ext" <<_ACEOF
2273 #line 2273 "configure"
2274 #include "confdefs.h"
2284 rm -f "conftest.$ac_objext"
2285 if { (eval echo "$as_me:2285: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit "$ac_status"); } &&
2290 { ac_try='test -s "conftest.$ac_objext"'
2291 { (eval echo "$as_me:2291: \"$ac_try\"") >&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit "$ac_status"); }; }; then
2298 echo "$as_me: failed program was:" >&5
2299 cat "conftest.$ac_ext" >&5
2301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2304 if test -n "$ac_declaration"; then
2305 echo '#ifdef __cplusplus' >>confdefs.h
2306 echo "$ac_declaration" >>confdefs.h
2307 echo '#endif' >>confdefs.h
2311 echo "$as_me: failed program was:" >&5
2312 cat "conftest.$ac_ext" >&5
2314 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2318 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 ac_main_return="return"
2323 if test "$GCC" = yes ; then
2324 echo "$as_me:2324: checking version of $CC" >&5
2325 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2326 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2327 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2328 echo "$as_me:2328: result: $GCC_VERSION" >&5
2329 echo "${ECHO_T}$GCC_VERSION" >&6
2334 if test "$GCC" = yes ; then
2337 echo "$as_me:2337: checking if this is really Intel C compiler" >&5
2338 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2339 cf_save_CFLAGS="$CFLAGS"
2340 CFLAGS="$CFLAGS -no-gcc"
2341 cat >"conftest.$ac_ext" <<_ACEOF
2342 #line 2342 "configure"
2343 #include "confdefs.h"
2349 #ifdef __INTEL_COMPILER
2351 #error __INTEL_COMPILER is not defined
2358 rm -f "conftest.$ac_objext"
2359 if { (eval echo "$as_me:2359: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:2362: \$? = $ac_status" >&5
2363 (exit "$ac_status"); } &&
2364 { ac_try='test -s "conftest.$ac_objext"'
2365 { (eval echo "$as_me:2365: \"$ac_try\"") >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit "$ac_status"); }; }; then
2371 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2374 echo "$as_me: failed program was:" >&5
2375 cat "conftest.$ac_ext" >&5
2377 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2378 CFLAGS="$cf_save_CFLAGS"
2379 echo "$as_me:2379: result: $INTEL_COMPILER" >&5
2380 echo "${ECHO_T}$INTEL_COMPILER" >&6
2387 if test "$GCC" = yes ; then
2388 echo "$as_me:2388: checking if this is really Clang C compiler" >&5
2389 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2390 cf_save_CFLAGS="$CFLAGS"
2391 cat >"conftest.$ac_ext" <<_ACEOF
2392 #line 2392 "configure"
2393 #include "confdefs.h"
2401 #error __clang__ is not defined
2408 rm -f "conftest.$ac_objext"
2409 if { (eval echo "$as_me:2409: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>&5
2412 echo "$as_me:2412: \$? = $ac_status" >&5
2413 (exit "$ac_status"); } &&
2414 { ac_try='test -s "conftest.$ac_objext"'
2415 { (eval echo "$as_me:2415: \"$ac_try\"") >&5
2418 echo "$as_me:2418: \$? = $ac_status" >&5
2419 (exit "$ac_status"); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 cat "conftest.$ac_ext" >&5
2426 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2427 CFLAGS="$cf_save_CFLAGS"
2428 echo "$as_me:2428: result: $CLANG_COMPILER" >&5
2429 echo "${ECHO_T}$CLANG_COMPILER" >&6
2434 if test "x$CLANG_COMPILER" = "xyes" ; then
2436 (c[1-9][0-9]|*/c[1-9][0-9])
2437 { echo "$as_me:2437: WARNING: replacing broken compiler alias $CC" >&5
2438 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2439 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2444 echo "$as_me:2444: checking version of $CC" >&5
2445 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2446 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2447 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2448 echo "$as_me:2448: result: $CLANG_VERSION" >&5
2449 echo "${ECHO_T}$CLANG_VERSION" >&6
2451 for cf_clang_opt in \
2452 -Qunused-arguments \
2453 -Wno-error=implicit-function-declaration
2455 echo "$as_me:2455: checking if option $cf_clang_opt works" >&5
2456 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2457 cf_save_CFLAGS="$CFLAGS"
2458 CFLAGS="$CFLAGS $cf_clang_opt"
2459 cat >"conftest.$ac_ext" <<_ACEOF
2460 #line 2460 "configure"
2461 #include "confdefs.h"
2468 printf("hello!\\n");
2473 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2474 if { (eval echo "$as_me:2474: \"$ac_link\"") >&5
2475 (eval $ac_link) 2>&5
2477 echo "$as_me:2477: \$? = $ac_status" >&5
2478 (exit "$ac_status"); } &&
2479 { ac_try='test -s "conftest$ac_exeext"'
2480 { (eval echo "$as_me:2480: \"$ac_try\"") >&5
2483 echo "$as_me:2483: \$? = $ac_status" >&5
2484 (exit "$ac_status"); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 cat "conftest.$ac_ext" >&5
2493 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2494 echo "$as_me:2494: result: $cf_clang_optok" >&5
2495 echo "${ECHO_T}$cf_clang_optok" >&6
2496 CFLAGS="$cf_save_CFLAGS"
2497 if test "$cf_clang_optok" = yes; then
2498 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2500 echo "${as_me:-configure}:2500: testing adding option $cf_clang_opt ..." 1>&5
2502 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2503 CFLAGS="${CFLAGS}$cf_clang_opt"
2509 echo "$as_me:2509: checking for $CC option to accept ANSI C" >&5
2510 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2511 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 ac_cv_prog_cc_stdc=no
2516 cat >"conftest.$ac_ext" <<_ACEOF
2517 #line 2517 "configure"
2518 #include "confdefs.h"
2521 #include <sys/types.h>
2522 #include <sys/stat.h>
2523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2524 struct buf { int x; };
2525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526 static char *e (char **p, int i)
2530 static char *f (char * (*g) (char **, int), char **p, ...)
2535 s = g (p, va_arg (v,int));
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2553 # Don't try gcc -ansi; that turns off useful extensions and
2554 # breaks some systems' header files.
2555 # AIX -qlanglvl=ansi
2556 # Ultrix and OSF/1 -std1
2557 # HP-UX 10.20 and later -Ae
2558 # HP-UX older versions -Aa -D_HPUX_SOURCE
2559 # SVR4 -Xc -D__EXTENSIONS__
2560 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 CC="$ac_save_CC $ac_arg"
2563 rm -f "conftest.$ac_objext"
2564 if { (eval echo "$as_me:2564: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>&5
2567 echo "$as_me:2567: \$? = $ac_status" >&5
2568 (exit "$ac_status"); } &&
2569 { ac_try='test -s "conftest.$ac_objext"'
2570 { (eval echo "$as_me:2570: \"$ac_try\"") >&5
2573 echo "$as_me:2573: \$? = $ac_status" >&5
2574 (exit "$ac_status"); }; }; then
2575 ac_cv_prog_cc_stdc=$ac_arg
2578 echo "$as_me: failed program was:" >&5
2579 cat "conftest.$ac_ext" >&5
2581 rm -f "conftest.$ac_objext"
2583 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2588 case "x$ac_cv_prog_cc_stdc" in
2590 echo "$as_me:2590: result: none needed" >&5
2591 echo "${ECHO_T}none needed" >&6 ;;
2593 echo "$as_me:2593: result: $ac_cv_prog_cc_stdc" >&5
2594 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2595 CC="$CC $ac_cv_prog_cc_stdc" ;;
2598 # This should have been defined by AC_PROG_CC
2601 echo "$as_me:2601: checking \$CFLAGS variable" >&5
2602 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2605 echo "$as_me:2605: result: broken" >&5
2606 echo "${ECHO_T}broken" >&6
2607 { echo "$as_me:2607: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2608 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2611 for cf_arg in $cf_flags
2617 cf_new_extra_cppflags=
2619 for cf_add_cflags in $cf_arg
2621 case "$cf_fix_cppflags" in
2623 case "$cf_add_cflags" in
2624 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2625 case "$cf_add_cflags" in
2627 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2629 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2630 && test -z "${cf_tst_cflags}" \
2631 && cf_fix_cppflags=yes
2633 if test "$cf_fix_cppflags" = yes ; then
2635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2639 elif test "${cf_tst_cflags}" = "\"'" ; then
2641 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2642 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2652 case "$cf_add_cflags" in
2654 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2656 CPPFLAGS=`echo "$CPPFLAGS" | \
2657 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2658 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2663 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2664 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2671 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2672 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2679 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2680 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2682 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2684 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2685 && test -z "${cf_tst_cflags}" \
2686 && cf_fix_cppflags=no
2691 if test -n "$cf_new_cflags" ; then
2693 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2694 CFLAGS="${CFLAGS}$cf_new_cflags"
2698 if test -n "$cf_new_cppflags" ; then
2700 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2701 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2705 if test -n "$cf_new_extra_cppflags" ; then
2707 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2708 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2715 echo "$as_me:2715: result: ok" >&5
2716 echo "${ECHO_T}ok" >&6
2720 echo "$as_me:2720: checking \$CC variable" >&5
2721 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2724 echo "$as_me:2724: result: broken" >&5
2725 echo "${ECHO_T}broken" >&6
2726 { echo "$as_me:2726: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2727 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2729 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2730 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2732 for cf_arg in $cf_flags
2740 cf_new_extra_cppflags=
2742 for cf_add_cflags in $cf_arg
2744 case "$cf_fix_cppflags" in
2746 case "$cf_add_cflags" in
2747 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2748 case "$cf_add_cflags" in
2750 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2752 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2753 && test -z "${cf_tst_cflags}" \
2754 && cf_fix_cppflags=yes
2756 if test "$cf_fix_cppflags" = yes ; then
2758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2762 elif test "${cf_tst_cflags}" = "\"'" ; then
2764 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2765 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2775 case "$cf_add_cflags" in
2777 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2779 CPPFLAGS=`echo "$CPPFLAGS" | \
2780 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2781 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2786 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2787 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2794 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2795 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2802 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2803 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2805 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2807 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2808 && test -z "${cf_tst_cflags}" \
2809 && cf_fix_cppflags=no
2814 if test -n "$cf_new_cflags" ; then
2816 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2817 CFLAGS="${CFLAGS}$cf_new_cflags"
2821 if test -n "$cf_new_cppflags" ; then
2823 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2824 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2828 if test -n "$cf_new_extra_cppflags" ; then
2830 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2831 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2841 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2843 echo "${as_me:-configure}:2843: testing resulting CC: '$CC' ..." 1>&5
2845 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2847 echo "${as_me:-configure}:2847: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2849 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2851 echo "${as_me:-configure}:2851: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2855 echo "$as_me:2855: result: ok" >&5
2856 echo "${ECHO_T}ok" >&6
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2863 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 ac_main_return="return"
2866 echo "$as_me:2866: checking how to run the C preprocessor" >&5
2867 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2868 # On Suns, sometimes $CPP names a directory.
2869 if test -n "$CPP" && test -d "$CPP"; then
2872 if test -z "$CPP"; then
2873 if test "${ac_cv_prog_CPP+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 # Double quotes because CPP needs to be expanded
2877 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2880 for ac_c_preproc_warn_flag in '' yes
2882 # Use a header file that comes with gcc, so configuring glibc
2883 # with a fresh cross-compiler works.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >"conftest.$ac_ext" <<_ACEOF
2887 #line 2887 "configure"
2888 #include "confdefs.h"
2892 if { (eval echo "$as_me:2892: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2893 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2895 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit "$ac_status"); } >/dev/null; then
2900 if test -s conftest.err; then
2901 ac_cpp_err=$ac_c_preproc_warn_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 cat "conftest.$ac_ext" >&5
2913 # Broken: fails on valid input.
2916 rm -f conftest.err "conftest.$ac_ext"
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
2920 cat >"conftest.$ac_ext" <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2923 #include <ac_nonexistent.h>
2925 if { (eval echo "$as_me:2925: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2926 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2928 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:2931: \$? = $ac_status" >&5
2932 (exit "$ac_status"); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2945 echo "$as_me: failed program was:" >&5
2946 cat "conftest.$ac_ext" >&5
2947 # Passes both tests.
2951 rm -f conftest.err "conftest.$ac_ext"
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err "conftest.$ac_ext"
2956 if $ac_preproc_ok; then
2968 echo "$as_me:2968: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # On the NeXT, cc -E runs the code through the compiler's parser,
2976 # not just through cpp. "Syntax error" is here to catch this case.
2977 cat >"conftest.$ac_ext" <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2983 if { (eval echo "$as_me:2983: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2984 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2986 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:2989: \$? = $ac_status" >&5
2990 (exit "$ac_status"); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2999 if test -z "$ac_cpp_err"; then
3002 echo "$as_me: failed program was:" >&5
3003 cat "conftest.$ac_ext" >&5
3004 # Broken: fails on valid input.
3007 rm -f conftest.err "conftest.$ac_ext"
3009 # OK, works on sane cases. Now check whether non-existent headers
3010 # can be detected and how.
3011 cat >"conftest.$ac_ext" <<_ACEOF
3012 #line 3012 "configure"
3013 #include "confdefs.h"
3014 #include <ac_nonexistent.h>
3016 if { (eval echo "$as_me:3016: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3017 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3019 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit "$ac_status"); } >/dev/null; then
3024 if test -s conftest.err; then
3025 ac_cpp_err=$ac_c_preproc_warn_flag
3032 if test -z "$ac_cpp_err"; then
3033 # Broken: success on invalid input.
3036 echo "$as_me: failed program was:" >&5
3037 cat "conftest.$ac_ext" >&5
3038 # Passes both tests.
3042 rm -f conftest.err "conftest.$ac_ext"
3045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3046 rm -f conftest.err "conftest.$ac_ext"
3047 if $ac_preproc_ok; then
3050 { { echo "$as_me:3050: error: C preprocessor \"$CPP\" fails sanity check" >&5
3051 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3052 { (exit 1); exit 1; }; }
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3058 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_main_return="return"
3062 if test $ac_cv_c_compiler_gnu = yes; then
3063 echo "$as_me:3063: checking whether $CC needs -traditional" >&5
3064 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3065 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 ac_pattern="Autoconf.*'x'"
3069 cat >"conftest.$ac_ext" <<_ACEOF
3070 #line 3070 "configure"
3071 #include "confdefs.h"
3073 int Autoconf = TIOCGETP;
3075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3076 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3077 ac_cv_prog_gcc_traditional=yes
3079 ac_cv_prog_gcc_traditional=no
3083 if test $ac_cv_prog_gcc_traditional = no; then
3084 cat >"conftest.$ac_ext" <<_ACEOF
3085 #line 3085 "configure"
3086 #include "confdefs.h"
3088 int Autoconf = TCGETA;
3090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3091 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3092 ac_cv_prog_gcc_traditional=yes
3098 echo "$as_me:3098: result: $ac_cv_prog_gcc_traditional" >&5
3099 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3100 if test $ac_cv_prog_gcc_traditional = yes; then
3101 CC="$CC -traditional"
3105 echo "$as_me:3105: checking whether $CC understands -c and -o together" >&5
3106 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3107 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 cat > conftest.$ac_ext <<CF_EOF
3114 ${cf_cv_main_return:-return}(0);
3117 # We do the test twice because some compilers refuse to overwrite an
3118 # existing .o file with -o, though they will create one.
3119 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3120 if { (eval echo "$as_me:3120: \"$ac_try\"") >&5
3123 echo "$as_me:3123: \$? = $ac_status" >&5
3124 (exit "$ac_status"); } &&
3125 test -f conftest2.$ac_objext && { (eval echo "$as_me:3125: \"$ac_try\"") >&5
3128 echo "$as_me:3128: \$? = $ac_status" >&5
3129 (exit "$ac_status"); };
3131 eval cf_cv_prog_CC_c_o=yes
3133 eval cf_cv_prog_CC_c_o=no
3138 if test "$cf_cv_prog_CC_c_o" = yes; then
3139 echo "$as_me:3139: result: yes" >&5
3140 echo "${ECHO_T}yes" >&6
3142 echo "$as_me:3142: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3146 if test "$cross_compiling" = yes ; then
3149 case "$cf_cv_system_name" in
3150 (dragonfly*|mirbsd*|freebsd*)
3151 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3153 (*) LDPATH=$PATH:/sbin:/usr/sbin
3154 # Extract the first word of "ldconfig", so it can be a program name with args.
3155 set dummy ldconfig; ac_word=$2
3156 echo "$as_me:3156: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3166 ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 if $as_executable_p "$ac_dir/$ac_word"; then
3172 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3181 LDCONFIG=$ac_cv_path_LDCONFIG
3183 if test -n "$LDCONFIG"; then
3184 echo "$as_me:3184: result: $LDCONFIG" >&5
3185 echo "${ECHO_T}$LDCONFIG" >&6
3187 echo "$as_me:3187: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3195 echo "$as_me:3195: checking if you want to ensure bool is consistent with C++" >&5
3196 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3198 # Check whether --with-cxx or --without-cxx was given.
3199 if test "${with_cxx+set}" = set; then
3201 cf_with_cxx=$withval
3205 echo "$as_me:3205: result: $cf_with_cxx" >&5
3206 echo "${ECHO_T}$cf_with_cxx" >&6
3207 if test "X$cf_with_cxx" = Xno ; then
3211 # with autoconf 2.13, we can change the error to a warning:
3213 ac_cpp='$CXXCPP $CPPFLAGS'
3214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3215 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3217 ac_main_return="return"
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223 echo "$as_me:3223: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225 if test "${ac_cv_prog_CXX+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if test -n "$CXX"; then
3229 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3231 ac_save_IFS=$IFS; IFS=$ac_path_separator
3233 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 $as_executable_p "$ac_dir/$ac_word" || continue
3237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3238 echo "$as_me:3238: found $ac_dir/$ac_word" >&5
3245 if test -n "$CXX"; then
3246 echo "$as_me:3246: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:3249: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 test -n "$CXX" && break
3256 if test -z "$CXX"; then
3258 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:3262: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$ac_ct_CXX"; then
3268 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270 ac_save_IFS=$IFS; IFS=$ac_path_separator
3272 for ac_dir in $ac_dummy; do
3274 test -z "$ac_dir" && ac_dir=.
3275 $as_executable_p "$ac_dir/$ac_word" || continue
3276 ac_cv_prog_ac_ct_CXX="$ac_prog"
3277 echo "$as_me:3277: found $ac_dir/$ac_word" >&5
3283 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3284 if test -n "$ac_ct_CXX"; then
3285 echo "$as_me:3285: result: $ac_ct_CXX" >&5
3286 echo "${ECHO_T}$ac_ct_CXX" >&6
3288 echo "$as_me:3288: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3292 test -n "$ac_ct_CXX" && break
3294 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3299 # Provide some information about the compiler.
3300 echo "$as_me:3300:" \
3301 "checking for C++ compiler version" >&5
3302 ac_compiler=`set X $ac_compile; echo $2`
3303 { (eval echo "$as_me:3303: \"$ac_compiler --version </dev/null >&5\"") >&5
3304 (eval $ac_compiler --version </dev/null >&5) 2>&5
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit "$ac_status"); }
3308 { (eval echo "$as_me:3308: \"$ac_compiler -v </dev/null >&5\"") >&5
3309 (eval $ac_compiler -v </dev/null >&5) 2>&5
3311 echo "$as_me:3311: \$? = $ac_status" >&5
3312 (exit "$ac_status"); }
3313 { (eval echo "$as_me:3313: \"$ac_compiler -V </dev/null >&5\"") >&5
3314 (eval $ac_compiler -V </dev/null >&5) 2>&5
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit "$ac_status"); }
3319 echo "$as_me:3319: checking whether we are using the GNU C++ compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >"conftest.$ac_ext" <<_ACEOF
3325 #line 3325 "configure"
3326 #include "confdefs.h"
3339 rm -f "conftest.$ac_objext"
3340 if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit "$ac_status"); } &&
3345 { ac_try='test -s "conftest.$ac_objext"'
3346 { (eval echo "$as_me:3346: \"$ac_try\"") >&5
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit "$ac_status"); }; }; then
3353 echo "$as_me: failed program was:" >&5
3354 cat "conftest.$ac_ext" >&5
3357 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3361 echo "$as_me:3361: result: $ac_cv_cxx_compiler_gnu" >&5
3362 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3363 GXX=`test $ac_compiler_gnu = yes && echo yes`
3364 ac_test_CXXFLAGS=${CXXFLAGS+set}
3365 ac_save_CXXFLAGS=$CXXFLAGS
3367 echo "$as_me:3367: checking whether $CXX accepts -g" >&5
3368 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3369 if test "${ac_cv_prog_cxx_g+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 cat >"conftest.$ac_ext" <<_ACEOF
3373 #line 3373 "configure"
3374 #include "confdefs.h"
3384 rm -f "conftest.$ac_objext"
3385 if { (eval echo "$as_me:3385: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>&5
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit "$ac_status"); } &&
3390 { ac_try='test -s "conftest.$ac_objext"'
3391 { (eval echo "$as_me:3391: \"$ac_try\"") >&5
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit "$ac_status"); }; }; then
3396 ac_cv_prog_cxx_g=yes
3398 echo "$as_me: failed program was:" >&5
3399 cat "conftest.$ac_ext" >&5
3402 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3404 echo "$as_me:3404: result: $ac_cv_prog_cxx_g" >&5
3405 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3406 if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408 elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3415 if test "$GXX" = yes; then
3421 for ac_declaration in \
3423 '#include <stdlib.h>' \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \
3430 cat >"conftest.$ac_ext" <<_ACEOF
3431 #line 3431 "configure"
3432 #include "confdefs.h"
3443 rm -f "conftest.$ac_objext"
3444 if { (eval echo "$as_me:3444: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>&5
3447 echo "$as_me:3447: \$? = $ac_status" >&5
3448 (exit "$ac_status"); } &&
3449 { ac_try='test -s "conftest.$ac_objext"'
3450 { (eval echo "$as_me:3450: \"$ac_try\"") >&5
3453 echo "$as_me:3453: \$? = $ac_status" >&5
3454 (exit "$ac_status"); }; }; then
3457 echo "$as_me: failed program was:" >&5
3458 cat "conftest.$ac_ext" >&5
3461 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3462 cat >"conftest.$ac_ext" <<_ACEOF
3463 #line 3463 "configure"
3464 #include "confdefs.h"
3474 rm -f "conftest.$ac_objext"
3475 if { (eval echo "$as_me:3475: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3478 echo "$as_me:3478: \$? = $ac_status" >&5
3479 (exit "$ac_status"); } &&
3480 { ac_try='test -s "conftest.$ac_objext"'
3481 { (eval echo "$as_me:3481: \"$ac_try\"") >&5
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit "$ac_status"); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 cat "conftest.$ac_ext" >&5
3491 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3494 if test -n "$ac_declaration"; then
3495 echo '#ifdef __cplusplus' >>confdefs.h
3496 echo "$ac_declaration" >>confdefs.h
3497 echo '#endif' >>confdefs.h
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3503 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 ac_main_return="return"
3508 ac_cpp='$CXXCPP $CPPFLAGS'
3509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3510 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3512 ac_main_return="return"
3514 if test "x$cf_with_cxx" != xno
3516 # Several of the C++ configurations do not work, particularly when
3517 # cross-compiling (20140913 -TD)
3518 echo "$as_me:3518: checking if $CXX works" >&5
3519 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3521 save_CPPFLAGS="$CPPFLAGS"
3522 eval cf_includedir=${includedir}
3523 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3525 cat >"conftest.$ac_ext" <<_ACEOF
3526 #line 3526 "configure"
3527 #include "confdefs.h"
3536 printf("Hello world!\n")
3542 rm -f "conftest.$ac_objext"
3543 if { (eval echo "$as_me:3543: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>&5
3546 echo "$as_me:3546: \$? = $ac_status" >&5
3547 (exit "$ac_status"); } &&
3548 { ac_try='test -s "conftest.$ac_objext"'
3549 { (eval echo "$as_me:3549: \"$ac_try\"") >&5
3552 echo "$as_me:3552: \$? = $ac_status" >&5
3553 (exit "$ac_status"); }; }; then
3556 echo "$as_me: failed program was:" >&5
3557 cat "conftest.$ac_ext" >&5
3560 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3561 CPPFLAGS="$save_CPPFLAGS"
3563 echo "$as_me:3563: result: $cf_cxx_works" >&5
3564 echo "${ECHO_T}$cf_cxx_works" >&6
3565 if test "x$cf_cxx_works" = xno
3567 { echo "$as_me:3567: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3568 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3569 cf_with_cxx=no; CXX=""; GXX="";
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3575 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 ac_main_return="return"
3579 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3580 if test "$CXX" = "g++" ; then
3581 # Extract the first word of "g++", so it can be a program name with args.
3582 set dummy g++; ac_word=$2
3583 echo "$as_me:3583: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_path_CXX+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3593 ac_save_IFS=$IFS; IFS=$ac_path_separator
3595 for ac_dir in $ac_dummy; do
3597 test -z "$ac_dir" && ac_dir=.
3598 if $as_executable_p "$ac_dir/$ac_word"; then
3599 ac_cv_path_CXX="$ac_dir/$ac_word"
3600 echo "$as_me:3600: found $ac_dir/$ac_word" >&5
3610 if test -n "$CXX"; then
3611 echo "$as_me:3611: result: $CXX" >&5
3612 echo "${ECHO_T}$CXX" >&6
3614 echo "$as_me:3614: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3621 { echo "$as_me:3621: WARNING: You don't have any C++ compiler, too bad" >&5
3622 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3623 cf_with_cxx=no; CXX=""; GXX="";
3629 if test "$GXX" = yes; then
3630 echo "$as_me:3630: checking version of ${CXX:-g++}" >&5
3631 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3632 GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3633 if test -z "$GXX_VERSION"
3638 echo "$as_me:3638: result: $GXX_VERSION" >&5
3639 echo "${ECHO_T}$GXX_VERSION" >&6
3642 case "$GXX_VERSION" in
3646 { echo "$as_me:3646: WARNING: templates do not work" >&5
3647 echo "$as_me: WARNING: templates do not work" >&2;}
3651 echo "$as_me:3651: checking if you want to build C++ binding and demo" >&5
3652 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3654 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3655 if test "${with_cxx_binding+set}" = set; then
3656 withval="$with_cxx_binding"
3657 cf_with_cxx_binding=$withval
3659 cf_with_cxx_binding=$cf_with_cxx
3661 echo "$as_me:3661: result: $cf_with_cxx_binding" >&5
3662 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3664 echo "$as_me:3664: checking if you want to build with Ada" >&5
3665 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3666 echo "$as_me:3666: result: $cf_with_ada" >&5
3667 echo "${ECHO_T}$cf_with_ada" >&6
3669 echo "$as_me:3669: checking if you want to install terminal database" >&5
3670 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3672 # Check whether --enable-db-install or --disable-db-install was given.
3673 if test "${enable_db_install+set}" = set; then
3674 enableval="$enable_db_install"
3675 cf_with_db_install=$enableval
3677 cf_with_db_install=yes
3679 echo "$as_me:3679: result: $cf_with_db_install" >&5
3680 echo "${ECHO_T}$cf_with_db_install" >&6
3682 echo "$as_me:3682: checking if you want to install manpages" >&5
3683 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3685 # Check whether --with-manpages or --without-manpages was given.
3686 if test "${with_manpages+set}" = set; then
3687 withval="$with_manpages"
3688 cf_with_manpages=$withval
3690 cf_with_manpages=yes
3692 echo "$as_me:3692: result: $cf_with_manpages" >&5
3693 echo "${ECHO_T}$cf_with_manpages" >&6
3695 echo "$as_me:3695: checking if you want to build programs such as tic" >&5
3696 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3698 # Check whether --with-progs or --without-progs was given.
3699 if test "${with_progs+set}" = set; then
3700 withval="$with_progs"
3701 cf_with_progs=$withval
3705 echo "$as_me:3705: result: $cf_with_progs" >&5
3706 echo "${ECHO_T}$cf_with_progs" >&6
3708 echo "$as_me:3708: checking if you want to build test-programs" >&5
3709 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3711 # Check whether --with-tests or --without-tests was given.
3712 if test "${with_tests+set}" = set; then
3713 withval="$with_tests"
3714 cf_with_tests=$withval
3718 echo "$as_me:3718: result: $cf_with_tests" >&5
3719 echo "${ECHO_T}$cf_with_tests" >&6
3721 echo "$as_me:3721: checking if you wish to install curses.h" >&5
3722 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3724 # Check whether --with-curses-h or --without-curses-h was given.
3725 if test "${with_curses_h+set}" = set; then
3726 withval="$with_curses_h"
3727 with_curses_h=$withval
3731 echo "$as_me:3731: result: $with_curses_h" >&5
3732 echo "${ECHO_T}$with_curses_h" >&6
3734 modules_to_build="ncurses"
3735 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3736 modules_to_build="$modules_to_build panel menu form"
3738 test "$program_prefix" != NONE &&
3739 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3740 # Use a double $ so make ignores it.
3741 test "$program_suffix" != NONE &&
3742 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3743 # Double any \ or $. echo might interpret backslashes.
3744 # By default was `s,x,x', remove it if useless.
3745 cat <<\_ACEOF >conftest.sed
3746 s/[\\$]/&&/g;s/;s,x,x,$//
3748 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3751 for ac_prog in mawk gawk nawk awk
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy $ac_prog; ac_word=$2
3755 echo "$as_me:3755: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_AWK+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$AWK"; then
3761 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3763 ac_save_IFS=$IFS; IFS=$ac_path_separator
3765 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 $as_executable_p "$ac_dir/$ac_word" || continue
3769 ac_cv_prog_AWK="$ac_prog"
3770 echo "$as_me:3770: found $ac_dir/$ac_word" >&5
3777 if test -n "$AWK"; then
3778 echo "$as_me:3778: result: $AWK" >&5
3779 echo "${ECHO_T}$AWK" >&6
3781 echo "$as_me:3781: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3785 test -n "$AWK" && break
3788 test -z "$AWK" && { { echo "$as_me:3788: error: No awk program found" >&5
3789 echo "$as_me: error: No awk program found" >&2;}
3790 { (exit 1); exit 1; }; }
3792 # Find a good install program. We prefer a C program (faster),
3793 # so one script is as good as another. But avoid the broken or
3794 # incompatible versions:
3795 # SysV /etc/install, /usr/sbin/install
3796 # SunOS /usr/etc/install
3797 # IRIX /sbin/install
3799 # AmigaOS /C/install, which installs bootblocks on floppy discs
3800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803 # ./install, which can be erroneously created by make from ./install.sh.
3804 echo "$as_me:3804: checking for a BSD compatible install" >&5
3805 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3806 if test -z "$INSTALL"; then
3807 if test "${ac_cv_path_install+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_save_IFS=$IFS; IFS=$ac_path_separator
3811 for ac_dir in $PATH; do
3813 # Account for people who put trailing slashes in PATH elements.
3815 / | ./ | .// | /cC/* \
3816 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3819 # OSF1 and SCO ODT 3.0 have their own names for install.
3820 # Don't use installbsd from OSF since it installs stuff as root
3822 for ac_prog in ginstall scoinst install; do
3823 if $as_executable_p "$ac_dir/$ac_prog"; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3828 elif test $ac_prog = install &&
3829 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3833 ac_cv_path_install="$ac_dir/$ac_prog -c"
3843 if test "${ac_cv_path_install+set}" = set; then
3844 INSTALL=$ac_cv_path_install
3846 # As a last resort, use the slow shell script. We don't cache a
3847 # path for INSTALL within a source directory, because that will
3848 # break other packages using the cache if that directory is
3849 # removed, or if the path is relative.
3850 INSTALL=$ac_install_sh
3853 echo "$as_me:3853: result: $INSTALL" >&5
3854 echo "${ECHO_T}$INSTALL" >&6
3856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3857 # It thinks the first close brace ends the variable substitution.
3858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3868 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3869 test -z "$cf_dir" && cf_dir=.
3870 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3874 for ac_prog in lint cppcheck splint
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 echo "$as_me:3878: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880 if test "${ac_cv_prog_LINT+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 if test -n "$LINT"; then
3884 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3886 ac_save_IFS=$IFS; IFS=$ac_path_separator
3888 for ac_dir in $ac_dummy; do
3890 test -z "$ac_dir" && ac_dir=.
3891 $as_executable_p "$ac_dir/$ac_word" || continue
3892 ac_cv_prog_LINT="$ac_prog"
3893 echo "$as_me:3893: found $ac_dir/$ac_word" >&5
3899 LINT=$ac_cv_prog_LINT
3900 if test -n "$LINT"; then
3901 echo "$as_me:3901: result: $LINT" >&5
3902 echo "${ECHO_T}$LINT" >&6
3904 echo "$as_me:3904: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3908 test -n "$LINT" && break
3912 (xcppcheck|x*/cppcheck)
3913 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3917 echo "$as_me:3917: checking whether ln -s works" >&5
3918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3920 if test "$LN_S" = "ln -s"; then
3921 echo "$as_me:3921: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6
3924 echo "$as_me:3924: result: no, using $LN_S" >&5
3925 echo "${ECHO_T}no, using $LN_S" >&6
3928 echo "$as_me:3928: checking if $LN_S -f options work" >&5
3929 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3931 rm -f conf$$.src conf$$dst
3933 echo first >conf$$.src
3934 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3939 rm -f conf$$.dst conf$$src
3940 echo "$as_me:3940: result: $cf_prog_ln_sf" >&5
3941 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3943 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3945 echo "$as_me:3945: checking for long file names" >&5
3946 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3947 if test "${ac_cv_sys_long_file_names+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 ac_cv_sys_long_file_names=yes
3951 # Test for long file names in all the places we know might matter:
3952 # . the current directory, where building will happen
3953 # $prefix/lib where we will be installing things
3954 # $exec_prefix/lib likewise
3955 # eval it to expand exec_prefix.
3956 # $TMPDIR if set, where it might want to write temporary files
3957 # if $TMPDIR is not set:
3958 # /tmp where it might want to write temporary files
3961 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3964 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3966 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3967 test -d "$ac_dir" || continue
3968 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3969 ac_xdir=$ac_dir/cf$$
3970 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3971 ac_tf1=$ac_xdir/conftest9012345
3972 ac_tf2=$ac_xdir/conftest9012346
3973 (echo 1 >"$ac_tf1") 2>/dev/null
3974 (echo 2 >"$ac_tf2") 2>/dev/null
3975 ac_val=`cat "$ac_tf1" 2>/dev/null`
3976 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3977 ac_cv_sys_long_file_names=no
3978 rm -rf "$ac_xdir" 2>/dev/null
3981 rm -rf "$ac_xdir" 2>/dev/null
3984 echo "$as_me:3984: result: $ac_cv_sys_long_file_names" >&5
3985 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3986 if test "$ac_cv_sys_long_file_names" = yes; then
3988 cat >>confdefs.h <<\EOF
3989 #define HAVE_LONG_FILE_NAMES 1
3994 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3995 # of package conflict.
3998 # Check whether --with-config-suffix or --without-config-suffix was given.
3999 if test "${with_config_suffix+set}" = set; then
4000 withval="$with_config_suffix"
4003 { echo "$as_me:4003: WARNING: expected a value for config-suffix option" >&5
4004 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4006 (*) cf_config_suffix="$withval"
4011 # If we find pkg-config, check if we should install the ".pc" files.
4013 echo "$as_me:4013: checking if you want to use pkg-config" >&5
4014 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4016 # Check whether --with-pkg-config or --without-pkg-config was given.
4017 if test "${with_pkg_config+set}" = set; then
4018 withval="$with_pkg_config"
4019 cf_pkg_config=$withval
4023 echo "$as_me:4023: result: $cf_pkg_config" >&5
4024 echo "${ECHO_T}$cf_pkg_config" >&6
4026 case "$cf_pkg_config" in
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4035 echo "$as_me:4035: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4045 ac_save_IFS=$IFS; IFS=$ac_path_separator
4047 for ac_dir in $ac_dummy; do
4049 test -z "$ac_dir" && ac_dir=.
4050 if $as_executable_p "$ac_dir/$ac_word"; then
4051 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4052 echo "$as_me:4052: found $ac_dir/$ac_word" >&5
4060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4062 if test -n "$PKG_CONFIG"; then
4063 echo "$as_me:4063: result: $PKG_CONFIG" >&5
4064 echo "${ECHO_T}$PKG_CONFIG" >&6
4066 echo "$as_me:4066: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4071 if test -z "$ac_cv_path_PKG_CONFIG"; then
4072 ac_pt_PKG_CONFIG=$PKG_CONFIG
4073 # Extract the first word of "pkg-config", so it can be a program name with args.
4074 set dummy pkg-config; ac_word=$2
4075 echo "$as_me:4075: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 case $ac_pt_PKG_CONFIG in
4082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4085 ac_save_IFS=$IFS; IFS=$ac_path_separator
4087 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if $as_executable_p "$ac_dir/$ac_word"; then
4091 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4092 echo "$as_me:4092: found $ac_dir/$ac_word" >&5
4097 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4101 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4103 if test -n "$ac_pt_PKG_CONFIG"; then
4104 echo "$as_me:4104: result: $ac_pt_PKG_CONFIG" >&5
4105 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4107 echo "$as_me:4107: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 PKG_CONFIG=$ac_pt_PKG_CONFIG
4113 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4122 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4123 if test "$PKG_CONFIG" != none ; then
4125 if test "x$prefix" != xNONE; then
4126 cf_path_syntax="$prefix"
4128 cf_path_syntax="$ac_default_prefix"
4131 case ".$PKG_CONFIG" in
4136 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4138 (.\$\{*prefix\}*|.\$\{*dir\}*)
4139 eval PKG_CONFIG="$PKG_CONFIG"
4140 case ".$PKG_CONFIG" in
4142 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4147 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4150 { { echo "$as_me:4150: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4151 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4152 { (exit 1); exit 1; }; }
4156 elif test "x$cf_pkg_config" != xno ; then
4157 { echo "$as_me:4157: WARNING: pkg-config is not installed" >&5
4158 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4161 case "$PKG_CONFIG" in
4163 echo "$as_me:4163: checking for pkg-config library directory" >&5
4164 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4167 echo "$as_me:4167: checking for $PKG_CONFIG library directory" >&5
4168 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4172 # if $PKG_CONFIG_LIBDIR is set, try to use that
4173 if test -n "$PKG_CONFIG_PATH"; then
4174 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4175 elif test -n "$PKG_CONFIG_LIBDIR"; then
4176 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4178 cf_search_path=libdir
4181 # if the option is used, let that override. otherwise default to "libdir"
4183 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4184 if test "${with_pkg_config_libdir+set}" = set; then
4185 withval="$with_pkg_config_libdir"
4186 cf_search_path=$withval
4189 case "x$cf_search_path" in
4191 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4192 echo "$as_me:4192: result: $PKG_CONFIG_LIBDIR" >&5
4193 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4202 PKG_CONFIG_LIBDIR="$cf_search_path"
4203 echo "$as_me:4203: result: $PKG_CONFIG_LIBDIR" >&5
4204 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4208 echo "$as_me:4208: result: auto" >&5
4209 echo "${ECHO_T}auto" >&6
4211 # Look for the library directory using the same prefix as the executable
4212 echo "$as_me:4212: checking for search-list" >&5
4213 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4214 if test "x$PKG_CONFIG" != xnone
4216 # works for pkg-config since version 0.24 (2009)
4217 # works for pkgconf since version 0.8.3 (2012)
4218 for cf_pkg_program in \
4219 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4223 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4224 test -n "$cf_search_path" && break
4227 # works for pkg-config since import in 2005 of original 2001 HP code.
4228 test -z "$cf_search_path" && \
4230 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4231 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4232 sub(\"^[^']*'\",\"\"); \
4233 sub(\"'.*\",\"\"); \
4234 printf \" %s\", \\$0; } \
4239 echo "$as_me:4239: result: $cf_search_path" >&5
4240 echo "${ECHO_T}$cf_search_path" >&6
4243 { { echo "$as_me:4243: error: Unexpected option value: $cf_search_path" >&5
4244 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4245 { (exit 1); exit 1; }; }
4249 if test -n "$cf_search_path"
4251 echo "$as_me:4251: checking for first directory" >&5
4252 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4253 cf_pkg_config_path=none
4254 for cf_config in $cf_search_path
4256 if test -d "$cf_config"
4258 cf_pkg_config_path=$cf_config
4262 echo "$as_me:4262: result: $cf_pkg_config_path" >&5
4263 echo "${ECHO_T}$cf_pkg_config_path" >&6
4265 if test "x$cf_pkg_config_path" != xnone ; then
4266 # limit this to the first directory found
4267 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4270 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4272 echo "$as_me:4272: checking for workaround" >&5
4273 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4274 if test "$prefix" = "NONE" ; then
4275 cf_prefix="$ac_default_prefix"
4279 eval cf_libdir=$libdir
4280 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4282 for cf_config in $cf_search_path
4285 $cf_libdir/pkgconfig)
4286 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4290 test -z "$cf_backup" && cf_backup=$cf_config
4294 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4295 echo "$as_me:4295: result: $PKG_CONFIG_LIBDIR" >&5
4296 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4300 if test "x$PKG_CONFIG" != xnone
4302 echo "$as_me:4302: checking if we should install .pc files for $PKG_CONFIG" >&5
4303 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4305 echo "$as_me:4305: checking if we should install .pc files" >&5
4306 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4309 # Check whether --enable-pc-files or --disable-pc-files was given.
4310 if test "${enable_pc_files+set}" = set; then
4311 enableval="$enable_pc_files"
4312 enable_pc_files=$enableval
4316 echo "$as_me:4316: result: $enable_pc_files" >&5
4317 echo "${ECHO_T}$enable_pc_files" >&6
4319 if test "x$enable_pc_files" != xno
4322 case "x$PKG_CONFIG_LIBDIR" in
4324 { echo "$as_me:4324: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4325 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4328 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4330 if test "x$prefix" != xNONE; then
4331 cf_path_syntax="$prefix"
4333 cf_path_syntax="$ac_default_prefix"
4336 case ".$cf_pkg_config_libdir" in
4341 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4343 (.\$\{*prefix\}*|.\$\{*dir\}*)
4344 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4345 case ".$cf_pkg_config_libdir" in
4347 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4352 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4355 { { echo "$as_me:4355: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4356 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4357 { (exit 1); exit 1; }; }
4367 if test -z "$MAKE_PC_FILES"
4369 echo "$as_me:4369: checking for suffix to add to pkg-config files" >&5
4370 echo $ECHO_N "checking for suffix to add to pkg-config files... $ECHO_C" >&6
4372 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4373 if test "${with_pc_suffix+set}" = set; then
4374 withval="$with_pc_suffix"
4379 (*) PC_MODULE_SUFFIX="$withval"
4383 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4384 echo "$as_me:4384: result: $PC_MODULE_SUFFIX" >&5
4385 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4386 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4390 echo "$as_me:4390: checking if we should assume mixed-case filenames" >&5
4391 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4393 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4394 if test "${enable_mixed_case+set}" = set; then
4395 enableval="$enable_mixed_case"
4396 enable_mixedcase=$enableval
4398 enable_mixedcase=auto
4400 echo "$as_me:4400: result: $enable_mixedcase" >&5
4401 echo "${ECHO_T}$enable_mixedcase" >&6
4402 if test "$enable_mixedcase" = "auto" ; then
4404 echo "$as_me:4404: checking if filesystem supports mixed-case filenames" >&5
4405 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4406 if test "${cf_cv_mixedcase+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 if test "$cross_compiling" = yes ; then
4411 case "$target_alias" in
4412 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4420 rm -f conftest CONFTEST
4422 if test -f CONFTEST ; then
4427 rm -f conftest CONFTEST
4431 echo "$as_me:4431: result: $cf_cv_mixedcase" >&5
4432 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4433 test "$cf_cv_mixedcase" = yes &&
4434 cat >>confdefs.h <<\EOF
4435 #define MIXEDCASE_FILENAMES 1
4439 cf_cv_mixedcase=$enable_mixedcase
4440 if test "x$enable_mixedcase" = "xyes" ; then
4442 cat >>confdefs.h <<\EOF
4443 #define MIXEDCASE_FILENAMES 1
4449 # do this after mixed-case option (tags/TAGS is not as important as tic).
4450 echo "$as_me:4450: checking whether ${MAKE-make} sets \${MAKE}" >&5
4451 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4452 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4453 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat >conftest.make <<\EOF
4458 @echo 'ac_maketemp="${MAKE}"'
4460 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4461 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4462 if test -n "$ac_maketemp"; then
4463 eval ac_cv_prog_make_${ac_make}_set=yes
4465 eval ac_cv_prog_make_${ac_make}_set=no
4469 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4470 echo "$as_me:4470: result: yes" >&5
4471 echo "${ECHO_T}yes" >&6
4474 echo "$as_me:4474: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4476 SET_MAKE="MAKE=${MAKE-make}"
4479 echo "$as_me:4479: checking for \".PHONY\" make-support" >&5
4480 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4481 if test "${cf_cv_make_PHONY+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 mkdir conftest || exit 1
4489 cat >makefile <<'CF_EOF'
4493 @echo "** making $@ $(DATA)"
4495 @echo "** making $@ $(DATA)"
4497 @echo "** making $@ $(DATA)"
4500 @echo "** making $@ $(DATA)"
4503 for cf_data in 1 2 3
4505 ${MAKE:-make} always DATA=$cf_data
4506 ${MAKE:-make} once DATA=$cf_data
4507 ${MAKE:-make} -t always once
4508 if test -f always ; then
4509 echo "no (case 1)" > ../conftest.tmp
4510 elif test ! -f always.out ; then
4511 echo "no (case 2)" > ../conftest.tmp
4512 elif test ! -f once.out ; then
4513 echo "no (case 3)" > ../conftest.tmp
4514 elif ! cmp -s always.out once.out ; then
4515 echo "no (case 4)" > ../conftest.tmp
4516 diff always.out once.out
4518 cf_check="`cat always.out`"
4519 if test "x$cf_check" != "x$cf_data" ; then
4520 echo "no (case 5)" > ../conftest.tmp
4522 echo yes > ../conftest.tmp
4530 cf_cv_make_PHONY="`cat conftest.tmp`"
4534 echo "$as_me:4534: result: $cf_cv_make_PHONY" >&5
4535 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4538 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4539 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4541 for ac_prog in exctags ctags
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:4545: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_prog_CTAGS+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 if test -n "$CTAGS"; then
4551 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4553 ac_save_IFS=$IFS; IFS=$ac_path_separator
4555 for ac_dir in $ac_dummy; do
4557 test -z "$ac_dir" && ac_dir=.
4558 $as_executable_p "$ac_dir/$ac_word" || continue
4559 ac_cv_prog_CTAGS="$ac_prog"
4560 echo "$as_me:4560: found $ac_dir/$ac_word" >&5
4566 CTAGS=$ac_cv_prog_CTAGS
4567 if test -n "$CTAGS"; then
4568 echo "$as_me:4568: result: $CTAGS" >&5
4569 echo "${ECHO_T}$CTAGS" >&6
4571 echo "$as_me:4571: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4575 test -n "$CTAGS" && break
4578 for ac_prog in exetags etags
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 echo "$as_me:4582: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_prog_ETAGS+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -n "$ETAGS"; then
4588 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4590 ac_save_IFS=$IFS; IFS=$ac_path_separator
4592 for ac_dir in $ac_dummy; do
4594 test -z "$ac_dir" && ac_dir=.
4595 $as_executable_p "$ac_dir/$ac_word" || continue
4596 ac_cv_prog_ETAGS="$ac_prog"
4597 echo "$as_me:4597: found $ac_dir/$ac_word" >&5
4603 ETAGS=$ac_cv_prog_ETAGS
4604 if test -n "$ETAGS"; then
4605 echo "$as_me:4605: result: $ETAGS" >&5
4606 echo "${ECHO_T}$ETAGS" >&6
4608 echo "$as_me:4608: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4612 test -n "$ETAGS" && break
4615 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4616 set dummy ${CTAGS:-ctags}; ac_word=$2
4617 echo "$as_me:4617: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if test -n "$MAKE_LOWER_TAGS"; then
4623 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4625 ac_save_IFS=$IFS; IFS=$ac_path_separator
4627 for ac_dir in $ac_dummy; do
4629 test -z "$ac_dir" && ac_dir=.
4630 $as_executable_p "$ac_dir/$ac_word" || continue
4631 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4632 echo "$as_me:4632: found $ac_dir/$ac_word" >&5
4636 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4639 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4640 if test -n "$MAKE_LOWER_TAGS"; then
4641 echo "$as_me:4641: result: $MAKE_LOWER_TAGS" >&5
4642 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4644 echo "$as_me:4644: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4648 if test "$cf_cv_mixedcase" = yes ; then
4649 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4650 set dummy ${ETAGS:-etags}; ac_word=$2
4651 echo "$as_me:4651: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$MAKE_UPPER_TAGS"; then
4657 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4659 ac_save_IFS=$IFS; IFS=$ac_path_separator
4661 for ac_dir in $ac_dummy; do
4663 test -z "$ac_dir" && ac_dir=.
4664 $as_executable_p "$ac_dir/$ac_word" || continue
4665 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4666 echo "$as_me:4666: found $ac_dir/$ac_word" >&5
4670 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4673 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4674 if test -n "$MAKE_UPPER_TAGS"; then
4675 echo "$as_me:4675: result: $MAKE_UPPER_TAGS" >&5
4676 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4678 echo "$as_me:4678: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4686 if test "$MAKE_UPPER_TAGS" = yes ; then
4692 if test "$MAKE_LOWER_TAGS" = yes ; then
4698 echo "$as_me:4698: checking for makeflags variable" >&5
4699 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4700 if test "${cf_cv_makeflags+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4707 cat >cf_makeflags.tmp <<CF_EOF
4710 @ echo '.$cf_option'
4712 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4713 case "$cf_result" in
4715 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4716 case "$cf_result" in
4717 (.*CC=*) cf_cv_makeflags=
4719 (*) cf_cv_makeflags=$cf_option
4728 echo "${as_me:-configure}:4728: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4733 rm -f cf_makeflags.tmp
4736 echo "$as_me:4736: result: $cf_cv_makeflags" >&5
4737 echo "${ECHO_T}$cf_cv_makeflags" >&6
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 echo "$as_me:4742: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4750 ac_save_IFS=$IFS; IFS=$ac_path_separator
4752 for ac_dir in $ac_dummy; do
4754 test -z "$ac_dir" && ac_dir=.
4755 $as_executable_p "$ac_dir/$ac_word" || continue
4756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:4757: found $ac_dir/$ac_word" >&5
4763 RANLIB=$ac_cv_prog_RANLIB
4764 if test -n "$RANLIB"; then
4765 echo "$as_me:4765: result: $RANLIB" >&5
4766 echo "${ECHO_T}$RANLIB" >&6
4768 echo "$as_me:4768: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4773 if test -z "$ac_cv_prog_RANLIB"; then
4774 ac_ct_RANLIB=$RANLIB
4775 # Extract the first word of "ranlib", so it can be a program name with args.
4776 set dummy ranlib; ac_word=$2
4777 echo "$as_me:4777: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test -n "$ac_ct_RANLIB"; then
4783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785 ac_save_IFS=$IFS; IFS=$ac_path_separator
4787 for ac_dir in $ac_dummy; do
4789 test -z "$ac_dir" && ac_dir=.
4790 $as_executable_p "$ac_dir/$ac_word" || continue
4791 ac_cv_prog_ac_ct_RANLIB="ranlib"
4792 echo "$as_me:4792: found $ac_dir/$ac_word" >&5
4796 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4800 if test -n "$ac_ct_RANLIB"; then
4801 echo "$as_me:4801: result: $ac_ct_RANLIB" >&5
4802 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4804 echo "$as_me:4804: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4808 RANLIB=$ac_ct_RANLIB
4810 RANLIB="$ac_cv_prog_RANLIB"
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}ld; ac_word=$2
4816 echo "$as_me:4816: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_LD+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$LD"; then
4822 ac_cv_prog_LD="$LD" # Let the user override the test.
4824 ac_save_IFS=$IFS; IFS=$ac_path_separator
4826 for ac_dir in $ac_dummy; do
4828 test -z "$ac_dir" && ac_dir=.
4829 $as_executable_p "$ac_dir/$ac_word" || continue
4830 ac_cv_prog_LD="${ac_tool_prefix}ld"
4831 echo "$as_me:4831: found $ac_dir/$ac_word" >&5
4838 if test -n "$LD"; then
4839 echo "$as_me:4839: result: $LD" >&5
4840 echo "${ECHO_T}$LD" >&6
4842 echo "$as_me:4842: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4847 if test -z "$ac_cv_prog_LD"; then
4849 # Extract the first word of "ld", so it can be a program name with args.
4850 set dummy ld; ac_word=$2
4851 echo "$as_me:4851: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$ac_ct_LD"; then
4857 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4859 ac_save_IFS=$IFS; IFS=$ac_path_separator
4861 for ac_dir in $ac_dummy; do
4863 test -z "$ac_dir" && ac_dir=.
4864 $as_executable_p "$ac_dir/$ac_word" || continue
4865 ac_cv_prog_ac_ct_LD="ld"
4866 echo "$as_me:4866: found $ac_dir/$ac_word" >&5
4870 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4873 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4874 if test -n "$ac_ct_LD"; then
4875 echo "$as_me:4875: result: $ac_ct_LD" >&5
4876 echo "${ECHO_T}$ac_ct_LD" >&6
4878 echo "$as_me:4878: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}ar; ac_word=$2
4890 echo "$as_me:4890: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892 if test "${ac_cv_prog_AR+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 if test -n "$AR"; then
4896 ac_cv_prog_AR="$AR" # Let the user override the test.
4898 ac_save_IFS=$IFS; IFS=$ac_path_separator
4900 for ac_dir in $ac_dummy; do
4902 test -z "$ac_dir" && ac_dir=.
4903 $as_executable_p "$ac_dir/$ac_word" || continue
4904 ac_cv_prog_AR="${ac_tool_prefix}ar"
4905 echo "$as_me:4905: found $ac_dir/$ac_word" >&5
4912 if test -n "$AR"; then
4913 echo "$as_me:4913: result: $AR" >&5
4914 echo "${ECHO_T}$AR" >&6
4916 echo "$as_me:4916: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4921 if test -z "$ac_cv_prog_AR"; then
4923 # Extract the first word of "ar", so it can be a program name with args.
4924 set dummy ar; ac_word=$2
4925 echo "$as_me:4925: checking for $ac_word" >&5
4926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 if test -n "$ac_ct_AR"; then
4931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4933 ac_save_IFS=$IFS; IFS=$ac_path_separator
4935 for ac_dir in $ac_dummy; do
4937 test -z "$ac_dir" && ac_dir=.
4938 $as_executable_p "$ac_dir/$ac_word" || continue
4939 ac_cv_prog_ac_ct_AR="ar"
4940 echo "$as_me:4940: found $ac_dir/$ac_word" >&5
4944 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4948 if test -n "$ac_ct_AR"; then
4949 echo "$as_me:4949: result: $ac_ct_AR" >&5
4950 echo "${ECHO_T}$ac_ct_AR" >&6
4952 echo "$as_me:4952: result: no" >&5
4953 echo "${ECHO_T}no" >&6
4961 if test -n "$ac_tool_prefix"; then
4962 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}nm; ac_word=$2
4964 echo "$as_me:4964: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4966 if test "${ac_cv_prog_NM+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 if test -n "$NM"; then
4970 ac_cv_prog_NM="$NM" # Let the user override the test.
4972 ac_save_IFS=$IFS; IFS=$ac_path_separator
4974 for ac_dir in $ac_dummy; do
4976 test -z "$ac_dir" && ac_dir=.
4977 $as_executable_p "$ac_dir/$ac_word" || continue
4978 ac_cv_prog_NM="${ac_tool_prefix}nm"
4979 echo "$as_me:4979: found $ac_dir/$ac_word" >&5
4986 if test -n "$NM"; then
4987 echo "$as_me:4987: result: $NM" >&5
4988 echo "${ECHO_T}$NM" >&6
4990 echo "$as_me:4990: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4995 if test -z "$ac_cv_prog_NM"; then
4997 # Extract the first word of "nm", so it can be a program name with args.
4998 set dummy nm; ac_word=$2
4999 echo "$as_me:4999: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test -n "$ac_ct_NM"; then
5005 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5007 ac_save_IFS=$IFS; IFS=$ac_path_separator
5009 for ac_dir in $ac_dummy; do
5011 test -z "$ac_dir" && ac_dir=.
5012 $as_executable_p "$ac_dir/$ac_word" || continue
5013 ac_cv_prog_ac_ct_NM="nm"
5014 echo "$as_me:5014: found $ac_dir/$ac_word" >&5
5018 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5021 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5022 if test -n "$ac_ct_NM"; then
5023 echo "$as_me:5023: result: $ac_ct_NM" >&5
5024 echo "${ECHO_T}$ac_ct_NM" >&6
5026 echo "$as_me:5026: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5037 set dummy ${ac_tool_prefix}ar; ac_word=$2
5038 echo "$as_me:5038: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_AR+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 if test -n "$AR"; then
5044 ac_cv_prog_AR="$AR" # Let the user override the test.
5046 ac_save_IFS=$IFS; IFS=$ac_path_separator
5048 for ac_dir in $ac_dummy; do
5050 test -z "$ac_dir" && ac_dir=.
5051 $as_executable_p "$ac_dir/$ac_word" || continue
5052 ac_cv_prog_AR="${ac_tool_prefix}ar"
5053 echo "$as_me:5053: found $ac_dir/$ac_word" >&5
5060 if test -n "$AR"; then
5061 echo "$as_me:5061: result: $AR" >&5
5062 echo "${ECHO_T}$AR" >&6
5064 echo "$as_me:5064: result: no" >&5
5065 echo "${ECHO_T}no" >&6
5069 if test -z "$ac_cv_prog_AR"; then
5071 # Extract the first word of "ar", so it can be a program name with args.
5072 set dummy ar; ac_word=$2
5073 echo "$as_me:5073: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 if test -n "$ac_ct_AR"; then
5079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5081 ac_save_IFS=$IFS; IFS=$ac_path_separator
5083 for ac_dir in $ac_dummy; do
5085 test -z "$ac_dir" && ac_dir=.
5086 $as_executable_p "$ac_dir/$ac_word" || continue
5087 ac_cv_prog_ac_ct_AR="ar"
5088 echo "$as_me:5088: found $ac_dir/$ac_word" >&5
5092 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5095 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5096 if test -n "$ac_ct_AR"; then
5097 echo "$as_me:5097: result: $ac_ct_AR" >&5
5098 echo "${ECHO_T}$ac_ct_AR" >&6
5100 echo "$as_me:5100: result: no" >&5
5101 echo "${ECHO_T}no" >&6
5109 echo "$as_me:5109: checking for options to update archives" >&5
5110 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5111 if test "${cf_cv_ar_flags+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 case "$cf_cv_system_name" in
5118 cat >mk_static_lib.sh <<-EOF
5123 exec \$MSVC_BIN -out:"\$out" \$@
5125 chmod +x mk_static_lib.sh
5126 AR=`pwd`/mk_static_lib.sh
5129 cf_cv_ar_flags=unknown
5130 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5133 # check if $ARFLAGS already contains this choice
5134 if test "x$ARFLAGS" != "x" ; then
5135 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5136 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5142 rm -f "conftest.$ac_cv_objext"
5145 cat >"conftest.$ac_ext" <<EOF
5146 #line 5146 "configure"
5147 int testdata[3] = { 123, 456, 789 };
5149 if { (eval echo "$as_me:5149: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>&5
5152 echo "$as_me:5152: \$? = $ac_status" >&5
5153 (exit "$ac_status"); } ; then
5154 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5155 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5156 if test -f conftest.a ; then
5157 cf_cv_ar_flags="$cf_ar_flags"
5161 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5163 echo "${as_me:-configure}:5163: testing cannot compile test-program ..." 1>&5
5168 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5173 echo "$as_me:5173: result: $cf_cv_ar_flags" >&5
5174 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5176 if test -n "$ARFLAGS" ; then
5177 if test -n "$cf_cv_ar_flags" ; then
5178 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5181 ARFLAGS=$cf_cv_ar_flags
5184 echo "$as_me:5184: checking for an installation directory prefix" >&5
5185 echo $ECHO_N "checking for an installation directory prefix... $ECHO_C" >&6
5187 # Check whether --with-install-prefix or --without-install-prefix was given.
5188 if test "${with_install_prefix+set}" = set; then
5189 withval="$with_install_prefix"
5193 (*) DESTDIR="$withval"
5197 echo "$as_me:5197: result: ${DESTDIR:-(none)}" >&5
5198 echo "${ECHO_T}${DESTDIR:-(none)}" >&6
5200 ###############################################################################
5202 # If we're cross-compiling, allow the user to override the tools and their
5203 # options. The configure script is oriented toward identifying the host
5204 # compiler, etc., but we need a build compiler to generate parts of the source.
5206 case "$cf_cv_system_name" in
5208 LDFLAGS="$LDFLAGS user32.lib"
5213 if test "$cross_compiling" = yes ; then
5215 # defaults that we might want to override
5216 : ${BUILD_CFLAGS:=''}
5217 : ${BUILD_CPPFLAGS:=''}
5218 : ${BUILD_LDFLAGS:=''}
5220 : ${BUILD_EXEEXT:='$x'}
5221 : ${BUILD_OBJEXT:='o'}
5223 # Check whether --with-build-cc or --without-build-cc was given.
5224 if test "${with_build_cc+set}" = set; then
5225 withval="$with_build_cc"
5228 for ac_prog in gcc clang c99 c89 cc cl
5230 # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 echo "$as_me:5232: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test -n "$BUILD_CC"; then
5238 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5240 ac_save_IFS=$IFS; IFS=$ac_path_separator
5242 for ac_dir in $ac_dummy; do
5244 test -z "$ac_dir" && ac_dir=.
5245 $as_executable_p "$ac_dir/$ac_word" || continue
5246 ac_cv_prog_BUILD_CC="$ac_prog"
5247 echo "$as_me:5247: found $ac_dir/$ac_word" >&5
5253 BUILD_CC=$ac_cv_prog_BUILD_CC
5254 if test -n "$BUILD_CC"; then
5255 echo "$as_me:5255: result: $BUILD_CC" >&5
5256 echo "${ECHO_T}$BUILD_CC" >&6
5258 echo "$as_me:5258: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5262 test -n "$BUILD_CC" && break
5264 test -n "$BUILD_CC" || BUILD_CC="none"
5267 echo "$as_me:5267: checking for native build C compiler" >&5
5268 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5269 echo "$as_me:5269: result: $BUILD_CC" >&5
5270 echo "${ECHO_T}$BUILD_CC" >&6
5272 echo "$as_me:5272: checking for native build C preprocessor" >&5
5273 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5275 # Check whether --with-build-cpp or --without-build-cpp was given.
5276 if test "${with_build_cpp+set}" = set; then
5277 withval="$with_build_cpp"
5278 BUILD_CPP="$withval"
5280 BUILD_CPP='${BUILD_CC} -E'
5282 echo "$as_me:5282: result: $BUILD_CPP" >&5
5283 echo "${ECHO_T}$BUILD_CPP" >&6
5285 echo "$as_me:5285: checking for native build C flags" >&5
5286 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5288 # Check whether --with-build-cflags or --without-build-cflags was given.
5289 if test "${with_build_cflags+set}" = set; then
5290 withval="$with_build_cflags"
5291 BUILD_CFLAGS="$withval"
5293 echo "$as_me:5293: result: $BUILD_CFLAGS" >&5
5294 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5296 echo "$as_me:5296: checking for native build C preprocessor-flags" >&5
5297 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5299 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5300 if test "${with_build_cppflags+set}" = set; then
5301 withval="$with_build_cppflags"
5302 BUILD_CPPFLAGS="$withval"
5304 echo "$as_me:5304: result: $BUILD_CPPFLAGS" >&5
5305 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5307 echo "$as_me:5307: checking for native build linker-flags" >&5
5308 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5310 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5311 if test "${with_build_ldflags+set}" = set; then
5312 withval="$with_build_ldflags"
5313 BUILD_LDFLAGS="$withval"
5315 echo "$as_me:5315: result: $BUILD_LDFLAGS" >&5
5316 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5318 echo "$as_me:5318: checking for native build linker-libraries" >&5
5319 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5321 # Check whether --with-build-libs or --without-build-libs was given.
5322 if test "${with_build_libs+set}" = set; then
5323 withval="$with_build_libs"
5324 BUILD_LIBS="$withval"
5326 echo "$as_me:5326: result: $BUILD_LIBS" >&5
5327 echo "${ECHO_T}$BUILD_LIBS" >&6
5329 # this assumes we're on Unix.
5333 : ${BUILD_CC:='${CC}'}
5335 echo "$as_me:5335: checking if the build-compiler \"$BUILD_CC\" works" >&5
5336 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5338 cf_save_crossed=$cross_compiling
5339 cf_save_ac_link=$ac_link
5341 cf_build_cppflags=$BUILD_CPPFLAGS
5342 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5343 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5345 if test "$cross_compiling" = yes; then
5346 cf_ok_build_cc=unknown
5348 cat >"conftest.$ac_ext" <<_ACEOF
5349 #line 5349 "configure"
5350 #include "confdefs.h"
5352 int main(int argc, char *argv[])
5354 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5358 rm -f "conftest$ac_exeext"
5359 if { (eval echo "$as_me:5359: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>&5
5362 echo "$as_me:5362: \$? = $ac_status" >&5
5363 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5364 { (eval echo "$as_me:5364: \"$ac_try\"") >&5
5367 echo "$as_me:5367: \$? = $ac_status" >&5
5368 (exit "$ac_status"); }; }; then
5371 echo "$as_me: program exited with status $ac_status" >&5
5372 echo "$as_me: failed program was:" >&5
5373 cat "conftest.$ac_ext" >&5
5376 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5379 cross_compiling=$cf_save_crossed
5380 ac_link=$cf_save_ac_link
5382 echo "$as_me:5382: result: $cf_ok_build_cc" >&5
5383 echo "${ECHO_T}$cf_ok_build_cc" >&6
5385 if test "$cf_ok_build_cc" != yes
5387 { { echo "$as_me:5387: error: Cross-build requires two compilers.
5388 Use --with-build-cc to specify the native compiler." >&5
5389 echo "$as_me: error: Cross-build requires two compilers.
5390 Use --with-build-cc to specify the native compiler." >&2;}
5391 { (exit 1); exit 1; }; }
5395 : ${BUILD_CC:='${CC}'}
5396 : ${BUILD_CPP:='${CPP}'}
5397 : ${BUILD_CFLAGS:='${CFLAGS}'}
5398 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5399 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5400 : ${BUILD_LIBS:='${LIBS}'}
5401 : ${BUILD_EXEEXT:='$x'}
5402 : ${BUILD_OBJEXT:='o'}
5405 ###############################################################################
5407 ### Options to allow the user to specify the set of libraries which are used.
5408 ### Use "--without-normal --with-shared" to allow the default model to be
5409 ### shared, for example.
5412 echo "$as_me:5412: checking if libtool -version-number should be used" >&5
5413 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5415 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5416 if test "${enable_libtool_version+set}" = set; then
5417 enableval="$enable_libtool_version"
5418 test "$enableval" != no && enableval=yes
5419 if test "$enableval" != "yes" ; then
5420 cf_libtool_version=no
5422 cf_libtool_version=yes
5426 cf_libtool_version=yes
5429 echo "$as_me:5429: result: $cf_libtool_version" >&5
5430 echo "${ECHO_T}$cf_libtool_version" >&6
5432 if test "$cf_libtool_version" = yes ; then
5433 LIBTOOL_VERSION="-version-number"
5435 LIBTOOL_VERSION="-version-info"
5438 { echo "$as_me:5438: WARNING: VERSION was not set" >&5
5439 echo "$as_me: WARNING: VERSION was not set" >&2;}
5442 ABI_VERSION="$VERSION"
5443 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5445 echo "${as_me:-configure}:5445: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5449 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5450 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5452 echo "${as_me:-configure}:5452: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5456 { echo "$as_me:5456: WARNING: unexpected VERSION value: $VERSION" >&5
5457 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5464 # common library maintenance symbols that are convenient for libtool scripts:
5465 LIB_CREATE='${AR} -cr'
5466 LIB_OBJECT='${OBJECTS}'
5470 # symbols used to prop libtool up to enable it to determine what it should be
5478 echo "$as_me:5478: checking if you want to build libraries with libtool" >&5
5479 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5481 # Check whether --with-libtool or --without-libtool was given.
5482 if test "${with_libtool+set}" = set; then
5483 withval="$with_libtool"
5484 with_libtool=$withval
5488 echo "$as_me:5488: result: $with_libtool" >&5
5489 echo "${ECHO_T}$with_libtool" >&6
5490 if test "$with_libtool" != "no"; then
5492 if test "$with_libtool" != "yes" ; then
5494 if test "x$prefix" != xNONE; then
5495 cf_path_syntax="$prefix"
5497 cf_path_syntax="$ac_default_prefix"
5500 case ".$with_libtool" in
5505 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5507 (.\$\{*prefix\}*|.\$\{*dir\}*)
5508 eval with_libtool="$with_libtool"
5509 case ".$with_libtool" in
5511 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5516 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5519 { { echo "$as_me:5519: error: expected a pathname, not \"$with_libtool\"" >&5
5520 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5521 { (exit 1); exit 1; }; }
5525 LIBTOOL=$with_libtool
5527 if test -n "$ac_tool_prefix"; then
5528 for ac_prog in libtool glibtool
5530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5532 echo "$as_me:5532: checking for $ac_word" >&5
5533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5534 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 if test -n "$LIBTOOL"; then
5538 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5540 ac_save_IFS=$IFS; IFS=$ac_path_separator
5542 for ac_dir in $ac_dummy; do
5544 test -z "$ac_dir" && ac_dir=.
5545 $as_executable_p "$ac_dir/$ac_word" || continue
5546 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5547 echo "$as_me:5547: found $ac_dir/$ac_word" >&5
5553 LIBTOOL=$ac_cv_prog_LIBTOOL
5554 if test -n "$LIBTOOL"; then
5555 echo "$as_me:5555: result: $LIBTOOL" >&5
5556 echo "${ECHO_T}$LIBTOOL" >&6
5558 echo "$as_me:5558: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5562 test -n "$LIBTOOL" && break
5565 if test -z "$LIBTOOL"; then
5566 ac_ct_LIBTOOL=$LIBTOOL
5567 for ac_prog in libtool glibtool
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 echo "$as_me:5571: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 if test -n "$ac_ct_LIBTOOL"; then
5577 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5579 ac_save_IFS=$IFS; IFS=$ac_path_separator
5581 for ac_dir in $ac_dummy; do
5583 test -z "$ac_dir" && ac_dir=.
5584 $as_executable_p "$ac_dir/$ac_word" || continue
5585 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5586 echo "$as_me:5586: found $ac_dir/$ac_word" >&5
5592 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5593 if test -n "$ac_ct_LIBTOOL"; then
5594 echo "$as_me:5594: result: $ac_ct_LIBTOOL" >&5
5595 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5597 echo "$as_me:5597: result: no" >&5
5598 echo "${ECHO_T}no" >&6
5601 test -n "$ac_ct_LIBTOOL" && break
5603 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5605 LIBTOOL=$ac_ct_LIBTOOL
5608 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5610 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.].*//'`
5612 cf_cv_libtool_version=
5614 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5616 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5619 unset ac_cv_prog_ac_ct_LIBTOOL
5623 if test -n "$ac_tool_prefix"; then
5624 for ac_prog in glibtool
5626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5628 echo "$as_me:5628: checking for $ac_word" >&5
5629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5630 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 if test -n "$LIBTOOL"; then
5634 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5636 ac_save_IFS=$IFS; IFS=$ac_path_separator
5638 for ac_dir in $ac_dummy; do
5640 test -z "$ac_dir" && ac_dir=.
5641 $as_executable_p "$ac_dir/$ac_word" || continue
5642 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5643 echo "$as_me:5643: found $ac_dir/$ac_word" >&5
5649 LIBTOOL=$ac_cv_prog_LIBTOOL
5650 if test -n "$LIBTOOL"; then
5651 echo "$as_me:5651: result: $LIBTOOL" >&5
5652 echo "${ECHO_T}$LIBTOOL" >&6
5654 echo "$as_me:5654: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5658 test -n "$LIBTOOL" && break
5661 if test -z "$LIBTOOL"; then
5662 ac_ct_LIBTOOL=$LIBTOOL
5663 for ac_prog in glibtool
5665 # Extract the first word of "$ac_prog", so it can be a program name with args.
5666 set dummy $ac_prog; ac_word=$2
5667 echo "$as_me:5667: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5669 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 if test -n "$ac_ct_LIBTOOL"; then
5673 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5675 ac_save_IFS=$IFS; IFS=$ac_path_separator
5677 for ac_dir in $ac_dummy; do
5679 test -z "$ac_dir" && ac_dir=.
5680 $as_executable_p "$ac_dir/$ac_word" || continue
5681 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5682 echo "$as_me:5682: found $ac_dir/$ac_word" >&5
5688 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5689 if test -n "$ac_ct_LIBTOOL"; then
5690 echo "$as_me:5690: result: $ac_ct_LIBTOOL" >&5
5691 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5693 echo "$as_me:5693: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5697 test -n "$ac_ct_LIBTOOL" && break
5699 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5701 LIBTOOL=$ac_ct_LIBTOOL
5704 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5706 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.].*//'`
5708 cf_cv_libtool_version=
5710 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5714 if test -z "$LIBTOOL" ; then
5715 { { echo "$as_me:5715: error: Cannot find libtool" >&5
5716 echo "$as_me: error: Cannot find libtool" >&2;}
5717 { (exit 1); exit 1; }; }
5719 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5720 LIB_OBJECT='${OBJECTS:.o=.lo}'
5722 LIB_CLEAN='${LIBTOOL} --mode=clean'
5723 LIB_COMPILE='${LIBTOOL} --mode=compile'
5724 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5725 LIB_INSTALL='${LIBTOOL} --mode=install'
5726 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5729 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5731 echo "$as_me:5731: checking version of $LIBTOOL" >&5
5732 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5734 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5736 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.].*//'`
5738 cf_cv_libtool_version=
5740 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5742 echo "$as_me:5742: result: $cf_cv_libtool_version" >&5
5743 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5744 if test -n "$cf_cv_libtool_version"
5746 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5747 case "x$cf_check_libtool_version" in
5748 (*...GNU-libtool...*)
5751 { { echo "$as_me:5751: error: This is not GNU libtool" >&5
5752 echo "$as_me: error: This is not GNU libtool" >&2;}
5753 { (exit 1); exit 1; }; }
5757 { { echo "$as_me:5757: error: No version found for $LIBTOOL" >&5
5758 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5759 { (exit 1); exit 1; }; }
5762 { { echo "$as_me:5762: error: GNU libtool has not been found" >&5
5763 echo "$as_me: error: GNU libtool has not been found" >&2;}
5764 { (exit 1); exit 1; }; }
5767 # special hack to add -no-undefined (which libtool should do for itself)
5769 case "$cf_cv_system_name" in
5770 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5771 LT_UNDEF=-no-undefined
5775 # special hack to add --tag option for C++ compiler
5776 case "$cf_cv_libtool_version" in
5777 (1.[5-9]*|[2-9].[0-9.a-z]*)
5778 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5779 LIBTOOL="$LIBTOOL --tag=CC"
5782 LIBTOOL_CXX="$LIBTOOL"
5790 test -z "$LIBTOOL" && ECHO_LT=
5792 if test "$with_libtool" != "no" ; then
5794 cf_list_models="$cf_list_models libtool"
5798 echo "$as_me:5798: checking if you want to build shared libraries" >&5
5799 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5801 # Check whether --with-shared or --without-shared was given.
5802 if test "${with_shared+set}" = set; then
5803 withval="$with_shared"
5804 with_shared=$withval
5808 echo "$as_me:5808: result: $with_shared" >&5
5809 echo "${ECHO_T}$with_shared" >&6
5810 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5812 echo "$as_me:5812: checking if you want to build static libraries" >&5
5813 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5815 # Check whether --with-normal or --without-normal was given.
5816 if test "${with_normal+set}" = set; then
5817 withval="$with_normal"
5818 with_normal=$withval
5822 echo "$as_me:5822: result: $with_normal" >&5
5823 echo "${ECHO_T}$with_normal" >&6
5824 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5826 echo "$as_me:5826: checking if you want to build debug libraries" >&5
5827 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5829 # Check whether --with-debug or --without-debug was given.
5830 if test "${with_debug+set}" = set; then
5831 withval="$with_debug"
5836 echo "$as_me:5836: result: $with_debug" >&5
5837 echo "${ECHO_T}$with_debug" >&6
5838 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5840 echo "$as_me:5840: checking if you want to build profiling libraries" >&5
5841 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5843 # Check whether --with-profile or --without-profile was given.
5844 if test "${with_profile+set}" = set; then
5845 withval="$with_profile"
5846 with_profile=$withval
5850 echo "$as_me:5850: result: $with_profile" >&5
5851 echo "${ECHO_T}$with_profile" >&6
5852 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5856 if test "X$cf_with_cxx_binding" != Xno; then
5857 if test "x$with_shared" = "xyes"; then
5858 echo "$as_me:5858: checking if you want to build C++ shared libraries" >&5
5859 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5861 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5862 if test "${with_cxx_shared+set}" = set; then
5863 withval="$with_cxx_shared"
5864 with_shared_cxx=$withval
5868 echo "$as_me:5868: result: $with_shared_cxx" >&5
5869 echo "${ECHO_T}$with_shared_cxx" >&6
5873 ###############################################################################
5875 echo "$as_me:5875: checking for specified models" >&5
5876 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5877 test -z "$cf_list_models" && cf_list_models=normal
5878 test "$with_libtool" != "no" && cf_list_models=libtool
5879 echo "$as_me:5879: result: $cf_list_models" >&5
5880 echo "${ECHO_T}$cf_list_models" >&6
5882 ### Use the first model as the default, and save its suffix for use in building
5883 ### up test-applications.
5884 echo "$as_me:5884: checking for default model" >&5
5885 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5886 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5887 echo "$as_me:5887: result: $DFT_LWR_MODEL" >&5
5888 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5890 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5901 echo "$as_me:5901: checking if you want to have a library-prefix" >&5
5902 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5904 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5905 if test "${with_lib_prefix+set}" = set; then
5906 withval="$with_lib_prefix"
5907 with_lib_prefix=$withval
5909 with_lib_prefix=auto
5911 echo "$as_me:5911: result: $with_lib_prefix" >&5
5912 echo "${ECHO_T}$with_lib_prefix" >&6
5914 if test "$with_lib_prefix" = auto
5917 case "$cf_cv_system_name" in
5919 if test "$DFT_LWR_MODEL" = libtool; then
5928 (*) LIB_PREFIX='lib'
5931 cf_prefix=$LIB_PREFIX
5933 elif test "$with_lib_prefix" = no
5937 LIB_PREFIX=$with_lib_prefix
5942 echo "$as_me:5942: checking for PATH separator" >&5
5943 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5944 case "$cf_cv_system_name" in
5945 (os2*) PATH_SEPARATOR=';' ;;
5946 (*) ${PATH_SEPARATOR:=':'} ;;
5949 echo "$as_me:5949: result: $PATH_SEPARATOR" >&5
5950 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5952 # headers needed for checks...
5953 echo "$as_me:5953: checking for ANSI C header files" >&5
5954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5955 if test "${ac_cv_header_stdc+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >"conftest.$ac_ext" <<_ACEOF
5959 #line 5959 "configure"
5960 #include "confdefs.h"
5967 if { (eval echo "$as_me:5967: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5968 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5970 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 echo "$as_me:5973: \$? = $ac_status" >&5
5974 (exit "$ac_status"); } >/dev/null; then
5975 if test -s conftest.err; then
5976 ac_cpp_err=$ac_c_preproc_warn_flag
5983 if test -z "$ac_cpp_err"; then
5984 ac_cv_header_stdc=yes
5986 echo "$as_me: failed program was:" >&5
5987 cat "conftest.$ac_ext" >&5
5988 ac_cv_header_stdc=no
5990 rm -f conftest.err "conftest.$ac_ext"
5992 if test $ac_cv_header_stdc = yes; then
5993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5994 cat >"conftest.$ac_ext" <<_ACEOF
5995 #line 5995 "configure"
5996 #include "confdefs.h"
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "memchr" >/dev/null 2>&1; then
6004 ac_cv_header_stdc=no
6010 if test $ac_cv_header_stdc = yes; then
6011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6012 cat >"conftest.$ac_ext" <<_ACEOF
6013 #line 6013 "configure"
6014 #include "confdefs.h"
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 $EGREP "free" >/dev/null 2>&1; then
6022 ac_cv_header_stdc=no
6028 if test $ac_cv_header_stdc = yes; then
6029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6030 if test "$cross_compiling" = yes; then
6033 cat >"conftest.$ac_ext" <<_ACEOF
6034 #line 6034 "configure"
6035 #include "confdefs.h"
6037 #if ((' ' & 0x0FF) == 0x020)
6038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6041 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6042 || ('j' <= (c) && (c) <= 'r') \
6043 || ('s' <= (c) && (c) <= 'z'))
6044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6052 for (i = 0; i < 256; i++)
6053 if (XOR (islower (i), ISLOWER (i))
6054 || toupper (i) != TOUPPER (i))
6056 $ac_main_return (0);
6059 rm -f "conftest$ac_exeext"
6060 if { (eval echo "$as_me:6060: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>&5
6063 echo "$as_me:6063: \$? = $ac_status" >&5
6064 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6065 { (eval echo "$as_me:6065: \"$ac_try\"") >&5
6068 echo "$as_me:6068: \$? = $ac_status" >&5
6069 (exit "$ac_status"); }; }; then
6072 echo "$as_me: program exited with status $ac_status" >&5
6073 echo "$as_me: failed program was:" >&5
6074 cat "conftest.$ac_ext" >&5
6075 ac_cv_header_stdc=no
6077 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6081 echo "$as_me:6081: result: $ac_cv_header_stdc" >&5
6082 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6083 if test $ac_cv_header_stdc = yes; then
6085 cat >>confdefs.h <<\EOF
6086 #define STDC_HEADERS 1
6091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6094 inttypes.h stdint.h unistd.h
6096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6097 echo "$as_me:6097: checking for $ac_header" >&5
6098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >"conftest.$ac_ext" <<_ACEOF
6103 #line 6103 "configure"
6104 #include "confdefs.h"
6105 $ac_includes_default
6106 #include <$ac_header>
6108 rm -f "conftest.$ac_objext"
6109 if { (eval echo "$as_me:6109: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>&5
6112 echo "$as_me:6112: \$? = $ac_status" >&5
6113 (exit "$ac_status"); } &&
6114 { ac_try='test -s "conftest.$ac_objext"'
6115 { (eval echo "$as_me:6115: \"$ac_try\"") >&5
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit "$ac_status"); }; }; then
6120 eval "$as_ac_Header=yes"
6122 echo "$as_me: failed program was:" >&5
6123 cat "conftest.$ac_ext" >&5
6124 eval "$as_ac_Header=no"
6126 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6128 echo "$as_me:6128: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6129 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6130 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6131 cat >>confdefs.h <<EOF
6132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6138 echo "$as_me:6138: checking whether exit is declared" >&5
6139 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6140 if test "${ac_cv_have_decl_exit+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 cat >"conftest.$ac_ext" <<_ACEOF
6144 #line 6144 "configure"
6145 #include "confdefs.h"
6146 $ac_includes_default
6151 char *p = (char *) exit; (void) p;
6158 rm -f "conftest.$ac_objext"
6159 if { (eval echo "$as_me:6159: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6162 echo "$as_me:6162: \$? = $ac_status" >&5
6163 (exit "$ac_status"); } &&
6164 { ac_try='test -s "conftest.$ac_objext"'
6165 { (eval echo "$as_me:6165: \"$ac_try\"") >&5
6168 echo "$as_me:6168: \$? = $ac_status" >&5
6169 (exit "$ac_status"); }; }; then
6170 ac_cv_have_decl_exit=yes
6172 echo "$as_me: failed program was:" >&5
6173 cat "conftest.$ac_ext" >&5
6174 ac_cv_have_decl_exit=no
6176 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6178 echo "$as_me:6178: result: $ac_cv_have_decl_exit" >&5
6179 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6182 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6183 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6184 echo "$as_me:6184: checking for $ac_hdr that defines DIR" >&5
6185 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 cat >"conftest.$ac_ext" <<_ACEOF
6190 #line 6190 "configure"
6191 #include "confdefs.h"
6192 #include <sys/types.h>
6204 rm -f "conftest.$ac_objext"
6205 if { (eval echo "$as_me:6205: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>&5
6208 echo "$as_me:6208: \$? = $ac_status" >&5
6209 (exit "$ac_status"); } &&
6210 { ac_try='test -s "conftest.$ac_objext"'
6211 { (eval echo "$as_me:6211: \"$ac_try\"") >&5
6214 echo "$as_me:6214: \$? = $ac_status" >&5
6215 (exit "$ac_status"); }; }; then
6216 eval "$as_ac_Header=yes"
6218 echo "$as_me: failed program was:" >&5
6219 cat "conftest.$ac_ext" >&5
6220 eval "$as_ac_Header=no"
6222 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6224 echo "$as_me:6224: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6225 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6226 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6227 cat >>confdefs.h <<EOF
6228 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6231 ac_header_dirent=$ac_hdr; break
6235 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6236 if test $ac_header_dirent = dirent.h; then
6237 echo "$as_me:6237: checking for opendir in -ldir" >&5
6238 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6239 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 ac_check_lib_save_LIBS=$LIBS
6244 cat >"conftest.$ac_ext" <<_ACEOF
6245 #line 6245 "configure"
6246 #include "confdefs.h"
6248 /* Override any gcc2 internal prototype to avoid an error. */
6252 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */
6263 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6264 if { (eval echo "$as_me:6264: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>&5
6267 echo "$as_me:6267: \$? = $ac_status" >&5
6268 (exit "$ac_status"); } &&
6269 { ac_try='test -s "conftest$ac_exeext"'
6270 { (eval echo "$as_me:6270: \"$ac_try\"") >&5
6273 echo "$as_me:6273: \$? = $ac_status" >&5
6274 (exit "$ac_status"); }; }; then
6275 ac_cv_lib_dir_opendir=yes
6277 echo "$as_me: failed program was:" >&5
6278 cat "conftest.$ac_ext" >&5
6279 ac_cv_lib_dir_opendir=no
6281 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6282 LIBS=$ac_check_lib_save_LIBS
6284 echo "$as_me:6284: result: $ac_cv_lib_dir_opendir" >&5
6285 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6286 if test "$ac_cv_lib_dir_opendir" = yes; then
6291 echo "$as_me:6291: checking for opendir in -lx" >&5
6292 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6293 if test "${ac_cv_lib_x_opendir+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 ac_check_lib_save_LIBS=$LIBS
6298 cat >"conftest.$ac_ext" <<_ACEOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
6302 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6317 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6318 if { (eval echo "$as_me:6318: \"$ac_link\"") >&5
6319 (eval $ac_link) 2>&5
6321 echo "$as_me:6321: \$? = $ac_status" >&5
6322 (exit "$ac_status"); } &&
6323 { ac_try='test -s "conftest$ac_exeext"'
6324 { (eval echo "$as_me:6324: \"$ac_try\"") >&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit "$ac_status"); }; }; then
6329 ac_cv_lib_x_opendir=yes
6331 echo "$as_me: failed program was:" >&5
6332 cat "conftest.$ac_ext" >&5
6333 ac_cv_lib_x_opendir=no
6335 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6336 LIBS=$ac_check_lib_save_LIBS
6338 echo "$as_me:6338: result: $ac_cv_lib_x_opendir" >&5
6339 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6340 if test "$ac_cv_lib_x_opendir" = yes; then
6346 ###############################################################################
6348 echo "$as_me:6348: checking if you want to build a separate terminfo library" >&5
6349 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6351 # Check whether --with-termlib or --without-termlib was given.
6352 if test "${with_termlib+set}" = set; then
6353 withval="$with_termlib"
6354 with_termlib=$withval
6358 echo "$as_me:6358: result: $with_termlib" >&5
6359 echo "${ECHO_T}$with_termlib" >&6
6361 echo "$as_me:6361: checking if you want to build a separate tic library" >&5
6362 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6364 # Check whether --with-ticlib or --without-ticlib was given.
6365 if test "${with_ticlib+set}" = set; then
6366 withval="$with_ticlib"
6367 with_ticlib=$withval
6371 echo "$as_me:6371: result: $with_ticlib" >&5
6372 echo "${ECHO_T}$with_ticlib" >&6
6374 if test X"$CC_G_OPT" = X"" ; then
6376 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6379 if test X"$CXX_G_OPT" = X"" ; then
6381 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6384 echo "$as_me:6384: checking for default loader flags" >&5
6385 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6386 case "$DFT_LWR_MODEL" in
6387 (libtool) LD_MODEL='' ;;
6388 (normal) LD_MODEL='' ;;
6389 (debug) LD_MODEL=$CC_G_OPT ;;
6390 (profile) LD_MODEL='-pg';;
6391 (shared) LD_MODEL='' ;;
6393 echo "$as_me:6393: result: ${LD_MODEL:-(none)}" >&5
6394 echo "${ECHO_T}${LD_MODEL:-(none)}" >&6
6396 case "$DFT_LWR_MODEL" in
6399 echo "$as_me:6399: checking if rpath option should be used" >&5
6400 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6402 # Check whether --enable-rpath or --disable-rpath was given.
6403 if test "${enable_rpath+set}" = set; then
6404 enableval="$enable_rpath"
6405 cf_cv_enable_rpath=$enableval
6407 cf_cv_enable_rpath=no
6409 echo "$as_me:6409: result: $cf_cv_enable_rpath" >&5
6410 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6412 echo "$as_me:6412: checking if shared libraries should be relinked during install" >&5
6413 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6415 # Check whether --enable-relink or --disable-relink was given.
6416 if test "${enable_relink+set}" = set; then
6417 enableval="$enable_relink"
6418 cf_cv_do_relink=$enableval
6422 echo "$as_me:6422: result: $cf_cv_do_relink" >&5
6423 echo "${ECHO_T}$cf_cv_do_relink" >&6
6427 # we will build libraries one-level down.
6431 if test "x$cf_cv_enable_rpath" != xno
6433 echo "$as_me:6433: checking for an rpath option" >&5
6434 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6435 case "$cf_cv_system_name" in
6437 if test "$GCC" = yes; then
6438 LD_RPATH_OPT="-Wl,-rpath,"
6440 LD_RPATH_OPT="-rpath "
6443 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6444 LD_RPATH_OPT="-Wl,-rpath,"
6446 (openbsd[2-9].*|mirbsd*)
6447 LD_RPATH_OPT="-Wl,-rpath,"
6450 LD_RPATH_OPT="-rpath "
6453 LD_RPATH_OPT="-Wl,-rpath,"
6456 LD_RPATH_OPT="-rpath "
6464 echo "$as_me:6464: result: $LD_RPATH_OPT" >&5
6465 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6467 case "x$LD_RPATH_OPT" in
6469 echo "$as_me:6469: checking if we need a space after rpath option" >&5
6470 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6471 cf_save_LIBS="$LIBS"
6476 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6478 for cf_add_1lib in $cf_add_0lib; do
6479 for cf_add_2lib in $cf_add_libs; do
6480 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6485 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6489 cat >"conftest.$ac_ext" <<_ACEOF
6490 #line 6490 "configure"
6491 #include "confdefs.h"
6501 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6502 if { (eval echo "$as_me:6502: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6505 echo "$as_me:6505: \$? = $ac_status" >&5
6506 (exit "$ac_status"); } &&
6507 { ac_try='test -s "conftest$ac_exeext"'
6508 { (eval echo "$as_me:6508: \"$ac_try\"") >&5
6511 echo "$as_me:6511: \$? = $ac_status" >&5
6512 (exit "$ac_status"); }; }; then
6515 echo "$as_me: failed program was:" >&5
6516 cat "conftest.$ac_ext" >&5
6519 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6520 LIBS="$cf_save_LIBS"
6521 echo "$as_me:6521: result: $cf_rpath_space" >&5
6522 echo "${ECHO_T}$cf_rpath_space" >&6
6523 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6532 INSTALL_LIB="-m 644"
6533 : ${rel_builddir:=.}
6539 cf_cv_do_symlinks=no
6541 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6543 echo "$as_me:6543: checking whether to use release or ABI version in shared library file names" >&5
6544 echo $ECHO_N "checking whether to use release or ABI version in shared library file names... $ECHO_C" >&6
6546 # Check whether --with-shlib-version or --without-shlib-version was given.
6547 if test "${with_shlib_version+set}" = set; then
6548 withval="$with_shlib_version"
6549 test -z "$withval" && withval=auto
6552 cf_cv_shlib_version=auto
6555 cf_cv_shlib_version=$withval
6558 echo "$as_me:6558: result: $withval" >&5
6559 echo "${ECHO_T}$withval" >&6
6560 { { echo "$as_me:6560: error: option value must be one of: rel, abi, or auto" >&5
6561 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6562 { (exit 1); exit 1; }; }
6567 cf_cv_shlib_version=auto
6569 echo "$as_me:6569: result: $cf_cv_shlib_version" >&5
6570 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6575 # Some less-capable ports of gcc support only -fpic
6579 if test "$GCC" = yes
6583 case "$cf_cv_system_name" in
6584 (*linux*) # e.g., PGI compiler
6590 if test "$cf_try_fPIC" = yes
6592 echo "$as_me:6592: checking which $CC option to use" >&5
6593 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6594 cf_save_CFLAGS="$CFLAGS"
6595 for CC_SHARED_OPTS in -fPIC -fpic ''
6597 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6598 cat >"conftest.$ac_ext" <<_ACEOF
6599 #line 6599 "configure"
6600 #include "confdefs.h"
6610 rm -f "conftest.$ac_objext"
6611 if { (eval echo "$as_me:6611: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6614 echo "$as_me:6614: \$? = $ac_status" >&5
6615 (exit "$ac_status"); } &&
6616 { ac_try='test -s "conftest.$ac_objext"'
6617 { (eval echo "$as_me:6617: \"$ac_try\"") >&5
6620 echo "$as_me:6620: \$? = $ac_status" >&5
6621 (exit "$ac_status"); }; }; then
6624 echo "$as_me: failed program was:" >&5
6625 cat "conftest.$ac_ext" >&5
6627 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6629 echo "$as_me:6629: result: $CC_SHARED_OPTS" >&5
6630 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6631 CFLAGS="$cf_save_CFLAGS"
6634 cf_cv_shlib_version_infix=no
6636 case "$cf_cv_system_name" in
6637 (aix4.3-9*|aix[5-7]*)
6638 if test "$GCC" = yes; then
6639 CC_SHARED_OPTS='-Wl,-brtl'
6640 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6642 CC_SHARED_OPTS='-brtl'
6643 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6644 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6648 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6652 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6653 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6654 cf_cv_shlib_version=cygdll
6655 cf_cv_shlib_version_infix=cygdll
6658 cat >mk_shared_lib.sh <<-CF_EOF
6661 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6664 Linking shared library
6665 ** SHARED_LIB \$SHARED_LIB
6666 ** IMPORT_LIB \$IMPORT_LIB
6668 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6670 chmod +x mk_shared_lib.sh
6674 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6675 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6676 cf_cv_shlib_version=msysdll
6677 cf_cv_shlib_version_infix=msysdll
6680 cat >mk_shared_lib.sh <<-CF_EOF
6683 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6686 Linking shared library
6687 ** SHARED_LIB \$SHARED_LIB
6688 ** IMPORT_LIB \$IMPORT_LIB
6690 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6692 chmod +x mk_shared_lib.sh
6695 cf_try_cflags="no-cpp-precomp"
6696 CC_SHARED_OPTS="-dynamic"
6697 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6698 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6699 cf_cv_shlib_version_infix=yes
6700 echo "$as_me:6700: checking if ld -search_paths_first works" >&5
6701 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6702 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 cf_save_LDFLAGS=$LDFLAGS
6707 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6708 cat >"conftest.$ac_ext" <<_ACEOF
6709 #line 6709 "configure"
6710 #include "confdefs.h"
6720 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6721 if { (eval echo "$as_me:6721: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 (exit "$ac_status"); } &&
6726 { ac_try='test -s "conftest$ac_exeext"'
6727 { (eval echo "$as_me:6727: \"$ac_try\"") >&5
6730 echo "$as_me:6730: \$? = $ac_status" >&5
6731 (exit "$ac_status"); }; }; then
6732 cf_cv_ldflags_search_paths_first=yes
6734 echo "$as_me: failed program was:" >&5
6735 cat "conftest.$ac_ext" >&5
6736 cf_cv_ldflags_search_paths_first=no
6738 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6739 LDFLAGS=$cf_save_LDFLAGS
6741 echo "$as_me:6741: result: $cf_cv_ldflags_search_paths_first" >&5
6742 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6743 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6744 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6749 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6750 if test "$cf_cv_shlib_version" = rel; then
6751 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6753 cf_cv_shared_soname='`basename $@`'
6756 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6759 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6760 if test "$GCC" != yes; then
6763 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6764 INSTALL_LIB="-m 555"
6767 # (tested with gcc 2.7.2 -- I don't have c89)
6768 if test "$GCC" = yes; then
6769 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6772 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6774 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6775 # HP-UX shared libraries must be executable, and should be
6776 # readonly to exploit a quirk in the memory manager.
6777 INSTALL_LIB="-m 555"
6780 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6781 if test "$cf_cv_shlib_version" = rel; then
6782 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6784 cf_shared_soname='`basename $@`'
6787 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6790 if test "$cf_cv_enable_rpath" = yes ; then
6791 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6793 # tested with IRIX 5.2 and 'cc'.
6794 if test "$GCC" != yes; then
6795 CC_SHARED_OPTS='-KPIC'
6796 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6798 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6800 cf_cv_rm_so_locs=yes
6802 (linux*|gnu*|k*bsd*-gnu)
6803 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6804 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6805 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6807 if test "$cf_cv_enable_rpath" = yes ; then
6808 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6811 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6812 if test "$cf_cv_shlib_version" = rel; then
6813 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6815 cf_cv_shared_soname='`basename $@`'
6818 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6821 cf_cv_shlib_version=msvcdll
6822 cf_cv_shlib_version_infix=msvcdll
6825 if test "$DFT_LWR_MODEL" = "shared" ; then
6826 LOCAL_LDFLAGS="-link -dll"
6827 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6828 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6831 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6832 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6833 cat >mk_shared_lib.sh <<-CF_EOF
6836 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6841 Linking shared library
6842 ** SHARED LIB \$SHARED_LIB
6843 ** IMPORT_LIB \$IMPORT_LIB
6845 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6846 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6847 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6849 chmod +x mk_shared_lib.sh
6850 cat >mk_prog.sh <<-CF_EOF
6853 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6856 ldopts=("/subsystem:console")
6859 while test \$# -gt 0; do
6862 # ignore -link argument
6865 # ignore runtime-library option
6880 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6883 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6889 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6890 ldopts+=("\${linkarg}")
6898 ldopts+=("-out:\$1")
6907 if [ "\$isdll" -ne 0 ]; then
6908 for lib in \${libs[*]}; do
6909 ldopts+=("\$lib.dll.lib")
6912 for lib in \${libs[*]}; do
6913 ldopts+=("\$lib.lib")
6918 ** ld options: "\${ldopts[@]}"
6920 exec \$LD \${ldopts[@]}
6923 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6924 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6927 cf_cv_shlib_version=mingw
6928 cf_cv_shlib_version_infix=mingw
6931 if test "$DFT_LWR_MODEL" = "shared" ; then
6932 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6933 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6934 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6937 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6938 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6939 cat >mk_shared_lib.sh <<-CF_EOF
6942 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6945 Linking shared library
6946 ** SHARED_LIB \$SHARED_LIB
6947 ** IMPORT_LIB \$IMPORT_LIB
6949 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6951 chmod +x mk_shared_lib.sh
6953 (openbsd[2-9].*|mirbsd*)
6954 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6955 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6956 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6958 if test "$cf_cv_enable_rpath" = yes ; then
6959 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6961 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6963 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6964 if test "$cf_cv_shlib_version" = rel; then
6965 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6967 cf_cv_shared_soname='`basename $@`'
6970 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6974 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6978 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6980 (nto-qnx*|openbsd*|freebsd[12].*)
6981 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6982 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6983 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6985 (dragonfly*|freebsd*)
6986 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6987 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6988 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6989 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6990 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6993 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6994 if test "$cf_cv_shlib_version" = rel; then
6995 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6997 cf_cv_shared_soname='`basename $@`'
7000 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7003 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7004 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7005 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7006 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7007 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7008 if test "$cf_cv_shlib_version" = auto; then
7009 if test -f /usr/libexec/ld.elf_so; then
7010 cf_cv_shlib_version=abi
7012 cf_cv_shlib_version=rel
7016 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7017 if test "$cf_cv_shlib_version" = rel; then
7018 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7020 cf_cv_shared_soname='`basename $@`'
7023 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7025 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7029 # tested with OSF/1 V3.2 and 'cc'
7030 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7031 # link with shared libs).
7032 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7035 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7038 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7039 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7040 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7041 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7043 cf_cv_rm_so_locs=yes
7045 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7046 # tested with osr5.0.5
7047 if test "$GCC" != yes; then
7048 CC_SHARED_OPTS='-belf -KPIC'
7050 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7051 if test "$cf_cv_enable_rpath" = yes ; then
7052 # only way is to set LD_RUN_PATH but no switch for it
7055 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7056 LINK_PROGS='LD_RUN_PATH=${libdir}'
7057 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7060 # tested with SunOS 4.1.1 and gcc 2.7.0
7061 if test "$GCC" != yes; then
7062 CC_SHARED_OPTS='-KPIC'
7064 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7065 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7068 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7069 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7070 if test "$DFT_LWR_MODEL" = "shared" ; then
7071 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7072 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7074 if test "$cf_cv_enable_rpath" = yes ; then
7075 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7078 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7079 if test "$cf_cv_shlib_version" = rel; then
7080 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7082 cf_cv_shared_soname='`basename $@`'
7085 if test "$GCC" != yes; then
7086 cf_save_CFLAGS="$CFLAGS"
7087 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7089 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7090 cat >"conftest.$ac_ext" <<_ACEOF
7091 #line 7091 "configure"
7092 #include "confdefs.h"
7102 rm -f "conftest.$ac_objext"
7103 if { (eval echo "$as_me:7103: \"$ac_compile\"") >&5
7104 (eval $ac_compile) 2>&5
7106 echo "$as_me:7106: \$? = $ac_status" >&5
7107 (exit "$ac_status"); } &&
7108 { ac_try='test -s "conftest.$ac_objext"'
7109 { (eval echo "$as_me:7109: \"$ac_try\"") >&5
7112 echo "$as_me:7112: \$? = $ac_status" >&5
7113 (exit "$ac_status"); }; }; then
7116 echo "$as_me: failed program was:" >&5
7117 cat "conftest.$ac_ext" >&5
7119 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7121 CFLAGS="$cf_save_CFLAGS"
7122 CC_SHARED_OPTS=$cf_shared_opts
7123 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
7125 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7128 (sysv5uw7*|unix_sv*)
7129 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7130 if test "$GCC" != yes; then
7131 CC_SHARED_OPTS='-KPIC'
7133 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7136 CC_SHARED_OPTS='unknown'
7137 MK_SHARED_LIB='echo unknown'
7141 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7142 case "$cf_cv_shlib_version" in
7144 case "$MK_SHARED_LIB" in
7146 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7149 { echo "$as_me:7149: WARNING: ignored --with-shlib-version" >&5
7150 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7156 if test -n "$cf_try_cflags"
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7159 "${as_me:-configure}"
7161 int main(int argc, char *argv[])
7164 return (argv[argc-1] == 0) ;
7167 cf_save_CFLAGS="$CFLAGS"
7168 for cf_opt in $cf_try_cflags
7170 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7171 echo "$as_me:7171: checking if CFLAGS option -$cf_opt works" >&5
7172 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7173 if { (eval echo "$as_me:7173: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 (exit "$ac_status"); }; then
7178 echo "$as_me:7178: result: yes" >&5
7179 echo "${ECHO_T}yes" >&6
7180 cf_save_CFLAGS="$CFLAGS"
7182 echo "$as_me:7182: result: no" >&5
7183 echo "${ECHO_T}no" >&6
7186 CFLAGS="$cf_save_CFLAGS"
7189 # RPATH_LIST is a colon-separated list of directories
7190 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7191 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7193 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7195 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7197 echo "${as_me:-configure}:7197: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7199 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7201 echo "${as_me:-configure}:7201: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7203 for model in $cf_list_models ; do
7207 echo "$as_me:7207: checking for additional libtool options" >&5
7208 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7210 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7211 if test "${with_libtool_opts+set}" = set; then
7212 withval="$with_libtool_opts"
7213 with_libtool_opts=$withval
7215 with_libtool_opts=no
7217 echo "$as_me:7217: result: $with_libtool_opts" >&5
7218 echo "${ECHO_T}$with_libtool_opts" >&6
7220 case .$with_libtool_opts in
7224 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7228 echo "$as_me:7228: checking if exported-symbols file should be used" >&5
7229 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7231 # Check whether --with-export-syms or --without-export-syms was given.
7232 if test "${with_export_syms+set}" = set; then
7233 withval="$with_export_syms"
7234 with_export_syms=$withval
7238 if test "x$with_export_syms" = xyes
7240 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7243 echo "$as_me:7243: result: $with_export_syms" >&5
7244 echo "${ECHO_T}$with_export_syms" >&6
7245 if test "x$with_export_syms" != xno
7247 EXPORT_SYMS="-export-symbols $with_export_syms"
7253 if test "$CC_SHARED_OPTS" = "unknown"; then
7254 { { echo "$as_me:7254: error: Shared libraries are not supported in this version" >&5
7255 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7256 { (exit 1); exit 1; }; }
7258 # workaround for inept transition to PIE vs PIC...
7259 echo "$as_me:7259: checking if current CFLAGS link properly" >&5
7260 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7261 cat >"conftest.$ac_ext" <<_ACEOF
7262 #line 7262 "configure"
7263 #include "confdefs.h"
7268 printf("Hello work\\n");
7273 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7274 if { (eval echo "$as_me:7274: \"$ac_link\"") >&5
7275 (eval $ac_link) 2>&5
7277 echo "$as_me:7277: \$? = $ac_status" >&5
7278 (exit "$ac_status"); } &&
7279 { ac_try='test -s "conftest$ac_exeext"'
7280 { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit "$ac_status"); }; }; then
7287 echo "$as_me: failed program was:" >&5
7288 cat "conftest.$ac_ext" >&5
7291 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7292 echo "$as_me:7292: result: $cf_cflags_work" >&5
7293 echo "${ECHO_T}$cf_cflags_work" >&6
7294 if test "$cf_cflags_work" = no
7296 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7298 echo "${as_me:-configure}:7298: testing try to work around by appending shared-options ..." 1>&5
7300 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7303 echo "$as_me:7303: checking if versioned-symbols file should be used" >&5
7304 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7306 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7307 if test "${with_versioned_syms+set}" = set; then
7308 withval="$with_versioned_syms"
7309 with_versioned_syms=$withval
7311 with_versioned_syms=no
7313 case "x$with_versioned_syms" in
7315 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7321 test -f "$with_versioned_syms" || { { echo "$as_me:7321: error: expected a filename: $with_versioned_syms" >&5
7322 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7323 { (exit 1); exit 1; }; }
7326 test -f "$with_versioned_syms" || { { echo "$as_me:7326: error: expected a filename: $with_versioned_syms" >&5
7327 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7328 { (exit 1); exit 1; }; }
7329 with_versioned_syms=`pwd`/"$with_versioned_syms"
7332 echo "$as_me:7332: result: $with_versioned_syms" >&5
7333 echo "${ECHO_T}$with_versioned_syms" >&6
7339 if test "x$with_versioned_syms" != xno
7341 RESULTING_SYMS=$with_versioned_syms
7342 case "x$MK_SHARED_LIB" in
7344 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7345 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7346 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7348 echo "${as_me:-configure}:7348: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7352 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7353 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7354 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7356 echo "${as_me:-configure}:7356: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7360 { echo "$as_me:7360: WARNING: this system does not support versioned-symbols" >&5
7361 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7365 # Linux ld can selectively override scope, e.g., of symbols beginning with
7366 # "_" by first declaring some as global, and then using a wildcard to
7367 # declare the others as local. Some other loaders cannot do this. Check
7368 # by constructing a (very) simple shared library and inspecting its
7370 if test "x$VERSIONED_SYMS" != "x"
7372 echo "$as_me:7372: checking if wildcards can be used to selectively omit symbols" >&5
7373 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7379 cat >conftest.ver <<EOF
7408 cat >conftest.$ac_ext <<EOF
7409 #line 7409 "configure"
7410 int _ismissing(void) { return 1; }
7411 int _localf1(void) { return 1; }
7412 int _localf2(void) { return 2; }
7413 int globalf1(void) { return 1; }
7414 int globalf2(void) { return 2; }
7415 int _sublocalf1(void) { return 1; }
7416 int _sublocalf2(void) { return 2; }
7417 int subglobalf1(void) { return 1; }
7418 int subglobalf2(void) { return 2; }
7420 cat >conftest.mk <<EOF
7423 CPPFLAGS=${CPPFLAGS}
7426 VERSIONED_SYMS=${VERSIONED_SYMS}
7427 RESULTING_SYMS=conftest.ver
7428 MK_SHARED_LIB=${MK_SHARED_LIB}
7429 conftest.so: conftest.$ac_cv_objext
7430 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7433 # compile source, make library
7434 if make -f conftest.mk 2>&5 >/dev/null
7436 # test for missing symbol in either Data or Text section
7437 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7438 test -n "$cf_missing" && WILDCARD_SYMS=yes
7440 echo "$as_me:7440: result: $WILDCARD_SYMS" >&5
7441 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7450 ### Checks for special libraries, must be done up-front.
7453 echo "$as_me:7453: checking if you want to link with the GPM mouse library" >&5
7454 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7456 # Check whether --with-gpm or --without-gpm was given.
7457 if test "${with_gpm+set}" = set; then
7463 echo "$as_me:7463: result: $with_gpm" >&5
7464 echo "${ECHO_T}$with_gpm" >&6
7466 if test "$with_gpm" != no ; then
7467 echo "$as_me:7467: checking for gpm.h" >&5
7468 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7469 if test "${ac_cv_header_gpm_h+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >"conftest.$ac_ext" <<_ACEOF
7473 #line 7473 "configure"
7474 #include "confdefs.h"
7477 if { (eval echo "$as_me:7477: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7478 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7480 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 echo "$as_me:7483: \$? = $ac_status" >&5
7484 (exit "$ac_status"); } >/dev/null; then
7485 if test -s conftest.err; then
7486 ac_cpp_err=$ac_c_preproc_warn_flag
7493 if test -z "$ac_cpp_err"; then
7494 ac_cv_header_gpm_h=yes
7496 echo "$as_me: failed program was:" >&5
7497 cat "conftest.$ac_ext" >&5
7498 ac_cv_header_gpm_h=no
7500 rm -f conftest.err "conftest.$ac_ext"
7502 echo "$as_me:7502: result: $ac_cv_header_gpm_h" >&5
7503 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7504 if test "$ac_cv_header_gpm_h" = yes; then
7506 cat >>confdefs.h <<\EOF
7507 #define HAVE_GPM_H 1
7510 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7511 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7513 echo "${as_me:-configure}:7513: testing assuming we really have GPM library ..." 1>&5
7515 cat >>confdefs.h <<\EOF
7516 #define HAVE_LIBGPM 1
7521 echo "$as_me:7521: checking for Gpm_Open in -lgpm" >&5
7522 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7523 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 ac_check_lib_save_LIBS=$LIBS
7528 cat >"conftest.$ac_ext" <<_ACEOF
7529 #line 7529 "configure"
7530 #include "confdefs.h"
7532 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7547 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7548 if { (eval echo "$as_me:7548: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 (exit "$ac_status"); } &&
7553 { ac_try='test -s "conftest$ac_exeext"'
7554 { (eval echo "$as_me:7554: \"$ac_try\"") >&5
7557 echo "$as_me:7557: \$? = $ac_status" >&5
7558 (exit "$ac_status"); }; }; then
7559 ac_cv_lib_gpm_Gpm_Open=yes
7561 echo "$as_me: failed program was:" >&5
7562 cat "conftest.$ac_ext" >&5
7563 ac_cv_lib_gpm_Gpm_Open=no
7565 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7566 LIBS=$ac_check_lib_save_LIBS
7568 echo "$as_me:7568: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7569 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7570 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7574 if test "$with_gpm" = maybe; then
7575 { echo "$as_me:7575: WARNING: Cannot link with GPM library" >&5
7576 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7579 { { echo "$as_me:7579: error: Cannot link with GPM library" >&5
7580 echo "$as_me: error: Cannot link with GPM library" >&2;}
7581 { (exit 1); exit 1; }; }
7590 test "$with_gpm" != maybe && { echo "$as_me:7590: WARNING: Cannot find GPM header" >&5
7591 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7598 if test "$with_gpm" != no ; then
7599 echo "$as_me:7599: checking if you want to load GPM dynamically" >&5
7600 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7602 # Check whether --with-dlsym or --without-dlsym was given.
7603 if test "${with_dlsym+set}" = set; then
7604 withval="$with_dlsym"
7609 echo "$as_me:7609: result: $with_dlsym" >&5
7610 echo "${ECHO_T}$with_dlsym" >&6
7611 if test "x$with_dlsym" = xyes ; then
7614 echo "$as_me:7614: checking for dlsym" >&5
7615 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7616 if test "${ac_cv_func_dlsym+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cat >"conftest.$ac_ext" <<_ACEOF
7620 #line 7620 "configure"
7621 #include "confdefs.h"
7622 #define dlsym autoconf_temporary
7623 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7630 /* We use char because int might match the return type of a gcc2
7631 builtin and then its argument prototype would still apply. */
7638 /* The GNU C library defines stubs for functions which it implements
7639 to always fail with ENOSYS. Some functions are actually named
7640 something starting with __ and the normal name is an alias. */
7641 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7642 #error found stub for dlsym
7650 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7651 if { (eval echo "$as_me:7651: \"$ac_link\"") >&5
7652 (eval $ac_link) 2>&5
7654 echo "$as_me:7654: \$? = $ac_status" >&5
7655 (exit "$ac_status"); } &&
7656 { ac_try='test -s "conftest$ac_exeext"'
7657 { (eval echo "$as_me:7657: \"$ac_try\"") >&5
7660 echo "$as_me:7660: \$? = $ac_status" >&5
7661 (exit "$ac_status"); }; }; then
7662 ac_cv_func_dlsym=yes
7664 echo "$as_me: failed program was:" >&5
7665 cat "conftest.$ac_ext" >&5
7668 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7670 echo "$as_me:7670: result: $ac_cv_func_dlsym" >&5
7671 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7672 if test "$ac_cv_func_dlsym" = yes; then
7677 echo "$as_me:7677: checking for dlsym in -ldl" >&5
7678 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7679 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 ac_check_lib_save_LIBS=$LIBS
7684 cat >"conftest.$ac_ext" <<_ACEOF
7685 #line 7685 "configure"
7686 #include "confdefs.h"
7688 /* Override any gcc2 internal prototype to avoid an error. */
7692 /* We use char because int might match the return type of a gcc2
7693 builtin and then its argument prototype would still apply. */
7703 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7704 if { (eval echo "$as_me:7704: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>&5
7707 echo "$as_me:7707: \$? = $ac_status" >&5
7708 (exit "$ac_status"); } &&
7709 { ac_try='test -s "conftest$ac_exeext"'
7710 { (eval echo "$as_me:7710: \"$ac_try\"") >&5
7713 echo "$as_me:7713: \$? = $ac_status" >&5
7714 (exit "$ac_status"); }; }; then
7715 ac_cv_lib_dl_dlsym=yes
7717 echo "$as_me: failed program was:" >&5
7718 cat "conftest.$ac_ext" >&5
7719 ac_cv_lib_dl_dlsym=no
7721 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7722 LIBS=$ac_check_lib_save_LIBS
7724 echo "$as_me:7724: result: $ac_cv_lib_dl_dlsym" >&5
7725 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7726 if test "$ac_cv_lib_dl_dlsym" = yes; then
7734 if test "$cf_have_dlsym" = yes ; then
7735 test "$cf_have_libdl" = yes && {
7739 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7741 for cf_add_1lib in $cf_add_0lib; do
7742 for cf_add_2lib in $cf_add_libs; do
7743 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7748 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7753 echo "$as_me:7753: checking whether able to link to dl*() functions" >&5
7754 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7755 cat >"conftest.$ac_ext" <<_ACEOF
7756 #line 7756 "configure"
7757 #include "confdefs.h"
7764 if ((obj = dlopen("filename", 0)) != 0) {
7765 if (dlsym(obj, "symbolname") == 0) {
7773 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7774 if { (eval echo "$as_me:7774: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>&5
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 (exit "$ac_status"); } &&
7779 { ac_try='test -s "conftest$ac_exeext"'
7780 { (eval echo "$as_me:7780: \"$ac_try\"") >&5
7783 echo "$as_me:7783: \$? = $ac_status" >&5
7784 (exit "$ac_status"); }; }; then
7786 cat >>confdefs.h <<\EOF
7787 #define HAVE_LIBDL 1
7791 echo "$as_me: failed program was:" >&5
7792 cat "conftest.$ac_ext" >&5
7794 { { echo "$as_me:7794: error: Cannot link test program for libdl" >&5
7795 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7796 { (exit 1); exit 1; }; }
7798 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7799 echo "$as_me:7799: result: ok" >&5
7800 echo "${ECHO_T}ok" >&6
7802 { { echo "$as_me:7802: error: Cannot find dlsym function" >&5
7803 echo "$as_me: error: Cannot find dlsym function" >&2;}
7804 { (exit 1); exit 1; }; }
7807 if test "x$with_gpm" != xyes ; then
7808 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7810 echo "${as_me:-configure}:7810: testing assuming soname for gpm is $with_gpm ..." 1>&5
7812 cf_cv_gpm_soname="$with_gpm"
7815 echo "$as_me:7815: checking for soname of gpm library" >&5
7816 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7817 if test "${cf_cv_gpm_soname+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cf_cv_gpm_soname=unknown
7822 if test "$cross_compiling" != yes ; then
7823 cat >conftest.$ac_ext <<CF_EOF
7827 if (Gpm_Open(0,0)) Gpm_Close();
7828 ${cf_cv_main_return:-return}(0);
7831 cf_save_LIBS="$LIBS"
7836 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7838 for cf_add_1lib in $cf_add_0lib; do
7839 for cf_add_2lib in $cf_add_libs; do
7840 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7845 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7849 if { (eval echo "$as_me:7849: \"$ac_compile\"") >&5
7850 (eval $ac_compile) 2>&5
7852 echo "$as_me:7852: \$? = $ac_status" >&5
7853 (exit "$ac_status"); } ; then
7854 if { (eval echo "$as_me:7854: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit "$ac_status"); } ; then
7859 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7860 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7864 LIBS="$cf_save_LIBS"
7868 echo "$as_me:7868: result: $cf_cv_gpm_soname" >&5
7869 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7872 test "$cf_cv_gpm_soname" != "unknown" &&
7873 cat >>confdefs.h <<EOF
7874 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7877 SHLIB_LIST="-ldl $SHLIB_LIST"
7879 cf_add_libs="$PRIVATE_LIBS"
7882 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7884 for cf_add_1lib in $cf_add_0lib; do
7885 for cf_add_2lib in $cf_add_libs; do
7886 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7891 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7893 PRIVATE_LIBS="$cf_add_libs"
7896 SHLIB_LIST="-lgpm $SHLIB_LIST"
7898 cf_add_libs="$TEST_LIBS"
7901 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7903 for cf_add_1lib in $cf_add_0lib; do
7904 for cf_add_2lib in $cf_add_libs; do
7905 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7910 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7912 TEST_LIBS="$cf_add_libs"
7914 cf_add_libs="$PRIVATE_LIBS"
7917 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7919 for cf_add_1lib in $cf_add_0lib; do
7920 for cf_add_2lib in $cf_add_libs; do
7921 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7926 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7928 PRIVATE_LIBS="$cf_add_libs"
7932 cat >>confdefs.h <<\EOF
7933 #define HAVE_LIBGPM 1
7936 echo "$as_me:7936: checking for Gpm_Wgetch in -lgpm" >&5
7937 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7938 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 ac_check_lib_save_LIBS=$LIBS
7943 cat >"conftest.$ac_ext" <<_ACEOF
7944 #line 7944 "configure"
7945 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7962 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7963 if { (eval echo "$as_me:7963: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>&5
7966 echo "$as_me:7966: \$? = $ac_status" >&5
7967 (exit "$ac_status"); } &&
7968 { ac_try='test -s "conftest$ac_exeext"'
7969 { (eval echo "$as_me:7969: \"$ac_try\"") >&5
7972 echo "$as_me:7972: \$? = $ac_status" >&5
7973 (exit "$ac_status"); }; }; then
7974 ac_cv_lib_gpm_Gpm_Wgetch=yes
7976 echo "$as_me: failed program was:" >&5
7977 cat "conftest.$ac_ext" >&5
7978 ac_cv_lib_gpm_Gpm_Wgetch=no
7980 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7981 LIBS=$ac_check_lib_save_LIBS
7983 echo "$as_me:7983: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7984 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7985 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7987 echo "$as_me:7987: checking if GPM is weakly bound to curses library" >&5
7988 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7989 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cf_cv_check_gpm_wgetch=unknown
7994 if test "$cross_compiling" != yes ; then
7996 cat >conftest.$ac_ext <<CF_EOF
8001 ${cf_cv_main_return:-return}(0);
8005 cf_save_LIBS="$LIBS"
8006 # This only works if we can look at the symbol table. If a shared
8007 # library is stripped for install, we cannot use that. So we're forced
8008 # to rely on the static library, noting that some packagers may not
8010 LIBS="-static -lgpm -dynamic $LIBS"
8011 if { (eval echo "$as_me:8011: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>&5
8014 echo "$as_me:8014: \$? = $ac_status" >&5
8015 (exit "$ac_status"); } ; then
8016 if { (eval echo "$as_me:8016: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>&5
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 (exit "$ac_status"); } ; then
8021 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8022 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8023 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8027 LIBS="$cf_save_LIBS"
8031 echo "$as_me:8031: result: $cf_cv_check_gpm_wgetch" >&5
8032 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8034 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8035 { echo "$as_me:8035: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8036 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8043 echo "$as_me:8043: checking if you want to use PCRE2 for regular-expressions" >&5
8044 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8046 # Check whether --with-pcre2 or --without-pcre2 was given.
8047 if test "${with_pcre2+set}" = set; then
8048 withval="$with_pcre2"
8051 test -z "$with_pcre2" && with_pcre2=no
8052 echo "$as_me:8052: result: $with_pcre2" >&5
8053 echo "${ECHO_T}$with_pcre2" >&6
8055 if test "x$with_pcre2" != xno ; then
8057 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8060 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8061 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8063 echo "${as_me:-configure}:8063: testing found package $cf_with_pcre2 ..." 1>&5
8065 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8066 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8067 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8069 echo "${as_me:-configure}:8069: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8071 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8073 echo "${as_me:-configure}:8073: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8078 cf_new_extra_cppflags=
8080 for cf_add_cflags in $cf_pkgconfig_incs
8082 case "$cf_fix_cppflags" in
8084 case "$cf_add_cflags" in
8085 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8086 case "$cf_add_cflags" in
8088 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8090 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8091 && test -z "${cf_tst_cflags}" \
8092 && cf_fix_cppflags=yes
8094 if test "$cf_fix_cppflags" = yes ; then
8096 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8097 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8100 elif test "${cf_tst_cflags}" = "\"'" ; then
8102 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8103 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8113 case "$cf_add_cflags" in
8115 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8117 CPPFLAGS=`echo "$CPPFLAGS" | \
8118 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8119 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8124 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8125 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8132 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8133 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8140 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8141 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8143 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8145 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8146 && test -z "${cf_tst_cflags}" \
8147 && cf_fix_cppflags=no
8152 if test -n "$cf_new_cflags" ; then
8154 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8155 CFLAGS="${CFLAGS}$cf_new_cflags"
8159 if test -n "$cf_new_cppflags" ; then
8161 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8162 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8166 if test -n "$cf_new_extra_cppflags" ; then
8168 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8169 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8176 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8178 for cf_add_1lib in $cf_add_0lib; do
8179 for cf_add_2lib in $cf_add_libs; do
8180 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8185 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8189 cf_with_pcre2_ok=yes; break
8197 cf_with_pcre2_ok=yes || { { echo "$as_me:8197: error: Cannot find PCRE2 library" >&5
8198 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8199 { (exit 1); exit 1; }; }
8201 cat >>confdefs.h <<\EOF
8202 #define HAVE_LIB_PCRE2 1
8205 # if pkgconfig gave no results, look for the libraries directly
8207 (*pcre2-posix*|*pcreposix*)
8210 echo "$as_me:8210: checking for regcomp in -lpcre2-posix" >&5
8211 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8212 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 ac_check_lib_save_LIBS=$LIBS
8216 LIBS="-lpcre2-posix $LIBS"
8217 cat >"conftest.$ac_ext" <<_ACEOF
8218 #line 8218 "configure"
8219 #include "confdefs.h"
8221 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8237 if { (eval echo "$as_me:8237: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 (exit "$ac_status"); } &&
8242 { ac_try='test -s "conftest$ac_exeext"'
8243 { (eval echo "$as_me:8243: \"$ac_try\"") >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 (exit "$ac_status"); }; }; then
8248 ac_cv_lib_pcre2_posix_regcomp=yes
8250 echo "$as_me: failed program was:" >&5
8251 cat "conftest.$ac_ext" >&5
8252 ac_cv_lib_pcre2_posix_regcomp=no
8254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8255 LIBS=$ac_check_lib_save_LIBS
8257 echo "$as_me:8257: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8258 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8259 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8264 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8266 for cf_add_1lib in $cf_add_0lib; do
8267 for cf_add_2lib in $cf_add_libs; do
8268 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8273 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8278 echo "$as_me:8278: checking for regcomp in -lpcreposix" >&5
8279 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8280 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 ac_check_lib_save_LIBS=$LIBS
8284 LIBS="-lpcreposix $LIBS"
8285 cat >"conftest.$ac_ext" <<_ACEOF
8286 #line 8286 "configure"
8287 #include "confdefs.h"
8289 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8304 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8305 if { (eval echo "$as_me:8305: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:8308: \$? = $ac_status" >&5
8309 (exit "$ac_status"); } &&
8310 { ac_try='test -s "conftest$ac_exeext"'
8311 { (eval echo "$as_me:8311: \"$ac_try\"") >&5
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit "$ac_status"); }; }; then
8316 ac_cv_lib_pcreposix_regcomp=yes
8318 echo "$as_me: failed program was:" >&5
8319 cat "conftest.$ac_ext" >&5
8320 ac_cv_lib_pcreposix_regcomp=no
8322 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8323 LIBS=$ac_check_lib_save_LIBS
8325 echo "$as_me:8325: result: $ac_cv_lib_pcreposix_regcomp" >&5
8326 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8327 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8332 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8334 for cf_add_1lib in $cf_add_0lib; do
8335 for cf_add_2lib in $cf_add_libs; do
8336 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8341 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8346 { { echo "$as_me:8346: error: Cannot find PCRE2 POSIX library" >&5
8347 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8348 { (exit 1); exit 1; }; }
8356 # either way, check for the library header files
8358 for ac_header in pcre2posix.h pcreposix.h
8360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361 echo "$as_me:8361: checking for $ac_header" >&5
8362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 cat >"conftest.$ac_ext" <<_ACEOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8369 #include <$ac_header>
8371 if { (eval echo "$as_me:8371: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8372 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8374 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:8377: \$? = $ac_status" >&5
8378 (exit "$ac_status"); } >/dev/null; then
8379 if test -s conftest.err; then
8380 ac_cpp_err=$ac_c_preproc_warn_flag
8387 if test -z "$ac_cpp_err"; then
8388 eval "$as_ac_Header=yes"
8390 echo "$as_me: failed program was:" >&5
8391 cat "conftest.$ac_ext" >&5
8392 eval "$as_ac_Header=no"
8394 rm -f conftest.err "conftest.$ac_ext"
8396 echo "$as_me:8396: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8397 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8398 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8399 cat >>confdefs.h <<EOF
8400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8406 for ac_func in PCRE2regcomp
8408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8409 echo "$as_me:8409: checking for $ac_func" >&5
8410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8411 if eval "test \"\${$as_ac_var+set}\" = set"; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >"conftest.$ac_ext" <<_ACEOF
8415 #line 8415 "configure"
8416 #include "confdefs.h"
8417 #define $ac_func autoconf_temporary
8418 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8427 char $ac_func (void);
8433 /* The GNU C library defines stubs for functions which it implements
8434 to always fail with ENOSYS. Some functions are actually named
8435 something starting with __ and the normal name is an alias. */
8436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8437 #error found stub for $ac_func
8445 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8446 if { (eval echo "$as_me:8446: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>&5
8449 echo "$as_me:8449: \$? = $ac_status" >&5
8450 (exit "$ac_status"); } &&
8451 { ac_try='test -s "conftest$ac_exeext"'
8452 { (eval echo "$as_me:8452: \"$ac_try\"") >&5
8455 echo "$as_me:8455: \$? = $ac_status" >&5
8456 (exit "$ac_status"); }; }; then
8457 eval "$as_ac_var=yes"
8459 echo "$as_me: failed program was:" >&5
8460 cat "conftest.$ac_ext" >&5
8461 eval "$as_ac_var=no"
8463 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8465 echo "$as_me:8465: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8466 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8467 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8468 cat >>confdefs.h <<EOF
8469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8477 # not everyone has "test -c"
8478 if test -c /dev/sysmouse 2>/dev/null ; then
8479 echo "$as_me:8479: checking if you want to use sysmouse" >&5
8480 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8482 # Check whether --with-sysmouse or --without-sysmouse was given.
8483 if test "${with_sysmouse+set}" = set; then
8484 withval="$with_sysmouse"
8485 cf_with_sysmouse=$withval
8487 cf_with_sysmouse=maybe
8489 if test "$cf_with_sysmouse" != no ; then
8490 cat >"conftest.$ac_ext" <<_ACEOF
8491 #line 8491 "configure"
8492 #include "confdefs.h"
8494 #include <osreldate.h>
8495 #if (__FreeBSD_version >= 400017)
8496 #include <sys/consio.h>
8497 #include <sys/fbio.h>
8499 #include <machine/console.h>
8506 struct mouse_info the_mouse;
8507 ioctl(0, CONS_MOUSECTL, &the_mouse);
8513 rm -f "conftest.$ac_objext"
8514 if { (eval echo "$as_me:8514: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>&5
8517 echo "$as_me:8517: \$? = $ac_status" >&5
8518 (exit "$ac_status"); } &&
8519 { ac_try='test -s "conftest.$ac_objext"'
8520 { (eval echo "$as_me:8520: \"$ac_try\"") >&5
8523 echo "$as_me:8523: \$? = $ac_status" >&5
8524 (exit "$ac_status"); }; }; then
8525 cf_with_sysmouse=yes
8527 echo "$as_me: failed program was:" >&5
8528 cat "conftest.$ac_ext" >&5
8531 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8533 echo "$as_me:8533: result: $cf_with_sysmouse" >&5
8534 echo "${ECHO_T}$cf_with_sysmouse" >&6
8535 test "$cf_with_sysmouse" = yes &&
8536 cat >>confdefs.h <<\EOF
8537 #define USE_SYSMOUSE 1
8542 # pretend that ncurses==ncursesw==ncursest
8543 echo "$as_me:8543: checking if you want to disable library suffixes" >&5
8544 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8546 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8547 if test "${enable_lib_suffixes+set}" = set; then
8548 enableval="$enable_lib_suffixes"
8549 test "$enableval" != no && enableval=yes
8550 if test "$enableval" != "yes" ; then
8551 disable_lib_suffixes=yes
8553 disable_lib_suffixes=no
8557 disable_lib_suffixes=no
8560 echo "$as_me:8560: result: $disable_lib_suffixes" >&5
8561 echo "${ECHO_T}$disable_lib_suffixes" >&6
8563 ### If we're building with rpath, try to link non-standard libs that way too.
8564 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8566 echo "$as_me:8566: checking if rpath-hack should be disabled" >&5
8567 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8569 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8570 if test "${enable_rpath_hack+set}" = set; then
8571 enableval="$enable_rpath_hack"
8572 test "$enableval" != no && enableval=yes
8573 if test "$enableval" != "yes" ; then
8574 enable_rpath_hack=no
8576 enable_rpath_hack=yes
8580 enable_rpath_hack=yes
8583 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8584 echo "$as_me:8584: result: $cf_disable_rpath_hack" >&5
8585 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8587 if test "$enable_rpath_hack" = yes ; then
8589 echo "$as_me:8589: checking for updated LDFLAGS" >&5
8590 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8591 if test -n "$LD_RPATH_OPT" ; then
8592 echo "$as_me:8592: result: maybe" >&5
8593 echo "${ECHO_T}maybe" >&6
8597 # Extract the first word of "$ac_prog", so it can be a program name with args.
8598 set dummy $ac_prog; ac_word=$2
8599 echo "$as_me:8599: checking for $ac_word" >&5
8600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8601 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 if test -n "$cf_ldd_prog"; then
8605 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8607 ac_save_IFS=$IFS; IFS=$ac_path_separator
8609 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 $as_executable_p "$ac_dir/$ac_word" || continue
8613 ac_cv_prog_cf_ldd_prog="$ac_prog"
8614 echo "$as_me:8614: found $ac_dir/$ac_word" >&5
8620 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8621 if test -n "$cf_ldd_prog"; then
8622 echo "$as_me:8622: result: $cf_ldd_prog" >&5
8623 echo "${ECHO_T}$cf_ldd_prog" >&6
8625 echo "$as_me:8625: result: no" >&5
8626 echo "${ECHO_T}no" >&6
8629 test -n "$cf_ldd_prog" && break
8631 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8633 cf_rpath_list="/usr/lib /lib"
8634 if test "$cf_ldd_prog" != no
8638 cat >"conftest.$ac_ext" <<_ACEOF
8639 #line 8639 "configure"
8640 #include "confdefs.h"
8650 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8651 if { (eval echo "$as_me:8651: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>&5
8654 echo "$as_me:8654: \$? = $ac_status" >&5
8655 (exit "$ac_status"); } &&
8656 { ac_try='test -s "conftest$ac_exeext"'
8657 { (eval echo "$as_me:8657: \"$ac_try\"") >&5
8660 echo "$as_me:8660: \$? = $ac_status" >&5
8661 (exit "$ac_status"); }; }; then
8662 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8663 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8665 echo "$as_me: failed program was:" >&5
8666 cat "conftest.$ac_ext" >&5
8668 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8670 # If we passed the link-test, but get a "not found" on a given library,
8671 # this could be due to inept reconfiguration of gcc to make it only
8672 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8673 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8674 # /usr/local libraries.
8675 if test -n "$cf_rpath_oops"
8677 for cf_rpath_src in $cf_rpath_oops
8679 for cf_rpath_dir in \
8684 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8686 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8688 echo "${as_me:-configure}:8688: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8690 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8698 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8700 echo "${as_me:-configure}:8700: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8702 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8704 echo "${as_me:-configure}:8704: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8707 for cf_rpath_src in $LDFLAGS
8709 case "$cf_rpath_src" in
8712 # check if this refers to a directory which we will ignore
8714 if test -n "$cf_rpath_list"
8716 for cf_rpath_item in $cf_rpath_list
8718 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8726 if test "$cf_rpath_skip" = no
8728 # transform the option
8729 if test "$LD_RPATH_OPT" = "-R " ; then
8730 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8732 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8735 # if we have not already added this, add it now
8736 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8737 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8739 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8741 echo "${as_me:-configure}:8741: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8743 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8748 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8750 LDFLAGS=$cf_rpath_dst
8752 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8754 echo "${as_me:-configure}:8754: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8756 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8758 echo "${as_me:-configure}:8758: testing ...checking LIBS $LIBS ..." 1>&5
8761 for cf_rpath_src in $LIBS
8763 case "$cf_rpath_src" in
8766 # check if this refers to a directory which we will ignore
8768 if test -n "$cf_rpath_list"
8770 for cf_rpath_item in $cf_rpath_list
8772 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8780 if test "$cf_rpath_skip" = no
8782 # transform the option
8783 if test "$LD_RPATH_OPT" = "-R " ; then
8784 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8786 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8789 # if we have not already added this, add it now
8790 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8791 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8793 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8795 echo "${as_me:-configure}:8795: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8797 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8802 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8806 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8808 echo "${as_me:-configure}:8808: testing ...checked LIBS $LIBS ..." 1>&5
8810 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8812 echo "${as_me:-configure}:8812: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8815 echo "$as_me:8815: result: no" >&5
8816 echo "${ECHO_T}no" >&6
8823 ### Depending on the system, someone may use rpath to build ncurses but not
8824 # want users of the package to rely upon that feature. Give those people an
8825 # option to suppress that detail from EXTRA_LDFLAGS.
8826 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8827 if test -n "$EXTRA_PKG_LDFLAGS"
8829 echo "$as_me:8829: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8830 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8832 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8833 if test "${enable_pkg_ldflags+set}" = set; then
8834 enableval="$enable_pkg_ldflags"
8835 test "$enableval" != no && enableval=yes
8836 if test "$enableval" != "yes" ; then
8837 disable_pkg_ldflags=yes
8839 disable_pkg_ldflags=no
8843 disable_pkg_ldflags=no
8846 echo "$as_me:8846: result: $disable_pkg_ldflags" >&5
8847 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8848 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8851 ###############################################################################
8853 ### use option --with-extra-suffix to append suffix to headers and libraries
8854 echo "$as_me:8854: checking for extra suffix to append to header/library paths" >&5
8855 echo $ECHO_N "checking for extra suffix to append to header/library paths... $ECHO_C" >&6
8858 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8859 if test "${with_extra_suffix+set}" = set; then
8860 withval="$with_extra_suffix"
8865 EXTRA_SUFFIX=$cf_cv_abi_version
8868 EXTRA_SUFFIX=$withval
8873 echo "$as_me:8873: result: ${EXTRA_SUFFIX:-(none)}" >&5
8874 echo "${ECHO_T}${EXTRA_SUFFIX:-(none)}" >&6
8876 ### use option --disable-overwrite to leave out the link to -lcurses
8877 echo "$as_me:8877: checking if you wish to install ncurses overwriting curses" >&5
8878 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8880 # Check whether --enable-overwrite or --disable-overwrite was given.
8881 if test "${enable_overwrite+set}" = set; then
8882 enableval="$enable_overwrite"
8883 with_overwrite=$enableval
8885 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8887 echo "$as_me:8887: result: $with_overwrite" >&5
8888 echo "${ECHO_T}$with_overwrite" >&6
8890 echo "$as_me:8890: checking if external terminfo-database is used" >&5
8891 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8893 # Check whether --enable-database or --disable-database was given.
8894 if test "${enable_database+set}" = set; then
8895 enableval="$enable_database"
8896 use_database=$enableval
8900 echo "$as_me:8900: result: $use_database" >&5
8901 echo "${ECHO_T}$use_database" >&6
8905 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8908 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8912 NCURSES_USE_DATABASE=0
8913 if test "$use_database" != no ; then
8914 NCURSES_USE_DATABASE=1
8916 echo "$as_me:8916: checking which terminfo source-file will be installed" >&5
8917 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8919 # Check whether --with-database or --without-database was given.
8920 if test "${with_database+set}" = set; then
8921 withval="$with_database"
8922 TERMINFO_SRC=$withval
8924 echo "$as_me:8924: result: $TERMINFO_SRC" >&5
8925 echo "${ECHO_T}$TERMINFO_SRC" >&6
8927 echo "$as_me:8927: checking whether to use hashed database instead of directory/tree" >&5
8928 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8930 # Check whether --with-hashed-db or --without-hashed-db was given.
8931 if test "${with_hashed_db+set}" = set; then
8932 withval="$with_hashed_db"
8937 echo "$as_me:8937: result: $with_hashed_db" >&5
8938 echo "${ECHO_T}$with_hashed_db" >&6
8943 echo "$as_me:8943: checking for list of fallback terminal descriptions" >&5
8944 echo $ECHO_N "checking for list of fallback terminal descriptions... $ECHO_C" >&6
8946 # Check whether --with-fallbacks or --without-fallbacks was given.
8947 if test "${with_fallbacks+set}" = set; then
8948 withval="$with_fallbacks"
8949 with_fallback=$withval
8953 echo "$as_me:8953: result: ${with_fallback:-(none)}" >&5
8954 echo "${ECHO_T}${with_fallback:-(none)}" >&6
8956 case ".$with_fallback" in
8961 { echo "$as_me:8961: WARNING: expected a list of terminal descriptions" >&5
8962 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8965 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8969 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8970 # tree for generating the terminal descriptions that will be compiled into the
8971 # library. If your toolchain is old, it may not handle current terminal
8972 # databases. Use configure-options to point to the tools which will be used,
8973 # rather than the first ones found on the $PATH.
8974 if test -n "$ac_tool_prefix"; then
8975 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}tic; ac_word=$2
8977 echo "$as_me:8977: checking for $ac_word" >&5
8978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979 if test "${ac_cv_prog_TIC+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 if test -n "$TIC"; then
8983 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8985 ac_save_IFS=$IFS; IFS=$ac_path_separator
8987 for ac_dir in $ac_dummy; do
8989 test -z "$ac_dir" && ac_dir=.
8990 $as_executable_p "$ac_dir/$ac_word" || continue
8991 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8992 echo "$as_me:8992: found $ac_dir/$ac_word" >&5
8999 if test -n "$TIC"; then
9000 echo "$as_me:9000: result: $TIC" >&5
9001 echo "${ECHO_T}$TIC" >&6
9003 echo "$as_me:9003: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9008 if test -z "$ac_cv_prog_TIC"; then
9010 # Extract the first word of "tic", so it can be a program name with args.
9011 set dummy tic; ac_word=$2
9012 echo "$as_me:9012: checking for $ac_word" >&5
9013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 if test -n "$ac_ct_TIC"; then
9018 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9020 ac_save_IFS=$IFS; IFS=$ac_path_separator
9022 for ac_dir in $ac_dummy; do
9024 test -z "$ac_dir" && ac_dir=.
9025 $as_executable_p "$ac_dir/$ac_word" || continue
9026 ac_cv_prog_ac_ct_TIC="tic"
9027 echo "$as_me:9027: found $ac_dir/$ac_word" >&5
9033 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9034 if test -n "$ac_ct_TIC"; then
9035 echo "$as_me:9035: result: $ac_ct_TIC" >&5
9036 echo "${ECHO_T}$ac_ct_TIC" >&6
9038 echo "$as_me:9038: result: no" >&5
9039 echo "${ECHO_T}no" >&6
9044 TIC="$ac_cv_prog_TIC"
9047 if test -n "$ac_tool_prefix"; then
9048 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9049 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9050 echo "$as_me:9050: checking for $ac_word" >&5
9051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9052 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 if test -n "$INFOCMP"; then
9056 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9058 ac_save_IFS=$IFS; IFS=$ac_path_separator
9060 for ac_dir in $ac_dummy; do
9062 test -z "$ac_dir" && ac_dir=.
9063 $as_executable_p "$ac_dir/$ac_word" || continue
9064 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9065 echo "$as_me:9065: found $ac_dir/$ac_word" >&5
9071 INFOCMP=$ac_cv_prog_INFOCMP
9072 if test -n "$INFOCMP"; then
9073 echo "$as_me:9073: result: $INFOCMP" >&5
9074 echo "${ECHO_T}$INFOCMP" >&6
9076 echo "$as_me:9076: result: no" >&5
9077 echo "${ECHO_T}no" >&6
9081 if test -z "$ac_cv_prog_INFOCMP"; then
9082 ac_ct_INFOCMP=$INFOCMP
9083 # Extract the first word of "infocmp", so it can be a program name with args.
9084 set dummy infocmp; ac_word=$2
9085 echo "$as_me:9085: checking for $ac_word" >&5
9086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9087 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 if test -n "$ac_ct_INFOCMP"; then
9091 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9093 ac_save_IFS=$IFS; IFS=$ac_path_separator
9095 for ac_dir in $ac_dummy; do
9097 test -z "$ac_dir" && ac_dir=.
9098 $as_executable_p "$ac_dir/$ac_word" || continue
9099 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9100 echo "$as_me:9100: found $ac_dir/$ac_word" >&5
9106 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9107 if test -n "$ac_ct_INFOCMP"; then
9108 echo "$as_me:9108: result: $ac_ct_INFOCMP" >&5
9109 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9111 echo "$as_me:9111: result: no" >&5
9112 echo "${ECHO_T}no" >&6
9115 INFOCMP=$ac_ct_INFOCMP
9117 INFOCMP="$ac_cv_prog_INFOCMP"
9120 if test -n "$FALLBACK_LIST"
9123 # Check whether --with-tic-path or --without-tic-path was given.
9124 if test "${with_tic_path+set}" = set; then
9125 withval="$with_tic_path"
9126 echo "$as_me:9126: checking for tic program for fallbacks" >&5
9127 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9129 echo "$as_me:9129: result: $TIC" >&5
9130 echo "${ECHO_T}$TIC" >&6
9132 if test "x$prefix" != xNONE; then
9133 cf_path_syntax="$prefix"
9135 cf_path_syntax="$ac_default_prefix"
9143 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9145 (.\$\{*prefix\}*|.\$\{*dir\}*)
9149 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9154 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9157 { { echo "$as_me:9157: error: expected a pathname, not \"$TIC\"" >&5
9158 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9159 { (exit 1); exit 1; }; }
9165 test -z "$TIC" && TIC="tic"
9166 for ac_prog in $TIC tic
9168 # Extract the first word of "$ac_prog", so it can be a program name with args.
9169 set dummy $ac_prog; ac_word=$2
9170 echo "$as_me:9170: checking for $ac_word" >&5
9171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9172 if test "${ac_cv_path_TIC+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9180 ac_save_IFS=$IFS; IFS=$ac_path_separator
9181 ac_dummy="$PATH:/usr/local/ncurses/bin"
9182 for ac_dir in $ac_dummy; do
9184 test -z "$ac_dir" && ac_dir=.
9185 if $as_executable_p "$ac_dir/$ac_word"; then
9186 ac_cv_path_TIC="$ac_dir/$ac_word"
9187 echo "$as_me:9187: found $ac_dir/$ac_word" >&5
9197 if test -n "$TIC"; then
9198 echo "$as_me:9198: result: $TIC" >&5
9199 echo "${ECHO_T}$TIC" >&6
9201 echo "$as_me:9201: result: no" >&5
9202 echo "${ECHO_T}no" >&6
9205 test -n "$TIC" && break
9207 test -n "$TIC" || TIC="$TIC"
9211 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9212 for cf_temp in $ac_cv_path_TIC
9214 if test -z "$cf_path_prog" ; then
9215 if test "$with_full_paths" = yes ; then
9217 if test "x$prefix" != xNONE; then
9218 cf_path_syntax="$prefix"
9220 cf_path_syntax="$ac_default_prefix"
9228 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9230 (.\$\{*prefix\}*|.\$\{*dir\}*)
9231 eval cf_temp="$cf_temp"
9234 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9239 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9246 cf_path_prog="$cf_temp"
9248 cf_path_prog="`basename "$cf_temp"`"
9250 elif test -z "$cf_path_args" ; then
9251 cf_path_args="$cf_temp"
9253 cf_path_args="$cf_path_args $cf_temp"
9258 if test -n "$cf_path_prog" ; then
9260 echo "${as_me:-configure}:9260: testing defining path for ${cf_path_prog} ..." 1>&5
9262 cat >>confdefs.h <<EOF
9263 #define TIC_PATH "$cf_path_prog"
9266 test -n "$cf_path_args" &&
9267 cat >>confdefs.h <<EOF
9268 #define TIC_ARGS "$cf_path_args"
9275 { echo "$as_me:9275: WARNING: no tic program found for fallbacks" >&5
9276 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9281 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9282 if test "${with_infocmp_path+set}" = set; then
9283 withval="$with_infocmp_path"
9284 echo "$as_me:9284: checking for infocmp program for fallbacks" >&5
9285 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9287 echo "$as_me:9287: result: $INFOCMP" >&5
9288 echo "${ECHO_T}$INFOCMP" >&6
9290 if test "x$prefix" != xNONE; then
9291 cf_path_syntax="$prefix"
9293 cf_path_syntax="$ac_default_prefix"
9301 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9303 (.\$\{*prefix\}*|.\$\{*dir\}*)
9304 eval INFOCMP="$INFOCMP"
9307 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9312 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9315 { { echo "$as_me:9315: error: expected a pathname, not \"$INFOCMP\"" >&5
9316 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9317 { (exit 1); exit 1; }; }
9323 test -z "$INFOCMP" && INFOCMP="infocmp"
9324 for ac_prog in $INFOCMP infocmp
9326 # Extract the first word of "$ac_prog", so it can be a program name with args.
9327 set dummy $ac_prog; ac_word=$2
9328 echo "$as_me:9328: checking for $ac_word" >&5
9329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9330 if test "${ac_cv_path_INFOCMP+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9338 ac_save_IFS=$IFS; IFS=$ac_path_separator
9339 ac_dummy="$PATH:/usr/local/ncurses/bin"
9340 for ac_dir in $ac_dummy; do
9342 test -z "$ac_dir" && ac_dir=.
9343 if $as_executable_p "$ac_dir/$ac_word"; then
9344 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9345 echo "$as_me:9345: found $ac_dir/$ac_word" >&5
9353 INFOCMP=$ac_cv_path_INFOCMP
9355 if test -n "$INFOCMP"; then
9356 echo "$as_me:9356: result: $INFOCMP" >&5
9357 echo "${ECHO_T}$INFOCMP" >&6
9359 echo "$as_me:9359: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9363 test -n "$INFOCMP" && break
9365 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9369 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9370 for cf_temp in $ac_cv_path_INFOCMP
9372 if test -z "$cf_path_prog" ; then
9373 if test "$with_full_paths" = yes ; then
9375 if test "x$prefix" != xNONE; then
9376 cf_path_syntax="$prefix"
9378 cf_path_syntax="$ac_default_prefix"
9386 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9388 (.\$\{*prefix\}*|.\$\{*dir\}*)
9389 eval cf_temp="$cf_temp"
9392 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9397 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9404 cf_path_prog="$cf_temp"
9406 cf_path_prog="`basename "$cf_temp"`"
9408 elif test -z "$cf_path_args" ; then
9409 cf_path_args="$cf_temp"
9411 cf_path_args="$cf_path_args $cf_temp"
9416 if test -n "$cf_path_prog" ; then
9418 echo "${as_me:-configure}:9418: testing defining path for ${cf_path_prog} ..." 1>&5
9420 cat >>confdefs.h <<EOF
9421 #define INFOCMP_PATH "$cf_path_prog"
9424 test -n "$cf_path_args" &&
9425 cat >>confdefs.h <<EOF
9426 #define INFOCMP_ARGS "$cf_path_args"
9431 if test -z "$INFOCMP"
9433 { echo "$as_me:9433: WARNING: no infocmp program found for fallbacks" >&5
9434 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9439 test -z "$TIC" && FALLBACK_LIST=
9440 test -z "$INFOCMP" && FALLBACK_LIST=
9441 if test -z "$FALLBACK_LIST"
9443 { echo "$as_me:9443: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9444 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9449 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9451 echo "$as_me:9451: checking if you want modern xterm or antique" >&5
9452 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9454 # Check whether --with-xterm-new or --without-xterm-new was given.
9455 if test "${with_xterm_new+set}" = set; then
9456 withval="$with_xterm_new"
9457 with_xterm_new=$withval
9461 case "$with_xterm_new" in
9462 (no) with_xterm_new=xterm-old;;
9463 (*) with_xterm_new=xterm-new;;
9465 echo "$as_me:9465: result: $with_xterm_new" >&5
9466 echo "${ECHO_T}$with_xterm_new" >&6
9467 WHICH_XTERM=$with_xterm_new
9470 (*linux-gnu|*cygwin|*mingw32|*msys)
9478 echo "$as_me:9478: checking if xterm backspace sends BS or DEL" >&5
9479 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9481 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9482 if test "${with_xterm_kbs+set}" = set; then
9483 withval="$with_xterm_kbs"
9484 with_xterm_kbs=$withval
9488 case x$with_xterm_kbs in
9489 (xyes|xno|xBS|xbs|x8)
9496 with_xterm_kbs=$want_xterm_kbs
9499 with_xterm_kbs=$withval
9502 echo "$as_me:9502: result: $with_xterm_kbs" >&5
9503 echo "${ECHO_T}$with_xterm_kbs" >&6
9504 XTERM_KBS=$with_xterm_kbs
9506 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9508 { echo "$as_me:9508: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&5
9509 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&2;}
9513 if test "$use_database" = no ; then
9514 TERMINFO="${datadir}/terminfo"
9518 echo "$as_me:9518: checking for list of terminfo directories" >&5
9519 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9521 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9522 if test "${with_terminfo_dirs+set}" = set; then
9523 withval="$with_terminfo_dirs"
9526 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9528 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9530 for cf_src_path in $withval
9533 if test "x$prefix" != xNONE; then
9534 cf_path_syntax="$prefix"
9536 cf_path_syntax="$ac_default_prefix"
9539 case ".$cf_src_path" in
9544 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9546 (.\$\{*prefix\}*|.\$\{*dir\}*)
9547 eval cf_src_path="$cf_src_path"
9548 case ".$cf_src_path" in
9550 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9555 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9558 { { echo "$as_me:9558: error: expected a pathname, not \"$cf_src_path\"" >&5
9559 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9560 { (exit 1); exit 1; }; }
9564 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9565 cf_dst_path="${cf_dst_path}${cf_src_path}"
9569 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9570 # so we have to check/work around. We do prefer the result of "eval"...
9571 eval cf_dst_eval="$cf_dst_path"
9572 case "x$cf_dst_eval" in
9574 TERMINFO_DIRS=$cf_dst_path
9577 TERMINFO_DIRS="$cf_dst_eval"
9581 echo "$as_me:9581: result: $TERMINFO_DIRS" >&5
9582 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9583 test -n "$TERMINFO_DIRS" &&
9584 cat >>confdefs.h <<EOF
9585 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9588 case "x$TERMINFO" in
9590 { echo "$as_me:9590: WARNING: ignoring non-directory/file TERMINFO value" >&5
9591 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9596 echo "$as_me:9596: checking for default terminfo directory" >&5
9597 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9599 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9600 if test "${with_default_terminfo_dir+set}" = set; then
9601 withval="$with_default_terminfo_dir"
9604 withval="${TERMINFO:-${datadir}/terminfo}"
9605 fi; if test -n "${datadir}/terminfo" ; then
9607 if test "x$prefix" != xNONE; then
9608 cf_path_syntax="$prefix"
9610 cf_path_syntax="$ac_default_prefix"
9618 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9620 (.\$\{*prefix\}*|.\$\{*dir\}*)
9621 eval withval="$withval"
9624 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9629 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9632 { { echo "$as_me:9632: error: expected a pathname, not \"$withval\"" >&5
9633 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9634 { (exit 1); exit 1; }; }
9639 eval TERMINFO="$withval"
9641 echo "$as_me:9641: result: $TERMINFO" >&5
9642 echo "${ECHO_T}$TERMINFO" >&6
9644 cat >>confdefs.h <<EOF
9645 #define TERMINFO "$TERMINFO"
9650 ### use option --disable-big-core to make tic run on small machines
9651 ### We need 4Mb, check if we can allocate 50% more than that.
9652 echo "$as_me:9652: checking if big-core option selected" >&5
9653 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9655 # Check whether --enable-big-core or --disable-big-core was given.
9656 if test "${enable_big_core+set}" = set; then
9657 enableval="$enable_big_core"
9658 with_big_core=$enableval
9660 if test "$cross_compiling" = yes; then
9663 cat >"conftest.$ac_ext" <<_ACEOF
9664 #line 9664 "configure"
9665 #include "confdefs.h"
9670 unsigned long n = 6000000L;
9671 char *s = malloc(n);
9674 ${cf_cv_main_return:-return}(s == 0);
9677 rm -f "conftest$ac_exeext"
9678 if { (eval echo "$as_me:9678: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9681 echo "$as_me:9681: \$? = $ac_status" >&5
9682 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9683 { (eval echo "$as_me:9683: \"$ac_try\"") >&5
9686 echo "$as_me:9686: \$? = $ac_status" >&5
9687 (exit "$ac_status"); }; }; then
9690 echo "$as_me: program exited with status $ac_status" >&5
9691 echo "$as_me: failed program was:" >&5
9692 cat "conftest.$ac_ext" >&5
9695 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9698 echo "$as_me:9698: result: $with_big_core" >&5
9699 echo "${ECHO_T}$with_big_core" >&6
9700 test "x$with_big_core" = "xyes" &&
9701 cat >>confdefs.h <<\EOF
9702 #define HAVE_BIG_CORE 1
9705 ### ISO C only guarantees 512-char strings, we have tables which load faster
9706 ### when constructed using "big" strings. More than the C compiler, the awk
9707 ### program is a limit on most vendor UNIX systems. Check that we can build.
9708 echo "$as_me:9708: checking if big-strings option selected" >&5
9709 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9711 # Check whether --enable-big-strings or --disable-big-strings was given.
9712 if test "${enable_big_strings+set}" = set; then
9713 enableval="$enable_big_strings"
9714 with_big_strings=$enableval
9719 eval with_big_strings=no
9722 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9723 | $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
9724 eval with_big_strings=yes
9726 eval with_big_strings=no
9732 echo "$as_me:9732: result: $with_big_strings" >&5
9733 echo "${ECHO_T}$with_big_strings" >&6
9736 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9738 ### use option --enable-termcap to compile in the termcap fallback support
9739 echo "$as_me:9739: checking if you want termcap-fallback support" >&5
9740 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9742 # Check whether --enable-termcap or --disable-termcap was given.
9743 if test "${enable_termcap+set}" = set; then
9744 enableval="$enable_termcap"
9745 with_termcap=$enableval
9749 echo "$as_me:9749: result: $with_termcap" >&5
9750 echo "${ECHO_T}$with_termcap" >&6
9752 NCURSES_USE_TERMCAP=0
9753 if test "x$with_termcap" != "xyes" ; then
9754 if test "$use_database" = no ; then
9755 if test -z "$with_fallback" ; then
9756 { { echo "$as_me:9756: error: You have disabled the database w/o specifying fallbacks" >&5
9757 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9758 { (exit 1); exit 1; }; }
9762 cat >>confdefs.h <<\EOF
9763 #define PURE_TERMINFO 1
9768 if test "$with_ticlib" != no ; then
9769 { { echo "$as_me:9769: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9770 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9771 { (exit 1); exit 1; }; }
9774 NCURSES_USE_TERMCAP=1
9775 echo "$as_me:9775: checking for list of termcap files" >&5
9776 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9778 # Check whether --with-termpath or --without-termpath was given.
9779 if test "${with_termpath+set}" = set; then
9780 withval="$with_termpath"
9783 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9785 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9787 for cf_src_path in $withval
9790 if test "x$prefix" != xNONE; then
9791 cf_path_syntax="$prefix"
9793 cf_path_syntax="$ac_default_prefix"
9796 case ".$cf_src_path" in
9801 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9803 (.\$\{*prefix\}*|.\$\{*dir\}*)
9804 eval cf_src_path="$cf_src_path"
9805 case ".$cf_src_path" in
9807 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9812 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9815 { { echo "$as_me:9815: error: expected a pathname, not \"$cf_src_path\"" >&5
9816 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9817 { (exit 1); exit 1; }; }
9821 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9822 cf_dst_path="${cf_dst_path}${cf_src_path}"
9826 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9827 # so we have to check/work around. We do prefer the result of "eval"...
9828 eval cf_dst_eval="$cf_dst_path"
9829 case "x$cf_dst_eval" in
9831 TERMPATH=$cf_dst_path
9834 TERMPATH="$cf_dst_eval"
9838 echo "$as_me:9838: result: $TERMPATH" >&5
9839 echo "${ECHO_T}$TERMPATH" >&6
9840 test -n "$TERMPATH" &&
9841 cat >>confdefs.h <<EOF
9842 #define TERMPATH "$TERMPATH"
9845 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9846 echo "$as_me:9846: checking if fast termcap-loader is needed" >&5
9847 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9849 # Check whether --enable-getcap or --disable-getcap was given.
9850 if test "${enable_getcap+set}" = set; then
9851 enableval="$enable_getcap"
9852 with_getcap=$enableval
9856 echo "$as_me:9856: result: $with_getcap" >&5
9857 echo "${ECHO_T}$with_getcap" >&6
9858 test "x$with_getcap" = "xyes" &&
9859 cat >>confdefs.h <<\EOF
9860 #define USE_GETCAP 1
9863 echo "$as_me:9863: checking if translated termcaps will be cached in ~/.terminfo" >&5
9864 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9866 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9867 if test "${enable_getcap_cache+set}" = set; then
9868 enableval="$enable_getcap_cache"
9869 with_getcap_cache=$enableval
9871 with_getcap_cache=no
9873 echo "$as_me:9873: result: $with_getcap_cache" >&5
9874 echo "${ECHO_T}$with_getcap_cache" >&6
9875 test "x$with_getcap_cache" = "xyes" &&
9876 cat >>confdefs.h <<\EOF
9877 #define USE_GETCAP_CACHE 1
9882 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9883 echo "$as_me:9883: checking if ~/.terminfo is wanted" >&5
9884 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9886 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9887 if test "${enable_home_terminfo+set}" = set; then
9888 enableval="$enable_home_terminfo"
9889 with_home_terminfo=$enableval
9891 with_home_terminfo=yes
9893 echo "$as_me:9893: result: $with_home_terminfo" >&5
9894 echo "${ECHO_T}$with_home_terminfo" >&6
9895 test "x$with_home_terminfo" = "xyes" &&
9896 cat >>confdefs.h <<\EOF
9897 #define USE_HOME_TERMINFO 1
9900 echo "$as_me:9900: checking if you want to permit root to use ncurses environment variables" >&5
9901 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9903 # Check whether --enable-root-environ or --disable-root-environ was given.
9904 if test "${enable_root_environ+set}" = set; then
9905 enableval="$enable_root_environ"
9906 with_root_environ=$enableval
9908 with_root_environ=yes
9910 echo "$as_me:9910: result: $with_root_environ" >&5
9911 echo "${ECHO_T}$with_root_environ" >&6
9912 test "x$with_root_environ" = xyes &&
9913 cat >>confdefs.h <<\EOF
9914 #define USE_ROOT_ENVIRON 1
9917 echo "$as_me:9917: checking if you want to permit setuid programs to access all files" >&5
9918 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9920 # Check whether --enable-root-access or --disable-root-access was given.
9921 if test "${enable_root_access+set}" = set; then
9922 enableval="$enable_root_access"
9923 with_root_access=$enableval
9925 with_root_access=yes
9927 echo "$as_me:9927: result: $with_root_access" >&5
9928 echo "${ECHO_T}$with_root_access" >&6
9929 test "x$with_root_access" = xyes &&
9930 cat >>confdefs.h <<\EOF
9931 #define USE_ROOT_ACCESS 1
9934 echo "$as_me:9934: checking if you want to permit setuid use of ncurses environment variables" >&5
9935 echo $ECHO_N "checking if you want to permit setuid use of ncurses environment variables... $ECHO_C" >&6
9937 # Check whether --enable-setuid-environ or --disable-setuid-environ was given.
9938 if test "${enable_setuid_environ+set}" = set; then
9939 enableval="$enable_setuid_environ"
9940 with_setuid_environ=$enableval
9942 with_setuid_environ=$with_root_environ
9944 echo "$as_me:9944: result: $with_setuid_environ" >&5
9945 echo "${ECHO_T}$with_setuid_environ" >&6
9946 test "x$with_setuid_environ" = xyes &&
9947 cat >>confdefs.h <<\EOF
9948 #define USE_SETUID_ENVIRON 1
9951 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9952 ### to reduce storage requirements for the terminfo database.
9958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9959 echo "$as_me:9959: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >"conftest.$ac_ext" <<_ACEOF
9965 #line 9965 "configure"
9966 #include "confdefs.h"
9967 #include <$ac_header>
9969 if { (eval echo "$as_me:9969: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9970 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9972 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:9975: \$? = $ac_status" >&5
9976 (exit "$ac_status"); } >/dev/null; then
9977 if test -s conftest.err; then
9978 ac_cpp_err=$ac_c_preproc_warn_flag
9985 if test -z "$ac_cpp_err"; then
9986 eval "$as_ac_Header=yes"
9988 echo "$as_me: failed program was:" >&5
9989 cat "conftest.$ac_ext" >&5
9990 eval "$as_ac_Header=no"
9992 rm -f conftest.err "conftest.$ac_ext"
9994 echo "$as_me:9994: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9996 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9997 cat >>confdefs.h <<EOF
9998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10009 echo "$as_me:10009: checking for $ac_func" >&5
10010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10011 if eval "test \"\${$as_ac_var+set}\" = set"; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 cat >"conftest.$ac_ext" <<_ACEOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10017 #define $ac_func autoconf_temporary
10018 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10027 char $ac_func (void);
10033 /* The GNU C library defines stubs for functions which it implements
10034 to always fail with ENOSYS. Some functions are actually named
10035 something starting with __ and the normal name is an alias. */
10036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10037 #error found stub for $ac_func
10040 return $ac_func ();
10045 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10046 if { (eval echo "$as_me:10046: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit "$ac_status"); } &&
10051 { ac_try='test -s "conftest$ac_exeext"'
10052 { (eval echo "$as_me:10052: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:10055: \$? = $ac_status" >&5
10056 (exit "$ac_status"); }; }; then
10057 eval "$as_ac_var=yes"
10059 echo "$as_me: failed program was:" >&5
10060 cat "conftest.$ac_ext" >&5
10061 eval "$as_ac_var=no"
10063 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10065 echo "$as_me:10065: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10067 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10068 cat >>confdefs.h <<EOF
10069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10075 if test "$cross_compiling" = yes ; then
10081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10082 echo "$as_me:10082: checking for $ac_func" >&5
10083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10084 if eval "test \"\${$as_ac_var+set}\" = set"; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >"conftest.$ac_ext" <<_ACEOF
10088 #line 10088 "configure"
10089 #include "confdefs.h"
10090 #define $ac_func autoconf_temporary
10091 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10098 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10100 char $ac_func (void);
10106 /* The GNU C library defines stubs for functions which it implements
10107 to always fail with ENOSYS. Some functions are actually named
10108 something starting with __ and the normal name is an alias. */
10109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10110 #error found stub for $ac_func
10113 return $ac_func ();
10118 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10119 if { (eval echo "$as_me:10119: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>&5
10122 echo "$as_me:10122: \$? = $ac_status" >&5
10123 (exit "$ac_status"); } &&
10124 { ac_try='test -s "conftest$ac_exeext"'
10125 { (eval echo "$as_me:10125: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 (exit "$ac_status"); }; }; then
10130 eval "$as_ac_var=yes"
10132 echo "$as_me: failed program was:" >&5
10133 cat "conftest.$ac_ext" >&5
10134 eval "$as_ac_var=no"
10136 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10138 echo "$as_me:10138: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10139 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10140 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10141 cat >>confdefs.h <<EOF
10142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10149 echo "$as_me:10149: checking if link/symlink functions work" >&5
10150 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10151 if test "${cf_cv_link_funcs+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 for cf_func in link symlink ; do
10157 if test "$cross_compiling" = yes; then
10159 eval 'ac_cv_func_'$cf_func'=error'
10161 cat >"conftest.$ac_ext" <<_ACEOF
10162 #line 10162 "configure"
10163 #include "confdefs.h"
10165 $ac_includes_default
10170 char *src = "conftest.tmp";
10171 char *dst = "conftest.chk";
10172 struct stat src_sb, dst_sb;
10173 FILE *fp = fopen(src, "w");
10174 if (fp == 0) { fail = 3; } else {
10175 fclose(fp); stat(src, &src_sb);
10176 if ($cf_func(src, dst) < 0) {
10178 } else if (stat(dst, &dst_sb) < 0) {
10181 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10182 if (diff < 0) diff = -diff;
10183 if (diff > 2) fail = 3;
10187 unlink(dst); unlink(src);
10189 remove(dst); remove(src);
10191 ${cf_cv_main_return:-return} (fail);
10195 rm -f "conftest$ac_exeext"
10196 if { (eval echo "$as_me:10196: \"$ac_link\"") >&5
10197 (eval $ac_link) 2>&5
10199 echo "$as_me:10199: \$? = $ac_status" >&5
10200 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10201 { (eval echo "$as_me:10201: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:10204: \$? = $ac_status" >&5
10205 (exit "$ac_status"); }; }; then
10207 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10208 eval 'ac_cv_func_'$cf_func'=yes'
10210 echo "$as_me: program exited with status $ac_status" >&5
10211 echo "$as_me: failed program was:" >&5
10212 cat "conftest.$ac_ext" >&5
10214 eval 'ac_cv_func_'$cf_func'=no'
10216 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10219 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10222 echo "$as_me:10222: result: $cf_cv_link_funcs" >&5
10223 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10224 test "$ac_cv_func_link" = yes &&
10225 cat >>confdefs.h <<\EOF
10226 #define HAVE_LINK 1
10229 test "$ac_cv_func_symlink" = yes &&
10230 cat >>confdefs.h <<\EOF
10231 #define HAVE_SYMLINK 1
10239 # soft links (symbolic links) are useful for some systems where hard links do
10240 # not work, or to make it simpler to copy terminfo trees around.
10241 if test "x$ac_cv_func_symlink" = xyes ; then
10242 echo "$as_me:10242: checking if tic should use symbolic links" >&5
10243 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10245 # Check whether --enable-symlinks or --disable-symlinks was given.
10246 if test "${enable_symlinks+set}" = set; then
10247 enableval="$enable_symlinks"
10248 with_symlinks=$enableval
10252 echo "$as_me:10252: result: $with_symlinks" >&5
10253 echo "${ECHO_T}$with_symlinks" >&6
10256 # If we have hard links and did not choose to use soft links instead, there is
10257 # no reason to make this choice optional - use the hard links.
10258 if test "$with_symlinks" = no ; then
10259 echo "$as_me:10259: checking if tic should use hard links" >&5
10260 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10261 if test "x$ac_cv_func_link" = xyes ; then
10266 echo "$as_me:10266: result: $with_links" >&5
10267 echo "${ECHO_T}$with_links" >&6
10270 test "x$with_links" = xyes &&
10271 cat >>confdefs.h <<\EOF
10272 #define USE_LINKS 1
10275 test "x$with_symlinks" = xyes &&
10276 cat >>confdefs.h <<\EOF
10277 #define USE_SYMLINKS 1
10280 ### use option --enable-broken-linker to force on use of broken-linker support
10282 echo "$as_me:10282: checking if you want broken-linker support code" >&5
10283 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10285 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10286 if test "${enable_broken_linker+set}" = set; then
10287 enableval="$enable_broken_linker"
10288 with_broken_linker=$enableval
10290 with_broken_linker=no
10292 echo "$as_me:10292: result: $with_broken_linker" >&5
10293 echo "${ECHO_T}$with_broken_linker" >&6
10295 : "${BROKEN_LINKER:=0}"
10296 if test "x$with_broken_linker" = xyes ; then
10298 cat >>confdefs.h <<\EOF
10299 #define BROKEN_LINKER 1
10305 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10306 echo "$as_me:10306: checking if tputs should process BSD-style prefix padding" >&5
10307 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10309 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10310 if test "${enable_bsdpad+set}" = set; then
10311 enableval="$enable_bsdpad"
10312 with_bsdpad=$enableval
10316 echo "$as_me:10316: result: $with_bsdpad" >&5
10317 echo "${ECHO_T}$with_bsdpad" >&6
10318 test "x$with_bsdpad" = xyes &&
10319 cat >>confdefs.h <<\EOF
10320 #define BSD_TPUTS 1
10323 ### use option --enable-widec to turn on use of wide-character support
10324 NCURSES_CH_T=chtype
10328 NCURSES_MBSTATE_T=0
10332 # Check to define _XOPEN_SOURCE "automatically"
10333 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10335 echo "$as_me:10335: checking if the POSIX test-macros are already defined" >&5
10336 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10337 if test "${cf_cv_posix_visible+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 cat >"conftest.$ac_ext" <<_ACEOF
10342 #line 10342 "configure"
10343 #include "confdefs.h"
10349 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10350 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10351 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10352 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10353 #error conflicting symbols found
10360 rm -f "conftest.$ac_objext"
10361 if { (eval echo "$as_me:10361: \"$ac_compile\"") >&5
10362 (eval $ac_compile) 2>&5
10364 echo "$as_me:10364: \$? = $ac_status" >&5
10365 (exit "$ac_status"); } &&
10366 { ac_try='test -s "conftest.$ac_objext"'
10367 { (eval echo "$as_me:10367: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10370 echo "$as_me:10370: \$? = $ac_status" >&5
10371 (exit "$ac_status"); }; }; then
10372 cf_cv_posix_visible=no
10374 echo "$as_me: failed program was:" >&5
10375 cat "conftest.$ac_ext" >&5
10376 cf_cv_posix_visible=yes
10378 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10381 echo "$as_me:10381: result: $cf_cv_posix_visible" >&5
10382 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10384 if test "$cf_cv_posix_visible" = no; then
10386 cf_XOPEN_SOURCE=600
10387 cf_POSIX_C_SOURCE=199506L
10392 cf_xopen_source="-D_ALL_SOURCE"
10395 cf_xopen_source="-D_APPLE_C_SOURCE"
10398 cf_xopen_source="-D_DARWIN_C_SOURCE"
10401 (freebsd*|dragonfly*|midnightbsd*)
10402 # 5.x headers associate
10403 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10404 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10405 cf_POSIX_C_SOURCE=200112L
10406 cf_XOPEN_SOURCE=600
10407 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10410 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10413 cf_xopen_source="-D_HPUX_SOURCE"
10416 cf_xopen_source="-D_SGI_SOURCE"
10419 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
10421 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10423 echo "$as_me:10423: checking if this is the GNU C library" >&5
10424 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10425 if test "${cf_cv_gnu_library+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 cat >"conftest.$ac_ext" <<_ACEOF
10430 #line 10430 "configure"
10431 #include "confdefs.h"
10432 #include <sys/types.h>
10437 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10439 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10442 # error not GNU C library
10448 rm -f "conftest.$ac_objext"
10449 if { (eval echo "$as_me:10449: \"$ac_compile\"") >&5
10450 (eval $ac_compile) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit "$ac_status"); } &&
10454 { ac_try='test -s "conftest.$ac_objext"'
10455 { (eval echo "$as_me:10455: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:10458: \$? = $ac_status" >&5
10459 (exit "$ac_status"); }; }; then
10460 cf_cv_gnu_library=yes
10462 echo "$as_me: failed program was:" >&5
10463 cat "conftest.$ac_ext" >&5
10464 cf_cv_gnu_library=no
10466 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10469 echo "$as_me:10469: result: $cf_cv_gnu_library" >&5
10470 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10472 if test x$cf_cv_gnu_library = xyes; then
10474 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10475 # was changed to help a little. newlib incorporated the change about 4
10477 echo "$as_me:10477: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10478 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10479 if test "${cf_cv_gnu_library_219+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cf_save="$CPPFLAGS"
10485 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10486 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10488 cat >"conftest.$ac_ext" <<_ACEOF
10489 #line 10489 "configure"
10490 #include "confdefs.h"
10491 #include <sys/types.h>
10496 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10498 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10501 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10507 rm -f "conftest.$ac_objext"
10508 if { (eval echo "$as_me:10508: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>&5
10511 echo "$as_me:10511: \$? = $ac_status" >&5
10512 (exit "$ac_status"); } &&
10513 { ac_try='test -s "conftest.$ac_objext"'
10514 { (eval echo "$as_me:10514: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:10517: \$? = $ac_status" >&5
10518 (exit "$ac_status"); }; }; then
10519 cf_cv_gnu_library_219=yes
10521 echo "$as_me: failed program was:" >&5
10522 cat "conftest.$ac_ext" >&5
10523 cf_cv_gnu_library_219=no
10525 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10526 CPPFLAGS="$cf_save"
10529 echo "$as_me:10529: result: $cf_cv_gnu_library_219" >&5
10530 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10532 if test "x$cf_cv_gnu_library_219" = xyes; then
10533 cf_save="$CPPFLAGS"
10534 echo "$as_me:10534: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10535 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10536 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 cf_new_extra_cppflags=
10545 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10547 case "$cf_fix_cppflags" in
10549 case "$cf_add_cflags" in
10550 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10551 case "$cf_add_cflags" in
10553 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10555 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10556 && test -z "${cf_tst_cflags}" \
10557 && cf_fix_cppflags=yes
10559 if test "$cf_fix_cppflags" = yes ; then
10561 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10562 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10565 elif test "${cf_tst_cflags}" = "\"'" ; then
10567 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10568 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10574 case "$CPPFLAGS" in
10578 case "$cf_add_cflags" in
10580 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10582 CPPFLAGS=`echo "$CPPFLAGS" | \
10583 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10584 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10589 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10590 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10597 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10598 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10605 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10606 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10608 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10610 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10611 && test -z "${cf_tst_cflags}" \
10612 && cf_fix_cppflags=no
10617 if test -n "$cf_new_cflags" ; then
10619 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10620 CFLAGS="${CFLAGS}$cf_new_cflags"
10624 if test -n "$cf_new_cppflags" ; then
10626 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10627 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10631 if test -n "$cf_new_extra_cppflags" ; then
10633 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10634 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10638 cat >"conftest.$ac_ext" <<_ACEOF
10639 #line 10639 "configure"
10640 #include "confdefs.h"
10642 #include <limits.h>
10643 #include <sys/types.h>
10649 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10652 # error GNU C library is too old
10658 rm -f "conftest.$ac_objext"
10659 if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:10662: \$? = $ac_status" >&5
10663 (exit "$ac_status"); } &&
10664 { ac_try='test -s "conftest.$ac_objext"'
10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit "$ac_status"); }; }; then
10670 cf_cv_gnu_dftsrc_219=yes
10672 echo "$as_me: failed program was:" >&5
10673 cat "conftest.$ac_ext" >&5
10674 cf_cv_gnu_dftsrc_219=no
10676 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10679 echo "$as_me:10679: result: $cf_cv_gnu_dftsrc_219" >&5
10680 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10681 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10683 cf_cv_gnu_dftsrc_219=maybe
10686 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10688 echo "$as_me:10688: checking if we must define _GNU_SOURCE" >&5
10689 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10690 if test "${cf_cv_gnu_source+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >"conftest.$ac_ext" <<_ACEOF
10695 #line 10695 "configure"
10696 #include "confdefs.h"
10697 #include <sys/types.h>
10702 #ifndef _XOPEN_SOURCE
10703 #error expected _XOPEN_SOURCE to be defined
10709 rm -f "conftest.$ac_objext"
10710 if { (eval echo "$as_me:10710: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit "$ac_status"); } &&
10715 { ac_try='test -s "conftest.$ac_objext"'
10716 { (eval echo "$as_me:10716: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:10719: \$? = $ac_status" >&5
10720 (exit "$ac_status"); }; }; then
10721 cf_cv_gnu_source=no
10723 echo "$as_me: failed program was:" >&5
10724 cat "conftest.$ac_ext" >&5
10725 cf_save="$CPPFLAGS"
10730 cf_new_extra_cppflags=
10732 for cf_add_cflags in -D_GNU_SOURCE
10734 case "$cf_fix_cppflags" in
10736 case "$cf_add_cflags" in
10737 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10738 case "$cf_add_cflags" in
10740 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10743 && test -z "${cf_tst_cflags}" \
10744 && cf_fix_cppflags=yes
10746 if test "$cf_fix_cppflags" = yes ; then
10748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10752 elif test "${cf_tst_cflags}" = "\"'" ; then
10754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10761 case "$CPPFLAGS" in
10765 case "$cf_add_cflags" in
10767 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10769 CPPFLAGS=`echo "$CPPFLAGS" | \
10770 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10771 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10776 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10777 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10784 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10785 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10792 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10793 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10795 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10797 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10798 && test -z "${cf_tst_cflags}" \
10799 && cf_fix_cppflags=no
10804 if test -n "$cf_new_cflags" ; then
10806 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10807 CFLAGS="${CFLAGS}$cf_new_cflags"
10811 if test -n "$cf_new_cppflags" ; then
10813 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10814 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10818 if test -n "$cf_new_extra_cppflags" ; then
10820 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10821 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10825 cat >"conftest.$ac_ext" <<_ACEOF
10826 #line 10826 "configure"
10827 #include "confdefs.h"
10828 #include <sys/types.h>
10833 #ifdef _XOPEN_SOURCE
10834 #error expected _XOPEN_SOURCE to be undefined
10840 rm -f "conftest.$ac_objext"
10841 if { (eval echo "$as_me:10841: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>&5
10844 echo "$as_me:10844: \$? = $ac_status" >&5
10845 (exit "$ac_status"); } &&
10846 { ac_try='test -s "conftest.$ac_objext"'
10847 { (eval echo "$as_me:10847: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:10850: \$? = $ac_status" >&5
10851 (exit "$ac_status"); }; }; then
10852 cf_cv_gnu_source=no
10854 echo "$as_me: failed program was:" >&5
10855 cat "conftest.$ac_ext" >&5
10856 cf_cv_gnu_source=yes
10858 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10859 CPPFLAGS="$cf_save"
10862 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10865 echo "$as_me:10865: result: $cf_cv_gnu_source" >&5
10866 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10868 if test "$cf_cv_gnu_source" = yes
10870 echo "$as_me:10870: checking if we should also define _DEFAULT_SOURCE" >&5
10871 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10872 if test "${cf_cv_default_source+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10877 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10879 cat >"conftest.$ac_ext" <<_ACEOF
10880 #line 10880 "configure"
10881 #include "confdefs.h"
10882 #include <sys/types.h>
10887 #ifdef _DEFAULT_SOURCE
10888 #error expected _DEFAULT_SOURCE to be undefined
10894 rm -f "conftest.$ac_objext"
10895 if { (eval echo "$as_me:10895: \"$ac_compile\"") >&5
10896 (eval $ac_compile) 2>&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit "$ac_status"); } &&
10900 { ac_try='test -s "conftest.$ac_objext"'
10901 { (eval echo "$as_me:10901: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:10904: \$? = $ac_status" >&5
10905 (exit "$ac_status"); }; }; then
10906 cf_cv_default_source=no
10908 echo "$as_me: failed program was:" >&5
10909 cat "conftest.$ac_ext" >&5
10910 cf_cv_default_source=yes
10912 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10915 echo "$as_me:10915: result: $cf_cv_default_source" >&5
10916 echo "${ECHO_T}$cf_cv_default_source" >&6
10917 if test "$cf_cv_default_source" = yes
10920 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10921 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10931 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10934 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10937 if test "$cf_cv_posix_visible" = no; then
10939 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10941 cf_save_CFLAGS="$CFLAGS"
10942 cf_save_CPPFLAGS="$CPPFLAGS"
10944 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10945 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10946 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10948 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10949 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10950 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10952 echo "$as_me:10952: checking if we should define _POSIX_C_SOURCE" >&5
10953 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10954 if test "${cf_cv_posix_c_source+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 echo "${as_me:-configure}:10958: testing if the symbol is already defined go no further ..." 1>&5
10960 cat >"conftest.$ac_ext" <<_ACEOF
10961 #line 10961 "configure"
10962 #include "confdefs.h"
10963 #include <sys/types.h>
10968 #ifndef _POSIX_C_SOURCE
10969 #error _POSIX_C_SOURCE is not defined
10975 rm -f "conftest.$ac_objext"
10976 if { (eval echo "$as_me:10976: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>&5
10979 echo "$as_me:10979: \$? = $ac_status" >&5
10980 (exit "$ac_status"); } &&
10981 { ac_try='test -s "conftest.$ac_objext"'
10982 { (eval echo "$as_me:10982: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:10985: \$? = $ac_status" >&5
10986 (exit "$ac_status"); }; }; then
10987 cf_cv_posix_c_source=no
10989 echo "$as_me: failed program was:" >&5
10990 cat "conftest.$ac_ext" >&5
10991 cf_want_posix_source=no
10992 case .$cf_POSIX_C_SOURCE in
10994 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10997 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10998 cf_want_posix_source=yes
11001 cf_want_posix_source=yes
11004 if test "$cf_want_posix_source" = yes ; then
11005 cat >"conftest.$ac_ext" <<_ACEOF
11006 #line 11006 "configure"
11007 #include "confdefs.h"
11008 #include <sys/types.h>
11013 #ifdef _POSIX_SOURCE
11014 #error _POSIX_SOURCE is defined
11020 rm -f "conftest.$ac_objext"
11021 if { (eval echo "$as_me:11021: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11024 echo "$as_me:11024: \$? = $ac_status" >&5
11025 (exit "$ac_status"); } &&
11026 { ac_try='test -s "conftest.$ac_objext"'
11027 { (eval echo "$as_me:11027: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:11030: \$? = $ac_status" >&5
11031 (exit "$ac_status"); }; }; then
11034 echo "$as_me: failed program was:" >&5
11035 cat "conftest.$ac_ext" >&5
11036 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11038 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11041 echo "${as_me:-configure}:11041: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11043 CFLAGS="$cf_trim_CFLAGS"
11044 CPPFLAGS="$cf_trim_CPPFLAGS"
11046 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11047 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11049 echo "${as_me:-configure}:11049: testing if the second compile does not leave our definition intact error ..." 1>&5
11051 cat >"conftest.$ac_ext" <<_ACEOF
11052 #line 11052 "configure"
11053 #include "confdefs.h"
11054 #include <sys/types.h>
11059 #ifndef _POSIX_C_SOURCE
11060 #error _POSIX_C_SOURCE is not defined
11066 rm -f "conftest.$ac_objext"
11067 if { (eval echo "$as_me:11067: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>&5
11070 echo "$as_me:11070: \$? = $ac_status" >&5
11071 (exit "$ac_status"); } &&
11072 { ac_try='test -s "conftest.$ac_objext"'
11073 { (eval echo "$as_me:11073: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:11076: \$? = $ac_status" >&5
11077 (exit "$ac_status"); }; }; then
11080 echo "$as_me: failed program was:" >&5
11081 cat "conftest.$ac_ext" >&5
11082 cf_cv_posix_c_source=no
11084 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11085 CFLAGS="$cf_save_CFLAGS"
11086 CPPFLAGS="$cf_save_CPPFLAGS"
11089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11092 echo "$as_me:11092: result: $cf_cv_posix_c_source" >&5
11093 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11095 if test "$cf_cv_posix_c_source" != no ; then
11096 CFLAGS="$cf_trim_CFLAGS"
11097 CPPFLAGS="$cf_trim_CPPFLAGS"
11102 cf_new_extra_cppflags=
11104 for cf_add_cflags in $cf_cv_posix_c_source
11106 case "$cf_fix_cppflags" in
11108 case "$cf_add_cflags" in
11109 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11110 case "$cf_add_cflags" in
11112 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11114 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11115 && test -z "${cf_tst_cflags}" \
11116 && cf_fix_cppflags=yes
11118 if test "$cf_fix_cppflags" = yes ; then
11120 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11121 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11124 elif test "${cf_tst_cflags}" = "\"'" ; then
11126 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11127 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11133 case "$CPPFLAGS" in
11137 case "$cf_add_cflags" in
11139 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11141 CPPFLAGS=`echo "$CPPFLAGS" | \
11142 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11143 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11148 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11149 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11156 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11157 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11164 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11165 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11167 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11169 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11170 && test -z "${cf_tst_cflags}" \
11171 && cf_fix_cppflags=no
11176 if test -n "$cf_new_cflags" ; then
11178 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11179 CFLAGS="${CFLAGS}$cf_new_cflags"
11183 if test -n "$cf_new_cppflags" ; then
11185 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11186 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11190 if test -n "$cf_new_extra_cppflags" ; then
11192 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11193 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11199 fi # cf_cv_posix_visible
11203 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11206 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11207 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11208 # Abusing the conformance level is a workaround.
11209 { echo "$as_me:11209: WARNING: this system does not provide usable locale support" >&5
11210 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11211 cf_xopen_source="-D_BSD_SOURCE"
11212 cf_XOPEN_SOURCE=700
11215 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11216 cf_xopen_source="-D_BSD_SOURCE"
11217 cf_XOPEN_SOURCE=600
11220 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11223 cf_xopen_source="-D_OSF_SOURCE"
11226 cf_xopen_source="-D_QNX_SOURCE"
11229 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11232 cf_xopen_source="-D__EXTENSIONS__"
11233 cf_cv_xopen_source=broken
11235 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11241 echo "$as_me:11241: checking if we should define _XOPEN_SOURCE" >&5
11242 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11243 if test "${cf_cv_xopen_source+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >"conftest.$ac_ext" <<_ACEOF
11248 #line 11248 "configure"
11249 #include "confdefs.h"
11251 $ac_includes_default
11257 #ifndef _XOPEN_SOURCE
11258 #error _XOPEN_SOURCE is not defined
11265 rm -f "conftest.$ac_objext"
11266 if { (eval echo "$as_me:11266: \"$ac_compile\"") >&5
11267 (eval $ac_compile) 2>&5
11269 echo "$as_me:11269: \$? = $ac_status" >&5
11270 (exit "$ac_status"); } &&
11271 { ac_try='test -s "conftest.$ac_objext"'
11272 { (eval echo "$as_me:11272: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:11275: \$? = $ac_status" >&5
11276 (exit "$ac_status"); }; }; then
11277 cf_cv_xopen_source=no
11279 echo "$as_me: failed program was:" >&5
11280 cat "conftest.$ac_ext" >&5
11281 cf_save="$CPPFLAGS"
11283 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11284 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11286 cat >"conftest.$ac_ext" <<_ACEOF
11287 #line 11287 "configure"
11288 #include "confdefs.h"
11290 $ac_includes_default
11296 #ifndef _XOPEN_SOURCE
11297 #error _XOPEN_SOURCE is not defined
11304 rm -f "conftest.$ac_objext"
11305 if { (eval echo "$as_me:11305: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>&5
11308 echo "$as_me:11308: \$? = $ac_status" >&5
11309 (exit "$ac_status"); } &&
11310 { ac_try='test -s "conftest.$ac_objext"'
11311 { (eval echo "$as_me:11311: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:11314: \$? = $ac_status" >&5
11315 (exit "$ac_status"); }; }; then
11316 cf_cv_xopen_source=no
11318 echo "$as_me: failed program was:" >&5
11319 cat "conftest.$ac_ext" >&5
11320 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11323 CPPFLAGS="$cf_save"
11326 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11329 echo "$as_me:11329: result: $cf_cv_xopen_source" >&5
11330 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11332 if test "$cf_cv_xopen_source" != no ; then
11334 CFLAGS=`echo "$CFLAGS" | \
11335 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11336 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11338 CPPFLAGS=`echo "$CPPFLAGS" | \
11339 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11340 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11342 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11344 for cf_add_cflags in $cf_temp_xopen_source
11346 case "x$cf_add_cflags" in
11349 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11352 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'`
11353 test "$CFLAGS" != "$cf_old_cflag" || break
11355 CFLAGS="$cf_old_cflag"
11358 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11361 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'`
11362 test "$CPPFLAGS" != "$cf_old_cflag" || break
11364 CPPFLAGS="$cf_old_cflag"
11373 cf_new_extra_cppflags=
11375 for cf_add_cflags in $cf_add_cflags
11377 case "$cf_fix_cppflags" in
11379 case "$cf_add_cflags" in
11380 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11381 case "$cf_add_cflags" in
11383 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11385 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11386 && test -z "${cf_tst_cflags}" \
11387 && cf_fix_cppflags=yes
11389 if test "$cf_fix_cppflags" = yes ; then
11391 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11392 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11395 elif test "${cf_tst_cflags}" = "\"'" ; then
11397 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11398 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11404 case "$CPPFLAGS" in
11408 case "$cf_add_cflags" in
11410 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11412 CPPFLAGS=`echo "$CPPFLAGS" | \
11413 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11414 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11419 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11420 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11427 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11428 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11435 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11436 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11438 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11440 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11441 && test -z "${cf_tst_cflags}" \
11442 && cf_fix_cppflags=no
11447 if test -n "$cf_new_cflags" ; then
11449 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11450 CFLAGS="${CFLAGS}$cf_new_cflags"
11454 if test -n "$cf_new_cppflags" ; then
11456 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11457 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11461 if test -n "$cf_new_extra_cppflags" ; then
11463 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11464 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11472 cf_save_xopen_cppflags="$CPPFLAGS"
11474 if test "$cf_cv_posix_visible" = no; then
11476 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11478 cf_save_CFLAGS="$CFLAGS"
11479 cf_save_CPPFLAGS="$CPPFLAGS"
11481 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11482 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11483 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11485 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11486 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11487 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11489 echo "$as_me:11489: checking if we should define _POSIX_C_SOURCE" >&5
11490 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11491 if test "${cf_cv_posix_c_source+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 echo "${as_me:-configure}:11495: testing if the symbol is already defined go no further ..." 1>&5
11497 cat >"conftest.$ac_ext" <<_ACEOF
11498 #line 11498 "configure"
11499 #include "confdefs.h"
11500 #include <sys/types.h>
11505 #ifndef _POSIX_C_SOURCE
11506 #error _POSIX_C_SOURCE is not defined
11512 rm -f "conftest.$ac_objext"
11513 if { (eval echo "$as_me:11513: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>&5
11516 echo "$as_me:11516: \$? = $ac_status" >&5
11517 (exit "$ac_status"); } &&
11518 { ac_try='test -s "conftest.$ac_objext"'
11519 { (eval echo "$as_me:11519: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:11522: \$? = $ac_status" >&5
11523 (exit "$ac_status"); }; }; then
11524 cf_cv_posix_c_source=no
11526 echo "$as_me: failed program was:" >&5
11527 cat "conftest.$ac_ext" >&5
11528 cf_want_posix_source=no
11529 case .$cf_POSIX_C_SOURCE in
11531 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11534 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11535 cf_want_posix_source=yes
11538 cf_want_posix_source=yes
11541 if test "$cf_want_posix_source" = yes ; then
11542 cat >"conftest.$ac_ext" <<_ACEOF
11543 #line 11543 "configure"
11544 #include "confdefs.h"
11545 #include <sys/types.h>
11550 #ifdef _POSIX_SOURCE
11551 #error _POSIX_SOURCE is defined
11557 rm -f "conftest.$ac_objext"
11558 if { (eval echo "$as_me:11558: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11561 echo "$as_me:11561: \$? = $ac_status" >&5
11562 (exit "$ac_status"); } &&
11563 { ac_try='test -s "conftest.$ac_objext"'
11564 { (eval echo "$as_me:11564: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:11567: \$? = $ac_status" >&5
11568 (exit "$ac_status"); }; }; then
11571 echo "$as_me: failed program was:" >&5
11572 cat "conftest.$ac_ext" >&5
11573 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11575 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11578 echo "${as_me:-configure}:11578: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11580 CFLAGS="$cf_trim_CFLAGS"
11581 CPPFLAGS="$cf_trim_CPPFLAGS"
11583 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11584 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11586 echo "${as_me:-configure}:11586: testing if the second compile does not leave our definition intact error ..." 1>&5
11588 cat >"conftest.$ac_ext" <<_ACEOF
11589 #line 11589 "configure"
11590 #include "confdefs.h"
11591 #include <sys/types.h>
11596 #ifndef _POSIX_C_SOURCE
11597 #error _POSIX_C_SOURCE is not defined
11603 rm -f "conftest.$ac_objext"
11604 if { (eval echo "$as_me:11604: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>&5
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit "$ac_status"); } &&
11609 { ac_try='test -s "conftest.$ac_objext"'
11610 { (eval echo "$as_me:11610: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:11613: \$? = $ac_status" >&5
11614 (exit "$ac_status"); }; }; then
11617 echo "$as_me: failed program was:" >&5
11618 cat "conftest.$ac_ext" >&5
11619 cf_cv_posix_c_source=no
11621 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11622 CFLAGS="$cf_save_CFLAGS"
11623 CPPFLAGS="$cf_save_CPPFLAGS"
11626 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11629 echo "$as_me:11629: result: $cf_cv_posix_c_source" >&5
11630 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11632 if test "$cf_cv_posix_c_source" != no ; then
11633 CFLAGS="$cf_trim_CFLAGS"
11634 CPPFLAGS="$cf_trim_CPPFLAGS"
11639 cf_new_extra_cppflags=
11641 for cf_add_cflags in $cf_cv_posix_c_source
11643 case "$cf_fix_cppflags" in
11645 case "$cf_add_cflags" in
11646 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11647 case "$cf_add_cflags" in
11649 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11651 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11652 && test -z "${cf_tst_cflags}" \
11653 && cf_fix_cppflags=yes
11655 if test "$cf_fix_cppflags" = yes ; then
11657 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11658 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11661 elif test "${cf_tst_cflags}" = "\"'" ; then
11663 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11664 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11670 case "$CPPFLAGS" in
11674 case "$cf_add_cflags" in
11676 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11678 CPPFLAGS=`echo "$CPPFLAGS" | \
11679 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11680 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11685 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11686 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11693 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11694 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11701 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11702 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11704 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11706 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11707 && test -z "${cf_tst_cflags}" \
11708 && cf_fix_cppflags=no
11713 if test -n "$cf_new_cflags" ; then
11715 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11716 CFLAGS="${CFLAGS}$cf_new_cflags"
11720 if test -n "$cf_new_cppflags" ; then
11722 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11723 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11727 if test -n "$cf_new_extra_cppflags" ; then
11729 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11730 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11736 fi # cf_cv_posix_visible
11738 # Some of these niche implementations use copy/paste, double-check...
11739 if test "$cf_cv_xopen_source" = no ; then
11740 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
11742 echo "${as_me:-configure}:11742: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
11744 cat >"conftest.$ac_ext" <<_ACEOF
11745 #line 11745 "configure"
11746 #include "confdefs.h"
11748 $ac_includes_default
11754 #ifndef _XOPEN_SOURCE
11755 #error _XOPEN_SOURCE is not defined
11762 rm -f "conftest.$ac_objext"
11763 if { (eval echo "$as_me:11763: \"$ac_compile\"") >&5
11764 (eval $ac_compile) 2>&5
11766 echo "$as_me:11766: \$? = $ac_status" >&5
11767 (exit "$ac_status"); } &&
11768 { ac_try='test -s "conftest.$ac_objext"'
11769 { (eval echo "$as_me:11769: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:11772: \$? = $ac_status" >&5
11773 (exit "$ac_status"); }; }; then
11776 echo "$as_me: failed program was:" >&5
11777 cat "conftest.$ac_ext" >&5
11779 { echo "$as_me:11779: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11780 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11781 CPPFLAGS="$cf_save_xopen_cppflags"
11783 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11788 if test -n "$cf_xopen_source" ; then
11790 for cf_add_cflags in $cf_xopen_source
11792 case "x$cf_add_cflags" in
11795 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11798 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'`
11799 test "$CFLAGS" != "$cf_old_cflag" || break
11800 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11802 echo "${as_me:-configure}:11802: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11804 CFLAGS="$cf_old_cflag"
11807 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11810 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'`
11811 test "$CPPFLAGS" != "$cf_old_cflag" || break
11812 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11814 echo "${as_me:-configure}:11814: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11816 CPPFLAGS="$cf_old_cflag"
11825 cf_new_extra_cppflags=
11827 for cf_add_cflags in $cf_add_cflags
11829 case "$cf_fix_cppflags" in
11831 case "$cf_add_cflags" in
11832 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11833 case "$cf_add_cflags" in
11835 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11837 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11838 && test -z "${cf_tst_cflags}" \
11839 && cf_fix_cppflags=yes
11841 if test "$cf_fix_cppflags" = yes ; then
11843 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11844 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11847 elif test "${cf_tst_cflags}" = "\"'" ; then
11849 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11850 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11856 case "$CPPFLAGS" in
11860 case "$cf_add_cflags" in
11862 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11864 CPPFLAGS=`echo "$CPPFLAGS" | \
11865 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11866 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11871 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11872 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11879 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11880 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11887 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11888 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11890 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11892 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11893 && test -z "${cf_tst_cflags}" \
11894 && cf_fix_cppflags=no
11899 if test -n "$cf_new_cflags" ; then
11900 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11902 echo "${as_me:-configure}:11902: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11904 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11905 CFLAGS="${CFLAGS}$cf_new_cflags"
11909 if test -n "$cf_new_cppflags" ; then
11910 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11912 echo "${as_me:-configure}:11912: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11915 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11919 if test -n "$cf_new_extra_cppflags" ; then
11920 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11922 echo "${as_me:-configure}:11922: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11924 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11925 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11933 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11934 echo "$as_me:11934: checking if _XOPEN_SOURCE really is set" >&5
11935 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11936 cat >"conftest.$ac_ext" <<_ACEOF
11937 #line 11937 "configure"
11938 #include "confdefs.h"
11939 #include <stdlib.h>
11944 #ifndef _XOPEN_SOURCE
11945 #error _XOPEN_SOURCE is not defined
11951 rm -f "conftest.$ac_objext"
11952 if { (eval echo "$as_me:11952: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>&5
11955 echo "$as_me:11955: \$? = $ac_status" >&5
11956 (exit "$ac_status"); } &&
11957 { ac_try='test -s "conftest.$ac_objext"'
11958 { (eval echo "$as_me:11958: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 (exit "$ac_status"); }; }; then
11963 cf_XOPEN_SOURCE_set=yes
11965 echo "$as_me: failed program was:" >&5
11966 cat "conftest.$ac_ext" >&5
11967 cf_XOPEN_SOURCE_set=no
11969 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11970 echo "$as_me:11970: result: $cf_XOPEN_SOURCE_set" >&5
11971 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11972 if test "$cf_XOPEN_SOURCE_set" = yes
11974 cat >"conftest.$ac_ext" <<_ACEOF
11975 #line 11975 "configure"
11976 #include "confdefs.h"
11977 #include <stdlib.h>
11982 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11983 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11989 rm -f "conftest.$ac_objext"
11990 if { (eval echo "$as_me:11990: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11993 echo "$as_me:11993: \$? = $ac_status" >&5
11994 (exit "$ac_status"); } &&
11995 { ac_try='test -s "conftest.$ac_objext"'
11996 { (eval echo "$as_me:11996: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:11999: \$? = $ac_status" >&5
12000 (exit "$ac_status"); }; }; then
12001 cf_XOPEN_SOURCE_set_ok=yes
12003 echo "$as_me: failed program was:" >&5
12004 cat "conftest.$ac_ext" >&5
12005 cf_XOPEN_SOURCE_set_ok=no
12007 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12008 if test "$cf_XOPEN_SOURCE_set_ok" = no
12010 { echo "$as_me:12010: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12011 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12015 echo "$as_me:12015: checking if we should define _XOPEN_SOURCE" >&5
12016 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12017 if test "${cf_cv_xopen_source+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 cat >"conftest.$ac_ext" <<_ACEOF
12022 #line 12022 "configure"
12023 #include "confdefs.h"
12025 $ac_includes_default
12031 #ifndef _XOPEN_SOURCE
12032 #error _XOPEN_SOURCE is not defined
12039 rm -f "conftest.$ac_objext"
12040 if { (eval echo "$as_me:12040: \"$ac_compile\"") >&5
12041 (eval $ac_compile) 2>&5
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit "$ac_status"); } &&
12045 { ac_try='test -s "conftest.$ac_objext"'
12046 { (eval echo "$as_me:12046: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 (exit "$ac_status"); }; }; then
12051 cf_cv_xopen_source=no
12053 echo "$as_me: failed program was:" >&5
12054 cat "conftest.$ac_ext" >&5
12055 cf_save="$CPPFLAGS"
12057 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12058 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12060 cat >"conftest.$ac_ext" <<_ACEOF
12061 #line 12061 "configure"
12062 #include "confdefs.h"
12064 $ac_includes_default
12070 #ifndef _XOPEN_SOURCE
12071 #error _XOPEN_SOURCE is not defined
12078 rm -f "conftest.$ac_objext"
12079 if { (eval echo "$as_me:12079: \"$ac_compile\"") >&5
12080 (eval $ac_compile) 2>&5
12082 echo "$as_me:12082: \$? = $ac_status" >&5
12083 (exit "$ac_status"); } &&
12084 { ac_try='test -s "conftest.$ac_objext"'
12085 { (eval echo "$as_me:12085: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:12088: \$? = $ac_status" >&5
12089 (exit "$ac_status"); }; }; then
12090 cf_cv_xopen_source=no
12092 echo "$as_me: failed program was:" >&5
12093 cat "conftest.$ac_ext" >&5
12094 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12096 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12097 CPPFLAGS="$cf_save"
12100 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12103 echo "$as_me:12103: result: $cf_cv_xopen_source" >&5
12104 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12106 if test "$cf_cv_xopen_source" != no ; then
12108 CFLAGS=`echo "$CFLAGS" | \
12109 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12110 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12112 CPPFLAGS=`echo "$CPPFLAGS" | \
12113 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12114 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12116 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12118 for cf_add_cflags in $cf_temp_xopen_source
12120 case "x$cf_add_cflags" in
12123 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12126 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'`
12127 test "$CFLAGS" != "$cf_old_cflag" || break
12129 CFLAGS="$cf_old_cflag"
12132 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12135 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'`
12136 test "$CPPFLAGS" != "$cf_old_cflag" || break
12138 CPPFLAGS="$cf_old_cflag"
12147 cf_new_extra_cppflags=
12149 for cf_add_cflags in $cf_add_cflags
12151 case "$cf_fix_cppflags" in
12153 case "$cf_add_cflags" in
12154 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12155 case "$cf_add_cflags" in
12157 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12159 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12160 && test -z "${cf_tst_cflags}" \
12161 && cf_fix_cppflags=yes
12163 if test "$cf_fix_cppflags" = yes ; then
12165 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12166 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12169 elif test "${cf_tst_cflags}" = "\"'" ; then
12171 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12172 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12178 case "$CPPFLAGS" in
12182 case "$cf_add_cflags" in
12184 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12186 CPPFLAGS=`echo "$CPPFLAGS" | \
12187 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12188 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12193 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12194 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12201 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12202 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12212 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12214 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12215 && test -z "${cf_tst_cflags}" \
12216 && cf_fix_cppflags=no
12221 if test -n "$cf_new_cflags" ; then
12223 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12224 CFLAGS="${CFLAGS}$cf_new_cflags"
12228 if test -n "$cf_new_cppflags" ; then
12230 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12231 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12235 if test -n "$cf_new_extra_cppflags" ; then
12237 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12238 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12248 fi # cf_cv_posix_visible
12250 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12252 # Work around breakage on OS X
12254 echo "$as_me:12254: checking if SIGWINCH is defined" >&5
12255 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12256 if test "${cf_cv_define_sigwinch+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >"conftest.$ac_ext" <<_ACEOF
12261 #line 12261 "configure"
12262 #include "confdefs.h"
12264 #include <sys/types.h>
12265 #include <sys/signal.h>
12270 int x = SIGWINCH; (void)x
12275 rm -f "conftest.$ac_objext"
12276 if { (eval echo "$as_me:12276: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>&5
12279 echo "$as_me:12279: \$? = $ac_status" >&5
12280 (exit "$ac_status"); } &&
12281 { ac_try='test -s "conftest.$ac_objext"'
12282 { (eval echo "$as_me:12282: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:12285: \$? = $ac_status" >&5
12286 (exit "$ac_status"); }; }; then
12287 cf_cv_define_sigwinch=yes
12289 echo "$as_me: failed program was:" >&5
12290 cat "conftest.$ac_ext" >&5
12291 cat >"conftest.$ac_ext" <<_ACEOF
12292 #line 12292 "configure"
12293 #include "confdefs.h"
12295 #undef _XOPEN_SOURCE
12296 #undef _POSIX_SOURCE
12297 #undef _POSIX_C_SOURCE
12298 #include <sys/types.h>
12299 #include <sys/signal.h>
12304 int x = SIGWINCH; (void)x
12309 rm -f "conftest.$ac_objext"
12310 if { (eval echo "$as_me:12310: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>&5
12313 echo "$as_me:12313: \$? = $ac_status" >&5
12314 (exit "$ac_status"); } &&
12315 { ac_try='test -s "conftest.$ac_objext"'
12316 { (eval echo "$as_me:12316: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:12319: \$? = $ac_status" >&5
12320 (exit "$ac_status"); }; }; then
12321 cf_cv_define_sigwinch=maybe
12323 echo "$as_me: failed program was:" >&5
12324 cat "conftest.$ac_ext" >&5
12325 cf_cv_define_sigwinch=no
12327 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12330 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12333 echo "$as_me:12333: result: $cf_cv_define_sigwinch" >&5
12334 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12336 if test "$cf_cv_define_sigwinch" = maybe ; then
12337 echo "$as_me:12337: checking for actual SIGWINCH definition" >&5
12338 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12339 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 cf_cv_fixup_sigwinch=unknown
12345 while test "$cf_sigwinch" != 1
12347 cat >"conftest.$ac_ext" <<_ACEOF
12348 #line 12348 "configure"
12349 #include "confdefs.h"
12351 #undef _XOPEN_SOURCE
12352 #undef _POSIX_SOURCE
12353 #undef _POSIX_C_SOURCE
12354 #include <sys/types.h>
12355 #include <sys/signal.h>
12361 #if SIGWINCH != $cf_sigwinch
12362 #error SIGWINCH is not $cf_sigwinch
12364 int x = SIGWINCH; (void)x
12369 rm -f "conftest.$ac_objext"
12370 if { (eval echo "$as_me:12370: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12373 echo "$as_me:12373: \$? = $ac_status" >&5
12374 (exit "$ac_status"); } &&
12375 { ac_try='test -s "conftest.$ac_objext"'
12376 { (eval echo "$as_me:12376: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:12379: \$? = $ac_status" >&5
12380 (exit "$ac_status"); }; }; then
12381 cf_cv_fixup_sigwinch=$cf_sigwinch
12384 echo "$as_me: failed program was:" >&5
12385 cat "conftest.$ac_ext" >&5
12387 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12389 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12393 echo "$as_me:12393: result: $cf_cv_fixup_sigwinch" >&5
12394 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12396 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12397 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12401 # Checks for CODESET support.
12403 echo "$as_me:12403: checking for nl_langinfo and CODESET" >&5
12404 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12405 if test "${am_cv_langinfo_codeset+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 cat >"conftest.$ac_ext" <<_ACEOF
12409 #line 12409 "configure"
12410 #include "confdefs.h"
12412 $ac_includes_default
12413 #include <langinfo.h>
12417 char* cs = nl_langinfo(CODESET); (void)cs
12422 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12423 if { (eval echo "$as_me:12423: \"$ac_link\"") >&5
12424 (eval $ac_link) 2>&5
12426 echo "$as_me:12426: \$? = $ac_status" >&5
12427 (exit "$ac_status"); } &&
12428 { ac_try='test -s "conftest$ac_exeext"'
12429 { (eval echo "$as_me:12429: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:12432: \$? = $ac_status" >&5
12433 (exit "$ac_status"); }; }; then
12434 am_cv_langinfo_codeset=yes
12436 echo "$as_me: failed program was:" >&5
12437 cat "conftest.$ac_ext" >&5
12438 am_cv_langinfo_codeset=no
12440 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12443 echo "$as_me:12443: result: $am_cv_langinfo_codeset" >&5
12444 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12445 if test "$am_cv_langinfo_codeset" = yes; then
12447 cat >>confdefs.h <<\EOF
12448 #define HAVE_LANGINFO_CODESET 1
12453 # use these variables to work around a defect in gcc's fixincludes.
12454 NCURSES_OK_WCHAR_T=
12457 echo "$as_me:12457: checking if you want wide-character code" >&5
12458 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12460 # Check whether --enable-widec or --disable-widec was given.
12461 if test "${enable_widec+set}" = set; then
12462 enableval="$enable_widec"
12463 with_widec=$enableval
12465 with_widec=$cf_dft_widec
12467 echo "$as_me:12467: result: $with_widec" >&5
12468 echo "${ECHO_T}$with_widec" >&6
12470 NCURSES_WCWIDTH_GRAPHICS=1
12472 if test "x$with_widec" = xyes ; then
12473 if test "x$disable_lib_suffixes" = xno ; then
12474 LIB_SUFFIX="w${LIB_SUFFIX}"
12477 cat >>confdefs.h <<\EOF
12478 #define USE_WIDEC_SUPPORT 1
12481 cat >>confdefs.h <<\EOF
12482 #define NCURSES_WIDECHAR 1
12485 case "$CPPFLAGS" in
12489 { echo "$as_me:12489: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12490 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12491 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12492 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12502 echo "$as_me:12502: checking for $ac_header" >&5
12503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 cat >"conftest.$ac_ext" <<_ACEOF
12508 #line 12508 "configure"
12509 #include "confdefs.h"
12510 #include <$ac_header>
12512 if { (eval echo "$as_me:12512: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12513 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12515 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:12518: \$? = $ac_status" >&5
12519 (exit "$ac_status"); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
12528 if test -z "$ac_cpp_err"; then
12529 eval "$as_ac_Header=yes"
12531 echo "$as_me: failed program was:" >&5
12532 cat "conftest.$ac_ext" >&5
12533 eval "$as_ac_Header=no"
12535 rm -f conftest.err "conftest.$ac_ext"
12537 echo "$as_me:12537: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12538 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12539 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12540 cat >>confdefs.h <<EOF
12541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12547 echo "$as_me:12547: checking if wchar.h can be used as is" >&5
12548 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12549 if test "${cf_cv_wchar_h_okay+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 cat >"conftest.$ac_ext" <<_ACEOF
12554 #line 12554 "configure"
12555 #include "confdefs.h"
12557 $ac_includes_default
12558 #ifdef HAVE_WCHAR_H
12561 #ifdef HAVE_WCTYPE_H
12562 #include <wctype.h>
12570 int bar = iswpunct(foo)
12575 rm -f "conftest.$ac_objext"
12576 if { (eval echo "$as_me:12576: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 (exit "$ac_status"); } &&
12581 { ac_try='test -s "conftest.$ac_objext"'
12582 { (eval echo "$as_me:12582: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:12585: \$? = $ac_status" >&5
12586 (exit "$ac_status"); }; }; then
12587 cf_cv_wchar_h_okay=yes
12589 echo "$as_me: failed program was:" >&5
12590 cat "conftest.$ac_ext" >&5
12591 cf_cv_wchar_h_okay=no
12593 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12595 echo "$as_me:12595: result: $cf_cv_wchar_h_okay" >&5
12596 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12598 if test "$cf_cv_wchar_h_okay" = no
12601 echo "$as_me:12601: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12602 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12603 cat >"conftest.$ac_ext" <<_ACEOF
12604 #line 12604 "configure"
12605 #include "confdefs.h"
12606 #include <sys/types.h>
12612 #ifndef _XOPEN_SOURCE_EXTENDED
12613 #error _XOPEN_SOURCE_EXTENDED is not defined
12619 rm -f "conftest.$ac_objext"
12620 if { (eval echo "$as_me:12620: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 (exit "$ac_status"); } &&
12625 { ac_try='test -s "conftest.$ac_objext"'
12626 { (eval echo "$as_me:12626: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit "$ac_status"); }; }; then
12633 echo "$as_me: failed program was:" >&5
12634 cat "conftest.$ac_ext" >&5
12637 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12638 echo "$as_me:12638: result: $cf_result" >&5
12639 echo "${ECHO_T}$cf_result" >&6
12641 if test "$cf_result" = yes ; then
12642 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12643 elif test "x" != "x" ; then
12644 echo "$as_me:12644: checking checking for compatible value versus " >&5
12645 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12646 cat >"conftest.$ac_ext" <<_ACEOF
12647 #line 12647 "configure"
12648 #include "confdefs.h"
12649 #include <sys/types.h>
12655 #if _XOPEN_SOURCE_EXTENDED- < 0
12656 #error _XOPEN_SOURCE_EXTENDED- is negative
12662 rm -f "conftest.$ac_objext"
12663 if { (eval echo "$as_me:12663: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 (exit "$ac_status"); } &&
12668 { ac_try='test -s "conftest.$ac_objext"'
12669 { (eval echo "$as_me:12669: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:12672: \$? = $ac_status" >&5
12673 (exit "$ac_status"); }; }; then
12676 echo "$as_me: failed program was:" >&5
12677 cat "conftest.$ac_ext" >&5
12680 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12681 echo "$as_me:12681: result: $cf_result" >&5
12682 echo "${ECHO_T}$cf_result" >&6
12683 if test "$cf_result" = no ; then
12684 # perhaps we can override it - try...
12685 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12691 echo "$as_me:12691: checking if wcwidth agrees graphics are single-width" >&5
12692 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12693 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 cat >conftest.in <<CF_EOF
12699 0x250c upper left corner
12700 0x2514 lower left corner
12701 0x2510 upper right corner
12702 0x2518 lower right corner
12703 0x251c tee pointing left
12704 0x2524 tee pointing right
12705 0x2534 tee pointing up
12706 0x252c tee pointing down
12707 0x2500 horizontal line
12708 0x2502 vertical line
12709 0x253c large plus or crossover
12713 0x2592 checker board (stipple)
12714 0x00b0 degree symbol
12717 - Teletype 5410v1 symbols
12718 0x2190 arrow pointing left
12719 0x2192 arrow pointing right
12720 0x2193 arrow pointing down
12721 0x2191 arrow pointing up
12722 0x2592 board of squares
12723 0x2603 lantern symbol
12724 0x25ae solid square block
12725 - these defaults were invented for ncurses
12728 0x2264 less-than-or-equal-to
12729 0x2265 greater-than-or-equal-to
12732 0x00a3 pound-sterling symbol
12733 - thick-line-drawing
12734 0x250f upper left corner
12735 0x2517 lower left corner
12736 0x2513 upper right corner
12737 0x251b lower right corner
12738 0x2523 tee pointing left
12739 0x252b tee pointing right
12740 0x253b tee pointing up
12741 0x2533 tee pointing down
12742 0x2501 horizontal line
12743 0x2503 vertical line
12744 0x254b large plus or crossover
12745 - double-line-drawing
12746 0x2554 upper left corner
12747 0x255a lower left corner
12748 0x2557 upper right corner
12749 0x255d lower right corner
12750 0x2563 tee pointing left
12751 0x2560 tee pointing right
12752 0x2569 tee pointing up
12753 0x2566 tee pointing down
12754 0x2550 horizontal line
12755 0x2551 vertical line
12756 0x256c large plus or crossover
12758 if test "$cross_compiling" = yes; then
12759 cf_cv_wcwidth_graphics=unknown
12761 cat >"conftest.$ac_ext" <<_ACEOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12765 $ac_includes_default
12767 #include <locale.h>
12777 char buffer[MY_LEN + 1];
12778 char notes[MY_LEN + 1];
12782 if (setlocale(LC_ALL, "en_US.UTF8") ||
12783 setlocale(LC_ALL, "en_US.UTF-8") ||
12784 setlocale(LC_ALL, "en_US.utf8") ||
12785 setlocale(LC_ALL, "en_US.utf-8")) {
12786 if ((fp = fopen("conftest.in", "r")) != 0) {
12787 while (fgets(buffer, MY_LEN, fp) != 0) {
12788 if (*buffer == '-') {
12789 fprintf(stderr, "\\t%s", buffer);
12790 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12792 if (wcwidth(value) == 1)
12794 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12796 fprintf(stderr, "?\\t%s", buffer);
12801 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12802 return (totals == passed) ? 0 : 1;
12806 rm -f "conftest$ac_exeext"
12807 if { (eval echo "$as_me:12807: \"$ac_link\"") >&5
12808 (eval $ac_link) 2>&5
12810 echo "$as_me:12810: \$? = $ac_status" >&5
12811 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12812 { (eval echo "$as_me:12812: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:12815: \$? = $ac_status" >&5
12816 (exit "$ac_status"); }; }; then
12817 cf_cv_wcwidth_graphics=yes
12819 echo "$as_me: program exited with status $ac_status" >&5
12820 echo "$as_me: failed program was:" >&5
12821 cat "conftest.$ac_ext" >&5
12822 cf_cv_wcwidth_graphics=no
12824 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12828 echo "$as_me:12828: result: $cf_cv_wcwidth_graphics" >&5
12829 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12831 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12833 # with_overwrite=no
12834 NCURSES_CH_T=cchar_t
12836 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12839 echo "$as_me:12839: checking for $ac_func" >&5
12840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12841 if eval "test \"\${$as_ac_var+set}\" = set"; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >"conftest.$ac_ext" <<_ACEOF
12845 #line 12845 "configure"
12846 #include "confdefs.h"
12847 #define $ac_func autoconf_temporary
12848 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12855 /* We use char because int might match the return type of a gcc2
12856 builtin and then its argument prototype would still apply. */
12857 char $ac_func (void);
12863 /* The GNU C library defines stubs for functions which it implements
12864 to always fail with ENOSYS. Some functions are actually named
12865 something starting with __ and the normal name is an alias. */
12866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12867 #error found stub for $ac_func
12870 return $ac_func ();
12875 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12876 if { (eval echo "$as_me:12876: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit "$ac_status"); } &&
12881 { ac_try='test -s "conftest$ac_exeext"'
12882 { (eval echo "$as_me:12882: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit "$ac_status"); }; }; then
12887 eval "$as_ac_var=yes"
12889 echo "$as_me: failed program was:" >&5
12890 cat "conftest.$ac_ext" >&5
12891 eval "$as_ac_var=no"
12893 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12895 echo "$as_me:12895: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12896 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12897 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12898 cat >>confdefs.h <<EOF
12899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12905 if test "x$ac_cv_func_putwc" != xyes ; then
12907 for ac_header in wchar.h
12909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12910 echo "$as_me:12910: checking for $ac_header" >&5
12911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 cat >"conftest.$ac_ext" <<_ACEOF
12916 #line 12916 "configure"
12917 #include "confdefs.h"
12918 #include <$ac_header>
12920 if { (eval echo "$as_me:12920: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12921 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12923 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12925 cat conftest.err >&5
12926 echo "$as_me:12926: \$? = $ac_status" >&5
12927 (exit "$ac_status"); } >/dev/null; then
12928 if test -s conftest.err; then
12929 ac_cpp_err=$ac_c_preproc_warn_flag
12936 if test -z "$ac_cpp_err"; then
12937 eval "$as_ac_Header=yes"
12939 echo "$as_me: failed program was:" >&5
12940 cat "conftest.$ac_ext" >&5
12941 eval "$as_ac_Header=no"
12943 rm -f conftest.err "conftest.$ac_ext"
12945 echo "$as_me:12945: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12946 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12947 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12948 cat >>confdefs.h <<EOF
12949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12955 echo "$as_me:12955: checking for multibyte character support" >&5
12956 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12957 if test "${cf_cv_utf8_lib+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 cf_save_LIBS="$LIBS"
12962 cat >"conftest.$ac_ext" <<_ACEOF
12963 #line 12963 "configure"
12964 #include "confdefs.h"
12966 $ac_includes_default
12967 #ifdef HAVE_WCHAR_H
12979 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12980 if { (eval echo "$as_me:12980: \"$ac_link\"") >&5
12981 (eval $ac_link) 2>&5
12983 echo "$as_me:12983: \$? = $ac_status" >&5
12984 (exit "$ac_status"); } &&
12985 { ac_try='test -s "conftest$ac_exeext"'
12986 { (eval echo "$as_me:12986: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:12989: \$? = $ac_status" >&5
12990 (exit "$ac_status"); }; }; then
12993 echo "$as_me: failed program was:" >&5
12994 cat "conftest.$ac_ext" >&5
12996 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12997 # will be set on completion of the AC_TRY_LINK below.
12998 cf_cv_header_path_utf8=
12999 cf_cv_library_path_utf8=
13001 echo "${as_me:-configure}:13001: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13003 cf_save_LIBS="$LIBS"
13005 cat >"conftest.$ac_ext" <<_ACEOF
13006 #line 13006 "configure"
13007 #include "confdefs.h"
13009 #include <libutf8.h>
13018 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13019 if { (eval echo "$as_me:13019: \"$ac_link\"") >&5
13020 (eval $ac_link) 2>&5
13022 echo "$as_me:13022: \$? = $ac_status" >&5
13023 (exit "$ac_status"); } &&
13024 { ac_try='test -s "conftest$ac_exeext"'
13025 { (eval echo "$as_me:13025: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:13028: \$? = $ac_status" >&5
13029 (exit "$ac_status"); }; }; then
13031 cf_cv_find_linkage_utf8=yes
13032 cf_cv_header_path_utf8=/usr/include
13033 cf_cv_library_path_utf8=/usr/lib
13036 echo "$as_me: failed program was:" >&5
13037 cat "conftest.$ac_ext" >&5
13039 LIBS="-lutf8 $cf_save_LIBS"
13041 cat >"conftest.$ac_ext" <<_ACEOF
13042 #line 13042 "configure"
13043 #include "confdefs.h"
13045 #include <libutf8.h>
13054 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13055 if { (eval echo "$as_me:13055: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>&5
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit "$ac_status"); } &&
13060 { ac_try='test -s "conftest$ac_exeext"'
13061 { (eval echo "$as_me:13061: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:13064: \$? = $ac_status" >&5
13065 (exit "$ac_status"); }; }; then
13067 cf_cv_find_linkage_utf8=yes
13068 cf_cv_header_path_utf8=/usr/include
13069 cf_cv_library_path_utf8=/usr/lib
13070 cf_cv_library_file_utf8="-lutf8"
13073 echo "$as_me: failed program was:" >&5
13074 cat "conftest.$ac_ext" >&5
13076 cf_cv_find_linkage_utf8=no
13077 LIBS="$cf_save_LIBS"
13079 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13081 echo "${as_me:-configure}:13081: testing find linkage for utf8 library ..." 1>&5
13083 echo "${as_me:-configure}:13083: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13085 cf_save_CPPFLAGS="$CPPFLAGS"
13086 cf_test_CPPFLAGS="$CPPFLAGS"
13090 # collect the current set of include-directories from compiler flags
13091 cf_header_path_list=""
13092 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13093 for cf_header_path in $CPPFLAGS $CFLAGS
13095 case "$cf_header_path" in
13097 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13099 test "x$cf_header_path" != "xNONE" && \
13100 test -d "$cf_header_path" && \
13102 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13103 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13104 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13105 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13106 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13107 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13110 cf_header_path_list="$cf_header_path_list $cf_search"
13116 # add the variations for the package we are looking for
13120 test "x$prefix" != "xNONE" && \
13121 test -d "$prefix" && \
13123 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13124 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13125 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13126 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13127 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13128 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13131 for cf_subdir_prefix in \
13140 test "x$cf_subdir_prefix" != "x$prefix" && \
13141 test -d "$cf_subdir_prefix" && \
13142 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13143 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13144 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13145 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13146 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13147 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13148 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13153 test "$includedir" != NONE && \
13154 test "$includedir" != "/usr/include" && \
13155 test -d "$includedir" && {
13156 test -d "$includedir" && cf_search="$cf_search $includedir"
13157 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13160 test "$oldincludedir" != NONE && \
13161 test "$oldincludedir" != "/usr/include" && \
13162 test -d "$oldincludedir" && {
13163 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13164 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13167 cf_search="$cf_search $cf_header_path_list"
13169 for cf_cv_header_path_utf8 in $cf_search
13171 if test -d "$cf_cv_header_path_utf8" ; then
13172 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13174 echo "${as_me:-configure}:13174: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13176 CPPFLAGS="$cf_save_CPPFLAGS"
13178 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13179 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13181 cat >"conftest.$ac_ext" <<_ACEOF
13182 #line 13182 "configure"
13183 #include "confdefs.h"
13185 #include <libutf8.h>
13194 rm -f "conftest.$ac_objext"
13195 if { (eval echo "$as_me:13195: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>&5
13198 echo "$as_me:13198: \$? = $ac_status" >&5
13199 (exit "$ac_status"); } &&
13200 { ac_try='test -s "conftest.$ac_objext"'
13201 { (eval echo "$as_me:13201: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:13204: \$? = $ac_status" >&5
13205 (exit "$ac_status"); }; }; then
13207 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13209 echo "${as_me:-configure}:13209: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13211 cf_cv_find_linkage_utf8=maybe
13212 cf_test_CPPFLAGS="$CPPFLAGS"
13215 echo "$as_me: failed program was:" >&5
13216 cat "conftest.$ac_ext" >&5
13218 CPPFLAGS="$cf_save_CPPFLAGS"
13221 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13225 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13227 echo "${as_me:-configure}:13227: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13229 cf_save_LIBS="$LIBS"
13230 cf_save_LDFLAGS="$LDFLAGS"
13232 if test "$cf_cv_find_linkage_utf8" != yes ; then
13235 cf_library_path_list=""
13236 if test -n "${LDFLAGS}${LIBS}" ; then
13237 for cf_library_path in $LDFLAGS $LIBS
13239 case "$cf_library_path" in
13241 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13243 test "x$cf_library_path" != "xNONE" && \
13244 test -d "$cf_library_path" && \
13246 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13247 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13248 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13249 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13250 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13251 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13254 cf_library_path_list="$cf_library_path_list $cf_search"
13262 test "x$prefix" != "xNONE" && \
13263 test -d "$prefix" && \
13265 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13266 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13267 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13268 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13269 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13270 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13273 for cf_subdir_prefix in \
13282 test "x$cf_subdir_prefix" != "x$prefix" && \
13283 test -d "$cf_subdir_prefix" && \
13284 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13285 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13286 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13287 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13288 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13289 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13290 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13295 cf_search="$cf_library_path_list $cf_search"
13297 for cf_cv_library_path_utf8 in $cf_search
13299 if test -d "$cf_cv_library_path_utf8" ; then
13300 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13302 echo "${as_me:-configure}:13302: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13304 CPPFLAGS="$cf_test_CPPFLAGS"
13305 LIBS="-lutf8 $cf_save_LIBS"
13306 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13307 cat >"conftest.$ac_ext" <<_ACEOF
13308 #line 13308 "configure"
13309 #include "confdefs.h"
13311 #include <libutf8.h>
13320 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13321 if { (eval echo "$as_me:13321: \"$ac_link\"") >&5
13322 (eval $ac_link) 2>&5
13324 echo "$as_me:13324: \$? = $ac_status" >&5
13325 (exit "$ac_status"); } &&
13326 { ac_try='test -s "conftest$ac_exeext"'
13327 { (eval echo "$as_me:13327: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13330 echo "$as_me:13330: \$? = $ac_status" >&5
13331 (exit "$ac_status"); }; }; then
13333 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13335 echo "${as_me:-configure}:13335: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13337 cf_cv_find_linkage_utf8=yes
13338 cf_cv_library_file_utf8="-lutf8"
13341 echo "$as_me: failed program was:" >&5
13342 cat "conftest.$ac_ext" >&5
13344 CPPFLAGS="$cf_save_CPPFLAGS"
13345 LIBS="$cf_save_LIBS"
13346 LDFLAGS="$cf_save_LDFLAGS"
13349 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13352 CPPFLAGS="$cf_save_CPPFLAGS"
13353 LDFLAGS="$cf_save_LDFLAGS"
13357 cf_cv_find_linkage_utf8=no
13361 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13364 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13366 LIBS="$cf_save_LIBS"
13368 if test "$cf_cv_find_linkage_utf8" = yes ; then
13369 cf_cv_utf8_lib=add-on
13375 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13377 echo "$as_me:13377: result: $cf_cv_utf8_lib" >&5
13378 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13380 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13381 # ncurses/ncursesw:
13382 if test "$cf_cv_utf8_lib" = "add-on" ; then
13384 cat >>confdefs.h <<\EOF
13385 #define HAVE_LIBUTF8_H 1
13388 if test -n "$cf_cv_header_path_utf8" ; then
13389 for cf_add_incdir in $cf_cv_header_path_utf8
13391 while test "$cf_add_incdir" != /usr/include
13393 if test -d "$cf_add_incdir"
13396 if test -n "$CFLAGS$CPPFLAGS" ; then
13397 # a loop is needed to ensure we can add subdirs of existing dirs
13398 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13399 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13400 cf_have_incdir=yes; break
13405 if test "$cf_have_incdir" = no ; then
13406 if test "$cf_add_incdir" = /usr/local/include ; then
13407 if test "$GCC" = yes
13409 cf_save_CPPFLAGS=$CPPFLAGS
13411 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13412 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13414 cat >"conftest.$ac_ext" <<_ACEOF
13415 #line 13415 "configure"
13416 #include "confdefs.h"
13426 rm -f "conftest.$ac_objext"
13427 if { (eval echo "$as_me:13427: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>&5
13430 echo "$as_me:13430: \$? = $ac_status" >&5
13431 (exit "$ac_status"); } &&
13432 { ac_try='test -s "conftest.$ac_objext"'
13433 { (eval echo "$as_me:13433: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:13436: \$? = $ac_status" >&5
13437 (exit "$ac_status"); }; }; then
13440 echo "$as_me: failed program was:" >&5
13441 cat "conftest.$ac_ext" >&5
13444 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13445 CPPFLAGS=$cf_save_CPPFLAGS
13450 if test "$cf_have_incdir" = no ; then
13451 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13453 echo "${as_me:-configure}:13453: testing adding $cf_add_incdir to include-path ..." 1>&5
13455 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13457 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13458 test "$cf_top_incdir" = "$cf_add_incdir" && break
13459 cf_add_incdir="$cf_top_incdir"
13470 if test -n "$cf_cv_library_path_utf8" ; then
13471 for cf_add_libdir in $cf_cv_library_path_utf8
13473 if test "$cf_add_libdir" = /usr/lib ; then
13475 elif test -d "$cf_add_libdir"
13478 if test -n "$LDFLAGS$LIBS" ; then
13479 # a loop is needed to ensure we can add subdirs of existing dirs
13480 for cf_test_libdir in $LDFLAGS $LIBS ; do
13481 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13482 cf_have_libdir=yes; break
13486 if test "$cf_have_libdir" = no ; then
13487 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13489 echo "${as_me:-configure}:13489: testing adding $cf_add_libdir to library-path ..." 1>&5
13491 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13497 cf_add_libs="$LIBS"
13500 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13501 # filter duplicates
13502 for cf_add_1lib in $cf_add_0lib; do
13503 for cf_add_2lib in $cf_add_libs; do
13504 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13509 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13511 LIBS="$cf_add_libs"
13515 if test "$cf_cv_utf8_lib" != no ; then
13520 # This is needed on Tru64 5.0 to declare mbstate_t
13521 echo "$as_me:13521: checking if we must include wchar.h to declare mbstate_t" >&5
13522 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13523 if test "${cf_cv_mbstate_t+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 cat >"conftest.$ac_ext" <<_ACEOF
13528 #line 13528 "configure"
13529 #include "confdefs.h"
13531 #include <stdlib.h>
13532 #include <stdarg.h>
13534 #ifdef HAVE_LIBUTF8_H
13535 #include <libutf8.h>
13545 rm -f "conftest.$ac_objext"
13546 if { (eval echo "$as_me:13546: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13549 echo "$as_me:13549: \$? = $ac_status" >&5
13550 (exit "$ac_status"); } &&
13551 { ac_try='test -s "conftest.$ac_objext"'
13552 { (eval echo "$as_me:13552: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:13555: \$? = $ac_status" >&5
13556 (exit "$ac_status"); }; }; then
13559 echo "$as_me: failed program was:" >&5
13560 cat "conftest.$ac_ext" >&5
13561 cat >"conftest.$ac_ext" <<_ACEOF
13562 #line 13562 "configure"
13563 #include "confdefs.h"
13565 #include <stdlib.h>
13566 #include <stdarg.h>
13569 #ifdef HAVE_LIBUTF8_H
13570 #include <libutf8.h>
13580 rm -f "conftest.$ac_objext"
13581 if { (eval echo "$as_me:13581: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit "$ac_status"); } &&
13586 { ac_try='test -s "conftest.$ac_objext"'
13587 { (eval echo "$as_me:13587: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:13590: \$? = $ac_status" >&5
13591 (exit "$ac_status"); }; }; then
13592 cf_cv_mbstate_t=yes
13594 echo "$as_me: failed program was:" >&5
13595 cat "conftest.$ac_ext" >&5
13596 cf_cv_mbstate_t=unknown
13598 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13600 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13602 echo "$as_me:13602: result: $cf_cv_mbstate_t" >&5
13603 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13605 if test "$cf_cv_mbstate_t" = yes ; then
13607 cat >>confdefs.h <<\EOF
13608 #define NEED_WCHAR_H 1
13614 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13615 if test "$cf_cv_mbstate_t" = unknown ; then
13616 NCURSES_MBSTATE_T=1
13619 # This is needed on Tru64 5.0 to declare wchar_t
13620 echo "$as_me:13620: checking if we must include wchar.h to declare wchar_t" >&5
13621 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13622 if test "${cf_cv_wchar_t+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 cat >"conftest.$ac_ext" <<_ACEOF
13627 #line 13627 "configure"
13628 #include "confdefs.h"
13630 #include <stdlib.h>
13631 #include <stdarg.h>
13633 #ifdef HAVE_LIBUTF8_H
13634 #include <libutf8.h>
13644 rm -f "conftest.$ac_objext"
13645 if { (eval echo "$as_me:13645: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit "$ac_status"); } &&
13650 { ac_try='test -s "conftest.$ac_objext"'
13651 { (eval echo "$as_me:13651: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:13654: \$? = $ac_status" >&5
13655 (exit "$ac_status"); }; }; then
13658 echo "$as_me: failed program was:" >&5
13659 cat "conftest.$ac_ext" >&5
13660 cat >"conftest.$ac_ext" <<_ACEOF
13661 #line 13661 "configure"
13662 #include "confdefs.h"
13664 #include <stdlib.h>
13665 #include <stdarg.h>
13668 #ifdef HAVE_LIBUTF8_H
13669 #include <libutf8.h>
13679 rm -f "conftest.$ac_objext"
13680 if { (eval echo "$as_me:13680: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13683 echo "$as_me:13683: \$? = $ac_status" >&5
13684 (exit "$ac_status"); } &&
13685 { ac_try='test -s "conftest.$ac_objext"'
13686 { (eval echo "$as_me:13686: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:13689: \$? = $ac_status" >&5
13690 (exit "$ac_status"); }; }; then
13693 echo "$as_me: failed program was:" >&5
13694 cat "conftest.$ac_ext" >&5
13695 cf_cv_wchar_t=unknown
13697 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13699 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13701 echo "$as_me:13701: result: $cf_cv_wchar_t" >&5
13702 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13704 if test "$cf_cv_wchar_t" = yes ; then
13706 cat >>confdefs.h <<\EOF
13707 #define NEED_WCHAR_H 1
13713 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13714 if test "$cf_cv_wchar_t" = unknown ; then
13718 # if we find wchar_t in either place, use substitution to provide a fallback.
13719 if test "$cf_cv_wchar_t" != unknown ; then
13720 NCURSES_OK_WCHAR_T=1
13723 # This is needed on Tru64 5.0 to declare wint_t
13724 echo "$as_me:13724: checking if we must include wchar.h to declare wint_t" >&5
13725 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13726 if test "${cf_cv_wint_t+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >"conftest.$ac_ext" <<_ACEOF
13731 #line 13731 "configure"
13732 #include "confdefs.h"
13734 #include <stdlib.h>
13735 #include <stdarg.h>
13737 #ifdef HAVE_LIBUTF8_H
13738 #include <libutf8.h>
13748 rm -f "conftest.$ac_objext"
13749 if { (eval echo "$as_me:13749: \"$ac_compile\"") >&5
13750 (eval $ac_compile) 2>&5
13752 echo "$as_me:13752: \$? = $ac_status" >&5
13753 (exit "$ac_status"); } &&
13754 { ac_try='test -s "conftest.$ac_objext"'
13755 { (eval echo "$as_me:13755: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:13758: \$? = $ac_status" >&5
13759 (exit "$ac_status"); }; }; then
13762 echo "$as_me: failed program was:" >&5
13763 cat "conftest.$ac_ext" >&5
13764 cat >"conftest.$ac_ext" <<_ACEOF
13765 #line 13765 "configure"
13766 #include "confdefs.h"
13768 #include <stdlib.h>
13769 #include <stdarg.h>
13772 #ifdef HAVE_LIBUTF8_H
13773 #include <libutf8.h>
13783 rm -f "conftest.$ac_objext"
13784 if { (eval echo "$as_me:13784: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>&5
13787 echo "$as_me:13787: \$? = $ac_status" >&5
13788 (exit "$ac_status"); } &&
13789 { ac_try='test -s "conftest.$ac_objext"'
13790 { (eval echo "$as_me:13790: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:13793: \$? = $ac_status" >&5
13794 (exit "$ac_status"); }; }; then
13797 echo "$as_me: failed program was:" >&5
13798 cat "conftest.$ac_ext" >&5
13799 cf_cv_wint_t=unknown
13801 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13803 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13805 echo "$as_me:13805: result: $cf_cv_wint_t" >&5
13806 echo "${ECHO_T}$cf_cv_wint_t" >&6
13808 if test "$cf_cv_wint_t" = yes ; then
13810 cat >>confdefs.h <<\EOF
13811 #define NEED_WCHAR_H 1
13817 # if we do not find wint_t in either place, use substitution to provide a fallback.
13818 if test "$cf_cv_wint_t" = unknown ; then
13822 # if we find wint_t in either place, use substitution to provide a fallback.
13823 if test "$cf_cv_wint_t" != unknown ; then
13824 NCURSES_OK_WINT_T=1
13827 if test "$NCURSES_MBSTATE_T" != 0; then
13829 cat >>confdefs.h <<\EOF
13830 #define NEED_MBSTATE_T_DEF 1
13836 ### use option --disable-lp64 to allow long chtype
13837 echo "$as_me:13837: checking whether to enable _LP64 definition in curses.h" >&5
13838 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13840 # Check whether --enable-lp64 or --disable-lp64 was given.
13841 if test "${enable_lp64+set}" = set; then
13842 enableval="$enable_lp64"
13843 with_lp64=$enableval
13845 with_lp64=$cf_dft_with_lp64
13847 echo "$as_me:13847: result: $with_lp64" >&5
13848 echo "${ECHO_T}$with_lp64" >&6
13850 if test "x$with_lp64" = xyes ; then
13851 cf_cv_enable_lp64=1
13853 cf_cv_enable_lp64=0
13856 # Check whether --enable-largefile or --disable-largefile was given.
13857 if test "${enable_largefile+set}" = set; then
13858 enableval="$enable_largefile"
13861 if test "$enable_largefile" != no; then
13863 echo "$as_me:13863: checking for special C compiler options needed for large files" >&5
13864 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13865 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 ac_cv_sys_largefile_CC=no
13869 if test "$GCC" != yes; then
13872 # IRIX 6.2 and later do not support large files by default,
13873 # so use the C compiler's -n32 option if that helps.
13874 cat >"conftest.$ac_ext" <<_ACEOF
13875 #line 13875 "configure"
13876 #include "confdefs.h"
13877 #include <sys/types.h>
13878 /* Check that off_t can represent 2**63 - 1 correctly.
13879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13880 since some C++ compilers masquerading as C compilers
13881 incorrectly reject 9223372036854775807. */
13882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13884 && LARGE_OFF_T % 2147483647 == 1)
13894 rm -f "conftest.$ac_objext"
13895 if { (eval echo "$as_me:13895: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>&5
13898 echo "$as_me:13898: \$? = $ac_status" >&5
13899 (exit "$ac_status"); } &&
13900 { ac_try='test -s "conftest.$ac_objext"'
13901 { (eval echo "$as_me:13901: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:13904: \$? = $ac_status" >&5
13905 (exit "$ac_status"); }; }; then
13908 echo "$as_me: failed program was:" >&5
13909 cat "conftest.$ac_ext" >&5
13911 rm -f "conftest.$ac_objext"
13913 rm -f "conftest.$ac_objext"
13914 if { (eval echo "$as_me:13914: \"$ac_compile\"") >&5
13915 (eval $ac_compile) 2>&5
13917 echo "$as_me:13917: \$? = $ac_status" >&5
13918 (exit "$ac_status"); } &&
13919 { ac_try='test -s "conftest.$ac_objext"'
13920 { (eval echo "$as_me:13920: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13923 echo "$as_me:13923: \$? = $ac_status" >&5
13924 (exit "$ac_status"); }; }; then
13925 ac_cv_sys_largefile_CC=' -n32'; break
13927 echo "$as_me: failed program was:" >&5
13928 cat "conftest.$ac_ext" >&5
13930 rm -f "conftest.$ac_objext"
13934 rm -f "conftest.$ac_ext"
13937 echo "$as_me:13937: result: $ac_cv_sys_largefile_CC" >&5
13938 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13939 if test "$ac_cv_sys_largefile_CC" != no; then
13940 CC=$CC$ac_cv_sys_largefile_CC
13943 echo "$as_me:13943: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13944 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13945 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 ac_cv_sys_file_offset_bits=no
13950 cat >"conftest.$ac_ext" <<_ACEOF
13951 #line 13951 "configure"
13952 #include "confdefs.h"
13953 #include <sys/types.h>
13954 /* Check that off_t can represent 2**63 - 1 correctly.
13955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13956 since some C++ compilers masquerading as C compilers
13957 incorrectly reject 9223372036854775807. */
13958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13960 && LARGE_OFF_T % 2147483647 == 1)
13970 rm -f "conftest.$ac_objext"
13971 if { (eval echo "$as_me:13971: \"$ac_compile\"") >&5
13972 (eval $ac_compile) 2>&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 (exit "$ac_status"); } &&
13976 { ac_try='test -s "conftest.$ac_objext"'
13977 { (eval echo "$as_me:13977: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13980 echo "$as_me:13980: \$? = $ac_status" >&5
13981 (exit "$ac_status"); }; }; then
13984 echo "$as_me: failed program was:" >&5
13985 cat "conftest.$ac_ext" >&5
13987 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13988 cat >"conftest.$ac_ext" <<_ACEOF
13989 #line 13989 "configure"
13990 #include "confdefs.h"
13991 #define _FILE_OFFSET_BITS 64
13992 #include <sys/types.h>
13993 /* Check that off_t can represent 2**63 - 1 correctly.
13994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13995 since some C++ compilers masquerading as C compilers
13996 incorrectly reject 9223372036854775807. */
13997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13999 && LARGE_OFF_T % 2147483647 == 1)
14009 rm -f "conftest.$ac_objext"
14010 if { (eval echo "$as_me:14010: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>&5
14013 echo "$as_me:14013: \$? = $ac_status" >&5
14014 (exit "$ac_status"); } &&
14015 { ac_try='test -s "conftest.$ac_objext"'
14016 { (eval echo "$as_me:14016: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:14019: \$? = $ac_status" >&5
14020 (exit "$ac_status"); }; }; then
14021 ac_cv_sys_file_offset_bits=64; break
14023 echo "$as_me: failed program was:" >&5
14024 cat "conftest.$ac_ext" >&5
14026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14030 echo "$as_me:14030: result: $ac_cv_sys_file_offset_bits" >&5
14031 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14032 if test "$ac_cv_sys_file_offset_bits" != no; then
14034 cat >>confdefs.h <<EOF
14035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14040 echo "$as_me:14040: checking for _LARGE_FILES value needed for large files" >&5
14041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14042 if test "${ac_cv_sys_large_files+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 ac_cv_sys_large_files=no
14047 cat >"conftest.$ac_ext" <<_ACEOF
14048 #line 14048 "configure"
14049 #include "confdefs.h"
14050 #include <sys/types.h>
14051 /* Check that off_t can represent 2**63 - 1 correctly.
14052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14053 since some C++ compilers masquerading as C compilers
14054 incorrectly reject 9223372036854775807. */
14055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14057 && LARGE_OFF_T % 2147483647 == 1)
14067 rm -f "conftest.$ac_objext"
14068 if { (eval echo "$as_me:14068: \"$ac_compile\"") >&5
14069 (eval $ac_compile) 2>&5
14071 echo "$as_me:14071: \$? = $ac_status" >&5
14072 (exit "$ac_status"); } &&
14073 { ac_try='test -s "conftest.$ac_objext"'
14074 { (eval echo "$as_me:14074: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14077 echo "$as_me:14077: \$? = $ac_status" >&5
14078 (exit "$ac_status"); }; }; then
14081 echo "$as_me: failed program was:" >&5
14082 cat "conftest.$ac_ext" >&5
14084 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14085 cat >"conftest.$ac_ext" <<_ACEOF
14086 #line 14086 "configure"
14087 #include "confdefs.h"
14088 #define _LARGE_FILES 1
14089 #include <sys/types.h>
14090 /* Check that off_t can represent 2**63 - 1 correctly.
14091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14092 since some C++ compilers masquerading as C compilers
14093 incorrectly reject 9223372036854775807. */
14094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14096 && LARGE_OFF_T % 2147483647 == 1)
14106 rm -f "conftest.$ac_objext"
14107 if { (eval echo "$as_me:14107: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>&5
14110 echo "$as_me:14110: \$? = $ac_status" >&5
14111 (exit "$ac_status"); } &&
14112 { ac_try='test -s "conftest.$ac_objext"'
14113 { (eval echo "$as_me:14113: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:14116: \$? = $ac_status" >&5
14117 (exit "$ac_status"); }; }; then
14118 ac_cv_sys_large_files=1; break
14120 echo "$as_me: failed program was:" >&5
14121 cat "conftest.$ac_ext" >&5
14123 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14127 echo "$as_me:14127: result: $ac_cv_sys_large_files" >&5
14128 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14129 if test "$ac_cv_sys_large_files" != no; then
14131 cat >>confdefs.h <<EOF
14132 #define _LARGE_FILES $ac_cv_sys_large_files
14139 if test "$enable_largefile" != no ; then
14140 echo "$as_me:14140: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14141 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14142 if test "${ac_cv_sys_largefile_source+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 ac_cv_sys_largefile_source=no
14147 cat >"conftest.$ac_ext" <<_ACEOF
14148 #line 14148 "configure"
14149 #include "confdefs.h"
14159 rm -f "conftest.$ac_objext"
14160 if { (eval echo "$as_me:14160: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14163 echo "$as_me:14163: \$? = $ac_status" >&5
14164 (exit "$ac_status"); } &&
14165 { ac_try='test -s "conftest.$ac_objext"'
14166 { (eval echo "$as_me:14166: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:14169: \$? = $ac_status" >&5
14170 (exit "$ac_status"); }; }; then
14173 echo "$as_me: failed program was:" >&5
14174 cat "conftest.$ac_ext" >&5
14176 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14177 cat >"conftest.$ac_ext" <<_ACEOF
14178 #line 14178 "configure"
14179 #include "confdefs.h"
14180 #define _LARGEFILE_SOURCE 1
14190 rm -f "conftest.$ac_objext"
14191 if { (eval echo "$as_me:14191: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>&5
14194 echo "$as_me:14194: \$? = $ac_status" >&5
14195 (exit "$ac_status"); } &&
14196 { ac_try='test -s "conftest.$ac_objext"'
14197 { (eval echo "$as_me:14197: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:14200: \$? = $ac_status" >&5
14201 (exit "$ac_status"); }; }; then
14202 ac_cv_sys_largefile_source=1; break
14204 echo "$as_me: failed program was:" >&5
14205 cat "conftest.$ac_ext" >&5
14207 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14211 echo "$as_me:14211: result: $ac_cv_sys_largefile_source" >&5
14212 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14213 if test "$ac_cv_sys_largefile_source" != no; then
14215 cat >>confdefs.h <<EOF
14216 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14222 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14223 # in glibc 2.1.3, but that breaks too many other things.
14224 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14225 echo "$as_me:14225: checking for fseeko" >&5
14226 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14227 if test "${ac_cv_func_fseeko+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 cat >"conftest.$ac_ext" <<_ACEOF
14231 #line 14231 "configure"
14232 #include "confdefs.h"
14237 return fseeko && fseeko (stdin, 0, 0);
14242 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14243 if { (eval echo "$as_me:14243: \"$ac_link\"") >&5
14244 (eval $ac_link) 2>&5
14246 echo "$as_me:14246: \$? = $ac_status" >&5
14247 (exit "$ac_status"); } &&
14248 { ac_try='test -s "conftest$ac_exeext"'
14249 { (eval echo "$as_me:14249: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:14252: \$? = $ac_status" >&5
14253 (exit "$ac_status"); }; }; then
14254 ac_cv_func_fseeko=yes
14256 echo "$as_me: failed program was:" >&5
14257 cat "conftest.$ac_ext" >&5
14258 ac_cv_func_fseeko=no
14260 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14262 echo "$as_me:14262: result: $ac_cv_func_fseeko" >&5
14263 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14264 if test $ac_cv_func_fseeko = yes; then
14266 cat >>confdefs.h <<\EOF
14267 #define HAVE_FSEEKO 1
14272 # Normally we would collect these definitions in the config.h,
14273 # but (like _XOPEN_SOURCE), some environments rely on having these
14274 # defined before any of the system headers are included. Another
14275 # case comes up with C++, e.g., on AIX the compiler compiles the
14276 # header files by themselves before looking at the body files it is
14277 # told to compile. For ncurses, those header files do not include
14279 if test "$ac_cv_sys_large_files" != no
14282 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14283 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14286 if test "$ac_cv_sys_largefile_source" != no
14289 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14290 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14293 if test "$ac_cv_sys_file_offset_bits" != no
14296 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14297 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14301 echo "$as_me:14301: checking whether to use struct dirent64" >&5
14302 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14303 if test "${cf_cv_struct_dirent64+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 cat >"conftest.$ac_ext" <<_ACEOF
14308 #line 14308 "configure"
14309 #include "confdefs.h"
14311 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14312 #include <sys/types.h>
14313 #include <dirent.h>
14319 /* if transitional largefile support is setup, this is true */
14320 extern struct dirent64 * readdir(DIR *);
14321 struct dirent64 *x = readdir((DIR *)0);
14322 struct dirent *y = readdir((DIR *)0);
14330 rm -f "conftest.$ac_objext"
14331 if { (eval echo "$as_me:14331: \"$ac_compile\"") >&5
14332 (eval $ac_compile) 2>&5
14334 echo "$as_me:14334: \$? = $ac_status" >&5
14335 (exit "$ac_status"); } &&
14336 { ac_try='test -s "conftest.$ac_objext"'
14337 { (eval echo "$as_me:14337: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:14340: \$? = $ac_status" >&5
14341 (exit "$ac_status"); }; }; then
14342 cf_cv_struct_dirent64=yes
14344 echo "$as_me: failed program was:" >&5
14345 cat "conftest.$ac_ext" >&5
14346 cf_cv_struct_dirent64=no
14348 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14351 echo "$as_me:14351: result: $cf_cv_struct_dirent64" >&5
14352 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14353 test "$cf_cv_struct_dirent64" = yes &&
14354 cat >>confdefs.h <<\EOF
14355 #define HAVE_STRUCT_DIRENT64 1
14360 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14361 echo "$as_me:14361: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14362 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14364 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14365 if test "${enable_tparm_varargs+set}" = set; then
14366 enableval="$enable_tparm_varargs"
14367 with_tparm_varargs=$enableval
14369 with_tparm_varargs=yes
14371 echo "$as_me:14371: result: $with_tparm_varargs" >&5
14372 echo "${ECHO_T}$with_tparm_varargs" >&6
14373 NCURSES_TPARM_VARARGS=0
14374 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14376 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14377 if test "$with_ticlib" != no ; then
14378 echo "$as_me:14378: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14379 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14381 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14382 if test "${enable_tic_depends+set}" = set; then
14383 enableval="$enable_tic_depends"
14384 with_tic_depends=$enableval
14386 with_tic_depends=yes
14388 echo "$as_me:14388: result: $with_tic_depends" >&5
14389 echo "${ECHO_T}$with_tic_depends" >&6
14391 with_tic_depends=no
14394 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14395 echo "$as_me:14395: checking if you want to enable wattr* macros" >&5
14396 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14398 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14399 if test "${enable_wattr_macros+set}" = set; then
14400 enableval="$enable_wattr_macros"
14401 with_wattr_macros=$enableval
14403 with_wattr_macros=no
14405 if [ "x$with_wattr_macros" != xyes ]; then
14406 NCURSES_WATTR_MACROS=0
14407 echo "$as_me:14407: result: no" >&5
14408 echo "${ECHO_T}no" >&6
14410 NCURSES_WATTR_MACROS=1
14411 echo "$as_me:14411: result: yes" >&5
14412 echo "${ECHO_T}yes" >&6
14415 echo "$as_me:14415: checking for X11 rgb file" >&5
14416 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14418 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14419 if test "${with_x11_rgb+set}" = set; then
14420 withval="$with_x11_rgb"
14426 if test "x$RGB_PATH" = xauto
14428 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14430 /opt/local/share/X11/rgb.txt \
14431 /opt/X11/share/X11/rgb.txt \
14432 /usr/share/X11/rgb.txt \
14433 /usr/X11/share/X11/rgb.txt \
14434 /usr/X11/lib/X11/rgb.txt \
14435 /usr/lib/X11/rgb.txt \
14437 /usr/pkg/lib/X11/rgb.txt \
14438 /usr/X11R7/lib/X11/rgb.txt \
14439 /usr/X11R6/lib/X11/rgb.txt \
14440 /usr/X11R5/lib/X11/rgb.txt \
14441 /usr/X11R4/lib/X11/rgb.txt \
14442 /usr/local/lib/X11/rgb.txt \
14443 /usr/local/share/X11/rgb.txt \
14444 /usr/lib64/X11/rgb.txt
14446 if test -f "$cf_path" ; then
14447 RGB_PATH="$cf_path"
14454 if test "x$prefix" != xNONE; then
14455 cf_path_syntax="$prefix"
14457 cf_path_syntax="$ac_default_prefix"
14460 case ".$cf_path" in
14461 (.\$\(*\)*|.\'*\'*)
14465 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14467 (.\$\{*prefix\}*|.\$\{*dir\}*)
14468 eval cf_path="$cf_path"
14469 case ".$cf_path" in
14471 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14476 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14479 { { echo "$as_me:14479: error: expected a pathname, not \"$cf_path\"" >&5
14480 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14481 { (exit 1); exit 1; }; }
14487 echo "$as_me:14487: result: $RGB_PATH" >&5
14488 echo "${ECHO_T}$RGB_PATH" >&6
14490 cat >>confdefs.h <<EOF
14491 #define RGB_PATH "$cf_path"
14495 if test "$RGB_PATH" = no
14500 ### use option --with-bool to override bool's type
14501 echo "$as_me:14501: checking for type of bool" >&5
14502 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14504 # Check whether --with-bool or --without-bool was given.
14505 if test "${with_bool+set}" = set; then
14506 withval="$with_bool"
14507 NCURSES_BOOL="$withval"
14511 echo "$as_me:14511: result: $NCURSES_BOOL" >&5
14512 echo "${ECHO_T}$NCURSES_BOOL" >&6
14514 echo "$as_me:14514: checking for alternate terminal capabilities file" >&5
14515 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14517 # Check whether --with-caps or --without-caps was given.
14518 if test "${with_caps+set}" = set; then
14519 withval="$with_caps"
14520 TERMINFO_CAPS=Caps.$withval
14524 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14526 { echo "$as_me:14526: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14527 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14530 echo "$as_me:14530: result: $TERMINFO_CAPS" >&5
14531 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14533 ### use option --with-chtype to override chtype's type
14534 echo "$as_me:14534: checking for type of chtype" >&5
14535 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14537 # Check whether --with-chtype or --without-chtype was given.
14538 if test "${with_chtype+set}" = set; then
14539 withval="$with_chtype"
14540 NCURSES_CHTYPE="$withval"
14542 NCURSES_CHTYPE=$cf_dft_chtype
14544 echo "$as_me:14544: result: $NCURSES_CHTYPE" >&5
14545 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14547 ### use option --with-ospeed to override ospeed's type
14548 echo "$as_me:14548: checking for type of ospeed" >&5
14549 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14551 # Check whether --with-ospeed or --without-ospeed was given.
14552 if test "${with_ospeed+set}" = set; then
14553 withval="$with_ospeed"
14554 NCURSES_OSPEED="$withval"
14556 NCURSES_OSPEED=short
14558 echo "$as_me:14558: result: $NCURSES_OSPEED" >&5
14559 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14561 ### use option --with-mmask-t to override mmask_t's type
14562 echo "$as_me:14562: checking for type of mmask_t" >&5
14563 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14565 # Check whether --with-mmask-t or --without-mmask-t was given.
14566 if test "${with_mmask_t+set}" = set; then
14567 withval="$with_mmask_t"
14568 NCURSES_MMASK_T="$withval"
14570 NCURSES_MMASK_T=$cf_dft_mmask_t
14572 echo "$as_me:14572: result: $NCURSES_MMASK_T" >&5
14573 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14575 ### use option --with-ccharw-max to override CCHARW_MAX size
14576 echo "$as_me:14576: checking for size CCHARW_MAX" >&5
14577 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14579 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14580 if test "${with_ccharw_max+set}" = set; then
14581 withval="$with_ccharw_max"
14582 NCURSES_CCHARW_MAX="$withval"
14584 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14586 echo "$as_me:14586: result: $NCURSES_CCHARW_MAX" >&5
14587 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14589 echo "$as_me:14589: checking for signed char" >&5
14590 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14591 if test "${ac_cv_type_signed_char+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 cat >"conftest.$ac_ext" <<_ACEOF
14595 #line 14595 "configure"
14596 #include "confdefs.h"
14597 $ac_includes_default
14601 if ((signed char *) 0)
14603 if (sizeof (signed char))
14609 rm -f "conftest.$ac_objext"
14610 if { (eval echo "$as_me:14610: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14613 echo "$as_me:14613: \$? = $ac_status" >&5
14614 (exit "$ac_status"); } &&
14615 { ac_try='test -s "conftest.$ac_objext"'
14616 { (eval echo "$as_me:14616: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:14619: \$? = $ac_status" >&5
14620 (exit "$ac_status"); }; }; then
14621 ac_cv_type_signed_char=yes
14623 echo "$as_me: failed program was:" >&5
14624 cat "conftest.$ac_ext" >&5
14625 ac_cv_type_signed_char=no
14627 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14629 echo "$as_me:14629: result: $ac_cv_type_signed_char" >&5
14630 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14632 echo "$as_me:14632: checking size of signed char" >&5
14633 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14634 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 if test "$ac_cv_type_signed_char" = yes; then
14638 if test "$cross_compiling" = yes; then
14639 # Depending upon the size, compute the lo and hi bounds.
14640 cat >"conftest.$ac_ext" <<_ACEOF
14641 #line 14641 "configure"
14642 #include "confdefs.h"
14643 $ac_includes_default
14647 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14652 rm -f "conftest.$ac_objext"
14653 if { (eval echo "$as_me:14653: \"$ac_compile\"") >&5
14654 (eval $ac_compile) 2>&5
14656 echo "$as_me:14656: \$? = $ac_status" >&5
14657 (exit "$ac_status"); } &&
14658 { ac_try='test -s "conftest.$ac_objext"'
14659 { (eval echo "$as_me:14659: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:14662: \$? = $ac_status" >&5
14663 (exit "$ac_status"); }; }; then
14666 cat >"conftest.$ac_ext" <<_ACEOF
14667 #line 14667 "configure"
14668 #include "confdefs.h"
14669 $ac_includes_default
14673 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14678 rm -f "conftest.$ac_objext"
14679 if { (eval echo "$as_me:14679: \"$ac_compile\"") >&5
14680 (eval $ac_compile) 2>&5
14682 echo "$as_me:14682: \$? = $ac_status" >&5
14683 (exit "$ac_status"); } &&
14684 { ac_try='test -s "conftest.$ac_objext"'
14685 { (eval echo "$as_me:14685: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:14688: \$? = $ac_status" >&5
14689 (exit "$ac_status"); }; }; then
14690 ac_hi=$ac_mid; break
14692 echo "$as_me: failed program was:" >&5
14693 cat "conftest.$ac_ext" >&5
14694 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14696 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14699 echo "$as_me: failed program was:" >&5
14700 cat "conftest.$ac_ext" >&5
14703 cat >"conftest.$ac_ext" <<_ACEOF
14704 #line 14704 "configure"
14705 #include "confdefs.h"
14706 $ac_includes_default
14710 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14715 rm -f "conftest.$ac_objext"
14716 if { (eval echo "$as_me:14716: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:14719: \$? = $ac_status" >&5
14720 (exit "$ac_status"); } &&
14721 { ac_try='test -s "conftest.$ac_objext"'
14722 { (eval echo "$as_me:14722: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:14725: \$? = $ac_status" >&5
14726 (exit "$ac_status"); }; }; then
14727 ac_lo=$ac_mid; break
14729 echo "$as_me: failed program was:" >&5
14730 cat "conftest.$ac_ext" >&5
14731 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14733 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14736 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14737 # Binary search between lo and hi bounds.
14738 while test "x$ac_lo" != "x$ac_hi"; do
14739 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14740 cat >"conftest.$ac_ext" <<_ACEOF
14741 #line 14741 "configure"
14742 #include "confdefs.h"
14743 $ac_includes_default
14747 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14752 rm -f "conftest.$ac_objext"
14753 if { (eval echo "$as_me:14753: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:14756: \$? = $ac_status" >&5
14757 (exit "$ac_status"); } &&
14758 { ac_try='test -s "conftest.$ac_objext"'
14759 { (eval echo "$as_me:14759: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:14762: \$? = $ac_status" >&5
14763 (exit "$ac_status"); }; }; then
14766 echo "$as_me: failed program was:" >&5
14767 cat "conftest.$ac_ext" >&5
14768 ac_lo=`expr "$ac_mid" + 1`
14770 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14772 ac_cv_sizeof_signed_char=$ac_lo
14774 if test "$cross_compiling" = yes; then
14775 { { echo "$as_me:14775: error: cannot run test program while cross compiling" >&5
14776 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14777 { (exit 1); exit 1; }; }
14779 cat >"conftest.$ac_ext" <<_ACEOF
14780 #line 14780 "configure"
14781 #include "confdefs.h"
14782 $ac_includes_default
14786 FILE *f = fopen ("conftest.val", "w");
14788 $ac_main_return (1);
14789 fprintf (f, "%ld", (long)(sizeof (signed char)));
14795 rm -f "conftest$ac_exeext"
14796 if { (eval echo "$as_me:14796: \"$ac_link\"") >&5
14797 (eval $ac_link) 2>&5
14799 echo "$as_me:14799: \$? = $ac_status" >&5
14800 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14801 { (eval echo "$as_me:14801: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:14804: \$? = $ac_status" >&5
14805 (exit "$ac_status"); }; }; then
14806 ac_cv_sizeof_signed_char=`cat conftest.val`
14808 echo "$as_me: program exited with status $ac_status" >&5
14809 echo "$as_me: failed program was:" >&5
14810 cat "conftest.$ac_ext" >&5
14812 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14817 ac_cv_sizeof_signed_char=0
14820 echo "$as_me:14820: result: $ac_cv_sizeof_signed_char" >&5
14821 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14822 cat >>confdefs.h <<EOF
14823 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14826 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14827 NCURSES_SBOOL="signed char"
14829 NCURSES_SBOOL="char"
14831 echo "$as_me:14831: checking whether to use signed chars for Boolean array in term.h" >&5
14832 echo $ECHO_N "checking whether to use signed chars for Boolean array in term.h... $ECHO_C" >&6
14834 # Check whether --enable-signed-char or --disable-signed-char was given.
14835 if test "${enable_signed_char+set}" = set; then
14836 enableval="$enable_signed_char"
14837 with_signed_char=$enableval
14839 with_signed_char=$cf_dft_signed_char
14841 echo "$as_me:14841: result: $with_signed_char" >&5
14842 echo "${ECHO_T}$with_signed_char" >&6
14843 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14845 ### use option --with-tparm-arg to override tparm's argument type
14846 echo "$as_me:14846: checking for type of tparm args" >&5
14847 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14849 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14850 if test "${with_tparm_arg+set}" = set; then
14851 withval="$with_tparm_arg"
14852 NCURSES_TPARM_ARG="$withval"
14854 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14856 echo "$as_me:14856: result: $NCURSES_TPARM_ARG" >&5
14857 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14859 ### Enable compiling-in rcs id's
14860 echo "$as_me:14860: checking if RCS identifiers should be compiled-in" >&5
14861 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14863 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14864 if test "${with_rcs_ids+set}" = set; then
14865 withval="$with_rcs_ids"
14866 with_rcs_ids=$withval
14870 echo "$as_me:14870: result: $with_rcs_ids" >&5
14871 echo "${ECHO_T}$with_rcs_ids" >&6
14872 test "x$with_rcs_ids" = xyes &&
14873 cat >>confdefs.h <<\EOF
14874 #define USE_RCS_IDS 1
14877 ###############################################################################
14879 echo "$as_me:14879: checking format of man-pages" >&5
14880 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14882 # Check whether --with-manpage-format or --without-manpage-format was given.
14883 if test "${with_manpage_format+set}" = set; then
14884 withval="$with_manpage_format"
14885 MANPAGE_FORMAT=$withval
14887 MANPAGE_FORMAT=unknown
14890 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14891 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14895 case "$MANPAGE_FORMAT" in
14897 if test -z "$MANPATH" ; then
14898 MANPATH="/usr/man:/usr/share/man"
14901 # look for the 'date' man-page (it is most likely to be installed!)
14907 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14908 for cf_dir in $MANPATH; do
14909 test -z "$cf_dir" && cf_dir=/usr/man
14910 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
14912 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14913 if test "x$cf_test" = "x$cf_name" ; then
14916 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
14917 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
14918 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14919 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14920 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14921 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14935 # if we found a match in either man* or cat*, stop looking
14936 if test -n "$MANPAGE_FORMAT" ; then
14938 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14939 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14945 test "$cf_found" = yes && break
14948 # only check the first directory in $MANPATH where we find manpages
14949 if test -n "$MANPAGE_FORMAT" ; then
14953 # if we did not find the example, just assume it is normal
14954 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14958 for cf_option in $MANPAGE_FORMAT; do
14959 case "$cf_option" in
14960 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
14963 cf_unknown="$cf_unknown $cf_option"
14970 echo "$as_me:14970: result: $MANPAGE_FORMAT" >&5
14971 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14972 if test -n "$cf_unknown" ; then
14973 { echo "$as_me:14973: WARNING: Unexpected manpage-format $cf_unknown" >&5
14974 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14977 cf_manpage_format=no
14978 cf_manpage_inboth=no
14979 cf_manpage_so_strip=
14980 cf_manpage_compress=
14982 for cf_item in $MANPAGE_FORMAT
14986 cf_manpage_format=yes
14987 cf_manpage_inboth=no
14990 cf_manpage_format=yes
14991 cf_manpage_inboth=yes
14994 cf_manpage_so_strip="Z"
14995 cf_manpage_compress=compress
14998 cf_manpage_so_strip="gz"
14999 cf_manpage_compress=gzip
15002 cf_manpage_so_strip="bz2"
15003 cf_manpage_compress=bzip2
15006 cf_manpage_so_strip="xz"
15007 cf_manpage_compress=xz
15012 echo "$as_me:15012: checking for manpage renaming" >&5
15013 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15015 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15016 if test "${with_manpage_renames+set}" = set; then
15017 withval="$with_manpage_renames"
15018 MANPAGE_RENAMES=$withval
15020 MANPAGE_RENAMES=yes
15023 case ".$MANPAGE_RENAMES" in
15027 # Debian 'man' program?
15028 if test -f /etc/debian_version ; then
15029 MANPAGE_RENAMES=man/man_db.renames
15036 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15037 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15038 elif test "$MANPAGE_RENAMES" = no ; then
15040 elif test ! -f "$MANPAGE_RENAMES" ; then
15041 { { echo "$as_me:15041: error: not a filename: $MANPAGE_RENAMES" >&5
15042 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15043 { (exit 1); exit 1; }; }
15046 echo "$as_me:15046: result: $MANPAGE_RENAMES" >&5
15047 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15049 echo "$as_me:15049: checking if manpage aliases will be installed" >&5
15050 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15052 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15053 if test "${with_manpage_aliases+set}" = set; then
15054 withval="$with_manpage_aliases"
15055 MANPAGE_ALIASES=$withval
15057 MANPAGE_ALIASES=yes
15060 echo "$as_me:15060: result: $MANPAGE_ALIASES" >&5
15061 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15065 cf_use_symlinks=yes
15072 MANPAGE_SYMLINKS=no
15073 if test "$MANPAGE_ALIASES" = yes ; then
15074 echo "$as_me:15074: checking if manpage symlinks should be used" >&5
15075 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15077 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15078 if test "${with_manpage_symlinks+set}" = set; then
15079 withval="$with_manpage_symlinks"
15080 MANPAGE_SYMLINKS=$withval
15082 MANPAGE_SYMLINKS=$cf_use_symlinks
15085 if test "$cf_use_symlinks" = no; then
15086 if test "$MANPAGE_SYMLINKS" = yes ; then
15087 { echo "$as_me:15087: WARNING: cannot make symlinks" >&5
15088 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15089 MANPAGE_SYMLINKS=no
15093 echo "$as_me:15093: result: $MANPAGE_SYMLINKS" >&5
15094 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15097 echo "$as_me:15097: checking for manpage tbl" >&5
15098 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15100 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15101 if test "${with_manpage_tbl+set}" = set; then
15102 withval="$with_manpage_tbl"
15103 MANPAGE_TBL=$withval
15108 echo "$as_me:15108: result: $MANPAGE_TBL" >&5
15109 echo "${ECHO_T}$MANPAGE_TBL" >&6
15111 if test "$prefix" = "NONE" ; then
15112 cf_prefix="$ac_default_prefix"
15114 cf_prefix="$prefix"
15117 test ! -d man && mkdir man
15119 cf_edit_man=./edit_man.sh
15120 cf_man_alias=`pwd`/man_alias.sed
15122 cat >$cf_edit_man <<CF_EOF
15124 # this script is generated by the configure-script CF_MAN_PAGES macro.
15126 prefix="$cf_prefix"
15127 datarootdir="$datarootdir"
15130 NCURSES_MAJOR="$NCURSES_MAJOR"
15131 NCURSES_MINOR="$NCURSES_MINOR"
15132 NCURSES_PATCH="$NCURSES_PATCH"
15134 NCURSES_OSPEED="$NCURSES_OSPEED"
15135 TERMINFO="$TERMINFO"
15136 TERMINFO_DIRS="$TERMINFO_DIRS"
15139 INSTALL_DATA="$INSTALL_DATA"
15141 transform="$program_transform_name"
15143 TMP=\${TMPDIR:=/tmp}/man\$\$
15144 trap "rm -f \$TMP; exit 1" 1 2 3 15
15145 trap "rm -f \$TMP" 0
15157 top_srcdir=\$srcdir/..
15160 if test "\$form" = normal ; then
15161 if test "$cf_manpage_format" = yes ; then
15162 if test "$cf_manpage_inboth" = no ; then
15163 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15167 cf_subdir=\$mandir/man
15168 cf_tables=$MANPAGE_TBL
15170 cf_subdir=\$mandir/cat
15174 # process the list of source-files
15175 for i in "\$@" ; do
15179 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15180 if test "\$verb" = installing ; then
15181 if test ! -d "\$cf_subdir\${section}" ; then
15182 mkdir -p "\$cf_subdir\$section"
15186 # replace variables in man page
15187 if test ! -f "$cf_man_alias" ; then
15188 cat >>$cf_man_alias <<-CF_EOF2
15189 s,@DATADIR@,\$datadir,g
15190 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15191 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15192 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15193 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15194 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15195 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15198 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15200 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15201 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15202 cat >>$cf_edit_man <<-CF_EOF
15203 s,@$cf_NAME@,$cf_name,g
15207 cat >>$cf_edit_man <<CF_EOF
15209 echo "...made $cf_man_alias"
15213 cf_source=\`basename "\$i"\`
15214 cf_full_alias=\$cf_source
15215 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15216 if test ! -f "\$cf_full_alias" ; then
15217 echo ".. skipped \$cf_source"
15222 if test "$MANPAGE_ALIASES" != no ; then
15223 cat >>$cf_edit_man <<CF_EOF
15225 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15226 test "$with_curses_h" = yes && nCurses=ncurses.3x
15227 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$cf_full_alias" |sed -f "$cf_man_alias" | sort -u; test "\$cf_part_alias" = "\$nCurses" && echo curses\`
15231 if test "$MANPAGE_RENAMES" = no ; then
15232 cat >>$cf_edit_man <<CF_EOF
15233 # perform program transformations for section 1 man pages
15234 if test \$section = 1 ; then
15235 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15237 cf_target=\$cf_subdir\${section}/\$cf_source
15241 cat >>$cf_edit_man <<CF_EOF
15242 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15243 if test -z "\$cf_target" ; then
15244 echo "? missing rename for \$cf_source"
15245 cf_target="\$cf_source"
15247 cf_target="\$cf_subdir\${section}/\${cf_target}"
15252 cat >>$cf_edit_man <<CF_EOF
15253 sed -f "$cf_man_alias" \\
15256 if test "$MANPAGE_RENAMES" != no ; then
15257 cat >>$cf_edit_man <<CF_EOF
15258 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15261 cat >>$cf_edit_man <<CF_EOF
15266 cat >>$cf_edit_man <<CF_EOF
15267 if test \$cf_tables = yes ; then
15268 tbl \$TMP >\$TMP.out
15273 if test "$with_overwrite" != yes ; then
15274 cat >>$cf_edit_man <<CF_EOF
15275 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15280 if test "$with_curses_h" != yes ; then
15281 cat >>$cf_edit_man <<CF_EOF
15282 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15287 cat >>$cf_edit_man <<CF_EOF
15288 if test "\$form" = format ; then
15289 nroff -man \$TMP >\$TMP.out
15294 if test -n "$cf_manpage_compress" ; then
15295 cat >>$cf_edit_man <<CF_EOF
15296 if test "\$verb" = installing ; then
15297 if ( "$cf_manpage_compress" -f \$TMP )
15299 mv \$TMP.$cf_manpage_so_strip \$TMP
15302 cf_target="\$cf_target.$cf_manpage_so_strip"
15306 case "$MANPAGE_FORMAT" in
15308 cat >>$cf_edit_man <<CF_EOF
15309 if test "\$form" = format ; then
15310 # BSDI installs only .0 suffixes in the cat directories
15311 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15317 cat >>$cf_edit_man <<CF_EOF
15318 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15320 if test -n "$EXTRA_SUFFIX" ; then
15321 case \$cf_target in
15322 (*${EXTRA_SUFFIX}\$suffix)
15323 extra_suffix="$EXTRA_SUFFIX"
15327 if test "\$verb" = installing ; then
15328 echo "\$verb \$cf_target"
15329 \$INSTALL_DATA \$TMP "\$cf_target"
15330 test -d "\$cf_subdir\${section}" &&
15331 test -n "\$aliases" && (
15332 cd "\$cf_subdir\${section}" && (
15333 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15334 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15335 cf_target=\`basename "\$cf_target"\`
15336 for cf_alias in \$aliases
15338 if test "\$section" = 1 ; then
15339 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15341 cf_alias="\${cf_alias}\${extra_suffix}"
15343 if test "$MANPAGE_SYMLINKS" = yes ; then
15344 if test -f "\$cf_alias\${suffix}" ; then
15345 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15350 echo ".. \$verb alias \$cf_alias\${suffix}"
15354 cat >>$cf_edit_man <<CF_EOF
15355 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15359 cat >>$cf_edit_man <<CF_EOF
15360 rm -f "\$cf_alias\${suffix}"
15361 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15365 cat >>$cf_edit_man <<CF_EOF
15366 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15367 echo ".so \$cf_source" >\$TMP
15369 if test -n "$cf_manpage_compress" ; then
15370 cat >>$cf_edit_man <<CF_EOF
15371 if test -n "$cf_manpage_so_strip" ; then
15372 "$cf_manpage_compress" -f \$TMP
15373 mv \$TMP.$cf_manpage_so_strip \$TMP
15377 cat >>$cf_edit_man <<CF_EOF
15378 echo ".. \$verb alias \$cf_alias\${suffix}"
15379 rm -f "\$cf_alias\${suffix}"
15380 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15385 elif test "\$verb" = removing ; then
15386 test -f "\$cf_target" && (
15387 echo "\$verb \$cf_target"
15388 rm -f "\$cf_target"
15390 test -d "\$cf_subdir\${section}" &&
15391 test -n "\$aliases" && (
15392 cd "\$cf_subdir\${section}" && (
15393 for cf_alias in \$aliases
15395 if test "\$section" = 1 ; then
15396 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15398 cf_alias="\${cf_alias}\${extra_suffix}"
15400 echo ".. \$verb alias \$cf_alias\${suffix}"
15401 rm -f "\$cf_alias\${suffix}"
15413 if test "$cf_manpage_inboth" = yes ; then
15414 if test "\$form" != format ; then
15415 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15421 chmod 755 "$cf_edit_man"
15423 ###############################################################################
15425 ### Note that some functions (such as const) are normally disabled anyway.
15426 echo "$as_me:15426: checking if you want to build with function extensions" >&5
15427 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15429 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15430 if test "${enable_ext_funcs+set}" = set; then
15431 enableval="$enable_ext_funcs"
15432 with_ext_funcs=$enableval
15436 echo "$as_me:15436: result: $with_ext_funcs" >&5
15437 echo "${ECHO_T}$with_ext_funcs" >&6
15438 if test "x$with_ext_funcs" = xyes ; then
15439 NCURSES_EXT_FUNCS=1
15441 cat >>confdefs.h <<\EOF
15442 #define NCURSES_EXT_FUNCS 1
15445 cat >>confdefs.h <<\EOF
15446 #define HAVE_ASSUME_DEFAULT_COLORS 1
15449 cat >>confdefs.h <<\EOF
15450 #define HAVE_CURSES_VERSION 1
15453 cat >>confdefs.h <<\EOF
15454 #define HAVE_HAS_KEY 1
15457 cat >>confdefs.h <<\EOF
15458 #define HAVE_RESIZETERM 1
15461 cat >>confdefs.h <<\EOF
15462 #define HAVE_RESIZE_TERM 1
15465 cat >>confdefs.h <<\EOF
15466 #define HAVE_TERM_ENTRY_H 1
15469 cat >>confdefs.h <<\EOF
15470 #define HAVE_USE_DEFAULT_COLORS 1
15473 cat >>confdefs.h <<\EOF
15474 #define HAVE_USE_SCREEN 1
15477 cat >>confdefs.h <<\EOF
15478 #define HAVE_USE_WINDOW 1
15481 cat >>confdefs.h <<\EOF
15482 #define HAVE_WRESIZE 1
15485 GENERATED_EXT_FUNCS=generated
15486 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15488 NCURSES_EXT_FUNCS=0
15489 GENERATED_EXT_FUNCS=
15492 echo "$as_me:15492: checking if you want to build with SCREEN extensions" >&5
15493 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15495 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15496 if test "${enable_sp_funcs+set}" = set; then
15497 enableval="$enable_sp_funcs"
15498 with_sp_funcs=$enableval
15500 with_sp_funcs=$cf_dft_ext_spfuncs
15502 echo "$as_me:15502: result: $with_sp_funcs" >&5
15503 echo "${ECHO_T}$with_sp_funcs" >&6
15504 if test "x$with_sp_funcs" = xyes ; then
15507 cat >>confdefs.h <<\EOF
15508 #define NCURSES_SP_FUNCS 1
15511 cat >>confdefs.h <<\EOF
15512 #define HAVE_TPUTS_SP 1
15515 GENERATED_SP_FUNCS=generated
15518 GENERATED_SP_FUNCS=
15521 echo "$as_me:15521: checking if you want to build with terminal-driver" >&5
15522 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15524 # Check whether --enable-term-driver or --disable-term-driver was given.
15525 if test "${enable_term_driver+set}" = set; then
15526 enableval="$enable_term_driver"
15527 with_term_driver=$enableval
15529 with_term_driver=no
15531 echo "$as_me:15531: result: $with_term_driver" >&5
15532 echo "${ECHO_T}$with_term_driver" >&6
15533 if test "x$with_term_driver" = xyes ; then
15535 cat >>confdefs.h <<\EOF
15536 #define USE_TERM_DRIVER 1
15539 if test "x$with_termlib" != xno ; then
15540 { { echo "$as_me:15540: error: The term-driver option conflicts with the termlib option" >&5
15541 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15542 { (exit 1); exit 1; }; }
15544 if test "x$with_sp_funcs" != xyes ; then
15545 { { echo "$as_me:15545: error: The term-driver option relies upon sp-funcs" >&5
15546 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15547 { (exit 1); exit 1; }; }
15551 ### use option --enable-const to turn on use of const beyond that in XSI.
15552 echo "$as_me:15552: checking for extended use of const keyword" >&5
15553 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15555 # Check whether --enable-const or --disable-const was given.
15556 if test "${enable_const+set}" = set; then
15557 enableval="$enable_const"
15558 with_ext_const=$enableval
15560 with_ext_const=$cf_dft_ext_const
15562 echo "$as_me:15562: result: $with_ext_const" >&5
15563 echo "${ECHO_T}$with_ext_const" >&6
15564 NCURSES_CONST='/*nothing*/'
15565 if test "x$with_ext_const" = xyes ; then
15566 NCURSES_CONST=const
15569 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15570 echo "$as_me:15570: checking if you want to use extended colors" >&5
15571 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15573 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15574 if test "${enable_ext_colors+set}" = set; then
15575 enableval="$enable_ext_colors"
15576 with_ext_colors=$enableval
15578 with_ext_colors=$cf_dft_ext_colors
15580 echo "$as_me:15580: result: $with_ext_colors" >&5
15581 echo "${ECHO_T}$with_ext_colors" >&6
15582 NCURSES_EXT_COLORS=0
15583 if test "x$with_ext_colors" = xyes ; then
15584 if test "x$with_widec" != xyes ; then
15585 { echo "$as_me:15585: WARNING: This option applies only to wide-character library" >&5
15586 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15588 # cannot be ABI 5 since it changes sizeof(cchar_t)
15590 if test "${with_abi_version+set}" != set; then
15591 case "$cf_cv_rel_version" in
15593 cf_cv_rel_version=6.0
15594 cf_cv_abi_version=6
15595 cf_cv_abi_default=6
15596 { echo "$as_me:15596: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15597 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15602 NCURSES_EXT_COLORS=1
15604 cat >>confdefs.h <<\EOF
15605 #define NCURSES_EXT_COLORS 1
15608 cat >>confdefs.h <<\EOF
15609 #define HAVE_ALLOC_PAIR 1
15612 cat >>confdefs.h <<\EOF
15613 #define HAVE_INIT_EXTENDED_COLOR 1
15616 cat >>confdefs.h <<\EOF
15617 #define HAVE_RESET_COLOR_PAIRS 1
15623 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15624 echo "$as_me:15624: checking if you want to use extended mouse encoding" >&5
15625 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15627 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15628 if test "${enable_ext_mouse+set}" = set; then
15629 enableval="$enable_ext_mouse"
15630 with_ext_mouse=$enableval
15632 with_ext_mouse=$cf_dft_ext_mouse
15634 echo "$as_me:15634: result: $with_ext_mouse" >&5
15635 echo "${ECHO_T}$with_ext_mouse" >&6
15636 if test "x$with_ext_mouse" = xyes ; then
15638 if test "${with_abi_version+set}" != set; then
15639 case "$cf_cv_rel_version" in
15641 cf_cv_rel_version=6.0
15642 cf_cv_abi_version=6
15643 cf_cv_abi_default=6
15644 { echo "$as_me:15644: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15645 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15652 if test $cf_cv_abi_default -le 5 ; then
15653 NCURSES_MOUSE_VERSION=1
15654 elif test $cf_cv_abi_default -le 6 ; then
15655 NCURSES_MOUSE_VERSION=2
15657 NCURSES_MOUSE_VERSION=3
15660 ### use option --enable-ext-putwin to turn on extended screendumps
15661 echo "$as_me:15661: checking if you want to use extended putwin/screendump" >&5
15662 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15664 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15665 if test "${enable_ext_putwin+set}" = set; then
15666 enableval="$enable_ext_putwin"
15667 with_ext_putwin=$enableval
15669 with_ext_putwin=$cf_dft_ext_putwin
15671 echo "$as_me:15671: result: $with_ext_putwin" >&5
15672 echo "${ECHO_T}$with_ext_putwin" >&6
15673 if test "x$with_ext_putwin" = xyes ; then
15675 cat >>confdefs.h <<\EOF
15676 #define NCURSES_EXT_PUTWIN 1
15681 echo "$as_me:15681: checking if you want \$NCURSES_NO_PADDING code" >&5
15682 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15684 # Check whether --enable-no-padding or --disable-no-padding was given.
15685 if test "${enable_no_padding+set}" = set; then
15686 enableval="$enable_no_padding"
15687 with_no_padding=$enableval
15689 with_no_padding=$with_ext_funcs
15691 echo "$as_me:15691: result: $with_no_padding" >&5
15692 echo "${ECHO_T}$with_no_padding" >&6
15693 test "x$with_no_padding" = xyes &&
15694 cat >>confdefs.h <<\EOF
15695 #define NCURSES_NO_PADDING 1
15698 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15699 echo "$as_me:15699: checking if you want SIGWINCH handler" >&5
15700 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15702 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15703 if test "${enable_sigwinch+set}" = set; then
15704 enableval="$enable_sigwinch"
15705 with_sigwinch=$enableval
15707 with_sigwinch=$with_ext_funcs
15709 echo "$as_me:15709: result: $with_sigwinch" >&5
15710 echo "${ECHO_T}$with_sigwinch" >&6
15711 test "x$with_sigwinch" = xyes &&
15712 cat >>confdefs.h <<\EOF
15713 #define USE_SIGWINCH 1
15716 ### use option --enable-tcap-names to allow user to define new capabilities
15717 echo "$as_me:15717: checking if you want user-definable terminal capabilities like termcap" >&5
15718 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15720 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15721 if test "${enable_tcap_names+set}" = set; then
15722 enableval="$enable_tcap_names"
15723 with_tcap_names=$enableval
15725 with_tcap_names=$with_ext_funcs
15727 echo "$as_me:15727: result: $with_tcap_names" >&5
15728 echo "${ECHO_T}$with_tcap_names" >&6
15730 if test "x$with_tcap_names" = xyes; then
15733 cat >>confdefs.h <<\EOF
15734 #define NCURSES_XNAMES 1
15739 ##############################################################################
15741 echo "$as_me:15741: checking if you want to link with the pthread library" >&5
15742 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15744 # Check whether --with-pthread or --without-pthread was given.
15745 if test "${with_pthread+set}" = set; then
15746 withval="$with_pthread"
15747 with_pthread=$withval
15751 echo "$as_me:15751: result: $with_pthread" >&5
15752 echo "${ECHO_T}$with_pthread" >&6
15754 if test "$with_pthread" != no ; then
15755 echo "$as_me:15755: checking for pthread.h" >&5
15756 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15757 if test "${ac_cv_header_pthread_h+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 cat >"conftest.$ac_ext" <<_ACEOF
15761 #line 15761 "configure"
15762 #include "confdefs.h"
15763 #include <pthread.h>
15765 if { (eval echo "$as_me:15765: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15766 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15768 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 echo "$as_me:15771: \$? = $ac_status" >&5
15772 (exit "$ac_status"); } >/dev/null; then
15773 if test -s conftest.err; then
15774 ac_cpp_err=$ac_c_preproc_warn_flag
15781 if test -z "$ac_cpp_err"; then
15782 ac_cv_header_pthread_h=yes
15784 echo "$as_me: failed program was:" >&5
15785 cat "conftest.$ac_ext" >&5
15786 ac_cv_header_pthread_h=no
15788 rm -f conftest.err "conftest.$ac_ext"
15790 echo "$as_me:15790: result: $ac_cv_header_pthread_h" >&5
15791 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15792 if test "$ac_cv_header_pthread_h" = yes; then
15794 cat >>confdefs.h <<\EOF
15795 #define HAVE_PTHREADS_H 1
15798 for cf_lib_pthread in pthread c_r
15800 echo "$as_me:15800: checking if we can link with the $cf_lib_pthread library" >&5
15801 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15802 cf_save_LIBS="$LIBS"
15804 cf_add_libs="$LIBS"
15807 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15808 # filter duplicates
15809 for cf_add_1lib in $cf_add_0lib; do
15810 for cf_add_2lib in $cf_add_libs; do
15811 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15816 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15818 LIBS="$cf_add_libs"
15820 cat >"conftest.$ac_ext" <<_ACEOF
15821 #line 15821 "configure"
15822 #include "confdefs.h"
15824 #include <pthread.h>
15830 int rc = pthread_create(0,0,0,0);
15831 int r2 = pthread_mutexattr_settype(0, 0);
15837 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15838 if { (eval echo "$as_me:15838: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>&5
15841 echo "$as_me:15841: \$? = $ac_status" >&5
15842 (exit "$ac_status"); } &&
15843 { ac_try='test -s "conftest$ac_exeext"'
15844 { (eval echo "$as_me:15844: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:15847: \$? = $ac_status" >&5
15848 (exit "$ac_status"); }; }; then
15851 echo "$as_me: failed program was:" >&5
15852 cat "conftest.$ac_ext" >&5
15855 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15856 LIBS="$cf_save_LIBS"
15857 echo "$as_me:15857: result: $with_pthread" >&5
15858 echo "${ECHO_T}$with_pthread" >&6
15859 test "$with_pthread" = yes && break
15862 if test "$with_pthread" = yes ; then
15864 cf_add_libs="$LIBS"
15867 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15868 # filter duplicates
15869 for cf_add_1lib in $cf_add_0lib; do
15870 for cf_add_2lib in $cf_add_libs; do
15871 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15876 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15878 LIBS="$cf_add_libs"
15880 cat >>confdefs.h <<\EOF
15881 #define HAVE_LIBPTHREADS 1
15885 { { echo "$as_me:15885: error: Cannot link with pthread library" >&5
15886 echo "$as_me: error: Cannot link with pthread library" >&2;}
15887 { (exit 1); exit 1; }; }
15894 if test "x$with_pthread" != xno; then
15895 echo "$as_me:15895: checking for pthread_kill" >&5
15896 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15897 if test "${ac_cv_func_pthread_kill+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 cat >"conftest.$ac_ext" <<_ACEOF
15901 #line 15901 "configure"
15902 #include "confdefs.h"
15903 #define pthread_kill autoconf_temporary
15904 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15905 #undef pthread_kill
15911 /* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15913 char pthread_kill (void);
15919 /* The GNU C library defines stubs for functions which it implements
15920 to always fail with ENOSYS. Some functions are actually named
15921 something starting with __ and the normal name is an alias. */
15922 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15923 #error found stub for pthread_kill
15926 return pthread_kill ();
15931 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15932 if { (eval echo "$as_me:15932: \"$ac_link\"") >&5
15933 (eval $ac_link) 2>&5
15935 echo "$as_me:15935: \$? = $ac_status" >&5
15936 (exit "$ac_status"); } &&
15937 { ac_try='test -s "conftest$ac_exeext"'
15938 { (eval echo "$as_me:15938: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:15941: \$? = $ac_status" >&5
15942 (exit "$ac_status"); }; }; then
15943 ac_cv_func_pthread_kill=yes
15945 echo "$as_me: failed program was:" >&5
15946 cat "conftest.$ac_ext" >&5
15947 ac_cv_func_pthread_kill=no
15949 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15951 echo "$as_me:15951: result: $ac_cv_func_pthread_kill" >&5
15952 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15953 if test "$ac_cv_func_pthread_kill" = yes; then
15955 echo "$as_me:15955: checking if you want to allow EINTR in wgetch with pthreads" >&5
15956 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15958 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15959 if test "${enable_pthreads_eintr+set}" = set; then
15960 enableval="$enable_pthreads_eintr"
15961 use_pthreads_eintr=$enableval
15963 use_pthreads_eintr=no
15965 echo "$as_me:15965: result: $use_pthreads_eintr" >&5
15966 echo "${ECHO_T}$use_pthreads_eintr" >&6
15967 if test "x$use_pthreads_eintr" = xyes ; then
15969 cat >>confdefs.h <<\EOF
15970 #define USE_PTHREADS_EINTR 1
15976 echo "$as_me:15976: checking if you want to use weak-symbols for pthreads" >&5
15977 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15979 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15980 if test "${enable_weak_symbols+set}" = set; then
15981 enableval="$enable_weak_symbols"
15982 use_weak_symbols=$enableval
15984 use_weak_symbols=no
15986 echo "$as_me:15986: result: $use_weak_symbols" >&5
15987 echo "${ECHO_T}$use_weak_symbols" >&6
15988 if test "x$use_weak_symbols" = xyes ; then
15990 echo "$as_me:15990: checking if $CC supports weak symbols" >&5
15991 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15992 if test "${cf_cv_weak_symbols+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 cat >"conftest.$ac_ext" <<_ACEOF
15997 #line 15997 "configure"
15998 #include "confdefs.h"
16005 #if defined(__GNUC__)
16006 # if defined __USE_ISOC99
16007 # define _cat_pragma(exp) _Pragma(#exp)
16008 # define _weak_pragma(exp) _cat_pragma(weak name)
16010 # define _weak_pragma(exp)
16012 # define _declare(name) __extension__ extern __typeof__(name) name
16013 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16016 weak_symbol(fopen);
16022 rm -f "conftest.$ac_objext"
16023 if { (eval echo "$as_me:16023: \"$ac_compile\"") >&5
16024 (eval $ac_compile) 2>&5
16026 echo "$as_me:16026: \$? = $ac_status" >&5
16027 (exit "$ac_status"); } &&
16028 { ac_try='test -s "conftest.$ac_objext"'
16029 { (eval echo "$as_me:16029: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:16032: \$? = $ac_status" >&5
16033 (exit "$ac_status"); }; }; then
16034 cf_cv_weak_symbols=yes
16036 echo "$as_me: failed program was:" >&5
16037 cat "conftest.$ac_ext" >&5
16038 cf_cv_weak_symbols=no
16040 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16043 echo "$as_me:16043: result: $cf_cv_weak_symbols" >&5
16044 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16047 cf_cv_weak_symbols=no
16050 if test "x$cf_cv_weak_symbols" = xyes ; then
16052 cat >>confdefs.h <<\EOF
16053 #define USE_WEAK_SYMBOLS 1
16060 if test "x$with_pthread" = "xyes" ; then
16062 cat >>confdefs.h <<\EOF
16063 #define USE_PTHREADS 1
16066 enable_reentrant=yes
16067 if test "x$cf_cv_weak_symbols" = xyes ; then
16070 cf_add_libs="$PRIVATE_LIBS"
16073 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16074 # filter duplicates
16075 for cf_add_1lib in $cf_add_0lib; do
16076 for cf_add_2lib in $cf_add_libs; do
16077 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16082 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16084 PRIVATE_LIBS="$cf_add_libs"
16089 # Reentrant code has to be opaque; there's little advantage to making ncurses
16090 # opaque outside of that, so there is no --enable-opaque option. We can use
16091 # this option without --with-pthreads, but this will be always set for
16093 echo "$as_me:16093: checking if you want reentrant code" >&5
16094 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16096 # Check whether --enable-reentrant or --disable-reentrant was given.
16097 if test "${enable_reentrant+set}" = set; then
16098 enableval="$enable_reentrant"
16099 with_reentrant=$enableval
16103 echo "$as_me:16103: result: $with_reentrant" >&5
16104 echo "${ECHO_T}$with_reentrant" >&6
16105 if test "x$with_reentrant" = xyes ; then
16106 cf_cv_enable_reentrant=1
16107 cf_cv_enable_opaque="NCURSES_INTERNALS"
16109 if test "x$cf_cv_weak_symbols" = xyes ; then
16111 # remove pthread library from $LIBS
16112 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16114 cf_add_libs="$TEST_LIBS"
16117 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16118 # filter duplicates
16119 for cf_add_1lib in $cf_add_0lib; do
16120 for cf_add_2lib in $cf_add_libs; do
16121 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16126 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16128 TEST_LIBS="$cf_add_libs"
16130 cf_add_libs="$TEST_LIBS2"
16133 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16134 # filter duplicates
16135 for cf_add_1lib in $cf_add_0lib; do
16136 for cf_add_2lib in $cf_add_libs; do
16137 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16142 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16144 TEST_LIBS2="$cf_add_libs"
16146 cf_add_libs="$PRIVATE_LIBS"
16149 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16150 # filter duplicates
16151 for cf_add_1lib in $cf_add_0lib; do
16152 for cf_add_2lib in $cf_add_libs; do
16153 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16158 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16160 PRIVATE_LIBS="$cf_add_libs"
16163 # when not using weak symbols but with_reentrant,
16164 # add 't' to the library suffix on all platforms
16165 # except cygwin, where we only do that if ALSO
16166 # compiling with full thread support.
16168 (*cygwin* | *msys*)
16169 if test "$with_pthread" = "yes" ; then
16170 if test "x$disable_lib_suffixes" = "xno" ; then
16171 LIB_SUFFIX="t${LIB_SUFFIX}"
16175 if test "x$disable_lib_suffixes" = "xno" ; then
16176 LIB_SUFFIX="t${LIB_SUFFIX}"
16182 cat >>confdefs.h <<\EOF
16183 #define USE_REENTRANT 1
16186 if test "${with_abi_version+set}" != set; then
16187 case "$cf_cv_rel_version" in
16189 cf_cv_rel_version=6.0
16190 cf_cv_abi_version=6
16191 cf_cv_abi_default=6
16192 { echo "$as_me:16192: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16193 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16199 cf_cv_enable_reentrant=0
16200 cf_cv_enable_opaque="NCURSES_OPAQUE"
16201 NCURSES_SIZE_T=$cf_dft_ordinate_type
16204 echo "$as_me:16204: checking whether curses library structures should be opaque" >&5
16205 echo $ECHO_N "checking whether curses library structures should be opaque... $ECHO_C" >&6
16207 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16208 if test "${enable_opaque_curses+set}" = set; then
16209 enableval="$enable_opaque_curses"
16210 test "$enableval" != yes && enableval=no
16211 if test "$enableval" != "no" ; then
16212 enable_opaque_curses=yes
16215 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16216 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16222 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16223 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16226 echo "$as_me:16226: result: $enable_opaque_curses" >&5
16227 echo "${ECHO_T}$enable_opaque_curses" >&6
16229 test "$cf_cv_enable_reentrant" = 1 && \
16230 test "$enable_opaque_curses" = no && \
16231 { { echo "$as_me:16231: error: reentrant configuration requires opaque library" >&5
16232 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16233 { (exit 1); exit 1; }; }
16235 echo "$as_me:16235: checking whether form library structures should be opaque" >&5
16236 echo $ECHO_N "checking whether form library structures should be opaque... $ECHO_C" >&6
16238 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16239 if test "${enable_opaque_form+set}" = set; then
16240 enableval="$enable_opaque_form"
16241 enable_opaque_form=yes
16243 enable_opaque_form=$cf_dft_opaque_curses
16245 echo "$as_me:16245: result: $enable_opaque_form" >&5
16246 echo "${ECHO_T}$enable_opaque_form" >&6
16248 echo "$as_me:16248: checking whether menu library structures should be opaque" >&5
16249 echo $ECHO_N "checking whether menu library structures should be opaque... $ECHO_C" >&6
16251 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16252 if test "${enable_opaque_menu+set}" = set; then
16253 enableval="$enable_opaque_menu"
16254 enable_opaque_menu=yes
16256 enable_opaque_menu=$cf_dft_opaque_curses
16258 echo "$as_me:16258: result: $enable_opaque_menu" >&5
16259 echo "${ECHO_T}$enable_opaque_menu" >&6
16261 echo "$as_me:16261: checking whether panel library structures should be opaque" >&5
16262 echo $ECHO_N "checking whether panel library structures should be opaque... $ECHO_C" >&6
16264 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16265 if test "${enable_opaque_panel+set}" = set; then
16266 enableval="$enable_opaque_panel"
16267 enable_opaque_panel=yes
16269 enable_opaque_panel=$cf_dft_opaque_curses
16271 echo "$as_me:16271: result: $enable_opaque_panel" >&5
16272 echo "${ECHO_T}$enable_opaque_panel" >&6
16274 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16275 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16276 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16277 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16279 ### Allow using a different wrap-prefix
16280 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16281 echo "$as_me:16281: checking for prefix used to wrap public variables" >&5
16282 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16284 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16285 if test "${with_wrap_prefix+set}" = set; then
16286 withval="$with_wrap_prefix"
16287 NCURSES_WRAP_PREFIX=$withval
16289 NCURSES_WRAP_PREFIX=_nc_
16291 echo "$as_me:16291: result: $NCURSES_WRAP_PREFIX" >&5
16292 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16294 NCURSES_WRAP_PREFIX=_nc_
16297 cat >>confdefs.h <<EOF
16298 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16301 ###############################################################################
16302 # These options are relatively safe to experiment with.
16304 echo "$as_me:16304: checking if you want all development code" >&5
16305 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16307 # Check whether --with-develop or --without-develop was given.
16308 if test "${with_develop+set}" = set; then
16309 withval="$with_develop"
16310 with_develop=$withval
16314 echo "$as_me:16314: result: $with_develop" >&5
16315 echo "${ECHO_T}$with_develop" >&6
16317 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16318 echo "$as_me:16318: checking if you want hard-tabs code" >&5
16319 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16321 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16322 if test "${enable_hard_tabs+set}" = set; then
16323 enableval="$enable_hard_tabs"
16326 enable_hard_tabs=$with_develop
16328 echo "$as_me:16328: result: $enable_hard_tabs" >&5
16329 echo "${ECHO_T}$enable_hard_tabs" >&6
16330 test "x$enable_hard_tabs" = xyes &&
16331 cat >>confdefs.h <<\EOF
16332 #define USE_HARD_TABS 1
16335 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16336 echo "$as_me:16336: checking if you want limited support for xmc" >&5
16337 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16339 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16340 if test "${enable_xmc_glitch+set}" = set; then
16341 enableval="$enable_xmc_glitch"
16344 enable_xmc_glitch=$with_develop
16346 echo "$as_me:16346: result: $enable_xmc_glitch" >&5
16347 echo "${ECHO_T}$enable_xmc_glitch" >&6
16348 test "x$enable_xmc_glitch" = xyes &&
16349 cat >>confdefs.h <<\EOF
16350 #define USE_XMC_SUPPORT 1
16353 ###############################################################################
16354 # These are just experimental, probably should not be in a package:
16356 echo "$as_me:16356: checking if you do not want to assume colors are white-on-black" >&5
16357 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16359 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16360 if test "${enable_assumed_color+set}" = set; then
16361 enableval="$enable_assumed_color"
16362 with_assumed_color=$enableval
16364 with_assumed_color=yes
16366 echo "$as_me:16366: result: $with_assumed_color" >&5
16367 echo "${ECHO_T}$with_assumed_color" >&6
16368 test "x$with_assumed_color" = xyes &&
16369 cat >>confdefs.h <<\EOF
16370 #define USE_ASSUMED_COLOR 1
16373 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16374 echo "$as_me:16374: checking if you want hashmap scrolling-optimization code" >&5
16375 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16377 # Check whether --enable-hashmap or --disable-hashmap was given.
16378 if test "${enable_hashmap+set}" = set; then
16379 enableval="$enable_hashmap"
16380 with_hashmap=$enableval
16384 echo "$as_me:16384: result: $with_hashmap" >&5
16385 echo "${ECHO_T}$with_hashmap" >&6
16386 test "x$with_hashmap" = xyes &&
16387 cat >>confdefs.h <<\EOF
16388 #define USE_HASHMAP 1
16391 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16392 echo "$as_me:16392: checking if you want code to check screensize" >&5
16393 echo $ECHO_N "checking if you want code to check screensize... $ECHO_C" >&6
16395 # Check whether --enable-check-size or --disable-check-size was given.
16396 if test "${enable_check_size+set}" = set; then
16397 enableval="$enable_check_size"
16398 with_check_size=$enableval
16402 echo "$as_me:16402: result: $with_check_size" >&5
16403 echo "${ECHO_T}$with_check_size" >&6
16404 test "x$with_check_size" = xyes &&
16405 cat >>confdefs.h <<\EOF
16406 #define USE_CHECK_SIZE 1
16409 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16410 echo "$as_me:16410: checking if you want colorfgbg code" >&5
16411 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16413 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16414 if test "${enable_colorfgbg+set}" = set; then
16415 enableval="$enable_colorfgbg"
16416 with_colorfgbg=$enableval
16420 echo "$as_me:16420: result: $with_colorfgbg" >&5
16421 echo "${ECHO_T}$with_colorfgbg" >&6
16422 test "x$with_colorfgbg" = xyes &&
16423 cat >>confdefs.h <<\EOF
16424 #define USE_COLORFGBG 1
16427 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16428 echo "$as_me:16428: checking if you want to use gcc -fvisibility option" >&5
16429 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16431 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16432 if test "${enable_fvisibility+set}" = set; then
16433 enableval="$enable_fvisibility"
16434 cf_with_fvisibility=$enableval
16436 cf_with_fvisibility=no
16438 echo "$as_me:16438: result: $cf_with_fvisibility" >&5
16439 echo "${ECHO_T}$cf_with_fvisibility" >&6
16442 NCURSES_CXX_IMPEXP=
16443 if test "x$cf_with_fvisibility" = xyes; then
16445 echo "$as_me:16445: checking if $CC -fvisibility=hidden option works" >&5
16446 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16447 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 cf_save_cflags="$CFLAGS"
16452 CFLAGS="$CFLAGS -fvisibility=hidden"
16453 cat >"conftest.$ac_ext" <<_ACEOF
16454 #line 16454 "configure"
16455 #include "confdefs.h"
16457 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16463 if (somefunc()) return 1;
16469 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16470 if { (eval echo "$as_me:16470: \"$ac_link\"") >&5
16471 (eval $ac_link) 2>&5
16473 echo "$as_me:16473: \$? = $ac_status" >&5
16474 (exit "$ac_status"); } &&
16475 { ac_try='test -s "conftest$ac_exeext"'
16476 { (eval echo "$as_me:16476: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:16479: \$? = $ac_status" >&5
16480 (exit "$ac_status"); }; }; then
16481 cf_cv_fvisibility_hidden=yes
16483 echo "$as_me: failed program was:" >&5
16484 cat "conftest.$ac_ext" >&5
16485 cf_cv_fvisibility_hidden=no
16487 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16488 CFLAGS=$cf_save_cflags
16491 echo "$as_me:16491: result: $cf_cv_fvisibility_hidden" >&5
16492 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16494 if test "x$cf_cv_fvisibility_hidden" = xyes
16500 cf_new_extra_cppflags=
16502 for cf_add_cflags in -fvisibility=hidden
16504 case "$cf_fix_cppflags" in
16506 case "$cf_add_cflags" in
16507 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16508 case "$cf_add_cflags" in
16510 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16512 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16513 && test -z "${cf_tst_cflags}" \
16514 && cf_fix_cppflags=yes
16516 if test "$cf_fix_cppflags" = yes ; then
16518 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16519 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16522 elif test "${cf_tst_cflags}" = "\"'" ; then
16524 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16525 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16531 case "$CPPFLAGS" in
16535 case "$cf_add_cflags" in
16537 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16539 CPPFLAGS=`echo "$CPPFLAGS" | \
16540 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16541 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16546 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16547 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16554 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16555 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16562 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16563 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16565 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16567 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16568 && test -z "${cf_tst_cflags}" \
16569 && cf_fix_cppflags=no
16574 if test -n "$cf_new_cflags" ; then
16576 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16577 CFLAGS="${CFLAGS}$cf_new_cflags"
16581 if test -n "$cf_new_cppflags" ; then
16583 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16584 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16588 if test -n "$cf_new_extra_cppflags" ; then
16590 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16591 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16595 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16600 ac_cpp='$CXXCPP $CPPFLAGS'
16601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16602 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16604 ac_main_return="return"
16606 echo "$as_me:16606: checking if $CXX -fvisibility=hidden option works" >&5
16607 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16608 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 cf_save_cflags="$CXXFLAGS"
16613 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16614 cat >"conftest.$ac_ext" <<_ACEOF
16615 #line 16615 "configure"
16616 #include "confdefs.h"
16618 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16624 if (somefunc()) return 1;
16630 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16631 if { (eval echo "$as_me:16631: \"$ac_link\"") >&5
16632 (eval $ac_link) 2>&5
16634 echo "$as_me:16634: \$? = $ac_status" >&5
16635 (exit "$ac_status"); } &&
16636 { ac_try='test -s "conftest$ac_exeext"'
16637 { (eval echo "$as_me:16637: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:16640: \$? = $ac_status" >&5
16641 (exit "$ac_status"); }; }; then
16642 cf_cv_fvisibility_hidden2=yes
16644 echo "$as_me: failed program was:" >&5
16645 cat "conftest.$ac_ext" >&5
16646 cf_cv_fvisibility_hidden2=no
16648 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16649 CXXFLAGS=$cf_save_cflags
16652 echo "$as_me:16652: result: $cf_cv_fvisibility_hidden2" >&5
16653 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16655 if test "x$cf_cv_fvisibility_hidden2" = xyes
16658 cf_save_CXXFLAGS="$CFLAGS"
16664 cf_new_extra_cppflags=
16666 for cf_add_cflags in -fvisibility=hidden
16668 case "$cf_fix_cppflags" in
16670 case "$cf_add_cflags" in
16671 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16672 case "$cf_add_cflags" in
16674 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16676 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16677 && test -z "${cf_tst_cflags}" \
16678 && cf_fix_cppflags=yes
16680 if test "$cf_fix_cppflags" = yes ; then
16682 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16683 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16686 elif test "${cf_tst_cflags}" = "\"'" ; then
16688 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16689 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16695 case "$CPPFLAGS" in
16699 case "$cf_add_cflags" in
16701 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16703 CPPFLAGS=`echo "$CPPFLAGS" | \
16704 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16705 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16710 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16711 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16718 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16719 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16726 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16727 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16729 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16731 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16732 && test -z "${cf_tst_cflags}" \
16733 && cf_fix_cppflags=no
16738 if test -n "$cf_new_cflags" ; then
16740 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16741 CFLAGS="${CFLAGS}$cf_new_cflags"
16745 if test -n "$cf_new_cppflags" ; then
16747 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16748 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16752 if test -n "$cf_new_extra_cppflags" ; then
16754 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16755 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16760 CFLAGS="$cf_save_CXXFLAGS"
16762 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16765 ac_cpp='$CPP $CPPFLAGS'
16766 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16767 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16769 ac_main_return="return"
16774 ### use option --enable-interop to turn on use of bindings used for interop
16775 echo "$as_me:16775: checking if you want interop bindings" >&5
16776 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16778 # Check whether --enable-interop or --disable-interop was given.
16779 if test "${enable_interop+set}" = set; then
16780 enableval="$enable_interop"
16781 with_exp_interop=$enableval
16783 with_exp_interop=$cf_dft_interop
16785 echo "$as_me:16785: result: $with_exp_interop" >&5
16786 echo "${ECHO_T}$with_exp_interop" >&6
16788 NCURSES_INTEROP_FUNCS=0
16789 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16791 echo "$as_me:16791: checking if you want experimental safe-sprintf code" >&5
16792 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16794 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16795 if test "${enable_safe_sprintf+set}" = set; then
16796 enableval="$enable_safe_sprintf"
16797 with_safe_sprintf=$enableval
16799 with_safe_sprintf=no
16801 echo "$as_me:16801: result: $with_safe_sprintf" >&5
16802 echo "${ECHO_T}$with_safe_sprintf" >&6
16804 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16805 # when hashmap is used scroll hints are useless
16806 if test "$with_hashmap" = no ; then
16807 echo "$as_me:16807: checking if you want to experiment without scrolling-hints code" >&5
16808 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16810 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16811 if test "${enable_scroll_hints+set}" = set; then
16812 enableval="$enable_scroll_hints"
16813 with_scroll_hints=$enableval
16815 with_scroll_hints=yes
16817 echo "$as_me:16817: result: $with_scroll_hints" >&5
16818 echo "${ECHO_T}$with_scroll_hints" >&6
16819 test "x$with_scroll_hints" = xyes &&
16820 cat >>confdefs.h <<\EOF
16821 #define USE_SCROLL_HINTS 1
16826 echo "$as_me:16826: checking if you want wgetch-events code" >&5
16827 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16829 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16830 if test "${enable_wgetch_events+set}" = set; then
16831 enableval="$enable_wgetch_events"
16832 with_wgetch_events=$enableval
16834 with_wgetch_events=no
16836 echo "$as_me:16836: result: $with_wgetch_events" >&5
16837 echo "${ECHO_T}$with_wgetch_events" >&6
16838 if test "x$with_wgetch_events" = xyes ; then
16840 cat >>confdefs.h <<\EOF
16841 #define NCURSES_WGETCH_EVENTS 1
16844 NCURSES_WGETCH_EVENTS=1
16846 NCURSES_WGETCH_EVENTS=0
16849 case "$cf_cv_system_name" in
16850 (*mingw32*|*mingw64*|*-msvc*)
16851 echo "$as_me:16851: checking if you want experimental-Windows driver" >&5
16852 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16854 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16855 if test "${enable_exp_win32+set}" = set; then
16856 enableval="$enable_exp_win32"
16857 with_exp_win32=$enableval
16861 echo "$as_me:16861: result: $with_exp_win32" >&5
16862 echo "${ECHO_T}$with_exp_win32" >&6
16863 if test "x$with_exp_win32" = xyes
16866 cat >>confdefs.h <<\EOF
16867 #define EXP_WIN32_DRIVER 1
16871 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16873 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16883 ###############################################################################
16885 ### use option --disable-echo to suppress full display compiling commands
16887 echo "$as_me:16887: checking if you want to see long compiling messages" >&5
16888 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16890 # Check whether --enable-echo or --disable-echo was given.
16891 if test "${enable_echo+set}" = set; then
16892 enableval="$enable_echo"
16893 test "$enableval" != no && enableval=yes
16894 if test "$enableval" != "yes" ; then
16897 ECHO_LD='@echo linking $@;'
16898 RULE_CC='@echo compiling $<'
16899 SHOW_CC='@echo compiling $@'
16921 echo "$as_me:16921: result: $enableval" >&5
16922 echo "${ECHO_T}$enableval" >&6
16924 if test "x$enable_echo" = xyes; then
16927 ECHO_LINK='@ echo linking $@ ... ;'
16928 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16929 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16932 # --disable-stripping is used for debugging
16934 echo "$as_me:16934: checking if you want to install stripped executables" >&5
16935 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16937 # Check whether --enable-stripping or --disable-stripping was given.
16938 if test "${enable_stripping+set}" = set; then
16939 enableval="$enable_stripping"
16940 test "$enableval" != no && enableval=yes
16941 if test "$enableval" != "yes" ; then
16942 enable_stripping=no
16944 enable_stripping=yes
16948 enable_stripping=yes
16951 echo "$as_me:16951: result: $enable_stripping" >&5
16952 echo "${ECHO_T}$enable_stripping" >&6
16954 if test "$enable_stripping" = yes
16961 : "${INSTALL:=install}"
16962 echo "$as_me:16962: checking if install accepts -p option" >&5
16963 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16964 if test "${cf_cv_install_p+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16974 if test -f conftest.out/conftest.in
16976 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16977 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16978 if test -s conftest.err
16982 cf_cv_install_p=yes
16993 echo "$as_me:16993: result: $cf_cv_install_p" >&5
16994 echo "${ECHO_T}$cf_cv_install_p" >&6
16996 echo "$as_me:16996: checking if install needs to be told about ownership" >&5
16997 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16998 case `$ac_config_guess` in
17007 echo "$as_me:17007: result: $with_install_o" >&5
17008 echo "${ECHO_T}$with_install_o" >&6
17009 if test "x$with_install_o" = xyes
17011 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'`"
17016 if test -n "$INSTALL_OPT_S"
17018 echo "$as_me:17018: checking if you want to specify strip-program" >&5
17019 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
17021 # Check whether --with-strip-program or --without-strip-program was given.
17022 if test "${with_strip_program+set}" = set; then
17023 withval="$with_strip_program"
17024 with_strip_program=$withval
17026 with_strip_program=no
17028 echo "$as_me:17028: result: $with_strip_program" >&5
17029 echo "${ECHO_T}$with_strip_program" >&6
17030 if test "$with_strip_program" != no
17032 echo "$as_me:17032: checking if strip-program is supported with this installer" >&5
17033 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
17034 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
17035 check_install_strip=no
17036 if test -f "$cf_install_program"
17038 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
17039 if test -n "$check_install_version"
17041 check_install_strip="option"
17043 for check_strip_variable in STRIPBIN STRIP
17045 if strings "$cf_install_program" | grep "^$check_strip_variable$" >/dev/null
17047 check_install_strip="environ"
17053 echo "$as_me:17053: result: $check_install_strip" >&5
17054 echo "${ECHO_T}$check_install_strip" >&6
17055 case "$check_install_strip" in
17057 { echo "$as_me:17057: WARNING: $cf_install_program does not support strip program option" >&5
17058 echo "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
17059 with_strip_program=no
17062 cat >install.tmp <<-CF_EOF
17064 STRIPBIN="$with_strip_program" \\
17065 STRIP="$with_strip_program" \\
17068 INSTALL="`pwd`/install.tmp"
17069 chmod +x "$INSTALL"
17070 test -n "$verbose" && echo " created $INSTALL" 1>&6
17072 echo "${as_me:-configure}:17072: testing created $INSTALL ..." 1>&5
17076 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
17082 # If we're avoiding relinking of shared libraries during install, that is to
17083 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
17084 # the install program has "-p" (for preserving timestamps).
17085 cf_cv_do_reranlib=yes
17086 if test "x$cf_cv_install_p" = xyes
17088 if test "x$cf_cv_do_relink" != xyes
17090 cf_cv_do_reranlib=no
17092 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
17096 ### use option --enable-warnings to turn on all gcc warnings
17098 echo "$as_me:17098: checking if you want to use C11 _Noreturn feature" >&5
17099 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17101 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17102 if test "${enable_stdnoreturn+set}" = set; then
17103 enableval="$enable_stdnoreturn"
17104 test "$enableval" != yes && enableval=no
17105 if test "$enableval" != "no" ; then
17106 enable_stdnoreturn=yes
17108 enable_stdnoreturn=no
17112 enable_stdnoreturn=no
17115 echo "$as_me:17115: result: $enable_stdnoreturn" >&5
17116 echo "${ECHO_T}$enable_stdnoreturn" >&6
17118 if test $enable_stdnoreturn = yes; then
17119 echo "$as_me:17119: checking for C11 _Noreturn feature" >&5
17120 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17121 if test "${cf_cv_c11_noreturn+set}" = set; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 cat >"conftest.$ac_ext" <<_ACEOF
17125 #line 17125 "configure"
17126 #include "confdefs.h"
17128 $ac_includes_default
17129 #include <stdnoreturn.h>
17130 static _Noreturn void giveup(void) { exit(0); }
17135 if (feof(stdin)) giveup()
17140 rm -f "conftest.$ac_objext"
17141 if { (eval echo "$as_me:17141: \"$ac_compile\"") >&5
17142 (eval $ac_compile) 2>&5
17144 echo "$as_me:17144: \$? = $ac_status" >&5
17145 (exit "$ac_status"); } &&
17146 { ac_try='test -s "conftest.$ac_objext"'
17147 { (eval echo "$as_me:17147: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:17150: \$? = $ac_status" >&5
17151 (exit "$ac_status"); }; }; then
17152 cf_cv_c11_noreturn=yes
17154 echo "$as_me: failed program was:" >&5
17155 cat "conftest.$ac_ext" >&5
17156 cf_cv_c11_noreturn=no
17158 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17161 echo "$as_me:17161: result: $cf_cv_c11_noreturn" >&5
17162 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17164 cf_cv_c11_noreturn=no,
17167 if test "$cf_cv_c11_noreturn" = yes; then
17169 cat >>confdefs.h <<\EOF
17170 #define HAVE_STDNORETURN_H 1
17173 cat >>confdefs.h <<EOF
17174 #define STDC_NORETURN _Noreturn
17177 HAVE_STDNORETURN_H=1
17179 HAVE_STDNORETURN_H=0
17182 if test "$GCC" = yes || test "$GXX" = yes
17185 if test "$GCC" = yes || test "$GXX" = yes
17190 for cf_temp_scan in $CFLAGS
17192 case "x$cf_temp_scan" in
17195 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17196 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17201 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17202 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17207 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17208 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17213 if test "x$CFLAGS" != "x$cf_temp_flags"
17215 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17217 echo "${as_me:-configure}:17217: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17219 CFLAGS="$cf_temp_flags"
17220 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17222 echo "${as_me:-configure}:17222: testing ... fixed $CFLAGS ..." 1>&5
17224 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17226 echo "${as_me:-configure}:17226: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17233 if test "$GCC" = yes || test "$GXX" = yes
17238 for cf_temp_scan in $CPPFLAGS
17240 case "x$cf_temp_scan" in
17243 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17244 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17249 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17250 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17255 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17256 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17261 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17263 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17265 echo "${as_me:-configure}:17265: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17267 CPPFLAGS="$cf_temp_flags"
17268 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17270 echo "${as_me:-configure}:17270: testing ... fixed $CPPFLAGS ..." 1>&5
17272 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17274 echo "${as_me:-configure}:17274: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17281 if test "$GCC" = yes || test "$GXX" = yes
17286 for cf_temp_scan in $LDFLAGS
17288 case "x$cf_temp_scan" in
17291 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17292 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17297 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17298 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17303 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17304 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17309 if test "x$LDFLAGS" != "x$cf_temp_flags"
17311 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17313 echo "${as_me:-configure}:17313: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17315 LDFLAGS="$cf_temp_flags"
17316 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17318 echo "${as_me:-configure}:17318: testing ... fixed $LDFLAGS ..." 1>&5
17320 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17322 echo "${as_me:-configure}:17322: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17329 echo "$as_me:17329: checking if you want to turn on gcc warnings" >&5
17330 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17332 # Check whether --enable-warnings or --disable-warnings was given.
17333 if test "${enable_warnings+set}" = set; then
17334 enableval="$enable_warnings"
17335 test "$enableval" != yes && enableval=no
17336 if test "$enableval" != "no" ; then
17337 enable_warnings=yes
17346 echo "$as_me:17346: result: $enable_warnings" >&5
17347 echo "${ECHO_T}$enable_warnings" >&6
17348 if test "$enable_warnings" = "yes"
17351 if test "x$have_x" = xyes; then
17353 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17354 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17355 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17356 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17357 for cf_X_CFLAGS in $X_CFLAGS
17359 case "x$cf_X_CFLAGS" in
17361 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17364 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17369 cat >"conftest.$ac_ext" <<_ACEOF
17370 #line 17370 "configure"
17371 #include "confdefs.h"
17373 #include <stdlib.h>
17374 #include <X11/Intrinsic.h>
17379 String foo = malloc(1); free((void*)foo)
17384 rm -f "conftest.$ac_objext"
17385 if { (eval echo "$as_me:17385: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>&5
17388 echo "$as_me:17388: \$? = $ac_status" >&5
17389 (exit "$ac_status"); } &&
17390 { ac_try='test -s "conftest.$ac_objext"'
17391 { (eval echo "$as_me:17391: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:17394: \$? = $ac_status" >&5
17395 (exit "$ac_status"); }; }; then
17397 echo "$as_me:17397: checking for X11/Xt const-feature" >&5
17398 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17399 if test "${cf_cv_const_x_string+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 cat >"conftest.$ac_ext" <<_ACEOF
17404 #line 17404 "configure"
17405 #include "confdefs.h"
17407 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17408 #undef XTSTRINGDEFINES /* X11R5 and later */
17409 #include <stdlib.h>
17410 #include <X11/Intrinsic.h>
17415 String foo = malloc(1); *foo = 0
17420 rm -f "conftest.$ac_objext"
17421 if { (eval echo "$as_me:17421: \"$ac_compile\"") >&5
17422 (eval $ac_compile) 2>&5
17424 echo "$as_me:17424: \$? = $ac_status" >&5
17425 (exit "$ac_status"); } &&
17426 { ac_try='test -s "conftest.$ac_objext"'
17427 { (eval echo "$as_me:17427: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:17430: \$? = $ac_status" >&5
17431 (exit "$ac_status"); }; }; then
17433 cf_cv_const_x_string=no
17436 echo "$as_me: failed program was:" >&5
17437 cat "conftest.$ac_ext" >&5
17439 cf_cv_const_x_string=yes
17442 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17445 echo "$as_me:17445: result: $cf_cv_const_x_string" >&5
17446 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17448 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17449 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17450 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17452 case "$cf_cv_const_x_string" in
17455 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17456 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17461 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17462 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17468 echo "$as_me: failed program was:" >&5
17469 cat "conftest.$ac_ext" >&5
17471 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17473 cat > "conftest.$ac_ext" <<EOF
17474 #line 17474 "${as_me:-configure}"
17475 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17477 if test "$INTEL_COMPILER" = yes
17479 # The "-wdXXX" options suppress warnings:
17480 # remark #1419: external declaration in primary source file
17481 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17482 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17483 # remark #193: zero used for undefined preprocessing identifier
17484 # remark #593: variable "curs_sb_left_arrow" was set but never used
17485 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17486 # remark #869: parameter "tw" was never referenced
17487 # remark #981: operands are evaluated in unspecified order
17488 # warning #279: controlling expression is constant
17490 { echo "$as_me:17490: checking for $CC warning options..." >&5
17491 echo "$as_me: checking for $CC warning options..." >&6;}
17492 cf_save_CFLAGS="$CFLAGS"
17493 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17505 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17506 if { (eval echo "$as_me:17506: \"$ac_compile\"") >&5
17507 (eval $ac_compile) 2>&5
17509 echo "$as_me:17509: \$? = $ac_status" >&5
17510 (exit "$ac_status"); }; then
17511 test -n "$verbose" && echo "$as_me:17511: result: ... -$cf_opt" >&5
17512 echo "${ECHO_T}... -$cf_opt" >&6
17513 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17516 CFLAGS="$cf_save_CFLAGS"
17517 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17519 { echo "$as_me:17519: checking for $CC warning options..." >&5
17520 echo "$as_me: checking for $CC warning options..." >&6;}
17521 cf_save_CFLAGS="$CFLAGS"
17523 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17524 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17525 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17526 for cf_opt in W Wall \
17527 Wbad-function-cast \
17530 Wdeclaration-after-statement \
17533 Wmissing-declarations \
17534 Wmissing-prototypes \
17538 Wstrict-prototypes \
17539 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17541 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17542 if { (eval echo "$as_me:17542: \"$ac_compile\"") >&5
17543 (eval $ac_compile) 2>&5
17545 echo "$as_me:17545: \$? = $ac_status" >&5
17546 (exit "$ac_status"); }; then
17547 test -n "$verbose" && echo "$as_me:17547: result: ... -$cf_opt" >&5
17548 echo "${ECHO_T}... -$cf_opt" >&6
17551 case "$GCC_VERSION" in
17553 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17555 echo "${as_me:-configure}:17555: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17561 case "$GCC_VERSION" in
17563 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17565 echo "${as_me:-configure}:17565: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17571 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17574 CFLAGS="$cf_save_CFLAGS"
17580 if test "$GCC" = yes || test "$GXX" = yes
17582 cat > conftest.i <<EOF
17584 #define GCC_PRINTF 0
17587 #define GCC_SCANF 0
17589 #ifndef GCC_NORETURN
17590 #define GCC_NORETURN /* nothing */
17593 #define GCC_UNUSED /* nothing */
17596 if test "$GCC" = yes
17598 { echo "$as_me:17598: checking for $CC __attribute__ directives..." >&5
17599 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17600 cat > "conftest.$ac_ext" <<EOF
17601 #line 17601 "${as_me:-configure}"
17603 #include "confdefs.h"
17604 #include "conftest.h"
17605 #include "conftest.i"
17607 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17609 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17612 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17614 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17616 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17617 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17618 extern GCC_NORETURN void foo(void);
17619 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17621 cf_printf_attribute=no
17622 cf_scanf_attribute=no
17623 for cf_attribute in scanf printf unused noreturn
17626 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17628 cf_directive="__attribute__(($cf_attribute))"
17629 echo "checking for $CC $cf_directive" 1>&5
17631 case "$cf_attribute" in
17633 cf_printf_attribute=yes
17634 cat >conftest.h <<EOF
17635 #define GCC_$cf_ATTRIBUTE 1
17639 cf_scanf_attribute=yes
17640 cat >conftest.h <<EOF
17641 #define GCC_$cf_ATTRIBUTE 1
17645 cat >conftest.h <<EOF
17646 #define GCC_$cf_ATTRIBUTE $cf_directive
17651 if { (eval echo "$as_me:17651: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>&5
17654 echo "$as_me:17654: \$? = $ac_status" >&5
17655 (exit "$ac_status"); }; then
17656 test -n "$verbose" && echo "$as_me:17656: result: ... $cf_attribute" >&5
17657 echo "${ECHO_T}... $cf_attribute" >&6
17658 cat conftest.h >>confdefs.h
17659 case "$cf_attribute" in
17662 cat >>confdefs.h <<EOF
17663 #define GCC_NORETURN $cf_directive
17668 cf_value='/* nothing */'
17669 if test "$cf_printf_attribute" != no ; then
17670 cf_value='__attribute__((format(printf,fmt,var)))'
17672 cat >>confdefs.h <<\EOF
17673 #define GCC_PRINTF 1
17678 cat >>confdefs.h <<EOF
17679 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17684 cf_value='/* nothing */'
17685 if test "$cf_scanf_attribute" != no ; then
17686 cf_value='__attribute__((format(scanf,fmt,var)))'
17688 cat >>confdefs.h <<\EOF
17689 #define GCC_SCANF 1
17694 cat >>confdefs.h <<EOF
17695 #define GCC_SCANFLIKE(fmt,var) $cf_value
17701 cat >>confdefs.h <<EOF
17702 #define GCC_UNUSED $cf_directive
17710 ${FGREP-fgrep} define conftest.i >>confdefs.h
17717 if test "x$enable_warnings" = "xyes"; then
17719 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17721 if test "x$cf_with_cxx" = xyes ; then
17725 if test "$GCC" = yes ; then
17728 echo "$as_me:17728: checking if this is really Intel C++ compiler" >&5
17729 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17730 cf_save_CFLAGS="$CXXFLAGS"
17731 CXXFLAGS="$CXXFLAGS -no-gcc"
17732 cat >"conftest.$ac_ext" <<_ACEOF
17733 #line 17733 "configure"
17734 #include "confdefs.h"
17740 #ifdef __INTEL_COMPILER
17742 #error __INTEL_COMPILER is not defined
17749 rm -f "conftest.$ac_objext"
17750 if { (eval echo "$as_me:17750: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>&5
17753 echo "$as_me:17753: \$? = $ac_status" >&5
17754 (exit "$ac_status"); } &&
17755 { ac_try='test -s "conftest.$ac_objext"'
17756 { (eval echo "$as_me:17756: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:17759: \$? = $ac_status" >&5
17760 (exit "$ac_status"); }; }; then
17761 INTEL_CPLUSPLUS=yes
17762 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17765 echo "$as_me: failed program was:" >&5
17766 cat "conftest.$ac_ext" >&5
17768 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17769 CXXFLAGS="$cf_save_CFLAGS"
17770 echo "$as_me:17770: result: $INTEL_CPLUSPLUS" >&5
17771 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17778 if test "$GCC" = yes ; then
17779 echo "$as_me:17779: checking if this is really Clang C++ compiler" >&5
17780 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17781 cf_save_CFLAGS="$CXXFLAGS"
17782 cat >"conftest.$ac_ext" <<_ACEOF
17783 #line 17783 "configure"
17784 #include "confdefs.h"
17792 #error __clang__ is not defined
17799 rm -f "conftest.$ac_objext"
17800 if { (eval echo "$as_me:17800: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>&5
17803 echo "$as_me:17803: \$? = $ac_status" >&5
17804 (exit "$ac_status"); } &&
17805 { ac_try='test -s "conftest.$ac_objext"'
17806 { (eval echo "$as_me:17806: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:17809: \$? = $ac_status" >&5
17810 (exit "$ac_status"); }; }; then
17811 CLANG_CPLUSPLUS=yes
17814 echo "$as_me: failed program was:" >&5
17815 cat "conftest.$ac_ext" >&5
17817 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17818 CXXFLAGS="$cf_save_CFLAGS"
17819 echo "$as_me:17819: result: $CLANG_CPLUSPLUS" >&5
17820 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17825 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17827 (c[1-9][0-9]|*/c[1-9][0-9])
17828 { echo "$as_me:17828: WARNING: replacing broken compiler alias $CC" >&5
17829 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17830 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17835 echo "$as_me:17835: checking version of $CC" >&5
17836 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17837 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.].*//'`"
17838 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17839 echo "$as_me:17839: result: $CLANG_VERSION" >&5
17840 echo "${ECHO_T}$CLANG_VERSION" >&6
17842 for cf_clang_opt in \
17843 -Qunused-arguments \
17844 -Wno-error=implicit-function-declaration
17846 echo "$as_me:17846: checking if option $cf_clang_opt works" >&5
17847 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17848 cf_save_CFLAGS="$CFLAGS"
17849 CFLAGS="$CFLAGS $cf_clang_opt"
17850 cat >"conftest.$ac_ext" <<_ACEOF
17851 #line 17851 "configure"
17852 #include "confdefs.h"
17859 printf("hello!\\n");
17864 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17865 if { (eval echo "$as_me:17865: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17868 echo "$as_me:17868: \$? = $ac_status" >&5
17869 (exit "$ac_status"); } &&
17870 { ac_try='test -s "conftest$ac_exeext"'
17871 { (eval echo "$as_me:17871: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:17874: \$? = $ac_status" >&5
17875 (exit "$ac_status"); }; }; then
17879 echo "$as_me: failed program was:" >&5
17880 cat "conftest.$ac_ext" >&5
17884 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17885 echo "$as_me:17885: result: $cf_clang_optok" >&5
17886 echo "${ECHO_T}$cf_clang_optok" >&6
17887 CFLAGS="$cf_save_CFLAGS"
17888 if test "$cf_clang_optok" = yes; then
17889 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17891 echo "${as_me:-configure}:17891: testing adding option $cf_clang_opt ..." 1>&5
17893 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17894 CFLAGS="${CFLAGS}$cf_clang_opt"
17901 ac_cpp='$CXXCPP $CPPFLAGS'
17902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17903 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17905 ac_main_return="return"
17907 cat > conftest.$ac_ext <<EOF
17908 #line 17908 "configure"
17909 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17912 if test "$INTEL_CPLUSPLUS" = yes
17914 # The "-wdXXX" options suppress warnings:
17915 # remark #1419: external declaration in primary source file
17916 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17917 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17918 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17919 # remark #193: zero used for undefined preprocessing identifier
17920 # remark #593: variable "curs_sb_left_arrow" was set but never used
17921 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17922 # remark #869: parameter "tw" was never referenced
17923 # remark #981: operands are evaluated in unspecified order
17924 # warning #269: invalid format string conversion
17926 { echo "$as_me:17926: checking for $CC warning options..." >&5
17927 echo "$as_me: checking for $CC warning options..." >&6;}
17928 cf_save_CXXFLAGS="$CXXFLAGS"
17929 EXTRA_CXXFLAGS="-Wall"
17942 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17943 if { (eval echo "$as_me:17943: \"$ac_compile\"") >&5
17944 (eval $ac_compile) 2>&5
17946 echo "$as_me:17946: \$? = $ac_status" >&5
17947 (exit "$ac_status"); }; then
17948 test -n "$verbose" && echo "$as_me:17948: result: ... -$cf_opt" >&5
17949 echo "${ECHO_T}... -$cf_opt" >&6
17950 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17953 CXXFLAGS="$cf_save_CXXFLAGS"
17955 elif test "$GXX" = yes
17957 { echo "$as_me:17957: checking for $CXX warning options..." >&5
17958 echo "$as_me: checking for $CXX warning options..." >&6;}
17959 cf_save_CXXFLAGS="$CXXFLAGS"
17960 EXTRA_CXXFLAGS="-W -Wall"
17961 cf_gxx_extra_warnings=""
17962 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17963 case "$GXX_VERSION" in
17967 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17974 Wignored-qualifiers \
17976 Woverloaded-virtual \
17984 Wundef $cf_gxx_extra_warnings Wno-unused
17986 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17987 if { (eval echo "$as_me:17987: \"$ac_compile\"") >&5
17988 (eval $ac_compile) 2>&5
17990 echo "$as_me:17990: \$? = $ac_status" >&5
17991 (exit "$ac_status"); }; then
17992 test -n "$verbose" && echo "$as_me:17992: result: ... -$cf_opt" >&5
17993 echo "${ECHO_T}... -$cf_opt" >&6
17994 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17996 test -n "$verbose" && echo "$as_me:17996: result: ... no -$cf_opt" >&5
17997 echo "${ECHO_T}... no -$cf_opt" >&6
18000 CXXFLAGS="$cf_save_CXXFLAGS"
18005 ac_cpp='$CPP $CPPFLAGS'
18006 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
18007 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
18008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18009 ac_main_return="return"
18014 echo "$as_me:18014: checking if you want to work around bogus compiler/loader warnings" >&5
18015 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
18017 # Check whether --enable-string-hacks or --disable-string-hacks was given.
18018 if test "${enable_string_hacks+set}" = set; then
18019 enableval="$enable_string_hacks"
18020 enable_string_hacks=$enableval
18022 enable_string_hacks=no
18024 echo "$as_me:18024: result: $enable_string_hacks" >&5
18025 echo "${ECHO_T}$enable_string_hacks" >&6
18027 if test "x$enable_string_hacks" = "xyes"; then
18029 cat >>confdefs.h <<\EOF
18030 #define USE_STRING_HACKS 1
18033 { echo "$as_me:18033: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
18034 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
18035 echo "$as_me:18035: checking for strlcat" >&5
18036 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18037 if test "${ac_cv_func_strlcat+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 cat >"conftest.$ac_ext" <<_ACEOF
18041 #line 18041 "configure"
18042 #include "confdefs.h"
18043 #define strlcat autoconf_temporary
18044 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18051 /* We use char because int might match the return type of a gcc2
18052 builtin and then its argument prototype would still apply. */
18053 char strlcat (void);
18059 /* The GNU C library defines stubs for functions which it implements
18060 to always fail with ENOSYS. Some functions are actually named
18061 something starting with __ and the normal name is an alias. */
18062 #if defined (__stub_strlcat) || defined (__stub___strlcat)
18063 #error found stub for strlcat
18071 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18072 if { (eval echo "$as_me:18072: \"$ac_link\"") >&5
18073 (eval $ac_link) 2>&5
18075 echo "$as_me:18075: \$? = $ac_status" >&5
18076 (exit "$ac_status"); } &&
18077 { ac_try='test -s "conftest$ac_exeext"'
18078 { (eval echo "$as_me:18078: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 echo "$as_me:18081: \$? = $ac_status" >&5
18082 (exit "$ac_status"); }; }; then
18083 ac_cv_func_strlcat=yes
18085 echo "$as_me: failed program was:" >&5
18086 cat "conftest.$ac_ext" >&5
18087 ac_cv_func_strlcat=no
18089 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18091 echo "$as_me:18091: result: $ac_cv_func_strlcat" >&5
18092 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18093 if test "$ac_cv_func_strlcat" = yes; then
18095 cat >>confdefs.h <<\EOF
18096 #define HAVE_STRLCAT 1
18101 echo "$as_me:18101: checking for strlcat in -lbsd" >&5
18102 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18103 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 ac_check_lib_save_LIBS=$LIBS
18108 cat >"conftest.$ac_ext" <<_ACEOF
18109 #line 18109 "configure"
18110 #include "confdefs.h"
18112 /* Override any gcc2 internal prototype to avoid an error. */
18116 /* We use char because int might match the return type of a gcc2
18117 builtin and then its argument prototype would still apply. */
18127 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18128 if { (eval echo "$as_me:18128: \"$ac_link\"") >&5
18129 (eval $ac_link) 2>&5
18131 echo "$as_me:18131: \$? = $ac_status" >&5
18132 (exit "$ac_status"); } &&
18133 { ac_try='test -s "conftest$ac_exeext"'
18134 { (eval echo "$as_me:18134: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18137 echo "$as_me:18137: \$? = $ac_status" >&5
18138 (exit "$ac_status"); }; }; then
18139 ac_cv_lib_bsd_strlcat=yes
18141 echo "$as_me: failed program was:" >&5
18142 cat "conftest.$ac_ext" >&5
18143 ac_cv_lib_bsd_strlcat=no
18145 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18146 LIBS=$ac_check_lib_save_LIBS
18148 echo "$as_me:18148: result: $ac_cv_lib_bsd_strlcat" >&5
18149 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18150 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18152 cf_add_libs="$LIBS"
18155 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18156 # filter duplicates
18157 for cf_add_1lib in $cf_add_0lib; do
18158 for cf_add_2lib in $cf_add_libs; do
18159 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18164 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18166 LIBS="$cf_add_libs"
18168 for ac_header in bsd/string.h
18170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18171 echo "$as_me:18171: checking for $ac_header" >&5
18172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 cat >"conftest.$ac_ext" <<_ACEOF
18177 #line 18177 "configure"
18178 #include "confdefs.h"
18179 #include <$ac_header>
18181 if { (eval echo "$as_me:18181: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18182 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18184 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:18187: \$? = $ac_status" >&5
18188 (exit "$ac_status"); } >/dev/null; then
18189 if test -s conftest.err; then
18190 ac_cpp_err=$ac_c_preproc_warn_flag
18197 if test -z "$ac_cpp_err"; then
18198 eval "$as_ac_Header=yes"
18200 echo "$as_me: failed program was:" >&5
18201 cat "conftest.$ac_ext" >&5
18202 eval "$as_ac_Header=no"
18204 rm -f conftest.err "conftest.$ac_ext"
18206 echo "$as_me:18206: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18207 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18208 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18209 cat >>confdefs.h <<EOF
18210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18216 cat >>confdefs.h <<\EOF
18217 #define HAVE_STRLCAT 1
18224 for ac_func in strlcpy snprintf
18226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18227 echo "$as_me:18227: checking for $ac_func" >&5
18228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18229 if eval "test \"\${$as_ac_var+set}\" = set"; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 cat >"conftest.$ac_ext" <<_ACEOF
18233 #line 18233 "configure"
18234 #include "confdefs.h"
18235 #define $ac_func autoconf_temporary
18236 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18243 /* We use char because int might match the return type of a gcc2
18244 builtin and then its argument prototype would still apply. */
18245 char $ac_func (void);
18251 /* The GNU C library defines stubs for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18255 #error found stub for $ac_func
18258 return $ac_func ();
18263 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18264 if { (eval echo "$as_me:18264: \"$ac_link\"") >&5
18265 (eval $ac_link) 2>&5
18267 echo "$as_me:18267: \$? = $ac_status" >&5
18268 (exit "$ac_status"); } &&
18269 { ac_try='test -s "conftest$ac_exeext"'
18270 { (eval echo "$as_me:18270: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:18273: \$? = $ac_status" >&5
18274 (exit "$ac_status"); }; }; then
18275 eval "$as_ac_var=yes"
18277 echo "$as_me: failed program was:" >&5
18278 cat "conftest.$ac_ext" >&5
18279 eval "$as_ac_var=no"
18281 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18283 echo "$as_me:18283: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18284 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18285 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18286 cat >>confdefs.h <<EOF
18287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18295 ### use option --enable-assertions to turn on generation of assertion code
18296 echo "$as_me:18296: checking if you want to enable runtime assertions" >&5
18297 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18299 # Check whether --enable-assertions or --disable-assertions was given.
18300 if test "${enable_assertions+set}" = set; then
18301 enableval="$enable_assertions"
18302 with_assertions=$enableval
18306 echo "$as_me:18306: result: $with_assertions" >&5
18307 echo "${ECHO_T}$with_assertions" >&6
18310 if test "$with_assertions" = no
18312 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18315 ADAFLAGS="$ADAFLAGS -gnata"
18320 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18322 echo "$as_me:18322: checking if you want to use dmalloc for testing" >&5
18323 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18325 # Check whether --with-dmalloc or --without-dmalloc was given.
18326 if test "${with_dmalloc+set}" = set; then
18327 withval="$with_dmalloc"
18328 case "x$withval" in
18331 : "${with_cflags:=-g}"
18332 : "${enable_leaks:=no}"
18335 cat >>confdefs.h <<EOF
18336 #define USE_DMALLOC 1
18344 echo "$as_me:18344: result: ${with_dmalloc:-no}" >&5
18345 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18347 case ".$with_cflags" in
18357 cf_new_extra_cppflags=
18359 for cf_add_cflags in -g
18361 case "$cf_fix_cppflags" in
18363 case "$cf_add_cflags" in
18364 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18365 case "$cf_add_cflags" in
18367 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18369 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18370 && test -z "${cf_tst_cflags}" \
18371 && cf_fix_cppflags=yes
18373 if test "$cf_fix_cppflags" = yes ; then
18375 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18376 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18379 elif test "${cf_tst_cflags}" = "\"'" ; then
18381 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18382 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18388 case "$CPPFLAGS" in
18392 case "$cf_add_cflags" in
18394 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18396 CPPFLAGS=`echo "$CPPFLAGS" | \
18397 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18398 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18403 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18404 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18411 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18412 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18419 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18420 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18422 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18424 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18425 && test -z "${cf_tst_cflags}" \
18426 && cf_fix_cppflags=no
18431 if test -n "$cf_new_cflags" ; then
18433 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18434 CFLAGS="${CFLAGS}$cf_new_cflags"
18438 if test -n "$cf_new_cppflags" ; then
18440 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18441 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18445 if test -n "$cf_new_extra_cppflags" ; then
18447 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18448 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18457 if test "$with_dmalloc" = yes ; then
18458 echo "$as_me:18458: checking for dmalloc.h" >&5
18459 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18460 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 cat >"conftest.$ac_ext" <<_ACEOF
18464 #line 18464 "configure"
18465 #include "confdefs.h"
18466 #include <dmalloc.h>
18468 if { (eval echo "$as_me:18468: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18469 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18471 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:18474: \$? = $ac_status" >&5
18475 (exit "$ac_status"); } >/dev/null; then
18476 if test -s conftest.err; then
18477 ac_cpp_err=$ac_c_preproc_warn_flag
18484 if test -z "$ac_cpp_err"; then
18485 ac_cv_header_dmalloc_h=yes
18487 echo "$as_me: failed program was:" >&5
18488 cat "conftest.$ac_ext" >&5
18489 ac_cv_header_dmalloc_h=no
18491 rm -f conftest.err "conftest.$ac_ext"
18493 echo "$as_me:18493: result: $ac_cv_header_dmalloc_h" >&5
18494 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18495 if test "$ac_cv_header_dmalloc_h" = yes; then
18497 echo "$as_me:18497: checking for dmalloc_debug in -ldmalloc" >&5
18498 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18499 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 ac_check_lib_save_LIBS=$LIBS
18503 LIBS="-ldmalloc $LIBS"
18504 cat >"conftest.$ac_ext" <<_ACEOF
18505 #line 18505 "configure"
18506 #include "confdefs.h"
18508 /* Override any gcc2 internal prototype to avoid an error. */
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18514 char dmalloc_debug ();
18523 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18524 if { (eval echo "$as_me:18524: \"$ac_link\"") >&5
18525 (eval $ac_link) 2>&5
18527 echo "$as_me:18527: \$? = $ac_status" >&5
18528 (exit "$ac_status"); } &&
18529 { ac_try='test -s "conftest$ac_exeext"'
18530 { (eval echo "$as_me:18530: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:18533: \$? = $ac_status" >&5
18534 (exit "$ac_status"); }; }; then
18535 ac_cv_lib_dmalloc_dmalloc_debug=yes
18537 echo "$as_me: failed program was:" >&5
18538 cat "conftest.$ac_ext" >&5
18539 ac_cv_lib_dmalloc_dmalloc_debug=no
18541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18542 LIBS=$ac_check_lib_save_LIBS
18544 echo "$as_me:18544: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18545 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18546 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18547 cat >>confdefs.h <<EOF
18548 #define HAVE_LIBDMALLOC 1
18551 LIBS="-ldmalloc $LIBS"
18559 echo "$as_me:18559: checking if you want to use dbmalloc for testing" >&5
18560 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18562 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18563 if test "${with_dbmalloc+set}" = set; then
18564 withval="$with_dbmalloc"
18565 case "x$withval" in
18568 : "${with_cflags:=-g}"
18569 : "${enable_leaks:=no}"
18572 cat >>confdefs.h <<EOF
18573 #define USE_DBMALLOC 1
18581 echo "$as_me:18581: result: ${with_dbmalloc:-no}" >&5
18582 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18584 case ".$with_cflags" in
18594 cf_new_extra_cppflags=
18596 for cf_add_cflags in -g
18598 case "$cf_fix_cppflags" in
18600 case "$cf_add_cflags" in
18601 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18602 case "$cf_add_cflags" in
18604 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18606 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18607 && test -z "${cf_tst_cflags}" \
18608 && cf_fix_cppflags=yes
18610 if test "$cf_fix_cppflags" = yes ; then
18612 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18613 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18616 elif test "${cf_tst_cflags}" = "\"'" ; then
18618 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18619 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18625 case "$CPPFLAGS" in
18629 case "$cf_add_cflags" in
18631 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18633 CPPFLAGS=`echo "$CPPFLAGS" | \
18634 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18635 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18640 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18641 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18648 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18649 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18659 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18661 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18662 && test -z "${cf_tst_cflags}" \
18663 && cf_fix_cppflags=no
18668 if test -n "$cf_new_cflags" ; then
18670 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18671 CFLAGS="${CFLAGS}$cf_new_cflags"
18675 if test -n "$cf_new_cppflags" ; then
18677 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18678 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18682 if test -n "$cf_new_extra_cppflags" ; then
18684 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18685 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18694 if test "$with_dbmalloc" = yes ; then
18695 echo "$as_me:18695: checking for dbmalloc.h" >&5
18696 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18697 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 cat >"conftest.$ac_ext" <<_ACEOF
18701 #line 18701 "configure"
18702 #include "confdefs.h"
18703 #include <dbmalloc.h>
18705 if { (eval echo "$as_me:18705: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18706 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18708 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:18711: \$? = $ac_status" >&5
18712 (exit "$ac_status"); } >/dev/null; then
18713 if test -s conftest.err; then
18714 ac_cpp_err=$ac_c_preproc_warn_flag
18721 if test -z "$ac_cpp_err"; then
18722 ac_cv_header_dbmalloc_h=yes
18724 echo "$as_me: failed program was:" >&5
18725 cat "conftest.$ac_ext" >&5
18726 ac_cv_header_dbmalloc_h=no
18728 rm -f conftest.err "conftest.$ac_ext"
18730 echo "$as_me:18730: result: $ac_cv_header_dbmalloc_h" >&5
18731 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18732 if test "$ac_cv_header_dbmalloc_h" = yes; then
18734 echo "$as_me:18734: checking for debug_malloc in -ldbmalloc" >&5
18735 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18736 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-ldbmalloc $LIBS"
18741 cat >"conftest.$ac_ext" <<_ACEOF
18742 #line 18742 "configure"
18743 #include "confdefs.h"
18745 /* Override any gcc2 internal prototype to avoid an error. */
18749 /* We use char because int might match the return type of a gcc2
18750 builtin and then its argument prototype would still apply. */
18751 char debug_malloc ();
18760 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18761 if { (eval echo "$as_me:18761: \"$ac_link\"") >&5
18762 (eval $ac_link) 2>&5
18764 echo "$as_me:18764: \$? = $ac_status" >&5
18765 (exit "$ac_status"); } &&
18766 { ac_try='test -s "conftest$ac_exeext"'
18767 { (eval echo "$as_me:18767: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:18770: \$? = $ac_status" >&5
18771 (exit "$ac_status"); }; }; then
18772 ac_cv_lib_dbmalloc_debug_malloc=yes
18774 echo "$as_me: failed program was:" >&5
18775 cat "conftest.$ac_ext" >&5
18776 ac_cv_lib_dbmalloc_debug_malloc=no
18778 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18779 LIBS=$ac_check_lib_save_LIBS
18781 echo "$as_me:18781: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18782 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18783 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18784 cat >>confdefs.h <<EOF
18785 #define HAVE_LIBDBMALLOC 1
18788 LIBS="-ldbmalloc $LIBS"
18796 echo "$as_me:18796: checking if you want to use valgrind for testing" >&5
18797 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18799 # Check whether --with-valgrind or --without-valgrind was given.
18800 if test "${with_valgrind+set}" = set; then
18801 withval="$with_valgrind"
18802 case "x$withval" in
18805 : "${with_cflags:=-g}"
18806 : "${enable_leaks:=no}"
18809 cat >>confdefs.h <<EOF
18810 #define USE_VALGRIND 1
18818 echo "$as_me:18818: result: ${with_valgrind:-no}" >&5
18819 echo "${ECHO_T}${with_valgrind:-no}" >&6
18821 case ".$with_cflags" in
18831 cf_new_extra_cppflags=
18833 for cf_add_cflags in -g
18835 case "$cf_fix_cppflags" in
18837 case "$cf_add_cflags" in
18838 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18839 case "$cf_add_cflags" in
18841 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18843 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18844 && test -z "${cf_tst_cflags}" \
18845 && cf_fix_cppflags=yes
18847 if test "$cf_fix_cppflags" = yes ; then
18849 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18850 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18853 elif test "${cf_tst_cflags}" = "\"'" ; then
18855 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18856 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18862 case "$CPPFLAGS" in
18866 case "$cf_add_cflags" in
18868 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18870 CPPFLAGS=`echo "$CPPFLAGS" | \
18871 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18872 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18877 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18878 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18885 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18886 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18893 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18894 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18896 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18898 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18899 && test -z "${cf_tst_cflags}" \
18900 && cf_fix_cppflags=no
18905 if test -n "$cf_new_cflags" ; then
18907 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18908 CFLAGS="${CFLAGS}$cf_new_cflags"
18912 if test -n "$cf_new_cppflags" ; then
18914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18915 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18919 if test -n "$cf_new_extra_cppflags" ; then
18921 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18922 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18931 echo "$as_me:18931: checking if you want to perform memory-leak testing" >&5
18932 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18934 # Check whether --enable-leaks or --disable-leaks was given.
18935 if test "${enable_leaks+set}" = set; then
18936 enableval="$enable_leaks"
18937 enable_leaks=$enableval
18941 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18942 echo "$as_me:18942: result: $with_no_leaks" >&5
18943 echo "${ECHO_T}$with_no_leaks" >&6
18945 if test "$enable_leaks" = no ; then
18947 cat >>confdefs.h <<\EOF
18951 cat >>confdefs.h <<\EOF
18952 #define YY_NO_LEAKS 1
18957 cat >>confdefs.h <<\EOF
18958 #define HAVE_NC_ALLOC_H 1
18961 ### use option --enable-expanded to generate certain macros as functions
18963 # Check whether --enable-expanded or --disable-expanded was given.
18964 if test "${enable_expanded+set}" = set; then
18965 enableval="$enable_expanded"
18966 test "x$enableval" = xyes &&
18967 cat >>confdefs.h <<\EOF
18968 #define NCURSES_EXPANDED 1
18973 ### use option --disable-macros to suppress macros in favor of functions
18975 # Check whether --enable-macros or --disable-macros was given.
18976 if test "${enable_macros+set}" = set; then
18977 enableval="$enable_macros"
18978 test "$enableval" = no &&
18979 cat >>confdefs.h <<\EOF
18980 #define NCURSES_NOMACROS 1
18985 # Normally we only add trace() to the debug-library. Allow this to be
18986 # extended to all models of the ncurses library:
18988 case "$CFLAGS $CPPFLAGS" in
18994 echo "$as_me:18994: checking whether to add trace feature to all models" >&5
18995 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18997 # Check whether --with-trace or --without-trace was given.
18998 if test "${with_trace+set}" = set; then
18999 withval="$with_trace"
19000 cf_with_trace=$withval
19002 cf_with_trace=$cf_all_traces
19004 echo "$as_me:19004: result: $cf_with_trace" >&5
19005 echo "${ECHO_T}$cf_with_trace" >&6
19007 if test "x$cf_with_trace" = xyes ; then
19014 cf_new_extra_cppflags=
19016 for cf_add_cflags in -DTRACE
19018 case "$cf_fix_cppflags" in
19020 case "$cf_add_cflags" in
19021 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19022 case "$cf_add_cflags" in
19024 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19026 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19027 && test -z "${cf_tst_cflags}" \
19028 && cf_fix_cppflags=yes
19030 if test "$cf_fix_cppflags" = yes ; then
19032 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19033 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19036 elif test "${cf_tst_cflags}" = "\"'" ; then
19038 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19039 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19045 case "$CPPFLAGS" in
19049 case "$cf_add_cflags" in
19051 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19053 CPPFLAGS=`echo "$CPPFLAGS" | \
19054 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19055 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19060 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19061 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19068 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19069 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19076 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19077 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19079 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19081 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19082 && test -z "${cf_tst_cflags}" \
19083 && cf_fix_cppflags=no
19088 if test -n "$cf_new_cflags" ; then
19090 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19091 CFLAGS="${CFLAGS}$cf_new_cflags"
19095 if test -n "$cf_new_cppflags" ; then
19097 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19098 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19102 if test -n "$cf_new_extra_cppflags" ; then
19104 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19105 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19109 cat >>confdefs.h <<\EOF
19110 #define HAVE__TRACEF 1
19118 echo "$as_me:19118: checking if we want to use GNAT projects" >&5
19119 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19121 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19122 if test "${enable_gnat_projects+set}" = set; then
19123 enableval="$enable_gnat_projects"
19124 test "$enableval" != no && enableval=yes
19125 if test "$enableval" != "yes" ; then
19126 enable_gnat_projects=no
19128 enable_gnat_projects=yes
19132 enable_gnat_projects=yes
19135 echo "$as_me:19135: result: $enable_gnat_projects" >&5
19136 echo "${ECHO_T}$enable_gnat_projects" >&6
19138 ### Checks for libraries.
19139 case "$cf_cv_system_name" in
19140 (*mingw32*|*mingw64*)
19141 # Note: WINVER may be a problem with Windows 10
19142 if test "x$with_exp_win32" = xyes ; then
19143 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19145 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19148 echo "$as_me:19148: checking if ssp library is needed" >&5
19149 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19150 if test "${cf_cv_need_libssp+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 cat >"conftest.$ac_ext" <<_ACEOF
19155 #line 19155 "configure"
19156 #include "confdefs.h"
19158 #include <sys/types.h>
19159 #include <dirent.h>
19165 DIR *dp = opendir(".");
19171 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19172 if { (eval echo "$as_me:19172: \"$ac_link\"") >&5
19173 (eval $ac_link) 2>&5
19175 echo "$as_me:19175: \$? = $ac_status" >&5
19176 (exit "$ac_status"); } &&
19177 { ac_try='test -s "conftest$ac_exeext"'
19178 { (eval echo "$as_me:19178: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:19181: \$? = $ac_status" >&5
19182 (exit "$ac_status"); }; }; then
19183 cf_cv_need_libssp=no
19185 echo "$as_me: failed program was:" >&5
19186 cat "conftest.$ac_ext" >&5
19188 cf_save_LIBS="$LIBS"
19190 cat >"conftest.$ac_ext" <<_ACEOF
19191 #line 19191 "configure"
19192 #include "confdefs.h"
19194 #include <sys/types.h>
19195 #include <dirent.h>
19201 DIR *dp = opendir(".");
19207 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19208 if { (eval echo "$as_me:19208: \"$ac_link\"") >&5
19209 (eval $ac_link) 2>&5
19211 echo "$as_me:19211: \$? = $ac_status" >&5
19212 (exit "$ac_status"); } &&
19213 { ac_try='test -s "conftest$ac_exeext"'
19214 { (eval echo "$as_me:19214: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:19217: \$? = $ac_status" >&5
19218 (exit "$ac_status"); }; }; then
19219 cf_cv_need_libssp=yes
19221 echo "$as_me: failed program was:" >&5
19222 cat "conftest.$ac_ext" >&5
19223 cf_cv_need_libssp=maybe
19225 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19226 LIBS="$cf_save_LIBS"
19229 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19231 echo "$as_me:19231: result: $cf_cv_need_libssp" >&5
19232 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19234 if test "x$cf_cv_need_libssp" = xyes
19237 cf_add_libs="$LIBS"
19240 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19241 # filter duplicates
19242 for cf_add_1lib in $cf_add_0lib; do
19243 for cf_add_2lib in $cf_add_libs; do
19244 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19249 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19251 LIBS="$cf_add_libs"
19260 echo "$as_me:19260: checking if -lm needed for math functions" >&5
19261 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19262 if test "${cf_cv_need_libm+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 cat >"conftest.$ac_ext" <<_ACEOF
19267 #line 19267 "configure"
19268 #include "confdefs.h"
19271 #include <stdlib.h>
19277 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19282 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19283 if { (eval echo "$as_me:19283: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>&5
19286 echo "$as_me:19286: \$? = $ac_status" >&5
19287 (exit "$ac_status"); } &&
19288 { ac_try='test -s "conftest$ac_exeext"'
19289 { (eval echo "$as_me:19289: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19292 echo "$as_me:19292: \$? = $ac_status" >&5
19293 (exit "$ac_status"); }; }; then
19296 echo "$as_me: failed program was:" >&5
19297 cat "conftest.$ac_ext" >&5
19298 cf_cv_need_libm=yes
19300 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19302 echo "$as_me:19302: result: $cf_cv_need_libm" >&5
19303 echo "${ECHO_T}$cf_cv_need_libm" >&6
19305 if test "$cf_cv_need_libm" = yes
19308 cf_save_LIBS="$LIBS"
19310 echo "$as_me:19310: checking if -lm is available for math functions" >&5
19311 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19312 if test "${cf_cv_have_libm+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 cat >"conftest.$ac_ext" <<_ACEOF
19317 #line 19317 "configure"
19318 #include "confdefs.h"
19321 #include <stdlib.h>
19327 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19332 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19333 if { (eval echo "$as_me:19333: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>&5
19336 echo "$as_me:19336: \$? = $ac_status" >&5
19337 (exit "$ac_status"); } &&
19338 { ac_try='test -s "conftest$ac_exeext"'
19339 { (eval echo "$as_me:19339: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:19342: \$? = $ac_status" >&5
19343 (exit "$ac_status"); }; }; then
19344 cf_cv_have_libm=yes
19346 echo "$as_me: failed program was:" >&5
19347 cat "conftest.$ac_ext" >&5
19350 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19352 echo "$as_me:19352: result: $cf_cv_have_libm" >&5
19353 echo "${ECHO_T}$cf_cv_have_libm" >&6
19354 LIBS="$cf_save_LIBS"
19356 if test "$cf_cv_have_libm" = yes
19361 cf_cv_have_libm=yes
19364 if test "$cf_cv_have_libm" = yes
19367 cat >>confdefs.h <<\EOF
19368 #define HAVE_MATH_FUNCS 1
19373 ### Checks for header files.
19374 echo "$as_me:19374: checking whether time.h and sys/time.h may both be included" >&5
19375 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19376 if test "${ac_cv_header_time+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 cat >"conftest.$ac_ext" <<_ACEOF
19380 #line 19380 "configure"
19381 #include "confdefs.h"
19382 #include <sys/types.h>
19383 #include <sys/time.h>
19389 if ((struct tm *) 0)
19395 rm -f "conftest.$ac_objext"
19396 if { (eval echo "$as_me:19396: \"$ac_compile\"") >&5
19397 (eval $ac_compile) 2>&5
19399 echo "$as_me:19399: \$? = $ac_status" >&5
19400 (exit "$ac_status"); } &&
19401 { ac_try='test -s "conftest.$ac_objext"'
19402 { (eval echo "$as_me:19402: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19405 echo "$as_me:19405: \$? = $ac_status" >&5
19406 (exit "$ac_status"); }; }; then
19407 ac_cv_header_time=yes
19409 echo "$as_me: failed program was:" >&5
19410 cat "conftest.$ac_ext" >&5
19411 ac_cv_header_time=no
19413 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19415 echo "$as_me:19415: result: $ac_cv_header_time" >&5
19416 echo "${ECHO_T}$ac_cv_header_time" >&6
19417 if test $ac_cv_header_time = yes; then
19419 cat >>confdefs.h <<\EOF
19420 #define TIME_WITH_SYS_TIME 1
19429 # -lsystre -ltre -lintl -liconv
19430 echo "$as_me:19430: checking for regcomp in -lsystre" >&5
19431 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19432 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 ac_check_lib_save_LIBS=$LIBS
19436 LIBS="-lsystre $LIBS"
19437 cat >"conftest.$ac_ext" <<_ACEOF
19438 #line 19438 "configure"
19439 #include "confdefs.h"
19441 /* Override any gcc2 internal prototype to avoid an error. */
19445 /* We use char because int might match the return type of a gcc2
19446 builtin and then its argument prototype would still apply. */
19456 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19457 if { (eval echo "$as_me:19457: \"$ac_link\"") >&5
19458 (eval $ac_link) 2>&5
19460 echo "$as_me:19460: \$? = $ac_status" >&5
19461 (exit "$ac_status"); } &&
19462 { ac_try='test -s "conftest$ac_exeext"'
19463 { (eval echo "$as_me:19463: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19466 echo "$as_me:19466: \$? = $ac_status" >&5
19467 (exit "$ac_status"); }; }; then
19468 ac_cv_lib_systre_regcomp=yes
19470 echo "$as_me: failed program was:" >&5
19471 cat "conftest.$ac_ext" >&5
19472 ac_cv_lib_systre_regcomp=no
19474 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19475 LIBS=$ac_check_lib_save_LIBS
19477 echo "$as_me:19477: result: $ac_cv_lib_systre_regcomp" >&5
19478 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19479 if test "$ac_cv_lib_systre_regcomp" = yes; then
19481 echo "$as_me:19481: checking for libiconv_open in -liconv" >&5
19482 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19483 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-liconv $LIBS"
19488 cat >"conftest.$ac_ext" <<_ACEOF
19489 #line 19489 "configure"
19490 #include "confdefs.h"
19492 /* Override any gcc2 internal prototype to avoid an error. */
19496 /* We use char because int might match the return type of a gcc2
19497 builtin and then its argument prototype would still apply. */
19498 char libiconv_open ();
19507 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19508 if { (eval echo "$as_me:19508: \"$ac_link\"") >&5
19509 (eval $ac_link) 2>&5
19511 echo "$as_me:19511: \$? = $ac_status" >&5
19512 (exit "$ac_status"); } &&
19513 { ac_try='test -s "conftest$ac_exeext"'
19514 { (eval echo "$as_me:19514: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:19517: \$? = $ac_status" >&5
19518 (exit "$ac_status"); }; }; then
19519 ac_cv_lib_iconv_libiconv_open=yes
19521 echo "$as_me: failed program was:" >&5
19522 cat "conftest.$ac_ext" >&5
19523 ac_cv_lib_iconv_libiconv_open=no
19525 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19526 LIBS=$ac_check_lib_save_LIBS
19528 echo "$as_me:19528: result: $ac_cv_lib_iconv_libiconv_open" >&5
19529 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19530 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19532 cf_add_libs="$LIBS"
19535 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19536 # filter duplicates
19537 for cf_add_1lib in $cf_add_0lib; do
19538 for cf_add_2lib in $cf_add_libs; do
19539 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19544 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19546 LIBS="$cf_add_libs"
19550 echo "$as_me:19550: checking for libintl_gettext in -lintl" >&5
19551 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19552 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-lintl $LIBS"
19557 cat >"conftest.$ac_ext" <<_ACEOF
19558 #line 19558 "configure"
19559 #include "confdefs.h"
19561 /* Override any gcc2 internal prototype to avoid an error. */
19565 /* We use char because int might match the return type of a gcc2
19566 builtin and then its argument prototype would still apply. */
19567 char libintl_gettext ();
19571 libintl_gettext ();
19576 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19577 if { (eval echo "$as_me:19577: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>&5
19580 echo "$as_me:19580: \$? = $ac_status" >&5
19581 (exit "$ac_status"); } &&
19582 { ac_try='test -s "conftest$ac_exeext"'
19583 { (eval echo "$as_me:19583: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:19586: \$? = $ac_status" >&5
19587 (exit "$ac_status"); }; }; then
19588 ac_cv_lib_intl_libintl_gettext=yes
19590 echo "$as_me: failed program was:" >&5
19591 cat "conftest.$ac_ext" >&5
19592 ac_cv_lib_intl_libintl_gettext=no
19594 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19595 LIBS=$ac_check_lib_save_LIBS
19597 echo "$as_me:19597: result: $ac_cv_lib_intl_libintl_gettext" >&5
19598 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19599 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19601 cf_add_libs="$LIBS"
19604 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19605 # filter duplicates
19606 for cf_add_1lib in $cf_add_0lib; do
19607 for cf_add_2lib in $cf_add_libs; do
19608 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19613 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19615 LIBS="$cf_add_libs"
19619 echo "$as_me:19619: checking for tre_regcomp in -ltre" >&5
19620 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19621 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 ac_check_lib_save_LIBS=$LIBS
19626 cat >"conftest.$ac_ext" <<_ACEOF
19627 #line 19627 "configure"
19628 #include "confdefs.h"
19630 /* Override any gcc2 internal prototype to avoid an error. */
19634 /* We use char because int might match the return type of a gcc2
19635 builtin and then its argument prototype would still apply. */
19636 char tre_regcomp ();
19645 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19646 if { (eval echo "$as_me:19646: \"$ac_link\"") >&5
19647 (eval $ac_link) 2>&5
19649 echo "$as_me:19649: \$? = $ac_status" >&5
19650 (exit "$ac_status"); } &&
19651 { ac_try='test -s "conftest$ac_exeext"'
19652 { (eval echo "$as_me:19652: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:19655: \$? = $ac_status" >&5
19656 (exit "$ac_status"); }; }; then
19657 ac_cv_lib_tre_tre_regcomp=yes
19659 echo "$as_me: failed program was:" >&5
19660 cat "conftest.$ac_ext" >&5
19661 ac_cv_lib_tre_tre_regcomp=no
19663 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19664 LIBS=$ac_check_lib_save_LIBS
19666 echo "$as_me:19666: result: $ac_cv_lib_tre_tre_regcomp" >&5
19667 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19668 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19670 cf_add_libs="$LIBS"
19673 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19674 # filter duplicates
19675 for cf_add_1lib in $cf_add_0lib; do
19676 for cf_add_2lib in $cf_add_libs; do
19677 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19682 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19684 LIBS="$cf_add_libs"
19688 cf_add_libs="$LIBS"
19691 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19692 # filter duplicates
19693 for cf_add_1lib in $cf_add_0lib; do
19694 for cf_add_2lib in $cf_add_libs; do
19695 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19700 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19702 LIBS="$cf_add_libs"
19704 cf_regex_func=regcomp
19708 echo "$as_me:19708: checking for regcomp in -lgnurx" >&5
19709 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19710 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 ac_check_lib_save_LIBS=$LIBS
19714 LIBS="-lgnurx $LIBS"
19715 cat >"conftest.$ac_ext" <<_ACEOF
19716 #line 19716 "configure"
19717 #include "confdefs.h"
19719 /* Override any gcc2 internal prototype to avoid an error. */
19723 /* We use char because int might match the return type of a gcc2
19724 builtin and then its argument prototype would still apply. */
19734 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19735 if { (eval echo "$as_me:19735: \"$ac_link\"") >&5
19736 (eval $ac_link) 2>&5
19738 echo "$as_me:19738: \$? = $ac_status" >&5
19739 (exit "$ac_status"); } &&
19740 { ac_try='test -s "conftest$ac_exeext"'
19741 { (eval echo "$as_me:19741: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19744 echo "$as_me:19744: \$? = $ac_status" >&5
19745 (exit "$ac_status"); }; }; then
19746 ac_cv_lib_gnurx_regcomp=yes
19748 echo "$as_me: failed program was:" >&5
19749 cat "conftest.$ac_ext" >&5
19750 ac_cv_lib_gnurx_regcomp=no
19752 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19753 LIBS=$ac_check_lib_save_LIBS
19755 echo "$as_me:19755: result: $ac_cv_lib_gnurx_regcomp" >&5
19756 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19757 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19759 cf_add_libs="$LIBS"
19762 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19763 # filter duplicates
19764 for cf_add_1lib in $cf_add_0lib; do
19765 for cf_add_2lib in $cf_add_libs; do
19766 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19771 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19773 LIBS="$cf_add_libs"
19775 cf_regex_func=regcomp
19782 cf_regex_libs="regex re"
19783 echo "$as_me:19783: checking for regcomp" >&5
19784 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19785 if test "${ac_cv_func_regcomp+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 cat >"conftest.$ac_ext" <<_ACEOF
19789 #line 19789 "configure"
19790 #include "confdefs.h"
19791 #define regcomp autoconf_temporary
19792 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19799 /* We use char because int might match the return type of a gcc2
19800 builtin and then its argument prototype would still apply. */
19801 char regcomp (void);
19807 /* The GNU C library defines stubs for functions which it implements
19808 to always fail with ENOSYS. Some functions are actually named
19809 something starting with __ and the normal name is an alias. */
19810 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19811 #error found stub for regcomp
19819 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19820 if { (eval echo "$as_me:19820: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19823 echo "$as_me:19823: \$? = $ac_status" >&5
19824 (exit "$ac_status"); } &&
19825 { ac_try='test -s "conftest$ac_exeext"'
19826 { (eval echo "$as_me:19826: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:19829: \$? = $ac_status" >&5
19830 (exit "$ac_status"); }; }; then
19831 ac_cv_func_regcomp=yes
19833 echo "$as_me: failed program was:" >&5
19834 cat "conftest.$ac_ext" >&5
19835 ac_cv_func_regcomp=no
19837 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19839 echo "$as_me:19839: result: $ac_cv_func_regcomp" >&5
19840 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19841 if test "$ac_cv_func_regcomp" = yes; then
19842 cf_regex_func=regcomp
19845 for cf_regex_lib in $cf_regex_libs
19847 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19848 echo "$as_me:19848: checking for regcomp in -l$cf_regex_lib" >&5
19849 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 ac_check_lib_save_LIBS=$LIBS
19854 LIBS="-l$cf_regex_lib $LIBS"
19855 cat >"conftest.$ac_ext" <<_ACEOF
19856 #line 19856 "configure"
19857 #include "confdefs.h"
19859 /* Override any gcc2 internal prototype to avoid an error. */
19863 /* We use char because int might match the return type of a gcc2
19864 builtin and then its argument prototype would still apply. */
19874 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19875 if { (eval echo "$as_me:19875: \"$ac_link\"") >&5
19876 (eval $ac_link) 2>&5
19878 echo "$as_me:19878: \$? = $ac_status" >&5
19879 (exit "$ac_status"); } &&
19880 { ac_try='test -s "conftest$ac_exeext"'
19881 { (eval echo "$as_me:19881: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19884 echo "$as_me:19884: \$? = $ac_status" >&5
19885 (exit "$ac_status"); }; }; then
19886 eval "$as_ac_Lib=yes"
19888 echo "$as_me: failed program was:" >&5
19889 cat "conftest.$ac_ext" >&5
19890 eval "$as_ac_Lib=no"
19892 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19893 LIBS=$ac_check_lib_save_LIBS
19895 echo "$as_me:19895: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19896 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19897 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19899 cf_add_libs="$LIBS"
19902 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19903 # filter duplicates
19904 for cf_add_1lib in $cf_add_0lib; do
19905 for cf_add_2lib in $cf_add_libs; do
19906 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19911 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19913 LIBS="$cf_add_libs"
19915 cf_regex_func=regcomp
19926 if test "$cf_regex_func" = no ; then
19927 echo "$as_me:19927: checking for compile" >&5
19928 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19929 if test "${ac_cv_func_compile+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 cat >"conftest.$ac_ext" <<_ACEOF
19933 #line 19933 "configure"
19934 #include "confdefs.h"
19935 #define compile autoconf_temporary
19936 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19943 /* We use char because int might match the return type of a gcc2
19944 builtin and then its argument prototype would still apply. */
19945 char compile (void);
19951 /* The GNU C library defines stubs for functions which it implements
19952 to always fail with ENOSYS. Some functions are actually named
19953 something starting with __ and the normal name is an alias. */
19954 #if defined (__stub_compile) || defined (__stub___compile)
19955 #error found stub for compile
19963 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19964 if { (eval echo "$as_me:19964: \"$ac_link\"") >&5
19965 (eval $ac_link) 2>&5
19967 echo "$as_me:19967: \$? = $ac_status" >&5
19968 (exit "$ac_status"); } &&
19969 { ac_try='test -s "conftest$ac_exeext"'
19970 { (eval echo "$as_me:19970: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:19973: \$? = $ac_status" >&5
19974 (exit "$ac_status"); }; }; then
19975 ac_cv_func_compile=yes
19977 echo "$as_me: failed program was:" >&5
19978 cat "conftest.$ac_ext" >&5
19979 ac_cv_func_compile=no
19981 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19983 echo "$as_me:19983: result: $ac_cv_func_compile" >&5
19984 echo "${ECHO_T}$ac_cv_func_compile" >&6
19985 if test "$ac_cv_func_compile" = yes; then
19986 cf_regex_func=compile
19989 echo "$as_me:19989: checking for compile in -lgen" >&5
19990 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19991 if test "${ac_cv_lib_gen_compile+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 ac_check_lib_save_LIBS=$LIBS
19996 cat >"conftest.$ac_ext" <<_ACEOF
19997 #line 19997 "configure"
19998 #include "confdefs.h"
20000 /* Override any gcc2 internal prototype to avoid an error. */
20004 /* We use char because int might match the return type of a gcc2
20005 builtin and then its argument prototype would still apply. */
20015 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20016 if { (eval echo "$as_me:20016: \"$ac_link\"") >&5
20017 (eval $ac_link) 2>&5
20019 echo "$as_me:20019: \$? = $ac_status" >&5
20020 (exit "$ac_status"); } &&
20021 { ac_try='test -s "conftest$ac_exeext"'
20022 { (eval echo "$as_me:20022: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:20025: \$? = $ac_status" >&5
20026 (exit "$ac_status"); }; }; then
20027 ac_cv_lib_gen_compile=yes
20029 echo "$as_me: failed program was:" >&5
20030 cat "conftest.$ac_ext" >&5
20031 ac_cv_lib_gen_compile=no
20033 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20034 LIBS=$ac_check_lib_save_LIBS
20036 echo "$as_me:20036: result: $ac_cv_lib_gen_compile" >&5
20037 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
20038 if test "$ac_cv_lib_gen_compile" = yes; then
20040 cf_add_libs="$LIBS"
20043 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20044 # filter duplicates
20045 for cf_add_1lib in $cf_add_0lib; do
20046 for cf_add_2lib in $cf_add_libs; do
20047 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20052 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20054 LIBS="$cf_add_libs"
20056 cf_regex_func=compile
20063 if test "$cf_regex_func" = no ; then
20064 { echo "$as_me:20064: WARNING: cannot find regular expression library" >&5
20065 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
20068 echo "$as_me:20068: checking for regular-expression headers" >&5
20069 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
20070 if test "${cf_cv_regex_hdrs+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 cf_cv_regex_hdrs=no
20075 case "$cf_regex_func" in
20077 for cf_regex_hdr in regexp.h regexpr.h
20079 cat >"conftest.$ac_ext" <<_ACEOF
20080 #line 20080 "configure"
20081 #include "confdefs.h"
20082 #include <$cf_regex_hdr>
20087 char *p = compile("", "", "", 0);
20088 int x = step("", "");
20096 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20097 if { (eval echo "$as_me:20097: \"$ac_link\"") >&5
20098 (eval $ac_link) 2>&5
20100 echo "$as_me:20100: \$? = $ac_status" >&5
20101 (exit "$ac_status"); } &&
20102 { ac_try='test -s "conftest$ac_exeext"'
20103 { (eval echo "$as_me:20103: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:20106: \$? = $ac_status" >&5
20107 (exit "$ac_status"); }; }; then
20109 cf_cv_regex_hdrs=$cf_regex_hdr
20113 echo "$as_me: failed program was:" >&5
20114 cat "conftest.$ac_ext" >&5
20116 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20120 for cf_regex_hdr in regex.h
20122 cat >"conftest.$ac_ext" <<_ACEOF
20123 #line 20123 "configure"
20124 #include "confdefs.h"
20125 #include <sys/types.h>
20126 #include <$cf_regex_hdr>
20132 int x = regcomp(p, "", 0);
20133 int y = regexec(p, "", 0, 0, 0);
20142 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20143 if { (eval echo "$as_me:20143: \"$ac_link\"") >&5
20144 (eval $ac_link) 2>&5
20146 echo "$as_me:20146: \$? = $ac_status" >&5
20147 (exit "$ac_status"); } &&
20148 { ac_try='test -s "conftest$ac_exeext"'
20149 { (eval echo "$as_me:20149: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:20152: \$? = $ac_status" >&5
20153 (exit "$ac_status"); }; }; then
20155 cf_cv_regex_hdrs=$cf_regex_hdr
20159 echo "$as_me: failed program was:" >&5
20160 cat "conftest.$ac_ext" >&5
20162 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20168 echo "$as_me:20168: result: $cf_cv_regex_hdrs" >&5
20169 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20171 case "$cf_cv_regex_hdrs" in
20172 (no) { echo "$as_me:20172: WARNING: no regular expression header found" >&5
20173 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20175 cat >>confdefs.h <<\EOF
20176 #define HAVE_REGEX_H_FUNCS 1
20180 cat >>confdefs.h <<\EOF
20181 #define HAVE_REGEXP_H_FUNCS 1
20185 cat >>confdefs.h <<\EOF
20186 #define HAVE_REGEXPR_H_FUNCS 1
20209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20210 echo "$as_me:20210: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 cat >"conftest.$ac_ext" <<_ACEOF
20216 #line 20216 "configure"
20217 #include "confdefs.h"
20218 #include <$ac_header>
20220 if { (eval echo "$as_me:20220: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20221 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20223 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:20226: \$? = $ac_status" >&5
20227 (exit "$ac_status"); } >/dev/null; then
20228 if test -s conftest.err; then
20229 ac_cpp_err=$ac_c_preproc_warn_flag
20236 if test -z "$ac_cpp_err"; then
20237 eval "$as_ac_Header=yes"
20239 echo "$as_me: failed program was:" >&5
20240 cat "conftest.$ac_ext" >&5
20241 eval "$as_ac_Header=no"
20243 rm -f conftest.err "conftest.$ac_ext"
20245 echo "$as_me:20245: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20246 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20247 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20248 cat >>confdefs.h <<EOF
20249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20255 for ac_header in unistd.h getopt.h
20257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20258 echo "$as_me:20258: checking for $ac_header" >&5
20259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 cat >"conftest.$ac_ext" <<_ACEOF
20264 #line 20264 "configure"
20265 #include "confdefs.h"
20266 #include <$ac_header>
20268 if { (eval echo "$as_me:20268: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20269 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20271 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:20274: \$? = $ac_status" >&5
20275 (exit "$ac_status"); } >/dev/null; then
20276 if test -s conftest.err; then
20277 ac_cpp_err=$ac_c_preproc_warn_flag
20284 if test -z "$ac_cpp_err"; then
20285 eval "$as_ac_Header=yes"
20287 echo "$as_me: failed program was:" >&5
20288 cat "conftest.$ac_ext" >&5
20289 eval "$as_ac_Header=no"
20291 rm -f conftest.err "conftest.$ac_ext"
20293 echo "$as_me:20293: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20294 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20295 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20296 cat >>confdefs.h <<EOF
20297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20303 echo "$as_me:20303: checking for header declaring getopt variables" >&5
20304 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20305 if test "${cf_cv_getopt_header+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 cf_cv_getopt_header=none
20310 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20312 cat >"conftest.$ac_ext" <<_ACEOF
20313 #line 20313 "configure"
20314 #include "confdefs.h"
20316 #include <$cf_header>
20320 int x = optind; char *y = optarg; (void)x; (void)y
20325 rm -f "conftest.$ac_objext"
20326 if { (eval echo "$as_me:20326: \"$ac_compile\"") >&5
20327 (eval $ac_compile) 2>&5
20329 echo "$as_me:20329: \$? = $ac_status" >&5
20330 (exit "$ac_status"); } &&
20331 { ac_try='test -s "conftest.$ac_objext"'
20332 { (eval echo "$as_me:20332: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:20335: \$? = $ac_status" >&5
20336 (exit "$ac_status"); }; }; then
20337 cf_cv_getopt_header=$cf_header
20340 echo "$as_me: failed program was:" >&5
20341 cat "conftest.$ac_ext" >&5
20343 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20347 echo "$as_me:20347: result: $cf_cv_getopt_header" >&5
20348 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20349 if test "$cf_cv_getopt_header" != none ; then
20351 cat >>confdefs.h <<\EOF
20352 #define HAVE_GETOPT_HEADER 1
20356 if test "$cf_cv_getopt_header" = getopt.h ; then
20358 cat >>confdefs.h <<\EOF
20359 #define NEED_GETOPT_H 1
20364 echo "$as_me:20364: checking if external environ is declared" >&5
20365 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20366 if test "${cf_cv_dcl_environ+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 cat >"conftest.$ac_ext" <<_ACEOF
20371 #line 20371 "configure"
20372 #include "confdefs.h"
20374 $ac_includes_default
20378 void* x = (void*) environ; (void)x
20383 rm -f "conftest.$ac_objext"
20384 if { (eval echo "$as_me:20384: \"$ac_compile\"") >&5
20385 (eval $ac_compile) 2>&5
20387 echo "$as_me:20387: \$? = $ac_status" >&5
20388 (exit "$ac_status"); } &&
20389 { ac_try='test -s "conftest.$ac_objext"'
20390 { (eval echo "$as_me:20390: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:20393: \$? = $ac_status" >&5
20394 (exit "$ac_status"); }; }; then
20395 cf_cv_dcl_environ=yes
20397 echo "$as_me: failed program was:" >&5
20398 cat "conftest.$ac_ext" >&5
20399 cf_cv_dcl_environ=no
20401 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20404 echo "$as_me:20404: result: $cf_cv_dcl_environ" >&5
20405 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20407 if test "$cf_cv_dcl_environ" = no ; then
20409 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20411 cat >>confdefs.h <<EOF
20412 #define $cf_result 1
20417 # It's possible (for near-UNIX clones) that the data doesn't exist
20419 echo "$as_me:20419: checking if external environ exists" >&5
20420 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20421 if test "${cf_cv_have_environ+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 cat >"conftest.$ac_ext" <<_ACEOF
20426 #line 20426 "configure"
20427 #include "confdefs.h"
20430 extern int environ;
20440 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20441 if { (eval echo "$as_me:20441: \"$ac_link\"") >&5
20442 (eval $ac_link) 2>&5
20444 echo "$as_me:20444: \$? = $ac_status" >&5
20445 (exit "$ac_status"); } &&
20446 { ac_try='test -s "conftest$ac_exeext"'
20447 { (eval echo "$as_me:20447: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20450 echo "$as_me:20450: \$? = $ac_status" >&5
20451 (exit "$ac_status"); }; }; then
20452 cf_cv_have_environ=yes
20454 echo "$as_me: failed program was:" >&5
20455 cat "conftest.$ac_ext" >&5
20456 cf_cv_have_environ=no
20458 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20461 echo "$as_me:20461: result: $cf_cv_have_environ" >&5
20462 echo "${ECHO_T}$cf_cv_have_environ" >&6
20464 if test "$cf_cv_have_environ" = yes ; then
20466 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20468 cat >>confdefs.h <<EOF
20469 #define $cf_result 1
20474 echo "$as_me:20474: checking for getenv" >&5
20475 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20476 if test "${ac_cv_func_getenv+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 cat >"conftest.$ac_ext" <<_ACEOF
20480 #line 20480 "configure"
20481 #include "confdefs.h"
20482 #define getenv autoconf_temporary
20483 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20490 /* We use char because int might match the return type of a gcc2
20491 builtin and then its argument prototype would still apply. */
20492 char getenv (void);
20498 /* The GNU C library defines stubs for functions which it implements
20499 to always fail with ENOSYS. Some functions are actually named
20500 something starting with __ and the normal name is an alias. */
20501 #if defined (__stub_getenv) || defined (__stub___getenv)
20502 #error found stub for getenv
20510 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20511 if { (eval echo "$as_me:20511: \"$ac_link\"") >&5
20512 (eval $ac_link) 2>&5
20514 echo "$as_me:20514: \$? = $ac_status" >&5
20515 (exit "$ac_status"); } &&
20516 { ac_try='test -s "conftest$ac_exeext"'
20517 { (eval echo "$as_me:20517: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20520 echo "$as_me:20520: \$? = $ac_status" >&5
20521 (exit "$ac_status"); }; }; then
20522 ac_cv_func_getenv=yes
20524 echo "$as_me: failed program was:" >&5
20525 cat "conftest.$ac_ext" >&5
20526 ac_cv_func_getenv=no
20528 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20530 echo "$as_me:20530: result: $ac_cv_func_getenv" >&5
20531 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20533 for ac_func in putenv setenv strdup
20535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20536 echo "$as_me:20536: checking for $ac_func" >&5
20537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20538 if eval "test \"\${$as_ac_var+set}\" = set"; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 cat >"conftest.$ac_ext" <<_ACEOF
20542 #line 20542 "configure"
20543 #include "confdefs.h"
20544 #define $ac_func autoconf_temporary
20545 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20552 /* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20554 char $ac_func (void);
20560 /* The GNU C library defines stubs for functions which it implements
20561 to always fail with ENOSYS. Some functions are actually named
20562 something starting with __ and the normal name is an alias. */
20563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20564 #error found stub for $ac_func
20567 return $ac_func ();
20572 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20573 if { (eval echo "$as_me:20573: \"$ac_link\"") >&5
20574 (eval $ac_link) 2>&5
20576 echo "$as_me:20576: \$? = $ac_status" >&5
20577 (exit "$ac_status"); } &&
20578 { ac_try='test -s "conftest$ac_exeext"'
20579 { (eval echo "$as_me:20579: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:20582: \$? = $ac_status" >&5
20583 (exit "$ac_status"); }; }; then
20584 eval "$as_ac_var=yes"
20586 echo "$as_me: failed program was:" >&5
20587 cat "conftest.$ac_ext" >&5
20588 eval "$as_ac_var=no"
20590 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20592 echo "$as_me:20592: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20593 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20594 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20595 cat >>confdefs.h <<EOF
20596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20602 echo "$as_me:20602: checking if getenv returns consistent values" >&5
20603 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20604 if test "${cf_cv_consistent_getenv+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 if test "$cross_compiling" = yes; then
20609 cf_cv_consistent_getenv=unknown
20611 cat >"conftest.$ac_ext" <<_ACEOF
20612 #line 20612 "configure"
20613 #include "confdefs.h"
20615 $ac_includes_default
20617 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20618 extern char **environ; /* POSIX, but some systems are not... */
20621 #if defined(HAVE_STRDUP)
20622 #define str_alloc(s) strdup(s)
20624 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20627 static void set_value(const char *name, const char *value)
20629 #if defined(HAVE_SETENV)
20630 setenv(name, value, 1);
20631 #elif defined(HAVE_PUTENV)
20633 sprintf(buffer, "%s=%s", name, value);
20634 putenv(str_alloc(buffer));
20636 #error neither putenv/setenv found
20642 size_t numenv, limit, j;
20647 for (numenv = 0; environ[numenv]; ++numenv) ;
20648 limit = numenv + 10;
20649 mynames = (char **) calloc(limit + 1, sizeof(char *));
20650 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20651 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20652 #if defined(HAVE_ENVIRON)
20653 for (j = 0; environ[j]; ++j) {
20654 mynames[j] = str_alloc(environ[j]);
20655 equals = strchr(mynames[j], '=');
20658 myvalues[j] = str_alloc(equals);
20660 myvalues[j] = str_alloc("");
20664 for (j = numenv; j < limit; ++j) {
20672 sprintf(name, "TERM%lu", (unsigned long) k);
20673 for (jk = 0; jk < j; ++jk) {
20674 if (!strcmp(name, mynames[jk])) {
20681 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20682 set_value(name, value);
20683 mynames[j] = str_alloc(name);
20684 myvalues[j] = str_alloc(value);
20686 for (pass = 0; pass < 3; ++pass) {
20687 for (j = 0; j < limit; ++j) {
20688 char *value = getenv(mynames[j]);
20691 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20692 ${cf_cv_main_return:-return}(1);
20693 } else if (value != mypointer[j]) {
20694 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20695 ${cf_cv_main_return:-return}(1);
20696 } else if (strcmp(value, myvalues[j])) {
20697 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20698 ${cf_cv_main_return:-return}(1);
20702 mypointer[j] = value;
20703 for (k = 0; k < j; ++k) {
20704 if (mypointer[j] == mypointer[k]) {
20705 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20706 ${cf_cv_main_return:-return}(1);
20712 ${cf_cv_main_return:-return}(0);
20716 rm -f "conftest$ac_exeext"
20717 if { (eval echo "$as_me:20717: \"$ac_link\"") >&5
20718 (eval $ac_link) 2>&5
20720 echo "$as_me:20720: \$? = $ac_status" >&5
20721 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20722 { (eval echo "$as_me:20722: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:20725: \$? = $ac_status" >&5
20726 (exit "$ac_status"); }; }; then
20727 cf_cv_consistent_getenv=yes
20729 echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 cat "conftest.$ac_ext" >&5
20732 cf_cv_consistent_getenv=no
20734 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20738 echo "$as_me:20738: result: $cf_cv_consistent_getenv" >&5
20739 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20741 if test "x$cf_cv_consistent_getenv" = xno
20744 cat >>confdefs.h <<\EOF
20745 #define HAVE_CONSISTENT_GETENV 1
20750 if test "x$cf_cv_consistent_getenv" = xno && \
20751 test "x$cf_with_trace" = xyes
20753 { echo "$as_me:20753: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20754 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20757 echo "$as_me:20757: checking if sys/time.h works with sys/select.h" >&5
20758 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20759 if test "${cf_cv_sys_time_select+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 cat >"conftest.$ac_ext" <<_ACEOF
20764 #line 20764 "configure"
20765 #include "confdefs.h"
20767 #include <sys/types.h>
20768 #ifdef HAVE_SYS_TIME_H
20769 #include <sys/time.h>
20771 #ifdef HAVE_SYS_SELECT_H
20772 #include <sys/select.h>
20783 rm -f "conftest.$ac_objext"
20784 if { (eval echo "$as_me:20784: \"$ac_compile\"") >&5
20785 (eval $ac_compile) 2>&5
20787 echo "$as_me:20787: \$? = $ac_status" >&5
20788 (exit "$ac_status"); } &&
20789 { ac_try='test -s "conftest.$ac_objext"'
20790 { (eval echo "$as_me:20790: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20793 echo "$as_me:20793: \$? = $ac_status" >&5
20794 (exit "$ac_status"); }; }; then
20795 cf_cv_sys_time_select=yes
20797 echo "$as_me: failed program was:" >&5
20798 cat "conftest.$ac_ext" >&5
20799 cf_cv_sys_time_select=no
20801 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20805 echo "$as_me:20805: result: $cf_cv_sys_time_select" >&5
20806 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20807 test "$cf_cv_sys_time_select" = yes &&
20808 cat >>confdefs.h <<\EOF
20809 #define HAVE_SYS_TIME_SELECT 1
20812 ### checks for compiler characteristics
20814 ac_cpp='$CPP $CPPFLAGS'
20815 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20816 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20818 ac_main_return="return"
20820 echo "$as_me:20820: checking for an ANSI C-conforming const" >&5
20821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20822 if test "${ac_cv_c_const+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 cat >"conftest.$ac_ext" <<_ACEOF
20826 #line 20826 "configure"
20827 #include "confdefs.h"
20832 /* FIXME: Include the comments suggested by Paul. */
20833 #ifndef __cplusplus
20834 /* Ultrix mips cc rejects this. */
20835 typedef int charset[2];
20837 /* SunOS 4.1.1 cc rejects this. */
20838 char const *const *ccp;
20840 /* NEC SVR4.0.2 mips cc rejects this. */
20841 struct point {int x, y;};
20842 static struct point const zero = {0,0};
20843 /* AIX XL C 1.02.0.0 rejects this.
20844 It does not let you subtract one const X* pointer from another in
20845 an arm of an if-expression whose if-part is not a constant
20847 const char *g = "string";
20848 ccp = &g + (g ? g-g : 0);
20849 /* HPUX 7.0 cc rejects these. */
20852 ccp = (char const *const *) p;
20853 { /* SCO 3.2v4 cc rejects this. */
20855 char const *s = 0 ? (char *) 0 : (char const *) 0;
20859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20860 int x[] = {25, 17};
20861 const int *foo = &x[0];
20864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20865 typedef const int *iptr;
20869 { /* AIX XL C 1.02.0.0 rejects this saying
20870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20871 struct s { int j; const int *ap[3]; };
20872 struct s *b; b->j = 5;
20874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20875 const int foo = 10;
20883 rm -f "conftest.$ac_objext"
20884 if { (eval echo "$as_me:20884: \"$ac_compile\"") >&5
20885 (eval $ac_compile) 2>&5
20887 echo "$as_me:20887: \$? = $ac_status" >&5
20888 (exit "$ac_status"); } &&
20889 { ac_try='test -s "conftest.$ac_objext"'
20890 { (eval echo "$as_me:20890: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20893 echo "$as_me:20893: \$? = $ac_status" >&5
20894 (exit "$ac_status"); }; }; then
20897 echo "$as_me: failed program was:" >&5
20898 cat "conftest.$ac_ext" >&5
20901 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20903 echo "$as_me:20903: result: $ac_cv_c_const" >&5
20904 echo "${ECHO_T}$ac_cv_c_const" >&6
20905 if test $ac_cv_c_const = no; then
20907 cat >>confdefs.h <<\EOF
20913 echo "$as_me:20913: checking for inline" >&5
20914 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20915 if test "${ac_cv_c_inline+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 for ac_kw in inline __inline__ __inline; do
20920 cat >"conftest.$ac_ext" <<_ACEOF
20921 #line 20921 "configure"
20922 #include "confdefs.h"
20923 #ifndef __cplusplus
20924 static $ac_kw int static_foo () {return 0; }
20925 $ac_kw int foo () {return 0; }
20929 rm -f "conftest.$ac_objext"
20930 if { (eval echo "$as_me:20930: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>&5
20933 echo "$as_me:20933: \$? = $ac_status" >&5
20934 (exit "$ac_status"); } &&
20935 { ac_try='test -s "conftest.$ac_objext"'
20936 { (eval echo "$as_me:20936: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20939 echo "$as_me:20939: \$? = $ac_status" >&5
20940 (exit "$ac_status"); }; }; then
20941 ac_cv_c_inline=$ac_kw; break
20943 echo "$as_me: failed program was:" >&5
20944 cat "conftest.$ac_ext" >&5
20946 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20950 echo "$as_me:20950: result: $ac_cv_c_inline" >&5
20951 echo "${ECHO_T}$ac_cv_c_inline" >&6
20952 case $ac_cv_c_inline in
20955 cat >>confdefs.h <<\EOF
20959 *) cat >>confdefs.h <<EOF
20960 #define inline $ac_cv_c_inline
20966 if test "$ac_cv_c_inline" != no ; then
20967 NCURSES_INLINE=inline
20968 if test "$INTEL_COMPILER" = yes
20971 elif test "$CLANG_COMPILER" = yes
20974 elif test "$GCC" = yes
20976 echo "$as_me:20976: checking if $CC supports options to tune inlining" >&5
20977 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20978 if test "${cf_cv_gcc_inline+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 cf_save_CFLAGS=$CFLAGS
20983 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20984 cat >"conftest.$ac_ext" <<_ACEOF
20985 #line 20985 "configure"
20986 #include "confdefs.h"
20987 inline int foo(void) { return 1; }
20991 ${cf_cv_main_return:-return} foo()
20996 rm -f "conftest.$ac_objext"
20997 if { (eval echo "$as_me:20997: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>&5
21000 echo "$as_me:21000: \$? = $ac_status" >&5
21001 (exit "$ac_status"); } &&
21002 { ac_try='test -s "conftest.$ac_objext"'
21003 { (eval echo "$as_me:21003: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:21006: \$? = $ac_status" >&5
21007 (exit "$ac_status"); }; }; then
21008 cf_cv_gcc_inline=yes
21010 echo "$as_me: failed program was:" >&5
21011 cat "conftest.$ac_ext" >&5
21012 cf_cv_gcc_inline=no
21014 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21015 CFLAGS=$cf_save_CFLAGS
21018 echo "$as_me:21018: result: $cf_cv_gcc_inline" >&5
21019 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
21020 if test "$cf_cv_gcc_inline" = yes ; then
21025 cf_new_extra_cppflags=
21027 for cf_add_cflags in --param max-inline-insns-single=1200
21029 case "$cf_fix_cppflags" in
21031 case "$cf_add_cflags" in
21032 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21033 case "$cf_add_cflags" in
21035 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21037 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21038 && test -z "${cf_tst_cflags}" \
21039 && cf_fix_cppflags=yes
21041 if test "$cf_fix_cppflags" = yes ; then
21043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21047 elif test "${cf_tst_cflags}" = "\"'" ; then
21049 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21050 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21056 case "$CPPFLAGS" in
21060 case "$cf_add_cflags" in
21062 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21064 CPPFLAGS=`echo "$CPPFLAGS" | \
21065 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21066 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21071 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21072 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21079 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21080 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21087 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21088 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21090 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21093 && test -z "${cf_tst_cflags}" \
21094 && cf_fix_cppflags=no
21099 if test -n "$cf_new_cflags" ; then
21101 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21102 CFLAGS="${CFLAGS}$cf_new_cflags"
21106 if test -n "$cf_new_cppflags" ; then
21108 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21109 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21113 if test -n "$cf_new_extra_cppflags" ; then
21115 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21116 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21124 echo "$as_me:21124: checking for signal global datatype" >&5
21125 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21126 if test "${cf_cv_sig_atomic_t+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 "volatile sig_atomic_t" \
21135 cat >"conftest.$ac_ext" <<_ACEOF
21136 #line 21136 "configure"
21137 #include "confdefs.h"
21139 #include <sys/types.h>
21140 #include <signal.h>
21145 static void handler(int sig)
21153 signal(SIGINT, handler);
21159 rm -f "conftest.$ac_objext"
21160 if { (eval echo "$as_me:21160: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>&5
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit "$ac_status"); } &&
21165 { ac_try='test -s "conftest.$ac_objext"'
21166 { (eval echo "$as_me:21166: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:21169: \$? = $ac_status" >&5
21170 (exit "$ac_status"); }; }; then
21171 cf_cv_sig_atomic_t=$cf_type
21173 echo "$as_me: failed program was:" >&5
21174 cat "conftest.$ac_ext" >&5
21175 cf_cv_sig_atomic_t=no
21177 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21178 test "$cf_cv_sig_atomic_t" != no && break
21183 echo "$as_me:21183: result: $cf_cv_sig_atomic_t" >&5
21184 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21185 test "$cf_cv_sig_atomic_t" != no &&
21186 cat >>confdefs.h <<EOF
21187 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21190 if test "$NCURSES_CHTYPE" = auto ; then
21192 echo "$as_me:21192: checking for type of chtype" >&5
21193 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21194 if test "${cf_cv_typeof_chtype+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 if test "$cross_compiling" = yes; then
21199 cf_cv_typeof_chtype=long
21201 cat >"conftest.$ac_ext" <<_ACEOF
21202 #line 21202 "configure"
21203 #include "confdefs.h"
21205 $ac_includes_default
21206 #define WANT_BITS 31
21209 FILE *fp = fopen("cf_test.out", "w");
21211 char *result = "long";
21212 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21215 for (n = 0; n < WANT_BITS; n++) {
21218 if (y != 1 || x == 0) {
21224 * If x is nonzero, an int is big enough for the bits
21227 result = (x != 0) ? "int" : "long";
21232 ${cf_cv_main_return:-return}(0);
21236 rm -f "conftest$ac_exeext"
21237 if { (eval echo "$as_me:21237: \"$ac_link\"") >&5
21238 (eval $ac_link) 2>&5
21240 echo "$as_me:21240: \$? = $ac_status" >&5
21241 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21242 { (eval echo "$as_me:21242: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21245 echo "$as_me:21245: \$? = $ac_status" >&5
21246 (exit "$ac_status"); }; }; then
21247 cf_cv_typeof_chtype=`cat cf_test.out`
21249 echo "$as_me: program exited with status $ac_status" >&5
21250 echo "$as_me: failed program was:" >&5
21251 cat "conftest.$ac_ext" >&5
21252 cf_cv_typeof_chtype=long
21254 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21260 echo "$as_me:21260: result: $cf_cv_typeof_chtype" >&5
21261 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21263 cat >>confdefs.h <<EOF
21264 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21268 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21270 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21272 echo "$as_me:21272: checking if unsigned literals are legal" >&5
21273 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21274 if test "${cf_cv_unsigned_literals+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 cat >"conftest.$ac_ext" <<_ACEOF
21279 #line 21279 "configure"
21280 #include "confdefs.h"
21285 long x = 1L + 1UL + 1U + 1
21290 rm -f "conftest.$ac_objext"
21291 if { (eval echo "$as_me:21291: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>&5
21294 echo "$as_me:21294: \$? = $ac_status" >&5
21295 (exit "$ac_status"); } &&
21296 { ac_try='test -s "conftest.$ac_objext"'
21297 { (eval echo "$as_me:21297: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:21300: \$? = $ac_status" >&5
21301 (exit "$ac_status"); }; }; then
21302 cf_cv_unsigned_literals=yes
21304 echo "$as_me: failed program was:" >&5
21305 cat "conftest.$ac_ext" >&5
21306 cf_cv_unsigned_literals=no
21308 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21312 echo "$as_me:21312: result: $cf_cv_unsigned_literals" >&5
21313 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21316 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21317 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21319 if test "$NCURSES_MMASK_T" = auto ; then
21320 cf_cv_typeof_mmask_t=long
21322 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21324 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21326 ### Checks for external-data
21328 echo "$as_me:21328: checking if external errno is declared" >&5
21329 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21330 if test "${cf_cv_dcl_errno+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 cat >"conftest.$ac_ext" <<_ACEOF
21335 #line 21335 "configure"
21336 #include "confdefs.h"
21338 $ac_includes_default
21343 int x = (int) errno; (void)x
21348 rm -f "conftest.$ac_objext"
21349 if { (eval echo "$as_me:21349: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>&5
21352 echo "$as_me:21352: \$? = $ac_status" >&5
21353 (exit "$ac_status"); } &&
21354 { ac_try='test -s "conftest.$ac_objext"'
21355 { (eval echo "$as_me:21355: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:21358: \$? = $ac_status" >&5
21359 (exit "$ac_status"); }; }; then
21360 cf_cv_dcl_errno=yes
21362 echo "$as_me: failed program was:" >&5
21363 cat "conftest.$ac_ext" >&5
21366 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21369 echo "$as_me:21369: result: $cf_cv_dcl_errno" >&5
21370 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21372 if test "$cf_cv_dcl_errno" = no ; then
21374 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21376 cat >>confdefs.h <<EOF
21377 #define $cf_result 1
21382 # It's possible (for near-UNIX clones) that the data doesn't exist
21384 echo "$as_me:21384: checking if external errno exists" >&5
21385 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21386 if test "${cf_cv_have_errno+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21390 cat >"conftest.$ac_ext" <<_ACEOF
21391 #line 21391 "configure"
21392 #include "confdefs.h"
21405 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21406 if { (eval echo "$as_me:21406: \"$ac_link\"") >&5
21407 (eval $ac_link) 2>&5
21409 echo "$as_me:21409: \$? = $ac_status" >&5
21410 (exit "$ac_status"); } &&
21411 { ac_try='test -s "conftest$ac_exeext"'
21412 { (eval echo "$as_me:21412: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21415 echo "$as_me:21415: \$? = $ac_status" >&5
21416 (exit "$ac_status"); }; }; then
21417 cf_cv_have_errno=yes
21419 echo "$as_me: failed program was:" >&5
21420 cat "conftest.$ac_ext" >&5
21421 cf_cv_have_errno=no
21423 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21426 echo "$as_me:21426: result: $cf_cv_have_errno" >&5
21427 echo "${ECHO_T}$cf_cv_have_errno" >&6
21429 if test "$cf_cv_have_errno" = yes ; then
21431 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21433 cat >>confdefs.h <<EOF
21434 #define $cf_result 1
21439 echo "$as_me:21439: checking if data-only library module links" >&5
21440 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21441 if test "${cf_cv_link_dataonly+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 cat >conftest.$ac_ext <<EOF
21447 #line 21447 "configure"
21448 int testdata[3] = { 123, 456, 789 };
21450 if { (eval echo "$as_me:21450: \"$ac_compile\"") >&5
21451 (eval $ac_compile) 2>&5
21453 echo "$as_me:21453: \$? = $ac_status" >&5
21454 (exit "$ac_status"); } ; then
21455 mv conftest.o data.o && \
21456 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21458 rm -f conftest.$ac_ext data.o
21459 cat >conftest.$ac_ext <<EOF
21460 #line 21460 "configure"
21464 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21466 extern int testdata[3];
21467 return testdata[0] == 123
21468 && testdata[1] == 456
21469 && testdata[2] == 789;
21473 if { (eval echo "$as_me:21473: \"$ac_compile\"") >&5
21474 (eval $ac_compile) 2>&5
21476 echo "$as_me:21476: \$? = $ac_status" >&5
21477 (exit "$ac_status"); }; then
21478 mv conftest.o func.o && \
21479 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21481 rm -f conftest.$ac_ext func.o
21482 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21483 cf_saveLIBS="$LIBS"
21484 LIBS="conftest.a $LIBS"
21485 if test "$cross_compiling" = yes; then
21486 cf_cv_link_dataonly=unknown
21488 cat >"conftest.$ac_ext" <<_ACEOF
21489 #line 21489 "configure"
21490 #include "confdefs.h"
21494 extern int testfunc();
21495 ${cf_cv_main_return:-return} (!testfunc());
21499 rm -f "conftest$ac_exeext"
21500 if { (eval echo "$as_me:21500: \"$ac_link\"") >&5
21501 (eval $ac_link) 2>&5
21503 echo "$as_me:21503: \$? = $ac_status" >&5
21504 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21505 { (eval echo "$as_me:21505: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:21508: \$? = $ac_status" >&5
21509 (exit "$ac_status"); }; }; then
21510 cf_cv_link_dataonly=yes
21512 echo "$as_me: program exited with status $ac_status" >&5
21513 echo "$as_me: failed program was:" >&5
21514 cat "conftest.$ac_ext" >&5
21515 cf_cv_link_dataonly=no
21517 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21519 LIBS="$cf_saveLIBS"
21523 echo "$as_me:21523: result: $cf_cv_link_dataonly" >&5
21524 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21526 if test "$cf_cv_link_dataonly" = no ; then
21528 cat >>confdefs.h <<\EOF
21529 #define BROKEN_LINKER 1
21535 ### Checks for library functions.
21537 echo "$as_me:21537: checking for clock_gettime" >&5
21538 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21539 if test "${cf_cv_func_clock_gettime+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 cat >"conftest.$ac_ext" <<_ACEOF
21544 #line 21544 "configure"
21545 #include "confdefs.h"
21550 struct timespec ts;
21551 int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
21556 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21557 if { (eval echo "$as_me:21557: \"$ac_link\"") >&5
21558 (eval $ac_link) 2>&5
21560 echo "$as_me:21560: \$? = $ac_status" >&5
21561 (exit "$ac_status"); } &&
21562 { ac_try='test -s "conftest$ac_exeext"'
21563 { (eval echo "$as_me:21563: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:21566: \$? = $ac_status" >&5
21567 (exit "$ac_status"); }; }; then
21568 cf_cv_func_clock_gettime=yes
21570 echo "$as_me: failed program was:" >&5
21571 cat "conftest.$ac_ext" >&5
21572 cf_cv_func_clock_gettime=no
21574 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21577 echo "$as_me:21577: result: $cf_cv_func_clock_gettime" >&5
21578 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
21580 if test "$cf_cv_func_clock_gettime" = yes
21583 cat >>confdefs.h <<\EOF
21584 #define HAVE_CLOCK_GETTIME 1
21588 echo "$as_me:21588: checking for gettimeofday" >&5
21589 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
21590 if test "${ac_cv_func_gettimeofday+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 cat >"conftest.$ac_ext" <<_ACEOF
21594 #line 21594 "configure"
21595 #include "confdefs.h"
21596 #define gettimeofday autoconf_temporary
21597 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21598 #undef gettimeofday
21604 /* We use char because int might match the return type of a gcc2
21605 builtin and then its argument prototype would still apply. */
21606 char gettimeofday (void);
21612 /* The GNU C library defines stubs for functions which it implements
21613 to always fail with ENOSYS. Some functions are actually named
21614 something starting with __ and the normal name is an alias. */
21615 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
21616 #error found stub for gettimeofday
21619 return gettimeofday ();
21624 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21625 if { (eval echo "$as_me:21625: \"$ac_link\"") >&5
21626 (eval $ac_link) 2>&5
21628 echo "$as_me:21628: \$? = $ac_status" >&5
21629 (exit "$ac_status"); } &&
21630 { ac_try='test -s "conftest$ac_exeext"'
21631 { (eval echo "$as_me:21631: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:21634: \$? = $ac_status" >&5
21635 (exit "$ac_status"); }; }; then
21636 ac_cv_func_gettimeofday=yes
21638 echo "$as_me: failed program was:" >&5
21639 cat "conftest.$ac_ext" >&5
21640 ac_cv_func_gettimeofday=no
21642 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21644 echo "$as_me:21644: result: $ac_cv_func_gettimeofday" >&5
21645 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
21646 if test "$ac_cv_func_gettimeofday" = yes; then
21648 cat >>confdefs.h <<\EOF
21649 #define HAVE_GETTIMEOFDAY 1
21654 echo "$as_me:21654: checking for gettimeofday in -lbsd" >&5
21655 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
21656 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 ac_check_lib_save_LIBS=$LIBS
21661 cat >"conftest.$ac_ext" <<_ACEOF
21662 #line 21662 "configure"
21663 #include "confdefs.h"
21665 /* Override any gcc2 internal prototype to avoid an error. */
21669 /* We use char because int might match the return type of a gcc2
21670 builtin and then its argument prototype would still apply. */
21671 char gettimeofday ();
21680 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21681 if { (eval echo "$as_me:21681: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>&5
21684 echo "$as_me:21684: \$? = $ac_status" >&5
21685 (exit "$ac_status"); } &&
21686 { ac_try='test -s "conftest$ac_exeext"'
21687 { (eval echo "$as_me:21687: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:21690: \$? = $ac_status" >&5
21691 (exit "$ac_status"); }; }; then
21692 ac_cv_lib_bsd_gettimeofday=yes
21694 echo "$as_me: failed program was:" >&5
21695 cat "conftest.$ac_ext" >&5
21696 ac_cv_lib_bsd_gettimeofday=no
21698 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21699 LIBS=$ac_check_lib_save_LIBS
21701 echo "$as_me:21701: result: $ac_cv_lib_bsd_gettimeofday" >&5
21702 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
21703 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
21705 cat >>confdefs.h <<\EOF
21706 #define HAVE_GETTIMEOFDAY 1
21709 cf_add_libs="$LIBS"
21712 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21713 # filter duplicates
21714 for cf_add_1lib in $cf_add_0lib; do
21715 for cf_add_2lib in $cf_add_libs; do
21716 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21721 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21723 LIBS="$cf_add_libs"
21761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21762 echo "$as_me:21762: checking for $ac_func" >&5
21763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21764 if eval "test \"\${$as_ac_var+set}\" = set"; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 cat >"conftest.$ac_ext" <<_ACEOF
21768 #line 21768 "configure"
21769 #include "confdefs.h"
21770 #define $ac_func autoconf_temporary
21771 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21778 /* We use char because int might match the return type of a gcc2
21779 builtin and then its argument prototype would still apply. */
21780 char $ac_func (void);
21786 /* The GNU C library defines stubs for functions which it implements
21787 to always fail with ENOSYS. Some functions are actually named
21788 something starting with __ and the normal name is an alias. */
21789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21790 #error found stub for $ac_func
21793 return $ac_func ();
21798 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21799 if { (eval echo "$as_me:21799: \"$ac_link\"") >&5
21800 (eval $ac_link) 2>&5
21802 echo "$as_me:21802: \$? = $ac_status" >&5
21803 (exit "$ac_status"); } &&
21804 { ac_try='test -s "conftest$ac_exeext"'
21805 { (eval echo "$as_me:21805: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:21808: \$? = $ac_status" >&5
21809 (exit "$ac_status"); }; }; then
21810 eval "$as_ac_var=yes"
21812 echo "$as_me: failed program was:" >&5
21813 cat "conftest.$ac_ext" >&5
21814 eval "$as_ac_var=no"
21816 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21818 echo "$as_me:21818: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21819 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21820 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21821 cat >>confdefs.h <<EOF
21822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21828 echo "$as_me:21828: checking if _PATH_TTYS is defined in ttyent.h" >&5
21829 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21830 if test "${cf_cv_PATH_TTYS+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 cat >"conftest.$ac_ext" <<_ACEOF
21835 #line 21835 "configure"
21836 #include "confdefs.h"
21839 #include <ttyent.h>
21844 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21849 rm -f "conftest.$ac_objext"
21850 if { (eval echo "$as_me:21850: \"$ac_compile\"") >&5
21851 (eval $ac_compile) 2>&5
21853 echo "$as_me:21853: \$? = $ac_status" >&5
21854 (exit "$ac_status"); } &&
21855 { ac_try='test -s "conftest.$ac_objext"'
21856 { (eval echo "$as_me:21856: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21859 echo "$as_me:21859: \$? = $ac_status" >&5
21860 (exit "$ac_status"); }; }; then
21861 cf_cv_PATH_TTYS=yes
21863 echo "$as_me: failed program was:" >&5
21864 cat "conftest.$ac_ext" >&5
21867 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21869 echo "$as_me:21869: result: $cf_cv_PATH_TTYS" >&5
21870 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21872 if test $cf_cv_PATH_TTYS = no
21874 for cf_ttys in /etc/ttytype /etc/ttys
21876 if test -f $cf_ttys
21878 cf_cv_PATH_TTYS=maybe
21880 cat >>confdefs.h <<\EOF
21881 #define _PATH_TTYS $cf_ttys
21889 if test $cf_cv_PATH_TTYS != no
21891 echo "$as_me:21891: checking if _PATH_TTYS file exists" >&5
21892 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21893 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 if test "$cross_compiling" = yes; then
21898 cf_cv_have_PATH_TTYS=unknown
21900 cat >"conftest.$ac_ext" <<_ACEOF
21901 #line 21901 "configure"
21902 #include "confdefs.h"
21904 $ac_includes_default
21906 #include <ttyent.h>
21909 FILE *fp = fopen(_PATH_TTYS, "r");
21910 ${cf_cv_main_return:-return} (fp == 0);
21913 rm -f "conftest$ac_exeext"
21914 if { (eval echo "$as_me:21914: \"$ac_link\"") >&5
21915 (eval $ac_link) 2>&5
21917 echo "$as_me:21917: \$? = $ac_status" >&5
21918 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21919 { (eval echo "$as_me:21919: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21922 echo "$as_me:21922: \$? = $ac_status" >&5
21923 (exit "$ac_status"); }; }; then
21924 cf_cv_have_PATH_TTYS=yes
21926 echo "$as_me: program exited with status $ac_status" >&5
21927 echo "$as_me: failed program was:" >&5
21928 cat "conftest.$ac_ext" >&5
21929 cf_cv_have_PATH_TTYS=no
21931 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21934 echo "$as_me:21934: result: $cf_cv_have_PATH_TTYS" >&5
21935 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21936 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21939 if test $cf_cv_PATH_TTYS != no
21942 cat >>confdefs.h <<\EOF
21943 #define HAVE_PATH_TTYS 1
21946 echo "$as_me:21946: checking for getttynam" >&5
21947 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21948 if test "${cf_cv_func_getttynam+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 cat >"conftest.$ac_ext" <<_ACEOF
21953 #line 21953 "configure"
21954 #include "confdefs.h"
21955 #include <ttyent.h>
21959 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21964 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21965 if { (eval echo "$as_me:21965: \"$ac_link\"") >&5
21966 (eval $ac_link) 2>&5
21968 echo "$as_me:21968: \$? = $ac_status" >&5
21969 (exit "$ac_status"); } &&
21970 { ac_try='test -s "conftest$ac_exeext"'
21971 { (eval echo "$as_me:21971: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21974 echo "$as_me:21974: \$? = $ac_status" >&5
21975 (exit "$ac_status"); }; }; then
21976 cf_cv_func_getttynam=yes
21978 echo "$as_me: failed program was:" >&5
21979 cat "conftest.$ac_ext" >&5
21980 cf_cv_func_getttynam=no
21982 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21984 echo "$as_me:21984: result: $cf_cv_func_getttynam" >&5
21985 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21986 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21987 #define HAVE_GETTTYNAM 1
21992 if test "x$ac_cv_func_getopt" = xno && \
21993 test "x$cf_with_progs$cf_with_tests" != xnono; then
21994 { { echo "$as_me:21994: error: getopt is required for building programs" >&5
21995 echo "$as_me: error: getopt is required for building programs" >&2;}
21996 { (exit 1); exit 1; }; }
21999 if test "x$with_safe_sprintf" = xyes
22001 if test "x$ac_cv_func_vsnprintf" = xyes
22003 { echo "$as_me:22003: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
22004 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
22007 cat >>confdefs.h <<\EOF
22008 #define USE_SAFE_SPRINTF 1
22014 if test "x$with_getcap" = "xyes" ; then
22016 echo "$as_me:22016: checking for terminal-capability database functions" >&5
22017 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
22018 if test "${cf_cv_cgetent+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 cat >"conftest.$ac_ext" <<_ACEOF
22023 #line 22023 "configure"
22024 #include "confdefs.h"
22026 $ac_includes_default
22033 char *db_array = temp;
22034 cgetent(&buf, &db_array, "vt100");
22035 cgetcap(buf, "tc", '=');
22036 cgetmatch(buf, "tc");
22042 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22043 if { (eval echo "$as_me:22043: \"$ac_link\"") >&5
22044 (eval $ac_link) 2>&5
22046 echo "$as_me:22046: \$? = $ac_status" >&5
22047 (exit "$ac_status"); } &&
22048 { ac_try='test -s "conftest$ac_exeext"'
22049 { (eval echo "$as_me:22049: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22052 echo "$as_me:22052: \$? = $ac_status" >&5
22053 (exit "$ac_status"); }; }; then
22056 echo "$as_me: failed program was:" >&5
22057 cat "conftest.$ac_ext" >&5
22060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22063 echo "$as_me:22063: result: $cf_cv_cgetent" >&5
22064 echo "${ECHO_T}$cf_cv_cgetent" >&6
22066 if test "$cf_cv_cgetent" = yes
22069 cat >>confdefs.h <<\EOF
22070 #define HAVE_BSD_CGETENT 1
22073 echo "$as_me:22073: checking if cgetent uses const parameter" >&5
22074 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
22075 if test "${cf_cv_cgetent_const+set}" = set; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 cat >"conftest.$ac_ext" <<_ACEOF
22080 #line 22080 "configure"
22081 #include "confdefs.h"
22083 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
22084 $ac_includes_default
22091 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
22092 const char *db_array = temp;
22093 cgetent(&buf, &db_array, "vt100");
22095 cgetcap(buf, "tc", '=');
22096 cgetmatch(buf, "tc");
22102 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22103 if { (eval echo "$as_me:22103: \"$ac_link\"") >&5
22104 (eval $ac_link) 2>&5
22106 echo "$as_me:22106: \$? = $ac_status" >&5
22107 (exit "$ac_status"); } &&
22108 { ac_try='test -s "conftest$ac_exeext"'
22109 { (eval echo "$as_me:22109: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22112 echo "$as_me:22112: \$? = $ac_status" >&5
22113 (exit "$ac_status"); }; }; then
22114 cf_cv_cgetent_const=yes
22116 echo "$as_me: failed program was:" >&5
22117 cat "conftest.$ac_ext" >&5
22118 cf_cv_cgetent_const=no
22120 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22123 echo "$as_me:22123: result: $cf_cv_cgetent_const" >&5
22124 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22125 if test "$cf_cv_cgetent_const" = yes
22128 cat >>confdefs.h <<EOF
22129 #define CGETENT_CONST const
22137 echo "$as_me:22137: checking for isascii" >&5
22138 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22139 if test "${cf_cv_have_isascii+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 cat >"conftest.$ac_ext" <<_ACEOF
22144 #line 22144 "configure"
22145 #include "confdefs.h"
22150 int x = isascii(' ')
22155 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22156 if { (eval echo "$as_me:22156: \"$ac_link\"") >&5
22157 (eval $ac_link) 2>&5
22159 echo "$as_me:22159: \$? = $ac_status" >&5
22160 (exit "$ac_status"); } &&
22161 { ac_try='test -s "conftest$ac_exeext"'
22162 { (eval echo "$as_me:22162: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:22165: \$? = $ac_status" >&5
22166 (exit "$ac_status"); }; }; then
22167 cf_cv_have_isascii=yes
22169 echo "$as_me: failed program was:" >&5
22170 cat "conftest.$ac_ext" >&5
22171 cf_cv_have_isascii=no
22173 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22176 echo "$as_me:22176: result: $cf_cv_have_isascii" >&5
22177 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22178 test "$cf_cv_have_isascii" = yes &&
22179 cat >>confdefs.h <<\EOF
22180 #define HAVE_ISASCII 1
22183 if test "$ac_cv_func_sigaction" = yes; then
22184 echo "$as_me:22184: checking whether sigaction needs _POSIX_SOURCE" >&5
22185 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22186 cat >"conftest.$ac_ext" <<_ACEOF
22187 #line 22187 "configure"
22188 #include "confdefs.h"
22190 #include <sys/types.h>
22191 #include <signal.h>
22195 struct sigaction act
22200 rm -f "conftest.$ac_objext"
22201 if { (eval echo "$as_me:22201: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>&5
22204 echo "$as_me:22204: \$? = $ac_status" >&5
22205 (exit "$ac_status"); } &&
22206 { ac_try='test -s "conftest.$ac_objext"'
22207 { (eval echo "$as_me:22207: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22210 echo "$as_me:22210: \$? = $ac_status" >&5
22211 (exit "$ac_status"); }; }; then
22214 echo "$as_me: failed program was:" >&5
22215 cat "conftest.$ac_ext" >&5
22217 cat >"conftest.$ac_ext" <<_ACEOF
22218 #line 22218 "configure"
22219 #include "confdefs.h"
22221 #define _POSIX_SOURCE
22222 #include <sys/types.h>
22223 #include <signal.h>
22227 struct sigaction act
22232 rm -f "conftest.$ac_objext"
22233 if { (eval echo "$as_me:22233: \"$ac_compile\"") >&5
22234 (eval $ac_compile) 2>&5
22236 echo "$as_me:22236: \$? = $ac_status" >&5
22237 (exit "$ac_status"); } &&
22238 { ac_try='test -s "conftest.$ac_objext"'
22239 { (eval echo "$as_me:22239: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22242 echo "$as_me:22242: \$? = $ac_status" >&5
22243 (exit "$ac_status"); }; }; then
22246 cat >>confdefs.h <<\EOF
22247 #define _POSIX_SOURCE 1
22251 echo "$as_me: failed program was:" >&5
22252 cat "conftest.$ac_ext" >&5
22255 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22257 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22258 echo "$as_me:22258: result: $sigact_bad" >&5
22259 echo "${ECHO_T}$sigact_bad" >&6
22262 echo "$as_me:22262: checking if nanosleep really works" >&5
22263 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22264 if test "${cf_cv_func_nanosleep+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 if test "$cross_compiling" = yes; then
22269 cf_cv_func_nanosleep=unknown
22271 cat >"conftest.$ac_ext" <<_ACEOF
22272 #line 22272 "configure"
22273 #include "confdefs.h"
22275 $ac_includes_default
22280 #ifdef HAVE_SYS_TIME_H
22281 #include <sys/time.h>
22285 struct timespec ts1, ts2;
22288 ts1.tv_nsec = 750000000;
22292 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22293 ${cf_cv_main_return:-return}(code != 0);
22297 rm -f "conftest$ac_exeext"
22298 if { (eval echo "$as_me:22298: \"$ac_link\"") >&5
22299 (eval $ac_link) 2>&5
22301 echo "$as_me:22301: \$? = $ac_status" >&5
22302 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22303 { (eval echo "$as_me:22303: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:22306: \$? = $ac_status" >&5
22307 (exit "$ac_status"); }; }; then
22308 cf_cv_func_nanosleep=yes
22310 echo "$as_me: program exited with status $ac_status" >&5
22311 echo "$as_me: failed program was:" >&5
22312 cat "conftest.$ac_ext" >&5
22313 cf_cv_func_nanosleep=no
22315 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22318 echo "$as_me:22318: result: $cf_cv_func_nanosleep" >&5
22319 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22321 test "$cf_cv_func_nanosleep" = "yes" &&
22322 cat >>confdefs.h <<\EOF
22323 #define HAVE_NANOSLEEP 1
22334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22335 echo "$as_me:22335: checking for $ac_header" >&5
22336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 cat >"conftest.$ac_ext" <<_ACEOF
22341 #line 22341 "configure"
22342 #include "confdefs.h"
22343 #include <$ac_header>
22345 if { (eval echo "$as_me:22345: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22346 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22348 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22350 cat conftest.err >&5
22351 echo "$as_me:22351: \$? = $ac_status" >&5
22352 (exit "$ac_status"); } >/dev/null; then
22353 if test -s conftest.err; then
22354 ac_cpp_err=$ac_c_preproc_warn_flag
22361 if test -z "$ac_cpp_err"; then
22362 eval "$as_ac_Header=yes"
22364 echo "$as_me: failed program was:" >&5
22365 cat "conftest.$ac_ext" >&5
22366 eval "$as_ac_Header=no"
22368 rm -f conftest.err "conftest.$ac_ext"
22370 echo "$as_me:22370: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22371 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22372 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22373 cat >>confdefs.h <<EOF
22374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22380 if test "$ac_cv_header_termios_h" = yes ; then
22381 case "$CFLAGS $CPPFLAGS" in
22382 (*-D_POSIX_SOURCE*)
22383 termios_bad=dunno ;;
22384 (*) termios_bad=maybe ;;
22386 if test "$termios_bad" = maybe ; then
22387 echo "$as_me:22387: checking whether termios.h needs _POSIX_SOURCE" >&5
22388 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22389 cat >"conftest.$ac_ext" <<_ACEOF
22390 #line 22390 "configure"
22391 #include "confdefs.h"
22392 #include <termios.h>
22396 struct termios foo; int x = foo.c_iflag = 1; (void)x
22401 rm -f "conftest.$ac_objext"
22402 if { (eval echo "$as_me:22402: \"$ac_compile\"") >&5
22403 (eval $ac_compile) 2>&5
22405 echo "$as_me:22405: \$? = $ac_status" >&5
22406 (exit "$ac_status"); } &&
22407 { ac_try='test -s "conftest.$ac_objext"'
22408 { (eval echo "$as_me:22408: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22411 echo "$as_me:22411: \$? = $ac_status" >&5
22412 (exit "$ac_status"); }; }; then
22415 echo "$as_me: failed program was:" >&5
22416 cat "conftest.$ac_ext" >&5
22418 cat >"conftest.$ac_ext" <<_ACEOF
22419 #line 22419 "configure"
22420 #include "confdefs.h"
22422 #define _POSIX_SOURCE
22423 #include <termios.h>
22427 struct termios foo; int x = foo.c_iflag = 2; (void)x
22432 rm -f "conftest.$ac_objext"
22433 if { (eval echo "$as_me:22433: \"$ac_compile\"") >&5
22434 (eval $ac_compile) 2>&5
22436 echo "$as_me:22436: \$? = $ac_status" >&5
22437 (exit "$ac_status"); } &&
22438 { ac_try='test -s "conftest.$ac_objext"'
22439 { (eval echo "$as_me:22439: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22442 echo "$as_me:22442: \$? = $ac_status" >&5
22443 (exit "$ac_status"); }; }; then
22444 termios_bad=unknown
22446 echo "$as_me: failed program was:" >&5
22447 cat "conftest.$ac_ext" >&5
22449 cat >>confdefs.h <<\EOF
22450 #define _POSIX_SOURCE 1
22454 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22457 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22458 echo "$as_me:22458: result: $termios_bad" >&5
22459 echo "${ECHO_T}$termios_bad" >&6
22463 echo "$as_me:22463: checking for tcgetattr" >&5
22464 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22465 if test "${cf_cv_have_tcgetattr+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 cat >"conftest.$ac_ext" <<_ACEOF
22470 #line 22470 "configure"
22471 #include "confdefs.h"
22473 #include <sys/types.h>
22474 #ifdef HAVE_UNISTD_H
22475 #include <unistd.h>
22477 #ifdef HAVE_TERMIOS_H
22478 #include <termios.h>
22479 #define TTY struct termios
22481 #ifdef HAVE_TERMIO_H
22482 #include <termio.h>
22483 #define TTY struct termio
22492 tcgetattr(1, &foo);
22497 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22498 if { (eval echo "$as_me:22498: \"$ac_link\"") >&5
22499 (eval $ac_link) 2>&5
22501 echo "$as_me:22501: \$? = $ac_status" >&5
22502 (exit "$ac_status"); } &&
22503 { ac_try='test -s "conftest$ac_exeext"'
22504 { (eval echo "$as_me:22504: \"$ac_try\"") >&5
22505 (eval $ac_try) 2>&5
22507 echo "$as_me:22507: \$? = $ac_status" >&5
22508 (exit "$ac_status"); }; }; then
22509 cf_cv_have_tcgetattr=yes
22511 echo "$as_me: failed program was:" >&5
22512 cat "conftest.$ac_ext" >&5
22513 cf_cv_have_tcgetattr=no
22515 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22517 echo "$as_me:22517: result: $cf_cv_have_tcgetattr" >&5
22518 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22519 test "$cf_cv_have_tcgetattr" = yes &&
22520 cat >>confdefs.h <<\EOF
22521 #define HAVE_TCGETATTR 1
22524 echo "$as_me:22524: checking for vsscanf function or workaround" >&5
22525 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22526 if test "${cf_cv_func_vsscanf+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 <stdarg.h>
22541 vsscanf("from", "%d", ap)
22546 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22547 if { (eval echo "$as_me:22547: \"$ac_link\"") >&5
22548 (eval $ac_link) 2>&5
22550 echo "$as_me:22550: \$? = $ac_status" >&5
22551 (exit "$ac_status"); } &&
22552 { ac_try='test -s "conftest$ac_exeext"'
22553 { (eval echo "$as_me:22553: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:22556: \$? = $ac_status" >&5
22557 (exit "$ac_status"); }; }; then
22558 cf_cv_func_vsscanf=vsscanf
22560 echo "$as_me: failed program was:" >&5
22561 cat "conftest.$ac_ext" >&5
22563 cat >"conftest.$ac_ext" <<_ACEOF
22564 #line 22564 "configure"
22565 #include "confdefs.h"
22567 #include <stdarg.h>
22574 char *str = "from";
22576 strbuf._flag = _IOREAD;
22577 strbuf._ptr = strbuf._base = (unsigned char *) str;
22578 strbuf._cnt = strlen(str);
22579 strbuf._file = _NFILE;
22580 return (vfscanf(&strbuf, "%d", ap))
22585 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22586 if { (eval echo "$as_me:22586: \"$ac_link\"") >&5
22587 (eval $ac_link) 2>&5
22589 echo "$as_me:22589: \$? = $ac_status" >&5
22590 (exit "$ac_status"); } &&
22591 { ac_try='test -s "conftest$ac_exeext"'
22592 { (eval echo "$as_me:22592: \"$ac_try\"") >&5
22593 (eval $ac_try) 2>&5
22595 echo "$as_me:22595: \$? = $ac_status" >&5
22596 (exit "$ac_status"); }; }; then
22597 cf_cv_func_vsscanf=vfscanf
22599 echo "$as_me: failed program was:" >&5
22600 cat "conftest.$ac_ext" >&5
22602 cat >"conftest.$ac_ext" <<_ACEOF
22603 #line 22603 "configure"
22604 #include "confdefs.h"
22606 #include <stdarg.h>
22613 char *str = "from";
22615 strbuf._flag = _IOREAD;
22616 strbuf._ptr = strbuf._base = (unsigned char *) str;
22617 strbuf._cnt = strlen(str);
22618 strbuf._file = _NFILE;
22619 return (_doscan(&strbuf, "%d", ap))
22624 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22625 if { (eval echo "$as_me:22625: \"$ac_link\"") >&5
22626 (eval $ac_link) 2>&5
22628 echo "$as_me:22628: \$? = $ac_status" >&5
22629 (exit "$ac_status"); } &&
22630 { ac_try='test -s "conftest$ac_exeext"'
22631 { (eval echo "$as_me:22631: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:22634: \$? = $ac_status" >&5
22635 (exit "$ac_status"); }; }; then
22636 cf_cv_func_vsscanf=_doscan
22638 echo "$as_me: failed program was:" >&5
22639 cat "conftest.$ac_ext" >&5
22641 cf_cv_func_vsscanf=no
22643 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22645 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22647 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22649 echo "$as_me:22649: result: $cf_cv_func_vsscanf" >&5
22650 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22652 case "$cf_cv_func_vsscanf" in
22654 cat >>confdefs.h <<\EOF
22655 #define HAVE_VSSCANF 1
22659 cat >>confdefs.h <<\EOF
22660 #define HAVE_VFSCANF 1
22664 cat >>confdefs.h <<\EOF
22665 #define HAVE__DOSCAN 1
22674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22675 echo "$as_me:22675: checking for $ac_header" >&5
22676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 cat >"conftest.$ac_ext" <<_ACEOF
22681 #line 22681 "configure"
22682 #include "confdefs.h"
22683 #include <$ac_header>
22685 if { (eval echo "$as_me:22685: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22686 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22688 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22690 cat conftest.err >&5
22691 echo "$as_me:22691: \$? = $ac_status" >&5
22692 (exit "$ac_status"); } >/dev/null; then
22693 if test -s conftest.err; then
22694 ac_cpp_err=$ac_c_preproc_warn_flag
22701 if test -z "$ac_cpp_err"; then
22702 eval "$as_ac_Header=yes"
22704 echo "$as_me: failed program was:" >&5
22705 cat "conftest.$ac_ext" >&5
22706 eval "$as_ac_Header=no"
22708 rm -f conftest.err "conftest.$ac_ext"
22710 echo "$as_me:22710: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22711 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22712 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22713 cat >>confdefs.h <<EOF
22714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22720 echo "$as_me:22720: checking for working mkstemp" >&5
22721 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22722 if test "${cf_cv_func_mkstemp+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 if test "$cross_compiling" = yes; then
22728 cf_cv_func_mkstemp=maybe
22730 cat >"conftest.$ac_ext" <<_ACEOF
22731 #line 22731 "configure"
22732 #include "confdefs.h"
22734 $ac_includes_default
22738 char *tmpl = "conftestXXXXXX";
22746 for (n = 0; n < 2; ++n) {
22747 strcpy(name[n], tmpl);
22748 if ((fd = mkstemp(name[n])) >= 0) {
22749 if (!strcmp(name[n], tmpl)
22750 || stat(name[n], &sb) != 0
22751 || (sb.st_mode & S_IFMT) != S_IFREG
22752 || (sb.st_mode & 077) != 0) {
22759 && !strcmp(name[0], name[1]))
22761 ${cf_cv_main_return:-return}(result);
22765 rm -f "conftest$ac_exeext"
22766 if { (eval echo "$as_me:22766: \"$ac_link\"") >&5
22767 (eval $ac_link) 2>&5
22769 echo "$as_me:22769: \$? = $ac_status" >&5
22770 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22771 { (eval echo "$as_me:22771: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22774 echo "$as_me:22774: \$? = $ac_status" >&5
22775 (exit "$ac_status"); }; }; then
22776 cf_cv_func_mkstemp=yes
22779 echo "$as_me: program exited with status $ac_status" >&5
22780 echo "$as_me: failed program was:" >&5
22781 cat "conftest.$ac_ext" >&5
22782 cf_cv_func_mkstemp=no
22785 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22789 echo "$as_me:22789: result: $cf_cv_func_mkstemp" >&5
22790 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22791 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22792 echo "$as_me:22792: checking for mkstemp" >&5
22793 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22794 if test "${ac_cv_func_mkstemp+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 cat >"conftest.$ac_ext" <<_ACEOF
22798 #line 22798 "configure"
22799 #include "confdefs.h"
22800 #define mkstemp autoconf_temporary
22801 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22808 /* We use char because int might match the return type of a gcc2
22809 builtin and then its argument prototype would still apply. */
22810 char mkstemp (void);
22816 /* The GNU C library defines stubs for functions which it implements
22817 to always fail with ENOSYS. Some functions are actually named
22818 something starting with __ and the normal name is an alias. */
22819 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22820 #error found stub for mkstemp
22828 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22829 if { (eval echo "$as_me:22829: \"$ac_link\"") >&5
22830 (eval $ac_link) 2>&5
22832 echo "$as_me:22832: \$? = $ac_status" >&5
22833 (exit "$ac_status"); } &&
22834 { ac_try='test -s "conftest$ac_exeext"'
22835 { (eval echo "$as_me:22835: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:22838: \$? = $ac_status" >&5
22839 (exit "$ac_status"); }; }; then
22840 ac_cv_func_mkstemp=yes
22842 echo "$as_me: failed program was:" >&5
22843 cat "conftest.$ac_ext" >&5
22844 ac_cv_func_mkstemp=no
22846 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22848 echo "$as_me:22848: result: $ac_cv_func_mkstemp" >&5
22849 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22852 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22854 cat >>confdefs.h <<\EOF
22855 #define HAVE_MKSTEMP 1
22860 # setup for prototype of fallback for vsscanf()
22862 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22868 if test "x$cross_compiling" = xyes ; then
22869 { echo "$as_me:22869: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22870 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22872 echo "$as_me:22872: checking whether setvbuf arguments are reversed" >&5
22873 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22874 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22877 if test "$cross_compiling" = yes; then
22878 { { echo "$as_me:22878: error: cannot run test program while cross compiling" >&5
22879 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22880 { (exit 1); exit 1; }; }
22882 cat >"conftest.$ac_ext" <<_ACEOF
22883 #line 22883 "configure"
22884 #include "confdefs.h"
22886 /* If setvbuf has the reversed format, exit 0. */
22890 /* This call has the arguments reversed.
22891 A reversed system may check and see that the address of main
22892 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22893 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22894 $ac_main_return(1);
22895 putc('\r', stdout);
22896 $ac_main_return(0); /* Non-reversed systems segv here. */
22899 rm -f "conftest$ac_exeext"
22900 if { (eval echo "$as_me:22900: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>&5
22903 echo "$as_me:22903: \$? = $ac_status" >&5
22904 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22905 { (eval echo "$as_me:22905: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22908 echo "$as_me:22908: \$? = $ac_status" >&5
22909 (exit "$ac_status"); }; }; then
22910 ac_cv_func_setvbuf_reversed=yes
22912 echo "$as_me: program exited with status $ac_status" >&5
22913 echo "$as_me: failed program was:" >&5
22914 cat "conftest.$ac_ext" >&5
22915 ac_cv_func_setvbuf_reversed=no
22917 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22919 rm -f core ./core.* ./*.core
22921 echo "$as_me:22921: result: $ac_cv_func_setvbuf_reversed" >&5
22922 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22923 if test $ac_cv_func_setvbuf_reversed = yes; then
22925 cat >>confdefs.h <<\EOF
22926 #define SETVBUF_REVERSED 1
22932 echo "$as_me:22932: checking for intptr_t" >&5
22933 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22934 if test "${ac_cv_type_intptr_t+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 cat >"conftest.$ac_ext" <<_ACEOF
22938 #line 22938 "configure"
22939 #include "confdefs.h"
22940 $ac_includes_default
22944 if ((intptr_t *) 0)
22946 if (sizeof (intptr_t))
22952 rm -f "conftest.$ac_objext"
22953 if { (eval echo "$as_me:22953: \"$ac_compile\"") >&5
22954 (eval $ac_compile) 2>&5
22956 echo "$as_me:22956: \$? = $ac_status" >&5
22957 (exit "$ac_status"); } &&
22958 { ac_try='test -s "conftest.$ac_objext"'
22959 { (eval echo "$as_me:22959: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22962 echo "$as_me:22962: \$? = $ac_status" >&5
22963 (exit "$ac_status"); }; }; then
22964 ac_cv_type_intptr_t=yes
22966 echo "$as_me: failed program was:" >&5
22967 cat "conftest.$ac_ext" >&5
22968 ac_cv_type_intptr_t=no
22970 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22972 echo "$as_me:22972: result: $ac_cv_type_intptr_t" >&5
22973 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22974 if test "$ac_cv_type_intptr_t" = yes; then
22978 cat >>confdefs.h <<EOF
22979 #define intptr_t long
22984 echo "$as_me:22984: checking for ssize_t" >&5
22985 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22986 if test "${ac_cv_type_ssize_t+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 cat >"conftest.$ac_ext" <<_ACEOF
22990 #line 22990 "configure"
22991 #include "confdefs.h"
22992 $ac_includes_default
22998 if (sizeof (ssize_t))
23004 rm -f "conftest.$ac_objext"
23005 if { (eval echo "$as_me:23005: \"$ac_compile\"") >&5
23006 (eval $ac_compile) 2>&5
23008 echo "$as_me:23008: \$? = $ac_status" >&5
23009 (exit "$ac_status"); } &&
23010 { ac_try='test -s "conftest.$ac_objext"'
23011 { (eval echo "$as_me:23011: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23014 echo "$as_me:23014: \$? = $ac_status" >&5
23015 (exit "$ac_status"); }; }; then
23016 ac_cv_type_ssize_t=yes
23018 echo "$as_me: failed program was:" >&5
23019 cat "conftest.$ac_ext" >&5
23020 ac_cv_type_ssize_t=no
23022 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23024 echo "$as_me:23024: result: $ac_cv_type_ssize_t" >&5
23025 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
23026 if test "$ac_cv_type_ssize_t" = yes; then
23030 cat >>confdefs.h <<EOF
23031 #define ssize_t int
23036 echo "$as_me:23036: checking for type sigaction_t" >&5
23037 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
23038 if test "${cf_cv_type_sigaction+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 cat >"conftest.$ac_ext" <<_ACEOF
23043 #line 23043 "configure"
23044 #include "confdefs.h"
23046 #include <signal.h>
23055 rm -f "conftest.$ac_objext"
23056 if { (eval echo "$as_me:23056: \"$ac_compile\"") >&5
23057 (eval $ac_compile) 2>&5
23059 echo "$as_me:23059: \$? = $ac_status" >&5
23060 (exit "$ac_status"); } &&
23061 { ac_try='test -s "conftest.$ac_objext"'
23062 { (eval echo "$as_me:23062: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23065 echo "$as_me:23065: \$? = $ac_status" >&5
23066 (exit "$ac_status"); }; }; then
23067 cf_cv_type_sigaction=yes
23069 echo "$as_me: failed program was:" >&5
23070 cat "conftest.$ac_ext" >&5
23071 cf_cv_type_sigaction=no
23073 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23076 echo "$as_me:23076: result: $cf_cv_type_sigaction" >&5
23077 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
23078 test "$cf_cv_type_sigaction" = yes &&
23079 cat >>confdefs.h <<\EOF
23080 #define HAVE_TYPE_SIGACTION 1
23083 echo "$as_me:23083: checking declaration of size-change" >&5
23084 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
23085 if test "${cf_cv_sizechange+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 cf_cv_sizechange=unknown
23090 cf_save_CPPFLAGS="$CPPFLAGS"
23092 for cf_opts in "" "NEED_PTEM_H"
23095 CPPFLAGS="$cf_save_CPPFLAGS"
23096 if test -n "$cf_opts"
23099 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23100 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23103 cat >"conftest.$ac_ext" <<_ACEOF
23104 #line 23104 "configure"
23105 #include "confdefs.h"
23106 #include <sys/types.h>
23107 #ifdef HAVE_TERMIOS_H
23108 #include <termios.h>
23110 #ifdef HAVE_TERMIO_H
23111 #include <termio.h>
23116 /* This is a workaround for SCO: they neglected to define struct winsize in
23117 * termios.h -- it is only in termio.h and ptem.h
23119 #include <sys/stream.h>
23120 #include <sys/ptem.h>
23123 #ifdef HAVE_SYS_IOCTL_H
23124 #include <sys/ioctl.h>
23132 struct ttysize win; /* SunOS 3.0... */
23133 int y = win.ts_lines = 2;
23134 int x = win.ts_cols = 1;
23139 struct winsize win; /* everything else */
23140 int y = win.ws_row = 2;
23141 int x = win.ws_col = 1;
23145 no TIOCGSIZE or TIOCGWINSZ
23146 #endif /* TIOCGWINSZ */
23147 #endif /* TIOCGSIZE */
23153 rm -f "conftest.$ac_objext"
23154 if { (eval echo "$as_me:23154: \"$ac_compile\"") >&5
23155 (eval $ac_compile) 2>&5
23157 echo "$as_me:23157: \$? = $ac_status" >&5
23158 (exit "$ac_status"); } &&
23159 { ac_try='test -s "conftest.$ac_objext"'
23160 { (eval echo "$as_me:23160: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23163 echo "$as_me:23163: \$? = $ac_status" >&5
23164 (exit "$ac_status"); }; }; then
23165 cf_cv_sizechange=yes
23167 echo "$as_me: failed program was:" >&5
23168 cat "conftest.$ac_ext" >&5
23169 cf_cv_sizechange=no
23171 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23173 CPPFLAGS="$cf_save_CPPFLAGS"
23174 if test "$cf_cv_sizechange" = yes ; then
23175 echo "size-change succeeded ($cf_opts)" >&5
23176 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23182 echo "$as_me:23182: result: $cf_cv_sizechange" >&5
23183 echo "${ECHO_T}$cf_cv_sizechange" >&6
23184 if test "$cf_cv_sizechange" != no ; then
23186 cat >>confdefs.h <<\EOF
23187 #define HAVE_SIZECHANGE 1
23190 case "$cf_cv_sizechange" in
23192 cat >>confdefs.h <<EOF
23193 #define $cf_cv_sizechange 1
23200 echo "$as_me:23200: checking for memmove" >&5
23201 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23202 if test "${ac_cv_func_memmove+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 cat >"conftest.$ac_ext" <<_ACEOF
23206 #line 23206 "configure"
23207 #include "confdefs.h"
23208 #define memmove autoconf_temporary
23209 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23216 /* We use char because int might match the return type of a gcc2
23217 builtin and then its argument prototype would still apply. */
23218 char memmove (void);
23224 /* The GNU C library defines stubs for functions which it implements
23225 to always fail with ENOSYS. Some functions are actually named
23226 something starting with __ and the normal name is an alias. */
23227 #if defined (__stub_memmove) || defined (__stub___memmove)
23228 #error found stub for memmove
23236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23237 if { (eval echo "$as_me:23237: \"$ac_link\"") >&5
23238 (eval $ac_link) 2>&5
23240 echo "$as_me:23240: \$? = $ac_status" >&5
23241 (exit "$ac_status"); } &&
23242 { ac_try='test -s "conftest$ac_exeext"'
23243 { (eval echo "$as_me:23243: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:23246: \$? = $ac_status" >&5
23247 (exit "$ac_status"); }; }; then
23248 ac_cv_func_memmove=yes
23250 echo "$as_me: failed program was:" >&5
23251 cat "conftest.$ac_ext" >&5
23252 ac_cv_func_memmove=no
23254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23256 echo "$as_me:23256: result: $ac_cv_func_memmove" >&5
23257 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23258 if test "$ac_cv_func_memmove" = yes; then
23262 echo "$as_me:23262: checking for bcopy" >&5
23263 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23264 if test "${ac_cv_func_bcopy+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 cat >"conftest.$ac_ext" <<_ACEOF
23268 #line 23268 "configure"
23269 #include "confdefs.h"
23270 #define bcopy autoconf_temporary
23271 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23278 /* We use char because int might match the return type of a gcc2
23279 builtin and then its argument prototype would still apply. */
23286 /* The GNU C library defines stubs for functions which it implements
23287 to always fail with ENOSYS. Some functions are actually named
23288 something starting with __ and the normal name is an alias. */
23289 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23290 #error found stub for bcopy
23298 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23299 if { (eval echo "$as_me:23299: \"$ac_link\"") >&5
23300 (eval $ac_link) 2>&5
23302 echo "$as_me:23302: \$? = $ac_status" >&5
23303 (exit "$ac_status"); } &&
23304 { ac_try='test -s "conftest$ac_exeext"'
23305 { (eval echo "$as_me:23305: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23308 echo "$as_me:23308: \$? = $ac_status" >&5
23309 (exit "$ac_status"); }; }; then
23310 ac_cv_func_bcopy=yes
23312 echo "$as_me: failed program was:" >&5
23313 cat "conftest.$ac_ext" >&5
23314 ac_cv_func_bcopy=no
23316 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23318 echo "$as_me:23318: result: $ac_cv_func_bcopy" >&5
23319 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23320 if test "$ac_cv_func_bcopy" = yes; then
23322 echo "$as_me:23322: checking if bcopy does overlapping moves" >&5
23323 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23324 if test "${cf_cv_good_bcopy+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23328 if test "$cross_compiling" = yes; then
23329 cf_cv_good_bcopy=unknown
23331 cat >"conftest.$ac_ext" <<_ACEOF
23332 #line 23332 "configure"
23333 #include "confdefs.h"
23335 $ac_includes_default
23338 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23340 bcopy(data, temp, sizeof(data));
23341 bcopy(temp+10, temp, 15);
23342 bcopy(temp+5, temp+15, 10);
23343 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23347 rm -f "conftest$ac_exeext"
23348 if { (eval echo "$as_me:23348: \"$ac_link\"") >&5
23349 (eval $ac_link) 2>&5
23351 echo "$as_me:23351: \$? = $ac_status" >&5
23352 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23353 { (eval echo "$as_me:23353: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 echo "$as_me:23356: \$? = $ac_status" >&5
23357 (exit "$ac_status"); }; }; then
23358 cf_cv_good_bcopy=yes
23360 echo "$as_me: program exited with status $ac_status" >&5
23361 echo "$as_me: failed program was:" >&5
23362 cat "conftest.$ac_ext" >&5
23363 cf_cv_good_bcopy=no
23365 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23369 echo "$as_me:23369: result: $cf_cv_good_bcopy" >&5
23370 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23373 cf_cv_good_bcopy=no
23376 if test "$cf_cv_good_bcopy" = yes ; then
23378 cat >>confdefs.h <<\EOF
23379 #define USE_OK_BCOPY 1
23384 cat >>confdefs.h <<\EOF
23385 #define USE_MY_MEMMOVE 1
23392 tty >/dev/null 2>&1 || {
23393 for ac_func in posix_openpt
23395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23396 echo "$as_me:23396: checking for $ac_func" >&5
23397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23398 if eval "test \"\${$as_ac_var+set}\" = set"; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 cat >"conftest.$ac_ext" <<_ACEOF
23402 #line 23402 "configure"
23403 #include "confdefs.h"
23404 #define $ac_func autoconf_temporary
23405 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23412 /* We use char because int might match the return type of a gcc2
23413 builtin and then its argument prototype would still apply. */
23414 char $ac_func (void);
23420 /* The GNU C library defines stubs for functions which it implements
23421 to always fail with ENOSYS. Some functions are actually named
23422 something starting with __ and the normal name is an alias. */
23423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23424 #error found stub for $ac_func
23427 return $ac_func ();
23432 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23433 if { (eval echo "$as_me:23433: \"$ac_link\"") >&5
23434 (eval $ac_link) 2>&5
23436 echo "$as_me:23436: \$? = $ac_status" >&5
23437 (exit "$ac_status"); } &&
23438 { ac_try='test -s "conftest$ac_exeext"'
23439 { (eval echo "$as_me:23439: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23442 echo "$as_me:23442: \$? = $ac_status" >&5
23443 (exit "$ac_status"); }; }; then
23444 eval "$as_ac_var=yes"
23446 echo "$as_me: failed program was:" >&5
23447 cat "conftest.$ac_ext" >&5
23448 eval "$as_ac_var=no"
23450 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23452 echo "$as_me:23452: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23453 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23454 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23455 cat >>confdefs.h <<EOF
23456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23462 echo "$as_me:23462: checking if poll really works" >&5
23463 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23464 if test "${cf_cv_working_poll+set}" = set; then
23465 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 if test "$cross_compiling" = yes; then
23469 cf_cv_working_poll=unknown
23471 cat >"conftest.$ac_ext" <<_ACEOF
23472 #line 23472 "configure"
23473 #include "confdefs.h"
23475 $ac_includes_default
23482 #include <sys/poll.h>
23486 struct pollfd myfds;
23489 /* check for Darwin bug with respect to "devices" */
23490 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23493 myfds.events = POLLIN;
23496 ret = poll(&myfds, 1, 100);
23498 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23503 fd = open("/dev/tty", 2); /* O_RDWR */
23505 #ifdef HAVE_POSIX_OPENPT
23507 fd = posix_openpt(O_RDWR);
23512 /* also check with standard input */
23514 myfds.events = POLLIN;
23516 ret = poll(&myfds, 1, 100);
23521 ${cf_cv_main_return:-return}(ret < 0);
23524 rm -f "conftest$ac_exeext"
23525 if { (eval echo "$as_me:23525: \"$ac_link\"") >&5
23526 (eval $ac_link) 2>&5
23528 echo "$as_me:23528: \$? = $ac_status" >&5
23529 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23530 { (eval echo "$as_me:23530: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23533 echo "$as_me:23533: \$? = $ac_status" >&5
23534 (exit "$ac_status"); }; }; then
23535 cf_cv_working_poll=yes
23537 echo "$as_me: program exited with status $ac_status" >&5
23538 echo "$as_me: failed program was:" >&5
23539 cat "conftest.$ac_ext" >&5
23540 cf_cv_working_poll=no
23542 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23545 echo "$as_me:23545: result: $cf_cv_working_poll" >&5
23546 echo "${ECHO_T}$cf_cv_working_poll" >&6
23547 test "$cf_cv_working_poll" = "yes" &&
23548 cat >>confdefs.h <<\EOF
23549 #define HAVE_WORKING_POLL 1
23552 echo "$as_me:23552: checking for va_copy" >&5
23553 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23554 if test "${cf_cv_have_va_copy+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23558 cat >"conftest.$ac_ext" <<_ACEOF
23559 #line 23559 "configure"
23560 #include "confdefs.h"
23562 #include <stdarg.h>
23568 static va_list dst;
23569 static va_list src;
23575 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23576 if { (eval echo "$as_me:23576: \"$ac_link\"") >&5
23577 (eval $ac_link) 2>&5
23579 echo "$as_me:23579: \$? = $ac_status" >&5
23580 (exit "$ac_status"); } &&
23581 { ac_try='test -s "conftest$ac_exeext"'
23582 { (eval echo "$as_me:23582: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23585 echo "$as_me:23585: \$? = $ac_status" >&5
23586 (exit "$ac_status"); }; }; then
23587 cf_cv_have_va_copy=yes
23589 echo "$as_me: failed program was:" >&5
23590 cat "conftest.$ac_ext" >&5
23591 cf_cv_have_va_copy=no
23593 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23595 echo "$as_me:23595: result: $cf_cv_have_va_copy" >&5
23596 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23598 if test "$cf_cv_have_va_copy" = yes;
23601 cat >>confdefs.h <<\EOF
23602 #define HAVE_VA_COPY 1
23605 else # !cf_cv_have_va_copy
23607 echo "$as_me:23607: checking for __va_copy" >&5
23608 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23609 if test "${cf_cv_have___va_copy+set}" = set; then
23610 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 cat >"conftest.$ac_ext" <<_ACEOF
23614 #line 23614 "configure"
23615 #include "confdefs.h"
23617 #include <stdarg.h>
23623 static va_list dst;
23624 static va_list src;
23625 __va_copy(dst, src)
23630 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23631 if { (eval echo "$as_me:23631: \"$ac_link\"") >&5
23632 (eval $ac_link) 2>&5
23634 echo "$as_me:23634: \$? = $ac_status" >&5
23635 (exit "$ac_status"); } &&
23636 { ac_try='test -s "conftest$ac_exeext"'
23637 { (eval echo "$as_me:23637: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23640 echo "$as_me:23640: \$? = $ac_status" >&5
23641 (exit "$ac_status"); }; }; then
23642 cf_cv_have___va_copy=yes
23644 echo "$as_me: failed program was:" >&5
23645 cat "conftest.$ac_ext" >&5
23646 cf_cv_have___va_copy=no
23648 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23650 echo "$as_me:23650: result: $cf_cv_have___va_copy" >&5
23651 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23653 if test "$cf_cv_have___va_copy" = yes
23656 cat >>confdefs.h <<\EOF
23657 #define HAVE___VA_COPY 1
23660 else # !cf_cv_have___va_copy
23662 echo "$as_me:23662: checking for __builtin_va_copy" >&5
23663 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23664 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 cat >"conftest.$ac_ext" <<_ACEOF
23669 #line 23669 "configure"
23670 #include "confdefs.h"
23672 #include <stdarg.h>
23678 static va_list dst;
23679 static va_list src;
23680 __builtin_va_copy(dst, src)
23685 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23686 if { (eval echo "$as_me:23686: \"$ac_link\"") >&5
23687 (eval $ac_link) 2>&5
23689 echo "$as_me:23689: \$? = $ac_status" >&5
23690 (exit "$ac_status"); } &&
23691 { ac_try='test -s "conftest$ac_exeext"'
23692 { (eval echo "$as_me:23692: \"$ac_try\"") >&5
23693 (eval $ac_try) 2>&5
23695 echo "$as_me:23695: \$? = $ac_status" >&5
23696 (exit "$ac_status"); }; }; then
23697 cf_cv_have___builtin_va_copy=yes
23699 echo "$as_me: failed program was:" >&5
23700 cat "conftest.$ac_ext" >&5
23701 cf_cv_have___builtin_va_copy=no
23703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23705 echo "$as_me:23705: result: $cf_cv_have___builtin_va_copy" >&5
23706 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23708 test "$cf_cv_have___builtin_va_copy" = yes &&
23710 cat >>confdefs.h <<\EOF
23711 #define HAVE___BUILTIN_VA_COPY 1
23714 fi # cf_cv_have___va_copy
23716 fi # cf_cv_have_va_copy
23718 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23723 echo "$as_me:23723: checking if we can simply copy va_list" >&5
23724 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23725 if test "${cf_cv_pointer_va_list+set}" = set; then
23726 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 cat >"conftest.$ac_ext" <<_ACEOF
23730 #line 23730 "configure"
23731 #include "confdefs.h"
23733 #include <stdarg.h>
23746 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23747 if { (eval echo "$as_me:23747: \"$ac_link\"") >&5
23748 (eval $ac_link) 2>&5
23750 echo "$as_me:23750: \$? = $ac_status" >&5
23751 (exit "$ac_status"); } &&
23752 { ac_try='test -s "conftest$ac_exeext"'
23753 { (eval echo "$as_me:23753: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:23756: \$? = $ac_status" >&5
23757 (exit "$ac_status"); }; }; then
23758 cf_cv_pointer_va_list=yes
23760 echo "$as_me: failed program was:" >&5
23761 cat "conftest.$ac_ext" >&5
23762 cf_cv_pointer_va_list=no
23764 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23766 echo "$as_me:23766: result: $cf_cv_pointer_va_list" >&5
23767 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23769 if test "$cf_cv_pointer_va_list" = no
23771 echo "$as_me:23771: checking if we can copy va_list indirectly" >&5
23772 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23773 if test "${cf_cv_array_va_list+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 cat >"conftest.$ac_ext" <<_ACEOF
23778 #line 23778 "configure"
23779 #include "confdefs.h"
23781 #include <stdarg.h>
23794 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23795 if { (eval echo "$as_me:23795: \"$ac_link\"") >&5
23796 (eval $ac_link) 2>&5
23798 echo "$as_me:23798: \$? = $ac_status" >&5
23799 (exit "$ac_status"); } &&
23800 { ac_try='test -s "conftest$ac_exeext"'
23801 { (eval echo "$as_me:23801: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23804 echo "$as_me:23804: \$? = $ac_status" >&5
23805 (exit "$ac_status"); }; }; then
23806 cf_cv_array_va_list=yes
23808 echo "$as_me: failed program was:" >&5
23809 cat "conftest.$ac_ext" >&5
23810 cf_cv_array_va_list=no
23812 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23814 echo "$as_me:23814: result: $cf_cv_array_va_list" >&5
23815 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23816 test "$cf_cv_array_va_list" = yes &&
23817 cat >>confdefs.h <<\EOF
23818 #define ARRAY_VA_LIST 1
23825 echo "$as_me:23825: checking for pid_t" >&5
23826 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23827 if test "${ac_cv_type_pid_t+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23830 cat >"conftest.$ac_ext" <<_ACEOF
23831 #line 23831 "configure"
23832 #include "confdefs.h"
23833 $ac_includes_default
23839 if (sizeof (pid_t))
23845 rm -f "conftest.$ac_objext"
23846 if { (eval echo "$as_me:23846: \"$ac_compile\"") >&5
23847 (eval $ac_compile) 2>&5
23849 echo "$as_me:23849: \$? = $ac_status" >&5
23850 (exit "$ac_status"); } &&
23851 { ac_try='test -s "conftest.$ac_objext"'
23852 { (eval echo "$as_me:23852: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23855 echo "$as_me:23855: \$? = $ac_status" >&5
23856 (exit "$ac_status"); }; }; then
23857 ac_cv_type_pid_t=yes
23859 echo "$as_me: failed program was:" >&5
23860 cat "conftest.$ac_ext" >&5
23861 ac_cv_type_pid_t=no
23863 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23865 echo "$as_me:23865: result: $ac_cv_type_pid_t" >&5
23866 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23867 if test "$ac_cv_type_pid_t" = yes; then
23871 cat >>confdefs.h <<EOF
23877 for ac_header in unistd.h vfork.h
23879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23880 echo "$as_me:23880: checking for $ac_header" >&5
23881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23885 cat >"conftest.$ac_ext" <<_ACEOF
23886 #line 23886 "configure"
23887 #include "confdefs.h"
23888 #include <$ac_header>
23890 if { (eval echo "$as_me:23890: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23891 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23893 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23895 cat conftest.err >&5
23896 echo "$as_me:23896: \$? = $ac_status" >&5
23897 (exit "$ac_status"); } >/dev/null; then
23898 if test -s conftest.err; then
23899 ac_cpp_err=$ac_c_preproc_warn_flag
23906 if test -z "$ac_cpp_err"; then
23907 eval "$as_ac_Header=yes"
23909 echo "$as_me: failed program was:" >&5
23910 cat "conftest.$ac_ext" >&5
23911 eval "$as_ac_Header=no"
23913 rm -f conftest.err "conftest.$ac_ext"
23915 echo "$as_me:23915: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23916 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23917 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23918 cat >>confdefs.h <<EOF
23919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23925 for ac_func in fork vfork
23927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23928 echo "$as_me:23928: checking for $ac_func" >&5
23929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23930 if eval "test \"\${$as_ac_var+set}\" = set"; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23933 cat >"conftest.$ac_ext" <<_ACEOF
23934 #line 23934 "configure"
23935 #include "confdefs.h"
23936 #define $ac_func autoconf_temporary
23937 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23944 /* We use char because int might match the return type of a gcc2
23945 builtin and then its argument prototype would still apply. */
23946 char $ac_func (void);
23952 /* The GNU C library defines stubs for functions which it implements
23953 to always fail with ENOSYS. Some functions are actually named
23954 something starting with __ and the normal name is an alias. */
23955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23956 #error found stub for $ac_func
23959 return $ac_func ();
23964 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23965 if { (eval echo "$as_me:23965: \"$ac_link\"") >&5
23966 (eval $ac_link) 2>&5
23968 echo "$as_me:23968: \$? = $ac_status" >&5
23969 (exit "$ac_status"); } &&
23970 { ac_try='test -s "conftest$ac_exeext"'
23971 { (eval echo "$as_me:23971: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23974 echo "$as_me:23974: \$? = $ac_status" >&5
23975 (exit "$ac_status"); }; }; then
23976 eval "$as_ac_var=yes"
23978 echo "$as_me: failed program was:" >&5
23979 cat "conftest.$ac_ext" >&5
23980 eval "$as_ac_var=no"
23982 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23984 echo "$as_me:23984: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23985 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23986 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23987 cat >>confdefs.h <<EOF
23988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23994 ac_cv_func_fork_works=$ac_cv_func_fork
23995 if test "x$ac_cv_func_fork" = xyes; then
23996 echo "$as_me:23996: checking for working fork" >&5
23997 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23998 if test "${ac_cv_func_fork_works+set}" = set; then
23999 echo $ECHO_N "(cached) $ECHO_C" >&6
24001 if test "$cross_compiling" = yes; then
24002 ac_cv_func_fork_works=cross
24004 cat >"conftest.$ac_ext" <<_ACEOF
24005 /* By Rüdiger Kuhlmann. */
24006 #include <sys/types.h>
24008 # include <unistd.h>
24010 /* Some systems only have a dummy stub for fork() */
24014 $ac_main_return (1);
24015 $ac_main_return (0);
24018 rm -f "conftest$ac_exeext"
24019 if { (eval echo "$as_me:24019: \"$ac_link\"") >&5
24020 (eval $ac_link) 2>&5
24022 echo "$as_me:24022: \$? = $ac_status" >&5
24023 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24024 { (eval echo "$as_me:24024: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24027 echo "$as_me:24027: \$? = $ac_status" >&5
24028 (exit "$ac_status"); }; }; then
24029 ac_cv_func_fork_works=yes
24031 echo "$as_me: program exited with status $ac_status" >&5
24032 echo "$as_me: failed program was:" >&5
24033 cat "conftest.$ac_ext" >&5
24034 ac_cv_func_fork_works=no
24036 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24039 echo "$as_me:24039: result: $ac_cv_func_fork_works" >&5
24040 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24043 if test "x$ac_cv_func_fork_works" = xcross; then
24045 *-*-amigaos* | *-*-msdosdjgpp*)
24046 # Override, as these systems have only a dummy fork() stub
24047 ac_cv_func_fork_works=no
24050 ac_cv_func_fork_works=yes
24053 { echo "$as_me:24053: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
24054 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
24056 ac_cv_func_vfork_works=$ac_cv_func_vfork
24057 if test "x$ac_cv_func_vfork" = xyes; then
24058 echo "$as_me:24058: checking for working vfork" >&5
24059 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24060 if test "${ac_cv_func_vfork_works+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24063 if test "$cross_compiling" = yes; then
24064 ac_cv_func_vfork_works=cross
24066 cat >"conftest.$ac_ext" <<_ACEOF
24067 #line 24067 "configure"
24068 #include "confdefs.h"
24069 /* Thanks to Paul Eggert for this test. */
24071 #include <sys/types.h>
24072 #include <sys/stat.h>
24074 # include <unistd.h>
24077 # include <vfork.h>
24079 /* On some sparc systems, changes by the child to local and incoming
24080 argument registers are propagated back to the parent. The compiler
24081 is told about this with #include <vfork.h>, but some compilers
24082 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24083 static variable whose address is put into a register that is
24084 clobbered by the vfork. */
24086 sparc_address_test (int arg)
24088 static pid_t child;
24106 pid_t parent = getpid ();
24109 sparc_address_test ();
24114 /* Here is another test for sparc vfork register problems. This
24115 test uses lots of local variables, at least as many local
24116 variables as main has allocated so far including compiler
24117 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24118 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24119 reuse the register of parent for one of the local variables,
24120 since it will think that parent can't possibly be used any more
24121 in this routine. Assigning to the local variable will thus
24122 munge parent in the parent process. */
24124 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24125 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24126 /* Convince the compiler that p..p7 are live; otherwise, it might
24127 use the same hardware register for all 8 local variables. */
24128 if (p != p1 || p != p2 || p != p3 || p != p4
24129 || p != p5 || p != p6 || p != p7)
24132 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24133 from child file descriptors. If the child closes a descriptor
24134 before it execs or exits, this munges the parent's descriptor
24135 as well. Test for this by closing stdout in the child. */
24136 _exit(close(fileno(stdout)) != 0);
24141 while (wait(&status) != child)
24144 /* Was there some problem with vforking? */
24147 /* Did the child fail? (This shouldn't happen.) */
24150 /* Did the vfork/compiler bug occur? */
24151 || parent != getpid()
24153 /* Did the file descriptor bug occur? */
24154 || fstat(fileno(stdout), &st) != 0
24159 rm -f "conftest$ac_exeext"
24160 if { (eval echo "$as_me:24160: \"$ac_link\"") >&5
24161 (eval $ac_link) 2>&5
24163 echo "$as_me:24163: \$? = $ac_status" >&5
24164 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24165 { (eval echo "$as_me:24165: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24168 echo "$as_me:24168: \$? = $ac_status" >&5
24169 (exit "$ac_status"); }; }; then
24170 ac_cv_func_vfork_works=yes
24172 echo "$as_me: program exited with status $ac_status" >&5
24173 echo "$as_me: failed program was:" >&5
24174 cat "conftest.$ac_ext" >&5
24175 ac_cv_func_vfork_works=no
24177 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24180 echo "$as_me:24180: result: $ac_cv_func_vfork_works" >&5
24181 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24184 if test "x$ac_cv_func_fork_works" = xcross; then
24185 ac_cv_func_vfork_works=ac_cv_func_vfork
24186 { echo "$as_me:24186: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24187 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24190 if test "x$ac_cv_func_vfork_works" = xyes; then
24192 cat >>confdefs.h <<\EOF
24193 #define HAVE_WORKING_VFORK 1
24198 cat >>confdefs.h <<\EOF
24203 if test "x$ac_cv_func_fork_works" = xyes; then
24205 cat >>confdefs.h <<\EOF
24206 #define HAVE_WORKING_FORK 1
24211 echo "$as_me:24211: checking if fopen accepts explicit binary mode" >&5
24212 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24213 if test "${cf_cv_fopen_bin_r+set}" = set; then
24214 echo $ECHO_N "(cached) $ECHO_C" >&6
24217 if test "$cross_compiling" = yes; then
24218 cf_cv_fopen_bin_r=unknown
24220 cat >"conftest.$ac_ext" <<_ACEOF
24221 #line 24221 "configure"
24222 #include "confdefs.h"
24224 $ac_includes_default
24228 FILE *fp = fopen("conftest.tmp", "wb");
24232 for (p = 0; p < 256; ++p) {
24236 fp = fopen("conftest.tmp", "rb");
24238 for (p = 0; p < 256; ++p) {
24251 ${cf_cv_main_return:-return} (rc);
24255 rm -f "conftest$ac_exeext"
24256 if { (eval echo "$as_me:24256: \"$ac_link\"") >&5
24257 (eval $ac_link) 2>&5
24259 echo "$as_me:24259: \$? = $ac_status" >&5
24260 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24261 { (eval echo "$as_me:24261: \"$ac_try\"") >&5
24262 (eval $ac_try) 2>&5
24264 echo "$as_me:24264: \$? = $ac_status" >&5
24265 (exit "$ac_status"); }; }; then
24266 cf_cv_fopen_bin_r=yes
24268 echo "$as_me: program exited with status $ac_status" >&5
24269 echo "$as_me: failed program was:" >&5
24270 cat "conftest.$ac_ext" >&5
24271 cf_cv_fopen_bin_r=no
24273 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24277 echo "$as_me:24277: result: $cf_cv_fopen_bin_r" >&5
24278 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24279 test "x$cf_cv_fopen_bin_r" != xno &&
24280 cat >>confdefs.h <<\EOF
24281 #define USE_FOPEN_BIN_R 1
24284 # special check for test/ditto.c
24286 echo "$as_me:24286: checking for openpty in -lutil" >&5
24287 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24288 if test "${ac_cv_lib_util_openpty+set}" = set; then
24289 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 ac_check_lib_save_LIBS=$LIBS
24292 LIBS="-lutil $LIBS"
24293 cat >"conftest.$ac_ext" <<_ACEOF
24294 #line 24294 "configure"
24295 #include "confdefs.h"
24297 /* Override any gcc2 internal prototype to avoid an error. */
24301 /* We use char because int might match the return type of a gcc2
24302 builtin and then its argument prototype would still apply. */
24312 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24313 if { (eval echo "$as_me:24313: \"$ac_link\"") >&5
24314 (eval $ac_link) 2>&5
24316 echo "$as_me:24316: \$? = $ac_status" >&5
24317 (exit "$ac_status"); } &&
24318 { ac_try='test -s "conftest$ac_exeext"'
24319 { (eval echo "$as_me:24319: \"$ac_try\"") >&5
24320 (eval $ac_try) 2>&5
24322 echo "$as_me:24322: \$? = $ac_status" >&5
24323 (exit "$ac_status"); }; }; then
24324 ac_cv_lib_util_openpty=yes
24326 echo "$as_me: failed program was:" >&5
24327 cat "conftest.$ac_ext" >&5
24328 ac_cv_lib_util_openpty=no
24330 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24331 LIBS=$ac_check_lib_save_LIBS
24333 echo "$as_me:24333: result: $ac_cv_lib_util_openpty" >&5
24334 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24335 if test "$ac_cv_lib_util_openpty" = yes; then
24341 echo "$as_me:24341: checking for openpty header" >&5
24342 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24343 if test "${cf_cv_func_openpty+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24347 cf_save_LIBS="$LIBS"
24348 test "$cf_cv_lib_util" = yes && {
24349 cf_add_libs="$LIBS"
24352 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24353 # filter duplicates
24354 for cf_add_1lib in $cf_add_0lib; do
24355 for cf_add_2lib in $cf_add_libs; do
24356 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24361 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24363 LIBS="$cf_add_libs"
24365 for cf_header in pty.h libutil.h util.h
24367 cat >"conftest.$ac_ext" <<_ACEOF
24368 #line 24368 "configure"
24369 #include "confdefs.h"
24371 #include <$cf_header>
24377 int x = openpty((int *)0, (int *)0, (char *)0,
24378 (struct termios *)0, (struct winsize *)0);
24384 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24385 if { (eval echo "$as_me:24385: \"$ac_link\"") >&5
24386 (eval $ac_link) 2>&5
24388 echo "$as_me:24388: \$? = $ac_status" >&5
24389 (exit "$ac_status"); } &&
24390 { ac_try='test -s "conftest$ac_exeext"'
24391 { (eval echo "$as_me:24391: \"$ac_try\"") >&5
24392 (eval $ac_try) 2>&5
24394 echo "$as_me:24394: \$? = $ac_status" >&5
24395 (exit "$ac_status"); }; }; then
24397 cf_cv_func_openpty=$cf_header
24401 echo "$as_me: failed program was:" >&5
24402 cat "conftest.$ac_ext" >&5
24404 cf_cv_func_openpty=no
24407 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24409 LIBS="$cf_save_LIBS"
24412 echo "$as_me:24412: result: $cf_cv_func_openpty" >&5
24413 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24415 if test "$cf_cv_func_openpty" != no ; then
24417 cat >>confdefs.h <<EOF
24418 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24421 cat >>confdefs.h <<\EOF
24422 #define USE_XTERM_PTY 1
24425 if test "x$cf_cv_lib_util" = xyes ; then
24427 cf_add_libs="$TEST_LIBS"
24430 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24431 # filter duplicates
24432 for cf_add_1lib in $cf_add_0lib; do
24433 for cf_add_2lib in $cf_add_libs; do
24434 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24439 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24441 TEST_LIBS="$cf_add_libs"
24446 if test "$with_hashed_db" != no ; then
24448 cat >>confdefs.h <<\EOF
24449 #define USE_HASHED_DB 1
24452 case $with_hashed_db in
24456 if test -d "$with_hashed_db" ; then
24458 if test -n "$with_hashed_db/include" ; then
24459 for cf_add_incdir in $with_hashed_db/include
24461 while test "$cf_add_incdir" != /usr/include
24463 if test -d "$cf_add_incdir"
24466 if test -n "$CFLAGS$CPPFLAGS" ; then
24467 # a loop is needed to ensure we can add subdirs of existing dirs
24468 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24469 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24470 cf_have_incdir=yes; break
24475 if test "$cf_have_incdir" = no ; then
24476 if test "$cf_add_incdir" = /usr/local/include ; then
24477 if test "$GCC" = yes
24479 cf_save_CPPFLAGS=$CPPFLAGS
24481 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24482 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24484 cat >"conftest.$ac_ext" <<_ACEOF
24485 #line 24485 "configure"
24486 #include "confdefs.h"
24496 rm -f "conftest.$ac_objext"
24497 if { (eval echo "$as_me:24497: \"$ac_compile\"") >&5
24498 (eval $ac_compile) 2>&5
24500 echo "$as_me:24500: \$? = $ac_status" >&5
24501 (exit "$ac_status"); } &&
24502 { ac_try='test -s "conftest.$ac_objext"'
24503 { (eval echo "$as_me:24503: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24506 echo "$as_me:24506: \$? = $ac_status" >&5
24507 (exit "$ac_status"); }; }; then
24510 echo "$as_me: failed program was:" >&5
24511 cat "conftest.$ac_ext" >&5
24514 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24515 CPPFLAGS=$cf_save_CPPFLAGS
24520 if test "$cf_have_incdir" = no ; then
24521 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24523 echo "${as_me:-configure}:24523: testing adding $cf_add_incdir to include-path ..." 1>&5
24525 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24527 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24528 test "$cf_top_incdir" = "$cf_add_incdir" && break
24529 cf_add_incdir="$cf_top_incdir"
24540 if test -n "$with_hashed_db/lib" ; then
24541 for cf_add_libdir in $with_hashed_db/lib
24543 if test "$cf_add_libdir" = /usr/lib ; then
24545 elif test -d "$cf_add_libdir"
24548 if test -n "$LDFLAGS$LIBS" ; then
24549 # a loop is needed to ensure we can add subdirs of existing dirs
24550 for cf_test_libdir in $LDFLAGS $LIBS ; do
24551 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24552 cf_have_libdir=yes; break
24556 if test "$cf_have_libdir" = no ; then
24557 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24559 echo "${as_me:-configure}:24559: testing adding $cf_add_libdir to library-path ..." 1>&5
24561 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24568 case "$with_hashed_db" in
24570 { echo "$as_me:24570: WARNING: no such directory $with_hashed_db" >&5
24571 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24577 test "x$prefix" != "xNONE" && \
24578 test -d "$prefix" && \
24580 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24581 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24582 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24583 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24584 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24585 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24588 for cf_subdir_prefix in \
24597 test "x$cf_subdir_prefix" != "x$prefix" && \
24598 test -d "$cf_subdir_prefix" && \
24599 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24600 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24601 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24602 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24603 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24604 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24605 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"
24610 for cf_item in $cf_search
24613 (*/$with_hashed_db)
24615 if test -n "$cf_item" ; then
24616 for cf_add_incdir in $cf_item
24618 while test "$cf_add_incdir" != /usr/include
24620 if test -d "$cf_add_incdir"
24623 if test -n "$CFLAGS$CPPFLAGS" ; then
24624 # a loop is needed to ensure we can add subdirs of existing dirs
24625 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24626 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24627 cf_have_incdir=yes; break
24632 if test "$cf_have_incdir" = no ; then
24633 if test "$cf_add_incdir" = /usr/local/include ; then
24634 if test "$GCC" = yes
24636 cf_save_CPPFLAGS=$CPPFLAGS
24638 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24639 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24641 cat >"conftest.$ac_ext" <<_ACEOF
24642 #line 24642 "configure"
24643 #include "confdefs.h"
24653 rm -f "conftest.$ac_objext"
24654 if { (eval echo "$as_me:24654: \"$ac_compile\"") >&5
24655 (eval $ac_compile) 2>&5
24657 echo "$as_me:24657: \$? = $ac_status" >&5
24658 (exit "$ac_status"); } &&
24659 { ac_try='test -s "conftest.$ac_objext"'
24660 { (eval echo "$as_me:24660: \"$ac_try\"") >&5
24661 (eval $ac_try) 2>&5
24663 echo "$as_me:24663: \$? = $ac_status" >&5
24664 (exit "$ac_status"); }; }; then
24667 echo "$as_me: failed program was:" >&5
24668 cat "conftest.$ac_ext" >&5
24671 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24672 CPPFLAGS=$cf_save_CPPFLAGS
24677 if test "$cf_have_incdir" = no ; then
24678 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24680 echo "${as_me:-configure}:24680: testing adding $cf_add_incdir to include-path ..." 1>&5
24682 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24684 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24685 test "$cf_top_incdir" = "$cf_add_incdir" && break
24686 cf_add_incdir="$cf_top_incdir"
24703 test "x$prefix" != "xNONE" && \
24704 test -d "$prefix" && \
24706 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24707 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24708 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24709 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24710 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24711 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24714 for cf_subdir_prefix in \
24723 test "x$cf_subdir_prefix" != "x$prefix" && \
24724 test -d "$cf_subdir_prefix" && \
24725 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24726 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24727 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24728 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24729 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24730 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24731 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"
24736 for cf_item in $cf_search
24739 (*/$with_hashed_db)
24741 if test -n "$cf_item" ; then
24742 for cf_add_libdir in $cf_item
24744 if test "$cf_add_libdir" = /usr/lib ; then
24746 elif test -d "$cf_add_libdir"
24749 if test -n "$LDFLAGS$LIBS" ; then
24750 # a loop is needed to ensure we can add subdirs of existing dirs
24751 for cf_test_libdir in $LDFLAGS $LIBS ; do
24752 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24753 cf_have_libdir=yes; break
24757 if test "$cf_have_libdir" = no ; then
24758 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24760 echo "${as_me:-configure}:24760: testing adding $cf_add_libdir to library-path ..." 1>&5
24762 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24777 echo "$as_me:24777: checking for db.h" >&5
24778 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24779 if test "${ac_cv_header_db_h+set}" = set; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24782 cat >"conftest.$ac_ext" <<_ACEOF
24783 #line 24783 "configure"
24784 #include "confdefs.h"
24787 if { (eval echo "$as_me:24787: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24788 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24790 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24792 cat conftest.err >&5
24793 echo "$as_me:24793: \$? = $ac_status" >&5
24794 (exit "$ac_status"); } >/dev/null; then
24795 if test -s conftest.err; then
24796 ac_cpp_err=$ac_c_preproc_warn_flag
24803 if test -z "$ac_cpp_err"; then
24804 ac_cv_header_db_h=yes
24806 echo "$as_me: failed program was:" >&5
24807 cat "conftest.$ac_ext" >&5
24808 ac_cv_header_db_h=no
24810 rm -f conftest.err "conftest.$ac_ext"
24812 echo "$as_me:24812: result: $ac_cv_header_db_h" >&5
24813 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24814 if test "$ac_cv_header_db_h" = yes; then
24816 echo "$as_me:24816: checking for version of db" >&5
24817 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24818 if test "${cf_cv_hashed_db_version+set}" = set; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24822 cf_cv_hashed_db_version=unknown
24824 for cf_db_version in 1 2 3 4 5 6
24827 echo "${as_me:-configure}:24827: testing checking for db version $cf_db_version ..." 1>&5
24829 cat >"conftest.$ac_ext" <<_ACEOF
24830 #line 24830 "configure"
24831 #include "confdefs.h"
24833 $ac_includes_default
24836 #ifdef DB_VERSION_MAJOR
24837 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24838 #if $cf_db_version == DB_VERSION_MAJOR
24841 #error $cf_db_version is not DB_VERSION_MAJOR
24844 #if $cf_db_version == 1
24845 /* ok: assuming this is DB 1.8.5 */
24847 #error $cf_db_version is not 1
24859 rm -f "conftest.$ac_objext"
24860 if { (eval echo "$as_me:24860: \"$ac_compile\"") >&5
24861 (eval $ac_compile) 2>&5
24863 echo "$as_me:24863: \$? = $ac_status" >&5
24864 (exit "$ac_status"); } &&
24865 { ac_try='test -s "conftest.$ac_objext"'
24866 { (eval echo "$as_me:24866: \"$ac_try\"") >&5
24867 (eval $ac_try) 2>&5
24869 echo "$as_me:24869: \$? = $ac_status" >&5
24870 (exit "$ac_status"); }; }; then
24872 cf_cv_hashed_db_version=$cf_db_version
24876 echo "$as_me: failed program was:" >&5
24877 cat "conftest.$ac_ext" >&5
24879 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24883 echo "$as_me:24883: result: $cf_cv_hashed_db_version" >&5
24884 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24886 if test "$cf_cv_hashed_db_version" = unknown ; then
24887 { { echo "$as_me:24887: error: Cannot determine version of db" >&5
24888 echo "$as_me: error: Cannot determine version of db" >&2;}
24889 { (exit 1); exit 1; }; }
24892 echo "$as_me:24892: checking for db libraries" >&5
24893 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24894 if test "${cf_cv_hashed_db_libs+set}" = set; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24898 cf_cv_hashed_db_libs=unknown
24899 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24901 cf_save_libs="$LIBS"
24902 if test -n "$cf_db_libs"; then
24904 cf_add_libs="$LIBS"
24907 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24908 # filter duplicates
24909 for cf_add_1lib in $cf_add_0lib; do
24910 for cf_add_2lib in $cf_add_libs; do
24911 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24916 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24918 LIBS="$cf_add_libs"
24922 echo "${as_me:-configure}:24922: testing checking for library $cf_db_libs ..." 1>&5
24924 cat >"conftest.$ac_ext" <<_ACEOF
24925 #line 24925 "configure"
24926 #include "confdefs.h"
24928 $ac_includes_default
24935 char *path = "/tmp/foo";
24936 #ifdef DB_VERSION_MAJOR
24937 #if DB_VERSION_MAJOR >= 4
24939 db_create(&result, NULL, 0);
24940 result->open(result,
24947 #elif DB_VERSION_MAJOR >= 3
24949 db_create(&result, NULL, 0);
24950 result->open(result,
24956 #elif DB_VERSION_MAJOR >= 2
24965 #endif /* DB_VERSION_MAJOR */
24967 DB *result = dbopen(path,
24973 ${cf_cv_main_return:-return}(result != 0)
24979 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24980 if { (eval echo "$as_me:24980: \"$ac_link\"") >&5
24981 (eval $ac_link) 2>&5
24983 echo "$as_me:24983: \$? = $ac_status" >&5
24984 (exit "$ac_status"); } &&
24985 { ac_try='test -s "conftest$ac_exeext"'
24986 { (eval echo "$as_me:24986: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24989 echo "$as_me:24989: \$? = $ac_status" >&5
24990 (exit "$ac_status"); }; }; then
24992 if test -n "$cf_db_libs" ; then
24993 cf_cv_hashed_db_libs=$cf_db_libs
24995 cf_cv_hashed_db_libs=default
24997 LIBS="$cf_save_libs"
25001 echo "$as_me: failed program was:" >&5
25002 cat "conftest.$ac_ext" >&5
25004 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25005 LIBS="$cf_save_libs"
25009 echo "$as_me:25009: result: $cf_cv_hashed_db_libs" >&5
25010 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
25012 if test "$cf_cv_hashed_db_libs" = unknown ; then
25013 { { echo "$as_me:25013: error: Cannot determine library for db" >&5
25014 echo "$as_me: error: Cannot determine library for db" >&2;}
25015 { (exit 1); exit 1; }; }
25016 elif test "$cf_cv_hashed_db_libs" != default ; then
25018 cf_add_libs="$LIBS"
25021 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25022 # filter duplicates
25023 for cf_add_1lib in $cf_add_0lib; do
25024 for cf_add_2lib in $cf_add_libs; do
25025 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25030 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25032 LIBS="$cf_add_libs"
25039 { { echo "$as_me:25039: error: Cannot find db.h" >&5
25040 echo "$as_me: error: Cannot find db.h" >&2;}
25041 { (exit 1); exit 1; }; }
25047 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
25048 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25049 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25052 # Just in case, check if the C compiler has a bool type.
25054 echo "$as_me:25054: checking if we should include stdbool.h" >&5
25055 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25057 if test "${cf_cv_header_stdbool_h+set}" = set; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25061 cat >"conftest.$ac_ext" <<_ACEOF
25062 #line 25062 "configure"
25063 #include "confdefs.h"
25073 rm -f "conftest.$ac_objext"
25074 if { (eval echo "$as_me:25074: \"$ac_compile\"") >&5
25075 (eval $ac_compile) 2>&5
25077 echo "$as_me:25077: \$? = $ac_status" >&5
25078 (exit "$ac_status"); } &&
25079 { ac_try='test -s "conftest.$ac_objext"'
25080 { (eval echo "$as_me:25080: \"$ac_try\"") >&5
25081 (eval $ac_try) 2>&5
25083 echo "$as_me:25083: \$? = $ac_status" >&5
25084 (exit "$ac_status"); }; }; then
25085 cf_cv_header_stdbool_h=0
25087 echo "$as_me: failed program was:" >&5
25088 cat "conftest.$ac_ext" >&5
25089 cat >"conftest.$ac_ext" <<_ACEOF
25090 #line 25090 "configure"
25091 #include "confdefs.h"
25094 #include <stdbool.h>
25105 rm -f "conftest.$ac_objext"
25106 if { (eval echo "$as_me:25106: \"$ac_compile\"") >&5
25107 (eval $ac_compile) 2>&5
25109 echo "$as_me:25109: \$? = $ac_status" >&5
25110 (exit "$ac_status"); } &&
25111 { ac_try='test -s "conftest.$ac_objext"'
25112 { (eval echo "$as_me:25112: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25115 echo "$as_me:25115: \$? = $ac_status" >&5
25116 (exit "$ac_status"); }; }; then
25117 cf_cv_header_stdbool_h=1
25119 echo "$as_me: failed program was:" >&5
25120 cat "conftest.$ac_ext" >&5
25121 cf_cv_header_stdbool_h=0
25123 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25125 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25128 if test "$cf_cv_header_stdbool_h" = 1
25129 then echo "$as_me:25129: result: yes" >&5
25130 echo "${ECHO_T}yes" >&6
25131 else echo "$as_me:25131: result: no" >&5
25132 echo "${ECHO_T}no" >&6
25135 echo "$as_me:25135: checking for builtin bool type" >&5
25136 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25138 if test "${cf_cv_cc_bool_type+set}" = set; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 cat >"conftest.$ac_ext" <<_ACEOF
25143 #line 25143 "configure"
25144 #include "confdefs.h"
25147 #include <sys/types.h>
25157 rm -f "conftest.$ac_objext"
25158 if { (eval echo "$as_me:25158: \"$ac_compile\"") >&5
25159 (eval $ac_compile) 2>&5
25161 echo "$as_me:25161: \$? = $ac_status" >&5
25162 (exit "$ac_status"); } &&
25163 { ac_try='test -s "conftest.$ac_objext"'
25164 { (eval echo "$as_me:25164: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25167 echo "$as_me:25167: \$? = $ac_status" >&5
25168 (exit "$ac_status"); }; }; then
25169 cf_cv_cc_bool_type=1
25171 echo "$as_me: failed program was:" >&5
25172 cat "conftest.$ac_ext" >&5
25173 cf_cv_cc_bool_type=0
25175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25179 if test "$cf_cv_cc_bool_type" = 1
25180 then echo "$as_me:25180: result: yes" >&5
25181 echo "${ECHO_T}yes" >&6
25182 else echo "$as_me:25182: result: no" >&5
25183 echo "${ECHO_T}no" >&6
25186 # Check for C++ compiler characteristics (and ensure that it's there!)
25187 if test -n "$CXX" ; then
25189 ac_cpp='$CXXCPP $CPPFLAGS'
25190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25191 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25193 ac_main_return="return"
25195 if test -n "$GXX" ; then
25198 LIBS="$LIBS $CXXLIBS"
25199 echo "$as_me:25199: checking if we already have C++ library" >&5
25200 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25201 cat >"conftest.$ac_ext" <<_ACEOF
25202 #line 25202 "configure"
25203 #include "confdefs.h"
25205 #include <iostream>
25210 std::cout << "Hello World!" << std::endl;
25215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25216 if { (eval echo "$as_me:25216: \"$ac_link\"") >&5
25217 (eval $ac_link) 2>&5
25219 echo "$as_me:25219: \$? = $ac_status" >&5
25220 (exit "$ac_status"); } &&
25221 { ac_try='test -s "conftest$ac_exeext"'
25222 { (eval echo "$as_me:25222: \"$ac_try\"") >&5
25223 (eval $ac_try) 2>&5
25225 echo "$as_me:25225: \$? = $ac_status" >&5
25226 (exit "$ac_status"); }; }; then
25227 cf_have_libstdcpp=yes
25229 echo "$as_me: failed program was:" >&5
25230 cat "conftest.$ac_ext" >&5
25231 cf_have_libstdcpp=no
25233 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25234 echo "$as_me:25234: result: $cf_have_libstdcpp" >&5
25235 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25238 if test "$cf_have_libstdcpp" != yes
25240 case "$cf_cv_system_name" in
25242 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25243 cf_stdcpp_libname=stdcpp
25245 cf_stdcpp_libname=stdc++
25249 cf_stdcpp_libname=stdc++
25253 echo "$as_me:25253: checking for library $cf_stdcpp_libname" >&5
25254 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25255 if test "${cf_cv_libstdcpp+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25260 LIBS="$LIBS $CXXLIBS"
25262 cf_add_libs="$LIBS"
25265 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25266 # filter duplicates
25267 for cf_add_1lib in $cf_add_0lib; do
25268 for cf_add_2lib in $cf_add_libs; do
25269 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25274 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25276 LIBS="$cf_add_libs"
25278 cat >"conftest.$ac_ext" <<_ACEOF
25279 #line 25279 "configure"
25280 #include "confdefs.h"
25282 #include <iostream>
25287 std::cout << "Hello World!" << std::endl;
25292 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25293 if { (eval echo "$as_me:25293: \"$ac_link\"") >&5
25294 (eval $ac_link) 2>&5
25296 echo "$as_me:25296: \$? = $ac_status" >&5
25297 (exit "$ac_status"); } &&
25298 { ac_try='test -s "conftest$ac_exeext"'
25299 { (eval echo "$as_me:25299: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25302 echo "$as_me:25302: \$? = $ac_status" >&5
25303 (exit "$ac_status"); }; }; then
25304 cf_cv_libstdcpp=yes
25306 echo "$as_me: failed program was:" >&5
25307 cat "conftest.$ac_ext" >&5
25310 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25314 echo "$as_me:25314: result: $cf_cv_libstdcpp" >&5
25315 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25316 test "$cf_cv_libstdcpp" = yes && {
25317 cf_add_libs="$CXXLIBS"
25320 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25321 # filter duplicates
25322 for cf_add_1lib in $cf_add_0lib; do
25323 for cf_add_2lib in $cf_add_libs; do
25324 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25329 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25331 CXXLIBS="$cf_add_libs"
25336 echo "$as_me:25336: checking whether $CXX understands -c and -o together" >&5
25337 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25338 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25339 echo $ECHO_N "(cached) $ECHO_C" >&6
25342 cat > conftest.$ac_ext <<CF_EOF
25345 ${cf_cv_main_return:-return}(0);
25348 # We do the test twice because some compilers refuse to overwrite an
25349 # existing .o file with -o, though they will create one.
25350 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25351 if { (eval echo "$as_me:25351: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:25354: \$? = $ac_status" >&5
25355 (exit "$ac_status"); } &&
25356 test -f conftest2.$ac_objext && { (eval echo "$as_me:25356: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25359 echo "$as_me:25359: \$? = $ac_status" >&5
25360 (exit "$ac_status"); };
25362 eval cf_cv_prog_CXX_c_o=yes
25364 eval cf_cv_prog_CXX_c_o=no
25369 if test "$cf_cv_prog_CXX_c_o" = yes; then
25370 echo "$as_me:25370: result: yes" >&5
25371 echo "${ECHO_T}yes" >&6
25373 echo "$as_me:25373: result: no" >&5
25374 echo "${ECHO_T}no" >&6
25377 case "$GXX_VERSION" in
25378 (1.*|2.[0-6]*|[1-9][0-9].*)
25383 cf_cxx_library=unknown
25384 case "$cf_cv_system_name" in
25392 if test "$GXX" = yes; then
25393 echo "$as_me:25393: checking for lib$cf_gpp_libname" >&5
25394 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25397 cf_add_libs="$LIBS"
25400 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25401 # filter duplicates
25402 for cf_add_1lib in $cf_add_0lib; do
25403 for cf_add_2lib in $cf_add_libs; do
25404 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25409 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25411 LIBS="$cf_add_libs"
25413 cat >"conftest.$ac_ext" <<_ACEOF
25414 #line 25414 "configure"
25415 #include "confdefs.h"
25417 #include <$cf_gpp_libname/builtin.h>
25422 two_arg_error_handler_t foo2 = lib_error_handler
25427 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25428 if { (eval echo "$as_me:25428: \"$ac_link\"") >&5
25429 (eval $ac_link) 2>&5
25431 echo "$as_me:25431: \$? = $ac_status" >&5
25432 (exit "$ac_status"); } &&
25433 { ac_try='test -s "conftest$ac_exeext"'
25434 { (eval echo "$as_me:25434: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25437 echo "$as_me:25437: \$? = $ac_status" >&5
25438 (exit "$ac_status"); }; }; then
25441 cf_add_libs="$CXXLIBS"
25444 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25445 # filter duplicates
25446 for cf_add_1lib in $cf_add_0lib; do
25447 for cf_add_2lib in $cf_add_libs; do
25448 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25453 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25455 CXXLIBS="$cf_add_libs"
25457 if test "$cf_gpp_libname" = cpp ; then
25459 cat >>confdefs.h <<\EOF
25460 #define HAVE_GPP_BUILTIN_H 1
25465 cat >>confdefs.h <<\EOF
25466 #define HAVE_GXX_BUILTIN_H 1
25471 echo "$as_me: failed program was:" >&5
25472 cat "conftest.$ac_ext" >&5
25473 cat >"conftest.$ac_ext" <<_ACEOF
25474 #line 25474 "configure"
25475 #include "confdefs.h"
25477 #include <builtin.h>
25482 two_arg_error_handler_t foo2 = lib_error_handler
25487 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25488 if { (eval echo "$as_me:25488: \"$ac_link\"") >&5
25489 (eval $ac_link) 2>&5
25491 echo "$as_me:25491: \$? = $ac_status" >&5
25492 (exit "$ac_status"); } &&
25493 { ac_try='test -s "conftest$ac_exeext"'
25494 { (eval echo "$as_me:25494: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25497 echo "$as_me:25497: \$? = $ac_status" >&5
25498 (exit "$ac_status"); }; }; then
25501 cf_add_libs="$CXXLIBS"
25504 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25505 # filter duplicates
25506 for cf_add_1lib in $cf_add_0lib; do
25507 for cf_add_2lib in $cf_add_libs; do
25508 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25513 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25515 CXXLIBS="$cf_add_libs"
25517 cat >>confdefs.h <<\EOF
25518 #define HAVE_BUILTIN_H 1
25522 echo "$as_me: failed program was:" >&5
25523 cat "conftest.$ac_ext" >&5
25526 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25528 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25530 echo "$as_me:25530: result: $cf_cxx_library" >&5
25531 echo "${ECHO_T}$cf_cxx_library" >&6
25541 ac_cpp='$CXXCPP $CPPFLAGS'
25542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25543 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25545 ac_main_return="return"
25546 echo "$as_me:25546: checking how to run the C++ preprocessor" >&5
25547 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25548 if test -z "$CXXCPP"; then
25549 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25552 # Double quotes because CXXCPP needs to be expanded
25553 for CXXCPP in "$CXX -E" "/lib/cpp"
25555 ac_preproc_ok=false
25556 for ac_cxx_preproc_warn_flag in '' yes
25558 # Use a header file that comes with gcc, so configuring glibc
25559 # with a fresh cross-compiler works.
25560 # On the NeXT, cc -E runs the code through the compiler's parser,
25561 # not just through cpp. "Syntax error" is here to catch this case.
25562 cat >"conftest.$ac_ext" <<_ACEOF
25563 #line 25563 "configure"
25564 #include "confdefs.h"
25565 #include <assert.h>
25568 if { (eval echo "$as_me:25568: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25569 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25571 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:25574: \$? = $ac_status" >&5
25575 (exit "$ac_status"); } >/dev/null; then
25576 if test -s conftest.err; then
25577 ac_cpp_err=$ac_cxx_preproc_warn_flag
25584 if test -z "$ac_cpp_err"; then
25587 echo "$as_me: failed program was:" >&5
25588 cat "conftest.$ac_ext" >&5
25589 # Broken: fails on valid input.
25592 rm -f conftest.err "conftest.$ac_ext"
25594 # OK, works on sane cases. Now check whether non-existent headers
25595 # can be detected and how.
25596 cat >"conftest.$ac_ext" <<_ACEOF
25597 #line 25597 "configure"
25598 #include "confdefs.h"
25599 #include <ac_nonexistent.h>
25601 if { (eval echo "$as_me:25601: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25602 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25604 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:25607: \$? = $ac_status" >&5
25608 (exit "$ac_status"); } >/dev/null; then
25609 if test -s conftest.err; then
25610 ac_cpp_err=$ac_cxx_preproc_warn_flag
25617 if test -z "$ac_cpp_err"; then
25618 # Broken: success on invalid input.
25621 echo "$as_me: failed program was:" >&5
25622 cat "conftest.$ac_ext" >&5
25623 # Passes both tests.
25627 rm -f conftest.err "conftest.$ac_ext"
25630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25631 rm -f conftest.err "conftest.$ac_ext"
25632 if $ac_preproc_ok; then
25637 ac_cv_prog_CXXCPP=$CXXCPP
25640 CXXCPP=$ac_cv_prog_CXXCPP
25642 ac_cv_prog_CXXCPP=$CXXCPP
25644 echo "$as_me:25644: result: $CXXCPP" >&5
25645 echo "${ECHO_T}$CXXCPP" >&6
25646 ac_preproc_ok=false
25647 for ac_cxx_preproc_warn_flag in '' yes
25649 # Use a header file that comes with gcc, so configuring glibc
25650 # with a fresh cross-compiler works.
25651 # On the NeXT, cc -E runs the code through the compiler's parser,
25652 # not just through cpp. "Syntax error" is here to catch this case.
25653 cat >"conftest.$ac_ext" <<_ACEOF
25654 #line 25654 "configure"
25655 #include "confdefs.h"
25656 #include <assert.h>
25659 if { (eval echo "$as_me:25659: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25660 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25662 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:25665: \$? = $ac_status" >&5
25666 (exit "$ac_status"); } >/dev/null; then
25667 if test -s conftest.err; then
25668 ac_cpp_err=$ac_cxx_preproc_warn_flag
25675 if test -z "$ac_cpp_err"; then
25678 echo "$as_me: failed program was:" >&5
25679 cat "conftest.$ac_ext" >&5
25680 # Broken: fails on valid input.
25683 rm -f conftest.err "conftest.$ac_ext"
25685 # OK, works on sane cases. Now check whether non-existent headers
25686 # can be detected and how.
25687 cat >"conftest.$ac_ext" <<_ACEOF
25688 #line 25688 "configure"
25689 #include "confdefs.h"
25690 #include <ac_nonexistent.h>
25692 if { (eval echo "$as_me:25692: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25693 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25695 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25697 cat conftest.err >&5
25698 echo "$as_me:25698: \$? = $ac_status" >&5
25699 (exit "$ac_status"); } >/dev/null; then
25700 if test -s conftest.err; then
25701 ac_cpp_err=$ac_cxx_preproc_warn_flag
25708 if test -z "$ac_cpp_err"; then
25709 # Broken: success on invalid input.
25712 echo "$as_me: failed program was:" >&5
25713 cat "conftest.$ac_ext" >&5
25714 # Passes both tests.
25718 rm -f conftest.err "conftest.$ac_ext"
25721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25722 rm -f conftest.err "conftest.$ac_ext"
25723 if $ac_preproc_ok; then
25726 { { echo "$as_me:25726: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25727 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25728 { (exit 1); exit 1; }; }
25732 ac_cpp='$CXXCPP $CPPFLAGS'
25733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25734 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25736 ac_main_return="return"
25738 for ac_header in typeinfo
25740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25741 echo "$as_me:25741: checking for $ac_header" >&5
25742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 cat >"conftest.$ac_ext" <<_ACEOF
25747 #line 25747 "configure"
25748 #include "confdefs.h"
25749 #include <$ac_header>
25751 if { (eval echo "$as_me:25751: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25752 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25754 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25756 cat conftest.err >&5
25757 echo "$as_me:25757: \$? = $ac_status" >&5
25758 (exit "$ac_status"); } >/dev/null; then
25759 if test -s conftest.err; then
25760 ac_cpp_err=$ac_cxx_preproc_warn_flag
25767 if test -z "$ac_cpp_err"; then
25768 eval "$as_ac_Header=yes"
25770 echo "$as_me: failed program was:" >&5
25771 cat "conftest.$ac_ext" >&5
25772 eval "$as_ac_Header=no"
25774 rm -f conftest.err "conftest.$ac_ext"
25776 echo "$as_me:25776: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25777 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25778 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25779 cat >>confdefs.h <<EOF
25780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25786 for ac_header in iostream
25788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25789 echo "$as_me:25789: checking for $ac_header" >&5
25790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25792 echo $ECHO_N "(cached) $ECHO_C" >&6
25794 cat >"conftest.$ac_ext" <<_ACEOF
25795 #line 25795 "configure"
25796 #include "confdefs.h"
25797 #include <$ac_header>
25799 if { (eval echo "$as_me:25799: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25800 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25802 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25804 cat conftest.err >&5
25805 echo "$as_me:25805: \$? = $ac_status" >&5
25806 (exit "$ac_status"); } >/dev/null; then
25807 if test -s conftest.err; then
25808 ac_cpp_err=$ac_cxx_preproc_warn_flag
25815 if test -z "$ac_cpp_err"; then
25816 eval "$as_ac_Header=yes"
25818 echo "$as_me: failed program was:" >&5
25819 cat "conftest.$ac_ext" >&5
25820 eval "$as_ac_Header=no"
25822 rm -f conftest.err "conftest.$ac_ext"
25824 echo "$as_me:25824: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25825 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25826 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25827 cat >>confdefs.h <<EOF
25828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25834 if test x"$ac_cv_header_iostream" = xyes ; then
25835 echo "$as_me:25835: checking if iostream uses std-namespace" >&5
25836 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25837 cat >"conftest.$ac_ext" <<_ACEOF
25838 #line 25838 "configure"
25839 #include "confdefs.h"
25841 #include <iostream>
25848 cerr << "testing" << endl;
25854 rm -f "conftest.$ac_objext"
25855 if { (eval echo "$as_me:25855: \"$ac_compile\"") >&5
25856 (eval $ac_compile) 2>&5
25858 echo "$as_me:25858: \$? = $ac_status" >&5
25859 (exit "$ac_status"); } &&
25860 { ac_try='test -s "conftest.$ac_objext"'
25861 { (eval echo "$as_me:25861: \"$ac_try\"") >&5
25862 (eval $ac_try) 2>&5
25864 echo "$as_me:25864: \$? = $ac_status" >&5
25865 (exit "$ac_status"); }; }; then
25866 cf_iostream_namespace=yes
25868 echo "$as_me: failed program was:" >&5
25869 cat "conftest.$ac_ext" >&5
25870 cf_iostream_namespace=no
25872 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25873 echo "$as_me:25873: result: $cf_iostream_namespace" >&5
25874 echo "${ECHO_T}$cf_iostream_namespace" >&6
25875 if test "$cf_iostream_namespace" = yes ; then
25877 cat >>confdefs.h <<\EOF
25878 #define IOSTREAM_NAMESPACE 1
25884 echo "$as_me:25884: checking if we should include stdbool.h" >&5
25885 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25887 if test "${cf_cv_header_stdbool_h+set}" = set; then
25888 echo $ECHO_N "(cached) $ECHO_C" >&6
25891 cat >"conftest.$ac_ext" <<_ACEOF
25892 #line 25892 "configure"
25893 #include "confdefs.h"
25903 rm -f "conftest.$ac_objext"
25904 if { (eval echo "$as_me:25904: \"$ac_compile\"") >&5
25905 (eval $ac_compile) 2>&5
25907 echo "$as_me:25907: \$? = $ac_status" >&5
25908 (exit "$ac_status"); } &&
25909 { ac_try='test -s "conftest.$ac_objext"'
25910 { (eval echo "$as_me:25910: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25913 echo "$as_me:25913: \$? = $ac_status" >&5
25914 (exit "$ac_status"); }; }; then
25915 cf_cv_header_stdbool_h=0
25917 echo "$as_me: failed program was:" >&5
25918 cat "conftest.$ac_ext" >&5
25919 cat >"conftest.$ac_ext" <<_ACEOF
25920 #line 25920 "configure"
25921 #include "confdefs.h"
25924 #include <stdbool.h>
25935 rm -f "conftest.$ac_objext"
25936 if { (eval echo "$as_me:25936: \"$ac_compile\"") >&5
25937 (eval $ac_compile) 2>&5
25939 echo "$as_me:25939: \$? = $ac_status" >&5
25940 (exit "$ac_status"); } &&
25941 { ac_try='test -s "conftest.$ac_objext"'
25942 { (eval echo "$as_me:25942: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25945 echo "$as_me:25945: \$? = $ac_status" >&5
25946 (exit "$ac_status"); }; }; then
25947 cf_cv_header_stdbool_h=1
25949 echo "$as_me: failed program was:" >&5
25950 cat "conftest.$ac_ext" >&5
25951 cf_cv_header_stdbool_h=0
25953 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25955 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25958 if test "$cf_cv_header_stdbool_h" = 1
25959 then echo "$as_me:25959: result: yes" >&5
25960 echo "${ECHO_T}yes" >&6
25961 else echo "$as_me:25961: result: no" >&5
25962 echo "${ECHO_T}no" >&6
25965 echo "$as_me:25965: checking for builtin bool type" >&5
25966 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25968 if test "${cf_cv_builtin_bool+set}" = set; then
25969 echo $ECHO_N "(cached) $ECHO_C" >&6
25972 cat >"conftest.$ac_ext" <<_ACEOF
25973 #line 25973 "configure"
25974 #include "confdefs.h"
25977 #include <sys/types.h>
25987 rm -f "conftest.$ac_objext"
25988 if { (eval echo "$as_me:25988: \"$ac_compile\"") >&5
25989 (eval $ac_compile) 2>&5
25991 echo "$as_me:25991: \$? = $ac_status" >&5
25992 (exit "$ac_status"); } &&
25993 { ac_try='test -s "conftest.$ac_objext"'
25994 { (eval echo "$as_me:25994: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25997 echo "$as_me:25997: \$? = $ac_status" >&5
25998 (exit "$ac_status"); }; }; then
25999 cf_cv_builtin_bool=1
26001 echo "$as_me: failed program was:" >&5
26002 cat "conftest.$ac_ext" >&5
26003 cf_cv_builtin_bool=0
26005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26009 if test "$cf_cv_builtin_bool" = 1
26010 then echo "$as_me:26010: result: yes" >&5
26011 echo "${ECHO_T}yes" >&6
26012 else echo "$as_me:26012: result: no" >&5
26013 echo "${ECHO_T}no" >&6
26016 echo "$as_me:26016: checking for bool" >&5
26017 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26018 if test "${ac_cv_type_bool+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 cat >"conftest.$ac_ext" <<_ACEOF
26022 #line 26022 "configure"
26023 #include "confdefs.h"
26025 $ac_includes_default
26027 #if defined(__cplusplus)
26029 #ifdef HAVE_GXX_BUILTIN_H
26030 #include <g++/builtin.h>
26031 #elif HAVE_GPP_BUILTIN_H
26032 #include <gpp/builtin.h>
26033 #elif HAVE_BUILTIN_H
26034 #include <builtin.h>
26039 #if $cf_cv_header_stdbool_h
26040 #include <stdbool.h>
26056 rm -f "conftest.$ac_objext"
26057 if { (eval echo "$as_me:26057: \"$ac_compile\"") >&5
26058 (eval $ac_compile) 2>&5
26060 echo "$as_me:26060: \$? = $ac_status" >&5
26061 (exit "$ac_status"); } &&
26062 { ac_try='test -s "conftest.$ac_objext"'
26063 { (eval echo "$as_me:26063: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26066 echo "$as_me:26066: \$? = $ac_status" >&5
26067 (exit "$ac_status"); }; }; then
26068 ac_cv_type_bool=yes
26070 echo "$as_me: failed program was:" >&5
26071 cat "conftest.$ac_ext" >&5
26074 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26076 echo "$as_me:26076: result: $ac_cv_type_bool" >&5
26077 echo "${ECHO_T}$ac_cv_type_bool" >&6
26079 echo "$as_me:26079: checking size of bool" >&5
26080 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26081 if test "${ac_cv_sizeof_bool+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 if test "$ac_cv_type_bool" = yes; then
26085 if test "$cross_compiling" = yes; then
26086 # Depending upon the size, compute the lo and hi bounds.
26087 cat >"conftest.$ac_ext" <<_ACEOF
26088 #line 26088 "configure"
26089 #include "confdefs.h"
26091 $ac_includes_default
26093 #if defined(__cplusplus)
26095 #ifdef HAVE_GXX_BUILTIN_H
26096 #include <g++/builtin.h>
26097 #elif HAVE_GPP_BUILTIN_H
26098 #include <gpp/builtin.h>
26099 #elif HAVE_BUILTIN_H
26100 #include <builtin.h>
26105 #if $cf_cv_header_stdbool_h
26106 #include <stdbool.h>
26114 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26119 rm -f "conftest.$ac_objext"
26120 if { (eval echo "$as_me:26120: \"$ac_compile\"") >&5
26121 (eval $ac_compile) 2>&5
26123 echo "$as_me:26123: \$? = $ac_status" >&5
26124 (exit "$ac_status"); } &&
26125 { ac_try='test -s "conftest.$ac_objext"'
26126 { (eval echo "$as_me:26126: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26129 echo "$as_me:26129: \$? = $ac_status" >&5
26130 (exit "$ac_status"); }; }; then
26133 cat >"conftest.$ac_ext" <<_ACEOF
26134 #line 26134 "configure"
26135 #include "confdefs.h"
26137 $ac_includes_default
26139 #if defined(__cplusplus)
26141 #ifdef HAVE_GXX_BUILTIN_H
26142 #include <g++/builtin.h>
26143 #elif HAVE_GPP_BUILTIN_H
26144 #include <gpp/builtin.h>
26145 #elif HAVE_BUILTIN_H
26146 #include <builtin.h>
26151 #if $cf_cv_header_stdbool_h
26152 #include <stdbool.h>
26160 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26165 rm -f "conftest.$ac_objext"
26166 if { (eval echo "$as_me:26166: \"$ac_compile\"") >&5
26167 (eval $ac_compile) 2>&5
26169 echo "$as_me:26169: \$? = $ac_status" >&5
26170 (exit "$ac_status"); } &&
26171 { ac_try='test -s "conftest.$ac_objext"'
26172 { (eval echo "$as_me:26172: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:26175: \$? = $ac_status" >&5
26176 (exit "$ac_status"); }; }; then
26177 ac_hi=$ac_mid; break
26179 echo "$as_me: failed program was:" >&5
26180 cat "conftest.$ac_ext" >&5
26181 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26183 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26186 echo "$as_me: failed program was:" >&5
26187 cat "conftest.$ac_ext" >&5
26190 cat >"conftest.$ac_ext" <<_ACEOF
26191 #line 26191 "configure"
26192 #include "confdefs.h"
26194 $ac_includes_default
26196 #if defined(__cplusplus)
26198 #ifdef HAVE_GXX_BUILTIN_H
26199 #include <g++/builtin.h>
26200 #elif HAVE_GPP_BUILTIN_H
26201 #include <gpp/builtin.h>
26202 #elif HAVE_BUILTIN_H
26203 #include <builtin.h>
26208 #if $cf_cv_header_stdbool_h
26209 #include <stdbool.h>
26217 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26222 rm -f "conftest.$ac_objext"
26223 if { (eval echo "$as_me:26223: \"$ac_compile\"") >&5
26224 (eval $ac_compile) 2>&5
26226 echo "$as_me:26226: \$? = $ac_status" >&5
26227 (exit "$ac_status"); } &&
26228 { ac_try='test -s "conftest.$ac_objext"'
26229 { (eval echo "$as_me:26229: \"$ac_try\"") >&5
26230 (eval $ac_try) 2>&5
26232 echo "$as_me:26232: \$? = $ac_status" >&5
26233 (exit "$ac_status"); }; }; then
26234 ac_lo=$ac_mid; break
26236 echo "$as_me: failed program was:" >&5
26237 cat "conftest.$ac_ext" >&5
26238 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26240 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26243 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26244 # Binary search between lo and hi bounds.
26245 while test "x$ac_lo" != "x$ac_hi"; do
26246 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26247 cat >"conftest.$ac_ext" <<_ACEOF
26248 #line 26248 "configure"
26249 #include "confdefs.h"
26251 $ac_includes_default
26253 #if defined(__cplusplus)
26255 #ifdef HAVE_GXX_BUILTIN_H
26256 #include <g++/builtin.h>
26257 #elif HAVE_GPP_BUILTIN_H
26258 #include <gpp/builtin.h>
26259 #elif HAVE_BUILTIN_H
26260 #include <builtin.h>
26265 #if $cf_cv_header_stdbool_h
26266 #include <stdbool.h>
26274 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
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
26293 echo "$as_me: failed program was:" >&5
26294 cat "conftest.$ac_ext" >&5
26295 ac_lo=`expr "$ac_mid" + 1`
26297 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26299 ac_cv_sizeof_bool=$ac_lo
26301 if test "$cross_compiling" = yes; then
26302 { { echo "$as_me:26302: error: cannot run test program while cross compiling" >&5
26303 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26304 { (exit 1); exit 1; }; }
26306 cat >"conftest.$ac_ext" <<_ACEOF
26307 #line 26307 "configure"
26308 #include "confdefs.h"
26310 $ac_includes_default
26312 #if defined(__cplusplus)
26314 #ifdef HAVE_GXX_BUILTIN_H
26315 #include <g++/builtin.h>
26316 #elif HAVE_GPP_BUILTIN_H
26317 #include <gpp/builtin.h>
26318 #elif HAVE_BUILTIN_H
26319 #include <builtin.h>
26324 #if $cf_cv_header_stdbool_h
26325 #include <stdbool.h>
26333 FILE *f = fopen ("conftest.val", "w");
26335 $ac_main_return (1);
26336 fprintf (f, "%ld", (long)(sizeof (bool)));
26342 rm -f "conftest$ac_exeext"
26343 if { (eval echo "$as_me:26343: \"$ac_link\"") >&5
26344 (eval $ac_link) 2>&5
26346 echo "$as_me:26346: \$? = $ac_status" >&5
26347 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26348 { (eval echo "$as_me:26348: \"$ac_try\"") >&5
26349 (eval $ac_try) 2>&5
26351 echo "$as_me:26351: \$? = $ac_status" >&5
26352 (exit "$ac_status"); }; }; then
26353 ac_cv_sizeof_bool=`cat conftest.val`
26355 echo "$as_me: program exited with status $ac_status" >&5
26356 echo "$as_me: failed program was:" >&5
26357 cat "conftest.$ac_ext" >&5
26359 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26364 ac_cv_sizeof_bool=0
26367 echo "$as_me:26367: result: $ac_cv_sizeof_bool" >&5
26368 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26369 cat >>confdefs.h <<EOF
26370 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26373 echo "$as_me:26373: checking for type of bool" >&5
26374 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26375 if test "${cf_cv_type_of_bool+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26380 if test "$cross_compiling" = yes; then
26382 case x$ac_cv_sizeof_bool in
26383 (x1) cf_cv_type_of_bool="unsigned char";;
26384 (x2) cf_cv_type_of_bool="unsigned short";;
26385 (x4) cf_cv_type_of_bool="unsigned int";;
26386 (x8) cf_cv_type_of_bool="unsigned long";;
26387 (*) cf_cv_type_of_bool=unknown;;
26391 cat >"conftest.$ac_ext" <<_ACEOF
26392 #line 26392 "configure"
26393 #include "confdefs.h"
26395 $ac_includes_default
26397 #if defined(__cplusplus)
26399 #ifdef HAVE_GXX_BUILTIN_H
26400 #include <g++/builtin.h>
26401 #elif HAVE_GPP_BUILTIN_H
26402 #include <gpp/builtin.h>
26403 #elif HAVE_BUILTIN_H
26404 #include <builtin.h>
26409 #if $cf_cv_header_stdbool_h
26410 #include <stdbool.h>
26417 FILE *fp = fopen("cf_test.out", "w");
26420 if ((bool)(-x) >= 0)
26421 fputs("unsigned ", fp);
26422 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26423 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26424 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26425 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26428 ${cf_cv_main_return:-return}(0);
26432 rm -f "conftest$ac_exeext"
26433 if { (eval echo "$as_me:26433: \"$ac_link\"") >&5
26434 (eval $ac_link) 2>&5
26436 echo "$as_me:26436: \$? = $ac_status" >&5
26437 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26438 { (eval echo "$as_me:26438: \"$ac_try\"") >&5
26439 (eval $ac_try) 2>&5
26441 echo "$as_me:26441: \$? = $ac_status" >&5
26442 (exit "$ac_status"); }; }; then
26443 cf_cv_type_of_bool=`cat cf_test.out`
26444 if test -z "$cf_cv_type_of_bool"; then
26445 cf_cv_type_of_bool=unknown
26448 echo "$as_me: program exited with status $ac_status" >&5
26449 echo "$as_me: failed program was:" >&5
26450 cat "conftest.$ac_ext" >&5
26451 cf_cv_type_of_bool=unknown
26453 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26458 echo "$as_me:26458: result: $cf_cv_type_of_bool" >&5
26459 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26461 if test "$cf_cv_type_of_bool" = unknown ; then
26462 case .$NCURSES_BOOL in
26463 (.auto|.) NCURSES_BOOL=unsigned;;
26465 { echo "$as_me:26465: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26466 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26467 cf_cv_type_of_bool=$NCURSES_BOOL
26470 echo "$as_me:26470: checking for special defines needed for etip.h" >&5
26471 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26472 cf_save_CXXFLAGS="$CXXFLAGS"
26475 # etip.h includes ncurses.h which includes ncurses_dll.h
26476 # But ncurses_dll.h is generated - fix here.
26477 test -d include || mkdir include
26478 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
26480 for cf_math in "" MATH_H
26482 for cf_excp in "" MATH_EXCEPTION
26484 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26485 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26486 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26487 cat >"conftest.$ac_ext" <<_ACEOF
26488 #line 26488 "configure"
26489 #include "confdefs.h"
26491 #include <etip.h.in>
26501 rm -f "conftest.$ac_objext"
26502 if { (eval echo "$as_me:26502: \"$ac_compile\"") >&5
26503 (eval $ac_compile) 2>&5
26505 echo "$as_me:26505: \$? = $ac_status" >&5
26506 (exit "$ac_status"); } &&
26507 { ac_try='test -s "conftest.$ac_objext"'
26508 { (eval echo "$as_me:26508: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:26511: \$? = $ac_status" >&5
26512 (exit "$ac_status"); }; }; then
26514 test -n "$cf_math" && cat >>confdefs.h <<EOF
26515 #define ETIP_NEEDS_${cf_math} 1
26518 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26519 #define ETIP_NEEDS_${cf_excp} 1
26522 cf_result="$cf_math $cf_excp"
26526 echo "$as_me: failed program was:" >&5
26527 cat "conftest.$ac_ext" >&5
26529 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26532 echo "$as_me:26532: result: ${cf_result:-(none)}" >&5
26533 echo "${ECHO_T}${cf_result:-(none)}" >&6
26534 CXXFLAGS="$cf_save_CXXFLAGS"
26536 if test -n "$CXX"; then
26537 echo "$as_me:26537: checking if $CXX accepts override keyword" >&5
26538 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26539 if test "${cf_cv_cpp_override+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26544 ac_cpp='$CXXCPP $CPPFLAGS'
26545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26546 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26548 ac_main_return="return"
26550 if test "$cross_compiling" = yes; then
26551 cf_cv_cpp_override=unknown
26553 cat >"conftest.$ac_ext" <<_ACEOF
26554 #line 26554 "configure"
26555 #include "confdefs.h"
26560 virtual int foo(float x) = 0;
26563 class derived: public base
26566 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26572 rm -f "conftest$ac_exeext"
26573 if { (eval echo "$as_me:26573: \"$ac_link\"") >&5
26574 (eval $ac_link) 2>&5
26576 echo "$as_me:26576: \$? = $ac_status" >&5
26577 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26578 { (eval echo "$as_me:26578: \"$ac_try\"") >&5
26579 (eval $ac_try) 2>&5
26581 echo "$as_me:26581: \$? = $ac_status" >&5
26582 (exit "$ac_status"); }; }; then
26583 cf_cv_cpp_override=yes
26585 echo "$as_me: program exited with status $ac_status" >&5
26586 echo "$as_me: failed program was:" >&5
26587 cat "conftest.$ac_ext" >&5
26588 cf_cv_cpp_override=no
26590 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26593 ac_cpp='$CXXCPP $CPPFLAGS'
26594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26595 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26597 ac_main_return="return"
26600 echo "$as_me:26600: result: $cf_cv_cpp_override" >&5
26601 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26603 test "$cf_cv_cpp_override" = yes &&
26604 cat >>confdefs.h <<\EOF
26605 #define CPP_HAS_OVERRIDE 1
26608 if test -n "$CXX"; then
26609 echo "$as_me:26609: checking if $CXX accepts parameter initialization" >&5
26610 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26611 if test "${cf_cv_cpp_param_init+set}" = set; then
26612 echo $ECHO_N "(cached) $ECHO_C" >&6
26616 ac_cpp='$CXXCPP $CPPFLAGS'
26617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26618 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26620 ac_main_return="return"
26622 if test "$cross_compiling" = yes; then
26623 cf_cv_cpp_param_init=unknown
26625 cat >"conftest.$ac_ext" <<_ACEOF
26626 #line 26626 "configure"
26627 #include "confdefs.h"
26637 TEST::TEST(int x = 1) // some compilers do not like second initializer
26644 rm -f "conftest$ac_exeext"
26645 if { (eval echo "$as_me:26645: \"$ac_link\"") >&5
26646 (eval $ac_link) 2>&5
26648 echo "$as_me:26648: \$? = $ac_status" >&5
26649 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26650 { (eval echo "$as_me:26650: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26653 echo "$as_me:26653: \$? = $ac_status" >&5
26654 (exit "$ac_status"); }; }; then
26655 cf_cv_cpp_param_init=yes
26657 echo "$as_me: program exited with status $ac_status" >&5
26658 echo "$as_me: failed program was:" >&5
26659 cat "conftest.$ac_ext" >&5
26660 cf_cv_cpp_param_init=no
26662 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26665 ac_cpp='$CXXCPP $CPPFLAGS'
26666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26667 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26669 ac_main_return="return"
26672 echo "$as_me:26672: result: $cf_cv_cpp_param_init" >&5
26673 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26675 test "$cf_cv_cpp_param_init" = yes &&
26676 cat >>confdefs.h <<\EOF
26677 #define CPP_HAS_PARAM_INIT 1
26680 if test -n "$CXX"; then
26682 echo "$as_me:26682: checking if $CXX accepts static_cast" >&5
26683 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26684 if test "${cf_cv_cpp_static_cast+set}" = set; then
26685 echo $ECHO_N "(cached) $ECHO_C" >&6
26689 ac_cpp='$CXXCPP $CPPFLAGS'
26690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26691 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26693 ac_main_return="return"
26695 cat >"conftest.$ac_ext" <<_ACEOF
26696 #line 26696 "configure"
26697 #include "confdefs.h"
26702 NCursesPanel(int nlines,
26712 template<class T> class NCursesUserPanel : public NCursesPanel
26715 NCursesUserPanel (int nlines,
26719 const T* p_UserData = static_cast<T*>(0))
26720 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26723 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26727 virtual ~NCursesUserPanel() {};
26734 const char* p_UserData = static_cast<char*>(0)
26739 rm -f "conftest.$ac_objext"
26740 if { (eval echo "$as_me:26740: \"$ac_compile\"") >&5
26741 (eval $ac_compile) 2>&5
26743 echo "$as_me:26743: \$? = $ac_status" >&5
26744 (exit "$ac_status"); } &&
26745 { ac_try='test -s "conftest.$ac_objext"'
26746 { (eval echo "$as_me:26746: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26749 echo "$as_me:26749: \$? = $ac_status" >&5
26750 (exit "$ac_status"); }; }; then
26751 cf_cv_cpp_static_cast=yes
26753 echo "$as_me: failed program was:" >&5
26754 cat "conftest.$ac_ext" >&5
26755 cf_cv_cpp_static_cast=no
26757 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26760 ac_cpp='$CXXCPP $CPPFLAGS'
26761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26762 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26764 ac_main_return="return"
26767 echo "$as_me:26767: result: $cf_cv_cpp_static_cast" >&5
26768 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26772 test "$cf_cv_cpp_static_cast" = yes &&
26773 cat >>confdefs.h <<\EOF
26774 #define CPP_HAS_STATIC_CAST 1
26778 CXX_ARFLAGS='$(ARFLAGS)'
26779 case "$cf_cv_system_name" in
26781 if test "$GXX" != yes ; then
26783 CXX_ARFLAGS='-ar -o'
26787 CXXLDFLAGS="-u main"
26790 if test "$GXX" != yes ; then
26792 CXX_ARFLAGS='-xar -o'
26799 cf_cv_builtin_bool=1
26801 # Just because we are not configuring against C++ right now does not
26802 # mean that a user will not want to use C++. Some distributors disable
26803 # the C++ portion of this configuration as a shortcut (or just to avoid
26804 # compiling the demo in the c++ directory). So we need a reasonable
26805 # default for the 'bool' type.
26807 # Caveat: since the storage of the bool type is not standardized, it
26810 if test "$NCURSES_BOOL" != auto ; then
26811 cf_cv_type_of_bool=$NCURSES_BOOL
26812 cf_cv_header_stdbool_h=0
26814 if test "$cf_cv_header_stdbool_h" = 1 ; then
26816 echo "$as_me:26816: checking for bool" >&5
26817 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26818 if test "${ac_cv_type_bool+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26821 cat >"conftest.$ac_ext" <<_ACEOF
26822 #line 26822 "configure"
26823 #include "confdefs.h"
26825 $ac_includes_default
26827 #if defined(__cplusplus)
26829 #ifdef HAVE_GXX_BUILTIN_H
26830 #include <g++/builtin.h>
26831 #elif HAVE_GPP_BUILTIN_H
26832 #include <gpp/builtin.h>
26833 #elif HAVE_BUILTIN_H
26834 #include <builtin.h>
26839 #if $cf_cv_header_stdbool_h
26840 #include <stdbool.h>
26856 rm -f "conftest.$ac_objext"
26857 if { (eval echo "$as_me:26857: \"$ac_compile\"") >&5
26858 (eval $ac_compile) 2>&5
26860 echo "$as_me:26860: \$? = $ac_status" >&5
26861 (exit "$ac_status"); } &&
26862 { ac_try='test -s "conftest.$ac_objext"'
26863 { (eval echo "$as_me:26863: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26866 echo "$as_me:26866: \$? = $ac_status" >&5
26867 (exit "$ac_status"); }; }; then
26868 ac_cv_type_bool=yes
26870 echo "$as_me: failed program was:" >&5
26871 cat "conftest.$ac_ext" >&5
26874 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26876 echo "$as_me:26876: result: $ac_cv_type_bool" >&5
26877 echo "${ECHO_T}$ac_cv_type_bool" >&6
26879 echo "$as_me:26879: checking size of bool" >&5
26880 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26881 if test "${ac_cv_sizeof_bool+set}" = set; then
26882 echo $ECHO_N "(cached) $ECHO_C" >&6
26884 if test "$ac_cv_type_bool" = yes; then
26885 if test "$cross_compiling" = yes; then
26886 # Depending upon the size, compute the lo and hi bounds.
26887 cat >"conftest.$ac_ext" <<_ACEOF
26888 #line 26888 "configure"
26889 #include "confdefs.h"
26891 $ac_includes_default
26893 #if defined(__cplusplus)
26895 #ifdef HAVE_GXX_BUILTIN_H
26896 #include <g++/builtin.h>
26897 #elif HAVE_GPP_BUILTIN_H
26898 #include <gpp/builtin.h>
26899 #elif HAVE_BUILTIN_H
26900 #include <builtin.h>
26905 #if $cf_cv_header_stdbool_h
26906 #include <stdbool.h>
26914 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26919 rm -f "conftest.$ac_objext"
26920 if { (eval echo "$as_me:26920: \"$ac_compile\"") >&5
26921 (eval $ac_compile) 2>&5
26923 echo "$as_me:26923: \$? = $ac_status" >&5
26924 (exit "$ac_status"); } &&
26925 { ac_try='test -s "conftest.$ac_objext"'
26926 { (eval echo "$as_me:26926: \"$ac_try\"") >&5
26927 (eval $ac_try) 2>&5
26929 echo "$as_me:26929: \$? = $ac_status" >&5
26930 (exit "$ac_status"); }; }; then
26933 cat >"conftest.$ac_ext" <<_ACEOF
26934 #line 26934 "configure"
26935 #include "confdefs.h"
26937 $ac_includes_default
26939 #if defined(__cplusplus)
26941 #ifdef HAVE_GXX_BUILTIN_H
26942 #include <g++/builtin.h>
26943 #elif HAVE_GPP_BUILTIN_H
26944 #include <gpp/builtin.h>
26945 #elif HAVE_BUILTIN_H
26946 #include <builtin.h>
26951 #if $cf_cv_header_stdbool_h
26952 #include <stdbool.h>
26960 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26965 rm -f "conftest.$ac_objext"
26966 if { (eval echo "$as_me:26966: \"$ac_compile\"") >&5
26967 (eval $ac_compile) 2>&5
26969 echo "$as_me:26969: \$? = $ac_status" >&5
26970 (exit "$ac_status"); } &&
26971 { ac_try='test -s "conftest.$ac_objext"'
26972 { (eval echo "$as_me:26972: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26975 echo "$as_me:26975: \$? = $ac_status" >&5
26976 (exit "$ac_status"); }; }; then
26977 ac_hi=$ac_mid; break
26979 echo "$as_me: failed program was:" >&5
26980 cat "conftest.$ac_ext" >&5
26981 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26983 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26986 echo "$as_me: failed program was:" >&5
26987 cat "conftest.$ac_ext" >&5
26990 cat >"conftest.$ac_ext" <<_ACEOF
26991 #line 26991 "configure"
26992 #include "confdefs.h"
26994 $ac_includes_default
26996 #if defined(__cplusplus)
26998 #ifdef HAVE_GXX_BUILTIN_H
26999 #include <g++/builtin.h>
27000 #elif HAVE_GPP_BUILTIN_H
27001 #include <gpp/builtin.h>
27002 #elif HAVE_BUILTIN_H
27003 #include <builtin.h>
27008 #if $cf_cv_header_stdbool_h
27009 #include <stdbool.h>
27017 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
27022 rm -f "conftest.$ac_objext"
27023 if { (eval echo "$as_me:27023: \"$ac_compile\"") >&5
27024 (eval $ac_compile) 2>&5
27026 echo "$as_me:27026: \$? = $ac_status" >&5
27027 (exit "$ac_status"); } &&
27028 { ac_try='test -s "conftest.$ac_objext"'
27029 { (eval echo "$as_me:27029: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27032 echo "$as_me:27032: \$? = $ac_status" >&5
27033 (exit "$ac_status"); }; }; then
27034 ac_lo=$ac_mid; break
27036 echo "$as_me: failed program was:" >&5
27037 cat "conftest.$ac_ext" >&5
27038 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27040 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27043 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27044 # Binary search between lo and hi bounds.
27045 while test "x$ac_lo" != "x$ac_hi"; do
27046 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27047 cat >"conftest.$ac_ext" <<_ACEOF
27048 #line 27048 "configure"
27049 #include "confdefs.h"
27051 $ac_includes_default
27053 #if defined(__cplusplus)
27055 #ifdef HAVE_GXX_BUILTIN_H
27056 #include <g++/builtin.h>
27057 #elif HAVE_GPP_BUILTIN_H
27058 #include <gpp/builtin.h>
27059 #elif HAVE_BUILTIN_H
27060 #include <builtin.h>
27065 #if $cf_cv_header_stdbool_h
27066 #include <stdbool.h>
27074 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27079 rm -f "conftest.$ac_objext"
27080 if { (eval echo "$as_me:27080: \"$ac_compile\"") >&5
27081 (eval $ac_compile) 2>&5
27083 echo "$as_me:27083: \$? = $ac_status" >&5
27084 (exit "$ac_status"); } &&
27085 { ac_try='test -s "conftest.$ac_objext"'
27086 { (eval echo "$as_me:27086: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27089 echo "$as_me:27089: \$? = $ac_status" >&5
27090 (exit "$ac_status"); }; }; then
27093 echo "$as_me: failed program was:" >&5
27094 cat "conftest.$ac_ext" >&5
27095 ac_lo=`expr "$ac_mid" + 1`
27097 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27099 ac_cv_sizeof_bool=$ac_lo
27101 if test "$cross_compiling" = yes; then
27102 { { echo "$as_me:27102: error: cannot run test program while cross compiling" >&5
27103 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27104 { (exit 1); exit 1; }; }
27106 cat >"conftest.$ac_ext" <<_ACEOF
27107 #line 27107 "configure"
27108 #include "confdefs.h"
27110 $ac_includes_default
27112 #if defined(__cplusplus)
27114 #ifdef HAVE_GXX_BUILTIN_H
27115 #include <g++/builtin.h>
27116 #elif HAVE_GPP_BUILTIN_H
27117 #include <gpp/builtin.h>
27118 #elif HAVE_BUILTIN_H
27119 #include <builtin.h>
27124 #if $cf_cv_header_stdbool_h
27125 #include <stdbool.h>
27133 FILE *f = fopen ("conftest.val", "w");
27135 $ac_main_return (1);
27136 fprintf (f, "%ld", (long)(sizeof (bool)));
27142 rm -f "conftest$ac_exeext"
27143 if { (eval echo "$as_me:27143: \"$ac_link\"") >&5
27144 (eval $ac_link) 2>&5
27146 echo "$as_me:27146: \$? = $ac_status" >&5
27147 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27148 { (eval echo "$as_me:27148: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27151 echo "$as_me:27151: \$? = $ac_status" >&5
27152 (exit "$ac_status"); }; }; then
27153 ac_cv_sizeof_bool=`cat conftest.val`
27155 echo "$as_me: program exited with status $ac_status" >&5
27156 echo "$as_me: failed program was:" >&5
27157 cat "conftest.$ac_ext" >&5
27159 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27164 ac_cv_sizeof_bool=0
27167 echo "$as_me:27167: result: $ac_cv_sizeof_bool" >&5
27168 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27169 cat >>confdefs.h <<EOF
27170 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27173 echo "$as_me:27173: checking for type of bool" >&5
27174 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27175 if test "${cf_cv_type_of_bool+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27180 if test "$cross_compiling" = yes; then
27182 case x$ac_cv_sizeof_bool in
27183 (x1) cf_cv_type_of_bool="unsigned char";;
27184 (x2) cf_cv_type_of_bool="unsigned short";;
27185 (x4) cf_cv_type_of_bool="unsigned int";;
27186 (x8) cf_cv_type_of_bool="unsigned long";;
27187 (*) cf_cv_type_of_bool=unknown;;
27191 cat >"conftest.$ac_ext" <<_ACEOF
27192 #line 27192 "configure"
27193 #include "confdefs.h"
27195 $ac_includes_default
27197 #if defined(__cplusplus)
27199 #ifdef HAVE_GXX_BUILTIN_H
27200 #include <g++/builtin.h>
27201 #elif HAVE_GPP_BUILTIN_H
27202 #include <gpp/builtin.h>
27203 #elif HAVE_BUILTIN_H
27204 #include <builtin.h>
27209 #if $cf_cv_header_stdbool_h
27210 #include <stdbool.h>
27217 FILE *fp = fopen("cf_test.out", "w");
27220 if ((bool)(-x) >= 0)
27221 fputs("unsigned ", fp);
27222 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27223 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27224 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27225 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27228 ${cf_cv_main_return:-return}(0);
27232 rm -f "conftest$ac_exeext"
27233 if { (eval echo "$as_me:27233: \"$ac_link\"") >&5
27234 (eval $ac_link) 2>&5
27236 echo "$as_me:27236: \$? = $ac_status" >&5
27237 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27238 { (eval echo "$as_me:27238: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27241 echo "$as_me:27241: \$? = $ac_status" >&5
27242 (exit "$ac_status"); }; }; then
27243 cf_cv_type_of_bool=`cat cf_test.out`
27244 if test -z "$cf_cv_type_of_bool"; then
27245 cf_cv_type_of_bool=unknown
27248 echo "$as_me: program exited with status $ac_status" >&5
27249 echo "$as_me: failed program was:" >&5
27250 cat "conftest.$ac_ext" >&5
27251 cf_cv_type_of_bool=unknown
27253 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27258 echo "$as_me:27258: result: $cf_cv_type_of_bool" >&5
27259 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27261 if test "$cf_cv_type_of_bool" = unknown ; then
27262 case .$NCURSES_BOOL in
27263 (.auto|.) NCURSES_BOOL=unsigned;;
27265 { echo "$as_me:27265: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27266 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27267 cf_cv_type_of_bool=$NCURSES_BOOL
27271 echo "$as_me:27271: checking for fallback type of bool" >&5
27272 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27273 case "$host_cpu" in
27274 (i?86) cf_cv_type_of_bool=char ;;
27275 (*) cf_cv_type_of_bool=int ;;
27277 echo "$as_me:27277: result: $cf_cv_type_of_bool" >&5
27278 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27283 # If the C compiler did not declare bool, and we did not determine that the C++
27284 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27285 # ncurses library use the same type as C++ bool. Note that this allows one to
27286 # specify the type of bool in a configure-script option and postpone
27287 # integration with the C++ compiler provided that the types are compatible.
27289 if test "$cf_cv_cc_bool_type" = 1
27291 # oops: C has a bool. Unlikely, but C++ could differ.
27293 elif test "$cf_cv_builtin_bool" = 0
27298 # this is the normal case
27299 USE_CXX_BOOL='defined(__cplusplus)'
27302 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27304 if test "$cf_with_ada" != "no" ; then
27305 if test "$with_libtool" != "no"; then
27306 { echo "$as_me:27306: WARNING: libtool does not support Ada - disabling feature" >&5
27307 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27312 if test "$cf_with_ada" != "no" ; then
27314 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27317 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27319 unset ac_cv_path_cf_TEMP_gnat
27321 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27322 set dummy $cf_prog_gnat; ac_word=$2
27323 echo "$as_me:27323: checking for $ac_word" >&5
27324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27325 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27328 case $cf_TEMP_gnat in
27330 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27333 ac_save_IFS=$IFS; IFS=$ac_path_separator
27335 for ac_dir in $ac_dummy; do
27337 test -z "$ac_dir" && ac_dir=.
27338 if $as_executable_p "$ac_dir/$ac_word"; then
27339 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27340 echo "$as_me:27340: found $ac_dir/$ac_word" >&5
27345 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27349 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27351 if test -n "$cf_TEMP_gnat"; then
27352 echo "$as_me:27352: result: $cf_TEMP_gnat" >&5
27353 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27355 echo "$as_me:27355: result: no" >&5
27356 echo "${ECHO_T}no" >&6
27359 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27361 if test "x$cf_TEMP_gnat" != xno; then
27362 unset cf_cv_gnat_version
27365 echo "$as_me:27365: checking for $cf_prog_gnat version" >&5
27366 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27367 if test "${cf_cv_gnat_version+set}" = set; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27371 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27372 grep '[0-9].[0-9][0-9]*' |\
27373 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27376 echo "$as_me:27376: result: $cf_cv_gnat_version" >&5
27377 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27378 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27379 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27382 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27385 unset cf_cv_gnat_version
27386 unset ac_cv_path_cf_TEMP_gnat
27389 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27391 cf_cv_prog_gnat_correct=no
27393 cf_ada_make=gnatmake
27394 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27395 # gprconfig is newer than gnatmake; we can continue...
27398 rm -rf ./conftest* ./*~conftest*
27399 if mkdir conftest.src
27403 for cf_gprconfig in Ada C
27405 echo "$as_me:27405: checking for gprconfig name for $cf_gprconfig" >&5
27406 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27407 if test "$cf_gprconfig" = C
27409 for cf_gprconfig_param in \
27410 "$cf_gprconfig,,,,GNATGCC" \
27411 "$cf_gprconfig,,,,GCC" \
27414 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27415 test -n "$cf_gprconfig_value" && break
27418 cf_gprconfig_param=$cf_gprconfig
27419 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27421 if test -n "$cf_gprconfig_value"
27423 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27424 echo "$as_me:27424: result: $cf_gprconfig_value" >&5
27425 echo "${ECHO_T}$cf_gprconfig_value" >&6
27427 echo "$as_me:27427: result: missing" >&5
27428 echo "${ECHO_T}missing" >&6
27434 rm -rf ./conftest* ./*~conftest*
27437 if test "x$cf_ada_config" != "x#"
27440 echo "$as_me:27440: checking for gnat version" >&5
27441 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27442 if test "${cf_cv_gnat_version+set}" = set; then
27443 echo $ECHO_N "(cached) $ECHO_C" >&6
27446 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27447 grep '[0-9].[0-9][0-9]*' |\
27448 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27451 echo "$as_me:27451: result: $cf_cv_gnat_version" >&5
27452 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27453 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27455 case "$cf_cv_gnat_version" in
27456 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27457 cf_cv_prog_gnat_correct=yes
27460 { echo "$as_me:27460: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27461 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27462 cf_cv_prog_gnat_correct=no
27466 # Extract the first word of "m4", so it can be a program name with args.
27467 set dummy m4; ac_word=$2
27468 echo "$as_me:27468: checking for $ac_word" >&5
27469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27470 if test "${ac_cv_prog_M4_exists+set}" = set; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27473 if test -n "$M4_exists"; then
27474 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27476 ac_save_IFS=$IFS; IFS=$ac_path_separator
27478 for ac_dir in $ac_dummy; do
27480 test -z "$ac_dir" && ac_dir=.
27481 $as_executable_p "$ac_dir/$ac_word" || continue
27482 ac_cv_prog_M4_exists="yes"
27483 echo "$as_me:27483: found $ac_dir/$ac_word" >&5
27487 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27490 M4_exists=$ac_cv_prog_M4_exists
27491 if test -n "$M4_exists"; then
27492 echo "$as_me:27492: result: $M4_exists" >&5
27493 echo "${ECHO_T}$M4_exists" >&6
27495 echo "$as_me:27495: result: no" >&5
27496 echo "${ECHO_T}no" >&6
27499 if test "$ac_cv_prog_M4_exists" = no; then
27500 cf_cv_prog_gnat_correct=no
27501 { echo "$as_me:27501: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27502 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27504 if test "$cf_cv_prog_gnat_correct" = yes; then
27505 echo "$as_me:27505: checking if GNAT works" >&5
27506 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27508 rm -rf ./conftest* ./*~conftest*
27509 cat >>conftest.ads <<CF_EOF
27510 procedure conftest;
27512 cat >>conftest.adb <<CF_EOF
27515 procedure conftest is
27517 Text_IO.Put ("Hello World");
27519 GNAT.OS_Lib.OS_Exit (0);
27522 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27523 if ( ./conftest 1>&5 2>&1 ) ; then
27524 cf_cv_prog_gnat_correct=yes
27526 cf_cv_prog_gnat_correct=no
27529 cf_cv_prog_gnat_correct=no
27531 rm -rf ./conftest* ./*~conftest*
27533 echo "$as_me:27533: result: $cf_cv_prog_gnat_correct" >&5
27534 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27537 cf_cv_prog_gnat_correct=no
27541 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27543 ADAFLAGS="$ADAFLAGS -gnatpn"
27545 echo "$as_me:27545: checking optimization options for ADAFLAGS" >&5
27546 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27550 ADAFLAGS="$ADAFLAGS -g"
27556 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27558 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27562 echo "$as_me:27562: result: $ADAFLAGS" >&5
27563 echo "${ECHO_T}$ADAFLAGS" >&6
27565 echo "$as_me:27565: checking if GNATPREP supports -T option" >&5
27566 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27567 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27568 echo $ECHO_N "(cached) $ECHO_C" >&6
27571 cf_cv_gnatprep_opt_t=no
27572 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27575 echo "$as_me:27575: result: $cf_cv_gnatprep_opt_t" >&5
27576 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27577 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27579 echo "$as_me:27579: checking if GNAT supports generics" >&5
27580 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27581 case "$cf_cv_gnat_version" in
27582 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27583 cf_gnat_generics=yes
27586 cf_gnat_generics=no
27589 echo "$as_me:27589: result: $cf_gnat_generics" >&5
27590 echo "${ECHO_T}$cf_gnat_generics" >&6
27592 if test "$cf_gnat_generics" = yes
27594 cf_compile_generics=generics
27595 cf_generic_objects="\${GENOBJS}"
27597 cf_compile_generics=
27598 cf_generic_objects=
27601 echo "$as_me:27601: checking if GNAT supports SIGINT" >&5
27602 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27603 if test "${cf_cv_gnat_sigint+set}" = set; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27607 rm -rf ./conftest* ./*~conftest*
27608 cat >>conftest.ads <<CF_EOF
27609 with Ada.Interrupts.Names;
27611 package ConfTest is
27613 pragma Warnings (Off); -- the next pragma exists since 3.11p
27614 pragma Unreserve_All_Interrupts;
27615 pragma Warnings (On);
27617 protected Process is
27619 function Continue return Boolean;
27620 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27622 Done : Boolean := False;
27627 cat >>conftest.adb <<CF_EOF
27628 package body ConfTest is
27629 protected body Process is
27634 function Continue return Boolean is
27641 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27642 cf_cv_gnat_sigint=yes
27644 cf_cv_gnat_sigint=no
27646 rm -rf ./conftest* ./*~conftest*
27649 echo "$as_me:27649: result: $cf_cv_gnat_sigint" >&5
27650 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27652 if test "$cf_cv_gnat_sigint" = yes ; then
27655 USE_GNAT_SIGINT="#"
27658 cf_gnat_libraries=no
27659 cf_gnat_projects=no
27661 if test "$enable_gnat_projects" != no ; then
27662 echo "$as_me:27662: checking if GNAT supports project files" >&5
27663 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27664 case "$cf_cv_gnat_version" in
27668 case "$cf_cv_system_name" in
27672 rm -rf ./conftest* ./*~conftest*
27673 if mkdir conftest.src conftest.bin conftest.lib
27676 rm -rf ./conftest* ./*~conftest*
27677 cat >>library.gpr <<CF_EOF
27679 Kind := External ("LIB_KIND");
27680 for Library_Name use "ConfTest";
27681 for Object_Dir use ".";
27682 for Library_ALI_Dir use External("LIBRARY_DIR");
27683 for Library_Version use External ("SONAME");
27684 for Library_Kind use Kind;
27685 for Library_Dir use External("BUILD_DIR");
27686 Source_Dir := External ("SOURCE_DIR");
27687 for Source_Dirs use (Source_Dir);
27690 cat >>confpackage.ads <<CF_EOF
27691 package ConfPackage is
27692 procedure conftest;
27695 cat >>confpackage.adb <<CF_EOF
27697 package body ConfPackage is
27698 procedure conftest is
27700 Text_IO.Put ("Hello World");
27705 if ( "$cf_ada_make" $ADAFLAGS \
27707 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27708 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27709 -XSOURCE_DIR="`pwd`" \
27710 -XSONAME=libConfTest.so.1 \
27711 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27712 cf_gnat_projects=yes
27716 if test -f conftest.lib/confpackage.ali
27718 cf_gnat_libraries=yes
27720 rm -rf ./conftest* ./*~conftest*
27725 echo "$as_me:27725: result: $cf_gnat_projects" >&5
27726 echo "${ECHO_T}$cf_gnat_projects" >&6
27727 fi # enable_gnat_projects
27729 if test "$cf_gnat_projects" = yes
27731 echo "$as_me:27731: checking if GNAT supports libraries" >&5
27732 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27733 echo "$as_me:27733: result: $cf_gnat_libraries" >&5
27734 echo "${ECHO_T}$cf_gnat_libraries" >&6
27737 USE_OLD_MAKERULES=""
27738 USE_GNAT_PROJECTS="#"
27739 USE_GNAT_MAKE_GPR="#"
27740 USE_GNAT_GPRBUILD="#"
27742 if test "$cf_gnat_projects" = yes
27744 USE_OLD_MAKERULES="#"
27745 USE_GNAT_PROJECTS=""
27746 if test "$cf_cv_VERSION_GPRBUILD" != no
27748 USE_GNAT_GPRBUILD=""
27749 elif test "$cf_cv_VERSION_GNATMAKE" != no
27751 USE_GNAT_MAKE_GPR=""
27753 { echo "$as_me:27753: WARNING: use old makefile rules since tools are missing" >&5
27754 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27758 if test "$cf_gnat_libraries" = yes
27760 USE_GNAT_LIBRARIES=""
27762 USE_GNAT_LIBRARIES="#"
27765 echo "$as_me:27765: checking for Ada95 compiler" >&5
27766 echo $ECHO_N "checking for Ada95 compiler... $ECHO_C" >&6
27768 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27769 if test "${with_ada_compiler+set}" = set; then
27770 withval="$with_ada_compiler"
27771 cf_ada_compiler=$withval
27773 cf_ada_compiler=gnatmake
27776 echo "$as_me:27776: result: $cf_ada_compiler" >&5
27777 echo "${ECHO_T}$cf_ada_compiler" >&6
27779 cf_ada_package=terminal_interface
27781 echo "$as_me:27781: checking for Ada95 include directory" >&5
27782 echo $ECHO_N "checking for Ada95 include directory... $ECHO_C" >&6
27784 # Check whether --with-ada-include or --without-ada-include was given.
27785 if test "${with_ada_include+set}" = set; then
27786 withval="$with_ada_include"
27789 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27790 fi; if test -n "$prefix/share/ada/adainclude" ; then
27792 if test "x$prefix" != xNONE; then
27793 cf_path_syntax="$prefix"
27795 cf_path_syntax="$ac_default_prefix"
27798 case ".$withval" in
27799 (.\$\(*\)*|.\'*\'*)
27803 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27805 (.\$\{*prefix\}*|.\$\{*dir\}*)
27806 eval withval="$withval"
27807 case ".$withval" in
27809 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27814 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27817 { { echo "$as_me:27817: error: expected a pathname, not \"$withval\"" >&5
27818 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27819 { (exit 1); exit 1; }; }
27824 eval ADA_INCLUDE="$withval"
27826 echo "$as_me:27826: result: $ADA_INCLUDE" >&5
27827 echo "${ECHO_T}$ADA_INCLUDE" >&6
27829 echo "$as_me:27829: checking for Ada95 object directory" >&5
27830 echo $ECHO_N "checking for Ada95 object directory... $ECHO_C" >&6
27832 # Check whether --with-ada-objects or --without-ada-objects was given.
27833 if test "${with_ada_objects+set}" = set; then
27834 withval="$with_ada_objects"
27837 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27838 fi; if test -n "$prefix/lib/ada/adalib" ; then
27840 if test "x$prefix" != xNONE; then
27841 cf_path_syntax="$prefix"
27843 cf_path_syntax="$ac_default_prefix"
27846 case ".$withval" in
27847 (.\$\(*\)*|.\'*\'*)
27851 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27853 (.\$\{*prefix\}*|.\$\{*dir\}*)
27854 eval withval="$withval"
27855 case ".$withval" in
27857 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27862 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27865 { { echo "$as_me:27865: error: expected a pathname, not \"$withval\"" >&5
27866 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27867 { (exit 1); exit 1; }; }
27872 eval ADA_OBJECTS="$withval"
27874 echo "$as_me:27874: result: $ADA_OBJECTS" >&5
27875 echo "${ECHO_T}$ADA_OBJECTS" >&6
27877 echo "$as_me:27877: checking whether to build an Ada95 shared library" >&5
27878 echo $ECHO_N "checking whether to build an Ada95 shared library... $ECHO_C" >&6
27880 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27881 if test "${with_ada_sharedlib+set}" = set; then
27882 withval="$with_ada_sharedlib"
27883 with_ada_sharedlib=$withval
27885 with_ada_sharedlib=no
27887 cf_ada_sharedlib_warn=no
27889 if test "x$with_ada_sharedlib" != xno
27891 if test "x$cf_gnat_projects" != xyes
27893 with_ada_sharedlib=no
27894 cf_ada_sharedlib_warn=yes
27898 echo "$as_me:27898: result: $with_ada_sharedlib" >&5
27899 echo "${ECHO_T}$with_ada_sharedlib" >&6
27900 if test "x$cf_ada_sharedlib_warn" != xno
27902 { echo "$as_me:27902: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&5
27903 echo "$as_me: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&2;}
27906 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27907 MAKE_ADA_SHAREDLIB="#"
27909 if test "x$with_ada_sharedlib" != xno
27911 MAKE_ADA_SHAREDLIB=
27912 if test "x$with_ada_sharedlib" != xyes
27914 ADA_SHAREDLIB="$with_ada_sharedlib"
27918 # allow the Ada binding to be renamed
27920 echo "$as_me:27920: checking for Ada95 curses library name" >&5
27921 echo $ECHO_N "checking for Ada95 curses library name... $ECHO_C" >&6
27923 # Check whether --with-ada-libname or --without-ada-libname was given.
27924 if test "${with_ada_libname+set}" = set; then
27925 withval="$with_ada_libname"
27926 ADA_LIBNAME=$withval
27928 ADA_LIBNAME=AdaCurses
27930 case "x$ADA_LIBNAME" in
27932 ADA_LIBNAME=AdaCurses
27936 echo "$as_me:27936: result: $ADA_LIBNAME" >&5
27937 echo "${ECHO_T}$ADA_LIBNAME" >&6
27945 # do this "late" to avoid conflict with header-checks
27946 if test "x$with_widec" = xyes ; then
27947 echo "$as_me:27947: checking for wchar_t" >&5
27948 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27949 if test "${ac_cv_type_wchar_t+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 cat >"conftest.$ac_ext" <<_ACEOF
27953 #line 27953 "configure"
27954 #include "confdefs.h"
27955 $ac_includes_default
27961 if (sizeof (wchar_t))
27967 rm -f "conftest.$ac_objext"
27968 if { (eval echo "$as_me:27968: \"$ac_compile\"") >&5
27969 (eval $ac_compile) 2>&5
27971 echo "$as_me:27971: \$? = $ac_status" >&5
27972 (exit "$ac_status"); } &&
27973 { ac_try='test -s "conftest.$ac_objext"'
27974 { (eval echo "$as_me:27974: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27977 echo "$as_me:27977: \$? = $ac_status" >&5
27978 (exit "$ac_status"); }; }; then
27979 ac_cv_type_wchar_t=yes
27981 echo "$as_me: failed program was:" >&5
27982 cat "conftest.$ac_ext" >&5
27983 ac_cv_type_wchar_t=no
27985 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27987 echo "$as_me:27987: result: $ac_cv_type_wchar_t" >&5
27988 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27990 echo "$as_me:27990: checking size of wchar_t" >&5
27991 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27992 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27995 if test "$ac_cv_type_wchar_t" = yes; then
27996 if test "$cross_compiling" = yes; then
27997 # Depending upon the size, compute the lo and hi bounds.
27998 cat >"conftest.$ac_ext" <<_ACEOF
27999 #line 27999 "configure"
28000 #include "confdefs.h"
28001 $ac_includes_default
28005 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
28010 rm -f "conftest.$ac_objext"
28011 if { (eval echo "$as_me:28011: \"$ac_compile\"") >&5
28012 (eval $ac_compile) 2>&5
28014 echo "$as_me:28014: \$? = $ac_status" >&5
28015 (exit "$ac_status"); } &&
28016 { ac_try='test -s "conftest.$ac_objext"'
28017 { (eval echo "$as_me:28017: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28020 echo "$as_me:28020: \$? = $ac_status" >&5
28021 (exit "$ac_status"); }; }; then
28024 cat >"conftest.$ac_ext" <<_ACEOF
28025 #line 28025 "configure"
28026 #include "confdefs.h"
28027 $ac_includes_default
28031 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28036 rm -f "conftest.$ac_objext"
28037 if { (eval echo "$as_me:28037: \"$ac_compile\"") >&5
28038 (eval $ac_compile) 2>&5
28040 echo "$as_me:28040: \$? = $ac_status" >&5
28041 (exit "$ac_status"); } &&
28042 { ac_try='test -s "conftest.$ac_objext"'
28043 { (eval echo "$as_me:28043: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28046 echo "$as_me:28046: \$? = $ac_status" >&5
28047 (exit "$ac_status"); }; }; then
28048 ac_hi=$ac_mid; break
28050 echo "$as_me: failed program was:" >&5
28051 cat "conftest.$ac_ext" >&5
28052 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
28054 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28057 echo "$as_me: failed program was:" >&5
28058 cat "conftest.$ac_ext" >&5
28061 cat >"conftest.$ac_ext" <<_ACEOF
28062 #line 28062 "configure"
28063 #include "confdefs.h"
28064 $ac_includes_default
28068 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
28073 rm -f "conftest.$ac_objext"
28074 if { (eval echo "$as_me:28074: \"$ac_compile\"") >&5
28075 (eval $ac_compile) 2>&5
28077 echo "$as_me:28077: \$? = $ac_status" >&5
28078 (exit "$ac_status"); } &&
28079 { ac_try='test -s "conftest.$ac_objext"'
28080 { (eval echo "$as_me:28080: \"$ac_try\"") >&5
28081 (eval $ac_try) 2>&5
28083 echo "$as_me:28083: \$? = $ac_status" >&5
28084 (exit "$ac_status"); }; }; then
28085 ac_lo=$ac_mid; break
28087 echo "$as_me: failed program was:" >&5
28088 cat "conftest.$ac_ext" >&5
28089 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
28091 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28094 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28095 # Binary search between lo and hi bounds.
28096 while test "x$ac_lo" != "x$ac_hi"; do
28097 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28098 cat >"conftest.$ac_ext" <<_ACEOF
28099 #line 28099 "configure"
28100 #include "confdefs.h"
28101 $ac_includes_default
28105 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28110 rm -f "conftest.$ac_objext"
28111 if { (eval echo "$as_me:28111: \"$ac_compile\"") >&5
28112 (eval $ac_compile) 2>&5
28114 echo "$as_me:28114: \$? = $ac_status" >&5
28115 (exit "$ac_status"); } &&
28116 { ac_try='test -s "conftest.$ac_objext"'
28117 { (eval echo "$as_me:28117: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:28120: \$? = $ac_status" >&5
28121 (exit "$ac_status"); }; }; then
28124 echo "$as_me: failed program was:" >&5
28125 cat "conftest.$ac_ext" >&5
28126 ac_lo=`expr "$ac_mid" + 1`
28128 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28130 ac_cv_sizeof_wchar_t=$ac_lo
28132 if test "$cross_compiling" = yes; then
28133 { { echo "$as_me:28133: error: cannot run test program while cross compiling" >&5
28134 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28135 { (exit 1); exit 1; }; }
28137 cat >"conftest.$ac_ext" <<_ACEOF
28138 #line 28138 "configure"
28139 #include "confdefs.h"
28140 $ac_includes_default
28144 FILE *f = fopen ("conftest.val", "w");
28146 $ac_main_return (1);
28147 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28153 rm -f "conftest$ac_exeext"
28154 if { (eval echo "$as_me:28154: \"$ac_link\"") >&5
28155 (eval $ac_link) 2>&5
28157 echo "$as_me:28157: \$? = $ac_status" >&5
28158 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28159 { (eval echo "$as_me:28159: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28162 echo "$as_me:28162: \$? = $ac_status" >&5
28163 (exit "$ac_status"); }; }; then
28164 ac_cv_sizeof_wchar_t=`cat conftest.val`
28166 echo "$as_me: program exited with status $ac_status" >&5
28167 echo "$as_me: failed program was:" >&5
28168 cat "conftest.$ac_ext" >&5
28170 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28175 ac_cv_sizeof_wchar_t=0
28178 echo "$as_me:28178: result: $ac_cv_sizeof_wchar_t" >&5
28179 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28180 cat >>confdefs.h <<EOF
28181 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28184 # cross-compiling to mingw can run into the problem that attempting to
28185 # link with the regex library fails, causing the test to not set this to
28186 # a number. "recent" autoconf does not address this problem either -TD
28187 if test -z "$ac_cv_sizeof_wchar_t"
28189 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28191 echo "${as_me:-configure}:28191: testing test failed (assume 2) ..." 1>&5
28193 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28194 mv confdefs.tmp confdefs.h
28195 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28199 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28200 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28202 ### ticlib modules may be a separate library, otherwise contained in termlib.
28203 ### termlib modules may be a separate library, otherwise contained in ncurses.
28205 ### The of "+" or " " between the tokens controls the way the script
28206 ### chooses to split module lists into libraries.
28208 ### (see CF_LIB_RULES).
28209 echo "$as_me:28209: checking for library subsets" >&5
28210 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28213 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28214 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28215 if test "$with_ticlib" != no ; then
28216 LIB_SUBSETS="${LIB_SUBSETS} "
28218 LIB_SUBSETS="${LIB_SUBSETS}+"
28222 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28223 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28225 if test "$with_termlib" != no ; then
28226 LIB_SUBSETS="${LIB_SUBSETS} "
28228 LIB_SUBSETS="${LIB_SUBSETS}+"
28231 LIB_SUBSETS="${LIB_SUBSETS}base"
28233 # Most term-driver calls are to tinfo, but some like init_pair are to the
28234 # base library (so it resides in base).
28235 if test "$with_term_driver" != no ; then
28236 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28237 case "$cf_cv_system_name" in
28238 (*mingw32*|*mingw64*)
28239 if test "x$with_exp_win32" = xyes ; then
28240 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28242 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28244 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28247 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28250 elif test "x$with_exp_win32" = xyes ; then
28251 case "$cf_cv_system_name" in
28252 (*mingw32*|*mingw64*)
28253 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28260 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28261 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28263 echo "$as_me:28263: result: $LIB_SUBSETS" >&5
28264 echo "${ECHO_T}$LIB_SUBSETS" >&6
28266 ### Construct the list of include-directories to be generated
28268 if test "$srcdir" != "."; then
28269 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28271 CPPFLAGS="-I../include $CPPFLAGS"
28272 if test "$srcdir" != "."; then
28273 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28275 CPPFLAGS="-I. $CPPFLAGS"
28277 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28278 if test "$srcdir" != "."; then
28279 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28281 if test "$GCC" != yes; then
28282 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28283 elif test "$includedir" != "/usr/include"; then
28284 if test "$includedir" = '${prefix}/include' ; then
28285 if test x$prefix != x/usr ; then
28286 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28289 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28293 ### Build up pieces for makefile rules
28294 echo "$as_me:28294: checking default library suffix" >&5
28295 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28297 case $DFT_LWR_MODEL in
28298 (libtool) DFT_ARG_SUFFIX='' ;;
28299 (normal) DFT_ARG_SUFFIX='' ;;
28300 (debug) DFT_ARG_SUFFIX='_g' ;;
28301 (profile) DFT_ARG_SUFFIX='_p' ;;
28302 (shared) DFT_ARG_SUFFIX='' ;;
28304 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28305 echo "$as_me:28305: result: $DFT_ARG_SUFFIX" >&5
28306 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28308 echo "$as_me:28308: checking default library-dependency suffix" >&5
28309 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28311 case X$DFT_LWR_MODEL in
28313 DFT_LIB_SUFFIX='.la'
28314 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28317 case "$cf_cv_system_name" in
28319 DFT_LIB_SUFFIX='_g.lib'
28322 DFT_LIB_SUFFIX='_g.a'
28325 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28328 case "$cf_cv_system_name" in
28330 DFT_LIB_SUFFIX='_p.lib'
28333 DFT_LIB_SUFFIX='_p.a'
28336 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28339 case "$cf_cv_system_name" in
28341 DFT_LIB_SUFFIX='.so'
28342 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28345 DFT_LIB_SUFFIX='.dll'
28346 DFT_DEP_SUFFIX='.dll.lib'
28348 (cygwin*|msys*|mingw*)
28349 DFT_LIB_SUFFIX='.dll'
28350 DFT_DEP_SUFFIX='.dll.a'
28353 DFT_LIB_SUFFIX='.dylib'
28354 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28359 DFT_LIB_SUFFIX='.so'
28360 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28363 DFT_LIB_SUFFIX='.sl'
28364 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28369 DFT_LIB_SUFFIX='.so'
28370 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28377 DFT_LIB_SUFFIX='.lib'
28380 DFT_LIB_SUFFIX='.a'
28383 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28386 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28388 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28389 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28391 echo "$as_me:28391: result: $DFT_DEP_SUFFIX" >&5
28392 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28394 echo "$as_me:28394: checking default object directory" >&5
28395 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28397 case $DFT_LWR_MODEL in
28398 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28399 (normal) DFT_OBJ_SUBDIR='objects' ;;
28400 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28401 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28403 case "$cf_cv_system_name" in
28405 DFT_OBJ_SUBDIR='objects' ;;
28407 DFT_OBJ_SUBDIR='obj_s' ;;
28410 echo "$as_me:28410: result: $DFT_OBJ_SUBDIR" >&5
28411 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28413 if test "x$cf_with_cxx" = xyes ; then
28414 echo "$as_me:28414: checking c++ library-dependency suffix" >&5
28415 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28416 if test "$with_libtool" != "no"; then
28417 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28418 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28419 elif test "$with_shared_cxx" != "no"; then
28420 # also for g++ users...
28421 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28423 # we normally make a static library because C/C++ library rules differ
28427 CXX_LIB_SUFFIX='.la'
28428 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28431 case "$cf_cv_system_name" in
28433 CXX_LIB_SUFFIX='_g.lib'
28436 CXX_LIB_SUFFIX='_g.a'
28439 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28442 case "$cf_cv_system_name" in
28444 CXX_LIB_SUFFIX='_p.lib'
28447 CXX_LIB_SUFFIX='_p.a'
28450 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28453 case "$cf_cv_system_name" in
28455 CXX_LIB_SUFFIX='.so'
28456 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28459 CXX_LIB_SUFFIX='.dll'
28460 CXX_DEP_SUFFIX='.dll.lib'
28462 (cygwin*|msys*|mingw*)
28463 CXX_LIB_SUFFIX='.dll'
28464 CXX_DEP_SUFFIX='.dll.a'
28467 CXX_LIB_SUFFIX='.dylib'
28468 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28473 CXX_LIB_SUFFIX='.so'
28474 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28477 CXX_LIB_SUFFIX='.sl'
28478 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28483 CXX_LIB_SUFFIX='.so'
28484 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28491 CXX_LIB_SUFFIX='.lib'
28494 CXX_LIB_SUFFIX='.a'
28497 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28500 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28502 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28503 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28507 echo "$as_me:28507: result: $CXX_LIB_SUFFIX" >&5
28508 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28512 # do not want -ldl in build except as needed for -lncurses dependency
28513 if test "x$with_dlsym" = xyes ; then
28514 if test "$DFT_LWR_MODEL" = shared || \
28515 test "$DFT_LWR_MODEL" = libtool ; then
28517 # remove dl library from $LIBS
28518 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28522 ### Set up low-level terminfo dependencies for makefiles.
28524 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28525 # do not need libdl
28527 if test "x$with_dlsym" = xyes ; then
28529 # remove dl library from $SHLIB_LIST
28530 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28534 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28535 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28536 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28537 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28539 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28542 if test "$with_ticlib" != no ; then
28544 if test "x$with_ticlib" != xyes ; then
28545 TICS_NAME=$with_ticlib
28546 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28547 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28548 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28549 TICS_LIB_SUFFIX="${with_ticlib}"
28551 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28552 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28553 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28554 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28556 TICS_LDFLAGS="-L${LIB_DIR}"
28557 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28559 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28560 TICS_LDFLAGS="-L${LIB_DIR}"
28561 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28564 if test "$with_termlib" != no ; then
28566 if test "x$with_termlib" != xyes ; then
28567 TINFO_NAME=$with_termlib
28568 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28569 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28570 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28571 TINFO_LIB_SUFFIX="${with_termlib}"
28573 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28574 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28575 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28576 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28579 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28580 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28581 if test "$DFT_LWR_MODEL" = "libtool"; then
28582 TEST_ARGS="${TEST_DEPS}"
28583 TEST_ARG2="${TEST_DEP2}"
28584 TINFO_LDFLAGS="-L${LIB_DIR}"
28585 TINFO_LIBS="$TEST_ARGS"
28586 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28587 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28589 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28590 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28591 if test "x$with_term_driver" != xno ; then
28592 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28593 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28594 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28596 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28597 TINFO_LIBS="$TEST_ARGS"
28599 TINFO_LDFLAGS="-L${LIB_DIR}"
28600 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28603 # the next lines are needed for linking libtic over libncurses
28604 TINFO_NAME=${LIB_NAME}
28605 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28606 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28607 if test "x$with_tic_depends" = xyes ; then
28608 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28610 TICS_LIST="$SHLIB_LIST"
28613 TINFO_LDFLAGS="-L${LIB_DIR}"
28614 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28617 if test "$DFT_LWR_MODEL" = shared ; then
28618 case "$cf_cv_system_name" in
28620 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28626 if test "x$with_dlsym" = xyes ; then
28628 # remove dl library from $TICS_LIST
28629 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28633 if test "$DFT_LWR_MODEL" = "libtool"; then
28638 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28640 case "$DFT_LWR_MODEL" in
28641 (normal|debug|profile)
28643 if test "$GCC" = yes ; then
28644 case "$cf_cv_system_name" in
28645 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28649 (*) # normally, except when broken
28650 LDFLAGS_STATIC=-static
28651 LDFLAGS_SHARED=-dynamic
28655 case "$cf_cv_system_name" in
28656 (aix[4-7]*) # from ld manpage
28657 LDFLAGS_STATIC=-bstatic
28658 LDFLAGS_SHARED=-bdynamic
28660 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28661 # We could also use just "archive" and "shared".
28662 LDFLAGS_STATIC=-Wl,-a,archive_shared
28663 LDFLAGS_SHARED=-Wl,-a,shared_archive
28665 (irix*) # from ld manpage IRIX64
28666 LDFLAGS_STATIC=-Bstatic
28667 LDFLAGS_SHARED=-Bdynamic
28669 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28670 # alternative "-oldstyle_liblookup" (not in cc manpage)
28671 LDFLAGS_STATIC=-noso
28672 LDFLAGS_SHARED=-so_archive
28675 LDFLAGS_STATIC=-Bstatic
28676 LDFLAGS_SHARED=-Bdynamic
28681 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28683 echo "$as_me:28683: checking if linker supports switching between static/dynamic" >&5
28684 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28686 rm -f libconftest.a
28687 cat >conftest.$ac_ext <<EOF
28688 #line 28688 "configure"
28690 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28692 if { (eval echo "$as_me:28692: \"$ac_compile\"") >&5
28693 (eval $ac_compile) 2>&5
28695 echo "$as_me:28695: \$? = $ac_status" >&5
28696 (exit "$ac_status"); } ; then
28697 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28698 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28702 cf_save_LIBS="$LIBS"
28704 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28705 cat >"conftest.$ac_ext" <<_ACEOF
28706 #line 28706 "configure"
28707 #include "confdefs.h"
28709 #line 28709 "configure"
28711 int cf_ldflags_static(FILE *fp);
28717 return cf_ldflags_static(stdin);
28723 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28724 if { (eval echo "$as_me:28724: \"$ac_link\"") >&5
28725 (eval $ac_link) 2>&5
28727 echo "$as_me:28727: \$? = $ac_status" >&5
28728 (exit "$ac_status"); } &&
28729 { ac_try='test -s "conftest$ac_exeext"'
28730 { (eval echo "$as_me:28730: \"$ac_try\"") >&5
28731 (eval $ac_try) 2>&5
28733 echo "$as_me:28733: \$? = $ac_status" >&5
28734 (exit "$ac_status"); }; }; then
28736 # some linkers simply ignore the -dynamic
28737 case x`file "conftest$ac_exeext" 2>/dev/null` in
28739 cf_ldflags_static=no
28742 cf_ldflags_static=yes
28747 echo "$as_me: failed program was:" >&5
28748 cat "conftest.$ac_ext" >&5
28749 cf_ldflags_static=no
28751 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28753 rm -f libconftest.*
28754 LIBS="$cf_save_LIBS"
28756 echo "$as_me:28756: result: $cf_ldflags_static" >&5
28757 echo "${ECHO_T}$cf_ldflags_static" >&6
28759 if test "$cf_ldflags_static" != yes
28772 echo "$as_me:28772: checking where we will install curses.h" >&5
28773 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28776 if test "$with_overwrite" = no && \
28777 { test "x$includedir" = 'x${prefix}/include' || \
28778 test "x$includedir" = "x${prefix}/include"; }
28780 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28782 echo "$as_me:28782: result: ${includedir}${includesubdir}" >&5
28783 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28785 ### Resolve a conflict between normal and wide-curses by forcing applications
28786 ### that will need libutf8 to add it to their configure script.
28787 if test "$with_overwrite" != no ; then
28788 if test "$NCURSES_LIBUTF8" = 1 ; then
28789 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28790 { echo "$as_me:28790: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28791 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28794 WITH_OVERWRITE=$with_overwrite
28796 ### At least on MinGW a shared library build without libtool
28797 ### requires adding the additional libs to the link list.
28798 case "$cf_cv_system_name" in
28799 (*mingw32*|*mingw64*)
28800 if test "$DFT_LWR_MODEL" != "libtool"; then
28801 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28807 ### predefined stuff for the test programs
28809 cat >>confdefs.h <<\EOF
28810 #define HAVE_SLK_COLOR 1
28813 # pkgsrc uses these
28815 echo "$as_me:28815: checking for desired basename for form library" >&5
28816 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28818 # Check whether --with-form-libname or --without-form-libname was given.
28819 if test "${with_form_libname+set}" = set; then
28820 withval="$with_form_libname"
28821 with_lib_basename=$withval
28823 with_lib_basename=form
28825 FORM_NAME="$with_lib_basename"
28827 case "x$FORM_NAME" in
28835 echo "$as_me:28835: result: $FORM_NAME" >&5
28836 echo "${ECHO_T}$FORM_NAME" >&6
28838 echo "$as_me:28838: checking for desired basename for menu library" >&5
28839 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28841 # Check whether --with-menu-libname or --without-menu-libname was given.
28842 if test "${with_menu_libname+set}" = set; then
28843 withval="$with_menu_libname"
28844 with_lib_basename=$withval
28846 with_lib_basename=menu
28848 MENU_NAME="$with_lib_basename"
28850 case "x$MENU_NAME" in
28858 echo "$as_me:28858: result: $MENU_NAME" >&5
28859 echo "${ECHO_T}$MENU_NAME" >&6
28861 echo "$as_me:28861: checking for desired basename for panel library" >&5
28862 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28864 # Check whether --with-panel-libname or --without-panel-libname was given.
28865 if test "${with_panel_libname+set}" = set; then
28866 withval="$with_panel_libname"
28867 with_lib_basename=$withval
28869 with_lib_basename=panel
28871 PANEL_NAME="$with_lib_basename"
28873 case "x$PANEL_NAME" in
28881 echo "$as_me:28881: result: $PANEL_NAME" >&5
28882 echo "${ECHO_T}$PANEL_NAME" >&6
28884 echo "$as_me:28884: checking for desired basename for cxx library" >&5
28885 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28887 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28888 if test "${with_cxx_libname+set}" = set; then
28889 withval="$with_cxx_libname"
28890 with_lib_basename=$withval
28892 with_lib_basename=ncurses++
28894 CXX_NAME="$with_lib_basename"
28896 case "x$CXX_NAME" in
28904 echo "$as_me:28904: result: $CXX_NAME" >&5
28905 echo "${ECHO_T}$CXX_NAME" >&6
28907 ### Construct the list of subdirectories for which we'll customize makefiles
28908 ### with the appropriate compile-rules.
28910 echo "$as_me:28910: checking for src modules" >&5
28911 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28913 # dependencies and linker-arguments for test-programs
28914 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28915 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28916 if test "$DFT_LWR_MODEL" = "libtool"; then
28917 TEST_ARGS="${TEST_DEPS}"
28918 TEST_ARG2="${TEST_DEP2}"
28920 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28921 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28924 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28926 for cf_dir in $modules_to_build
28928 if test -f "$srcdir/$cf_dir/modules" ; then
28930 if test -z "$cf_cv_src_modules"; then
28931 cf_cv_src_modules=$cf_dir
28933 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28936 # Make the ncurses_cfg.h file record the library interface files as
28937 # well. These are header files that are the same name as their
28938 # directory. Ncurses is the only library that does not follow
28940 if test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28942 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28944 cat >>confdefs.h <<EOF
28945 #define HAVE_${cf_have_include}_H 1
28948 cat >>confdefs.h <<EOF
28949 #define HAVE_LIB${cf_have_include} 1
28952 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28954 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28956 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28957 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28958 if test "$DFT_LWR_MODEL" = "libtool"; then
28959 TEST_ARGS="${TEST_DEPS}"
28960 TEST_ARG2="${TEST_DEP2}"
28962 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28963 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28965 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28969 echo "$as_me:28969: result: $cf_cv_src_modules" >&5
28970 echo "${ECHO_T}$cf_cv_src_modules" >&6
28972 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28973 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28976 if test "x$cf_with_manpages" != xno ; then
28977 SRC_SUBDIRS="$SRC_SUBDIRS man"
28979 SRC_SUBDIRS="$SRC_SUBDIRS include"
28980 for cf_dir in $cf_cv_src_modules
28982 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28984 if test "x$cf_with_tests" != "xno" ; then
28985 SRC_SUBDIRS="$SRC_SUBDIRS test"
28987 # always make this, to install the ncurses-config script
28988 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28989 if test "$cf_with_cxx_binding" != no; then
28990 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28991 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28994 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28995 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28998 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28999 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
29000 ADA_SUBDIRS="gen src"
29001 if test "x$cf_with_tests" != "xno" ; then
29002 ADA_SUBDIRS="$ADA_SUBDIRS samples"
29007 for cf_dir in $SRC_SUBDIRS
29009 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
29012 if test -n "$ADA_SUBDIRS"; then
29013 for cf_dir in $ADA_SUBDIRS
29015 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
29020 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
29021 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
29022 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
29023 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
29027 for cf_item in $cf_list_models
29031 (libtool) cf_subdir='obj_lo' ;;
29032 (normal) cf_subdir='objects' ;;
29033 (debug) cf_subdir='obj_g' ;;
29034 (profile) cf_subdir='obj_p' ;;
29036 case "$cf_cv_system_name" in
29038 cf_subdir='objects' ;;
29040 cf_subdir='obj_s' ;;
29044 for cf_item2 in $DIRS_TO_MAKE
29046 test "$cf_item2" = "$cf_subdir" && break
29048 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
29050 for cf_dir in $DIRS_TO_MAKE
29052 test ! -d "$cf_dir" && mkdir "$cf_dir"
29055 # symbols that differ when compiling Ada95 by itself.
29056 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
29058 # values to use as strings
29060 cat >>confdefs.h <<EOF
29061 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
29064 cat >>confdefs.h <<EOF
29065 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
29068 ### Define substitutions for header files to avoid name-pollution
29070 if test "x$cf_cv_have_tcgetattr" = xyes ; then
29076 if test "x$ac_cv_header_stdint_h" = xyes ; then
29082 if test "x$ac_cv_header_termio_h" = xyes ; then
29088 if test "x$ac_cv_header_termios_h" = xyes ; then
29094 ################################################################################
29095 test "x$use_database" = xyes && \
29096 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29098 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29099 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29101 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29102 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29105 if test "x$cf_with_tests" != xno ; then
29111 ADAHTML_DIR=../../doc/html/ada
29113 # workaround for OS/2 (20151017)
29114 case "$cf_cv_system_name" in
29116 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29123 # workaround for g++ versus Solaris (20131116)
29124 case "$cf_cv_system_name" in
29126 case "x$CPPFLAGS" in
29127 (*-D_XOPEN_SOURCE_EXTENDED*)
29128 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29130 echo "${as_me:-configure}:29130: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29132 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29133 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29139 # Help to automatically enable the extended curses features when using either
29140 # the *-config or the ".pc" files by adding defines.
29141 echo "$as_me:29141: checking for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script" >&5
29142 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script... $ECHO_C" >&6
29144 for cf_loop1 in $CPPFLAGS_after_XOPEN
29147 for cf_loop2 in $CPPFLAGS_before_XOPEN
29149 if test "x$cf_loop1" = "x$cf_loop2"
29155 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29157 echo "$as_me:29157: result: $PKG_CFLAGS" >&5
29158 echo "${ECHO_T}$PKG_CFLAGS" >&6
29160 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29161 case "x$NCURSES_OSPEED" in
29170 cat >>confdefs.h <<EOF
29171 #define NCURSES_OSPEED_COMPAT $cf_compatible
29174 case "x$cf_cv_typeof_chtype" in
29175 (xshort|xint|xlong)
29176 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29180 case "x$cf_cv_typeof_mmask_t" in
29181 (xshort|xint|xlong)
29182 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29186 # substitute into misc/Makefile to suppress
29187 # (un)install.data from the
29188 # (un)install rules.
29189 if test "x$cf_with_db_install" = "xno"; then
29191 MISC_UNINSTALL_DATA=
29193 MISC_INSTALL_DATA=install.data
29194 MISC_UNINSTALL_DATA=uninstall.data
29197 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29200 MAKE_DATABASE="$MAKE_TERMINFO"
29203 if test -n "$PACKAGE"
29205 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29207 echo "package: $PACKAGE"
29213 if test -n "$RESULTING_SYMS"
29215 cf_filter_syms=$cf_dft_filter_syms
29216 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29218 echo "${as_me:-configure}:29218: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29222 if test "x$WILDCARD_SYMS" = xno
29227 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29229 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29230 if test "$cf_filter_syms" = yes
29232 RESULTING_SYMS=resulting.map
29235 if test "x$cross_compiling" = xyes ; then
29236 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29239 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29243 # This is used for the *-config script and *.pc data files.
29245 echo "$as_me:29245: checking for linker search path" >&5
29246 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29247 if test "${cf_cv_ld_searchpath+set}" = set; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29251 if test "$cross_compiling" != yes ; then
29253 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29254 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29256 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29257 # update the cache, which makes it run faster.
29258 test -z "$cf_pathlist" && \
29259 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29261 test -z "$cf_pathlist" &&
29262 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29264 # This works with OpenBSD 6.5, which lists only filenames
29265 test -z "$cf_pathlist" &&
29266 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29268 if test -z "$cf_pathlist"
29270 # dyld default path with MacOS
29271 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29273 # do this to bypass check
29274 cf_cv_ld_searchpath='$HOME/lib'
29275 cf_pathlist="/usr/local/lib /lib /usr/lib"
29279 if test -z "$cf_pathlist"
29281 # Solaris is "SunOS"
29282 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29284 case x`(isainfo -b)` in
29286 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29289 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29290 cf_pathlist="$cf_pathlist /lib /usr/lib"
29293 { echo "$as_me:29293: WARNING: problem with Solaris architecture" >&5
29294 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29300 if test -z "$cf_pathlist"
29303 if test x"`uname -s`" = xHP-UX
29305 case x`getconf LONG_BIT` in
29307 cf_pathlist="/usr/lib/hpux64"
29310 cf_pathlist="/usr/lib/hpux32"
29318 # If nothing else, assume it is conventional
29319 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29321 # Finally, check that this is only directories
29322 for cf_path in $0 $cf_pathlist
29324 if test -d "$cf_path"; then
29325 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29326 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29330 # Ensure that it is nonempty
29331 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29334 echo "$as_me:29334: result: $cf_cv_ld_searchpath" >&5
29335 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29337 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29339 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h man/man_db.renames $SUB_MAKEFILES Makefile"
29340 ac_config_commands="$ac_config_commands default"
29341 cat >confcache <<\_ACEOF
29342 # This file is a shell script that caches the results of configure
29343 # tests run on this system so they can be shared between configure
29344 # scripts and configure runs, see configure's option --config-cache.
29345 # It is not useful on other systems. If it contains results you don't
29346 # want to keep, you may remove or edit it.
29348 # config.status only pays attention to the cache file if you give it
29349 # the --recheck option to rerun configure.
29351 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29353 # following values.
29357 # The following way of writing the cache mishandles newlines in values,
29358 # but we know of no workaround that is simple, portable, and efficient.
29359 # So, don't put newlines in cache variables' values.
29360 # Ultrix sh set writes to stderr and can't be redirected directly,
29361 # and sets the high bit in the cache file unless we assign to the vars.
29364 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29366 # `set' does not quote correctly, so add quotes (double-quote
29367 # substitution turns \\\\ into \\, and sed turns \\ into \).
29370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29373 # `set' quotes correctly as required by POSIX, so do not add quotes.
29375 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29384 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29386 if cmp -s $cache_file confcache; then :; else
29387 if test -w $cache_file; then
29388 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29389 cat confcache >$cache_file
29391 echo "not updating unwritable cache $cache_file"
29396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29397 # Let make expand exec_prefix.
29398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29402 # trailing colons and then remove the whole line if VPATH becomes empty
29403 # (actually we leave an empty line to preserve line numbers).
29404 if test "x$srcdir" = x.; then
29405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29406 s/:*\$(srcdir):*/:/;
29407 s/:*\${srcdir}:*/:/;
29409 s/^\([^=]*=[ ]*\):*/\1/;
29415 DEFS=-DHAVE_CONFIG_H
29417 : "${CONFIG_STATUS=./config.status}"
29418 ac_clean_files_save=$ac_clean_files
29419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29420 { echo "$as_me:29420: creating $CONFIG_STATUS" >&5
29421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29422 cat >"$CONFIG_STATUS" <<_ACEOF
29424 # Generated automatically by configure.
29425 # Run this file to recreate the current configuration.
29426 # Compiler output produced by configure, useful for debugging
29427 # configure, is in config.log if it exists.
29429 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29432 SHELL=\${CONFIG_SHELL-$SHELL}
29433 ac_cs_invocation="\$0 \$@"
29435 CLICOLOR_FORCE= GREP_OPTIONS=
29436 unset CLICOLOR_FORCE GREP_OPTIONS
29439 cat >>"$CONFIG_STATUS" <<\_ACEOF
29440 # Be Bourne compatible
29441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29444 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29448 # Name of the executable.
29449 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29451 if expr a : '\(a\)' >/dev/null 2>&1; then
29457 rm -f conf$$ conf$$.exe conf$$.file
29459 if ln -s conf$$.file conf$$ 2>/dev/null; then
29460 # We could just check for DJGPP; but this test a) works b) is more generic
29461 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29462 if test -f conf$$.exe; then
29463 # Don't use ln at all; we don't have any links
29468 elif ln conf$$.file conf$$ 2>/dev/null; then
29473 rm -f conf$$ conf$$.exe conf$$.file
29475 as_executable_p="test -f"
29477 # Support unset when possible.
29478 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29485 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29486 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29487 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29488 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29489 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29490 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29491 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29492 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29495 # We need space, tab and new line, in precisely that order.
29501 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29507 # Files that config.status was made for.
29508 if test -n "$ac_config_files"; then
29509 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29512 if test -n "$ac_config_headers"; then
29513 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29516 if test -n "$ac_config_links"; then
29517 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29520 if test -n "$ac_config_commands"; then
29521 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29524 cat >>"$CONFIG_STATUS" <<\EOF
29527 \`$as_me' instantiates files from templates according to the
29528 current configuration.
29530 Usage: $0 [OPTIONS] [FILE]...
29532 -h, --help print this help, then exit
29533 -V, --version print version number, then exit
29534 -d, --debug don't remove temporary files
29535 --recheck update $as_me by reconfiguring in the same conditions
29536 --file=FILE[:TEMPLATE]
29537 instantiate the configuration file FILE
29538 --header=FILE[:TEMPLATE]
29539 instantiate the configuration header FILE
29541 Configuration files:
29544 Configuration headers:
29547 Configuration commands:
29550 Report bugs to <dickey@invisible-island.net>."
29553 cat >>"$CONFIG_STATUS" <<EOF
29556 configured by $0, generated by GNU Autoconf 2.52.20230903,
29557 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29559 Copyright 2003-2022,2023 Thomas E. Dickey
29560 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29561 Free Software Foundation, Inc.
29562 This config.status script is free software; the Free Software Foundation
29563 gives unlimited permission to copy, distribute and modify it."
29568 cat >>"$CONFIG_STATUS" <<\EOF
29569 # If no file are specified by the user, then we need to provide default
29570 # value. By we need to know if files were specified by the user.
29576 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29577 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29579 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29583 *) # This is not an option, so the user has probably given explicit
29585 ac_need_defaults=false;;
29589 # Handling of the options.
29591 cat >>"$CONFIG_STATUS" <<EOF
29592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29593 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29594 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29596 cat >>"$CONFIG_STATUS" <<\EOF
29597 --version | --vers* | -V )
29598 echo "$ac_cs_version"; exit 0 ;;
29600 # Conflict between --help and --header
29601 { { echo "$as_me:29601: error: ambiguous option: $1
29602 Try \`$0 --help' for more information." >&5
29603 echo "$as_me: error: ambiguous option: $1
29604 Try \`$0 --help' for more information." >&2;}
29605 { (exit 1); exit 1; }; };;
29606 --help | --hel | -h )
29607 echo "$ac_cs_usage"; exit 0 ;;
29608 --debug | --d* | -d )
29610 --file | --fil | --fi | --f )
29612 CONFIG_FILES="$CONFIG_FILES $1"
29613 ac_need_defaults=false;;
29614 --header | --heade | --head | --hea )
29616 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29617 ac_need_defaults=false;;
29619 # This is an error.
29620 -*) { { echo "$as_me:29620: error: unrecognized option: $1
29621 Try \`$0 --help' for more information." >&5
29622 echo "$as_me: error: unrecognized option: $1
29623 Try \`$0 --help' for more information." >&2;}
29624 { (exit 1); exit 1; }; } ;;
29626 *) ac_config_targets="$ac_config_targets $1" ;;
29635 ## ----------------------- ##
29636 ## Running config.status. ##
29637 ## ----------------------- ##
29639 This file was extended by $as_me 2.52.20230903, executed with
29640 CONFIG_FILES = $CONFIG_FILES
29641 CONFIG_HEADERS = $CONFIG_HEADERS
29642 CONFIG_LINKS = $CONFIG_LINKS
29643 CONFIG_COMMANDS = $CONFIG_COMMANDS
29644 > "$ac_cs_invocation"
29645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29650 cat >>"$CONFIG_STATUS" <<EOF
29652 # INIT-COMMANDS section.
29655 ### Special initialization commands, used to pass information from the
29656 ### configuration-run into config.status
29658 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29660 CXX_NAME="$CXX_NAME"
29661 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29662 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29664 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29665 FORM_NAME="$FORM_NAME"
29666 LDCONFIG="$LDCONFIG"
29667 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29668 LIB_NAME="$LIB_NAME"
29669 LIB_PREFIX="$LIB_PREFIX"
29670 LIB_SUBSETS="$LIB_SUBSETS"
29671 LIB_SUFFIX="$LIB_SUFFIX"
29672 LIB_TRACING="$LIB_TRACING"
29674 MAKE_TERMINFO="$MAKE_TERMINFO"
29675 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29676 MENU_NAME="$MENU_NAME"
29677 NCURSES_MAJOR="$NCURSES_MAJOR"
29678 NCURSES_MINOR="$NCURSES_MINOR"
29679 NCURSES_OSPEED="$NCURSES_OSPEED"
29680 NCURSES_PATCH="$NCURSES_PATCH"
29681 PANEL_NAME="$PANEL_NAME"
29682 SRC_SUBDIRS="$SRC_SUBDIRS"
29683 TERMINFO="$TERMINFO"
29684 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29685 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29686 TICS_NAME="$TICS_NAME"
29687 TICS_SUFFIX="$TICS_SUFFIX"
29688 TIC_PATH="$TIC_PATH"
29689 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29690 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29691 TINFO_NAME="$TINFO_NAME"
29692 TINFO_SUFFIX="$TINFO_SUFFIX"
29693 UNALTERED_SYMS="$UNALTERED_SYMS"
29694 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29695 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29696 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29697 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29698 WILDCARD_SYMS="$WILDCARD_SYMS"
29699 WITH_CURSES_H="$with_curses_h"
29700 WITH_ECHO="${enable_echo:=yes}"
29701 WITH_OVERWRITE="$with_overwrite"
29702 cf_LIST_MODELS="$cf_list_models"
29703 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29704 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29705 cf_cv_abi_default="$cf_cv_abi_default"
29706 cf_cv_abi_version="$cf_cv_abi_version"
29707 cf_cv_do_relink="$cf_cv_do_relink"
29708 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29709 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29710 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29711 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29712 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29713 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29714 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29715 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29716 cf_cv_rel_version="$cf_cv_rel_version"
29717 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29718 cf_cv_shared_soname='$cf_cv_shared_soname'
29719 cf_cv_shlib_version="$cf_cv_shlib_version"
29720 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29721 cf_cv_system_name="$cf_cv_system_name"
29722 cf_cv_term_driver="$with_term_driver"
29723 cf_with_ada="$cf_with_ada"
29724 cf_with_cxx_binding="$cf_with_cxx_binding"
29725 cf_with_db_install="$cf_with_db_install"
29726 cf_with_manpages="$cf_with_manpages"
29727 cf_with_tests="$cf_with_tests"
29731 with_shared_cxx="$with_shared_cxx"
29735 cat >>"$CONFIG_STATUS" <<\EOF
29736 for ac_config_target in $ac_config_targets
29738 case "$ac_config_target" in
29739 # Handling of arguments.
29740 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29741 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29742 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29743 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29744 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29745 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29746 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29747 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29748 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29749 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29750 *) { { echo "$as_me:29750: error: invalid argument: $ac_config_target" >&5
29751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29752 { (exit 1); exit 1; }; };;
29756 # If the user did not use the arguments to specify the items to instantiate,
29757 # then the envvar interface is used. Set only those that are not.
29758 # We use the long form for the default assignment because of an extremely
29759 # bizarre bug on SunOS 4.1.3.
29760 if "$ac_need_defaults"; then
29761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29766 # Create a temporary directory, and hook for its removal unless debugging.
29769 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29770 trap '{ (exit 1); exit 1; }' 1 2 13 15
29773 # Create a (secure) tmp directory for tmp files.
29776 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29777 test -n "$tmp" && test -d "$tmp"
29780 tmp=$TMPDIR/cs$$-$RANDOM
29781 (umask 077 && mkdir "$tmp")
29784 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29785 { (exit 1); exit 1; }
29790 cat >>"$CONFIG_STATUS" <<EOF
29793 # CONFIG_FILES section.
29796 # No need to generate the scripts if there are no CONFIG_FILES.
29797 # This happens for instance when ./config.status config.h
29798 if test -n "\$CONFIG_FILES"; then
29799 # Protect against being on the right side of a sed subst in config.status.
29800 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29801 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
29802 s,@SHELL@,$SHELL,;t t
29803 s,@exec_prefix@,$exec_prefix,;t t
29804 s,@prefix@,$prefix,;t t
29805 s,@program_transform_name@,$program_transform_name,;t t
29806 s,@bindir@,$bindir,;t t
29807 s,@sbindir@,$sbindir,;t t
29808 s,@libexecdir@,$libexecdir,;t t
29809 s,@datarootdir@,$datarootdir,;t t
29810 s,@datadir@,$datadir,;t t
29811 s,@sysconfdir@,$sysconfdir,;t t
29812 s,@sharedstatedir@,$sharedstatedir,;t t
29813 s,@localstatedir@,$localstatedir,;t t
29814 s,@runstatedir@,$runstatedir,;t t
29815 s,@libdir@,$libdir,;t t
29816 s,@includedir@,$includedir,;t t
29817 s,@oldincludedir@,$oldincludedir,;t t
29818 s,@infodir@,$infodir,;t t
29819 s,@mandir@,$mandir,;t t
29820 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29821 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29822 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29823 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29824 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29825 s,@build_alias@,$build_alias,;t t
29826 s,@host_alias@,$host_alias,;t t
29827 s,@target_alias@,$target_alias,;t t
29828 s,@ECHO_C@,$ECHO_C,;t t
29829 s,@ECHO_N@,$ECHO_N,;t t
29830 s,@ECHO_T@,$ECHO_T,;t t
29831 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29832 s,@DEFS@,$DEFS,;t t
29833 s,@LIBS@,$LIBS,;t t
29834 s,@top_builddir@,$top_builddir,;t t
29835 s,@GREP@,$GREP,;t t
29836 s,@EGREP@,$EGREP,;t t
29837 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29838 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29839 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29840 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29841 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29842 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
29843 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29844 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29845 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29846 s,@VERSION@,$VERSION,;t t
29847 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29848 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29849 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29850 s,@PACKAGE@,$PACKAGE,;t t
29851 s,@build@,$build,;t t
29852 s,@build_cpu@,$build_cpu,;t t
29853 s,@build_vendor@,$build_vendor,;t t
29854 s,@build_os@,$build_os,;t t
29855 s,@host@,$host,;t t
29856 s,@host_cpu@,$host_cpu,;t t
29857 s,@host_vendor@,$host_vendor,;t t
29858 s,@host_os@,$host_os,;t t
29859 s,@target@,$target,;t t
29860 s,@target_cpu@,$target_cpu,;t t
29861 s,@target_vendor@,$target_vendor,;t t
29862 s,@target_os@,$target_os,;t t
29863 s,@FGREP@,$FGREP,;t t
29865 s,@CFLAGS@,$CFLAGS,;t t
29866 s,@LDFLAGS@,$LDFLAGS,;t t
29867 s,@CPPFLAGS@,$CPPFLAGS,;t t
29868 s,@ac_ct_CC@,$ac_ct_CC,;t t
29869 s,@EXEEXT@,$EXEEXT,;t t
29870 s,@OBJEXT@,$OBJEXT,;t t
29871 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29873 s,@LDCONFIG@,$LDCONFIG,;t t
29875 s,@CXXFLAGS@,$CXXFLAGS,;t t
29876 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29878 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29879 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29880 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29881 s,@LINT@,$LINT,;t t
29882 s,@LINT_OPTS@,$LINT_OPTS,;t t
29883 s,@LINT_LIBS@,$LINT_LIBS,;t t
29884 s,@LN_S@,$LN_S,;t t
29885 s,@cf_config_suffix@,$cf_config_suffix,;t t
29886 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29887 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29888 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29889 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29890 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29891 s,@SET_MAKE@,$SET_MAKE,;t t
29892 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29893 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29894 s,@CTAGS@,$CTAGS,;t t
29895 s,@ETAGS@,$ETAGS,;t t
29896 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29897 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29898 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29899 s,@RANLIB@,$RANLIB,;t t
29900 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29902 s,@ac_ct_LD@,$ac_ct_LD,;t t
29904 s,@ac_ct_AR@,$ac_ct_AR,;t t
29906 s,@ac_ct_NM@,$ac_ct_NM,;t t
29907 s,@ARFLAGS@,$ARFLAGS,;t t
29908 s,@DESTDIR@,$DESTDIR,;t t
29909 s,@BUILD_CC@,$BUILD_CC,;t t
29910 s,@BUILD_CPP@,$BUILD_CPP,;t t
29911 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29912 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29913 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29914 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29915 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29916 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29917 s,@cf_list_models@,$cf_list_models,;t t
29918 s,@ABI_VERSION@,$ABI_VERSION,;t t
29919 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29920 s,@LIBTOOL@,$LIBTOOL,;t t
29921 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29922 s,@LT_UNDEF@,$LT_UNDEF,;t t
29923 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29924 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29925 s,@LIB_CREATE@,$LIB_CREATE,;t t
29926 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29927 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29928 s,@LIB_PREP@,$LIB_PREP,;t t
29929 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29930 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29931 s,@LIB_LINK@,$LIB_LINK,;t t
29932 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29933 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29934 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29935 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29936 s,@TICS_NAME@,$TICS_NAME,;t t
29937 s,@TINFO_NAME@,$TINFO_NAME,;t t
29938 s,@LIB_NAME@,$LIB_NAME,;t t
29939 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29940 s,@CC_G_OPT@,$CC_G_OPT,;t t
29941 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29942 s,@LD_MODEL@,$LD_MODEL,;t t
29943 s,@shlibdir@,$shlibdir,;t t
29944 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29945 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29946 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29947 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29948 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29949 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29950 s,@LINK_PROGS@,$LINK_PROGS,;t t
29951 s,@LINK_TESTS@,$LINK_TESTS,;t t
29952 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29953 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29954 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29955 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29956 s,@RPATH_LIST@,$RPATH_LIST,;t t
29957 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29958 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29959 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29960 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29961 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29962 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29963 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29964 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29965 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29967 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29968 s,@INFOCMP@,$INFOCMP,;t t
29969 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29970 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29971 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29972 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29973 s,@XTERM_KBS@,$XTERM_KBS,;t t
29974 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29975 s,@TERMINFO@,$TERMINFO,;t t
29976 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29977 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29978 s,@TERMPATH@,$TERMPATH,;t t
29979 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29980 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29981 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29982 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29983 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29984 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29985 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29986 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29987 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29988 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29989 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29990 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29991 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29992 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29993 s,@RGB_PATH@,$RGB_PATH,;t t
29994 s,@no_x11_rgb@,$no_x11_rgb,;t t
29995 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29996 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29997 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29998 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29999 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
30000 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
30001 s,@cf_manpage_format@,$cf_manpage_format,;t t
30002 s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
30003 s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
30004 s,@cf_manpage_compress@,$cf_manpage_compress,;t t
30005 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
30006 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
30007 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
30008 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
30009 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
30010 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
30011 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
30012 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
30013 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
30014 s,@PTHREAD@,$PTHREAD,;t t
30015 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
30016 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
30017 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
30018 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
30019 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
30020 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
30021 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
30022 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
30023 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
30024 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
30025 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
30026 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
30027 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
30028 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
30029 s,@ECHO_LT@,$ECHO_LT,;t t
30030 s,@ECHO_LD@,$ECHO_LD,;t t
30031 s,@RULE_CC@,$RULE_CC,;t t
30032 s,@SHOW_CC@,$SHOW_CC,;t t
30033 s,@ECHO_CC@,$ECHO_CC,;t t
30034 s,@ECHO_LINK@,$ECHO_LINK,;t t
30035 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
30036 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
30037 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
30038 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
30039 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
30040 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
30041 s,@ADAFLAGS@,$ADAFLAGS,;t t
30042 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
30043 s,@ADA_TRACE@,$ADA_TRACE,;t t
30044 s,@MATH_LIB@,$MATH_LIB,;t t
30045 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
30046 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
30047 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
30048 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
30049 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
30050 s,@TEST_LIBS@,$TEST_LIBS,;t t
30051 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
30052 s,@CXXCPP@,$CXXCPP,;t t
30053 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
30054 s,@CXX_AR@,$CXX_AR,;t t
30055 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
30056 s,@CXXLIBS@,$CXXLIBS,;t t
30057 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
30058 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
30059 s,@M4_exists@,$M4_exists,;t t
30060 s,@cf_ada_make@,$cf_ada_make,;t t
30061 s,@cf_ada_config@,$cf_ada_config,;t t
30062 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
30063 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
30064 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
30065 s,@cf_compile_generics@,$cf_compile_generics,;t t
30066 s,@cf_generic_objects@,$cf_generic_objects,;t t
30067 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
30068 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
30069 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
30070 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
30071 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
30072 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
30073 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
30074 s,@cf_ada_package@,$cf_ada_package,;t t
30075 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
30076 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
30077 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
30078 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
30079 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
30080 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
30081 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
30082 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
30083 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30084 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30085 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30086 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30087 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30088 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30089 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30090 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30091 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30092 s,@TICS_LIBS@,$TICS_LIBS,;t t
30093 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30094 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30095 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30096 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30097 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30098 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30099 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30100 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30101 s,@includesubdir@,$includesubdir,;t t
30102 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30103 s,@TICS_LIST@,$TICS_LIST,;t t
30104 s,@TINFO_LIST@,$TINFO_LIST,;t t
30105 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30106 s,@FORM_NAME@,$FORM_NAME,;t t
30107 s,@MENU_NAME@,$MENU_NAME,;t t
30108 s,@PANEL_NAME@,$PANEL_NAME,;t t
30109 s,@CXX_NAME@,$CXX_NAME,;t t
30110 s,@TEST_ARGS@,$TEST_ARGS,;t t
30111 s,@TEST_DEPS@,$TEST_DEPS,;t t
30112 s,@TEST_ARG2@,$TEST_ARG2,;t t
30113 s,@TEST_DEP2@,$TEST_DEP2,;t t
30114 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30115 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30116 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30117 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30118 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30119 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30120 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30121 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30122 s,@cross_compiling@,$cross_compiling,;t t
30123 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30124 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30125 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30126 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30127 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30128 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30129 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30130 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30131 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30132 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30133 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30134 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30139 cat >>"$CONFIG_STATUS" <<\EOF
30140 # Split the substitutions into bite-sized pieces for seds with
30141 # small command number limits, like on Digital OSF/1 and HP-UX.
30142 ac_max_sed_lines=48
30143 ac_sed_frag=1 # Number of current file.
30144 ac_beg=1 # First line for current file.
30145 ac_end=$ac_max_sed_lines # Line after last line for current file.
30148 while "$ac_more_lines"; do
30149 if test "$ac_beg" -gt 1; then
30150 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30152 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30154 if test ! -s "$tmp"/subs.frag; then
30155 ac_more_lines=false
30157 # The purpose of the label and of the branching condition is to
30158 # speed up the sed processing (if there are no `@' at all, there
30159 # is no need to browse any of the substitutions).
30160 # These are the two extra sed commands mentioned above.
30162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30163 # It is possible to make a multiline substitution using escaped newlines.
30164 # Ensure that we do not split the substitution between script fragments.
30166 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30167 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30168 if test -s "$tmp"/subs.next; then
30169 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30170 if test ! -s "$tmp"/subs.edit; then
30171 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30172 if test ! -s "$tmp"/subs.edit; then
30173 if test "$ac_beg" -gt 1; then
30174 ac_end=`expr "$ac_end" - 1`
30181 if test -z "$ac_sed_cmds"; then
30182 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30184 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30186 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30188 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30191 if test -z "$ac_sed_cmds"; then
30194 fi # test -n "$CONFIG_FILES"
30197 cat >>"$CONFIG_STATUS" <<\EOF
30198 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30199 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30201 - | *:- | *:-:* ) # input from stdin
30203 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30205 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30207 * ) ac_file_in=$ac_file.in ;;
30210 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30211 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30212 X"$ac_file" : 'X\(//\)[^/]' \| \
30213 X"$ac_file" : 'X\(//\)$' \| \
30214 X"$ac_file" : 'X\(/\)' \| \
30215 . : '\(.\)' 2>/dev/null ||
30217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30219 /^X\(\/\/\)$/{ s//\1/; q; }
30220 /^X\(\/\).*/{ s//\1/; q; }
30222 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30223 { case "$ac_dir" in
30224 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30228 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30229 case $as_mkdir_dir in
30230 # Skip DOS drivespec
30231 ?:) as_incr_dir=$as_mkdir_dir ;;
30233 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30234 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30239 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30240 # A "../" for each directory in $ac_dir_suffix.
30241 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30243 ac_dir_suffix= ac_dots=
30248 if test -z "$ac_dots"; then
30251 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30253 [\\/]* | ?:[\\/]* )
30254 ac_srcdir="$srcdir$ac_dir_suffix";
30255 ac_top_srcdir="$srcdir" ;;
30256 *) # Relative path.
30257 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30258 ac_top_srcdir="$ac_dots$srcdir" ;;
30262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30263 *) ac_INSTALL=$ac_dots$INSTALL ;;
30266 if test x"$ac_file" != x-; then
30267 { echo "$as_me:30267: creating $ac_file" >&5
30268 echo "$as_me: creating $ac_file" >&6;}
30271 # Let's still pretend it is `configure' which instantiates (i.e., don't
30272 # use $as_me), people would be surprised to read:
30273 # /* config.h. Generated automatically by config.status. */
30274 configure_input="Generated automatically from `echo $ac_file_in |
30275 sed 's,.*/,,'` by configure."
30277 # First look for the input files in the build tree, otherwise in the
30279 ac_file_inputs=`IFS=:
30280 for f in $ac_file_in; do
30282 -) echo "$tmp"/stdin ;;
30284 # Absolute (can't be DOS-style, as IFS=:)
30285 test -f "$f" || { { echo "$as_me:30285: error: cannot find input file: $f" >&5
30286 echo "$as_me: error: cannot find input file: $f" >&2;}
30287 { (exit 1); exit 1; }; }
30290 if test -f "$f"; then
30293 elif test -f "$srcdir/$f"; then
30298 { { echo "$as_me:30298: error: cannot find input file: $f" >&5
30299 echo "$as_me: error: cannot find input file: $f" >&2;}
30300 { (exit 1); exit 1; }; }
30303 done` || { (exit 1); exit 1; }
30305 cat >>"$CONFIG_STATUS" <<\EOF
30306 ac_warn_datarootdir=no
30307 if test x"$ac_file" != x-; then
30308 for ac_item in $ac_file_inputs
30310 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30311 if test -n "$ac_seen"; then
30312 ac_used=`grep '@datarootdir@' "$ac_item"`
30313 if test -z "$ac_used"; then
30314 { echo "$as_me:30314: WARNING: datarootdir was used implicitly but not set:
30316 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30318 ac_warn_datarootdir=yes
30321 ac_seen=`grep '${datarootdir}' "$ac_item"`
30322 if test -n "$ac_seen"; then
30323 { echo "$as_me:30323: WARNING: datarootdir was used explicitly but not set:
30325 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30327 ac_warn_datarootdir=yes
30332 if test "x$ac_warn_datarootdir" = xyes; then
30333 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30337 cat >>"$CONFIG_STATUS" <<EOF
30341 cat >>"$CONFIG_STATUS" <<\EOF
30343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30344 s,@configure_input@,$configure_input,;t t
30345 s,@srcdir@,$ac_srcdir,;t t
30346 s,@top_srcdir@,$ac_top_srcdir,;t t
30347 s,@INSTALL@,$ac_INSTALL,;t t
30348 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30351 test -n "${FGREP}" || FGREP="grep -F"
30352 test -n "${EGREP}" || EGREP="grep -E"
30353 cat >>"$CONFIG_STATUS" <<EOF
30354 test -n "\${FGREP}" || FGREP="$FGREP"
30355 test -n "\${EGREP}" || EGREP="$EGREP"
30357 cat >>"$CONFIG_STATUS" <<\EOF
30358 if test x"$ac_file" != x-; then
30359 cp "$tmp/out" "$ac_file"
30361 for ac_name in prefix exec_prefix datarootdir
30363 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30364 if test -n "$ac_seen"; then
30365 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30366 if test -z "$ac_init"; then
30367 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30368 { echo "$as_me:30368: WARNING: Variable $ac_name is used but was not set:
30370 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30375 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30376 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30377 if test -s "$tmp"/out; then
30378 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30379 { echo "$as_me:30379: WARNING: Some variables may not be substituted:
30381 echo "$as_me: WARNING: Some variables may not be substituted:
30391 cat >>"$CONFIG_STATUS" <<\EOF
30394 # CONFIG_HEADER section.
30397 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30398 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30400 # ac_d sets the value in "#define NAME VALUE" lines.
30401 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30402 ac_dB='[ ].*$,\1#\2'
30405 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30406 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30407 ac_iB='\([ ]\),\1#\2define\3'
30410 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30411 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30412 ac_uB='$,\1#\2define\3'
30416 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30419 - | *:- | *:-:* ) # input from stdin
30421 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30423 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30425 * ) ac_file_in=$ac_file.in ;;
30428 test x"$ac_file" != x- && { echo "$as_me:30428: creating $ac_file" >&5
30429 echo "$as_me: creating $ac_file" >&6;}
30431 # First look for the input files in the build tree, otherwise in the
30433 ac_file_inputs=`IFS=:
30434 for f in $ac_file_in; do
30436 -) echo "$tmp"/stdin ;;
30438 # Absolute (can't be DOS-style, as IFS=:)
30439 test -f "$f" || { { echo "$as_me:30439: error: cannot find input file: $f" >&5
30440 echo "$as_me: error: cannot find input file: $f" >&2;}
30441 { (exit 1); exit 1; }; }
30444 if test -f "$f"; then
30447 elif test -f "$srcdir/$f"; then
30452 { { echo "$as_me:30452: error: cannot find input file: $f" >&5
30453 echo "$as_me: error: cannot find input file: $f" >&2;}
30454 { (exit 1); exit 1; }; }
30457 done` || { (exit 1); exit 1; }
30458 # Remove the trailing spaces.
30459 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30463 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30464 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30465 # be either 'cat' or 'sort'.
30466 cat confdefs.h | uniq >conftest.vals
30468 # Break up conftest.vals because some shells have a limit on
30469 # the size of here documents, and old seds have small limits too.
30471 rm -f conftest.tail
30472 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30473 while grep . conftest.vals >/dev/null
30475 # Write chunks of a limited-size here document to conftest.frag.
30476 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30477 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30478 echo 'CEOF' >> "$CONFIG_STATUS"
30479 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30480 rm -f conftest.vals
30481 mv conftest.tail conftest.vals
30483 rm -f conftest.vals
30485 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30487 echo ' cat >> conftest.edit <<CEOF
30488 /@DEFS@/r conftest.frag
30491 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30493 mv "$tmp"/out "$tmp"/in
30494 rm -f conftest.edit conftest.frag
30495 ' >> "$CONFIG_STATUS"
30497 cat >>"$CONFIG_STATUS" <<\EOF
30498 # Let's still pretend it is `configure' which instantiates (i.e., don't
30499 # use $as_me), people would be surprised to read:
30500 # /* config.h. Generated automatically by config.status. */
30501 if test x"$ac_file" = x-; then
30502 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30504 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30506 cat "$tmp"/in >>"$tmp"/config.h
30508 if test x"$ac_file" != x-; then
30509 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30510 { echo "$as_me:30510: $ac_file is unchanged" >&5
30511 echo "$as_me: $ac_file is unchanged" >&6;}
30513 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30514 X"$ac_file" : 'X\(//\)[^/]' \| \
30515 X"$ac_file" : 'X\(//\)$' \| \
30516 X"$ac_file" : 'X\(/\)' \| \
30517 . : '\(.\)' 2>/dev/null ||
30519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30521 /^X\(\/\/\)$/{ s//\1/; q; }
30522 /^X\(\/\).*/{ s//\1/; q; }
30524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30525 { case "$ac_dir" in
30526 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30530 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30531 case $as_mkdir_dir in
30532 # Skip DOS drivespec
30533 ?:) as_incr_dir=$as_mkdir_dir ;;
30535 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30536 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30543 mv "$tmp/config.h" "$ac_file"
30546 cat "$tmp"/config.h
30547 rm -f "$tmp"/config.h
30551 cat >>"$CONFIG_STATUS" <<\EOF
30553 # CONFIG_COMMANDS section.
30555 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30556 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30557 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30561 if test "x$cf_with_tests" != xno ; then
30565 if test ! -d "$srcdir/$cf_dir" ; then
30567 elif test -f "$srcdir/$cf_dir/programs" ; then
30568 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30574 cf_prefix=$LIB_PREFIX
30576 case "$cf_cv_shlib_version" in
30577 (cygdll|msysdll|mingw|msvcdll)
30578 TINFO_NAME=$TINFO_ARG_SUFFIX
30583 if test -n "$TINFO_SUFFIX" ; then
30584 case "$TINFO_SUFFIX" in
30586 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30587 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30590 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30591 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30594 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30595 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30600 for cf_dir in $SRC_SUBDIRS
30602 if test ! -d "$srcdir/$cf_dir" ; then
30604 elif test -f "$srcdir/$cf_dir/modules" ; then
30609 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30611 cf_awk_program="$cf_awk_program\
30612 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30613 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30617 if test "x$WILDCARD_SYMS" = xno
30619 cf_awk_program="$cf_awk_program\
30620 /[ ]_\\*;/ { skip=1; next; }\
30624 if test "x$cf_awk_program" != "x"
30626 cat >>$cf_dir/Makefile <<CF_EOF
30628 # Generated by CF_LIB_RULES
30629 resulting.map: $UNALTERED_SYMS
30630 $AWK 'BEGIN { skip = 1; last=""; } \
30632 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30633 skip = 0; last = \$\$0; } \
30634 END { print last; }' < "$UNALTERED_SYMS" >\$@
30637 rm -f resulting.map
30641 for cf_item in $cf_LIST_MODELS
30647 cf_depsuf=$cf_suffix
30650 case "$cf_cv_system_name" in
30658 cf_depsuf=$cf_suffix
30661 case "$cf_cv_system_name" in
30669 cf_depsuf=$cf_suffix
30672 case "$cf_cv_system_name" in
30675 cf_depsuf=$cf_suffix
30679 cf_depsuf='.dll.lib'
30681 (cygwin*|msys*|mingw*)
30687 cf_depsuf=$cf_suffix
30693 cf_depsuf=$cf_suffix
30697 cf_depsuf=$cf_suffix
30703 cf_depsuf=$cf_suffix
30716 cf_depsuf=$cf_suffix
30719 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30721 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30722 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30725 if test "$cf_dir" = "c++"
30728 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30730 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30734 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30736 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30739 test -z "$cf_libname" && cf_libname="$cf_dir"
30740 if test "$cf_item" = shared ; then
30741 if test -n "${LIB_SUFFIX}"
30743 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30745 cf_shared_suffix="$cf_suffix"
30747 if test "$cf_cv_do_symlinks" = yes ; then
30750 case "$cf_cv_shlib_version" in
30752 cf_version_name=REL_VERSION
30755 cf_version_name=ABI_VERSION
30759 if test -n "$cf_version_name"
30761 case "$cf_cv_system_name" in
30764 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30767 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30771 if test -n "${USE_LIB_SUFFIX}"
30773 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30775 cf_shared_suffix="$cf_suffix"
30778 # cygwin needs import library, and has unique naming convention
30779 # use autodetected ${cf_prefix} for import lib and static lib, but
30780 # use 'cyg' prefix for shared lib.
30781 case "$cf_cv_shlib_version" in
30783 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30784 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30787 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30788 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30791 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30792 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30795 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30796 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30802 if test -n "$cf_add_lib"
30804 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30808 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30809 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30812 if test "$cf_dir" = ncurses ; then
30813 cf_subsets="$LIB_SUBSETS"
30814 cf_r_parts="$cf_subsets"
30815 cf_liblist="$Libs_To_Make"
30817 while test -n "$cf_r_parts"
30819 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30820 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30821 if test "$cf_l_parts" != "$cf_r_parts" ; then
30823 case "$cf_l_parts" in
30825 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30828 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30834 if test -n "$cf_add_lib"; then
30835 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30842 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30845 if test "$cf_dir" = c++; then
30846 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30848 for cf_item in $Libs_To_Make
30854 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30857 for cf_test in $cf_list
30859 if test "$cf_test" = "$cf_item"
30861 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30866 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30868 Libs_To_Make="$cf_list"
30872 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30873 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30874 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30875 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30877 $AWK -f "$srcdir/mk-0th.awk" \
30878 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30879 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30881 for cf_subset in $cf_subsets
30884 for cf_item in $cf_LIST_MODELS
30887 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30889 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30892 if test "$CXX_MODEL" = SHARED; then
30893 case "$cf_cv_shlib_version" in
30894 (cygdll|msysdll|mingw|msvcdll)
30895 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30897 echo "${as_me:-configure}:30897: testing overriding CXX_MODEL to SHARED ..." 1>&5
30899 with_shared_cxx=yes
30902 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30910 cf_depsuf=$cf_suffix
30913 case "$cf_cv_system_name" in
30921 cf_depsuf=$cf_suffix
30924 case "$cf_cv_system_name" in
30932 cf_depsuf=$cf_suffix
30935 case "$cf_cv_system_name" in
30938 cf_depsuf=$cf_suffix
30942 cf_depsuf='.dll.lib'
30944 (cygwin*|msys*|mingw*)
30950 cf_depsuf=$cf_suffix
30956 cf_depsuf=$cf_suffix
30960 cf_depsuf=$cf_suffix
30966 cf_depsuf=$cf_suffix
30979 cf_depsuf=$cf_suffix
30982 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30984 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30985 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30989 (libtool) cf_subdir='obj_lo' ;;
30990 (normal) cf_subdir='objects' ;;
30991 (debug) cf_subdir='obj_g' ;;
30992 (profile) cf_subdir='obj_p' ;;
30994 case "$cf_cv_system_name" in
30996 cf_subdir='objects' ;;
30998 cf_subdir='obj_s' ;;
31002 # Test for case where we build libtinfo with a different name.
31004 if test "$cf_dir" = ncurses ; then
31005 case "$cf_subset" in
31007 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31010 cf_libname=$TINFO_LIB_SUFFIX
31013 cf_libname=$TICS_LIB_SUFFIX
31016 elif test "$cf_dir" = c++ ; then
31018 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31020 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31022 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31025 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31027 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31029 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31031 if test -n "${USE_ARG_SUFFIX}" ; then
31032 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
31033 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
31036 # These dependencies really are for development, not
31037 # builds, but they are useful in porting, too.
31038 cf_depend="../include/ncurses_cfg.h"
31039 if test "$srcdir" = "."; then
31042 cf_reldir="\${srcdir}"
31045 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
31046 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
31047 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
31048 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
31052 old_cf_suffix="$cf_suffix"
31053 if test "$cf_cv_shlib_version_infix" = yes ; then
31054 if test -n "$USE_LIB_SUFFIX" ; then
31055 case "$USE_LIB_SUFFIX" in
31057 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
31058 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
31059 cf_dir_suffix=tw$EXTRA_SUFFIX
31062 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
31063 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
31064 cf_dir_suffix=t$EXTRA_SUFFIX
31067 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
31068 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
31069 cf_dir_suffix=w$EXTRA_SUFFIX
31072 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
31073 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
31074 cf_dir_suffix=$EXTRA_SUFFIX
31080 $AWK -f "$srcdir/mk-1st.awk" \
31081 name=${cf_libname}${cf_dir_suffix} \
31082 traces=$LIB_TRACING \
31084 CXX_MODEL=$CXX_MODEL \
31085 LIB_SUFFIX=$LIB_SUFFIX \
31086 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31087 make_phony="${cf_cv_make_PHONY:-no}" \
31089 prefix=$cf_prefix \
31090 suffix=$cf_suffix \
31091 subset=$cf_subset \
31092 driver=$cf_cv_term_driver \
31094 TermlibRoot=$TINFO_NAME \
31095 TermlibSuffix=$TINFO_SUFFIX \
31096 ShlibVer=$cf_cv_shlib_version \
31097 ShlibVerInfix=$cf_cv_shlib_version_infix \
31098 ReLink=${cf_cv_do_relink:-no} \
31099 ReRanlib=${cf_cv_do_reranlib:-yes} \
31100 DoLinks=$cf_cv_do_symlinks \
31101 rmSoLocs=$cf_cv_rm_so_locs \
31102 ldconfig="$LDCONFIG" \
31103 overwrite=$WITH_OVERWRITE \
31104 depend="$cf_depend" \
31106 libtool_version="$LIBTOOL_VERSION" \
31107 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31109 cf_suffix="$old_cf_suffix"
31111 for cf_subdir2 in $cf_subdirs lib
31113 test "$cf_subdir" = "$cf_subdir2" && break
31115 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31116 $AWK -f "$srcdir/mk-2nd.awk" \
31118 traces=$LIB_TRACING \
31121 subset=$cf_subset \
31124 crenames=$cf_cv_prog_CC_c_o \
31125 cxxrenames=$cf_cv_prog_CXX_c_o \
31126 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31127 cf_subdirs="$cf_subdirs $cf_subdir"
31132 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31136 echo '# generated by CF_LIB_RULES' >> Makefile
31138 if test "x$cf_cv_make_PHONY" = xyes ; then
31139 cat >> Makefile <<-CF_EOF
31143 .PHONY : install.includes
31144 .PHONY : uninstall.includes
31145 .PHONY : install.libs
31146 .PHONY : uninstall.libs
31150 for cf_dir in $SRC_SUBDIRS
31152 if test ! -d "$srcdir/$cf_dir" ; then
31156 if test -f "$cf_dir/Makefile" ; then
31159 echo 'libs \' >> Makefile
31160 echo 'install.libs \' >> Makefile
31161 echo 'uninstall.libs ::' >> Makefile
31162 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31167 if test -f "$srcdir/$cf_dir/modules" ; then
31169 if test "x$cf_cv_make_PHONY" = xyes ; then
31170 cat >> Makefile <<-CF_EOF
31172 .PHONY : install.$cf_dir
31173 .PHONY : uninstall.$cf_dir
31178 if test -f "$srcdir/$cf_dir/headers" ; then
31179 cat >> Makefile <<CF_EOF
31180 install.includes \\
31181 uninstall.includes \\
31185 cat >> Makefile <<CF_EOF
31192 uninstall.$cf_dir ::
31193 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31195 elif test -f "$srcdir/$cf_dir/headers" ; then
31196 cat >> Makefile <<CF_EOF
31201 install.includes \\
31202 uninstall.includes ::
31203 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31208 if test "x$cf_cv_make_PHONY" = xyes ; then
31209 cat >> Makefile <<-CF_EOF
31211 .PHONY : install.data
31212 .PHONY : uninstall.data
31216 if test "x$cf_with_db_install" = xyes; then
31217 cat >> Makefile <<CF_EOF
31219 install.libs uninstall.libs \\
31220 install.data uninstall.data ::
31221 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31224 cat >> Makefile <<CF_EOF
31226 install.libs uninstall.libs ::
31227 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31231 if test "x$cf_with_manpages" = xyes; then
31233 if test "x$cf_cv_make_PHONY" = xyes ; then
31234 cat >> Makefile <<-CF_EOF
31236 .PHONY : install.man
31237 .PHONY : uninstall.man
31241 cat >> Makefile <<CF_EOF
31245 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31249 cat >> Makefile <<CF_EOF
31252 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31253 rm -f headers.sh headers.sed mk_shared_lib.sh
31254 rm -f edit_man.* man_alias.* *.tmp
31255 rm -rf \${DIRS_TO_MAKE}
31258 rm -f headers.sed headers.sh
31260 echo creating headers.sh
31261 cat >headers.sh <<CF_EOF
31263 # This shell script is generated by the 'configure' script. It is invoked in a
31264 # subdirectory of the build tree. It generates a sed-script in the parent
31265 # directory that is used to adjust includes for header files that reside in a
31266 # subdirectory of /usr/include, etc.
31268 while test \$# != 3
31270 PRG="\$PRG \$1"; shift
31275 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31276 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31277 echo installing \$SRC in \$DST
31280 if test "$WITH_CURSES_H" = yes; then
31281 cat >>headers.sh <<CF_EOF
31284 END=\`basename \$DST\`
31285 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31287 NAME=\`basename \$i\`
31288 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31292 echo "" >> \$TMPSED
31298 cat >>headers.sh <<CF_EOF
31301 END=\`basename \$DST\`
31302 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31304 NAME=\`basename \$i\`
31305 if test "\$NAME" = "curses.h"
31307 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31310 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31314 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31319 cat >>headers.sh <<CF_EOF
31321 sed -f \$TMPSED \$SRC > \$TMPSRC
31322 NAME=\`basename \$SRC\`
31324 if test "$WITH_CURSES_H" != yes; then
31325 cat >>headers.sh <<CF_EOF
31326 test "\$NAME" = "curses.h" && NAME=ncurses.h
31329 cat >>headers.sh <<CF_EOF
31330 # Just in case someone gzip'd manpages, remove the conflicting copy.
31331 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31333 eval \$PRG \$TMPSRC \$DST/\$NAME
31334 rm -f \$TMPSRC \$TMPSED
31337 chmod 0755 headers.sh
31339 for cf_dir in $SRC_SUBDIRS
31341 if test ! -d "$srcdir/$cf_dir" ; then
31345 if test -f "$srcdir/$cf_dir/headers" ; then
31346 $AWK -f "$srcdir/mk-hdr.awk" \
31347 subset="$LIB_SUBSETS" \
31348 compat="$WITH_CURSES_H" \
31349 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31352 if test -f "$srcdir/$cf_dir/modules" ; then
31353 if test "$cf_dir" != "c++" ; then
31354 if test "x$cf_cv_make_PHONY" = xyes ; then
31355 cat >> $cf_dir/Makefile <<-CF_EOF
31361 cat >>$cf_dir/Makefile <<"CF_EOF"
31362 depend : ${AUTO_SRC}
31363 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31365 # DO NOT DELETE THIS LINE -- make depend depends on it.
31371 if test "$MANPAGE_RENAMES" != no ; then
31372 # Construct a sed-script to perform renaming within man-pages
31373 test -n "$verbose" && echo "creating edit_man.sed"
31374 test ! -d man && mkdir man
31375 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31378 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31379 if test -z "$USE_OLD_MAKERULES" ; then
31380 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31388 cat >>"$CONFIG_STATUS" <<\EOF
31390 { (exit 0); exit 0; }
31392 chmod +x "$CONFIG_STATUS"
31393 ac_clean_files=$ac_clean_files_save
31395 # configure is writing to config.log, and then calls config.status.
31396 # config.status does its own redirection, appending to config.log.
31397 # Unfortunately, on DOS this fails, as config.log is still kept open
31398 # by configure, so config.status won't be able to write to it; its
31399 # output is simply discarded. So we exec the FD to /dev/null,
31400 # effectively closing config.log, so it can be properly (re)opened and
31401 # appended to by config.status. When coming back to configure, we
31402 # need to make the FD available again.
31403 if test "$no_create" != yes; then
31406 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31409 # would make configure fail if this is the last instruction.
31410 "$ac_cs_success" || { (exit 1); exit 1; }
31412 ${MAKE:-make} preinstall